@webstudio-is/sdk-components-react-radix 0.174.0 → 0.179.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/components.js CHANGED
@@ -7,7 +7,7 @@ import { Root, Trigger, Content } from "@radix-ui/react-collapsible";
7
7
  import {
8
8
  getClosestInstance,
9
9
  getInstanceSelectorById
10
- } from "@webstudio-is/react-sdk";
10
+ } from "@webstudio-is/react-sdk/runtime";
11
11
  import { jsx } from "react/jsx-runtime";
12
12
  var Collapsible = Root;
13
13
  var CollapsibleTrigger = forwardRef(({ children, ...props }, ref) => {
@@ -29,7 +29,7 @@ import {
29
29
  ReactSdkContext,
30
30
  getClosestInstance as getClosestInstance2,
31
31
  getInstanceSelectorById as getInstanceSelectorById2
32
- } from "@webstudio-is/react-sdk";
32
+ } from "@webstudio-is/react-sdk/runtime";
33
33
  import { jsx as jsx2 } from "react/jsx-runtime";
34
34
  var willNavigate = (event) => {
35
35
  const { target } = event;
@@ -134,7 +134,7 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
134
134
  import {
135
135
  getClosestInstance as getClosestInstance3,
136
136
  getInstanceSelectorById as getInstanceSelectorById3
137
- } from "@webstudio-is/react-sdk";
137
+ } from "@webstudio-is/react-sdk/runtime";
138
138
  import { jsx as jsx3 } from "react/jsx-runtime";
139
139
  var Popover = forwardRef3((props, _ref) => {
140
140
  return /* @__PURE__ */ jsx3(PopoverPrimitive.Root, { ...props });
@@ -161,7 +161,7 @@ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
161
161
  import {
162
162
  getClosestInstance as getClosestInstance4,
163
163
  getInstanceSelectorById as getInstanceSelectorById4
164
- } from "@webstudio-is/react-sdk";
164
+ } from "@webstudio-is/react-sdk/runtime";
165
165
  import {
166
166
  forwardRef as forwardRef4,
167
167
  Children as Children4
@@ -193,7 +193,7 @@ import {
193
193
  getClosestInstance as getClosestInstance5,
194
194
  getIndexWithinAncestorFromComponentProps,
195
195
  getInstanceSelectorById as getInstanceSelectorById5
196
- } from "@webstudio-is/react-sdk";
196
+ } from "@webstudio-is/react-sdk/runtime";
197
197
  import { jsx as jsx5 } from "react/jsx-runtime";
198
198
  var Tabs = Root5;
199
199
  var TabsList = List;
@@ -229,7 +229,7 @@ import {
229
229
  getClosestInstance as getClosestInstance6,
230
230
  getIndexWithinAncestorFromComponentProps as getIndexWithinAncestorFromComponentProps2,
231
231
  getInstanceSelectorById as getInstanceSelectorById6
232
- } from "@webstudio-is/react-sdk";
232
+ } from "@webstudio-is/react-sdk/runtime";
233
233
  import { jsx as jsx7 } from "react/jsx-runtime";
234
234
  var Accordion = forwardRef7((props, ref) => {
235
235
  return /* @__PURE__ */ jsx7(Root7, { ref, type: "single", ...props });
@@ -249,7 +249,7 @@ import {
249
249
  getIndexWithinAncestorFromComponentProps as getIndexWithinAncestorFromComponentProps3,
250
250
  getInstanceSelectorById as getInstanceSelectorById7,
251
251
  ReactSdkContext as ReactSdkContext2
252
- } from "@webstudio-is/react-sdk";
252
+ } from "@webstudio-is/react-sdk/runtime";
253
253
  import {
254
254
  Children as Children5,
255
255
  forwardRef as forwardRef8,
@@ -300,11 +300,13 @@ import {
300
300
  getClosestInstance as getClosestInstance8,
301
301
  getInstanceSelectorById as getInstanceSelectorById8,
302
302
  ReactSdkContext as ReactSdkContext3
303
- } from "@webstudio-is/react-sdk";
303
+ } from "@webstudio-is/react-sdk/runtime";
304
304
  import { jsx as jsx9 } from "react/jsx-runtime";
305
- var Select = forwardRef9((props, _ref) => {
306
- return /* @__PURE__ */ jsx9(Root9, { ...props });
307
- });
305
+ var Select = forwardRef9(
306
+ ({ value, defaultValue, ...props }, _ref) => {
307
+ return /* @__PURE__ */ jsx9(Root9, { ...props, defaultValue: value ?? defaultValue });
308
+ }
309
+ );
308
310
  var SelectTrigger = forwardRef9((props, ref) => {
309
311
  const { renderer } = useContext3(ReactSdkContext3);
310
312
  const onPointerDown = renderer === "canvas" ? (event) => {
@@ -324,25 +326,34 @@ var SelectItemIndicator = ItemIndicator;
324
326
  var SelectItemText = ItemText;
325
327
 
326
328
  // src/switch.tsx
329
+ import {
330
+ forwardRef as forwardRef10
331
+ } from "react";
327
332
  import { Root as Root10, Thumb } from "@radix-ui/react-switch";
328
- var Switch = Root10;
333
+ import { jsx as jsx10 } from "react/jsx-runtime";
334
+ var Switch = forwardRef10(({ checked, defaultChecked, ...props }, ref) => {
335
+ return /* @__PURE__ */ jsx10(Root10, { ...props, ref, defaultChecked: checked ?? defaultChecked });
336
+ });
329
337
  var SwitchThumb = Thumb;
330
338
 
331
339
  // src/checkbox.tsx
332
340
  import {
333
- forwardRef as forwardRef10
341
+ forwardRef as forwardRef11
334
342
  } from "react";
335
343
  import { Root as Root11, Indicator } from "@radix-ui/react-checkbox";
336
- import { jsx as jsx10 } from "react/jsx-runtime";
337
- var Checkbox = forwardRef10((props, ref) => {
338
- return /* @__PURE__ */ jsx10(Root11, { ref, ...props });
344
+ import { jsx as jsx11 } from "react/jsx-runtime";
345
+ var Checkbox = forwardRef11(({ checked, defaultChecked, ...props }, ref) => {
346
+ return /* @__PURE__ */ jsx11(Root11, { ...props, ref, defaultChecked: checked ?? defaultChecked });
339
347
  });
340
348
  var CheckboxIndicator = Indicator;
341
349
 
342
350
  // src/radio-group.tsx
343
- import "react";
351
+ import {
352
+ forwardRef as forwardRef12
353
+ } from "react";
344
354
  import { Root as Root12, Item as Item4, Indicator as Indicator2 } from "@radix-ui/react-radio-group";
345
- var RadioGroup = Root12;
355
+ import { jsx as jsx12 } from "react/jsx-runtime";
356
+ var RadioGroup = forwardRef12(({ value, defaultValue, ...props }, ref) => /* @__PURE__ */ jsx12(Root12, { ...props, defaultValue: value ?? defaultValue, ref }));
346
357
  var RadioGroupItem = Item4;
347
358
  var RadioGroupIndicator = Indicator2;
348
359
  export {
package/lib/hooks.js CHANGED
@@ -7,7 +7,7 @@ import { Root, Trigger, Content } from "@radix-ui/react-collapsible";
7
7
  import {
8
8
  getClosestInstance,
9
9
  getInstanceSelectorById
10
- } from "@webstudio-is/react-sdk";
10
+ } from "@webstudio-is/react-sdk/runtime";
11
11
  import { jsx } from "react/jsx-runtime";
12
12
  var CollapsibleTrigger = forwardRef(({ children, ...props }, ref) => {
13
13
  const firstChild = Children.toArray(children)[0];
@@ -44,7 +44,7 @@ import {
44
44
  getClosestInstance as getClosestInstance2,
45
45
  getIndexWithinAncestorFromComponentProps,
46
46
  getInstanceSelectorById as getInstanceSelectorById2
47
- } from "@webstudio-is/react-sdk";
47
+ } from "@webstudio-is/react-sdk/runtime";
48
48
  import { jsx as jsx2 } from "react/jsx-runtime";
49
49
  var TabsTrigger = forwardRef2(({ value, ...props }, ref) => {
50
50
  const index = getIndexWithinAncestorFromComponentProps(props);
@@ -90,7 +90,7 @@ import {
90
90
  ReactSdkContext,
91
91
  getClosestInstance as getClosestInstance3,
92
92
  getInstanceSelectorById as getInstanceSelectorById3
93
- } from "@webstudio-is/react-sdk";
93
+ } from "@webstudio-is/react-sdk/runtime";
94
94
  import { jsx as jsx3 } from "react/jsx-runtime";
95
95
  var willNavigate = (event) => {
96
96
  const { target } = event;
@@ -232,7 +232,7 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
232
232
  import {
233
233
  getClosestInstance as getClosestInstance4,
234
234
  getInstanceSelectorById as getInstanceSelectorById4
235
- } from "@webstudio-is/react-sdk";
235
+ } from "@webstudio-is/react-sdk/runtime";
236
236
  import { jsx as jsx4 } from "react/jsx-runtime";
237
237
  var Popover = forwardRef4((props, _ref) => {
238
238
  return /* @__PURE__ */ jsx4(PopoverPrimitive.Root, { ...props });
@@ -300,7 +300,7 @@ import {
300
300
  import {
301
301
  getClosestInstance as getClosestInstance5,
302
302
  getInstanceSelectorById as getInstanceSelectorById5
303
- } from "@webstudio-is/react-sdk";
303
+ } from "@webstudio-is/react-sdk/runtime";
304
304
  import { jsx as jsx5 } from "react/jsx-runtime";
305
305
  var SheetContent = forwardRef5(
306
306
  ({ tag = "nav", side = "left", role = "navigation", children, ...props }, ref) => {
@@ -362,7 +362,7 @@ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
362
362
  import {
363
363
  getClosestInstance as getClosestInstance6,
364
364
  getInstanceSelectorById as getInstanceSelectorById6
365
- } from "@webstudio-is/react-sdk";
365
+ } from "@webstudio-is/react-sdk/runtime";
366
366
  import {
367
367
  forwardRef as forwardRef6,
368
368
  Children as Children4
@@ -439,7 +439,7 @@ import {
439
439
  getClosestInstance as getClosestInstance7,
440
440
  getIndexWithinAncestorFromComponentProps as getIndexWithinAncestorFromComponentProps2,
441
441
  getInstanceSelectorById as getInstanceSelectorById7
442
- } from "@webstudio-is/react-sdk";
442
+ } from "@webstudio-is/react-sdk/runtime";
443
443
  import { jsx as jsx7 } from "react/jsx-runtime";
444
444
  var Accordion = forwardRef7((props, ref) => {
445
445
  return /* @__PURE__ */ jsx7(Root6, { ref, type: "single", ...props });
@@ -485,7 +485,7 @@ import {
485
485
  getIndexWithinAncestorFromComponentProps as getIndexWithinAncestorFromComponentProps3,
486
486
  getInstanceSelectorById as getInstanceSelectorById8,
487
487
  ReactSdkContext as ReactSdkContext2
488
- } from "@webstudio-is/react-sdk";
488
+ } from "@webstudio-is/react-sdk/runtime";
489
489
  import {
490
490
  Children as Children5,
491
491
  forwardRef as forwardRef8,
@@ -581,11 +581,13 @@ import {
581
581
  getClosestInstance as getClosestInstance9,
582
582
  getInstanceSelectorById as getInstanceSelectorById9,
583
583
  ReactSdkContext as ReactSdkContext3
584
- } from "@webstudio-is/react-sdk";
584
+ } from "@webstudio-is/react-sdk/runtime";
585
585
  import { jsx as jsx9 } from "react/jsx-runtime";
586
- var Select = forwardRef9((props, _ref) => {
587
- return /* @__PURE__ */ jsx9(Root8, { ...props });
588
- });
586
+ var Select = forwardRef9(
587
+ ({ value, defaultValue, ...props }, _ref) => {
588
+ return /* @__PURE__ */ jsx9(Root8, { ...props, defaultValue: value ?? defaultValue });
589
+ }
590
+ );
589
591
  var SelectTrigger = forwardRef9((props, ref) => {
590
592
  const { renderer } = useContext3(ReactSdkContext3);
591
593
  const onPointerDown = renderer === "canvas" ? (event) => {
package/lib/metas.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  TriggerIcon,
5
5
  ContentIcon
6
6
  } from "@webstudio-is/icons/svg";
7
- import { div } from "@webstudio-is/react-sdk/css-normalize";
7
+ import { div } from "@webstudio-is/sdk/normalize.css";
8
8
 
9
9
  // src/__generated__/collapsible.props.ts
10
10
  var propsCollapsible = {
@@ -1837,7 +1837,7 @@ import {
1837
1837
  import {
1838
1838
  defaultStates
1839
1839
  } from "@webstudio-is/react-sdk";
1840
- import { div as div2, button, h2, p as p2 } from "@webstudio-is/react-sdk/css-normalize";
1840
+ import { div as div2, button, h2, p as p2 } from "@webstudio-is/sdk/normalize.css";
1841
1841
  var presetStyle2 = {
1842
1842
  div: div2
1843
1843
  };
@@ -2283,7 +2283,7 @@ var meta = {
2283
2283
  // src/popover.ws.ts
2284
2284
  import { PopoverIcon, TriggerIcon as TriggerIcon3, ContentIcon as ContentIcon3 } from "@webstudio-is/icons/svg";
2285
2285
  import "@webstudio-is/react-sdk";
2286
- import { div as div3 } from "@webstudio-is/react-sdk/css-normalize";
2286
+ import { div as div3 } from "@webstudio-is/sdk/normalize.css";
2287
2287
  var presetStyle3 = {
2288
2288
  div: div3
2289
2289
  };
@@ -2365,7 +2365,7 @@ var metaPopover = {
2365
2365
  // src/tooltip.ws.ts
2366
2366
  import { TooltipIcon, TriggerIcon as TriggerIcon4, ContentIcon as ContentIcon4 } from "@webstudio-is/icons/svg";
2367
2367
  import "@webstudio-is/react-sdk";
2368
- import { div as div4 } from "@webstudio-is/react-sdk/css-normalize";
2368
+ import { div as div4 } from "@webstudio-is/sdk/normalize.css";
2369
2369
  var presetStyle4 = {
2370
2370
  div: div4
2371
2371
  };
@@ -2455,7 +2455,7 @@ import {
2455
2455
  import {
2456
2456
  defaultStates as defaultStates2
2457
2457
  } from "@webstudio-is/react-sdk";
2458
- import { button as button2, div as div5 } from "@webstudio-is/react-sdk/css-normalize";
2458
+ import { button as button2, div as div5 } from "@webstudio-is/sdk/normalize.css";
2459
2459
  var presetStyle5 = {
2460
2460
  div: div5
2461
2461
  };
@@ -2600,7 +2600,7 @@ import { LabelIcon } from "@webstudio-is/icons/svg";
2600
2600
  import {
2601
2601
  defaultStates as defaultStates3
2602
2602
  } from "@webstudio-is/react-sdk";
2603
- import { label } from "@webstudio-is/react-sdk/css-normalize";
2603
+ import { label } from "@webstudio-is/sdk/normalize.css";
2604
2604
 
2605
2605
  // src/__generated__/label.props.ts
2606
2606
  var props = {
@@ -3166,7 +3166,7 @@ import {
3166
3166
  import {
3167
3167
  defaultStates as defaultStates4
3168
3168
  } from "@webstudio-is/react-sdk";
3169
- import { div as div6, h3, button as button3 } from "@webstudio-is/react-sdk/css-normalize";
3169
+ import { div as div6, h3, button as button3 } from "@webstudio-is/sdk/normalize.css";
3170
3170
  var presetStyle7 = {
3171
3171
  div: div6
3172
3172
  };
@@ -3395,7 +3395,7 @@ import {
3395
3395
  ViewportIcon,
3396
3396
  NavigationMenuIcon
3397
3397
  } from "@webstudio-is/icons/svg";
3398
- import { div as div7 } from "@webstudio-is/react-sdk/css-normalize";
3398
+ import { div as div7 } from "@webstudio-is/sdk/normalize.css";
3399
3399
  var presetStyle8 = {
3400
3400
  div: div7
3401
3401
  };
@@ -3839,7 +3839,7 @@ import {
3839
3839
  TextIcon as TextIcon2,
3840
3840
  CheckMarkIcon
3841
3841
  } from "@webstudio-is/icons/svg";
3842
- import { button as button4, div as div8, span } from "@webstudio-is/react-sdk/css-normalize";
3842
+ import { button as button4, div as div8, span } from "@webstudio-is/sdk/normalize.css";
3843
3843
  var presetStyle9 = {
3844
3844
  div: div8
3845
3845
  };
@@ -4110,7 +4110,7 @@ import { SwitchIcon, TriggerIcon as TriggerIcon9 } from "@webstudio-is/icons/svg
4110
4110
  import {
4111
4111
  defaultStates as defaultStates5
4112
4112
  } from "@webstudio-is/react-sdk";
4113
- import { button as button5, span as span2 } from "@webstudio-is/react-sdk/css-normalize";
4113
+ import { button as button5, span as span2 } from "@webstudio-is/sdk/normalize.css";
4114
4114
  var metaSwitch = {
4115
4115
  category: "radix",
4116
4116
  order: 11,
@@ -4245,7 +4245,7 @@ import {
4245
4245
  import {
4246
4246
  defaultStates as defaultStates6
4247
4247
  } from "@webstudio-is/react-sdk";
4248
- import { button as button6, span as span3 } from "@webstudio-is/react-sdk/css-normalize";
4248
+ import { button as button6, span as span3 } from "@webstudio-is/sdk/normalize.css";
4249
4249
  var metaCheckbox = {
4250
4250
  category: "radix",
4251
4251
  order: 101,
@@ -4382,7 +4382,7 @@ import {
4382
4382
  import {
4383
4383
  defaultStates as defaultStates7
4384
4384
  } from "@webstudio-is/react-sdk";
4385
- import { button as button7, div as div9, span as span4 } from "@webstudio-is/react-sdk/css-normalize";
4385
+ import { button as button7, div as div9, span as span4 } from "@webstudio-is/sdk/normalize.css";
4386
4386
  var createRadioGroupItem = ({
4387
4387
  value,
4388
4388
  label: label2
package/lib/props.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  TriggerIcon,
5
5
  ContentIcon
6
6
  } from "@webstudio-is/icons/svg";
7
- import { div } from "@webstudio-is/react-sdk/css-normalize";
7
+ import { div } from "@webstudio-is/sdk/normalize.css";
8
8
 
9
9
  // src/__generated__/collapsible.props.ts
10
10
  var propsCollapsible = {
@@ -2322,7 +2322,7 @@ import {
2322
2322
  import {
2323
2323
  defaultStates
2324
2324
  } from "@webstudio-is/react-sdk";
2325
- import { div as div2, button, h2, p as p2 } from "@webstudio-is/react-sdk/css-normalize";
2325
+ import { div as div2, button, h2, p as p2 } from "@webstudio-is/sdk/normalize.css";
2326
2326
 
2327
2327
  // src/__generated__/dialog.props.ts
2328
2328
  var propsDialog = {
@@ -5119,7 +5119,7 @@ var propsMetaDialogDescription = {
5119
5119
  // src/popover.ws.ts
5120
5120
  import { PopoverIcon, TriggerIcon as TriggerIcon3, ContentIcon as ContentIcon3 } from "@webstudio-is/icons/svg";
5121
5121
  import "@webstudio-is/react-sdk";
5122
- import { div as div3 } from "@webstudio-is/react-sdk/css-normalize";
5122
+ import { div as div3 } from "@webstudio-is/sdk/normalize.css";
5123
5123
 
5124
5124
  // src/__generated__/popover.props.ts
5125
5125
  var propsPopover = {
@@ -5756,7 +5756,7 @@ var propsMetaPopoverContent = {
5756
5756
  // src/tooltip.ws.ts
5757
5757
  import { TooltipIcon, TriggerIcon as TriggerIcon4, ContentIcon as ContentIcon4 } from "@webstudio-is/icons/svg";
5758
5758
  import "@webstudio-is/react-sdk";
5759
- import { div as div4 } from "@webstudio-is/react-sdk/css-normalize";
5759
+ import { div as div4 } from "@webstudio-is/sdk/normalize.css";
5760
5760
 
5761
5761
  // src/__generated__/tooltip.props.ts
5762
5762
  var propsTooltip = {
@@ -6412,7 +6412,7 @@ import {
6412
6412
  import {
6413
6413
  defaultStates as defaultStates2
6414
6414
  } from "@webstudio-is/react-sdk";
6415
- import { button as button2, div as div5 } from "@webstudio-is/react-sdk/css-normalize";
6415
+ import { button as button2, div as div5 } from "@webstudio-is/sdk/normalize.css";
6416
6416
 
6417
6417
  // src/__generated__/tabs.props.ts
6418
6418
  var propsTabs = {
@@ -8655,7 +8655,7 @@ import { LabelIcon } from "@webstudio-is/icons/svg";
8655
8655
  import {
8656
8656
  defaultStates as defaultStates3
8657
8657
  } from "@webstudio-is/react-sdk";
8658
- import { label } from "@webstudio-is/react-sdk/css-normalize";
8658
+ import { label } from "@webstudio-is/sdk/normalize.css";
8659
8659
 
8660
8660
  // src/__generated__/label.props.ts
8661
8661
  var props = {
@@ -9221,7 +9221,7 @@ import {
9221
9221
  import {
9222
9222
  defaultStates as defaultStates4
9223
9223
  } from "@webstudio-is/react-sdk";
9224
- import { div as div6, h3, button as button3 } from "@webstudio-is/react-sdk/css-normalize";
9224
+ import { div as div6, h3, button as button3 } from "@webstudio-is/sdk/normalize.css";
9225
9225
 
9226
9226
  // src/__generated__/accordion.props.ts
9227
9227
  var propsAccordion = {
@@ -12059,7 +12059,7 @@ import {
12059
12059
  ViewportIcon,
12060
12060
  NavigationMenuIcon
12061
12061
  } from "@webstudio-is/icons/svg";
12062
- import { div as div7 } from "@webstudio-is/react-sdk/css-normalize";
12062
+ import { div as div7 } from "@webstudio-is/sdk/normalize.css";
12063
12063
 
12064
12064
  // src/__generated__/navigation-menu.props.ts
12065
12065
  var propsNavigationMenu = {
@@ -13953,12 +13953,6 @@ var propsNavigationMenuContent = {
13953
13953
  type: "string",
13954
13954
  description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
13955
13955
  },
13956
- disableOutsidePointerEvents: {
13957
- description: "When `true`, hover/focus/click interactions will be disabled on elements outside\nthe `DismissableLayer`. Users will need to click twice on outside elements to\ninteract with them: once to close the `DismissableLayer`, and again to trigger the element.",
13958
- required: false,
13959
- control: "boolean",
13960
- type: "boolean"
13961
- },
13962
13956
  draggable: {
13963
13957
  required: false,
13964
13958
  control: "boolean",
@@ -16101,7 +16095,7 @@ import {
16101
16095
  TextIcon as TextIcon2,
16102
16096
  CheckMarkIcon
16103
16097
  } from "@webstudio-is/icons/svg";
16104
- import { button as button4, div as div8, span } from "@webstudio-is/react-sdk/css-normalize";
16098
+ import { button as button4, div as div8, span } from "@webstudio-is/sdk/normalize.css";
16105
16099
 
16106
16100
  // src/__generated__/select.props.ts
16107
16101
  var propsSelect = {
@@ -19957,7 +19951,7 @@ var metaSelect = {
19957
19951
  };
19958
19952
  var propsMetaSelect = {
19959
19953
  props: propsSelect,
19960
- initialProps: ["value", "open", "name", "required"]
19954
+ initialProps: ["name", "value", "open", "required"]
19961
19955
  };
19962
19956
  var propsMetaSelectTrigger = {
19963
19957
  props: propsSelectTrigger
@@ -19988,7 +19982,7 @@ import { SwitchIcon, TriggerIcon as TriggerIcon9 } from "@webstudio-is/icons/svg
19988
19982
  import {
19989
19983
  defaultStates as defaultStates5
19990
19984
  } from "@webstudio-is/react-sdk";
19991
- import { button as button5, span as span2 } from "@webstudio-is/react-sdk/css-normalize";
19985
+ import { button as button5, span as span2 } from "@webstudio-is/sdk/normalize.css";
19992
19986
 
19993
19987
  // src/__generated__/switch.props.ts
19994
19988
  var propsSwitch = {
@@ -21192,7 +21186,7 @@ var metaSwitchThumb = {
21192
21186
  };
21193
21187
  var propsMetaSwitch = {
21194
21188
  props: propsSwitch,
21195
- initialProps: ["id", "className", "checked", "name", "required"]
21189
+ initialProps: ["id", "className", "name", "value", "checked", "required"]
21196
21190
  };
21197
21191
  var propsMetaSwitchThumb = {
21198
21192
  props: propsSwitchThumb
@@ -21207,7 +21201,7 @@ import {
21207
21201
  import {
21208
21202
  defaultStates as defaultStates6
21209
21203
  } from "@webstudio-is/react-sdk";
21210
- import { button as button6, span as span3 } from "@webstudio-is/react-sdk/css-normalize";
21204
+ import { button as button6, span as span3 } from "@webstudio-is/sdk/normalize.css";
21211
21205
 
21212
21206
  // src/__generated__/checkbox.props.ts
21213
21207
  var propsCheckbox = {
@@ -22402,7 +22396,7 @@ var metaCheckbox = {
22402
22396
  };
22403
22397
  var propsMetaCheckbox = {
22404
22398
  props: propsCheckbox,
22405
- initialProps: ["id", "className", "checked", "name", "required"]
22399
+ initialProps: ["id", "className", "name", "value", "required", "checked"]
22406
22400
  };
22407
22401
  var propsMetaCheckboxIndicator = {
22408
22402
  props: propsCheckboxIndicator
@@ -22418,7 +22412,7 @@ import {
22418
22412
  import {
22419
22413
  defaultStates as defaultStates7
22420
22414
  } from "@webstudio-is/react-sdk";
22421
- import { button as button7, div as div9, span as span4 } from "@webstudio-is/react-sdk/css-normalize";
22415
+ import { button as button7, div as div9, span as span4 } from "@webstudio-is/sdk/normalize.css";
22422
22416
 
22423
22417
  // src/__generated__/radio-group.props.ts
22424
22418
  var propsRadioGroup = {
@@ -24155,7 +24149,7 @@ var metaRadioGroupItem = {
24155
24149
  };
24156
24150
  var propsMetaRadioGroup = {
24157
24151
  props: propsRadioGroup,
24158
- initialProps: ["id", "className", "value", "name", "required"]
24152
+ initialProps: ["id", "className", "name", "value", "required"]
24159
24153
  };
24160
24154
  var propsMetaRadioGroupItem = {
24161
24155
  props: propsRadioGroupItem,
@@ -1,6 +1,6 @@
1
1
  import { type ForwardRefExoticComponent, type ComponentProps, type RefAttributes } from "react";
2
2
  import { Header, Trigger, Content } from "@radix-ui/react-accordion";
3
- import { type Hook } from "@webstudio-is/react-sdk";
3
+ import { type Hook } from "@webstudio-is/react-sdk/runtime";
4
4
  export declare const Accordion: ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-accordion").AccordionSingleProps & RefAttributes<HTMLDivElement>, "ref">, "type" | "asChild"> & RefAttributes<HTMLDivElement>>;
5
5
  export declare const AccordionItem: ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-accordion").AccordionItemProps & RefAttributes<HTMLDivElement>, "ref">, "value"> & {
6
6
  value?: string;
@@ -2,7 +2,8 @@ import { type ForwardRefExoticComponent, type ComponentProps } from "react";
2
2
  import { Indicator } from "@radix-ui/react-checkbox";
3
3
  export declare const Checkbox: ForwardRefExoticComponent<Omit<Omit<Omit<import("@radix-ui/react-checkbox").CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
4
4
  ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
5
- }, "checked"> & {
5
+ }, "defaultChecked" | "checked"> & {
6
6
  checked: boolean;
7
+ defaultChecked?: boolean;
7
8
  }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
8
9
  export declare const CheckboxIndicator: ForwardRefExoticComponent<ComponentProps<typeof Indicator> & React.RefAttributes<HTMLSpanElement>>;
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode, type ForwardRefExoticComponent, type ComponentProps, type RefAttributes } from "react";
2
2
  import { Root, Content } from "@radix-ui/react-collapsible";
3
- import { type Hook } from "@webstudio-is/react-sdk";
3
+ import { type Hook } from "@webstudio-is/react-sdk/runtime";
4
4
  export declare const Collapsible: ForwardRefExoticComponent<Omit<ComponentProps<typeof Root>, "defaultOpen" | "asChild"> & RefAttributes<HTMLDivElement>>;
5
5
  /**
6
6
  * We're not exposing the 'asChild' property for the Trigger.
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from "react";
2
2
  import * as DialogPrimitive from "@radix-ui/react-dialog";
3
- import { type Hook } from "@webstudio-is/react-sdk";
3
+ import { type Hook } from "@webstudio-is/react-sdk/runtime";
4
4
  export declare const Dialog: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogProps, "defaultOpen"> & import("react").RefAttributes<HTMLDivElement>>;
5
5
  /**
6
6
  * We're not exposing the 'asChild' property for the Trigger.
@@ -1,5 +1,5 @@
1
1
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
2
- import { type Hook } from "@webstudio-is/react-sdk";
2
+ import { type Hook } from "@webstudio-is/react-sdk/runtime";
3
3
  export declare const NavigationMenu: import("react").ForwardRefExoticComponent<Omit<Omit<NavigationMenuPrimitive.NavigationMenuProps & import("react").RefAttributes<HTMLElement>, "ref">, "aria-orientation" | "orientation"> & import("react").RefAttributes<HTMLLIElement>>;
4
4
  export declare const NavigationMenuList: import("react").ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>>;
5
5
  export declare const NavigationMenuViewport: import("react").ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuViewportProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from "react";
2
2
  import * as PopoverPrimitive from "@radix-ui/react-popover";
3
- import { type Hook } from "@webstudio-is/react-sdk";
3
+ import { type Hook } from "@webstudio-is/react-sdk/runtime";
4
4
  export declare const Popover: import("react").ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverProps, "defaultOpen"> & import("react").RefAttributes<HTMLDivElement>>;
5
5
  /**
6
6
  * We're not exposing the 'asChild' property for the Trigger.
@@ -1,5 +1,5 @@
1
1
  import { type ForwardRefExoticComponent, type ComponentProps, type RefAttributes } from "react";
2
- import { Root, Item, Indicator } from "@radix-ui/react-radio-group";
3
- export declare const RadioGroup: ForwardRefExoticComponent<ComponentProps<typeof Root> & RefAttributes<HTMLDivElement>>;
2
+ import { Item, Indicator } from "@radix-ui/react-radio-group";
3
+ export declare const RadioGroup: ForwardRefExoticComponent<Omit<import("@radix-ui/react-radio-group").RadioGroupProps & RefAttributes<HTMLDivElement> & RefAttributes<"div">, "ref"> & RefAttributes<HTMLDivElement>>;
4
4
  export declare const RadioGroupItem: ForwardRefExoticComponent<ComponentProps<typeof Item> & RefAttributes<HTMLButtonElement>>;
5
5
  export declare const RadioGroupIndicator: ForwardRefExoticComponent<ComponentProps<typeof Indicator> & RefAttributes<HTMLSpanElement>>;
@@ -1,6 +1,6 @@
1
1
  import { type ForwardRefExoticComponent, type ComponentProps, type RefAttributes } from "react";
2
2
  import { Item, ItemIndicator, ItemText, Viewport } from "@radix-ui/react-select";
3
- import { type Hook } from "@webstudio-is/react-sdk";
3
+ import { type Hook } from "@webstudio-is/react-sdk/runtime";
4
4
  export declare const Select: ForwardRefExoticComponent<import("@radix-ui/react-select").SelectProps & RefAttributes<HTMLDivElement>>;
5
5
  export declare const SelectTrigger: ForwardRefExoticComponent<Omit<import("@radix-ui/react-select").SelectTriggerProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
6
6
  export declare const SelectValue: ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-select").SelectValueProps & RefAttributes<HTMLSpanElement>, "ref">, "placeholder"> & {
@@ -1,4 +1,4 @@
1
- import { type Hook } from "@webstudio-is/react-sdk";
1
+ import { type Hook } from "@webstudio-is/react-sdk/runtime";
2
2
  export declare const Sheet: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogProps, "defaultOpen"> & import("react").RefAttributes<HTMLDivElement>>;
3
3
  export declare const SheetTrigger: import("react").ForwardRefExoticComponent<{
4
4
  children: import("react").ReactNode;
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, ComponentProps, RefAttributes } from "react";
2
- import { Root, Thumb } from "@radix-ui/react-switch";
3
- export declare const Switch: ForwardRefExoticComponent<ComponentProps<typeof Root> & RefAttributes<HTMLButtonElement>>;
1
+ import { type ForwardRefExoticComponent, type ComponentProps, type RefAttributes } from "react";
2
+ import { Thumb } from "@radix-ui/react-switch";
3
+ export declare const Switch: ForwardRefExoticComponent<Omit<import("@radix-ui/react-switch").SwitchProps & RefAttributes<HTMLButtonElement>, "ref"> & RefAttributes<HTMLButtonElement>>;
4
4
  export declare const SwitchThumb: ForwardRefExoticComponent<ComponentProps<typeof Thumb> & RefAttributes<HTMLSpanElement>>;
@@ -1,6 +1,6 @@
1
1
  import { type ForwardRefExoticComponent, type ComponentProps, type RefAttributes } from "react";
2
2
  import { Root } from "@radix-ui/react-tabs";
3
- import { type Hook } from "@webstudio-is/react-sdk";
3
+ import { type Hook } from "@webstudio-is/react-sdk/runtime";
4
4
  export declare const Tabs: ForwardRefExoticComponent<Omit<ComponentProps<typeof Root>, "asChild"> & RefAttributes<HTMLDivElement>>;
5
5
  export declare const TabsList: ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsListProps & RefAttributes<HTMLDivElement>>;
6
6
  export declare const TabsTrigger: ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-tabs").TabsTriggerProps & RefAttributes<HTMLButtonElement>, "ref">, "value"> & {
@@ -3,7 +3,7 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
3
3
  value: {
4
4
  type: "unit";
5
5
  value: number;
6
- 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";
6
+ unit: "number" | "x" | "em" | "q" | "s" | "fr" | "in" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "hz" | "khz" | "cm" | "mm" | "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";
7
7
  hidden?: boolean | undefined;
8
8
  } | {
9
9
  type: "keyword";
@@ -18,10 +18,10 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
18
18
  value: string[];
19
19
  hidden?: boolean | undefined;
20
20
  } | {
21
+ b: number;
22
+ g: number;
21
23
  type: "rgb";
22
24
  r: number;
23
- g: number;
24
- b: number;
25
25
  alpha: number;
26
26
  hidden?: boolean | undefined;
27
27
  } | {
@@ -44,7 +44,7 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
44
44
  value: ({
45
45
  type: "unit";
46
46
  value: number;
47
- 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";
47
+ unit: "number" | "x" | "em" | "q" | "s" | "fr" | "in" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "hz" | "khz" | "cm" | "mm" | "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";
48
48
  hidden?: boolean | undefined;
49
49
  } | {
50
50
  type: "keyword";
@@ -55,10 +55,10 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
55
55
  value: string;
56
56
  hidden?: boolean | undefined;
57
57
  } | {
58
+ b: number;
59
+ g: number;
58
60
  type: "rgb";
59
61
  r: number;
60
- g: number;
61
- b: number;
62
62
  alpha: number;
63
63
  hidden?: boolean | undefined;
64
64
  } | {
@@ -87,7 +87,7 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
87
87
  value: ({
88
88
  type: "unit";
89
89
  value: number;
90
- 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";
90
+ unit: "number" | "x" | "em" | "q" | "s" | "fr" | "in" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "hz" | "khz" | "cm" | "mm" | "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";
91
91
  hidden?: boolean | undefined;
92
92
  } | {
93
93
  type: "keyword";
@@ -98,10 +98,10 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
98
98
  value: string;
99
99
  hidden?: boolean | undefined;
100
100
  } | {
101
+ b: number;
102
+ g: number;
101
103
  type: "rgb";
102
104
  r: number;
103
- g: number;
104
- b: number;
105
105
  alpha: number;
106
106
  hidden?: boolean | undefined;
107
107
  } | {
@@ -124,7 +124,7 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
124
124
  value: ({
125
125
  type: "unit";
126
126
  value: number;
127
- 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";
127
+ unit: "number" | "x" | "em" | "q" | "s" | "fr" | "in" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "hz" | "khz" | "cm" | "mm" | "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";
128
128
  hidden?: boolean | undefined;
129
129
  } | {
130
130
  type: "keyword";
@@ -135,10 +135,10 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
135
135
  value: string;
136
136
  hidden?: boolean | undefined;
137
137
  } | {
138
+ b: number;
139
+ g: number;
138
140
  type: "rgb";
139
141
  r: number;
140
- g: number;
141
- b: number;
142
142
  alpha: number;
143
143
  hidden?: boolean | undefined;
144
144
  } | {
@@ -177,7 +177,7 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
177
177
  fallbacks: ({
178
178
  type: "unit";
179
179
  value: number;
180
- 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";
180
+ unit: "number" | "x" | "em" | "q" | "s" | "fr" | "in" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "hz" | "khz" | "cm" | "mm" | "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";
181
181
  hidden?: boolean | undefined;
182
182
  } | {
183
183
  type: "keyword";
@@ -192,10 +192,10 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
192
192
  value: string[];
193
193
  hidden?: boolean | undefined;
194
194
  } | {
195
+ b: number;
196
+ g: number;
195
197
  type: "rgb";
196
198
  r: number;
197
- g: number;
198
- b: number;
199
199
  alpha: number;
200
200
  hidden?: boolean | undefined;
201
201
  } | {
@@ -218,7 +218,7 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
218
218
  value: ({
219
219
  type: "unit";
220
220
  value: number;
221
- 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";
221
+ unit: "number" | "x" | "em" | "q" | "s" | "fr" | "in" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "hz" | "khz" | "cm" | "mm" | "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";
222
222
  hidden?: boolean | undefined;
223
223
  } | {
224
224
  type: "keyword";
@@ -229,10 +229,10 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
229
229
  value: string;
230
230
  hidden?: boolean | undefined;
231
231
  } | {
232
+ b: number;
233
+ g: number;
232
234
  type: "rgb";
233
235
  r: number;
234
- g: number;
235
- b: number;
236
236
  alpha: number;
237
237
  hidden?: boolean | undefined;
238
238
  } | {
@@ -257,7 +257,7 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
257
257
  value: ({
258
258
  type: "unit";
259
259
  value: number;
260
- 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";
260
+ unit: "number" | "x" | "em" | "q" | "s" | "fr" | "in" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "hz" | "khz" | "cm" | "mm" | "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";
261
261
  hidden?: boolean | undefined;
262
262
  } | {
263
263
  type: "keyword";
@@ -268,10 +268,10 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
268
268
  value: string;
269
269
  hidden?: boolean | undefined;
270
270
  } | {
271
+ b: number;
272
+ g: number;
271
273
  type: "rgb";
272
274
  r: number;
273
- g: number;
274
- b: number;
275
275
  alpha: number;
276
276
  hidden?: boolean | undefined;
277
277
  } | {
@@ -294,7 +294,7 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
294
294
  value: ({
295
295
  type: "unit";
296
296
  value: number;
297
- 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";
297
+ unit: "number" | "x" | "em" | "q" | "s" | "fr" | "in" | "%" | "deg" | "grad" | "rad" | "turn" | "db" | "hz" | "khz" | "cm" | "mm" | "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";
298
298
  hidden?: boolean | undefined;
299
299
  } | {
300
300
  type: "keyword";
@@ -305,10 +305,10 @@ export declare const getButtonStyles: (variant: "outline" | "ghost", size?: "def
305
305
  value: string;
306
306
  hidden?: boolean | undefined;
307
307
  } | {
308
+ b: number;
309
+ g: number;
308
310
  type: "rgb";
309
311
  r: number;
310
- g: number;
311
- b: number;
312
312
  alpha: number;
313
313
  hidden?: boolean | undefined;
314
314
  } | {
@@ -1,5 +1,5 @@
1
1
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
2
- import { type Hook } from "@webstudio-is/react-sdk";
2
+ import { type Hook } from "@webstudio-is/react-sdk/runtime";
3
3
  import { type ReactNode } from "react";
4
4
  export declare const Tooltip: import("react").ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipProps, "defaultOpen"> & import("react").RefAttributes<HTMLDivElement>>;
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react-radix",
3
- "version": "0.174.0",
3
+ "version": "0.179.0",
4
4
  "description": "Webstudio wrapper for radix library",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -39,21 +39,22 @@
39
39
  "react-dom": "18.3.0-canary-14898b6a9-20240318"
40
40
  },
41
41
  "dependencies": {
42
- "@radix-ui/react-accordion": "^1.1.2",
43
- "@radix-ui/react-checkbox": "^1.0.4",
44
- "@radix-ui/react-collapsible": "^1.0.3",
45
- "@radix-ui/react-dialog": "^1.0.5",
46
- "@radix-ui/react-label": "^2.0.2",
47
- "@radix-ui/react-navigation-menu": "^1.1.4",
48
- "@radix-ui/react-popover": "^1.0.7",
49
- "@radix-ui/react-radio-group": "^1.1.3",
50
- "@radix-ui/react-select": "^2.0.0",
51
- "@radix-ui/react-switch": "^1.0.3",
52
- "@radix-ui/react-tabs": "^1.0.4",
53
- "@radix-ui/react-tooltip": "^1.0.7",
54
- "@webstudio-is/css-engine": "0.174.0",
55
- "@webstudio-is/icons": "0.174.0",
56
- "@webstudio-is/react-sdk": "0.174.0"
42
+ "@radix-ui/react-accordion": "^1.2.0",
43
+ "@radix-ui/react-checkbox": "^1.1.1",
44
+ "@radix-ui/react-collapsible": "^1.1.0",
45
+ "@radix-ui/react-dialog": "^1.1.1",
46
+ "@radix-ui/react-label": "^2.1.0",
47
+ "@radix-ui/react-navigation-menu": "^1.2.0",
48
+ "@radix-ui/react-popover": "^1.1.1",
49
+ "@radix-ui/react-radio-group": "^1.2.0",
50
+ "@radix-ui/react-select": "^2.1.1",
51
+ "@radix-ui/react-switch": "^1.1.0",
52
+ "@radix-ui/react-tabs": "^1.1.0",
53
+ "@radix-ui/react-tooltip": "^1.1.2",
54
+ "@webstudio-is/css-engine": "0.179.0",
55
+ "@webstudio-is/icons": "0.179.0",
56
+ "@webstudio-is/react-sdk": "0.179.0",
57
+ "@webstudio-is/sdk": "0.179.0"
57
58
  },
58
59
  "devDependencies": {
59
60
  "@types/node": "^20.12.7",
@@ -65,13 +66,13 @@
65
66
  "typescript": "^5.5.2",
66
67
  "@webstudio-is/css-data": "0.0.0",
67
68
  "@webstudio-is/generate-arg-types": "0.0.0",
69
+ "@webstudio-is/sdk-components-react": "0.179.0",
68
70
  "@webstudio-is/sdk-cli": "^0.94.0",
69
- "@webstudio-is/tsconfig": "1.0.7",
70
- "@webstudio-is/sdk-components-react": "0.174.0"
71
+ "@webstudio-is/tsconfig": "1.0.7"
71
72
  },
72
73
  "scripts": {
73
74
  "build": "rm -rf lib && esbuild src/components.ts src/metas.ts src/props.ts src/hooks.ts --outdir=lib --bundle --format=esm --packages=external",
74
- "build:args": "NODE_OPTIONS=--conditions=webstudio generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.ts' -e asChild -e modal -e defaultOpen -e defaultChecked && prettier --write \"**/*.props.ts\"",
75
+ "build:args": "NODE_OPTIONS=--conditions=webstudio generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.ts !./src/*.test.{ts,tsx}' -e asChild -e modal -e defaultOpen -e defaultChecked && prettier --write \"**/*.props.ts\"",
75
76
  "build:tailwind": "tsx scripts/generate-tailwind-theme.ts && prettier --write src/theme/__generated__",
76
77
  "build:stories": "webstudio-sdk generate-stories && prettier --write \"src/__generated__/*.stories.tsx\"",
77
78
  "dts": "tsc --project tsconfig.dts.json",