@webstudio-is/sdk-components-react-radix 0.0.0-5844e28 → 0.0.0-7cb4145

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.
Files changed (75) hide show
  1. package/lib/__generated__/accordion.props.js +15 -2582
  2. package/lib/__generated__/checkbox.props.js +5 -1071
  3. package/lib/__generated__/collapsible.props.js +7 -1012
  4. package/lib/__generated__/dialog.props.js +10 -2585
  5. package/lib/__generated__/label.props.js +2 -517
  6. package/lib/__generated__/navigation-menu.props.js +13 -3625
  7. package/lib/__generated__/popover.props.js +7 -509
  8. package/lib/__generated__/radio-group.props.js +19 -1568
  9. package/lib/__generated__/select.props.js +42 -3615
  10. package/lib/__generated__/switch.props.js +5 -1071
  11. package/lib/__generated__/tabs.props.js +17 -2073
  12. package/lib/__generated__/tooltip.props.js +6 -503
  13. package/lib/accordion.js +33 -20
  14. package/lib/accordion.template.js +14 -14
  15. package/lib/accordion.ws.js +56 -93
  16. package/lib/checkbox.js +17 -6
  17. package/lib/checkbox.template.js +10 -10
  18. package/lib/checkbox.ws.js +26 -41
  19. package/lib/collapsible.js +29 -26
  20. package/lib/collapsible.ws.js +28 -48
  21. package/lib/components.js +46 -45
  22. package/lib/dialog.js +50 -56
  23. package/lib/dialog.template.js +19 -19
  24. package/lib/dialog.ws.js +68 -126
  25. package/lib/label.template.js +3 -3
  26. package/lib/label.ws.js +8 -15
  27. package/lib/metas.js +45 -44
  28. package/lib/navigation-menu.js +21 -20
  29. package/lib/navigation-menu.template.js +8 -8
  30. package/lib/navigation-menu.ws.js +71 -102
  31. package/lib/popover.js +36 -32
  32. package/lib/popover.template.js +50 -20
  33. package/lib/popover.ws.js +45 -44
  34. package/lib/radio-group.js +10 -7
  35. package/lib/radio-group.ws.js +37 -61
  36. package/lib/select.js +49 -37
  37. package/lib/select.ws.js +71 -137
  38. package/lib/shared/meta.js +13 -0
  39. package/lib/shared/preset-styles.js +29 -29
  40. package/lib/shared/theme.js +25 -68
  41. package/lib/sheet.template.js +32 -32
  42. package/lib/switch.js +9 -6
  43. package/lib/switch.template.js +9 -9
  44. package/lib/switch.ws.js +29 -52
  45. package/lib/tabs.js +50 -53
  46. package/lib/tabs.template.js +16 -16
  47. package/lib/tabs.ws.js +41 -76
  48. package/lib/tooltip.js +34 -31
  49. package/lib/tooltip.ws.js +27 -42
  50. package/lib/types/__generated__/popover.props.d.ts +1 -0
  51. package/lib/types/accordion.ws.d.ts +1 -6
  52. package/lib/types/checkbox.ws.d.ts +1 -3
  53. package/lib/types/collapsible.d.ts +2 -2
  54. package/lib/types/collapsible.ws.d.ts +1 -4
  55. package/lib/types/components.d.ts +1 -1
  56. package/lib/types/dialog.ws.d.ts +1 -8
  57. package/lib/types/label.ws.d.ts +1 -2
  58. package/lib/types/metas.d.ts +1 -1
  59. package/lib/types/navigation-menu.ws.d.ts +1 -8
  60. package/lib/types/popover.d.ts +1 -0
  61. package/lib/types/popover.ws.d.ts +2 -4
  62. package/lib/types/radio-group.d.ts +1 -1
  63. package/lib/types/radio-group.ws.d.ts +1 -4
  64. package/lib/types/select.d.ts +3 -3
  65. package/lib/types/select.ws.d.ts +1 -9
  66. package/lib/types/shared/meta.d.ts +1 -0
  67. package/lib/types/shared/preset-styles.d.ts +2 -2
  68. package/lib/types/shared/proxy.d.ts +1 -0
  69. package/lib/types/switch.ws.d.ts +1 -3
  70. package/lib/types/tabs.d.ts +1 -4
  71. package/lib/types/tabs.ws.d.ts +1 -5
  72. package/lib/types/tooltip.ws.d.ts +1 -4
  73. package/package.json +20 -26
  74. package/lib/props.js +0 -62
  75. package/lib/types/props.d.ts +0 -12
package/lib/popover.ws.js CHANGED
@@ -1,50 +1,51 @@
1
- import { TriggerIcon as o, ContentIcon as e, PopoverIcon as n } from "@webstudio-is/icons/svg";
2
- import { div as t } from "@webstudio-is/sdk/normalize.css";
3
- import { propsPopover as r, propsPopoverTrigger as p, propsPopoverContent as i } from "./__generated__/popover.props.js";
4
- const P = {
5
- type: "container",
6
- icon: o,
7
- constraints: {
8
- relation: "ancestor",
9
- component: { $eq: "Popover" }
10
- }
11
- }, v = {
12
- type: "container",
1
+ import { PopoverIcon as e, TriggerIcon as t, ContentIcon as n, ButtonElementIcon as r } from "@webstudio-is/icons/svg";
2
+ import { div as p, button as i } from "@webstudio-is/sdk/normalize.css";
3
+ import { radix as o } from "./shared/meta.js";
4
+ import { propsPopover as s, propsPopoverTrigger as c, propsPopoverContent as a, propsPopoverClose as l } from "./__generated__/popover.props.js";
5
+ import { buttonReset as d } from "./shared/preset-styles.js";
6
+ const C = {
7
+ icon: t,
8
+ contentModel: {
9
+ category: "none",
10
+ children: ["instance"]
11
+ },
12
+ props: c
13
+ }, y = {
14
+ icon: n,
15
+ contentModel: {
16
+ category: "none",
17
+ children: ["instance"],
18
+ descendants: [o.PopoverClose]
19
+ },
13
20
  presetStyle: {
14
- div: t
21
+ div: p
15
22
  },
23
+ initialProps: ["side", "sideOffset", "align", "alignOffset"],
24
+ props: a
25
+ }, h = {
16
26
  icon: e,
17
- constraints: {
18
- relation: "ancestor",
19
- component: { $eq: "Popover" }
20
- }
21
- }, m = {
22
- type: "container",
23
- icon: n,
24
- constraints: [
25
- {
26
- relation: "descendant",
27
- component: { $eq: "PopoverTrigger" }
28
- },
29
- {
30
- relation: "descendant",
31
- component: { $eq: "PopoverContent" }
32
- }
33
- ]
34
- }, g = {
35
- props: r,
36
- initialProps: ["open"]
37
- }, l = {
38
- props: p
39
- }, d = {
40
- props: i,
41
- initialProps: ["side", "sideOffset", "align", "alignOffset"]
27
+ contentModel: {
28
+ category: "instance",
29
+ children: ["instance"],
30
+ descendants: [o.PopoverTrigger, o.PopoverContent]
31
+ },
32
+ initialProps: ["open"],
33
+ props: s
34
+ }, u = {
35
+ icon: r,
36
+ label: "Close Button",
37
+ contentModel: {
38
+ category: "none",
39
+ children: ["instance", "rich-text"]
40
+ },
41
+ presetStyle: {
42
+ button: [d, i].flat()
43
+ },
44
+ props: l
42
45
  };
43
46
  export {
44
- m as metaPopover,
45
- v as metaPopoverContent,
46
- P as metaPopoverTrigger,
47
- g as propsMetaPopover,
48
- d as propsMetaPopoverContent,
49
- l as propsMetaPopoverTrigger
47
+ h as metaPopover,
48
+ u as metaPopoverClose,
49
+ y as metaPopoverContent,
50
+ C as metaPopoverTrigger
50
51
  };
@@ -1,9 +1,12 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as m } from "react";
3
- import { Root as d, Item as p, Indicator as e } from "@radix-ui/react-radio-group";
4
- const u = m(({ value: o, defaultValue: r, ...t }, a) => /* @__PURE__ */ i(d, { ...t, defaultValue: o ?? r, ref: a })), R = p, s = e;
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as c, useState as i, useEffect as m } from "react";
3
+ import { Item as s, Indicator as f, Root as d } from "@radix-ui/react-radio-group";
4
+ const I = c(({ defaultValue: r, ...t }, a) => {
5
+ const o = t.value ?? r ?? "", [u, e] = i(o);
6
+ return m(() => e(o), [o]), /* @__PURE__ */ n(d, { ...t, ref: a, value: u, onValueChange: e });
7
+ }), G = s, V = f;
5
8
  export {
6
- u as RadioGroup,
7
- s as RadioGroupIndicator,
8
- R as RadioGroupItem
9
+ I as RadioGroup,
10
+ V as RadioGroupIndicator,
11
+ G as RadioGroupItem
9
12
  };
@@ -1,73 +1,49 @@
1
- import { RadioGroupIcon as t, ItemIcon as e, TriggerIcon as a } from "@webstudio-is/icons/svg";
2
- import { defaultStates as o } from "@webstudio-is/sdk";
3
- import { div as r, button as n, span as p } from "@webstudio-is/sdk/normalize.css";
4
- import { buttonReset as s } from "./shared/preset-styles.js";
5
- import { propsRadioGroup as i, propsRadioGroupItem as c, propsRadioGroupIndicator as d } from "./__generated__/radio-group.props.js";
6
- const I = {
7
- type: "container",
8
- constraints: {
9
- relation: "descendant",
10
- component: { $eq: "RadioGroupItem" }
1
+ import { RadioGroupIcon as e, ItemIcon as t, TriggerIcon as r } from "@webstudio-is/icons/svg";
2
+ import { div as n, button as a, span as i } from "@webstudio-is/sdk/normalize.css";
3
+ import { radix as o } from "./shared/meta.js";
4
+ import { buttonReset as c } from "./shared/preset-styles.js";
5
+ import { propsRadioGroup as p, propsRadioGroupItem as d, propsRadioGroupIndicator as s } from "./__generated__/radio-group.props.js";
6
+ const G = {
7
+ icon: e,
8
+ contentModel: {
9
+ category: "instance",
10
+ children: ["instance"],
11
+ descendants: [o.RadioGroupItem]
11
12
  },
12
- icon: t,
13
13
  states: [
14
- ...o,
15
- {
16
- label: "Checked",
17
- selector: "[data-state=checked]",
18
- category: "component-states"
19
- },
20
- {
21
- label: "Unchecked",
22
- selector: "[data-state=unchecked]",
23
- category: "component-states"
24
- }
14
+ { label: "Checked", selector: "[data-state=checked]" },
15
+ { label: "Unchecked", selector: "[data-state=unchecked]" }
25
16
  ],
26
17
  presetStyle: {
27
- div: r
28
- }
29
- }, y = {
30
- type: "container",
31
- constraints: [
32
- {
33
- relation: "ancestor",
34
- component: { $eq: "RadioGroup" }
35
- },
36
- {
37
- relation: "descendant",
38
- component: { $eq: "RadioGroupIndicator" }
39
- }
40
- ],
41
- icon: e,
42
- states: o,
18
+ div: n
19
+ },
20
+ initialProps: ["id", "class", "name", "value", "required"],
21
+ props: p
22
+ }, h = {
23
+ icon: t,
24
+ contentModel: {
25
+ category: "none",
26
+ children: ["instance"],
27
+ descendants: [o.RadioGroupIndicator]
28
+ },
43
29
  presetStyle: {
44
- button: [n, s].flat()
45
- }
30
+ button: [a, c].flat()
31
+ },
32
+ initialProps: ["value"],
33
+ props: d
46
34
  }, f = {
47
- type: "container",
48
- icon: a,
49
- constraints: {
50
- relation: "ancestor",
51
- component: { $eq: "RadioGroupItem" }
35
+ icon: r,
36
+ contentModel: {
37
+ category: "none",
38
+ children: ["instance"]
52
39
  },
53
- states: o,
54
40
  presetStyle: {
55
- span: p
56
- }
57
- }, b = {
58
- props: i,
59
- initialProps: ["id", "className", "name", "value", "required"]
60
- }, q = {
61
- props: c,
62
- initialProps: ["value"]
63
- }, g = {
64
- props: d
41
+ span: i
42
+ },
43
+ props: s
65
44
  };
66
45
  export {
67
- I as metaRadioGroup,
46
+ G as metaRadioGroup,
68
47
  f as metaRadioGroupIndicator,
69
- y as metaRadioGroupItem,
70
- b as propsMetaRadioGroup,
71
- g as propsMetaRadioGroupIndicator,
72
- q as propsMetaRadioGroupItem
48
+ h as metaRadioGroupItem
73
49
  };
package/lib/select.js CHANGED
@@ -1,46 +1,58 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { forwardRef as s, useContext as l } from "react";
3
- import { Root as m, Trigger as p, Value as f, Portal as S, Content as d, Viewport as u, Item as I, ItemIndicator as P, ItemText as g } from "@radix-ui/react-select";
4
- import { ReactSdkContext as x, getClosestInstance as i } from "@webstudio-is/react-sdk/runtime";
5
- const v = s(
6
- ({ value: e, defaultValue: t, ...o }, n) => /* @__PURE__ */ c(m, { ...o, defaultValue: e ?? t })
7
- ), T = s((e, t) => {
8
- const { renderer: o } = l(x);
9
- return /* @__PURE__ */ c(p, { onPointerDown: o === "canvas" ? (a) => {
10
- a.preventDefault();
11
- } : void 0, ref: t, ...e });
12
- }), $ = s((e, t) => /* @__PURE__ */ c(f, { ref: t, ...e })), k = s((e, t) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c(d, { ref: t, ...e, position: "popper" }) })), D = u, R = I, y = P, M = g, r = "@webstudio-is/sdk-components-react-radix", N = {
13
- onNavigatorUnselect: (e, t) => {
14
- for (const o of t.instancePath)
15
- if (o.component === `${r}:SelectContent`) {
16
- const n = i(
17
- t.instancePath,
18
- o,
19
- `${r}:Select`
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as a, useState as m, useEffect as f, useContext as g } from "react";
3
+ import { Viewport as C, Item as I, ItemIndicator as P, ItemText as h, Root as x, Trigger as V, Value as v, Portal as w, Content as T } from "@radix-ui/react-select";
4
+ import { ReactSdkContext as $, getClosestInstance as u } from "@webstudio-is/react-sdk/runtime";
5
+ const y = a(({ defaultOpen: t, defaultValue: e, ...n }, o) => {
6
+ const c = n.open ?? t ?? !1, [S, l] = m(c);
7
+ f(() => l(c), [c]);
8
+ const i = n.value ?? e ?? "", [d, p] = m(i);
9
+ return f(() => p(i), [i]), /* @__PURE__ */ r(
10
+ x,
11
+ {
12
+ ...n,
13
+ open: S,
14
+ onOpenChange: l,
15
+ value: d,
16
+ onValueChange: p
17
+ }
18
+ );
19
+ }), M = a((t, e) => {
20
+ const { renderer: n } = g($);
21
+ return /* @__PURE__ */ r(V, { onPointerDown: n === "canvas" ? (c) => {
22
+ c.preventDefault();
23
+ } : void 0, ref: e, ...t });
24
+ }), N = a((t, e) => /* @__PURE__ */ r(v, { ref: e, ...t })), b = a((t, e) => /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(T, { ref: e, ...t, position: "popper" }) })), j = C, E = I, U = P, _ = h, s = "@webstudio-is/sdk-components-react-radix", q = {
25
+ onNavigatorUnselect: (t, e) => {
26
+ for (const n of e.instancePath)
27
+ if (n.component === `${s}:SelectContent`) {
28
+ const o = u(
29
+ e.instancePath,
30
+ n,
31
+ `${s}:Select`
20
32
  );
21
- n && e.setMemoryProp(n, "open", void 0);
33
+ o && t.setMemoryProp(o, "open", void 0);
22
34
  }
23
35
  },
24
- onNavigatorSelect: (e, t) => {
25
- for (const o of t.instancePath)
26
- if (o.component === `${r}:SelectContent`) {
27
- const n = i(
28
- t.instancePath,
29
- o,
30
- `${r}:Select`
36
+ onNavigatorSelect: (t, e) => {
37
+ for (const n of e.instancePath)
38
+ if (n.component === `${s}:SelectContent`) {
39
+ const o = u(
40
+ e.instancePath,
41
+ n,
42
+ `${s}:Select`
31
43
  );
32
- n && e.setMemoryProp(n, "open", !0);
44
+ o && t.setMemoryProp(o, "open", !0);
33
45
  }
34
46
  }
35
47
  };
36
48
  export {
37
- v as Select,
38
- k as SelectContent,
39
- R as SelectItem,
40
- y as SelectItemIndicator,
41
- M as SelectItemText,
42
- T as SelectTrigger,
43
- $ as SelectValue,
44
- D as SelectViewport,
45
- N as hooksSelect
49
+ y as Select,
50
+ b as SelectContent,
51
+ E as SelectItem,
52
+ U as SelectItemIndicator,
53
+ _ as SelectItemText,
54
+ M as SelectTrigger,
55
+ N as SelectValue,
56
+ j as SelectViewport,
57
+ q as hooksSelect
46
58
  };
package/lib/select.ws.js CHANGED
@@ -1,155 +1,89 @@
1
- import { SelectIcon as o, TriggerIcon as n, FormTextFieldIcon as c, ContentIcon as r, ViewportIcon as p, ItemIcon as a, CheckMarkIcon as s, TextIcon as l } from "@webstudio-is/icons/svg";
2
- import { button as i, span as e, div as t } from "@webstudio-is/sdk/normalize.css";
3
- import { propsSelect as m, propsSelectTrigger as S, propsSelectValue as I, propsSelectContent as d, propsSelectViewport as q, propsSelectItem as y, propsSelectItemIndicator as $, propsSelectItemText as T } from "./__generated__/select.props.js";
4
- const M = {
5
- type: "container",
1
+ import { SelectIcon as o, TriggerIcon as c, FormTextFieldIcon as r, ViewportIcon as l, ContentIcon as i, ItemIcon as p, CheckMarkIcon as s, TextIcon as a } from "@webstudio-is/icons/svg";
2
+ import { button as d, span as t, div as n } from "@webstudio-is/sdk/normalize.css";
3
+ import { radix as e } from "./shared/meta.js";
4
+ import { propsSelect as S, propsSelectTrigger as m, propsSelectValue as I, propsSelectViewport as g, propsSelectContent as y, propsSelectItem as h, propsSelectItemIndicator as T, propsSelectItemText as x } from "./__generated__/select.props.js";
5
+ const b = {
6
6
  icon: o,
7
- constraints: [
8
- {
9
- relation: "descendant",
10
- component: { $eq: "SelectTrigger" }
11
- },
12
- {
13
- relation: "descendant",
14
- component: { $eq: "SelectContent" }
15
- }
16
- ]
17
- }, x = {
18
- type: "container",
19
- icon: n,
20
- presetStyle: {
21
- button: i
7
+ contentModel: {
8
+ category: "instance",
9
+ children: ["instance"],
10
+ descendants: [e.SelectTrigger, e.SelectContent]
22
11
  },
23
- constraints: [
24
- {
25
- relation: "ancestor",
26
- component: { $eq: "Select" }
27
- },
28
- {
29
- relation: "descendant",
30
- component: { $eq: "SelectValue" }
31
- }
32
- ]
33
- }, C = {
34
- type: "container",
35
- label: "Value",
12
+ initialProps: ["name", "value", "open", "required"],
13
+ props: S
14
+ }, f = {
36
15
  icon: c,
37
- presetStyle: {
38
- span: e
16
+ contentModel: {
17
+ category: "none",
18
+ children: ["instance"],
19
+ descendants: [e.SelectValue]
39
20
  },
40
- constraints: {
41
- relation: "ancestor",
42
- component: { $eq: "SelectTrigger" }
43
- }
21
+ presetStyle: { button: d },
22
+ props: m
44
23
  }, w = {
45
- type: "container",
24
+ label: "Value",
46
25
  icon: r,
47
- presetStyle: {
48
- div: t
49
- },
50
- constraints: [
51
- {
52
- relation: "ancestor",
53
- component: { $eq: "Select" }
54
- },
55
- {
56
- relation: "descendant",
57
- component: { $eq: "SelectViewport" }
58
- }
59
- ]
60
- }, b = {
61
- type: "container",
62
- icon: p,
63
- presetStyle: {
64
- div: t
26
+ contentModel: {
27
+ category: "none",
28
+ children: []
65
29
  },
66
- constraints: [
67
- {
68
- relation: "ancestor",
69
- component: { $eq: "SelectContent" }
70
- },
71
- {
72
- relation: "descendant",
73
- component: { $eq: "SelectItem" }
74
- }
75
- ]
76
- }, f = {
77
- type: "container",
78
- icon: a,
79
- constraints: [
80
- {
81
- relation: "ancestor",
82
- component: { $eq: "SelectViewport" }
83
- },
84
- {
85
- relation: "descendant",
86
- component: { $eq: "SelectItemIndicator" }
87
- },
88
- {
89
- relation: "descendant",
90
- component: { $eq: "SelectItemText" }
91
- }
92
- ],
93
- presetStyle: {
94
- div: t
95
- }
30
+ presetStyle: { span: t },
31
+ initialProps: ["placeholder"],
32
+ props: I
96
33
  }, v = {
97
- type: "container",
98
- label: "Indicator",
99
- icon: s,
100
- constraints: {
101
- relation: "ancestor",
102
- component: { $eq: "SelectItem" }
34
+ icon: i,
35
+ contentModel: {
36
+ category: "none",
37
+ children: ["instance"],
38
+ descendants: [e.SelectViewport]
103
39
  },
104
- presetStyle: {
105
- span: e
106
- }
40
+ presetStyle: { div: n },
41
+ props: y
107
42
  }, P = {
108
- type: "container",
109
- label: "Item Text",
110
43
  icon: l,
111
- constraints: {
112
- relation: "ancestor",
113
- component: { $eq: "SelectItem" }
44
+ contentModel: {
45
+ category: "none",
46
+ children: ["instance"],
47
+ descendants: [e.SelectItem]
114
48
  },
115
- presetStyle: {
116
- span: e
117
- }
118
- }, h = {
119
- props: m,
120
- initialProps: ["name", "value", "open", "required"]
49
+ presetStyle: { div: n },
50
+ props: g
121
51
  }, k = {
122
- props: S
52
+ icon: p,
53
+ contentModel: {
54
+ category: "none",
55
+ children: ["instance"],
56
+ descendants: [e.SelectItemIndicator, e.SelectItemText]
57
+ },
58
+ presetStyle: { div: n },
59
+ initialProps: ["value"],
60
+ props: h
123
61
  }, F = {
124
- props: I,
125
- initialProps: ["placeholder"]
126
- }, j = {
127
- props: d
128
- }, z = {
129
- props: q
130
- }, A = {
131
- props: y,
132
- initialProps: ["value"]
133
- }, B = {
134
- props: $
135
- }, D = {
62
+ label: "Indicator",
63
+ icon: s,
64
+ contentModel: {
65
+ category: "none",
66
+ children: ["instance"]
67
+ },
68
+ presetStyle: { span: t },
136
69
  props: T
70
+ }, q = {
71
+ label: "Item Text",
72
+ icon: a,
73
+ contentModel: {
74
+ category: "none",
75
+ children: ["instance", "rich-text"]
76
+ },
77
+ presetStyle: { span: t },
78
+ props: x
137
79
  };
138
80
  export {
139
- M as metaSelect,
140
- w as metaSelectContent,
141
- f as metaSelectItem,
142
- v as metaSelectItemIndicator,
143
- P as metaSelectItemText,
144
- x as metaSelectTrigger,
145
- C as metaSelectValue,
146
- b as metaSelectViewport,
147
- h as propsMetaSelect,
148
- j as propsMetaSelectContent,
149
- A as propsMetaSelectItem,
150
- B as propsMetaSelectItemIndicator,
151
- D as propsMetaSelectItemText,
152
- k as propsMetaSelectTrigger,
153
- F as propsMetaSelectValue,
154
- z as propsMetaSelectViewport
81
+ b as metaSelect,
82
+ v as metaSelectContent,
83
+ k as metaSelectItem,
84
+ F as metaSelectItemIndicator,
85
+ q as metaSelectItemText,
86
+ f as metaSelectTrigger,
87
+ w as metaSelectValue,
88
+ P as metaSelectViewport
155
89
  };
@@ -0,0 +1,13 @@
1
+ const r = (t) => new Proxy(
2
+ {},
3
+ {
4
+ get(o, e) {
5
+ return `${t}${e}`;
6
+ }
7
+ }
8
+ ), n = r(
9
+ "@webstudio-is/sdk-components-react-radix:"
10
+ );
11
+ export {
12
+ n as radix
13
+ };
@@ -1,38 +1,38 @@
1
- const o = (e, r, p) => ({
2
- property: e,
3
- value: { type: "unit", unit: p, value: r }
4
- }), t = (e, r) => ({
5
- property: e,
6
- value: { type: "keyword", value: r }
7
- }), d = (e, r, p, l) => ({
8
- property: e,
9
- value: { type: "rgb", alpha: 1, r, g: p, b: l }
10
- }), i = [
1
+ const o = (r, t, p) => ({
2
+ property: r,
3
+ value: { type: "unit", unit: p, value: t }
4
+ }), e = (r, t) => ({
5
+ property: r,
6
+ value: { type: "keyword", value: t }
7
+ }), d = (r, t, p, l) => ({
8
+ property: r,
9
+ value: { type: "rgb", alpha: 1, r: t, g: p, b: l }
10
+ }), b = [
11
11
  {
12
- property: "backgroundColor",
12
+ property: "background-color",
13
13
  value: { type: "keyword", value: "transparent" }
14
14
  },
15
15
  {
16
- property: "backgroundImage",
16
+ property: "background-image",
17
17
  value: { type: "keyword", value: "none" }
18
18
  },
19
- o("borderTopWidth", 0, "px"),
20
- o("borderRightWidth", 0, "px"),
21
- o("borderBottomWidth", 0, "px"),
22
- o("borderLeftWidth", 0, "px"),
23
- t("borderTopStyle", "solid"),
24
- t("borderRightStyle", "solid"),
25
- t("borderBottomStyle", "solid"),
26
- t("borderLeftStyle", "solid"),
27
- d("borderTopColor", 226, 232, 240),
28
- d("borderRightColor", 226, 232, 240),
29
- d("borderBottomColor", 226, 232, 240),
30
- d("borderLeftColor", 226, 232, 240),
31
- o("paddingTop", 0, "px"),
32
- o("paddingRight", 0, "px"),
33
- o("paddingBottom", 0, "px"),
34
- o("paddingLeft", 0, "px")
19
+ o("border-top-width", 0, "px"),
20
+ o("border-right-width", 0, "px"),
21
+ o("border-bottom-width", 0, "px"),
22
+ o("border-left-width", 0, "px"),
23
+ e("border-top-style", "solid"),
24
+ e("border-right-style", "solid"),
25
+ e("border-bottom-style", "solid"),
26
+ e("border-left-style", "solid"),
27
+ d("border-top-color", 226, 232, 240),
28
+ d("border-right-color", 226, 232, 240),
29
+ d("border-bottom-color", 226, 232, 240),
30
+ d("border-left-color", 226, 232, 240),
31
+ o("padding-top", 0, "px"),
32
+ o("padding-right", 0, "px"),
33
+ o("padding-bottom", 0, "px"),
34
+ o("padding-left", 0, "px")
35
35
  ];
36
36
  export {
37
- i as buttonReset
37
+ b as buttonReset
38
38
  };