@tenphi/tasty 0.0.0-snapshot.1d29633 → 0.0.0-snapshot.1f1c00a
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 +152 -134
- package/dist/{babel-Cg-mJV_t.d.ts → babel-rZcEwPLM.d.ts} +2 -3
- package/dist/chunks/async-storage-CG5HnUT5.js +20 -0
- package/dist/chunks/async-storage-CG5HnUT5.js.map +1 -0
- package/dist/chunks/build-config-CL4eRu2z.js +42 -0
- package/dist/chunks/build-config-CL4eRu2z.js.map +1 -0
- package/dist/{collector-BMT05AmU.js → chunks/collector-D2ARGT2L.js} +21 -117
- package/dist/chunks/collector-D2ARGT2L.js.map +1 -0
- package/dist/chunks/config-engine-DEmmPPdp.js +272 -0
- package/dist/chunks/config-engine-DEmmPPdp.js.map +1 -0
- package/dist/chunks/css-definitions-DotDkIXt.js +876 -0
- package/dist/chunks/css-definitions-DotDkIXt.js.map +1 -0
- package/dist/chunks/css-resources-P7IBUUZs.js +142 -0
- package/dist/chunks/css-resources-P7IBUUZs.js.map +1 -0
- package/dist/chunks/debug-D8pg9RGI.js +502 -0
- package/dist/chunks/debug-D8pg9RGI.js.map +1 -0
- package/dist/chunks/dsl-DRhFWQzo.js +1378 -0
- package/dist/chunks/dsl-DRhFWQzo.js.map +1 -0
- package/dist/chunks/hydration-TRcz5vnk.js +41 -0
- package/dist/chunks/hydration-TRcz5vnk.js.map +1 -0
- package/dist/chunks/react-runtime-BpxlOTbO.js +562 -0
- package/dist/chunks/react-runtime-BpxlOTbO.js.map +1 -0
- package/dist/chunks/runtime-engine-CKFXUH-A.js +2416 -0
- package/dist/chunks/runtime-engine-CKFXUH-A.js.map +1 -0
- package/dist/chunks/runtime-state-BxaLhVdP.js +127 -0
- package/dist/chunks/runtime-state-BxaLhVdP.js.map +1 -0
- package/dist/{merge-styles-CkAcnd0Z.js → chunks/shared-utils-y-HjvPN4.js} +60 -55
- package/dist/chunks/shared-utils-y-HjvPN4.js.map +1 -0
- package/dist/chunks/style-engine-BBbBuSkT.js +5260 -0
- package/dist/chunks/style-engine-BBbBuSkT.js.map +1 -0
- package/dist/{css-writer-b02uBqNF.js → chunks/zero-engine-gJrKBRiw.js} +6 -121
- package/dist/chunks/zero-engine-gJrKBRiw.js.map +1 -0
- package/dist/{collector-BFuqdF2F.d.ts → collector-w4mBj5gd.d.ts} +23 -4
- package/dist/{config-DmFxnBxg.d.ts → config-CZWCzBr6.d.ts} +171 -72
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +9 -6
- package/dist/{index-D1nMkpUe.d.ts → index-G9JuwM9p.d.ts} +263 -247
- package/dist/index.d.ts +5 -5
- package/dist/index.js +11 -921
- package/dist/{merge-styles-Cx_6ySBv.d.ts → merge-styles-VXwJ0Frr.d.ts} +2 -3
- package/dist/ssr/astro-client.d.ts +1 -1
- package/dist/ssr/astro-client.js +1 -14
- package/dist/ssr/astro-client.js.map +1 -1
- package/dist/ssr/astro-middleware-extract-static.d.ts +10 -0
- package/dist/ssr/astro-middleware-extract-static.js +9 -0
- package/dist/ssr/astro-middleware-extract-static.js.map +1 -0
- package/dist/ssr/astro-middleware-extract.d.ts +10 -0
- package/dist/ssr/astro-middleware-extract.js +9 -0
- package/dist/ssr/astro-middleware-extract.js.map +1 -0
- package/dist/ssr/astro-middleware-static.d.ts +3 -2
- package/dist/ssr/astro-middleware-static.js +0 -11
- package/dist/ssr/astro-middleware-static.js.map +1 -1
- package/dist/ssr/astro-middleware.d.ts +3 -2
- package/dist/ssr/astro-middleware.js +0 -12
- package/dist/ssr/astro-middleware.js.map +1 -1
- package/dist/ssr/astro.d.ts +40 -6
- package/dist/ssr/astro.js +157 -93
- package/dist/ssr/astro.js.map +1 -1
- package/dist/ssr/index.d.ts +10 -11
- package/dist/ssr/index.js +4 -4
- package/dist/ssr/index.js.map +1 -1
- package/dist/ssr/next-config.d.ts +64 -0
- package/dist/ssr/next-config.js +128 -0
- package/dist/ssr/next-config.js.map +1 -0
- package/dist/ssr/next.d.ts +9 -8
- package/dist/ssr/next.js +29 -43
- package/dist/ssr/next.js.map +1 -1
- package/dist/static/index.d.ts +8 -9
- package/dist/static/index.js +4 -22
- package/dist/static/index.js.map +1 -1
- package/dist/static/inject.d.ts +1 -2
- package/dist/{index-LC3O3Jj4.d.ts → types-JEY8PVYP.d.ts} +862 -811
- package/dist/zero/babel.d.ts +1 -1
- package/dist/zero/babel.js +41 -107
- package/dist/zero/babel.js.map +1 -1
- package/dist/zero/index.d.ts +6 -7
- package/dist/zero/index.js +1 -1
- package/dist/zero/next.d.ts +3 -5
- package/dist/zero/next.js +0 -31
- package/dist/zero/next.js.map +1 -1
- package/docs/README.md +13 -8
- package/docs/adoption.md +56 -31
- package/docs/ai-agents.md +107 -80
- package/docs/comparison.md +69 -40
- package/docs/configuration.md +179 -114
- package/docs/debug.md +19 -7
- package/docs/design-system.md +41 -22
- package/docs/dsl.md +310 -201
- package/docs/getting-started.md +64 -41
- package/docs/injector.md +63 -26
- package/docs/methodology.md +44 -38
- package/docs/migration-v3.md +49 -49
- package/docs/pipeline.md +32 -8
- package/docs/plugins.md +38 -34
- package/docs/react-api.md +67 -44
- package/docs/runtime-benchmarks.md +388 -0
- package/docs/ssr.md +219 -61
- package/docs/styles.md +95 -18
- package/docs/tasty-static.md +138 -105
- package/package.json +104 -33
- package/dist/async-storage-DKK-wTD4.js +0 -44
- package/dist/async-storage-DKK-wTD4.js.map +0 -1
- package/dist/collector-BMT05AmU.js.map +0 -1
- package/dist/config-DF93rL3u.js +0 -12661
- package/dist/config-DF93rL3u.js.map +0 -1
- package/dist/context-CA8YKeMn.js +0 -24
- package/dist/context-CA8YKeMn.js.map +0 -1
- package/dist/core-B5ybnMP1.js +0 -1529
- package/dist/core-B5ybnMP1.js.map +0 -1
- package/dist/css-writer-b02uBqNF.js.map +0 -1
- package/dist/format-global-rules-DklyaXv-.js +0 -22
- package/dist/format-global-rules-DklyaXv-.js.map +0 -1
- package/dist/format-rules-Cs4e3M9m.js +0 -130
- package/dist/format-rules-Cs4e3M9m.js.map +0 -1
- package/dist/hydrate-aaUSNJZJ.js +0 -37
- package/dist/hydrate-aaUSNJZJ.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/keyframes-BedEzEXk.js +0 -424
- package/dist/keyframes-BedEzEXk.js.map +0 -1
- package/dist/merge-styles-CkAcnd0Z.js.map +0 -1
- package/dist/resolve-recipes-CiyLtJG9.js +0 -144
- package/dist/resolve-recipes-CiyLtJG9.js.map +0 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { C as SheetInfo, Et as StyleDetails, M as StyleResult, Ot as UnitHandler, S as RuleInfo, T as StyleRule, W as ConfigTokens, Y as Styles, _ as KeyframesSteps, a as FontFaceInput, b as RawCSSResult, c as GCConfig, d as InjectOptions, f as InjectResult, g as KeyframesResult, h as KeyframesInfo, i as FontFaceDescriptors, l as GCOptions, lt as StyleHandlerDefinition, n as CounterStyleDescriptors, o as FunctionDefinition, q as RecipeStyles, t as CacheMetrics, u as GlobalInjectResult, v as PropertyDefinition, w as StyleInjectorConfig, x as RootRegistry } from "./types-JEY8PVYP.js";
|
|
2
|
+
//#region src/config-resources.d.ts
|
|
3
|
+
declare function getGlobalFontFaces(): Record<string, FontFaceInput> | null;
|
|
4
|
+
declare function getGlobalCounterStyles(): Record<string, CounterStyleDescriptors> | null;
|
|
5
|
+
declare function getGlobalFunctions(): Record<string, FunctionDefinition> | null;
|
|
6
|
+
//#endregion
|
|
3
7
|
//#region src/prop-handlers.d.ts
|
|
4
8
|
/**
|
|
5
9
|
* Props middleware for tasty components.
|
|
@@ -105,6 +109,8 @@ declare class SheetManager {
|
|
|
105
109
|
* Create a style element and append to document
|
|
106
110
|
*/
|
|
107
111
|
private createStyleElement;
|
|
112
|
+
/** Append a rule to a text-mode sheet while preserving its index mirror. */
|
|
113
|
+
private appendTextRule;
|
|
108
114
|
/**
|
|
109
115
|
* Insert CSS rules as a single block
|
|
110
116
|
*/
|
|
@@ -151,17 +157,25 @@ declare class SheetManager {
|
|
|
151
157
|
*/
|
|
152
158
|
private engineSupportsAtProperty;
|
|
153
159
|
/**
|
|
154
|
-
*
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
*
|
|
160
|
+
* Delete the given classes: their rules leave the sheets and every registry
|
|
161
|
+
* entry pointing at them is dropped.
|
|
162
|
+
*
|
|
163
|
+
* Deciding *what* is unused belongs to `StyleInjector.gc()`, which owns the
|
|
164
|
+
* DOM scan and the capacity policy. This only re-checks that each class is
|
|
165
|
+
* still safe to delete, and reports how many were.
|
|
166
|
+
*
|
|
167
|
+
* @returns Number of classes actually deleted.
|
|
159
168
|
*/
|
|
160
|
-
|
|
169
|
+
deleteClasses(registry: RootRegistry, classNames: Iterable<string>): number;
|
|
161
170
|
/**
|
|
162
171
|
* Get total number of rules across all sheets
|
|
163
172
|
*/
|
|
164
173
|
getTotalRuleCount(registry: RootRegistry): number;
|
|
174
|
+
/**
|
|
175
|
+
* The CSS of one managed sheet, or `null` when it holds none this can read —
|
|
176
|
+
* an empty style element, or a sheet the engine refuses to hand over.
|
|
177
|
+
*/
|
|
178
|
+
private readSheetCSS;
|
|
165
179
|
/**
|
|
166
180
|
* Get CSS text from all sheets (for SSR)
|
|
167
181
|
*/
|
|
@@ -229,6 +243,28 @@ declare class SheetManager {
|
|
|
229
243
|
/**
|
|
230
244
|
* Get the raw CSS content
|
|
231
245
|
*/
|
|
246
|
+
/**
|
|
247
|
+
* The CSS this injector owns in `root`, one entry per sheet, in the order the
|
|
248
|
+
* engine applies them.
|
|
249
|
+
*
|
|
250
|
+
* `getCSSText()` walks the managed sheets only, and raw CSS has its own —
|
|
251
|
+
* which sits before, after, or *between* them depending on how it got there:
|
|
252
|
+
* prepended to `adoptedStyleSheets`, or wherever in `<head>` the first raw
|
|
253
|
+
* injection happened to land, with every managed sheet opened afterwards
|
|
254
|
+
* following it. Reporting a fixed order would describe the opposite winner
|
|
255
|
+
* from the live page whenever two rules of equal specificity meet, so the raw
|
|
256
|
+
* sheet is spliced in at the position the DOM actually gives it.
|
|
257
|
+
*/
|
|
258
|
+
getOwnedCSSInOrder(registry: RootRegistry, root: Document | ShadowRoot): string[];
|
|
259
|
+
/**
|
|
260
|
+
* Top-level rules in the raw sheet.
|
|
261
|
+
*
|
|
262
|
+
* Read from the sheet the engine parsed, not from the text: a raw block is
|
|
263
|
+
* one string but any number of rules, and one rule — `@keyframes`, `@media` —
|
|
264
|
+
* can contain any number of blocks, so counting braces answers neither
|
|
265
|
+
* question.
|
|
266
|
+
*/
|
|
267
|
+
getRawRuleCount(root: Document | ShadowRoot): number;
|
|
232
268
|
getRawCSSText(root: Document | ShadowRoot): string;
|
|
233
269
|
}
|
|
234
270
|
//#endregion
|
|
@@ -237,12 +273,15 @@ declare class StyleInjector {
|
|
|
237
273
|
private sheetManager;
|
|
238
274
|
private config;
|
|
239
275
|
private globalRuleCounter;
|
|
240
|
-
|
|
276
|
+
/** Cancels the scheduled sweep, whichever timer scheduled it. */
|
|
277
|
+
private cancelPendingGC;
|
|
241
278
|
private namePrefix;
|
|
242
279
|
private classRegex;
|
|
243
280
|
private rscClassRegex;
|
|
244
281
|
/** @internal — exposed for debug utilities only */
|
|
245
282
|
get _sheetManager(): SheetManager;
|
|
283
|
+
/** Register inferable custom properties used by a set of declarations. */
|
|
284
|
+
private inferProperties;
|
|
246
285
|
/**
|
|
247
286
|
* Whether sheet writes should be queued instead of applied immediately.
|
|
248
287
|
*
|
|
@@ -298,10 +337,7 @@ declare class StyleInjector {
|
|
|
298
337
|
/**
|
|
299
338
|
* Inject styles from StyleResult objects
|
|
300
339
|
*/
|
|
301
|
-
inject(rules: StyleResult[], options?:
|
|
302
|
-
root?: Document | ShadowRoot;
|
|
303
|
-
cacheKey?: string;
|
|
304
|
-
}): InjectResult;
|
|
340
|
+
inject(rules: StyleResult[], options?: InjectOptions): InjectResult;
|
|
305
341
|
/**
|
|
306
342
|
* Inject global styles (rules without a generated tasty class selector)
|
|
307
343
|
* This ensures we don't reserve a tasty class name (t{number}) for global rules,
|
|
@@ -325,20 +361,43 @@ declare class StyleInjector {
|
|
|
325
361
|
root?: Document | ShadowRoot;
|
|
326
362
|
}): string;
|
|
327
363
|
/**
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
364
|
+
* Take a reference on local `@keyframes`, under the deterministic names the
|
|
365
|
+
* caller resolved.
|
|
366
|
+
*
|
|
367
|
+
* One reference per distinct set of steps, shared by every class that ends up
|
|
368
|
+
* animating it, so a repeat render takes nothing further. Ownership is
|
|
369
|
+
* assigned by `ownKeyframes()` once the rules exist to be inspected.
|
|
370
|
+
*/
|
|
371
|
+
holdKeyframes(steps: Record<string, KeyframesSteps>, names: Map<string, string>, options?: {
|
|
372
|
+
root?: Document | ShadowRoot;
|
|
373
|
+
}): Map<string, string>;
|
|
374
|
+
/**
|
|
375
|
+
* Record that `className` animates these keyframes, so the reference is
|
|
376
|
+
* released when the last such class is collected.
|
|
377
|
+
*
|
|
378
|
+
* Only classes whose rules actually reference the animation should be here:
|
|
379
|
+
* a class that merely rendered alongside one would otherwise keep the
|
|
380
|
+
* keyframes alive for as long as it lives.
|
|
381
|
+
*/
|
|
382
|
+
ownKeyframes(key: string, className: string, options?: {
|
|
383
|
+
root?: Document | ShadowRoot;
|
|
384
|
+
}): void;
|
|
385
|
+
/**
|
|
386
|
+
* Pin an already-injected cacheKey and return the handle that releases it.
|
|
387
|
+
* For callers that skipped the pipeline on a cache hit but still need the
|
|
388
|
+
* class held. Returns null if the cacheKey is not found.
|
|
332
389
|
*/
|
|
333
390
|
trackRef(cacheKey: string, options?: {
|
|
334
391
|
root?: Document | ShadowRoot;
|
|
335
392
|
}): InjectResult | null;
|
|
336
393
|
/**
|
|
337
|
-
*
|
|
394
|
+
* Release one pin on a className. At zero pins the class is not deleted — it
|
|
395
|
+
* stays cached and collectible, and `gc()` decides when it actually goes.
|
|
338
396
|
*/
|
|
339
|
-
private
|
|
397
|
+
private unpin;
|
|
340
398
|
/**
|
|
341
|
-
*
|
|
399
|
+
* Remove every style that is neither in the DOM nor referenced by an
|
|
400
|
+
* outstanding `inject()` handle, ignoring the GC capacity threshold.
|
|
342
401
|
*/
|
|
343
402
|
cleanup(root?: Document | ShadowRoot): void;
|
|
344
403
|
/**
|
|
@@ -447,33 +506,82 @@ declare class StyleInjector {
|
|
|
447
506
|
keyframes(steps: KeyframesSteps, nameOrOptions?: string | {
|
|
448
507
|
root?: Document | ShadowRoot;
|
|
449
508
|
name?: string;
|
|
509
|
+
/**
|
|
510
|
+
* Give this name its own rule even if another name already carries
|
|
511
|
+
* the same steps. Without it two names with identical steps share
|
|
512
|
+
* one rule under whichever name arrived first — fine when the caller
|
|
513
|
+
* only wants the animation, wrong when the name has to be the one it
|
|
514
|
+
* asked for.
|
|
515
|
+
*/
|
|
516
|
+
distinctByName?: boolean;
|
|
450
517
|
}): KeyframesResult;
|
|
451
518
|
/**
|
|
452
519
|
* Dispose keyframes
|
|
453
520
|
*/
|
|
454
521
|
private disposeKeyframes;
|
|
455
522
|
/**
|
|
456
|
-
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
*
|
|
523
|
+
* Count a render, and schedule a collection pass every `touchInterval` of
|
|
524
|
+
* them. Nothing else: what a class is worth keeping is decided by the sweep's
|
|
525
|
+
* own DOM scan, so rendering does not track usage at all.
|
|
526
|
+
*
|
|
527
|
+
* @deprecated The class name is ignored — pass anything, or stop calling it.
|
|
528
|
+
* Collection no longer records per-class usage, and scheduling does not need
|
|
529
|
+
* to know which class was rendered. A class handed back by `inject()` is
|
|
530
|
+
* marked wanted there, which is what reuse actually goes through.
|
|
461
531
|
*/
|
|
462
|
-
touch(
|
|
532
|
+
touch(_className: string, options?: {
|
|
463
533
|
root?: Document | ShadowRoot;
|
|
464
534
|
}): void;
|
|
465
535
|
/**
|
|
466
|
-
* Schedule a GC
|
|
467
|
-
*
|
|
536
|
+
* Schedule a GC in idle time. Runs GC on all active roots, and avoids
|
|
537
|
+
* double-scheduling.
|
|
538
|
+
*
|
|
539
|
+
* Idle only. Without `requestIdleCallback` nothing is collected
|
|
540
|
+
* automatically: running the sweep inline here would put it inside the render
|
|
541
|
+
* that touched the class, and collection is never urgent enough for that.
|
|
468
542
|
*/
|
|
469
543
|
private scheduleGC;
|
|
544
|
+
/**
|
|
545
|
+
* The one definition of "unused": this injector owns the class's rules, no
|
|
546
|
+
* element in `root` carries it, and nobody pinned it.
|
|
547
|
+
*
|
|
548
|
+
* `gc()` evicts from this set, `getMetrics()` counts it, and `tastyDebug`
|
|
549
|
+
* reports it — all through here, so the three can never disagree about what
|
|
550
|
+
* "unused" means. Entries carry their last `touch()` so callers can drop the
|
|
551
|
+
* oldest first; a class that was never touched sorts as oldest.
|
|
552
|
+
*/
|
|
553
|
+
/**
|
|
554
|
+
* Everything the injector holds falls into one of five bands, and only the
|
|
555
|
+
* last of them is ever deleted:
|
|
556
|
+
*
|
|
557
|
+
* 1. rendered — some element carries the class right now
|
|
558
|
+
* 2. not ours — queued for a batched write, pre-allocated, or server-rendered
|
|
559
|
+
* 3. hot — nothing carries it, but that was noticed less than `grace` ago
|
|
560
|
+
* 4. cached — cold, but within `capacity` when ordered by when it went cold
|
|
561
|
+
* 5. the rest
|
|
562
|
+
*
|
|
563
|
+
* This returns bands 4 and 5 together, most recently cold first; `gc()` draws
|
|
564
|
+
* the capacity line through them. Band 3 is what makes collection safe
|
|
565
|
+
* without a commit signal: a render can resolve a class and commit it a
|
|
566
|
+
* little later, and during that gap nothing on the page carries it.
|
|
567
|
+
*/
|
|
568
|
+
private collectUnused;
|
|
569
|
+
/**
|
|
570
|
+
* Class names this injector holds CSS for that nothing renders and nobody
|
|
571
|
+
* pinned — exactly what `gc({ force: true })` would delete. Unordered.
|
|
572
|
+
*/
|
|
573
|
+
getUnusedClasses(options?: {
|
|
574
|
+
root?: Document | ShadowRoot;
|
|
575
|
+
}): string[];
|
|
470
576
|
/**
|
|
471
577
|
* Synchronous garbage collection.
|
|
472
578
|
*
|
|
473
|
-
* 1. Quick upper-bound check: skip if
|
|
474
|
-
* 2. Scans the DOM for live tasty classNames
|
|
475
|
-
*
|
|
476
|
-
*
|
|
579
|
+
* 1. Quick upper-bound check: skip if the registry is smaller than capacity.
|
|
580
|
+
* 2. Scans the DOM for live tasty classNames — the DOM, not a ref count, is
|
|
581
|
+
* what says a class rendered by a component is still in use.
|
|
582
|
+
* 3. With `force: true`: deletes every unused class.
|
|
583
|
+
* Without `force`: keeps the `capacity` most recently touched and deletes
|
|
584
|
+
* the rest, oldest first.
|
|
477
585
|
*
|
|
478
586
|
* @returns Number of styles evicted.
|
|
479
587
|
*/
|
|
@@ -500,6 +608,22 @@ type ParseFunction = (groups: StyleDetails[]) => string;
|
|
|
500
608
|
type FunctionsConfig = Record<string, FunctionDefinition | ParseFunction>;
|
|
501
609
|
//#endregion
|
|
502
610
|
//#region src/utils/color-space.d.ts
|
|
611
|
+
/**
|
|
612
|
+
* Color handling that survives into the emitted CSS.
|
|
613
|
+
*
|
|
614
|
+
* Tasty does not rewrite a color into a particular color space: opacity is
|
|
615
|
+
* applied with CSS relative color syntax, which reads the channels off whatever
|
|
616
|
+
* the browser resolves a value to, so a color is emitted exactly as authored.
|
|
617
|
+
* What is left here is how an alpha gets applied, and the one distinction that
|
|
618
|
+
* matters — replacing a token's alpha versus composing onto an inherited one.
|
|
619
|
+
*/
|
|
620
|
+
/**
|
|
621
|
+
* The color space a `#name` token's value used to be rewritten into.
|
|
622
|
+
*
|
|
623
|
+
* @deprecated Kept for the `colorSpace` config option, which no longer has any
|
|
624
|
+
* effect. Colors are emitted as authored and opacity is always applied in
|
|
625
|
+
* `oklch` through relative color syntax.
|
|
626
|
+
*/
|
|
503
627
|
type ColorSpace = 'rgb' | 'hsl' | 'oklch';
|
|
504
628
|
//#endregion
|
|
505
629
|
//#region src/utils/typography.d.ts
|
|
@@ -617,7 +741,7 @@ interface TastyPlugin {
|
|
|
617
741
|
* Design tokens injected as CSS custom properties on `:root`.
|
|
618
742
|
* Values are parsed through the Tasty DSL. Supports state maps.
|
|
619
743
|
* - `$name` → `--name` CSS custom property
|
|
620
|
-
* - `#name` → `--name-color`
|
|
744
|
+
* - `#name` → `--name-color`
|
|
621
745
|
*/
|
|
622
746
|
tokens?: ConfigTokens;
|
|
623
747
|
/** Predefined tokens replaced during style parsing (`$name` or `#name`) */
|
|
@@ -733,21 +857,18 @@ interface TastyConfig {
|
|
|
733
857
|
*/
|
|
734
858
|
functions?: FunctionsConfig;
|
|
735
859
|
/**
|
|
736
|
-
*
|
|
737
|
-
*
|
|
738
|
-
* `--brand-color: oklch(0.75 0.16 55)` by default. Anything it cannot
|
|
739
|
-
* evaluate — a `color-mix()`, a `light-dark()`, a `var()` chain — is left
|
|
740
|
-
* as authored.
|
|
860
|
+
* @deprecated No longer has any effect; will be removed in the next major.
|
|
861
|
+
* Setting it warns in development.
|
|
741
862
|
*
|
|
742
|
-
*
|
|
743
|
-
*
|
|
744
|
-
*
|
|
863
|
+
* A `#name` token's value used to be rewritten into this color space so an
|
|
864
|
+
* opacity suffix had numeric channels to write an alpha into. Opacity now uses
|
|
865
|
+
* relative color syntax — `oklch(from var(--name-color) l c h / .5)` — which
|
|
866
|
+
* has the browser read the channels, so a color is emitted exactly as
|
|
867
|
+
* authored and there is nothing left for the setting to decide.
|
|
745
868
|
*
|
|
746
|
-
*
|
|
747
|
-
* `oklch
|
|
748
|
-
* color
|
|
749
|
-
*
|
|
750
|
-
* @default 'oklch'
|
|
869
|
+
* To address a token's channels yourself, write relative color syntax against
|
|
870
|
+
* the token: `oklch(from var(--brand-color) calc(l * 1.2) c h)`. It works on
|
|
871
|
+
* every `<color>`, including the ones no conversion could evaluate.
|
|
751
872
|
*/
|
|
752
873
|
colorSpace?: ColorSpace;
|
|
753
874
|
/**
|
|
@@ -889,7 +1010,7 @@ interface TastyConfig {
|
|
|
889
1010
|
* const Spinner = tasty({
|
|
890
1011
|
* styles: {
|
|
891
1012
|
* transform: 'rotate($rotation)',
|
|
892
|
-
* transition: '$$rotation
|
|
1013
|
+
* transition: '$$rotation $transition', // outputs: --rotation var(--transition)
|
|
893
1014
|
* },
|
|
894
1015
|
* });
|
|
895
1016
|
* ```
|
|
@@ -1032,7 +1153,7 @@ interface TastyConfig {
|
|
|
1032
1153
|
* for responsive/theme-aware tokens.
|
|
1033
1154
|
*
|
|
1034
1155
|
* - `$name` keys become `--name` CSS custom properties
|
|
1035
|
-
* - `#name` keys become `--name-color`
|
|
1156
|
+
* - `#name` keys become `--name-color` properties
|
|
1036
1157
|
*
|
|
1037
1158
|
* Tokens are injected once when the first style is rendered.
|
|
1038
1159
|
*
|
|
@@ -1158,10 +1279,6 @@ declare global {
|
|
|
1158
1279
|
* Detect if we're running in a test environment
|
|
1159
1280
|
*/
|
|
1160
1281
|
declare function isTestEnvironment(): boolean;
|
|
1161
|
-
/**
|
|
1162
|
-
* Check if styles have been generated (configuration is locked)
|
|
1163
|
-
*/
|
|
1164
|
-
declare function hasStylesGenerated(): boolean;
|
|
1165
1282
|
/**
|
|
1166
1283
|
* Check if any global keyframes are configured.
|
|
1167
1284
|
* Uses a pre-computed flag to avoid Object.keys() allocation on every call.
|
|
@@ -1172,24 +1289,6 @@ declare function hasGlobalKeyframes(): boolean;
|
|
|
1172
1289
|
* Returns null if no keyframes configured (fast path for zero-overhead).
|
|
1173
1290
|
*/
|
|
1174
1291
|
declare function getGlobalKeyframes(): Record<string, KeyframesSteps> | null;
|
|
1175
|
-
/**
|
|
1176
|
-
* Get global font-face configuration.
|
|
1177
|
-
* Returns null if no font faces configured.
|
|
1178
|
-
* Reads from globalThis first for cross-module SSR support.
|
|
1179
|
-
*/
|
|
1180
|
-
declare function getGlobalFontFaces(): Record<string, FontFaceInput> | null;
|
|
1181
|
-
/**
|
|
1182
|
-
* Get global counter-style configuration.
|
|
1183
|
-
* Returns null if no counter styles configured.
|
|
1184
|
-
* Reads from globalThis first for cross-module SSR support.
|
|
1185
|
-
*/
|
|
1186
|
-
declare function getGlobalCounterStyles(): Record<string, CounterStyleDescriptors> | null;
|
|
1187
|
-
/**
|
|
1188
|
-
* Get global @function configuration.
|
|
1189
|
-
* Returns null if no functions configured.
|
|
1190
|
-
* Reads from globalThis first for cross-module SSR support.
|
|
1191
|
-
*/
|
|
1192
|
-
declare function getGlobalFunctions(): Record<string, FunctionDefinition> | null;
|
|
1193
1292
|
/**
|
|
1194
1293
|
* Check if any global recipes are configured.
|
|
1195
1294
|
* Fast path: returns false if no recipes were ever set.
|
|
@@ -1246,5 +1345,5 @@ declare function getNamePrefix(): string;
|
|
|
1246
1345
|
*/
|
|
1247
1346
|
declare function resetConfig(): void;
|
|
1248
1347
|
//#endregion
|
|
1249
|
-
export {
|
|
1250
|
-
//# sourceMappingURL=config-
|
|
1348
|
+
export { PropHandlerDefinition as C, getGlobalFunctions as D, getGlobalFontFaces as E, PropHandler as S, getGlobalCounterStyles as T, ColorSpace as _, getGlobalRecipes as a, StyleInjector as b, hasGlobalRecipes as c, resetConfig as d, TastyPlugin as f, generateTypographyTokens as g, TypographyTokenValue as h, getGlobalKeyframes as i, isConfigLocked as l, TypographyPreset as m, configure as n, getNamePrefix as o, TastyPluginFactory as p, getConfig as r, hasGlobalKeyframes as s, TastyConfig as t, isTestEnvironment as u, FunctionsConfig as v, PropHandlerProps as w, SheetManager as x, ParseFunction as y };
|
|
1349
|
+
//# sourceMappingURL=config-CZWCzBr6.d.ts.map
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { $ as
|
|
3
|
-
import {
|
|
4
|
-
import { t as mergeStyles } from "../merge-styles-
|
|
5
|
-
export { APPEARANCE_CHUNK_STYLES, type AnyStyleHandler, type AtRuleContext, BASE_STYLES, BLOCK_INNER_STYLES, BLOCK_OUTER_STYLES, BLOCK_STYLES, type BaseStyleProps, type BlockInnerStyleProps, type BlockOuterStyleProps, type BlockStyleProps, CHUNK_NAMES, COLOR_STYLES, CONTAINER_STYLES, type CSSMap, CSSOptions, type CSSProperties, CUSTOM_UNITS, type CacheMetrics, CacheStatus, ChunkBreakdown, type ChunkInfo, type ChunkName, ChunkSheetRegistry, type ColorSpace, type ColorStyleProps, type ComputeStylesOptions, type ComputeStylesResult, type ConditionNode, type ConfigTokenValue, type ConfigTokens, type ContainerStyleProps, type CounterStyleDescriptors, DEFAULT_NAME_PREFIX, DEFAULT_ZERO_NAME_PREFIX, DIMENSION_CHUNK_STYLES, DIMENSION_STYLES, DIRECTIONS, DISPLAY_CHUNK_STYLES, DebugChunkInfo, DebugOptions, type DimensionStyleProps, type DisposeFunction, type ExtraBaseStyleProps, FLOW_STYLES, FONT_CHUNK_STYLES, type FlowStyleProps, type FontFaceDescriptors, type FontFaceInput, type FunctionDefinition, type FunctionParameter, type FunctionsConfig, type GCConfig, type GCOptions, INNER_STYLES, type InjectResult, type InjectionMode, type InnerStyleProps, InspectResult, type KeyframesCacheEntry, type KeyframesInfo, type KeyframesResult, type KeyframesSteps, LAYOUT_CHUNK_STYLES, type ModValue, type Mods, type NoType, type NotSelector, OUTER_STYLES, type OuterStyleProps, POSITION_CHUNK_STYLES, POSITION_STYLES, type ParseFunction, type ParseStateKeyOptions, type ParsedAdvancedState, type ParsedColor, type ParserOptions, type PositionStyleProps, type ProcessedStyle, type PropHandler, type PropHandlerDefinition, type PropHandlerProps, type PropertyDefinition, type PropertyOptions, type QueuedWrite, type RawCSSResult, type RawStyleHandler, type RecipeStyles, type RenderResult, type ResolvedStyleValue, type RootRegistry, type RuleInfo, STYLE_TO_CHUNK, type Selector, type SheetInfo, SheetManager, type ShortGridStyles, type StateParserContext, type StyleDetails, type StyleDetailsPart, type StyleHandler, type StyleHandlerDefinition, type StyleHandlerProps, type StyleHandlerResult, StyleInjector, type StyleInjectorConfig, type StyleMap, StyleParser, type StylePropValue, type StyleResult, type StyleRule, type StyleUsage, type StyleValue, type StyleValueStateMap, type Styles, type StylesInterface, type StylesWithoutSelectors, type SuffixForSelector, Summary, TEXT_STYLES, type TagName, type TastyBaseStylePropNames, type TastyConfig, type TastyCustomProps, type TastyExtensionConfig, type TastyNamedColors, type TastyPlugin, type TastyPluginFactory, type TastyPresetNames, type TastyThemeNames, type TextStyleProps, type TokenValue, type Tokens, TypographyPreset, TypographyTokenValue, type UnitHandler, categorizeStyleKeys, chunkSheetRegistry, cleanup, color, computeStyles, configure, counterStyle, createColorFunc, createInjector, createStateParserContext, defineHandler, destroy,
|
|
1
|
+
import { $ as TastyNamedColors, A as resetStyleBatch, B as getGlobalPredefinedStates, C as SheetInfo, Ct as StyleParser, D as QueuedWrite, Dt as StyleDetailsPart, E as StyleUsage, Et as StyleDetails, F as parseStateKey, G as NoType, H as ConditionNode, I as AtRuleContext, J as Selector, K as NotSelector, L as ParsedAdvancedState, M as StyleResult, N as renderStyles, O as flushStyles, Ot as UnitHandler, P as ParseStateKeyOptions, Q as SuffixForSelector, R as StateParserContext, S as RuleInfo, St as stringifyStyles, T as StyleRule, Tt as ProcessedStyle, U as ConfigTokenValue, V as setGlobalPredefinedStates, W as ConfigTokens, X as StylesInterface, Y as Styles, Z as StylesWithoutSelectors, _ as KeyframesSteps, _t as getGlobalParser, a as FontFaceInput, at as ParsedColor, b as RawCSSResult, bt as parseColor, c as GCConfig, ct as StyleHandler, d as InjectOptions, dt as StyleHandlerResult, et as TastyPresetNames, f as InjectResult, ft as StyleMap, g as KeyframesResult, gt as filterMods, h as KeyframesInfo, ht as StyleValueStateMap, i as FontFaceDescriptors, it as DIRECTIONS, j as RenderResult, k as hasPendingStyleWrites, kt as CSSProperties, l as GCOptions, lt as StyleHandlerDefinition, m as KeyframesCacheEntry, mt as StyleValue, n as CounterStyleDescriptors, nt as CSSMap, o as FunctionDefinition, ot as RawStyleHandler, p as InjectionMode, pt as StylePropValue, q as RecipeStyles, r as DisposeFunction, rt as CUSTOM_UNITS, s as FunctionParameter, st as ResolvedStyleValue, t as CacheMetrics, tt as AnyStyleHandler, ut as StyleHandlerProps, v as PropertyDefinition, vt as getGlobalPredefinedTokens, w as StyleInjectorConfig, wt as ParserOptions, x as RootRegistry, xt as parseStyle, y as PropertyOptions, yt as normalizeColorTokenValue, z as createStateParserContext } from "../types-JEY8PVYP.js";
|
|
2
|
+
import { $ as createColorFunc, $t as OuterStyleProps, A as keyframes, An as strToRgb, B as styleHandlers, C as getRawCSSText, Cn as DEFAULT_ZERO_NAME_PREFIX, D as injectRawCSS, Dn as getRgbValuesFromRgbaString, E as injectGlobal, En as getNamedColorHex, F as chunkSheetRegistry, G as ChunkName, Gt as ColorStyleProps, H as categorizeStyleKeys, Ht as BlockInnerStyleProps, I as ComputeStylesOptions, J as FONT_CHUNK_STYLES, Jt as ExtraBaseStyleProps, K as DIMENSION_CHUNK_STYLES, Kt as ContainerStyleProps, L as ComputeStylesResult, M as property, N as touch, O as injector, On as hexToRgb, P as ChunkSheetRegistry, Q as resolveFunctionColor, Qt as Mods, R as computeStyles, S as getCSSTextForNode, Sn as DEFAULT_NAME_PREFIX, T as inject, Tn as isSelector, U as APPEARANCE_CHUNK_STYLES, Ut as BlockOuterStyleProps, V as ChunkInfo, Vt as BaseStyleProps, W as CHUNK_NAMES, Wt as BlockStyleProps, X as POSITION_CHUNK_STYLES, Xt as InnerStyleProps, Y as LAYOUT_CHUNK_STYLES, Yt as FlowStyleProps, Z as STYLE_TO_CHUNK, Zt as ModValue, _ as destroy, _n as FLOW_STYLES, a as DebugOptions, an as TastyExtensionConfig, b as gc, bn as POSITION_STYLES, c as tastyDebug, cn as TokenValue, d as modAttrs, dn as BLOCK_INNER_STYLES, en as PositionStyleProps, et as okhstFunction, f as color, fn as BLOCK_OUTER_STYLES, g as createInjector, gn as DIMENSION_STYLES, h as counterStyle, hn as CONTAINER_STYLES, i as DebugChunkInfo, in as TastyCustomProps, j as ownKeyframes, k as isPropertyDefined, kn as hslToRgbValues, l as processTokens, ln as Tokens, m as cleanup, mn as COLOR_STYLES, n as CacheStatus, nn as TagName, nt as okhslFunction, o as InspectResult, on as TastyThemeNames, p as filterBaseProps, pn as BLOCK_STYLES, q as DISPLAY_CHUNK_STYLES, qt as DimensionStyleProps, r as ChunkBreakdown, rn as TastyBaseStylePropNames, rt as okhslPlugin, s as Summary, sn as TextStyleProps, t as CSSOptions, tn as ShortGridStyles, tt as okhstPlugin, u as resolveRecipes, un as BASE_STYLES, v as fontFace, vn as INNER_STYLES, w as holdKeyframes, wn as hasStylesGenerated, x as getCSSText, xn as TEXT_STYLES, y as func, yn as OUTER_STYLES, z as defineHandler } from "../index-G9JuwM9p.js";
|
|
3
|
+
import { C as PropHandlerDefinition, D as getGlobalFunctions, E as getGlobalFontFaces, S as PropHandler, T as getGlobalCounterStyles, _ as ColorSpace, a as getGlobalRecipes, b as StyleInjector, c as hasGlobalRecipes, d as resetConfig, f as TastyPlugin, g as generateTypographyTokens, h as TypographyTokenValue, i as getGlobalKeyframes, l as isConfigLocked, m as TypographyPreset, n as configure, o as getNamePrefix, p as TastyPluginFactory, r as getConfig, s as hasGlobalKeyframes, t as TastyConfig, u as isTestEnvironment, v as FunctionsConfig, w as PropHandlerProps, x as SheetManager, y as ParseFunction } from "../config-CZWCzBr6.js";
|
|
4
|
+
import { t as mergeStyles } from "../merge-styles-VXwJ0Frr.js";
|
|
5
|
+
export { APPEARANCE_CHUNK_STYLES, type AnyStyleHandler, type AtRuleContext, BASE_STYLES, BLOCK_INNER_STYLES, BLOCK_OUTER_STYLES, BLOCK_STYLES, type BaseStyleProps, type BlockInnerStyleProps, type BlockOuterStyleProps, type BlockStyleProps, CHUNK_NAMES, COLOR_STYLES, CONTAINER_STYLES, type CSSMap, CSSOptions, type CSSProperties, CUSTOM_UNITS, type CacheMetrics, CacheStatus, ChunkBreakdown, type ChunkInfo, type ChunkName, ChunkSheetRegistry, type ColorSpace, type ColorStyleProps, type ComputeStylesOptions, type ComputeStylesResult, type ConditionNode, type ConfigTokenValue, type ConfigTokens, type ContainerStyleProps, type CounterStyleDescriptors, DEFAULT_NAME_PREFIX, DEFAULT_ZERO_NAME_PREFIX, DIMENSION_CHUNK_STYLES, DIMENSION_STYLES, DIRECTIONS, DISPLAY_CHUNK_STYLES, DebugChunkInfo, DebugOptions, type DimensionStyleProps, type DisposeFunction, type ExtraBaseStyleProps, FLOW_STYLES, FONT_CHUNK_STYLES, type FlowStyleProps, type FontFaceDescriptors, type FontFaceInput, type FunctionDefinition, type FunctionParameter, type FunctionsConfig, type GCConfig, type GCOptions, INNER_STYLES, type InjectOptions, type InjectResult, type InjectionMode, type InnerStyleProps, InspectResult, type KeyframesCacheEntry, type KeyframesInfo, type KeyframesResult, type KeyframesSteps, LAYOUT_CHUNK_STYLES, type ModValue, type Mods, type NoType, type NotSelector, OUTER_STYLES, type OuterStyleProps, POSITION_CHUNK_STYLES, POSITION_STYLES, type ParseFunction, type ParseStateKeyOptions, type ParsedAdvancedState, type ParsedColor, type ParserOptions, type PositionStyleProps, type ProcessedStyle, type PropHandler, type PropHandlerDefinition, type PropHandlerProps, type PropertyDefinition, type PropertyOptions, type QueuedWrite, type RawCSSResult, type RawStyleHandler, type RecipeStyles, type RenderResult, type ResolvedStyleValue, type RootRegistry, type RuleInfo, STYLE_TO_CHUNK, type Selector, type SheetInfo, SheetManager, type ShortGridStyles, type StateParserContext, type StyleDetails, type StyleDetailsPart, type StyleHandler, type StyleHandlerDefinition, type StyleHandlerProps, type StyleHandlerResult, StyleInjector, type StyleInjectorConfig, type StyleMap, StyleParser, type StylePropValue, type StyleResult, type StyleRule, type StyleUsage, type StyleValue, type StyleValueStateMap, type Styles, type StylesInterface, type StylesWithoutSelectors, type SuffixForSelector, Summary, TEXT_STYLES, type TagName, type TastyBaseStylePropNames, type TastyConfig, type TastyCustomProps, type TastyExtensionConfig, type TastyNamedColors, type TastyPlugin, type TastyPluginFactory, type TastyPresetNames, type TastyThemeNames, type TextStyleProps, type TokenValue, type Tokens, TypographyPreset, TypographyTokenValue, type UnitHandler, categorizeStyleKeys, chunkSheetRegistry, cleanup, color, computeStyles, configure, counterStyle, createColorFunc, createInjector, createStateParserContext, defineHandler, destroy, filterBaseProps, filterMods, flushStyles, fontFace, func, gc, generateTypographyTokens, getCSSText, getCSSTextForNode, getConfig, getGlobalCounterStyles, getGlobalFontFaces, getGlobalFunctions, getGlobalKeyframes, getGlobalParser, getGlobalPredefinedStates, getGlobalPredefinedTokens, getGlobalRecipes, getNamePrefix, getNamedColorHex, getRawCSSText, getRgbValuesFromRgbaString, hasGlobalKeyframes, hasGlobalRecipes, hasPendingStyleWrites, hasStylesGenerated, hexToRgb, holdKeyframes, hslToRgbValues, inject, injectGlobal, injectRawCSS, injector, isConfigLocked, isPropertyDefined, isSelector, isTestEnvironment, keyframes, mergeStyles, modAttrs, normalizeColorTokenValue, okhslFunction, okhslPlugin, okhstFunction, okhstPlugin, ownKeyframes, parseColor, parseStateKey, parseStyle, processTokens, property, renderStyles, resetConfig, resetStyleBatch, resolveFunctionColor, resolveRecipes, setGlobalPredefinedStates, strToRgb, stringifyStyles, styleHandlers, tastyDebug, touch };
|
package/dist/core/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { A as strToRgb, C as StyleParser, D as getRgbValuesFromRgbaString, E as getNamedColorHex, O as hexToRgb, S as createColorFunc, _ as stringifyStyles, b as okhslFunction, c as getGlobalParser, d as parseColor, f as parseStyle, i as DIRECTIONS, k as hslToRgbValues, l as getGlobalPredefinedTokens, n as resolveFunctionColor, o as filterMods, r as CUSTOM_UNITS, t as color, u as normalizeColorTokenValue, v as okhstFunction, x as okhslPlugin, y as okhstPlugin } from "../chunks/dsl-DRhFWQzo.js";
|
|
2
|
+
import { n as isSelector, t as mergeStyles } from "../chunks/shared-utils-y-HjvPN4.js";
|
|
3
|
+
import { C as DEFAULT_NAME_PREFIX, w as DEFAULT_ZERO_NAME_PREFIX } from "../chunks/css-definitions-DotDkIXt.js";
|
|
4
|
+
import { B as createStateParserContext, F as FONT_CHUNK_STYLES, H as setGlobalPredefinedStates, I as LAYOUT_CHUNK_STYLES, L as POSITION_CHUNK_STYLES, M as CHUNK_NAMES, N as DIMENSION_CHUNK_STYLES, P as DISPLAY_CHUNK_STYLES, R as STYLE_TO_CHUNK, T as defineHandler, U as hasStylesGenerated, V as getGlobalPredefinedStates, _ as POSITION_STYLES, b as renderStyles, c as BLOCK_INNER_STYLES, d as COLOR_STYLES, f as CONTAINER_STYLES, g as OUTER_STYLES, h as INNER_STYLES, j as APPEARANCE_CHUNK_STYLES, k as styleHandlers, l as BLOCK_OUTER_STYLES, m as FLOW_STYLES, p as DIMENSION_STYLES, r as categorizeStyleKeys, s as BASE_STYLES, u as BLOCK_STYLES, v as TEXT_STYLES, x as parseStateKey } from "../chunks/style-engine-BBbBuSkT.js";
|
|
5
|
+
import { i as generateTypographyTokens } from "../chunks/config-engine-DEmmPPdp.js";
|
|
6
|
+
import { c as getGlobalFunctions, o as getGlobalCounterStyles, s as getGlobalFontFaces } from "../chunks/runtime-state-BxaLhVdP.js";
|
|
7
|
+
import { A as ownKeyframes, B as getNamePrefix, C as holdKeyframes, D as injector, E as injectRawCSS, F as configure, G as resetConfig, H as hasGlobalRecipes, I as getConfig, K as StyleInjector, M as touch, N as ChunkSheetRegistry, O as isPropertyDefined, P as chunkSheetRegistry, Q as resetStyleBatch, R as getGlobalKeyframes, S as getRawCSSText, T as injectGlobal, U as isConfigLocked, V as hasGlobalKeyframes, W as isTestEnvironment, X as hasPendingStyleWrites, Y as flushStyles, _ as fontFace, a as filterBaseProps, b as getCSSText, g as destroy, h as createInjector, i as modAttrs, j as property, k as keyframes, m as counterStyle, o as computeStyles, p as cleanup, q as SheetManager, r as processTokens, s as resolveRecipes, v as func, w as inject, x as getCSSTextForNode, y as gc, z as getGlobalRecipes } from "../chunks/runtime-engine-CKFXUH-A.js";
|
|
8
|
+
import { t as tastyDebug } from "../chunks/debug-D8pg9RGI.js";
|
|
9
|
+
export { APPEARANCE_CHUNK_STYLES, BASE_STYLES, BLOCK_INNER_STYLES, BLOCK_OUTER_STYLES, BLOCK_STYLES, CHUNK_NAMES, COLOR_STYLES, CONTAINER_STYLES, CUSTOM_UNITS, ChunkSheetRegistry, DEFAULT_NAME_PREFIX, DEFAULT_ZERO_NAME_PREFIX, DIMENSION_CHUNK_STYLES, DIMENSION_STYLES, DIRECTIONS, DISPLAY_CHUNK_STYLES, FLOW_STYLES, FONT_CHUNK_STYLES, INNER_STYLES, LAYOUT_CHUNK_STYLES, OUTER_STYLES, POSITION_CHUNK_STYLES, POSITION_STYLES, STYLE_TO_CHUNK, SheetManager, StyleInjector, StyleParser, TEXT_STYLES, categorizeStyleKeys, chunkSheetRegistry, cleanup, color, computeStyles, configure, counterStyle, createColorFunc, createInjector, createStateParserContext, defineHandler, destroy, filterBaseProps, filterMods, flushStyles, fontFace, func, gc, generateTypographyTokens, getCSSText, getCSSTextForNode, getConfig, getGlobalCounterStyles, getGlobalFontFaces, getGlobalFunctions, getGlobalKeyframes, getGlobalParser, getGlobalPredefinedStates, getGlobalPredefinedTokens, getGlobalRecipes, getNamePrefix, getNamedColorHex, getRawCSSText, getRgbValuesFromRgbaString, hasGlobalKeyframes, hasGlobalRecipes, hasPendingStyleWrites, hasStylesGenerated, hexToRgb, holdKeyframes, hslToRgbValues, inject, injectGlobal, injectRawCSS, injector, isConfigLocked, isPropertyDefined, isSelector, isTestEnvironment, keyframes, mergeStyles, modAttrs, normalizeColorTokenValue, okhslFunction, okhslPlugin, okhstFunction, okhstPlugin, ownKeyframes, parseColor, parseStateKey, parseStyle, processTokens, property, renderStyles, resetConfig, resetStyleBatch, resolveFunctionColor, resolveRecipes, setGlobalPredefinedStates, strToRgb, stringifyStyles, styleHandlers, tastyDebug, touch };
|