@tenphi/tasty 0.0.0-snapshot.b7bfdb1 → 0.0.0-snapshot.b9638e2
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-B-GRlMsD.js +301 -0
- package/dist/astro-B-GRlMsD.js.map +1 -0
- package/dist/{babel-Brsw7Ax_.d.ts → babel-Co7AQYZi.d.ts} +2 -2
- package/dist/{collector-0YO-P1vW.d.ts → collector-DcFus-on.d.ts} +77 -11
- package/dist/collector-lSNHiyV4.js +507 -0
- package/dist/collector-lSNHiyV4.js.map +1 -0
- package/dist/{config-DsqqkmUs.js → config-0BOip6sG.js} +279 -42
- package/dist/config-0BOip6sG.js.map +1 -0
- package/dist/{config-CscQCTAM.d.ts → config-CX1uhP_J.d.ts} +64 -14
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +5 -5
- package/dist/{core-KVEKOhEi.js → core-9-MlDDty.js} +323 -80
- package/dist/core-9-MlDDty.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-Cdrh5gHj.js → css-writer-Cqwf5R9j.js} +3 -3
- package/dist/{css-writer-Cdrh5gHj.js.map → css-writer-Cqwf5R9j.js.map} +1 -1
- package/dist/{format-rules-CHNmNGhw.js → format-rules-BDyJWLM4.js} +22 -32
- package/dist/format-rules-BDyJWLM4.js.map +1 -0
- package/dist/{hydrate-DJhwbWq4.js → hydrate-BO7AdF5u.js} +2 -2
- package/dist/{hydrate-DJhwbWq4.js.map → hydrate-BO7AdF5u.js.map} +1 -1
- package/dist/{index-BR9as3qn.d.ts → index-DTR1j9lI.d.ts} +14 -12
- package/dist/{index-BmogEzTo.d.ts → index-DilKPhLV.d.ts} +9 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +42 -26
- package/dist/index.js.map +1 -1
- package/dist/{keyframes-CQY-i8dO.js → keyframes-WdECyw4q.js} +25 -3
- package/dist/keyframes-WdECyw4q.js.map +1 -0
- package/dist/{merge-styles-BcLl1u_d.d.ts → merge-styles-DYO-_fVF.d.ts} +2 -2
- package/dist/{merge-styles-voA8J__3.js → merge-styles-a4-oNeJL.js} +2 -2
- package/dist/{merge-styles-voA8J__3.js.map → merge-styles-a4-oNeJL.js.map} +1 -1
- package/dist/precompile/index.d.ts +11 -0
- package/dist/precompile/index.js +67 -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-B_l2owXe.js +164 -0
- package/dist/register-B_l2owXe.js.map +1 -0
- package/dist/{resolve-recipes-BP2NqOtQ.js → resolve-recipes-C7bE_z63.js} +3 -3
- package/dist/{resolve-recipes-BP2NqOtQ.js.map → resolve-recipes-C7bE_z63.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-DoTCVFsG.d.ts +65 -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 +11 -4
- package/docs/precompile.md +172 -0
- package/docs/runtime-benchmarks.md +10 -1
- package/docs/ssr.md +179 -20
- package/package.json +37 -8
- package/dist/collector-DJqx7XO0.js +0 -304
- package/dist/collector-DJqx7XO0.js.map +0 -1
- package/dist/config-DsqqkmUs.js.map +0 -1
- package/dist/core-KVEKOhEi.js.map +0 -1
- package/dist/format-rules-CHNmNGhw.js.map +0 -1
- package/dist/keyframes-CQY-i8dO.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-DilKPhLV.js";
|
|
2
|
+
import { c as TastyPrecompiledDependencies } from "./types-DoTCVFsG.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
|
|
@@ -245,8 +273,15 @@ declare class StyleInjector {
|
|
|
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).
|
|
@@ -326,24 +372,16 @@ declare class StyleInjector {
|
|
|
326
372
|
root?: Document | ShadowRoot;
|
|
327
373
|
}): string;
|
|
328
374
|
/**
|
|
329
|
-
* Take a reference on local `@keyframes
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
* Names have to be resolved before the rules that animate them are written:
|
|
333
|
-
* an injected name can differ from the authored one, and a rule written
|
|
334
|
-
* first cannot be rewritten afterwards — its cache key is already claimed,
|
|
335
|
-
* so the second write is a hit and the corrected declarations are dropped.
|
|
375
|
+
* Take a reference on local `@keyframes`, under the deterministic names the
|
|
376
|
+
* caller resolved.
|
|
336
377
|
*
|
|
337
378
|
* One reference per distinct set of steps, shared by every class that ends up
|
|
338
379
|
* animating it, so a repeat render takes nothing further. Ownership is
|
|
339
380
|
* assigned by `ownKeyframes()` once the rules exist to be inspected.
|
|
340
381
|
*/
|
|
341
|
-
holdKeyframes(steps: Record<string, KeyframesSteps>, options?: {
|
|
382
|
+
holdKeyframes(steps: Record<string, KeyframesSteps>, names: Map<string, string>, options?: {
|
|
342
383
|
root?: Document | ShadowRoot;
|
|
343
|
-
}):
|
|
344
|
-
names: Map<string, string>;
|
|
345
|
-
keys: Map<string, string>;
|
|
346
|
-
};
|
|
384
|
+
}): Map<string, string>;
|
|
347
385
|
/**
|
|
348
386
|
* Record that `className` animates these keyframes, so the reference is
|
|
349
387
|
* released when the last such class is collected.
|
|
@@ -355,6 +393,10 @@ declare class StyleInjector {
|
|
|
355
393
|
ownKeyframes(key: string, className: string, options?: {
|
|
356
394
|
root?: Document | ShadowRoot;
|
|
357
395
|
}): void;
|
|
396
|
+
/** Record a chunk lookup served by an immutable external stylesheet. */
|
|
397
|
+
recordPrecompiledHit(options?: {
|
|
398
|
+
root?: Document | ShadowRoot;
|
|
399
|
+
}): void;
|
|
358
400
|
/**
|
|
359
401
|
* Pin an already-injected cacheKey and return the handle that releases it.
|
|
360
402
|
* For callers that skipped the pipeline on a cache hit but still need the
|
|
@@ -479,6 +521,14 @@ declare class StyleInjector {
|
|
|
479
521
|
keyframes(steps: KeyframesSteps, nameOrOptions?: string | {
|
|
480
522
|
root?: Document | ShadowRoot;
|
|
481
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;
|
|
482
532
|
}): KeyframesResult;
|
|
483
533
|
/**
|
|
484
534
|
* Dispose keyframes
|
|
@@ -1333,4 +1383,4 @@ declare function getNamePrefix(): string;
|
|
|
1333
1383
|
declare function resetConfig(): void;
|
|
1334
1384
|
//#endregion
|
|
1335
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 };
|
|
1336
|
-
//# sourceMappingURL=config-
|
|
1386
|
+
//# sourceMappingURL=config-CX1uhP_J.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 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-
|
|
4
|
-
import { t as mergeStyles } from "../merge-styles-
|
|
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-CX1uhP_J.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-DilKPhLV.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-DTR1j9lI.js";
|
|
4
|
+
import { t as mergeStyles } from "../merge-styles-DYO-_fVF.js";
|
|
5
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 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-
|
|
3
|
-
import {
|
|
4
|
-
import { t as mergeStyles } from "../merge-styles-
|
|
5
|
-
import { t as resolveRecipes } from "../resolve-recipes-
|
|
1
|
+
import { $t as getGlobalParser, A as FLOW_STYLES, B as createStateParserContext, Bt as LAYOUT_CHUNK_STYLES, C as BASE_STYLES, D as COLOR_STYLES, E as BLOCK_STYLES, Ft as APPEARANCE_CHUNK_STYLES, Ht as STYLE_TO_CHUNK, I as isSelector, It as CHUNK_NAMES, L as renderStyles, Lt as DIMENSION_CHUNK_STYLES, M as OUTER_STYLES, N as POSITION_STYLES, O as CONTAINER_STYLES, P as TEXT_STYLES, R as parseStateKey, Rt as DISPLAY_CHUNK_STYLES, St as DEFAULT_ZERO_NAME_PREFIX, T as BLOCK_OUTER_STYLES, U as getGlobalPredefinedStates, Vt as POSITION_CHUNK_STYLES, W as setGlobalPredefinedStates, Xt as DIRECTIONS, Yt as CUSTOM_UNITS, Zt as filterMods, _n as hslToRgbValues, _t as flushStyles, a as getGlobalCounterStyles, an as okhstFunction, b as resetConfig, bt as resetStyleBatch, cn as okhslPlugin, dn as StyleParser, en as getGlobalPredefinedTokens, f as getNamePrefix, ft as defineHandler, g as isConfigLocked, gn as hexToRgb, h as hasStylesGenerated, hn as getRgbValuesFromRgbaString, in as stringifyStyles, j as INNER_STYLES, k as DIMENSION_STYLES, l as getGlobalKeyframes, ln as createColorFunc, m as hasGlobalRecipes, mn as getNamedColorHex, n as getConfig, nn as parseColor, nt as StyleInjector, o as getGlobalFontFaces, on as okhstPlugin, p as hasGlobalKeyframes, pt as styleHandlers, rn as parseStyle, s as getGlobalFunctions, sn as okhslFunction, t as configure, tn as normalizeColorTokenValue, u as getGlobalRecipes, ut as SheetManager, v as isTestEnvironment, vn as strToRgb, vt as hasPendingStyleWrites, w as BLOCK_INNER_STYLES, x as generateTypographyTokens, xt as DEFAULT_NAME_PREFIX, zt as FONT_CHUNK_STYLES } from "../config-0BOip6sG.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-9-MlDDty.js";
|
|
3
|
+
import { d as categorizeStyleKeys } from "../keyframes-WdECyw4q.js";
|
|
4
|
+
import { t as mergeStyles } from "../merge-styles-a4-oNeJL.js";
|
|
5
|
+
import { t as resolveRecipes } from "../resolve-recipes-C7bE_z63.js";
|
|
6
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 };
|