@webstudio-is/sdk-components-react-radix 0.193.0 → 0.194.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/select.ws.js CHANGED
@@ -1,16 +1,16 @@
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";
1
+ import { SelectIcon as b, TriggerIcon as T, FormTextFieldIcon as q, ContentIcon as w, ViewportIcon as $, ItemIcon as C, CheckMarkIcon as d, TextIcon as M } from "@webstudio-is/icons/svg";
2
+ import { button as k, span as i, div as F } 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 n, bg as p, px as P, py as S, text as e, state as u, focus as g, outline as h, ring as E, disabled as W, cursor as I, opacity as f, relative as v, z as j, property as o, 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
- const i = {
6
- div: P
5
+ const s = {
6
+ div: F
7
7
  }, c = ({
8
- props: b,
9
- children: x
8
+ props: x,
9
+ children: V
10
10
  }) => ({
11
11
  type: "instance",
12
12
  component: "SelectItem",
13
- props: b,
13
+ props: x,
14
14
  // relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none
15
15
  // focus:bg-accent focus:text-accent-foreground
16
16
  // data-[disabled]:pointer-events-none data-[disabled]:opacity-50
@@ -18,18 +18,18 @@ const i = {
18
18
  v(),
19
19
  r(),
20
20
  t("full"),
21
- f("default"),
21
+ I("default"),
22
22
  L(),
23
23
  l("center"),
24
24
  a("md"),
25
- u(1.5),
25
+ S(1.5),
26
26
  U(8),
27
27
  A(2),
28
28
  e("sm"),
29
- g(),
30
- S([p("accent"), e("accentForeground")].flat()),
31
- h(
32
- [B("none"), I(50)].flat(),
29
+ h(),
30
+ g([p("accent"), e("accentForeground")].flat()),
31
+ u(
32
+ [B("none"), f(50)].flat(),
33
33
  "[data-disabled]"
34
34
  )
35
35
  ].flat(),
@@ -66,14 +66,24 @@ const i = {
66
66
  {
67
67
  type: "instance",
68
68
  component: "SelectItemText",
69
- children: x
69
+ children: V
70
70
  }
71
71
  ]
72
- }), ne = {
72
+ }), oe = {
73
73
  category: "radix",
74
74
  order: 10,
75
75
  type: "container",
76
- icon: V,
76
+ constraints: [
77
+ {
78
+ relation: "descendant",
79
+ component: { $eq: "SelectTrigger" }
80
+ },
81
+ {
82
+ relation: "descendant",
83
+ component: { $eq: "SelectContent" }
84
+ }
85
+ ],
86
+ icon: b,
77
87
  stylable: !1,
78
88
  description: "Use within a form to give your users a list of options to choose from.",
79
89
  template: [
@@ -112,17 +122,17 @@ const i = {
112
122
  l("center"),
113
123
  y("between"),
114
124
  a("md"),
115
- o(),
116
- o("input"),
125
+ n(),
126
+ n("input"),
117
127
  p("background"),
118
- $(3),
119
- u(2),
128
+ P(3),
129
+ S(2),
120
130
  e("sm"),
121
- h([e("mutedForeground")].flat(), "::placeholder"),
122
- S(
123
- [g(), E("ring", 2, "background", 2)].flat()
131
+ u([e("mutedForeground")].flat(), "::placeholder"),
132
+ g(
133
+ [h(), E("ring", 2, "background", 2)].flat()
124
134
  ),
125
- W([f("not-allowed"), I(50)].flat())
135
+ W([I("not-allowed"), f(50)].flat())
126
136
  ].flat(),
127
137
  children: [
128
138
  {
@@ -154,10 +164,10 @@ const i = {
154
164
  styles: [
155
165
  v(),
156
166
  j(50),
157
- n("minWidth", "8rem"),
167
+ o("minWidth", "8rem"),
158
168
  z("hidden"),
159
169
  a("md"),
160
- o(),
170
+ n(),
161
171
  p("popover"),
162
172
  e("popoverForeground"),
163
173
  D("md")
@@ -171,9 +181,9 @@ const i = {
171
181
  // h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]
172
182
  styles: [
173
183
  H(1),
174
- n("height", "--radix-select-trigger-height"),
184
+ o("height", "--radix-select-trigger-height"),
175
185
  t("full"),
176
- n("minWidth", "--radix-select-trigger-width")
186
+ o("minWidth", "--radix-select-trigger-width")
177
187
  ].flat(),
178
188
  children: [
179
189
  c({
@@ -204,66 +214,104 @@ const i = {
204
214
  }, ce = {
205
215
  category: "hidden",
206
216
  type: "container",
207
- icon: w,
208
- detachable: !1,
217
+ icon: T,
209
218
  presetStyle: {
210
- button: q
211
- }
219
+ button: k
220
+ },
221
+ constraints: [
222
+ {
223
+ relation: "ancestor",
224
+ component: { $eq: "Select" }
225
+ },
226
+ {
227
+ relation: "descendant",
228
+ component: { $eq: "SelectValue" }
229
+ }
230
+ ]
212
231
  }, re = {
213
232
  category: "hidden",
214
233
  type: "container",
215
234
  label: "Value",
216
- icon: T,
217
- detachable: !1,
235
+ icon: q,
218
236
  presetStyle: {
219
- span: s
237
+ span: i
238
+ },
239
+ constraints: {
240
+ relation: "ancestor",
241
+ component: { $eq: "SelectTrigger" }
220
242
  }
221
243
  }, le = {
222
244
  category: "hidden",
223
245
  type: "container",
224
- icon: M,
225
- detachable: !1,
226
- presetStyle: i
246
+ icon: w,
247
+ presetStyle: s,
248
+ constraints: [
249
+ {
250
+ relation: "ancestor",
251
+ component: { $eq: "Select" }
252
+ },
253
+ {
254
+ relation: "descendant",
255
+ component: { $eq: "SelectViewport" }
256
+ }
257
+ ]
227
258
  }, ae = {
228
259
  category: "hidden",
229
260
  type: "container",
230
- icon: C,
231
- detachable: !1,
232
- presetStyle: i
261
+ icon: $,
262
+ presetStyle: s,
263
+ constraints: [
264
+ {
265
+ relation: "ancestor",
266
+ component: { $eq: "SelectContent" }
267
+ },
268
+ {
269
+ relation: "descendant",
270
+ component: { $eq: "SelectItem" }
271
+ }
272
+ ]
233
273
  }, pe = {
234
274
  category: "hidden",
235
275
  type: "container",
236
- icon: k,
237
- constraints: {
238
- relation: "ancestor",
239
- component: { $eq: "SelectViewport" }
240
- },
241
- presetStyle: i
242
- }, se = {
276
+ icon: C,
277
+ constraints: [
278
+ {
279
+ relation: "ancestor",
280
+ component: { $eq: "SelectViewport" }
281
+ },
282
+ {
283
+ relation: "descendant",
284
+ component: { $eq: "SelectItemIndicator" }
285
+ },
286
+ {
287
+ relation: "descendant",
288
+ component: { $eq: "SelectItemText" }
289
+ }
290
+ ],
291
+ presetStyle: s
292
+ }, ie = {
243
293
  category: "hidden",
244
294
  type: "container",
245
295
  label: "Indicator",
246
296
  icon: d,
247
- detachable: !1,
248
297
  constraints: {
249
298
  relation: "ancestor",
250
299
  component: { $eq: "SelectItem" }
251
300
  },
252
301
  presetStyle: {
253
- span: s
302
+ span: i
254
303
  }
255
- }, ie = {
304
+ }, se = {
256
305
  category: "hidden",
257
306
  type: "container",
258
307
  label: "Item Text",
259
- icon: F,
260
- detachable: !1,
308
+ icon: M,
261
309
  constraints: {
262
310
  relation: "ancestor",
263
311
  component: { $eq: "SelectItem" }
264
312
  },
265
313
  presetStyle: {
266
- span: s
314
+ span: i
267
315
  }
268
316
  }, de = {
269
317
  props: K,
@@ -273,33 +321,33 @@ const i = {
273
321
  }, ye = {
274
322
  props: O,
275
323
  initialProps: ["placeholder"]
276
- }, ue = {
324
+ }, Se = {
277
325
  props: Q
278
- }, he = {
326
+ }, ue = {
279
327
  props: R
280
- }, Se = {
328
+ }, ge = {
281
329
  props: X,
282
330
  initialProps: ["value"]
283
- }, ge = {
331
+ }, he = {
284
332
  props: Y
285
- }, fe = {
333
+ }, Ie = {
286
334
  props: Z
287
335
  };
288
336
  export {
289
- ne as metaSelect,
337
+ oe as metaSelect,
290
338
  le as metaSelectContent,
291
339
  pe as metaSelectItem,
292
- se as metaSelectItemIndicator,
293
- ie as metaSelectItemText,
340
+ ie as metaSelectItemIndicator,
341
+ se as metaSelectItemText,
294
342
  ce as metaSelectTrigger,
295
343
  re as metaSelectValue,
296
344
  ae as metaSelectViewport,
297
345
  de as propsMetaSelect,
298
- ue as propsMetaSelectContent,
299
- Se as propsMetaSelectItem,
300
- ge as propsMetaSelectItemIndicator,
301
- fe as propsMetaSelectItemText,
346
+ Se as propsMetaSelectContent,
347
+ ge as propsMetaSelectItem,
348
+ he as propsMetaSelectItemIndicator,
349
+ Ie as propsMetaSelectItemText,
302
350
  me as propsMetaSelectTrigger,
303
351
  ye as propsMetaSelectValue,
304
- he as propsMetaSelectViewport
352
+ ue as propsMetaSelectViewport
305
353
  };
package/lib/switch.ws.js CHANGED
@@ -1,13 +1,17 @@
1
1
  import { SwitchIcon as i, TriggerIcon as l } from "@webstudio-is/icons/svg";
2
2
  import { defaultStates as s } from "@webstudio-is/react-sdk";
3
3
  import { button as d, span as p } from "@webstudio-is/sdk/normalize.css";
4
- import { inlineFlex as h, property as e, shrink as m, cursor as c, items as u, rounded as o, border as n, transition as r, focusVisible as k, outline as f, ring as b, disabled as y, opacity as g, state as t, bg as a, pointerEvents as w, block as S, h as x, w as C, shadow as T } from "./theme/tailwind-classes.js";
4
+ import { inlineFlex as h, property as e, shrink as m, cursor as c, items as u, rounded as o, border as n, transition as r, focusVisible as k, outline as f, ring as b, disabled as w, opacity as y, state as t, bg as a, pointerEvents as g, block as S, h as x, w as C, shadow as T } from "./theme/tailwind-classes.js";
5
5
  import { buttonReset as v } from "./theme/styles.js";
6
- import { propsSwitch as I, propsSwitchThumb as M } from "./__generated__/switch.props.js";
7
- const F = {
6
+ import { propsSwitch as q, propsSwitchThumb as I } from "./__generated__/switch.props.js";
7
+ const E = {
8
8
  category: "radix",
9
9
  order: 11,
10
10
  type: "container",
11
+ constraints: {
12
+ relation: "descendant",
13
+ component: { $eq: "SwitchThumb" }
14
+ },
11
15
  description: "A control that allows the user to toggle between checked and not checked.",
12
16
  icon: i,
13
17
  states: [
@@ -71,7 +75,7 @@ const F = {
71
75
  k(
72
76
  [f(), b("ring", 2, "background", 2)].flat()
73
77
  ),
74
- y([c("not-allowed"), g(50)].flat()),
78
+ w([c("not-allowed"), y(50)].flat()),
75
79
  t([a("primary")].flat(), "[data-state=checked]"),
76
80
  t([a("input")].flat(), "[data-state=unchecked]")
77
81
  ].flat(),
@@ -83,7 +87,7 @@ const F = {
83
87
  // data-[state=checked]:translate-x-5
84
88
  // data-[state=unchecked]:translate-x-0
85
89
  styles: [
86
- w("none"),
90
+ g("none"),
87
91
  S(),
88
92
  x(5),
89
93
  C(5),
@@ -105,10 +109,13 @@ const F = {
105
109
  ]
106
110
  }
107
111
  ]
108
- }, N = {
112
+ }, F = {
109
113
  category: "hidden",
110
114
  type: "container",
111
- detachable: !1,
115
+ constraints: {
116
+ relation: "ancestor",
117
+ component: { $eq: "Switch" }
118
+ },
112
119
  icon: l,
113
120
  states: [
114
121
  ...s,
@@ -126,15 +133,15 @@ const F = {
126
133
  presetStyle: {
127
134
  span: p
128
135
  }
129
- }, P = {
130
- props: I,
136
+ }, N = {
137
+ props: q,
131
138
  initialProps: ["id", "className", "name", "value", "checked", "required"]
132
- }, R = {
133
- props: M
139
+ }, P = {
140
+ props: I
134
141
  };
135
142
  export {
136
- F as metaSwitch,
137
- N as metaSwitchThumb,
138
- P as propsMetaSwitch,
139
- R as propsMetaSwitchThumb
143
+ E as metaSwitch,
144
+ F as metaSwitchThumb,
145
+ N as propsMetaSwitch,
146
+ P as propsMetaSwitchThumb
140
147
  };
package/lib/tabs.js CHANGED
@@ -1,31 +1,65 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
3
- import { Root as f, List as g, Trigger as b, Content as d } from "@radix-ui/react-tabs";
4
- import { getIndexWithinAncestorFromComponentProps as m, getClosestInstance as u } from "@webstudio-is/react-sdk/runtime";
5
- const x = f, C = g, P = c(({ value: n, ...t }, e) => {
6
- const o = m(t);
7
- return /* @__PURE__ */ i(b, { ref: e, value: n ?? o ?? "", ...t });
8
- }), v = c(({ value: n, ...t }, e) => {
9
- const o = m(t);
10
- return /* @__PURE__ */ i(d, { ref: e, value: n ?? o ?? "", ...t });
11
- }), a = "@webstudio-is/sdk-components-react-radix", k = {
12
- onNavigatorSelect: (n, t) => {
13
- var e;
14
- for (const o of t.instancePath)
15
- if (o.component === `${a}:TabsContent`) {
16
- const s = u(
2
+ import { forwardRef as c, useCallback as m } from "react";
3
+ import { Root as f, List as b, Trigger as p, Content as T } from "@radix-ui/react-tabs";
4
+ import { getIndexWithinAncestorFromComponentProps as g, getClosestInstance as l } from "@webstudio-is/react-sdk/runtime";
5
+ import { useControllableState as d } from "@radix-ui/react-use-controllable-state";
6
+ import h from "await-interaction-response";
7
+ const S = c(({ defaultValue: e, ...t }, o) => {
8
+ const [n, a] = d({
9
+ prop: t.value,
10
+ defaultProp: e,
11
+ onChange: t.onValueChange
12
+ }), s = m(
13
+ async (u) => {
14
+ await h(), a(u);
15
+ },
16
+ [a]
17
+ );
18
+ return /* @__PURE__ */ i(
19
+ f,
20
+ {
21
+ ref: o,
22
+ ...t,
23
+ value: n,
24
+ onValueChange: s
25
+ }
26
+ );
27
+ }), k = b, w = c(({ value: e, ...t }, o) => {
28
+ const n = g(t);
29
+ return /* @__PURE__ */ i(p, { ref: o, value: e ?? n ?? "", ...t });
30
+ }), y = c(({ value: e, ...t }, o) => {
31
+ const n = g(t);
32
+ return /* @__PURE__ */ i(T, { ref: o, value: e ?? n ?? "", ...t });
33
+ }), r = "@webstudio-is/sdk-components-react-radix", A = {
34
+ onNavigatorSelect: (e, t) => {
35
+ var o;
36
+ for (const n of t.instancePath)
37
+ if (n.component === `${r}:TabsContent` || n.component === `${r}:TabsTrigger`) {
38
+ const a = l(
17
39
  t.instancePath,
18
- o,
19
- `${a}:Tabs`
20
- ), r = n.getPropValue(o, "value") ?? ((e = n.indexesWithinAncestors.get(o.id)) == null ? void 0 : e.toString());
21
- s && r && n.setMemoryProp(s, "value", r);
40
+ n,
41
+ `${r}:Tabs`
42
+ ), s = e.getPropValue(n, "value") ?? ((o = e.indexesWithinAncestors.get(n.id)) == null ? void 0 : o.toString());
43
+ a && s && e.setMemoryProp(a, "value", s);
44
+ }
45
+ },
46
+ onNavigatorUnselect: (e, t) => {
47
+ var o;
48
+ for (const n of t.instancePath)
49
+ if (n.component === `${r}:TabsContent` || n.component === `${r}:TabsTrigger`) {
50
+ const a = l(
51
+ t.instancePath,
52
+ n,
53
+ `${r}:Tabs`
54
+ ), s = e.getPropValue(n, "value") ?? ((o = e.indexesWithinAncestors.get(n.id)) == null ? void 0 : o.toString());
55
+ a && s && e.setMemoryProp(a, "value", void 0);
22
56
  }
23
57
  }
24
58
  };
25
59
  export {
26
- x as Tabs,
27
- v as TabsContent,
28
- C as TabsList,
29
- P as TabsTrigger,
30
- k as hooksTabs
60
+ S as Tabs,
61
+ y as TabsContent,
62
+ k as TabsList,
63
+ w as TabsTrigger,
64
+ A as hooksTabs
31
65
  };
package/lib/tooltip.ws.js CHANGED
@@ -1,27 +1,43 @@
1
- import { TriggerIcon as e, ContentIcon as o, TooltipIcon as n } from "@webstudio-is/icons/svg";
1
+ import { TriggerIcon as o, ContentIcon as e, TooltipIcon as n } from "@webstudio-is/icons/svg";
2
2
  import "@webstudio-is/react-sdk";
3
3
  import { div as r } from "@webstudio-is/sdk/normalize.css";
4
- import { z as p, overflow as i, rounded as a, border as l, bg as s, px as c, py as d, text as t, shadow as m } from "./theme/tailwind-classes.js";
5
- import { propsTooltip as g, propsTooltipTrigger as h, propsTooltipContent as y } from "./__generated__/tooltip.props.js";
6
- import { getButtonStyles as T } from "./theme/styles.js";
4
+ import { z as i, overflow as p, rounded as a, border as s, bg as l, px as c, py as d, text as t, shadow as m } from "./theme/tailwind-classes.js";
5
+ import { propsTooltip as g, propsTooltipTrigger as T, propsTooltipContent as y } from "./__generated__/tooltip.props.js";
6
+ import { getButtonStyles as h } from "./theme/styles.js";
7
7
  const f = {
8
8
  div: r
9
- }, B = {
9
+ }, q = {
10
10
  category: "hidden",
11
- detachable: !1,
12
11
  type: "container",
13
- icon: e,
14
- stylable: !1
15
- }, I = {
12
+ icon: o,
13
+ stylable: !1,
14
+ constraints: {
15
+ relation: "ancestor",
16
+ component: { $eq: "Tooltip" }
17
+ }
18
+ }, $ = {
16
19
  category: "hidden",
17
- detachable: !1,
18
20
  type: "container",
21
+ icon: e,
19
22
  presetStyle: f,
20
- icon: o
21
- }, M = {
23
+ constraints: {
24
+ relation: "ancestor",
25
+ component: { $eq: "Tooltip" }
26
+ }
27
+ }, B = {
22
28
  category: "radix",
23
29
  order: 7,
24
30
  type: "container",
31
+ constraints: [
32
+ {
33
+ relation: "descendant",
34
+ component: { $eq: "TooltipTrigger" }
35
+ },
36
+ {
37
+ relation: "descendant",
38
+ component: { $eq: "TooltipContent" }
39
+ }
40
+ ],
25
41
  icon: n,
26
42
  stylable: !1,
27
43
  description: "Displays content that is related to the trigger, when the trigger is hovered with the mouse or focused with the keyboard. You are reading an example of a tooltip right now.",
@@ -38,7 +54,7 @@ const f = {
38
54
  {
39
55
  type: "instance",
40
56
  component: "Button",
41
- styles: T("outline"),
57
+ styles: h("outline"),
42
58
  children: [{ type: "text", value: "Button", placeholder: !0 }]
43
59
  }
44
60
  ]
@@ -50,11 +66,11 @@ const f = {
50
66
  * z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md
51
67
  **/
52
68
  styles: [
53
- p(50),
54
- i("hidden"),
69
+ i(50),
70
+ p("hidden"),
55
71
  a("md"),
56
- l(),
57
- s("popover"),
72
+ s(),
73
+ l("popover"),
58
74
  c(3),
59
75
  d(1.5),
60
76
  t("sm"),
@@ -78,20 +94,20 @@ const f = {
78
94
  ]
79
95
  }
80
96
  ]
81
- }, D = {
97
+ }, I = {
82
98
  props: g,
83
99
  initialProps: ["open", "delayDuration", "disableHoverableContent"]
84
- }, O = {
85
- props: h
86
- }, P = {
100
+ }, M = {
101
+ props: T
102
+ }, D = {
87
103
  props: y,
88
104
  initialProps: ["side", "sideOffset", "align", "alignOffset"]
89
105
  };
90
106
  export {
91
- M as metaTooltip,
92
- I as metaTooltipContent,
93
- B as metaTooltipTrigger,
94
- D as propsMetaTooltip,
95
- P as propsMetaTooltipContent,
96
- O as propsMetaTooltipTrigger
107
+ B as metaTooltip,
108
+ $ as metaTooltipContent,
109
+ q as metaTooltipTrigger,
110
+ I as propsMetaTooltip,
111
+ D as propsMetaTooltipContent,
112
+ M as propsMetaTooltipTrigger
97
113
  };
@@ -1,7 +1,7 @@
1
1
  import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/react-sdk";
2
2
  export declare const metaDialogTrigger: WsComponentMeta;
3
- export declare const metaDialogContent: WsComponentMeta;
4
3
  export declare const metaDialogOverlay: WsComponentMeta;
4
+ export declare const metaDialogContent: WsComponentMeta;
5
5
  export declare const metaDialogTitle: WsComponentMeta;
6
6
  export declare const metaDialogDescription: WsComponentMeta;
7
7
  export declare const metaDialogClose: WsComponentMeta;
@@ -1,12 +1,13 @@
1
- import { type ForwardRefExoticComponent, type ComponentProps, type RefAttributes } from "react";
2
- import { Root } from "@radix-ui/react-tabs";
3
1
  import { type Hook } from "@webstudio-is/react-sdk/runtime";
4
- export declare const Tabs: ForwardRefExoticComponent<Omit<ComponentProps<typeof Root>, "asChild"> & RefAttributes<HTMLDivElement>>;
5
- export declare const TabsList: ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsListProps & RefAttributes<HTMLDivElement>>;
6
- export declare const TabsTrigger: ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-tabs").TabsTriggerProps & RefAttributes<HTMLButtonElement>, "ref">, "value"> & {
2
+ export declare const Tabs: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-tabs").TabsProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "value" | "onValueChange"> & {
7
3
  value?: string;
8
- } & RefAttributes<HTMLButtonElement>>;
9
- export declare const TabsContent: ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-tabs").TabsContentProps & RefAttributes<HTMLDivElement>, "ref">, "value"> & {
4
+ onValueChange?: (value: string) => void;
5
+ } & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const TabsList: import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsListProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const TabsTrigger: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-tabs").TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref">, "value"> & {
10
8
  value?: string;
11
- } & RefAttributes<HTMLDivElement>>;
9
+ } & import("react").RefAttributes<HTMLButtonElement>>;
10
+ export declare const TabsContent: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-tabs").TabsContentProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "value"> & {
11
+ value?: string;
12
+ } & import("react").RefAttributes<HTMLDivElement>>;
12
13
  export declare const hooksTabs: Hook;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react-radix",
3
- "version": "0.193.0",
3
+ "version": "0.194.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,12 @@
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.193.0",
55
- "@webstudio-is/icons": "0.193.0",
56
- "@webstudio-is/sdk": "0.193.0",
57
- "@webstudio-is/react-sdk": "0.193.0"
54
+ "@radix-ui/react-use-controllable-state": "^1.1.0",
55
+ "await-interaction-response": "^0.0.2",
56
+ "@webstudio-is/css-engine": "0.194.0",
57
+ "@webstudio-is/react-sdk": "0.194.0",
58
+ "@webstudio-is/icons": "0.194.0",
59
+ "@webstudio-is/sdk": "0.194.0"
58
60
  },
59
61
  "devDependencies": {
60
62
  "@types/node": "^22.9.3",
@@ -64,9 +66,9 @@
64
66
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
65
67
  "tailwindcss": "^3.3.3",
66
68
  "@webstudio-is/css-data": "0.0.0",
69
+ "@webstudio-is/sdk-components-react": "0.194.0",
67
70
  "@webstudio-is/generate-arg-types": "0.0.0",
68
71
  "@webstudio-is/sdk-cli": "^0.94.0",
69
- "@webstudio-is/sdk-components-react": "0.193.0",
70
72
  "@webstudio-is/tsconfig": "1.0.7"
71
73
  },
72
74
  "scripts": {