@tenphi/tasty 0.0.0-snapshot.05e04ff → 0.0.0-snapshot.06c8a41
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-CeYENy2x.js +301 -0
- package/dist/astro-CeYENy2x.js.map +1 -0
- package/dist/{babel-B_P8t-f0.d.ts → babel-DWCsafYw.d.ts} +2 -2
- package/dist/{collector-DCI2yzwx.js → collector-B3OsM252.js} +36 -13
- package/dist/collector-B3OsM252.js.map +1 -0
- package/dist/{collector-CQDeU7WS.d.ts → collector-BTVXj2hS.d.ts} +21 -3
- package/dist/{config-B97n_EIv.js → config-B3gPdCqd.js} +202 -393
- package/dist/config-B3gPdCqd.js.map +1 -0
- package/dist/{config-CwRr6-fG.d.ts → config-LfIDmVHx.d.ts} +93 -65
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +6 -6
- package/dist/{core-DWrUWxog.js → core-DGm0CFHP.js} +271 -184
- package/dist/core-DGm0CFHP.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-Cq0fg5v8.js → css-writer-Bgowobbx.js} +3 -3
- package/dist/{css-writer-Cq0fg5v8.js.map → css-writer-Bgowobbx.js.map} +1 -1
- package/dist/{format-rules-Wb7dJOoL.js → format-rules-XRw9u7d4.js} +3 -29
- package/dist/format-rules-XRw9u7d4.js.map +1 -0
- package/dist/{hydrate-gFTLBDK9.js → hydrate-CNOmZprz.js} +2 -2
- package/dist/{hydrate-gFTLBDK9.js.map → hydrate-CNOmZprz.js.map} +1 -1
- package/dist/{index-C0W21Qcb.d.ts → index-Bm9ltvdH.d.ts} +28 -53
- package/dist/{index-DpykQKO8.d.ts → index-BmogEzTo.d.ts} +60 -38
- package/dist/index.d.ts +5 -5
- package/dist/index.js +41 -117
- package/dist/index.js.map +1 -1
- package/dist/{renderChunk-COXABoQz.js → keyframes-DE-OE76F.js} +248 -3
- package/dist/keyframes-DE-OE76F.js.map +1 -0
- package/dist/{merge-styles-Bpwfy1CS.d.ts → merge-styles-BcLl1u_d.d.ts} +2 -2
- package/dist/{merge-styles-CzVxdtav.js → merge-styles-DuoZEsm9.js} +2 -2
- package/dist/{merge-styles-CzVxdtav.js.map → merge-styles-DuoZEsm9.js.map} +1 -1
- package/dist/{resolve-recipes-BnrUEjWV.js → resolve-recipes-H9NqOQuP.js} +3 -3
- package/dist/{resolve-recipes-BnrUEjWV.js.map → resolve-recipes-H9NqOQuP.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/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/debug.md +13 -0
- package/docs/injector.md +21 -7
- package/docs/runtime-benchmarks.md +192 -75
- package/docs/ssr.md +179 -20
- package/package.json +30 -9
- package/dist/collector-DCI2yzwx.js.map +0 -1
- package/dist/config-B97n_EIv.js.map +0 -1
- package/dist/core-DWrUWxog.js.map +0 -1
- package/dist/format-rules-Wb7dJOoL.js.map +0 -1
- package/dist/renderChunk-COXABoQz.js.map +0 -1
- package/dist/ssr/astro.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as
|
|
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-BmogEzTo.js";
|
|
2
2
|
|
|
3
3
|
//#region src/prop-handlers.d.ts
|
|
4
4
|
/**
|
|
@@ -165,6 +165,11 @@ declare class SheetManager {
|
|
|
165
165
|
* Get total number of rules across all sheets
|
|
166
166
|
*/
|
|
167
167
|
getTotalRuleCount(registry: RootRegistry): number;
|
|
168
|
+
/**
|
|
169
|
+
* The CSS of one managed sheet, or `null` when it holds none this can read —
|
|
170
|
+
* an empty style element, or a sheet the engine refuses to hand over.
|
|
171
|
+
*/
|
|
172
|
+
private readSheetCSS;
|
|
168
173
|
/**
|
|
169
174
|
* Get CSS text from all sheets (for SSR)
|
|
170
175
|
*/
|
|
@@ -232,6 +237,28 @@ declare class SheetManager {
|
|
|
232
237
|
/**
|
|
233
238
|
* Get the raw CSS content
|
|
234
239
|
*/
|
|
240
|
+
/**
|
|
241
|
+
* The CSS this injector owns in `root`, one entry per sheet, in the order the
|
|
242
|
+
* engine applies them.
|
|
243
|
+
*
|
|
244
|
+
* `getCSSText()` walks the managed sheets only, and raw CSS has its own —
|
|
245
|
+
* which sits before, after, or *between* them depending on how it got there:
|
|
246
|
+
* prepended to `adoptedStyleSheets`, or wherever in `<head>` the first raw
|
|
247
|
+
* injection happened to land, with every managed sheet opened afterwards
|
|
248
|
+
* following it. Reporting a fixed order would describe the opposite winner
|
|
249
|
+
* from the live page whenever two rules of equal specificity meet, so the raw
|
|
250
|
+
* sheet is spliced in at the position the DOM actually gives it.
|
|
251
|
+
*/
|
|
252
|
+
getOwnedCSSInOrder(registry: RootRegistry, root: Document | ShadowRoot): string[];
|
|
253
|
+
/**
|
|
254
|
+
* Top-level rules in the raw sheet.
|
|
255
|
+
*
|
|
256
|
+
* Read from the sheet the engine parsed, not from the text: a raw block is
|
|
257
|
+
* one string but any number of rules, and one rule — `@keyframes`, `@media` —
|
|
258
|
+
* can contain any number of blocks, so counting braces answers neither
|
|
259
|
+
* question.
|
|
260
|
+
*/
|
|
261
|
+
getRawRuleCount(root: Document | ShadowRoot): number;
|
|
235
262
|
getRawCSSText(root: Document | ShadowRoot): string;
|
|
236
263
|
}
|
|
237
264
|
//#endregion
|
|
@@ -240,19 +267,8 @@ declare class StyleInjector {
|
|
|
240
267
|
private sheetManager;
|
|
241
268
|
private config;
|
|
242
269
|
private globalRuleCounter;
|
|
243
|
-
/** Cancels the scheduled
|
|
270
|
+
/** Cancels the scheduled sweep, whichever timer scheduled it. */
|
|
244
271
|
private cancelPendingGC;
|
|
245
|
-
/** className -> the CSS it stands for, so a collected class can come back. */
|
|
246
|
-
private recipes;
|
|
247
|
-
/**
|
|
248
|
-
* cacheKey -> the class name it resolves to, and whether its CSS has been
|
|
249
|
-
* described yet. A managed render is then one lookup rather than a hash plus
|
|
250
|
-
* a second lookup, which matters because it runs for every chunk of every
|
|
251
|
-
* component on every render.
|
|
252
|
-
*/
|
|
253
|
-
private classNames;
|
|
254
|
-
/** Releases since the last scheduled pass. */
|
|
255
|
-
private releaseCount;
|
|
256
272
|
private namePrefix;
|
|
257
273
|
private classRegex;
|
|
258
274
|
private rscClassRegex;
|
|
@@ -336,6 +352,28 @@ declare class StyleInjector {
|
|
|
336
352
|
getRawCSSText(options?: {
|
|
337
353
|
root?: Document | ShadowRoot;
|
|
338
354
|
}): string;
|
|
355
|
+
/**
|
|
356
|
+
* Take a reference on local `@keyframes`, under the deterministic names the
|
|
357
|
+
* caller resolved.
|
|
358
|
+
*
|
|
359
|
+
* One reference per distinct set of steps, shared by every class that ends up
|
|
360
|
+
* animating it, so a repeat render takes nothing further. Ownership is
|
|
361
|
+
* assigned by `ownKeyframes()` once the rules exist to be inspected.
|
|
362
|
+
*/
|
|
363
|
+
holdKeyframes(steps: Record<string, KeyframesSteps>, names: Map<string, string>, options?: {
|
|
364
|
+
root?: Document | ShadowRoot;
|
|
365
|
+
}): Map<string, string>;
|
|
366
|
+
/**
|
|
367
|
+
* Record that `className` animates these keyframes, so the reference is
|
|
368
|
+
* released when the last such class is collected.
|
|
369
|
+
*
|
|
370
|
+
* Only classes whose rules actually reference the animation should be here:
|
|
371
|
+
* a class that merely rendered alongside one would otherwise keep the
|
|
372
|
+
* keyframes alive for as long as it lives.
|
|
373
|
+
*/
|
|
374
|
+
ownKeyframes(key: string, className: string, options?: {
|
|
375
|
+
root?: Document | ShadowRoot;
|
|
376
|
+
}): void;
|
|
339
377
|
/**
|
|
340
378
|
* Pin an already-injected cacheKey and return the handle that releases it.
|
|
341
379
|
* For callers that skipped the pipeline on a cache hit but still need the
|
|
@@ -460,74 +498,64 @@ declare class StyleInjector {
|
|
|
460
498
|
keyframes(steps: KeyframesSteps, nameOrOptions?: string | {
|
|
461
499
|
root?: Document | ShadowRoot;
|
|
462
500
|
name?: string;
|
|
501
|
+
/**
|
|
502
|
+
* Give this name its own rule even if another name already carries
|
|
503
|
+
* the same steps. Without it two names with identical steps share
|
|
504
|
+
* one rule under whichever name arrived first — fine when the caller
|
|
505
|
+
* only wants the animation, wrong when the name has to be the one it
|
|
506
|
+
* asked for.
|
|
507
|
+
*/
|
|
508
|
+
distinctByName?: boolean;
|
|
463
509
|
}): KeyframesResult;
|
|
464
510
|
/**
|
|
465
511
|
* Dispose keyframes
|
|
466
512
|
*/
|
|
467
513
|
private disposeKeyframes;
|
|
468
514
|
/**
|
|
469
|
-
*
|
|
470
|
-
*
|
|
471
|
-
*
|
|
472
|
-
*/
|
|
473
|
-
/**
|
|
474
|
-
* The class name a cache key resolves to, and whether its CSS is already
|
|
475
|
-
* described. Pure: no allocation beyond the memo, nothing written — safe
|
|
476
|
-
* during render, and stable because the name is a hash of the key.
|
|
477
|
-
*/
|
|
478
|
-
resolveChunk(cacheKey: string): {
|
|
479
|
-
name: string;
|
|
480
|
-
described: boolean;
|
|
481
|
-
};
|
|
482
|
-
/** Whether this class has already been described, so its CSS need not be re-rendered. */
|
|
483
|
-
hasRecipe(className: string): boolean;
|
|
484
|
-
/**
|
|
485
|
-
* Record the CSS a class name stands for without writing it to a sheet.
|
|
486
|
-
*
|
|
487
|
-
* Called during render. Nothing is inserted yet: the component that will
|
|
488
|
-
* carry the class inserts it from here when it commits, so a render that is
|
|
489
|
-
* discarded leaves no rule behind, and a rule collected between render and
|
|
490
|
-
* commit comes back.
|
|
491
|
-
*/
|
|
492
|
-
defineRecipe(className: string, recipe: StyleRecipe): void;
|
|
493
|
-
/**
|
|
494
|
-
* Take up a class on commit: insert its rules if they are not in the sheet,
|
|
495
|
-
* and count one more mounted holder.
|
|
515
|
+
* Count a render, and schedule a collection pass every `touchInterval` of
|
|
516
|
+
* them. Nothing else: what a class is worth keeping is decided by the sweep's
|
|
517
|
+
* own DOM scan, so rendering does not track usage at all.
|
|
496
518
|
*
|
|
497
|
-
*
|
|
498
|
-
*
|
|
519
|
+
* @deprecated The class name is ignored — pass anything, or stop calling it.
|
|
520
|
+
* Collection no longer records per-class usage, and scheduling does not need
|
|
521
|
+
* to know which class was rendered. A class handed back by `inject()` is
|
|
522
|
+
* marked wanted there, which is what reuse actually goes through.
|
|
499
523
|
*/
|
|
500
|
-
|
|
524
|
+
touch(_className: string, options?: {
|
|
501
525
|
root?: Document | ShadowRoot;
|
|
502
526
|
}): void;
|
|
503
527
|
/**
|
|
504
|
-
*
|
|
505
|
-
* not deleted here: insertion-effect cleanups and setups interleave component
|
|
506
|
-
* by component, so a sibling mounting the same class must get to say so
|
|
507
|
-
* first. The scheduled pass re-checks before deleting anything.
|
|
508
|
-
*/
|
|
509
|
-
release(className: string, options?: {
|
|
510
|
-
root?: Document | ShadowRoot;
|
|
511
|
-
}): void;
|
|
512
|
-
/**
|
|
513
|
-
* Schedule a collection pass. Runs on all active roots, and avoids
|
|
528
|
+
* Schedule a GC in idle time. Runs GC on all active roots, and avoids
|
|
514
529
|
* double-scheduling.
|
|
515
530
|
*
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
* Deleting on the way past would race that; the pass re-checks instead.
|
|
531
|
+
* Idle only. Without `requestIdleCallback` nothing is collected
|
|
532
|
+
* automatically: running the sweep inline here would put it inside the render
|
|
533
|
+
* that touched the class, and collection is never urgent enough for that.
|
|
520
534
|
*/
|
|
521
535
|
private scheduleGC;
|
|
522
536
|
/**
|
|
523
|
-
* The one definition of "unused":
|
|
524
|
-
*
|
|
525
|
-
*
|
|
526
|
-
*
|
|
537
|
+
* The one definition of "unused": this injector owns the class's rules, no
|
|
538
|
+
* element in `root` carries it, and nobody pinned it.
|
|
539
|
+
*
|
|
540
|
+
* `gc()` evicts from this set, `getMetrics()` counts it, and `tastyDebug`
|
|
541
|
+
* reports it — all through here, so the three can never disagree about what
|
|
542
|
+
* "unused" means. Entries carry their last `touch()` so callers can drop the
|
|
543
|
+
* oldest first; a class that was never touched sorts as oldest.
|
|
544
|
+
*/
|
|
545
|
+
/**
|
|
546
|
+
* Everything the injector holds falls into one of five bands, and only the
|
|
547
|
+
* last of them is ever deleted:
|
|
548
|
+
*
|
|
549
|
+
* 1. rendered — some element carries the class right now
|
|
550
|
+
* 2. not ours — queued for a batched write, pre-allocated, or server-rendered
|
|
551
|
+
* 3. hot — nothing carries it, but that was noticed less than `grace` ago
|
|
552
|
+
* 4. cached — cold, but within `capacity` when ordered by when it went cold
|
|
553
|
+
* 5. the rest
|
|
527
554
|
*
|
|
528
|
-
*
|
|
529
|
-
*
|
|
530
|
-
*
|
|
555
|
+
* This returns bands 4 and 5 together, most recently cold first; `gc()` draws
|
|
556
|
+
* the capacity line through them. Band 3 is what makes collection safe
|
|
557
|
+
* without a commit signal: a render can resolve a class and commit it a
|
|
558
|
+
* little later, and during that gap nothing on the page carries it.
|
|
531
559
|
*/
|
|
532
560
|
private collectUnused;
|
|
533
561
|
/**
|
|
@@ -1332,4 +1360,4 @@ declare function getNamePrefix(): string;
|
|
|
1332
1360
|
declare function resetConfig(): void;
|
|
1333
1361
|
//#endregion
|
|
1334
1362
|
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 };
|
|
1335
|
-
//# sourceMappingURL=config-
|
|
1363
|
+
//# sourceMappingURL=config-LfIDmVHx.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
|
|
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
|
|
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-LfIDmVHx.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-BmogEzTo.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-Bm9ltvdH.js";
|
|
4
|
+
import { t as mergeStyles } from "../merge-styles-BcLl1u_d.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 { $t as
|
|
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,
|
|
1
|
+
import { $ as SheetManager, $t as StyleParser, A as FLOW_STYLES, At as STYLE_TO_CHUNK, B as createStateParserContext, C as BASE_STYLES, Ct as APPEARANCE_CHUNK_STYLES, D as COLOR_STYLES, Dt as FONT_CHUNK_STYLES, E as BLOCK_STYLES, Et as DISPLAY_CHUNK_STYLES, G as StyleInjector, Gt as parseStyle, Ht as getGlobalPredefinedTokens, I as isSelector, Jt as okhstPlugin, Kt as stringifyStyles, L as renderStyles, Lt as CUSTOM_UNITS, M as OUTER_STYLES, N as POSITION_STYLES, O as CONTAINER_STYLES, Ot as LAYOUT_CHUNK_STYLES, P as TEXT_STYLES, R as parseStateKey, Rt as DIRECTIONS, T as BLOCK_OUTER_STYLES, Tt as DIMENSION_CHUNK_STYLES, U as getGlobalPredefinedStates, Ut as normalizeColorTokenValue, Vt as getGlobalParser, W as setGlobalPredefinedStates, Wt as parseColor, Xt as okhslPlugin, Yt as okhslFunction, Zt as createColorFunc, a as getGlobalCounterStyles, an as hslToRgbValues, b as resetConfig, dt as DEFAULT_ZERO_NAME_PREFIX, f as getNamePrefix, g as isConfigLocked, h as hasStylesGenerated, in as hexToRgb, j as INNER_STYLES, k as DIMENSION_STYLES, kt as POSITION_CHUNK_STYLES, l as getGlobalKeyframes, lt as resetStyleBatch, m as hasGlobalRecipes, n as getConfig, nn as getNamedColorHex, nt as styleHandlers, o as getGlobalFontFaces, on as strToRgb, ot as flushStyles, p as hasGlobalKeyframes, qt as okhstFunction, rn as getRgbValuesFromRgbaString, s as getGlobalFunctions, st as hasPendingStyleWrites, t as configure, tt as defineHandler, u as getGlobalRecipes, ut as DEFAULT_NAME_PREFIX, v as isTestEnvironment, w as BLOCK_INNER_STYLES, wt as CHUNK_NAMES, x as generateTypographyTokens, zt as filterMods } from "../config-B3gPdCqd.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-DGm0CFHP.js";
|
|
3
|
+
import { d as categorizeStyleKeys } from "../keyframes-DE-OE76F.js";
|
|
4
|
+
import { t as mergeStyles } from "../merge-styles-DuoZEsm9.js";
|
|
5
|
+
import { t as resolveRecipes } from "../resolve-recipes-H9NqOQuP.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 };
|