@webstudio-is/sdk-components-react-radix 0.191.5 → 0.192.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.
@@ -1,13 +1,13 @@
1
- import { AccordionIcon as a, ItemIcon as s, HeaderIcon as l, TriggerIcon as d, ContentIcon as p, ChevronDownIcon as m } from "@webstudio-is/icons/svg";
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 u } from "@webstudio-is/sdk/normalize.css";
4
- import { borderB as g, 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 q, hover as T, underline as w, property as t, state as S, h as M, w as $, shrink as k, transition as Y, duration as B } from "./theme/tailwind-classes.js";
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: u
9
- }, o = [g()].flat(), n = ({
10
- children: i
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
- q("medium"),
28
- T([w()].flat()),
27
+ T("medium"),
28
+ w([S()].flat()),
29
29
  t("--accordion-trigger-icon-transform", "0deg"),
30
- S(
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: i
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
- M(4),
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: a,
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: d,
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: p,
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 A, ContentIcon as k, BoxIcon as L, ViewportIcon as C, ChevronDownIcon as q } from "@webstudio-is/icons/svg";
2
- import { div as T } from "@webstudio-is/sdk/normalize.css";
3
- import { relative as m, maxW as B, p as a, m as h, flex as n, list as $, items as V, justify as u, 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";
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: T
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
- ], g = (e) => [
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: q
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(), B("max")].flat(),
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
- $("none"),
282
- V("center"),
283
- u("center"),
281
+ V("none"),
282
+ q("center"),
283
+ g("center"),
284
284
  s(1)
285
285
  ].flat(),
286
286
  children: [
287
- ...g({
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
- ...g({
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
- u("center")
332
+ g("center")
333
333
  ].flat(),
334
334
  children: [
335
335
  {
@@ -367,23 +367,21 @@ const o = {
367
367
  ]
368
368
  }
369
369
  ]
370
- }, ue = {
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
- }, ge = {
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: A,
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: k,
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: L,
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: C,
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
- }, Ae = {
457
+ }, ke = {
464
458
  props: ne
465
459
  };
466
460
  export {
467
461
  me as metaNavigationMenu,
468
462
  ve as metaNavigationMenuContent,
469
- ge as metaNavigationMenuItem,
463
+ ue as metaNavigationMenuItem,
470
464
  ye as metaNavigationMenuLink,
471
- ue as metaNavigationMenuList,
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
- Ae as propsMetaNavigationMenuViewport
474
+ ke as propsMetaNavigationMenuViewport
481
475
  };
@@ -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 q, propsRadioGroupItem as w, propsRadioGroupIndicator as S } from "./__generated__/radio-group.props.js";
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: q,
143
+ props: w,
145
144
  initialProps: ["id", "className", "name", "value", "required"]
146
145
  }, $ = {
147
- props: w,
146
+ props: S,
148
147
  initialProps: ["value"]
149
148
  }, j = {
150
- props: S
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 q, ItemIcon as C, CheckMarkIcon as d, TextIcon as k } from "@webstudio-is/icons/svg";
2
- import { button as F, span as s, div as A } from "@webstudio-is/sdk/normalize.css";
3
- import { flex as c, h as m, w as t, items as l, justify as u, rounded as a, border as o, bg as p, px as P, py as y, text as e, state as h, focus as S, outline as g, ring as $, disabled as E, cursor as I, opacity as f, relative as v, z as W, property as n, overflow as j, shadow as z, p as D, select as H, pl as L, pr as U, pointerEvents as B, absolute as G, left as J } from "./theme/tailwind-classes.js";
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: A
7
- }, r = ({
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
- c(),
19
+ r(),
20
20
  t("full"),
21
- I("default"),
22
- H(),
21
+ f("default"),
22
+ L(),
23
23
  l("center"),
24
24
  a("md"),
25
- y(1.5),
26
- L(8),
27
- U(2),
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"), f(50)].flat(),
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
- c(),
44
+ r(),
45
45
  m(3.5),
46
46
  t(3.5),
47
47
  l("center"),
48
- u("center")
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
- c(),
109
+ r(),
110
110
  m(10),
111
111
  t("full"),
112
112
  l("center"),
113
- u("between"),
113
+ y("between"),
114
114
  a("md"),
115
115
  o(),
116
116
  o("input"),
117
117
  p("background"),
118
- P(3),
119
- y(2),
118
+ $(3),
119
+ u(2),
120
120
  e("sm"),
121
121
  h([e("mutedForeground")].flat(), "::placeholder"),
122
122
  S(
123
- [g(), $("ring", 2, "background", 2)].flat()
123
+ [g(), E("ring", 2, "background", 2)].flat()
124
124
  ),
125
- E([I("not-allowed"), f(50)].flat())
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
- W(50),
156
+ j(50),
157
157
  n("minWidth", "8rem"),
158
- j("hidden"),
158
+ z("hidden"),
159
159
  a("md"),
160
160
  o(),
161
161
  p("popover"),
162
162
  e("popoverForeground"),
163
- z("md")
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
- D(1),
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
- r({
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
- r({
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
- r({
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
- }, re = {
204
+ }, ce = {
205
205
  category: "hidden",
206
206
  type: "container",
207
207
  icon: w,
208
208
  detachable: !1,
209
209
  presetStyle: {
210
- button: F
210
+ button: q
211
211
  }
212
- }, ce = {
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: q,
230
+ icon: C,
231
231
  detachable: !1,
232
232
  presetStyle: i
233
233
  }, pe = {
234
234
  category: "hidden",
235
235
  type: "container",
236
- icon: C,
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: k,
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
- }, ue = {
273
+ }, ye = {
277
274
  props: O,
278
275
  initialProps: ["placeholder"]
279
- }, ye = {
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
- }, Ie = {
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
- re as metaSelectTrigger,
298
- ce as metaSelectValue,
294
+ ce as metaSelectTrigger,
295
+ re as metaSelectValue,
299
296
  ae as metaSelectViewport,
300
297
  de as propsMetaSelect,
301
- ye as propsMetaSelectContent,
298
+ ue as propsMetaSelectContent,
302
299
  Se as propsMetaSelectItem,
303
300
  ge as propsMetaSelectItemIndicator,
304
- Ie as propsMetaSelectItemText,
301
+ fe as propsMetaSelectItemText,
305
302
  me as propsMetaSelectTrigger,
306
- ue as propsMetaSelectValue,
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 T, TriggerIcon as g, ContentIcon as m } from "@webstudio-is/icons/svg";
2
- import { defaultStates as u } from "@webstudio-is/react-sdk";
3
- import { button as y, div as h } from "@webstudio-is/sdk/normalize.css";
4
- import { inlineFlex as a, items as s, justify as r, whitespace as f, rounded as i, px as v, py as x, text as t, font as q, transition as C, focusVisible as c, outline as p, ring as l, disabled as A, pointerEvents as L, opacity as $, state as w, bg as d, shadow as M, mt as S, h as k, p as I } from "./theme/tailwind-classes.js";
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
- i("md"),
14
+ c("md"),
15
15
  v(3),
16
16
  x(1.5),
17
17
  t("sm"),
18
- q("medium"),
19
- C("all"),
20
- c(
18
+ C("medium"),
19
+ q("all"),
20
+ i(
21
21
  [p(), l("ring", 2, "background", 2)].flat()
22
22
  ),
23
- A([L("none"), $(50)].flat()),
24
- w(
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
- c(
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
- i("md"),
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: T,
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
- ...u,
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: [y, F].flat()
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: m,
162
- requiredAncestors: ["Tabs"],
158
+ icon: T,
163
159
  constraints: {
164
160
  relation: "ancestor",
165
161
  component: { $eq: "Tabs" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react-radix",
3
- "version": "0.191.5",
3
+ "version": "0.192.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.191.5",
55
- "@webstudio-is/react-sdk": "0.191.5",
56
- "@webstudio-is/icons": "0.191.5",
57
- "@webstudio-is/sdk": "0.191.5"
54
+ "@webstudio-is/css-engine": "0.192.0",
55
+ "@webstudio-is/icons": "0.192.0",
56
+ "@webstudio-is/sdk": "0.192.0",
57
+ "@webstudio-is/react-sdk": "0.192.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/node": "^22.9.3",
@@ -64,10 +64,10 @@
64
64
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
65
65
  "tailwindcss": "^3.3.3",
66
66
  "@webstudio-is/generate-arg-types": "0.0.0",
67
- "@webstudio-is/sdk-cli": "^0.94.0",
68
67
  "@webstudio-is/css-data": "0.0.0",
69
- "@webstudio-is/tsconfig": "1.0.7",
70
- "@webstudio-is/sdk-components-react": "0.191.5"
68
+ "@webstudio-is/sdk-cli": "^0.94.0",
69
+ "@webstudio-is/sdk-components-react": "0.192.0",
70
+ "@webstudio-is/tsconfig": "1.0.7"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "vite build --config ../../vite.sdk-components.config.ts",