foldkit-mixins 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.
- package/README.md +44 -12
- package/dist/app.d.mts +1 -1
- package/dist/app.mjs +2 -2
- package/dist/defaults.d.mts.map +1 -1
- package/dist/defaults.mjs +1 -1
- package/dist/defaults.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{oklch-CDSDQNWl.d.mts → oklch-BCbqJ1aM.d.mts} +76 -1
- package/dist/oklch-BCbqJ1aM.d.mts.map +1 -0
- package/dist/{slotMark-DK75y0GJ.mjs → slotMark-D5MmzQQI.mjs} +5 -5
- package/dist/slotMark-D5MmzQQI.mjs.map +1 -0
- package/dist/slotView-8_CHU9i7.d.mts.map +1 -1
- package/dist/{style-BAYqZ3kF.mjs → style-vLRL50Ar.mjs} +2 -2
- package/dist/style-vLRL50Ar.mjs.map +1 -0
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +11 -3
- package/dist/testing.mjs.map +1 -1
- package/dist/theme.d.mts +76 -4
- package/dist/theme.d.mts.map +1 -1
- package/dist/theme.mjs +120 -7
- package/dist/theme.mjs.map +1 -1
- package/dist/tokens-CHPdmeHV.mjs +231 -0
- package/dist/tokens-CHPdmeHV.mjs.map +1 -0
- package/dist/tokens-vUZrqdqI.d.mts +200 -0
- package/dist/tokens-vUZrqdqI.d.mts.map +1 -0
- package/dist/utilities.d.mts +36 -2
- package/dist/utilities.d.mts.map +1 -1
- package/dist/utilities.mjs +140 -4
- package/dist/utilities.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/oklch-CDSDQNWl.d.mts.map +0 -1
- package/dist/slotMark-DK75y0GJ.mjs.map +0 -1
- package/dist/style-BAYqZ3kF.mjs.map +0 -1
- package/dist/tokens-B3i8bXZp.mjs +0 -139
- package/dist/tokens-B3i8bXZp.mjs.map +0 -1
- package/dist/tokens-BaLmrfbp.d.mts +0 -102
- package/dist/tokens-BaLmrfbp.d.mts.map +0 -1
package/README.md
CHANGED
|
@@ -104,8 +104,7 @@ projection, and `foldkit-mixins-ui` adapts `@foldkit/ui` components.
|
|
|
104
104
|
|
|
105
105
|
The design-system pieces are subpaths, so an application that only attaches classes pays for
|
|
106
106
|
none of them: `foldkit-mixins/layers`, `/theme`, `/layout`, `/defaults`, `/prose`, `/utilities`
|
|
107
|
-
and `/app
|
|
108
|
-
[styleImprovements-DESIGN.md](../../docs/design/styleImprovements-DESIGN.md)).
|
|
107
|
+
and `/app`.
|
|
109
108
|
|
|
110
109
|
## Quick start
|
|
111
110
|
|
|
@@ -335,8 +334,8 @@ Beyond `self`, `pseudo`, `media`, `supports`, `container` and `nest`, the rule p
|
|
|
335
334
|
### Theme from a few knobs
|
|
336
335
|
|
|
337
336
|
`foldkit-mixins/theme` extends the root `Theme` with the pieces a page ships. `Theme.oklch` takes
|
|
338
|
-
an accent color and a few knobs (hue shifts, surface saturation and contrast, a
|
|
339
|
-
feedback hues) and returns typed tokens for surfaces, text, outlines, and the accent, secondary,
|
|
337
|
+
an accent color and a few knobs (hue shifts, a neutral hue, surface saturation and contrast, a
|
|
338
|
+
contrast factor, feedback hues) and returns typed tokens for surfaces, text, outlines, and the accent, secondary,
|
|
340
339
|
tertiary and feedback families. Only the `knob` group holds literals; every other value is a CSS
|
|
341
340
|
expression over other tokens (`oklch(from …)`, `color-mix()`, `light-dark()`), so the browser does
|
|
342
341
|
the derivation and one knob override recolors everything below it. Each family (`accent`,
|
|
@@ -346,14 +345,42 @@ line in it that stands off the base; and two text colors named for where they go
|
|
|
346
345
|
text on that fill (near white on a mid accent), and `ink` is text in the family's color on the
|
|
347
346
|
base surface, dark enough to read in a light scheme and light enough in a dark one. Colored text
|
|
348
347
|
is `ink`, never `default`. The surfaces are the base at a few lightnesses with its chroma, so a
|
|
349
|
-
panel and a sidebar read as the page's own color
|
|
348
|
+
panel and a sidebar read as the page's own color, in the accent's hue unless `neutral: { h }` gives
|
|
349
|
+
them one of their own (a base color: a warm stone under a blue accent); `bedrock` is the deepest of them in both
|
|
350
350
|
schemes, and the focus ring, `outline.focus`, is the accent. The `syntax` group colors code by
|
|
351
351
|
the kinds a tokenizer names (`syntax-keyword` is `--fk-syntax-keyword`, as
|
|
352
352
|
`foldkit-richtext-code` and its Shiki adapter name them): `keyword`, `function` and `type` in
|
|
353
353
|
the accent, secondary and tertiary hues, `string`, `number` and `property` in the success,
|
|
354
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. `
|
|
355
|
+
`operator`, `punctuation` and `comment` in the text's own grey. The `chart` group is a chart's
|
|
356
|
+
series colors, `chart-1` to `chart-5` as shadcn names them: the dataviz reference palette's first
|
|
357
|
+
five slots in its order, so neighbors stay apart under protan and deutan vision, each a fixed turn
|
|
358
|
+
of hue from the `chart-h` knob at a lightness and chroma set for that hue in each scheme. The `popup` group is a menu's
|
|
359
|
+
panel (`surface`, `ink`, `blur`) and its lit row (`highlight`, `highlight-ink`): `menu: { accent:
|
|
360
|
+
'bold' }` lights the row in the accent's fill, and `menu: { color }` draws the panel `inverted`
|
|
361
|
+
(the other scheme's surface and text) or `translucent` over a blur, as shadcn's menu options do.
|
|
362
|
+
Each is a 0-or-1 knob (`popup-bold`, `popup-invert`) blended by `color-mix`, so an override
|
|
363
|
+
switches it live. The `state` group is what a state lays over the surface under it, a mix of the
|
|
364
|
+
element's own text color (`hover`; `tint` and `tint-hover`, a see-through fill; `edge`, a hairline
|
|
365
|
+
inside an image), so it reads at any elevation and on any band; its amounts are knobs
|
|
366
|
+
(`state-hover`, `state-tint`, `state-tint-dark`, `image-edge`). `Theme.nested(outer, inset,
|
|
367
|
+
border?)` is the radius of a surface inset in another, so their corners are concentric. A
|
|
368
|
+
container that pads its children can publish that instead: spread `Theme.nests(radius, inset,
|
|
369
|
+
border?)` beside its own radius and padding, and `Theme.nested()` with no arguments on any
|
|
370
|
+
descendant (a row, a pill, a highlight, a focus ring) reads it. Outside such a container it is
|
|
371
|
+
square.
|
|
372
|
+
`Theme.raise(offset)` lifts an element `offset` levels above the raised element holding it (or the
|
|
373
|
+
page, level 1), capped at 8, and `Theme.raisedSurface()` is its background at that level: a popover
|
|
374
|
+
opened in a dialog lands above the dialog with nothing passed. In a light scheme the first two
|
|
375
|
+
levels step toward white and the rest stay there, so shadow carries elevation; in a dark scheme
|
|
376
|
+
each level is an even step lighter.
|
|
377
|
+
`Theme.tokens` is the
|
|
356
378
|
non-color scales, with `space` and `radius` multiplied by the `density` and `radius-factor` knobs.
|
|
379
|
+
Its `motion` group is three tiers, `fast`, `moderate` and `slow` (80, 160 and 240ms, for hover and
|
|
380
|
+
fades, popups and tabs, dialogs), each with a quicker `-exit` for dismissals, all multiplied by the
|
|
381
|
+
`motion` knob. A duration of something that moves or resizes also multiplies by `knob.travel`,
|
|
382
|
+
which `Defaults.reset` sets to 0 under `prefers-reduced-motion`: the thing stops travelling, and its
|
|
383
|
+
fade still plays.
|
|
357
384
|
|
|
358
385
|
A theme reaches the page as pieces, and the page chooses the layers:
|
|
359
386
|
|
|
@@ -537,7 +564,14 @@ step is a type error and the value still follows the `density` knob and theme ov
|
|
|
537
564
|
(`size`), `font` (`weight`), `leading`, `rounded` (`radius`), `color` and `bg` (a `Theme.oklch`
|
|
538
565
|
color as `'group.name'`), `items` and `justify` (`'between'` is `space-between`), and the
|
|
539
566
|
constants `flex`, `column`, `grid`, `block`, `hidden`, `wFull`, `textCenter`, `uppercase`,
|
|
540
|
-
`truncate`, `pointer` and `selectNone
|
|
567
|
+
`truncate`, `pointer` and `selectNone`, and `scrollFade(axis)`, a scroller's content dissolving
|
|
568
|
+
toward an edge with more to scroll (a scroll-driven mask: the true ends stay crisp until something
|
|
569
|
+
is past them, and a browser without scroll timelines gets no fade), `scrollDivider(axis)` with
|
|
570
|
+
`scrollTimeline(axis)`, a hairline at each edge with more past it, drawn on a positioned parent's
|
|
571
|
+
`::before` and `::after` (the fade's mask would erase a line inside the scroller) from the timeline
|
|
572
|
+
the scroller names, where the browser has `timeline-scope`, and `steady(weight)`, room for a
|
|
573
|
+
label at a heavier weight, read from the element's `data-label`, so turning bold moves nothing
|
|
574
|
+
beside it. Each is a `Style.self` rule, unlayered, so it takes the
|
|
541
575
|
layer of the style it is composed into, and a plain declaration after it wins per property. A
|
|
542
576
|
value off the scale is a plain declaration (`{ fontSize: '3.75rem' }`); a color outside
|
|
543
577
|
`Theme.oklch`'s groups is read through `t`.
|
|
@@ -864,8 +898,9 @@ a page that imports it fails fast naming `vite`.
|
|
|
864
898
|
## `@foldkit/ui`
|
|
865
899
|
|
|
866
900
|
`foldkit-mixins-ui` adapts `@foldkit/ui` components that expose attribute bundles or a consumer
|
|
867
|
-
render seam. Button, Input, Checkbox, Disclosure, Dialog, Popover, Tooltip,
|
|
868
|
-
|
|
901
|
+
render seam. Button, Input, Checkbox, Disclosure, Dialog, Popover, Tooltip, Tabs, RadioGroup,
|
|
902
|
+
Calendar and others are covered. The Slider is drawn by `foldkit-mixins-ui` itself, for one number
|
|
903
|
+
or a range, rather than adapted.
|
|
869
904
|
|
|
870
905
|
Some components build their entire element tree internally and expose no attachment seam; those
|
|
871
906
|
cannot be adapted without changing the component API. Others simply do not have an adapter yet.
|
|
@@ -878,9 +913,6 @@ The API is still settling (`0.2.x`). This package replaces none of Foldkit's sta
|
|
|
878
913
|
machinery — Commands, Subscriptions, Mounts, ManagedResources, Models or Submodels. Its job is
|
|
879
914
|
narrower: make view customization explicit, typed and composable.
|
|
880
915
|
|
|
881
|
-
The [design note](https://github.com/doeixd/foldkit-plus/blob/main/docs/design/mixins-DESIGN.md)
|
|
882
|
-
records the substrate probes and implementation decisions.
|
|
883
|
-
|
|
884
916
|
## See also
|
|
885
917
|
|
|
886
918
|
- [Inside-out view composition](https://github.com/doeixd/foldkit-plus/blob/main/docs/mixins.md) — the mental model and when to use it.
|
package/dist/app.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { standard } from "./layers.mjs";
|
|
|
3
3
|
import { a as NamedStyle, l as StyleOptions, n as Declared, r as DeclaredPieces, u as StylePieces } from "./style-moq41T8O.mjs";
|
|
4
4
|
import { a as compose, r as ThemeTokens, t as Refs } from "./core-Cq9PThXv.mjs";
|
|
5
5
|
import { n as RootOptions } from "./root-DCb6aqif.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { r as Tokens } from "./tokens-vUZrqdqI.mjs";
|
|
7
7
|
//#region src/app.d.ts
|
|
8
8
|
export interface AppStyleOptions<Palette extends ThemeTokens> {
|
|
9
9
|
/** The application's own tokens, usually `Theme.oklch(…)`, laid over `Theme.tokens`. */
|
package/dist/app.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as stylesheet, n as forSlots, r as slots } from "./style-
|
|
1
|
+
import { i as stylesheet, n as forSlots, r as slots } from "./style-vLRL50Ar.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";
|
|
5
5
|
import { t as root } from "./root-BBi88KYx.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { s as tokens } from "./tokens-CHPdmeHV.mjs";
|
|
7
7
|
import { body, reset } from "./defaults.mjs";
|
|
8
8
|
//#region src/app.ts
|
|
9
9
|
/**
|
package/dist/defaults.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.mts","names":[],"sources":["../src/defaults.ts"],"mappings":";;;qBAca,OAAO;;
|
|
1
|
+
{"version":3,"file":"defaults.d.mts","names":[],"sources":["../src/defaults.ts"],"mappings":";;;qBAca,OAAO;;qBAkBP,MAAM;;;;;;qBAcN,UAAU;;qBAaV,OAAO;;qBASP,MAAM;;qBAWN,UAAU;;qBAaV,KAAK;qBAEL"}
|
package/dist/defaults.mjs
CHANGED
|
@@ -18,7 +18,7 @@ const reset = global([
|
|
|
18
18
|
":where(textarea){field-sizing:content;min-block-size:2lh}",
|
|
19
19
|
":where(:is(h1,h2,h3,h4,h5,h6)){text-wrap:balance}",
|
|
20
20
|
":where(p){text-wrap:pretty;overflow-wrap:break-word}",
|
|
21
|
-
`@media (prefers-reduced-motion:reduce){*,*::before,*::after{
|
|
21
|
+
`@media (prefers-reduced-motion:reduce){*,*::before,*::after{--fk-knob-travel:0!important;animation-duration:0.01ms!important;scroll-behavior:auto!important}}`
|
|
22
22
|
].join(""));
|
|
23
23
|
/** The page's font, color, background, and color scheme. */
|
|
24
24
|
const body = global(`:where(:root){scrollbar-color:${v("outline-overt", "auto")} transparent;accent-color:${v("accent-default", "auto")}}:where(::selection){background:color-mix(in oklab, ${v("accent-default", "Highlight")} 28%, transparent)}:where(body){font-family:${v("font-body", "system-ui, sans-serif")};font-size:${v("size-md", "1rem")};line-height:${v("leading-normal", "1.5")};font-weight:${v("weight-normal", "400")};color:${v("text-default", "CanvasText")};background:${v("surface-base", "Canvas")};-webkit-font-smoothing:antialiased}`);
|
package/dist/defaults.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.mjs","names":[],"sources":["../src/defaults.ts"],"sourcesContent":["/**\n * `foldkit-mixins/defaults`: the baseline plain HTML gets before any slot is\n * styled. Every member is element-selector CSS over `--fk-*` tokens with a\n * fallback, so it re-themes with the tokens and still reads without them.\n * The pieces are unlayered; a page puts `reset` in `reset` and the rest in\n * `defaults` with `Layers.standard.in`. Selectors use `:where()` so any\n * class rule beats them.\n */\nimport { compose, global } from './styleValue.js'\nimport type { StyleValue } from './styleValue.js'\n\nconst v = (name: string, fallback: string): string => `var(--fk-${name}, ${fallback})`\n\n/** Box model, margins, media, form-control fonts: what every page assumes. */\nexport const reset: StyleValue = global(\n [\n '*,*::before,*::after{box-sizing:border-box;margin:0;min-width:0}',\n ':where(html){text-size-adjust:none;-webkit-text-size-adjust:none;tab-size:4;font-synthesis:none;text-rendering:optimizeLegibility}',\n ':where(:is(img,picture,video,canvas,svg)){display:block;max-inline-size:100%;block-size:auto}',\n ':where(:is(input,button,textarea,select)){font:inherit;color:inherit}',\n ':where(textarea){field-sizing:content;min-block-size:2lh}',\n ':where(:is(h1,h2,h3,h4,h5,h6)){text-wrap:balance}',\n ':where(p){text-wrap:pretty;overflow-wrap:break-word}',\n `@media (prefers-reduced-motion:reduce){*,*::before,*::after{
|
|
1
|
+
{"version":3,"file":"defaults.mjs","names":[],"sources":["../src/defaults.ts"],"sourcesContent":["/**\n * `foldkit-mixins/defaults`: the baseline plain HTML gets before any slot is\n * styled. Every member is element-selector CSS over `--fk-*` tokens with a\n * fallback, so it re-themes with the tokens and still reads without them.\n * The pieces are unlayered; a page puts `reset` in `reset` and the rest in\n * `defaults` with `Layers.standard.in`. Selectors use `:where()` so any\n * class rule beats them.\n */\nimport { compose, global } from './styleValue.js'\nimport type { StyleValue } from './styleValue.js'\n\nconst v = (name: string, fallback: string): string => `var(--fk-${name}, ${fallback})`\n\n/** Box model, margins, media, form-control fonts: what every page assumes. */\nexport const reset: StyleValue = global(\n [\n '*,*::before,*::after{box-sizing:border-box;margin:0;min-width:0}',\n ':where(html){text-size-adjust:none;-webkit-text-size-adjust:none;tab-size:4;font-synthesis:none;text-rendering:optimizeLegibility}',\n ':where(:is(img,picture,video,canvas,svg)){display:block;max-inline-size:100%;block-size:auto}',\n ':where(:is(input,button,textarea,select)){font:inherit;color:inherit}',\n ':where(textarea){field-sizing:content;min-block-size:2lh}',\n ':where(:is(h1,h2,h3,h4,h5,h6)){text-wrap:balance}',\n ':where(p){text-wrap:pretty;overflow-wrap:break-word}',\n // Reduced motion is fewer and gentler, not none: what moves snaps (the\n // `travel` knob on every element, important so one that sets the knob\n // itself, a scoped theme's or an inline one, cannot restore it), while a\n // fade keeps its duration. Keyframes are a recipe's own and still stop.\n `@media (prefers-reduced-motion:reduce){*,*::before,*::after{--fk-knob-travel:0!important;animation-duration:0.01ms!important;scroll-behavior:auto!important}}`,\n ].join(''),\n)\n\n/** The page's font, color, background, and color scheme. */\nexport const body: StyleValue = global(\n // Scrollbars in the theme's line color, which keeps the page's hue, not the\n // browser's grey; inherited, so one rule reaches every scrolling panel.\n `:where(:root){scrollbar-color:${v('outline-overt', 'auto')} transparent;accent-color:${v('accent-default', 'auto')}}` +\n // Selected text in the accent's tint rather than the browser's own blue.\n `:where(::selection){background:color-mix(in oklab, ${v('accent-default', 'Highlight')} 28%, transparent)}` +\n `:where(body){font-family:${v('font-body', 'system-ui, sans-serif')};font-size:${v('size-md', '1rem')};line-height:${v('leading-normal', '1.5')};font-weight:${v('weight-normal', '400')};color:${v('text-default', 'CanvasText')};background:${v('surface-base', 'Canvas')};-webkit-font-smoothing:antialiased}`,\n)\n\n/**\n * A type hierarchy for h1 to h6 from the size scale, in `text-overt`. A\n * container drawn in a color of its own, such as a band on the accent, sets\n * `--fk-heading: currentColor` (`Style.vars`) and its headings take its color.\n */\nexport const headings: StyleValue = global(\n [\n `:where(:is(h1,h2,h3,h4,h5,h6)){font-family:${v('font-heading', 'inherit')};font-weight:${v('weight-bold', '700')};line-height:${v('leading-tight', '1.2')};color:${v('heading', v('text-overt', 'inherit'))};letter-spacing:-0.01em}`,\n `:where(h1){font-size:${v('size-4xl', '2.25rem')}}`,\n `:where(h2){font-size:${v('size-3xl', '1.875rem')}}`,\n `:where(h3){font-size:${v('size-2xl', '1.5rem')}}`,\n `:where(h4){font-size:${v('size-xl', '1.25rem')}}`,\n `:where(h5){font-size:${v('size-lg', '1.125rem')}}`,\n `:where(h6){font-size:${v('size-md', '1rem')}}`,\n ].join(''),\n)\n\n/** Link color, hover, and a visible focus ring. */\nexport const links: StyleValue = global(\n [\n `:where(a){color:${v('text-link', 'LinkText')};text-decoration-thickness:from-font;text-underline-offset:0.15em}`,\n `:where(a:hover){color:${v('text-link-hover', 'LinkText')}}`,\n `:where(:is(a,button,input,select,textarea,summary,[tabindex]):focus-visible){outline:${v('border-thick', '2px')} solid ${v('outline-focus', 'Highlight')};outline-offset:2px}`,\n ].join(''),\n)\n\n/** Inline code and code blocks on the subtle surface. */\nexport const code: StyleValue = global(\n [\n `:where(:is(code,kbd,samp,pre)){font-family:${v('font-mono', 'ui-monospace, monospace')};font-size:${v('size-sm', '0.875rem')}}`,\n `:where(:not(pre)>code){padding:0.1em 0.35em;border-radius:${v('radius-sm', '3px')};background:${v('surface-muted', 'transparent')};overflow-wrap:anywhere}`,\n `:where(kbd){padding:0.1em 0.4em;border:${v('border-thin', '1px')} solid ${v('outline-default', 'currentColor')};border-block-end-width:2px;border-radius:${v('radius-sm', '3px')};font-size:0.85em}`,\n `:where(hr){border:0;border-block-start:${v('border-thin', '1px')} solid ${v('outline-subtle', 'currentColor')}}`,\n `:where(pre){padding:${v('space-md', '1rem')};border:${v('border-thin', '1px')} solid ${v('outline-subtle', 'transparent')};border-radius:${v('radius-md', '6px')};background:${v('surface-subtle', 'transparent')};overflow-x:auto;line-height:${v('leading-snug', '1.375')}}`,\n ].join(''),\n)\n\n/** Text inputs, selects, textareas, and buttons: one radius, one border, one focus. */\nexport const controls: StyleValue = global(\n [\n `:where(:is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file]),select,textarea)){padding:${v('space-xs', '0.5rem')} ${v('space-sm', '0.75rem')};border:${v('border-thin', '1px')} solid ${v('outline-default', 'ButtonBorder')};border-radius:${v('radius-md', '6px')};background:${v('surface-base', 'Field')};color:${v('text-default', 'FieldText')};transition:border-color ${v('motion-fast', '150ms')} ${v('motion-ease', 'ease-out')}}`,\n `:where(:is(input,select,textarea):focus-visible){border-color:${v('accent-default', 'Highlight')}}`,\n `:where(:is(input,select,textarea)[aria-invalid=true]){border-color:${v('error-default', 'red')}}`,\n `:where(button,[type=button],[type=submit],[type=reset]){padding:${v('space-xs', '0.5rem')} ${v('space-md', '1rem')};border:${v('border-thin', '1px')} solid ${v('outline-default', 'ButtonBorder')};border-radius:${v('radius-md', '6px')};background:${v('surface-subtle', 'ButtonFace')};color:${v('text-default', 'ButtonText')};cursor:pointer;transition:background ${v('motion-fast', '150ms')} ${v('motion-ease', 'ease-out')}}`,\n `:where(button,[type=button],[type=submit],[type=reset]):hover{background:${v('surface-muted', 'ButtonFace')}}`,\n `:where(:is(button,input,select,textarea):disabled){opacity:0.5;cursor:not-allowed}`,\n `:where(:is(input,select,textarea,button)::placeholder){color:${v('text-muted', 'GrayText')}}`,\n ].join(''),\n)\n\n/** Every default except `reset`, which belongs in its own layer. */\nexport const all: StyleValue = compose(body, headings, links, code, controls)\n\nexport const Defaults = { reset, body, headings, links, code, controls, all } as const\n"],"mappings":";;;;;;;;;;AAWA,MAAM,KAAK,MAAc,aAA6B,YAAY,KAAK,IAAI,SAAS;;AAGpF,MAAa,QAAoB,OAC/B;CACE;CACA;CACA;CACA;CACA;CACA;CACA;CAKA;AACF,CAAC,CAAC,KAAK,EAAE,CACX;;AAGA,MAAa,OAAmB,OAG9B,iCAAiC,EAAE,iBAAiB,MAAM,EAAE,4BAA4B,EAAE,kBAAkB,MAAM,EAAE,sDAE5D,EAAE,kBAAkB,WAAW,EAAE,8CAC3D,EAAE,aAAa,uBAAuB,EAAE,aAAa,EAAE,WAAW,MAAM,EAAE,eAAe,EAAE,kBAAkB,KAAK,EAAE,eAAe,EAAE,iBAAiB,KAAK,EAAE,SAAS,EAAE,gBAAgB,YAAY,EAAE,cAAc,EAAE,gBAAgB,QAAQ,EAAE,qCAChR;;;;;;AAOA,MAAa,WAAuB,OAClC;CACE,8CAA8C,EAAE,gBAAgB,SAAS,EAAE,eAAe,EAAE,eAAe,KAAK,EAAE,eAAe,EAAE,iBAAiB,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,SAAS,CAAC,EAAE;CAC7M,wBAAwB,EAAE,YAAY,SAAS,EAAE;CACjD,wBAAwB,EAAE,YAAY,UAAU,EAAE;CAClD,wBAAwB,EAAE,YAAY,QAAQ,EAAE;CAChD,wBAAwB,EAAE,WAAW,SAAS,EAAE;CAChD,wBAA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iE,EAAE,kBAAkB,WAAW,EAAE;CAClG,sEAAsE,EAAE,iBAAiB,KAAK,EAAE;CAChG,mEAAmE,EAAE,YAAY,QAAQ,EAAE,GAAG,EAAE,YAAY,MAAM,EAAE,UAAU,EAAE,eAAe,KAAK,EAAE,SAAS,EAAE,mBAAmB,cAAc,EAAE,iBAAiB,EAAE,aAAa,KAAK,EAAE,cAAc,EAAE,kBAAkB,YAAY,EAAE,SAAS,EAAE,gBAAgB,YAAY,EAAE,wCAAwC,EAAE,eAAe,OAAO,EAAE,GAAG,EAAE,eAAe,UAAU,EAAE;CACta,4EAA4E,EAAE,iBAAiB,YAAY,EAAE;CAC7G;CACA,gEAAgE,EAAE,cAAc,UAAU,EAAE;AAC9F,CAAC,CAAC,KAAK,EAAE,CACX;;AAGA,MAAa,MAAkB,QAAQ,MAAM,UAAU,OAAO,MAAM,QAAQ;AAE5E,MAAa,WAAW;CAAE;CAAO;CAAM;CAAU;CAAO;CAAM;CAAU;AAAI"}
|
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-
|
|
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-vLRL50Ar.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";
|
|
@@ -14,6 +14,24 @@ interface OklchKnobs {
|
|
|
14
14
|
/** Degrees added to the accent hue for the secondary and tertiary families. */
|
|
15
15
|
readonly secondaryHueShift?: number;
|
|
16
16
|
readonly tertiaryHueShift?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The hue of the neutrals (surfaces, text, outlines, the shadow), apart
|
|
19
|
+
* from the accent's, as a base color is: a warm stone under a blue accent.
|
|
20
|
+
* Without it the neutrals take the accent's hue, and follow it when the
|
|
21
|
+
* `accent-h` knob moves.
|
|
22
|
+
*/
|
|
23
|
+
readonly neutral?: {
|
|
24
|
+
readonly h: number;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The tint of every shadow: its hue (the neutrals' unless given) and chroma
|
|
28
|
+
* (twice the surfaces' unless given), so a warm theme's cards cast a warm
|
|
29
|
+
* shadow. `shadow-strength` still scales how much of it shows.
|
|
30
|
+
*/
|
|
31
|
+
readonly shadow?: {
|
|
32
|
+
readonly h?: number;
|
|
33
|
+
readonly c?: number;
|
|
34
|
+
};
|
|
17
35
|
/** Chroma of neutral surfaces; 0 is gray. */
|
|
18
36
|
readonly surfaceSaturation?: number;
|
|
19
37
|
/** How far apart the surface steps are, 0–100%. */
|
|
@@ -22,6 +40,17 @@ interface OklchKnobs {
|
|
|
22
40
|
readonly contrastFactor?: number;
|
|
23
41
|
/** Chroma of the code colors (`syntax-*`), 0–0.4; default `0.14`. */
|
|
24
42
|
readonly syntaxChroma?: number;
|
|
43
|
+
/**
|
|
44
|
+
* How menus, listboxes and comboboxes draw their panels, as shadcn's menu
|
|
45
|
+
* options: the row the keys or pointer are on in a tint of the text
|
|
46
|
+
* (`subtle`, the default) or the accent's fill (`bold`); the panel in the
|
|
47
|
+
* page's surface (`default`), the opposite scheme's (`inverted`), or either
|
|
48
|
+
* see-through over a blur (`translucent`, `inverted-translucent`).
|
|
49
|
+
*/
|
|
50
|
+
readonly menu?: {
|
|
51
|
+
readonly accent?: 'subtle' | 'bold';
|
|
52
|
+
readonly color?: 'default' | 'inverted' | 'translucent' | 'inverted-translucent';
|
|
53
|
+
};
|
|
25
54
|
/** Hues of the feedback families. */
|
|
26
55
|
readonly feedback?: {
|
|
27
56
|
readonly success?: number;
|
|
@@ -29,6 +58,15 @@ interface OklchKnobs {
|
|
|
29
58
|
readonly error?: number;
|
|
30
59
|
readonly info?: number;
|
|
31
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* What a hover is made of: `neutral` mixes the element's own text, as
|
|
63
|
+
* before; `surface` (the default) mixes a painted surface's own paint where
|
|
64
|
+
* one names it (an alert band, a tone's fill), the text elsewhere; `accent`
|
|
65
|
+
* leans every hover on the accent at low chroma, as Fluid's. One override
|
|
66
|
+
* changes every component. Painted surfaces read the derived `surface-ink`
|
|
67
|
+
* knob below (0 in `neutral`), so the choice also switches at runtime.
|
|
68
|
+
*/
|
|
69
|
+
readonly stateHue?: 'neutral' | 'surface' | 'accent';
|
|
32
70
|
}
|
|
33
71
|
declare const oklch: (knobs: OklchKnobs) => Readonly<{
|
|
34
72
|
knob: {
|
|
@@ -37,6 +75,7 @@ declare const oklch: (knobs: OklchKnobs) => Readonly<{
|
|
|
37
75
|
'accent-l': string;
|
|
38
76
|
'accent-c-dark': string;
|
|
39
77
|
'accent-l-dark': string;
|
|
78
|
+
'neutral-h': string;
|
|
40
79
|
'secondary-shift': string;
|
|
41
80
|
'tertiary-shift': string;
|
|
42
81
|
'surface-c': string;
|
|
@@ -50,6 +89,19 @@ declare const oklch: (knobs: OklchKnobs) => Readonly<{
|
|
|
50
89
|
'error-h': string;
|
|
51
90
|
'info-h': string;
|
|
52
91
|
'syntax-c': string;
|
|
92
|
+
'chart-h': string;
|
|
93
|
+
'popup-bold': string;
|
|
94
|
+
'popup-invert': string;
|
|
95
|
+
'popup-alpha': string;
|
|
96
|
+
'popup-blur': string;
|
|
97
|
+
'state-hover': string;
|
|
98
|
+
'state-tint': string;
|
|
99
|
+
'state-tint-dark': string;
|
|
100
|
+
'surface-ink': string;
|
|
101
|
+
'image-edge': string;
|
|
102
|
+
'shadow-h': string;
|
|
103
|
+
'shadow-c': string;
|
|
104
|
+
'raise-dark': string;
|
|
53
105
|
};
|
|
54
106
|
hue: {
|
|
55
107
|
accent: string;
|
|
@@ -59,6 +111,7 @@ declare const oklch: (knobs: OklchKnobs) => Readonly<{
|
|
|
59
111
|
};
|
|
60
112
|
surface: {
|
|
61
113
|
base: string;
|
|
114
|
+
field: string;
|
|
62
115
|
muted: string;
|
|
63
116
|
subtle: string;
|
|
64
117
|
default: string;
|
|
@@ -109,6 +162,21 @@ declare const oklch: (knobs: OklchKnobs) => Readonly<{
|
|
|
109
162
|
shadow: {
|
|
110
163
|
color: string;
|
|
111
164
|
};
|
|
165
|
+
state: {
|
|
166
|
+
hover: string;
|
|
167
|
+
tint: string;
|
|
168
|
+
'tint-hover': string;
|
|
169
|
+
edge: string;
|
|
170
|
+
ink: string;
|
|
171
|
+
};
|
|
172
|
+
popup: {
|
|
173
|
+
surface: string;
|
|
174
|
+
inverted: string;
|
|
175
|
+
ink: string;
|
|
176
|
+
highlight: string;
|
|
177
|
+
'highlight-ink': string;
|
|
178
|
+
blur: string;
|
|
179
|
+
};
|
|
112
180
|
success: {
|
|
113
181
|
default: string;
|
|
114
182
|
hover: string;
|
|
@@ -145,6 +213,13 @@ declare const oklch: (knobs: OklchKnobs) => Readonly<{
|
|
|
145
213
|
'on-fill': string;
|
|
146
214
|
ink: string;
|
|
147
215
|
};
|
|
216
|
+
chart: {
|
|
217
|
+
'1': string;
|
|
218
|
+
'2': string;
|
|
219
|
+
'3': string;
|
|
220
|
+
'4': string;
|
|
221
|
+
'5': string;
|
|
222
|
+
};
|
|
148
223
|
syntax: {
|
|
149
224
|
keyword: string;
|
|
150
225
|
function: string;
|
|
@@ -160,4 +235,4 @@ declare const oklch: (knobs: OklchKnobs) => Readonly<{
|
|
|
160
235
|
type OklchTheme = ReturnType<typeof oklch>;
|
|
161
236
|
//#endregion
|
|
162
237
|
export { OklchTheme as n, oklch as r, OklchKnobs as t };
|
|
163
|
-
//# sourceMappingURL=oklch-
|
|
238
|
+
//# sourceMappingURL=oklch-BCbqJ1aM.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oklch-BCbqJ1aM.d.mts","names":[],"sources":["../src/theme/oklch.ts"],"mappings":";UAYiB;;WAEN;aACE;aACA;aACA;;aAEA;eAAkB;eAAqB;;;;WAGzC;WACA;;;;;;;WAOA;aAAqB;;;;;;;WAMrB;aAAoB;aAAqB;;;WAEzC;;WAEA;;WAEA;;WAEA;;;;;;;;WAQA;aACE;aACA;;;WAGF;aACE;aACA;aACA;aACA;;;;;;;;;;WAUF;;cAoHE,QAAK,OAAW,eAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+CjC;IACA;IACA;IACA;;;IAGA;IAOA;IAIA;IACA;IACA;IACA;IAGA;;;IAMA;IACA;IACA;IACA;IACA;IACA;;;IAOA;IACA;IACA;IAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcA;;;IAoBA;IACA;IAIA;IAIA;IACA;;;IAIA;IASA;IAKA;IACA;IAKA;IACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUA;IACA;IACA;IACA;IACA;;;IAMA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;KAKM,aAAa,kBAAkB"}
|
|
@@ -50,18 +50,18 @@ let scheduled = false;
|
|
|
50
50
|
const current = () => {
|
|
51
51
|
if (page !== void 0 && (page.element === void 0 || page.element.isConnected) && page.counted.every((sheet) => sheet.isConnected)) return page;
|
|
52
52
|
const present = /* @__PURE__ */ new Set();
|
|
53
|
-
let
|
|
53
|
+
let order;
|
|
54
54
|
const counted = Array.from(document.querySelectorAll("style"));
|
|
55
55
|
for (const sheet of counted) {
|
|
56
56
|
const text = sheet.textContent ?? "";
|
|
57
57
|
for (const [, className] of text.matchAll(COMPILED_CLASS)) if (className !== void 0) present.add(className);
|
|
58
|
-
|
|
58
|
+
order ??= text.match(LAYER_STATEMENT)?.[0];
|
|
59
59
|
}
|
|
60
60
|
page = {
|
|
61
61
|
present,
|
|
62
62
|
globals: /* @__PURE__ */ new Set(),
|
|
63
63
|
handled: /* @__PURE__ */ new WeakSet(),
|
|
64
|
-
|
|
64
|
+
order,
|
|
65
65
|
counted,
|
|
66
66
|
element: void 0
|
|
67
67
|
};
|
|
@@ -74,7 +74,7 @@ const flush = () => {
|
|
|
74
74
|
if (into.element === void 0) {
|
|
75
75
|
const element = document.createElement("style");
|
|
76
76
|
element.setAttribute("data-foldkit-styles", "");
|
|
77
|
-
element.textContent = into.
|
|
77
|
+
element.textContent = into.order ?? layerOrder();
|
|
78
78
|
document.head.appendChild(element);
|
|
79
79
|
into.element = element;
|
|
80
80
|
}
|
|
@@ -132,4 +132,4 @@ const drawMarked = (draw) => {
|
|
|
132
132
|
//#endregion
|
|
133
133
|
export { register as a, ensure as i, drawMarked as n, usedIn as o, isMarking as r, SLOT_MARK as t };
|
|
134
134
|
|
|
135
|
-
//# sourceMappingURL=slotMark-
|
|
135
|
+
//# sourceMappingURL=slotMark-D5MmzQQI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotMark-D5MmzQQI.mjs","names":[],"sources":["../src/inject.ts","../src/slotMark.ts"],"sourcesContent":["/**\n * Styles that arrive with what uses them. Compiling a Style registers each\n * class it produces with that class's CSS; the name is a hash of the CSS, so\n * the registry is the same on the server and in the browser, and holds no DOM.\n *\n * When a Slot draws a class in a browser, the CSS is queued, and one microtask\n * later (after the patch, before the browser paints) appended to a single\n * `<style data-foldkit-styles>` element, unless a stylesheet on the page\n * already carries the class: a static sheet and injection never repeat each\n * other.\n *\n * The registry holds every class compiled in the process and never lets one\n * go, which is bounded by the code when Styles are defined once, as they are\n * meant to be. A Style compiled during a render from data (a width from the\n * Model) would register a class per value; such a value belongs in an inline\n * custom property read by a rule instead.\n */\nimport { standard } from './layers.js'\n\nconst registry = new Map<string, string>()\n\n/** Records the CSS a compiled class stands for. Called by the compiler. */\nexport const register = (className: string, css: string): void => {\n if (!registry.has(className)) registry.set(className, css)\n}\n\n/** A compiled class in CSS text: `.style-` and its hash. */\nconst COMPILED_CLASS = /\\.(style-[0-9a-z]+)/g\n\n/** An `@layer` order statement, as opposed to a layer block. */\nconst LAYER_STATEMENT = /@layer [^{};]+;/g\n\n/** The standard layer order, as one `@layer` statement. */\nconst layerOrder = (): string => standard.declare.globalCss?.join('') ?? ''\n\n/**\n * The CSS for every compiled class that `html` carries, after the standard\n * layer order: what a server puts in a page's head, so it is styled before\n * any script runs. The browser's injection then finds these classes present\n * and adds nothing twice.\n */\nexport const usedIn = (html: string): string => {\n const found = new Set<string>()\n for (const [className] of html.matchAll(/style-[0-9a-z]+/g)) {\n if (registry.has(className)) found.add(className)\n }\n return [layerOrder(), ...[...found].map(className => registry.get(className) ?? '')].join('')\n}\n\n/** What the page carries: counted from its sheets once, then kept as CSS is queued. */\ninterface Page {\n readonly present: Set<string>\n readonly globals: Set<string>\n /** Contributions already handled whole: a Style's are the same object every render. */\n readonly handled: WeakSet<object>\n /** The layer order a sheet on the page declares, which the injected sheet repeats. */\n readonly order: string | undefined\n /** The sheets counted, so a removed one means counting again. */\n readonly counted: ReadonlyArray<HTMLStyleElement>\n element: HTMLStyleElement | undefined\n}\n\nlet page: Page | undefined\nlet pending: Array<string> = []\nlet scheduled = false\n\n/**\n * The page as injection knows it, counted afresh when a sheet it counted or its\n * own element has been removed (by a test's cleanup, or an application\n * replacing the head).\n */\nconst current = (): Page => {\n if (\n page !== undefined &&\n (page.element === undefined || page.element.isConnected) &&\n page.counted.every(sheet => sheet.isConnected)\n )\n return page\n const present = new Set<string>()\n let order: string | undefined\n const counted = Array.from(document.querySelectorAll('style'))\n for (const sheet of counted) {\n const text = sheet.textContent ?? ''\n for (const [, className] of text.matchAll(COMPILED_CLASS))\n if (className !== undefined) present.add(className)\n order ??= text.match(LAYER_STATEMENT)?.[0]\n }\n page = {\n present,\n globals: new Set(),\n handled: new WeakSet(),\n order,\n counted,\n element: undefined,\n }\n return page\n}\n\nconst flush = (): void => {\n scheduled = false\n if (pending.length === 0) return\n const into = current()\n if (into.element === undefined) {\n const element = document.createElement('style')\n element.setAttribute('data-foldkit-styles', '')\n // A layer order first: the page's own, or the standard one where it has\n // none. Layers are ordered by where they are first named, so an injected\n // `@layer components { … }` that came to stand ahead of the page's order\n // (a test's sheet, or an application's, put in after it) would otherwise\n // make `components` the first layer, under the reset.\n element.textContent = into.order ?? layerOrder()\n document.head.appendChild(element)\n into.element = element\n }\n into.element.appendChild(document.createTextNode(pending.join('')))\n pending = []\n}\n\n/**\n * Queues the CSS of each registered class a contribution draws that the page\n * does not carry yet, and its global CSS (keyframes, a theme root) once.\n * Outside a browser it does nothing: a server extracts what it rendered instead.\n */\nexport const ensure = (contribution: {\n readonly classes?: ReadonlyArray<string>\n readonly globalCss?: string\n}): void => {\n if (typeof document === 'undefined') return\n const into = current()\n if (into.handled.has(contribution)) return\n for (const className of contribution.classes ?? []) {\n if (into.present.has(className)) continue\n const css = registry.get(className)\n if (css === undefined) continue\n into.present.add(className)\n pending.push(css)\n }\n const globalCss = contribution.globalCss\n // A layer order is the page's to declare, so a Style's own is not repeated.\n if (globalCss !== undefined && globalCss !== '' && !into.globals.has(globalCss)) {\n into.globals.add(globalCss)\n pending.push(globalCss.replace(LAYER_STATEMENT, ''))\n }\n // Frozen, a contribution cannot draw other classes next time it is drawn.\n if (Object.isFrozen(contribution)) into.handled.add(contribution)\n if (pending.length > 0 && !scheduled) {\n scheduled = true\n queueMicrotask(flush)\n }\n}\n","/**\n * Marking the elements Slots draw with the Slot's name, for\n * `foldkit-mixins/testing`'s `Inert.draw`. Internal: the package index does not\n * export it, and a view drawn for real is never marked.\n */\n\n/** The data attribute a marked element carries: `data-fk-slot=\"row\"`. */\nexport const SLOT_MARK = 'fk-slot'\n\nlet marking = false\n\n/** Whether Slots mark what they draw: only while `drawMarked` runs. */\nexport const isMarking = (): boolean => marking\n\n/** Draws with every Slot, however deeply nested its view, marking its element. */\nexport const drawMarked = <A>(draw: () => A): A => {\n marking = true\n try {\n return draw()\n } finally {\n marking = false\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,MAAM,2BAAW,IAAI,IAAoB;;AAGzC,MAAa,YAAY,WAAmB,QAAsB;CAChE,IAAI,CAAC,SAAS,IAAI,SAAS,GAAG,SAAS,IAAI,WAAW,GAAG;AAC3D;;AAGA,MAAM,iBAAiB;;AAGvB,MAAM,kBAAkB;;AAGxB,MAAM,mBAA2B,SAAS,QAAQ,WAAW,KAAK,EAAE,KAAK;;;;;;;AAQzE,MAAa,UAAU,SAAyB;CAC9C,MAAM,wBAAQ,IAAI,IAAY;CAC9B,KAAK,MAAM,CAAC,cAAc,KAAK,SAAS,kBAAkB,GACxD,IAAI,SAAS,IAAI,SAAS,GAAG,MAAM,IAAI,SAAS;CAElD,OAAO,CAAC,WAAW,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,KAAI,cAAa,SAAS,IAAI,SAAS,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE;AAC9F;AAeA,IAAI;AACJ,IAAI,UAAyB,CAAC;AAC9B,IAAI,YAAY;;;;;;AAOhB,MAAM,gBAAsB;CAC1B,IACE,SAAS,KAAA,MACR,KAAK,YAAY,KAAA,KAAa,KAAK,QAAQ,gBAC5C,KAAK,QAAQ,OAAM,UAAS,MAAM,WAAW,GAE7C,OAAO;CACT,MAAM,0BAAU,IAAI,IAAY;CAChC,IAAI;CACJ,MAAM,UAAU,MAAM,KAAK,SAAS,iBAAiB,OAAO,CAAC;CAC7D,KAAK,MAAM,SAAS,SAAS;EAC3B,MAAM,OAAO,MAAM,eAAe;EAClC,KAAK,MAAM,GAAG,cAAc,KAAK,SAAS,cAAc,GACtD,IAAI,cAAc,KAAA,GAAW,QAAQ,IAAI,SAAS;E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AACF;;;;;;;;;AC9IA,MAAa,YAAY;AAEzB,IAAI,UAAU;;AAGd,MAAa,kBAA2B;;AAGxC,MAAa,cAAiB,SAAqB;CACjD,UAAU;CACV,IAAI;EACF,OAAO,KAAK;CACd,UAAU;EACR,UAAU;CACZ;AACF"}
|
|
@@ -1 +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"],"mappings":";;;;;;;;;;;cAKa;UAEI,cAAc,qBAAqB;YACxC;aACC,MAAM;aACN,MAAM;;WAER,MAAM;WACN,MAAM;;KAGLA,QAAM;KAENC,SAAO,KACjB,UAAU,yBAAyB,QAAQ,OAAO,mBAAmB;KAE3D,OAAO,KAAK,UAAU,oBAAoB,aAAa;KAEvDC,UAAQ,gCAAgCD,SAAO;cAE9CE,eAAc,2BAA2B,qBAAmB,MACjE,MAAI,MACJ,SACL,cAAc,MAAM;cAcVC,OAAE,mBAAqB,SAASJ;cAGhC,SAAM,gBAAoBA;;;;KCtC3B,4BAA4BK;UAEvB,WACf,8BACA,yBAAyB,0CACjBA,oCAAkD;WACjD,SAAS;;KAGRC,QAAM,4BAA4B;KAClCC,SAAO,KAAKC,SAAqB;KACjC,QAAQ,gCAAgCC,UAAsB;KAC9D,UAAU,KACpB,UAAU,sBAAsB,WAAWD,SAAqB;KACtD,kBAAkB,KAAK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Ae,WAAW,cAAc,UAAU,WAAW;UAExD;WACN;WACA,YAAY;;cA2CV,UAAW,SAAO,MACvB,eAAe,sBAAoB,eAC1B,cAAc,mBAAmB,WAAS,UAChD,mBACR,eAAe;;;;KCjDN,YAAY,SAAS;;;;;;WAMtB,QAAQ,OAAO,eAAe,UAAU,OAAO,aAAa,eAAe;;;;;;;;;;WAU3E,aAAa,aAAa,SAAS,0BAC1C,MAAM,UACN,OAAO,OAAO,aAAa,OAAO,UAAU,GAAG,YAAY,UAAU,MAAM,SAAS,MACpF,MAAM,SACH;;KAGK,aAAa,OAAO,uBACpB,WAAW,QAAQ,YAAY,SAAS;KAGxC,eAAe,OAAO,OAAO,YACvC,OAAO,OACP,OAAO,aAAa,OAAO,UAC3B,GAAG,YAAY,aACZ;UAEY,SAAS,OAAO,OAAO,iBAAiB,SAAS,SAAS,OAAO,OAAO;GACtF,OAAO,OAAO,GAAG,YAAY,WAAW;WAChC;WACA,OAAO;WACP,QAAQ,cAAc,SAAS;WAC/B,QAAQ,eAAe,OAAO,OAAO;;;
|
|
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"],"mappings":";;;;;;;;;;;cAKa;UAEI,cAAc,qBAAqB;YACxC;aACC,MAAM;aACN,MAAM;;WAER,MAAM;WACN,MAAM;;KAGLA,QAAM;KAENC,SAAO,K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,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { C as className, S as viewTransitionName, T as DiagnosticError, _ as self, a as container, b as toStyleValue, c as global, d as keyframes, f as make$4, g as responsive, h as pseudo, i as compose$1, l as grid, m as nest, n as at, o as empty$1, p as media, r as classPiece, s as enter, t as allowDiscrete, u as inline, v as states, w as css, x as vars, y as supports } from "./styleValue-Cj4YjgVB.mjs";
|
|
3
3
|
import { a as isUnordered, i as declaredNames, o as layerOf, s as topLevelBlocks } from "./layers-keV38soP.mjs";
|
|
4
|
-
import { a as register, i as ensure, o as usedIn, r as isMarking, t as SLOT_MARK } from "./slotMark-
|
|
4
|
+
import { a as register, i as ensure, o as usedIn, r as isMarking, t as SLOT_MARK } from "./slotMark-D5MmzQQI.mjs";
|
|
5
5
|
import { createKeyedLazy, createLazy, inertHtml } from "foldkit/html";
|
|
6
6
|
import { Stream } from "effect";
|
|
7
7
|
//#region src/metadataToken.ts
|
|
@@ -1266,4 +1266,4 @@ const Style = {
|
|
|
1266
1266
|
//#endregion
|
|
1267
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 };
|
|
1268
1268
|
|
|
1269
|
-
//# sourceMappingURL=style-
|
|
1269
|
+
//# sourceMappingURL=style-vLRL50Ar.mjs.map
|