Skip to content

Commit 91f8bcf

Browse files
committed
fix: generate properties json
1 parent 71740f3 commit 91f8bcf

File tree

43 files changed

+699
-7267
lines changed

Some content is hidden

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

43 files changed

+699
-7267
lines changed

lib/src/components/Accordion/docs/properties.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"description": "Determines whether the content should animate when it is shown or hidden.\n- If `true`, the `animating` state will be `true` when the content is shown\n or hidden and it will wait for a CSS animation/transition to end before\n becoming `false`.\n- If it's set to a number, the `animating` state will be `true` when the\n content is shown or hidden and it will wait for the number of\n milliseconds to pass before becoming `false`.\n@deprecated Manually setting the `animated` prop is no longer necessary.\nThis will be removed in a future release.",
77
"name": "animated",
88
"parent": {
9-
"fileName": "welcome-ui/node_modules/@ariakit/core/cjs/disclosure/disclosure-store.d.ts",
9+
"fileName": "welcome-ui/node_modules/@ariakit/core/esm/disclosure/disclosure-store.d.ts",
1010
"name": "DisclosureStoreOptions"
1111
},
1212
"declarations": [
1313
{
14-
"fileName": "welcome-ui/node_modules/@ariakit/core/cjs/disclosure/disclosure-store.d.ts",
14+
"fileName": "welcome-ui/node_modules/@ariakit/core/esm/disclosure/disclosure-store.d.ts",
1515
"name": "DisclosureStoreOptions"
1616
}
1717
],
@@ -39,12 +39,12 @@
3939
"description": "Whether the content should be visible by default.",
4040
"name": "defaultOpen",
4141
"parent": {
42-
"fileName": "welcome-ui/node_modules/@ariakit/core/cjs/disclosure/disclosure-store.d.ts",
42+
"fileName": "welcome-ui/node_modules/@ariakit/core/esm/disclosure/disclosure-store.d.ts",
4343
"name": "DisclosureStoreOptions"
4444
},
4545
"declarations": [
4646
{
47-
"fileName": "welcome-ui/node_modules/@ariakit/core/cjs/disclosure/disclosure-store.d.ts",
47+
"fileName": "welcome-ui/node_modules/@ariakit/core/esm/disclosure/disclosure-store.d.ts",
4848
"name": "DisclosureStoreOptions"
4949
}
5050
],
@@ -67,12 +67,12 @@
6767
"description": "A reference to another disclosure store that controls another disclosure\ncomponent to keep them in sync. Element states like `contentElement` and\n`disclosureElement` won't be synced. For that, use the\n[`store`](https://ariakit.org/reference/disclosure-provider#store) prop\ninstead.\n\nLive examples:\n- [Command Menu](https://ariakit.org/examples/dialog-combobox-command-menu)",
6868
"name": "disclosure",
6969
"parent": {
70-
"fileName": "welcome-ui/node_modules/@ariakit/react-core/cjs/disclosure/disclosure-store.d.ts",
70+
"fileName": "welcome-ui/node_modules/@ariakit/react-core/esm/disclosure/disclosure-store.d.ts",
7171
"name": "DisclosureStoreOptions"
7272
},
7373
"declarations": [
7474
{
75-
"fileName": "welcome-ui/node_modules/@ariakit/react-core/cjs/disclosure/disclosure-store.d.ts",
75+
"fileName": "welcome-ui/node_modules/@ariakit/react-core/esm/disclosure/disclosure-store.d.ts",
7676
"name": "DisclosureStoreOptions"
7777
}
7878
],
@@ -86,12 +86,12 @@
8686
"description": "A callback that gets called when the `mounted` state changes.\n@example const [mounted, setMounted] = useState(false);\nconst disclosure = useDisclosureStore({ setMounted });",
8787
"name": "setMounted",
8888
"parent": {
89-
"fileName": "welcome-ui/node_modules/@ariakit/react-core/cjs/disclosure/disclosure-store.d.ts",
89+
"fileName": "welcome-ui/node_modules/@ariakit/react-core/esm/disclosure/disclosure-store.d.ts",
9090
"name": "DisclosureStoreOptions"
9191
},
9292
"declarations": [
9393
{
94-
"fileName": "welcome-ui/node_modules/@ariakit/react-core/cjs/disclosure/disclosure-store.d.ts",
94+
"fileName": "welcome-ui/node_modules/@ariakit/react-core/esm/disclosure/disclosure-store.d.ts",
9595
"name": "DisclosureStoreOptions"
9696
}
9797
],
@@ -105,12 +105,12 @@
105105
"description": "A callback that gets called when the\n[`open`](https://ariakit.org/reference/disclosure-provider#open) state\nchanges.\n@example const [open, setOpen] = useState(false);\nconst disclosure = useDisclosureStore({ open, setOpen });",
106106
"name": "setOpen",
107107
"parent": {
108-
"fileName": "welcome-ui/node_modules/@ariakit/react-core/cjs/disclosure/disclosure-store.d.ts",
108+
"fileName": "welcome-ui/node_modules/@ariakit/react-core/esm/disclosure/disclosure-store.d.ts",
109109
"name": "DisclosureStoreOptions"
110110
},
111111
"declarations": [
112112
{
113-
"fileName": "welcome-ui/node_modules/@ariakit/react-core/cjs/disclosure/disclosure-store.d.ts",
113+
"fileName": "welcome-ui/node_modules/@ariakit/react-core/esm/disclosure/disclosure-store.d.ts",
114114
"name": "DisclosureStoreOptions"
115115
}
116116
],

lib/src/components/Alert/docs/properties.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,16 @@
157157
"raw": "Variant",
158158
"value": [
159159
{
160-
"value": "\"default\""
160+
"value": "\"ai\""
161+
},
162+
{
163+
"value": "\"beige\""
161164
},
162165
{
163166
"value": "\"danger\""
164167
},
165168
{
166-
"value": "\"warning\""
169+
"value": "\"default\""
167170
},
168171
{
169172
"value": "\"info\""
@@ -172,10 +175,7 @@
172175
"value": "\"success\""
173176
},
174177
{
175-
"value": "\"beige\""
176-
},
177-
{
178-
"value": "\"ai\""
178+
"value": "\"warning\""
179179
}
180180
]
181181
}

lib/src/components/Alert/theme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import type { CSSObject } from '@xstyled/styled-components'
22

33
import type { ThemeValues } from '@/theme'
44

5-
export type Size = 'md' | 'sm'
5+
// eslint-disable-next-line perfectionist/sort-union-types
6+
export type Size = 'sm' | 'md'
67

78
export type ThemeAlerts = Record<Variant, AttributesState> & {
89
default: CSSObject

lib/src/components/Avatar/docs/properties.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
{
6666
"value": "\"violet-40\""
6767
},
68+
{
69+
"value": "\"overlay\""
70+
},
6871
{
6972
"value": "\"primary-10\""
7073
},
@@ -110,9 +113,6 @@
110113
{
111114
"value": "\"secondary-violet\""
112115
},
113-
{
114-
"value": "\"overlay\""
115-
},
116116
{
117117
"value": "\"beige-10\""
118118
},
@@ -366,7 +366,7 @@
366366
"value": "\"violet-90\""
367367
},
368368
{
369-
"value": "string & Record<never, never>"
369+
"value": "Record<never, never> & string"
370370
}
371371
]
372372
}

lib/src/components/Avatar/theme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import type { ThemeColorTokens, ThemeValues } from '@/theme'
44
import type { LiteralUnion } from '@/utils'
55

66
export type AvatarColors = LiteralUnion<ThemeColorTokens>
7-
export type Size = 'lg' | 'md' | 'sm' | 'xl' | 'xxl'
7+
// eslint-disable-next-line perfectionist/sort-union-types
8+
export type Size = 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
89

910
export type ThemeAvatars = {
1011
sizes: Record<Size, string>

lib/src/components/Breadcrumb/docs/properties.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
{
6868
"value": "\"violet-40\""
6969
},
70+
{
71+
"value": "\"overlay\""
72+
},
7073
{
7174
"value": "\"primary-10\""
7275
},
@@ -112,9 +115,6 @@
112115
{
113116
"value": "\"secondary-violet\""
114117
},
115-
{
116-
"value": "\"overlay\""
117-
},
118118
{
119119
"value": "\"beige-10\""
120120
},

lib/src/components/Button/docs/properties.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"Button": {
3-
"tag": "button",
43
"props": {
54
"ai": {
65
"defaultValue": null,
@@ -199,6 +198,9 @@
199198
"name": "enum",
200199
"raw": "Variant",
201200
"value": [
201+
{
202+
"value": "\"ghost\""
203+
},
202204
{
203205
"value": "\"primary\""
204206
},
@@ -207,13 +209,11 @@
207209
},
208210
{
209211
"value": "\"tertiary\""
210-
},
211-
{
212-
"value": "\"ghost\""
213212
}
214213
]
215214
}
216215
}
217-
}
216+
},
217+
"tag": "button"
218218
}
219219
}

lib/src/components/Button/theme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import type { ThemeValues } from '@/theme'
55
import type { ThemeFocus } from '../../theme/focus'
66
import { hexToRGBA } from '../../utils/hex-to-rgba'
77

8-
export type Size = 'lg' | 'md' | 'sm' | 'xs'
8+
// eslint-disable-next-line perfectionist/sort-union-types
9+
export type Size = 'xs' | 'sm' | 'md' | 'lg'
910

1011
export type ThemeButtons = Record<
1112
'active',

lib/src/components/ButtonGroup/docs/properties.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@
8282
"name": "enum",
8383
"raw": "Variant",
8484
"value": [
85+
{
86+
"value": "\"ghost\""
87+
},
8588
{
8689
"value": "\"primary\""
8790
},
@@ -90,9 +93,6 @@
9093
},
9194
{
9295
"value": "\"tertiary\""
93-
},
94-
{
95-
"value": "\"ghost\""
9696
}
9797
]
9898
}

lib/src/components/DatePicker/docs/properties.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,29 @@
2727
"description": "",
2828
"name": "icon",
2929
"parent": {
30-
"fileName": "welcome-ui/node_modules/@types/react-datepicker/index.d.ts",
31-
"name": "ReactDatePickerProps"
30+
"fileName": "welcome-ui/lib/src/components/DateTimePickerCommon/CustomInput.tsx",
31+
"name": "CustomInputOptions"
3232
},
3333
"declarations": [
34-
{
35-
"fileName": "welcome-ui/node_modules/@types/react-datepicker/index.d.ts",
36-
"name": "ReactDatePickerProps"
37-
},
3834
{
3935
"fileName": "welcome-ui/lib/src/components/DateTimePickerCommon/CustomInput.tsx",
4036
"name": "CustomInputOptions"
37+
},
38+
{
39+
"fileName": "welcome-ui/node_modules/@types/react-datepicker/index.d.ts",
40+
"name": "ReactDatePickerProps"
4141
}
4242
],
4343
"required": false,
4444
"type": {
4545
"name": "enum",
46-
"raw": "(string | ReactElement<any, string | JSXElementConstructor<any>>) & Element",
46+
"raw": "Element & (string | ReactElement<any, string | JSXElementConstructor<any>>)",
4747
"value": [
4848
{
49-
"value": "string & Element"
49+
"value": "Element & string"
5050
},
5151
{
52-
"value": "ReactElement<any, string | JSXElementConstructor<any>> & Element"
52+
"value": "Element & ReactElement<any, string | JSXElementConstructor<any>>"
5353
}
5454
]
5555
}

0 commit comments

Comments
 (0)