@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
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import type { EmbedTemplateStyleDecl } from "@webstudio-is/react-sdk";
|
|
2
|
+
export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "default" | "sm" | "icon") => {
|
|
3
|
+
value: {
|
|
4
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
5
|
+
value: number;
|
|
6
|
+
type: "unit";
|
|
7
|
+
} | {
|
|
8
|
+
value: string;
|
|
9
|
+
type: "keyword";
|
|
10
|
+
} | {
|
|
11
|
+
value: string;
|
|
12
|
+
type: "unparsed";
|
|
13
|
+
hidden?: boolean | undefined;
|
|
14
|
+
} | {
|
|
15
|
+
value: string[];
|
|
16
|
+
type: "fontFamily";
|
|
17
|
+
} | {
|
|
18
|
+
alpha: number;
|
|
19
|
+
type: "rgb";
|
|
20
|
+
r: number;
|
|
21
|
+
g: number;
|
|
22
|
+
b: number;
|
|
23
|
+
} | {
|
|
24
|
+
value: {
|
|
25
|
+
value: string;
|
|
26
|
+
type: "asset";
|
|
27
|
+
} | {
|
|
28
|
+
type: "url";
|
|
29
|
+
url: string;
|
|
30
|
+
};
|
|
31
|
+
type: "image";
|
|
32
|
+
hidden?: boolean | undefined;
|
|
33
|
+
} | {
|
|
34
|
+
value: string;
|
|
35
|
+
type: "invalid";
|
|
36
|
+
} | {
|
|
37
|
+
value: "";
|
|
38
|
+
type: "unset";
|
|
39
|
+
} | {
|
|
40
|
+
value: ({
|
|
41
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
42
|
+
value: number;
|
|
43
|
+
type: "unit";
|
|
44
|
+
} | {
|
|
45
|
+
value: string;
|
|
46
|
+
type: "keyword";
|
|
47
|
+
} | {
|
|
48
|
+
value: string;
|
|
49
|
+
type: "unparsed";
|
|
50
|
+
hidden?: boolean | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
alpha: number;
|
|
53
|
+
type: "rgb";
|
|
54
|
+
r: number;
|
|
55
|
+
g: number;
|
|
56
|
+
b: number;
|
|
57
|
+
})[];
|
|
58
|
+
type: "tuple";
|
|
59
|
+
hidden?: boolean | undefined;
|
|
60
|
+
} | {
|
|
61
|
+
value: ({
|
|
62
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
63
|
+
value: number;
|
|
64
|
+
type: "unit";
|
|
65
|
+
} | {
|
|
66
|
+
value: string;
|
|
67
|
+
type: "keyword";
|
|
68
|
+
} | {
|
|
69
|
+
value: string;
|
|
70
|
+
type: "unparsed";
|
|
71
|
+
hidden?: boolean | undefined;
|
|
72
|
+
} | {
|
|
73
|
+
value: {
|
|
74
|
+
value: string;
|
|
75
|
+
type: "asset";
|
|
76
|
+
} | {
|
|
77
|
+
type: "url";
|
|
78
|
+
url: string;
|
|
79
|
+
};
|
|
80
|
+
type: "image";
|
|
81
|
+
hidden?: boolean | undefined;
|
|
82
|
+
} | {
|
|
83
|
+
value: string;
|
|
84
|
+
type: "invalid";
|
|
85
|
+
} | {
|
|
86
|
+
value: ({
|
|
87
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
88
|
+
value: number;
|
|
89
|
+
type: "unit";
|
|
90
|
+
} | {
|
|
91
|
+
value: string;
|
|
92
|
+
type: "keyword";
|
|
93
|
+
} | {
|
|
94
|
+
value: string;
|
|
95
|
+
type: "unparsed";
|
|
96
|
+
hidden?: boolean | undefined;
|
|
97
|
+
} | {
|
|
98
|
+
alpha: number;
|
|
99
|
+
type: "rgb";
|
|
100
|
+
r: number;
|
|
101
|
+
g: number;
|
|
102
|
+
b: number;
|
|
103
|
+
})[];
|
|
104
|
+
type: "tuple";
|
|
105
|
+
hidden?: boolean | undefined;
|
|
106
|
+
})[];
|
|
107
|
+
type: "layers";
|
|
108
|
+
} | {
|
|
109
|
+
value: string;
|
|
110
|
+
type: "var";
|
|
111
|
+
fallbacks: ({
|
|
112
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
113
|
+
value: number;
|
|
114
|
+
type: "unit";
|
|
115
|
+
} | {
|
|
116
|
+
value: string;
|
|
117
|
+
type: "keyword";
|
|
118
|
+
} | {
|
|
119
|
+
value: string;
|
|
120
|
+
type: "unparsed";
|
|
121
|
+
hidden?: boolean | undefined;
|
|
122
|
+
} | {
|
|
123
|
+
value: string[];
|
|
124
|
+
type: "fontFamily";
|
|
125
|
+
} | {
|
|
126
|
+
alpha: number;
|
|
127
|
+
type: "rgb";
|
|
128
|
+
r: number;
|
|
129
|
+
g: number;
|
|
130
|
+
b: number;
|
|
131
|
+
} | {
|
|
132
|
+
value: {
|
|
133
|
+
value: string;
|
|
134
|
+
type: "asset";
|
|
135
|
+
} | {
|
|
136
|
+
type: "url";
|
|
137
|
+
url: string;
|
|
138
|
+
};
|
|
139
|
+
type: "image";
|
|
140
|
+
hidden?: boolean | undefined;
|
|
141
|
+
} | {
|
|
142
|
+
value: ({
|
|
143
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
144
|
+
value: number;
|
|
145
|
+
type: "unit";
|
|
146
|
+
} | {
|
|
147
|
+
value: string;
|
|
148
|
+
type: "keyword";
|
|
149
|
+
} | {
|
|
150
|
+
value: string;
|
|
151
|
+
type: "unparsed";
|
|
152
|
+
hidden?: boolean | undefined;
|
|
153
|
+
} | {
|
|
154
|
+
alpha: number;
|
|
155
|
+
type: "rgb";
|
|
156
|
+
r: number;
|
|
157
|
+
g: number;
|
|
158
|
+
b: number;
|
|
159
|
+
})[];
|
|
160
|
+
type: "tuple";
|
|
161
|
+
hidden?: boolean | undefined;
|
|
162
|
+
} | {
|
|
163
|
+
value: ({
|
|
164
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
165
|
+
value: number;
|
|
166
|
+
type: "unit";
|
|
167
|
+
} | {
|
|
168
|
+
value: string;
|
|
169
|
+
type: "keyword";
|
|
170
|
+
} | {
|
|
171
|
+
value: string;
|
|
172
|
+
type: "unparsed";
|
|
173
|
+
hidden?: boolean | undefined;
|
|
174
|
+
} | {
|
|
175
|
+
value: {
|
|
176
|
+
value: string;
|
|
177
|
+
type: "asset";
|
|
178
|
+
} | {
|
|
179
|
+
type: "url";
|
|
180
|
+
url: string;
|
|
181
|
+
};
|
|
182
|
+
type: "image";
|
|
183
|
+
hidden?: boolean | undefined;
|
|
184
|
+
} | {
|
|
185
|
+
value: string;
|
|
186
|
+
type: "invalid";
|
|
187
|
+
} | {
|
|
188
|
+
value: ({
|
|
189
|
+
unit: "number" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "q" | "in" | "pt" | "pc" | "px" | "em" | "rem" | "ex" | "rex" | "cap" | "rcap" | "ch" | "rch" | "ic" | "ric" | "lh" | "rlh" | "vw" | "svw" | "lvw" | "dvw" | "vh" | "svh" | "lvh" | "dvh" | "vi" | "svi" | "lvi" | "dvi" | "vb" | "svb" | "lvb" | "dvb" | "vmin" | "svmin" | "lvmin" | "dvmin" | "vmax" | "svmax" | "lvmax" | "dvmax" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "dpi" | "dpcm" | "dppx" | "x" | "st" | "s" | "ms";
|
|
190
|
+
value: number;
|
|
191
|
+
type: "unit";
|
|
192
|
+
} | {
|
|
193
|
+
value: string;
|
|
194
|
+
type: "keyword";
|
|
195
|
+
} | {
|
|
196
|
+
value: string;
|
|
197
|
+
type: "unparsed";
|
|
198
|
+
hidden?: boolean | undefined;
|
|
199
|
+
} | {
|
|
200
|
+
alpha: number;
|
|
201
|
+
type: "rgb";
|
|
202
|
+
r: number;
|
|
203
|
+
g: number;
|
|
204
|
+
b: number;
|
|
205
|
+
})[];
|
|
206
|
+
type: "tuple";
|
|
207
|
+
hidden?: boolean | undefined;
|
|
208
|
+
})[];
|
|
209
|
+
type: "layers";
|
|
210
|
+
})[];
|
|
211
|
+
};
|
|
212
|
+
state?: string | undefined;
|
|
213
|
+
property: "clip" | "top" | "right" | `--${string}` | "WebkitFontSmoothing" | "MozOsxFontSmoothing" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignTracks" | "animationComposition" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "animationTimeline" | "appearance" | "aspectRatio" | "backdropFilter" | "backfaceVisibility" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockOverflow" | "blockSize" | "borderBlockColor" | "borderBlockStyle" | "borderBlockWidth" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInlineColor" | "borderInlineStyle" | "borderInlineWidth" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "boxDecorationBreak" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "caretShape" | "clear" | "clipPath" | "color" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "contain" | "containIntrinsicBlockSize" | "containIntrinsicHeight" | "containIntrinsicInlineSize" | "containIntrinsicWidth" | "containerName" | "containerType" | "content" | "contentVisibility" | "counterIncrement" | "counterReset" | "counterSet" | "cursor" | "direction" | "display" | "emptyCells" | "filter" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontLanguageOverride" | "fontOpticalSizing" | "fontPalette" | "fontVariationSettings" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantEmoji" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontWeight" | "forcedColorAdjust" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hangingPunctuation" | "height" | "hyphenateCharacter" | "hyphenateLimitChars" | "hyphens" | "imageOrientation" | "imageRendering" | "imageResolution" | "initialLetter" | "initialLetterAlign" | "inlineSize" | "inputSecurity" | "insetBlockEnd" | "insetBlockStart" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "justifyTracks" | "left" | "letterSpacing" | "lineBreak" | "lineClamp" | "lineHeight" | "lineHeightStep" | "listStyleImage" | "listStylePosition" | "listStyleType" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marginTrim" | "maskBorderMode" | "maskBorderOutset" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "masonryAutoFlow" | "mathDepth" | "mathShift" | "mathStyle" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxLines" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetPosition" | "offsetRotate" | "opacity" | "order" | "orphans" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowAnchor" | "overflowBlock" | "overflowClipMargin" | "overflowInline" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "page" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "paintOrder" | "perspective" | "perspectiveOrigin" | "pointerEvents" | "position" | "printColorAdjust" | "quotes" | "resize" | "rotate" | "rowGap" | "rubyAlign" | "rubyMerge" | "rubyPosition" | "scale" | "scrollbarColor" | "scrollbarGutter" | "scrollbarWidth" | "scrollBehavior" | "scrollMarginBlockStart" | "scrollMarginBlockEnd" | "scrollMarginBottom" | "scrollMarginInlineStart" | "scrollMarginInlineEnd" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPaddingBlockStart" | "scrollPaddingBlockEnd" | "scrollPaddingBottom" | "scrollPaddingInlineStart" | "scrollPaddingInlineEnd" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollTimelineAxis" | "scrollTimelineName" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkip" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textJustify" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textSizeAdjust" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transform" | "transformBox" | "transformOrigin" | "transformStyle" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "translate" | "unicodeBidi" | "userSelect" | "verticalAlign" | "viewTransitionName" | "visibility" | "whiteSpace" | "widows" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "zIndex";
|
|
214
|
+
}[];
|
|
215
|
+
export declare const buttonReset: EmbedTemplateStyleDecl[];
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* Quik and dirty implementation of tailwind classes conversion to webstudio styles.
|
|
3
3
|
*/
|
|
4
4
|
import type { EmbedTemplateStyleDecl } from "@webstudio-is/react-sdk";
|
|
5
|
+
import { type StyleProperty } from "@webstudio-is/css-data";
|
|
5
6
|
import type { EvaluatedDefaultTheme } from "./radix-common-types";
|
|
7
|
+
export declare const property: (property: StyleProperty, value: string) => EmbedTemplateStyleDecl;
|
|
6
8
|
export declare const z: (zIndex?: StringEnumToNumeric<keyof EvaluatedDefaultTheme["zIndex"]>) => EmbedTemplateStyleDecl[];
|
|
7
9
|
export declare const overflow: (value: "hidden" | "visible" | "scroll" | "auto") => EmbedTemplateStyleDecl[];
|
|
8
10
|
export declare const rounded: (radius?: keyof EvaluatedDefaultTheme["borderRadius"]) => EmbedTemplateStyleDecl[];
|
|
@@ -32,12 +34,15 @@ export declare const minH: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultT
|
|
|
32
34
|
export declare const opacity: (opacity: StringEnumToNumeric<keyof EvaluatedDefaultTheme["opacity"]>) => EmbedTemplateStyleDecl[];
|
|
33
35
|
export declare const cursor: (cursor: keyof EvaluatedDefaultTheme["cursor"]) => EmbedTemplateStyleDecl[];
|
|
34
36
|
export declare const maxW: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["maxWidth"]> | NonNumeric<keyof EvaluatedDefaultTheme["maxWidth"]>) => EmbedTemplateStyleDecl[];
|
|
35
|
-
export declare const top: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["
|
|
36
|
-
export declare const right: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["
|
|
37
|
-
export declare const bottom: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["
|
|
38
|
-
export declare const left: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["
|
|
39
|
-
export declare const inset: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["
|
|
37
|
+
export declare const top: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]> | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>) => EmbedTemplateStyleDecl[];
|
|
38
|
+
export declare const right: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]> | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>) => EmbedTemplateStyleDecl[];
|
|
39
|
+
export declare const bottom: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]> | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>) => EmbedTemplateStyleDecl[];
|
|
40
|
+
export declare const left: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]> | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>) => EmbedTemplateStyleDecl[];
|
|
41
|
+
export declare const inset: (spacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["inset"]> | NonNumeric<keyof EvaluatedDefaultTheme["inset"]>) => EmbedTemplateStyleDecl[];
|
|
42
|
+
export declare const aspect: (value: "auto" | "square" | "video") => EmbedTemplateStyleDecl[];
|
|
40
43
|
export declare const backdropBlur: (blur: keyof EvaluatedDefaultTheme["blur"]) => EmbedTemplateStyleDecl[];
|
|
44
|
+
export declare const list: (listStyle: keyof EvaluatedDefaultTheme["listStyleType"]) => EmbedTemplateStyleDecl[];
|
|
45
|
+
export declare const select: (selectValue: "none") => EmbedTemplateStyleDecl[];
|
|
41
46
|
export declare const bg: (color: keyof EvaluatedDefaultTheme["colors"], alpha?: number) => EmbedTemplateStyleDecl[];
|
|
42
47
|
export declare const fixed: () => EmbedTemplateStyleDecl[];
|
|
43
48
|
export declare const relative: () => EmbedTemplateStyleDecl[];
|
|
@@ -64,6 +69,7 @@ declare const justifyContent: {
|
|
|
64
69
|
type JustifyContent = keyof typeof justifyContent;
|
|
65
70
|
export declare const justify: (justifyContentParam: JustifyContent) => EmbedTemplateStyleDecl[];
|
|
66
71
|
export declare const inlineFlex: () => EmbedTemplateStyleDecl[];
|
|
72
|
+
export declare const block: () => EmbedTemplateStyleDecl[];
|
|
67
73
|
declare const flexDirection: {
|
|
68
74
|
readonly row: "row";
|
|
69
75
|
readonly col: "column";
|
|
@@ -72,12 +78,15 @@ type FlexDirection = keyof typeof flexDirection;
|
|
|
72
78
|
type FlexSizing = 1 | "auto" | "initial" | "none";
|
|
73
79
|
export declare const flex: (flexParam?: FlexDirection | FlexSizing) => EmbedTemplateStyleDecl[];
|
|
74
80
|
export declare const grow: () => EmbedTemplateStyleDecl[];
|
|
81
|
+
export declare const shrink: (value: number) => EmbedTemplateStyleDecl[];
|
|
75
82
|
export declare const gap: (gapValue: StringEnumToNumeric<keyof EvaluatedDefaultTheme["spacing"]>) => EmbedTemplateStyleDecl[];
|
|
83
|
+
export declare const lineClamp: (lineClampValue: StringEnumToNumeric<keyof EvaluatedDefaultTheme["lineClamp"]>) => EmbedTemplateStyleDecl[];
|
|
76
84
|
export declare const leading: (lineHeight: StringEnumToNumeric<keyof EvaluatedDefaultTheme["lineHeight"]> | NonNumeric<keyof EvaluatedDefaultTheme["lineHeight"]>) => EmbedTemplateStyleDecl[];
|
|
77
85
|
export declare const tracking: (letterSpacing: StringEnumToNumeric<keyof EvaluatedDefaultTheme["letterSpacing"]> | NonNumeric<keyof EvaluatedDefaultTheme["letterSpacing"]>) => EmbedTemplateStyleDecl[];
|
|
78
86
|
export declare const outline: (value: "none") => EmbedTemplateStyleDecl[];
|
|
79
87
|
type TextSize = keyof EvaluatedDefaultTheme["fontSize"];
|
|
80
88
|
export declare const text: (sizeOrColor: TextSize | keyof EvaluatedDefaultTheme["colors"]) => EmbedTemplateStyleDecl[];
|
|
89
|
+
export declare const noUnderline: () => EmbedTemplateStyleDecl[];
|
|
81
90
|
export declare const underline: () => EmbedTemplateStyleDecl[];
|
|
82
91
|
export declare const underlineOffset: (offset: StringEnumToNumeric<keyof EvaluatedDefaultTheme["textUnderlineOffset"]>) => EmbedTemplateStyleDecl[];
|
|
83
92
|
export declare const font: (weight: "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black") => EmbedTemplateStyleDecl[];
|
|
@@ -85,7 +94,8 @@ export declare const whitespace: (value: "normal" | "nowrap" | "pre" | "pre-line
|
|
|
85
94
|
export declare const shadow: (shadowSize: keyof EvaluatedDefaultTheme["boxShadow"]) => EmbedTemplateStyleDecl[];
|
|
86
95
|
export declare const ring: (ringColor: keyof EvaluatedDefaultTheme["colors"], ringWidth: StringEnumToNumeric<keyof EvaluatedDefaultTheme["ringWidth"]>, ringOffsetColor?: keyof EvaluatedDefaultTheme["colors"], ringOffsetWidth?: StringEnumToNumeric<keyof EvaluatedDefaultTheme["ringOffsetWidth"]>, inset?: "inset" | "") => EmbedTemplateStyleDecl[];
|
|
87
96
|
export declare const pointerEvents: (value: "none" | "auto") => EmbedTemplateStyleDecl[];
|
|
88
|
-
export declare const transition: (value: "none" | "all") => EmbedTemplateStyleDecl[];
|
|
97
|
+
export declare const transition: (value: "none" | "all" | "transform") => EmbedTemplateStyleDecl[];
|
|
98
|
+
export declare const duration: (ms: number) => EmbedTemplateStyleDecl[];
|
|
89
99
|
export declare const hover: (value: EmbedTemplateStyleDecl[]) => EmbedTemplateStyleDecl[];
|
|
90
100
|
export declare const focus: (value: EmbedTemplateStyleDecl[]) => EmbedTemplateStyleDecl[];
|
|
91
101
|
export declare const focusVisible: (value: EmbedTemplateStyleDecl[]) => EmbedTemplateStyleDecl[];
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
export declare const colors: {
|
|
11
11
|
readonly transparent: "transparent";
|
|
12
12
|
readonly current: "currentColor";
|
|
13
|
+
readonly inherit: "inherit";
|
|
13
14
|
readonly popover: "rgb(255, 255, 255)";
|
|
14
15
|
readonly popoverForeground: "rgb(2, 8, 23)";
|
|
15
16
|
readonly border: "rgb(226, 232, 240)";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EvaluatedDefaultTheme } from "./radix-common-types";
|
|
2
|
-
export declare const theme: <T extends "height" | "maxWidth" | "width" | "colors" | "margin" | "padding" | keyof {
|
|
2
|
+
export declare const theme: <T extends "height" | "maxWidth" | "width" | "inset" | "colors" | "margin" | "padding" | keyof {
|
|
3
3
|
animation: Record<"none" | "spin" | "ping" | "pulse" | "bounce", string>;
|
|
4
4
|
aria: Record<"hidden" | "expanded" | "required" | "disabled" | "busy" | "checked" | "pressed" | "readonly" | "selected", string>;
|
|
5
5
|
aspectRatio: Record<"auto" | "video" | "square", string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react-radix",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.88.0",
|
|
4
4
|
"description": "Webstudio wrapper for radix library",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -44,17 +44,22 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
47
|
+
"@radix-ui/react-checkbox": "^1.0.4",
|
|
47
48
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
48
49
|
"@radix-ui/react-dialog": "^1.0.4",
|
|
49
50
|
"@radix-ui/react-label": "^2.0.2",
|
|
51
|
+
"@radix-ui/react-navigation-menu": "^1.1.3",
|
|
50
52
|
"@radix-ui/react-popover": "^1.0.6",
|
|
53
|
+
"@radix-ui/react-radio-group": "^1.1.3",
|
|
54
|
+
"@radix-ui/react-select": "^1.2.2",
|
|
55
|
+
"@radix-ui/react-switch": "^1.0.3",
|
|
51
56
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
52
57
|
"@radix-ui/react-tooltip": "^1.0.6",
|
|
53
58
|
"tailwindcss": "^3.3.3",
|
|
54
|
-
"@webstudio-is/css-data": "^0.
|
|
55
|
-
"@webstudio-is/generate-arg-types": "^0.
|
|
56
|
-
"@webstudio-is/icons": "^0.
|
|
57
|
-
"@webstudio-is/react-sdk": "^0.
|
|
59
|
+
"@webstudio-is/css-data": "^0.88.0",
|
|
60
|
+
"@webstudio-is/generate-arg-types": "^0.88.0",
|
|
61
|
+
"@webstudio-is/icons": "^0.88.0",
|
|
62
|
+
"@webstudio-is/react-sdk": "^0.88.0"
|
|
58
63
|
},
|
|
59
64
|
"devDependencies": {
|
|
60
65
|
"@storybook/react": "^7.2.1",
|
|
@@ -64,14 +69,14 @@
|
|
|
64
69
|
"react-dom": "^18.2.0",
|
|
65
70
|
"typescript": "^5.1.6",
|
|
66
71
|
"@webstudio-is/scripts": "^0.0.0",
|
|
67
|
-
"@webstudio-is/sdk-components-react": "^0.
|
|
72
|
+
"@webstudio-is/sdk-components-react": "^0.88.0",
|
|
68
73
|
"@webstudio-is/storybook-config": "^0.0.0",
|
|
69
74
|
"@webstudio-is/tsconfig": "^1.0.7"
|
|
70
75
|
},
|
|
71
76
|
"scripts": {
|
|
72
77
|
"dev": "build-package --watch",
|
|
73
78
|
"build": "build-package",
|
|
74
|
-
"build:args": "generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' && prettier --write \"**/*.props.ts\"",
|
|
79
|
+
"build:args": "generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' -e asChild -e modal -e defaultValue -e defaultOpen -e defaultChecked && prettier --write \"**/*.props.ts\"",
|
|
75
80
|
"dts": "tsc --project tsconfig.dts.json",
|
|
76
81
|
"typecheck": "tsc",
|
|
77
82
|
"checks": "pnpm typecheck",
|
|
@@ -391,7 +391,6 @@ export const propsAccordion: 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: {
|
|
396
395
|
description: "The language read direction.",
|
|
397
396
|
required: false,
|
|
@@ -879,7 +878,6 @@ export const propsAccordionItem: Record<string, PropMeta> = {
|
|
|
879
878
|
content: { required: false, control: "text", type: "string" },
|
|
880
879
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
881
880
|
datatype: { required: false, control: "text", type: "string" },
|
|
882
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
883
881
|
dir: { required: false, control: "text", type: "string" },
|
|
884
882
|
disabled: {
|
|
885
883
|
description:
|
|
@@ -1359,7 +1357,6 @@ export const propsAccordionHeader: Record<string, PropMeta> = {
|
|
|
1359
1357
|
content: { required: false, control: "text", type: "string" },
|
|
1360
1358
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
1361
1359
|
datatype: { required: false, control: "text", type: "string" },
|
|
1362
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
1363
1360
|
dir: { required: false, control: "text", type: "string" },
|
|
1364
1361
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
1365
1362
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -1825,7 +1822,6 @@ export const propsAccordionTrigger: Record<string, PropMeta> = {
|
|
|
1825
1822
|
content: { required: false, control: "text", type: "string" },
|
|
1826
1823
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
1827
1824
|
datatype: { required: false, control: "text", type: "string" },
|
|
1828
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
1829
1825
|
dir: { required: false, control: "text", type: "string" },
|
|
1830
1826
|
disabled: { required: false, control: "boolean", type: "boolean" },
|
|
1831
1827
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -2305,7 +2301,6 @@ export const propsAccordionContent: Record<string, PropMeta> = {
|
|
|
2305
2301
|
content: { required: false, control: "text", type: "string" },
|
|
2306
2302
|
contextMenu: { required: false, control: "text", type: "string" },
|
|
2307
2303
|
datatype: { required: false, control: "text", type: "string" },
|
|
2308
|
-
defaultChecked: { required: false, control: "boolean", type: "boolean" },
|
|
2309
2304
|
dir: { required: false, control: "text", type: "string" },
|
|
2310
2305
|
draggable: { required: false, control: "boolean", type: "boolean" },
|
|
2311
2306
|
hidden: { required: false, control: "boolean", type: "boolean" },
|
|
@@ -445,13 +445,6 @@ export const props: Record<string, PropMeta> = {
|
|
|
445
445
|
rev: { required: false, control: "text", type: "string" },
|
|
446
446
|
role: { required: false, control: "text", type: "string" },
|
|
447
447
|
security: { required: false, control: "text", type: "string" },
|
|
448
|
-
size: {
|
|
449
|
-
required: false,
|
|
450
|
-
control: "select",
|
|
451
|
-
type: "string",
|
|
452
|
-
defaultValue: "default",
|
|
453
|
-
options: ["default", "sm", "lg", "icon"],
|
|
454
|
-
},
|
|
455
448
|
slot: { required: false, control: "text", type: "string" },
|
|
456
449
|
spellCheck: { required: false, control: "boolean", type: "boolean" },
|
|
457
450
|
suppressContentEditableWarning: {
|
|
@@ -485,19 +478,5 @@ export const props: Record<string, PropMeta> = {
|
|
|
485
478
|
type: "string",
|
|
486
479
|
options: ["on", "off"],
|
|
487
480
|
},
|
|
488
|
-
variant: {
|
|
489
|
-
required: false,
|
|
490
|
-
control: "select",
|
|
491
|
-
type: "string",
|
|
492
|
-
defaultValue: "default",
|
|
493
|
-
options: [
|
|
494
|
-
"link",
|
|
495
|
-
"default",
|
|
496
|
-
"destructive",
|
|
497
|
-
"outline",
|
|
498
|
-
"secondary",
|
|
499
|
-
"ghost",
|
|
500
|
-
],
|
|
501
|
-
},
|
|
502
481
|
vocab: { required: false, control: "text", type: "string" },
|
|
503
482
|
};
|