foldkit-mixins 0.10.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 +53 -15
- package/dist/app.d.mts +6 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +2 -2
- package/dist/{core-CUw_n1Nd.d.mts → core-Cq9PThXv.d.mts} +9 -11
- package/dist/core-Cq9PThXv.d.mts.map +1 -0
- package/dist/defaults.d.mts +1 -1
- package/dist/defaults.d.mts.map +1 -1
- package/dist/defaults.mjs +1 -1
- package/dist/defaults.mjs.map +1 -1
- package/dist/foundations.d.mts.map +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/layers.d.mts +4 -4
- package/dist/layers.d.mts.map +1 -1
- package/dist/layers.mjs +1 -2
- package/dist/layout.d.mts +11 -11
- package/dist/layout.d.mts.map +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/prose.d.mts +2 -2
- package/dist/prose.d.mts.map +1 -1
- package/dist/{root-xyWS6geK.d.mts → root-DCb6aqif.d.mts} +3 -3
- package/dist/root-DCb6aqif.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-BtIF2pHo.d.mts → slotView-8_CHU9i7.d.mts} +4 -6
- package/dist/slotView-8_CHU9i7.d.mts.map +1 -0
- package/dist/{style-CtCqaL0l.d.mts → style-moq41T8O.d.mts} +113 -42
- package/dist/style-moq41T8O.d.mts.map +1 -0
- package/dist/{style-CmHD4Ul3.mjs → style-vLRL50Ar.mjs} +6 -3
- package/dist/style-vLRL50Ar.mjs.map +1 -0
- package/dist/styleValue-DEsUAC4v.d.mts +145 -0
- package/dist/styleValue-DEsUAC4v.d.mts.map +1 -0
- package/dist/testing.d.mts +84 -22
- 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 +113 -147
- package/dist/theme.d.mts.map +1 -1
- package/dist/theme.mjs +169 -11
- 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 +53 -18
- package/dist/utilities.d.mts.map +1 -1
- package/dist/utilities.mjs +140 -4
- package/dist/utilities.mjs.map +1 -1
- package/package.json +9 -9
- package/dist/core-CUw_n1Nd.d.mts.map +0 -1
- package/dist/oklch-CDSDQNWl.d.mts.map +0 -1
- package/dist/root-xyWS6geK.d.mts.map +0 -1
- package/dist/slotMark-DK75y0GJ.mjs.map +0 -1
- package/dist/slotView-BtIF2pHo.d.mts.map +0 -1
- package/dist/style-CmHD4Ul3.mjs.map +0 -1
- package/dist/style-CtCqaL0l.d.mts.map +0 -1
- package/dist/styleValue-BavTe9MZ.d.mts +0 -72
- package/dist/styleValue-BavTe9MZ.d.mts.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
|
|
|
@@ -276,6 +275,7 @@ one.
|
|
|
276
275
|
| `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
276
|
| `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
277
|
| `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` |
|
|
278
|
+
| `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
279
|
| `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
280
|
| `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
281
|
| `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 |
|
|
@@ -334,8 +334,8 @@ Beyond `self`, `pseudo`, `media`, `supports`, `container` and `nest`, the rule p
|
|
|
334
334
|
### Theme from a few knobs
|
|
335
335
|
|
|
336
336
|
`foldkit-mixins/theme` extends the root `Theme` with the pieces a page ships. `Theme.oklch` takes
|
|
337
|
-
an accent color and a few knobs (hue shifts, surface saturation and contrast, a
|
|
338
|
-
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,
|
|
339
339
|
tertiary and feedback families. Only the `knob` group holds literals; every other value is a CSS
|
|
340
340
|
expression over other tokens (`oklch(from …)`, `color-mix()`, `light-dark()`), so the browser does
|
|
341
341
|
the derivation and one knob override recolors everything below it. Each family (`accent`,
|
|
@@ -345,14 +345,42 @@ line in it that stands off the base; and two text colors named for where they go
|
|
|
345
345
|
text on that fill (near white on a mid accent), and `ink` is text in the family's color on the
|
|
346
346
|
base surface, dark enough to read in a light scheme and light enough in a dark one. Colored text
|
|
347
347
|
is `ink`, never `default`. The surfaces are the base at a few lightnesses with its chroma, so a
|
|
348
|
-
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
|
|
349
350
|
schemes, and the focus ring, `outline.focus`, is the accent. The `syntax` group colors code by
|
|
350
351
|
the kinds a tokenizer names (`syntax-keyword` is `--fk-syntax-keyword`, as
|
|
351
352
|
`foldkit-richtext-code` and its Shiki adapter name them): `keyword`, `function` and `type` in
|
|
352
353
|
the accent, secondary and tertiary hues, `string`, `number` and `property` in the success,
|
|
353
354
|
warning and info hues, all at one lightness per scheme and the `syntaxChroma` knob's chroma, and
|
|
354
|
-
`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
|
|
355
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.
|
|
356
384
|
|
|
357
385
|
A theme reaches the page as pieces, and the page chooses the layers:
|
|
358
386
|
|
|
@@ -389,9 +417,14 @@ under new class names that no view attaches.
|
|
|
389
417
|
|
|
390
418
|
`omit` leaves out the tokens another theme already declared, so the scales go out once in
|
|
391
419
|
`tokens` and the palette once in `theme`. Which theme is active is a Model fact: the view writes
|
|
392
|
-
`data-theme` on the root, and `Theme.scoped` only says what the value means. A scheme the
|
|
393
|
-
picks
|
|
394
|
-
scheme the
|
|
420
|
+
`data-theme` on the root, and `Theme.scoped` only says what the value means. A scheme the browser
|
|
421
|
+
picks needs nothing, because the `light-dark()` values follow it. A scheme the user picks is a
|
|
422
|
+
`color-scheme` override on the root, which must be in place before the first paint or a reader
|
|
423
|
+
who chose dark sees one light frame: `Theme.schemeScript(key?)` is the text of a head `<script>`
|
|
424
|
+
that applies the one kept in `localStorage`, `Theme.chooseScheme(scheme, key?)` (`'light'`,
|
|
425
|
+
`'dark'` or `'system'`) is a Command's Effect that applies and keeps a choice, and
|
|
426
|
+
`Theme.currentScheme()` reads back what is applied, for the Model once the browser takes the page
|
|
427
|
+
over (the docs site does it in its SSR plan's `boot`). The palette
|
|
395
428
|
needs relative color syntax and `light-dark()` (Chrome 123, Firefox 128, Safari 17.5).
|
|
396
429
|
|
|
397
430
|
`Style.responsive(Theme.tokens.breakpoint, { md: { … } })` and
|
|
@@ -531,7 +564,14 @@ step is a type error and the value still follows the `density` knob and theme ov
|
|
|
531
564
|
(`size`), `font` (`weight`), `leading`, `rounded` (`radius`), `color` and `bg` (a `Theme.oklch`
|
|
532
565
|
color as `'group.name'`), `items` and `justify` (`'between'` is `space-between`), and the
|
|
533
566
|
constants `flex`, `column`, `grid`, `block`, `hidden`, `wFull`, `textCenter`, `uppercase`,
|
|
534
|
-
`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
|
|
535
575
|
layer of the style it is composed into, and a plain declaration after it wins per property. A
|
|
536
576
|
value off the scale is a plain declaration (`{ fontSize: '3.75rem' }`); a color outside
|
|
537
577
|
`Theme.oklch`'s groups is read through `t`.
|
|
@@ -858,8 +898,9 @@ a page that imports it fails fast naming `vite`.
|
|
|
858
898
|
## `@foldkit/ui`
|
|
859
899
|
|
|
860
900
|
`foldkit-mixins-ui` adapts `@foldkit/ui` components that expose attribute bundles or a consumer
|
|
861
|
-
render seam. Button, Input, Checkbox, Disclosure, Dialog, Popover, Tooltip,
|
|
862
|
-
|
|
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.
|
|
863
904
|
|
|
864
905
|
Some components build their entire element tree internally and expose no attachment seam; those
|
|
865
906
|
cannot be adapted without changing the component API. Others simply do not have an adapter yet.
|
|
@@ -872,9 +913,6 @@ The API is still settling (`0.2.x`). This package replaces none of Foldkit's sta
|
|
|
872
913
|
machinery — Commands, Subscriptions, Mounts, ManagedResources, Models or Submodels. Its job is
|
|
873
914
|
narrower: make view customization explicit, typed and composable.
|
|
874
915
|
|
|
875
|
-
The [design note](https://github.com/doeixd/foldkit-plus/blob/main/docs/design/mixins-DESIGN.md)
|
|
876
|
-
records the substrate probes and implementation decisions.
|
|
877
|
-
|
|
878
916
|
## See also
|
|
879
917
|
|
|
880
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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as StyleValue } from "./styleValue-DEsUAC4v.mjs";
|
|
2
2
|
import { standard } from "./layers.mjs";
|
|
3
|
-
import { a as NamedStyle,
|
|
4
|
-
import { a as compose, r as ThemeTokens, t as Refs } from "./core-
|
|
5
|
-
import { n as RootOptions } from "./root-
|
|
6
|
-
import {
|
|
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
|
+
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`. */
|
|
@@ -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:
|
|
43
|
+
readonly make: typeof make;
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
46
46
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -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,
|
|
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,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
|
/**
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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:
|
|
33
|
-
readonly ref:
|
|
34
|
-
readonly variables:
|
|
35
|
-
readonly lightDark:
|
|
36
|
-
readonly compose:
|
|
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,
|
|
40
|
-
//# sourceMappingURL=core-
|
|
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"}
|
package/dist/defaults.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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;
|
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,wBAAwB,EAAE,WAAW,UAAU,EAAE;CACjD,wBAAwB,EAAE,WAAW,MAAM,EAAE;AAC/C,CAAC,CAAC,KAAK,EAAE,CACX;;AAGA,MAAa,QAAoB,OAC/B;CACE,mBAAmB,EAAE,aAAa,UAAU,EAAE;CAC9C,yBAAyB,EAAE,mBAAmB,UAAU,EAAE;CAC1D,wFAAwF,EAAE,gBAAgB,KAAK,EAAE,SAAS,EAAE,iBAAiB,WAAW,EAAE;AAC5J,CAAC,CAAC,KAAK,EAAE,CACX;;AAGA,MAAa,OAAmB,OAC9B;CACE,8CAA8C,EAAE,aAAa,yBAAyB,EAAE,aAAa,EAAE,WAAW,UAAU,EAAE;CAC9H,6DAA6D,EAAE,aAAa,KAAK,EAAE,cAAc,EAAE,iBAAiB,aAAa,EAAE;CACnI,0CAA0C,EAAE,eAAe,KAAK,EAAE,SAAS,EAAE,mBAAmB,cAAc,EAAE,4CAA4C,EAAE,aAAa,KAAK,EAAE;CAClL,0CAA0C,EAAE,eAAe,KAAK,EAAE,SAAS,EAAE,kBAAkB,cAAc,EAAE;CAC/G,uBAAuB,EAAE,YAAY,MAAM,EAAE,UAAU,EAAE,eAAe,KAAK,EAAE,SAAS,EAAE,kBAAkB,aAAa,EAAE,iBAAiB,EAAE,aAAa,KAAK,EAAE,cAAc,EAAE,kBAAkB,aAAa,EAAE,+BAA+B,EAAE,gBAAgB,OAAO,EAAE;AAC/Q,CAAC,CAAC,KAAK,EAAE,CACX;;AAGA,MAAa,WAAuB,OAClC;CACE,sHAAsH,EAAE,YAAY,QAAQ,EAAE,GAAG,EAAE,YAAY,SAAS,EAAE,UAAU,EAAE,eAAe,KAAK,EAAE,SAAS,EAAE,mBAAmB,cAAc,EAAE,iBAAiB,EAAE,aAAa,KAAK,EAAE,cAAc,EAAE,gBAAgB,OAAO,EAAE,SAAS,EAAE,gBAAgB,WAAW,EAAE,2BAA2B,EAAE,eAAe,OAAO,EAAE,GAAG,EAAE,eAAe,UAAU,EAAE;CACvc,iEAAiE,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundations.d.mts","names":[],"sources":["../src/foundations.ts"],"mappings":";;;;;;;qBA4Ca,
|
|
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 {
|
|
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-
|
|
5
|
-
import { a as NamedStyle, c as
|
|
6
|
-
import { n as Theme, r as ThemeTokens, t as Refs } from "./core-
|
|
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
|
package/dist/index.d.mts.map
CHANGED
|
@@ -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;
|
|
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;;UAGvB,SAAS;WACf,KAAK,MAAM,GAAG;WACd,YAAY,MAAM,GAAG;;;;cAKnB,KAAM,GAAC,OAAS,cAAc,IAAE,UAAY,SAAS,OAAK,MAAM;UAuC5D,gBAAgB,OAAO;;WAE7B,YAAY;;WAEZ,QAAQ,OAAO,UAAU;;WAEzB;;WAEA;;;;;;;;cASEC,aACV,OAAK,OAAS,WACd,OAAO,SAAO,SACJ,gBAAgB,OAAO,WAC/BC,cAAuB,OAAO,OAAO;;;;UClFzBC,UAAQ,OAAO;WACrB,eAAe;WACf,eAAe;WACf,OAAO,OAAO;;WAEd,KAAK,OAAO;;cAGVC,aACV,OAAK,OAAS,WACd,OAAO,SAAO,SAAWD,UAAQ,OAAO,WAASE,cAAuB,OAAO,OAAO;;;;UCTxEC,UAAQ,OAAO;WACrB,eAAe;WACf,aAAa;WACb,oBAAoB;WACpB,cAAc;WACd,KAAK,OAAO;;WAEZ,WAAW,OAAO;WAClB,YAAY,OAAO;;;cAIjB,MAAG;EACd;EACA;EACA;EACA;;cAGWC,aACV,OAAK,OAAS,WACd,OAAO,SAAO,SAAWD,UAAQ,OAAO,WAASE,cAAuB,OAAO,OAAO;;;;UClBxE;WACN;WACA;;WAEA;;WAEA;;;cAUE,OAAI,eACF,aACF,WACA,mBAAiB,QACpB;UAuBOC,UAAQ,OAAO,SAAS,eAAe;WAC7C,eAAe;WACf,QAAQ,OAAO;WACf,WAAW,iBAAiB;;WAE5B,QAAQ,OAAO;;cAGbC,aACV,OAAK,OAAS,WACd,OAAO,SAAO,SACJD,UAAQ,OAAO,SAAS,WAChCE,cAAuB,OAAO,OAAO;;;;KC3D9B;UAEK,QAAQ,OAAO;WACrB,eAAe;WACf,QAAQ,OAAO,UAAU;;;WAGzB;;cAGE,WACV,OAAK,OAAS,WACd,OAAO,SAAO,SAAW,QAAQ,OAAO,WAASC,cAAuB,OAAO,OAAO;;;;;;;;;;;;;cEf5E,OAAI,cAAgB;;cAIpB,MAAG;;cAGH,QAAE,WAAkB;;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-
|
|
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";
|
package/dist/layers.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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<"
|
|
41
|
+
export declare const standard: Layers<"app" | "components" | "defaults" | "layouts" | "reset" | "theme" | "tokens" | "utilities" | "variants">;
|
|
42
42
|
export declare const Layers: {
|
|
43
|
-
readonly define:
|
|
44
|
-
readonly standard: Layers<"
|
|
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
|
package/dist/layers.d.mts.map
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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 {
|
|
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:
|
|
100
|
+
readonly stack: typeof stack;
|
|
101
101
|
readonly intrinsic: StyleValue;
|
|
102
|
-
readonly cluster:
|
|
103
|
-
readonly split:
|
|
104
|
-
readonly sidebar:
|
|
102
|
+
readonly cluster: typeof cluster;
|
|
103
|
+
readonly split: typeof split;
|
|
104
|
+
readonly sidebar: typeof sidebar;
|
|
105
105
|
readonly aside: StyleValue;
|
|
106
|
-
readonly switcher:
|
|
107
|
-
readonly reel:
|
|
108
|
-
readonly center:
|
|
109
|
-
readonly frame:
|
|
110
|
-
readonly pad:
|
|
111
|
-
readonly autoGrid:
|
|
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
|
package/dist/layout.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.mts","names":[],"sources":["../src/layout.ts"],"mappings":";;;;;;qBAuCa,WAAW;iBAOP;WACN;;WAEA;;WAEA;;;qBAIE,
|
|
1
|
+
{"version":3,"file":"layout.d.mts","names":[],"sources":["../src/layout.ts"],"mappings":";;;;;;qBAuCa,WAAW;iBAOP;WACN;;WAEA;;WAEA;;;qBAIE,QAAK,UAAa,iBAAoB;iBAgBlC;WACN;WACA;WACA;;;qBAIE,UAAO,UAAa,mBAAsB;iBActC;;WAEN;;WAEA;WACA;;WAEA;;;qBAIE,QAAK,UAAa,iBAAoB;;;;;qBAkBtC,OAAO;iBAKH;;WAEN;;WAEA;;WAEA;WACA;;;;;;qBAOE,UAAO,UAAa,mBAAsB;iBAatC;;WAEN;WACA;;;qBAIE,WAAQ,UAAa,oBAAuB;iBAWxC;;WAEN;WACA;;WAEA;WACA;;;qBAaE,OAAI,UAAa,gBAAmB;iBAwBhC;;WAEN;WACA;;WAEA;;;qBAIE,SAAM,UAAa,kBAAqB;iBAepC;;WAEN;;;qBAIE,QAAK,UAAa,iBAAoB;iBAalC;WACN;WACA;;;qBAIE,MAAG,UAAa,eAAkB;iBAU9B;;WAEN;WACA;;;qBAIE,WAAQ,UAAa,oBAAuB;qBAc5C"}
|
|
@@ -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"}
|
package/dist/prose.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
27
|
+
readonly style: typeof style;
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
30
30
|
//# sourceMappingURL=prose.d.mts.map
|
package/dist/prose.d.mts.map
CHANGED
|
@@ -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,
|
|
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 {
|
|
2
|
-
import { r as ThemeTokens } from "./core-
|
|
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-
|
|
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"}
|