@webstudio-is/sdk-components-react-radix 0.196.0 → 0.197.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.
Files changed (88) hide show
  1. package/lib/__generated__/select.props.js +6 -0
  2. package/lib/__generated__/tabs.props.js +2 -2
  3. package/lib/accordion.template.js +95 -0
  4. package/lib/accordion.ws.js +53 -205
  5. package/lib/checkbox.template.js +63 -0
  6. package/lib/checkbox.ws.js +22 -119
  7. package/lib/collapsible.template.js +16 -0
  8. package/lib/collapsible.ws.js +21 -71
  9. package/lib/dialog.template.js +119 -0
  10. package/lib/dialog.ws.js +60 -237
  11. package/lib/label.template.js +23 -0
  12. package/lib/label.ws.js +12 -36
  13. package/lib/metas.js +48 -50
  14. package/lib/navigation-menu.template.js +283 -0
  15. package/lib/navigation-menu.ws.js +54 -420
  16. package/lib/popover.template.js +33 -0
  17. package/lib/popover.ws.js +19 -79
  18. package/lib/radio-group.template.js +66 -0
  19. package/lib/radio-group.ws.js +27 -125
  20. package/lib/select.template.js +121 -0
  21. package/lib/select.ws.js +61 -262
  22. package/lib/shared/preset-styles.js +38 -0
  23. package/lib/shared/proxy.js +5 -0
  24. package/lib/shared/styles.js +51 -0
  25. package/lib/shared/theme.js +162 -0
  26. package/lib/sheet.template.js +129 -0
  27. package/lib/switch.js +1 -1
  28. package/lib/switch.template.js +63 -0
  29. package/lib/switch.ws.js +22 -106
  30. package/lib/tabs.template.js +66 -0
  31. package/lib/tabs.ws.js +36 -131
  32. package/lib/templates.js +28 -1
  33. package/lib/tooltip.template.js +33 -0
  34. package/lib/tooltip.ws.js +24 -84
  35. package/lib/types/__generated__/accordion.props.d.ts +1 -1
  36. package/lib/types/__generated__/checkbox.props.d.ts +1 -1
  37. package/lib/types/__generated__/collapsible.props.d.ts +1 -1
  38. package/lib/types/__generated__/dialog.props.d.ts +1 -1
  39. package/lib/types/__generated__/label.props.d.ts +1 -1
  40. package/lib/types/__generated__/navigation-menu.props.d.ts +1 -1
  41. package/lib/types/__generated__/popover.props.d.ts +1 -1
  42. package/lib/types/__generated__/radio-group.props.d.ts +1 -1
  43. package/lib/types/__generated__/select.props.d.ts +1 -1
  44. package/lib/types/__generated__/switch.props.d.ts +1 -1
  45. package/lib/types/__generated__/tabs.props.d.ts +1 -1
  46. package/lib/types/__generated__/tooltip.props.d.ts +1 -1
  47. package/lib/types/accordion.template.d.ts +10 -0
  48. package/lib/types/accordion.ws.d.ts +1 -1
  49. package/lib/types/checkbox.d.ts +1 -1
  50. package/lib/types/checkbox.template.d.ts +2 -0
  51. package/lib/types/checkbox.ws.d.ts +1 -1
  52. package/lib/types/collapsible.template.d.ts +2 -0
  53. package/lib/types/collapsible.ws.d.ts +1 -1
  54. package/lib/types/dialog.template.d.ts +10 -0
  55. package/lib/types/dialog.ws.d.ts +1 -9
  56. package/lib/types/label.template.d.ts +10 -0
  57. package/lib/types/label.ws.d.ts +1 -1
  58. package/lib/types/metas.d.ts +0 -1
  59. package/lib/types/navigation-menu.template.d.ts +2 -0
  60. package/lib/types/navigation-menu.ws.d.ts +1 -1
  61. package/lib/types/popover.template.d.ts +10 -0
  62. package/lib/types/popover.ws.d.ts +1 -9
  63. package/lib/types/radio-group.template.d.ts +2 -0
  64. package/lib/types/radio-group.ws.d.ts +1 -1
  65. package/lib/types/select.template.d.ts +2 -0
  66. package/lib/types/select.ws.d.ts +1 -1
  67. package/lib/types/shared/preset-styles.d.ts +2 -0
  68. package/lib/types/shared/proxy.d.ts +17 -0
  69. package/lib/types/shared/styles.d.ts +2 -0
  70. package/lib/types/shared/theme.d.ts +212 -0
  71. package/lib/types/{sheet.ws.d.ts → sheet.template.d.ts} +2 -2
  72. package/lib/types/switch.template.d.ts +2 -0
  73. package/lib/types/switch.ws.d.ts +1 -1
  74. package/lib/types/tabs.template.d.ts +2 -0
  75. package/lib/types/tabs.ws.d.ts +1 -1
  76. package/lib/types/templates.d.ts +13 -0
  77. package/lib/types/tooltip.template.d.ts +10 -0
  78. package/lib/types/tooltip.ws.d.ts +1 -9
  79. package/package.json +25 -22
  80. package/lib/sheet.ws.js +0 -217
  81. package/lib/theme/__generated__/tailwind-theme.js +0 -503
  82. package/lib/theme/styles.js +0 -52
  83. package/lib/theme/tailwind-classes.js +0 -474
  84. package/lib/types/__generated__/sheet.props.d.ts +0 -8
  85. package/lib/types/theme/__generated__/tailwind-theme.d.ts +0 -26
  86. package/lib/types/theme/styles.d.ts +0 -278
  87. package/lib/types/theme/tailwind-classes.d.ts +0 -104
  88. package/lib/types/theme/tailwind-colors.d.ts +0 -31
package/lib/select.ws.js CHANGED
@@ -1,77 +1,9 @@
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
- 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 s = {
6
- div: F
7
- }, c = ({
8
- props: x,
9
- children: V
10
- }) => ({
11
- type: "instance",
12
- component: "SelectItem",
13
- props: x,
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
- // focus:bg-accent focus:text-accent-foreground
16
- // data-[disabled]:pointer-events-none data-[disabled]:opacity-50
17
- styles: [
18
- v(),
19
- r(),
20
- t("full"),
21
- I("default"),
22
- L(),
23
- l("center"),
24
- a("md"),
25
- S(1.5),
26
- U(8),
27
- A(2),
28
- e("sm"),
29
- h(),
30
- g([p("accent"), e("accentForeground")].flat()),
31
- u(
32
- [B("none"), f(50)].flat(),
33
- "[data-disabled]"
34
- )
35
- ].flat(),
36
- children: [
37
- {
38
- type: "instance",
39
- component: "SelectItemIndicator",
40
- // absolute left-2 flex h-3.5 w-3.5 items-center justify-center
41
- styles: [
42
- G(),
43
- J(2),
44
- r(),
45
- m(3.5),
46
- t(3.5),
47
- l("center"),
48
- y("center")
49
- ].flat(),
50
- children: [
51
- {
52
- type: "instance",
53
- component: "HtmlEmbed",
54
- label: "Indicator Icon",
55
- props: [
56
- {
57
- type: "string",
58
- name: "code",
59
- value: d
60
- }
61
- ],
62
- children: []
63
- }
64
- ]
65
- },
66
- {
67
- type: "instance",
68
- component: "SelectItemText",
69
- children: V
70
- }
71
- ]
72
- }), oe = {
73
- category: "radix",
74
- order: 10,
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 m } from "@webstudio-is/sdk/normalize.css";
3
+ import { propsSelect as S, propsSelectTrigger as I, propsSelectValue as d, propsSelectContent as q, propsSelectViewport as y, propsSelectItem as $, propsSelectItemIndicator as T, propsSelectItemText as g } from "./__generated__/select.props.js";
4
+ const t = {
5
+ div: m
6
+ }, x = {
75
7
  type: "container",
76
8
  constraints: [
77
9
  {
@@ -83,140 +15,13 @@ const s = {
83
15
  component: { $eq: "SelectContent" }
84
16
  }
85
17
  ],
86
- icon: b,
87
- stylable: !1,
88
- description: "Use within a form to give your users a list of options to choose from.",
89
- template: [
90
- {
91
- type: "instance",
92
- component: "Select",
93
- variables: {
94
- selectValue: { initialValue: "" }
95
- },
96
- props: [
97
- {
98
- name: "value",
99
- type: "expression",
100
- code: "selectValue"
101
- },
102
- {
103
- name: "onValueChange",
104
- type: "action",
105
- value: [
106
- { type: "execute", args: ["value"], code: "selectValue = value" }
107
- ]
108
- }
109
- ],
110
- children: [
111
- {
112
- type: "instance",
113
- component: "SelectTrigger",
114
- // flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background
115
- // placeholder:text-muted-foreground
116
- // focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2
117
- // disabled:cursor-not-allowed disabled:opacity-50
118
- styles: [
119
- r(),
120
- m(10),
121
- t("full"),
122
- l("center"),
123
- y("between"),
124
- a("md"),
125
- n(),
126
- n("input"),
127
- p("background"),
128
- P(3),
129
- S(2),
130
- e("sm"),
131
- u([e("mutedForeground")].flat(), "::placeholder"),
132
- g(
133
- [h(), E("ring", 2, "background", 2)].flat()
134
- ),
135
- W([I("not-allowed"), f(50)].flat())
136
- ].flat(),
137
- children: [
138
- {
139
- type: "instance",
140
- component: "SelectValue",
141
- props: [{ name: "placeholder", type: "string", value: "Theme" }],
142
- children: []
143
- }
144
- ]
145
- },
146
- {
147
- type: "instance",
148
- component: "SelectContent",
149
- // relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md
150
- // data-[state=open]:animate-in
151
- // data-[state=closed]:animate-out data-[state=closed]:fade-out-0
152
- // data-[state=open]:fade-in-0
153
- // data-[state=closed]:zoom-out-95
154
- // data-[state=open]:zoom-in-95
155
- // data-[side=bottom]:slide-in-from-top-2
156
- // data-[side=left]:slide-in-from-right-2
157
- // data-[side=right]:slide-in-from-left-2
158
- // data-[side=top]:slide-in-from-bottom-2
159
- // position=popper
160
- // data-[side=bottom]:translate-y-1
161
- // data-[side=left]:-translate-x-1
162
- // data-[side=right]:translate-x-1
163
- // data-[side=top]:-translate-y-1
164
- styles: [
165
- v(),
166
- j(50),
167
- o("minWidth", "8rem"),
168
- z("hidden"),
169
- a("md"),
170
- n(),
171
- p("popover"),
172
- e("popoverForeground"),
173
- D("md")
174
- ].flat(),
175
- children: [
176
- {
177
- type: "instance",
178
- component: "SelectViewport",
179
- // p-1
180
- // position=popper
181
- // h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]
182
- styles: [
183
- H(1),
184
- o("height", "--radix-select-trigger-height"),
185
- t("full"),
186
- o("minWidth", "--radix-select-trigger-width")
187
- ].flat(),
188
- children: [
189
- c({
190
- props: [{ name: "value", type: "string", value: "light" }],
191
- children: [
192
- { type: "text", value: "Light", placeholder: !0 }
193
- ]
194
- }),
195
- c({
196
- props: [{ name: "value", type: "string", value: "dark" }],
197
- children: [
198
- { type: "text", value: "Dark", placeholder: !0 }
199
- ]
200
- }),
201
- c({
202
- props: [{ name: "value", type: "string", value: "system" }],
203
- children: [
204
- { type: "text", value: "System", placeholder: !0 }
205
- ]
206
- })
207
- ]
208
- }
209
- ]
210
- }
211
- ]
212
- }
213
- ]
214
- }, ce = {
215
- category: "hidden",
18
+ icon: o,
19
+ stylable: !1
20
+ }, C = {
216
21
  type: "container",
217
- icon: T,
22
+ icon: n,
218
23
  presetStyle: {
219
- button: k
24
+ button: i
220
25
  },
221
26
  constraints: [
222
27
  {
@@ -228,23 +33,21 @@ const s = {
228
33
  component: { $eq: "SelectValue" }
229
34
  }
230
35
  ]
231
- }, re = {
232
- category: "hidden",
36
+ }, w = {
233
37
  type: "container",
234
38
  label: "Value",
235
- icon: q,
39
+ icon: c,
236
40
  presetStyle: {
237
- span: i
41
+ span: e
238
42
  },
239
43
  constraints: {
240
44
  relation: "ancestor",
241
45
  component: { $eq: "SelectTrigger" }
242
46
  }
243
- }, le = {
244
- category: "hidden",
47
+ }, b = {
245
48
  type: "container",
246
- icon: w,
247
- presetStyle: s,
49
+ icon: r,
50
+ presetStyle: t,
248
51
  constraints: [
249
52
  {
250
53
  relation: "ancestor",
@@ -255,11 +58,10 @@ const s = {
255
58
  component: { $eq: "SelectViewport" }
256
59
  }
257
60
  ]
258
- }, ae = {
259
- category: "hidden",
61
+ }, f = {
260
62
  type: "container",
261
- icon: $,
262
- presetStyle: s,
63
+ icon: p,
64
+ presetStyle: t,
263
65
  constraints: [
264
66
  {
265
67
  relation: "ancestor",
@@ -270,10 +72,9 @@ const s = {
270
72
  component: { $eq: "SelectItem" }
271
73
  }
272
74
  ]
273
- }, pe = {
274
- category: "hidden",
75
+ }, v = {
275
76
  type: "container",
276
- icon: C,
77
+ icon: a,
277
78
  constraints: [
278
79
  {
279
80
  relation: "ancestor",
@@ -288,66 +89,64 @@ const s = {
288
89
  component: { $eq: "SelectItemText" }
289
90
  }
290
91
  ],
291
- presetStyle: s
292
- }, ie = {
293
- category: "hidden",
92
+ presetStyle: t
93
+ }, P = {
294
94
  type: "container",
295
95
  label: "Indicator",
296
- icon: d,
96
+ icon: s,
297
97
  constraints: {
298
98
  relation: "ancestor",
299
99
  component: { $eq: "SelectItem" }
300
100
  },
301
101
  presetStyle: {
302
- span: i
102
+ span: e
303
103
  }
304
- }, se = {
305
- category: "hidden",
104
+ }, h = {
306
105
  type: "container",
307
106
  label: "Item Text",
308
- icon: M,
107
+ icon: l,
309
108
  constraints: {
310
109
  relation: "ancestor",
311
110
  component: { $eq: "SelectItem" }
312
111
  },
313
112
  presetStyle: {
314
- span: i
113
+ span: e
315
114
  }
316
- }, de = {
317
- props: K,
115
+ }, k = {
116
+ props: S,
318
117
  initialProps: ["name", "value", "open", "required"]
319
- }, me = {
320
- props: N
321
- }, ye = {
322
- props: O,
118
+ }, F = {
119
+ props: I
120
+ }, j = {
121
+ props: d,
323
122
  initialProps: ["placeholder"]
324
- }, Se = {
325
- props: Q
326
- }, ue = {
327
- props: R
328
- }, ge = {
329
- props: X,
123
+ }, z = {
124
+ props: q
125
+ }, A = {
126
+ props: y
127
+ }, B = {
128
+ props: $,
330
129
  initialProps: ["value"]
331
- }, he = {
332
- props: Y
333
- }, Ie = {
334
- props: Z
130
+ }, D = {
131
+ props: T
132
+ }, E = {
133
+ props: g
335
134
  };
336
135
  export {
337
- oe as metaSelect,
338
- le as metaSelectContent,
339
- pe as metaSelectItem,
340
- ie as metaSelectItemIndicator,
341
- se as metaSelectItemText,
342
- ce as metaSelectTrigger,
343
- re as metaSelectValue,
344
- ae as metaSelectViewport,
345
- de as propsMetaSelect,
346
- Se as propsMetaSelectContent,
347
- ge as propsMetaSelectItem,
348
- he as propsMetaSelectItemIndicator,
349
- Ie as propsMetaSelectItemText,
350
- me as propsMetaSelectTrigger,
351
- ye as propsMetaSelectValue,
352
- ue as propsMetaSelectViewport
136
+ x as metaSelect,
137
+ b as metaSelectContent,
138
+ v as metaSelectItem,
139
+ P as metaSelectItemIndicator,
140
+ h as metaSelectItemText,
141
+ C as metaSelectTrigger,
142
+ w as metaSelectValue,
143
+ f as metaSelectViewport,
144
+ k as propsMetaSelect,
145
+ z as propsMetaSelectContent,
146
+ B as propsMetaSelectItem,
147
+ D as propsMetaSelectItemIndicator,
148
+ E as propsMetaSelectItemText,
149
+ F as propsMetaSelectTrigger,
150
+ j as propsMetaSelectValue,
151
+ A as propsMetaSelectViewport
353
152
  };
@@ -0,0 +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 = [
11
+ {
12
+ property: "backgroundColor",
13
+ value: { type: "keyword", value: "transparent" }
14
+ },
15
+ {
16
+ property: "backgroundImage",
17
+ value: { type: "keyword", value: "none" }
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")
35
+ ];
36
+ export {
37
+ i as buttonReset
38
+ };
@@ -0,0 +1,5 @@
1
+ import { createProxy as o } from "@webstudio-is/template";
2
+ const t = o("@webstudio-is/sdk-components-react-radix:");
3
+ export {
4
+ t as radix
5
+ };
@@ -0,0 +1,51 @@
1
+ import { css as n } from "@webstudio-is/template";
2
+ import { colors as o, borderRadius as s, fontSize as c, fontSizeLineHeight as u, weights as l, boxShadow as a, opacity as h, borderWidth as g, height as d, spacing as t } from "./theme.js";
3
+ const $ = n`
4
+ display: inline-flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ background-color: transparent;
8
+ border: 0 solid ${o.border};
9
+ border-radius: ${s.md};
10
+ font-size: ${c.sm};
11
+ line-height: ${u.sm};
12
+ font-weight: ${l.medium};
13
+ &:focus-visible {
14
+ outline: 2px solid transparent;
15
+ outline-offset: 2px;
16
+ box-shadow: ${a.ring};
17
+ }
18
+ &:disabled {
19
+ pointer-events: none;
20
+ opacity: ${h[50]};
21
+ }
22
+ `, p = n`
23
+ &:hover {
24
+ background-color: ${o.accent};
25
+ color: ${o.accentForeground};
26
+ }
27
+ `, f = n`
28
+ border: ${g.DEFAULT} solid ${o.input};
29
+ background-color: ${o.background};
30
+ &:hover {
31
+ background-color: ${o.accent};
32
+ color: ${o.accentForeground};
33
+ }
34
+ `, b = n`
35
+ height: ${d[10]};
36
+ padding: ${t[2]} ${t[4]};
37
+ `, m = n`
38
+ height: ${d[9]};
39
+ border-radius: ${s.md};
40
+ padding: 0 ${t[3]};
41
+ `, y = n`
42
+ height: ${t[10]};
43
+ width: ${t[10]};
44
+ padding: ${t[0]} ${t[1.5]};
45
+ `, B = (r, i = "default") => {
46
+ const e = [...$];
47
+ return r === "ghost" && e.push(...p), r === "outline" && e.push(...f), i === "default" && e.push(...b), i === "sm" && e.push(...m), i === "icon" && e.push(...y), e;
48
+ };
49
+ export {
50
+ B as getButtonStyle
51
+ };
@@ -0,0 +1,162 @@
1
+ const o = {
2
+ sm: "0.875rem",
3
+ lg: "1.125rem"
4
+ }, t = {
5
+ sm: "1.25rem",
6
+ lg: "1.75rem"
7
+ }, p = {
8
+ none: "1",
9
+ snug: "1.375"
10
+ }, s = {
11
+ medium: "500"
12
+ }, g = {
13
+ tight: "-0.025em"
14
+ }, m = {
15
+ 0: "0px",
16
+ 1: "0.25rem",
17
+ 2: "0.5rem",
18
+ 3: "0.75rem",
19
+ 4: "1rem",
20
+ 5: "1.25rem",
21
+ 6: "1.5rem",
22
+ 7: "1.75rem",
23
+ 8: "2rem",
24
+ 9: "2.25rem",
25
+ 10: "2.5rem",
26
+ 11: "2.75rem",
27
+ 12: "3rem",
28
+ 14: "3.5rem",
29
+ 16: "4rem",
30
+ 20: "5rem",
31
+ 24: "6rem",
32
+ 28: "7rem",
33
+ 32: "8rem",
34
+ 36: "9rem",
35
+ 40: "10rem",
36
+ 44: "11rem",
37
+ 48: "12rem",
38
+ 52: "13rem",
39
+ 56: "14rem",
40
+ 60: "15rem",
41
+ 64: "16rem",
42
+ 72: "18rem",
43
+ 80: "20rem",
44
+ 96: "24rem",
45
+ px: "1px",
46
+ "0.5": "0.125rem",
47
+ "1.5": "0.375rem",
48
+ "2.5": "0.625rem",
49
+ "3.5": "0.875rem"
50
+ }, c = {
51
+ ...m,
52
+ full: "100%"
53
+ }, x = {
54
+ ...m,
55
+ full: "100%"
56
+ }, i = {
57
+ 0: "0rem",
58
+ xs: "20rem",
59
+ sm: "24rem",
60
+ md: "28rem",
61
+ lg: "32rem",
62
+ xl: "36rem",
63
+ prose: "65ch"
64
+ }, b = {
65
+ 0: "0px",
66
+ 2: "2px",
67
+ 4: "4px",
68
+ 8: "8px",
69
+ DEFAULT: "1px"
70
+ }, d = {
71
+ sm: "0.125rem",
72
+ md: "0.375rem",
73
+ full: "9999px"
74
+ }, r = {
75
+ transparent: "transparent",
76
+ current: "currentColor",
77
+ inherit: "inherit",
78
+ popover: "rgb(255, 255, 255)",
79
+ popoverForeground: "rgb(2, 8, 23)",
80
+ border: "rgb(226, 232, 240)",
81
+ background: "rgb(255, 255, 255)",
82
+ foreground: "hsl(222.2 84% 4.9%)",
83
+ ring: "rgb(148, 163, 184)",
84
+ mutedForeground: "rgb(100, 116, 139)",
85
+ muted: "hsl(210 40% 96.1%)",
86
+ primary: "rgb(15, 23, 42)",
87
+ primaryForeground: "hsl(210 40% 98%)",
88
+ destructive: "rgb(239, 68, 68)",
89
+ destructiveForeground: "rgb(248, 250, 252)",
90
+ accent: "rgb(241, 245, 249)",
91
+ accentForeground: "rgb(15, 23, 42)",
92
+ input: "rgb(226, 232, 240)",
93
+ secondary: "rgb(241, 245, 249)",
94
+ secondaryForeground: "rgb(15, 23, 42)"
95
+ }, u = {
96
+ all: "all 150ms cubic-bezier(0.4, 0, 0.2, 1)",
97
+ transform: "transform 150ms cubic-bezier(0.4, 0, 0.2, 1)"
98
+ }, l = {
99
+ 0: "0",
100
+ 5: "0.05",
101
+ 10: "0.1",
102
+ 20: "0.2",
103
+ 25: "0.25",
104
+ 30: "0.3",
105
+ 40: "0.4",
106
+ 50: "0.5",
107
+ 60: "0.6",
108
+ 70: "0.7",
109
+ 75: "0.75",
110
+ 80: "0.8",
111
+ 90: "0.9",
112
+ 95: "0.95",
113
+ 100: "1"
114
+ }, n = {
115
+ 0: "0px",
116
+ 1: "1px",
117
+ 2: "2px",
118
+ 4: "4px",
119
+ 8: "8px",
120
+ DEFAULT: "3px"
121
+ }, e = {
122
+ 0: "0px",
123
+ 1: "1px",
124
+ 2: "2px",
125
+ 4: "4px",
126
+ 8: "8px"
127
+ }, a = {
128
+ sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
129
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
130
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
131
+ // 0 0 0 ringOffsetWidth ringOffsetColor
132
+ // 0 0 0 ringWidth + ringOffsetWidth ringColor
133
+ ring: `0 0 0 ${e[2]} ${r.background}, 0 0 0 calc(${n[2]} + ${e[2]}) ${r.ring}`
134
+ }, h = {
135
+ 0: "0",
136
+ 10: "10",
137
+ 20: "20",
138
+ 30: "30",
139
+ 40: "40",
140
+ 50: "50"
141
+ }, f = {
142
+ sm: "blur(0 1px 2px 0 rgb(0 0 0 / 0.05))"
143
+ };
144
+ export {
145
+ f as blur,
146
+ d as borderRadius,
147
+ b as borderWidth,
148
+ a as boxShadow,
149
+ r as colors,
150
+ o as fontSize,
151
+ t as fontSizeLineHeight,
152
+ x as height,
153
+ g as letterSpacing,
154
+ p as lineHeight,
155
+ i as maxWidth,
156
+ l as opacity,
157
+ m as spacing,
158
+ u as transition,
159
+ s as weights,
160
+ c as width,
161
+ h as zIndex
162
+ };