Skip to content

Commit

Permalink
Merge pull request #268 from seamapi/prettier-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x authored Jul 14, 2023
2 parents d2f4705 + ea1d7bc commit 8132be1
Show file tree
Hide file tree
Showing 10 changed files with 1,851 additions and 1,539 deletions.
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"semi": false,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "es5",
"endOfLine": "lf"
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $ npm install @seamapi/react
```tsx
import { ConnectAccountButton, DeviceTable, SeamProvider } from '@seamapi/react'

export const App = () => {
export function App() {
return (
<SeamProvider publishableKey='your_publishable_key'>
<main>
Expand Down Expand Up @@ -103,7 +103,7 @@ They are well-typed and follow a uniform API.
```tsx
import { SeamProvider, useDevices } from '@seamapi/react/hooks'

export const App = () => {
export function App() {
return (
<SeamProvider publishableKey='your_publishable_key'>
<main>
Expand All @@ -114,7 +114,7 @@ export const App = () => {
)
}

const Devices = () => {
function Devices() {
const { devices, isLoading, isError, error } = useDevices()

if (isLoading) {
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion examples/web-components/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
3,352 changes: 1,825 additions & 1,527 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"http-proxy-middleware": "^2.0.6",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"prettier": "^2.3.0",
"prettier": "^3.0.0",
"prop-types": "^15.8.1",
"raw-body": "^2.5.2",
"react": "^18.2.0",
Expand All @@ -177,7 +177,7 @@
"ts-jest": "^29.1.0",
"tsc-alias": "^1.8.5",
"tsconfig-paths-webpack-plugin": "^4.0.1",
"typescript": "~5.0.0",
"typescript": "^5.1.0",
"vite": "^4.2.1",
"vite-tsconfig-paths": "^4.0.8",
"zustand-hoist": "^1.0.0"
Expand Down
4 changes: 3 additions & 1 deletion src/styles/_menus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
position: absolute;
padding: 8px 0;
background: colors.$white;
box-shadow: 0 0 1px rgb(0 0 0 / 30%), 0 2px 16px 2px rgb(15 22 28 / 15%);
box-shadow:
0 0 1px rgb(0 0 0 / 30%),
0 2px 16px 2px rgb(15 22 28 / 15%);
border-radius: 8px;

.seam-menu-item {
Expand Down
3 changes: 2 additions & 1 deletion src/styles/_supported-device-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ $row-padding: 8px;
color: colors.$text-gray-1;
border-radius: 30px;
border: 0;
box-shadow: 0 1px 1px 0 rgb(16 27 37 / 10%),
box-shadow:
0 1px 1px 0 rgb(16 27 37 / 10%),
0 1px 8px 0 rgb(46 69 82 / 12%);
position: absolute;
left: 50%;
Expand Down
14 changes: 12 additions & 2 deletions src/styles/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
@use './colors';

@mixin font-family {
font-family: 'Source Sans Pro', system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
font-family:
'Source Sans Pro',
system-ui,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
Oxygen,
Ubuntu,
Cantarell,
'Open Sans',
'Helvetica Neue',
sans-serif;
}

Expand Down

0 comments on commit 8132be1

Please sign in to comment.