@styleframe/core 3.4.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/constants.d.ts +2 -0
  3. package/dist/constants.d.ts.map +1 -0
  4. package/dist/defaults.d.ts +11 -0
  5. package/dist/defaults.d.ts.map +1 -0
  6. package/dist/defaults.test.d.ts +2 -0
  7. package/dist/defaults.test.d.ts.map +1 -0
  8. package/dist/index.d.ts +7 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/styleframe.d.ts +20 -638
  11. package/dist/styleframe.d.ts.map +1 -0
  12. package/dist/styleframe.js +825 -970
  13. package/dist/styleframe.umd.cjs +1 -1
  14. package/dist/tokens/atRule.d.ts +5 -0
  15. package/dist/tokens/atRule.d.ts.map +1 -0
  16. package/dist/tokens/atRule.test.d.ts +2 -0
  17. package/dist/tokens/atRule.test.d.ts.map +1 -0
  18. package/dist/tokens/css.d.ts +3 -0
  19. package/dist/tokens/css.d.ts.map +1 -0
  20. package/dist/tokens/css.test.d.ts +2 -0
  21. package/dist/tokens/css.test.d.ts.map +1 -0
  22. package/dist/tokens/declarations.d.ts +4 -0
  23. package/dist/tokens/declarations.d.ts.map +1 -0
  24. package/dist/tokens/declarations.test.d.ts +2 -0
  25. package/dist/tokens/declarations.test.d.ts.map +1 -0
  26. package/dist/tokens/index.d.ts +13 -0
  27. package/dist/tokens/index.d.ts.map +1 -0
  28. package/dist/tokens/modifier.d.ts +4 -0
  29. package/dist/tokens/modifier.d.ts.map +1 -0
  30. package/dist/tokens/modifier.test.d.ts +2 -0
  31. package/dist/tokens/modifier.test.d.ts.map +1 -0
  32. package/dist/tokens/recipe.d.ts +208 -0
  33. package/dist/tokens/recipe.d.ts.map +1 -0
  34. package/dist/tokens/recipe.test.d.ts +2 -0
  35. package/dist/tokens/recipe.test.d.ts.map +1 -0
  36. package/dist/tokens/ref.d.ts +3 -0
  37. package/dist/tokens/ref.d.ts.map +1 -0
  38. package/dist/tokens/ref.test.d.ts +2 -0
  39. package/dist/tokens/ref.test.d.ts.map +1 -0
  40. package/dist/tokens/resolve.d.ts +28 -0
  41. package/dist/tokens/resolve.d.ts.map +1 -0
  42. package/dist/tokens/resolve.test.d.ts +2 -0
  43. package/dist/tokens/resolve.test.d.ts.map +1 -0
  44. package/dist/tokens/root.d.ts +3 -0
  45. package/dist/tokens/root.d.ts.map +1 -0
  46. package/dist/tokens/root.test.d.ts +2 -0
  47. package/dist/tokens/root.test.d.ts.map +1 -0
  48. package/dist/tokens/root.usage.test.d.ts +2 -0
  49. package/dist/tokens/root.usage.test.d.ts.map +1 -0
  50. package/dist/tokens/selector.d.ts +3 -0
  51. package/dist/tokens/selector.d.ts.map +1 -0
  52. package/dist/tokens/selector.test.d.ts +2 -0
  53. package/dist/tokens/selector.test.d.ts.map +1 -0
  54. package/dist/tokens/theme.d.ts +3 -0
  55. package/dist/tokens/theme.d.ts.map +1 -0
  56. package/dist/tokens/theme.test.d.ts +2 -0
  57. package/dist/tokens/theme.test.d.ts.map +1 -0
  58. package/dist/tokens/utility.d.ts +6 -0
  59. package/dist/tokens/utility.d.ts.map +1 -0
  60. package/dist/tokens/utility.test.d.ts +2 -0
  61. package/dist/tokens/utility.test.d.ts.map +1 -0
  62. package/dist/tokens/variable.d.ts +5 -0
  63. package/dist/tokens/variable.d.ts.map +1 -0
  64. package/dist/tokens/variable.test.d.ts +2 -0
  65. package/dist/tokens/variable.test.d.ts.map +1 -0
  66. package/dist/typeGuards.d.ts +24 -0
  67. package/dist/typeGuards.d.ts.map +1 -0
  68. package/dist/typeGuards.test.d.ts +2 -0
  69. package/dist/typeGuards.test.d.ts.map +1 -0
  70. package/dist/types/declarations.d.ts +21 -0
  71. package/dist/types/declarations.d.ts.map +1 -0
  72. package/dist/types/index.d.ts +5 -0
  73. package/dist/types/index.d.ts.map +1 -0
  74. package/dist/types/minify.d.ts +9 -0
  75. package/dist/types/minify.d.ts.map +1 -0
  76. package/dist/types/options.d.ts +25 -0
  77. package/dist/types/options.d.ts.map +1 -0
  78. package/dist/types/tokens.d.ts +156 -0
  79. package/dist/types/tokens.d.ts.map +1 -0
  80. package/dist/utils/capitalizeFirst.d.ts +6 -0
  81. package/dist/utils/capitalizeFirst.d.ts.map +1 -0
  82. package/dist/utils/cssSelector.d.ts +6 -0
  83. package/dist/utils/cssSelector.d.ts.map +1 -0
  84. package/dist/utils/cssSelector.test.d.ts +2 -0
  85. package/dist/utils/cssSelector.test.d.ts.map +1 -0
  86. package/dist/utils/deepClone.d.ts +23 -0
  87. package/dist/utils/deepClone.d.ts.map +1 -0
  88. package/dist/utils/generateRandomId.d.ts +9 -0
  89. package/dist/utils/generateRandomId.d.ts.map +1 -0
  90. package/dist/utils/getters.d.ts +5 -0
  91. package/dist/utils/getters.d.ts.map +1 -0
  92. package/dist/utils/getters.test.d.ts +2 -0
  93. package/dist/utils/getters.test.d.ts.map +1 -0
  94. package/dist/utils/hash.d.ts +9 -0
  95. package/dist/utils/hash.d.ts.map +1 -0
  96. package/dist/utils/hash.test.d.ts +2 -0
  97. package/dist/utils/hash.test.d.ts.map +1 -0
  98. package/dist/utils/index.d.ts +9 -0
  99. package/dist/utils/index.d.ts.map +1 -0
  100. package/dist/utils/isTokenEqual.d.ts +3 -0
  101. package/dist/utils/isTokenEqual.d.ts.map +1 -0
  102. package/dist/utils/isTokenEqual.test.d.ts +2 -0
  103. package/dist/utils/isTokenEqual.test.d.ts.map +1 -0
  104. package/dist/utils/merge.d.ts +8 -0
  105. package/dist/utils/merge.d.ts.map +1 -0
  106. package/dist/utils/merge.test.d.ts +2 -0
  107. package/dist/utils/merge.test.d.ts.map +1 -0
  108. package/package.json +8 -11
@@ -0,0 +1,21 @@
1
+ import { Properties as CSSProperties } from 'csstype';
2
+ import { createAtRuleFunction, createCssFunction, createKeyframesFunction, createMediaFunction, createRefFunction, createSelectorFunction, createVariableFunction } from '../tokens';
3
+ import { ContainerInput, TokenValue } from './tokens';
4
+ type CSSValueWithReference<T> = T extends string | number | undefined ? T | TokenValue : T extends object ? CSSValueWithReference<T> : T | TokenValue;
5
+ export type DeclarationsBlock = {
6
+ [K in keyof CSSProperties]: CSSValueWithReference<CSSProperties[K]>;
7
+ } & {
8
+ [key: string]: CSSValueWithReference<CSSProperties[keyof CSSProperties]> | DeclarationsBlock | ContainerInput;
9
+ };
10
+ export type DeclarationsCallbackContext = {
11
+ variable: ReturnType<typeof createVariableFunction>;
12
+ selector: ReturnType<typeof createSelectorFunction>;
13
+ atRule: ReturnType<typeof createAtRuleFunction>;
14
+ keyframes: ReturnType<typeof createKeyframesFunction>;
15
+ media: ReturnType<typeof createMediaFunction>;
16
+ ref: ReturnType<typeof createRefFunction>;
17
+ css: ReturnType<typeof createCssFunction>;
18
+ };
19
+ export type DeclarationsCallback<Context extends DeclarationsCallbackContext = DeclarationsCallbackContext> = (context: Context) => DeclarationsBlock | void;
20
+ export {};
21
+ //# sourceMappingURL=declarations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"declarations.d.ts","sourceRoot":"","sources":["../../src/types/declarations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAK,EACX,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3D,KAAK,qBAAqB,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,GAClE,CAAC,GAAG,UAAU,GACd,CAAC,SAAS,MAAM,GACf,qBAAqB,CAAC,CAAC,CAAC,GACxB,CAAC,GAAG,UAAU,CAAC;AAGnB,MAAM,MAAM,iBAAiB,GAAG;KAC9B,CAAC,IAAI,MAAM,aAAa,GAAG,qBAAqB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CACnE,GAAG;IAGH,CAAC,GAAG,EAAE,MAAM,GACT,qBAAqB,CAAC,aAAa,CAAC,MAAM,aAAa,CAAC,CAAC,GACzD,iBAAiB,GACjB,cAAc,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;IACpD,QAAQ,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;IACpD,MAAM,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAChD,SAAS,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IACtD,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAC9C,GAAG,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC1C,GAAG,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAC/B,OAAO,SAAS,2BAA2B,GAAG,2BAA2B,IACtE,CAAC,OAAO,EAAE,OAAO,KAAK,iBAAiB,GAAG,IAAI,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './declarations';
2
+ export * from './minify';
3
+ export * from './options';
4
+ export * from './tokens';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type ShorteningMap = {
2
+ /** Property name shortening: e.g. "margin-top" -> "mt" */
3
+ p: Record<string, string>;
4
+ /** Value shortening: e.g. "primary" -> "p" */
5
+ v: Record<string, string>;
6
+ /** Modifier shortening: e.g. "hover" -> "h" */
7
+ m: Record<string, string>;
8
+ };
9
+ //# sourceMappingURL=minify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minify.d.ts","sourceRoot":"","sources":["../../src/types/minify.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC3B,0DAA0D;IAC1D,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,8CAA8C;IAC9C,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,+CAA+C;IAC/C,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,25 @@
1
+ export type VariableNameFn = (options: {
2
+ name: string;
3
+ }) => string;
4
+ export interface UtilitySelectorOptions {
5
+ name: string;
6
+ value: string;
7
+ modifiers: string[];
8
+ }
9
+ export type UtilitySelectorFn = (options: UtilitySelectorOptions) => string;
10
+ export type ThemeSelectorFn = (options: {
11
+ name: string;
12
+ }) => string;
13
+ export type StyleframeOptions = {
14
+ indent?: string;
15
+ variables?: {
16
+ name?: VariableNameFn;
17
+ };
18
+ utilities?: {
19
+ selector?: UtilitySelectorFn;
20
+ };
21
+ themes?: {
22
+ selector?: ThemeSelectorFn;
23
+ };
24
+ };
25
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/types/options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,sBAAsB,KAAK,MAAM,CAAC;AAE5E,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,cAAc,CAAC;KACtB,CAAC;IACF,SAAS,CAAC,EAAE;QACX,QAAQ,CAAC,EAAE,iBAAiB,CAAC;KAC7B,CAAC;IACF,MAAM,CAAC,EAAE;QACR,QAAQ,CAAC,EAAE,eAAe,CAAC;KAC3B,CAAC;CACF,CAAC"}
@@ -0,0 +1,156 @@
1
+ import { DeclarationsBlock, DeclarationsCallback, DeclarationsCallbackContext } from './declarations';
2
+ export type Variable<Name extends string = string> = {
3
+ type: "variable";
4
+ id: string;
5
+ parentId?: string;
6
+ name: Name;
7
+ value: TokenValue;
8
+ };
9
+ export type Reference<Name extends string = string> = {
10
+ type: "reference";
11
+ name: Name;
12
+ fallback?: TokenValue;
13
+ };
14
+ export type Selector = {
15
+ type: "selector";
16
+ id: string;
17
+ parentId?: string;
18
+ query: string;
19
+ declarations: DeclarationsBlock;
20
+ variables: Variable[];
21
+ children: ContainerChild[];
22
+ _exportName?: string;
23
+ };
24
+ export type AtRule = {
25
+ type: "at-rule";
26
+ id: string;
27
+ parentId?: string;
28
+ identifier: string;
29
+ rule: string;
30
+ declarations: DeclarationsBlock;
31
+ variables: Variable[];
32
+ children: ContainerChild[];
33
+ };
34
+ export type CSS = {
35
+ type: "css";
36
+ value: TokenValue[];
37
+ };
38
+ export type UtilityAutogenerateFn = (value: TokenValue) => Record<string, TokenValue>;
39
+ export type UtilityFactory<Name extends string = string> = {
40
+ type: "utility";
41
+ name: Name;
42
+ factory: UtilityCallbackFn;
43
+ values: Array<{
44
+ key: string;
45
+ value: TokenValue;
46
+ modifiers: string[];
47
+ }>;
48
+ autogenerate: UtilityAutogenerateFn;
49
+ namespace?: string | string[];
50
+ create: UtilityCreatorFn;
51
+ };
52
+ export type Utility<Name extends string = string> = {
53
+ type: "utility";
54
+ id: string;
55
+ parentId?: string;
56
+ name: Name;
57
+ value: string;
58
+ declarations: DeclarationsBlock;
59
+ variables: Variable[];
60
+ children: ContainerChild[];
61
+ modifiers: string[];
62
+ };
63
+ export type UtilityCallbackFn = DeclarationsCallback<DeclarationsCallbackContext & {
64
+ value: TokenValue;
65
+ }>;
66
+ export type UtilityCreatorFn = (values: Record<string, TokenValue> | TokenValue[], modifiers?: (ModifierFactory | ModifierFactory[])[]) => void;
67
+ export type ModifierCallbackFn = DeclarationsCallback<DeclarationsCallbackContext & Pick<Utility, "declarations" | "variables" | "children">>;
68
+ export type ModifierFactory = {
69
+ type: "modifier";
70
+ key: string[];
71
+ factory: ModifierCallbackFn;
72
+ };
73
+ export type ModifierDeclarationsBlock = Record<string, TokenValue>;
74
+ export type VariantDeclarationsValue = TokenValue | ModifierDeclarationsBlock;
75
+ export type VariantDeclarationsBlock = Record<string, VariantDeclarationsValue>;
76
+ export type VariantsBase = Record<string, Record<string, VariantDeclarationsBlock>>;
77
+ export type RuntimeModifierDeclarationsBlock = Record<string, PrimitiveTokenValue>;
78
+ export type RuntimeVariantDeclarationsValue = PrimitiveTokenValue | RuntimeModifierDeclarationsBlock;
79
+ export type RuntimeVariantDeclarationsBlock = Record<string, RuntimeVariantDeclarationsValue>;
80
+ export type RecipeRuntime<Variants extends VariantsBase = VariantsBase> = {
81
+ base?: RuntimeVariantDeclarationsBlock;
82
+ variants?: {
83
+ [K in keyof Variants]?: {
84
+ [O in keyof Variants[K]]?: RuntimeVariantDeclarationsBlock;
85
+ };
86
+ };
87
+ defaultVariants?: {
88
+ [K in keyof Variants]?: keyof Variants[K] & string;
89
+ };
90
+ compoundVariants?: Array<{
91
+ match: {
92
+ [K in keyof Variants]?: keyof Variants[K] & string;
93
+ };
94
+ css?: RuntimeVariantDeclarationsBlock;
95
+ className?: string;
96
+ }>;
97
+ };
98
+ export type Recipe<Name extends string = string, Variants extends VariantsBase = VariantsBase> = {
99
+ type: "recipe";
100
+ name: Name;
101
+ base?: VariantDeclarationsBlock;
102
+ variants?: Variants;
103
+ defaultVariants?: {
104
+ [K in keyof Variants]?: keyof Variants[K] & string;
105
+ };
106
+ compoundVariants?: Array<{
107
+ match: {
108
+ [K in keyof Variants]?: keyof Variants[K] & string;
109
+ };
110
+ css?: VariantDeclarationsBlock;
111
+ className?: string;
112
+ }>;
113
+ _runtime?: RecipeRuntime<Variants>;
114
+ _exportName?: string;
115
+ };
116
+ export type PrimitiveTokenValue = number | string | boolean | null | undefined;
117
+ export type TokenValue = PrimitiveTokenValue | Reference | CSS | Array<PrimitiveTokenValue | Reference | CSS>;
118
+ export type TokenType = Variable["type"] | Reference["type"] | Selector["type"] | AtRule["type"] | CSS["type"] | Utility["type"] | ModifierFactory["type"] | Recipe["type"] | Theme["type"] | Root["type"];
119
+ export type Container = {
120
+ id: string;
121
+ parentId?: string;
122
+ children: ContainerChild[];
123
+ variables: Variable[];
124
+ declarations: DeclarationsBlock;
125
+ };
126
+ export type ContainerInput = Pick<Container, "declarations" | "variables" | "children">;
127
+ export type ContainerChild = Variable | Selector | AtRule | Utility;
128
+ export type Theme = {
129
+ type: "theme";
130
+ id: string;
131
+ parentId?: string;
132
+ name: string;
133
+ declarations: DeclarationsBlock;
134
+ variables: Variable[];
135
+ children: ContainerChild[];
136
+ };
137
+ export type Root = {
138
+ type: "root";
139
+ id: string;
140
+ parentId?: string;
141
+ declarations: DeclarationsBlock;
142
+ utilities: UtilityFactory[];
143
+ modifiers: ModifierFactory[];
144
+ recipes: Recipe[];
145
+ variables: Variable[];
146
+ children: ContainerChild[];
147
+ themes: Theme[];
148
+ _registry: Map<string, Container | Root | Theme>;
149
+ _usage: {
150
+ variables: Set<string>;
151
+ utilities: Set<string>;
152
+ recipes: Set<string>;
153
+ recipeUtilities: Map<string, Set<string>>;
154
+ };
155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EAAE,CAAC;IAC5B,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,KAAK,CAAC,CAAC;IACjD,MAAM,EAAE;QACP,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QACvB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QACvB,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QACrB,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;KAC1C,CAAC;CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type CapitalizeFirst<T extends string> = T extends `${infer First}${infer Rest}` ? `${Uppercase<First>}${Rest}` : T;
2
+ /**
3
+ * Capitalizes the first letter of a string
4
+ */
5
+ export declare function capitalizeFirst(str: string): string;
6
+ //# sourceMappingURL=capitalizeFirst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capitalizeFirst.d.ts","sourceRoot":"","sources":["../../src/utils/capitalizeFirst.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,IAC3C,CAAC,SAAS,GAAG,MAAM,KAAK,GAAG,MAAM,IAAI,EAAE,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC;AAE5E;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEnD"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Convert a raw class name to a CSS selector by adding a `.` prefix
3
+ * and escaping special characters.
4
+ */
5
+ export declare function classNameToCssSelector(className: string): string;
6
+ //# sourceMappingURL=cssSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssSelector.d.ts","sourceRoot":"","sources":["../../src/utils/cssSelector.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEhE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cssSelector.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssSelector.test.d.ts","sourceRoot":"","sources":["../../src/utils/cssSelector.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Deep clone a value.
3
+ *
4
+ * We're using rfdc for this, but maintaining our own implementation
5
+ * to avoid production dependencies on external libraries.
6
+ *
7
+ * @source https://github.com/davidmarkclements/rfdc
8
+ */
9
+ type CloneFunction<T = any> = (obj: T) => T;
10
+ type ConstructorHandler<T = any> = (obj: T, fn: CloneFunction) => T;
11
+ type ConstructorHandlerTuple<T = any> = [
12
+ new (...args: any[]) => T,
13
+ ConstructorHandler<T>
14
+ ];
15
+ interface RfdcOptions {
16
+ circular?: boolean;
17
+ proto?: boolean;
18
+ constructorHandlers?: ConstructorHandlerTuple[];
19
+ }
20
+ export declare function rfdc<T = any>(opts?: RfdcOptions): CloneFunction<T>;
21
+ export declare const deepClone: CloneFunction<any>;
22
+ export {};
23
+ //# sourceMappingURL=deepClone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepClone.d.ts","sourceRoot":"","sources":["../../src/utils/deepClone.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,KAAK,aAAa,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;AAC5C,KAAK,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,aAAa,KAAK,CAAC,CAAC;AACpE,KAAK,uBAAuB,CAAC,CAAC,GAAG,GAAG,IAAI;IACvC,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC;IACzB,kBAAkB,CAAC,CAAC,CAAC;CACrB,CAAC;AAEF,UAAU,WAAW;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mBAAmB,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAChD;AAoBD,wBAAgB,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,CA2HlE;AAqJD,eAAO,MAAM,SAAS,oBAAS,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generates a random ID string
3
+ *
4
+ * @param length - The length of the random ID to generate (default: 8)
5
+ * @param prefix - Optional prefix to prepend to the random ID
6
+ * @returns A random alphanumeric string with optional prefix
7
+ */
8
+ export declare function generateRandomId(prefix?: string, length?: number): string;
9
+ //# sourceMappingURL=generateRandomId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateRandomId.d.ts","sourceRoot":"","sources":["../../src/utils/generateRandomId.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,GAAG,MAAM,CAW5E"}
@@ -0,0 +1,5 @@
1
+ import { Container, ModifierFactory, Root, UtilityFactory, Variable } from '../types';
2
+ export declare function getVariable(root: Container, name: string): Variable;
3
+ export declare function getUtility(root: Root, name: string): UtilityFactory;
4
+ export declare function getModifier(root: Root, name: string): ModifierFactory;
5
+ //# sourceMappingURL=getters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../src/utils/getters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,SAAS,EACT,eAAe,EACf,IAAI,EACJ,cAAc,EACd,QAAQ,EACR,MAAM,UAAU,CAAC;AAElB,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAOnE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,CAOnE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,eAAe,CASrE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getters.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getters.test.d.ts","sourceRoot":"","sources":["../../src/utils/getters.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generates a deterministic, CSS-safe hash string from an arbitrary value.
3
+ * Uses DJB2 algorithm for fast, low-collision hashing.
4
+ *
5
+ * @param value - The string value to hash
6
+ * @returns A lowercase hex string of 7 characters (e.g., "a1b2c3d")
7
+ */
8
+ export declare function hashValue(value: string): string;
9
+ //# sourceMappingURL=hash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/utils/hash.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM/C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=hash.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash.test.d.ts","sourceRoot":"","sources":["../../src/utils/hash.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export * from './capitalizeFirst';
2
+ export * from './cssSelector';
3
+ export * from './deepClone';
4
+ export * from './generateRandomId';
5
+ export * from './getters';
6
+ export * from './hash';
7
+ export * from './isTokenEqual';
8
+ export * from './merge';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { TokenValue } from '../types';
2
+ export declare function isTokenEqual(a: TokenValue, b: TokenValue): boolean;
3
+ //# sourceMappingURL=isTokenEqual.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isTokenEqual.d.ts","sourceRoot":"","sources":["../../src/utils/isTokenEqual.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,wBAAgB,YAAY,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAyBlE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=isTokenEqual.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isTokenEqual.test.d.ts","sourceRoot":"","sources":["../../src/utils/isTokenEqual.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { Styleframe } from '../styleframe';
2
+ import { Container, Root, Theme, Variable } from '../types';
3
+ export declare function mergeVariablesArray(a: Variable[], b: Variable[]): Variable[];
4
+ export declare function mergeThemesArray(a: Theme[], b: Theme[]): Theme[];
5
+ export declare function mergeContainers<T extends Container>(a: T, b: T): T;
6
+ export declare function rebuildRegistry(root: Root): void;
7
+ export declare function merge(base: Styleframe, ...instances: Styleframe[]): Styleframe;
8
+ //# sourceMappingURL=merge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../src/utils/merge.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EACX,SAAS,EAET,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,UAAU,CAAC;AAElB,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,cAe/D;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,WAkBtD;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAsB9D;AAaD,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,QAQzC;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,SAAS,EAAE,UAAU,EAAE,cAejE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=merge.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.test.d.ts","sourceRoot":"","sources":["../../src/utils/merge.test.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@styleframe/core",
3
- "version": "3.4.0",
3
+ "version": "3.6.0",
4
4
  "type": "module",
5
- "types": "./dist/styleframe.d.ts",
5
+ "types": "./dist/index.d.ts",
6
6
  "module": "./dist/styleframe.js",
7
7
  "main": "./dist/styleframe.umd.cjs",
8
8
  "exports": {
9
9
  ".": {
10
- "types": "./dist/styleframe.d.ts",
10
+ "types": "./dist/index.d.ts",
11
11
  "import": "./dist/styleframe.js",
12
12
  "require": "./dist/styleframe.umd.cjs"
13
13
  }
@@ -26,13 +26,13 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@styleframe/config-typescript": "^3.0.0",
29
- "@styleframe/config-vite": "^3.0.0",
29
+ "@styleframe/config-vite": "^3.0.1",
30
30
  "@styleframe/license": "^2.0.2",
31
- "@vitest/coverage-v8": "^3.2.4",
31
+ "@vitest/coverage-v8": "^4.1.7",
32
32
  "typescript": "^5.8.3",
33
- "vite": "^7.0.6",
34
- "vitest": "^3.2.4",
35
- "vite-plugin-dts": "^4.5.4"
33
+ "vite": "^8.0.14",
34
+ "vitest": "^4.1.7",
35
+ "vite-plugin-dts": "^5.0.1"
36
36
  },
37
37
  "homepage": "https://github.com/styleframe-dev/styleframe#readme",
38
38
  "bugs": {
@@ -43,9 +43,6 @@
43
43
  "url": "git+https://github.com/styleframe-dev/styleframe.git"
44
44
  },
45
45
  "author": "Alex Grozav <alex@styleframe.dev>",
46
- "overrides": {
47
- "vite": "npm:rolldown-vite@latest"
48
- },
49
46
  "scripts": {
50
47
  "dev": "vite build --watch",
51
48
  "build": "pnpm typecheck && vite build",