@tenphi/tasty 0.0.0-snapshot.fdb16ea → 0.0.0-snapshot.fde6cf3
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/dist/astro-Dj8YpRd7.js +301 -0
- package/dist/astro-Dj8YpRd7.js.map +1 -0
- package/dist/{babel-CMYf4JZ2.d.ts → babel-Cbp2C2bj.d.ts} +2 -2
- package/dist/{collector-Ctn5s74s.d.ts → collector-DBY6liC2.d.ts} +94 -11
- package/dist/collector-NjmUiB8f.js +529 -0
- package/dist/collector-NjmUiB8f.js.map +1 -0
- package/dist/{config-B23gZrfP.js → config-Bd2vOF0Z.js} +454 -105
- package/dist/config-Bd2vOF0Z.js.map +1 -0
- package/dist/{config-CZx8_DCu.d.ts → config-CA7iAlEI.d.ts} +112 -22
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +6 -6
- package/dist/{core-B1tyn69d.js → core-ClInK6YG.js} +386 -107
- package/dist/core-ClInK6YG.js.map +1 -0
- package/dist/css-resources-Cyl_axbI.js +149 -0
- package/dist/css-resources-Cyl_axbI.js.map +1 -0
- package/dist/{css-writer-CvAxkR6S.js → css-writer-BDQXG9Jo.js} +3 -3
- package/dist/{css-writer-CvAxkR6S.js.map → css-writer-BDQXG9Jo.js.map} +1 -1
- package/dist/{format-rules-BCTWVvcS.js → format-rules-CGhgoVLR.js} +22 -32
- package/dist/format-rules-CGhgoVLR.js.map +1 -0
- package/dist/{hydrate-BCPvkJj3.js → hydrate-CqbxwVh_.js} +2 -2
- package/dist/{hydrate-BCPvkJj3.js.map → hydrate-CqbxwVh_.js.map} +1 -1
- package/dist/{index-B3o0aCYV.d.ts → index-C8RFYeFW.d.ts} +61 -12
- package/dist/{index-CsvB0EXZ.d.ts → index-FpYK0H5g.d.ts} +49 -8
- package/dist/index.d.ts +5 -5
- package/dist/index.js +43 -27
- package/dist/index.js.map +1 -1
- package/dist/{keyframes-Dxdx3KOo.js → keyframes-BjfNVhaB.js} +45 -3
- package/dist/keyframes-BjfNVhaB.js.map +1 -0
- package/dist/{merge-styles-DJTSfz_M.d.ts → merge-styles-BQv7d3fx.d.ts} +2 -2
- package/dist/{merge-styles-C-uwpoNW.js → merge-styles-BbJhjesV.js} +2 -2
- package/dist/{merge-styles-C-uwpoNW.js.map → merge-styles-BbJhjesV.js.map} +1 -1
- package/dist/precompile/index.d.ts +11 -0
- package/dist/precompile/index.js +72 -0
- package/dist/precompile/index.js.map +1 -0
- package/dist/precompile/register.d.ts +13 -0
- package/dist/precompile/register.js +2 -0
- package/dist/register-BkC-8Zuy.js +333 -0
- package/dist/register-BkC-8Zuy.js.map +1 -0
- package/dist/{resolve-recipes-BuOvSEa2.js → resolve-recipes-B2Sf36AH.js} +3 -3
- package/dist/{resolve-recipes-BuOvSEa2.js.map → resolve-recipes-B2Sf36AH.js.map} +1 -1
- package/dist/ssr/astro-client.js +1 -1
- package/dist/ssr/astro-middleware-extract-static.d.ts +11 -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 +11 -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 -1
- package/dist/ssr/astro-middleware-static.js +1 -1
- package/dist/ssr/astro-middleware.d.ts +3 -1
- package/dist/ssr/astro-middleware.js +1 -1
- package/dist/ssr/astro.d.ts +45 -3
- package/dist/ssr/astro.js +1 -156
- package/dist/ssr/index.d.ts +2 -2
- package/dist/ssr/index.js +3 -3
- package/dist/ssr/index.js.map +1 -1
- package/dist/ssr/next-config.d.ts +66 -0
- package/dist/ssr/next-config.js +115 -0
- package/dist/ssr/next-config.js.map +1 -0
- package/dist/ssr/next.d.ts +9 -2
- package/dist/ssr/next.js +26 -9
- package/dist/ssr/next.js.map +1 -1
- package/dist/ssr-collector-ref-COs_ioWl.js +29 -0
- package/dist/ssr-collector-ref-COs_ioWl.js.map +1 -0
- package/dist/static/index.d.ts +2 -2
- package/dist/static/index.js +1 -1
- package/dist/types-Bo5ePLZh.d.ts +111 -0
- package/dist/zero/babel.d.ts +1 -1
- package/dist/zero/babel.js +4 -4
- package/dist/zero/babel.js.map +1 -1
- package/dist/zero/index.d.ts +1 -1
- package/dist/zero/index.js +1 -1
- package/dist/zero/next.d.ts +1 -1
- package/docs/README.md +3 -1
- package/docs/debug.md +17 -6
- package/docs/injector.md +23 -3
- package/docs/precompile.md +202 -0
- package/docs/runtime-benchmarks.md +143 -72
- package/docs/ssr.md +179 -20
- package/package.json +44 -10
- package/dist/collector-DMSR6ANK.js +0 -304
- package/dist/collector-DMSR6ANK.js.map +0 -1
- package/dist/config-B23gZrfP.js.map +0 -1
- package/dist/core-B1tyn69d.js.map +0 -1
- package/dist/format-rules-BCTWVvcS.js.map +0 -1
- package/dist/keyframes-Dxdx3KOo.js.map +0 -1
- package/dist/ssr/astro.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { At as StyleRule, Ct as PropertyDefinition, Dt as RuleInfo, Et as RootRegistry, Ot as SheetInfo, P as StyleHandlerDefinition, St as KeyframesSteps, Tt as RawCSSResult, _t as InjectResult, b as Styles, bt as KeyframesInfo, dt as FunctionDefinition, gt as InjectOptions, h as ConfigTokens, ht as GlobalInjectResult, it as UnitHandler, kt as StyleInjectorConfig, lt as FontFaceDescriptors, mt as GCOptions, n as StyleResult, nt as StyleDetails, ot as CacheMetrics, pt as GCConfig, st as CounterStyleDescriptors, ut as FontFaceInput, v as RecipeStyles, xt as KeyframesResult } from "./index-
|
|
1
|
+
import { At as StyleRule, Ct as PropertyDefinition, Dt as RuleInfo, Et as RootRegistry, Ot as SheetInfo, P as StyleHandlerDefinition, St as KeyframesSteps, Tt as RawCSSResult, _t as InjectResult, b as Styles, bt as KeyframesInfo, dt as FunctionDefinition, gt as InjectOptions, h as ConfigTokens, ht as GlobalInjectResult, it as UnitHandler, kt as StyleInjectorConfig, lt as FontFaceDescriptors, mt as GCOptions, n as StyleResult, nt as StyleDetails, ot as CacheMetrics, pt as GCConfig, st as CounterStyleDescriptors, ut as FontFaceInput, v as RecipeStyles, xt as KeyframesResult } from "./index-C8RFYeFW.js";
|
|
2
|
+
import { l as TastyPrecompiledDependencies } from "./types-Bo5ePLZh.js";
|
|
2
3
|
|
|
3
4
|
//#region src/prop-handlers.d.ts
|
|
4
5
|
/**
|
|
@@ -165,6 +166,11 @@ declare class SheetManager {
|
|
|
165
166
|
* Get total number of rules across all sheets
|
|
166
167
|
*/
|
|
167
168
|
getTotalRuleCount(registry: RootRegistry): number;
|
|
169
|
+
/**
|
|
170
|
+
* The CSS of one managed sheet, or `null` when it holds none this can read —
|
|
171
|
+
* an empty style element, or a sheet the engine refuses to hand over.
|
|
172
|
+
*/
|
|
173
|
+
private readSheetCSS;
|
|
168
174
|
/**
|
|
169
175
|
* Get CSS text from all sheets (for SSR)
|
|
170
176
|
*/
|
|
@@ -232,6 +238,28 @@ declare class SheetManager {
|
|
|
232
238
|
/**
|
|
233
239
|
* Get the raw CSS content
|
|
234
240
|
*/
|
|
241
|
+
/**
|
|
242
|
+
* The CSS this injector owns in `root`, one entry per sheet, in the order the
|
|
243
|
+
* engine applies them.
|
|
244
|
+
*
|
|
245
|
+
* `getCSSText()` walks the managed sheets only, and raw CSS has its own —
|
|
246
|
+
* which sits before, after, or *between* them depending on how it got there:
|
|
247
|
+
* prepended to `adoptedStyleSheets`, or wherever in `<head>` the first raw
|
|
248
|
+
* injection happened to land, with every managed sheet opened afterwards
|
|
249
|
+
* following it. Reporting a fixed order would describe the opposite winner
|
|
250
|
+
* from the live page whenever two rules of equal specificity meet, so the raw
|
|
251
|
+
* sheet is spliced in at the position the DOM actually gives it.
|
|
252
|
+
*/
|
|
253
|
+
getOwnedCSSInOrder(registry: RootRegistry, root: Document | ShadowRoot): string[];
|
|
254
|
+
/**
|
|
255
|
+
* Top-level rules in the raw sheet.
|
|
256
|
+
*
|
|
257
|
+
* Read from the sheet the engine parsed, not from the text: a raw block is
|
|
258
|
+
* one string but any number of rules, and one rule — `@keyframes`, `@media` —
|
|
259
|
+
* can contain any number of blocks, so counting braces answers neither
|
|
260
|
+
* question.
|
|
261
|
+
*/
|
|
262
|
+
getRawRuleCount(root: Document | ShadowRoot): number;
|
|
235
263
|
getRawCSSText(root: Document | ShadowRoot): string;
|
|
236
264
|
}
|
|
237
265
|
//#endregion
|
|
@@ -240,13 +268,20 @@ declare class StyleInjector {
|
|
|
240
268
|
private sheetManager;
|
|
241
269
|
private config;
|
|
242
270
|
private globalRuleCounter;
|
|
243
|
-
/** Cancels the scheduled
|
|
271
|
+
/** Cancels the scheduled sweep, whichever timer scheduled it. */
|
|
244
272
|
private cancelPendingGC;
|
|
245
273
|
private namePrefix;
|
|
246
274
|
private classRegex;
|
|
247
275
|
private rscClassRegex;
|
|
276
|
+
private precompiledRevision;
|
|
248
277
|
/** @internal — exposed for debug utilities only */
|
|
249
278
|
get _sheetManager(): SheetManager;
|
|
279
|
+
/**
|
|
280
|
+
* Seed deduplication metadata for rules supplied by an immutable external
|
|
281
|
+
* stylesheet. This records no owned sheet entries and performs no CSS work.
|
|
282
|
+
* @internal
|
|
283
|
+
*/
|
|
284
|
+
registerPrecompiledDependencies(dependencies: TastyPrecompiledDependencies, revision: number): void;
|
|
250
285
|
/**
|
|
251
286
|
* Whether sheet writes should be queued instead of applied immediately.
|
|
252
287
|
*
|
|
@@ -289,6 +324,17 @@ declare class StyleInjector {
|
|
|
289
324
|
* if so, wire the cacheKey mapping. Returns true on hit.
|
|
290
325
|
*/
|
|
291
326
|
private tryHydratedHit;
|
|
327
|
+
/**
|
|
328
|
+
* Resolve an already-owned or server-hydrated class before its declarations
|
|
329
|
+
* are rendered. A miss does not reserve a class or mutate the rule cache.
|
|
330
|
+
* @internal
|
|
331
|
+
*/
|
|
332
|
+
prepareClassName(cacheKey: string, options?: {
|
|
333
|
+
root?: Document | ShadowRoot;
|
|
334
|
+
}): {
|
|
335
|
+
className: string;
|
|
336
|
+
isExisting: boolean;
|
|
337
|
+
};
|
|
292
338
|
/**
|
|
293
339
|
* Allocate a className for a cacheKey without injecting styles yet.
|
|
294
340
|
* This allows separating className allocation (render phase) from style injection (insertion phase).
|
|
@@ -325,6 +371,32 @@ declare class StyleInjector {
|
|
|
325
371
|
getRawCSSText(options?: {
|
|
326
372
|
root?: Document | ShadowRoot;
|
|
327
373
|
}): string;
|
|
374
|
+
/**
|
|
375
|
+
* Take a reference on local `@keyframes`, under the deterministic names the
|
|
376
|
+
* caller resolved.
|
|
377
|
+
*
|
|
378
|
+
* One reference per distinct set of steps, shared by every class that ends up
|
|
379
|
+
* animating it, so a repeat render takes nothing further. Ownership is
|
|
380
|
+
* assigned by `ownKeyframes()` once the rules exist to be inspected.
|
|
381
|
+
*/
|
|
382
|
+
holdKeyframes(steps: Record<string, KeyframesSteps>, names: Map<string, string>, options?: {
|
|
383
|
+
root?: Document | ShadowRoot;
|
|
384
|
+
}): Map<string, string>;
|
|
385
|
+
/**
|
|
386
|
+
* Record that `className` animates these keyframes, so the reference is
|
|
387
|
+
* released when the last such class is collected.
|
|
388
|
+
*
|
|
389
|
+
* Only classes whose rules actually reference the animation should be here:
|
|
390
|
+
* a class that merely rendered alongside one would otherwise keep the
|
|
391
|
+
* keyframes alive for as long as it lives.
|
|
392
|
+
*/
|
|
393
|
+
ownKeyframes(key: string, className: string, options?: {
|
|
394
|
+
root?: Document | ShadowRoot;
|
|
395
|
+
}): void;
|
|
396
|
+
/** Record a chunk lookup served by an immutable external stylesheet. */
|
|
397
|
+
recordPrecompiledHit(className: string, options?: {
|
|
398
|
+
root?: Document | ShadowRoot;
|
|
399
|
+
}): void;
|
|
328
400
|
/**
|
|
329
401
|
* Pin an already-injected cacheKey and return the handle that releases it.
|
|
330
402
|
* For callers that skipped the pipeline on a cache hit but still need the
|
|
@@ -333,14 +405,6 @@ declare class StyleInjector {
|
|
|
333
405
|
trackRef(cacheKey: string, options?: {
|
|
334
406
|
root?: Document | ShadowRoot;
|
|
335
407
|
}): InjectResult | null;
|
|
336
|
-
/**
|
|
337
|
-
* Seed the LRU stamp for a newly injected class.
|
|
338
|
-
*
|
|
339
|
-
* Without it a class injected during a render but not yet touched would carry
|
|
340
|
-
* no timestamp at all and sort as the oldest candidate, so `gc()` could evict
|
|
341
|
-
* the very rule the current render just wrote.
|
|
342
|
-
*/
|
|
343
|
-
private markUsage;
|
|
344
408
|
/**
|
|
345
409
|
* Release one pin on a className. At zero pins the class is not deleted — it
|
|
346
410
|
* stays cached and collectible, and `gc()` decides when it actually goes.
|
|
@@ -457,28 +521,39 @@ declare class StyleInjector {
|
|
|
457
521
|
keyframes(steps: KeyframesSteps, nameOrOptions?: string | {
|
|
458
522
|
root?: Document | ShadowRoot;
|
|
459
523
|
name?: string;
|
|
524
|
+
/**
|
|
525
|
+
* Give this name its own rule even if another name already carries
|
|
526
|
+
* the same steps. Without it two names with identical steps share
|
|
527
|
+
* one rule under whichever name arrived first — fine when the caller
|
|
528
|
+
* only wants the animation, wrong when the name has to be the one it
|
|
529
|
+
* asked for.
|
|
530
|
+
*/
|
|
531
|
+
distinctByName?: boolean;
|
|
460
532
|
}): KeyframesResult;
|
|
461
533
|
/**
|
|
462
534
|
* Dispose keyframes
|
|
463
535
|
*/
|
|
464
536
|
private disposeKeyframes;
|
|
465
537
|
/**
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
*
|
|
470
|
-
*
|
|
538
|
+
* Count a render, and schedule a collection pass every `touchInterval` of
|
|
539
|
+
* them. Nothing else: what a class is worth keeping is decided by the sweep's
|
|
540
|
+
* own DOM scan, so rendering does not track usage at all.
|
|
541
|
+
*
|
|
542
|
+
* @deprecated The class name is ignored — pass anything, or stop calling it.
|
|
543
|
+
* Collection no longer records per-class usage, and scheduling does not need
|
|
544
|
+
* to know which class was rendered. A class handed back by `inject()` is
|
|
545
|
+
* marked wanted there, which is what reuse actually goes through.
|
|
471
546
|
*/
|
|
472
|
-
touch(
|
|
547
|
+
touch(_className: string, options?: {
|
|
473
548
|
root?: Document | ShadowRoot;
|
|
474
549
|
}): void;
|
|
475
550
|
/**
|
|
476
|
-
* Schedule a GC
|
|
477
|
-
*
|
|
551
|
+
* Schedule a GC in idle time. Runs GC on all active roots, and avoids
|
|
552
|
+
* double-scheduling.
|
|
478
553
|
*
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
554
|
+
* Idle only. Without `requestIdleCallback` nothing is collected
|
|
555
|
+
* automatically: running the sweep inline here would put it inside the render
|
|
556
|
+
* that touched the class, and collection is never urgent enough for that.
|
|
482
557
|
*/
|
|
483
558
|
private scheduleGC;
|
|
484
559
|
/**
|
|
@@ -490,6 +565,21 @@ declare class StyleInjector {
|
|
|
490
565
|
* "unused" means. Entries carry their last `touch()` so callers can drop the
|
|
491
566
|
* oldest first; a class that was never touched sorts as oldest.
|
|
492
567
|
*/
|
|
568
|
+
/**
|
|
569
|
+
* Everything the injector holds falls into one of five bands, and only the
|
|
570
|
+
* last of them is ever deleted:
|
|
571
|
+
*
|
|
572
|
+
* 1. rendered — some element carries the class right now
|
|
573
|
+
* 2. not ours — queued for a batched write, pre-allocated, or server-rendered
|
|
574
|
+
* 3. hot — nothing carries it, but that was noticed less than `grace` ago
|
|
575
|
+
* 4. cached — cold, but within `capacity` when ordered by when it went cold
|
|
576
|
+
* 5. the rest
|
|
577
|
+
*
|
|
578
|
+
* This returns bands 4 and 5 together, most recently cold first; `gc()` draws
|
|
579
|
+
* the capacity line through them. Band 3 is what makes collection safe
|
|
580
|
+
* without a commit signal: a render can resolve a class and commit it a
|
|
581
|
+
* little later, and during that gap nothing on the page carries it.
|
|
582
|
+
*/
|
|
493
583
|
private collectUnused;
|
|
494
584
|
/**
|
|
495
585
|
* Class names this injector holds CSS for that nothing renders and nobody
|
|
@@ -1293,4 +1383,4 @@ declare function getNamePrefix(): string;
|
|
|
1293
1383
|
declare function resetConfig(): void;
|
|
1294
1384
|
//#endregion
|
|
1295
1385
|
export { ParseFunction as C, PropHandlerDefinition as D, PropHandler as E, PropHandlerProps as O, FunctionsConfig as S, SheetManager as T, TastyPluginFactory as _, getGlobalFontFaces as a, generateTypographyTokens as b, getGlobalRecipes as c, hasGlobalRecipes as d, hasStylesGenerated as f, TastyPlugin as g, resetConfig as h, getGlobalCounterStyles as i, getNamePrefix as l, isTestEnvironment as m, configure as n, getGlobalFunctions as o, isConfigLocked as p, getConfig as r, getGlobalKeyframes as s, TastyConfig as t, hasGlobalKeyframes as u, TypographyPreset as v, StyleInjector as w, ColorSpace as x, TypographyTokenValue as y };
|
|
1296
|
-
//# sourceMappingURL=config-
|
|
1386
|
+
//# sourceMappingURL=config-CA7iAlEI.d.ts.map
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ParseFunction, D as PropHandlerDefinition, E as PropHandler, O as PropHandlerProps, S as FunctionsConfig, T as SheetManager, _ as TastyPluginFactory, a as getGlobalFontFaces, b as generateTypographyTokens, c as getGlobalRecipes, d as hasGlobalRecipes, f as hasStylesGenerated, g as TastyPlugin, h as resetConfig, i as getGlobalCounterStyles, l as getNamePrefix, m as isTestEnvironment, n as configure, o as getGlobalFunctions, p as isConfigLocked, r as getConfig, s as getGlobalKeyframes, t as TastyConfig, u as hasGlobalKeyframes, v as TypographyPreset, w as StyleInjector, x as ColorSpace, y as TypographyTokenValue } from "../config-
|
|
2
|
-
import { $ as StyleParser, A as ParsedColor, At as StyleRule, B as StyleValueStateMap, C as SuffixForSelector, Ct as PropertyDefinition, D as CSSMap, Dt as RuleInfo, E as AnyStyleHandler, Et as RootRegistry, F as StyleHandlerProps, Ft as resetStyleBatch, G as parseColor, H as getGlobalParser, I as StyleHandlerResult, J as getNamedColorHex, K as parseStyle, L as StyleMap, M as ResolvedStyleValue, Mt as QueuedWrite, N as StyleHandler, Nt as flushStyles, O as CUSTOM_UNITS, Ot as SheetInfo, P as StyleHandlerDefinition, Pt as hasPendingStyleWrites, Q as strToRgb, R as StylePropValue, S as StylesWithoutSelectors, St as KeyframesSteps, T as TastyPresetNames, Tt as RawCSSResult, U as getGlobalPredefinedTokens, V as filterMods, W as normalizeColorTokenValue, X as hexToRgb, Y as getRgbValuesFromRgbaString, Z as hslToRgbValues, _ as NotSelector, _t as InjectResult, a as ParseStateKeyOptions, at as CSSProperties, b as Styles, bt as KeyframesInfo, c as ParsedAdvancedState, ct as DisposeFunction, d as getGlobalPredefinedStates, dt as FunctionDefinition, et as ParserOptions, f as setGlobalPredefinedStates, ft as FunctionParameter, g as NoType, gt as InjectOptions, h as ConfigTokens, i as renderStyles, it as UnitHandler, j as RawStyleHandler, jt as StyleUsage, k as DIRECTIONS, kt as StyleInjectorConfig, l as StateParserContext, lt as FontFaceDescriptors, m as ConfigTokenValue, mt as GCOptions, n as StyleResult, nt as StyleDetails, o as parseStateKey, ot as CacheMetrics, p as ConditionNode, pt as GCConfig, q as stringifyStyles, r as isSelector, rt as StyleDetailsPart, s as AtRuleContext, st as CounterStyleDescriptors, t as RenderResult, tt as ProcessedStyle, u as createStateParserContext, ut as FontFaceInput, v as RecipeStyles, vt as InjectionMode, w as TastyNamedColors, wt as PropertyOptions, x as StylesInterface, xt as KeyframesResult, y as Selector, yt as KeyframesCacheEntry, z as StyleValue } from "../index-
|
|
3
|
-
import { $ as
|
|
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 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, dotize, 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, hslToRgbValues, inject, injectGlobal, injectRawCSS, injector, isConfigLocked, isPropertyDefined, isSelector, isTestEnvironment, keyframes, mergeStyles, _modAttrs as modAttrs, normalizeColorTokenValue, okhslFunction, okhslPlugin, okhstFunction, okhstPlugin, parseColor, parseStateKey, parseStyle, processTokens, property, renderStyles, resetConfig, resetStyleBatch, resolveFunctionColor, resolveRecipes, setGlobalPredefinedStates, strToRgb, stringifyStyles, styleHandlers, tastyDebug, touch };
|
|
1
|
+
import { C as ParseFunction, D as PropHandlerDefinition, E as PropHandler, O as PropHandlerProps, S as FunctionsConfig, T as SheetManager, _ as TastyPluginFactory, a as getGlobalFontFaces, b as generateTypographyTokens, c as getGlobalRecipes, d as hasGlobalRecipes, f as hasStylesGenerated, g as TastyPlugin, h as resetConfig, i as getGlobalCounterStyles, l as getNamePrefix, m as isTestEnvironment, n as configure, o as getGlobalFunctions, p as isConfigLocked, r as getConfig, s as getGlobalKeyframes, t as TastyConfig, u as hasGlobalKeyframes, v as TypographyPreset, w as StyleInjector, x as ColorSpace, y as TypographyTokenValue } from "../config-CA7iAlEI.js";
|
|
2
|
+
import { $ as StyleParser, A as ParsedColor, At as StyleRule, B as StyleValueStateMap, C as SuffixForSelector, Ct as PropertyDefinition, D as CSSMap, Dt as RuleInfo, E as AnyStyleHandler, Et as RootRegistry, F as StyleHandlerProps, Ft as resetStyleBatch, G as parseColor, H as getGlobalParser, I as StyleHandlerResult, J as getNamedColorHex, K as parseStyle, L as StyleMap, M as ResolvedStyleValue, Mt as QueuedWrite, N as StyleHandler, Nt as flushStyles, O as CUSTOM_UNITS, Ot as SheetInfo, P as StyleHandlerDefinition, Pt as hasPendingStyleWrites, Q as strToRgb, R as StylePropValue, S as StylesWithoutSelectors, St as KeyframesSteps, T as TastyPresetNames, Tt as RawCSSResult, U as getGlobalPredefinedTokens, V as filterMods, W as normalizeColorTokenValue, X as hexToRgb, Y as getRgbValuesFromRgbaString, Z as hslToRgbValues, _ as NotSelector, _t as InjectResult, a as ParseStateKeyOptions, at as CSSProperties, b as Styles, bt as KeyframesInfo, c as ParsedAdvancedState, ct as DisposeFunction, d as getGlobalPredefinedStates, dt as FunctionDefinition, et as ParserOptions, f as setGlobalPredefinedStates, ft as FunctionParameter, g as NoType, gt as InjectOptions, h as ConfigTokens, i as renderStyles, it as UnitHandler, j as RawStyleHandler, jt as StyleUsage, k as DIRECTIONS, kt as StyleInjectorConfig, l as StateParserContext, lt as FontFaceDescriptors, m as ConfigTokenValue, mt as GCOptions, n as StyleResult, nt as StyleDetails, o as parseStateKey, ot as CacheMetrics, p as ConditionNode, pt as GCConfig, q as stringifyStyles, r as isSelector, rt as StyleDetailsPart, s as AtRuleContext, st as CounterStyleDescriptors, t as RenderResult, tt as ProcessedStyle, u as createStateParserContext, ut as FontFaceInput, v as RecipeStyles, vt as InjectionMode, w as TastyNamedColors, wt as PropertyOptions, x as StylesInterface, xt as KeyframesResult, y as Selector, yt as KeyframesCacheEntry, z as StyleValue } from "../index-C8RFYeFW.js";
|
|
3
|
+
import { $ as resolveFunctionColor, $t as Mods, A as isPropertyDefined, B as defineHandler, C as getCSSTextForNode, Cn as DEFAULT_NAME_PREFIX, D as injectGlobal, E as inject, F as ChunkSheetRegistry, G as CHUNK_NAMES, Gt as BlockStyleProps, H as ChunkInfo, Ht as BaseStyleProps, I as chunkSheetRegistry, J as DISPLAY_CHUNK_STYLES, Jt as DimensionStyleProps, K as ChunkName, Kt as ColorStyleProps, L as ComputeStylesOptions, M as ownKeyframes, N as property, O as injectRawCSS, P as touch, Q as STYLE_TO_CHUNK, Qt as ModValue, R as ComputeStylesResult, S as getCSSText, Sn as TEXT_STYLES, T as holdKeyframes, U as categorizeStyleKeys, Ut as BlockInnerStyleProps, V as styleHandlers, W as APPEARANCE_CHUNK_STYLES, Wt as BlockOuterStyleProps, X as LAYOUT_CHUNK_STYLES, Xt as FlowStyleProps, Y as FONT_CHUNK_STYLES, Yt as ExtraBaseStyleProps, Z as POSITION_CHUNK_STYLES, Zt as InnerStyleProps, _ as createInjector, _n as DIMENSION_STYLES, a as DebugOptions, an as TastyCustomProps, b as func, bn as OUTER_STYLES, c as tastyDebug, cn as TextStyleProps, d as dotize, dn as BASE_STYLES, en as OuterStyleProps, et as createColorFunc, f as _modAttrs, fn as BLOCK_INNER_STYLES, g as counterStyle, gn as CONTAINER_STYLES, h as cleanup, hn as COLOR_STYLES, i as DebugChunkInfo, in as TastyBaseStylePropNames, it as okhslPlugin, j as keyframes, k as injector, l as processTokens, ln as TokenValue, m as filterBaseProps, mn as BLOCK_STYLES, n as CacheStatus, nn as ShortGridStyles, nt as okhstPlugin, o as InspectResult, on as TastyExtensionConfig, p as color, pn as BLOCK_OUTER_STYLES, q as DIMENSION_CHUNK_STYLES, qt as ContainerStyleProps, r as ChunkBreakdown, rn as TagName, rt as okhslFunction, s as Summary, sn as TastyThemeNames, t as CSSOptions, tn as PositionStyleProps, tt as okhstFunction, u as resolveRecipes, un as Tokens, v as destroy, vn as FLOW_STYLES, w as getRawCSSText, wn as DEFAULT_ZERO_NAME_PREFIX, x as gc, xn as POSITION_STYLES, y as fontFace, yn as INNER_STYLES, z as computeStyles } from "../index-FpYK0H5g.js";
|
|
4
|
+
import { t as mergeStyles } from "../merge-styles-BQv7d3fx.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, dotize, 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 as 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,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
3
|
-
import {
|
|
4
|
-
import { t as mergeStyles } from "../merge-styles-
|
|
5
|
-
import { t as resolveRecipes } from "../resolve-recipes-
|
|
6
|
-
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, dotize, 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, hslToRgbValues, inject, injectGlobal, injectRawCSS, injector, isConfigLocked, isPropertyDefined, isSelector, isTestEnvironment, keyframes, mergeStyles, _modAttrs as modAttrs, normalizeColorTokenValue, okhslFunction, okhslPlugin, okhstFunction, okhstPlugin, parseColor, parseStateKey, parseStyle, processTokens, property, renderStyles, resetConfig, resetStyleBatch, resolveFunctionColor, resolveRecipes, setGlobalPredefinedStates, strToRgb, stringifyStyles, styleHandlers, tastyDebug, touch };
|
|
1
|
+
import { A as DIMENSION_STYLES, Bt as FONT_CHUNK_STYLES, Ct as DEFAULT_ZERO_NAME_PREFIX, D as BLOCK_STYLES, E as BLOCK_OUTER_STYLES, F as TEXT_STYLES, G as setGlobalPredefinedStates, Ht as POSITION_CHUNK_STYLES, It as APPEARANCE_CHUNK_STYLES, L as isSelector, Lt as CHUNK_NAMES, M as INNER_STYLES, N as OUTER_STYLES, O as COLOR_STYLES, P as POSITION_STYLES, Qt as filterMods, R as renderStyles, Rt as DIMENSION_CHUNK_STYLES, S as generateTypographyTokens, St as DEFAULT_NAME_PREFIX, T as BLOCK_INNER_STYLES, Ut as STYLE_TO_CHUNK, V as createStateParserContext, Vt as LAYOUT_CHUNK_STYLES, W as getGlobalPredefinedStates, Xt as CUSTOM_UNITS, Zt as DIRECTIONS, _ as isConfigLocked, _n as hexToRgb, an as stringifyStyles, c as getGlobalFunctions, cn as okhslFunction, d as getGlobalRecipes, dt as SheetManager, en as getGlobalParser, fn as StyleParser, g as hasStylesGenerated, gn as getRgbValuesFromRgbaString, h as hasGlobalRecipes, hn as getNamedColorHex, in as parseStyle, j as FLOW_STYLES, k as CONTAINER_STYLES, ln as okhslPlugin, m as hasGlobalKeyframes, mt as styleHandlers, n as getConfig, nn as normalizeColorTokenValue, o as getGlobalCounterStyles, on as okhstFunction, p as getNamePrefix, pt as defineHandler, rn as parseColor, rt as StyleInjector, s as getGlobalFontFaces, sn as okhstPlugin, t as configure, tn as getGlobalPredefinedTokens, u as getGlobalKeyframes, un as createColorFunc, vn as hslToRgbValues, vt as flushStyles, w as BASE_STYLES, x as resetConfig, xt as resetStyleBatch, y as isTestEnvironment, yn as strToRgb, yt as hasPendingStyleWrites, z as parseStateKey, zt as DISPLAY_CHUNK_STYLES } from "../config-Bd2vOF0Z.js";
|
|
2
|
+
import { A as keyframes, C as getRawCSSText, D as injectRawCSS, E as injectGlobal, F as chunkSheetRegistry, I as resolveFunctionColor, M as property, N as touch, O as injector, P as ChunkSheetRegistry, S as getCSSTextForNode, T as inject, _ as destroy, a as color, b as gc, g as createInjector, h as counterStyle, i as _modAttrs, j as ownKeyframes, k as isPropertyDefined, m as cleanup, n as processTokens, o as filterBaseProps, r as dotize, s as computeStyles, t as tastyDebug, v as fontFace, w as holdKeyframes, x as getCSSText, y as func } from "../core-ClInK6YG.js";
|
|
3
|
+
import { d as categorizeStyleKeys } from "../keyframes-BjfNVhaB.js";
|
|
4
|
+
import { t as mergeStyles } from "../merge-styles-BbJhjesV.js";
|
|
5
|
+
import { t as resolveRecipes } from "../resolve-recipes-B2Sf36AH.js";
|
|
6
|
+
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, dotize, 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 as modAttrs, normalizeColorTokenValue, okhslFunction, okhslPlugin, okhstFunction, okhstPlugin, ownKeyframes, parseColor, parseStateKey, parseStyle, processTokens, property, renderStyles, resetConfig, resetStyleBatch, resolveFunctionColor, resolveRecipes, setGlobalPredefinedStates, strToRgb, stringifyStyles, styleHandlers, tastyDebug, touch };
|