Skip to content

Commit 02cac87

Browse files
committed
chore: update pro
1 parent ee2b985 commit 02cac87

File tree

97 files changed

+4825
-6531
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+4825
-6531
lines changed

.changeset/real-wombats-search.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@saas-ui/command-bar': patch
3+
'@saas-ui/date-picker': patch
4+
'@saas-ui/data-table': patch
5+
'@saas-ui/supabase': patch
6+
'@saas-ui/charts': patch
7+
'@saas-ui/modals': patch
8+
'@saas-ui/storybook-addon': patch
9+
'@saas-ui/clerk': patch
10+
'@saas-ui/forms': patch
11+
'@saas-ui/core': patch
12+
'@saas-ui/props-docs': patch
13+
'@saas-ui/test-utils': patch
14+
---
15+
16+
Updated dependencies

.changeset/two-melons-march.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@saas-ui/file-upload': minor
3+
---
4+
5+
Updated zag.js and deprecated properties

apps/palette/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"dependencies": {
1414
"@chakra-ui/react": "^2.8.2",
1515
"@chakra-ui/system": "2.6.2",
16-
"@emotion/react": "^11.11.3",
17-
"@emotion/styled": "^11.11.0",
16+
"@emotion/react": "^11.11.4",
17+
"@emotion/styled": "^11.11.5",
1818
"@fontsource/inter": "^4.5.15",
1919
"@saas-ui/next-workspaces": "^0.3.0",
2020
"@saas-ui/palette": "workspace:*",
@@ -24,16 +24,16 @@
2424
"@types/lodash.debounce": "^4.0.9",
2525
"framer-motion": "^10.18.0",
2626
"lodash.debounce": "^4.0.8",
27-
"next": "^14.2.3",
27+
"next": "^14.2.4",
2828
"next-seo": "^6.5.0",
29-
"react": "^18.2.0",
30-
"react-dom": "^18.2.0",
29+
"react": "^18.3.1",
30+
"react-dom": "^18.3.1",
3131
"react-icons": "^5.2.1"
3232
},
3333
"devDependencies": {
34-
"@types/react": "^18.2.56",
34+
"@types/react": "^18.3.3",
3535
"eslint": "^8.56.0",
36-
"eslint-config-next": "^14.1.0",
37-
"typescript": "^5.4.2"
36+
"eslint-config-next": "^14.2.4",
37+
"typescript": "^5.5.2"
3838
}
3939
}

apps/website/package.json

+25-25
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"typecheck": "tsc --noEmit"
1717
},
1818
"dependencies": {
19-
"@ark-ui/react": "^2.2.3",
19+
"@ark-ui/react": "^3.3.0",
2020
"@chakra-ui/icons": "^2.1.1",
2121
"@chakra-ui/next-js": "^2.2.0",
2222
"@chakra-ui/props-docs": "^2.2.1",
@@ -28,60 +28,60 @@
2828
"@dnd-kit/modifiers": "^7.0.0",
2929
"@dnd-kit/sortable": "^8.0.0",
3030
"@dnd-kit/utilities": "^3.2.2",
31-
"@emotion/react": "^11.11.3",
32-
"@emotion/styled": "^11.11.0",
33-
"@fontsource-variable/inter": "^5.0.16",
34-
"@mapbox/rehype-prism": "^0.8.0",
31+
"@emotion/react": "^11.11.4",
32+
"@emotion/styled": "^11.11.5",
33+
"@fontsource-variable/inter": "^5.0.18",
34+
"@mapbox/rehype-prism": "^0.9.0",
3535
"@mdx-js/loader": "^2.3.0",
36-
"@next/bundle-analyzer": "^14.2.3",
37-
"@octokit/rest": "^19.0.13",
36+
"@next/bundle-analyzer": "^14.2.4",
37+
"@octokit/rest": "^21.0.0",
3838
"@saas-ui/command-bar": "workspace:^",
3939
"@saas-ui/forms": "workspace:*",
4040
"@saas-ui/palette": "workspace:*",
4141
"@saas-ui/props-docs": "workspace:*",
4242
"@saas-ui/react": "workspace:*",
4343
"@supabase/ssr": "^0.3.0",
44-
"@supabase/supabase-js": "^2.43.2",
44+
"@supabase/supabase-js": "^2.43.5",
4545
"@svgr/webpack": "^5.5.0",
4646
"@vercel/og": "^0.6.2",
47-
"canvas-confetti": "^1.9.2",
48-
"change-case": "^5.4.3",
47+
"canvas-confetti": "^1.9.3",
48+
"change-case": "^5.4.4",
4949
"contentlayer2": "^0.4.6",
50-
"date-fns": "^3.3.1",
50+
"date-fns": "^3.6.0",
5151
"framer-motion": "^10.18.0",
5252
"github-slugger": "^2.0.0",
5353
"match-sorter": "^6.3.4",
54-
"next": "^14.2.3",
54+
"next": "^14.2.4",
5555
"next-contentlayer2": "^0.4.6",
5656
"next-mdx-remote": "^4.4.1",
5757
"next-seo": "^6.5.0",
5858
"prism-react-renderer": "^1.3.5",
59-
"react": "^18.2.0",
60-
"react-dom": "^18.2.0",
61-
"react-frame-component": "^5.2.6",
59+
"react": "^18.3.1",
60+
"react-dom": "^18.3.1",
61+
"react-frame-component": "^5.2.7",
6262
"react-icons": "^5.2.1",
63-
"react-intersection-observer": "^9.8.0",
64-
"react-live-runner": "^1.0.5",
63+
"react-intersection-observer": "^9.10.3",
64+
"react-live-runner": "^1.0.7",
6565
"react-markdown": "^8.0.7",
66-
"react-shadow": "^20.4.0",
66+
"react-shadow": "^20.5.0",
6767
"reading-time": "^1.5.0",
6868
"rehype-slug": "^6.0.0",
6969
"remark-code-titles": "^0.1.2",
7070
"remark-emoji": "^3.1.2",
7171
"remark-gfm": "^4.0.0",
7272
"yup": "^1.4.0",
73-
"zod": "^3.22.4"
73+
"zod": "^3.23.8"
7474
},
7575
"devDependencies": {
7676
"@netlify/plugin-nextjs": "^4.41.3",
77-
"@types/node": "^18.19.17",
78-
"@types/react": "^18.2.56",
77+
"@types/node": "^18.19.39",
78+
"@types/react": "^18.3.3",
7979
"concurrently": "^8.2.2",
80-
"electron-to-chromium": "^1.4.673",
80+
"electron-to-chromium": "^1.4.810",
8181
"eslint": "^8.56.0",
82-
"eslint-config-next": "^14.1.0",
82+
"eslint-config-next": "^14.2.4",
8383
"file-loader": "^6.2.0",
84-
"typescript": "^5.4.2",
85-
"webpack": "^5.91.0"
84+
"typescript": "^5.5.2",
85+
"webpack": "^5.92.1"
8686
}
8787
}

apps/website/src/pages/docs/components/advanced-data/filters/props.mdx

-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ scope: props
2727

2828
## Types
2929

30-
### Filter
31-
32-
<PropsTable of="Filter" />
33-
3430
### FilterItem
3531

3632
<PropsTable of="FilterItem" />

apps/website/src/pages/docs/components/forms/file-upload/usage.mdx

+21-41
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,19 @@ import {
4141

4242
export default function Basic() {
4343
return (
44-
<FileUpload
45-
/* Remove `getRootNode` in your code, only required for this example */
46-
getRootNode={getRootNode}
47-
maxFileSize={1024 * 1024}
48-
maxFiles={1}
49-
accept="image/*"
50-
>
51-
{({ files, deleteFile }) => (
44+
<FileUpload maxFileSize={1024 * 1024} maxFiles={1} accept="image/*">
45+
{({ acceptedFiles, deleteFile }) => (
5246
<FileUploadDropzone>
5347
<Text fontSize="sm">Drag your image here</Text>
54-
{!files?.length ? (
48+
{!acceptedFiles?.length ? (
5549
<FileUploadTrigger as={Button}>Select files</FileUploadTrigger>
5650
) : (
5751
<HStack>
58-
<Text fontSize="sm">{files[0].name}</Text>
52+
<Text fontSize="sm">{acceptedFiles[0].name}</Text>
5953
<Button
6054
onClick={(e) => {
6155
e.stopPropagation()
62-
deleteFile(files[0])
56+
deleteFile(acceptedFiles[0])
6357
}}
6458
>
6559
Clear
@@ -87,21 +81,15 @@ import {
8781

8882
export default function MultipleFiles() {
8983
return (
90-
<FileUpload
91-
/* Remove `getRootNode` in your code, only required for this example */
92-
getRootNode={getRootNode}
93-
maxFileSize={1024 * 1024}
94-
maxFiles={10}
95-
accept="image/*"
96-
>
97-
{({ files, clearFiles }) => (
84+
<FileUpload maxFileSize={1024 * 1024} maxFiles={10} accept="image/*">
85+
{({ acceptedFiles, clearFiles }) => (
9886
<FileUploadDropzone>
9987
<Text fontSize="sm">Drag your image(s) here</Text>
100-
{!files?.length ? (
88+
{!acceptedFiles?.length ? (
10189
<FileUploadTrigger as={Button}>Select image(s)</FileUploadTrigger>
10290
) : (
10391
<HStack>
104-
<Text fontSize="sm">{files.length} selected</Text>
92+
<Text fontSize="sm">{acceptedFiles.length} selected</Text>
10593
<Button
10694
onClick={(e) => {
10795
e.stopPropagation()
@@ -132,27 +120,21 @@ import {
132120

133121
export default function Basic() {
134122
return (
135-
<FileUpload
136-
/* Remove `getRootNode` in your code, only required for this example */
137-
getRootNode={getRootNode}
138-
maxFileSize={1024 * 1024}
139-
maxFiles={1}
140-
accept="image/*"
141-
>
142-
{({ files, deleteFile }) => (
123+
<FileUpload maxFileSize={1024 * 1024} maxFiles={1} accept="image/*">
124+
{({ acceptedFiles, deleteFile }) => (
143125
<FileUploadDropzone>
144-
{!files?.length ? (
126+
{!acceptedFiles?.length ? (
145127
<>
146128
<Text fontSize="sm">Drag your image here</Text>
147129
<FileUploadTrigger as={Button}>Select files</FileUploadTrigger>
148130
</>
149131
) : (
150132
<HStack>
151-
<FileUploadPreview file={files[0]} width="200px" />
133+
<FileUploadPreview file={acceptedFiles[0]} width="200px" />
152134
<Button
153135
onClick={(e) => {
154136
e.stopPropagation()
155-
deleteFile(files[0])
137+
deleteFile(acceptedFiles[0])
156138
}}
157139
>
158140
Remove
@@ -170,7 +152,7 @@ export default function Basic() {
170152
171153
FileUpload can be used in a `Form` by creating a custom field using `createField` provided by `@saas-ui/forms`.
172154
173-
Make sure `isControlled` is set to true and call the `onChange` handler inside the `onFilesChange` callback to pass the file to the form state.
155+
Make sure `isControlled` is set to true and call the `onChange` handler inside the `onFileChange` callback to pass the file to the form state.
174156
175157
```jsx
176158
import { Text, HStack } from '@chakra-ui/react'
@@ -186,29 +168,27 @@ const UploadField = createField(
186168
const { onChange, ...rest } = props
187169
return (
188170
<FileUpload
189-
/* Remove `getRootNode` in your code, only required for this example */
190-
getRootNode={getRootNode}
191171
maxFileSize={1024 * 1024}
192172
accept="image/*"
193173
{...rest}
194-
onFilesChange={(files) => {
195-
onChange(files.acceptedFiles[0])
174+
onFileChange={(files) => {
175+
onChange(files.acceptedFiles)
196176
}}
197177
maxFiles={1}
198178
inputRef={ref}
199179
>
200-
{({ files, deleteFile }) => (
180+
{({ acceptedFiles, deleteFile }) => (
201181
<FileUploadDropzone>
202182
<Text fontSize="sm">Drag your image here</Text>
203-
{!files?.length ? (
183+
{!acceptedFiles?.length ? (
204184
<FileUploadTrigger as={Button}>Select files</FileUploadTrigger>
205185
) : (
206186
<HStack>
207-
<Text fontSize="sm">{files[0].name}</Text>
187+
<Text fontSize="sm">{acceptedFiles[0].name}</Text>
208188
<Button
209189
onClick={(e) => {
210190
e.stopPropagation()
211-
deleteFile(files[0])
191+
deleteFile(acceptedFiles[0])
212192
}}
213193
>
214194
Clear

package.json

+24-24
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"build:web": "yarn w website build",
5252
"build:theme": "turbo run build --filter='./packages/saas-ui-theme'",
5353
"build:tokens": "chakra-cli tokens packages/saas-ui-theme/src/saas-ui/theme.ts",
54-
"build:packages": "turbo run build --filter='./packages/saas-ui-*' --filter='!./packages/pro/*' --concurrency=5 --no-deps --continue && yarn build:tokens",
55-
"build:packages:force": "turbo run build --filter='./packages/saas-ui-*' --filter='!./packages/pro/*' --concurrency=5 --no-deps --continue --force && yarn build:tokens",
54+
"build:packages": "turbo run build --filter='./packages/saas-ui-*' --filter='!./packages/pro/*' --concurrency=5 --continue && yarn build:tokens",
55+
"build:packages:force": "turbo run build --filter='./packages/saas-ui-*' --filter='!./packages/pro/*' --concurrency=5 --continue --force && yarn build:tokens",
5656
"watch:theme": "turbo run build --filter='./packages/saas-ui-theme' -- --watch",
5757
"clean:packages": "turbo run clean",
5858
"build:storybook-addon": "yarn w @saas-ui/storybook-addon build",
@@ -73,17 +73,17 @@
7373
"devDependencies": {
7474
"@chakra-ui/cli": "^2.4.1",
7575
"@chakra-ui/react": "^2.8.2",
76-
"@changesets/cli": "^2.27.2",
77-
"@emotion/react": "^11.11.3",
78-
"@emotion/styled": "^11.11.0",
76+
"@changesets/cli": "^2.27.5",
77+
"@emotion/react": "^11.11.4",
78+
"@emotion/styled": "^11.11.5",
7979
"@manypkg/get-packages": "^1.1.3",
80-
"@swc/core": "^1.5.7",
81-
"@types/node": "^18.19.17",
80+
"@swc/core": "^1.6.5",
81+
"@types/node": "^18.19.39",
8282
"@typescript-eslint/eslint-plugin": "^5.62.0",
8383
"@typescript-eslint/parser": "^5.62.0",
84-
"browserslist": "^4.23.0",
84+
"browserslist": "^4.23.1",
8585
"cross-env": "^7.0.3",
86-
"date-fns": "^3.3.1",
86+
"date-fns": "^3.6.0",
8787
"eslint": "^8.56.0",
8888
"eslint-config-prettier": "^8.10.0",
8989
"eslint-import-resolver-typescript": "^3.6.1",
@@ -96,36 +96,36 @@
9696
"lint-staged": "^13.3.0",
9797
"lodash": "^4.17.21",
9898
"node-releases": "^2.0.14",
99-
"prettier": "^3.2.5",
100-
"react": "^18.2.0",
101-
"react-dom": "^18.2.0",
99+
"prettier": "^3.3.2",
100+
"react": "^18.3.1",
101+
"react-dom": "^18.3.1",
102102
"react-icons": "^5.2.1",
103-
"react-is": "^18.2.0",
104-
"react-test-renderer": "^18.2.0",
103+
"react-is": "^18.3.1",
104+
"react-test-renderer": "^18.3.1",
105105
"rimraf": "^4.4.1",
106106
"ts-node": "^10.9.2",
107-
"tsup": "^8.0.2",
108-
"tsx": "^4.7.1",
109-
"turbo": "1.11.3",
110-
"typescript": "^5.4.2",
107+
"tsup": "^8.1.0",
108+
"tsx": "^4.15.7",
109+
"turbo": "2.0.4",
110+
"typescript": "^5.5.2",
111111
"vercel-submodules": "^1.0.10",
112-
"vitest": "^0.34.6",
112+
"vitest": "^1.6.0",
113113
"yup": "^1.4.0",
114-
"zod": "^3.22.4"
114+
"zod": "^3.23.8"
115115
},
116116
"resolutions": {
117117
"unist-util-visit": "4.0.0",
118118
"react": "18.2.0",
119119
"@emotion/react": "11.11.1",
120120
"@emotion/styled": "11.11.0",
121-
"@zag-js/core": "^0.38.1",
122-
"@zag-js/store": "^0.38.1",
123-
"@zag-js/file-upload": "^0.38.1",
121+
"@zag-js/core": "^0.56.1",
122+
"@zag-js/store": "^0.56.1",
123+
"@zag-js/file-upload": "^0.56.1",
124124
"@storybook/react-dom-shim@npm": "8.0.8",
125125
"@storybook/cli": "8.0.8"
126126
},
127127
"packageManager": "yarn@4.2.2",
128128
"dependencies": {
129-
"@microsoft/api-extractor": "^7.43.0"
129+
"@microsoft/api-extractor": "^7.47.0"
130130
}
131131
}

packages/pro

Submodule pro updated from 6d9339e to 02a4dcc

0 commit comments

Comments
 (0)