@pyreon/unistyle 0.0.2

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/index.js ADDED
@@ -0,0 +1,1826 @@
1
+ import { Provider as Provider$1, config, context, isEmpty, set } from "@pyreon/ui-core";
2
+
3
+ //#region src/responsive/breakpoints.ts
4
+ const breakpoints = {
5
+ rootSize: 16,
6
+ breakpoints: {
7
+ xs: 0,
8
+ sm: 576,
9
+ md: 768,
10
+ lg: 992,
11
+ xl: 1200,
12
+ xxl: 1440
13
+ }
14
+ };
15
+
16
+ //#endregion
17
+ //#region src/responsive/createMediaQueries.ts
18
+ const createMediaQueries = ((props) => {
19
+ const { breakpoints, rootSize, css } = props;
20
+ return Object.keys(breakpoints).reduce((acc, key) => {
21
+ const breakpointValue = breakpoints[key];
22
+ if (breakpointValue === 0) acc[key] = (...args) => css(...args);
23
+ else if (breakpointValue != null) {
24
+ const emSize = breakpointValue / rootSize;
25
+ acc[key] = (...args) => css`
26
+ @media only screen and (min-width: ${emSize}em) {
27
+ ${css(...args)};
28
+ }
29
+ `;
30
+ }
31
+ return acc;
32
+ }, {});
33
+ });
34
+
35
+ //#endregion
36
+ //#region src/responsive/normalizeTheme.ts
37
+ const assignToBreakpointKey = (breakpoints) => (valueFn) => {
38
+ const result = {};
39
+ breakpoints.forEach((item, i) => {
40
+ result[item] = valueFn(item, i, breakpoints, result);
41
+ });
42
+ return result;
43
+ };
44
+ const handleArrayCb = (arr) => (_, i) => {
45
+ const currentValue = arr[i];
46
+ const lastValue = arr[arr.length - 1];
47
+ return currentValue ?? lastValue;
48
+ };
49
+ const handleObjectCb = (obj) => (bp, i, bps, res) => {
50
+ const currentValue = obj[bp];
51
+ const prevBp = bps[i - 1];
52
+ const previousValue = prevBp != null ? res[prevBp] : void 0;
53
+ if (currentValue != null) return currentValue;
54
+ return previousValue;
55
+ };
56
+ const handleValueCb = (value) => () => value;
57
+ const shouldNormalize = (props) => Object.values(props).some((item) => typeof item === "object" || Array.isArray(item));
58
+ const normalizeTheme = ({ theme, breakpoints }) => {
59
+ if (!shouldNormalize(theme)) return theme;
60
+ const getBpValues = assignToBreakpointKey(breakpoints);
61
+ const result = {};
62
+ Object.entries(theme).forEach(([key, value]) => {
63
+ if (value == null) return;
64
+ if (Array.isArray(value)) result[key] = getBpValues(handleArrayCb(value));
65
+ else if (typeof value === "object") result[key] = getBpValues(handleObjectCb(value));
66
+ else result[key] = getBpValues(handleValueCb(value));
67
+ });
68
+ return result;
69
+ };
70
+
71
+ //#endregion
72
+ //#region src/responsive/optimizeTheme.ts
73
+ const shallowEqual = (a, b) => {
74
+ if (a === b) return true;
75
+ if (!a || !b) return false;
76
+ const keysA = Object.keys(a);
77
+ const keysB = Object.keys(b);
78
+ if (keysA.length !== keysB.length) return false;
79
+ for (const key of keysA) if (a[key] !== b[key]) return false;
80
+ return true;
81
+ };
82
+ const optimizeTheme = ({ theme, breakpoints }) => {
83
+ const result = {};
84
+ for (let i = 0; i < breakpoints.length; i++) {
85
+ const key = breakpoints[i];
86
+ const previousBreakpoint = breakpoints[i - 1];
87
+ const current = theme[key];
88
+ if (current && (i === 0 || !shallowEqual(theme[previousBreakpoint], current))) result[key] = current;
89
+ }
90
+ return result;
91
+ };
92
+
93
+ //#endregion
94
+ //#region src/responsive/transformTheme.ts
95
+ const removeUnexpectedKeys = (obj, keys) => {
96
+ const result = {};
97
+ keys.forEach((bp) => {
98
+ const value = obj[bp];
99
+ if (value) result[bp] = value;
100
+ });
101
+ return result;
102
+ };
103
+ const transformTheme = ({ theme, breakpoints }) => {
104
+ const result = {};
105
+ if (isEmpty(theme) || isEmpty(breakpoints)) return result;
106
+ Object.entries(theme).forEach(([key, value]) => {
107
+ if (Array.isArray(value) && value.length > 0) value.forEach((child, i) => {
108
+ const indexBreakpoint = breakpoints[i];
109
+ if (indexBreakpoint == null) return;
110
+ set(result, [indexBreakpoint, key], child);
111
+ });
112
+ else if (typeof value === "object" && value !== null) Object.entries(value).forEach(([childKey, childValue]) => {
113
+ set(result, [childKey, key], childValue);
114
+ });
115
+ else if (value != null) {
116
+ const firstBreakpoint = breakpoints[0];
117
+ if (firstBreakpoint == null) return;
118
+ set(result, [firstBreakpoint, key], value);
119
+ }
120
+ });
121
+ return removeUnexpectedKeys(result, breakpoints);
122
+ };
123
+
124
+ //#endregion
125
+ //#region src/responsive/makeItResponsive.ts
126
+ const themeCache = /* @__PURE__ */ new WeakMap();
127
+ const makeItResponsive = ({ theme: customTheme, key = "", css, styles, normalize = true }) => ({ theme = {}, ...props }) => {
128
+ const internalTheme = customTheme || props[key];
129
+ if (isEmpty(internalTheme)) return "";
130
+ const { rootSize, breakpoints, __PYREON__, ...restTheme } = theme;
131
+ const renderStyles = (styleTheme) => styles({
132
+ theme: styleTheme,
133
+ css,
134
+ rootSize,
135
+ globalTheme: restTheme
136
+ });
137
+ if (isEmpty(breakpoints) || isEmpty(__PYREON__)) return css`
138
+ ${renderStyles(internalTheme)}
139
+ `;
140
+ const { media, sortedBreakpoints } = __PYREON__;
141
+ let optimizedTheme;
142
+ const cached = themeCache.get(internalTheme);
143
+ if (cached && cached.breakpoints === sortedBreakpoints) optimizedTheme = cached.optimized;
144
+ else {
145
+ let helperTheme = internalTheme;
146
+ if (normalize) helperTheme = normalizeTheme({
147
+ theme: internalTheme,
148
+ breakpoints: sortedBreakpoints
149
+ });
150
+ optimizedTheme = optimizeTheme({
151
+ theme: transformTheme({
152
+ theme: helperTheme,
153
+ breakpoints: sortedBreakpoints
154
+ }),
155
+ breakpoints: sortedBreakpoints
156
+ });
157
+ themeCache.set(internalTheme, {
158
+ breakpoints: sortedBreakpoints,
159
+ optimized: optimizedTheme
160
+ });
161
+ }
162
+ return sortedBreakpoints.map((item) => {
163
+ const breakpointTheme = optimizedTheme[item];
164
+ if (!breakpointTheme || !media) return "";
165
+ const result = renderStyles(breakpointTheme);
166
+ return media[item]`
167
+ ${result};
168
+ `;
169
+ });
170
+ };
171
+
172
+ //#endregion
173
+ //#region src/responsive/sortBreakpoints.ts
174
+ const sortBreakpoints = (breakpoints) => {
175
+ return Object.keys(breakpoints).sort((a, b) => (breakpoints[a] ?? 0) - (breakpoints[b] ?? 0));
176
+ };
177
+
178
+ //#endregion
179
+ //#region src/context.tsx
180
+ /**
181
+ * Unistyle Provider — wraps the core Provider and enriches the theme
182
+ * with pre-computed sorted breakpoints and media-query tagged-template
183
+ * helpers consumed by `makeItResponsive`.
184
+ */
185
+ function Provider(props) {
186
+ const { theme, children } = props;
187
+ const { breakpoints, rootSize } = theme;
188
+ const sortedBreakpoints = breakpoints && !isEmpty(breakpoints) ? sortBreakpoints(breakpoints) : void 0;
189
+ const media = breakpoints && !isEmpty(breakpoints) ? createMediaQueries({
190
+ breakpoints,
191
+ css: config.css,
192
+ rootSize
193
+ }) : void 0;
194
+ return Provider$1({
195
+ theme: {
196
+ ...theme,
197
+ __PYREON__: {
198
+ sortedBreakpoints,
199
+ media
200
+ }
201
+ },
202
+ children
203
+ });
204
+ }
205
+
206
+ //#endregion
207
+ //#region src/styles/alignContent.ts
208
+ const ALIGN_CONTENT_MAP_SHARED = {
209
+ center: "center",
210
+ spaceBetween: "space-between",
211
+ spaceAround: "space-around",
212
+ block: "stretch"
213
+ };
214
+ const ALIGN_CONTENT_MAP_X = {
215
+ left: "flex-start",
216
+ right: "flex-end",
217
+ ...ALIGN_CONTENT_MAP_SHARED
218
+ };
219
+ const ALIGN_CONTENT_MAP_Y = {
220
+ top: "flex-start",
221
+ bottom: "flex-end",
222
+ ...ALIGN_CONTENT_MAP_SHARED
223
+ };
224
+ const ALIGN_CONTENT_DIRECTION = {
225
+ inline: "row",
226
+ reverseInline: "row-reverse",
227
+ rows: "column",
228
+ reverseRows: "column-reverse"
229
+ };
230
+ const alignContent = (attrs) => {
231
+ const { direction, alignX, alignY } = attrs;
232
+ if (isEmpty(attrs) || !direction || !alignX || !alignY) return null;
233
+ const isReverted = ["inline", "reverseInline"].includes(direction);
234
+ const dir = ALIGN_CONTENT_DIRECTION[direction];
235
+ const x = ALIGN_CONTENT_MAP_X[alignX];
236
+ const y = ALIGN_CONTENT_MAP_Y[alignY];
237
+ return `flex-direction: ${dir}; align-items: ${isReverted ? y : x}; justify-content: ${isReverted ? x : y};`;
238
+ };
239
+
240
+ //#endregion
241
+ //#region src/styles/extendCss.ts
242
+ const simpleCss = (strings, ...values) => {
243
+ let result = "";
244
+ for (let i = 0; i < strings.length; i++) {
245
+ result += strings[i];
246
+ if (i < values.length) result += String(values[i] ?? "");
247
+ }
248
+ return result;
249
+ };
250
+ const extendCss = (styles) => {
251
+ if (!styles) return "";
252
+ if (typeof styles === "function") return styles(simpleCss);
253
+ return styles;
254
+ };
255
+
256
+ //#endregion
257
+ //#region src/units/stripUnit.ts
258
+ const stripUnit = ((value, unitReturn) => {
259
+ const cssRegex = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
260
+ if (typeof value !== "string") return unitReturn ? [value, void 0] : value;
261
+ const matchedValue = value.match(cssRegex);
262
+ if (unitReturn) {
263
+ if (matchedValue) return [parseFloat(value), matchedValue[2]];
264
+ return [value, void 0];
265
+ }
266
+ if (matchedValue) return parseFloat(value);
267
+ return value;
268
+ });
269
+
270
+ //#endregion
271
+ //#region src/units/value.ts
272
+ const isNotValue = (val) => !val && val !== 0;
273
+ const value = (param, rootSize = 16, outputUnit = "rem") => {
274
+ if (isNotValue(param)) return null;
275
+ const p = param;
276
+ const [val, unit] = stripUnit(p, true);
277
+ if (isNotValue(val)) return null;
278
+ if (val === 0 || typeof val === "string") return p;
279
+ const canConvert = rootSize && !Number.isNaN(val);
280
+ if (canConvert && !unit && outputUnit === "px") return `${val}${outputUnit}`;
281
+ if (canConvert && !unit) return `${val / rootSize}rem`;
282
+ if (canConvert && unit === "px" && outputUnit === "rem") return `${val / rootSize}rem`;
283
+ if (unit) return p;
284
+ return `${val}${outputUnit}`;
285
+ };
286
+
287
+ //#endregion
288
+ //#region src/units/values.ts
289
+ const getValueOf = (...args) => args.find((v) => typeof v !== "undefined" && v !== null);
290
+ const values = (items, rootSize, outputUnit) => {
291
+ const param = getValueOf(...items);
292
+ if (Array.isArray(param)) return param.map((item) => value(item, rootSize, outputUnit)).join(" ");
293
+ return value(param, rootSize, outputUnit);
294
+ };
295
+
296
+ //#endregion
297
+ //#region src/styles/shorthands/borderRadius.ts
298
+ const isValidValue$1 = (v) => !!v || v === 0;
299
+ const hasAnyValue$1 = (v) => isValidValue$1(v.full) || isValidValue$1(v.top) || isValidValue$1(v.bottom) || isValidValue$1(v.left) || isValidValue$1(v.right) || isValidValue$1(v.topLeft) || isValidValue$1(v.topRight) || isValidValue$1(v.bottomLeft) || isValidValue$1(v.bottomRight);
300
+ const resolveCorners = (v) => {
301
+ const corners = [
302
+ v.full,
303
+ v.full,
304
+ v.full,
305
+ v.full
306
+ ];
307
+ if (isValidValue$1(v.top)) {
308
+ corners[0] = v.top;
309
+ corners[1] = v.top;
310
+ }
311
+ if (isValidValue$1(v.bottom)) {
312
+ corners[2] = v.bottom;
313
+ corners[3] = v.bottom;
314
+ }
315
+ if (isValidValue$1(v.left)) {
316
+ corners[0] = v.left;
317
+ corners[3] = v.left;
318
+ }
319
+ if (isValidValue$1(v.right)) {
320
+ corners[1] = v.right;
321
+ corners[2] = v.right;
322
+ }
323
+ if (isValidValue$1(v.topLeft)) corners[0] = v.topLeft;
324
+ if (isValidValue$1(v.topRight)) corners[1] = v.topRight;
325
+ if (isValidValue$1(v.bottomRight)) corners[2] = v.bottomRight;
326
+ if (isValidValue$1(v.bottomLeft)) corners[3] = v.bottomLeft;
327
+ return corners;
328
+ };
329
+ const formatShorthand$1 = (corners, calc) => {
330
+ const [tl, tr, br, bl] = corners;
331
+ if (corners.every((val, _, arr) => val === arr[0])) return `border-radius: ${calc(tl)};`;
332
+ if (tl === br && tr === bl) return `border-radius: ${calc(tl)} ${calc(tr)};`;
333
+ if (tl && tr === bl && br) return `border-radius: ${calc(tl)} ${calc(tr)} ${calc(br)};`;
334
+ return `border-radius: ${calc(tl)} ${calc(tr)} ${calc(br)} ${calc(bl)};`;
335
+ };
336
+ const CORNER_CSS = [
337
+ "border-top-left-radius",
338
+ "border-top-right-radius",
339
+ "border-bottom-right-radius",
340
+ "border-bottom-left-radius"
341
+ ];
342
+ const formatIndividual$1 = (corners, calc) => {
343
+ let output = "";
344
+ for (let i = 0; i < corners.length; i++) if (isValidValue$1(corners[i])) output += `${CORNER_CSS[i]}: ${calc(corners[i])};`;
345
+ return output;
346
+ };
347
+ const borderRadius = (rootSize) => (props) => {
348
+ if (!hasAnyValue$1(props)) return null;
349
+ const calc = (param) => value(param, rootSize);
350
+ const corners = resolveCorners(props);
351
+ if (corners.every((val) => isValidValue$1(val))) return formatShorthand$1(corners, calc);
352
+ return formatIndividual$1(corners, calc);
353
+ };
354
+
355
+ //#endregion
356
+ //#region src/styles/shorthands/edge.ts
357
+ const isValidValue = (v) => !!v || v === 0;
358
+ const definitions = {
359
+ inset: {
360
+ unit: "rem",
361
+ edgeCss: (side) => side
362
+ },
363
+ margin: {
364
+ unit: "rem",
365
+ edgeCss: (side) => `margin-${side}`
366
+ },
367
+ padding: {
368
+ unit: "rem",
369
+ edgeCss: (side) => `padding-${side}`
370
+ },
371
+ "border-width": {
372
+ unit: "px",
373
+ edgeCss: (side) => `border-${side}-width`
374
+ },
375
+ "border-style": { edgeCss: (side) => `border-${side}-style` },
376
+ "border-color": { edgeCss: (side) => `border-${side}-color` }
377
+ };
378
+ const hasAnyValue = (vals) => isValidValue(vals.top) || isValidValue(vals.bottom) || isValidValue(vals.left) || isValidValue(vals.right) || isValidValue(vals.x) || isValidValue(vals.y) || isValidValue(vals.full);
379
+ const resolveSides = ({ full, x, y, top, left, right, bottom }) => {
380
+ const sides = [
381
+ full,
382
+ full,
383
+ full,
384
+ full
385
+ ];
386
+ if (isValidValue(x)) {
387
+ sides[1] = x;
388
+ sides[3] = x;
389
+ }
390
+ if (isValidValue(y)) {
391
+ sides[0] = y;
392
+ sides[2] = y;
393
+ }
394
+ if (isValidValue(top)) sides[0] = top;
395
+ if (isValidValue(right)) sides[1] = right;
396
+ if (isValidValue(bottom)) sides[2] = bottom;
397
+ if (isValidValue(left)) sides[3] = left;
398
+ return sides;
399
+ };
400
+ const formatShorthand = (property, sides, calc) => {
401
+ const [t, r, b, l] = sides;
402
+ if (sides.every((val, _, arr) => val === arr[0])) return `${property}: ${calc(t)};`;
403
+ if (t === b && r === l) return `${property}: ${calc(t)} ${calc(r)};`;
404
+ if (t && r === l && b) return `${property}: ${calc(t)} ${calc(r)} ${calc(b)};`;
405
+ return `${property}: ${calc(t)} ${calc(r)} ${calc(b)} ${calc(l)};`;
406
+ };
407
+ const formatIndividual = (sides, edgeCss, calc) => {
408
+ const [t, r, b, l] = sides;
409
+ let output = "";
410
+ if (isValidValue(t)) output += `${edgeCss("top")}: ${calc(t)};`;
411
+ if (isValidValue(b)) output += `${edgeCss("bottom")}: ${calc(b)};`;
412
+ if (isValidValue(l)) output += `${edgeCss("left")}: ${calc(l)};`;
413
+ if (isValidValue(r)) output += `${edgeCss("right")}: ${calc(r)};`;
414
+ return output;
415
+ };
416
+ const edge = (rootSize = 16) => (property, values) => {
417
+ if (!hasAnyValue(values)) return null;
418
+ const { unit, edgeCss } = definitions[property];
419
+ const calc = (param) => unit ? value(param, rootSize, unit) : param;
420
+ const sides = resolveSides(values);
421
+ if (sides.every((val) => isValidValue(val))) return formatShorthand(property, sides, calc);
422
+ return formatIndividual(sides, edgeCss, calc);
423
+ };
424
+
425
+ //#endregion
426
+ //#region src/styles/styles/processDescriptor.ts
427
+ const toCssDecl = (css, v) => v == null ? "" : `${css}: ${v};`;
428
+ const processSpecial = (d, t) => {
429
+ switch (d.id) {
430
+ case "fullScreen":
431
+ if (!t.fullScreen) return "";
432
+ return "position: fixed; top: 0; left: 0; right: 0; bottom: 0;";
433
+ case "backgroundImage":
434
+ if (!t.backgroundImage) return "";
435
+ return `background-image: url(${t.backgroundImage});`;
436
+ case "animation": {
437
+ const parts = [t.keyframe, t.animation].filter(Boolean).join(" ");
438
+ return parts ? `animation: ${parts};` : "";
439
+ }
440
+ case "hideEmpty":
441
+ if (!t.hideEmpty) return "";
442
+ return "&:empty { display: none; }";
443
+ case "clearFix":
444
+ if (!t.clearFix) return "";
445
+ return "&::after { clear: both; content: \"\"; display: table; }";
446
+ case "extendCss": return t.extendCss ?? "";
447
+ default: return "";
448
+ }
449
+ };
450
+ const processDescriptor = (d, t, _css, calc, shorthand, borderRadiusFn) => {
451
+ switch (d.kind) {
452
+ case "simple": return toCssDecl(d.css, t[d.key]);
453
+ case "convert": return toCssDecl(d.css, calc(t[d.key]));
454
+ case "convert_fallback": return toCssDecl(d.css, calc(...d.keys.map((k) => t[k])));
455
+ case "edge": return shorthand(d.property, {
456
+ full: t[d.keys.full],
457
+ x: t[d.keys.x],
458
+ y: t[d.keys.y],
459
+ top: t[d.keys.top],
460
+ left: t[d.keys.left],
461
+ bottom: t[d.keys.bottom],
462
+ right: t[d.keys.right]
463
+ }) ?? "";
464
+ case "border_radius": return borderRadiusFn({
465
+ full: t[d.keys.full],
466
+ top: t[d.keys.top],
467
+ bottom: t[d.keys.bottom],
468
+ left: t[d.keys.left],
469
+ right: t[d.keys.right],
470
+ topLeft: t[d.keys.topLeft],
471
+ topRight: t[d.keys.topRight],
472
+ bottomLeft: t[d.keys.bottomLeft],
473
+ bottomRight: t[d.keys.bottomRight]
474
+ }) ?? "";
475
+ case "special": return processSpecial(d, t);
476
+ }
477
+ };
478
+
479
+ //#endregion
480
+ //#region src/styles/styles/propertyMap.ts
481
+ const propertyMap = [
482
+ {
483
+ kind: "special",
484
+ id: "fullScreen"
485
+ },
486
+ {
487
+ kind: "simple",
488
+ css: "all",
489
+ key: "all"
490
+ },
491
+ {
492
+ kind: "simple",
493
+ css: "display",
494
+ key: "display"
495
+ },
496
+ {
497
+ kind: "simple",
498
+ css: "position",
499
+ key: "position"
500
+ },
501
+ {
502
+ kind: "simple",
503
+ css: "box-sizing",
504
+ key: "boxSizing"
505
+ },
506
+ {
507
+ kind: "simple",
508
+ css: "float",
509
+ key: "float"
510
+ },
511
+ {
512
+ kind: "edge",
513
+ property: "inset",
514
+ keys: {
515
+ full: "inset",
516
+ x: "insetX",
517
+ y: "insetY",
518
+ top: "top",
519
+ left: "left",
520
+ bottom: "bottom",
521
+ right: "right"
522
+ }
523
+ },
524
+ {
525
+ kind: "convert_fallback",
526
+ css: "width",
527
+ keys: ["width", "size"]
528
+ },
529
+ {
530
+ kind: "convert_fallback",
531
+ css: "min-width",
532
+ keys: ["minWidth", "minSize"]
533
+ },
534
+ {
535
+ kind: "convert_fallback",
536
+ css: "max-width",
537
+ keys: ["maxWidth", "maxSize"]
538
+ },
539
+ {
540
+ kind: "convert_fallback",
541
+ css: "height",
542
+ keys: ["height", "size"]
543
+ },
544
+ {
545
+ kind: "convert_fallback",
546
+ css: "min-height",
547
+ keys: ["minHeight", "minSize"]
548
+ },
549
+ {
550
+ kind: "convert_fallback",
551
+ css: "max-height",
552
+ keys: ["maxHeight", "maxSize"]
553
+ },
554
+ {
555
+ kind: "convert",
556
+ css: "gap",
557
+ key: "gap"
558
+ },
559
+ {
560
+ kind: "simple",
561
+ css: "aspect-ratio",
562
+ key: "aspectRatio"
563
+ },
564
+ {
565
+ kind: "simple",
566
+ css: "contain",
567
+ key: "contain"
568
+ },
569
+ {
570
+ kind: "simple",
571
+ css: "container-type",
572
+ key: "containerType"
573
+ },
574
+ {
575
+ kind: "simple",
576
+ css: "container-name",
577
+ key: "containerName"
578
+ },
579
+ {
580
+ kind: "simple",
581
+ css: "container",
582
+ key: "container"
583
+ },
584
+ {
585
+ kind: "convert",
586
+ css: "inline-size",
587
+ key: "inlineSize"
588
+ },
589
+ {
590
+ kind: "convert",
591
+ css: "block-size",
592
+ key: "blockSize"
593
+ },
594
+ {
595
+ kind: "convert",
596
+ css: "min-inline-size",
597
+ key: "minInlineSize"
598
+ },
599
+ {
600
+ kind: "convert",
601
+ css: "min-block-size",
602
+ key: "minBlockSize"
603
+ },
604
+ {
605
+ kind: "convert",
606
+ css: "max-inline-size",
607
+ key: "maxInlineSize"
608
+ },
609
+ {
610
+ kind: "convert",
611
+ css: "max-block-size",
612
+ key: "maxBlockSize"
613
+ },
614
+ {
615
+ kind: "edge",
616
+ property: "margin",
617
+ keys: {
618
+ full: "margin",
619
+ x: "marginX",
620
+ y: "marginY",
621
+ top: "marginTop",
622
+ left: "marginLeft",
623
+ bottom: "marginBottom",
624
+ right: "marginRight"
625
+ }
626
+ },
627
+ {
628
+ kind: "edge",
629
+ property: "padding",
630
+ keys: {
631
+ full: "padding",
632
+ x: "paddingX",
633
+ y: "paddingY",
634
+ top: "paddingTop",
635
+ left: "paddingLeft",
636
+ bottom: "paddingBottom",
637
+ right: "paddingRight"
638
+ }
639
+ },
640
+ {
641
+ kind: "convert",
642
+ css: "margin-inline",
643
+ key: "marginInline"
644
+ },
645
+ {
646
+ kind: "convert",
647
+ css: "margin-inline-start",
648
+ key: "marginInlineStart"
649
+ },
650
+ {
651
+ kind: "convert",
652
+ css: "margin-inline-end",
653
+ key: "marginInlineEnd"
654
+ },
655
+ {
656
+ kind: "convert",
657
+ css: "margin-block",
658
+ key: "marginBlock"
659
+ },
660
+ {
661
+ kind: "convert",
662
+ css: "margin-block-start",
663
+ key: "marginBlockStart"
664
+ },
665
+ {
666
+ kind: "convert",
667
+ css: "margin-block-end",
668
+ key: "marginBlockEnd"
669
+ },
670
+ {
671
+ kind: "convert",
672
+ css: "padding-inline",
673
+ key: "paddingInline"
674
+ },
675
+ {
676
+ kind: "convert",
677
+ css: "padding-inline-start",
678
+ key: "paddingInlineStart"
679
+ },
680
+ {
681
+ kind: "convert",
682
+ css: "padding-inline-end",
683
+ key: "paddingInlineEnd"
684
+ },
685
+ {
686
+ kind: "convert",
687
+ css: "padding-block",
688
+ key: "paddingBlock"
689
+ },
690
+ {
691
+ kind: "convert",
692
+ css: "padding-block-start",
693
+ key: "paddingBlockStart"
694
+ },
695
+ {
696
+ kind: "convert",
697
+ css: "padding-block-end",
698
+ key: "paddingBlockEnd"
699
+ },
700
+ {
701
+ kind: "convert",
702
+ css: "inset-inline",
703
+ key: "insetInline"
704
+ },
705
+ {
706
+ kind: "convert",
707
+ css: "inset-inline-start",
708
+ key: "insetInlineStart"
709
+ },
710
+ {
711
+ kind: "convert",
712
+ css: "inset-inline-end",
713
+ key: "insetInlineEnd"
714
+ },
715
+ {
716
+ kind: "convert",
717
+ css: "inset-block",
718
+ key: "insetBlock"
719
+ },
720
+ {
721
+ kind: "convert",
722
+ css: "inset-block-start",
723
+ key: "insetBlockStart"
724
+ },
725
+ {
726
+ kind: "convert",
727
+ css: "inset-block-end",
728
+ key: "insetBlockEnd"
729
+ },
730
+ {
731
+ kind: "simple",
732
+ css: "align-content",
733
+ key: "alignContent"
734
+ },
735
+ {
736
+ kind: "simple",
737
+ css: "align-items",
738
+ key: "alignItems"
739
+ },
740
+ {
741
+ kind: "simple",
742
+ css: "align-self",
743
+ key: "alignSelf"
744
+ },
745
+ {
746
+ kind: "simple",
747
+ css: "flex",
748
+ key: "flex"
749
+ },
750
+ {
751
+ kind: "simple",
752
+ css: "flex-basis",
753
+ key: "flexBasis"
754
+ },
755
+ {
756
+ kind: "simple",
757
+ css: "flex-direction",
758
+ key: "flexDirection"
759
+ },
760
+ {
761
+ kind: "simple",
762
+ css: "flex-flow",
763
+ key: "flexFlow"
764
+ },
765
+ {
766
+ kind: "simple",
767
+ css: "flex-grow",
768
+ key: "flexGrow"
769
+ },
770
+ {
771
+ kind: "simple",
772
+ css: "flex-shrink",
773
+ key: "flexShrink"
774
+ },
775
+ {
776
+ kind: "simple",
777
+ css: "flex-wrap",
778
+ key: "flexWrap"
779
+ },
780
+ {
781
+ kind: "simple",
782
+ css: "justify-content",
783
+ key: "justifyContent"
784
+ },
785
+ {
786
+ kind: "simple",
787
+ css: "justify-items",
788
+ key: "justifyItems"
789
+ },
790
+ {
791
+ kind: "simple",
792
+ css: "justify-self",
793
+ key: "justifySelf"
794
+ },
795
+ {
796
+ kind: "simple",
797
+ css: "place-items",
798
+ key: "placeItems"
799
+ },
800
+ {
801
+ kind: "simple",
802
+ css: "place-content",
803
+ key: "placeContent"
804
+ },
805
+ {
806
+ kind: "simple",
807
+ css: "place-self",
808
+ key: "placeSelf"
809
+ },
810
+ {
811
+ kind: "convert",
812
+ css: "row-gap",
813
+ key: "rowGap"
814
+ },
815
+ {
816
+ kind: "convert",
817
+ css: "column-gap",
818
+ key: "columnGap"
819
+ },
820
+ {
821
+ kind: "simple",
822
+ css: "grid",
823
+ key: "grid"
824
+ },
825
+ {
826
+ kind: "simple",
827
+ css: "grid-area",
828
+ key: "gridArea"
829
+ },
830
+ {
831
+ kind: "convert",
832
+ css: "grid-auto-columns",
833
+ key: "gridAutoColumns"
834
+ },
835
+ {
836
+ kind: "simple",
837
+ css: "grid-auto-flow",
838
+ key: "gridAutoFlow"
839
+ },
840
+ {
841
+ kind: "convert",
842
+ css: "grid-auto-rows",
843
+ key: "gridAutoRows"
844
+ },
845
+ {
846
+ kind: "simple",
847
+ css: "grid-column",
848
+ key: "gridColumn"
849
+ },
850
+ {
851
+ kind: "simple",
852
+ css: "grid-column-end",
853
+ key: "gridColumnEnd"
854
+ },
855
+ {
856
+ kind: "convert",
857
+ css: "grid-column-gap",
858
+ key: "gridColumnGap"
859
+ },
860
+ {
861
+ kind: "convert",
862
+ css: "grid-column-start",
863
+ key: "gridColumnStart"
864
+ },
865
+ {
866
+ kind: "convert",
867
+ css: "grid-gap",
868
+ key: "gridGap"
869
+ },
870
+ {
871
+ kind: "simple",
872
+ css: "grid-row",
873
+ key: "gridRow"
874
+ },
875
+ {
876
+ kind: "simple",
877
+ css: "grid-row-start",
878
+ key: "gridRowStart"
879
+ },
880
+ {
881
+ kind: "simple",
882
+ css: "grid-row-end",
883
+ key: "gridRowEnd"
884
+ },
885
+ {
886
+ kind: "convert",
887
+ css: "grid-row-gap",
888
+ key: "gridRowGap"
889
+ },
890
+ {
891
+ kind: "simple",
892
+ css: "grid-template",
893
+ key: "gridTemplate"
894
+ },
895
+ {
896
+ kind: "simple",
897
+ css: "grid-template-areas",
898
+ key: "gridTemplateAreas"
899
+ },
900
+ {
901
+ kind: "simple",
902
+ css: "grid-template-columns",
903
+ key: "gridTemplateColumns"
904
+ },
905
+ {
906
+ kind: "simple",
907
+ css: "grid-template-rows",
908
+ key: "gridTemplateRows"
909
+ },
910
+ {
911
+ kind: "simple",
912
+ css: "object-fit",
913
+ key: "objectFit"
914
+ },
915
+ {
916
+ kind: "simple",
917
+ css: "object-position",
918
+ key: "objectPosition"
919
+ },
920
+ {
921
+ kind: "simple",
922
+ css: "order",
923
+ key: "order"
924
+ },
925
+ {
926
+ kind: "simple",
927
+ css: "opacity",
928
+ key: "opacity"
929
+ },
930
+ {
931
+ kind: "simple",
932
+ css: "resize",
933
+ key: "resize"
934
+ },
935
+ {
936
+ kind: "simple",
937
+ css: "vertical-align",
938
+ key: "verticalAlign"
939
+ },
940
+ {
941
+ kind: "simple",
942
+ css: "line-height",
943
+ key: "lineHeight"
944
+ },
945
+ {
946
+ kind: "simple",
947
+ css: "font",
948
+ key: "font"
949
+ },
950
+ {
951
+ kind: "simple",
952
+ css: "font-family",
953
+ key: "fontFamily"
954
+ },
955
+ {
956
+ kind: "convert",
957
+ css: "font-size",
958
+ key: "fontSize"
959
+ },
960
+ {
961
+ kind: "convert",
962
+ css: "font-size-adjust",
963
+ key: "fontSizeAdjust"
964
+ },
965
+ {
966
+ kind: "convert",
967
+ css: "font-stretch",
968
+ key: "fontStretch"
969
+ },
970
+ {
971
+ kind: "simple",
972
+ css: "font-style",
973
+ key: "fontStyle"
974
+ },
975
+ {
976
+ kind: "simple",
977
+ css: "font-variant",
978
+ key: "fontVariant"
979
+ },
980
+ {
981
+ kind: "simple",
982
+ css: "font-weight",
983
+ key: "fontWeight"
984
+ },
985
+ {
986
+ kind: "simple",
987
+ css: "font-kerning",
988
+ key: "fontKerning"
989
+ },
990
+ {
991
+ kind: "simple",
992
+ css: "font-feature-settings",
993
+ key: "fontFeatureSettings"
994
+ },
995
+ {
996
+ kind: "simple",
997
+ css: "font-variation-settings",
998
+ key: "fontVariationSettings"
999
+ },
1000
+ {
1001
+ kind: "simple",
1002
+ css: "font-optical-sizing",
1003
+ key: "fontOpticalSizing"
1004
+ },
1005
+ {
1006
+ kind: "simple",
1007
+ css: "text-align",
1008
+ key: "textAlign"
1009
+ },
1010
+ {
1011
+ kind: "simple",
1012
+ css: "text-align-last",
1013
+ key: "textAlignLast"
1014
+ },
1015
+ {
1016
+ kind: "simple",
1017
+ css: "text-transform",
1018
+ key: "textTransform"
1019
+ },
1020
+ {
1021
+ kind: "simple",
1022
+ css: "text-decoration",
1023
+ key: "textDecoration"
1024
+ },
1025
+ {
1026
+ kind: "simple",
1027
+ css: "text-decoration-color",
1028
+ key: "textDecorationColor"
1029
+ },
1030
+ {
1031
+ kind: "simple",
1032
+ css: "text-decoration-line",
1033
+ key: "textDecorationLine"
1034
+ },
1035
+ {
1036
+ kind: "simple",
1037
+ css: "text-decoration-style",
1038
+ key: "textDecorationStyle"
1039
+ },
1040
+ {
1041
+ kind: "simple",
1042
+ css: "text-decoration-thickness",
1043
+ key: "textDecorationThickness"
1044
+ },
1045
+ {
1046
+ kind: "simple",
1047
+ css: "text-underline-offset",
1048
+ key: "textUnderlineOffset"
1049
+ },
1050
+ {
1051
+ kind: "simple",
1052
+ css: "text-emphasis",
1053
+ key: "textEmphasis"
1054
+ },
1055
+ {
1056
+ kind: "simple",
1057
+ css: "text-emphasis-color",
1058
+ key: "textEmphasisColor"
1059
+ },
1060
+ {
1061
+ kind: "simple",
1062
+ css: "text-emphasis-style",
1063
+ key: "textEmphasisStyle"
1064
+ },
1065
+ {
1066
+ kind: "simple",
1067
+ css: "letter-spacing",
1068
+ key: "letterSpacing"
1069
+ },
1070
+ {
1071
+ kind: "simple",
1072
+ css: "word-spacing",
1073
+ key: "wordSpacing"
1074
+ },
1075
+ {
1076
+ kind: "simple",
1077
+ css: "text-indent",
1078
+ key: "textIndent"
1079
+ },
1080
+ {
1081
+ kind: "simple",
1082
+ css: "text-justify",
1083
+ key: "textJustify"
1084
+ },
1085
+ {
1086
+ kind: "simple",
1087
+ css: "text-overflow",
1088
+ key: "textOverflow"
1089
+ },
1090
+ {
1091
+ kind: "simple",
1092
+ css: "text-shadow",
1093
+ key: "textShadow"
1094
+ },
1095
+ {
1096
+ kind: "simple",
1097
+ css: "text-wrap",
1098
+ key: "textWrap"
1099
+ },
1100
+ {
1101
+ kind: "simple",
1102
+ css: "text-rendering",
1103
+ key: "textRendering"
1104
+ },
1105
+ {
1106
+ kind: "simple",
1107
+ css: "white-space",
1108
+ key: "whiteSpace"
1109
+ },
1110
+ {
1111
+ kind: "simple",
1112
+ css: "word-break",
1113
+ key: "wordBreak"
1114
+ },
1115
+ {
1116
+ kind: "simple",
1117
+ css: "word-wrap",
1118
+ key: "wordWrap"
1119
+ },
1120
+ {
1121
+ kind: "simple",
1122
+ css: "writing-mode",
1123
+ key: "writingMode"
1124
+ },
1125
+ {
1126
+ kind: "simple",
1127
+ css: "direction",
1128
+ key: "direction"
1129
+ },
1130
+ {
1131
+ kind: "simple",
1132
+ css: "hyphens",
1133
+ key: "hyphens"
1134
+ },
1135
+ {
1136
+ kind: "simple",
1137
+ css: "list-style",
1138
+ key: "listStyle"
1139
+ },
1140
+ {
1141
+ kind: "simple",
1142
+ css: "list-style-image",
1143
+ key: "listStyleImage"
1144
+ },
1145
+ {
1146
+ kind: "simple",
1147
+ css: "list-style-position",
1148
+ key: "listStylePosition"
1149
+ },
1150
+ {
1151
+ kind: "simple",
1152
+ css: "list-style-type",
1153
+ key: "listStyleType"
1154
+ },
1155
+ {
1156
+ kind: "simple",
1157
+ css: "color",
1158
+ key: "color"
1159
+ },
1160
+ {
1161
+ kind: "simple",
1162
+ css: "background",
1163
+ key: "background"
1164
+ },
1165
+ {
1166
+ kind: "simple",
1167
+ css: "background-color",
1168
+ key: "backgroundColor"
1169
+ },
1170
+ {
1171
+ kind: "special",
1172
+ id: "backgroundImage"
1173
+ },
1174
+ {
1175
+ kind: "simple",
1176
+ css: "background-attachment",
1177
+ key: "backgroundAttachment"
1178
+ },
1179
+ {
1180
+ kind: "simple",
1181
+ css: "background-clip",
1182
+ key: "backgroundClip"
1183
+ },
1184
+ {
1185
+ kind: "simple",
1186
+ css: "background-origin",
1187
+ key: "backgroundOrigin"
1188
+ },
1189
+ {
1190
+ kind: "simple",
1191
+ css: "background-position",
1192
+ key: "backgroundPosition"
1193
+ },
1194
+ {
1195
+ kind: "simple",
1196
+ css: "background-repeat",
1197
+ key: "backgroundRepeat"
1198
+ },
1199
+ {
1200
+ kind: "simple",
1201
+ css: "background-size",
1202
+ key: "backgroundSize"
1203
+ },
1204
+ {
1205
+ kind: "border_radius",
1206
+ keys: {
1207
+ full: "borderRadius",
1208
+ top: "borderRadiusTop",
1209
+ bottom: "borderRadiusBottom",
1210
+ left: "borderRadiusLeft",
1211
+ right: "borderRadiusRight",
1212
+ topLeft: "borderRadiusTopLeft",
1213
+ topRight: "borderRadiusTopRight",
1214
+ bottomLeft: "borderRadiusBottomLeft",
1215
+ bottomRight: "borderRadiusBottomRight"
1216
+ }
1217
+ },
1218
+ {
1219
+ kind: "simple",
1220
+ css: "border",
1221
+ key: "border"
1222
+ },
1223
+ {
1224
+ kind: "simple",
1225
+ css: "border-top",
1226
+ key: "borderTop"
1227
+ },
1228
+ {
1229
+ kind: "simple",
1230
+ css: "border-bottom",
1231
+ key: "borderBottom"
1232
+ },
1233
+ {
1234
+ kind: "simple",
1235
+ css: "border-left",
1236
+ key: "borderLeft"
1237
+ },
1238
+ {
1239
+ kind: "simple",
1240
+ css: "border-right",
1241
+ key: "borderRight"
1242
+ },
1243
+ {
1244
+ kind: "edge",
1245
+ property: "border-width",
1246
+ keys: {
1247
+ full: "borderWidth",
1248
+ x: "borderWidthX",
1249
+ y: "borderWidthY",
1250
+ top: "borderWidthTop",
1251
+ left: "borderWidthLeft",
1252
+ bottom: "borderWidthBottom",
1253
+ right: "borderWidthRight"
1254
+ }
1255
+ },
1256
+ {
1257
+ kind: "edge",
1258
+ property: "border-style",
1259
+ keys: {
1260
+ full: "borderStyle",
1261
+ x: "borderStyleX",
1262
+ y: "borderStyleY",
1263
+ top: "borderStyleTop",
1264
+ left: "borderStyleLeft",
1265
+ bottom: "borderStyleBottom",
1266
+ right: "borderStyleRight"
1267
+ }
1268
+ },
1269
+ {
1270
+ kind: "edge",
1271
+ property: "border-color",
1272
+ keys: {
1273
+ full: "borderColor",
1274
+ x: "borderColorX",
1275
+ y: "borderColorY",
1276
+ top: "borderColorTop",
1277
+ left: "borderColorLeft",
1278
+ bottom: "borderColorBottom",
1279
+ right: "borderColorRight"
1280
+ }
1281
+ },
1282
+ {
1283
+ kind: "simple",
1284
+ css: "border-image",
1285
+ key: "borderImage"
1286
+ },
1287
+ {
1288
+ kind: "simple",
1289
+ css: "border-image-outset",
1290
+ key: "borderImageOutset"
1291
+ },
1292
+ {
1293
+ kind: "simple",
1294
+ css: "border-image-repeat",
1295
+ key: "borderImageRepeat"
1296
+ },
1297
+ {
1298
+ kind: "simple",
1299
+ css: "border-image-slice",
1300
+ key: "borderImageSlice"
1301
+ },
1302
+ {
1303
+ kind: "simple",
1304
+ css: "border-image-source",
1305
+ key: "borderImageSource"
1306
+ },
1307
+ {
1308
+ kind: "simple",
1309
+ css: "border-image-width",
1310
+ key: "borderImageWidth"
1311
+ },
1312
+ {
1313
+ kind: "simple",
1314
+ css: "border-spacing",
1315
+ key: "borderSpacing"
1316
+ },
1317
+ {
1318
+ kind: "simple",
1319
+ css: "border-inline",
1320
+ key: "borderInline"
1321
+ },
1322
+ {
1323
+ kind: "simple",
1324
+ css: "border-block",
1325
+ key: "borderBlock"
1326
+ },
1327
+ {
1328
+ kind: "simple",
1329
+ css: "border-inline-start",
1330
+ key: "borderInlineStart"
1331
+ },
1332
+ {
1333
+ kind: "simple",
1334
+ css: "border-inline-end",
1335
+ key: "borderInlineEnd"
1336
+ },
1337
+ {
1338
+ kind: "simple",
1339
+ css: "border-block-start",
1340
+ key: "borderBlockStart"
1341
+ },
1342
+ {
1343
+ kind: "simple",
1344
+ css: "border-block-end",
1345
+ key: "borderBlockEnd"
1346
+ },
1347
+ {
1348
+ kind: "simple",
1349
+ css: "backface-visibility",
1350
+ key: "backfaceVisibility"
1351
+ },
1352
+ {
1353
+ kind: "simple",
1354
+ css: "box-shadow",
1355
+ key: "boxShadow"
1356
+ },
1357
+ {
1358
+ kind: "simple",
1359
+ css: "filter",
1360
+ key: "filter"
1361
+ },
1362
+ {
1363
+ kind: "simple",
1364
+ css: "backdrop-filter",
1365
+ key: "backdropFilter"
1366
+ },
1367
+ {
1368
+ kind: "simple",
1369
+ css: "mix-blend-mode",
1370
+ key: "mixBlendMode"
1371
+ },
1372
+ {
1373
+ kind: "simple",
1374
+ css: "background-blend-mode",
1375
+ key: "backgroundBlendMode"
1376
+ },
1377
+ {
1378
+ kind: "simple",
1379
+ css: "isolation",
1380
+ key: "isolation"
1381
+ },
1382
+ {
1383
+ kind: "simple",
1384
+ css: "outline",
1385
+ key: "outline"
1386
+ },
1387
+ {
1388
+ kind: "simple",
1389
+ css: "outline-color",
1390
+ key: "outlineColor"
1391
+ },
1392
+ {
1393
+ kind: "simple",
1394
+ css: "outline-offset",
1395
+ key: "outlineOffset"
1396
+ },
1397
+ {
1398
+ kind: "simple",
1399
+ css: "outline-style",
1400
+ key: "outlineStyle"
1401
+ },
1402
+ {
1403
+ kind: "simple",
1404
+ css: "outline-width",
1405
+ key: "outlineWidth"
1406
+ },
1407
+ {
1408
+ kind: "special",
1409
+ id: "animation"
1410
+ },
1411
+ {
1412
+ kind: "simple",
1413
+ css: "animation-name",
1414
+ key: "animationName"
1415
+ },
1416
+ {
1417
+ kind: "simple",
1418
+ css: "animation-duration",
1419
+ key: "animationDuration"
1420
+ },
1421
+ {
1422
+ kind: "simple",
1423
+ css: "animation-timing-function",
1424
+ key: "animationTimingFunction"
1425
+ },
1426
+ {
1427
+ kind: "simple",
1428
+ css: "animation-delay",
1429
+ key: "animationDelay"
1430
+ },
1431
+ {
1432
+ kind: "simple",
1433
+ css: "animation-iteration-count",
1434
+ key: "animationIterationCount"
1435
+ },
1436
+ {
1437
+ kind: "simple",
1438
+ css: "animation-direction",
1439
+ key: "animationDirection"
1440
+ },
1441
+ {
1442
+ kind: "simple",
1443
+ css: "animation-fill-mode",
1444
+ key: "animationFillMode"
1445
+ },
1446
+ {
1447
+ kind: "simple",
1448
+ css: "animation-play-state",
1449
+ key: "animationPlayState"
1450
+ },
1451
+ {
1452
+ kind: "simple",
1453
+ css: "transition",
1454
+ key: "transition"
1455
+ },
1456
+ {
1457
+ kind: "simple",
1458
+ css: "transition-delay",
1459
+ key: "transitionDelay"
1460
+ },
1461
+ {
1462
+ kind: "simple",
1463
+ css: "transition-duration",
1464
+ key: "transitionDuration"
1465
+ },
1466
+ {
1467
+ kind: "simple",
1468
+ css: "transition-property",
1469
+ key: "transitionProperty"
1470
+ },
1471
+ {
1472
+ kind: "simple",
1473
+ css: "transition-timing-function",
1474
+ key: "transitionTimingFunction"
1475
+ },
1476
+ {
1477
+ kind: "simple",
1478
+ css: "transform",
1479
+ key: "transform"
1480
+ },
1481
+ {
1482
+ kind: "simple",
1483
+ css: "transform-origin",
1484
+ key: "transformOrigin"
1485
+ },
1486
+ {
1487
+ kind: "simple",
1488
+ css: "transform-style",
1489
+ key: "transformStyle"
1490
+ },
1491
+ {
1492
+ kind: "simple",
1493
+ css: "translate",
1494
+ key: "translate"
1495
+ },
1496
+ {
1497
+ kind: "simple",
1498
+ css: "rotate",
1499
+ key: "rotate"
1500
+ },
1501
+ {
1502
+ kind: "simple",
1503
+ css: "scale",
1504
+ key: "scale"
1505
+ },
1506
+ {
1507
+ kind: "simple",
1508
+ css: "will-change",
1509
+ key: "willChange"
1510
+ },
1511
+ {
1512
+ kind: "simple",
1513
+ css: "scroll-behavior",
1514
+ key: "scrollBehavior"
1515
+ },
1516
+ {
1517
+ kind: "simple",
1518
+ css: "scroll-snap-type",
1519
+ key: "scrollSnapType"
1520
+ },
1521
+ {
1522
+ kind: "simple",
1523
+ css: "scroll-snap-align",
1524
+ key: "scrollSnapAlign"
1525
+ },
1526
+ {
1527
+ kind: "simple",
1528
+ css: "scroll-snap-stop",
1529
+ key: "scrollSnapStop"
1530
+ },
1531
+ {
1532
+ kind: "simple",
1533
+ css: "scroll-margin",
1534
+ key: "scrollMargin"
1535
+ },
1536
+ {
1537
+ kind: "simple",
1538
+ css: "scroll-padding",
1539
+ key: "scrollPadding"
1540
+ },
1541
+ {
1542
+ kind: "simple",
1543
+ css: "overscroll-behavior",
1544
+ key: "overscrollBehavior"
1545
+ },
1546
+ {
1547
+ kind: "simple",
1548
+ css: "overscroll-behavior-x",
1549
+ key: "overscrollBehaviorX"
1550
+ },
1551
+ {
1552
+ kind: "simple",
1553
+ css: "overscroll-behavior-y",
1554
+ key: "overscrollBehaviorY"
1555
+ },
1556
+ {
1557
+ kind: "simple",
1558
+ css: "cursor",
1559
+ key: "cursor"
1560
+ },
1561
+ {
1562
+ kind: "simple",
1563
+ css: "pointer-events",
1564
+ key: "pointerEvents"
1565
+ },
1566
+ {
1567
+ kind: "simple",
1568
+ css: "user-select",
1569
+ key: "userSelect"
1570
+ },
1571
+ {
1572
+ kind: "simple",
1573
+ css: "touch-action",
1574
+ key: "touchAction"
1575
+ },
1576
+ {
1577
+ kind: "simple",
1578
+ css: "scrollbar-width",
1579
+ key: "scrollbarWidth"
1580
+ },
1581
+ {
1582
+ kind: "simple",
1583
+ css: "scrollbar-color",
1584
+ key: "scrollbarColor"
1585
+ },
1586
+ {
1587
+ kind: "simple",
1588
+ css: "scrollbar-gutter",
1589
+ key: "scrollbarGutter"
1590
+ },
1591
+ {
1592
+ kind: "simple",
1593
+ css: "caret-color",
1594
+ key: "caretColor"
1595
+ },
1596
+ {
1597
+ kind: "simple",
1598
+ css: "accent-color",
1599
+ key: "accentColor"
1600
+ },
1601
+ {
1602
+ kind: "simple",
1603
+ css: "color-scheme",
1604
+ key: "colorScheme"
1605
+ },
1606
+ {
1607
+ kind: "simple",
1608
+ css: "caption-side",
1609
+ key: "captionSide"
1610
+ },
1611
+ {
1612
+ kind: "simple",
1613
+ css: "clear",
1614
+ key: "clear"
1615
+ },
1616
+ {
1617
+ kind: "simple",
1618
+ css: "clip",
1619
+ key: "clip"
1620
+ },
1621
+ {
1622
+ kind: "simple",
1623
+ css: "clip-path",
1624
+ key: "clipPath"
1625
+ },
1626
+ {
1627
+ kind: "simple",
1628
+ css: "content",
1629
+ key: "content"
1630
+ },
1631
+ {
1632
+ kind: "simple",
1633
+ css: "content-visibility",
1634
+ key: "contentVisibility"
1635
+ },
1636
+ {
1637
+ kind: "simple",
1638
+ css: "counter-increment",
1639
+ key: "counterIncrement"
1640
+ },
1641
+ {
1642
+ kind: "simple",
1643
+ css: "counter-reset",
1644
+ key: "counterReset"
1645
+ },
1646
+ {
1647
+ kind: "simple",
1648
+ css: "empty-cells",
1649
+ key: "emptyCells"
1650
+ },
1651
+ {
1652
+ kind: "simple",
1653
+ css: "z-index",
1654
+ key: "zIndex"
1655
+ },
1656
+ {
1657
+ kind: "simple",
1658
+ css: "overflow",
1659
+ key: "overflow"
1660
+ },
1661
+ {
1662
+ kind: "simple",
1663
+ css: "overflow-wrap",
1664
+ key: "overflowWrap"
1665
+ },
1666
+ {
1667
+ kind: "simple",
1668
+ css: "overflow-x",
1669
+ key: "overflowX"
1670
+ },
1671
+ {
1672
+ kind: "simple",
1673
+ css: "overflow-y",
1674
+ key: "overflowY"
1675
+ },
1676
+ {
1677
+ kind: "simple",
1678
+ css: "perspective",
1679
+ key: "perspective"
1680
+ },
1681
+ {
1682
+ kind: "simple",
1683
+ css: "perspective-origin",
1684
+ key: "perspectiveOrigin"
1685
+ },
1686
+ {
1687
+ kind: "simple",
1688
+ css: "quotes",
1689
+ key: "quotes"
1690
+ },
1691
+ {
1692
+ kind: "simple",
1693
+ css: "tab-size",
1694
+ key: "tabSize"
1695
+ },
1696
+ {
1697
+ kind: "simple",
1698
+ css: "table-layout",
1699
+ key: "tableLayout"
1700
+ },
1701
+ {
1702
+ kind: "simple",
1703
+ css: "visibility",
1704
+ key: "visibility"
1705
+ },
1706
+ {
1707
+ kind: "simple",
1708
+ css: "appearance",
1709
+ key: "appearance"
1710
+ },
1711
+ {
1712
+ kind: "simple",
1713
+ css: "image-rendering",
1714
+ key: "imageRendering"
1715
+ },
1716
+ {
1717
+ kind: "simple",
1718
+ css: "mask-image",
1719
+ key: "maskImage"
1720
+ },
1721
+ {
1722
+ kind: "simple",
1723
+ css: "mask-size",
1724
+ key: "maskSize"
1725
+ },
1726
+ {
1727
+ kind: "simple",
1728
+ css: "mask-position",
1729
+ key: "maskPosition"
1730
+ },
1731
+ {
1732
+ kind: "simple",
1733
+ css: "mask-repeat",
1734
+ key: "maskRepeat"
1735
+ },
1736
+ {
1737
+ kind: "simple",
1738
+ css: "shape-outside",
1739
+ key: "shapeOutside"
1740
+ },
1741
+ {
1742
+ kind: "simple",
1743
+ css: "shape-margin",
1744
+ key: "shapeMargin"
1745
+ },
1746
+ {
1747
+ kind: "simple",
1748
+ css: "shape-image-threshold",
1749
+ key: "shapeImageThreshold"
1750
+ },
1751
+ {
1752
+ kind: "simple",
1753
+ css: "column-count",
1754
+ key: "columnCount"
1755
+ },
1756
+ {
1757
+ kind: "simple",
1758
+ css: "column-width",
1759
+ key: "columnWidth"
1760
+ },
1761
+ {
1762
+ kind: "simple",
1763
+ css: "column-rule",
1764
+ key: "columnRule"
1765
+ },
1766
+ {
1767
+ kind: "simple",
1768
+ css: "columns",
1769
+ key: "columns"
1770
+ },
1771
+ {
1772
+ kind: "simple",
1773
+ css: "break-before",
1774
+ key: "breakBefore"
1775
+ },
1776
+ {
1777
+ kind: "simple",
1778
+ css: "break-after",
1779
+ key: "breakAfter"
1780
+ },
1781
+ {
1782
+ kind: "simple",
1783
+ css: "break-inside",
1784
+ key: "breakInside"
1785
+ },
1786
+ {
1787
+ kind: "simple",
1788
+ css: "orphans",
1789
+ key: "orphans"
1790
+ },
1791
+ {
1792
+ kind: "simple",
1793
+ css: "widows",
1794
+ key: "widows"
1795
+ },
1796
+ {
1797
+ kind: "simple",
1798
+ css: "print-color-adjust",
1799
+ key: "printColorAdjust"
1800
+ },
1801
+ {
1802
+ kind: "special",
1803
+ id: "hideEmpty"
1804
+ },
1805
+ {
1806
+ kind: "special",
1807
+ id: "clearFix"
1808
+ },
1809
+ {
1810
+ kind: "special",
1811
+ id: "extendCss"
1812
+ }
1813
+ ];
1814
+
1815
+ //#endregion
1816
+ //#region src/styles/styles/index.ts
1817
+ const styles = ({ theme: t, css, rootSize }) => {
1818
+ const calc = (...params) => values(params, rootSize);
1819
+ const shorthand = edge(rootSize);
1820
+ const borderRadiusFn = borderRadius(rootSize);
1821
+ return propertyMap.map((d) => processDescriptor(d, t, css, calc, shorthand, borderRadiusFn)).filter(Boolean).join(" ");
1822
+ };
1823
+
1824
+ //#endregion
1825
+ export { ALIGN_CONTENT_DIRECTION, ALIGN_CONTENT_MAP_X, ALIGN_CONTENT_MAP_Y, Provider, alignContent, breakpoints, context, createMediaQueries, extendCss, makeItResponsive, normalizeTheme, sortBreakpoints, stripUnit, styles, transformTheme, value, values };
1826
+ //# sourceMappingURL=index.js.map