@mochi-css/vanilla 3.0.0 → 4.0.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.
@@ -0,0 +1,2011 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+
23
+ //#endregion
24
+ let clsx = require("clsx");
25
+ clsx = __toESM(clsx);
26
+
27
+ //#region src/token.ts
28
+ /**
29
+ * Represents a CSS custom property (design token) with type information.
30
+ * Provides convenient access to both the variable name and its `var()` reference.
31
+ * @template T - The expected value type of the token (for type checking)
32
+ * @example
33
+ * const primaryColor = new Token<string>('primary-color')
34
+ * primaryColor.variable // '--primary-color'
35
+ * primaryColor.value // 'var(--primary-color)'
36
+ */
37
+ var Token = class {
38
+ /**
39
+ * Creates a new CSS token.
40
+ * @param name - The token name (without the `--` prefix)
41
+ */
42
+ constructor(name) {
43
+ this.name = name;
44
+ }
45
+ /**
46
+ * Gets the CSS custom property name (with `--` prefix).
47
+ * Use this when defining the variable.
48
+ */
49
+ get variable() {
50
+ return `--${this.name}`;
51
+ }
52
+ /**
53
+ * Gets the CSS `var()` reference to this token.
54
+ * Use this when consuming the variable value.
55
+ */
56
+ get value() {
57
+ return `var(${this.variable})`;
58
+ }
59
+ /**
60
+ * Returns the variable name for string coercion.
61
+ */
62
+ toString() {
63
+ return this.variable;
64
+ }
65
+ };
66
+ /**
67
+ * Creates a new CSS design token.
68
+ * @template T - The expected value type of the token
69
+ * @param name - The token name (without the `--` prefix)
70
+ * @returns A new Token instance
71
+ * @example
72
+ * const spacing = createToken<number>('spacing-md')
73
+ * // Use in styles: { gap: spacing.value }
74
+ */
75
+ function createToken(name) {
76
+ return new Token(name);
77
+ }
78
+
79
+ //#endregion
80
+ //#region src/propertyUnits.generated.ts
81
+ const propertyUnits = {
82
+ animation: "ms",
83
+ animationDelay: "ms",
84
+ animationDuration: "ms",
85
+ animationRange: "px",
86
+ animationRangeCenter: "px",
87
+ animationRangeEnd: "px",
88
+ animationRangeStart: "px",
89
+ background: "px",
90
+ backgroundPosition: "px",
91
+ backgroundPositionBlock: "px",
92
+ backgroundPositionInline: "px",
93
+ backgroundPositionX: "px",
94
+ backgroundPositionY: "px",
95
+ backgroundSize: "px",
96
+ backgroundTbd: "px",
97
+ baselineShift: "px",
98
+ blockSize: "px",
99
+ blockStep: "px",
100
+ blockStepSize: "px",
101
+ border: "px",
102
+ borderBlock: "px",
103
+ borderBlockClip: "px",
104
+ borderBlockEnd: "px",
105
+ borderBlockEndClip: "px",
106
+ borderBlockEndRadius: "px",
107
+ borderBlockEndWidth: "px",
108
+ borderBlockStart: "px",
109
+ borderBlockStartClip: "px",
110
+ borderBlockStartRadius: "px",
111
+ borderBlockStartWidth: "px",
112
+ borderBlockWidth: "px",
113
+ borderBottom: "px",
114
+ borderBottomClip: "px",
115
+ borderBottomLeftRadius: "px",
116
+ borderBottomRadius: "px",
117
+ borderBottomRightRadius: "px",
118
+ borderBottomWidth: "px",
119
+ borderClip: "px",
120
+ borderEndEndRadius: "px",
121
+ borderEndStartRadius: "px",
122
+ borderImage: "%",
123
+ borderImageOutset: "px",
124
+ borderImageSlice: "%",
125
+ borderImageWidth: "px",
126
+ borderInline: "px",
127
+ borderInlineClip: "px",
128
+ borderInlineEnd: "px",
129
+ borderInlineEndClip: "px",
130
+ borderInlineEndRadius: "px",
131
+ borderInlineEndWidth: "px",
132
+ borderInlineStart: "px",
133
+ borderInlineStartClip: "px",
134
+ borderInlineStartRadius: "px",
135
+ borderInlineStartWidth: "px",
136
+ borderInlineWidth: "px",
137
+ borderLeft: "px",
138
+ borderLeftClip: "px",
139
+ borderLeftRadius: "px",
140
+ borderLeftWidth: "px",
141
+ borderLimit: "px",
142
+ borderRadius: "px",
143
+ borderRight: "px",
144
+ borderRightClip: "px",
145
+ borderRightRadius: "px",
146
+ borderRightWidth: "px",
147
+ borderSpacing: "px",
148
+ borderStartEndRadius: "px",
149
+ borderStartStartRadius: "px",
150
+ borderTop: "px",
151
+ borderTopClip: "px",
152
+ borderTopLeftRadius: "px",
153
+ borderTopRadius: "px",
154
+ borderTopRightRadius: "px",
155
+ borderTopWidth: "px",
156
+ borderWidth: "px",
157
+ bottom: "px",
158
+ boxShadow: "px",
159
+ boxShadowBlur: "px",
160
+ boxShadowOffset: "px",
161
+ boxShadowSpread: "px",
162
+ columnGap: "px",
163
+ columnHeight: "px",
164
+ columnRule: "px",
165
+ columnRuleEdgeInset: "px",
166
+ columnRuleEdgeInsetEnd: "px",
167
+ columnRuleEdgeInsetStart: "px",
168
+ columnRuleInset: "px",
169
+ columnRuleInsetEnd: "px",
170
+ columnRuleInsetStart: "px",
171
+ columnRuleInteriorInset: "px",
172
+ columnRuleInteriorInsetEnd: "px",
173
+ columnRuleInteriorInsetStart: "px",
174
+ columnRuleWidth: "px",
175
+ columns: "px",
176
+ columnWidth: "px",
177
+ containIntrinsicBlockSize: "px",
178
+ containIntrinsicHeight: "px",
179
+ containIntrinsicInlineSize: "px",
180
+ containIntrinsicSize: "px",
181
+ containIntrinsicWidth: "px",
182
+ corner: "px",
183
+ cornerBlockEnd: "px",
184
+ cornerBlockStart: "px",
185
+ cornerBottom: "px",
186
+ cornerBottomLeft: "px",
187
+ cornerBottomRight: "px",
188
+ cornerEndEnd: "px",
189
+ cornerEndStart: "px",
190
+ cornerInlineEnd: "px",
191
+ cornerInlineStart: "px",
192
+ cornerLeft: "px",
193
+ cornerRight: "px",
194
+ cornerStartEnd: "px",
195
+ cornerStartStart: "px",
196
+ cornerTop: "px",
197
+ cornerTopLeft: "px",
198
+ cornerTopRight: "px",
199
+ cx: "px",
200
+ cy: "px",
201
+ fillOpacity: "%",
202
+ fillPosition: "px",
203
+ fillSize: "px",
204
+ flex: "px",
205
+ flexBasis: "px",
206
+ floatOffset: "px",
207
+ floodOpacity: "%",
208
+ flowTolerance: "px",
209
+ font: "deg",
210
+ fontSize: "px",
211
+ fontStretch: "%",
212
+ fontStyle: "deg",
213
+ fontWidth: "%",
214
+ gap: "px",
215
+ grid: "px",
216
+ gridAutoColumns: "px",
217
+ gridAutoRows: "px",
218
+ gridColumnGap: "px",
219
+ gridGap: "px",
220
+ gridRowGap: "px",
221
+ gridTemplate: "px",
222
+ gridTemplateColumns: "px",
223
+ gridTemplateRows: "px",
224
+ height: "px",
225
+ hyphenateLimitZone: "px",
226
+ imageOrientation: "deg",
227
+ imageResolution: "dppx",
228
+ initialLetterWrap: "px",
229
+ inlineSize: "px",
230
+ inset: "px",
231
+ insetBlock: "px",
232
+ insetBlockEnd: "px",
233
+ insetBlockStart: "px",
234
+ insetInline: "px",
235
+ insetInlineEnd: "px",
236
+ insetInlineStart: "px",
237
+ interestDelay: "ms",
238
+ interestDelayEnd: "ms",
239
+ interestDelayStart: "ms",
240
+ left: "px",
241
+ letterSpacing: "px",
242
+ lineHeight: "px",
243
+ lineHeightStep: "px",
244
+ linePadding: "px",
245
+ margin: "px",
246
+ marginBlock: "px",
247
+ marginBlockEnd: "px",
248
+ marginBlockStart: "px",
249
+ marginBottom: "px",
250
+ marginInline: "px",
251
+ marginInlineEnd: "px",
252
+ marginInlineStart: "px",
253
+ marginLeft: "px",
254
+ marginRight: "px",
255
+ marginTop: "px",
256
+ mask: "px",
257
+ maskBorder: "%",
258
+ maskBorderOutset: "px",
259
+ maskBorderSlice: "%",
260
+ maskBorderWidth: "px",
261
+ maskPosition: "px",
262
+ maskSize: "px",
263
+ maxBlockSize: "px",
264
+ maxHeight: "px",
265
+ maxInlineSize: "px",
266
+ maxWidth: "px",
267
+ minBlockSize: "px",
268
+ minHeight: "px",
269
+ minInlineSize: "px",
270
+ minWidth: "px",
271
+ objectPosition: "px",
272
+ offset: "px",
273
+ offsetAnchor: "px",
274
+ offsetDistance: "px",
275
+ offsetPosition: "px",
276
+ offsetRotate: "deg",
277
+ opacity: "%",
278
+ outline: "px",
279
+ outlineOffset: "px",
280
+ outlineWidth: "px",
281
+ overflowClipMargin: "px",
282
+ overflowClipMarginBlock: "px",
283
+ overflowClipMarginBlockEnd: "px",
284
+ overflowClipMarginBlockStart: "px",
285
+ overflowClipMarginBottom: "px",
286
+ overflowClipMarginInline: "px",
287
+ overflowClipMarginInlineEnd: "px",
288
+ overflowClipMarginInlineStart: "px",
289
+ overflowClipMarginLeft: "px",
290
+ overflowClipMarginRight: "px",
291
+ overflowClipMarginTop: "px",
292
+ padding: "px",
293
+ paddingBlock: "px",
294
+ paddingBlockEnd: "px",
295
+ paddingBlockStart: "px",
296
+ paddingBottom: "px",
297
+ paddingInline: "px",
298
+ paddingInlineEnd: "px",
299
+ paddingInlineStart: "px",
300
+ paddingLeft: "px",
301
+ paddingRight: "px",
302
+ paddingTop: "px",
303
+ pause: "ms",
304
+ pauseAfter: "ms",
305
+ pauseBefore: "ms",
306
+ perspective: "px",
307
+ perspectiveOrigin: "px",
308
+ r: "px",
309
+ rest: "ms",
310
+ restAfter: "ms",
311
+ restBefore: "ms",
312
+ right: "px",
313
+ rotate: "deg",
314
+ rowGap: "px",
315
+ rowRule: "px",
316
+ rowRuleEdgeInset: "px",
317
+ rowRuleEdgeInsetEnd: "px",
318
+ rowRuleEdgeInsetStart: "px",
319
+ rowRuleInset: "px",
320
+ rowRuleInsetEnd: "px",
321
+ rowRuleInsetStart: "px",
322
+ rowRuleInteriorInset: "px",
323
+ rowRuleInteriorInsetEnd: "px",
324
+ rowRuleInteriorInsetStart: "px",
325
+ rowRuleWidth: "px",
326
+ rule: "px",
327
+ ruleEdgeInset: "px",
328
+ ruleInset: "px",
329
+ ruleInsetEnd: "px",
330
+ ruleInsetStart: "px",
331
+ ruleInteriorInset: "px",
332
+ ruleWidth: "px",
333
+ rx: "px",
334
+ ry: "px",
335
+ scale: "%",
336
+ scrollMargin: "px",
337
+ scrollMarginBlock: "px",
338
+ scrollMarginBlockEnd: "px",
339
+ scrollMarginBlockStart: "px",
340
+ scrollMarginBottom: "px",
341
+ scrollMarginInline: "px",
342
+ scrollMarginInlineEnd: "px",
343
+ scrollMarginInlineStart: "px",
344
+ scrollMarginLeft: "px",
345
+ scrollMarginRight: "px",
346
+ scrollMarginTop: "px",
347
+ scrollPadding: "px",
348
+ scrollPaddingBlock: "px",
349
+ scrollPaddingBlockEnd: "px",
350
+ scrollPaddingBlockStart: "px",
351
+ scrollPaddingBottom: "px",
352
+ scrollPaddingInline: "px",
353
+ scrollPaddingInlineEnd: "px",
354
+ scrollPaddingInlineStart: "px",
355
+ scrollPaddingLeft: "px",
356
+ scrollPaddingRight: "px",
357
+ scrollPaddingTop: "px",
358
+ shapeImageThreshold: "%",
359
+ shapeMargin: "px",
360
+ shapePadding: "px",
361
+ stopOpacity: "%",
362
+ strokeDasharray: "px",
363
+ strokeDashcorner: "px",
364
+ strokeDashCorner: "px",
365
+ strokeDashoffset: "px",
366
+ strokeOpacity: "%",
367
+ strokePosition: "px",
368
+ strokeSize: "px",
369
+ strokeWidth: "px",
370
+ tabSize: "px",
371
+ textDecoration: "px",
372
+ textDecorationInset: "px",
373
+ textDecorationThickness: "px",
374
+ textIndent: "px",
375
+ textShadow: "px",
376
+ textSizeAdjust: "%",
377
+ textUnderlineOffset: "px",
378
+ timelineTrigger: "px",
379
+ timelineTriggerActivationRange: "px",
380
+ timelineTriggerActivationRangeEnd: "px",
381
+ timelineTriggerActivationRangeStart: "px",
382
+ timelineTriggerActiveRange: "px",
383
+ timelineTriggerActiveRangeEnd: "px",
384
+ timelineTriggerActiveRangeStart: "px",
385
+ top: "px",
386
+ transformOrigin: "px",
387
+ transition: "ms",
388
+ transitionDelay: "ms",
389
+ transitionDuration: "ms",
390
+ translate: "px",
391
+ verticalAlign: "px",
392
+ viewTimeline: "px",
393
+ viewTimelineInset: "px",
394
+ voiceDuration: "ms",
395
+ voicePitch: "Hz",
396
+ voiceRange: "Hz",
397
+ voiceRate: "%",
398
+ width: "px",
399
+ wordSpacing: "px",
400
+ x: "px",
401
+ y: "px",
402
+ zoom: "%"
403
+ };
404
+
405
+ //#endregion
406
+ //#region src/knownProperties.generated.ts
407
+ const knownPropertyNames = new Set([
408
+ "accentColor",
409
+ "alignContent",
410
+ "alignItems",
411
+ "alignSelf",
412
+ "alignmentBaseline",
413
+ "all",
414
+ "anchorName",
415
+ "anchorScope",
416
+ "animation",
417
+ "animationComposition",
418
+ "animationDelay",
419
+ "animationDirection",
420
+ "animationDuration",
421
+ "animationFillMode",
422
+ "animationIterationCount",
423
+ "animationName",
424
+ "animationPlayState",
425
+ "animationRange",
426
+ "animationRangeCenter",
427
+ "animationRangeEnd",
428
+ "animationRangeStart",
429
+ "animationTimeline",
430
+ "animationTimingFunction",
431
+ "animationTrigger",
432
+ "appearance",
433
+ "aspectRatio",
434
+ "backdropFilter",
435
+ "backfaceVisibility",
436
+ "background",
437
+ "backgroundAttachment",
438
+ "backgroundBlendMode",
439
+ "backgroundClip",
440
+ "backgroundColor",
441
+ "backgroundImage",
442
+ "backgroundOrigin",
443
+ "backgroundPosition",
444
+ "backgroundPositionBlock",
445
+ "backgroundPositionInline",
446
+ "backgroundPositionX",
447
+ "backgroundPositionY",
448
+ "backgroundRepeat",
449
+ "backgroundRepeatBlock",
450
+ "backgroundRepeatInline",
451
+ "backgroundRepeatX",
452
+ "backgroundRepeatY",
453
+ "backgroundSize",
454
+ "backgroundTbd",
455
+ "baselineShift",
456
+ "baselineSource",
457
+ "blockEllipsis",
458
+ "blockSize",
459
+ "blockStep",
460
+ "blockStepAlign",
461
+ "blockStepInsert",
462
+ "blockStepRound",
463
+ "blockStepSize",
464
+ "bookmarkLabel",
465
+ "bookmarkLevel",
466
+ "bookmarkState",
467
+ "border",
468
+ "borderBlock",
469
+ "borderBlockClip",
470
+ "borderBlockColor",
471
+ "borderBlockEnd",
472
+ "borderBlockEndClip",
473
+ "borderBlockEndColor",
474
+ "borderBlockEndRadius",
475
+ "borderBlockEndStyle",
476
+ "borderBlockEndWidth",
477
+ "borderBlockStart",
478
+ "borderBlockStartClip",
479
+ "borderBlockStartColor",
480
+ "borderBlockStartRadius",
481
+ "borderBlockStartStyle",
482
+ "borderBlockStartWidth",
483
+ "borderBlockStyle",
484
+ "borderBlockWidth",
485
+ "borderBottom",
486
+ "borderBottomClip",
487
+ "borderBottomColor",
488
+ "borderBottomLeftRadius",
489
+ "borderBottomRadius",
490
+ "borderBottomRightRadius",
491
+ "borderBottomStyle",
492
+ "borderBottomWidth",
493
+ "borderBoundary",
494
+ "borderClip",
495
+ "borderCollapse",
496
+ "borderColor",
497
+ "borderEndEndRadius",
498
+ "borderEndStartRadius",
499
+ "borderImage",
500
+ "borderImageOutset",
501
+ "borderImageRepeat",
502
+ "borderImageSlice",
503
+ "borderImageSource",
504
+ "borderImageWidth",
505
+ "borderInline",
506
+ "borderInlineClip",
507
+ "borderInlineColor",
508
+ "borderInlineEnd",
509
+ "borderInlineEndClip",
510
+ "borderInlineEndColor",
511
+ "borderInlineEndRadius",
512
+ "borderInlineEndStyle",
513
+ "borderInlineEndWidth",
514
+ "borderInlineStart",
515
+ "borderInlineStartClip",
516
+ "borderInlineStartColor",
517
+ "borderInlineStartRadius",
518
+ "borderInlineStartStyle",
519
+ "borderInlineStartWidth",
520
+ "borderInlineStyle",
521
+ "borderInlineWidth",
522
+ "borderLeft",
523
+ "borderLeftClip",
524
+ "borderLeftColor",
525
+ "borderLeftRadius",
526
+ "borderLeftStyle",
527
+ "borderLeftWidth",
528
+ "borderLimit",
529
+ "borderRadius",
530
+ "borderRight",
531
+ "borderRightClip",
532
+ "borderRightColor",
533
+ "borderRightRadius",
534
+ "borderRightStyle",
535
+ "borderRightWidth",
536
+ "borderShape",
537
+ "borderSpacing",
538
+ "borderStartEndRadius",
539
+ "borderStartStartRadius",
540
+ "borderStyle",
541
+ "borderTop",
542
+ "borderTopClip",
543
+ "borderTopColor",
544
+ "borderTopLeftRadius",
545
+ "borderTopRadius",
546
+ "borderTopRightRadius",
547
+ "borderTopStyle",
548
+ "borderTopWidth",
549
+ "borderWidth",
550
+ "bottom",
551
+ "boxDecorationBreak",
552
+ "boxShadow",
553
+ "boxShadowBlur",
554
+ "boxShadowColor",
555
+ "boxShadowOffset",
556
+ "boxShadowPosition",
557
+ "boxShadowSpread",
558
+ "boxSizing",
559
+ "boxSnap",
560
+ "breakAfter",
561
+ "breakBefore",
562
+ "breakInside",
563
+ "captionSide",
564
+ "caret",
565
+ "caretAnimation",
566
+ "caretColor",
567
+ "caretShape",
568
+ "clear",
569
+ "clip",
570
+ "clipPath",
571
+ "clipRule",
572
+ "color",
573
+ "colorAdjust",
574
+ "colorInterpolation",
575
+ "colorInterpolationFilters",
576
+ "colorScheme",
577
+ "columnCount",
578
+ "columnFill",
579
+ "columnGap",
580
+ "columnHeight",
581
+ "columnRule",
582
+ "columnRuleBreak",
583
+ "columnRuleColor",
584
+ "columnRuleEdgeInset",
585
+ "columnRuleEdgeInsetEnd",
586
+ "columnRuleEdgeInsetStart",
587
+ "columnRuleInset",
588
+ "columnRuleInsetEnd",
589
+ "columnRuleInsetStart",
590
+ "columnRuleInteriorInset",
591
+ "columnRuleInteriorInsetEnd",
592
+ "columnRuleInteriorInsetStart",
593
+ "columnRuleStyle",
594
+ "columnRuleVisibilityItems",
595
+ "columnRuleWidth",
596
+ "columnSpan",
597
+ "columnWidth",
598
+ "columnWrap",
599
+ "columns",
600
+ "contain",
601
+ "containIntrinsicBlockSize",
602
+ "containIntrinsicHeight",
603
+ "containIntrinsicInlineSize",
604
+ "containIntrinsicSize",
605
+ "containIntrinsicWidth",
606
+ "container",
607
+ "containerName",
608
+ "containerType",
609
+ "content",
610
+ "contentVisibility",
611
+ "continue",
612
+ "copyInto",
613
+ "corner",
614
+ "cornerBlockEnd",
615
+ "cornerBlockEndShape",
616
+ "cornerBlockStart",
617
+ "cornerBlockStartShape",
618
+ "cornerBottom",
619
+ "cornerBottomLeft",
620
+ "cornerBottomLeftShape",
621
+ "cornerBottomRight",
622
+ "cornerBottomRightShape",
623
+ "cornerBottomShape",
624
+ "cornerEndEnd",
625
+ "cornerEndEndShape",
626
+ "cornerEndStart",
627
+ "cornerEndStartShape",
628
+ "cornerInlineEnd",
629
+ "cornerInlineEndShape",
630
+ "cornerInlineStart",
631
+ "cornerInlineStartShape",
632
+ "cornerLeft",
633
+ "cornerLeftShape",
634
+ "cornerRight",
635
+ "cornerRightShape",
636
+ "cornerShape",
637
+ "cornerStartEnd",
638
+ "cornerStartEndShape",
639
+ "cornerStartStart",
640
+ "cornerStartStartShape",
641
+ "cornerTop",
642
+ "cornerTopLeft",
643
+ "cornerTopLeftShape",
644
+ "cornerTopRight",
645
+ "cornerTopRightShape",
646
+ "cornerTopShape",
647
+ "counterIncrement",
648
+ "counterReset",
649
+ "counterSet",
650
+ "cue",
651
+ "cueAfter",
652
+ "cueBefore",
653
+ "cursor",
654
+ "cx",
655
+ "cy",
656
+ "d",
657
+ "direction",
658
+ "display",
659
+ "dominantBaseline",
660
+ "dynamicRangeLimit",
661
+ "emptyCells",
662
+ "eventTrigger",
663
+ "eventTriggerName",
664
+ "eventTriggerSource",
665
+ "fieldSizing",
666
+ "fill",
667
+ "fillBreak",
668
+ "fillColor",
669
+ "fillImage",
670
+ "fillOpacity",
671
+ "fillOrigin",
672
+ "fillPosition",
673
+ "fillRepeat",
674
+ "fillRule",
675
+ "fillSize",
676
+ "filter",
677
+ "flex",
678
+ "flexBasis",
679
+ "flexDirection",
680
+ "flexFlow",
681
+ "flexGrow",
682
+ "flexShrink",
683
+ "flexWrap",
684
+ "float",
685
+ "floatDefer",
686
+ "floatOffset",
687
+ "floatReference",
688
+ "floodColor",
689
+ "floodOpacity",
690
+ "flowFrom",
691
+ "flowInto",
692
+ "flowTolerance",
693
+ "font",
694
+ "fontFamily",
695
+ "fontFeatureSettings",
696
+ "fontKerning",
697
+ "fontLanguageOverride",
698
+ "fontOpticalSizing",
699
+ "fontPalette",
700
+ "fontSize",
701
+ "fontSizeAdjust",
702
+ "fontStretch",
703
+ "fontStyle",
704
+ "fontSynthesis",
705
+ "fontSynthesisPosition",
706
+ "fontSynthesisSmallCaps",
707
+ "fontSynthesisStyle",
708
+ "fontSynthesisWeight",
709
+ "fontVariant",
710
+ "fontVariantAlternates",
711
+ "fontVariantCaps",
712
+ "fontVariantEastAsian",
713
+ "fontVariantEmoji",
714
+ "fontVariantLigatures",
715
+ "fontVariantNumeric",
716
+ "fontVariantPosition",
717
+ "fontVariationSettings",
718
+ "fontWeight",
719
+ "fontWidth",
720
+ "footnoteDisplay",
721
+ "footnotePolicy",
722
+ "forcedColorAdjust",
723
+ "frameSizing",
724
+ "gap",
725
+ "glyphOrientationVertical",
726
+ "grid",
727
+ "gridArea",
728
+ "gridAutoColumns",
729
+ "gridAutoFlow",
730
+ "gridAutoRows",
731
+ "gridColumn",
732
+ "gridColumnEnd",
733
+ "gridColumnGap",
734
+ "gridColumnStart",
735
+ "gridGap",
736
+ "gridRow",
737
+ "gridRowEnd",
738
+ "gridRowGap",
739
+ "gridRowStart",
740
+ "gridTemplate",
741
+ "gridTemplateAreas",
742
+ "gridTemplateColumns",
743
+ "gridTemplateRows",
744
+ "hangingPunctuation",
745
+ "height",
746
+ "hyphenateCharacter",
747
+ "hyphenateLimitChars",
748
+ "hyphenateLimitLast",
749
+ "hyphenateLimitLines",
750
+ "hyphenateLimitZone",
751
+ "hyphens",
752
+ "imageAnimation",
753
+ "imageOrientation",
754
+ "imageRendering",
755
+ "imageResolution",
756
+ "initialLetter",
757
+ "initialLetterAlign",
758
+ "initialLetterWrap",
759
+ "inlineSize",
760
+ "inlineSizing",
761
+ "inputSecurity",
762
+ "inset",
763
+ "insetBlock",
764
+ "insetBlockEnd",
765
+ "insetBlockStart",
766
+ "insetInline",
767
+ "insetInlineEnd",
768
+ "insetInlineStart",
769
+ "interactivity",
770
+ "interestDelay",
771
+ "interestDelayEnd",
772
+ "interestDelayStart",
773
+ "interpolateSize",
774
+ "isolation",
775
+ "justifyContent",
776
+ "justifyItems",
777
+ "justifySelf",
778
+ "left",
779
+ "letterSpacing",
780
+ "lightingColor",
781
+ "lineBreak",
782
+ "lineClamp",
783
+ "lineFitEdge",
784
+ "lineGrid",
785
+ "lineHeight",
786
+ "lineHeightStep",
787
+ "linePadding",
788
+ "lineSnap",
789
+ "linkParameters",
790
+ "listStyle",
791
+ "listStyleImage",
792
+ "listStylePosition",
793
+ "listStyleType",
794
+ "margin",
795
+ "marginBlock",
796
+ "marginBlockEnd",
797
+ "marginBlockStart",
798
+ "marginBottom",
799
+ "marginBreak",
800
+ "marginInline",
801
+ "marginInlineEnd",
802
+ "marginInlineStart",
803
+ "marginLeft",
804
+ "marginRight",
805
+ "marginTop",
806
+ "marginTrim",
807
+ "marker",
808
+ "markerEnd",
809
+ "markerMid",
810
+ "markerSide",
811
+ "markerStart",
812
+ "mask",
813
+ "maskBorder",
814
+ "maskBorderMode",
815
+ "maskBorderOutset",
816
+ "maskBorderRepeat",
817
+ "maskBorderSlice",
818
+ "maskBorderSource",
819
+ "maskBorderWidth",
820
+ "maskClip",
821
+ "maskComposite",
822
+ "maskImage",
823
+ "maskMode",
824
+ "maskOrigin",
825
+ "maskPosition",
826
+ "maskRepeat",
827
+ "maskSize",
828
+ "maskType",
829
+ "mathDepth",
830
+ "mathShift",
831
+ "mathStyle",
832
+ "maxBlockSize",
833
+ "maxHeight",
834
+ "maxInlineSize",
835
+ "maxLines",
836
+ "maxWidth",
837
+ "minBlockSize",
838
+ "minHeight",
839
+ "minInlineSize",
840
+ "minIntrinsicSizing",
841
+ "minWidth",
842
+ "mixBlendMode",
843
+ "navDown",
844
+ "navLeft",
845
+ "navRight",
846
+ "navUp",
847
+ "objectFit",
848
+ "objectPosition",
849
+ "objectViewBox",
850
+ "offset",
851
+ "offsetAnchor",
852
+ "offsetDistance",
853
+ "offsetPath",
854
+ "offsetPosition",
855
+ "offsetRotate",
856
+ "opacity",
857
+ "order",
858
+ "orphans",
859
+ "outline",
860
+ "outlineColor",
861
+ "outlineOffset",
862
+ "outlineStyle",
863
+ "outlineWidth",
864
+ "overflow",
865
+ "overflowAnchor",
866
+ "overflowBlock",
867
+ "overflowClipMargin",
868
+ "overflowClipMarginBlock",
869
+ "overflowClipMarginBlockEnd",
870
+ "overflowClipMarginBlockStart",
871
+ "overflowClipMarginBottom",
872
+ "overflowClipMarginInline",
873
+ "overflowClipMarginInlineEnd",
874
+ "overflowClipMarginInlineStart",
875
+ "overflowClipMarginLeft",
876
+ "overflowClipMarginRight",
877
+ "overflowClipMarginTop",
878
+ "overflowInline",
879
+ "overflowWrap",
880
+ "overflowX",
881
+ "overflowY",
882
+ "overlay",
883
+ "overscrollBehavior",
884
+ "overscrollBehaviorBlock",
885
+ "overscrollBehaviorInline",
886
+ "overscrollBehaviorX",
887
+ "overscrollBehaviorY",
888
+ "padding",
889
+ "paddingBlock",
890
+ "paddingBlockEnd",
891
+ "paddingBlockStart",
892
+ "paddingBottom",
893
+ "paddingInline",
894
+ "paddingInlineEnd",
895
+ "paddingInlineStart",
896
+ "paddingLeft",
897
+ "paddingRight",
898
+ "paddingTop",
899
+ "page",
900
+ "pageBreakAfter",
901
+ "pageBreakBefore",
902
+ "pageBreakInside",
903
+ "paintOrder",
904
+ "pause",
905
+ "pauseAfter",
906
+ "pauseBefore",
907
+ "perspective",
908
+ "perspectiveOrigin",
909
+ "placeContent",
910
+ "placeItems",
911
+ "placeSelf",
912
+ "pointerEvents",
913
+ "pointerTimeline",
914
+ "pointerTimelineAxis",
915
+ "pointerTimelineName",
916
+ "position",
917
+ "positionAnchor",
918
+ "positionArea",
919
+ "positionTry",
920
+ "positionTryFallbacks",
921
+ "positionTryOrder",
922
+ "positionVisibility",
923
+ "printColorAdjust",
924
+ "quotes",
925
+ "r",
926
+ "readingFlow",
927
+ "readingOrder",
928
+ "regionFragment",
929
+ "resize",
930
+ "rest",
931
+ "restAfter",
932
+ "restBefore",
933
+ "right",
934
+ "rotate",
935
+ "rowGap",
936
+ "rowRule",
937
+ "rowRuleBreak",
938
+ "rowRuleColor",
939
+ "rowRuleEdgeInset",
940
+ "rowRuleEdgeInsetEnd",
941
+ "rowRuleEdgeInsetStart",
942
+ "rowRuleInset",
943
+ "rowRuleInsetEnd",
944
+ "rowRuleInsetStart",
945
+ "rowRuleInteriorInset",
946
+ "rowRuleInteriorInsetEnd",
947
+ "rowRuleInteriorInsetStart",
948
+ "rowRuleStyle",
949
+ "rowRuleVisibilityItems",
950
+ "rowRuleWidth",
951
+ "rubyAlign",
952
+ "rubyMerge",
953
+ "rubyOverhang",
954
+ "rubyPosition",
955
+ "rule",
956
+ "ruleBreak",
957
+ "ruleColor",
958
+ "ruleEdgeInset",
959
+ "ruleInset",
960
+ "ruleInsetEnd",
961
+ "ruleInsetStart",
962
+ "ruleInteriorInset",
963
+ "ruleOverlap",
964
+ "ruleStyle",
965
+ "ruleVisibilityItems",
966
+ "ruleWidth",
967
+ "rx",
968
+ "ry",
969
+ "scale",
970
+ "scrollBehavior",
971
+ "scrollInitialTarget",
972
+ "scrollMargin",
973
+ "scrollMarginBlock",
974
+ "scrollMarginBlockEnd",
975
+ "scrollMarginBlockStart",
976
+ "scrollMarginBottom",
977
+ "scrollMarginInline",
978
+ "scrollMarginInlineEnd",
979
+ "scrollMarginInlineStart",
980
+ "scrollMarginLeft",
981
+ "scrollMarginRight",
982
+ "scrollMarginTop",
983
+ "scrollMarkerGroup",
984
+ "scrollPadding",
985
+ "scrollPaddingBlock",
986
+ "scrollPaddingBlockEnd",
987
+ "scrollPaddingBlockStart",
988
+ "scrollPaddingBottom",
989
+ "scrollPaddingInline",
990
+ "scrollPaddingInlineEnd",
991
+ "scrollPaddingInlineStart",
992
+ "scrollPaddingLeft",
993
+ "scrollPaddingRight",
994
+ "scrollPaddingTop",
995
+ "scrollSnapAlign",
996
+ "scrollSnapStop",
997
+ "scrollSnapType",
998
+ "scrollTargetGroup",
999
+ "scrollTimeline",
1000
+ "scrollTimelineAxis",
1001
+ "scrollTimelineName",
1002
+ "scrollbarColor",
1003
+ "scrollbarGutter",
1004
+ "scrollbarWidth",
1005
+ "shapeImageThreshold",
1006
+ "shapeInside",
1007
+ "shapeMargin",
1008
+ "shapeOutside",
1009
+ "shapePadding",
1010
+ "shapeRendering",
1011
+ "shapeSubtract",
1012
+ "sliderOrientation",
1013
+ "spatialNavigationAction",
1014
+ "spatialNavigationContain",
1015
+ "spatialNavigationFunction",
1016
+ "speak",
1017
+ "speakAs",
1018
+ "stopColor",
1019
+ "stopOpacity",
1020
+ "stringSet",
1021
+ "stroke",
1022
+ "strokeAlign",
1023
+ "strokeAlignment",
1024
+ "strokeBreak",
1025
+ "strokeColor",
1026
+ "strokeDashCorner",
1027
+ "strokeDashJustify",
1028
+ "strokeDashadjust",
1029
+ "strokeDasharray",
1030
+ "strokeDashcorner",
1031
+ "strokeDashoffset",
1032
+ "strokeImage",
1033
+ "strokeLinecap",
1034
+ "strokeLinejoin",
1035
+ "strokeMiterlimit",
1036
+ "strokeOpacity",
1037
+ "strokeOrigin",
1038
+ "strokePosition",
1039
+ "strokeRepeat",
1040
+ "strokeSize",
1041
+ "strokeWidth",
1042
+ "tabSize",
1043
+ "tableLayout",
1044
+ "textAlign",
1045
+ "textAlignAll",
1046
+ "textAlignLast",
1047
+ "textAnchor",
1048
+ "textAutospace",
1049
+ "textBox",
1050
+ "textBoxEdge",
1051
+ "textBoxTrim",
1052
+ "textCombineUpright",
1053
+ "textDecoration",
1054
+ "textDecorationColor",
1055
+ "textDecorationInset",
1056
+ "textDecorationLine",
1057
+ "textDecorationSkip",
1058
+ "textDecorationSkipBox",
1059
+ "textDecorationSkipInk",
1060
+ "textDecorationSkipSelf",
1061
+ "textDecorationSkipSpaces",
1062
+ "textDecorationStyle",
1063
+ "textDecorationThickness",
1064
+ "textEmphasis",
1065
+ "textEmphasisColor",
1066
+ "textEmphasisPosition",
1067
+ "textEmphasisSkip",
1068
+ "textEmphasisStyle",
1069
+ "textGroupAlign",
1070
+ "textIndent",
1071
+ "textJustify",
1072
+ "textOrientation",
1073
+ "textOverflow",
1074
+ "textRendering",
1075
+ "textShadow",
1076
+ "textSizeAdjust",
1077
+ "textSpacing",
1078
+ "textSpacingTrim",
1079
+ "textTransform",
1080
+ "textUnderlineOffset",
1081
+ "textUnderlinePosition",
1082
+ "textWrap",
1083
+ "textWrapMode",
1084
+ "textWrapStyle",
1085
+ "timelineScope",
1086
+ "timelineTrigger",
1087
+ "timelineTriggerActivationRange",
1088
+ "timelineTriggerActivationRangeEnd",
1089
+ "timelineTriggerActivationRangeStart",
1090
+ "timelineTriggerActiveRange",
1091
+ "timelineTriggerActiveRangeEnd",
1092
+ "timelineTriggerActiveRangeStart",
1093
+ "timelineTriggerName",
1094
+ "timelineTriggerSource",
1095
+ "top",
1096
+ "touchAction",
1097
+ "transform",
1098
+ "transformBox",
1099
+ "transformOrigin",
1100
+ "transformStyle",
1101
+ "transition",
1102
+ "transitionBehavior",
1103
+ "transitionDelay",
1104
+ "transitionDuration",
1105
+ "transitionProperty",
1106
+ "transitionTimingFunction",
1107
+ "translate",
1108
+ "triggerScope",
1109
+ "unicodeBidi",
1110
+ "userSelect",
1111
+ "vectorEffect",
1112
+ "verticalAlign",
1113
+ "viewTimeline",
1114
+ "viewTimelineAxis",
1115
+ "viewTimelineInset",
1116
+ "viewTimelineName",
1117
+ "viewTransitionClass",
1118
+ "viewTransitionGroup",
1119
+ "viewTransitionName",
1120
+ "viewTransitionScope",
1121
+ "visibility",
1122
+ "voiceBalance",
1123
+ "voiceDuration",
1124
+ "voiceFamily",
1125
+ "voicePitch",
1126
+ "voiceRange",
1127
+ "voiceRate",
1128
+ "voiceStress",
1129
+ "voiceVolume",
1130
+ "whiteSpace",
1131
+ "whiteSpaceCollapse",
1132
+ "whiteSpaceTrim",
1133
+ "widows",
1134
+ "width",
1135
+ "willChange",
1136
+ "wordBreak",
1137
+ "wordSpaceTransform",
1138
+ "wordSpacing",
1139
+ "wordWrap",
1140
+ "wrapAfter",
1141
+ "wrapBefore",
1142
+ "wrapFlow",
1143
+ "wrapInside",
1144
+ "wrapThrough",
1145
+ "writingMode",
1146
+ "x",
1147
+ "y",
1148
+ "zIndex",
1149
+ "zoom"
1150
+ ]);
1151
+
1152
+ //#endregion
1153
+ //#region src/props.ts
1154
+ /**
1155
+ * Converts a kebab-case string to camelCase.
1156
+ */
1157
+ function kebabToCamel(str) {
1158
+ return str.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
1159
+ }
1160
+ /**
1161
+ * Converts a camelCase string to kebab-case.
1162
+ */
1163
+ function camelToKebab(str) {
1164
+ return str.replace(/[A-Z]/g, (m) => "-" + m.toLowerCase());
1165
+ }
1166
+ function getUnitForProperty(propertyName) {
1167
+ return propertyName in propertyUnits ? propertyUnits[propertyName] : void 0;
1168
+ }
1169
+ /**
1170
+ * Converts a CSS-like value to its string representation.
1171
+ * For properties with known units, numbers are automatically suffixed.
1172
+ */
1173
+ function formatValue(value, propertyName, maxDepth = 10) {
1174
+ if (maxDepth <= 0) return "";
1175
+ if (typeof value === "string") return value;
1176
+ if (typeof value === "number") {
1177
+ const unit = getUnitForProperty(propertyName);
1178
+ if (unit === "%") return `${value * 100}${unit}`;
1179
+ if (value === 0) return "0";
1180
+ return unit ? `${value}${unit}` : value.toString();
1181
+ }
1182
+ return formatValue(value.value, propertyName, maxDepth - 1);
1183
+ }
1184
+ /**
1185
+ * Checks if a property name is a CSS custom property (variable).
1186
+ */
1187
+ function isCssVariableName(key) {
1188
+ return key.startsWith("--");
1189
+ }
1190
+ /**
1191
+ * Converts a CSS-like value to a string for use as a CSS variable value.
1192
+ * @param value - The value to convert (string, number, or wrapped value)
1193
+ * @param maxDepth - Maximum recursion depth for evaluating the value
1194
+ * @returns The string representation
1195
+ */
1196
+ function asVar(value, maxDepth = 10) {
1197
+ if (maxDepth <= 0) return "";
1198
+ switch (typeof value) {
1199
+ case "string": return value;
1200
+ case "number": return value.toString();
1201
+ default: return asVar(value.value, maxDepth - 1);
1202
+ }
1203
+ }
1204
+ /**
1205
+ * Checks if a property name is a known CSS property.
1206
+ */
1207
+ function isKnownPropertyName(key) {
1208
+ return knownPropertyNames.has(key);
1209
+ }
1210
+ /**
1211
+ * Converts a value to a CSS property string.
1212
+ * Automatically appends units to numeric values for properties that require them.
1213
+ * @param value - The value to convert
1214
+ * @param key - The CSS property name
1215
+ * @returns The formatted CSS value string
1216
+ */
1217
+ function asKnownProp(value, key) {
1218
+ return formatValue(value, key);
1219
+ }
1220
+ /**
1221
+ * Checks if a key represents a nested CSS selector.
1222
+ */
1223
+ function isNestedSelector(key) {
1224
+ return key.includes("&");
1225
+ }
1226
+ /** Known at-rule prefixes that mochi-css recognizes */
1227
+ const AT_RULE_PREFIXES = [
1228
+ "@media ",
1229
+ "@container ",
1230
+ "@supports ",
1231
+ "@layer "
1232
+ ];
1233
+ /**
1234
+ * Checks if a key represents a CSS at-rule (media, container, supports, layer).
1235
+ */
1236
+ function isAtRuleKey(key) {
1237
+ return AT_RULE_PREFIXES.some((p) => key.startsWith(p));
1238
+ }
1239
+ /**
1240
+ * Converts a SimpleStyleProps object to a CSS properties record.
1241
+ * Transforms camelCase property names to kebab-case and applies value converters.
1242
+ * @param props - The style properties object
1243
+ * @returns A record of CSS property names (kebab-case) to string values
1244
+ * @example
1245
+ * cssFromProps({ backgroundColor: 'blue', padding: 16 })
1246
+ * // { 'background-color': 'blue', 'padding': '16px' }
1247
+ */
1248
+ function cssFromProps(props) {
1249
+ return Object.fromEntries(Object.entries(props).map(([key, value]) => {
1250
+ if (value === void 0) return void 0;
1251
+ if (isCssVariableName(key)) return [key, asVar(value)];
1252
+ if (isKnownPropertyName(key)) return [camelToKebab(key), asKnownProp(value, key)];
1253
+ }).filter((v) => v !== void 0));
1254
+ }
1255
+
1256
+ //#endregion
1257
+ //#region src/selector.ts
1258
+ /**
1259
+ * Immutable CSS selector builder that handles nested selectors and CSS at-rules.
1260
+ * Uses the `&` character as a placeholder for parent selector substitution.
1261
+ *
1262
+ * @example
1263
+ * const selector = new MochiSelector(['.button'])
1264
+ * selector.extend('&:hover').cssSelector // '.button:hover'
1265
+ * selector.wrap('@media (min-width: 768px)').atRules // ['@media (min-width: 768px)']
1266
+ */
1267
+ var MochiSelector = class MochiSelector {
1268
+ /**
1269
+ * Creates a new MochiSelector instance.
1270
+ * @param cssSelectors - Array of CSS selectors (may contain `&` placeholders)
1271
+ * @param atRules - Array of full CSS at-rule strings e.g. `"@media (min-width: 768px)"`
1272
+ */
1273
+ constructor(cssSelectors = [], atRules = []) {
1274
+ this.cssSelectors = cssSelectors;
1275
+ this.atRules = atRules;
1276
+ }
1277
+ /**
1278
+ * Gets the combined CSS selector string.
1279
+ * Multiple selectors are joined with commas.
1280
+ * @returns The CSS selector, or "*" if no selectors are defined
1281
+ */
1282
+ get cssSelector() {
1283
+ if (this.cssSelectors.length === 0) return "*";
1284
+ return this.cssSelectors.join(", ");
1285
+ }
1286
+ /**
1287
+ * Substitutes all `&` placeholders with the given root selector.
1288
+ * @param root - The selector to replace `&` with
1289
+ * @returns A new MochiSelector with substituted selectors
1290
+ */
1291
+ substitute(root) {
1292
+ return new MochiSelector(this.cssSelectors.map((selector) => selector.replace(/&/g, root)), this.atRules);
1293
+ }
1294
+ /**
1295
+ * Extends this selector by nesting a child selector.
1296
+ * The `&` in the child selector is replaced with each parent selector.
1297
+ * @param child - The child selector pattern (must contain `&`)
1298
+ * @returns A new MochiSelector with the extended selectors
1299
+ * @example
1300
+ * new MochiSelector(['.btn']).extend('&:hover') // '.btn:hover'
1301
+ * new MochiSelector(['.btn']).extend('& .icon') // '.btn .icon'
1302
+ */
1303
+ extend(child) {
1304
+ if (!isNestedSelector(child)) return this;
1305
+ const children = MochiSelector.split(child);
1306
+ return new MochiSelector(this.cssSelectors.flatMap((parentSelector) => children.map((childSelector) => {
1307
+ return childSelector.replace(/&/g, parentSelector);
1308
+ })), this.atRules);
1309
+ }
1310
+ /**
1311
+ * Wraps this selector with a CSS at-rule.
1312
+ * @param atRule - The full at-rule string (e.g. `"@media (min-width: 768px)"`)
1313
+ * @returns A new MochiSelector with the added at-rule, or unchanged if not a known at-rule
1314
+ * @example
1315
+ * selector.wrap('@media (min-width: 768px)') // Adds media query
1316
+ * selector.wrap('@container sidebar (min-width: 300px)') // Adds container query
1317
+ */
1318
+ wrap(atRule) {
1319
+ if (!isAtRuleKey(atRule)) return this;
1320
+ return new MochiSelector(this.cssSelectors, [...this.atRules, atRule]);
1321
+ }
1322
+ /**
1323
+ * Splits a comma-separated selector string into individual selectors.
1324
+ * @param selector - The selector string to split
1325
+ * @returns Array of individual selector strings
1326
+ */
1327
+ static split(selector) {
1328
+ return [selector];
1329
+ }
1330
+ };
1331
+
1332
+ //#endregion
1333
+ //#region ../core/dist/index.mjs
1334
+ const hashBase = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";
1335
+ const base = 64;
1336
+ function numberToBase62(num, maxLength) {
1337
+ let out = "";
1338
+ while (num > 0 && out.length < (maxLength ?? Infinity)) {
1339
+ out = hashBase[num % base] + out;
1340
+ num = Math.floor(num / base);
1341
+ }
1342
+ return out.length > 0 ? out : "0";
1343
+ }
1344
+ function shortHash(input, length = 8) {
1345
+ let h = 5381;
1346
+ for (let i = 0; i < input.length; i++) h = h * 33 ^ input.charCodeAt(i);
1347
+ h >>>= 0;
1348
+ return numberToBase62(h, length);
1349
+ }
1350
+
1351
+ //#endregion
1352
+ //#region src/compare.ts
1353
+ /**
1354
+ * String comparison utilities for deterministic sorting.
1355
+ * Used internally to ensure consistent CSS output order.
1356
+ * @module compare
1357
+ */
1358
+ /**
1359
+ * Compares two strings lexicographically.
1360
+ */
1361
+ function compareString(a, b) {
1362
+ return a < b ? -1 : a === b ? 0 : 1;
1363
+ }
1364
+ /**
1365
+ * Compares two tuples by their first element (string key).
1366
+ * Useful for sorting Object.entries() results.
1367
+ */
1368
+ function compareStringKey(a, b) {
1369
+ return compareString(a[0], b[0]);
1370
+ }
1371
+ /**
1372
+ * Creates a comparator function for objects with a specific string property.
1373
+ * @param name - The property name to compare by
1374
+ * @returns A comparator function that compares objects by the specified property
1375
+ * @example
1376
+ * const items = [{ key: 'b' }, { key: 'a' }]
1377
+ * items.sort(stringPropComparator('key')) // [{ key: 'a' }, { key: 'b' }]
1378
+ */
1379
+ function stringPropComparator(name) {
1380
+ return (a, b) => compareString(a[name], b[name]);
1381
+ }
1382
+
1383
+ //#endregion
1384
+ //#region src/cssObject.ts
1385
+ /**
1386
+ * Represents a single CSS rule block with properties and a selector.
1387
+ * Handles conversion to CSS string format and hash generation.
1388
+ */
1389
+ var CssObjectSubBlock = class CssObjectSubBlock {
1390
+ /**
1391
+ * Creates a new CSS sub-block.
1392
+ * @param cssProps - Map of CSS property names (kebab-case) to values
1393
+ * @param selector - The selector this block applies to
1394
+ */
1395
+ constructor(cssProps, selector) {
1396
+ this.cssProps = cssProps;
1397
+ this.selector = selector;
1398
+ }
1399
+ /**
1400
+ * Computes a deterministic hash of this block's CSS content.
1401
+ * Used for generating unique class names.
1402
+ */
1403
+ get hash() {
1404
+ return shortHash(this.asCssString("&"));
1405
+ }
1406
+ /**
1407
+ * Converts this block to a CSS string.
1408
+ * Handles at-rule wrapping (media, container, supports, layer) if present.
1409
+ * Multiple at-rules are nested in order.
1410
+ * @param root - The root selector to substitute for `&`
1411
+ * @returns Formatted CSS string
1412
+ */
1413
+ asCssString(root) {
1414
+ const selector = this.selector.substitute(root);
1415
+ const atRules = selector.atRules;
1416
+ const innerIndent = " ".repeat(atRules.length);
1417
+ const props = Object.entries(this.cssProps).toSorted(compareStringKey).map(([k, v]) => `${innerIndent} ${k}: ${v};\n`).join("");
1418
+ let result = `${innerIndent}${selector.cssSelector} {\n${props}${innerIndent}}`;
1419
+ for (let i = atRules.length - 1; i >= 0; i--) {
1420
+ const outerIndent = " ".repeat(i);
1421
+ result = `${outerIndent}${atRules[i]} {\n${result}\n${outerIndent}}`;
1422
+ }
1423
+ return result;
1424
+ }
1425
+ /**
1426
+ * Parses StyleProps into an array of CSS sub-blocks.
1427
+ * Recursively processes nested selectors and media queries.
1428
+ * Output order is deterministic for consistent hash generation.
1429
+ *
1430
+ * @param props - The style properties to parse
1431
+ * @param selector - The parent selector context (defaults to `&`)
1432
+ * @returns Non-empty array of sub-blocks (main block first, then nested)
1433
+ */
1434
+ static fromProps(props, selector) {
1435
+ selector ??= new MochiSelector(["&"]);
1436
+ const cssProps = {};
1437
+ const propsToProcess = [];
1438
+ for (const [key, value] of Object.entries(props)) {
1439
+ if (value === void 0) continue;
1440
+ if (isCssVariableName(key)) {
1441
+ cssProps[key] = asVar(value);
1442
+ continue;
1443
+ }
1444
+ if (isKnownPropertyName(key)) {
1445
+ cssProps[camelToKebab(key)] = asKnownProp(value, key);
1446
+ continue;
1447
+ }
1448
+ if (isNestedSelector(key)) {
1449
+ propsToProcess.push({
1450
+ key,
1451
+ props: value,
1452
+ selector: selector.extend(key)
1453
+ });
1454
+ continue;
1455
+ }
1456
+ if (isAtRuleKey(key)) {
1457
+ propsToProcess.push({
1458
+ key,
1459
+ props: value,
1460
+ selector: selector.wrap(key)
1461
+ });
1462
+ continue;
1463
+ }
1464
+ if (process.env["NODE_ENV"] !== "production") console.warn(`[mochi-css] Unknown style property "${key}" will be ignored`);
1465
+ }
1466
+ return [new CssObjectSubBlock(cssProps, selector), ...propsToProcess.toSorted(stringPropComparator("key")).flatMap(({ props: props$1, selector: selector$1 }) => CssObjectSubBlock.fromProps(props$1, selector$1))];
1467
+ }
1468
+ };
1469
+ /**
1470
+ * Represents an abstract CSS block definition.
1471
+ * Contains one or more sub-blocks for nested selectors and media queries.
1472
+ */
1473
+ var CssObjectBlock = class {
1474
+ /** The generated unique class name for this block */
1475
+ className;
1476
+ /** All sub-blocks (main styles and nested/media rules) */
1477
+ subBlocks = [];
1478
+ /**
1479
+ * Creates a new CSS block from style properties.
1480
+ * Generates a unique class name based on the content hash, or uses the provided class name.
1481
+ * @param styles - The style properties to compile
1482
+ * @param className - Optional stable class name; if omitted, a content-hash-based name is generated
1483
+ */
1484
+ constructor(styles, className) {
1485
+ const blocks = CssObjectSubBlock.fromProps(styles);
1486
+ this.className = className ?? "c" + shortHash(blocks.map((b) => b.hash).join("+"));
1487
+ this.subBlocks = blocks;
1488
+ }
1489
+ /**
1490
+ * Gets the CSS class selector for this block.
1491
+ */
1492
+ get selector() {
1493
+ return `.${this.className}`;
1494
+ }
1495
+ /**
1496
+ * Converts style block to a CSS string.
1497
+ * @param root - The root selector to scope styles to
1498
+ * @returns Complete CSS string for this block
1499
+ */
1500
+ asCssString(root) {
1501
+ return this.subBlocks.map((b) => b.asCssString(new MochiSelector([root]).extend(`&.${this.className}`).cssSelector)).join("\n\n");
1502
+ }
1503
+ };
1504
+ /**
1505
+ * Complete CSS object representation with main and variant styles.
1506
+ *
1507
+ * @template V - The variant definitions type
1508
+ *
1509
+ * @example
1510
+ * const obj = new CSSObject({
1511
+ * color: 'blue',
1512
+ * variants: {
1513
+ * size: {
1514
+ * small: { fontSize: 12 },
1515
+ * large: { fontSize: 18 }
1516
+ * }
1517
+ * },
1518
+ * defaultVariants: { size: 'small' }
1519
+ * })
1520
+ * obj.asCssString() // Returns complete CSS with all variants
1521
+ */
1522
+ var CSSObject = class {
1523
+ /** The main style block (non-variant styles) */
1524
+ mainBlock;
1525
+ /** Compiled blocks for each variant option */
1526
+ variantBlocks;
1527
+ /** Default variant selections */
1528
+ variantDefaults;
1529
+ /** Compound variant conditions and their parsed sub-blocks */
1530
+ compoundVariants;
1531
+ /**
1532
+ * Creates a new CSSObject from style props.
1533
+ * Compiles main styles and all variant options into CSS blocks.
1534
+ * @param props - Base style props plus variant definitions
1535
+ * @param props.variants - Named variant groups, each mapping variant values to style props
1536
+ * @param props.defaultVariants - Default value for each variant when none is provided at runtime
1537
+ * @param props.compoundVariants - Style props applied when a specific combination of variants is active
1538
+ * @param className - Optional stable class name for the main block
1539
+ */
1540
+ constructor({ variants, defaultVariants, compoundVariants,...props }, className) {
1541
+ this.mainBlock = new CssObjectBlock(props, className);
1542
+ this.variantBlocks = {};
1543
+ this.variantDefaults = defaultVariants ?? {};
1544
+ this.compoundVariants = [];
1545
+ if (variants) for (const variantGroupName in variants) {
1546
+ this.variantBlocks[variantGroupName] = {};
1547
+ const variantGroup = variants[variantGroupName];
1548
+ for (const variantItemName in variantGroup) this.variantBlocks[variantGroupName][variantItemName] = new CssObjectBlock(variantGroup[variantItemName] ?? {});
1549
+ }
1550
+ if (compoundVariants) for (const compound of compoundVariants) {
1551
+ const { css: styles,...conditions } = compound;
1552
+ this.compoundVariants.push({
1553
+ conditions,
1554
+ subBlocks: CssObjectSubBlock.fromProps(styles)
1555
+ });
1556
+ }
1557
+ }
1558
+ /**
1559
+ * Serializes the entire CSS object to a CSS string.
1560
+ * Outputs the main block first, then all variant blocks in sorted order.
1561
+ * @returns Complete CSS string ready for injection into a stylesheet
1562
+ */
1563
+ asCssString() {
1564
+ return [
1565
+ this.mainBlock.asCssString(""),
1566
+ ...Object.entries(this.variantBlocks).toSorted(compareStringKey).flatMap(([_, b]) => Object.entries(b).toSorted(compareStringKey)).map(([_, b]) => b.asCssString(this.mainBlock.selector)),
1567
+ ...this.compoundVariants.flatMap(({ conditions, subBlocks }) => {
1568
+ const selectorParts = [];
1569
+ for (const [variantName, optionName] of Object.entries(conditions).toSorted(compareStringKey)) {
1570
+ const selector = this.variantBlocks[variantName]?.[optionName]?.selector;
1571
+ if (selector === void 0) return [];
1572
+ selectorParts.push(selector);
1573
+ }
1574
+ const combinedSelector = `${this.mainBlock.selector}${selectorParts.join("")}`;
1575
+ return subBlocks.map((b) => b.asCssString(combinedSelector));
1576
+ })
1577
+ ].join("\n\n");
1578
+ }
1579
+ };
1580
+
1581
+ //#endregion
1582
+ //#region src/css.ts
1583
+ const MOCHI_CSS_TYPEOF = Symbol.for("mochi-css.MochiCSS");
1584
+ function isMochiCSS(value) {
1585
+ return typeof value === "object" && value !== null && value["$$typeof"] === MOCHI_CSS_TYPEOF;
1586
+ }
1587
+ /**
1588
+ * Runtime representation of a CSS style definition with variant support.
1589
+ * Holds generated class names and provides methods to compute the final
1590
+ * className string based on selected variants.
1591
+ *
1592
+ * @template V - The variant definitions type mapping variant names to their options
1593
+ *
1594
+ * @example
1595
+ * const styles = MochiCSS.from(new CSSObject({
1596
+ * color: 'blue',
1597
+ * variants: { size: { small: { fontSize: 12 }, large: { fontSize: 18 } } }
1598
+ * }))
1599
+ * styles.variant({ size: 'large' }) // Returns combined class names
1600
+ */
1601
+ var MochiCSS = class MochiCSS {
1602
+ $$typeof = MOCHI_CSS_TYPEOF;
1603
+ /**
1604
+ * Creates a new MochiCSS instance.
1605
+ * @param classNames - Base class names to always include
1606
+ * @param variantClassNames - Mapping of variant names to option class names
1607
+ * @param defaultVariants - Default variant selections when not specified
1608
+ */
1609
+ constructor(classNames, variantClassNames, defaultVariants) {
1610
+ this.classNames = classNames;
1611
+ this.variantClassNames = variantClassNames;
1612
+ this.defaultVariants = defaultVariants;
1613
+ }
1614
+ /**
1615
+ * Computes the final className string based on variant selections.
1616
+ * Compound variants are handled purely via CSS combined selectors,
1617
+ * so no runtime matching is needed here.
1618
+ * @param props - Variant selections
1619
+ * @returns Combined className string for use in components
1620
+ */
1621
+ variant(props) {
1622
+ const keys = new Set([...Object.keys(props), ...Object.keys(this.defaultVariants)].filter((k) => k in this.variantClassNames));
1623
+ return (0, clsx.default)(this.classNames, ...keys.values().map((k) => {
1624
+ const variantGroup = this.variantClassNames[k];
1625
+ if (!variantGroup) return false;
1626
+ const variantKey = ((k in props ? props[k] : void 0) ?? this.defaultVariants[k])?.toString();
1627
+ if (variantKey == null) return false;
1628
+ const selectedClassname = variantGroup[variantKey];
1629
+ if (selectedClassname !== void 0) return selectedClassname;
1630
+ const defaultKey = this.defaultVariants[k];
1631
+ if (defaultKey == null) return false;
1632
+ return variantGroup[defaultKey.toString()];
1633
+ }));
1634
+ }
1635
+ /**
1636
+ * Returns the CSS selector for this style (e.g. `.abc123`).
1637
+ * Useful for targeting this component from another style.
1638
+ */
1639
+ get selector() {
1640
+ return this.classNames.map((n) => `.${n}`).join();
1641
+ }
1642
+ toString() {
1643
+ return this.selector;
1644
+ }
1645
+ /**
1646
+ * Creates a MochiCSS instance from a CSSObject.
1647
+ * Extracts class names from the compiled CSS blocks.
1648
+ * @template V - The variant definitions type
1649
+ * @param object - The compiled CSSObject to extract from
1650
+ * @returns A new MochiCSS instance with the extracted class names
1651
+ */
1652
+ static from(object) {
1653
+ return new MochiCSS([object.mainBlock.className], Object.fromEntries(Object.entries(object.variantBlocks).map(([key, variantOptions]) => {
1654
+ return [key, Object.fromEntries(Object.entries(variantOptions).map(([optionKey, block]) => {
1655
+ return [optionKey, block.className];
1656
+ }))];
1657
+ })), object.variantDefaults);
1658
+ }
1659
+ };
1660
+ /**
1661
+ * Creates a CSS style definition.
1662
+ * The primary API for defining styles in Mochi-CSS.
1663
+ *
1664
+ * @template V - Tuple of variant definition types
1665
+ * @param props - One or more style objects or existing MochiCSS instances to merge
1666
+ * @returns A MochiCSS instance with all styles and variants combined
1667
+ *
1668
+ * @example
1669
+ * // Simple usage
1670
+ * const button = css({ padding: 8, borderRadius: 4 })
1671
+ *
1672
+ * @example
1673
+ * // With variants
1674
+ * const button = css({
1675
+ * padding: 8,
1676
+ * variants: {
1677
+ * size: {
1678
+ * small: { padding: 4 },
1679
+ * large: { padding: 16 }
1680
+ * }
1681
+ * },
1682
+ * defaultVariants: { size: 'small' }
1683
+ * })
1684
+ * button.variant({ size: 'large' }) // Get class names for large size
1685
+ *
1686
+ * @example
1687
+ * // Merging multiple styles
1688
+ * const combined = css(baseStyles, additionalStyles)
1689
+ */
1690
+ const emptyMochiCSS = new MochiCSS([], {}, {});
1691
+ /**
1692
+ * Merges multiple MochiCSS instances into a single one, combining their
1693
+ * class names, variant class names, and default variants.
1694
+ * @param instances - The MochiCSS instances to merge
1695
+ * @returns A new MochiCSS instance with all styles combined
1696
+ */
1697
+ function mergeMochiCss(instances) {
1698
+ if (instances.length === 0) return emptyMochiCSS;
1699
+ return new MochiCSS(instances.flatMap((c) => c.classNames), instances.reduce((a, b) => Object.assign(a, b.variantClassNames), {}), instances.reduce((a, b) => Object.assign(a, b.defaultVariants), {}));
1700
+ }
1701
+ function css(...props) {
1702
+ const cssToMerge = [];
1703
+ for (const p of props) {
1704
+ if (p == null) continue;
1705
+ if (typeof p === "string") {
1706
+ cssToMerge.push(new MochiCSS([p], {}, {}));
1707
+ continue;
1708
+ }
1709
+ if (typeof p !== "object") continue;
1710
+ if (p instanceof MochiCSS) cssToMerge.push(p);
1711
+ else cssToMerge.push(MochiCSS.from(new CSSObject(p)));
1712
+ }
1713
+ return mergeMochiCss(cssToMerge);
1714
+ }
1715
+
1716
+ //#endregion
1717
+ //#region src/keyframesObject.ts
1718
+ var KeyframesObject = class KeyframesObject {
1719
+ name;
1720
+ body;
1721
+ constructor(stops) {
1722
+ this.body = KeyframesObject.generateBody(stops);
1723
+ this.name = "kf" + shortHash(this.body);
1724
+ }
1725
+ asCssString() {
1726
+ return `@keyframes ${this.name} {\n${this.body}\n}`;
1727
+ }
1728
+ static generateBody(stops) {
1729
+ return Object.entries(stops).toSorted(compareStringKey).map(([stopKey, props]) => {
1730
+ const cssProps = cssFromProps(props);
1731
+ return ` ${stopKey} {\n${Object.entries(cssProps).toSorted(compareStringKey).map(([k, v]) => ` ${k}: ${v};`).join("\n")}\n }`;
1732
+ }).join("\n\n");
1733
+ }
1734
+ };
1735
+
1736
+ //#endregion
1737
+ //#region src/keyframes.ts
1738
+ var MochiKeyframes = class MochiKeyframes {
1739
+ constructor(name) {
1740
+ this.name = name;
1741
+ }
1742
+ toString() {
1743
+ return this.name;
1744
+ }
1745
+ get value() {
1746
+ return this.name;
1747
+ }
1748
+ static from(object) {
1749
+ return new MochiKeyframes(object.name);
1750
+ }
1751
+ };
1752
+ function keyframes(stops) {
1753
+ return MochiKeyframes.from(new KeyframesObject(stops));
1754
+ }
1755
+
1756
+ //#endregion
1757
+ //#region src/globalCssObject.ts
1758
+ /**
1759
+ * CSS object model for global (non-scoped) styles.
1760
+ * Accepts a map of CSS selectors to style objects and serializes them
1761
+ * as plain CSS rules without class name scoping.
1762
+ *
1763
+ * @example
1764
+ * const obj = new GlobalCssObject({
1765
+ * body: { margin: 0 },
1766
+ * 'h1': { fontSize: 32 },
1767
+ * })
1768
+ * obj.asCssString() // "body {\n margin: 0;\n}\n\nh1 {\n font-size: 32px;\n}"
1769
+ */
1770
+ var GlobalCssObject = class {
1771
+ rules;
1772
+ constructor(styles) {
1773
+ this.rules = Object.entries(styles).toSorted(compareStringKey).map(([selector, props]) => ({
1774
+ selector,
1775
+ subBlocks: [...CssObjectSubBlock.fromProps(props)]
1776
+ }));
1777
+ }
1778
+ asCssString() {
1779
+ return this.rules.flatMap(({ selector, subBlocks }) => subBlocks.map((b) => b.asCssString(selector))).join("\n\n");
1780
+ }
1781
+ };
1782
+
1783
+ //#endregion
1784
+ //#region src/globalCss.ts
1785
+ /**
1786
+ * Creates a global CSS definition.
1787
+ * Styles are not scoped to any class — they apply to all matching elements.
1788
+ *
1789
+ * @param styles - Map of CSS selectors to style objects
1790
+ *
1791
+ * @example
1792
+ * globalCss({
1793
+ * 'body': { margin: 0, padding: 0 },
1794
+ * '*, *::before, *::after': { boxSizing: 'border-box' },
1795
+ * })
1796
+ */
1797
+ function globalCss(styles) {}
1798
+
1799
+ //#endregion
1800
+ //#region src/query.ts
1801
+ /**
1802
+ * Wraps a condition in parentheses if not already wrapped.
1803
+ */
1804
+ function wrapParens(condition) {
1805
+ const trimmed = condition.trim();
1806
+ if (trimmed.startsWith("(") && trimmed.endsWith(")")) return trimmed;
1807
+ return `(${trimmed})`;
1808
+ }
1809
+ function mediaFn(condition) {
1810
+ return `@media ${wrapParens(condition)}`;
1811
+ }
1812
+ mediaFn.and = function(...conditions) {
1813
+ return `@media ${conditions.map(wrapParens).join(" and ")}`;
1814
+ };
1815
+ mediaFn.or = function(...conditions) {
1816
+ return `@media ${conditions.map(wrapParens).join(", ")}`;
1817
+ };
1818
+ Object.defineProperties(mediaFn, {
1819
+ dark: {
1820
+ get: () => "@media (prefers-color-scheme: dark)",
1821
+ enumerable: true
1822
+ },
1823
+ light: {
1824
+ get: () => "@media (prefers-color-scheme: light)",
1825
+ enumerable: true
1826
+ },
1827
+ motion: {
1828
+ get: () => "@media (prefers-reduced-motion: no-preference)",
1829
+ enumerable: true
1830
+ },
1831
+ print: {
1832
+ get: () => "@media print",
1833
+ enumerable: true
1834
+ }
1835
+ });
1836
+ /** Helper for constructing `@media` at-rule keys. */
1837
+ const media = mediaFn;
1838
+ function containerFn(condition) {
1839
+ return `@container ${wrapParens(condition)}`;
1840
+ }
1841
+ containerFn.named = function(name, condition) {
1842
+ return `@container ${name} ${wrapParens(condition)}`;
1843
+ };
1844
+ /** Helper for constructing `@container` at-rule keys. */
1845
+ const container = containerFn;
1846
+ function supportsFn(condition) {
1847
+ return `@supports ${wrapParens(condition)}`;
1848
+ }
1849
+ supportsFn.not = function(condition) {
1850
+ return `@supports not ${wrapParens(condition)}`;
1851
+ };
1852
+ supportsFn.and = function(...conditions) {
1853
+ return `@supports ${conditions.map(wrapParens).join(" and ")}`;
1854
+ };
1855
+ supportsFn.or = function(...conditions) {
1856
+ return `@supports ${conditions.map(wrapParens).join(" or ")}`;
1857
+ };
1858
+ /** Helper for constructing `@supports` at-rule keys. */
1859
+ const supports = supportsFn;
1860
+
1861
+ //#endregion
1862
+ Object.defineProperty(exports, 'CSSObject', {
1863
+ enumerable: true,
1864
+ get: function () {
1865
+ return CSSObject;
1866
+ }
1867
+ });
1868
+ Object.defineProperty(exports, 'CssObjectBlock', {
1869
+ enumerable: true,
1870
+ get: function () {
1871
+ return CssObjectBlock;
1872
+ }
1873
+ });
1874
+ Object.defineProperty(exports, 'CssObjectSubBlock', {
1875
+ enumerable: true,
1876
+ get: function () {
1877
+ return CssObjectSubBlock;
1878
+ }
1879
+ });
1880
+ Object.defineProperty(exports, 'GlobalCssObject', {
1881
+ enumerable: true,
1882
+ get: function () {
1883
+ return GlobalCssObject;
1884
+ }
1885
+ });
1886
+ Object.defineProperty(exports, 'KeyframesObject', {
1887
+ enumerable: true,
1888
+ get: function () {
1889
+ return KeyframesObject;
1890
+ }
1891
+ });
1892
+ Object.defineProperty(exports, 'MochiCSS', {
1893
+ enumerable: true,
1894
+ get: function () {
1895
+ return MochiCSS;
1896
+ }
1897
+ });
1898
+ Object.defineProperty(exports, 'MochiKeyframes', {
1899
+ enumerable: true,
1900
+ get: function () {
1901
+ return MochiKeyframes;
1902
+ }
1903
+ });
1904
+ Object.defineProperty(exports, 'MochiSelector', {
1905
+ enumerable: true,
1906
+ get: function () {
1907
+ return MochiSelector;
1908
+ }
1909
+ });
1910
+ Object.defineProperty(exports, 'Token', {
1911
+ enumerable: true,
1912
+ get: function () {
1913
+ return Token;
1914
+ }
1915
+ });
1916
+ Object.defineProperty(exports, '__toESM', {
1917
+ enumerable: true,
1918
+ get: function () {
1919
+ return __toESM;
1920
+ }
1921
+ });
1922
+ Object.defineProperty(exports, 'camelToKebab', {
1923
+ enumerable: true,
1924
+ get: function () {
1925
+ return camelToKebab;
1926
+ }
1927
+ });
1928
+ Object.defineProperty(exports, 'container', {
1929
+ enumerable: true,
1930
+ get: function () {
1931
+ return container;
1932
+ }
1933
+ });
1934
+ Object.defineProperty(exports, 'createToken', {
1935
+ enumerable: true,
1936
+ get: function () {
1937
+ return createToken;
1938
+ }
1939
+ });
1940
+ Object.defineProperty(exports, 'css', {
1941
+ enumerable: true,
1942
+ get: function () {
1943
+ return css;
1944
+ }
1945
+ });
1946
+ Object.defineProperty(exports, 'cssFromProps', {
1947
+ enumerable: true,
1948
+ get: function () {
1949
+ return cssFromProps;
1950
+ }
1951
+ });
1952
+ Object.defineProperty(exports, 'globalCss', {
1953
+ enumerable: true,
1954
+ get: function () {
1955
+ return globalCss;
1956
+ }
1957
+ });
1958
+ Object.defineProperty(exports, 'isAtRuleKey', {
1959
+ enumerable: true,
1960
+ get: function () {
1961
+ return isAtRuleKey;
1962
+ }
1963
+ });
1964
+ Object.defineProperty(exports, 'isMochiCSS', {
1965
+ enumerable: true,
1966
+ get: function () {
1967
+ return isMochiCSS;
1968
+ }
1969
+ });
1970
+ Object.defineProperty(exports, 'kebabToCamel', {
1971
+ enumerable: true,
1972
+ get: function () {
1973
+ return kebabToCamel;
1974
+ }
1975
+ });
1976
+ Object.defineProperty(exports, 'keyframes', {
1977
+ enumerable: true,
1978
+ get: function () {
1979
+ return keyframes;
1980
+ }
1981
+ });
1982
+ Object.defineProperty(exports, 'media', {
1983
+ enumerable: true,
1984
+ get: function () {
1985
+ return media;
1986
+ }
1987
+ });
1988
+ Object.defineProperty(exports, 'mergeMochiCss', {
1989
+ enumerable: true,
1990
+ get: function () {
1991
+ return mergeMochiCss;
1992
+ }
1993
+ });
1994
+ Object.defineProperty(exports, 'numberToBase62', {
1995
+ enumerable: true,
1996
+ get: function () {
1997
+ return numberToBase62;
1998
+ }
1999
+ });
2000
+ Object.defineProperty(exports, 'shortHash', {
2001
+ enumerable: true,
2002
+ get: function () {
2003
+ return shortHash;
2004
+ }
2005
+ });
2006
+ Object.defineProperty(exports, 'supports', {
2007
+ enumerable: true,
2008
+ get: function () {
2009
+ return supports;
2010
+ }
2011
+ });