stillwind 0.6.0 → 0.8.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/css/builtin-variants/sw-conditional.css +10 -1
  2. package/dist/{class-object-D7ZGJOf_.d.ts → class-object-BaK8uudd.d.ts} +2 -2
  3. package/dist/class-object-DNcjzcfH.js +6 -0
  4. package/dist/{class-object-D24FFYqO.js.map → class-object-DNcjzcfH.js.map} +1 -1
  5. package/dist/{class-string-CQHnc9GN.d.ts → class-string-C5YFtXQn.d.ts} +2 -2
  6. package/dist/class-string-KnYInbiw.js +6 -0
  7. package/dist/{class-string-Db8-oI4q.js.map → class-string-KnYInbiw.js.map} +1 -1
  8. package/dist/{cva-BwX07CFw.js → formats-Ctf2WFc-.js} +87 -2
  9. package/dist/formats-Ctf2WFc-.js.map +1 -0
  10. package/dist/formats-aeLCNAXl.d.ts +73 -0
  11. package/dist/frameworks/alpine.d.ts +3 -3
  12. package/dist/frameworks/alpine.js +1 -1
  13. package/dist/frameworks/alpine.js.map +1 -1
  14. package/dist/frameworks/astro.d.ts +3 -3
  15. package/dist/frameworks/astro.js +1 -1
  16. package/dist/frameworks/lit.d.ts +3 -3
  17. package/dist/frameworks/lit.js +1 -1
  18. package/dist/frameworks/lit.js.map +1 -1
  19. package/dist/frameworks/preact.d.ts +3 -3
  20. package/dist/frameworks/preact.js +1 -1
  21. package/dist/frameworks/qwik.d.ts +3 -3
  22. package/dist/frameworks/qwik.js +1 -1
  23. package/dist/frameworks/react.d.ts +2 -2
  24. package/dist/frameworks/react.js +1 -1
  25. package/dist/frameworks/solid.d.ts +3 -3
  26. package/dist/frameworks/solid.js +1 -1
  27. package/dist/frameworks/svelte.d.ts +3 -3
  28. package/dist/frameworks/svelte.js +1 -1
  29. package/dist/frameworks/vanilla.d.ts +3 -3
  30. package/dist/frameworks/vanilla.js +1 -1
  31. package/dist/frameworks/vue.d.ts +3 -3
  32. package/dist/frameworks/vue.js +1 -1
  33. package/dist/{index-RwVFpxhE.d.ts → index-DBpgaaD7.d.ts} +54 -5
  34. package/dist/macro/index.d.ts +2 -2
  35. package/dist/macro/index.js +1 -1
  36. package/dist/runtime/development.d.ts +47 -0
  37. package/dist/{development-J-JCSIm0.js → runtime/development.js} +41 -5
  38. package/dist/runtime/development.js.map +1 -0
  39. package/dist/runtime/index.d.ts +2 -0
  40. package/dist/runtime/index.js +1 -0
  41. package/dist/{style-fTQbsVWZ.js → style-BE8vuLiO.js} +4 -1
  42. package/dist/style-BE8vuLiO.js.map +1 -0
  43. package/docs/at-rules/apply.md +1 -1
  44. package/docs/at-rules/custom-variant.md +2 -2
  45. package/docs/at-rules/plugin.md +7 -0
  46. package/docs/at-rules/slot.md +1 -1
  47. package/docs/at-rules/stillwind-css-template.md +2 -2
  48. package/docs/at-rules/stillwind-property.md +1 -1
  49. package/docs/at-rules/stillwind-registry.md +1 -1
  50. package/docs/at-rules/stillwind-require-properties.md +1 -1
  51. package/docs/at-rules/stillwind-undef-arbitrary-property.md +1 -1
  52. package/docs/at-rules/stillwind-undef-utility.md +1 -1
  53. package/docs/at-rules/stillwind-undef-variant.md +1 -1
  54. package/docs/at-rules/theme.md +5 -5
  55. package/docs/at-rules/utility.md +4 -4
  56. package/docs/at-rules/variant.md +1 -1
  57. package/docs/cli.md +4 -1
  58. package/docs/concepts/css-ordering.md +4 -4
  59. package/docs/concepts/how-styles-compile.md +3 -3
  60. package/docs/configuration.md +16 -16
  61. package/docs/editors.md +2 -1
  62. package/docs/errors/SW10004.md +2 -1
  63. package/docs/guides/reusable-styles.md +5 -0
  64. package/docs/guides/style.md +32 -0
  65. package/docs/guides/tailwind-compatibility.md +10 -9
  66. package/docs/lints/ambiguous-style-base-order.md +2 -0
  67. package/docs/lints/conflicting-utilities.md +43 -1
  68. package/docs/lints/index.md +1 -0
  69. package/docs/lints/interfering-imported-style-base.md +21 -3
  70. package/docs/lints/invalid-stored-variant.md +52 -0
  71. package/docs/macros/css.md +2 -1
  72. package/docs/macros/cva.md +5 -4
  73. package/docs/macros/index.md +1 -0
  74. package/docs/macros/ref/at.md +1 -1
  75. package/docs/macros/ref/condition.md +2 -1
  76. package/docs/macros/ref/in.md +1 -1
  77. package/docs/macros/ref/index.md +2 -1
  78. package/docs/macros/style.md +34 -8
  79. package/docs/macros/view-transition.md +1 -1
  80. package/docs/macros/when.md +129 -0
  81. package/index.d.ts +2 -0
  82. package/package.json +12 -26
  83. package/dist/class-object-D24FFYqO.js +0 -6
  84. package/dist/class-string-Db8-oI4q.js +0 -6
  85. package/dist/cva-BwX07CFw.js.map +0 -1
  86. package/dist/cva-DSpDNBYi.d.ts +0 -9
  87. package/dist/development-DttPQc71.d.ts +0 -27
  88. package/dist/development-J-JCSIm0.js.map +0 -1
  89. package/dist/runtime/class-name-object-development.d.ts +0 -10
  90. package/dist/runtime/class-name-object-development.js +0 -18
  91. package/dist/runtime/class-name-object-development.js.map +0 -1
  92. package/dist/runtime/class-name-object.d.ts +0 -16
  93. package/dist/runtime/class-name-object.js +0 -31
  94. package/dist/runtime/class-name-object.js.map +0 -1
  95. package/dist/runtime/class-object-development.d.ts +0 -10
  96. package/dist/runtime/class-object-development.js +0 -18
  97. package/dist/runtime/class-object-development.js.map +0 -1
  98. package/dist/runtime/class-object.d.ts +0 -16
  99. package/dist/runtime/class-object.js +0 -31
  100. package/dist/runtime/class-object.js.map +0 -1
  101. package/dist/runtime/class-string-development.d.ts +0 -10
  102. package/dist/runtime/class-string-development.js +0 -18
  103. package/dist/runtime/class-string-development.js.map +0 -1
  104. package/dist/runtime/class-string.d.ts +0 -16
  105. package/dist/runtime/class-string.js +0 -31
  106. package/dist/runtime/class-string.js.map +0 -1
  107. package/dist/shared-B9IQXU6P.d.ts +0 -32
  108. package/dist/style-fTQbsVWZ.js.map +0 -1
@@ -1,5 +1,14 @@
1
- /* Built-in Stillwind conditional variant. */
1
+ /* Built-in Stillwind conditional variants. */
2
2
 
3
3
  @stillwind-variant if\(*\) (value: [if-condition]) {
4
4
  @stillwind-intrinsic builtin-if-variant;
5
5
  }
6
+
7
+ /*
8
+ `or(a,b)` holds when any of its variant sequences holds. The compiler expands a
9
+ candidate into one candidate for each sequence before it resolves variants, so each
10
+ sequence keeps its own position in the stylesheet.
11
+ */
12
+ @stillwind-variant or\(*\) (value: [variant-list]) {
13
+ @stillwind-intrinsic builtin-or-variant;
14
+ }
@@ -1,4 +1,4 @@
1
- import { StyleMacro as StyleMacro$1, StyleResult as StyleResult$1 } from "./index-RwVFpxhE.js";
1
+ import { StyleMacro as StyleMacro$1, StyleResult as StyleResult$1 } from "./index-DBpgaaD7.js";
2
2
  export type StyleProps = {
3
3
  class?: string;
4
4
  style?: Record<string, string>;
@@ -6,4 +6,4 @@ export type StyleProps = {
6
6
  export type StyleResult<Id extends string = string> = StyleResult$1<Id, StyleProps>;
7
7
  export type StyleMacro = StyleMacro$1<StyleProps>;
8
8
  export declare const style: StyleMacro;
9
- //# sourceMappingURL=class-object-D7ZGJOf_.d.ts.map
9
+ //# sourceMappingURL=class-object-BaK8uudd.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { createStyleMacro } from "./style-BE8vuLiO.js";
2
+ // src/outputs/class-object.ts
3
+ const style = createStyleMacro();
4
+ export { style };
5
+
6
+ //# sourceMappingURL=class-object-DNcjzcfH.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"class-object-D24FFYqO.js","names":[],"sources":["../src/outputs/class-object.ts"],"sourcesContent":["import type { StyleResult as Result } from \"../macro/output.ts\";\nimport { createStyleMacro } from \"../macro/style.ts\";\nimport type { StyleMacro as Macro } from \"../macro/style.ts\";\n\nexport type StyleProps = {\n class?: string;\n style?: Record<string, string>;\n};\n\nexport type StyleResult<Id extends string = string> = Result<Id, StyleProps>;\n\nexport type StyleMacro = Macro<StyleProps>;\n\nexport const style: StyleMacro = createStyleMacro<StyleProps>();\n"],"mappings":";;AAaA,MAAa,QAAoB,iBAA6B"}
1
+ {"version":3,"file":"class-object-DNcjzcfH.js","names":[],"sources":["../src/outputs/class-object.ts"],"sourcesContent":["import type { StyleResult as Result } from \"../macro/output.ts\";\nimport { createStyleMacro } from \"../macro/style.ts\";\nimport type { StyleMacro as Macro } from \"../macro/style.ts\";\n\nexport type StyleProps = {\n class?: string;\n style?: Record<string, string>;\n};\n\nexport type StyleResult<Id extends string = string> = Result<Id, StyleProps>;\n\nexport type StyleMacro = Macro<StyleProps>;\n\nexport const style: StyleMacro = createStyleMacro<StyleProps>();\n"],"mappings":";;AAaA,MAAa,QAAoB,iBAA6B"}
@@ -1,4 +1,4 @@
1
- import { StyleMacro as StyleMacro$1, StyleResult as StyleResult$1 } from "./index-RwVFpxhE.js";
1
+ import { StyleMacro as StyleMacro$1, StyleResult as StyleResult$1 } from "./index-DBpgaaD7.js";
2
2
  export type StyleProps = {
3
3
  class?: string;
4
4
  style?: string;
@@ -6,4 +6,4 @@ export type StyleProps = {
6
6
  export type StyleResult<Id extends string = string> = StyleResult$1<Id, StyleProps>;
7
7
  export type StyleMacro = StyleMacro$1<StyleProps>;
8
8
  export declare const style: StyleMacro;
9
- //# sourceMappingURL=class-string-CQHnc9GN.d.ts.map
9
+ //# sourceMappingURL=class-string-C5YFtXQn.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { createStyleMacro } from "./style-BE8vuLiO.js";
2
+ // src/outputs/class-string.ts
3
+ const style = createStyleMacro();
4
+ export { style };
5
+
6
+ //# sourceMappingURL=class-string-KnYInbiw.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"class-string-Db8-oI4q.js","names":[],"sources":["../src/outputs/class-string.ts"],"sourcesContent":["import type { StyleResult as Result } from \"../macro/output.ts\";\nimport type { StyleMacro as Macro } from \"../macro/style.ts\";\nimport { createStyleMacro } from \"../macro/style.ts\";\n\nexport type StyleProps = {\n class?: string;\n style?: string;\n};\nexport type StyleResult<Id extends string = string> = Result<Id, StyleProps>;\nexport type StyleMacro = Macro<StyleProps>;\nexport const style: StyleMacro = createStyleMacro<StyleProps>();\n"],"mappings":";;AAUA,MAAa,QAAoB,iBAA6B"}
1
+ {"version":3,"file":"class-string-KnYInbiw.js","names":[],"sources":["../src/outputs/class-string.ts"],"sourcesContent":["import type { StyleResult as Result } from \"../macro/output.ts\";\nimport type { StyleMacro as Macro } from \"../macro/style.ts\";\nimport { createStyleMacro } from \"../macro/style.ts\";\n\nexport type StyleProps = {\n class?: string;\n style?: string;\n};\nexport type StyleResult<Id extends string = string> = Result<Id, StyleProps>;\nexport type StyleMacro = Macro<StyleProps>;\nexport const style: StyleMacro = createStyleMacro<StyleProps>();\n"],"mappings":";;AAUA,MAAa,QAAoB,iBAA6B"}
@@ -199,6 +199,91 @@ function createCva(options, base, config = {}, classes = stillwindClsx, merge =
199
199
  return merge(options, values);
200
200
  };
201
201
  }
202
- export { createCva, isObject, mergeFragments, serializeStyle, stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName, toFragment };
202
+ // src/runtime/formats.ts
203
+ /**
204
+ * Fragment keys and production operations for each output format.
205
+ *
206
+ * Each format owns distinct symbol keys, so a fragment must be materialized by the format that
207
+ * created it. Export names start with the format name because all formats share one entrypoint.
208
+ */
209
+ const stillwindClassObjectClassKey = /* @__PURE__ */ Symbol("stillwind.class-object.class");
210
+ const stillwindClassObjectStyleKey = /* @__PURE__ */ Symbol("stillwind.class-object.style");
211
+ const stillwindClassObjectCustomPropertiesKey = /* @__PURE__ */ Symbol("stillwind.class-object.custom-properties");
212
+ const classObjectOptions = [
213
+ "class",
214
+ "object",
215
+ stillwindClassObjectClassKey,
216
+ stillwindClassObjectStyleKey,
217
+ stillwindClassObjectCustomPropertiesKey
218
+ ];
219
+ /** Materializes ordered fragments with `class` and object styles. */
220
+ function stillwindClassObjectMerge(...values) {
221
+ return mergeFragments(classObjectOptions, values);
222
+ }
223
+ /** Converts either class prop of a composition base to a class-only fragment. */
224
+ function stillwindClassObjectToFragment(value) {
225
+ return toFragment(classObjectOptions, value);
226
+ }
227
+ /** Returns the supplied style payload, or undefined for null or undefined. */
228
+ function stillwindClassObjectStyleValue(value) {
229
+ return value == null ? void 0 : serializeStyle(value, "object");
230
+ }
231
+ /** Selects compiled CVA values and returns fresh props with `class` and object styles. */
232
+ function stillwindClassObjectCva(base, config) {
233
+ return createCva(classObjectOptions, base, config);
234
+ }
235
+ const stillwindClassStringClassKey = /* @__PURE__ */ Symbol("stillwind.class-string.class");
236
+ const stillwindClassStringStyleKey = /* @__PURE__ */ Symbol("stillwind.class-string.style");
237
+ const stillwindClassStringCustomPropertiesKey = /* @__PURE__ */ Symbol("stillwind.class-string.custom-properties");
238
+ const classStringOptions = [
239
+ "class",
240
+ "string",
241
+ stillwindClassStringClassKey,
242
+ stillwindClassStringStyleKey,
243
+ stillwindClassStringCustomPropertiesKey
244
+ ];
245
+ /** Materializes ordered fragments with `class` and string styles. */
246
+ function stillwindClassStringMerge(...values) {
247
+ return mergeFragments(classStringOptions, values);
248
+ }
249
+ /** Converts either class prop of a composition base to a class-only fragment. */
250
+ function stillwindClassStringToFragment(value) {
251
+ return toFragment(classStringOptions, value);
252
+ }
253
+ /** Serializes object style declarations or preserves a string. Other inputs omit style. */
254
+ function stillwindClassStringStyleValue(value) {
255
+ return value == null ? void 0 : serializeStyle(value, "string");
256
+ }
257
+ /** Selects compiled CVA values and returns fresh props with `class` and string styles. */
258
+ function stillwindClassStringCva(base, config) {
259
+ return createCva(classStringOptions, base, config);
260
+ }
261
+ const stillwindClassNameObjectClassKey = /* @__PURE__ */ Symbol("stillwind.class-name-object.class");
262
+ const stillwindClassNameObjectStyleKey = /* @__PURE__ */ Symbol("stillwind.class-name-object.style");
263
+ const stillwindClassNameObjectCustomPropertiesKey = /* @__PURE__ */ Symbol("stillwind.class-name-object.custom-properties");
264
+ const classNameObjectOptions = [
265
+ "className",
266
+ "object",
267
+ stillwindClassNameObjectClassKey,
268
+ stillwindClassNameObjectStyleKey,
269
+ stillwindClassNameObjectCustomPropertiesKey
270
+ ];
271
+ /** Materializes ordered fragments with `className` and object styles. */
272
+ function stillwindClassNameObjectMerge(...values) {
273
+ return mergeFragments(classNameObjectOptions, values);
274
+ }
275
+ /** Converts either class prop of a composition base to a class-only fragment. */
276
+ function stillwindClassNameObjectToFragment(value) {
277
+ return toFragment(classNameObjectOptions, value);
278
+ }
279
+ /** Returns the supplied style payload, or undefined for null or undefined. */
280
+ function stillwindClassNameObjectStyleValue(value) {
281
+ return value == null ? void 0 : serializeStyle(value, "object");
282
+ }
283
+ /** Selects compiled CVA values and returns fresh props with `className` and object styles. */
284
+ function stillwindClassNameObjectCva(base, config) {
285
+ return createCva(classNameObjectOptions, base, config);
286
+ }
287
+ export { classNameObjectOptions, classObjectOptions, classStringOptions, createCva, isObject, mergeFragments, stillwindClassNameObjectClassKey, stillwindClassNameObjectCustomPropertiesKey, stillwindClassNameObjectCva, stillwindClassNameObjectMerge, stillwindClassNameObjectStyleKey, stillwindClassNameObjectStyleValue, stillwindClassNameObjectToFragment, stillwindClassObjectClassKey, stillwindClassObjectCustomPropertiesKey, stillwindClassObjectCva, stillwindClassObjectMerge, stillwindClassObjectStyleKey, stillwindClassObjectStyleValue, stillwindClassObjectToFragment, stillwindClassStringClassKey, stillwindClassStringCustomPropertiesKey, stillwindClassStringCva, stillwindClassStringMerge, stillwindClassStringStyleKey, stillwindClassStringStyleValue, stillwindClassStringToFragment, stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName, toFragment };
203
288
 
204
- //# sourceMappingURL=cva-BwX07CFw.js.map
289
+ //# sourceMappingURL=formats-Ctf2WFc-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formats-Ctf2WFc-.js","names":[],"sources":["../src/runtime/fragment.ts","../src/runtime/shared.ts","../src/runtime/cva.ts","../src/runtime/formats.ts"],"sourcesContent":["/**\n * Framework conventions and private channels used to materialize fragments.\n * The three keys must be distinct and belong to the runtime that created the fragments.\n */\nexport type FragmentRuntimeOptions = readonly [\n /** Element prop that receives the combined class text. */\n classProperty: \"class\" | \"className\",\n /** Whether style records become objects or semicolon-separated declaration text. */\n styleFormat: \"object\" | \"string\",\n /** Own fragment property containing class text. */\n stillwindClassKey: symbol,\n /** Own fragment property containing the last authored style payload. */\n stillwindStyleKey: symbol,\n /** Own fragment property containing generated custom properties applied last. */\n stillwindCustomPropertiesKey: symbol,\n];\n\nexport function isObject(value: unknown): value is Record<PropertyKey, unknown> {\n return typeof value === \"object\" && value !== null;\n}\n\n/**\n * Converts a style payload using the framework's style convention.\n *\n * @param payload - Arbitrary payload. String mode accepts text and objects whose entries become declarations.\n * @param styleFormat - Object mode returns the payload unchanged; string mode serializes object entries in order.\n * @returns The payload, declaration text, or undefined for an unsupported string-mode payload.\n */\nexport function serializeStyle(payload: unknown, styleFormat: \"object\" | \"string\"): unknown {\n if (styleFormat === \"string\") {\n if (typeof payload === \"string\") {\n return payload;\n }\n if (isObject(payload)) {\n return Object.entries(payload)\n .map(([name, value]) => `${name}:${String(value)}`)\n .join(\";\");\n }\n return undefined;\n }\n return payload;\n}\n\n/**\n * Materializes class and style fragments without mutating the inputs.\n *\n * @param options - Framework conventions and the keys of the runtime that created the fragments.\n * @param values - Fragments or nested arrays.\n * Nonobjects are ignored. Materialized bases must first be converted with `toFragment`.\n * @returns Props with classes joined in traversal order. The last non-null fragment\n * style supplies inline style, and generated custom properties are combined and applied\n * last. Fragment symbol channels do not appear in the result.\n */\nexport function mergeFragments(\n options: FragmentRuntimeOptions,\n values: readonly unknown[],\n): Record<string, unknown> {\n const [\n classProperty,\n styleFormat,\n stillwindClassKey,\n stillwindStyleKey,\n stillwindCustomPropertiesKey,\n ] = options;\n const classes: string[] = [];\n const customProperties: Record<string, string> = {};\n let style: unknown;\n let hasStyle = false;\n\n const collect = (value: unknown): void => {\n if (!value) {\n return;\n }\n if (Array.isArray(value)) {\n for (const element of value) {\n collect(element);\n }\n return;\n }\n if (!isObject(value)) {\n return;\n }\n const fragment =\n Object.hasOwn(value, stillwindClassKey) ||\n Object.hasOwn(value, stillwindStyleKey) ||\n Object.hasOwn(value, stillwindCustomPropertiesKey);\n if (fragment) {\n const custom = value[stillwindCustomPropertiesKey];\n if (isObject(custom)) {\n Object.assign(customProperties, custom);\n }\n const contribution = value[stillwindClassKey];\n if (typeof contribution === \"string\" && contribution.length > 0) {\n classes.push(contribution);\n }\n if (Object.hasOwn(value, stillwindStyleKey)) {\n const payload = value[stillwindStyleKey];\n if (payload !== undefined && payload !== null) {\n style = payload;\n hasStyle = true;\n }\n }\n }\n };\n\n for (const value of values) {\n collect(value);\n }\n\n const result: Record<string, unknown> = {};\n if (classes.length > 0) {\n result[classProperty] = classes.join(\" \");\n }\n if (hasStyle) {\n const materialized = serializeStyle(style, styleFormat);\n if (materialized !== undefined) {\n result.style = materialized;\n }\n }\n if (Object.keys(customProperties).length > 0) {\n result.style =\n styleFormat === \"string\"\n ? [serializeStyle(result.style, styleFormat), serializeStyle(customProperties, styleFormat)]\n .filter(Boolean)\n .join(\";\")\n : { ...(isObject(result.style) ? result.style : {}), ...customProperties };\n }\n return result;\n}\n\n/**\n * Converts a composition base to a fragment that contributes only its class.\n *\n * A base contributes either `class` or `className`, or the class channel of a fragment\n * from this runtime. The receiving output's prop takes precedence unless it is null or\n * undefined. Style payloads and custom properties are ignored.\n *\n * @param options - The receiving framework's prop conventions and fragment keys.\n * @param value - A non-null object containing materialized props or this runtime's\n * fragment channels.\n * @returns A new fragment whose class channel holds the base's class value.\n */\nexport function toFragment(\n options: FragmentRuntimeOptions,\n value: Record<PropertyKey, unknown>,\n): Record<PropertyKey, unknown> {\n const [classProperty, , stillwindClassKey] = options;\n return {\n [stillwindClassKey]: Object.hasOwn(value, stillwindClassKey)\n ? value[stillwindClassKey]\n : (value[classProperty] ?? value[classProperty === \"class\" ? \"className\" : \"class\"]),\n };\n}\n","/**\n * Converts a dynamic value into text for a generated CSS declaration.\n *\n * @param value - CSS text, a number, a URL, or a boolean. URLs are quoted and CSS-escaped. True\n * becomes a space and false becomes `initial`.\n * @returns CSS value text. Strings and numbers are converted with `String`.\n */\nexport function stillwindCssValue(value: URL | string | number | boolean): string {\n if (typeof value === \"boolean\") {\n return value ? \" \" : \"initial\";\n }\n if (value instanceof URL) {\n const escaped = value.href.replace(\n /[\"\\\\\\n\\r\\f]/g,\n (character) => `\\\\${character.codePointAt(0)!.toString(16)} `,\n );\n return `url(\"${escaped}\")`;\n }\n return String(value);\n}\n\n/**\n * Flattens class contributions and joins nonempty values with spaces.\n *\n * @param values - Strings, numbers, bigints, nested arrays, or objects whose truthy values enable\n * their keys. Other values are ignored.\n * @returns Class text in contribution order, without deduplication.\n */\nexport function stillwindClsx(...values: readonly unknown[]): string {\n return values.flatMap(flatten).filter(Boolean).join(\" \");\n}\n\n/**\n * Escapes text for use as one CSS identifier.\n *\n * @param value - Unescaped identifier text.\n * @returns `CSS.escape` output when available, otherwise escaped text with NUL replaced by U+FFFD.\n */\nexport function stillwindEscapedIdentifier(value: string): string {\n if (typeof CSS !== \"undefined\" && typeof CSS.escape === \"function\") {\n return CSS.escape(value);\n }\n const characters = Array.from(value);\n let escaped = \"\";\n for (const [index, character] of characters.entries()) {\n const code = character.codePointAt(0)!;\n const isDigit = code >= 48 && code <= 57;\n const isControl = (code >= 1 && code <= 31) || code === 127;\n if (code === 0) {\n escaped += \"\\uFFFD\";\n } else if (isControl) {\n escaped += `\\\\${code.toString(16)} `;\n } else if (index === 0 && isDigit) {\n escaped += `\\\\${code.toString(16)} `;\n } else if (index === 0 && character === \"-\" && characters.length === 1) {\n escaped += \"\\\\-\";\n } else if (index === 1 && isDigit && characters[0] === \"-\") {\n escaped += `\\\\${code.toString(16)} `;\n } else if (\n isDigit ||\n (code >= 65 && code <= 90) ||\n (code >= 97 && code <= 122) ||\n code === 45 ||\n code === 95 ||\n code >= 128\n ) {\n escaped += character;\n } else {\n escaped += `\\\\${character}`;\n }\n }\n return escaped;\n}\n\n/**\n * Builds a CSS identifier for one keyed view transition.\n *\n * @param value - Nonempty class token or an object whose `v` property contains that token.\n * @param key - Key appended to the token after a hyphen using `String`.\n * @returns The combined token and key escaped as a CSS identifier.\n */\nexport function stillwindViewTransitionName(value: unknown, key: string | number): string {\n const token = typeof value === \"string\" ? value : (value as { v: string }).v;\n return stillwindEscapedIdentifier(`${token}-${String(key)}`);\n}\n\n/**\n * Expands one class contribution into strings without splitting class text.\n *\n * @param value - Class text, a number, a bigint, a nested array, or an object with enabled class\n * keys.\n * @returns Strings in traversal or object-entry order. Unsupported values produce an empty list.\n */\nfunction flatten(value: unknown): string[] {\n if (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"bigint\") {\n return [String(value)];\n }\n if (Array.isArray(value)) {\n return value.flatMap(flatten);\n }\n if (value && typeof value === \"object\") {\n return Object.entries(value as Record<string, unknown>)\n .filter(([, enabled]) => Boolean(enabled))\n .map(([name]) => name);\n }\n return [];\n}\n","import { mergeFragments, type FragmentRuntimeOptions } from \"./fragment.ts\";\nimport { stillwindClsx } from \"./shared.ts\";\n\n/** Compiler-produced class text, fragment channels, or nested fragment arrays. */\nexport type CvaValue = string | boolean | null | undefined | object;\n\n/** Compiled configuration whose structure is immutable after factory creation. */\nexport interface CompiledCvaConfig {\n readonly variants?: Readonly<Record<string, Readonly<Record<string, CvaValue>>>>;\n readonly defaultVariants?: Readonly<Record<string, string | number | boolean | null | undefined>>;\n readonly compoundVariants?: readonly Readonly<Record<string, unknown>>[];\n}\n\nfunction optionKey(value: unknown): unknown {\n return typeof value === \"boolean\" ? String(value) : value === 0 ? \"0\" : value;\n}\n\n/**\n * Creates a selector over compiler-produced values using the supplied framework channels.\n * Values are captured at creation. Each call returns fresh props without mutating inputs.\n * Undefined selections keep defaults; null suppresses an option. Matching compounds\n * contribute in array order, followed by external class and className inputs.\n *\n * @param options - Framework conventions and the keys used by compiled fragments.\n * @param base - Compiled styles included in every selection.\n * @param config - Immutable compiled option maps, defaults, and compound conditions.\n * @param classes - Concatenates external class inputs. Development calls supply validation.\n * @param merge - Materializes selected fragments. Development calls supply validation.\n * @returns A selector that materializes class and optional style props without private symbols.\n */\nexport function createCva(\n options: FragmentRuntimeOptions,\n base: CvaValue,\n config: CompiledCvaConfig = {},\n classes: typeof stillwindClsx = stillwindClsx,\n merge: typeof mergeFragments = mergeFragments,\n): (props?: Readonly<Record<string, unknown>>) => Record<string, unknown> {\n const axes = Object.keys(config.variants ?? {});\n const compounds = (config.compoundVariants ?? []).map((compound) => ({\n conditions: Object.entries(compound).filter(([key]) => key !== \"class\" && key !== \"className\"),\n class: compound.class as CvaValue,\n className: compound.className as CvaValue,\n }));\n const fragment = (value: CvaValue): unknown =>\n typeof value === \"string\" ? { [options[2]]: value } : value;\n\n return (props = {}) => {\n const values: unknown[] = [fragment(base)];\n const variants = config.variants;\n if (variants) {\n for (const axis of axes) {\n const supplied = props[axis];\n if (supplied === null) {\n continue;\n }\n const key = optionKey(supplied) || optionKey(config.defaultVariants?.[axis]);\n const choices = variants[axis]!;\n if ((typeof key === \"string\" || typeof key === \"number\") && Object.hasOwn(choices, key)) {\n values.push(fragment(choices[key]));\n }\n }\n const resolved = {\n ...config.defaultVariants,\n ...Object.fromEntries(Object.entries(props).filter(([, value]) => value !== undefined)),\n };\n for (const compound of compounds) {\n if (\n compound.conditions.every(([key, expected]) =>\n Array.isArray(expected) ? expected.includes(resolved[key]) : expected === resolved[key],\n )\n ) {\n values.push(fragment(compound.class), fragment(compound.className));\n }\n }\n }\n values.push({ [options[2]]: classes(props.class, props.className) });\n return merge(options, values);\n };\n}\n","/**\n * Fragment keys and production operations for each output format.\n *\n * Each format owns distinct symbol keys, so a fragment must be materialized by the format that\n * created it. Export names start with the format name because all formats share one entrypoint.\n */\n\nimport { createCva, type CompiledCvaConfig, type CvaValue } from \"./cva.ts\";\nimport {\n mergeFragments,\n serializeStyle,\n toFragment,\n type FragmentRuntimeOptions,\n} from \"./fragment.ts\";\n\nexport const stillwindClassObjectClassKey = /* @__PURE__ */ Symbol(\"stillwind.class-object.class\");\n\nexport const stillwindClassObjectStyleKey = /* @__PURE__ */ Symbol(\"stillwind.class-object.style\");\n\nexport const stillwindClassObjectCustomPropertiesKey = /* @__PURE__ */ Symbol(\n \"stillwind.class-object.custom-properties\",\n);\n\nexport const classObjectOptions: FragmentRuntimeOptions = [\n \"class\",\n \"object\",\n stillwindClassObjectClassKey,\n stillwindClassObjectStyleKey,\n stillwindClassObjectCustomPropertiesKey,\n];\n\n/** Materializes ordered fragments with `class` and object styles. */\nexport function stillwindClassObjectMerge(...values: readonly unknown[]): Record<string, unknown> {\n return mergeFragments(classObjectOptions, values);\n}\n\n/** Converts either class prop of a composition base to a class-only fragment. */\nexport function stillwindClassObjectToFragment(\n value: Record<PropertyKey, unknown>,\n): Record<PropertyKey, unknown> {\n return toFragment(classObjectOptions, value);\n}\n\n/** Returns the supplied style payload, or undefined for null or undefined. */\nexport function stillwindClassObjectStyleValue(value: unknown): unknown {\n return value == null ? undefined : serializeStyle(value, \"object\");\n}\n\n/** Selects compiled CVA values and returns fresh props with `class` and object styles. */\nexport function stillwindClassObjectCva(base?: CvaValue, config?: CompiledCvaConfig) {\n return createCva(classObjectOptions, base, config);\n}\n\nexport const stillwindClassStringClassKey = /* @__PURE__ */ Symbol(\"stillwind.class-string.class\");\n\nexport const stillwindClassStringStyleKey = /* @__PURE__ */ Symbol(\"stillwind.class-string.style\");\n\nexport const stillwindClassStringCustomPropertiesKey = /* @__PURE__ */ Symbol(\n \"stillwind.class-string.custom-properties\",\n);\n\nexport const classStringOptions: FragmentRuntimeOptions = [\n \"class\",\n \"string\",\n stillwindClassStringClassKey,\n stillwindClassStringStyleKey,\n stillwindClassStringCustomPropertiesKey,\n];\n\n/** Materializes ordered fragments with `class` and string styles. */\nexport function stillwindClassStringMerge(...values: readonly unknown[]): Record<string, unknown> {\n return mergeFragments(classStringOptions, values);\n}\n\n/** Converts either class prop of a composition base to a class-only fragment. */\nexport function stillwindClassStringToFragment(\n value: Record<PropertyKey, unknown>,\n): Record<PropertyKey, unknown> {\n return toFragment(classStringOptions, value);\n}\n\n/** Serializes object style declarations or preserves a string. Other inputs omit style. */\nexport function stillwindClassStringStyleValue(value: unknown): unknown {\n return value == null ? undefined : serializeStyle(value, \"string\");\n}\n\n/** Selects compiled CVA values and returns fresh props with `class` and string styles. */\nexport function stillwindClassStringCva(base?: CvaValue, config?: CompiledCvaConfig) {\n return createCva(classStringOptions, base, config);\n}\n\nexport const stillwindClassNameObjectClassKey = /* @__PURE__ */ Symbol(\n \"stillwind.class-name-object.class\",\n);\n\nexport const stillwindClassNameObjectStyleKey = /* @__PURE__ */ Symbol(\n \"stillwind.class-name-object.style\",\n);\n\nexport const stillwindClassNameObjectCustomPropertiesKey = /* @__PURE__ */ Symbol(\n \"stillwind.class-name-object.custom-properties\",\n);\n\nexport const classNameObjectOptions: FragmentRuntimeOptions = [\n \"className\",\n \"object\",\n stillwindClassNameObjectClassKey,\n stillwindClassNameObjectStyleKey,\n stillwindClassNameObjectCustomPropertiesKey,\n];\n\n/** Materializes ordered fragments with `className` and object styles. */\nexport function stillwindClassNameObjectMerge(\n ...values: readonly unknown[]\n): Record<string, unknown> {\n return mergeFragments(classNameObjectOptions, values);\n}\n\n/** Converts either class prop of a composition base to a class-only fragment. */\nexport function stillwindClassNameObjectToFragment(\n value: Record<PropertyKey, unknown>,\n): Record<PropertyKey, unknown> {\n return toFragment(classNameObjectOptions, value);\n}\n\n/** Returns the supplied style payload, or undefined for null or undefined. */\nexport function stillwindClassNameObjectStyleValue(value: unknown): unknown {\n return value == null ? undefined : serializeStyle(value, \"object\");\n}\n\n/** Selects compiled CVA values and returns fresh props with `className` and object styles. */\nexport function stillwindClassNameObjectCva(base?: CvaValue, config?: CompiledCvaConfig) {\n return createCva(classNameObjectOptions, base, config);\n}\n"],"mappings":";AAiBA,SAAgB,SAAS,OAAuD;CAC9E,OAAO,OAAO,UAAU,YAAY,UAAU;AAChD;;;;;;;;AASA,SAAgB,eAAe,SAAkB,aAA2C;CAC1F,IAAI,gBAAgB,UAAU;EAC5B,IAAI,OAAO,YAAY,UACrB,OAAO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4BAA4B,MAAiB,QAA4B;CACvF,OAAO,UAAU,wBAAwB,MAAM,MAAM;AACvD"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Converts a dynamic value into text for a generated CSS declaration.
3
+ *
4
+ * @param value - CSS text, a number, a URL, or a boolean. URLs are quoted and CSS-escaped. True
5
+ * becomes a space and false becomes `initial`.
6
+ * @returns CSS value text. Strings and numbers are converted with `String`.
7
+ */
8
+ export declare function stillwindCssValue(value: URL | string | number | boolean): string;
9
+ /**
10
+ * Flattens class contributions and joins nonempty values with spaces.
11
+ *
12
+ * @param values - Strings, numbers, bigints, nested arrays, or objects whose truthy values enable
13
+ * their keys. Other values are ignored.
14
+ * @returns Class text in contribution order, without deduplication.
15
+ */
16
+ export declare function stillwindClsx(...values: readonly unknown[]): string;
17
+ /**
18
+ * Escapes text for use as one CSS identifier.
19
+ *
20
+ * @param value - Unescaped identifier text.
21
+ * @returns `CSS.escape` output when available, otherwise escaped text with NUL replaced by U+FFFD.
22
+ */
23
+ export declare function stillwindEscapedIdentifier(value: string): string;
24
+ /**
25
+ * Builds a CSS identifier for one keyed view transition.
26
+ *
27
+ * @param value - Nonempty class token or an object whose `v` property contains that token.
28
+ * @param key - Key appended to the token after a hyphen using `String`.
29
+ * @returns The combined token and key escaped as a CSS identifier.
30
+ */
31
+ export declare function stillwindViewTransitionName(value: unknown, key: string | number): string;
32
+ /** Compiler-produced class text, fragment channels, or nested fragment arrays. */
33
+ export type CvaValue = string | boolean | null | undefined | object;
34
+ /** Compiled configuration whose structure is immutable after factory creation. */
35
+ export interface CompiledCvaConfig {
36
+ readonly variants?: Readonly<Record<string, Readonly<Record<string, CvaValue>>>>;
37
+ readonly defaultVariants?: Readonly<Record<string, string | number | boolean | null | undefined>>;
38
+ readonly compoundVariants?: readonly Readonly<Record<string, unknown>>[];
39
+ }
40
+ export declare const stillwindClassObjectClassKey: unique symbol;
41
+ export declare const stillwindClassObjectStyleKey: unique symbol;
42
+ export declare const stillwindClassObjectCustomPropertiesKey: unique symbol;
43
+ /** Materializes ordered fragments with `class` and object styles. */
44
+ export declare function stillwindClassObjectMerge(...values: readonly unknown[]): Record<string, unknown>;
45
+ /** Converts either class prop of a composition base to a class-only fragment. */
46
+ export declare function stillwindClassObjectToFragment(value: Record<PropertyKey, unknown>): Record<PropertyKey, unknown>;
47
+ /** Returns the supplied style payload, or undefined for null or undefined. */
48
+ export declare function stillwindClassObjectStyleValue(value: unknown): unknown;
49
+ /** Selects compiled CVA values and returns fresh props with `class` and object styles. */
50
+ export declare function stillwindClassObjectCva(base?: CvaValue, config?: CompiledCvaConfig): (props?: Readonly<Record<string, unknown>>) => Record<string, unknown>;
51
+ export declare const stillwindClassStringClassKey: unique symbol;
52
+ export declare const stillwindClassStringStyleKey: unique symbol;
53
+ export declare const stillwindClassStringCustomPropertiesKey: unique symbol;
54
+ /** Materializes ordered fragments with `class` and string styles. */
55
+ export declare function stillwindClassStringMerge(...values: readonly unknown[]): Record<string, unknown>;
56
+ /** Converts either class prop of a composition base to a class-only fragment. */
57
+ export declare function stillwindClassStringToFragment(value: Record<PropertyKey, unknown>): Record<PropertyKey, unknown>;
58
+ /** Serializes object style declarations or preserves a string. Other inputs omit style. */
59
+ export declare function stillwindClassStringStyleValue(value: unknown): unknown;
60
+ /** Selects compiled CVA values and returns fresh props with `class` and string styles. */
61
+ export declare function stillwindClassStringCva(base?: CvaValue, config?: CompiledCvaConfig): (props?: Readonly<Record<string, unknown>>) => Record<string, unknown>;
62
+ export declare const stillwindClassNameObjectClassKey: unique symbol;
63
+ export declare const stillwindClassNameObjectStyleKey: unique symbol;
64
+ export declare const stillwindClassNameObjectCustomPropertiesKey: unique symbol;
65
+ /** Materializes ordered fragments with `className` and object styles. */
66
+ export declare function stillwindClassNameObjectMerge(...values: readonly unknown[]): Record<string, unknown>;
67
+ /** Converts either class prop of a composition base to a class-only fragment. */
68
+ export declare function stillwindClassNameObjectToFragment(value: Record<PropertyKey, unknown>): Record<PropertyKey, unknown>;
69
+ /** Returns the supplied style payload, or undefined for null or undefined. */
70
+ export declare function stillwindClassNameObjectStyleValue(value: unknown): unknown;
71
+ /** Selects compiled CVA values and returns fresh props with `className` and object styles. */
72
+ export declare function stillwindClassNameObjectCva(base?: CvaValue, config?: CompiledCvaConfig): (props?: Readonly<Record<string, unknown>>) => Record<string, unknown>;
73
+ //# sourceMappingURL=formats-aeLCNAXl.d.ts.map
@@ -1,5 +1,5 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
2
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-D7ZGJOf_.js";
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
3
3
  type Alpine = {
4
4
  directive(name: string, handler: (element: HTMLElement, directive: {
5
5
  expression: string;
@@ -16,5 +16,5 @@ type Alpine = {
16
16
  * Updates replace the directive's contribution, and directive removal clears it.
17
17
  */
18
18
  export declare function stillwind(alpine: Alpine): void;
19
- export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleVariant, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
19
+ export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
20
20
  //# sourceMappingURL=alpine.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { applyStyle, clearStyle } from "../style-BV4ctkni.js";
2
- import { style } from "../class-object-D24FFYqO.js";
2
+ import { style } from "../class-object-DNcjzcfH.js";
3
3
  // src/frameworks/alpine.ts
4
4
  /**
5
5
  * Registers `x-sw` for reactive compiled props. Install with `Alpine.plugin(stillwind)`
@@ -1 +1 @@
1
- {"version":3,"file":"alpine.js","names":[],"sources":["../../src/frameworks/alpine.ts"],"sourcesContent":["import { applyStyle, clearStyle } from \"../dom/style.ts\";\nimport type { StyleProps } from \"../outputs/class-object.ts\";\n\nexport type * from \"../macro/index.ts\";\nexport { style } from \"../outputs/class-object.ts\";\nexport type { StyleMacro, StyleProps, StyleResult } from \"../outputs/class-object.ts\";\n\ntype Alpine = {\n directive(\n name: string,\n handler: (\n element: HTMLElement,\n directive: {\n expression: string;\n },\n utilities: {\n evaluateLater(expression: string): (receive: (props: Readonly<StyleProps>) => void) => void;\n effect(callback: () => void): void;\n cleanup(callback: () => void): void;\n },\n ) => void,\n ): unknown;\n mutateDom<T>(callback: () => T): T;\n};\n\n/**\n * Registers `x-sw` for reactive compiled props. Install with `Alpine.plugin(stillwind)`\n * before `Alpine.start()`. The expression must return a Stillwind props object.\n * Updates replace the directive's contribution, and directive removal clears it.\n */\nexport function stillwind(alpine: Alpine): void {\n alpine.directive(\"sw\", (element, { expression }, utilities) => {\n const evaluate = utilities.evaluateLater(expression);\n utilities.effect(() => evaluate((props) => alpine.mutateDom(() => applyStyle(element, props))));\n utilities.cleanup(() => alpine.mutateDom(() => clearStyle(element)));\n });\n}\n"],"mappings":";;;;;;;;AA8BA,SAAgB,UAAU,QAAsB;CAC9C,OAAO,UAAU,OAAO,SAAS,EAAE,cAAc,cAAc;EAC7D,MAAM,WAAW,UAAU,cAAc,UAAU;EACnD,UAAU,aAAa,UAAU,UAAU,OAAO,gBAAgB,WAAW,SAAS,KAAK,CAAC,CAAC,CAAC;EAC9F,UAAU,cAAc,OAAO,gBAAgB,WAAW,OAAO,CAAC,CAAC;CACrE,CAAC;AACH"}
1
+ {"version":3,"file":"alpine.js","names":[],"sources":["../../src/frameworks/alpine.ts"],"sourcesContent":["import { applyStyle, clearStyle } from \"../dom/style.ts\";\nimport type { StyleProps } from \"../outputs/class-object.ts\";\n\nexport type * from \"../macro/index.ts\";\nexport { style } from \"../outputs/class-object.ts\";\nexport type { StyleMacro, StyleProps, StyleResult } from \"../outputs/class-object.ts\";\nexport type { StyleResult as StyleResultOf } from \"../macro/output.ts\";\n\ntype Alpine = {\n directive(\n name: string,\n handler: (\n element: HTMLElement,\n directive: {\n expression: string;\n },\n utilities: {\n evaluateLater(expression: string): (receive: (props: Readonly<StyleProps>) => void) => void;\n effect(callback: () => void): void;\n cleanup(callback: () => void): void;\n },\n ) => void,\n ): unknown;\n mutateDom<T>(callback: () => T): T;\n};\n\n/**\n * Registers `x-sw` for reactive compiled props. Install with `Alpine.plugin(stillwind)`\n * before `Alpine.start()`. The expression must return a Stillwind props object.\n * Updates replace the directive's contribution, and directive removal clears it.\n */\nexport function stillwind(alpine: Alpine): void {\n alpine.directive(\"sw\", (element, { expression }, utilities) => {\n const evaluate = utilities.evaluateLater(expression);\n utilities.effect(() => evaluate((props) => alpine.mutateDom(() => applyStyle(element, props))));\n utilities.cleanup(() => alpine.mutateDom(() => clearStyle(element)));\n });\n}\n"],"mappings":";;;;;;;;AA+BA,SAAgB,UAAU,QAAsB;CAC9C,OAAO,UAAU,OAAO,SAAS,EAAE,cAAc,cAAc;EAC7D,MAAM,WAAW,UAAU,cAAc,UAAU;EACnD,UAAU,aAAa,UAAU,UAAU,OAAO,gBAAgB,WAAW,SAAS,KAAK,CAAC,CAAC,CAAC;EAC9F,UAAU,cAAc,OAAO,gBAAgB,WAAW,OAAO,CAAC,CAAC;CACrE,CAAC;AACH"}
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
2
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-string-CQHnc9GN.js";
3
- export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleVariant, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-string-C5YFtXQn.js";
3
+ export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-string-Db8-oI4q.js";
1
+ export { style } from "../class-string-KnYInbiw.js";
@@ -1,5 +1,5 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
2
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-D7ZGJOf_.js";
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
3
3
  import { nothing } from "lit";
4
4
  import { AsyncDirective } from "lit/async-directive.js";
5
5
  import { ElementPart, PartInfo } from "lit/directive.js";
@@ -17,5 +17,5 @@ declare class StyleDirective extends AsyncDirective {
17
17
  * the latest props. Server rendering of this directive is unsupported.
18
18
  */
19
19
  export declare const applyStyle: (_props: Readonly<StyleProps>) => import("lit/async-directive.js").DirectiveResult<typeof StyleDirective>;
20
- export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleVariant, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
20
+ export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
21
21
  //# sourceMappingURL=lit.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { applyStyle as applyStyle$1, clearStyle } from "../style-BV4ctkni.js";
2
- import { style } from "../class-object-D24FFYqO.js";
2
+ import { style } from "../class-object-DNcjzcfH.js";
3
3
  import { nothing } from "lit";
4
4
  import { AsyncDirective } from "lit/async-directive.js";
5
5
  import { PartType, directive } from "lit/directive.js";
@@ -1 +1 @@
1
- {"version":3,"file":"lit.js","names":[],"sources":["../../src/frameworks/lit.ts"],"sourcesContent":["import { nothing } from \"lit\";\nimport { AsyncDirective } from \"lit/async-directive.js\";\nimport { directive, PartType, type ElementPart, type PartInfo } from \"lit/directive.js\";\n\nimport { applyStyle as apply, clearStyle, type StyleElement } from \"../dom/style.ts\";\nimport type { StyleProps } from \"../outputs/class-object.ts\";\n\nexport type * from \"../macro/index.ts\";\nexport { style } from \"../outputs/class-object.ts\";\nexport type { StyleMacro, StyleProps, StyleResult } from \"../outputs/class-object.ts\";\n\nclass StyleDirective extends AsyncDirective {\n #element?: StyleElement;\n #props?: Readonly<StyleProps>;\n\n constructor(part: PartInfo) {\n super(part);\n if (part.type !== PartType.ELEMENT) {\n throw new Error(\"Stillwind applyStyle must be used in a Lit element binding\");\n }\n }\n\n override render(_props: Readonly<StyleProps>): typeof nothing {\n return nothing;\n }\n\n override update(part: ElementPart, [props]: [Readonly<StyleProps>]): typeof nothing {\n this.#element = part.element as StyleElement;\n this.#props = props;\n if (this.isConnected) {\n apply(this.#element, props);\n }\n return nothing;\n }\n\n protected override disconnected(): void {\n if (this.#element) {\n clearStyle(this.#element);\n }\n }\n\n protected override reconnected(): void {\n if (this.#element && this.#props) {\n apply(this.#element, this.#props);\n }\n }\n}\n\n/**\n * Applies compiled props in a browser Lit element binding: `<div ${applyStyle(props)}>`.\n * Updates replace its contribution and disconnection clears it. Reconnection reapplies\n * the latest props. Server rendering of this directive is unsupported.\n */\nexport const applyStyle = directive(StyleDirective);\n"],"mappings":";;;;;;AAWA,IAAM,iBAAN,cAA6B,eAAe;CAC1C;CACA;CAEA,YAAY,MAAgB;EAC1B,MAAM,IAAI;EACV,IAAI,KAAK,SAAS,SAAS,SACzB,MAAM,IAAI,MAAM,4DAA4D;CAEhF;CAEA,OAAgB,QAA8C;EAC5D,OAAO;CACT;CAEA,OAAgB,MAAmB,CAAC,QAAgD;EAClF,KAAK,WAAW,KAAK;EACrB,KAAK,SAAS;EACd,IAAI,KAAK,aACP,aAAM,KAAK,UAAU,KAAK;EAE5B,OAAO;CACT;CAEA,eAAwC;EACtC,IAAI,KAAK,UACP,WAAW,KAAK,QAAQ;CAE5B;CAEA,cAAuC;EACrC,IAAI,KAAK,YAAY,KAAK,QACxB,aAAM,KAAK,UAAU,KAAK,MAAM;CAEpC;AACF;;;;;;AAOA,MAAa,aAAa,UAAU,cAAc"}
1
+ {"version":3,"file":"lit.js","names":[],"sources":["../../src/frameworks/lit.ts"],"sourcesContent":["import { nothing } from \"lit\";\nimport { AsyncDirective } from \"lit/async-directive.js\";\nimport { directive, PartType, type ElementPart, type PartInfo } from \"lit/directive.js\";\n\nimport { applyStyle as apply, clearStyle, type StyleElement } from \"../dom/style.ts\";\nimport type { StyleProps } from \"../outputs/class-object.ts\";\n\nexport type * from \"../macro/index.ts\";\nexport { style } from \"../outputs/class-object.ts\";\nexport type { StyleMacro, StyleProps, StyleResult } from \"../outputs/class-object.ts\";\nexport type { StyleResult as StyleResultOf } from \"../macro/output.ts\";\n\nclass StyleDirective extends AsyncDirective {\n #element?: StyleElement;\n #props?: Readonly<StyleProps>;\n\n constructor(part: PartInfo) {\n super(part);\n if (part.type !== PartType.ELEMENT) {\n throw new Error(\"Stillwind applyStyle must be used in a Lit element binding\");\n }\n }\n\n override render(_props: Readonly<StyleProps>): typeof nothing {\n return nothing;\n }\n\n override update(part: ElementPart, [props]: [Readonly<StyleProps>]): typeof nothing {\n this.#element = part.element as StyleElement;\n this.#props = props;\n if (this.isConnected) {\n apply(this.#element, props);\n }\n return nothing;\n }\n\n protected override disconnected(): void {\n if (this.#element) {\n clearStyle(this.#element);\n }\n }\n\n protected override reconnected(): void {\n if (this.#element && this.#props) {\n apply(this.#element, this.#props);\n }\n }\n}\n\n/**\n * Applies compiled props in a browser Lit element binding: `<div ${applyStyle(props)}>`.\n * Updates replace its contribution and disconnection clears it. Reconnection reapplies\n * the latest props. Server rendering of this directive is unsupported.\n */\nexport const applyStyle = directive(StyleDirective);\n"],"mappings":";;;;;;AAYA,IAAM,iBAAN,cAA6B,eAAe;CAC1C;CACA;CAEA,YAAY,MAAgB;EAC1B,MAAM,IAAI;EACV,IAAI,KAAK,SAAS,SAAS,SACzB,MAAM,IAAI,MAAM,4DAA4D;CAEhF;CAEA,OAAgB,QAA8C;EAC5D,OAAO;CACT;CAEA,OAAgB,MAAmB,CAAC,QAAgD;EAClF,KAAK,WAAW,KAAK;EACrB,KAAK,SAAS;EACd,IAAI,KAAK,aACP,aAAM,KAAK,UAAU,KAAK;EAE5B,OAAO;CACT;CAEA,eAAwC;EACtC,IAAI,KAAK,UACP,WAAW,KAAK,QAAQ;CAE5B;CAEA,cAAuC;EACrC,IAAI,KAAK,YAAY,KAAK,QACxB,aAAM,KAAK,UAAU,KAAK,MAAM;CAEpC;AACF;;;;;;AAOA,MAAa,aAAa,UAAU,cAAc"}
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
2
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-D7ZGJOf_.js";
3
- export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleVariant, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
3
+ export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-object-D24FFYqO.js";
1
+ export { style } from "../class-object-DNcjzcfH.js";
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
2
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-D7ZGJOf_.js";
3
- export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleVariant, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
3
+ export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-object-D24FFYqO.js";
1
+ export { style } from "../class-object-DNcjzcfH.js";
@@ -1,4 +1,4 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleMacro as StyleMacro$1, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleMacro as StyleMacro$1, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
2
  type StyleProps = {
3
3
  className?: string;
4
4
  style?: Record<string, string>;
@@ -6,5 +6,5 @@ type StyleProps = {
6
6
  type StyleResult<Id extends string = string> = StyleResult$1<Id, StyleProps>;
7
7
  type StyleMacro = StyleMacro$1<StyleProps>;
8
8
  export declare const style: StyleMacro;
9
- export type { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleMacro, StyleProps, StyleRef, StyleRefProjection, StyleResult, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro };
9
+ export type { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleMacro, StyleProps, StyleRef, StyleRefProjection, StyleResult, StyleResult$1 as StyleResultOf, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro };
10
10
  //# sourceMappingURL=react.d.ts.map
@@ -1,4 +1,4 @@
1
- import { createStyleMacro } from "../style-fTQbsVWZ.js";
1
+ import { createStyleMacro } from "../style-BE8vuLiO.js";
2
2
  // src/outputs/class-name-object.ts
3
3
  const style = createStyleMacro();
4
4
  export { style };
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
2
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-D7ZGJOf_.js";
3
- export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleVariant, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
3
+ export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-object-D24FFYqO.js";
1
+ export { style } from "../class-object-DNcjzcfH.js";
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
2
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-string-CQHnc9GN.js";
3
- export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleVariant, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-string-C5YFtXQn.js";
3
+ export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-string-Db8-oI4q.js";
1
+ export { style } from "../class-string-KnYInbiw.js";
@@ -1,5 +1,5 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
2
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-D7ZGJOf_.js";
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
3
3
  type StyleElement = Element & ElementCSSInlineStyle;
4
4
  /**
5
5
  * Applies compiled props to an HTML, SVG, or other element with inline CSS support.
@@ -23,5 +23,5 @@ export declare function applyStyle(element: StyleElement, props: Readonly<StyleP
23
23
  * @param element - Element previously passed to `applyStyle`. Other elements are unchanged.
24
24
  */
25
25
  export declare function clearStyle(element: StyleElement): void;
26
- export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleVariant, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
26
+ export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
27
27
  //# sourceMappingURL=vanilla.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import { applyStyle, clearStyle } from "../style-BV4ctkni.js";
2
- import { style } from "../class-object-D24FFYqO.js";
2
+ import { style } from "../class-object-DNcjzcfH.js";
3
3
  export { applyStyle, clearStyle, style };
@@ -1,3 +1,3 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
2
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-D7ZGJOf_.js";
3
- export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleVariant, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
2
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
3
+ export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-object-D24FFYqO.js";
1
+ export { style } from "../class-object-DNcjzcfH.js";