@webstudio-is/sdk-components-react-radix 0.191.5 → 0.193.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/accordion.ws.js +14 -18
- package/lib/navigation-menu.ws.js +23 -29
- package/lib/radio-group.ws.js +4 -5
- package/lib/select.ws.js +41 -44
- package/lib/tabs.ws.js +18 -22
- package/lib/types/theme/styles.d.ts +55 -55
- package/package.json +8 -8
package/lib/accordion.ws.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AccordionIcon as
|
|
1
|
+
import { AccordionIcon as i, ItemIcon as s, HeaderIcon as l, TriggerIcon as p, ContentIcon as d, ChevronDownIcon as m } from "@webstudio-is/icons/svg";
|
|
2
2
|
import { defaultStates as y } from "@webstudio-is/react-sdk";
|
|
3
|
-
import { h3 as h, button as A, div as
|
|
4
|
-
import { borderB as
|
|
3
|
+
import { h3 as h, button as A, div as g } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
+
import { borderB as u, overflow as f, text as I, pb as b, my as v, flex as e, items as x, justify as C, py as H, font as T, hover as w, underline as S, property as t, state as M, h as q, w as $, shrink as k, transition as Y, duration as B } from "./theme/tailwind-classes.js";
|
|
5
5
|
import { buttonReset as P } from "./theme/styles.js";
|
|
6
6
|
import { propsAccordion as R, propsAccordionItem as W, propsAccordionHeader as j, propsAccordionTrigger as D, propsAccordionContent as E } from "./__generated__/accordion.props.js";
|
|
7
7
|
const r = {
|
|
8
|
-
div:
|
|
9
|
-
}, o = [
|
|
10
|
-
children:
|
|
8
|
+
div: g
|
|
9
|
+
}, o = [u()].flat(), n = ({
|
|
10
|
+
children: a
|
|
11
11
|
}) => ({
|
|
12
12
|
type: "instance",
|
|
13
13
|
component: "AccordionHeader",
|
|
@@ -24,10 +24,10 @@ const r = {
|
|
|
24
24
|
x("center"),
|
|
25
25
|
C("between"),
|
|
26
26
|
H(4),
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
T("medium"),
|
|
28
|
+
w([S()].flat()),
|
|
29
29
|
t("--accordion-trigger-icon-transform", "0deg"),
|
|
30
|
-
|
|
30
|
+
M(
|
|
31
31
|
[t("--accordion-trigger-icon-transform", "180deg")],
|
|
32
32
|
"[data-state=open]"
|
|
33
33
|
)
|
|
@@ -36,7 +36,7 @@ const r = {
|
|
|
36
36
|
{
|
|
37
37
|
type: "instance",
|
|
38
38
|
component: "Text",
|
|
39
|
-
children:
|
|
39
|
+
children: a
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
type: "instance",
|
|
@@ -45,7 +45,7 @@ const r = {
|
|
|
45
45
|
// h-4 w-4 shrink-0 transition-transform duration-200
|
|
46
46
|
styles: [
|
|
47
47
|
t("rotate", "--accordion-trigger-icon-transform"),
|
|
48
|
-
|
|
48
|
+
q(4),
|
|
49
49
|
$(4),
|
|
50
50
|
k(0),
|
|
51
51
|
Y("all"),
|
|
@@ -80,7 +80,7 @@ const r = {
|
|
|
80
80
|
category: "radix",
|
|
81
81
|
order: 3,
|
|
82
82
|
type: "container",
|
|
83
|
-
icon:
|
|
83
|
+
icon: i,
|
|
84
84
|
presetStyle: r,
|
|
85
85
|
description: "A vertically stacked set of interactive headings that each reveal an associated section of content. Clicking on the heading will open the item and close other items.",
|
|
86
86
|
template: [
|
|
@@ -172,7 +172,6 @@ const r = {
|
|
|
172
172
|
type: "container",
|
|
173
173
|
label: "Item",
|
|
174
174
|
icon: s,
|
|
175
|
-
requiredAncestors: ["Accordion"],
|
|
176
175
|
constraints: {
|
|
177
176
|
relation: "ancestor",
|
|
178
177
|
component: { $eq: "Accordion" }
|
|
@@ -184,7 +183,6 @@ const r = {
|
|
|
184
183
|
type: "container",
|
|
185
184
|
label: "Item Header",
|
|
186
185
|
icon: l,
|
|
187
|
-
requiredAncestors: ["AccordionItem"],
|
|
188
186
|
constraints: {
|
|
189
187
|
relation: "ancestor",
|
|
190
188
|
component: { $eq: "AccordionItem" }
|
|
@@ -197,8 +195,7 @@ const r = {
|
|
|
197
195
|
category: "hidden",
|
|
198
196
|
type: "container",
|
|
199
197
|
label: "Item Trigger",
|
|
200
|
-
icon:
|
|
201
|
-
requiredAncestors: ["AccordionHeader"],
|
|
198
|
+
icon: p,
|
|
202
199
|
constraints: {
|
|
203
200
|
relation: "ancestor",
|
|
204
201
|
component: { $eq: "AccordionHeader" }
|
|
@@ -219,8 +216,7 @@ const r = {
|
|
|
219
216
|
category: "hidden",
|
|
220
217
|
type: "container",
|
|
221
218
|
label: "Item Content",
|
|
222
|
-
icon:
|
|
223
|
-
requiredAncestors: ["AccordionItem"],
|
|
219
|
+
icon: d,
|
|
224
220
|
constraints: {
|
|
225
221
|
relation: "ancestor",
|
|
226
222
|
component: { $eq: "AccordionItem" }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NavigationMenuIcon as x, ListIcon as w, ListItemIcon as I, TriggerIcon as
|
|
2
|
-
import { div as
|
|
3
|
-
import { relative as m, maxW as
|
|
1
|
+
import { NavigationMenuIcon as x, ListIcon as w, ListItemIcon as I, TriggerIcon as k, ContentIcon as L, BoxIcon as C, ViewportIcon as A, ChevronDownIcon as T } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { div as B } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { relative as m, maxW as $, p as a, m as h, flex as n, list as V, items as q, justify as g, gap as s, bg as r, w as c, rounded as d, absolute as v, left as y, top as f, mt as D, overflow as F, border as S, text as t, shadow as W, property as i, noUnderline as M, state as E, ml as P, h as j, shrink as H, transition as U, duration as _, select as z, leading as l, outline as G, hover as J, focus as K, font as O, lineClamp as Q } from "./theme/tailwind-classes.js";
|
|
4
4
|
import { getButtonStyles as N } from "./theme/styles.js";
|
|
5
5
|
import { propsNavigationMenu as R, propsNavigationMenuItem as X, propsNavigationMenuTrigger as Y, propsNavigationMenuContent as Z, propsNavigationMenuLink as ee, propsNavigationMenuList as te, propsNavigationMenuViewport as ne } from "./__generated__/navigation-menu.props.js";
|
|
6
6
|
const o = {
|
|
7
|
-
div:
|
|
7
|
+
div: B
|
|
8
8
|
}, oe = [
|
|
9
9
|
{
|
|
10
10
|
title: "Sheet",
|
|
@@ -159,7 +159,7 @@ const o = {
|
|
|
159
159
|
}
|
|
160
160
|
]
|
|
161
161
|
}
|
|
162
|
-
],
|
|
162
|
+
], u = (e) => [
|
|
163
163
|
{
|
|
164
164
|
type: "instance",
|
|
165
165
|
component: "NavigationMenuItem",
|
|
@@ -218,7 +218,7 @@ const o = {
|
|
|
218
218
|
{
|
|
219
219
|
type: "string",
|
|
220
220
|
name: "code",
|
|
221
|
-
value:
|
|
221
|
+
value: T
|
|
222
222
|
}
|
|
223
223
|
],
|
|
224
224
|
children: []
|
|
@@ -266,7 +266,7 @@ const o = {
|
|
|
266
266
|
props: [],
|
|
267
267
|
// relative
|
|
268
268
|
// Omiting this: z-10 flex max-w-max flex-1 items-center justify-center
|
|
269
|
-
styles: [m(),
|
|
269
|
+
styles: [m(), $("max")].flat(),
|
|
270
270
|
children: [
|
|
271
271
|
{
|
|
272
272
|
type: "instance",
|
|
@@ -278,13 +278,13 @@ const o = {
|
|
|
278
278
|
// shadcdn styles
|
|
279
279
|
n(),
|
|
280
280
|
n(1),
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
281
|
+
V("none"),
|
|
282
|
+
q("center"),
|
|
283
|
+
g("center"),
|
|
284
284
|
s(1)
|
|
285
285
|
].flat(),
|
|
286
286
|
children: [
|
|
287
|
-
...
|
|
287
|
+
...u({
|
|
288
288
|
title: "About",
|
|
289
289
|
padding: 2,
|
|
290
290
|
children: [
|
|
@@ -308,7 +308,7 @@ const o = {
|
|
|
308
308
|
...p({ count: 3, offset: 0 })
|
|
309
309
|
]
|
|
310
310
|
}),
|
|
311
|
-
...
|
|
311
|
+
...u({
|
|
312
312
|
title: "Components",
|
|
313
313
|
padding: 0,
|
|
314
314
|
children: [
|
|
@@ -329,7 +329,7 @@ const o = {
|
|
|
329
329
|
y(0),
|
|
330
330
|
f("full"),
|
|
331
331
|
n(),
|
|
332
|
-
|
|
332
|
+
g("center")
|
|
333
333
|
].flat(),
|
|
334
334
|
children: [
|
|
335
335
|
{
|
|
@@ -367,23 +367,21 @@ const o = {
|
|
|
367
367
|
]
|
|
368
368
|
}
|
|
369
369
|
]
|
|
370
|
-
},
|
|
370
|
+
}, ge = {
|
|
371
371
|
category: "hidden",
|
|
372
372
|
detachable: !1,
|
|
373
373
|
type: "container",
|
|
374
374
|
icon: w,
|
|
375
|
-
requiredAncestors: ["NavigationMenu"],
|
|
376
375
|
constraints: {
|
|
377
376
|
relation: "ancestor",
|
|
378
377
|
component: { $eq: "NavigationMenu" }
|
|
379
378
|
},
|
|
380
379
|
presetStyle: o,
|
|
381
380
|
label: "Menu List"
|
|
382
|
-
},
|
|
381
|
+
}, ue = {
|
|
383
382
|
category: "hidden",
|
|
384
383
|
type: "container",
|
|
385
384
|
icon: I,
|
|
386
|
-
requiredAncestors: ["NavigationMenu"],
|
|
387
385
|
constraints: {
|
|
388
386
|
relation: "ancestor",
|
|
389
387
|
component: { $eq: "NavigationMenu" }
|
|
@@ -396,8 +394,7 @@ const o = {
|
|
|
396
394
|
detachable: !1,
|
|
397
395
|
stylable: !1,
|
|
398
396
|
type: "container",
|
|
399
|
-
icon:
|
|
400
|
-
requiredAncestors: ["NavigationMenuItem"],
|
|
397
|
+
icon: k,
|
|
401
398
|
constraints: {
|
|
402
399
|
relation: "ancestor",
|
|
403
400
|
component: { $eq: "NavigationMenuItem" }
|
|
@@ -408,8 +405,7 @@ const o = {
|
|
|
408
405
|
category: "hidden",
|
|
409
406
|
detachable: !1,
|
|
410
407
|
type: "container",
|
|
411
|
-
icon:
|
|
412
|
-
requiredAncestors: ["NavigationMenuItem"],
|
|
408
|
+
icon: L,
|
|
413
409
|
constraints: {
|
|
414
410
|
relation: "ancestor",
|
|
415
411
|
component: { $eq: "NavigationMenuItem" }
|
|
@@ -422,8 +418,7 @@ const o = {
|
|
|
422
418
|
detachable: !0,
|
|
423
419
|
type: "container",
|
|
424
420
|
stylable: !1,
|
|
425
|
-
icon:
|
|
426
|
-
requiredAncestors: ["NavigationMenu"],
|
|
421
|
+
icon: C,
|
|
427
422
|
constraints: [
|
|
428
423
|
{
|
|
429
424
|
relation: "ancestor",
|
|
@@ -440,8 +435,7 @@ const o = {
|
|
|
440
435
|
category: "hidden",
|
|
441
436
|
detachable: !0,
|
|
442
437
|
type: "container",
|
|
443
|
-
icon:
|
|
444
|
-
requiredAncestors: ["NavigationMenu"],
|
|
438
|
+
icon: A,
|
|
445
439
|
constraints: {
|
|
446
440
|
relation: "ancestor",
|
|
447
441
|
component: { $eq: "NavigationMenu" }
|
|
@@ -460,15 +454,15 @@ const o = {
|
|
|
460
454
|
props: ee
|
|
461
455
|
}, Ie = {
|
|
462
456
|
props: te
|
|
463
|
-
},
|
|
457
|
+
}, ke = {
|
|
464
458
|
props: ne
|
|
465
459
|
};
|
|
466
460
|
export {
|
|
467
461
|
me as metaNavigationMenu,
|
|
468
462
|
ve as metaNavigationMenuContent,
|
|
469
|
-
|
|
463
|
+
ue as metaNavigationMenuItem,
|
|
470
464
|
ye as metaNavigationMenuLink,
|
|
471
|
-
|
|
465
|
+
ge as metaNavigationMenuList,
|
|
472
466
|
he as metaNavigationMenuTrigger,
|
|
473
467
|
fe as metaNavigationMenuViewport,
|
|
474
468
|
Me as propsMetaNavigationMenu,
|
|
@@ -477,5 +471,5 @@ export {
|
|
|
477
471
|
we as propsMetaNavigationMenuLink,
|
|
478
472
|
Ie as propsMetaNavigationMenuList,
|
|
479
473
|
be as propsMetaNavigationMenuTrigger,
|
|
480
|
-
|
|
474
|
+
ke as propsMetaNavigationMenuViewport
|
|
481
475
|
};
|
package/lib/radio-group.ws.js
CHANGED
|
@@ -3,7 +3,7 @@ import { defaultStates as o } from "@webstudio-is/react-sdk";
|
|
|
3
3
|
import { div as d, button as u, span as m } from "@webstudio-is/sdk/normalize.css";
|
|
4
4
|
import { flex as t, gap as r, items as y, aspect as b, h as f, w as h, rounded as G, border as a, text as R, focusVisible as I, outline as g, ring as v, disabled as k, cursor as x, opacity as V } from "./theme/tailwind-classes.js";
|
|
5
5
|
import { buttonReset as C } from "./theme/styles.js";
|
|
6
|
-
import { propsRadioGroup as
|
|
6
|
+
import { propsRadioGroup as w, propsRadioGroupItem as S, propsRadioGroupIndicator as q } from "./__generated__/radio-group.props.js";
|
|
7
7
|
const e = ({
|
|
8
8
|
value: n,
|
|
9
9
|
label: p
|
|
@@ -121,7 +121,6 @@ const e = ({
|
|
|
121
121
|
}, L = {
|
|
122
122
|
category: "hidden",
|
|
123
123
|
type: "container",
|
|
124
|
-
requiredAncestors: ["RadioGroup"],
|
|
125
124
|
constraints: {
|
|
126
125
|
relation: "ancestor",
|
|
127
126
|
component: { $eq: "RadioGroup" }
|
|
@@ -141,13 +140,13 @@ const e = ({
|
|
|
141
140
|
span: m
|
|
142
141
|
}
|
|
143
142
|
}, U = {
|
|
144
|
-
props:
|
|
143
|
+
props: w,
|
|
145
144
|
initialProps: ["id", "className", "name", "value", "required"]
|
|
146
145
|
}, $ = {
|
|
147
|
-
props:
|
|
146
|
+
props: S,
|
|
148
147
|
initialProps: ["value"]
|
|
149
148
|
}, j = {
|
|
150
|
-
props:
|
|
149
|
+
props: q
|
|
151
150
|
};
|
|
152
151
|
export {
|
|
153
152
|
H as metaRadioGroup,
|
package/lib/select.ws.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SelectIcon as V, TriggerIcon as w, FormTextFieldIcon as T, ContentIcon as M, ViewportIcon as
|
|
2
|
-
import { button as
|
|
3
|
-
import { flex as
|
|
1
|
+
import { SelectIcon as V, TriggerIcon as w, FormTextFieldIcon as T, ContentIcon as M, ViewportIcon as C, ItemIcon as k, CheckMarkIcon as d, TextIcon as F } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { button as q, span as s, div as P } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { flex as r, h as m, w as t, items as l, justify as y, rounded as a, border as o, bg as p, px as $, py as u, text as e, state as h, focus as S, outline as g, ring as E, disabled as W, cursor as f, opacity as I, relative as v, z as j, property as n, overflow as z, shadow as D, p as H, select as L, pl as U, pr as A, pointerEvents as B, absolute as G, left as J } from "./theme/tailwind-classes.js";
|
|
4
4
|
import { propsSelect as K, propsSelectTrigger as N, propsSelectValue as O, propsSelectContent as Q, propsSelectViewport as R, propsSelectItem as X, propsSelectItemIndicator as Y, propsSelectItemText as Z } from "./__generated__/select.props.js";
|
|
5
5
|
const i = {
|
|
6
|
-
div:
|
|
7
|
-
},
|
|
6
|
+
div: P
|
|
7
|
+
}, c = ({
|
|
8
8
|
props: b,
|
|
9
9
|
children: x
|
|
10
10
|
}) => ({
|
|
@@ -16,20 +16,20 @@ const i = {
|
|
|
16
16
|
// data-[disabled]:pointer-events-none data-[disabled]:opacity-50
|
|
17
17
|
styles: [
|
|
18
18
|
v(),
|
|
19
|
-
|
|
19
|
+
r(),
|
|
20
20
|
t("full"),
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
f("default"),
|
|
22
|
+
L(),
|
|
23
23
|
l("center"),
|
|
24
24
|
a("md"),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
u(1.5),
|
|
26
|
+
U(8),
|
|
27
|
+
A(2),
|
|
28
28
|
e("sm"),
|
|
29
29
|
g(),
|
|
30
30
|
S([p("accent"), e("accentForeground")].flat()),
|
|
31
31
|
h(
|
|
32
|
-
[B("none"),
|
|
32
|
+
[B("none"), I(50)].flat(),
|
|
33
33
|
"[data-disabled]"
|
|
34
34
|
)
|
|
35
35
|
].flat(),
|
|
@@ -41,11 +41,11 @@ const i = {
|
|
|
41
41
|
styles: [
|
|
42
42
|
G(),
|
|
43
43
|
J(2),
|
|
44
|
-
|
|
44
|
+
r(),
|
|
45
45
|
m(3.5),
|
|
46
46
|
t(3.5),
|
|
47
47
|
l("center"),
|
|
48
|
-
|
|
48
|
+
y("center")
|
|
49
49
|
].flat(),
|
|
50
50
|
children: [
|
|
51
51
|
{
|
|
@@ -106,23 +106,23 @@ const i = {
|
|
|
106
106
|
// focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2
|
|
107
107
|
// disabled:cursor-not-allowed disabled:opacity-50
|
|
108
108
|
styles: [
|
|
109
|
-
|
|
109
|
+
r(),
|
|
110
110
|
m(10),
|
|
111
111
|
t("full"),
|
|
112
112
|
l("center"),
|
|
113
|
-
|
|
113
|
+
y("between"),
|
|
114
114
|
a("md"),
|
|
115
115
|
o(),
|
|
116
116
|
o("input"),
|
|
117
117
|
p("background"),
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
$(3),
|
|
119
|
+
u(2),
|
|
120
120
|
e("sm"),
|
|
121
121
|
h([e("mutedForeground")].flat(), "::placeholder"),
|
|
122
122
|
S(
|
|
123
|
-
[g(),
|
|
123
|
+
[g(), E("ring", 2, "background", 2)].flat()
|
|
124
124
|
),
|
|
125
|
-
|
|
125
|
+
W([f("not-allowed"), I(50)].flat())
|
|
126
126
|
].flat(),
|
|
127
127
|
children: [
|
|
128
128
|
{
|
|
@@ -153,14 +153,14 @@ const i = {
|
|
|
153
153
|
// data-[side=top]:-translate-y-1
|
|
154
154
|
styles: [
|
|
155
155
|
v(),
|
|
156
|
-
|
|
156
|
+
j(50),
|
|
157
157
|
n("minWidth", "8rem"),
|
|
158
|
-
|
|
158
|
+
z("hidden"),
|
|
159
159
|
a("md"),
|
|
160
160
|
o(),
|
|
161
161
|
p("popover"),
|
|
162
162
|
e("popoverForeground"),
|
|
163
|
-
|
|
163
|
+
D("md")
|
|
164
164
|
].flat(),
|
|
165
165
|
children: [
|
|
166
166
|
{
|
|
@@ -170,25 +170,25 @@ const i = {
|
|
|
170
170
|
// position=popper
|
|
171
171
|
// h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]
|
|
172
172
|
styles: [
|
|
173
|
-
|
|
173
|
+
H(1),
|
|
174
174
|
n("height", "--radix-select-trigger-height"),
|
|
175
175
|
t("full"),
|
|
176
176
|
n("minWidth", "--radix-select-trigger-width")
|
|
177
177
|
].flat(),
|
|
178
178
|
children: [
|
|
179
|
-
|
|
179
|
+
c({
|
|
180
180
|
props: [{ name: "value", type: "string", value: "light" }],
|
|
181
181
|
children: [
|
|
182
182
|
{ type: "text", value: "Light", placeholder: !0 }
|
|
183
183
|
]
|
|
184
184
|
}),
|
|
185
|
-
|
|
185
|
+
c({
|
|
186
186
|
props: [{ name: "value", type: "string", value: "dark" }],
|
|
187
187
|
children: [
|
|
188
188
|
{ type: "text", value: "Dark", placeholder: !0 }
|
|
189
189
|
]
|
|
190
190
|
}),
|
|
191
|
-
|
|
191
|
+
c({
|
|
192
192
|
props: [{ name: "value", type: "string", value: "system" }],
|
|
193
193
|
children: [
|
|
194
194
|
{ type: "text", value: "System", placeholder: !0 }
|
|
@@ -201,15 +201,15 @@ const i = {
|
|
|
201
201
|
]
|
|
202
202
|
}
|
|
203
203
|
]
|
|
204
|
-
},
|
|
204
|
+
}, ce = {
|
|
205
205
|
category: "hidden",
|
|
206
206
|
type: "container",
|
|
207
207
|
icon: w,
|
|
208
208
|
detachable: !1,
|
|
209
209
|
presetStyle: {
|
|
210
|
-
button:
|
|
210
|
+
button: q
|
|
211
211
|
}
|
|
212
|
-
},
|
|
212
|
+
}, re = {
|
|
213
213
|
category: "hidden",
|
|
214
214
|
type: "container",
|
|
215
215
|
label: "Value",
|
|
@@ -227,14 +227,13 @@ const i = {
|
|
|
227
227
|
}, ae = {
|
|
228
228
|
category: "hidden",
|
|
229
229
|
type: "container",
|
|
230
|
-
icon:
|
|
230
|
+
icon: C,
|
|
231
231
|
detachable: !1,
|
|
232
232
|
presetStyle: i
|
|
233
233
|
}, pe = {
|
|
234
234
|
category: "hidden",
|
|
235
235
|
type: "container",
|
|
236
|
-
icon:
|
|
237
|
-
requiredAncestors: ["SelectViewport"],
|
|
236
|
+
icon: k,
|
|
238
237
|
constraints: {
|
|
239
238
|
relation: "ancestor",
|
|
240
239
|
component: { $eq: "SelectViewport" }
|
|
@@ -246,7 +245,6 @@ const i = {
|
|
|
246
245
|
label: "Indicator",
|
|
247
246
|
icon: d,
|
|
248
247
|
detachable: !1,
|
|
249
|
-
requiredAncestors: ["SelectItem"],
|
|
250
248
|
constraints: {
|
|
251
249
|
relation: "ancestor",
|
|
252
250
|
component: { $eq: "SelectItem" }
|
|
@@ -258,9 +256,8 @@ const i = {
|
|
|
258
256
|
category: "hidden",
|
|
259
257
|
type: "container",
|
|
260
258
|
label: "Item Text",
|
|
261
|
-
icon:
|
|
259
|
+
icon: F,
|
|
262
260
|
detachable: !1,
|
|
263
|
-
requiredAncestors: ["SelectItem"],
|
|
264
261
|
constraints: {
|
|
265
262
|
relation: "ancestor",
|
|
266
263
|
component: { $eq: "SelectItem" }
|
|
@@ -273,10 +270,10 @@ const i = {
|
|
|
273
270
|
initialProps: ["name", "value", "open", "required"]
|
|
274
271
|
}, me = {
|
|
275
272
|
props: N
|
|
276
|
-
},
|
|
273
|
+
}, ye = {
|
|
277
274
|
props: O,
|
|
278
275
|
initialProps: ["placeholder"]
|
|
279
|
-
},
|
|
276
|
+
}, ue = {
|
|
280
277
|
props: Q
|
|
281
278
|
}, he = {
|
|
282
279
|
props: R
|
|
@@ -285,7 +282,7 @@ const i = {
|
|
|
285
282
|
initialProps: ["value"]
|
|
286
283
|
}, ge = {
|
|
287
284
|
props: Y
|
|
288
|
-
},
|
|
285
|
+
}, fe = {
|
|
289
286
|
props: Z
|
|
290
287
|
};
|
|
291
288
|
export {
|
|
@@ -294,15 +291,15 @@ export {
|
|
|
294
291
|
pe as metaSelectItem,
|
|
295
292
|
se as metaSelectItemIndicator,
|
|
296
293
|
ie as metaSelectItemText,
|
|
297
|
-
|
|
298
|
-
|
|
294
|
+
ce as metaSelectTrigger,
|
|
295
|
+
re as metaSelectValue,
|
|
299
296
|
ae as metaSelectViewport,
|
|
300
297
|
de as propsMetaSelect,
|
|
301
|
-
|
|
298
|
+
ue as propsMetaSelectContent,
|
|
302
299
|
Se as propsMetaSelectItem,
|
|
303
300
|
ge as propsMetaSelectItemIndicator,
|
|
304
|
-
|
|
301
|
+
fe as propsMetaSelectItemText,
|
|
305
302
|
me as propsMetaSelectTrigger,
|
|
306
|
-
|
|
303
|
+
ye as propsMetaSelectValue,
|
|
307
304
|
he as propsMetaSelectViewport
|
|
308
305
|
};
|
package/lib/tabs.ws.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { TabsIcon as b, HeaderIcon as
|
|
2
|
-
import { defaultStates as
|
|
3
|
-
import { button as
|
|
4
|
-
import { inlineFlex as a, items as
|
|
1
|
+
import { TabsIcon as b, HeaderIcon as m, TriggerIcon as g, ContentIcon as T } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { defaultStates as y } from "@webstudio-is/react-sdk";
|
|
3
|
+
import { button as u, div as h } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
+
import { inlineFlex as a, items as r, justify as s, whitespace as f, rounded as c, px as v, py as x, text as t, font as C, transition as q, focusVisible as i, outline as p, ring as l, disabled as $, pointerEvents as L, opacity as w, state as A, bg as d, shadow as M, mt as S, h as k, p as I } from "./theme/tailwind-classes.js";
|
|
5
5
|
import { buttonReset as F } from "./theme/styles.js";
|
|
6
6
|
import { propsTabs as V, propsTabsList as W, propsTabsTrigger as j, propsTabsContent as D } from "./__generated__/tabs.props.js";
|
|
7
7
|
const e = {
|
|
8
8
|
div: h
|
|
9
9
|
}, n = [
|
|
10
10
|
a(),
|
|
11
|
-
s("center"),
|
|
12
11
|
r("center"),
|
|
12
|
+
s("center"),
|
|
13
13
|
f(),
|
|
14
|
-
|
|
14
|
+
c("md"),
|
|
15
15
|
v(3),
|
|
16
16
|
x(1.5),
|
|
17
17
|
t("sm"),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
C("medium"),
|
|
19
|
+
q("all"),
|
|
20
|
+
i(
|
|
21
21
|
[p(), l("ring", 2, "background", 2)].flat()
|
|
22
22
|
),
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
$([L("none"), w(50)].flat()),
|
|
24
|
+
A(
|
|
25
25
|
[d("background"), t("foreground"), M("sm")].flat(),
|
|
26
26
|
"[data-state=active]"
|
|
27
27
|
)
|
|
28
28
|
].flat(), o = [
|
|
29
29
|
S(2),
|
|
30
|
-
|
|
30
|
+
i(
|
|
31
31
|
[p(), l("ring", 2, "background", 2)].flat()
|
|
32
32
|
)
|
|
33
33
|
].flat(), B = {
|
|
@@ -64,9 +64,9 @@ const e = {
|
|
|
64
64
|
styles: [
|
|
65
65
|
a(),
|
|
66
66
|
k(10),
|
|
67
|
-
s("center"),
|
|
68
67
|
r("center"),
|
|
69
|
-
|
|
68
|
+
s("center"),
|
|
69
|
+
c("md"),
|
|
70
70
|
d("muted"),
|
|
71
71
|
I(1),
|
|
72
72
|
t("mutedForeground")
|
|
@@ -118,8 +118,7 @@ const e = {
|
|
|
118
118
|
}, G = {
|
|
119
119
|
category: "hidden",
|
|
120
120
|
type: "container",
|
|
121
|
-
icon:
|
|
122
|
-
requiredAncestors: ["Tabs"],
|
|
121
|
+
icon: m,
|
|
123
122
|
constraints: {
|
|
124
123
|
relation: "ancestor",
|
|
125
124
|
component: { $eq: "Tabs" }
|
|
@@ -129,8 +128,6 @@ const e = {
|
|
|
129
128
|
category: "hidden",
|
|
130
129
|
type: "container",
|
|
131
130
|
icon: g,
|
|
132
|
-
requiredAncestors: ["TabsList"],
|
|
133
|
-
invalidAncestors: ["TabsTrigger"],
|
|
134
131
|
constraints: [
|
|
135
132
|
{
|
|
136
133
|
relation: "ancestor",
|
|
@@ -144,7 +141,7 @@ const e = {
|
|
|
144
141
|
indexWithinAncestor: "Tabs",
|
|
145
142
|
label: "Tab Trigger",
|
|
146
143
|
states: [
|
|
147
|
-
...
|
|
144
|
+
...y,
|
|
148
145
|
{
|
|
149
146
|
category: "component-states",
|
|
150
147
|
label: "Active",
|
|
@@ -152,14 +149,13 @@ const e = {
|
|
|
152
149
|
}
|
|
153
150
|
],
|
|
154
151
|
presetStyle: {
|
|
155
|
-
button: [
|
|
152
|
+
button: [u, F].flat()
|
|
156
153
|
}
|
|
157
154
|
}, K = {
|
|
158
155
|
category: "hidden",
|
|
159
156
|
type: "container",
|
|
160
157
|
label: "Tab Content",
|
|
161
|
-
icon:
|
|
162
|
-
requiredAncestors: ["Tabs"],
|
|
158
|
+
icon: T,
|
|
163
159
|
constraints: {
|
|
164
160
|
relation: "ancestor",
|
|
165
161
|
component: { $eq: "Tabs" }
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import type { EmbedTemplateStyleDecl } from "@webstudio-is/react-sdk";
|
|
2
2
|
export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "default" | "sm" | "icon") => {
|
|
3
3
|
value: {
|
|
4
|
-
type: "image";
|
|
5
4
|
value: {
|
|
6
|
-
type: "asset";
|
|
7
5
|
value: string;
|
|
6
|
+
type: "asset";
|
|
8
7
|
} | {
|
|
9
|
-
type: "url";
|
|
10
8
|
url: string;
|
|
9
|
+
type: "url";
|
|
11
10
|
};
|
|
11
|
+
type: "image";
|
|
12
12
|
hidden?: boolean | undefined;
|
|
13
13
|
} | {
|
|
14
|
-
type: "unit";
|
|
15
14
|
value: number;
|
|
16
|
-
|
|
15
|
+
type: "unit";
|
|
16
|
+
unit: "number" | "x" | "em" | "q" | "s" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "in" | "pt" | "pc" | "px" | "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" | "st" | "ms";
|
|
17
17
|
hidden?: boolean | undefined;
|
|
18
18
|
} | {
|
|
19
|
-
type: "keyword";
|
|
20
19
|
value: string;
|
|
20
|
+
type: "keyword";
|
|
21
21
|
hidden?: boolean | undefined;
|
|
22
22
|
} | {
|
|
23
|
-
type: "unparsed";
|
|
24
23
|
value: string;
|
|
24
|
+
type: "unparsed";
|
|
25
25
|
hidden?: boolean | undefined;
|
|
26
26
|
} | {
|
|
27
27
|
b: number;
|
|
@@ -36,20 +36,20 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
|
|
|
36
36
|
args: import("@webstudio-is/css-engine").StyleValue;
|
|
37
37
|
hidden?: boolean;
|
|
38
38
|
} | {
|
|
39
|
-
type: "var";
|
|
40
39
|
value: string;
|
|
40
|
+
type: "var";
|
|
41
41
|
fallback?: {
|
|
42
|
-
type: "unit";
|
|
43
42
|
value: number;
|
|
44
|
-
|
|
43
|
+
type: "unit";
|
|
44
|
+
unit: "number" | "x" | "em" | "q" | "s" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "in" | "pt" | "pc" | "px" | "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" | "st" | "ms";
|
|
45
45
|
hidden?: boolean | undefined;
|
|
46
46
|
} | {
|
|
47
|
-
type: "keyword";
|
|
48
47
|
value: string;
|
|
48
|
+
type: "keyword";
|
|
49
49
|
hidden?: boolean | undefined;
|
|
50
50
|
} | {
|
|
51
|
-
type: "unparsed";
|
|
52
51
|
value: string;
|
|
52
|
+
type: "unparsed";
|
|
53
53
|
hidden?: boolean | undefined;
|
|
54
54
|
} | {
|
|
55
55
|
b: number;
|
|
@@ -61,29 +61,28 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
|
|
|
61
61
|
} | undefined;
|
|
62
62
|
hidden?: boolean | undefined;
|
|
63
63
|
} | {
|
|
64
|
-
type: "tuple";
|
|
65
64
|
value: ({
|
|
66
|
-
type: "image";
|
|
67
65
|
value: {
|
|
68
|
-
type: "asset";
|
|
69
66
|
value: string;
|
|
67
|
+
type: "asset";
|
|
70
68
|
} | {
|
|
71
|
-
type: "url";
|
|
72
69
|
url: string;
|
|
70
|
+
type: "url";
|
|
73
71
|
};
|
|
72
|
+
type: "image";
|
|
74
73
|
hidden?: boolean | undefined;
|
|
75
74
|
} | {
|
|
76
|
-
type: "unit";
|
|
77
75
|
value: number;
|
|
78
|
-
|
|
76
|
+
type: "unit";
|
|
77
|
+
unit: "number" | "x" | "em" | "q" | "s" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "in" | "pt" | "pc" | "px" | "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" | "st" | "ms";
|
|
79
78
|
hidden?: boolean | undefined;
|
|
80
79
|
} | {
|
|
81
|
-
type: "keyword";
|
|
82
80
|
value: string;
|
|
81
|
+
type: "keyword";
|
|
83
82
|
hidden?: boolean | undefined;
|
|
84
83
|
} | {
|
|
85
|
-
type: "unparsed";
|
|
86
84
|
value: string;
|
|
85
|
+
type: "unparsed";
|
|
87
86
|
hidden?: boolean | undefined;
|
|
88
87
|
} | {
|
|
89
88
|
b: number;
|
|
@@ -98,20 +97,20 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
|
|
|
98
97
|
args: import("@webstudio-is/css-engine").StyleValue;
|
|
99
98
|
hidden?: boolean;
|
|
100
99
|
} | {
|
|
101
|
-
type: "var";
|
|
102
100
|
value: string;
|
|
101
|
+
type: "var";
|
|
103
102
|
fallback?: {
|
|
104
|
-
type: "unit";
|
|
105
103
|
value: number;
|
|
106
|
-
|
|
104
|
+
type: "unit";
|
|
105
|
+
unit: "number" | "x" | "em" | "q" | "s" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "in" | "pt" | "pc" | "px" | "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" | "st" | "ms";
|
|
107
106
|
hidden?: boolean | undefined;
|
|
108
107
|
} | {
|
|
109
|
-
type: "keyword";
|
|
110
108
|
value: string;
|
|
109
|
+
type: "keyword";
|
|
111
110
|
hidden?: boolean | undefined;
|
|
112
111
|
} | {
|
|
113
|
-
type: "unparsed";
|
|
114
112
|
value: string;
|
|
113
|
+
type: "unparsed";
|
|
115
114
|
hidden?: boolean | undefined;
|
|
116
115
|
} | {
|
|
117
116
|
b: number;
|
|
@@ -123,35 +122,35 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
|
|
|
123
122
|
} | undefined;
|
|
124
123
|
hidden?: boolean | undefined;
|
|
125
124
|
})[];
|
|
125
|
+
type: "tuple";
|
|
126
126
|
hidden?: boolean | undefined;
|
|
127
127
|
} | {
|
|
128
|
-
type: "invalid";
|
|
129
128
|
value: string;
|
|
129
|
+
type: "invalid";
|
|
130
130
|
hidden?: boolean | undefined;
|
|
131
131
|
} | {
|
|
132
|
-
type: "layers";
|
|
133
132
|
value: ({
|
|
134
|
-
type: "image";
|
|
135
133
|
value: {
|
|
136
|
-
type: "asset";
|
|
137
134
|
value: string;
|
|
135
|
+
type: "asset";
|
|
138
136
|
} | {
|
|
139
|
-
type: "url";
|
|
140
137
|
url: string;
|
|
138
|
+
type: "url";
|
|
141
139
|
};
|
|
140
|
+
type: "image";
|
|
142
141
|
hidden?: boolean | undefined;
|
|
143
142
|
} | {
|
|
144
|
-
type: "unit";
|
|
145
143
|
value: number;
|
|
146
|
-
|
|
144
|
+
type: "unit";
|
|
145
|
+
unit: "number" | "x" | "em" | "q" | "s" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "in" | "pt" | "pc" | "px" | "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" | "st" | "ms";
|
|
147
146
|
hidden?: boolean | undefined;
|
|
148
147
|
} | {
|
|
149
|
-
type: "keyword";
|
|
150
148
|
value: string;
|
|
149
|
+
type: "keyword";
|
|
151
150
|
hidden?: boolean | undefined;
|
|
152
151
|
} | {
|
|
153
|
-
type: "unparsed";
|
|
154
152
|
value: string;
|
|
153
|
+
type: "unparsed";
|
|
155
154
|
hidden?: boolean | undefined;
|
|
156
155
|
} | {
|
|
157
156
|
b: number;
|
|
@@ -166,20 +165,20 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
|
|
|
166
165
|
args: import("@webstudio-is/css-engine").StyleValue;
|
|
167
166
|
hidden?: boolean;
|
|
168
167
|
} | {
|
|
169
|
-
type: "var";
|
|
170
168
|
value: string;
|
|
169
|
+
type: "var";
|
|
171
170
|
fallback?: {
|
|
172
|
-
type: "unit";
|
|
173
171
|
value: number;
|
|
174
|
-
|
|
172
|
+
type: "unit";
|
|
173
|
+
unit: "number" | "x" | "em" | "q" | "s" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "in" | "pt" | "pc" | "px" | "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" | "st" | "ms";
|
|
175
174
|
hidden?: boolean | undefined;
|
|
176
175
|
} | {
|
|
177
|
-
type: "keyword";
|
|
178
176
|
value: string;
|
|
177
|
+
type: "keyword";
|
|
179
178
|
hidden?: boolean | undefined;
|
|
180
179
|
} | {
|
|
181
|
-
type: "unparsed";
|
|
182
180
|
value: string;
|
|
181
|
+
type: "unparsed";
|
|
183
182
|
hidden?: boolean | undefined;
|
|
184
183
|
} | {
|
|
185
184
|
b: number;
|
|
@@ -191,29 +190,28 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
|
|
|
191
190
|
} | undefined;
|
|
192
191
|
hidden?: boolean | undefined;
|
|
193
192
|
} | {
|
|
194
|
-
type: "tuple";
|
|
195
193
|
value: ({
|
|
196
|
-
type: "image";
|
|
197
194
|
value: {
|
|
198
|
-
type: "asset";
|
|
199
195
|
value: string;
|
|
196
|
+
type: "asset";
|
|
200
197
|
} | {
|
|
201
|
-
type: "url";
|
|
202
198
|
url: string;
|
|
199
|
+
type: "url";
|
|
203
200
|
};
|
|
201
|
+
type: "image";
|
|
204
202
|
hidden?: boolean | undefined;
|
|
205
203
|
} | {
|
|
206
|
-
type: "unit";
|
|
207
204
|
value: number;
|
|
208
|
-
|
|
205
|
+
type: "unit";
|
|
206
|
+
unit: "number" | "x" | "em" | "q" | "s" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "in" | "pt" | "pc" | "px" | "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" | "st" | "ms";
|
|
209
207
|
hidden?: boolean | undefined;
|
|
210
208
|
} | {
|
|
211
|
-
type: "keyword";
|
|
212
209
|
value: string;
|
|
210
|
+
type: "keyword";
|
|
213
211
|
hidden?: boolean | undefined;
|
|
214
212
|
} | {
|
|
215
|
-
type: "unparsed";
|
|
216
213
|
value: string;
|
|
214
|
+
type: "unparsed";
|
|
217
215
|
hidden?: boolean | undefined;
|
|
218
216
|
} | {
|
|
219
217
|
b: number;
|
|
@@ -228,20 +226,20 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
|
|
|
228
226
|
args: import("@webstudio-is/css-engine").StyleValue;
|
|
229
227
|
hidden?: boolean;
|
|
230
228
|
} | {
|
|
231
|
-
type: "var";
|
|
232
229
|
value: string;
|
|
230
|
+
type: "var";
|
|
233
231
|
fallback?: {
|
|
234
|
-
type: "unit";
|
|
235
232
|
value: number;
|
|
236
|
-
|
|
233
|
+
type: "unit";
|
|
234
|
+
unit: "number" | "x" | "em" | "q" | "s" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "fr" | "hz" | "khz" | "cm" | "mm" | "in" | "pt" | "pc" | "px" | "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" | "st" | "ms";
|
|
237
235
|
hidden?: boolean | undefined;
|
|
238
236
|
} | {
|
|
239
|
-
type: "keyword";
|
|
240
237
|
value: string;
|
|
238
|
+
type: "keyword";
|
|
241
239
|
hidden?: boolean | undefined;
|
|
242
240
|
} | {
|
|
243
|
-
type: "unparsed";
|
|
244
241
|
value: string;
|
|
242
|
+
type: "unparsed";
|
|
245
243
|
hidden?: boolean | undefined;
|
|
246
244
|
} | {
|
|
247
245
|
b: number;
|
|
@@ -253,23 +251,25 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
|
|
|
253
251
|
} | undefined;
|
|
254
252
|
hidden?: boolean | undefined;
|
|
255
253
|
})[];
|
|
254
|
+
type: "tuple";
|
|
256
255
|
hidden?: boolean | undefined;
|
|
257
256
|
} | {
|
|
258
|
-
type: "invalid";
|
|
259
257
|
value: string;
|
|
258
|
+
type: "invalid";
|
|
260
259
|
hidden?: boolean | undefined;
|
|
261
260
|
})[];
|
|
261
|
+
type: "layers";
|
|
262
262
|
hidden?: boolean | undefined;
|
|
263
263
|
} | {
|
|
264
|
-
type: "fontFamily";
|
|
265
264
|
value: string[];
|
|
265
|
+
type: "fontFamily";
|
|
266
266
|
hidden?: boolean | undefined;
|
|
267
267
|
} | {
|
|
268
268
|
type: "guaranteedInvalid";
|
|
269
269
|
hidden?: boolean | undefined;
|
|
270
270
|
} | {
|
|
271
|
-
type: "unset";
|
|
272
271
|
value: "";
|
|
272
|
+
type: "unset";
|
|
273
273
|
hidden?: boolean | undefined;
|
|
274
274
|
};
|
|
275
275
|
state?: string | undefined;
|
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.193.0",
|
|
4
4
|
"description": "Webstudio wrapper for radix library",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@radix-ui/react-switch": "^1.1.1",
|
|
52
52
|
"@radix-ui/react-tabs": "^1.1.1",
|
|
53
53
|
"@radix-ui/react-tooltip": "^1.1.4",
|
|
54
|
-
"@webstudio-is/css-engine": "0.
|
|
55
|
-
"@webstudio-is/
|
|
56
|
-
"@webstudio-is/
|
|
57
|
-
"@webstudio-is/sdk": "0.
|
|
54
|
+
"@webstudio-is/css-engine": "0.193.0",
|
|
55
|
+
"@webstudio-is/icons": "0.193.0",
|
|
56
|
+
"@webstudio-is/sdk": "0.193.0",
|
|
57
|
+
"@webstudio-is/react-sdk": "0.193.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/node": "^22.9.3",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
64
64
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
65
65
|
"tailwindcss": "^3.3.3",
|
|
66
|
+
"@webstudio-is/css-data": "0.0.0",
|
|
66
67
|
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
67
68
|
"@webstudio-is/sdk-cli": "^0.94.0",
|
|
68
|
-
"@webstudio-is/
|
|
69
|
-
"@webstudio-is/tsconfig": "1.0.7"
|
|
70
|
-
"@webstudio-is/sdk-components-react": "0.191.5"
|
|
69
|
+
"@webstudio-is/sdk-components-react": "0.193.0",
|
|
70
|
+
"@webstudio-is/tsconfig": "1.0.7"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "vite build --config ../../vite.sdk-components.config.ts",
|