stillwind 0.0.0 → 0.1.0-rc.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 (305) hide show
  1. package/AGENTS_TEMPLATE.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +166 -0
  4. package/TAILWINDCSS-MIT-LICENSE +21 -0
  5. package/css/builtin-metadata/sw-motion-properties.css +186 -0
  6. package/css/builtin-metadata/tw-legacy-metadata.css +36 -0
  7. package/css/builtin-metadata/tw-properties.css +944 -0
  8. package/css/builtin-metadata/tw-registry-metadata.css +52 -0
  9. package/css/builtin-metadata/tw-relationship-metadata.css +10 -0
  10. package/css/builtin-utilities/sw-motion-contexts.css +1043 -0
  11. package/css/builtin-utilities/tw-backgrounds.css +606 -0
  12. package/css/builtin-utilities/tw-borders.css +954 -0
  13. package/css/builtin-utilities/tw-effects.css +1209 -0
  14. package/css/builtin-utilities/tw-flex-grid.css +749 -0
  15. package/css/builtin-utilities/tw-interactivity.css +680 -0
  16. package/css/builtin-utilities/tw-layout.css +943 -0
  17. package/css/builtin-utilities/tw-masks.css +1268 -0
  18. package/css/builtin-utilities/tw-motion.css +142 -0
  19. package/css/builtin-utilities/tw-spacing-sizing.css +621 -0
  20. package/css/builtin-utilities/tw-svg.css +50 -0
  21. package/css/builtin-utilities/tw-transforms.css +652 -0
  22. package/css/builtin-utilities/tw-typography.css +720 -0
  23. package/css/builtin-variants/sw-conditional.css +5 -0
  24. package/css/builtin-variants/sw-document.css +13 -0
  25. package/css/builtin-variants/tw-conditional.css +187 -0
  26. package/css/builtin-variants/tw-dynamic-selector.css +49 -0
  27. package/css/builtin-variants/tw-relationship.css +41 -0
  28. package/css/builtin-variants/tw-state.css +159 -0
  29. package/css/builtin-variants/tw-structural.css +121 -0
  30. package/css/builtins.css +111 -0
  31. package/css/preflight.css +401 -0
  32. package/css/templates.css +40 -0
  33. package/css/theme.css +546 -0
  34. package/css/utilities.css +9 -0
  35. package/dist/class-object-D24FFYqO.js +6 -0
  36. package/dist/class-object-D24FFYqO.js.map +1 -0
  37. package/dist/class-object-D7ZGJOf_.d.ts +9 -0
  38. package/dist/class-string-CQHnc9GN.d.ts +9 -0
  39. package/dist/class-string-Db8-oI4q.js +6 -0
  40. package/dist/class-string-Db8-oI4q.js.map +1 -0
  41. package/dist/config.d.ts +1 -0
  42. package/dist/config.js +2 -0
  43. package/dist/css.d.ts +100 -0
  44. package/dist/css.js +143 -0
  45. package/dist/css.js.map +1 -0
  46. package/dist/cva-BwX07CFw.js +204 -0
  47. package/dist/cva-BwX07CFw.js.map +1 -0
  48. package/dist/cva-DSpDNBYi.d.ts +9 -0
  49. package/dist/development-DttPQc71.d.ts +27 -0
  50. package/dist/development-J-JCSIm0.js +111 -0
  51. package/dist/development-J-JCSIm0.js.map +1 -0
  52. package/dist/frameworks/alpine.d.ts +20 -0
  53. package/dist/frameworks/alpine.js +18 -0
  54. package/dist/frameworks/alpine.js.map +1 -0
  55. package/dist/frameworks/astro.d.ts +3 -0
  56. package/dist/frameworks/astro.js +1 -0
  57. package/dist/frameworks/lit.d.ts +21 -0
  58. package/dist/frameworks/lit.js +38 -0
  59. package/dist/frameworks/lit.js.map +1 -0
  60. package/dist/frameworks/preact.d.ts +3 -0
  61. package/dist/frameworks/preact.js +1 -0
  62. package/dist/frameworks/qwik.d.ts +3 -0
  63. package/dist/frameworks/qwik.js +1 -0
  64. package/dist/frameworks/react.d.ts +10 -0
  65. package/dist/frameworks/react.js +6 -0
  66. package/dist/frameworks/react.js.map +1 -0
  67. package/dist/frameworks/solid.d.ts +3 -0
  68. package/dist/frameworks/solid.js +1 -0
  69. package/dist/frameworks/svelte.d.ts +3 -0
  70. package/dist/frameworks/svelte.js +1 -0
  71. package/dist/frameworks/vanilla.d.ts +27 -0
  72. package/dist/frameworks/vanilla.js +3 -0
  73. package/dist/frameworks/vue.d.ts +3 -0
  74. package/dist/frameworks/vue.js +1 -0
  75. package/dist/index-RwVFpxhE.d.ts +815 -0
  76. package/dist/macro/index.d.ts +2 -0
  77. package/dist/macro/index.js +1 -0
  78. package/dist/module-css.d.ts +30 -0
  79. package/dist/module-css.js +23 -0
  80. package/dist/module-css.js.map +1 -0
  81. package/dist/runtime/class-name-object-development.d.ts +10 -0
  82. package/dist/runtime/class-name-object-development.js +18 -0
  83. package/dist/runtime/class-name-object-development.js.map +1 -0
  84. package/dist/runtime/class-name-object.d.ts +16 -0
  85. package/dist/runtime/class-name-object.js +31 -0
  86. package/dist/runtime/class-name-object.js.map +1 -0
  87. package/dist/runtime/class-object-development.d.ts +10 -0
  88. package/dist/runtime/class-object-development.js +18 -0
  89. package/dist/runtime/class-object-development.js.map +1 -0
  90. package/dist/runtime/class-object.d.ts +16 -0
  91. package/dist/runtime/class-object.js +31 -0
  92. package/dist/runtime/class-object.js.map +1 -0
  93. package/dist/runtime/class-string-development.d.ts +10 -0
  94. package/dist/runtime/class-string-development.js +18 -0
  95. package/dist/runtime/class-string-development.js.map +1 -0
  96. package/dist/runtime/class-string.d.ts +16 -0
  97. package/dist/runtime/class-string.js +31 -0
  98. package/dist/runtime/class-string.js.map +1 -0
  99. package/dist/shared-B9IQXU6P.d.ts +32 -0
  100. package/dist/style-BV4ctkni.js +78 -0
  101. package/dist/style-BV4ctkni.js.map +1 -0
  102. package/dist/style-fTQbsVWZ.js +41 -0
  103. package/dist/style-fTQbsVWZ.js.map +1 -0
  104. package/docs/agents.md +76 -0
  105. package/docs/at-rules/apply.md +93 -0
  106. package/docs/at-rules/custom-variant.md +127 -0
  107. package/docs/at-rules/index.md +75 -0
  108. package/docs/at-rules/plugin.md +71 -0
  109. package/docs/at-rules/registry-directives.md +181 -0
  110. package/docs/at-rules/slot.md +58 -0
  111. package/docs/at-rules/stillwind-css-template.md +126 -0
  112. package/docs/at-rules/stillwind-property.md +133 -0
  113. package/docs/at-rules/stillwind-registry.md +115 -0
  114. package/docs/at-rules/stillwind-require-properties.md +91 -0
  115. package/docs/at-rules/stillwind-slot.md +85 -0
  116. package/docs/at-rules/stillwind-undef-arbitrary-property.md +75 -0
  117. package/docs/at-rules/stillwind-undef-utility.md +87 -0
  118. package/docs/at-rules/stillwind-undef-variant.md +55 -0
  119. package/docs/at-rules/theme.md +304 -0
  120. package/docs/at-rules/utility.md +286 -0
  121. package/docs/at-rules/variant.md +91 -0
  122. package/docs/concepts/css-ordering.md +245 -0
  123. package/docs/concepts/how-styles-compile.md +132 -0
  124. package/docs/configuration.md +298 -0
  125. package/docs/errors/SW01001.md +51 -0
  126. package/docs/errors/SW01002.md +52 -0
  127. package/docs/errors/SW01003.md +69 -0
  128. package/docs/errors/SW02001.md +23 -0
  129. package/docs/errors/SW02002.md +51 -0
  130. package/docs/errors/SW03001.md +71 -0
  131. package/docs/errors/SW03002.md +79 -0
  132. package/docs/errors/SW03003.md +36 -0
  133. package/docs/errors/SW10001.md +34 -0
  134. package/docs/errors/SW10002.md +36 -0
  135. package/docs/errors/SW10003.md +30 -0
  136. package/docs/errors/SW10004.md +39 -0
  137. package/docs/errors/SW10005.md +35 -0
  138. package/docs/errors/SW11001.md +37 -0
  139. package/docs/errors/SW11002.md +65 -0
  140. package/docs/errors/SW11003.md +20 -0
  141. package/docs/errors/SW12001.md +43 -0
  142. package/docs/errors/SW12002.md +42 -0
  143. package/docs/errors/SW13001.md +35 -0
  144. package/docs/errors/SW13002.md +33 -0
  145. package/docs/errors/SW13003.md +18 -0
  146. package/docs/errors/SW13004.md +45 -0
  147. package/docs/errors/SW14001.md +44 -0
  148. package/docs/errors/SW14002.md +47 -0
  149. package/docs/errors/SW14003.md +38 -0
  150. package/docs/errors/SW14004.md +48 -0
  151. package/docs/errors/SW14005.md +51 -0
  152. package/docs/errors/SW14006.md +19 -0
  153. package/docs/errors/SW14007.md +35 -0
  154. package/docs/errors/SW14008.md +41 -0
  155. package/docs/errors/SW15001.md +18 -0
  156. package/docs/errors/SW15002.md +19 -0
  157. package/docs/errors/SW15003.md +16 -0
  158. package/docs/errors/SW30001.md +21 -0
  159. package/docs/errors/SW30002.md +18 -0
  160. package/docs/errors/SW30003.md +17 -0
  161. package/docs/errors/SW30004.md +18 -0
  162. package/docs/errors/SW31001.md +20 -0
  163. package/docs/errors/SW31002.md +17 -0
  164. package/docs/errors/SW31003.md +18 -0
  165. package/docs/errors/SW31004.md +20 -0
  166. package/docs/errors/SW31005.md +18 -0
  167. package/docs/errors/SW31006.md +17 -0
  168. package/docs/errors/SW31007.md +18 -0
  169. package/docs/errors/SW31008.md +16 -0
  170. package/docs/errors/SW31009.md +18 -0
  171. package/docs/errors/SW31010.md +16 -0
  172. package/docs/errors/SW31011.md +17 -0
  173. package/docs/errors/SW32001.md +18 -0
  174. package/docs/errors/SW32002.md +45 -0
  175. package/docs/errors/SW32003.md +43 -0
  176. package/docs/errors/SW32004.md +17 -0
  177. package/docs/errors/SW32005.md +40 -0
  178. package/docs/errors/SW32006.md +18 -0
  179. package/docs/errors/SW32007.md +20 -0
  180. package/docs/errors/SW33001.md +17 -0
  181. package/docs/errors/SW33002.md +17 -0
  182. package/docs/errors/SW33003.md +17 -0
  183. package/docs/errors/SW33004.md +17 -0
  184. package/docs/errors/SW33005.md +20 -0
  185. package/docs/errors/SW34001.md +18 -0
  186. package/docs/errors/SW34002.md +17 -0
  187. package/docs/errors/SW34003.md +18 -0
  188. package/docs/errors/SW90001.md +17 -0
  189. package/docs/errors/SW90002.md +18 -0
  190. package/docs/errors/SW90003.md +17 -0
  191. package/docs/errors/SW90004.md +17 -0
  192. package/docs/errors/SW90005.md +16 -0
  193. package/docs/errors/SW90006.md +17 -0
  194. package/docs/errors/SW90007.md +17 -0
  195. package/docs/errors/SW90008.md +17 -0
  196. package/docs/errors/index.md +125 -0
  197. package/docs/guides/animations.md +73 -0
  198. package/docs/guides/design-systems.md +119 -0
  199. package/docs/guides/element-relationships.md +136 -0
  200. package/docs/guides/lint-adoption.md +128 -0
  201. package/docs/guides/migrating-from-css.md +126 -0
  202. package/docs/guides/migrating-from-tailwind.md +179 -0
  203. package/docs/guides/recommended-practices.md +338 -0
  204. package/docs/guides/responsive-styles.md +103 -0
  205. package/docs/guides/reusable-styles.md +110 -0
  206. package/docs/guides/style.md +181 -0
  207. package/docs/guides/tailwind-compatibility.md +126 -0
  208. package/docs/guides/view-transitions.md +84 -0
  209. package/docs/guides/web-components.md +216 -0
  210. package/docs/index.md +136 -0
  211. package/docs/integrations.md +190 -0
  212. package/docs/lints/ambiguous-style-base-order.md +50 -0
  213. package/docs/lints/bypassed-undefinition.md +50 -0
  214. package/docs/lints/clamped-value.md +44 -0
  215. package/docs/lints/conflicting-provider-properties.md +47 -0
  216. package/docs/lints/conflicting-utilities.md +55 -0
  217. package/docs/lints/document-scoped-selector.md +45 -0
  218. package/docs/lints/duplicate-definition.md +44 -0
  219. package/docs/lints/duplicate-utility.md +44 -0
  220. package/docs/lints/duplicate-view-transition-name.md +45 -0
  221. package/docs/lints/ignored-definition-condition.md +51 -0
  222. package/docs/lints/ignored-tailwind-feature.md +62 -0
  223. package/docs/lints/incompatible-property-value.md +60 -0
  224. package/docs/lints/incompatible-theme-value.md +46 -0
  225. package/docs/lints/index.md +140 -0
  226. package/docs/lints/ineffective-anchor-scope.md +46 -0
  227. package/docs/lints/interfering-imported-style-base.md +57 -0
  228. package/docs/lints/invalid-animation-option.md +47 -0
  229. package/docs/lints/invalid-css-directive.md +43 -0
  230. package/docs/lints/invalid-css-import.md +43 -0
  231. package/docs/lints/invalid-css-input.md +45 -0
  232. package/docs/lints/invalid-cva-config.md +46 -0
  233. package/docs/lints/invalid-cva-input.md +50 -0
  234. package/docs/lints/invalid-keyframes-definition.md +47 -0
  235. package/docs/lints/invalid-keyframes-use.md +47 -0
  236. package/docs/lints/invalid-keyframes-variant.md +48 -0
  237. package/docs/lints/invalid-lint-suppression.md +47 -0
  238. package/docs/lints/invalid-marker-use.md +53 -0
  239. package/docs/lints/invalid-media-query.md +52 -0
  240. package/docs/lints/invalid-ref-input.md +49 -0
  241. package/docs/lints/invalid-rule-group-input.md +58 -0
  242. package/docs/lints/invalid-runtime-condition.md +67 -0
  243. package/docs/lints/invalid-style-composition.md +52 -0
  244. package/docs/lints/invalid-style-input.md +47 -0
  245. package/docs/lints/invalid-theme-reference.md +52 -0
  246. package/docs/lints/invalid-utility.md +44 -0
  247. package/docs/lints/invalid-variant.md +45 -0
  248. package/docs/lints/invalid-view-transition-definition.md +46 -0
  249. package/docs/lints/invalid-view-transition-use.md +46 -0
  250. package/docs/lints/invalid-view-transition-variant.md +51 -0
  251. package/docs/lints/mismatched-framework-import.md +47 -0
  252. package/docs/lints/missing-document-target.md +44 -0
  253. package/docs/lints/missing-ref-attachment.md +44 -0
  254. package/docs/lints/missing-view-transition-name.md +46 -0
  255. package/docs/lints/mutating-macro-argument.md +48 -0
  256. package/docs/lints/no-arbitrary-breakpoints.md +50 -0
  257. package/docs/lints/no-arbitrary-colors.md +51 -0
  258. package/docs/lints/no-arbitrary-spacing.md +57 -0
  259. package/docs/lints/no-class-property.md +58 -0
  260. package/docs/lints/no-important.md +50 -0
  261. package/docs/lints/no-restricted-declarations.md +76 -0
  262. package/docs/lints/no-restricted-length-units.md +73 -0
  263. package/docs/lints/no-restricted-theme-tokens.md +73 -0
  264. package/docs/lints/no-restricted-utilities.md +73 -0
  265. package/docs/lints/prefer-canonical-utilities.md +69 -0
  266. package/docs/lints/prefer-direct-styling.md +47 -0
  267. package/docs/lints/prefer-explicit-nesting-selector.md +42 -0
  268. package/docs/lints/prefer-logical-properties.md +49 -0
  269. package/docs/lints/prefer-sorted-utilities.md +46 -0
  270. package/docs/lints/prefer-typed-relationships.md +48 -0
  271. package/docs/lints/prefer-typed-variables.md +43 -0
  272. package/docs/lints/prefer-variant-directive.md +59 -0
  273. package/docs/lints/redundant-variant.md +50 -0
  274. package/docs/lints/repeated-nesting-selector.md +59 -0
  275. package/docs/lints/runtime-condition-requires-css-if.md +59 -0
  276. package/docs/lints/split-view-transition-class.md +47 -0
  277. package/docs/lints/suspending-macro-argument.md +46 -0
  278. package/docs/lints/unknown-utility.md +47 -0
  279. package/docs/lints/unknown-variant.md +42 -0
  280. package/docs/lints/unsatisfiable-variants.md +42 -0
  281. package/docs/lints/unused-lint-suppression.md +57 -0
  282. package/docs/lints/unverified-style-base.md +64 -0
  283. package/docs/macros/anchor-scope.md +90 -0
  284. package/docs/macros/css.md +68 -0
  285. package/docs/macros/cva.md +153 -0
  286. package/docs/macros/index.md +30 -0
  287. package/docs/macros/keyframes.md +98 -0
  288. package/docs/macros/media.md +65 -0
  289. package/docs/macros/ref/as-anchor.md +70 -0
  290. package/docs/macros/ref/as-container.md +64 -0
  291. package/docs/macros/ref/at.md +68 -0
  292. package/docs/macros/ref/condition.md +86 -0
  293. package/docs/macros/ref/in.md +81 -0
  294. package/docs/macros/ref/index.md +115 -0
  295. package/docs/macros/ref/position-anchor.md +64 -0
  296. package/docs/macros/style.md +185 -0
  297. package/docs/macros/view-transition.md +159 -0
  298. package/docs/utilities.md +35 -0
  299. package/docs/why.md +144 -0
  300. package/index.css +7 -0
  301. package/package.json +135 -8
  302. package/skills/migrate-to-stillwind/SKILL.md +81 -0
  303. package/skills/setup-stillwind/SKILL.md +51 -0
  304. package/skills/stillwind/SKILL.md +54 -0
  305. package/index.js +0 -1
@@ -0,0 +1,2 @@
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, StyleRef, StyleRefProjection, StyleResult, StyleVariant, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-RwVFpxhE.js";
2
+ 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 StyleRef, type StyleRefProjection, type StyleResult, type StyleVariant, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, createStyleMacro };
@@ -0,0 +1 @@
1
+ export { createStyleMacro } from "../style-fTQbsVWZ.js";
@@ -0,0 +1,30 @@
1
+ /**
2
+ * One compiled stylesheet occurrence, used for ordered CSS text and constructed stylesheets.
3
+ */
4
+ export interface CssPart {
5
+ /**
6
+ * Cache identity for this occurrence. A document reuses its sheet while both key and CSS match.
7
+ */
8
+ readonly key: string;
9
+ /**
10
+ * CSS body of this occurrence, without notices. `cssText` from `stillwind/css` combines bodies
11
+ * and adds their notices.
12
+ */
13
+ readonly css: string;
14
+ /**
15
+ * Notices, such as licenses, that this occurrence requires. A missing list means none.
16
+ */
17
+ readonly banners?: readonly string[];
18
+ }
19
+ /**
20
+ * CSS text supplied when a compiler integration replaces this module. Evaluating this source module
21
+ * throws before initialization completes.
22
+ */
23
+ export declare const css: string;
24
+ /**
25
+ * Ordered CSS occurrences supplied by a compiler integration. The source placeholder is empty and
26
+ * cannot be used without that replacement.
27
+ */
28
+ export declare const parts: readonly CssPart[];
29
+ export { css as default };
30
+ //# sourceMappingURL=module-css.d.ts.map
@@ -0,0 +1,23 @@
1
+ // src/module-css.ts
2
+ /**
3
+ * Rejects evaluation of an explicit CSS import that the compiler integration has not replaced.
4
+ *
5
+ * @returns No value. This function always throws.
6
+ * @throws Always, because this runtime module cannot provide compiled CSS.
7
+ */
8
+ function missingCompiler() {
9
+ throw new Error("stillwind/module-css requires a Stillwind compiler integration");
10
+ }
11
+ /**
12
+ * CSS text supplied when a compiler integration replaces this module. Evaluating this source module
13
+ * throws before initialization completes.
14
+ */
15
+ const css = missingCompiler();
16
+ /**
17
+ * Ordered CSS occurrences supplied by a compiler integration. The source placeholder is empty and
18
+ * cannot be used without that replacement.
19
+ */
20
+ const parts = [];
21
+ export { css, css as default, parts };
22
+
23
+ //# sourceMappingURL=module-css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-css.js","names":[],"sources":["../src/module-css.ts"],"sourcesContent":["/**\n * Rejects evaluation of an explicit CSS import that the compiler integration has not replaced.\n *\n * @returns No value. This function always throws.\n * @throws Always, because this runtime module cannot provide compiled CSS.\n */\nfunction missingCompiler(): string {\n throw new Error(\"stillwind/module-css requires a Stillwind compiler integration\");\n}\n\n/**\n * One compiled stylesheet occurrence, used for ordered CSS text and constructed stylesheets.\n */\nexport interface CssPart {\n /**\n * Cache identity for this occurrence. A document reuses its sheet while both key and CSS match.\n */\n readonly key: string;\n /**\n * CSS body of this occurrence, without notices. `cssText` from `stillwind/css` combines bodies\n * and adds their notices.\n */\n readonly css: string;\n /**\n * Notices, such as licenses, that this occurrence requires. A missing list means none.\n */\n readonly banners?: readonly string[];\n}\n\n/**\n * CSS text supplied when a compiler integration replaces this module. Evaluating this source module\n * throws before initialization completes.\n */\nexport const css: string = missingCompiler();\n\n/**\n * Ordered CSS occurrences supplied by a compiler integration. The source placeholder is empty and\n * cannot be used without that replacement.\n */\nexport const parts: readonly CssPart[] = [];\n\n/**\n * Default export of the compiled CSS text. The compiler integration must replace this module before\n * evaluation.\n */\nexport default css;\n"],"mappings":";;;;;;;AAMA,SAAS,kBAA0B;CACjC,MAAM,IAAI,MAAM,gEAAgE;AAClF;;;;;AAyBA,MAAa,MAAc,gBAAgB;;;;;AAM3C,MAAa,QAA4B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { CompiledCvaConfig, CvaValue } from "../cva-DSpDNBYi.js";
2
+ import { stillwindClsxChecked, stillwindRefClassChecked, stillwindViewTransitionNameChecked } from "../development-DttPQc71.js";
3
+ /** Checks fragment ownership and class contributions before materializing `className` and object styles. */
4
+ export declare function stillwindMergeChecked(...values: readonly unknown[]): Record<string, unknown>;
5
+ /** Rejects nonobjects before converting either class prop to a class-only fragment. */
6
+ export declare function stillwindToFragmentChecked(value: unknown): Record<PropertyKey, unknown>;
7
+ /** Checks external classes and selected fragments before materializing CVA props with `className` and object styles. */
8
+ export declare function stillwindCvaChecked(base?: CvaValue, config?: CompiledCvaConfig): (props?: Readonly<Record<string, unknown>>) => Record<string, unknown>;
9
+ export { stillwindClsxChecked, stillwindRefClassChecked, stillwindViewTransitionNameChecked };
10
+ //# sourceMappingURL=class-name-object-development.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { options } from "./class-name-object.js";
2
+ import { createCvaChecked, mergeFragmentsChecked, stillwindClsxChecked, stillwindRefClassChecked, stillwindViewTransitionNameChecked, toFragmentChecked } from "../development-J-JCSIm0.js";
3
+ // src/runtime/class-name-object-development.ts
4
+ /** Checks fragment ownership and class contributions before materializing `className` and object styles. */
5
+ function stillwindMergeChecked(...values) {
6
+ return mergeFragmentsChecked(options, values);
7
+ }
8
+ /** Rejects nonobjects before converting either class prop to a class-only fragment. */
9
+ function stillwindToFragmentChecked(value) {
10
+ return toFragmentChecked(options, value);
11
+ }
12
+ /** Checks external classes and selected fragments before materializing CVA props with `className` and object styles. */
13
+ function stillwindCvaChecked(base, config) {
14
+ return createCvaChecked(options, base, config);
15
+ }
16
+ export { stillwindClsxChecked, stillwindCvaChecked, stillwindMergeChecked, stillwindRefClassChecked, stillwindToFragmentChecked, stillwindViewTransitionNameChecked };
17
+
18
+ //# sourceMappingURL=class-name-object-development.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-name-object-development.js","names":[],"sources":["../../src/runtime/class-name-object-development.ts"],"sourcesContent":["import { options } from \"./class-name-object.ts\";\nimport type { CompiledCvaConfig, CvaValue } from \"./cva.ts\";\nimport { createCvaChecked, mergeFragmentsChecked, toFragmentChecked } from \"./development.ts\";\n\nexport {\n stillwindClsxChecked,\n stillwindRefClassChecked,\n stillwindViewTransitionNameChecked,\n} from \"./development.ts\";\n\n/** Checks fragment ownership and class contributions before materializing `className` and object styles. */\nexport function stillwindMergeChecked(...values: readonly unknown[]): Record<string, unknown> {\n return mergeFragmentsChecked(options, values);\n}\n\n/** Rejects nonobjects before converting either class prop to a class-only fragment. */\nexport function stillwindToFragmentChecked(value: unknown): Record<PropertyKey, unknown> {\n return toFragmentChecked(options, value);\n}\n\n/** Checks external classes and selected fragments before materializing CVA props with `className` and object styles. */\nexport function stillwindCvaChecked(base?: CvaValue, config?: CompiledCvaConfig) {\n return createCvaChecked(options, base, config);\n}\n"],"mappings":";;;;AAWA,SAAgB,sBAAsB,GAAG,QAAqD;CAC5F,OAAO,sBAAsB,SAAS,MAAM;AAC9C;;AAGA,SAAgB,2BAA2B,OAA8C;CACvF,OAAO,kBAAkB,SAAS,KAAK;AACzC;;AAGA,SAAgB,oBAAoB,MAAiB,QAA4B;CAC/E,OAAO,iBAAiB,SAAS,MAAM,MAAM;AAC/C"}
@@ -0,0 +1,16 @@
1
+ import { stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName } from "../shared-B9IQXU6P.js";
2
+ import { CompiledCvaConfig, CvaValue } from "../cva-DSpDNBYi.js";
3
+ export declare const stillwindClassKey: unique symbol;
4
+ export declare const stillwindStyleKey: unique symbol;
5
+ export declare const stillwindCustomPropertiesKey: unique symbol;
6
+ export declare const options: readonly ["className", "object", typeof stillwindClassKey, typeof stillwindStyleKey, typeof stillwindCustomPropertiesKey];
7
+ /** Materializes ordered fragments with `className` and object styles. */
8
+ export declare function stillwindMerge(...values: readonly unknown[]): Record<string, unknown>;
9
+ /** Converts either class prop of a composition base to a class-only fragment. */
10
+ export declare function stillwindToFragment(value: Record<PropertyKey, unknown>): Record<PropertyKey, unknown>;
11
+ /** Returns the supplied style payload, or undefined for null or undefined. */
12
+ export declare function stillwindStyleValue(value: unknown): unknown;
13
+ /** Selects compiled CVA values and returns fresh props with `className` and object styles. */
14
+ export declare function stillwindCva(base?: CvaValue, config?: CompiledCvaConfig): (props?: Readonly<Record<string, unknown>>) => Record<string, unknown>;
15
+ export { stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName };
16
+ //# sourceMappingURL=class-name-object.d.ts.map
@@ -0,0 +1,31 @@
1
+ import { createCva, mergeFragments, serializeStyle, stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName, toFragment } from "../cva-BwX07CFw.js";
2
+ // src/runtime/class-name-object.ts
3
+ const stillwindClassKey = /* @__PURE__ */ Symbol("stillwind.class-name-object.class");
4
+ const stillwindStyleKey = /* @__PURE__ */ Symbol("stillwind.class-name-object.style");
5
+ const stillwindCustomPropertiesKey = /* @__PURE__ */ Symbol("stillwind.class-name-object.custom-properties");
6
+ const options = [
7
+ "className",
8
+ "object",
9
+ stillwindClassKey,
10
+ stillwindStyleKey,
11
+ stillwindCustomPropertiesKey
12
+ ];
13
+ /** Materializes ordered fragments with `className` and object styles. */
14
+ function stillwindMerge(...values) {
15
+ return mergeFragments(options, values);
16
+ }
17
+ /** Converts either class prop of a composition base to a class-only fragment. */
18
+ function stillwindToFragment(value) {
19
+ return toFragment(options, value);
20
+ }
21
+ /** Returns the supplied style payload, or undefined for null or undefined. */
22
+ function stillwindStyleValue(value) {
23
+ return value == null ? void 0 : serializeStyle(value, "object");
24
+ }
25
+ /** Selects compiled CVA values and returns fresh props with `className` and object styles. */
26
+ function stillwindCva(base, config) {
27
+ return createCva(options, base, config);
28
+ }
29
+ export { options, stillwindClassKey, stillwindClsx, stillwindCssValue, stillwindCustomPropertiesKey, stillwindCva, stillwindEscapedIdentifier, stillwindMerge, stillwindStyleKey, stillwindStyleValue, stillwindToFragment, stillwindViewTransitionName };
30
+
31
+ //# sourceMappingURL=class-name-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-name-object.js","names":[],"sources":["../../src/runtime/class-name-object.ts"],"sourcesContent":["import { createCva, type CompiledCvaConfig, type CvaValue } from \"./cva.ts\";\nimport { mergeFragments, serializeStyle, toFragment } from \"./fragment.ts\";\n\nexport * from \"./shared.ts\";\n\nexport const stillwindClassKey = /* @__PURE__ */ Symbol(\"stillwind.class-name-object.class\");\n\nexport const stillwindStyleKey = /* @__PURE__ */ Symbol(\"stillwind.class-name-object.style\");\n\nexport const stillwindCustomPropertiesKey = /* @__PURE__ */ Symbol(\n \"stillwind.class-name-object.custom-properties\",\n);\n\nexport const options = [\n \"className\",\n \"object\",\n stillwindClassKey,\n stillwindStyleKey,\n stillwindCustomPropertiesKey,\n] as const;\n\n/** Materializes ordered fragments with `className` and object styles. */\nexport function stillwindMerge(...values: readonly unknown[]): Record<string, unknown> {\n return mergeFragments(options, values);\n}\n\n/** Converts either class prop of a composition base to a class-only fragment. */\nexport function stillwindToFragment(\n value: Record<PropertyKey, unknown>,\n): Record<PropertyKey, unknown> {\n return toFragment(options, value);\n}\n\n/** Returns the supplied style payload, or undefined for null or undefined. */\nexport function stillwindStyleValue(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 stillwindCva(base?: CvaValue, config?: CompiledCvaConfig) {\n return createCva(options, base, config);\n}\n"],"mappings":";;AAKA,MAAa,oBAAoC,uBAAO,mCAAmC;AAE3F,MAAa,oBAAoC,uBAAO,mCAAmC;AAE3F,MAAa,+BAA+C,uBAC1D,+CACF;AAEA,MAAa,UAAU;CACrB;CACA;CACA;CACA;CACA;AACF;;AAGA,SAAgB,eAAe,GAAG,QAAqD;CACrF,OAAO,eAAe,SAAS,MAAM;AACvC;;AAGA,SAAgB,oBACd,OAC8B;CAC9B,OAAO,WAAW,SAAS,KAAK;AAClC;;AAGA,SAAgB,oBAAoB,OAAyB;CAC3D,OAAO,SAAS,OAAO,KAAA,IAAY,eAAe,OAAO,QAAQ;AACnE;;AAGA,SAAgB,aAAa,MAAiB,QAA4B;CACxE,OAAO,UAAU,SAAS,MAAM,MAAM;AACxC"}
@@ -0,0 +1,10 @@
1
+ import { CompiledCvaConfig, CvaValue } from "../cva-DSpDNBYi.js";
2
+ import { stillwindClsxChecked, stillwindRefClassChecked, stillwindViewTransitionNameChecked } from "../development-DttPQc71.js";
3
+ /** Checks fragment ownership and class contributions before materializing `class` and object styles. */
4
+ export declare function stillwindMergeChecked(...values: readonly unknown[]): Record<string, unknown>;
5
+ /** Rejects nonobjects before converting either class prop to a class-only fragment. */
6
+ export declare function stillwindToFragmentChecked(value: unknown): Record<PropertyKey, unknown>;
7
+ /** Checks external classes and selected fragments before materializing CVA props with `class` and object styles. */
8
+ export declare function stillwindCvaChecked(base?: CvaValue, config?: CompiledCvaConfig): (props?: Readonly<Record<string, unknown>>) => Record<string, unknown>;
9
+ export { stillwindClsxChecked, stillwindRefClassChecked, stillwindViewTransitionNameChecked };
10
+ //# sourceMappingURL=class-object-development.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { createCvaChecked, mergeFragmentsChecked, stillwindClsxChecked, stillwindRefClassChecked, stillwindViewTransitionNameChecked, toFragmentChecked } from "../development-J-JCSIm0.js";
2
+ import { options } from "./class-object.js";
3
+ // src/runtime/class-object-development.ts
4
+ /** Checks fragment ownership and class contributions before materializing `class` and object styles. */
5
+ function stillwindMergeChecked(...values) {
6
+ return mergeFragmentsChecked(options, values);
7
+ }
8
+ /** Rejects nonobjects before converting either class prop to a class-only fragment. */
9
+ function stillwindToFragmentChecked(value) {
10
+ return toFragmentChecked(options, value);
11
+ }
12
+ /** Checks external classes and selected fragments before materializing CVA props with `class` and object styles. */
13
+ function stillwindCvaChecked(base, config) {
14
+ return createCvaChecked(options, base, config);
15
+ }
16
+ export { stillwindClsxChecked, stillwindCvaChecked, stillwindMergeChecked, stillwindRefClassChecked, stillwindToFragmentChecked, stillwindViewTransitionNameChecked };
17
+
18
+ //# sourceMappingURL=class-object-development.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-object-development.js","names":[],"sources":["../../src/runtime/class-object-development.ts"],"sourcesContent":["import { options } from \"./class-object.ts\";\nimport type { CompiledCvaConfig, CvaValue } from \"./cva.ts\";\nimport { createCvaChecked, mergeFragmentsChecked, toFragmentChecked } from \"./development.ts\";\n\nexport {\n stillwindClsxChecked,\n stillwindRefClassChecked,\n stillwindViewTransitionNameChecked,\n} from \"./development.ts\";\n\n/** Checks fragment ownership and class contributions before materializing `class` and object styles. */\nexport function stillwindMergeChecked(...values: readonly unknown[]): Record<string, unknown> {\n return mergeFragmentsChecked(options, values);\n}\n\n/** Rejects nonobjects before converting either class prop to a class-only fragment. */\nexport function stillwindToFragmentChecked(value: unknown): Record<PropertyKey, unknown> {\n return toFragmentChecked(options, value);\n}\n\n/** Checks external classes and selected fragments before materializing CVA props with `class` and object styles. */\nexport function stillwindCvaChecked(base?: CvaValue, config?: CompiledCvaConfig) {\n return createCvaChecked(options, base, config);\n}\n"],"mappings":";;;;AAWA,SAAgB,sBAAsB,GAAG,QAAqD;CAC5F,OAAO,sBAAsB,SAAS,MAAM;AAC9C;;AAGA,SAAgB,2BAA2B,OAA8C;CACvF,OAAO,kBAAkB,SAAS,KAAK;AACzC;;AAGA,SAAgB,oBAAoB,MAAiB,QAA4B;CAC/E,OAAO,iBAAiB,SAAS,MAAM,MAAM;AAC/C"}
@@ -0,0 +1,16 @@
1
+ import { stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName } from "../shared-B9IQXU6P.js";
2
+ import { CompiledCvaConfig, CvaValue } from "../cva-DSpDNBYi.js";
3
+ export declare const stillwindClassKey: unique symbol;
4
+ export declare const stillwindStyleKey: unique symbol;
5
+ export declare const stillwindCustomPropertiesKey: unique symbol;
6
+ export declare const options: readonly ["class", "object", typeof stillwindClassKey, typeof stillwindStyleKey, typeof stillwindCustomPropertiesKey];
7
+ /** Materializes ordered fragments with `class` and object styles. */
8
+ export declare function stillwindMerge(...values: readonly unknown[]): Record<string, unknown>;
9
+ /** Converts either class prop of a composition base to a class-only fragment. */
10
+ export declare function stillwindToFragment(value: Record<PropertyKey, unknown>): Record<PropertyKey, unknown>;
11
+ /** Returns the supplied style payload, or undefined for null or undefined. */
12
+ export declare function stillwindStyleValue(value: unknown): unknown;
13
+ /** Selects compiled CVA values and returns fresh props with `class` and object styles. */
14
+ export declare function stillwindCva(base?: CvaValue, config?: CompiledCvaConfig): (props?: Readonly<Record<string, unknown>>) => Record<string, unknown>;
15
+ export { stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName };
16
+ //# sourceMappingURL=class-object.d.ts.map
@@ -0,0 +1,31 @@
1
+ import { createCva, mergeFragments, serializeStyle, stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName, toFragment } from "../cva-BwX07CFw.js";
2
+ // src/runtime/class-object.ts
3
+ const stillwindClassKey = /* @__PURE__ */ Symbol("stillwind.class-object.class");
4
+ const stillwindStyleKey = /* @__PURE__ */ Symbol("stillwind.class-object.style");
5
+ const stillwindCustomPropertiesKey = /* @__PURE__ */ Symbol("stillwind.class-object.custom-properties");
6
+ const options = [
7
+ "class",
8
+ "object",
9
+ stillwindClassKey,
10
+ stillwindStyleKey,
11
+ stillwindCustomPropertiesKey
12
+ ];
13
+ /** Materializes ordered fragments with `class` and object styles. */
14
+ function stillwindMerge(...values) {
15
+ return mergeFragments(options, values);
16
+ }
17
+ /** Converts either class prop of a composition base to a class-only fragment. */
18
+ function stillwindToFragment(value) {
19
+ return toFragment(options, value);
20
+ }
21
+ /** Returns the supplied style payload, or undefined for null or undefined. */
22
+ function stillwindStyleValue(value) {
23
+ return value == null ? void 0 : serializeStyle(value, "object");
24
+ }
25
+ /** Selects compiled CVA values and returns fresh props with `class` and object styles. */
26
+ function stillwindCva(base, config) {
27
+ return createCva(options, base, config);
28
+ }
29
+ export { options, stillwindClassKey, stillwindClsx, stillwindCssValue, stillwindCustomPropertiesKey, stillwindCva, stillwindEscapedIdentifier, stillwindMerge, stillwindStyleKey, stillwindStyleValue, stillwindToFragment, stillwindViewTransitionName };
30
+
31
+ //# sourceMappingURL=class-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-object.js","names":[],"sources":["../../src/runtime/class-object.ts"],"sourcesContent":["import { createCva, type CompiledCvaConfig, type CvaValue } from \"./cva.ts\";\nimport { mergeFragments, serializeStyle, toFragment } from \"./fragment.ts\";\n\nexport * from \"./shared.ts\";\n\nexport const stillwindClassKey = /* @__PURE__ */ Symbol(\"stillwind.class-object.class\");\n\nexport const stillwindStyleKey = /* @__PURE__ */ Symbol(\"stillwind.class-object.style\");\n\nexport const stillwindCustomPropertiesKey = /* @__PURE__ */ Symbol(\n \"stillwind.class-object.custom-properties\",\n);\n\nexport const options = [\n \"class\",\n \"object\",\n stillwindClassKey,\n stillwindStyleKey,\n stillwindCustomPropertiesKey,\n] as const;\n\n/** Materializes ordered fragments with `class` and object styles. */\nexport function stillwindMerge(...values: readonly unknown[]): Record<string, unknown> {\n return mergeFragments(options, values);\n}\n\n/** Converts either class prop of a composition base to a class-only fragment. */\nexport function stillwindToFragment(\n value: Record<PropertyKey, unknown>,\n): Record<PropertyKey, unknown> {\n return toFragment(options, value);\n}\n\n/** Returns the supplied style payload, or undefined for null or undefined. */\nexport function stillwindStyleValue(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 stillwindCva(base?: CvaValue, config?: CompiledCvaConfig) {\n return createCva(options, base, config);\n}\n"],"mappings":";;AAKA,MAAa,oBAAoC,uBAAO,8BAA8B;AAEtF,MAAa,oBAAoC,uBAAO,8BAA8B;AAEtF,MAAa,+BAA+C,uBAC1D,0CACF;AAEA,MAAa,UAAU;CACrB;CACA;CACA;CACA;CACA;AACF;;AAGA,SAAgB,eAAe,GAAG,QAAqD;CACrF,OAAO,eAAe,SAAS,MAAM;AACvC;;AAGA,SAAgB,oBACd,OAC8B;CAC9B,OAAO,WAAW,SAAS,KAAK;AAClC;;AAGA,SAAgB,oBAAoB,OAAyB;CAC3D,OAAO,SAAS,OAAO,KAAA,IAAY,eAAe,OAAO,QAAQ;AACnE;;AAGA,SAAgB,aAAa,MAAiB,QAA4B;CACxE,OAAO,UAAU,SAAS,MAAM,MAAM;AACxC"}
@@ -0,0 +1,10 @@
1
+ import { CompiledCvaConfig, CvaValue } from "../cva-DSpDNBYi.js";
2
+ import { stillwindClsxChecked, stillwindRefClassChecked, stillwindViewTransitionNameChecked } from "../development-DttPQc71.js";
3
+ /** Checks fragment ownership and class contributions before materializing `class` and string styles. */
4
+ export declare function stillwindMergeChecked(...values: readonly unknown[]): Record<string, unknown>;
5
+ /** Rejects nonobjects before converting either class prop to a class-only fragment. */
6
+ export declare function stillwindToFragmentChecked(value: unknown): Record<PropertyKey, unknown>;
7
+ /** Checks external classes and selected fragments before materializing CVA props with `class` and string styles. */
8
+ export declare function stillwindCvaChecked(base?: CvaValue, config?: CompiledCvaConfig): (props?: Readonly<Record<string, unknown>>) => Record<string, unknown>;
9
+ export { stillwindClsxChecked, stillwindRefClassChecked, stillwindViewTransitionNameChecked };
10
+ //# sourceMappingURL=class-string-development.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { createCvaChecked, mergeFragmentsChecked, stillwindClsxChecked, stillwindRefClassChecked, stillwindViewTransitionNameChecked, toFragmentChecked } from "../development-J-JCSIm0.js";
2
+ import { options } from "./class-string.js";
3
+ // src/runtime/class-string-development.ts
4
+ /** Checks fragment ownership and class contributions before materializing `class` and string styles. */
5
+ function stillwindMergeChecked(...values) {
6
+ return mergeFragmentsChecked(options, values);
7
+ }
8
+ /** Rejects nonobjects before converting either class prop to a class-only fragment. */
9
+ function stillwindToFragmentChecked(value) {
10
+ return toFragmentChecked(options, value);
11
+ }
12
+ /** Checks external classes and selected fragments before materializing CVA props with `class` and string styles. */
13
+ function stillwindCvaChecked(base, config) {
14
+ return createCvaChecked(options, base, config);
15
+ }
16
+ export { stillwindClsxChecked, stillwindCvaChecked, stillwindMergeChecked, stillwindRefClassChecked, stillwindToFragmentChecked, stillwindViewTransitionNameChecked };
17
+
18
+ //# sourceMappingURL=class-string-development.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-string-development.js","names":[],"sources":["../../src/runtime/class-string-development.ts"],"sourcesContent":["import { options } from \"./class-string.ts\";\nimport type { CompiledCvaConfig, CvaValue } from \"./cva.ts\";\nimport { createCvaChecked, mergeFragmentsChecked, toFragmentChecked } from \"./development.ts\";\n\nexport {\n stillwindClsxChecked,\n stillwindRefClassChecked,\n stillwindViewTransitionNameChecked,\n} from \"./development.ts\";\n\n/** Checks fragment ownership and class contributions before materializing `class` and string styles. */\nexport function stillwindMergeChecked(...values: readonly unknown[]): Record<string, unknown> {\n return mergeFragmentsChecked(options, values);\n}\n\n/** Rejects nonobjects before converting either class prop to a class-only fragment. */\nexport function stillwindToFragmentChecked(value: unknown): Record<PropertyKey, unknown> {\n return toFragmentChecked(options, value);\n}\n\n/** Checks external classes and selected fragments before materializing CVA props with `class` and string styles. */\nexport function stillwindCvaChecked(base?: CvaValue, config?: CompiledCvaConfig) {\n return createCvaChecked(options, base, config);\n}\n"],"mappings":";;;;AAWA,SAAgB,sBAAsB,GAAG,QAAqD;CAC5F,OAAO,sBAAsB,SAAS,MAAM;AAC9C;;AAGA,SAAgB,2BAA2B,OAA8C;CACvF,OAAO,kBAAkB,SAAS,KAAK;AACzC;;AAGA,SAAgB,oBAAoB,MAAiB,QAA4B;CAC/E,OAAO,iBAAiB,SAAS,MAAM,MAAM;AAC/C"}
@@ -0,0 +1,16 @@
1
+ import { stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName } from "../shared-B9IQXU6P.js";
2
+ import { CompiledCvaConfig, CvaValue } from "../cva-DSpDNBYi.js";
3
+ export declare const stillwindClassKey: unique symbol;
4
+ export declare const stillwindStyleKey: unique symbol;
5
+ export declare const stillwindCustomPropertiesKey: unique symbol;
6
+ export declare const options: readonly ["class", "string", typeof stillwindClassKey, typeof stillwindStyleKey, typeof stillwindCustomPropertiesKey];
7
+ /** Materializes ordered fragments with `class` and string styles. */
8
+ export declare function stillwindMerge(...values: readonly unknown[]): Record<string, unknown>;
9
+ /** Converts either class prop of a composition base to a class-only fragment. */
10
+ export declare function stillwindToFragment(value: Record<PropertyKey, unknown>): Record<PropertyKey, unknown>;
11
+ /** Serializes object style declarations or preserves a string. Other inputs omit style. */
12
+ export declare function stillwindStyleValue(value: unknown): unknown;
13
+ /** Selects compiled CVA values and returns fresh props with `class` and string styles. */
14
+ export declare function stillwindCva(base?: CvaValue, config?: CompiledCvaConfig): (props?: Readonly<Record<string, unknown>>) => Record<string, unknown>;
15
+ export { stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName };
16
+ //# sourceMappingURL=class-string.d.ts.map
@@ -0,0 +1,31 @@
1
+ import { createCva, mergeFragments, serializeStyle, stillwindClsx, stillwindCssValue, stillwindEscapedIdentifier, stillwindViewTransitionName, toFragment } from "../cva-BwX07CFw.js";
2
+ // src/runtime/class-string.ts
3
+ const stillwindClassKey = /* @__PURE__ */ Symbol("stillwind.class-string.class");
4
+ const stillwindStyleKey = /* @__PURE__ */ Symbol("stillwind.class-string.style");
5
+ const stillwindCustomPropertiesKey = /* @__PURE__ */ Symbol("stillwind.class-string.custom-properties");
6
+ const options = [
7
+ "class",
8
+ "string",
9
+ stillwindClassKey,
10
+ stillwindStyleKey,
11
+ stillwindCustomPropertiesKey
12
+ ];
13
+ /** Materializes ordered fragments with `class` and string styles. */
14
+ function stillwindMerge(...values) {
15
+ return mergeFragments(options, values);
16
+ }
17
+ /** Converts either class prop of a composition base to a class-only fragment. */
18
+ function stillwindToFragment(value) {
19
+ return toFragment(options, value);
20
+ }
21
+ /** Serializes object style declarations or preserves a string. Other inputs omit style. */
22
+ function stillwindStyleValue(value) {
23
+ return value == null ? void 0 : serializeStyle(value, "string");
24
+ }
25
+ /** Selects compiled CVA values and returns fresh props with `class` and string styles. */
26
+ function stillwindCva(base, config) {
27
+ return createCva(options, base, config);
28
+ }
29
+ export { options, stillwindClassKey, stillwindClsx, stillwindCssValue, stillwindCustomPropertiesKey, stillwindCva, stillwindEscapedIdentifier, stillwindMerge, stillwindStyleKey, stillwindStyleValue, stillwindToFragment, stillwindViewTransitionName };
30
+
31
+ //# sourceMappingURL=class-string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-string.js","names":[],"sources":["../../src/runtime/class-string.ts"],"sourcesContent":["import { createCva, type CompiledCvaConfig, type CvaValue } from \"./cva.ts\";\nimport { mergeFragments, serializeStyle, toFragment } from \"./fragment.ts\";\n\nexport * from \"./shared.ts\";\n\nexport const stillwindClassKey = /* @__PURE__ */ Symbol(\"stillwind.class-string.class\");\n\nexport const stillwindStyleKey = /* @__PURE__ */ Symbol(\"stillwind.class-string.style\");\n\nexport const stillwindCustomPropertiesKey = /* @__PURE__ */ Symbol(\n \"stillwind.class-string.custom-properties\",\n);\n\nexport const options = [\n \"class\",\n \"string\",\n stillwindClassKey,\n stillwindStyleKey,\n stillwindCustomPropertiesKey,\n] as const;\n\n/** Materializes ordered fragments with `class` and string styles. */\nexport function stillwindMerge(...values: readonly unknown[]): Record<string, unknown> {\n return mergeFragments(options, values);\n}\n\n/** Converts either class prop of a composition base to a class-only fragment. */\nexport function stillwindToFragment(\n value: Record<PropertyKey, unknown>,\n): Record<PropertyKey, unknown> {\n return toFragment(options, value);\n}\n\n/** Serializes object style declarations or preserves a string. Other inputs omit style. */\nexport function stillwindStyleValue(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 stillwindCva(base?: CvaValue, config?: CompiledCvaConfig) {\n return createCva(options, base, config);\n}\n"],"mappings":";;AAKA,MAAa,oBAAoC,uBAAO,8BAA8B;AAEtF,MAAa,oBAAoC,uBAAO,8BAA8B;AAEtF,MAAa,+BAA+C,uBAC1D,0CACF;AAEA,MAAa,UAAU;CACrB;CACA;CACA;CACA;CACA;AACF;;AAGA,SAAgB,eAAe,GAAG,QAAqD;CACrF,OAAO,eAAe,SAAS,MAAM;AACvC;;AAGA,SAAgB,oBACd,OAC8B;CAC9B,OAAO,WAAW,SAAS,KAAK;AAClC;;AAGA,SAAgB,oBAAoB,OAAyB;CAC3D,OAAO,SAAS,OAAO,KAAA,IAAY,eAAe,OAAO,QAAQ;AACnE;;AAGA,SAAgB,aAAa,MAAiB,QAA4B;CACxE,OAAO,UAAU,SAAS,MAAM,MAAM;AACxC"}
@@ -0,0 +1,32 @@
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
+ //# sourceMappingURL=shared-B9IQXU6P.d.ts.map
@@ -0,0 +1,78 @@
1
+ // src/dom/style.ts
2
+ const appliedStyles = /* @__PURE__ */ new WeakMap();
3
+ /**
4
+ * Applies compiled props to an HTML, SVG, or other element with inline CSS support.
5
+ *
6
+ * Each call replaces the previous Stillwind contribution on this element. Classes
7
+ * already present before Stillwind adds them are preserved. Inline CSS declarations
8
+ * use CSS property names, including custom properties. Removing a declaration restores
9
+ * its previous inline value and priority if its value has not been changed externally.
10
+ * Updates copy the supplied values, so later mutations of `props` do not change ownership.
11
+ *
12
+ * @param element - Element whose class list and inline CSS declarations are updated.
13
+ * @param props - Compiled class and optional style props. Empty props clear the contribution.
14
+ */
15
+ function applyStyle(element, props) {
16
+ const state = appliedStyles.get(element) ?? {
17
+ classes: /* @__PURE__ */ new Set(),
18
+ declarations: /* @__PURE__ */ new Map()
19
+ };
20
+ const classes = new Set((props.class ?? "").split(/[\t\n\f\r ]+/).filter(Boolean));
21
+ for (const name of state.classes) if (!classes.has(name)) {
22
+ element.classList.remove(name);
23
+ state.classes.delete(name);
24
+ }
25
+ for (const name of classes) if (!element.classList.contains(name)) {
26
+ element.classList.add(name);
27
+ state.classes.add(name);
28
+ }
29
+ const declarations = new Map(Object.entries(props.style ?? {}));
30
+ for (const [name, declaration] of state.declarations) if (!declarations.has(name)) {
31
+ restoreDeclaration(element.style, name, declaration);
32
+ state.declarations.delete(name);
33
+ }
34
+ for (const [name, value] of declarations) {
35
+ const current = readDeclaration(element.style, name);
36
+ const retained = state.declarations.get(name);
37
+ const previous = retained && sameDeclaration(current, retained.applied) ? retained.previous : current;
38
+ element.style.setProperty(name, value);
39
+ state.declarations.set(name, {
40
+ previous,
41
+ applied: readDeclaration(element.style, name)
42
+ });
43
+ }
44
+ if (state.classes.size > 0 || state.declarations.size > 0) appliedStyles.set(element, state);
45
+ else appliedStyles.delete(element);
46
+ }
47
+ /**
48
+ * Removes the current Stillwind contribution from an element.
49
+ *
50
+ * Removes classes added by Stillwind and restores overwritten inline CSS declarations.
51
+ * A declaration changed externally after the last application is preserved.
52
+ *
53
+ * @param element - Element previously passed to `applyStyle`. Other elements are unchanged.
54
+ */
55
+ function clearStyle(element) {
56
+ const state = appliedStyles.get(element);
57
+ if (!state) return;
58
+ for (const name of state.classes) element.classList.remove(name);
59
+ for (const [name, declaration] of state.declarations) restoreDeclaration(element.style, name, declaration);
60
+ appliedStyles.delete(element);
61
+ }
62
+ function readDeclaration(style, name) {
63
+ return {
64
+ value: style.getPropertyValue(name),
65
+ priority: style.getPropertyPriority(name)
66
+ };
67
+ }
68
+ function sameDeclaration(left, right) {
69
+ return left.value === right.value && left.priority === right.priority;
70
+ }
71
+ function restoreDeclaration(style, name, declaration) {
72
+ if (!sameDeclaration(readDeclaration(style, name), declaration.applied)) return;
73
+ if (declaration.previous.value === "") style.removeProperty(name);
74
+ else style.setProperty(name, declaration.previous.value, declaration.previous.priority);
75
+ }
76
+ export { applyStyle, clearStyle };
77
+
78
+ //# sourceMappingURL=style-BV4ctkni.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-BV4ctkni.js","names":[],"sources":["../src/dom/style.ts"],"sourcesContent":["import type { StyleProps } from \"../outputs/class-object.ts\";\n\nexport type StyleElement = Element & ElementCSSInlineStyle;\n\ntype Declaration = {\n value: string;\n priority: string;\n};\n\ntype AppliedDeclaration = {\n previous: Declaration;\n applied: Declaration;\n};\n\ntype AppliedStyle = {\n classes: Set<string>;\n declarations: Map<string, AppliedDeclaration>;\n};\n\nconst appliedStyles = new WeakMap<Element, AppliedStyle>();\n\n/**\n * Applies compiled props to an HTML, SVG, or other element with inline CSS support.\n *\n * Each call replaces the previous Stillwind contribution on this element. Classes\n * already present before Stillwind adds them are preserved. Inline CSS declarations\n * use CSS property names, including custom properties. Removing a declaration restores\n * its previous inline value and priority if its value has not been changed externally.\n * Updates copy the supplied values, so later mutations of `props` do not change ownership.\n *\n * @param element - Element whose class list and inline CSS declarations are updated.\n * @param props - Compiled class and optional style props. Empty props clear the contribution.\n */\nexport function applyStyle(element: StyleElement, props: Readonly<StyleProps>): void {\n const state = appliedStyles.get(element) ?? {\n classes: new Set<string>(),\n declarations: new Map<string, AppliedDeclaration>(),\n };\n const classes = new Set((props.class ?? \"\").split(/[\\t\\n\\f\\r ]+/).filter(Boolean));\n for (const name of state.classes) {\n if (!classes.has(name)) {\n element.classList.remove(name);\n state.classes.delete(name);\n }\n }\n for (const name of classes) {\n if (!element.classList.contains(name)) {\n element.classList.add(name);\n state.classes.add(name);\n }\n }\n\n const declarations = new Map(Object.entries(props.style ?? {}));\n for (const [name, declaration] of state.declarations) {\n if (!declarations.has(name)) {\n restoreDeclaration(element.style, name, declaration);\n state.declarations.delete(name);\n }\n }\n for (const [name, value] of declarations) {\n const current = readDeclaration(element.style, name);\n const retained = state.declarations.get(name);\n const previous =\n retained && sameDeclaration(current, retained.applied) ? retained.previous : current;\n element.style.setProperty(name, value);\n state.declarations.set(name, {\n previous,\n applied: readDeclaration(element.style, name),\n });\n }\n\n if (state.classes.size > 0 || state.declarations.size > 0) {\n appliedStyles.set(element, state);\n } else {\n appliedStyles.delete(element);\n }\n}\n\n/**\n * Removes the current Stillwind contribution from an element.\n *\n * Removes classes added by Stillwind and restores overwritten inline CSS declarations.\n * A declaration changed externally after the last application is preserved.\n *\n * @param element - Element previously passed to `applyStyle`. Other elements are unchanged.\n */\nexport function clearStyle(element: StyleElement): void {\n const state = appliedStyles.get(element);\n if (!state) {\n return;\n }\n for (const name of state.classes) {\n element.classList.remove(name);\n }\n for (const [name, declaration] of state.declarations) {\n restoreDeclaration(element.style, name, declaration);\n }\n appliedStyles.delete(element);\n}\n\nfunction readDeclaration(style: CSSStyleDeclaration, name: string): Declaration {\n return { value: style.getPropertyValue(name), priority: style.getPropertyPriority(name) };\n}\n\nfunction sameDeclaration(left: Declaration, right: Declaration): boolean {\n return left.value === right.value && left.priority === right.priority;\n}\n\nfunction restoreDeclaration(\n style: CSSStyleDeclaration,\n name: string,\n declaration: AppliedDeclaration,\n): void {\n if (!sameDeclaration(readDeclaration(style, name), declaration.applied)) {\n return;\n }\n if (declaration.previous.value === \"\") {\n style.removeProperty(name);\n } else {\n style.setProperty(name, declaration.previous.value, declaration.previous.priority);\n }\n}\n"],"mappings":";AAmBA,MAAM,gCAAgB,IAAI,QAA+B;;;;;;;;;;;;;AAczD,SAAgB,WAAW,SAAuB,OAAmC;CACnF,MAAM,QAAQ,cAAc,IAAI,OAAO,KAAK;EAC1C,yBAAS,IAAI,IAAY;EACzB,8BAAc,IAAI,IAAgC;CACpD;CACA,MAAM,UAAU,IAAI,KAAK,MAAM,SAAS,GAAA,CAAI,MAAM,cAAc,CAAC,CAAC,OAAO,OAAO,CAAC;CACjF,KAAK,MAAM,QAAQ,MAAM,SACvB,IAAI,CAAC,QAAQ,IAAI,IAAI,GAAG;EACtB,QAAQ,UAAU,OAAO,IAAI;EAC7B,MAAM,QAAQ,OAAO,IAAI;CAC3B;CAEF,KAAK,MAAM,QAAQ,SACjB,IAAI,CAAC,QAAQ,UAAU,SAAS,IAAI,GAAG;EACrC,QAAQ,UAAU,IAAI,IAAI;EAC1B,MAAM,QAAQ,IAAI,IAAI;CACxB;CAGF,MAAM,eAAe,IAAI,IAAI,OAAO,QAAQ,MAAM,SAAS,CAAC,CAAC,CAAC;CAC9D,KAAK,MAAM,CAAC,MAAM,gBAAgB,MAAM,cACtC,IAAI,CAAC,aAAa,IAAI,IAAI,GAAG;EAC3B,mBAAmB,QAAQ,OAAO,MAAM,WAAW;EACnD,MAAM,aAAa,OAAO,IAAI;CAChC;CAEF,KAAK,MAAM,CAAC,MAAM,UAAU,cAAc;EACxC,MAAM,UAAU,gBAAgB,QAAQ,OAAO,IAAI;EACnD,MAAM,WAAW,MAAM,aAAa,IAAI,IAAI;EAC5C,MAAM,WACJ,YAAY,gBAAgB,SAAS,SAAS,OAAO,IAAI,SAAS,WAAW;EAC/E,QAAQ,MAAM,YAAY,MAAM,KAAK;EACrC,MAAM,aAAa,IAAI,MAAM;GAC3B;GACA,SAAS,gBAAgB,QAAQ,OAAO,IAAI;EAC9C,CAAC;CACH;CAEA,IAAI,MAAM,QAAQ,OAAO,KAAK,MAAM,aAAa,OAAO,GACtD,cAAc,IAAI,SAAS,KAAK;MAEhC,cAAc,OAAO,OAAO;AAEhC;;;;;;;;;AAUA,SAAgB,WAAW,SAA6B;CACtD,MAAM,QAAQ,cAAc,IAAI,OAAO;CACvC,IAAI,CAAC,OACH;CAEF,KAAK,MAAM,QAAQ,MAAM,SACvB,QAAQ,UAAU,OAAO,IAAI;CAE/B,KAAK,MAAM,CAAC,MAAM,gBAAgB,MAAM,cACtC,mBAAmB,QAAQ,OAAO,MAAM,WAAW;CAErD,cAAc,OAAO,OAAO;AAC9B;AAEA,SAAS,gBAAgB,OAA4B,MAA2B;CAC9E,OAAO;EAAE,OAAO,MAAM,iBAAiB,IAAI;EAAG,UAAU,MAAM,oBAAoB,IAAI;CAAE;AAC1F;AAEA,SAAS,gBAAgB,MAAmB,OAA6B;CACvE,OAAO,KAAK,UAAU,MAAM,SAAS,KAAK,aAAa,MAAM;AAC/D;AAEA,SAAS,mBACP,OACA,MACA,aACM;CACN,IAAI,CAAC,gBAAgB,gBAAgB,OAAO,IAAI,GAAG,YAAY,OAAO,GACpE;CAEF,IAAI,YAAY,SAAS,UAAU,IACjC,MAAM,eAAe,IAAI;MAEzB,MAAM,YAAY,MAAM,YAAY,SAAS,OAAO,YAAY,SAAS,QAAQ;AAErF"}
@@ -0,0 +1,41 @@
1
+ // src/macro/style.ts
2
+ /**
3
+ * Internal use only. Builds the placeholder exported by each framework entrypoint.
4
+ * The compiler replaces supported macro calls before the application runs.
5
+ *
6
+ * @returns A fresh callable object with declaration and scope methods. Calling the
7
+ * object or any of these methods throws an Error about missing integration. Creating
8
+ * the placeholder itself does not execute any macro or generate CSS.
9
+ *
10
+ * @internal
11
+ */
12
+ function createStyleMacro() {
13
+ return Object.assign(() => {
14
+ throw new Error("Stillwind style() is a compile-time macro. Configure the Stillwind integration for your build tool.");
15
+ }, {
16
+ anchorScope() {
17
+ throw new Error("Stillwind style.anchorScope() is a compile-time macro.");
18
+ },
19
+ ref() {
20
+ throw new Error("Stillwind style.ref() is a compile-time macro.");
21
+ },
22
+ keyframes() {
23
+ throw new Error("Stillwind style.keyframes() is a compile-time macro.");
24
+ },
25
+ viewTransition() {
26
+ throw new Error("Stillwind style.viewTransition() is a compile-time macro.");
27
+ },
28
+ cva() {
29
+ throw new Error("Stillwind style.cva() is a compile-time macro.");
30
+ },
31
+ media() {
32
+ throw new Error("Stillwind style.media() is a compile-time macro.");
33
+ },
34
+ css() {
35
+ throw new Error("Stillwind style.css() is a compile-time macro.");
36
+ }
37
+ });
38
+ }
39
+ export { createStyleMacro };
40
+
41
+ //# sourceMappingURL=style-fTQbsVWZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-fTQbsVWZ.js","names":[],"sources":["../src/macro/style.ts"],"sourcesContent":["/** Framework macros and the placeholders that the compiler replaces. */\n\nimport type { StyleCssInput, StyleCssOptions } from \"./css.ts\";\nimport type {\n CvaClassProps,\n CvaConfig,\n CvaInput,\n CvaResult,\n CvaSelection,\n CvaVariants,\n} from \"./cva.ts\";\nimport type { CheckedStyleInputs, StyleArgument } from \"./input.ts\";\nimport type { StyleKeyframes, StyleKeyframesDefinition } from \"./keyframes.ts\";\nimport type { StyleOutput, StyleResult } from \"./output.ts\";\nimport type { StyleRefProjection } from \"./projection.ts\";\nimport type { AnchorScope, StyleRef } from \"./refs.ts\";\nimport type { StyleViewTransition, StyleViewTransitionDefinition } from \"./view-transition.ts\";\n\n/**\n * Internal use only. The compiler inserts this identity argument in source used by the\n * TypeScript checker. Application code must not construct or pass it.\n *\n * @internal\n */\nexport type StillwindDeclarationIdentity<Id extends string> = {\n readonly __stillwindDeclarationIdentity: Id;\n};\n\n/**\n * Compile-time UI declarations with pure value expressions.\n *\n * Only completed style calls and declaration macros produce reusable values.\n * Projections require their supported style input positions. Ref variants require\n * computed variant keys or utility template substitutions.\n *\n * Each argument expression must return an equivalent value for the same inputs and must\n * not mutate shared data or perform observable effects, including through callees,\n * getters, or value conversion. Calls need no PURE annotation. Functions may mutate\n * fresh local data used only to compute their result.\n *\n * Evaluation order and count are not API guarantees: unused expressions may be omitted\n * and class/value conversions may be combined. Do not rely on exceptions from unused\n * expressions. Read time/randomness and perform I/O, state updates, Hooks, await/yield,\n * imports, JSX, and class initialization outside the macro. Pass their resulting\n * values. Reactive reads stay in the current computation scope and must not be used\n * only to establish a subscription.\n *\n * Names, utility definitions, animation options, and selector/query arguments are\n * static declarations. Dynamic identity selectors and view-transition keys obey the\n * same value-expression contract. Declaration-identity overloads are internal checker\n * metadata.\n */\nexport type StyleMacro<Props = object> = {\n /**\n * Internal use only. The checker supplies the final identity argument to track the\n * completed props value. Application code must use the overload without it.\n *\n * @param inputs - Style inputs followed by the declaration identity inserted by the compiler.\n * The public overload validates authored inputs. This overload adds identity tracking for the checker.\n * @returns The composed style props with the supplied declaration identity.\n * @internal\n */\n <Inputs extends readonly StyleArgument[], Id extends string>(\n ...inputs: [...Inputs, StillwindDeclarationIdentity<Id>]\n ): StyleResult<Id, StyleOutput<Props, Inputs>>;\n\n /**\n * Compiles static utility branches and combines them with inline custom\n * properties, external classes, and completed style props.\n *\n * Value expressions must obey the purity contract of {@link StyleMacro}. Projection\n * and animation-use calls must appear directly at supported input positions. Ref\n * variants require computed keys or utility template substitutions.\n *\n * @param inputs - Rule and class inputs in composition order. Custom properties\n * replace earlier values, and classes are concatenated. Utility construction must be\n * static, and invalid utilities or unsupported syntax cause compilation errors.\n * @returns Framework props that may be stored, exported, passed, returned, or spread\n * onto an element. Store this result before passing it to another `style()` call.\n * Direct nested calls are rejected. The class prop is optional. The optional style\n * prop is present in the type when inputs include custom properties, participant\n * naming, or composed props that may contain inline style. CSS is emitted at build\n * time.\n */\n <Inputs extends readonly StyleArgument[]>(\n ...inputs: Inputs & CheckedStyleInputs<Inputs>\n ): StyleResult<string, StyleOutput<Props, Inputs>>;\n\n /**\n * Declares an unlabeled DOM identity in a binding initializer.\n * Passing the declaration to `style()` attaches its marker to that element.\n *\n * @returns A reusable ref declaration that may be stored, exported, passed, returned,\n * or conditionally selected. Its identity belongs to the declaration site. Repeated\n * evaluation does not allocate new CSS identities.\n */\n ref(): StyleRef;\n\n /**\n * Declares a labeled DOM identity in a binding initializer.\n * Passing the declaration to `style()` attaches its marker to that element.\n *\n * @param label - A string literal used in generated names. Empty text omits the\n * label. Labels do not determine declaration identity.\n * @returns A reusable ref declaration that may be stored, exported, passed, returned,\n * or conditionally selected. Repeated evaluation keeps its identity.\n */\n ref(label: string): StyleRef;\n\n /**\n * Internal use only. The checker supplies identity for an unlabeled ref declaration.\n * Application code must use `ref()` without this argument.\n *\n * @internal\n */\n ref<const Id extends string>(identity: StillwindDeclarationIdentity<Id>): StyleRef<Id>;\n\n /**\n * Internal use only. The checker supplies identity for a labeled ref declaration.\n * Application code must use `ref(label)` without the identity argument.\n *\n * @internal\n */\n ref<const Id extends string>(\n label: string,\n identity: StillwindDeclarationIdentity<Id>,\n ): StyleRef<Id>;\n\n /**\n * Declares a local animation in a binding initializer and assigns its CSS name.\n *\n * Apply it by calling the returned declaration with literal options directly inside\n * `style()`. The animation use cannot be stored for later consumption.\n *\n * @param definition - A direct static object with frame utility strings, optional\n * media/supports replacement bodies, and an optional literal label. Invalid frame\n * syntax or utilities cause compilation errors.\n * @returns A reusable keyframes declaration that may be stored, exported, passed,\n * returned, or conditionally selected. Its identity belongs to the declaration site.\n */\n keyframes(definition: StyleKeyframesDefinition): StyleKeyframes;\n\n /**\n * Internal use only. The checker supplies identity for a keyframes declaration.\n * Application code must use `keyframes(definition)` without the identity argument.\n *\n * @internal\n */\n keyframes<const Id extends string>(\n definition: StyleKeyframesDefinition,\n identity: StillwindDeclarationIdentity<Id>,\n ): StyleKeyframes<Id>;\n\n /**\n * Declares view transition phases in a binding initializer and assigns their class.\n *\n * Pass the declaration to `style()` to mark participants, or call `.for(key)`\n * directly inside `style()` to also name them. The naming use cannot be stored.\n *\n * @param definition - A direct static object with at least one literal phase\n * string and an optional literal label. Invalid phases, utilities, or condition\n * variants cause compilation errors.\n * @returns A reusable transition declaration that may be stored, exported, passed,\n * returned, or conditionally selected. Its identity belongs to the declaration site.\n */\n viewTransition(definition: StyleViewTransitionDefinition): StyleViewTransition;\n\n /**\n * Internal use only. The checker supplies identity for a view transition declaration.\n * Application code must use `viewTransition(definition)` without the identity argument.\n *\n * @internal\n */\n viewTransition<const Id extends string>(\n definition: StyleViewTransitionDefinition,\n identity: StillwindDeclarationIdentity<Id>,\n ): StyleViewTransition<Id>;\n\n /**\n * Adds anchor-scope without requiring a ref marker on the element.\n *\n * Use this call directly in a style input. The argument follows the same literal\n * keyword or array rules as `ref.asAnchor`. An empty array emits no declaration.\n * The returned projection cannot be stored, exported, passed, or returned for later\n * consumption.\n *\n * @param scope - A literal `\"all\"`, `\"none\"`, or array of refs. All possible\n * identities of each entry are included. Empty arrays and duplicate identities\n * produce lint findings.\n * @returns Rule input that supplies anchor-scope when consumed by `style()`.\n */\n anchorScope(scope: AnchorScope): StyleRefProjection;\n\n /**\n * Returns the media query list of variants, such as for `window.matchMedia()`.\n *\n * The compiler replaces the call with a string, so the result can be stored, exported,\n * and passed. The string has no `@media` or braces. Write the call outside other macro\n * calls.\n *\n * @param variants - String literals of variants whose definitions contain only media\n * conditions, with an optional final `:`. The variants of one argument must all hold,\n * and the arguments are alternatives: `media(\"sm:motion-reduce\", \"print\")` matches a\n * wide screen with reduced motion, or print. An argument that does not resolve or that\n * contains another kind of condition, such as `hover`, matches nothing and produces a\n * lint finding.\n * @returns A media query list. It is `\"not all\"` when no argument can match.\n */\n media(...variants: [string, ...string[]]): string;\n\n /**\n * Returns a stylesheet built from utilities, such as for a shadow root.\n *\n * The compiler replaces the call with a string, so the result can be stored,\n * exported, and passed, for example to `CSSStyleSheet.replaceSync()`. The call adds\n * nothing to the document stylesheet. The string contains the rules and the theme\n * values, keyframes, and custom-property support that they need, placed by the\n * selected `@stillwind-css-template`. It never contains preflight.\n *\n * A selector-replacing variant, such as `host:`, `[:host]:`, or `[button]:`, selects\n * the element that a utility styles. Utilities without one need the `selector`\n * option, or are omitted with a lint finding. Write the call outside other macro\n * calls.\n *\n * @param inputs - Static utility strings, arrays, and variant groups. A final\n * object whose keys are only `template` and `selector` is the options.\n * @returns Stylesheet text.\n */\n css(...inputs: StyleCssInput[]): string;\n\n /**\n * Returns a stylesheet built from utilities, with the options in the last argument.\n *\n * @param inputs - Static utility inputs followed by the options object.\n * @returns Stylesheet text.\n */\n css(...inputs: [...StyleCssInput[], StyleCssOptions]): string;\n\n /**\n * Compiles a CVA definition and returns a function that selects element props.\n * Write the configuration and utility inputs directly in the call. Utility inputs\n * cannot contain `&&` or ternary expressions. Pass runtime conditions as variant\n * selections. Custom properties remain inline and value expressions obey this\n * macro's purity contract.\n *\n * @param base - Optional styles included in every selection.\n * @param config - Static variants, defaults, and compound conditions.\n * @returns A reusable factory returning fresh framework class and style props.\n * Its results cannot be passed to style() for composition.\n */\n cva<Variants extends CvaVariants = Record<never, never>>(\n base?: CvaInput,\n config?: CvaConfig<Variants>,\n ): (props?: CvaSelection<Variants> & CvaClassProps) => CvaResult<Props>;\n};\n\n/**\n * Internal use only. Builds the placeholder exported by each framework entrypoint.\n * The compiler replaces supported macro calls before the application runs.\n *\n * @returns A fresh callable object with declaration and scope methods. Calling the\n * object or any of these methods throws an Error about missing integration. Creating\n * the placeholder itself does not execute any macro or generate CSS.\n *\n * @internal\n */\nexport function createStyleMacro<Props>(): StyleMacro<Props> {\n return Object.assign(\n (): never => {\n throw new Error(\n \"Stillwind style() is a compile-time macro. Configure the Stillwind integration for your build tool.\",\n );\n },\n {\n anchorScope(): never {\n throw new Error(\"Stillwind style.anchorScope() is a compile-time macro.\");\n },\n ref(): never {\n throw new Error(\"Stillwind style.ref() is a compile-time macro.\");\n },\n keyframes(): never {\n throw new Error(\"Stillwind style.keyframes() is a compile-time macro.\");\n },\n viewTransition(): never {\n throw new Error(\"Stillwind style.viewTransition() is a compile-time macro.\");\n },\n cva(): never {\n throw new Error(\"Stillwind style.cva() is a compile-time macro.\");\n },\n media(): never {\n throw new Error(\"Stillwind style.media() is a compile-time macro.\");\n },\n css(): never {\n throw new Error(\"Stillwind style.css() is a compile-time macro.\");\n },\n },\n );\n}\n"],"mappings":";;;;;;;;;;;AA0QA,SAAgB,mBAA6C;CAC3D,OAAO,OAAO,aACC;EACX,MAAM,IAAI,MACR,qGACF;CACF,GACA;EACE,cAAqB;GACnB,MAAM,IAAI,MAAM,wDAAwD;EAC1E;EACA,MAAa;GACX,MAAM,IAAI,MAAM,gDAAgD;EAClE;EACA,YAAmB;GACjB,MAAM,IAAI,MAAM,sDAAsD;EACxE;EACA,iBAAwB;GACtB,MAAM,IAAI,MAAM,2DAA2D;EAC7E;EACA,MAAa;GACX,MAAM,IAAI,MAAM,gDAAgD;EAClE;EACA,QAAe;GACb,MAAM,IAAI,MAAM,kDAAkD;EACpE;EACA,MAAa;GACX,MAAM,IAAI,MAAM,gDAAgD;EAClE;CACF,CACF;AACF"}