foldkit-mixins 0.9.0 → 0.11.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 (48) hide show
  1. package/README.md +15 -4
  2. package/dist/app.d.mts +5 -5
  3. package/dist/app.d.mts.map +1 -1
  4. package/dist/app.mjs +1 -1
  5. package/dist/{core-CUw_n1Nd.d.mts → core-Cq9PThXv.d.mts} +9 -11
  6. package/dist/core-Cq9PThXv.d.mts.map +1 -0
  7. package/dist/defaults.d.mts +1 -1
  8. package/dist/foundations.d.mts.map +1 -1
  9. package/dist/index.d.mts +5 -5
  10. package/dist/index.d.mts.map +1 -1
  11. package/dist/index.mjs +1 -1
  12. package/dist/layers.d.mts +4 -4
  13. package/dist/layers.d.mts.map +1 -1
  14. package/dist/layers.mjs +1 -2
  15. package/dist/layout.d.mts +11 -11
  16. package/dist/layout.d.mts.map +1 -1
  17. package/dist/{oklch-CLKxbFpD.d.mts → oklch-CDSDQNWl.d.mts} +15 -1
  18. package/dist/oklch-CDSDQNWl.d.mts.map +1 -0
  19. package/dist/prose.d.mts +2 -2
  20. package/dist/prose.d.mts.map +1 -1
  21. package/dist/{root-xyWS6geK.d.mts → root-DCb6aqif.d.mts} +3 -3
  22. package/dist/root-DCb6aqif.d.mts.map +1 -0
  23. package/dist/{slotView-BtIF2pHo.d.mts → slotView-8_CHU9i7.d.mts} +4 -6
  24. package/dist/slotView-8_CHU9i7.d.mts.map +1 -0
  25. package/dist/{style-CmHD4Ul3.mjs → style-BAYqZ3kF.mjs} +5 -2
  26. package/dist/style-BAYqZ3kF.mjs.map +1 -0
  27. package/dist/{style-CtCqaL0l.d.mts → style-moq41T8O.d.mts} +113 -42
  28. package/dist/style-moq41T8O.d.mts.map +1 -0
  29. package/dist/styleValue-DEsUAC4v.d.mts +145 -0
  30. package/dist/styleValue-DEsUAC4v.d.mts.map +1 -0
  31. package/dist/testing.d.mts +84 -22
  32. package/dist/testing.d.mts.map +1 -1
  33. package/dist/theme.d.mts +39 -133
  34. package/dist/theme.d.mts.map +1 -1
  35. package/dist/theme.mjs +69 -7
  36. package/dist/theme.mjs.map +1 -1
  37. package/dist/tokens-BaLmrfbp.d.mts.map +1 -1
  38. package/dist/utilities.d.mts +18 -17
  39. package/dist/utilities.d.mts.map +1 -1
  40. package/package.json +9 -9
  41. package/dist/core-CUw_n1Nd.d.mts.map +0 -1
  42. package/dist/oklch-CLKxbFpD.d.mts.map +0 -1
  43. package/dist/root-xyWS6geK.d.mts.map +0 -1
  44. package/dist/slotView-BtIF2pHo.d.mts.map +0 -1
  45. package/dist/style-CmHD4Ul3.mjs.map +0 -1
  46. package/dist/style-CtCqaL0l.d.mts.map +0 -1
  47. package/dist/styleValue-BavTe9MZ.d.mts +0 -72
  48. package/dist/styleValue-BavTe9MZ.d.mts.map +0 -1
package/README.md CHANGED
@@ -276,6 +276,7 @@ one.
276
276
  | `Theme.define` / `Theme.ref(theme)` / `variables` | typed tokens; every token as a typed `var(--fk-group-name)` reference (`Theme.ref(theme).surface.base`), built once per theme; the tokens as inline custom properties |
277
277
  | `Theme.lightDark(light, dark)` / `Theme.compose(base, over)` | a token that follows the color scheme with CSS `light-dark()`; themes merged at definition time |
278
278
  | `Theme.root(theme, { omit?, colorScheme? })` / `Theme.scoped(theme, selector, overrides)` | from `foldkit-mixins/theme`: tokens as `:root` custom properties, or as overrides under a selector; unlayered global pieces for `Style.stylesheet` |
279
+ | `Theme.schemeScript(key?)` / `Theme.chooseScheme(scheme, key?)` / `Theme.currentScheme()` | from `foldkit-mixins/theme`: a head script applying a kept `light` or `dark` before the first paint; a Command's Effect that applies and keeps a choice; the scheme applied now |
279
280
  | `Theme.tokens` / `Theme.oklch(knobs)` / `Theme.breakpointWidths(theme)` | from `foldkit-mixins/theme`: the shipped spacing, type, radius, motion, border, shadow and breakpoint scales; a whole palette derived from an accent and a few knobs (including the shadow color, denser in a dark scheme); the breakpoints as pixel widths for `foldkit-primitives/media` |
280
281
  | `Layers.define(names)` / `Layers.standard` | cascade layers as a value: `names`, `declare` (the `@layer …;` statement as a global piece), `in(name, piece)` (a piece's unlayered rules and global CSS inside that layer; what is already layered keeps its layer; a piece wholly in another layer is `style:relayered`) and `layer(name)` (the placement `Style.forSlots(S)(pieces, { layer })` takes, so a slot style is compiled in that layer). A name outside the order is a type error. `standard` is `reset, tokens, theme, defaults, components, layouts, variants, utilities, app`; also under `foldkit-mixins/layers` |
281
282
  | `Style.stylesheet(...)` | one `<style>` block from `NamedStyle`s and bare `StyleValue`s: the layer order hoisted first (two different orders is `style:conflicting-layer-order`), then global chunks, then scoped classes, deduplicated. Once an order is declared, a rule outside it is `style:unlayered-rule`, since it would beat every layer; keyframes, font faces and `@property` pass |
@@ -346,7 +347,12 @@ text on that fill (near white on a mid accent), and `ink` is text in the family'
346
347
  base surface, dark enough to read in a light scheme and light enough in a dark one. Colored text
347
348
  is `ink`, never `default`. The surfaces are the base at a few lightnesses with its chroma, so a
348
349
  panel and a sidebar read as the page's own color; `bedrock` is the deepest of them in both
349
- schemes, and the focus ring, `outline.focus`, is the accent. `Theme.tokens` is the
350
+ schemes, and the focus ring, `outline.focus`, is the accent. The `syntax` group colors code by
351
+ the kinds a tokenizer names (`syntax-keyword` is `--fk-syntax-keyword`, as
352
+ `foldkit-richtext-code` and its Shiki adapter name them): `keyword`, `function` and `type` in
353
+ the accent, secondary and tertiary hues, `string`, `number` and `property` in the success,
354
+ warning and info hues, all at one lightness per scheme and the `syntaxChroma` knob's chroma, and
355
+ `operator`, `punctuation` and `comment` in the text's own grey. `Theme.tokens` is the
350
356
  non-color scales, with `space` and `radius` multiplied by the `density` and `radius-factor` knobs.
351
357
 
352
358
  A theme reaches the page as pieces, and the page chooses the layers:
@@ -384,9 +390,14 @@ under new class names that no view attaches.
384
390
 
385
391
  `omit` leaves out the tokens another theme already declared, so the scales go out once in
386
392
  `tokens` and the palette once in `theme`. Which theme is active is a Model fact: the view writes
387
- `data-theme` on the root, and `Theme.scoped` only says what the value means. A scheme the user
388
- picks works the same way with a `data-color-scheme` selector and a `color-scheme` override; a
389
- scheme the browser picks needs nothing, because the `light-dark()` values follow it. The palette
393
+ `data-theme` on the root, and `Theme.scoped` only says what the value means. A scheme the browser
394
+ picks needs nothing, because the `light-dark()` values follow it. A scheme the user picks is a
395
+ `color-scheme` override on the root, which must be in place before the first paint or a reader
396
+ who chose dark sees one light frame: `Theme.schemeScript(key?)` is the text of a head `<script>`
397
+ that applies the one kept in `localStorage`, `Theme.chooseScheme(scheme, key?)` (`'light'`,
398
+ `'dark'` or `'system'`) is a Command's Effect that applies and keeps a choice, and
399
+ `Theme.currentScheme()` reads back what is applied, for the Model once the browser takes the page
400
+ over (the docs site does it in its SSR plan's `boot`). The palette
390
401
  needs relative color syntax and `light-dark()` (Chrome 123, Firefox 128, Safari 17.5).
391
402
 
392
403
  `Style.responsive(Theme.tokens.breakpoint, { md: { … } })` and
package/dist/app.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { o as StyleValue } from "./styleValue-BavTe9MZ.mjs";
1
+ import { i as StyleValue } from "./styleValue-DEsUAC4v.mjs";
2
2
  import { standard } from "./layers.mjs";
3
- import { a as NamedStyle, c as StyleOptions, l as StylePieces, n as Declared, r as DeclaredPieces } from "./style-CtCqaL0l.mjs";
4
- import { a as compose, r as ThemeTokens, t as Refs } from "./core-CUw_n1Nd.mjs";
5
- import { n as RootOptions } from "./root-xyWS6geK.mjs";
3
+ import { a as NamedStyle, l as StyleOptions, n as Declared, r as DeclaredPieces, u as StylePieces } from "./style-moq41T8O.mjs";
4
+ import { a as compose, r as ThemeTokens, t as Refs } from "./core-Cq9PThXv.mjs";
5
+ import { n as RootOptions } from "./root-DCb6aqif.mjs";
6
6
  import { t as Tokens } from "./tokens-BaLmrfbp.mjs";
7
7
  //#region src/app.d.ts
8
8
  export interface AppStyleOptions<Palette extends ThemeTokens> {
@@ -40,7 +40,7 @@ export interface AppStyle<Palette extends ThemeTokens> {
40
40
  */
41
41
  export declare const make: <Palette extends ThemeTokens>(options: AppStyleOptions<Palette>) => AppStyle<Palette>;
42
42
  export declare const AppStyle: {
43
- readonly make: <Palette extends ThemeTokens>(options: AppStyleOptions<Palette>) => AppStyle<Palette>;
43
+ readonly make: typeof make;
44
44
  };
45
45
  //#endregion
46
46
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;;;;iBAwBiB,gBAAgB,gBAAgB;;WAEtC,SAAS;;WAET,cAAc,YAAY;;;;;WAK1B,SAAS,cAAc;;;YAItB,qBAAqB,KAAK;iBAErB,SAAS,gBAAgB;;WAE/B,OAAO,kBAAkB,QAAc,QAAQ;;WAE/C,GAAG,KAAK,kBAAkB,QAAc,QAAQ;;WAEhD,UAAU;;WAEV,QAAQ,GAAG,QAAQ,eAAe,IAAI,UAAU,uBAAuB,SAAS;;WAEhF,WAAW,OAClB,UAAU,WACN,QAAQ,YAAY,QAAQ,UAAU,uBAAuB,WAAW;;WAErE;;;;;;;;qBAWE,OAAQ,gBAAgB,aACnC,SAAS,gBAAgB,aACxB,SAAS;qBAuBC;WAzBQ,OAAA,gBAAgB,aAAW,SACrC,gBAAgB,aACxB,SAAS"}
1
+ {"version":3,"file":"app.d.mts","names":["composeThemes"],"sources":["../src/app.ts"],"mappings":";;;;;;;iBAwBiB,gBAAgB,gBAAgB;;WAEtC,SAAS;;WAET,cAAc,YAAY;;;;;WAK1B,SAAS,cAAc;;;YAItB,qBAAqB,KAAK;iBAErB,SAAS,gBAAgB;;WAE/B,OAAO,kBAAkBA,QAAc,QAAQ;;WAE/C,GAAG,KAAK,kBAAkBA,QAAc,QAAQ;;WAEhD,UAAU;;WAEV,QAAQ,GAAG,QAAQ,eAAe,IAAI,UAAU,uBAAuB,SAAS;;WAEhF,WAAW,OAClB,UAAU,WACN,QAAQ,YAAY,QAAQ,UAAU,uBAAuB,WAAW;;WAErE;;;;;;;;qBAWE,OAAQ,gBAAgB,aAAW,SACrC,gBAAgB,aACxB,SAAS;qBAuBC;wBAAA"}
package/dist/app.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { i as stylesheet, n as forSlots, r as slots } from "./style-CmHD4Ul3.mjs";
1
+ import { i as stylesheet, n as forSlots, r as slots } from "./style-BAYqZ3kF.mjs";
2
2
  import { i as compose } from "./styleValue-Cj4YjgVB.mjs";
3
3
  import { r as standard } from "./layers-keV38soP.mjs";
4
4
  import { o as ref, r as compose$1 } from "./core-IMVYU8JN.mjs";
@@ -1,7 +1,5 @@
1
- import { o as StyleValue } from "./styleValue-BavTe9MZ.mjs";
2
- declare namespace core_d_exports {
3
- export { Refs, Theme, ThemeTokens, VAR_PREFIX, compose, define, lightDark, ref, variables };
4
- }
1
+ import { i as StyleValue } from "./styleValue-DEsUAC4v.mjs";
2
+ //#region src/theme/core.d.ts
5
3
  type ThemeTokens = {
6
4
  readonly [group: string]: {
7
5
  readonly [name: string]: string;
@@ -29,12 +27,12 @@ type Merge<A, B> = { readonly [G in keyof A | keyof B]: G extends keyof B ? G ex
29
27
  /** Themes merged at definition time, later tokens winning within a group. */
30
28
  declare const compose: <A extends ThemeTokens, B extends ThemeTokens>(base: A, over: B) => Readonly<Merge<A, B>>;
31
29
  declare const Theme: {
32
- readonly define: <T extends ThemeTokens>(tokens: T) => Readonly<T>;
33
- readonly ref: <T extends ThemeTokens>(theme: T) => Refs<T>;
34
- readonly variables: <T extends ThemeTokens>(theme: T) => StyleValue;
35
- readonly lightDark: (light: string, dark: string) => string;
36
- readonly compose: <A extends ThemeTokens, B extends ThemeTokens>(base: A, over: B) => Readonly<Merge<A, B>>;
30
+ readonly define: typeof define;
31
+ readonly ref: typeof ref;
32
+ readonly variables: typeof variables;
33
+ readonly lightDark: typeof lightDark;
34
+ readonly compose: typeof compose;
37
35
  };
38
36
  //#endregion
39
- export { compose as a, lightDark as c, VAR_PREFIX as i, ref as l, Theme as n, core_d_exports as o, ThemeTokens as r, define as s, Refs as t, variables as u };
40
- //# sourceMappingURL=core-CUw_n1Nd.d.mts.map
37
+ export { compose as a, ref as c, VAR_PREFIX as i, variables as l, Theme as n, define as o, ThemeTokens as r, lightDark as s, Refs as t };
38
+ //# sourceMappingURL=core-Cq9PThXv.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-Cq9PThXv.d.mts","names":[],"sources":["../src/theme/core.ts"],"mappings":";;KAOY;YACA;cAA4B;;;KAG5B,MAAM,UAAU,cAAc,eAAe;cAE5C;cAEA,SAAU,UAAU,aAAW,QAAU,MAAI,SAAS;;KAQvD,KAAK,UAAU,2BACf,WAAW,yBAAyB,WAAW,EAAE;;;;;;cAUhD,MAAO,UAAU,aAAW,OAAS,MAAI,KAAK;cAmB9C,YAAa,UAAU,aAAW,OAAS,MAAI;;;;;;cAe/C,YAAS,eAAiB;KAElC,MAAM,GAAG,iBACF,WAAW,UAAU,IAAI,gBAAgB,IAC/C,gBAAgB,IACd,EAAE,KAAK,EAAE,KACT,EAAE,KACJ,gBAAgB,IACd,EAAE;;cAKG,UAAW,UAAU,aAAa,UAAU,aAAW,MAC5D,GAAC,MACD,MACL,SAAS,MAAM,GAAG;cAUR"}
@@ -1,4 +1,4 @@
1
- import { o as StyleValue } from "./styleValue-BavTe9MZ.mjs";
1
+ import { i as StyleValue } from "./styleValue-DEsUAC4v.mjs";
2
2
  //#region src/defaults.d.ts
3
3
  /** Box model, margins, media, form-control fonts: what every page assumes. */
4
4
  export declare const reset: StyleValue;
@@ -1 +1 @@
1
- {"version":3,"file":"foundations.d.mts","names":[],"sources":["../src/foundations.ts"],"mappings":";;;;;;;qBA4Ca,kBAAyB;;WAE3B;;WAEA;;WAEA;MACP;;;;;;qBA4BS,cAAe;;WAEjB;;WAEA;;WAEA;MACP"}
1
+ {"version":3,"file":"foundations.d.mts","names":[],"sources":["../src/foundations.ts"],"mappings":";;;;;;;qBA4Ca,kBAAe;;WAEjB;;WAEA;;WAEA;MACP;;;;;;qBA4BS,cAAW;;WAEb;;WAEA;;WAEA;MACP"}
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { t as SlotItem } from "./slotItem-D6_m6IqP.mjs";
2
- import { a as StyleCondition, i as Piece, o as StyleValue, s as StyleRule, t as Declarations } from "./styleValue-BavTe9MZ.mjs";
2
+ import { C as StyleRule, i as StyleValue, n as Piece, r as StyleCondition, t as Declarations } from "./styleValue-DEsUAC4v.mjs";
3
3
  import { Layers, Placement } from "./layers.mjs";
4
- import { $ as metadataToken_d_exports, A as requirement_d_exports, B as Contribution, D as UnnamedSlot, E as SlotProtection, F as AnyMixin, G as StaticContribution, H as DynamicContribution, I as Mixin, K as StaticContributionMap, L as MixinFor, M as event_d_exports, N as AttrToken, O as slot_d_exports, P as attr_d_exports, Q as capability_d_exports, R as StaticMixin, T as SlotCapability, U as InputContribution, V as ContributionContext, W as SlotContribution, Z as Satisfies, _ as Any$1, a as SlotViewRender, b as EventName, c as slotView_d_exports, d as resolver_d_exports, f as BehaviorSlotOptions, g as behavior_d_exports, h as SlotRequirements, j as EventToken, k as RequirementToken, l as ResolveOptions, m as NamedBehavior, n as SlotBuilder, o as SlotViewTransform, p as BehaviorSpec, q as Any, r as SlotBuilders, s as SlotViewTransformFor, t as MessageSlotView, u as SlotAttributes, y as AttributeName, z as mixin_d_exports } from "./slotView-BtIF2pHo.mjs";
5
- import { a as NamedStyle, c as StyleOptions, d as StylesheetSource, f as Contract, i as DeclaredSlots, l as StylePieces, n as Declared, o as SlotPiece, p as slots_d_exports, r as DeclaredPieces, s as Style, t as ContainerSlot, u as StyleValues } from "./style-CtCqaL0l.mjs";
6
- import { n as Theme, r as ThemeTokens, t as Refs } from "./core-CUw_n1Nd.mjs";
4
+ import { $ as metadataToken_d_exports, A as requirement_d_exports, B as Contribution, C as RequirementName, D as UnnamedSlot, E as SlotProtection, F as AnyMixin, G as StaticContribution, H as DynamicContribution, I as Mixin, J as Capability, K as StaticContributionMap, L as MixinFor, M as event_d_exports, N as AttrToken, O as slot_d_exports, P as attr_d_exports, Q as capability_d_exports, R as StaticMixin, T as SlotCapability, U as InputContribution, V as ContributionContext, W as SlotContribution, Z as Satisfies, _ as Any$1, a as SlotViewRender, b as EventName, c as slotView_d_exports, d as resolver_d_exports, f as BehaviorSlotOptions, g as behavior_d_exports, h as SlotRequirements, i as SlotView, j as EventToken, k as RequirementToken, l as ResolveOptions, m as NamedBehavior, n as SlotBuilder, o as SlotViewTransform, p as BehaviorSpec, q as Any, r as SlotBuilders, s as SlotViewTransformFor, t as MessageSlotView, u as SlotAttributes, x as HiddenOf, y as AttributeName, z as mixin_d_exports } from "./slotView-8_CHU9i7.mjs";
5
+ import { a as NamedStyle, c as Style, d as StyleValues, f as StylesheetSource, i as DeclaredSlots, l as StyleOptions, m as slots_d_exports, n as Declared, o as SlotPiece, p as Contract, r as DeclaredPieces, s as SlotRecipe, t as ContainerSlot, u as StylePieces } from "./style-moq41T8O.mjs";
6
+ import { n as Theme, r as ThemeTokens, t as Refs } from "./core-Cq9PThXv.mjs";
7
7
  import { Attribute, KeyboardModifiers } from "foldkit/html";
8
8
  declare namespace diagnostics_d_exports {
9
9
  export { Diagnostic, DiagnosticCode, DiagnosticError };
@@ -200,5 +200,5 @@ declare const sibling: (selector: string) => string;
200
200
  /** Any later sibling, for `Style.nest`. */
201
201
  declare const siblings: (selector: string) => string;
202
202
  //#endregion
203
- export { a11y_d_exports as A11y, type A11yDiagnostic, type A11yDiagnosticCode, type Pattern as A11yPattern, type SlotRequirement as A11yRequirement, type Any as AnyCapability, type AnyMixin, attr_d_exports as Attr, type AttrToken, attributes_d_exports as Attributes, behavior_d_exports as Behavior, type BehaviorSlotOptions, type BehaviorSpec, index_d_exports as Behaviors, capability_d_exports as Capability, type ContainerSlot, type Contribution, type ContributionContext, type Declarations, type Declared, type DeclaredPieces, type DeclaredSlots, type Diagnostic, type DiagnosticCode, diagnostics_d_exports as Diagnostics, type DynamicContribution, event_d_exports as Event, type EventToken, type InputContribution, Layers, type Layers as LayersValue, type MessageSlotView, metadataToken_d_exports as MetadataToken, mixin_d_exports as Mixin, type MixinFor, type Mixin as MixinValue, type NamedBehavior, type NamedStyle, type Piece, type Placement, type Refs, requirement_d_exports as Requirement, type RequirementToken, type ResolveOptions, resolver_d_exports as Resolver, type Satisfies, selector_d_exports as Selector, slot_d_exports as Slot, type SlotAttributes, type SlotBuilder, type SlotBuilders, type SlotContribution, type SlotItem, type SlotPiece, type SlotProtection, type SlotRequirements, slotView_d_exports as SlotView, type SlotViewRender, type SlotViewTransform, type SlotViewTransformFor, slots_d_exports as Slots, type Contract as SlotsContract, type StaticContribution, type StaticContributionMap, type StaticMixin, Style, type StyleCondition, type StyleOptions, type StylePieces, type StyleRule, type StyleValue, type StyleValues, type StylesheetSource, Theme, type Theme as ThemeValue, type ThemeTokens, type UnnamedSlot };
203
+ export { a11y_d_exports as A11y, type A11yDiagnostic, type A11yDiagnosticCode, type Pattern as A11yPattern, type SlotRequirement as A11yRequirement, type Any as AnyCapability, type AnyMixin, attr_d_exports as Attr, type AttrToken, type AttributeName, attributes_d_exports as Attributes, behavior_d_exports as Behavior, type BehaviorSlotOptions, type BehaviorSpec, index_d_exports as Behaviors, capability_d_exports as Capability, type Capability as CapabilityShape, type ContainerSlot, type Contribution, type ContributionContext, type Declarations, type Declared, type DeclaredPieces, type DeclaredSlots, type Diagnostic, type DiagnosticCode, diagnostics_d_exports as Diagnostics, type DynamicContribution, event_d_exports as Event, type EventName, type EventToken, type HiddenOf, type InputContribution, Layers, type Layers as LayersValue, type MessageSlotView, metadataToken_d_exports as MetadataToken, mixin_d_exports as Mixin, type MixinFor, type Mixin as MixinValue, type NamedBehavior, type NamedStyle, type Piece, type Placement, type Refs, requirement_d_exports as Requirement, type RequirementName, type RequirementToken, type ResolveOptions, resolver_d_exports as Resolver, type Satisfies, selector_d_exports as Selector, slot_d_exports as Slot, type SlotAttributes, type SlotBuilder, type SlotBuilders, type SlotContribution, type SlotItem, type SlotPiece, type SlotProtection, type SlotRecipe, type SlotRequirements, slotView_d_exports as SlotView, type SlotViewRender, type SlotView as SlotViewShape, type SlotViewTransform, type SlotViewTransformFor, slots_d_exports as Slots, type Contract as SlotsContract, type StaticContribution, type StaticContributionMap, type StaticMixin, Style, type StyleCondition, type StyleOptions, type StylePieces, type StyleRule, type StyleValue, type StyleValues, type StylesheetSource, Theme, type Theme as ThemeValue, type ThemeTokens, type UnnamedSlot };
204
204
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/diagnostics.ts","../src/a11y.ts","../src/attributes.ts","../src/behaviors/collection.ts","../src/behaviors/disclosure.ts","../src/behaviors/field-association.ts","../src/behaviors/spin-value.ts","../src/behaviors/toggle-state.ts","../src/behaviors/index.ts","../src/selector.ts"],"mappings":";;;;;;;;;;;;;;;;KAMY;UA4BK;WACN;WACA,MAAM;WACN;WACA;WACA;WACA,UAAU,SAAS;;cAGjB,wBAAwB;WAC1B,YAAY;EAET,YAAA,YAAY;;;;;KCjCd;UAOK,uBAAuB;WAC7B;WACA,MAAM;;UAGA;WACN,aAAa;WACb,SAAS,cAAc;WACvB,aAAa,cAAc;;WAE3B;;KAGC,eAAe,SAAS,eAAe;cAEtC;UAEI,QAAQ,aAAa,eAAe;YACzC;aAA2B,cAAc;;WAC1C,cAAc;;cAGZ,gBAAiB,aAAa,cAAc,MAAM,SAAO,QAAQ;cAyCjE,WACX,SAAS,SACT;YAAmB,eAAe;MACjC,cAAc;;;;;KC5EL,MAAM;;KAGN,GAAG,SAAS,UAAU,OAAO,QAAQ,UAAU;WAAqB,MAAM;;;cAGzE,QAAS,SAAS,WAAW,eAAe,qBAAmB;;cAS/D,OAAQ,SAAS,UAAU,KACtC,YAAY,eAAe,UAC3B,KAAK,MACJ,GAAG,SAAS;;cAGF,SAAU,SAAS,UAAU,KACxC,YAAY,eAAe,UAC3B,KAAK,MACJ,cAAc,GAAG,SAAS;;;;UCvBZ,MAAM;WACZ;;WAEA,KAAK;WACL,KAAK,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AAc;;cAItB,MAAO;;cAGP,QAAS,WAAW;;cAGpB,QAAS;;cAGT,aAAc;;cAGd,UAAW;;cAGX,WAAY"}
1
+ {"version":3,"file":"index.d.mts","names":["AnySlot","behavior","Behavior.NamedBehavior","Options","behavior","Behavior.NamedBehavior","Options","behavior","Behavior.NamedBehavior","Options","behavior","Behavior.NamedBehavior","Behavior.NamedBehavior"],"sources":["../src/diagnostics.ts","../src/a11y.ts","../src/attributes.ts","../src/behaviors/collection.ts","../src/behaviors/disclosure.ts","../src/behaviors/field-association.ts","../src/behaviors/spin-value.ts","../src/behaviors/toggle-state.ts","../src/behaviors/index.ts","../src/selector.ts"],"mappings":";;;;;;;;;;;;;;;;KAMY;UA4BK;WACN;WACA,MAAM;WACN;WACA;WACA;WACA,UAAU,SAAS;;cAGjB,wBAAwB;WAC1B,YAAY;EAErB,YAAY,YAAY;;;;;KCjCd;UAOK,uBAAuB;WAC7B;WACA,MAAM;;UAGA;WACN,aAAa;WACb,SAAS,cAAc;WACvB,aAAa,cAAc;;WAE3B;;KAGC,eAAe,SAAS,eAAe;cAEtC;UAEI,QAAQ,aAAa,eAAe;YACzC;aAA2B,cAAc;;WAC1C,cAAc;;cAGZ,gBAAiB,aAAa,cAAY,MAAQ,SAAO,QAAQ;cAyCjE,WAAQ,SACV,SAAO;YACG,eAAeA;MACjC,cAAc;;;;;KC5EL,MAAM;;KAGN,GAAG,SAAS,UAAU,OAAO,QAAQ,UAAU;WAAqB,MAAM;;;cAGzE,QAAS,SAAO,WAAa,eAAe,qBAAmB;;cAS/D,OAAQ,SAAS,UAAU,KAAG,YAC7B,eAAe,UAAQ,KAC9B,MACJ,GAAG,SAAS;;cAGF,SAAU,SAAS,UAAU,KAAG,YAC/B,eAAe,UAAQ,KAC9B,MACJ,cAAc,GAAG,SAAS;;;;UCvBZ,MAAM;WACZ;;WAEA,KAAK;WACL,KAAK,kBAAkB;;WAEvB,UAAU;WACV,aAAa;;WAEb,SAAS;;WAET,WAAW,kBAAkB;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kB;;cAGpB,QAAK;;cAGL,aAAU;;cAGV,UAAO;;cAGP,WAAQ"}
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
- import { _ as extendsCapability, a as slots_exports, b as metadataToken_exports, c as slotView_exports, d as mixin_exports, f as isTagged, g as capability_exports, h as Interactive, l as resolver_exports, m as Focusable, o as slot_exports, p as Container, s as attach$1, t as Style, u as dynamic, v as is$4, x as nameOf, y as make$3 } from "./style-CmHD4Ul3.mjs";
2
+ import { _ as extendsCapability, a as slots_exports, b as metadataToken_exports, c as slotView_exports, d as mixin_exports, f as isTagged, g as capability_exports, h as Interactive, l as resolver_exports, m as Focusable, o as slot_exports, p as Container, s as attach$1, t as Style, u as dynamic, v as is$4, x as nameOf, y as make$3 } from "./style-BAYqZ3kF.mjs";
3
3
  import { E as diagnostics_exports, T as DiagnosticError } from "./styleValue-Cj4YjgVB.mjs";
4
4
  import { t as Layers } from "./layers-keV38soP.mjs";
5
5
  import { t as Theme } from "./core-IMVYU8JN.mjs";
package/dist/layers.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as StyleValue } from "./styleValue-BavTe9MZ.mjs";
1
+ import { i as StyleValue } from "./styleValue-DEsUAC4v.mjs";
2
2
  //#region src/layers.d.ts
3
3
  /**
4
4
  * One layer of one order, for `Style.forSlots(S)(pieces, { layer })`: every
@@ -38,10 +38,10 @@ export declare const define: <const Name extends string>(names: ReadonlyArray<Na
38
38
  * component's inner rule), a recipe's `variants`, `utilities`, and the
39
39
  * application's `app`, always last.
40
40
  */
41
- export declare const standard: Layers<"reset" | "tokens" | "theme" | "defaults" | "components" | "layouts" | "variants" | "utilities" | "app">;
41
+ export declare const standard: Layers<"app" | "components" | "defaults" | "layouts" | "reset" | "theme" | "tokens" | "utilities" | "variants">;
42
42
  export declare const Layers: {
43
- readonly define: <const Name extends string>(names: ReadonlyArray<Name>) => Layers<Name>;
44
- readonly standard: Layers<"reset" | "tokens" | "theme" | "defaults" | "components" | "layouts" | "variants" | "utilities" | "app">;
43
+ readonly define: typeof define;
44
+ readonly standard: Layers<"app" | "components" | "defaults" | "layouts" | "reset" | "theme" | "tokens" | "utilities" | "variants">;
45
45
  };
46
46
  //#endregion
47
47
  //# sourceMappingURL=layers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layers.d.mts","names":[],"sources":["../src/layers.ts"],"mappings":";;;;;;;;;iBAqBiB,UAAU;WAChB,OAAO;WACP,QAAQ,OAAO,eAAe;;iBAGxB,OAAO;WACb,OAAO,cAAc;;WAErB,SAAS;;;;;;;;;;;WAWT,KAAK,MAAM,MAAM,OAAO,eAAe;;WAEvC,QAAQ,MAAM,SAAS,UAAU;;qBAiG/B,eAAgB,qBAAqB,OAAO,cAAc,UAAQ,OAAO;;;;;;;;;qBA8BzE,UAAQ;qBAYR;WA1CgB,eAAA,qBAAmB,OAAS,cAAc,UAAQ,OAAO"}
1
+ {"version":3,"file":"layers.d.mts","names":[],"sources":["../src/layers.ts"],"mappings":";;;;;;;;;iBAqBiB,UAAU;WAChB,OAAO;WACP,QAAQ,OAAO,eAAe;;iBAGxB,OAAO;WACb,OAAO,cAAc;;WAErB,SAAS;;;;;;;;;;;WAWT,KAAK,MAAM,MAAM,OAAO,eAAe;;WAEvC,QAAQ,MAAM,SAAS,UAAU;;qBAiG/B,eAAgB,qBAAmB,OAAS,cAAc,UAAQ,OAAO;;;;;;;;;qBA8BzE,UAAQ;qBAYR;0BAAA;qBAAA"}
package/dist/layers.mjs CHANGED
@@ -1,2 +1 @@
1
- import { n as define, r as standard, t as Layers } from "./layers-keV38soP.mjs";
2
- export { Layers, define, standard };
1
+ export { t as Layers, n as define, r as standard } from "./layers-keV38soP.mjs";
package/dist/layout.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as StyleValue } from "./styleValue-BavTe9MZ.mjs";
1
+ import { i as StyleValue } from "./styleValue-DEsUAC4v.mjs";
2
2
  //#region src/layout.d.ts
3
3
  /**
4
4
  * A child of `stack` that keeps its intrinsic width instead of the stack's
@@ -97,18 +97,18 @@ export interface AutoGridOptions {
97
97
  /** A grid that fits as many `minItemSize` columns as the width allows. */
98
98
  export declare const autoGrid: (options?: AutoGridOptions) => StyleValue;
99
99
  export declare const Layout: {
100
- readonly stack: (options?: StackOptions) => StyleValue;
100
+ readonly stack: typeof stack;
101
101
  readonly intrinsic: StyleValue;
102
- readonly cluster: (options?: ClusterOptions) => StyleValue;
103
- readonly split: (options?: SplitOptions) => StyleValue;
104
- readonly sidebar: (options?: SidebarOptions) => StyleValue;
102
+ readonly cluster: typeof cluster;
103
+ readonly split: typeof split;
104
+ readonly sidebar: typeof sidebar;
105
105
  readonly aside: StyleValue;
106
- readonly switcher: (options?: SwitcherOptions) => StyleValue;
107
- readonly reel: (options?: ReelOptions) => StyleValue;
108
- readonly center: (options?: CenterOptions) => StyleValue;
109
- readonly frame: (options?: FrameOptions) => StyleValue;
110
- readonly pad: (options?: PadOptions) => StyleValue;
111
- readonly autoGrid: (options?: AutoGridOptions) => StyleValue;
106
+ readonly switcher: typeof switcher;
107
+ readonly reel: typeof reel;
108
+ readonly center: typeof center;
109
+ readonly frame: typeof frame;
110
+ readonly pad: typeof pad;
111
+ readonly autoGrid: typeof autoGrid;
112
112
  };
113
113
  //#endregion
114
114
  //# sourceMappingURL=layout.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.mts","names":[],"sources":["../src/layout.ts"],"mappings":";;;;;;qBAuCa,WAAW;iBAOP;WACN;;WAEA;;WAEA;;;qBAIE,QAAS,UAAS,iBAAoB;iBAgBlC;WACN;WACA;WACA;;;qBAIE,UAAW,UAAS,mBAAsB;iBActC;;WAEN;;WAEA;WACA;;WAEA;;;qBAIE,QAAS,UAAS,iBAAoB;;;;;qBAkBtC,OAAO;iBAKH;;WAEN;;WAEA;;WAEA;WACA;;;;;;qBAOE,UAAW,UAAS,mBAAsB;iBAatC;;WAEN;WACA;;;qB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BAAuB;qBAc5C"}
@@ -20,6 +20,8 @@ interface OklchKnobs {
20
20
  readonly surfaceContrast?: string;
21
21
  /** Multiplies text chroma. */
22
22
  readonly contrastFactor?: number;
23
+ /** Chroma of the code colors (`syntax-*`), 0–0.4; default `0.14`. */
24
+ readonly syntaxChroma?: number;
23
25
  /** Hues of the feedback families. */
24
26
  readonly feedback?: {
25
27
  readonly success?: number;
@@ -47,6 +49,7 @@ declare const oklch: (knobs: OklchKnobs) => Readonly<{
47
49
  'warning-h': string;
48
50
  'error-h': string;
49
51
  'info-h': string;
52
+ 'syntax-c': string;
50
53
  };
51
54
  hue: {
52
55
  accent: string;
@@ -142,8 +145,19 @@ declare const oklch: (knobs: OklchKnobs) => Readonly<{
142
145
  'on-fill': string;
143
146
  ink: string;
144
147
  };
148
+ syntax: {
149
+ keyword: string;
150
+ function: string;
151
+ type: string;
152
+ string: string;
153
+ number: string;
154
+ property: string;
155
+ operator: string;
156
+ punctuation: string;
157
+ comment: string;
158
+ };
145
159
  }>;
146
160
  type OklchTheme = ReturnType<typeof oklch>;
147
161
  //#endregion
148
162
  export { OklchTheme as n, oklch as r, OklchKnobs as t };
149
- //# sourceMappingURL=oklch-CLKxbFpD.d.mts.map
163
+ //# sourceMappingURL=oklch-CDSDQNWl.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oklch-CDSDQNWl.d.mts","names":[],"sources":["../src/theme/oklch.ts"],"mappings":";UAYiB;;WAEN;aACE;aACA;aACA;;aAEA;eAAkB;eAAqB;;;;WAGzC;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;aACE;aACA;aACA;aACA;;;cAwFA,QAAK,OAAW,eAAU;;IAKjC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;IAGA;IACA;IACA;IACA;;;IAGA;IAOA;IACA;IACA;IACA;IAGA;;;IAMA;IACA;IACA;IACA;IACA;IACA;;;IAOA;IACA;IACA;IAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;KAKM,aAAa,kBAAkB"}
package/dist/prose.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as StyleValue } from "./styleValue-BavTe9MZ.mjs";
1
+ import { i as StyleValue } from "./styleValue-DEsUAC4v.mjs";
2
2
  //#region src/prose.d.ts
3
3
  export interface ProseOptions {
4
4
  /** The line length, e.g. `'65ch'`. */
@@ -24,7 +24,7 @@ export interface ProseOptions {
24
24
  */
25
25
  export declare const style: (options?: ProseOptions) => StyleValue;
26
26
  export declare const Prose: {
27
- readonly style: (options?: ProseOptions) => StyleValue;
27
+ readonly style: typeof style;
28
28
  };
29
29
  //#endregion
30
30
  //# sourceMappingURL=prose.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prose.d.mts","names":[],"sources":["../src/prose.ts"],"mappings":";;iBAUiB;;WAEN;;WAEA;;WAEA,SAAS;;aAEP;;aAEA;;aAEA;;aAEA;;;;;;;;qBAuEA,QAAS,UAAS,iBAAoB;qBAUtC;WAVkB,QAAA,UAAA,iBAAoB"}
1
+ {"version":3,"file":"prose.d.mts","names":[],"sources":["../src/prose.ts"],"mappings":";;iBAUiB;;WAEN;;WAEA;;WAEA,SAAS;;aAEP;;aAEA;;aAEA;;aAEA;;;;;;;;qBAuEA,QAAK,UAAa,iBAAoB;qBAUtC;yBAAA"}
@@ -1,5 +1,5 @@
1
- import { o as StyleValue } from "./styleValue-BavTe9MZ.mjs";
2
- import { r as ThemeTokens } from "./core-CUw_n1Nd.mjs";
1
+ import { i as StyleValue } from "./styleValue-DEsUAC4v.mjs";
2
+ import { r as ThemeTokens } from "./core-Cq9PThXv.mjs";
3
3
  //#region src/theme/root.d.ts
4
4
  interface RootOptions {
5
5
  /** Tokens present in this theme are left out, so a scale shipped in another layer goes out once. */
@@ -22,4 +22,4 @@ type Overrides<T extends ThemeTokens> = { readonly [G in keyof T]?: { readonly [
22
22
  declare const scoped: <T extends ThemeTokens>(_theme: T, selector: string, overrides: Overrides<T>) => StyleValue;
23
23
  //#endregion
24
24
  export { scoped as i, RootOptions as n, root as r, Overrides as t };
25
- //# sourceMappingURL=root-xyWS6geK.d.mts.map
25
+ //# sourceMappingURL=root-DCb6aqif.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-DCb6aqif.d.mts","names":[],"sources":["../src/theme/root.ts"],"mappings":";;;UAOiB;;WAEN,OAAO;;WAEP;;cAkBE,OAAI,OAAW,aAAW,UAAY,gBAAc;;KAMrD,UAAU,UAAU,2BACpB,WAAW,iBAAiB,WAAW,EAAE;;;;;;;;;;cAYxC,SAAU,UAAU,aAAW,QAClC,GAAC,kBACO,WACL,UAAU,OACpB"}
@@ -327,11 +327,9 @@ declare const forSlots: <Slots>(slots: Slots) => <Input, Message>(spec: Behavior
327
327
  */
328
328
  declare const attach$1: <BehaviorSlots, Message, Input>(behavior: NamedBehavior<BehaviorSlots, Input, Message>) => <ViewSlots>(view: SlotView<ViewSlots, Input, Message>) => SlotView<ViewSlots, Input, Message>;
329
329
  declare const Behavior: {
330
- readonly slot: <Options extends BehaviorSlotOptions<any, any>>(options: Options) => Options;
331
- readonly forSlots: <Slots>(slots: Slots) => <Input, Message>(spec: BehaviorSpec<Slots, Input, Message>, options?: {
332
- readonly name?: string;
333
- }) => NamedBehavior<Slots, Input, Message>;
334
- readonly attach: <BehaviorSlots, Message, Input>(behavior: NamedBehavior<BehaviorSlots, Input, Message>) => <ViewSlots>(view: SlotView<ViewSlots, Input, Message>) => SlotView<ViewSlots, Input, Message>;
330
+ readonly slot: typeof slot;
331
+ readonly forSlots: typeof forSlots;
332
+ readonly attach: typeof attach$1;
335
333
  };
336
334
  declare namespace resolver_d_exports {
337
335
  export { ResolveOptions, SlotAttributes, resolve };
@@ -473,4 +471,4 @@ interface Parts<Slots, Input, Message> {
473
471
  declare const parts: <Slots>(slots: Slots) => <Input, Message>() => Parts<Slots, Input, Message>;
474
472
  //#endregion
475
473
  export { metadataToken_d_exports as $, requirement_d_exports as A, Contribution as B, RequirementName as C, UnnamedSlot as D, SlotProtection as E, AnyMixin as F, StaticContribution as G, DynamicContribution as H, Mixin as I, Capability as J, StaticContributionMap as K, MixinFor as L, event_d_exports as M, AttrToken as N, slot_d_exports as O, attr_d_exports as P, capability_d_exports as Q, StaticMixin as R, MakeOptions as S, SlotCapability as T, InputContribution as U, ContributionContext as V, SlotContribution as W, NameOf$1 as X, Container as Y, Satisfies as Z, Any as _, SlotViewRender as a, EventName as b, slotView_d_exports as c, resolver_d_exports as d, BehaviorSlotOptions as f, behavior_d_exports as g, SlotRequirements as h, SlotView as i, EventToken as j, RequirementToken as k, ResolveOptions as l, NamedBehavior as m, SlotBuilder as n, SlotViewTransform as o, BehaviorSpec as p, Any$1 as q, SlotBuilders as r, SlotViewTransformFor as s, MessageSlotView as t, SlotAttributes as u, AssignableCapabilityNamesOf as v, Slot as w, HiddenOf as x, AttributeName as y, mixin_d_exports as z };
476
- //# sourceMappingURL=slotView-BtIF2pHo.d.mts.map
474
+ //# sourceMappingURL=slotView-8_CHU9i7.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slotView-8_CHU9i7.d.mts","names":["Any","NameOf","NamesOf","make","is","MetadataToken.MetadataToken","Any","NameOf","MetadataToken.NameOf","MetadataToken.NamesOf","is","make","describe","make","MetadataToken.MetadataToken","is","make","equals","describe","MetadataToken.MetadataToken","is","make","describe","MetadataToken.MetadataToken","is","make","describe","AnyCapability","Capability.Base","MetadataToken.NameOf","MetadataToken.NamesOf","Capability.AssignableNamesOf","MixinValue","attach","SlotView.SlotView"],"sources":["../src/metadataToken.ts","../src/capability.ts","../src/contribution.ts","../src/mixin.ts","../src/attr.ts","../src/event.ts","../src/pipe.ts","../src/requirement.ts","../src/slot.ts","../src/behavior.ts","../src/resolver.ts","../src/slotView.ts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UACrC;aAAqB;QAClB,SAAS,OAAO,OAAO;;;;;;;;;;;;;;cAyDjB,QACV,OAAK,OAAS,WACd,OAAO,cAAY,MAAM,OAAO,OAAO"}
@@ -370,7 +370,10 @@ const composeMounts = (mounts, slot) => {
370
370
  args: mount.args
371
371
  }))
372
372
  },
373
- f: (element, viewStateChanges) => Stream.mergeAll(mounts.map((mount) => mount.f(element, viewStateChanges)), { concurrency: "unbounded" })
373
+ f: (element, viewStateChanges) => Stream.mergeAll(mounts.map((mount) => mount.f(element, viewStateChanges).pipe(Stream.catchCause((cause) => {
374
+ console.error(`[OnMount ${mount.name}] unhandled failure`, cause);
375
+ return Stream.empty;
376
+ }))), { concurrency: "unbounded" })
374
377
  });
375
378
  };
376
379
  //#endregion
@@ -1263,4 +1266,4 @@ const Style = {
1263
1266
  //#endregion
1264
1267
  export { extendsCapability as _, slots_exports as a, metadataToken_exports as b, slotView_exports as c, mixin_exports as d, isTagged as f, capability_exports as g, Interactive as h, stylesheet as i, resolver_exports as l, Focusable as m, forSlots as n, slot_exports as o, Container as p, slots as r, attach$1 as s, Style as t, dynamic as u, is$2 as v, nameOf as x, make$3 as y };
1265
1268
 
1266
- //# sourceMappingURL=style-CmHD4Ul3.mjs.map
1269
+ //# sourceMappingURL=style-BAYqZ3kF.mjs.map