stillwind 0.0.0 → 0.1.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,111 @@
1
+ import { createCva, isObject, mergeFragments, stillwindClsx, stillwindViewTransitionName, toFragment } from "./cva-BwX07CFw.js";
2
+ // src/runtime/development.ts
3
+ /** Runtime validation selected explicitly by development compilations. */
4
+ /**
5
+ * Reads a compiled ref's class token once.
6
+ *
7
+ * @param value - A ref record whose `.c` property contains a nonempty string.
8
+ * @returns The class token.
9
+ * @throws TypeError if the record or token is missing, or the token is empty or not a string.
10
+ */
11
+ function stillwindRefClassChecked(value) {
12
+ const token = isObject(value) ? value.c : void 0;
13
+ if (typeof token !== "string" || !token) throw new TypeError("Stillwind received a ref without a class token in .c.");
14
+ return token;
15
+ }
16
+ /**
17
+ * Validates external class inputs before concatenating them.
18
+ *
19
+ * @param values - Strings, numbers, bigints, nested arrays, or objects whose truthy entries enable their keys.
20
+ * Booleans, null, and undefined add no text.
21
+ * @returns Class text in contribution order without deduplication.
22
+ * @throws TypeError when an input or nested array contains a function or symbol.
23
+ */
24
+ function stillwindClsxChecked(...values) {
25
+ function check(value) {
26
+ if (value == null || [
27
+ "string",
28
+ "number",
29
+ "bigint",
30
+ "boolean"
31
+ ].includes(typeof value)) return;
32
+ if (Array.isArray(value)) {
33
+ value.forEach(check);
34
+ return;
35
+ }
36
+ if (isObject(value)) return;
37
+ throw new TypeError(`Stillwind received an unsupported class value: ${typeof value}.`);
38
+ }
39
+ values.forEach(check);
40
+ return stillwindClsx(...values);
41
+ }
42
+ /**
43
+ * Creates a CVA selector that validates external classes and selected fragment channels.
44
+ * The selector throws TypeError for inputs rejected by `stillwindClsxChecked` or `mergeFragmentsChecked`.
45
+ *
46
+ * @param options - Framework conventions and the keys of the runtime that created the fragments.
47
+ * @param base - Compiled styles included in every selection.
48
+ * @param config - Immutable compiled option maps, defaults, and compound conditions.
49
+ * @returns A selector with the same selection and props behavior as `createCva`.
50
+ */
51
+ function createCvaChecked(options, base, config) {
52
+ return createCva(options, base, config, stillwindClsxChecked, mergeFragmentsChecked);
53
+ }
54
+ /**
55
+ * Validates fragment channels before materializing framework props.
56
+ *
57
+ * @param options - The receiving framework's conventions and distinct fragment keys.
58
+ * @param values - Inputs accepted by `mergeFragments`.
59
+ * @returns The same props as `mergeFragments` for valid inputs.
60
+ * @throws TypeError for foreign symbol keys, unconverted class props, or a non-null class channel that is not a string.
61
+ */
62
+ function mergeFragmentsChecked(options, values) {
63
+ const [, , stillwindClassKey, stillwindStyleKey, stillwindCustomPropertiesKey] = options;
64
+ const keys = [
65
+ stillwindClassKey,
66
+ stillwindStyleKey,
67
+ stillwindCustomPropertiesKey
68
+ ];
69
+ function check(value) {
70
+ if (Array.isArray(value)) {
71
+ value.forEach(check);
72
+ return;
73
+ }
74
+ if (!isObject(value)) return;
75
+ const symbols = Object.getOwnPropertySymbols(value);
76
+ if (symbols.some((key) => !keys.includes(key))) throw new TypeError("Stillwind received a fragment from a different runtime instance.");
77
+ if (!symbols.some((key) => keys.includes(key)) && (Object.hasOwn(value, "class") || Object.hasOwn(value, "className"))) throw new TypeError("Stillwind received a materialized props object; convert it with stillwindToFragment() first.");
78
+ const classes = value[stillwindClassKey];
79
+ if (classes != null && typeof classes !== "string") throw new TypeError("Stillwind received a fragment with a non-string class value.");
80
+ }
81
+ values.forEach(check);
82
+ return mergeFragments(options, values);
83
+ }
84
+ /**
85
+ * Validates a composition base before converting it to a class-only fragment.
86
+ *
87
+ * @param options - The receiving framework's conventions and distinct fragment keys.
88
+ * @param value - A non-null props object or a fragment belonging to this runtime.
89
+ * @returns The result of `toFragment` for the object.
90
+ * @throws TypeError when the value is null or is not an object.
91
+ */
92
+ function toFragmentChecked(options, value) {
93
+ if (!isObject(value)) throw new TypeError("Stillwind expected a materialized props object.");
94
+ return toFragment(options, value);
95
+ }
96
+ /**
97
+ * Names a keyed view transition after reading its token once.
98
+ *
99
+ * @param value - A nonempty class token or a record whose `.v` contains that token.
100
+ * @param key - A key appended after a hyphen using `String`.
101
+ * @returns The token and key escaped as one CSS identifier.
102
+ * @throws TypeError when the token is missing, empty, or not a string.
103
+ */
104
+ function stillwindViewTransitionNameChecked(value, key) {
105
+ const token = typeof value === "string" ? value : isObject(value) ? value.v : void 0;
106
+ if (typeof token !== "string" || !token) throw new TypeError("Stillwind received a view transition without a class token.");
107
+ return stillwindViewTransitionName(token, key);
108
+ }
109
+ export { createCvaChecked, mergeFragmentsChecked, stillwindClsxChecked, stillwindRefClassChecked, stillwindViewTransitionNameChecked, toFragmentChecked };
110
+
111
+ //# sourceMappingURL=development-J-JCSIm0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"development-J-JCSIm0.js","names":[],"sources":["../src/runtime/development.ts"],"sourcesContent":["/** Runtime validation selected explicitly by development compilations. */\n\nimport { createCva, type CompiledCvaConfig, type CvaValue } from \"./cva.ts\";\nimport { isObject, mergeFragments, toFragment, type FragmentRuntimeOptions } from \"./fragment.ts\";\nimport { stillwindClsx, stillwindViewTransitionName } from \"./shared.ts\";\n\n/**\n * Reads a compiled ref's class token once.\n *\n * @param value - A ref record whose `.c` property contains a nonempty string.\n * @returns The class token.\n * @throws TypeError if the record or token is missing, or the token is empty or not a string.\n */\nexport function stillwindRefClassChecked(value: unknown): string {\n const token = isObject(value) ? value.c : undefined;\n if (typeof token !== \"string\" || !token) {\n throw new TypeError(\"Stillwind received a ref without a class token in .c.\");\n }\n return token;\n}\n\n/**\n * Validates external class inputs before concatenating them.\n *\n * @param values - Strings, numbers, bigints, nested arrays, or objects whose truthy entries enable their keys.\n * Booleans, null, and undefined add no text.\n * @returns Class text in contribution order without deduplication.\n * @throws TypeError when an input or nested array contains a function or symbol.\n */\nexport function stillwindClsxChecked(...values: readonly unknown[]): string {\n function check(value: unknown): void {\n if (value == null || [\"string\", \"number\", \"bigint\", \"boolean\"].includes(typeof value)) {\n return;\n }\n if (Array.isArray(value)) {\n value.forEach(check);\n return;\n }\n if (isObject(value)) {\n return;\n }\n throw new TypeError(`Stillwind received an unsupported class value: ${typeof value}.`);\n }\n values.forEach(check);\n return stillwindClsx(...values);\n}\n\n/**\n * Creates a CVA selector that validates external classes and selected fragment channels.\n * The selector throws TypeError for inputs rejected by `stillwindClsxChecked` or `mergeFragmentsChecked`.\n *\n * @param options - Framework conventions and the keys of the runtime that created the fragments.\n * @param base - Compiled styles included in every selection.\n * @param config - Immutable compiled option maps, defaults, and compound conditions.\n * @returns A selector with the same selection and props behavior as `createCva`.\n */\nexport function createCvaChecked(\n options: FragmentRuntimeOptions,\n base?: CvaValue,\n config?: CompiledCvaConfig,\n) {\n return createCva(options, base, config, stillwindClsxChecked, mergeFragmentsChecked);\n}\n\n/**\n * Validates fragment channels before materializing framework props.\n *\n * @param options - The receiving framework's conventions and distinct fragment keys.\n * @param values - Inputs accepted by `mergeFragments`.\n * @returns The same props as `mergeFragments` for valid inputs.\n * @throws TypeError for foreign symbol keys, unconverted class props, or a non-null class channel that is not a string.\n */\nexport function mergeFragmentsChecked(\n options: FragmentRuntimeOptions,\n values: readonly unknown[],\n): Record<string, unknown> {\n const [, , stillwindClassKey, stillwindStyleKey, stillwindCustomPropertiesKey] = options;\n const keys = [stillwindClassKey, stillwindStyleKey, stillwindCustomPropertiesKey];\n\n function check(value: unknown): void {\n if (Array.isArray(value)) {\n value.forEach(check);\n return;\n }\n if (!isObject(value)) {\n return;\n }\n const symbols = Object.getOwnPropertySymbols(value);\n if (symbols.some((key) => !keys.includes(key))) {\n throw new TypeError(\"Stillwind received a fragment from a different runtime instance.\");\n }\n if (\n !symbols.some((key) => keys.includes(key)) &&\n (Object.hasOwn(value, \"class\") || Object.hasOwn(value, \"className\"))\n ) {\n throw new TypeError(\n \"Stillwind received a materialized props object; convert it with stillwindToFragment() first.\",\n );\n }\n const classes = value[stillwindClassKey];\n if (classes != null && typeof classes !== \"string\") {\n throw new TypeError(\"Stillwind received a fragment with a non-string class value.\");\n }\n }\n\n values.forEach(check);\n return mergeFragments(options, values);\n}\n\n/**\n * Validates a composition base before converting it to a class-only fragment.\n *\n * @param options - The receiving framework's conventions and distinct fragment keys.\n * @param value - A non-null props object or a fragment belonging to this runtime.\n * @returns The result of `toFragment` for the object.\n * @throws TypeError when the value is null or is not an object.\n */\nexport function toFragmentChecked(\n options: FragmentRuntimeOptions,\n value: unknown,\n): Record<PropertyKey, unknown> {\n if (!isObject(value)) {\n throw new TypeError(\"Stillwind expected a materialized props object.\");\n }\n return toFragment(options, value);\n}\n\n/**\n * Names a keyed view transition after reading its token once.\n *\n * @param value - A nonempty class token or a record whose `.v` contains that token.\n * @param key - A key appended after a hyphen using `String`.\n * @returns The token and key escaped as one CSS identifier.\n * @throws TypeError when the token is missing, empty, or not a string.\n */\nexport function stillwindViewTransitionNameChecked(value: unknown, key: string | number): string {\n const token = typeof value === \"string\" ? value : isObject(value) ? value.v : undefined;\n if (typeof token !== \"string\" || !token) {\n throw new TypeError(\"Stillwind received a view transition without a class token.\");\n }\n return stillwindViewTransitionName(token, key);\n}\n"],"mappings":";;;;;;;;;;AAaA,SAAgB,yBAAyB,OAAwB;CAC/D,MAAM,QAAQ,SAAS,KAAK,IAAI,MAAM,IAAI,KAAA;CAC1C,IAAI,OAAO,UAAU,YAAY,CAAC,OAChC,MAAM,IAAI,UAAU,uDAAuD;CAE7E,OAAO;AACT;;;;;;;;;AAUA,SAAgB,qBAAqB,GAAG,QAAoC;CAC1E,SAAS,MAAM,OAAsB;EACnC,IAAI,SAAS,QAAQ;GAAC;GAAU;GAAU;GAAU;EAAS,CAAC,CAAC,SAAS,OAAO,KAAK,GAClF;EAEF,IAAI,MAAM,QAAQ,KAAK,GAAG;GACxB,MAAM,QAAQ,KAAK;GACnB;EACF;EACA,IAAI,SAAS,KAAK,GAChB;EAEF,MAAM,IAAI,UAAU,kDAAkD,OAAO,MAAM,EAAE;CACvF;CACA,OAAO,QAAQ,KAAK;CACpB,OAAO,cAAc,GAAG,MAAM;AAChC;;;;;;;;;;AAWA,SAAgB,iBACd,SACA,MACA,QACA;CACA,OAAO,UAAU,SAAS,MAAM,QAAQ,sBAAsB,qBAAqB;AACrF;;;;;;;;;AAUA,SAAgB,sBACd,SACA,QACyB;CACzB,MAAM,KAAK,mBAAmB,mBAAmB,gCAAgC;CACjF,MAAM,OAAO;EAAC;EAAmB;EAAmB;CAA4B;CAEhF,SAAS,MAAM,OAAsB;EACnC,IAAI,MAAM,QAAQ,KAAK,GAAG;GACxB,MAAM,QAAQ,KAAK;GACnB;EACF;EACA,IAAI,CAAC,SAAS,KAAK,GACjB;EAEF,MAAM,UAAU,OAAO,sBAAsB,KAAK;EAClD,IAAI,QAAQ,MAAM,QAAQ,CAAC,KAAK,SAAS,GAAG,CAAC,GAC3C,MAAM,IAAI,UAAU,kEAAkE;EAExF,IACE,CAAC,QAAQ,MAAM,QAAQ,KAAK,SAAS,GAAG,CAAC,MACxC,OAAO,OAAO,OAAO,OAAO,KAAK,OAAO,OAAO,OAAO,WAAW,IAElE,MAAM,IAAI,UACR,8FACF;EAEF,MAAM,UAAU,MAAM;EACtB,IAAI,WAAW,QAAQ,OAAO,YAAY,UACxC,MAAM,IAAI,UAAU,8DAA8D;CAEtF;CAEA,OAAO,QAAQ,KAAK;CACpB,OAAO,eAAe,SAAS,MAAM;AACvC;;;;;;;;;AAUA,SAAgB,kBACd,SACA,OAC8B;CAC9B,IAAI,CAAC,SAAS,KAAK,GACjB,MAAM,IAAI,UAAU,iDAAiD;CAEvE,OAAO,WAAW,SAAS,KAAK;AAClC;;;;;;;;;AAUA,SAAgB,mCAAmC,OAAgB,KAA8B;CAC/F,MAAM,QAAQ,OAAO,UAAU,WAAW,QAAQ,SAAS,KAAK,IAAI,MAAM,IAAI,KAAA;CAC9E,IAAI,OAAO,UAAU,YAAY,CAAC,OAChC,MAAM,IAAI,UAAU,6DAA6D;CAEnF,OAAO,4BAA4B,OAAO,GAAG;AAC/C"}
@@ -0,0 +1,20 @@
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
+ type Alpine = {
4
+ directive(name: string, handler: (element: HTMLElement, directive: {
5
+ expression: string;
6
+ }, utilities: {
7
+ evaluateLater(expression: string): (receive: (props: Readonly<StyleProps>) => void) => void;
8
+ effect(callback: () => void): void;
9
+ cleanup(callback: () => void): void;
10
+ }) => void): unknown;
11
+ mutateDom<T>(callback: () => T): T;
12
+ };
13
+ /**
14
+ * Registers `x-sw` for reactive compiled props. Install with `Alpine.plugin(stillwind)`
15
+ * before `Alpine.start()`. The expression must return a Stillwind props object.
16
+ * Updates replace the directive's contribution, and directive removal clears it.
17
+ */
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 };
20
+ //# sourceMappingURL=alpine.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { applyStyle, clearStyle } from "../style-BV4ctkni.js";
2
+ import { style } from "../class-object-D24FFYqO.js";
3
+ // src/frameworks/alpine.ts
4
+ /**
5
+ * Registers `x-sw` for reactive compiled props. Install with `Alpine.plugin(stillwind)`
6
+ * before `Alpine.start()`. The expression must return a Stillwind props object.
7
+ * Updates replace the directive's contribution, and directive removal clears it.
8
+ */
9
+ function stillwind(alpine) {
10
+ alpine.directive("sw", (element, { expression }, utilities) => {
11
+ const evaluate = utilities.evaluateLater(expression);
12
+ utilities.effect(() => evaluate((props) => alpine.mutateDom(() => applyStyle(element, props))));
13
+ utilities.cleanup(() => alpine.mutateDom(() => clearStyle(element)));
14
+ });
15
+ }
16
+ export { stillwind, style };
17
+
18
+ //# sourceMappingURL=alpine.js.map
@@ -0,0 +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"}
@@ -0,0 +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 };
@@ -0,0 +1 @@
1
+ export { style } from "../class-string-Db8-oI4q.js";
@@ -0,0 +1,21 @@
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
+ import { nothing } from "lit";
4
+ import { AsyncDirective } from "lit/async-directive.js";
5
+ import { ElementPart, PartInfo } from "lit/directive.js";
6
+ declare class StyleDirective extends AsyncDirective {
7
+ #private;
8
+ constructor(part: PartInfo);
9
+ render(_props: Readonly<StyleProps>): typeof nothing;
10
+ update(part: ElementPart, [props]: [Readonly<StyleProps>]): typeof nothing;
11
+ protected disconnected(): void;
12
+ protected reconnected(): void;
13
+ }
14
+ /**
15
+ * Applies compiled props in a browser Lit element binding: `<div ${applyStyle(props)}>`.
16
+ * Updates replace its contribution and disconnection clears it. Reconnection reapplies
17
+ * the latest props. Server rendering of this directive is unsupported.
18
+ */
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 };
21
+ //# sourceMappingURL=lit.d.ts.map
@@ -0,0 +1,38 @@
1
+ import { applyStyle as applyStyle$1, clearStyle } from "../style-BV4ctkni.js";
2
+ import { style } from "../class-object-D24FFYqO.js";
3
+ import { nothing } from "lit";
4
+ import { AsyncDirective } from "lit/async-directive.js";
5
+ import { PartType, directive } from "lit/directive.js";
6
+ // src/frameworks/lit.ts
7
+ var StyleDirective = class extends AsyncDirective {
8
+ #element;
9
+ #props;
10
+ constructor(part) {
11
+ super(part);
12
+ if (part.type !== PartType.ELEMENT) throw new Error("Stillwind applyStyle must be used in a Lit element binding");
13
+ }
14
+ render(_props) {
15
+ return nothing;
16
+ }
17
+ update(part, [props]) {
18
+ this.#element = part.element;
19
+ this.#props = props;
20
+ if (this.isConnected) applyStyle$1(this.#element, props);
21
+ return nothing;
22
+ }
23
+ disconnected() {
24
+ if (this.#element) clearStyle(this.#element);
25
+ }
26
+ reconnected() {
27
+ if (this.#element && this.#props) applyStyle$1(this.#element, this.#props);
28
+ }
29
+ };
30
+ /**
31
+ * Applies compiled props in a browser Lit element binding: `<div ${applyStyle(props)}>`.
32
+ * Updates replace its contribution and disconnection clears it. Reconnection reapplies
33
+ * the latest props. Server rendering of this directive is unsupported.
34
+ */
35
+ const applyStyle = directive(StyleDirective);
36
+ export { applyStyle, style };
37
+
38
+ //# sourceMappingURL=lit.js.map
@@ -0,0 +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"}
@@ -0,0 +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 };
@@ -0,0 +1 @@
1
+ export { style } from "../class-object-D24FFYqO.js";
@@ -0,0 +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 };
@@ -0,0 +1 @@
1
+ export { style } from "../class-object-D24FFYqO.js";
@@ -0,0 +1,10 @@
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";
2
+ type StyleProps = {
3
+ className?: string;
4
+ style?: Record<string, string>;
5
+ };
6
+ type StyleResult<Id extends string = string> = StyleResult$1<Id, StyleProps>;
7
+ type StyleMacro = StyleMacro$1<StyleProps>;
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 };
10
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { createStyleMacro } from "../style-fTQbsVWZ.js";
2
+ // src/outputs/class-name-object.ts
3
+ const style = createStyleMacro();
4
+ export { style };
5
+
6
+ //# sourceMappingURL=react.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.js","names":[],"sources":["../../src/outputs/class-name-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 className?: 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"}
@@ -0,0 +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 };
@@ -0,0 +1 @@
1
+ export { style } from "../class-object-D24FFYqO.js";
@@ -0,0 +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 };
@@ -0,0 +1 @@
1
+ export { style } from "../class-string-Db8-oI4q.js";
@@ -0,0 +1,27 @@
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
+ type StyleElement = Element & ElementCSSInlineStyle;
4
+ /**
5
+ * Applies compiled props to an HTML, SVG, or other element with inline CSS support.
6
+ *
7
+ * Each call replaces the previous Stillwind contribution on this element. Classes
8
+ * already present before Stillwind adds them are preserved. Inline CSS declarations
9
+ * use CSS property names, including custom properties. Removing a declaration restores
10
+ * its previous inline value and priority if its value has not been changed externally.
11
+ * Updates copy the supplied values, so later mutations of `props` do not change ownership.
12
+ *
13
+ * @param element - Element whose class list and inline CSS declarations are updated.
14
+ * @param props - Compiled class and optional style props. Empty props clear the contribution.
15
+ */
16
+ export declare function applyStyle(element: StyleElement, props: Readonly<StyleProps>): void;
17
+ /**
18
+ * Removes the current Stillwind contribution from an element.
19
+ *
20
+ * Removes classes added by Stillwind and restores overwritten inline CSS declarations.
21
+ * A declaration changed externally after the last application is preserved.
22
+ *
23
+ * @param element - Element previously passed to `applyStyle`. Other elements are unchanged.
24
+ */
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 };
27
+ //# sourceMappingURL=vanilla.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { applyStyle, clearStyle } from "../style-BV4ctkni.js";
2
+ import { style } from "../class-object-D24FFYqO.js";
3
+ export { applyStyle, clearStyle, style };
@@ -0,0 +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 };
@@ -0,0 +1 @@
1
+ export { style } from "../class-object-D24FFYqO.js";