stillwind 0.11.0 → 0.12.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 (87) hide show
  1. package/AGENTS_TEMPLATE.md +3 -2
  2. package/CHANGELOG.md +25 -0
  3. package/README.md +2 -2
  4. package/dist/{class-object-BaK8uudd.d.ts → class-object-CXvJOi2z.d.ts} +2 -2
  5. package/dist/class-object-CzD1oMD_.js +6 -0
  6. package/dist/{class-object-DNcjzcfH.js.map → class-object-CzD1oMD_.js.map} +1 -1
  7. package/dist/class-string-CrQnTRvI.js +6 -0
  8. package/dist/{class-string-KnYInbiw.js.map → class-string-CrQnTRvI.js.map} +1 -1
  9. package/dist/{class-string-C5YFtXQn.d.ts → class-string-DQmH4PZX.d.ts} +2 -2
  10. package/dist/frameworks/alpine.d.ts +2 -2
  11. package/dist/frameworks/alpine.js +1 -1
  12. package/dist/frameworks/astro.d.ts +2 -2
  13. package/dist/frameworks/astro.js +1 -1
  14. package/dist/frameworks/lit.d.ts +2 -2
  15. package/dist/frameworks/lit.js +1 -1
  16. package/dist/frameworks/preact.d.ts +2 -2
  17. package/dist/frameworks/preact.js +1 -1
  18. package/dist/frameworks/qwik.d.ts +2 -2
  19. package/dist/frameworks/qwik.js +1 -1
  20. package/dist/frameworks/react.d.ts +1 -1
  21. package/dist/frameworks/react.js +1 -1
  22. package/dist/frameworks/solid.d.ts +2 -2
  23. package/dist/frameworks/solid.js +1 -1
  24. package/dist/frameworks/svelte.d.ts +2 -2
  25. package/dist/frameworks/svelte.js +1 -1
  26. package/dist/frameworks/vanilla.d.ts +2 -2
  27. package/dist/frameworks/vanilla.js +1 -1
  28. package/dist/frameworks/vue.d.ts +2 -2
  29. package/dist/frameworks/vue.js +1 -1
  30. package/dist/{index-DBpgaaD7.d.ts → index-uw1R9t_P.d.ts} +11 -11
  31. package/dist/macro/index.d.ts +1 -1
  32. package/dist/macro/index.js +1 -1
  33. package/dist/style-Bzuux32Y.js +47 -0
  34. package/dist/{style-BE8vuLiO.js.map → style-Bzuux32Y.js.map} +1 -1
  35. package/docs/agents.md +1 -0
  36. package/docs/at-rules/apply.md +1 -1
  37. package/docs/at-rules/custom-variant.md +1 -1
  38. package/docs/at-rules/slot.md +1 -1
  39. package/docs/at-rules/stillwind-property.md +1 -1
  40. package/docs/at-rules/stillwind-registry.md +1 -1
  41. package/docs/at-rules/stillwind-require-properties.md +1 -1
  42. package/docs/at-rules/stillwind-undef-arbitrary-property.md +1 -1
  43. package/docs/at-rules/stillwind-undef-utility.md +1 -1
  44. package/docs/at-rules/stillwind-undef-variant.md +1 -1
  45. package/docs/at-rules/theme.md +5 -5
  46. package/docs/at-rules/utility.md +4 -4
  47. package/docs/at-rules/variant.md +1 -1
  48. package/docs/cli.md +146 -51
  49. package/docs/configuration.md +63 -4
  50. package/docs/errors/SW01001.md +1 -1
  51. package/docs/errors/SW03001.md +1 -1
  52. package/docs/errors/SW10004.md +1 -1
  53. package/docs/errors/SW10005.md +1 -1
  54. package/docs/errors/SW11001.md +1 -1
  55. package/docs/errors/SW12001.md +1 -1
  56. package/docs/errors/SW12002.md +1 -1
  57. package/docs/errors/SW13002.md +1 -1
  58. package/docs/errors/SW14001.md +1 -1
  59. package/docs/errors/SW14002.md +1 -1
  60. package/docs/errors/SW14003.md +1 -1
  61. package/docs/errors/SW14004.md +1 -1
  62. package/docs/errors/SW14007.md +1 -1
  63. package/docs/errors/SW32003.md +1 -1
  64. package/docs/errors/SW32005.md +1 -1
  65. package/docs/formatters.md +34 -2
  66. package/docs/guides/lint-adoption.md +2 -0
  67. package/docs/guides/migrating-from-tailwind.md +8 -0
  68. package/docs/guides/recommended-practices.md +18 -0
  69. package/docs/guides/tailwind-compatibility.md +8 -0
  70. package/docs/index.md +4 -5
  71. package/docs/integrations.md +295 -79
  72. package/docs/lints/index.md +12 -0
  73. package/docs/lints/invalid-cva-input.md +1 -1
  74. package/docs/lints/invalid-rule-group-input.md +1 -1
  75. package/docs/lints/missing-view-transition-name.md +1 -1
  76. package/docs/lints/prefer-direct-styling.md +1 -1
  77. package/docs/lints/suspending-macro-argument.md +1 -1
  78. package/docs/llms.txt +233 -0
  79. package/docs/macros/style.md +10 -0
  80. package/docs/plugins/iconify.md +2 -0
  81. package/docs/utilities-and-variants.md +2 -0
  82. package/package.json +4 -4
  83. package/skills/setup-stillwind/SKILL.md +1 -2
  84. package/skills/stillwind/SKILL.md +18 -11
  85. package/dist/class-object-DNcjzcfH.js +0 -6
  86. package/dist/class-string-KnYInbiw.js +0 -6
  87. package/dist/style-BE8vuLiO.js +0 -44
@@ -1,5 +1,6 @@
1
1
  ## Stillwind
2
2
 
3
3
  - This project styles elements with [Stillwind](https://stillwind.dev/). Stillwind compiles Tailwind CSS v4 utilities in `style()` calls into element props and static CSS.
4
- - Before you change styles, read the relevant Markdown docs in `node_modules/stillwind/docs/`. Start with `guides/recommended-practices.md`. `node_modules/stillwind/skills/stillwind/SKILL.md` lists the page for each task.
5
- - After you change styles, run `stillwind lint --fix` and `stillwind fmt` through the project's package manager, and fix the remaining findings.
4
+ - Before you change styles, read the relevant Markdown docs in `node_modules/stillwind/docs/`. Start with `guides/recommended-practices.md`; `docs/llms.txt` indexes every page, and `node_modules/stillwind/skills/stillwind/SKILL.md` maps tasks to pages.
5
+ - After you change styles, run `stillwind check --fix` through the project's package manager, and fix the remaining findings.
6
+ - When you need to debug styles or look up an unfamiliar token or utility, use `stillwind inspect <file>:<line>`, `stillwind theme --source project`, or `stillwind utilities <name>` (add `--format json` when parsing the output).
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # stillwind
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added project-scoped `hooks` (`defineHook` and `AnalysisHook` from `stillwind/config` and `@stillwind/config`) for in-memory formatting in `stillwind fmt` and `stillwind check`. Hooks support `setup`, `teardown`, and per-file `format` callbacks so formatters such as Oxfmt run after Stillwind utility sorting in one pass, including `--check`. `stillwind info` now also lists configured hook names.
8
+
9
+ ### Patch Changes
10
+
11
+ - The `stillwind` package now bundles `docs/llms.txt`, a single-file index of all bundled Markdown documentation pages with relative paths and descriptions, and updates `AGENTS_TEMPLATE.md` and `skills/stillwind/SKILL.md` so coding agents can look up design-system tokens, utilities, and generated CSS without broken cross-skill links. The public `style()` overload now appears before the internal checker overload so TypeScript diagnostics report the public signature first. `stillwind inspect` now prints `docs:` lines for findings in text output, matching `stillwind lint`.
12
+
13
+ - Bundled Markdown pages under `node_modules/stillwind/docs/` now include a top-level `## Contents` section on long reference pages for faster section navigation, and a package-manager substitution note on pages whose shell examples use `vp`.
14
+
15
+ - Added `stillwind check` and `stillwind check --fix` to run lint checks and utility sorting in a single analysis pass. `stillwind check` reports lint findings and files that need sorting without saving, and exits with `1` when errors or unsorted files remain. `stillwind check --fix` applies converged automatic fixes and utility sorting, saves changed files, and reports findings for the final sources. `@stillwind/analysis/node` exports the corresponding `check()` function, and `stillwind`'s agent instructions now recommend `stillwind check --fix`.
16
+
17
+ - `stillwind utilities` and `stillwind variants` now accept `--names-only` to list matching names without formatting CSS previews. Pattern searches in `stillwind utilities` now also include placeholder patterns for functional utilities' non-enumerable domains, such as `p-<number>` and `p-[<length-percentage>]` (`kind: "pattern"` in JSON). `stillwind theme` now includes resolved values for tokens that reference other theme variables (`resolvedValue` in JSON, and inline comments in text output).
18
+
19
+ - Diagnostic actions in CLI output now distinguish automatic fixes from manual suggestions (`actions[].autofix`, `summary.autofixable`, and `(autofix)` / `(suggestion)` labels in text output), and the `--fix` hint is shown only when automatic fixes are available. `stillwind inspect` now explains why no previews were returned (`emptyReason`: `no-styles`, `line-out-of-range`, `column-out-of-range`, or `no-match-at-position`). Uncompiled runtime placeholder errors for every `style.*` macro now include guidance on build integration ordering and `docs/integrations.md`.
20
+
21
+ - Make CLI and build output easier to read. `stillwind --help` now highlights headings and options, lists `--format files` only for `stillwind fmt`, and suggests valid commands and `--help` for an unknown command or option. Text output colors file paths, codes, `note:`, `help:`, and `docs:` labels, shows `[project N]` only when results come from several projects, and gives `stillwind inspect` diagnostics the same colors and docs links. Compiler and lint messages no longer show internal byte offsets or debug values, name the conflicting framework and source format for `SW02001`, show the rejected prefix for `SW01001`, and use consistent punctuation and backticks. Unterminated blocks, nesting overflows, and syntax errors in CSS now point at the failing character instead of the whole stylesheet. When the failing CSS has no document URI, such as CSS that a plugin generates, the error message names that source and the byte offset. Vite reports compile errors in the error overlay with a clickable location and a code frame, and build warnings use the `stillwind: <rule>: <message> (<path>:<line>:<column>)` form.
22
+
23
+ - Updated dependencies:
24
+ - @stillwind/config@0.12.0
25
+ - @stillwind/native@0.12.0
26
+ - @stillwind/projection@0.12.0
27
+
3
28
  ## 0.11.0
4
29
 
5
30
  ### Patch Changes
package/README.md CHANGED
@@ -10,8 +10,8 @@ Alpine, Astro, Lit, Preact, Qwik, React, Solid, Svelte, Vue, and vanilla JavaScr
10
10
  ## Install
11
11
 
12
12
  ```sh
13
- vp i stillwind
14
- vp i -D @stillwind/integration
13
+ npm install stillwind
14
+ npm install -D @stillwind/integration
15
15
  ```
16
16
 
17
17
  ## Configure a project
@@ -1,4 +1,4 @@
1
- import { StyleMacro as StyleMacro$1, StyleResult as StyleResult$1 } from "./index-DBpgaaD7.js";
1
+ import { StyleMacro as StyleMacro$1, StyleResult as StyleResult$1 } from "./index-uw1R9t_P.js";
2
2
  export type StyleProps = {
3
3
  class?: string;
4
4
  style?: Record<string, string>;
@@ -6,4 +6,4 @@ export type StyleProps = {
6
6
  export type StyleResult<Id extends string = string> = StyleResult$1<Id, StyleProps>;
7
7
  export type StyleMacro = StyleMacro$1<StyleProps>;
8
8
  export declare const style: StyleMacro;
9
- //# sourceMappingURL=class-object-BaK8uudd.d.ts.map
9
+ //# sourceMappingURL=class-object-CXvJOi2z.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { createStyleMacro } from "./style-Bzuux32Y.js";
2
+ // src/outputs/class-object.ts
3
+ const style = createStyleMacro();
4
+ export { style };
5
+
6
+ //# sourceMappingURL=class-object-CzD1oMD_.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"class-object-DNcjzcfH.js","names":[],"sources":["../src/outputs/class-object.ts"],"sourcesContent":["import type { StyleResult as Result } from \"../macro/output.ts\";\nimport { createStyleMacro } from \"../macro/style.ts\";\nimport type { StyleMacro as Macro } from \"../macro/style.ts\";\n\nexport type StyleProps = {\n class?: string;\n style?: Record<string, string>;\n};\n\nexport type StyleResult<Id extends string = string> = Result<Id, StyleProps>;\n\nexport type StyleMacro = Macro<StyleProps>;\n\nexport const style: StyleMacro = createStyleMacro<StyleProps>();\n"],"mappings":";;AAaA,MAAa,QAAoB,iBAA6B"}
1
+ {"version":3,"file":"class-object-CzD1oMD_.js","names":[],"sources":["../src/outputs/class-object.ts"],"sourcesContent":["import type { StyleResult as Result } from \"../macro/output.ts\";\nimport { createStyleMacro } from \"../macro/style.ts\";\nimport type { StyleMacro as Macro } from \"../macro/style.ts\";\n\nexport type StyleProps = {\n class?: string;\n style?: Record<string, string>;\n};\n\nexport type StyleResult<Id extends string = string> = Result<Id, StyleProps>;\n\nexport type StyleMacro = Macro<StyleProps>;\n\nexport const style: StyleMacro = createStyleMacro<StyleProps>();\n"],"mappings":";;AAaA,MAAa,QAAoB,iBAA6B"}
@@ -0,0 +1,6 @@
1
+ import { createStyleMacro } from "./style-Bzuux32Y.js";
2
+ // src/outputs/class-string.ts
3
+ const style = createStyleMacro();
4
+ export { style };
5
+
6
+ //# sourceMappingURL=class-string-CrQnTRvI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"class-string-KnYInbiw.js","names":[],"sources":["../src/outputs/class-string.ts"],"sourcesContent":["import type { StyleResult as Result } from \"../macro/output.ts\";\nimport type { StyleMacro as Macro } from \"../macro/style.ts\";\nimport { createStyleMacro } from \"../macro/style.ts\";\n\nexport type StyleProps = {\n class?: string;\n style?: string;\n};\nexport type StyleResult<Id extends string = string> = Result<Id, StyleProps>;\nexport type StyleMacro = Macro<StyleProps>;\nexport const style: StyleMacro = createStyleMacro<StyleProps>();\n"],"mappings":";;AAUA,MAAa,QAAoB,iBAA6B"}
1
+ {"version":3,"file":"class-string-CrQnTRvI.js","names":[],"sources":["../src/outputs/class-string.ts"],"sourcesContent":["import type { StyleResult as Result } from \"../macro/output.ts\";\nimport type { StyleMacro as Macro } from \"../macro/style.ts\";\nimport { createStyleMacro } from \"../macro/style.ts\";\n\nexport type StyleProps = {\n class?: string;\n style?: string;\n};\nexport type StyleResult<Id extends string = string> = Result<Id, StyleProps>;\nexport type StyleMacro = Macro<StyleProps>;\nexport const style: StyleMacro = createStyleMacro<StyleProps>();\n"],"mappings":";;AAUA,MAAa,QAAoB,iBAA6B"}
@@ -1,4 +1,4 @@
1
- import { StyleMacro as StyleMacro$1, StyleResult as StyleResult$1 } from "./index-DBpgaaD7.js";
1
+ import { StyleMacro as StyleMacro$1, StyleResult as StyleResult$1 } from "./index-uw1R9t_P.js";
2
2
  export type StyleProps = {
3
3
  class?: string;
4
4
  style?: string;
@@ -6,4 +6,4 @@ export type StyleProps = {
6
6
  export type StyleResult<Id extends string = string> = StyleResult$1<Id, StyleProps>;
7
7
  export type StyleMacro = StyleMacro$1<StyleProps>;
8
8
  export declare const style: StyleMacro;
9
- //# sourceMappingURL=class-string-C5YFtXQn.d.ts.map
9
+ //# sourceMappingURL=class-string-DQmH4PZX.d.ts.map
@@ -1,5 +1,5 @@
1
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-CXvJOi2z.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
3
3
  type Alpine = {
4
4
  directive(name: string, handler: (element: HTMLElement, directive: {
5
5
  expression: string;
@@ -1,5 +1,5 @@
1
1
  import { applyStyle, clearStyle } from "../style-BV4ctkni.js";
2
- import { style } from "../class-object-DNcjzcfH.js";
2
+ import { style } from "../class-object-CzD1oMD_.js";
3
3
  // src/frameworks/alpine.ts
4
4
  /**
5
5
  * Registers `x-sw` for reactive compiled props. Install with `Alpine.plugin(stillwind)`
@@ -1,3 +1,3 @@
1
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-string-C5YFtXQn.js";
2
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-string-DQmH4PZX.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-string-KnYInbiw.js";
1
+ export { style } from "../class-string-CrQnTRvI.js";
@@ -1,5 +1,5 @@
1
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-CXvJOi2z.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
3
3
  import { nothing } from "lit";
4
4
  import { AsyncDirective } from "lit/async-directive.js";
5
5
  import { ElementPart, PartInfo } from "lit/directive.js";
@@ -1,5 +1,5 @@
1
1
  import { applyStyle as applyStyle$1, clearStyle } from "../style-BV4ctkni.js";
2
- import { style } from "../class-object-DNcjzcfH.js";
2
+ import { style } from "../class-object-CzD1oMD_.js";
3
3
  import { nothing } from "lit";
4
4
  import { AsyncDirective } from "lit/async-directive.js";
5
5
  import { PartType, directive } from "lit/directive.js";
@@ -1,3 +1,3 @@
1
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-CXvJOi2z.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-object-DNcjzcfH.js";
1
+ export { style } from "../class-object-CzD1oMD_.js";
@@ -1,3 +1,3 @@
1
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-CXvJOi2z.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-object-DNcjzcfH.js";
1
+ export { style } from "../class-object-CzD1oMD_.js";
@@ -1,4 +1,4 @@
1
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleMacro as StyleMacro$1, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleMacro as StyleMacro$1, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
2
2
  type StyleProps = {
3
3
  className?: string;
4
4
  style?: Record<string, string>;
@@ -1,4 +1,4 @@
1
- import { createStyleMacro } from "../style-BE8vuLiO.js";
1
+ import { createStyleMacro } from "../style-Bzuux32Y.js";
2
2
  // src/outputs/class-name-object.ts
3
3
  const style = createStyleMacro();
4
4
  export { style };
@@ -1,3 +1,3 @@
1
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-CXvJOi2z.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-object-DNcjzcfH.js";
1
+ export { style } from "../class-object-CzD1oMD_.js";
@@ -1,3 +1,3 @@
1
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-string-C5YFtXQn.js";
2
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-string-DQmH4PZX.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-string-KnYInbiw.js";
1
+ export { style } from "../class-string-CrQnTRvI.js";
@@ -1,5 +1,5 @@
1
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-CXvJOi2z.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
3
3
  type StyleElement = Element & ElementCSSInlineStyle;
4
4
  /**
5
5
  * Applies compiled props to an HTML, SVG, or other element with inline CSS support.
@@ -1,3 +1,3 @@
1
1
  import { applyStyle, clearStyle } from "../style-BV4ctkni.js";
2
- import { style } from "../class-object-DNcjzcfH.js";
2
+ import { style } from "../class-object-CzD1oMD_.js";
3
3
  export { applyStyle, clearStyle, style };
@@ -1,3 +1,3 @@
1
- import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-BaK8uudd.js";
2
- import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { StyleMacro, StyleProps, StyleResult, style } from "../class-object-CXvJOi2z.js";
2
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleRef, StyleRefProjection, StyleResult as StyleResult$1, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
3
3
  export { type AnchorScope, type ContainerType, type ContainerVariant, type CssWideKeyword, type CvaClassProps, type CvaCompound, type CvaConfig, type CvaInput, type CvaResult, type CvaRuleInput, type CvaSelection, type CvaVariants, type RefScope, type RefVariant, type ScopedRefVariant, type StillwindClassValue, type StillwindDeclarationIdentity, type StyleArgument, type StyleCssGroup, type StyleCssInput, type StyleCssOptions, type StyleCustomProperties, type StyleCustomPropertyValue, type StyleKeyframes, type StyleKeyframesDefinition, type StyleKeyframesFrames, type StyleKeyframesUse, type StyleMacro, type StyleProps, type StyleRef, type StyleRefProjection, type StyleResult, type StyleResult$1 as StyleResultOf, type StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, type createStyleMacro, style };
@@ -1 +1 @@
1
- export { style } from "../class-object-DNcjzcfH.js";
1
+ export { style } from "../class-object-CzD1oMD_.js";
@@ -650,16 +650,6 @@ export type StillwindDeclarationIdentity<Id extends string> = {
650
650
  * metadata.
651
651
  */
652
652
  export type StyleMacro<Props = object> = {
653
- /**
654
- * Internal use only. The checker supplies the final identity argument to track the
655
- * completed props value. Application code must use the overload without it.
656
- *
657
- * @param inputs - Style inputs followed by the declaration identity inserted by the compiler.
658
- * The public overload validates authored inputs. This overload adds identity tracking for the checker.
659
- * @returns The composed style props with the supplied declaration identity.
660
- * @internal
661
- */
662
- <Inputs extends readonly StyleArgument[], Id extends string>(...inputs: [...Inputs, StillwindDeclarationIdentity<Id>]): StyleResult<Id, StyleOutput<Props, Inputs>>;
663
653
  /**
664
654
  * Compiles static utility branches and combines them with inline custom
665
655
  * properties, external classes, and completed style props.
@@ -679,6 +669,16 @@ export type StyleMacro<Props = object> = {
679
669
  * time.
680
670
  */
681
671
  <Inputs extends readonly StyleArgument[]>(...inputs: Inputs & CheckedStyleInputs<Inputs>): StyleResult<string, StyleOutput<Props, Inputs>>;
672
+ /**
673
+ * Internal use only. The checker supplies the final identity argument to track the
674
+ * completed props value. Application code must use the overload without it.
675
+ *
676
+ * @param inputs - Style inputs followed by the declaration identity inserted by the compiler.
677
+ * The public overload validates authored inputs. This overload adds identity tracking for the checker.
678
+ * @returns The composed style props with the supplied declaration identity.
679
+ * @internal
680
+ */
681
+ <Inputs extends readonly StyleArgument[], Id extends string>(...inputs: [...Inputs, StillwindDeclarationIdentity<Id>]): StyleResult<Id, StyleOutput<Props, Inputs>>;
682
682
  /**
683
683
  * Declares an unlabeled DOM identity in a binding initializer.
684
684
  * Passing the declaration to `style()` attaches its marker to that element.
@@ -861,4 +861,4 @@ export type StyleMacro<Props = object> = {
861
861
  */
862
862
  export declare function createStyleMacro<Props>(): StyleMacro<Props>;
863
863
  export {};
864
- //# sourceMappingURL=index-DBpgaaD7.d.ts.map
864
+ //# sourceMappingURL=index-uw1R9t_P.d.ts.map
@@ -1,2 +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, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-DBpgaaD7.js";
1
+ import { AnchorScope, ContainerType, ContainerVariant, CssWideKeyword, CvaClassProps, CvaCompound, CvaConfig, CvaInput, CvaResult, CvaRuleInput, CvaSelection, CvaVariants, RefScope, RefVariant, ScopedRefVariant, StillwindClassValue, StillwindDeclarationIdentity, StyleArgument, StyleCssGroup, StyleCssInput, StyleCssOptions, StyleCustomProperties, StyleCustomPropertyValue, StyleKeyframes, StyleKeyframesDefinition, StyleKeyframesFrames, StyleKeyframesUse, StyleMacro, StyleRef, StyleRefProjection, StyleResult, StyleStoredVariant, StyleVariant, StyleVariantKey, StyleVariantObject, StyleVariantValue, StyleViewTransition, StyleViewTransitionDefinition, StyleViewTransitionUse, VariantProps, createStyleMacro } from "../index-uw1R9t_P.js";
2
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 StyleStoredVariant, type StyleVariant, type StyleVariantKey, type StyleVariantObject, type StyleVariantValue, type StyleViewTransition, type StyleViewTransitionDefinition, type StyleViewTransitionUse, type VariantProps, createStyleMacro };
@@ -1 +1 @@
1
- export { createStyleMacro } from "../style-BE8vuLiO.js";
1
+ export { createStyleMacro } from "../style-Bzuux32Y.js";
@@ -0,0 +1,47 @@
1
+ // src/macro/style.ts
2
+ function uncompiledMacroError(name) {
3
+ return /* @__PURE__ */ new Error(`Stillwind ${name}() is a compile-time macro and cannot run uncompiled. Configure the Stillwind build integration (placed before JSX transforms) or test runner plugin. See node_modules/stillwind/docs/integrations.md.`);
4
+ }
5
+ /**
6
+ * Internal use only. Builds the placeholder exported by each framework entrypoint.
7
+ * The compiler replaces supported macro calls before the application runs.
8
+ *
9
+ * @returns A fresh callable object with declaration and scope methods. Calling the
10
+ * object or any of these methods throws an Error about missing integration. Creating
11
+ * the placeholder itself does not execute any macro or generate CSS.
12
+ *
13
+ * @internal
14
+ */
15
+ function createStyleMacro() {
16
+ return Object.assign(() => {
17
+ throw uncompiledMacroError("style");
18
+ }, {
19
+ anchorScope() {
20
+ throw uncompiledMacroError("style.anchorScope");
21
+ },
22
+ ref() {
23
+ throw uncompiledMacroError("style.ref");
24
+ },
25
+ keyframes() {
26
+ throw uncompiledMacroError("style.keyframes");
27
+ },
28
+ viewTransition() {
29
+ throw uncompiledMacroError("style.viewTransition");
30
+ },
31
+ when() {
32
+ throw uncompiledMacroError("style.when");
33
+ },
34
+ cva() {
35
+ throw uncompiledMacroError("style.cva");
36
+ },
37
+ media() {
38
+ throw uncompiledMacroError("style.media");
39
+ },
40
+ css() {
41
+ throw uncompiledMacroError("style.css");
42
+ }
43
+ });
44
+ }
45
+ export { createStyleMacro };
46
+
47
+ //# sourceMappingURL=style-Bzuux32Y.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"style-BE8vuLiO.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, StyleVariantKey } from \"./refs.ts\";\nimport type { StyleViewTransition, StyleViewTransitionDefinition } from \"./view-transition.ts\";\nimport type { StyleStoredVariant } from \"./when.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 * Stores variant sequences in a binding initializer for later use in `style()`.\n *\n * Use the result as a computed variant key, as a variant segment followed by `:` in\n * a utility template, or in the argument of another `style.when()`. Each use means\n * the same as writing the sequence directly at that position, so the sequence obeys\n * the same rules as a variant key written in `style()`. A use must resolve to one\n * declaration. The compiler replaces the call with `undefined`.\n *\n * With several arguments, the stored variant matches when any argument matches. A\n * use means the same as writing the use once for each argument, in argument order.\n *\n * @param variants - Static variant sequences. Each one is a string literal such as\n * `\"hover:md\"`, a ref variant call or tag with optional `.in()` calls, a container\n * variant, another stored variant, or a template literal whose substitutions are\n * complete variant segments. The final `:` is optional. Invalid sequences produce\n * lint findings.\n * @returns A stored variant that may be stored, exported, imported, and passed.\n */\n when(\n ...variants: [string | StyleVariantKey, ...(string | StyleVariantKey)[]]\n ): StyleStoredVariant;\n\n /**\n * Internal use only. The checker supplies identity for a stored variant declaration.\n * Application code must use `when(...variants)` without the identity argument.\n *\n * @internal\n */\n when<const Id extends string>(\n ...variants: [\n string | StyleVariantKey,\n ...(string | StyleVariantKey)[],\n StillwindDeclarationIdentity<Id>,\n ]\n ): StyleStoredVariant<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 when(): never {\n throw new Error(\"Stillwind style.when() 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":";;;;;;;;;;;AAgTA,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,OAAc;GACZ,MAAM,IAAI,MAAM,iDAAiD;EACnE;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"}
1
+ {"version":3,"file":"style-Bzuux32Y.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, StyleVariantKey } from \"./refs.ts\";\nimport type { StyleViewTransition, StyleViewTransitionDefinition } from \"./view-transition.ts\";\nimport type { StyleStoredVariant } from \"./when.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 * 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 * 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 * 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 * Stores variant sequences in a binding initializer for later use in `style()`.\n *\n * Use the result as a computed variant key, as a variant segment followed by `:` in\n * a utility template, or in the argument of another `style.when()`. Each use means\n * the same as writing the sequence directly at that position, so the sequence obeys\n * the same rules as a variant key written in `style()`. A use must resolve to one\n * declaration. The compiler replaces the call with `undefined`.\n *\n * With several arguments, the stored variant matches when any argument matches. A\n * use means the same as writing the use once for each argument, in argument order.\n *\n * @param variants - Static variant sequences. Each one is a string literal such as\n * `\"hover:md\"`, a ref variant call or tag with optional `.in()` calls, a container\n * variant, another stored variant, or a template literal whose substitutions are\n * complete variant segments. The final `:` is optional. Invalid sequences produce\n * lint findings.\n * @returns A stored variant that may be stored, exported, imported, and passed.\n */\n when(\n ...variants: [string | StyleVariantKey, ...(string | StyleVariantKey)[]]\n ): StyleStoredVariant;\n\n /**\n * Internal use only. The checker supplies identity for a stored variant declaration.\n * Application code must use `when(...variants)` without the identity argument.\n *\n * @internal\n */\n when<const Id extends string>(\n ...variants: [\n string | StyleVariantKey,\n ...(string | StyleVariantKey)[],\n StillwindDeclarationIdentity<Id>,\n ]\n ): StyleStoredVariant<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\nfunction uncompiledMacroError(name: string): Error {\n return new Error(\n `Stillwind ${name}() is a compile-time macro and cannot run uncompiled. ` +\n \"Configure the Stillwind build integration (placed before JSX transforms) or test runner plugin. \" +\n \"See node_modules/stillwind/docs/integrations.md.\",\n );\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 uncompiledMacroError(\"style\");\n },\n {\n anchorScope(): never {\n throw uncompiledMacroError(\"style.anchorScope\");\n },\n ref(): never {\n throw uncompiledMacroError(\"style.ref\");\n },\n keyframes(): never {\n throw uncompiledMacroError(\"style.keyframes\");\n },\n viewTransition(): never {\n throw uncompiledMacroError(\"style.viewTransition\");\n },\n when(): never {\n throw uncompiledMacroError(\"style.when\");\n },\n cva(): never {\n throw uncompiledMacroError(\"style.cva\");\n },\n media(): never {\n throw uncompiledMacroError(\"style.media\");\n },\n css(): never {\n throw uncompiledMacroError(\"style.css\");\n },\n },\n );\n}\n"],"mappings":";AAsSA,SAAS,qBAAqB,MAAqB;CACjD,uBAAO,IAAI,MACT,aAAa,KAAK,uMAGpB;AACF;;;;;;;;;;;AAYA,SAAgB,mBAA6C;CAC3D,OAAO,OAAO,aACC;EACX,MAAM,qBAAqB,OAAO;CACpC,GACA;EACE,cAAqB;GACnB,MAAM,qBAAqB,mBAAmB;EAChD;EACA,MAAa;GACX,MAAM,qBAAqB,WAAW;EACxC;EACA,YAAmB;GACjB,MAAM,qBAAqB,iBAAiB;EAC9C;EACA,iBAAwB;GACtB,MAAM,qBAAqB,sBAAsB;EACnD;EACA,OAAc;GACZ,MAAM,qBAAqB,YAAY;EACzC;EACA,MAAa;GACX,MAAM,qBAAqB,WAAW;EACxC;EACA,QAAe;GACb,MAAM,qBAAqB,aAAa;EAC1C;EACA,MAAa;GACX,MAAM,qBAAqB,WAAW;EACxC;CACF,CACF;AACF"}
package/docs/agents.md CHANGED
@@ -27,6 +27,7 @@ it migrates existing styles, it explains the options and asks how far to go.
27
27
  | Path | Content |
28
28
  | ------------------------------ | ------------------------------------------------------------ |
29
29
  | `docs/` | This documentation as Markdown |
30
+ | `docs/llms.txt` | Index of every bundled Markdown page with relative paths |
30
31
  | `skills/setup-stillwind/` | A skill that sets up Stillwind in a project without styles |
31
32
  | `skills/migrate-to-stillwind/` | A skill that migrates Tailwind CSS or other CSS to Stillwind |
32
33
  | `skills/stillwind/` | A skill for everyday work in a project that uses Stillwind |
@@ -27,7 +27,7 @@ inside a style rule or a utility definition. Whitespace separates the utilities.
27
27
  ### Generated stylesheet without preflight
28
28
 
29
29
  ```css
30
- /*! stillwind v0.11.0 | MIT License | https://stillwind.dev */
30
+ /*! stillwind v0.12.0 | MIT License | https://stillwind.dev */
31
31
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
32
32
  @layer properties, theme, base, components, utilities;
33
33
 
@@ -54,7 +54,7 @@ export const link = {className:"sw_77cu9"};
54
54
  ### Generated stylesheet without preflight
55
55
 
56
56
  ```css
57
- /*! stillwind v0.11.0 | MIT License | https://stillwind.dev */
57
+ /*! stillwind v0.12.0 | MIT License | https://stillwind.dev */
58
58
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
59
59
  @layer properties, theme, base, components, utilities;
60
60
 
@@ -42,7 +42,7 @@ export const link = {className:"sw_77qpw"};
42
42
  ### Generated stylesheet without preflight
43
43
 
44
44
  ```css
45
- /*! stillwind v0.11.0 | MIT License | https://stillwind.dev */
45
+ /*! stillwind v0.12.0 | MIT License | https://stillwind.dev */
46
46
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
47
47
  @layer properties, theme, base, components, utilities;
48
48
 
@@ -52,7 +52,7 @@ export const icon = {className:"sw_wou1b"};
52
52
  ### Generated stylesheet without preflight
53
53
 
54
54
  ```css
55
- /*! stillwind v0.11.0 | MIT License | https://stillwind.dev */
55
+ /*! stillwind v0.12.0 | MIT License | https://stillwind.dev */
56
56
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
57
57
  @layer properties, theme, base, components, utilities;
58
58
 
@@ -62,7 +62,7 @@ export const panel = {className:"sw_fd678"};
62
62
  ### Generated stylesheet without preflight
63
63
 
64
64
  ```css
65
- /*! stillwind v0.11.0 | MIT License | https://stillwind.dev */
65
+ /*! stillwind v0.12.0 | MIT License | https://stillwind.dev */
66
66
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
67
67
  @layer properties, theme, base, components, utilities;
68
68
 
@@ -54,7 +54,7 @@ export const icon = {className:"sw_wou1b"};
54
54
  ### Generated stylesheet without preflight
55
55
 
56
56
  ```css
57
- /*! stillwind v0.11.0 | MIT License | https://stillwind.dev */
57
+ /*! stillwind v0.12.0 | MIT License | https://stillwind.dev */
58
58
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
59
59
  @layer properties, theme, base, components, utilities;
60
60
 
@@ -45,7 +45,7 @@ export const accepted = {className:"sw_a2es4"};
45
45
  ### Generated stylesheet without preflight
46
46
 
47
47
  ```css
48
- /*! stillwind v0.11.0 | MIT License | https://stillwind.dev */
48
+ /*! stillwind v0.12.0 | MIT License | https://stillwind.dev */
49
49
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
50
50
  @layer properties, theme, base, components, utilities;
51
51
 
@@ -48,7 +48,7 @@ export const replaced = {className:"sw_vtxcq"};
48
48
  ### Generated stylesheet without preflight
49
49
 
50
50
  ```css
51
- /*! stillwind v0.11.0 | MIT License | https://stillwind.dev */
51
+ /*! stillwind v0.12.0 | MIT License | https://stillwind.dev */
52
52
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
53
53
  @layer properties, theme, base, components, utilities;
54
54
 
@@ -42,7 +42,7 @@ export const toolbar = {};
42
42
  ### Generated stylesheet without preflight
43
43
 
44
44
  ```css
45
- /*! stillwind v0.11.0 | MIT License | https://stillwind.dev */
45
+ /*! stillwind v0.12.0 | MIT License | https://stillwind.dev */
46
46
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
47
47
  @layer properties, theme, base, components, utilities;
48
48
  ```