@webstudio-is/sdk-components-react-radix 0.87.0 → 0.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__generated__/accordion.props.js +0 -5
- package/lib/__generated__/button.props.js +0 -21
- package/lib/__generated__/checkbox.props.js +850 -0
- package/lib/__generated__/collapsible.props.js +0 -2
- package/lib/__generated__/dialog.props.js +0 -11
- package/lib/__generated__/label.props.js +0 -1
- package/lib/__generated__/navigation-menu.props.js +2104 -0
- package/lib/__generated__/popover.props.js +0 -3
- package/lib/__generated__/radio-group.props.js +1282 -0
- package/lib/__generated__/select.props.js +2962 -0
- package/lib/__generated__/sheet.props.js +0 -11
- package/lib/__generated__/switch.props.js +850 -0
- package/lib/__generated__/tabs.props.js +428 -5
- package/lib/__generated__/tooltip.props.js +0 -2
- package/lib/accordion.js +11 -4
- package/lib/accordion.ws.js +87 -72
- package/lib/checkbox.js +13 -0
- package/lib/checkbox.ws.js +151 -0
- package/lib/cjs/__generated__/accordion.props.js +0 -5
- package/lib/cjs/__generated__/button.props.js +0 -21
- package/lib/cjs/__generated__/checkbox.props.js +870 -0
- package/lib/cjs/__generated__/collapsible.props.js +0 -2
- package/lib/cjs/__generated__/dialog.props.js +0 -11
- package/lib/cjs/__generated__/label.props.js +0 -1
- package/lib/cjs/__generated__/navigation-menu.props.js +2124 -0
- package/lib/cjs/__generated__/popover.props.js +0 -3
- package/lib/cjs/__generated__/radio-group.props.js +1302 -0
- package/lib/cjs/__generated__/select.props.js +2982 -0
- package/lib/cjs/__generated__/sheet.props.js +0 -11
- package/lib/cjs/__generated__/switch.props.js +870 -0
- package/lib/cjs/__generated__/tabs.props.js +428 -5
- package/lib/cjs/__generated__/tooltip.props.js +0 -2
- package/lib/cjs/accordion.js +11 -4
- package/lib/cjs/accordion.ws.js +85 -71
- package/lib/cjs/{textarea.js → checkbox.js} +9 -6
- package/lib/cjs/checkbox.ws.js +172 -0
- package/lib/cjs/collapsible.ws.js +4 -1
- package/lib/cjs/components.js +27 -14
- package/lib/cjs/dialog.ws.js +17 -17
- package/lib/cjs/hooks.js +5 -1
- package/lib/cjs/label.ws.js +1 -1
- package/lib/cjs/metas.js +29 -14
- package/lib/cjs/navigation-menu.js +107 -0
- package/lib/cjs/navigation-menu.ws.js +513 -0
- package/lib/cjs/popover.ws.js +12 -9
- package/lib/cjs/props.js +27 -14
- package/lib/cjs/{button.js → radio-group.js} +10 -8
- package/lib/cjs/radio-group.ws.js +188 -0
- package/lib/cjs/select.js +81 -0
- package/lib/cjs/select.ws.js +349 -0
- package/lib/cjs/sheet.ws.js +87 -176
- package/lib/cjs/{input.js → switch.js} +8 -9
- package/lib/cjs/switch.ws.js +171 -0
- package/lib/cjs/tabs.js +2 -3
- package/lib/cjs/tabs.ws.js +13 -18
- package/lib/cjs/theme/styles.js +100 -0
- package/lib/cjs/theme/tailwind-classes.js +125 -16
- package/lib/cjs/theme/tailwind-colors.js +1 -0
- package/lib/cjs/tooltip.ws.js +11 -8
- package/lib/collapsible.ws.js +4 -1
- package/lib/components.js +44 -22
- package/lib/dialog.ws.js +17 -17
- package/lib/hooks.js +5 -1
- package/lib/label.ws.js +1 -1
- package/lib/metas.js +58 -24
- package/lib/navigation-menu.js +85 -0
- package/lib/navigation-menu.ws.js +500 -0
- package/lib/popover.ws.js +12 -9
- package/lib/props.js +56 -24
- package/lib/radio-group.js +11 -0
- package/lib/radio-group.ws.js +170 -0
- package/lib/select.js +73 -0
- package/lib/select.ws.js +337 -0
- package/lib/sheet.ws.js +88 -194
- package/lib/switch.js +7 -0
- package/lib/switch.ws.js +143 -0
- package/lib/tabs.js +3 -5
- package/lib/tabs.ws.js +14 -19
- package/lib/theme/styles.js +70 -0
- package/lib/theme/tailwind-classes.js +125 -16
- package/lib/theme/tailwind-colors.js +1 -0
- package/lib/tooltip.ws.js +11 -8
- package/lib/types/__generated__/checkbox.props.d.ts +3 -0
- package/lib/types/__generated__/navigation-menu.props.d.ts +8 -0
- package/lib/types/__generated__/radio-group.props.d.ts +4 -0
- package/lib/types/__generated__/select.props.d.ts +9 -0
- package/lib/types/__generated__/switch.props.d.ts +3 -0
- package/lib/types/checkbox.d.ts +6 -0
- package/lib/types/checkbox.stories.d.ts +11 -0
- package/lib/types/checkbox.ws.d.ts +5 -0
- package/lib/types/components.d.ts +5 -4
- package/lib/types/metas.d.ts +6 -4
- package/lib/types/navigation-menu.d.ts +15 -0
- package/lib/types/navigation-menu.ws.d.ts +15 -0
- package/lib/types/props.d.ts +5 -4
- package/lib/types/radio-group.d.ts +5 -0
- package/lib/types/radio-group.stories.d.ts +9 -0
- package/lib/types/radio-group.ws.d.ts +7 -0
- package/lib/types/select.d.ts +12 -0
- package/lib/types/select.ws.d.ts +17 -0
- package/lib/types/sheet.ws.d.ts +2 -15
- package/lib/types/switch.d.ts +4 -0
- package/lib/types/switch.stories.d.ts +9 -0
- package/lib/types/switch.ws.d.ts +5 -0
- package/lib/types/tabs.d.ts +3 -12
- package/lib/types/theme/radix-common-types.d.ts +3 -2
- package/lib/types/theme/styles.d.ts +215 -0
- package/lib/types/theme/tailwind-classes.d.ts +16 -6
- package/lib/types/theme/tailwind-colors.d.ts +1 -0
- package/lib/types/theme/tailwind-theme.d.ts +1 -1
- package/package.json +12 -7
- package/src/__generated__/accordion.props.ts +0 -5
- package/src/__generated__/button.props.ts +0 -21
- package/src/__generated__/checkbox.props.ts +948 -0
- package/src/__generated__/collapsible.props.ts +0 -2
- package/src/__generated__/dialog.props.ts +0 -11
- package/src/__generated__/label.props.ts +0 -1
- package/src/__generated__/navigation-menu.props.ts +2349 -0
- package/src/__generated__/popover.props.ts +0 -3
- package/src/__generated__/radio-group.props.ts +1429 -0
- package/src/__generated__/select.props.ts +3304 -0
- package/src/__generated__/sheet.props.ts +0 -11
- package/src/__generated__/switch.props.ts +948 -0
- package/src/__generated__/tabs.props.ts +477 -4
- package/src/__generated__/tooltip.props.ts +0 -2
- package/src/accordion.tsx +14 -7
- package/src/accordion.ws.ts +85 -70
- package/src/{textarea.stories.ts → checkbox.stories.ts} +6 -11
- package/src/checkbox.tsx +22 -0
- package/src/checkbox.ws.ts +151 -0
- package/src/collapsible.ws.ts +4 -1
- package/src/components.ts +25 -12
- package/src/dialog.ws.tsx +15 -16
- package/src/hooks.ts +4 -0
- package/src/label.ws.ts +1 -1
- package/src/metas.ts +36 -12
- package/src/navigation-menu.stories.tsx +21 -0
- package/src/navigation-menu.tsx +130 -0
- package/src/navigation-menu.ws.ts +523 -0
- package/src/popover.ws.tsx +12 -9
- package/src/props.ts +35 -12
- package/src/{input.stories.ts → radio-group.stories.ts} +6 -15
- package/src/radio-group.tsx +17 -0
- package/src/radio-group.ws.ts +174 -0
- package/src/select.stories.tsx +21 -0
- package/src/select.tsx +107 -0
- package/src/select.ws.ts +347 -0
- package/src/sheet.ws.tsx +89 -209
- package/src/{button.stories.ts → switch.stories.ts} +6 -19
- package/src/switch.tsx +10 -0
- package/src/switch.ws.ts +143 -0
- package/src/tabs.tsx +4 -17
- package/src/tabs.ws.ts +17 -19
- package/src/theme/radix-common-types.ts +3 -2
- package/src/theme/styles.ts +80 -0
- package/src/theme/tailwind-classes.ts +150 -14
- package/src/theme/tailwind-colors.ts +1 -0
- package/src/tooltip.ws.tsx +11 -8
- package/lib/button.js +0 -8
- package/lib/button.ws.js +0 -133
- package/lib/cjs/button.ws.js +0 -160
- package/lib/cjs/input.ws.js +0 -103
- package/lib/cjs/textarea.ws.js +0 -98
- package/lib/input.js +0 -8
- package/lib/input.ws.js +0 -75
- package/lib/textarea.js +0 -8
- package/lib/textarea.ws.js +0 -70
- package/lib/types/button.d.ts +0 -7
- package/lib/types/button.stories.d.ts +0 -20
- package/lib/types/button.ws.d.ts +0 -7
- package/lib/types/input.d.ts +0 -2
- package/lib/types/input.stories.d.ts +0 -20
- package/lib/types/input.ws.d.ts +0 -3
- package/lib/types/textarea.d.ts +0 -2
- package/lib/types/textarea.stories.d.ts +0 -14
- package/lib/types/textarea.ws.d.ts +0 -3
- package/src/button.tsx +0 -25
- package/src/button.ws.ts +0 -155
- package/src/input.tsx +0 -12
- package/src/input.ws.ts +0 -78
- package/src/textarea.tsx +0 -12
- package/src/textarea.ws.ts +0 -74
|
@@ -391,7 +391,6 @@ export const propsCollapsible: Record<string, PropMeta> = {
|
|
|
391
391
|
content: { required: false, control: "text", type: "string" },
|
|
392
392
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
393
393
|
datatype: { required: false, control: "text", type: "string" },
|
|
394
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
395
394
|
dir: { required: false, control: "text", type: "string" },
|
|
396
395
|
disabled: { required: false, control: "boolean", type: "boolean" },
|
|
397
396
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -860,7 +859,6 @@ export const propsCollapsibleContent: Record<string, PropMeta> = {
|
|
|
860
859
|
content: { required: false, control: "text", type: "string" },
|
|
861
860
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
862
861
|
datatype: { required: false, control: "text", type: "string" },
|
|
863
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
864
862
|
dir: { required: false, control: "text", type: "string" },
|
|
865
863
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
866
864
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { PropMeta } from "@webstudio-is/generate-arg-types";
|
|
2
2
|
|
|
3
3
|
export const propsDialog: Record<string, PropMeta> = {
|
|
4
|
-
modal: { required: false, control: "boolean", type: "boolean" },
|
|
5
4
|
open: { required: false, control: "boolean", type: "boolean" },
|
|
6
5
|
};
|
|
7
6
|
export const propsDialogTrigger: Record<string, PropMeta> = {};
|
|
@@ -387,7 +386,6 @@ export const propsDialogOverlay: Record<string, PropMeta> = {
|
|
|
387
386
|
control: "text",
|
|
388
387
|
type: "string",
|
|
389
388
|
},
|
|
390
|
-
asChild: { required: false, control: "boolean", type: "boolean" },
|
|
391
389
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
392
390
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
393
391
|
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -397,7 +395,6 @@ export const propsDialogOverlay: Record<string, PropMeta> = {
|
|
|
397
395
|
content: { required: false, control: "text", type: "string" },
|
|
398
396
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
399
397
|
datatype: { required: false, control: "text", type: "string" },
|
|
400
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
401
398
|
dir: { required: false, control: "text", type: "string" },
|
|
402
399
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
403
400
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -854,7 +851,6 @@ export const propsDialogContent: Record<string, PropMeta> = {
|
|
|
854
851
|
control: "text",
|
|
855
852
|
type: "string",
|
|
856
853
|
},
|
|
857
|
-
asChild: { required: false, control: "boolean", type: "boolean" },
|
|
858
854
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
859
855
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
860
856
|
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -864,7 +860,6 @@ export const propsDialogContent: Record<string, PropMeta> = {
|
|
|
864
860
|
content: { required: false, control: "text", type: "string" },
|
|
865
861
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
866
862
|
datatype: { required: false, control: "text", type: "string" },
|
|
867
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
868
863
|
dir: { required: false, control: "text", type: "string" },
|
|
869
864
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
870
865
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -1321,7 +1316,6 @@ export const propsDialogClose: Record<string, PropMeta> = {
|
|
|
1321
1316
|
control: "text",
|
|
1322
1317
|
type: "string",
|
|
1323
1318
|
},
|
|
1324
|
-
asChild: { required: false, control: "boolean", type: "boolean" },
|
|
1325
1319
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
1326
1320
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
1327
1321
|
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -1331,7 +1325,6 @@ export const propsDialogClose: Record<string, PropMeta> = {
|
|
|
1331
1325
|
content: { required: false, control: "text", type: "string" },
|
|
1332
1326
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
1333
1327
|
datatype: { required: false, control: "text", type: "string" },
|
|
1334
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
1335
1328
|
dir: { required: false, control: "text", type: "string" },
|
|
1336
1329
|
disabled: { required: false, control: "boolean", type: "boolean" },
|
|
1337
1330
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -1802,7 +1795,6 @@ export const propsDialogTitle: Record<string, PropMeta> = {
|
|
|
1802
1795
|
control: "text",
|
|
1803
1796
|
type: "string",
|
|
1804
1797
|
},
|
|
1805
|
-
asChild: { required: false, control: "boolean", type: "boolean" },
|
|
1806
1798
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
1807
1799
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
1808
1800
|
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -1812,7 +1804,6 @@ export const propsDialogTitle: Record<string, PropMeta> = {
|
|
|
1812
1804
|
content: { required: false, control: "text", type: "string" },
|
|
1813
1805
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
1814
1806
|
datatype: { required: false, control: "text", type: "string" },
|
|
1815
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
1816
1807
|
dir: { required: false, control: "text", type: "string" },
|
|
1817
1808
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
1818
1809
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -2269,7 +2260,6 @@ export const propsDialogDescription: Record<string, PropMeta> = {
|
|
|
2269
2260
|
control: "text",
|
|
2270
2261
|
type: "string",
|
|
2271
2262
|
},
|
|
2272
|
-
asChild: { required: false, control: "boolean", type: "boolean" },
|
|
2273
2263
|
autoCapitalize: { required: false, control: "text", type: "string" },
|
|
2274
2264
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
2275
2265
|
autoFocus: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -2279,7 +2269,6 @@ export const propsDialogDescription: Record<string, PropMeta> = {
|
|
|
2279
2269
|
content: { required: false, control: "text", type: "string" },
|
|
2280
2270
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
2281
2271
|
datatype: { required: false, control: "text", type: "string" },
|
|
2282
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
2283
2272
|
dir: { required: false, control: "text", type: "string" },
|
|
2284
2273
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
2285
2274
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -391,7 +391,6 @@ export const props: Record<string, PropMeta> = {
|
|
|
391
391
|
content: { required: false, control: "text", type: "string" },
|
|
392
392
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
393
393
|
datatype: { required: false, control: "text", type: "string" },
|
|
394
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
395
394
|
dir: { required: false, control: "text", type: "string" },
|
|
396
395
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
397
396
|
form: { required: false, control: "text", type: "string" },
|