@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.
- package/lib/__generated__/select.props.js +6 -0
- package/lib/__generated__/tabs.props.js +2 -2
- package/lib/accordion.template.js +95 -0
- package/lib/accordion.ws.js +53 -205
- package/lib/checkbox.template.js +63 -0
- package/lib/checkbox.ws.js +22 -119
- package/lib/collapsible.template.js +16 -0
- package/lib/collapsible.ws.js +21 -71
- package/lib/dialog.template.js +119 -0
- package/lib/dialog.ws.js +60 -237
- package/lib/label.template.js +23 -0
- package/lib/label.ws.js +12 -36
- package/lib/metas.js +48 -50
- package/lib/navigation-menu.template.js +283 -0
- package/lib/navigation-menu.ws.js +54 -420
- package/lib/popover.template.js +33 -0
- package/lib/popover.ws.js +19 -79
- package/lib/radio-group.template.js +66 -0
- package/lib/radio-group.ws.js +27 -125
- package/lib/select.template.js +121 -0
- package/lib/select.ws.js +61 -262
- package/lib/shared/preset-styles.js +38 -0
- package/lib/shared/proxy.js +5 -0
- package/lib/shared/styles.js +51 -0
- package/lib/shared/theme.js +162 -0
- package/lib/sheet.template.js +129 -0
- package/lib/switch.js +1 -1
- package/lib/switch.template.js +63 -0
- package/lib/switch.ws.js +22 -106
- package/lib/tabs.template.js +66 -0
- package/lib/tabs.ws.js +36 -131
- package/lib/templates.js +28 -1
- package/lib/tooltip.template.js +33 -0
- package/lib/tooltip.ws.js +24 -84
- package/lib/types/__generated__/accordion.props.d.ts +1 -1
- package/lib/types/__generated__/checkbox.props.d.ts +1 -1
- package/lib/types/__generated__/collapsible.props.d.ts +1 -1
- package/lib/types/__generated__/dialog.props.d.ts +1 -1
- package/lib/types/__generated__/label.props.d.ts +1 -1
- package/lib/types/__generated__/navigation-menu.props.d.ts +1 -1
- package/lib/types/__generated__/popover.props.d.ts +1 -1
- package/lib/types/__generated__/radio-group.props.d.ts +1 -1
- package/lib/types/__generated__/select.props.d.ts +1 -1
- package/lib/types/__generated__/switch.props.d.ts +1 -1
- package/lib/types/__generated__/tabs.props.d.ts +1 -1
- package/lib/types/__generated__/tooltip.props.d.ts +1 -1
- package/lib/types/accordion.template.d.ts +10 -0
- package/lib/types/accordion.ws.d.ts +1 -1
- package/lib/types/checkbox.d.ts +1 -1
- package/lib/types/checkbox.template.d.ts +2 -0
- package/lib/types/checkbox.ws.d.ts +1 -1
- package/lib/types/collapsible.template.d.ts +2 -0
- package/lib/types/collapsible.ws.d.ts +1 -1
- package/lib/types/dialog.template.d.ts +10 -0
- package/lib/types/dialog.ws.d.ts +1 -9
- package/lib/types/label.template.d.ts +10 -0
- package/lib/types/label.ws.d.ts +1 -1
- package/lib/types/metas.d.ts +0 -1
- package/lib/types/navigation-menu.template.d.ts +2 -0
- package/lib/types/navigation-menu.ws.d.ts +1 -1
- package/lib/types/popover.template.d.ts +10 -0
- package/lib/types/popover.ws.d.ts +1 -9
- package/lib/types/radio-group.template.d.ts +2 -0
- package/lib/types/radio-group.ws.d.ts +1 -1
- package/lib/types/select.template.d.ts +2 -0
- package/lib/types/select.ws.d.ts +1 -1
- package/lib/types/shared/preset-styles.d.ts +2 -0
- package/lib/types/shared/proxy.d.ts +17 -0
- package/lib/types/shared/styles.d.ts +2 -0
- package/lib/types/shared/theme.d.ts +212 -0
- package/lib/types/{sheet.ws.d.ts → sheet.template.d.ts} +2 -2
- package/lib/types/switch.template.d.ts +2 -0
- package/lib/types/switch.ws.d.ts +1 -1
- package/lib/types/tabs.template.d.ts +2 -0
- package/lib/types/tabs.ws.d.ts +1 -1
- package/lib/types/templates.d.ts +13 -0
- package/lib/types/tooltip.template.d.ts +10 -0
- package/lib/types/tooltip.ws.d.ts +1 -9
- package/package.json +25 -22
- package/lib/sheet.ws.js +0 -217
- package/lib/theme/__generated__/tailwind-theme.js +0 -503
- package/lib/theme/styles.js +0 -52
- package/lib/theme/tailwind-classes.js +0 -474
- package/lib/types/__generated__/sheet.props.d.ts +0 -8
- package/lib/types/theme/__generated__/tailwind-theme.d.ts +0 -26
- package/lib/types/theme/styles.d.ts +0 -278
- package/lib/types/theme/tailwind-classes.d.ts +0 -104
- package/lib/types/theme/tailwind-colors.d.ts +0 -31
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
import { zIndex as h, borderRadius as m, colors as n, width as g, height as k, opacity as x, cursor as S, maxWidth as W, blur as B, listStyleType as C, spacing as T, lineHeight as L, letterSpacing as R, fontSize as i, fontSizeLineHeight as V, boxShadow as D, borderWidth as y, padding as G, margin as z, inset as F, ringOffsetWidth as E, lineClamp as j, ringWidth as H } from "./__generated__/tailwind-theme.js";
|
|
2
|
-
const ue = (e, t) => t.startsWith("--") ? {
|
|
3
|
-
property: e,
|
|
4
|
-
value: { type: "var", value: t.slice(2) }
|
|
5
|
-
} : {
|
|
6
|
-
property: e,
|
|
7
|
-
value: { type: "unparsed", value: t }
|
|
8
|
-
}, I = () => {
|
|
9
|
-
const e = n.border;
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
property: "borderTopStyle",
|
|
13
|
-
value: { type: "keyword", value: "solid" }
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
property: "borderRightStyle",
|
|
17
|
-
value: { type: "keyword", value: "solid" }
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
property: "borderBottomStyle",
|
|
21
|
-
value: { type: "keyword", value: "solid" }
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
property: "borderLeftStyle",
|
|
25
|
-
value: { type: "keyword", value: "solid" }
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
property: "borderTopColor",
|
|
29
|
-
value: e
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
property: "borderRightColor",
|
|
33
|
-
value: e
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
property: "borderBottomColor",
|
|
37
|
-
value: e
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
property: "borderLeftColor",
|
|
41
|
-
value: e
|
|
42
|
-
}
|
|
43
|
-
];
|
|
44
|
-
}, pe = (e) => [
|
|
45
|
-
{
|
|
46
|
-
property: "zIndex",
|
|
47
|
-
value: h[e]
|
|
48
|
-
}
|
|
49
|
-
], U = (e) => [
|
|
50
|
-
{
|
|
51
|
-
property: "overflowX",
|
|
52
|
-
value: { type: "keyword", value: e }
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
property: "overflowY",
|
|
56
|
-
value: { type: "keyword", value: e }
|
|
57
|
-
}
|
|
58
|
-
], le = (e = "DEFAULT") => {
|
|
59
|
-
const t = m[e];
|
|
60
|
-
return [
|
|
61
|
-
{ property: "borderTopLeftRadius", value: t },
|
|
62
|
-
{ property: "borderTopRightRadius", value: t },
|
|
63
|
-
{ property: "borderBottomRightRadius", value: t },
|
|
64
|
-
{ property: "borderBottomLeftRadius", value: t }
|
|
65
|
-
];
|
|
66
|
-
}, ae = (e) => {
|
|
67
|
-
if (typeof e == "number" || e === void 0) {
|
|
68
|
-
const r = y[e ?? "DEFAULT"];
|
|
69
|
-
return [
|
|
70
|
-
...I(),
|
|
71
|
-
{ property: "borderTopWidth", value: r },
|
|
72
|
-
{ property: "borderRightWidth", value: r },
|
|
73
|
-
{ property: "borderBottomWidth", value: r },
|
|
74
|
-
{ property: "borderLeftWidth", value: r }
|
|
75
|
-
];
|
|
76
|
-
}
|
|
77
|
-
const t = n[e];
|
|
78
|
-
return [
|
|
79
|
-
{ property: "borderTopColor", value: t },
|
|
80
|
-
{ property: "borderRightColor", value: t },
|
|
81
|
-
{ property: "borderBottomColor", value: t },
|
|
82
|
-
{ property: "borderLeftColor", value: t }
|
|
83
|
-
];
|
|
84
|
-
}, ie = (e) => {
|
|
85
|
-
let t = { type: "unit", value: 1, unit: "number" }, r = n.border;
|
|
86
|
-
return t = y.DEFAULT, [
|
|
87
|
-
{
|
|
88
|
-
property: "borderBottomWidth",
|
|
89
|
-
value: t
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
property: "borderBottomStyle",
|
|
93
|
-
value: { type: "keyword", value: "solid" }
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
property: "borderBottomColor",
|
|
97
|
-
value: r
|
|
98
|
-
}
|
|
99
|
-
];
|
|
100
|
-
}, u = (e) => (t) => [{ property: e, value: G[t] }], $ = (e) => u("paddingTop")(e), A = (e) => u("paddingBottom")(e), M = (e) => u("paddingLeft")(e), O = (e) => u("paddingRight")(e), _ = (e) => [M(e), O(e)].flat(), X = (e) => [$(e), A(e)].flat(), ye = (e) => [_(e), X(e)].flat(), p = (e) => (t) => [{ property: e, value: z[t] }], Y = (e) => p("marginLeft")(e), q = (e) => p("marginRight")(e), J = (e) => p("marginTop")(e), K = (e) => p("marginBottom")(e), N = (e) => [Y(e), q(e)].flat(), Q = (e) => [J(e), K(e)].flat(), se = (e) => [N(e), Q(e)].flat(), ve = (e) => [{ property: "width", value: g[e] }], ce = (e) => [{ property: "height", value: k[e] }], de = (e) => [
|
|
101
|
-
{
|
|
102
|
-
property: "opacity",
|
|
103
|
-
value: x[e]
|
|
104
|
-
}
|
|
105
|
-
], be = (e) => [
|
|
106
|
-
{
|
|
107
|
-
property: "cursor",
|
|
108
|
-
value: S[e]
|
|
109
|
-
}
|
|
110
|
-
], fe = (e) => [{ property: "maxWidth", value: W[e] }], o = (e, t) => ({ property: e, value: F[t] }), we = (e) => [o("top", e)], he = (e) => [o("right", e)], me = (e) => [o("left", e)], ge = (e) => [
|
|
111
|
-
o("left", e),
|
|
112
|
-
o("right", e),
|
|
113
|
-
o("top", e),
|
|
114
|
-
o("bottom", e)
|
|
115
|
-
], ke = (e) => {
|
|
116
|
-
let t = e;
|
|
117
|
-
return t = "1 / 1", [
|
|
118
|
-
{
|
|
119
|
-
property: "aspectRatio",
|
|
120
|
-
value: { type: "unparsed", value: t }
|
|
121
|
-
}
|
|
122
|
-
];
|
|
123
|
-
}, xe = (e) => [{ property: "backdropFilter", value: B[e] }], Se = (e) => [{ property: "listStyleType", value: C[e] }], We = (e) => [
|
|
124
|
-
{
|
|
125
|
-
property: "userSelect",
|
|
126
|
-
value: {
|
|
127
|
-
type: "keyword",
|
|
128
|
-
value: "none"
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
], Be = (e, t) => {
|
|
132
|
-
const r = n[e];
|
|
133
|
-
return t !== void 0 && r.type === "rgb" && (r.alpha = t / 100), [
|
|
134
|
-
{
|
|
135
|
-
property: "backgroundColor",
|
|
136
|
-
value: r
|
|
137
|
-
}
|
|
138
|
-
];
|
|
139
|
-
}, Ce = () => [{ property: "position", value: { type: "keyword", value: "fixed" } }], Te = () => [
|
|
140
|
-
{ property: "position", value: { type: "keyword", value: "relative" } }
|
|
141
|
-
], Le = () => [
|
|
142
|
-
{ property: "position", value: { type: "keyword", value: "absolute" } }
|
|
143
|
-
], Z = {
|
|
144
|
-
start: "flex-start",
|
|
145
|
-
end: "flex-end",
|
|
146
|
-
center: "center",
|
|
147
|
-
baseline: "baseline",
|
|
148
|
-
stretch: "stretch"
|
|
149
|
-
}, Re = (e) => [
|
|
150
|
-
{
|
|
151
|
-
property: "alignItems",
|
|
152
|
-
value: {
|
|
153
|
-
type: "keyword",
|
|
154
|
-
value: Z[e]
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
], P = {
|
|
158
|
-
start: "flex-start",
|
|
159
|
-
end: "flex-end",
|
|
160
|
-
center: "center",
|
|
161
|
-
between: "space-between",
|
|
162
|
-
around: "space-around",
|
|
163
|
-
evenly: "space-evenly",
|
|
164
|
-
stretch: "stretch"
|
|
165
|
-
}, Ve = (e) => [
|
|
166
|
-
{
|
|
167
|
-
property: "justifyContent",
|
|
168
|
-
value: {
|
|
169
|
-
type: "keyword",
|
|
170
|
-
value: P[e]
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
], De = () => [
|
|
174
|
-
{ property: "display", value: { type: "keyword", value: "inline-flex" } }
|
|
175
|
-
], Ge = () => [{ property: "display", value: { type: "keyword", value: "block" } }], ee = { row: "row", col: "column" }, ze = (e) => e === void 0 ? [{ property: "display", value: { type: "keyword", value: "flex" } }] : e === 1 ? [
|
|
176
|
-
{
|
|
177
|
-
property: "flexGrow",
|
|
178
|
-
value: { type: "unit", value: 1, unit: "number" }
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
property: "flexShrink",
|
|
182
|
-
value: { type: "unit", value: 1, unit: "number" }
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
property: "flexBasis",
|
|
186
|
-
value: { type: "unit", value: 0, unit: "%" }
|
|
187
|
-
}
|
|
188
|
-
] : e === "auto" ? [
|
|
189
|
-
{
|
|
190
|
-
property: "flexGrow",
|
|
191
|
-
value: { type: "unit", value: 1, unit: "number" }
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
property: "flexShrink",
|
|
195
|
-
value: { type: "unit", value: 1, unit: "number" }
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
property: "flexBasis",
|
|
199
|
-
value: { type: "keyword", value: "auto" }
|
|
200
|
-
}
|
|
201
|
-
] : e === "initial" ? [
|
|
202
|
-
{
|
|
203
|
-
property: "flexGrow",
|
|
204
|
-
value: { type: "unit", value: 0, unit: "number" }
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
property: "flexShrink",
|
|
208
|
-
value: { type: "unit", value: 1, unit: "number" }
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
property: "flexBasis",
|
|
212
|
-
value: { type: "keyword", value: "auto" }
|
|
213
|
-
}
|
|
214
|
-
] : e === "none" ? [
|
|
215
|
-
{
|
|
216
|
-
property: "flexGrow",
|
|
217
|
-
value: { type: "unit", value: 0, unit: "number" }
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
property: "flexShrink",
|
|
221
|
-
value: { type: "unit", value: 0, unit: "number" }
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
property: "flexBasis",
|
|
225
|
-
value: { type: "keyword", value: "auto" }
|
|
226
|
-
}
|
|
227
|
-
] : [
|
|
228
|
-
{
|
|
229
|
-
property: "flexDirection",
|
|
230
|
-
value: {
|
|
231
|
-
type: "keyword",
|
|
232
|
-
value: ee[e]
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
], Fe = () => [
|
|
236
|
-
{
|
|
237
|
-
property: "flexGrow",
|
|
238
|
-
value: { type: "unit", value: 1, unit: "number" }
|
|
239
|
-
}
|
|
240
|
-
], Ee = (e) => [
|
|
241
|
-
{
|
|
242
|
-
property: "flexGrow",
|
|
243
|
-
value: { type: "unit", value: e, unit: "number" }
|
|
244
|
-
}
|
|
245
|
-
], je = (e) => {
|
|
246
|
-
const t = T[e];
|
|
247
|
-
return [
|
|
248
|
-
{ property: "rowGap", value: t },
|
|
249
|
-
{ property: "columnGap", value: t }
|
|
250
|
-
];
|
|
251
|
-
}, He = (e) => [
|
|
252
|
-
...U("hidden"),
|
|
253
|
-
{
|
|
254
|
-
property: "display",
|
|
255
|
-
value: {
|
|
256
|
-
type: "keyword",
|
|
257
|
-
value: "-webkit-box"
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
property: "-webkit-box-orient",
|
|
262
|
-
value: {
|
|
263
|
-
type: "keyword",
|
|
264
|
-
value: "vertical"
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
property: "-webkit-line-clamp",
|
|
269
|
-
value: j[e]
|
|
270
|
-
}
|
|
271
|
-
], Ie = (e) => [{ property: "lineHeight", value: L[e] }], Ue = (e) => [
|
|
272
|
-
{ property: "letterSpacing", value: R[e] }
|
|
273
|
-
], $e = (e) => [
|
|
274
|
-
{
|
|
275
|
-
property: "outlineWidth",
|
|
276
|
-
value: { type: "unit", value: 2, unit: "px" }
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
property: "outlineStyle",
|
|
280
|
-
value: { type: "keyword", value: "solid" }
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
property: "outlineColor",
|
|
284
|
-
value: { type: "keyword", value: "transparent" }
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
property: "outlineOffset",
|
|
288
|
-
value: { type: "unit", value: 2, unit: "px" }
|
|
289
|
-
}
|
|
290
|
-
], te = Object.keys(i), re = (e) => te.includes(e), Ae = (e) => re(e) ? [
|
|
291
|
-
{ property: "fontSize", value: i[e] },
|
|
292
|
-
{ property: "lineHeight", value: V[e] }
|
|
293
|
-
] : [
|
|
294
|
-
{
|
|
295
|
-
property: "color",
|
|
296
|
-
value: n[e]
|
|
297
|
-
}
|
|
298
|
-
], Me = () => [
|
|
299
|
-
{
|
|
300
|
-
property: "textDecorationLine",
|
|
301
|
-
value: { type: "keyword", value: "none" }
|
|
302
|
-
}
|
|
303
|
-
], Oe = () => [
|
|
304
|
-
{
|
|
305
|
-
property: "textDecorationLine",
|
|
306
|
-
value: { type: "keyword", value: "underline" }
|
|
307
|
-
}
|
|
308
|
-
], oe = {
|
|
309
|
-
thin: "100",
|
|
310
|
-
extralight: "200",
|
|
311
|
-
light: "300",
|
|
312
|
-
normal: "400",
|
|
313
|
-
medium: "500",
|
|
314
|
-
semibold: "600",
|
|
315
|
-
bold: "700",
|
|
316
|
-
extrabold: "800",
|
|
317
|
-
black: "900"
|
|
318
|
-
}, _e = (e) => [
|
|
319
|
-
{
|
|
320
|
-
property: "fontWeight",
|
|
321
|
-
value: { type: "keyword", value: oe[e] }
|
|
322
|
-
}
|
|
323
|
-
], Xe = (e) => [
|
|
324
|
-
{
|
|
325
|
-
property: "whiteSpaceCollapse",
|
|
326
|
-
value: { type: "keyword", value: "collapse" }
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
property: "textWrapMode",
|
|
330
|
-
value: { type: "keyword", value: "wrap" }
|
|
331
|
-
}
|
|
332
|
-
], Ye = (e) => [
|
|
333
|
-
{
|
|
334
|
-
property: "boxShadow",
|
|
335
|
-
value: D[e]
|
|
336
|
-
}
|
|
337
|
-
], qe = (e, t, r = "background", s = 0) => {
|
|
338
|
-
const a = H[t], l = E[s], v = n[e], c = n[r], d = {
|
|
339
|
-
type: "tuple",
|
|
340
|
-
value: [
|
|
341
|
-
{ type: "unit", value: 0, unit: "number" },
|
|
342
|
-
{ type: "unit", value: 0, unit: "number" },
|
|
343
|
-
{ type: "unit", value: 0, unit: "number" },
|
|
344
|
-
l,
|
|
345
|
-
c
|
|
346
|
-
]
|
|
347
|
-
}, b = a.value, f = l.type === "unit" ? l.value : 0, w = {
|
|
348
|
-
type: "tuple",
|
|
349
|
-
value: [
|
|
350
|
-
{ type: "unit", value: 0, unit: "number" },
|
|
351
|
-
{ type: "unit", value: 0, unit: "number" },
|
|
352
|
-
{ type: "unit", value: 0, unit: "number" },
|
|
353
|
-
{
|
|
354
|
-
type: "unit",
|
|
355
|
-
value: b + f,
|
|
356
|
-
unit: a.unit
|
|
357
|
-
},
|
|
358
|
-
v
|
|
359
|
-
]
|
|
360
|
-
};
|
|
361
|
-
return [
|
|
362
|
-
{
|
|
363
|
-
property: "boxShadow",
|
|
364
|
-
value: {
|
|
365
|
-
type: "layers",
|
|
366
|
-
value: [d, w]
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
];
|
|
370
|
-
}, Je = (e) => [{ property: "pointerEvents", value: { type: "keyword", value: e } }], Ke = (e) => e === "none" ? [
|
|
371
|
-
{
|
|
372
|
-
property: "transitionProperty",
|
|
373
|
-
value: { type: "keyword", value: "all" }
|
|
374
|
-
}
|
|
375
|
-
] : [
|
|
376
|
-
{
|
|
377
|
-
property: "transitionProperty",
|
|
378
|
-
value: { type: "keyword", value: e }
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
property: "transitionTimingFunction",
|
|
382
|
-
value: { type: "unparsed", value: "cubic-bezier(0.4, 0, 0.2, 1)" }
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
property: "transitionDuration",
|
|
386
|
-
value: { type: "unparsed", value: "150ms" }
|
|
387
|
-
}
|
|
388
|
-
], Ne = (e) => [
|
|
389
|
-
{
|
|
390
|
-
property: "transitionDuration",
|
|
391
|
-
value: { type: "unit", value: e, unit: "ms" }
|
|
392
|
-
}
|
|
393
|
-
], Qe = (e) => e.map((t) => ({
|
|
394
|
-
...t,
|
|
395
|
-
state: ":hover"
|
|
396
|
-
})), Ze = (e) => e.map((t) => ({
|
|
397
|
-
...t,
|
|
398
|
-
state: ":focus"
|
|
399
|
-
})), Pe = (e) => e.map((t) => ({
|
|
400
|
-
...t,
|
|
401
|
-
state: ":focus-visible"
|
|
402
|
-
})), et = (e) => e.map((t) => ({
|
|
403
|
-
...t,
|
|
404
|
-
state: ":disabled"
|
|
405
|
-
})), tt = (e, t) => e.map((r) => ({
|
|
406
|
-
...r,
|
|
407
|
-
state: t
|
|
408
|
-
}));
|
|
409
|
-
export {
|
|
410
|
-
Le as absolute,
|
|
411
|
-
ke as aspect,
|
|
412
|
-
xe as backdropBlur,
|
|
413
|
-
Be as bg,
|
|
414
|
-
Ge as block,
|
|
415
|
-
ae as border,
|
|
416
|
-
ie as borderB,
|
|
417
|
-
be as cursor,
|
|
418
|
-
et as disabled,
|
|
419
|
-
Ne as duration,
|
|
420
|
-
Ce as fixed,
|
|
421
|
-
ze as flex,
|
|
422
|
-
Ze as focus,
|
|
423
|
-
Pe as focusVisible,
|
|
424
|
-
_e as font,
|
|
425
|
-
je as gap,
|
|
426
|
-
Fe as grow,
|
|
427
|
-
ce as h,
|
|
428
|
-
Qe as hover,
|
|
429
|
-
De as inlineFlex,
|
|
430
|
-
ge as inset,
|
|
431
|
-
Re as items,
|
|
432
|
-
Ve as justify,
|
|
433
|
-
Ie as leading,
|
|
434
|
-
me as left,
|
|
435
|
-
He as lineClamp,
|
|
436
|
-
Se as list,
|
|
437
|
-
se as m,
|
|
438
|
-
fe as maxW,
|
|
439
|
-
K as mb,
|
|
440
|
-
Y as ml,
|
|
441
|
-
q as mr,
|
|
442
|
-
J as mt,
|
|
443
|
-
N as mx,
|
|
444
|
-
Q as my,
|
|
445
|
-
Me as noUnderline,
|
|
446
|
-
de as opacity,
|
|
447
|
-
$e as outline,
|
|
448
|
-
U as overflow,
|
|
449
|
-
ye as p,
|
|
450
|
-
A as pb,
|
|
451
|
-
M as pl,
|
|
452
|
-
Je as pointerEvents,
|
|
453
|
-
O as pr,
|
|
454
|
-
ue as property,
|
|
455
|
-
$ as pt,
|
|
456
|
-
_ as px,
|
|
457
|
-
X as py,
|
|
458
|
-
Te as relative,
|
|
459
|
-
he as right,
|
|
460
|
-
qe as ring,
|
|
461
|
-
le as rounded,
|
|
462
|
-
We as select,
|
|
463
|
-
Ye as shadow,
|
|
464
|
-
Ee as shrink,
|
|
465
|
-
tt as state,
|
|
466
|
-
Ae as text,
|
|
467
|
-
we as top,
|
|
468
|
-
Ue as tracking,
|
|
469
|
-
Ke as transition,
|
|
470
|
-
Oe as underline,
|
|
471
|
-
ve as w,
|
|
472
|
-
Xe as whitespace,
|
|
473
|
-
pe as z
|
|
474
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/react-sdk";
|
|
2
|
-
export declare const propsSheet: Record<string, PropMeta>;
|
|
3
|
-
export declare const propsSheetTrigger: Record<string, PropMeta>;
|
|
4
|
-
export declare const propsSheetOverlay: Record<string, PropMeta>;
|
|
5
|
-
export declare const propsSheetClose: Record<string, PropMeta>;
|
|
6
|
-
export declare const propsSheetTitle: Record<string, PropMeta>;
|
|
7
|
-
export declare const propsSheetDescription: Record<string, PropMeta>;
|
|
8
|
-
export declare const propsSheetContent: Record<string, PropMeta>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { StyleValue } from "@webstudio-is/css-engine";
|
|
2
|
-
export declare const spacing: Record<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "px" | "0.5" | "1.5" | "2.5" | "3.5", StyleValue>;
|
|
3
|
-
export declare const padding: Record<keyof typeof spacing, StyleValue>;
|
|
4
|
-
export declare const margin: Record<keyof typeof spacing | "auto", StyleValue>;
|
|
5
|
-
export declare const width: Record<keyof typeof spacing | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full" | "screen" | "min" | "max" | "fit", StyleValue>;
|
|
6
|
-
export declare const maxWidth: Record<"0" | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "full" | "min" | "max" | "fit" | "prose", StyleValue>;
|
|
7
|
-
export declare const height: Record<keyof typeof spacing | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "full" | "screen" | "min" | "max" | "fit", StyleValue>;
|
|
8
|
-
export declare const minHeight: Record<"0" | "full" | "screen" | "min" | "max" | "fit", StyleValue>;
|
|
9
|
-
export declare const inset: Record<keyof typeof spacing | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full", StyleValue>;
|
|
10
|
-
export declare const borderWidth: Record<"0" | "2" | "4" | "8" | "DEFAULT", StyleValue>;
|
|
11
|
-
export declare const borderRadius: Record<"none" | "sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full", StyleValue>;
|
|
12
|
-
export declare const colors: Record<"transparent" | "current" | "inherit" | "popover" | "popoverForeground" | "border" | "background" | "foreground" | "ring" | "mutedForeground" | "muted" | "primary" | "primaryForeground" | "destructive" | "destructiveForeground" | "accent" | "accentForeground" | "input" | "secondary" | "secondaryForeground", StyleValue>;
|
|
13
|
-
export declare const zIndex: Record<"0" | "10" | "20" | "30" | "40" | "50" | "auto", StyleValue>;
|
|
14
|
-
export declare const opacity: Record<"0" | "5" | "10" | "20" | "25" | "30" | "40" | "50" | "60" | "70" | "75" | "80" | "90" | "95" | "100", StyleValue>;
|
|
15
|
-
export declare const cursor: Record<"auto" | "default" | "pointer" | "wait" | "text" | "move" | "help" | "not-allowed" | "none" | "context-menu" | "progress" | "cell" | "crosshair" | "vertical-text" | "alias" | "copy" | "no-drop" | "grab" | "grabbing" | "all-scroll" | "col-resize" | "row-resize" | "n-resize" | "e-resize" | "s-resize" | "w-resize" | "ne-resize" | "nw-resize" | "se-resize" | "sw-resize" | "ew-resize" | "ns-resize" | "nesw-resize" | "nwse-resize" | "zoom-in" | "zoom-out", StyleValue>;
|
|
16
|
-
export declare const lineHeight: Record<"3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "none" | "tight" | "snug" | "normal" | "relaxed" | "loose", StyleValue>;
|
|
17
|
-
export declare const letterSpacing: Record<"tighter" | "tight" | "normal" | "wide" | "wider" | "widest", StyleValue>;
|
|
18
|
-
export declare const listStyleType: Record<"none" | "disc" | "decimal", StyleValue>;
|
|
19
|
-
export declare const lineClamp: Record<"1" | "2" | "3" | "4" | "5" | "6", StyleValue>;
|
|
20
|
-
export declare const textUnderlineOffset: Record<"0" | "1" | "2" | "4" | "8" | "auto", StyleValue>;
|
|
21
|
-
export declare const ringWidth: Record<"0" | "1" | "2" | "4" | "8" | "DEFAULT", StyleValue>;
|
|
22
|
-
export declare const ringOffsetWidth: Record<"0" | "1" | "2" | "4" | "8", StyleValue>;
|
|
23
|
-
export declare const boxShadow: Record<"sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "inner" | "none", StyleValue>;
|
|
24
|
-
export declare const blur: Record<"sm" | "DEFAULT" | "md" | "lg" | "xl" | "2xl" | "inner" | "none", StyleValue>;
|
|
25
|
-
export declare const fontSize: Record<"xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl", StyleValue>;
|
|
26
|
-
export declare const fontSizeLineHeight: Record<"xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl", StyleValue>;
|