@webstudio-is/sdk-components-react-radix 0.91.0 → 0.92.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 +6 -12
- package/lib/__generated__/checkbox.props.js +3 -6
- package/lib/__generated__/collapsible.props.js +4 -8
- package/lib/__generated__/dialog.props.js +8 -16
- package/lib/__generated__/label.props.js +2 -4
- package/lib/__generated__/navigation-menu.props.js +8 -16
- package/lib/__generated__/popover.props.js +4 -8
- package/lib/__generated__/radio-group.props.js +4 -8
- package/lib/__generated__/select.props.js +15 -19
- package/lib/__generated__/sheet.props.js +8 -16
- package/lib/__generated__/switch.props.js +3 -6
- package/lib/__generated__/tabs.props.js +5 -10
- package/lib/__generated__/tooltip.props.js +4 -8
- package/lib/accordion.js +7 -14
- package/{src/accordion.stories.tsx → lib/accordion.stories.js} +9 -12
- package/lib/accordion.ws.js +11 -22
- package/lib/checkbox.js +3 -6
- package/lib/checkbox.stories.js +19 -0
- package/lib/checkbox.ws.js +5 -10
- package/lib/collapsible.js +5 -10
- package/{src/collapsible.stories.tsx → lib/collapsible.stories.js} +9 -12
- package/lib/collapsible.ws.js +7 -14
- package/lib/components.js +13 -62
- package/lib/dialog.js +9 -18
- package/{src/dialog.stories.tsx → lib/dialog.stories.js} +9 -12
- package/lib/dialog.ws.js +15 -30
- package/lib/hooks.js +2 -4
- package/lib/label.js +2 -4
- package/lib/label.stories.js +19 -0
- package/lib/label.ws.js +3 -6
- package/lib/metas.js +55 -105
- package/lib/navigation-menu.js +9 -18
- package/{src/navigation-menu.stories.tsx → lib/navigation-menu.stories.js} +9 -12
- package/lib/navigation-menu.ws.js +16 -31
- package/lib/popover.js +5 -10
- package/{src/popover.stories.tsx → lib/popover.stories.js} +9 -12
- package/lib/popover.ws.js +7 -14
- package/lib/props-descriptions.js +2 -4
- package/lib/props.js +54 -103
- package/lib/radio-group.js +4 -8
- package/lib/radio-group.stories.js +19 -0
- package/lib/radio-group.ws.js +7 -14
- package/lib/select.js +10 -20
- package/{src/select.stories.tsx → lib/select.stories.js} +9 -12
- package/lib/select.ws.js +17 -34
- package/lib/sheet.js +9 -18
- package/{src/sheet.stories.tsx → lib/sheet.stories.js} +9 -12
- package/lib/sheet.ws.js +2 -4
- package/lib/switch.js +3 -6
- package/lib/switch.stories.js +19 -0
- package/lib/switch.ws.js +5 -10
- package/lib/tabs.js +6 -12
- package/{src/tabs.stories.tsx → lib/tabs.stories.js} +9 -12
- package/lib/tabs.ws.js +9 -18
- package/lib/theme/__generated__/tailwind-theme.js +517 -0
- package/lib/theme/styles.js +3 -6
- package/lib/theme/tailwind-classes.js +149 -301
- package/lib/theme/tailwind-colors.js +2 -4
- package/lib/tooltip.js +5 -10
- package/{src/tooltip.stories.tsx → lib/tooltip.stories.js} +9 -12
- package/lib/tooltip.ws.js +7 -14
- package/lib/types/__generated__/accordion.props.d.ts +1 -1
- package/lib/types/__generated__/checkbox.props.d.ts +1 -1
- package/lib/types/__generated__/collapsible.props.d.ts +1 -1
- package/lib/types/__generated__/dialog.props.d.ts +1 -1
- package/lib/types/__generated__/label.props.d.ts +1 -1
- package/lib/types/__generated__/navigation-menu.props.d.ts +1 -1
- package/lib/types/__generated__/popover.props.d.ts +1 -1
- package/lib/types/__generated__/radio-group.props.d.ts +1 -1
- package/lib/types/__generated__/select.props.d.ts +1 -1
- package/lib/types/__generated__/sheet.props.d.ts +1 -1
- package/lib/types/__generated__/switch.props.d.ts +1 -1
- package/lib/types/__generated__/tabs.props.d.ts +1 -1
- package/lib/types/__generated__/tooltip.props.d.ts +1 -1
- package/lib/types/accordion.d.ts +1 -1
- package/lib/types/sheet.d.ts +1 -1
- package/lib/types/theme/__generated__/tailwind-theme.d.ts +26 -0
- package/lib/types/theme/styles.d.ts +60 -60
- package/lib/types/theme/tailwind-classes.d.ts +33 -33
- package/package.json +20 -23
- package/lib/__generated__/button.props.js +0 -565
- package/lib/__generated__/input.props.js +0 -668
- package/lib/__generated__/textarea.props.js +0 -577
- package/lib/cjs/__generated__/accordion.props.js +0 -2645
- package/lib/cjs/__generated__/button.props.js +0 -585
- package/lib/cjs/__generated__/checkbox.props.js +0 -1103
- package/lib/cjs/__generated__/collapsible.props.js +0 -1050
- package/lib/cjs/__generated__/dialog.props.js +0 -2623
- package/lib/cjs/__generated__/input.props.js +0 -688
- package/lib/cjs/__generated__/label.props.js +0 -541
- package/lib/cjs/__generated__/navigation-menu.props.js +0 -2585
- package/lib/cjs/__generated__/popover.props.js +0 -582
- package/lib/cjs/__generated__/radio-group.props.js +0 -1647
- package/lib/cjs/__generated__/select.props.js +0 -3698
- package/lib/cjs/__generated__/sheet.props.js +0 -2642
- package/lib/cjs/__generated__/switch.props.js +0 -1103
- package/lib/cjs/__generated__/tabs.props.js +0 -2144
- package/lib/cjs/__generated__/textarea.props.js +0 -597
- package/lib/cjs/__generated__/tooltip.props.js +0 -593
- package/lib/cjs/accordion.js +0 -67
- package/lib/cjs/accordion.ws.js +0 -285
- package/lib/cjs/checkbox.js +0 -31
- package/lib/cjs/checkbox.ws.js +0 -174
- package/lib/cjs/collapsible.js +0 -53
- package/lib/cjs/collapsible.ws.js +0 -122
- package/lib/cjs/components.js +0 -82
- package/lib/cjs/dialog.js +0 -89
- package/lib/cjs/dialog.ws.js +0 -315
- package/lib/cjs/hooks.js +0 -43
- package/lib/cjs/label.js +0 -37
- package/lib/cjs/label.ws.js +0 -75
- package/lib/cjs/metas.js +0 -84
- package/lib/cjs/navigation-menu.js +0 -107
- package/lib/cjs/navigation-menu.ws.js +0 -514
- package/lib/cjs/package.json +0 -1
- package/lib/cjs/popover.js +0 -90
- package/lib/cjs/popover.ws.js +0 -142
- package/lib/cjs/props-descriptions.js +0 -56
- package/lib/cjs/props.js +0 -82
- package/lib/cjs/radio-group.js +0 -30
- package/lib/cjs/radio-group.ws.js +0 -191
- package/lib/cjs/select.js +0 -83
- package/lib/cjs/select.ws.js +0 -350
- package/lib/cjs/sheet.js +0 -96
- package/lib/cjs/sheet.ws.js +0 -257
- package/lib/cjs/switch.js +0 -27
- package/lib/cjs/switch.ws.js +0 -173
- package/lib/cjs/tabs.js +0 -59
- package/lib/cjs/tabs.ws.js +0 -196
- package/lib/cjs/theme/radix-common-types.js +0 -16
- package/lib/cjs/theme/styles.js +0 -96
- package/lib/cjs/theme/tailwind-classes.js +0 -819
- package/lib/cjs/theme/tailwind-colors.js +0 -45
- package/lib/cjs/theme/tailwind-theme.js +0 -46
- package/lib/cjs/tooltip.js +0 -87
- package/lib/cjs/tooltip.ws.js +0 -143
- package/lib/theme/radix-common-types.js +0 -0
- package/lib/theme/tailwind-theme.js +0 -16
- package/lib/types/__generated__/button.props.d.ts +0 -2
- package/lib/types/__generated__/input.props.d.ts +0 -2
- package/lib/types/__generated__/textarea.props.d.ts +0 -2
- package/lib/types/theme/radix-common-types.d.ts +0 -85
- package/lib/types/theme/tailwind-theme.d.ts +0 -72
- package/src/__generated__/accordion.props.ts +0 -2949
- package/src/__generated__/button.props.ts +0 -635
- package/src/__generated__/checkbox.props.ts +0 -1217
- package/src/__generated__/collapsible.props.ts +0 -1156
- package/src/__generated__/dialog.props.ts +0 -2923
- package/src/__generated__/input.props.ts +0 -748
- package/src/__generated__/label.props.ts +0 -585
- package/src/__generated__/navigation-menu.props.ts +0 -2882
- package/src/__generated__/popover.props.ts +0 -626
- package/src/__generated__/radio-group.props.ts +0 -1828
- package/src/__generated__/select.props.ts +0 -4130
- package/src/__generated__/sheet.props.ts +0 -2942
- package/src/__generated__/switch.props.ts +0 -1217
- package/src/__generated__/tabs.props.ts +0 -2386
- package/src/__generated__/textarea.props.ts +0 -645
- package/src/__generated__/tooltip.props.ts +0 -639
- package/src/accordion.tsx +0 -88
- package/src/accordion.ws.ts +0 -296
- package/src/checkbox.stories.ts +0 -22
- package/src/checkbox.tsx +0 -22
- package/src/checkbox.ws.ts +0 -154
- package/src/collapsible.tsx +0 -62
- package/src/collapsible.ws.ts +0 -115
- package/src/components.ts +0 -50
- package/src/dialog.tsx +0 -92
- package/src/dialog.ws.tsx +0 -320
- package/src/hooks.ts +0 -22
- package/src/label.stories.ts +0 -22
- package/src/label.tsx +0 -15
- package/src/label.ws.ts +0 -50
- package/src/metas.ts +0 -74
- package/src/navigation-menu.tsx +0 -130
- package/src/navigation-menu.ws.ts +0 -524
- package/src/popover.tsx +0 -96
- package/src/popover.ws.tsx +0 -128
- package/src/props-descriptions.ts +0 -43
- package/src/props.ts +0 -73
- package/src/radio-group.stories.ts +0 -22
- package/src/radio-group.tsx +0 -17
- package/src/radio-group.ws.ts +0 -178
- package/src/select.tsx +0 -112
- package/src/select.ws.ts +0 -349
- package/src/sheet.tsx +0 -79
- package/src/sheet.ws.tsx +0 -236
- package/src/switch.stories.ts +0 -22
- package/src/switch.tsx +0 -10
- package/src/switch.ws.ts +0 -146
- package/src/tabs.tsx +0 -64
- package/src/tabs.ws.ts +0 -198
- package/src/theme/radix-common-types.ts +0 -496
- package/src/theme/styles.ts +0 -76
- package/src/theme/tailwind-classes.ts +0 -1026
- package/src/theme/tailwind-colors.ts +0 -39
- package/src/theme/tailwind-theme.ts +0 -24
- package/src/tooltip.tsx +0 -95
- package/src/tooltip.ws.tsx +0 -130
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsAccordion = {
|
|
2
3
|
about: { required: false, control: "text", type: "string" },
|
|
3
4
|
accessKey: {
|
|
4
5
|
required: false,
|
|
@@ -525,7 +526,7 @@ const propsAccordion = {
|
|
|
525
526
|
},
|
|
526
527
|
vocab: { required: false, control: "text", type: "string" }
|
|
527
528
|
};
|
|
528
|
-
const propsAccordionItem = {
|
|
529
|
+
export const propsAccordionItem = {
|
|
529
530
|
about: { required: false, control: "text", type: "string" },
|
|
530
531
|
accessKey: {
|
|
531
532
|
required: false,
|
|
@@ -1043,7 +1044,7 @@ const propsAccordionItem = {
|
|
|
1043
1044
|
},
|
|
1044
1045
|
vocab: { required: false, control: "text", type: "string" }
|
|
1045
1046
|
};
|
|
1046
|
-
const propsAccordionHeader = {
|
|
1047
|
+
export const propsAccordionHeader = {
|
|
1047
1048
|
about: { required: false, control: "text", type: "string" },
|
|
1048
1049
|
accessKey: {
|
|
1049
1050
|
required: false,
|
|
@@ -1549,7 +1550,7 @@ const propsAccordionHeader = {
|
|
|
1549
1550
|
},
|
|
1550
1551
|
vocab: { required: false, control: "text", type: "string" }
|
|
1551
1552
|
};
|
|
1552
|
-
const propsAccordionTrigger = {
|
|
1553
|
+
export const propsAccordionTrigger = {
|
|
1553
1554
|
about: { required: false, control: "text", type: "string" },
|
|
1554
1555
|
accessKey: {
|
|
1555
1556
|
required: false,
|
|
@@ -2110,7 +2111,7 @@ const propsAccordionTrigger = {
|
|
|
2110
2111
|
},
|
|
2111
2112
|
vocab: { required: false, control: "text", type: "string" }
|
|
2112
2113
|
};
|
|
2113
|
-
const propsAccordionContent = {
|
|
2114
|
+
export const propsAccordionContent = {
|
|
2114
2115
|
about: { required: false, control: "text", type: "string" },
|
|
2115
2116
|
accessKey: {
|
|
2116
2117
|
required: false,
|
|
@@ -2616,10 +2617,3 @@ const propsAccordionContent = {
|
|
|
2616
2617
|
},
|
|
2617
2618
|
vocab: { required: false, control: "text", type: "string" }
|
|
2618
2619
|
};
|
|
2619
|
-
export {
|
|
2620
|
-
propsAccordion,
|
|
2621
|
-
propsAccordionContent,
|
|
2622
|
-
propsAccordionHeader,
|
|
2623
|
-
propsAccordionItem,
|
|
2624
|
-
propsAccordionTrigger
|
|
2625
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsCheckbox = {
|
|
2
3
|
about: { required: false, control: "text", type: "string" },
|
|
3
4
|
accessKey: {
|
|
4
5
|
required: false,
|
|
@@ -571,7 +572,7 @@ const propsCheckbox = {
|
|
|
571
572
|
},
|
|
572
573
|
vocab: { required: false, control: "text", type: "string" }
|
|
573
574
|
};
|
|
574
|
-
const propsCheckboxIndicator = {
|
|
575
|
+
export const propsCheckboxIndicator = {
|
|
575
576
|
about: { required: false, control: "text", type: "string" },
|
|
576
577
|
accessKey: {
|
|
577
578
|
required: false,
|
|
@@ -1077,7 +1078,3 @@ const propsCheckboxIndicator = {
|
|
|
1077
1078
|
},
|
|
1078
1079
|
vocab: { required: false, control: "text", type: "string" }
|
|
1079
1080
|
};
|
|
1080
|
-
export {
|
|
1081
|
-
propsCheckbox,
|
|
1082
|
-
propsCheckboxIndicator
|
|
1083
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsCollapsible = {
|
|
2
3
|
about: { required: false, control: "text", type: "string" },
|
|
3
4
|
accessKey: {
|
|
4
5
|
required: false,
|
|
@@ -516,8 +517,8 @@ const propsCollapsible = {
|
|
|
516
517
|
},
|
|
517
518
|
vocab: { required: false, control: "text", type: "string" }
|
|
518
519
|
};
|
|
519
|
-
const propsCollapsibleTrigger = {};
|
|
520
|
-
const propsCollapsibleContent = {
|
|
520
|
+
export const propsCollapsibleTrigger = {};
|
|
521
|
+
export const propsCollapsibleContent = {
|
|
521
522
|
about: { required: false, control: "text", type: "string" },
|
|
522
523
|
accessKey: {
|
|
523
524
|
required: false,
|
|
@@ -1023,8 +1024,3 @@ const propsCollapsibleContent = {
|
|
|
1023
1024
|
},
|
|
1024
1025
|
vocab: { required: false, control: "text", type: "string" }
|
|
1025
1026
|
};
|
|
1026
|
-
export {
|
|
1027
|
-
propsCollapsible,
|
|
1028
|
-
propsCollapsibleContent,
|
|
1029
|
-
propsCollapsibleTrigger
|
|
1030
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsDialog = {
|
|
2
3
|
open: {
|
|
3
4
|
required: false,
|
|
4
5
|
control: "boolean",
|
|
@@ -6,8 +7,8 @@ const propsDialog = {
|
|
|
6
7
|
description: "Show or hide the content of this component on the canvas. This will not affect the initial state of the component."
|
|
7
8
|
}
|
|
8
9
|
};
|
|
9
|
-
const propsDialogTrigger = {};
|
|
10
|
-
const propsDialogOverlay = {
|
|
10
|
+
export const propsDialogTrigger = {};
|
|
11
|
+
export const propsDialogOverlay = {
|
|
11
12
|
about: { required: false, control: "text", type: "string" },
|
|
12
13
|
accessKey: {
|
|
13
14
|
required: false,
|
|
@@ -513,7 +514,7 @@ const propsDialogOverlay = {
|
|
|
513
514
|
},
|
|
514
515
|
vocab: { required: false, control: "text", type: "string" }
|
|
515
516
|
};
|
|
516
|
-
const propsDialogContent = {
|
|
517
|
+
export const propsDialogContent = {
|
|
517
518
|
about: { required: false, control: "text", type: "string" },
|
|
518
519
|
accessKey: {
|
|
519
520
|
required: false,
|
|
@@ -1019,7 +1020,7 @@ const propsDialogContent = {
|
|
|
1019
1020
|
},
|
|
1020
1021
|
vocab: { required: false, control: "text", type: "string" }
|
|
1021
1022
|
};
|
|
1022
|
-
const propsDialogClose = {
|
|
1023
|
+
export const propsDialogClose = {
|
|
1023
1024
|
about: { required: false, control: "text", type: "string" },
|
|
1024
1025
|
accessKey: {
|
|
1025
1026
|
required: false,
|
|
@@ -1580,7 +1581,7 @@ const propsDialogClose = {
|
|
|
1580
1581
|
},
|
|
1581
1582
|
vocab: { required: false, control: "text", type: "string" }
|
|
1582
1583
|
};
|
|
1583
|
-
const propsDialogTitle = {
|
|
1584
|
+
export const propsDialogTitle = {
|
|
1584
1585
|
about: { required: false, control: "text", type: "string" },
|
|
1585
1586
|
accessKey: {
|
|
1586
1587
|
required: false,
|
|
@@ -2086,7 +2087,7 @@ const propsDialogTitle = {
|
|
|
2086
2087
|
},
|
|
2087
2088
|
vocab: { required: false, control: "text", type: "string" }
|
|
2088
2089
|
};
|
|
2089
|
-
const propsDialogDescription = {
|
|
2090
|
+
export const propsDialogDescription = {
|
|
2090
2091
|
about: { required: false, control: "text", type: "string" },
|
|
2091
2092
|
accessKey: {
|
|
2092
2093
|
required: false,
|
|
@@ -2592,12 +2593,3 @@ const propsDialogDescription = {
|
|
|
2592
2593
|
},
|
|
2593
2594
|
vocab: { required: false, control: "text", type: "string" }
|
|
2594
2595
|
};
|
|
2595
|
-
export {
|
|
2596
|
-
propsDialog,
|
|
2597
|
-
propsDialogClose,
|
|
2598
|
-
propsDialogContent,
|
|
2599
|
-
propsDialogDescription,
|
|
2600
|
-
propsDialogOverlay,
|
|
2601
|
-
propsDialogTitle,
|
|
2602
|
-
propsDialogTrigger
|
|
2603
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const props = {
|
|
2
3
|
about: { required: false, control: "text", type: "string" },
|
|
3
4
|
accessKey: {
|
|
4
5
|
required: false,
|
|
@@ -516,6 +517,3 @@ const props = {
|
|
|
516
517
|
},
|
|
517
518
|
vocab: { required: false, control: "text", type: "string" }
|
|
518
519
|
};
|
|
519
|
-
export {
|
|
520
|
-
props
|
|
521
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsNavigationMenu = {
|
|
2
3
|
about: { required: false, control: "text", type: "string" },
|
|
3
4
|
accessKey: {
|
|
4
5
|
required: false,
|
|
@@ -516,7 +517,7 @@ const propsNavigationMenu = {
|
|
|
516
517
|
},
|
|
517
518
|
vocab: { required: false, control: "text", type: "string" }
|
|
518
519
|
};
|
|
519
|
-
const propsNavigationMenuList = {
|
|
520
|
+
export const propsNavigationMenuList = {
|
|
520
521
|
about: { required: false, control: "text", type: "string" },
|
|
521
522
|
accessKey: {
|
|
522
523
|
required: false,
|
|
@@ -1022,7 +1023,7 @@ const propsNavigationMenuList = {
|
|
|
1022
1023
|
},
|
|
1023
1024
|
vocab: { required: false, control: "text", type: "string" }
|
|
1024
1025
|
};
|
|
1025
|
-
const propsNavigationMenuViewport = {
|
|
1026
|
+
export const propsNavigationMenuViewport = {
|
|
1026
1027
|
about: { required: false, control: "text", type: "string" },
|
|
1027
1028
|
accessKey: {
|
|
1028
1029
|
required: false,
|
|
@@ -1528,7 +1529,7 @@ const propsNavigationMenuViewport = {
|
|
|
1528
1529
|
},
|
|
1529
1530
|
vocab: { required: false, control: "text", type: "string" }
|
|
1530
1531
|
};
|
|
1531
|
-
const propsNavigationMenuContent = {
|
|
1532
|
+
export const propsNavigationMenuContent = {
|
|
1532
1533
|
about: { required: false, control: "text", type: "string" },
|
|
1533
1534
|
accessKey: {
|
|
1534
1535
|
required: false,
|
|
@@ -2040,7 +2041,7 @@ const propsNavigationMenuContent = {
|
|
|
2040
2041
|
},
|
|
2041
2042
|
vocab: { required: false, control: "text", type: "string" }
|
|
2042
2043
|
};
|
|
2043
|
-
const propsNavigationMenuItem = {
|
|
2044
|
+
export const propsNavigationMenuItem = {
|
|
2044
2045
|
about: { required: false, control: "text", type: "string" },
|
|
2045
2046
|
accessKey: {
|
|
2046
2047
|
required: false,
|
|
@@ -2552,14 +2553,5 @@ const propsNavigationMenuItem = {
|
|
|
2552
2553
|
},
|
|
2553
2554
|
vocab: { required: false, control: "text", type: "string" }
|
|
2554
2555
|
};
|
|
2555
|
-
const propsNavigationMenuLink = {};
|
|
2556
|
-
const propsNavigationMenuTrigger = {};
|
|
2557
|
-
export {
|
|
2558
|
-
propsNavigationMenu,
|
|
2559
|
-
propsNavigationMenuContent,
|
|
2560
|
-
propsNavigationMenuItem,
|
|
2561
|
-
propsNavigationMenuLink,
|
|
2562
|
-
propsNavigationMenuList,
|
|
2563
|
-
propsNavigationMenuTrigger,
|
|
2564
|
-
propsNavigationMenuViewport
|
|
2565
|
-
};
|
|
2556
|
+
export const propsNavigationMenuLink = {};
|
|
2557
|
+
export const propsNavigationMenuTrigger = {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsPopover = {
|
|
2
3
|
open: {
|
|
3
4
|
required: false,
|
|
4
5
|
control: "boolean",
|
|
@@ -6,8 +7,8 @@ const propsPopover = {
|
|
|
6
7
|
description: "Show or hide the content of this component on the canvas. This will not affect the initial state of the component."
|
|
7
8
|
}
|
|
8
9
|
};
|
|
9
|
-
const propsPopoverTrigger = {};
|
|
10
|
-
const propsPopoverContent = {
|
|
10
|
+
export const propsPopoverTrigger = {};
|
|
11
|
+
export const propsPopoverContent = {
|
|
11
12
|
about: { required: false, control: "text", type: "string" },
|
|
12
13
|
accessKey: {
|
|
13
14
|
required: false,
|
|
@@ -555,8 +556,3 @@ const propsPopoverContent = {
|
|
|
555
556
|
},
|
|
556
557
|
vocab: { required: false, control: "text", type: "string" }
|
|
557
558
|
};
|
|
558
|
-
export {
|
|
559
|
-
propsPopover,
|
|
560
|
-
propsPopoverContent,
|
|
561
|
-
propsPopoverTrigger
|
|
562
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsRadioGroup = {
|
|
2
3
|
about: { required: false, control: "text", type: "string" },
|
|
3
4
|
accessKey: {
|
|
4
5
|
required: false,
|
|
@@ -541,7 +542,7 @@ const propsRadioGroup = {
|
|
|
541
542
|
},
|
|
542
543
|
vocab: { required: false, control: "text", type: "string" }
|
|
543
544
|
};
|
|
544
|
-
const propsRadioGroupItem = {
|
|
545
|
+
export const propsRadioGroupItem = {
|
|
545
546
|
about: { required: false, control: "text", type: "string" },
|
|
546
547
|
accessKey: {
|
|
547
548
|
required: false,
|
|
@@ -1114,7 +1115,7 @@ const propsRadioGroupItem = {
|
|
|
1114
1115
|
},
|
|
1115
1116
|
vocab: { required: false, control: "text", type: "string" }
|
|
1116
1117
|
};
|
|
1117
|
-
const propsRadioGroupIndicator = {
|
|
1118
|
+
export const propsRadioGroupIndicator = {
|
|
1118
1119
|
about: { required: false, control: "text", type: "string" },
|
|
1119
1120
|
accessKey: {
|
|
1120
1121
|
required: false,
|
|
@@ -1620,8 +1621,3 @@ const propsRadioGroupIndicator = {
|
|
|
1620
1621
|
},
|
|
1621
1622
|
vocab: { required: false, control: "text", type: "string" }
|
|
1622
1623
|
};
|
|
1623
|
-
export {
|
|
1624
|
-
propsRadioGroup,
|
|
1625
|
-
propsRadioGroupIndicator,
|
|
1626
|
-
propsRadioGroupItem
|
|
1627
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsSelect = {
|
|
2
3
|
autoComplete: {
|
|
3
4
|
required: false,
|
|
4
5
|
control: "text",
|
|
@@ -43,7 +44,7 @@ const propsSelect = {
|
|
|
43
44
|
description: "Defines a default value which will be displayed in the element on pageload."
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
|
-
const propsSelectTrigger = {
|
|
47
|
+
export const propsSelectTrigger = {
|
|
47
48
|
about: { required: false, control: "text", type: "string" },
|
|
48
49
|
accessKey: {
|
|
49
50
|
required: false,
|
|
@@ -604,7 +605,7 @@ const propsSelectTrigger = {
|
|
|
604
605
|
},
|
|
605
606
|
vocab: { required: false, control: "text", type: "string" }
|
|
606
607
|
};
|
|
607
|
-
const propsSelectValue = {
|
|
608
|
+
export const propsSelectValue = {
|
|
608
609
|
about: { required: false, control: "text", type: "string" },
|
|
609
610
|
accessKey: {
|
|
610
611
|
required: false,
|
|
@@ -1035,7 +1036,12 @@ const propsSelectValue = {
|
|
|
1035
1036
|
description: "Defines the language used in the element."
|
|
1036
1037
|
},
|
|
1037
1038
|
nonce: { required: false, control: "text", type: "string" },
|
|
1038
|
-
placeholder: {
|
|
1039
|
+
placeholder: {
|
|
1040
|
+
required: false,
|
|
1041
|
+
control: "text",
|
|
1042
|
+
type: "string",
|
|
1043
|
+
description: "Provides a hint to the user of what can be entered in the field."
|
|
1044
|
+
},
|
|
1039
1045
|
prefix: { required: false, control: "text", type: "string" },
|
|
1040
1046
|
property: { required: false, control: "text", type: "string" },
|
|
1041
1047
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
@@ -1105,7 +1111,7 @@ const propsSelectValue = {
|
|
|
1105
1111
|
},
|
|
1106
1112
|
vocab: { required: false, control: "text", type: "string" }
|
|
1107
1113
|
};
|
|
1108
|
-
const propsSelectContent = {
|
|
1114
|
+
export const propsSelectContent = {
|
|
1109
1115
|
about: { required: false, control: "text", type: "string" },
|
|
1110
1116
|
accessKey: {
|
|
1111
1117
|
required: false,
|
|
@@ -1629,7 +1635,7 @@ const propsSelectContent = {
|
|
|
1629
1635
|
},
|
|
1630
1636
|
vocab: { required: false, control: "text", type: "string" }
|
|
1631
1637
|
};
|
|
1632
|
-
const propsSelectViewport = {
|
|
1638
|
+
export const propsSelectViewport = {
|
|
1633
1639
|
about: { required: false, control: "text", type: "string" },
|
|
1634
1640
|
accessKey: {
|
|
1635
1641
|
required: false,
|
|
@@ -2135,7 +2141,7 @@ const propsSelectViewport = {
|
|
|
2135
2141
|
},
|
|
2136
2142
|
vocab: { required: false, control: "text", type: "string" }
|
|
2137
2143
|
};
|
|
2138
|
-
const propsSelectItem = {
|
|
2144
|
+
export const propsSelectItem = {
|
|
2139
2145
|
about: { required: false, control: "text", type: "string" },
|
|
2140
2146
|
accessKey: {
|
|
2141
2147
|
required: false,
|
|
@@ -2654,7 +2660,7 @@ const propsSelectItem = {
|
|
|
2654
2660
|
},
|
|
2655
2661
|
vocab: { required: false, control: "text", type: "string" }
|
|
2656
2662
|
};
|
|
2657
|
-
const propsSelectItemIndicator = {
|
|
2663
|
+
export const propsSelectItemIndicator = {
|
|
2658
2664
|
about: { required: false, control: "text", type: "string" },
|
|
2659
2665
|
accessKey: {
|
|
2660
2666
|
required: false,
|
|
@@ -3160,7 +3166,7 @@ const propsSelectItemIndicator = {
|
|
|
3160
3166
|
},
|
|
3161
3167
|
vocab: { required: false, control: "text", type: "string" }
|
|
3162
3168
|
};
|
|
3163
|
-
const propsSelectItemText = {
|
|
3169
|
+
export const propsSelectItemText = {
|
|
3164
3170
|
about: { required: false, control: "text", type: "string" },
|
|
3165
3171
|
accessKey: {
|
|
3166
3172
|
required: false,
|
|
@@ -3666,13 +3672,3 @@ const propsSelectItemText = {
|
|
|
3666
3672
|
},
|
|
3667
3673
|
vocab: { required: false, control: "text", type: "string" }
|
|
3668
3674
|
};
|
|
3669
|
-
export {
|
|
3670
|
-
propsSelect,
|
|
3671
|
-
propsSelectContent,
|
|
3672
|
-
propsSelectItem,
|
|
3673
|
-
propsSelectItemIndicator,
|
|
3674
|
-
propsSelectItemText,
|
|
3675
|
-
propsSelectTrigger,
|
|
3676
|
-
propsSelectValue,
|
|
3677
|
-
propsSelectViewport
|
|
3678
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsSheet = {
|
|
2
3
|
open: {
|
|
3
4
|
required: false,
|
|
4
5
|
control: "boolean",
|
|
@@ -6,8 +7,8 @@ const propsSheet = {
|
|
|
6
7
|
description: "Show or hide the content of this component on the canvas. This will not affect the initial state of the component."
|
|
7
8
|
}
|
|
8
9
|
};
|
|
9
|
-
const propsSheetTrigger = {};
|
|
10
|
-
const propsSheetOverlay = {
|
|
10
|
+
export const propsSheetTrigger = {};
|
|
11
|
+
export const propsSheetOverlay = {
|
|
11
12
|
about: { required: false, control: "text", type: "string" },
|
|
12
13
|
accessKey: {
|
|
13
14
|
required: false,
|
|
@@ -514,7 +515,7 @@ const propsSheetOverlay = {
|
|
|
514
515
|
},
|
|
515
516
|
vocab: { required: false, control: "text", type: "string" }
|
|
516
517
|
};
|
|
517
|
-
const propsSheetClose = {
|
|
518
|
+
export const propsSheetClose = {
|
|
518
519
|
about: { required: false, control: "text", type: "string" },
|
|
519
520
|
accessKey: {
|
|
520
521
|
required: false,
|
|
@@ -1076,7 +1077,7 @@ const propsSheetClose = {
|
|
|
1076
1077
|
},
|
|
1077
1078
|
vocab: { required: false, control: "text", type: "string" }
|
|
1078
1079
|
};
|
|
1079
|
-
const propsSheetTitle = {
|
|
1080
|
+
export const propsSheetTitle = {
|
|
1080
1081
|
about: { required: false, control: "text", type: "string" },
|
|
1081
1082
|
accessKey: {
|
|
1082
1083
|
required: false,
|
|
@@ -1583,7 +1584,7 @@ const propsSheetTitle = {
|
|
|
1583
1584
|
},
|
|
1584
1585
|
vocab: { required: false, control: "text", type: "string" }
|
|
1585
1586
|
};
|
|
1586
|
-
const propsSheetDescription = {
|
|
1587
|
+
export const propsSheetDescription = {
|
|
1587
1588
|
about: { required: false, control: "text", type: "string" },
|
|
1588
1589
|
accessKey: {
|
|
1589
1590
|
required: false,
|
|
@@ -2090,7 +2091,7 @@ const propsSheetDescription = {
|
|
|
2090
2091
|
},
|
|
2091
2092
|
vocab: { required: false, control: "text", type: "string" }
|
|
2092
2093
|
};
|
|
2093
|
-
const propsSheetContent = {
|
|
2094
|
+
export const propsSheetContent = {
|
|
2094
2095
|
about: { required: false, control: "text", type: "string" },
|
|
2095
2096
|
accessKey: {
|
|
2096
2097
|
required: false,
|
|
@@ -2611,12 +2612,3 @@ const propsSheetContent = {
|
|
|
2611
2612
|
},
|
|
2612
2613
|
vocab: { required: false, control: "text", type: "string" }
|
|
2613
2614
|
};
|
|
2614
|
-
export {
|
|
2615
|
-
propsSheet,
|
|
2616
|
-
propsSheetClose,
|
|
2617
|
-
propsSheetContent,
|
|
2618
|
-
propsSheetDescription,
|
|
2619
|
-
propsSheetOverlay,
|
|
2620
|
-
propsSheetTitle,
|
|
2621
|
-
propsSheetTrigger
|
|
2622
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsSwitch = {
|
|
2
3
|
about: { required: false, control: "text", type: "string" },
|
|
3
4
|
accessKey: {
|
|
4
5
|
required: false,
|
|
@@ -571,7 +572,7 @@ const propsSwitch = {
|
|
|
571
572
|
},
|
|
572
573
|
vocab: { required: false, control: "text", type: "string" }
|
|
573
574
|
};
|
|
574
|
-
const propsSwitchThumb = {
|
|
575
|
+
export const propsSwitchThumb = {
|
|
575
576
|
about: { required: false, control: "text", type: "string" },
|
|
576
577
|
accessKey: {
|
|
577
578
|
required: false,
|
|
@@ -1077,7 +1078,3 @@ const propsSwitchThumb = {
|
|
|
1077
1078
|
},
|
|
1078
1079
|
vocab: { required: false, control: "text", type: "string" }
|
|
1079
1080
|
};
|
|
1080
|
-
export {
|
|
1081
|
-
propsSwitch,
|
|
1082
|
-
propsSwitchThumb
|
|
1083
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsTabs = {
|
|
2
3
|
about: { required: false, control: "text", type: "string" },
|
|
3
4
|
accessKey: {
|
|
4
5
|
required: false,
|
|
@@ -525,7 +526,7 @@ const propsTabs = {
|
|
|
525
526
|
},
|
|
526
527
|
vocab: { required: false, control: "text", type: "string" }
|
|
527
528
|
};
|
|
528
|
-
const propsTabsList = {
|
|
529
|
+
export const propsTabsList = {
|
|
529
530
|
about: { required: false, control: "text", type: "string" },
|
|
530
531
|
accessKey: {
|
|
531
532
|
required: false,
|
|
@@ -1037,7 +1038,7 @@ const propsTabsList = {
|
|
|
1037
1038
|
},
|
|
1038
1039
|
vocab: { required: false, control: "text", type: "string" }
|
|
1039
1040
|
};
|
|
1040
|
-
const propsTabsTrigger = {
|
|
1041
|
+
export const propsTabsTrigger = {
|
|
1041
1042
|
about: { required: false, control: "text", type: "string" },
|
|
1042
1043
|
accessKey: {
|
|
1043
1044
|
required: false,
|
|
@@ -1604,7 +1605,7 @@ const propsTabsTrigger = {
|
|
|
1604
1605
|
},
|
|
1605
1606
|
vocab: { required: false, control: "text", type: "string" }
|
|
1606
1607
|
};
|
|
1607
|
-
const propsTabsContent = {
|
|
1608
|
+
export const propsTabsContent = {
|
|
1608
1609
|
about: { required: false, control: "text", type: "string" },
|
|
1609
1610
|
accessKey: {
|
|
1610
1611
|
required: false,
|
|
@@ -2116,9 +2117,3 @@ const propsTabsContent = {
|
|
|
2116
2117
|
},
|
|
2117
2118
|
vocab: { required: false, control: "text", type: "string" }
|
|
2118
2119
|
};
|
|
2119
|
-
export {
|
|
2120
|
-
propsTabs,
|
|
2121
|
-
propsTabsContent,
|
|
2122
|
-
propsTabsList,
|
|
2123
|
-
propsTabsTrigger
|
|
2124
|
-
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
export const propsTooltip = {
|
|
2
3
|
delayDuration: {
|
|
3
4
|
description: "The delay before the Tooltip shows after the Trigger is hovered, in milliseconds. If no value is specified, the default is 700ms",
|
|
4
5
|
required: false,
|
|
@@ -18,8 +19,8 @@ const propsTooltip = {
|
|
|
18
19
|
description: "Show or hide the content of this component on the canvas. This will not affect the initial state of the component."
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
|
-
const propsTooltipTrigger = {};
|
|
22
|
-
const propsTooltipContent = {
|
|
22
|
+
export const propsTooltipTrigger = {};
|
|
23
|
+
export const propsTooltipContent = {
|
|
23
24
|
about: { required: false, control: "text", type: "string" },
|
|
24
25
|
accessKey: {
|
|
25
26
|
required: false,
|
|
@@ -566,8 +567,3 @@ const propsTooltipContent = {
|
|
|
566
567
|
},
|
|
567
568
|
vocab: { required: false, control: "text", type: "string" }
|
|
568
569
|
};
|
|
569
|
-
export {
|
|
570
|
-
propsTooltip,
|
|
571
|
-
propsTooltipContent,
|
|
572
|
-
propsTooltipTrigger
|
|
573
|
-
};
|
package/lib/accordion.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
import {
|
|
3
4
|
forwardRef
|
|
@@ -13,18 +14,18 @@ import {
|
|
|
13
14
|
getClosestInstance,
|
|
14
15
|
getIndexWithinAncestorFromComponentProps
|
|
15
16
|
} from "@webstudio-is/react-sdk";
|
|
16
|
-
const Accordion = forwardRef((props, ref) => {
|
|
17
|
+
export const Accordion = forwardRef((props, ref) => {
|
|
17
18
|
return /* @__PURE__ */ jsx(Root, { ref, type: "single", ...props });
|
|
18
19
|
});
|
|
19
|
-
const AccordionItem = forwardRef(({ value, ...props }, ref) => {
|
|
20
|
+
export const AccordionItem = forwardRef(({ value, ...props }, ref) => {
|
|
20
21
|
const index = getIndexWithinAncestorFromComponentProps(props);
|
|
21
22
|
return /* @__PURE__ */ jsx(Item, { ref, value: value ?? index, ...props });
|
|
22
23
|
});
|
|
23
|
-
const AccordionHeader = Header;
|
|
24
|
-
const AccordionTrigger = Trigger;
|
|
25
|
-
const AccordionContent = Content;
|
|
24
|
+
export const AccordionHeader = Header;
|
|
25
|
+
export const AccordionTrigger = Trigger;
|
|
26
|
+
export const AccordionContent = Content;
|
|
26
27
|
const namespace = "@webstudio-is/sdk-components-react-radix";
|
|
27
|
-
const hooksAccordion = {
|
|
28
|
+
export const hooksAccordion = {
|
|
28
29
|
onNavigatorSelect: (context, event) => {
|
|
29
30
|
for (const instance of event.instancePath) {
|
|
30
31
|
if (instance.component === `${namespace}:AccordionContent`) {
|
|
@@ -48,11 +49,3 @@ const hooksAccordion = {
|
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
|
-
export {
|
|
52
|
-
Accordion,
|
|
53
|
-
AccordionContent,
|
|
54
|
-
AccordionHeader,
|
|
55
|
-
AccordionItem,
|
|
56
|
-
AccordionTrigger,
|
|
57
|
-
hooksAccordion
|
|
58
|
-
};
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
import { renderComponentTemplate } from "@webstudio-is/react-sdk";
|
|
3
3
|
import { Accordion as AccordionPrimitive } from "./accordion";
|
|
4
4
|
import * as baseComponents from "@webstudio-is/sdk-components-react";
|
|
5
5
|
import * as baseMetas from "@webstudio-is/sdk-components-react/metas";
|
|
6
6
|
import * as radixComponents from "./components";
|
|
7
7
|
import * as radixMetas from "./metas";
|
|
8
|
-
|
|
9
8
|
export default {
|
|
10
9
|
title: "Components/Accordion",
|
|
11
|
-
component: AccordionPrimitive
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
metas: { ...baseMetas, ...radixMetas },
|
|
20
|
-
}),
|
|
10
|
+
component: AccordionPrimitive
|
|
11
|
+
};
|
|
12
|
+
export const Accordion = {
|
|
13
|
+
render: () => renderComponentTemplate({
|
|
14
|
+
name: "Accordion",
|
|
15
|
+
components: { ...baseComponents, ...radixComponents },
|
|
16
|
+
metas: { ...baseMetas, ...radixMetas }
|
|
17
|
+
})
|
|
21
18
|
};
|