cssints 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -44
- package/dist/check.mjs +2 -2
- package/dist/{contrast-DhK69Xak.mjs → contrast-B49XCnVX.mjs} +2 -2
- package/dist/devtools-link-D2YxsJKZ.mjs +94 -0
- package/dist/devtools-link.d.mts +55 -0
- package/dist/devtools-link.mjs +2 -0
- package/dist/groups/baseline-2015/with-downstream.d.mts +81 -0
- package/dist/groups/baseline-2015.d.mts +291 -0
- package/dist/groups/baseline-2016/with-downstream.d.mts +86 -0
- package/dist/groups/baseline-2016.d.mts +310 -0
- package/dist/groups/baseline-2017/with-downstream.d.mts +94 -0
- package/dist/groups/baseline-2017.d.mts +365 -0
- package/dist/groups/baseline-2018/with-downstream.d.mts +94 -0
- package/dist/groups/baseline-2018.d.mts +368 -0
- package/dist/groups/baseline-2019/with-downstream.d.mts +97 -0
- package/dist/groups/baseline-2019.d.mts +375 -0
- package/dist/groups/baseline-2020/with-downstream.d.mts +112 -0
- package/dist/groups/baseline-2020.d.mts +480 -0
- package/dist/groups/baseline-2021/with-downstream.d.mts +125 -0
- package/dist/groups/baseline-2021.d.mts +536 -0
- package/dist/groups/baseline-2022/with-downstream.d.mts +126 -0
- package/dist/groups/baseline-2022.d.mts +562 -0
- package/dist/groups/baseline-2023/with-downstream.d.mts +120 -0
- package/dist/groups/baseline-2023.d.mts +606 -0
- package/dist/groups/baseline-2024/with-downstream.d.mts +627 -0
- package/dist/groups/baseline-2024.d.mts +632 -0
- package/dist/groups/baseline-2025/with-downstream.d.mts +628 -0
- package/dist/groups/baseline-2025.d.mts +640 -0
- package/dist/groups/baseline-2026/with-downstream.d.mts +3 -0
- package/dist/groups/baseline-2026.d.mts +3 -0
- package/dist/groups/newly-available/with-downstream.d.mts +632 -0
- package/dist/groups/widely-available/with-downstream.d.mts +121 -0
- package/dist/index.mjs +22 -7
- package/dist/instrument-BqIZpbIU.mjs +3956 -0
- package/dist/{lowered-D2KusPLp.mjs → lowered-aJVapQT6.mjs} +1 -1
- package/dist/plugin-types.d.mts +7 -0
- package/dist/plugin.d.mts +2 -2
- package/dist/plugin.mjs +8 -1
- package/dist/{registry-CTumHB8p.mjs → registry-BUSEO32-.mjs} +7 -1
- package/dist/{scope-ZVhUxQH1.d.mts → scope-INuJD4RT.d.mts} +8 -1
- package/dist/{sheet-BKsMTa0c.mjs → sheet-BeHdq4xt.mjs} +1 -1
- package/dist/surface.d.mts +1 -1
- package/dist/{theme-BsP2E4LB.mjs → theme-SlQ73rFL.mjs} +3 -3
- package/dist/tui.mjs +4 -4
- package/dist/vite.d.mts +3 -1
- package/dist/vite.mjs +92 -39
- package/docs/API.md +458 -231
- package/package.json +6 -2
- package/skills/cssints-plugin/SKILL.md +2 -0
- package/dist/instrument-gCazujmb.mjs +0 -1624
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { A as Wrap, C as Keyframes, D as QueryWrap, F as cv, H as style, I as firstThatWorks, J as FlexMethods, K as within, L as global, M as cn, O as StateWrap, R as group, S as CvValue, T as PositionTry, W as token, Y as GridMethods, _ as CSSStyleValue, a as DtcgUnit, am as Fallback, b as CvConfig, c as Tokens, d as createTokens, f as layers, g as CSSImageValue, h as CSSColorValue, i as DtcgShadow, j as attr, k as Steps, l as check, m as CSS, n as DtcgColor, o as DtcgValue, om as Part, p as AttrOp, q as ClassValue, r as DtcgCubicBezier, s as Overrides, sm as Style, t as CheckOverrides, u as createGlobalTheme, v as CSSUnitValue, x as CvProps, z as keyframes } from "../../theme-types-Bqv0Ggz_.mjs";
|
|
2
|
+
import { a as GProp, r as GLayout, t as GCondition } from "../../group-types-9ttphdku.mjs";
|
|
3
|
+
import "../../group-common-9zpBxfUF.mjs";
|
|
4
|
+
import { WebkitTextFillColor, WebkitTextStroke, WebkitTextStrokeColor, WebkitTextStrokeWidth, acos, active, alignContent, alignItems, alignSelf, all, animation, animationComposition, animationDelay, animationDirection, animationDuration, animationFillMode, animationIterationCount, animationName, animationPlayState, animationTimingFunction, anyLink, appearance, asin, aspectRatio, atan, atan2, attrFn, backfaceVisibility, backgroundAttachment, backgroundBlendMode, backgroundClip, backgroundColor, backgroundImage, backgroundOrigin, backgroundPosition, backgroundRepeat, backgroundSize, bg, blockSize, blur, border, borderBlock, borderBlockColor, borderBlockEnd, borderBlockEndColor, borderBlockEndStyle, borderBlockEndWidth, borderBlockStart, borderBlockStartColor, borderBlockStartStyle, borderBlockStartWidth, borderBlockStyle, borderBlockWidth, borderBottom, borderBottomColor, borderBottomLeftRadius, borderBottomRightRadius, borderBottomStyle, borderBottomWidth, borderCollapse, borderColor, borderEndEndRadius, borderEndStartRadius, borderImage, borderImageOutset, borderImageRepeat, borderImageSlice, borderImageSource, borderImageWidth, borderInline, borderInlineColor, borderInlineEnd, borderInlineEndColor, borderInlineEndStyle, borderInlineEndWidth, borderInlineStart, borderInlineStartColor, borderInlineStartStyle, borderInlineStartWidth, borderInlineStyle, borderInlineWidth, borderLeft, borderLeftColor, borderLeftStyle, borderLeftWidth, borderRadius, borderRight, borderRightColor, borderRightStyle, borderRightWidth, borderSpacing, borderStartEndRadius, borderStartStartRadius, borderStyle, borderTop, borderTopColor, borderTopLeftRadius, borderTopRightRadius, borderTopStyle, borderTopWidth, borderWidth, bottom, boxShadow, boxSizing, breakAfter, breakBefore, breakInside, brightness, calc, captionSide, caretColor, checked, circle, clamp, clear, clipPath, clipRule, color, colorFn, colorInterpolationFilters, colorMix, colorScheme, columnCount, columnFill, columnGap, columnRule, columnRuleColor, columnRuleStyle, columnRuleWidth, columnSpan, columnWidth, columns, conicGradient, contain, containIntrinsicBlockSize, containIntrinsicHeight, containIntrinsicInlineSize, containIntrinsicSize, containIntrinsicWidth, container, containerName, containerType, content, contrast, cos, counter, counterIncrement, counterReset, counterSet, counters, cubicBezier, cursor, cx, cy, defined, direction, disabled, display, dropShadow, ellipse, empty, emptyCells, enabled, env, exp, fill, fillOpacity, fillRule, filter, firstChild, firstOfType, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, float, floodColor, floodOpacity, focus, focusVisible, focusWithin, font, fontFamily, fontFeatureSettings, fontKerning, fontOpticalSizing, fontPalette, fontSize, fontStyle, fontSynthesis, fontSynthesisSmallCaps, fontSynthesisStyle, fontSynthesisWeight, fontVariant, fontVariantAlternates, fontVariantCaps, fontVariantEastAsian, fontVariantLigatures, fontVariantNumeric, fontVariantPosition, fontVariationSettings, fontWeight, gap, grayscale, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnEnd, gridColumnStart, gridRow, gridRowEnd, gridRowStart, gridTemplate, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, height, hover, hsl, hsla, hueRotate, hwb, hyphenateCharacter, hyphens, hypot, image, imageOrientation, imageRendering, imageSet, inRange, indeterminate, inset, insetBlock, insetBlockEnd, insetBlockStart, insetFn, insetInline, insetInlineEnd, insetInlineStart, invalid, invert, isolation, justifyContent, justifyItems, justifySelf, lab, lastChild, lastOfType, lch, left, letterSpacing, lightingColor, lineBreak, lineHeight, linear, linearGradient, link, listStyle, listStyleImage, listStylePosition, listStyleType, log, m, margin, marginBlock, marginBlockEnd, marginBlockStart, marginBottom, marginInline, marginInlineEnd, marginInlineStart, marginLeft, marginRight, marginTop, marker, markerEnd, markerMid, markerStart, maskClip, maskComposite, maskOrigin, maskPosition, maskRepeat, maskSize, maskType, mathStyle, matrix, matrix3d, max, maxHeight, maxWidth, mb, min, minHeight, minWidth, minmax, mixBlendMode, ml, modal, mr, mt, objectFit, objectPosition, offset, offsetAnchor, offsetDistance, offsetPath, offsetPosition, offsetRotate, oklab, oklch, onlyChild, onlyOfType, opacity, opacityFn, optional, order, outOfRange, outline, outlineColor, outlineOffset, outlineStyle, outlineWidth, overflow, overflowWrap, overflowX, overflowY, p, padding, paddingBlock, paddingBlockEnd, paddingBlockStart, paddingBottom, paddingInline, paddingInlineEnd, paddingInlineStart, paddingLeft, paddingRight, paddingTop, page, paintOrder, path, pb, perspective, perspectiveFn, perspectiveOrigin, pl, placeContent, placeItems, placeSelf, placeholderShown, pointerEvents, polygon, position, pow, pr, pt, quotes, r, radialGradient, ray, readOnly, readWrite, rect, repeatingConicGradient, repeatingLinearGradient, repeatingRadialGradient, required, rgb, rgba, right, root, rotate, rotate3d, rotateFn, rotateX, rotateY, rotateZ, rowGap, rx, ry, saturate, scale, scale3d, scaleFn, scaleX, scaleY, scaleZ, scope, scrollBehavior, scrollMargin, scrollMarginBlock, scrollMarginBlockEnd, scrollMarginBlockStart, scrollMarginBottom, scrollMarginInline, scrollMarginInlineEnd, scrollMarginInlineStart, scrollMarginLeft, scrollMarginRight, scrollMarginTop, scrollPadding, scrollPaddingBlock, scrollPaddingBlockEnd, scrollPaddingBlockStart, scrollPaddingBottom, scrollPaddingInline, scrollPaddingInlineEnd, scrollPaddingInlineStart, scrollPaddingLeft, scrollPaddingRight, scrollPaddingTop, scrollSnapAlign, scrollSnapStop, scrollSnapType, sepia, shapeImageThreshold, shapeMargin, shapeRendering, sin, skew, skewX, skewY, sqrt, steps, stopColor, stopOpacity, stroke, strokeDasharray, strokeDashoffset, strokeLinecap, strokeLinejoin, strokeMiterlimit, strokeOpacity, strokeWidth, tabSize, tableLayout, tan, target, textAlign, textAlignLast, textAnchor, textCombineUpright, textDecoration, textDecorationColor, textDecorationLine, textDecorationSkipInk, textDecorationStyle, textDecorationThickness, textEmphasis, textEmphasisColor, textEmphasisPosition, textEmphasisStyle, textIndent, textOrientation, textOverflow, textRendering, textShadow, textTransform, textUnderlineOffset, textUnderlinePosition, top, touchAction, transform, transformBox, transformOrigin, transformStyle, transition, transitionDelay, transitionDuration, transitionProperty, transitionTimingFunction, translate, translate3d, translateFn, translateX, translateY, translateZ, unicodeBidi, url, userInvalid, userValid, valid, var as _var, vectorEffect, verticalAlign, visibility, visited, whiteSpaceCollapse, width, willChange, wordBreak, wordSpacing, writingMode, x, xywh, y, zIndex } from "../widely-available.mjs";
|
|
5
|
+
import { properties } from "@cssints/css-grammar/mdn";
|
|
6
|
+
//#region src/groups/widely-available/with-downstream.d.ts
|
|
7
|
+
type B = {
|
|
8
|
+
id: "widely-available/with-downstream";
|
|
9
|
+
kw: {
|
|
10
|
+
"align-items": "anchor-center";
|
|
11
|
+
"align-self": "anchor-center";
|
|
12
|
+
"animation-duration": "auto";
|
|
13
|
+
"background": "border-area" | "text" | "x-end" | "x-start" | "y-end" | "y-start";
|
|
14
|
+
"background-attachment": "fixed";
|
|
15
|
+
"background-clip": "border-area" | "text";
|
|
16
|
+
"background-image": "element(";
|
|
17
|
+
"background-position-x": "x-end" | "x-start";
|
|
18
|
+
"background-position-y": "y-end" | "y-start";
|
|
19
|
+
"block-size": "anchor-size(" | "fit-content(";
|
|
20
|
+
"bottom": "anchor(" | "anchor-size(";
|
|
21
|
+
"break-after": "always" | "avoid" | "avoid-column" | "avoid-page" | "column" | "recto" | "verso";
|
|
22
|
+
"break-before": "always" | "avoid" | "avoid-column" | "avoid-page" | "column" | "recto" | "verso";
|
|
23
|
+
"container-type": "scroll-state";
|
|
24
|
+
"counter-reset": "reversed(";
|
|
25
|
+
"display": "grid-lanes" | "inline-grid-lanes" | "math" | "ruby" | "ruby-base" | "ruby-base-container" | "ruby-text" | "ruby-text-container";
|
|
26
|
+
"dominant-baseline": "text-bottom" | "text-top";
|
|
27
|
+
"flex": "anchor-size(" | "fit-content(";
|
|
28
|
+
"flex-basis": "anchor-size(" | "fit-content(";
|
|
29
|
+
"flex-flow": "balance";
|
|
30
|
+
"flex-wrap": "balance";
|
|
31
|
+
"font": "math" | "ui-monospace" | "ui-rounded" | "ui-sans-serif" | "ui-serif";
|
|
32
|
+
"font-family": "math" | "ui-monospace" | "ui-rounded" | "ui-sans-serif" | "ui-serif";
|
|
33
|
+
"font-palette": "palette-mix(";
|
|
34
|
+
"font-size": "math";
|
|
35
|
+
"font-synthesis": "position";
|
|
36
|
+
"font-variant-position": "sub" | "super";
|
|
37
|
+
"height": "anchor-size(" | "fit-content(";
|
|
38
|
+
"image-rendering": "crisp-edges" | "smooth";
|
|
39
|
+
"inline-size": "anchor-size(" | "fit-content" | "fit-content(";
|
|
40
|
+
"inset": "anchor(" | "anchor-size(";
|
|
41
|
+
"inset-block": "anchor(" | "anchor-size(";
|
|
42
|
+
"inset-block-end": "anchor(" | "anchor-size(";
|
|
43
|
+
"inset-block-start": "anchor(" | "anchor-size(";
|
|
44
|
+
"inset-inline": "anchor(" | "anchor-size(";
|
|
45
|
+
"inset-inline-end": "anchor(" | "anchor-size(";
|
|
46
|
+
"inset-inline-start": "anchor(" | "anchor-size(";
|
|
47
|
+
"justify-items": "anchor-center";
|
|
48
|
+
"justify-self": "anchor-center";
|
|
49
|
+
"left": "anchor(" | "anchor-size(";
|
|
50
|
+
"list-style": "symbols(";
|
|
51
|
+
"list-style-type": "symbols(";
|
|
52
|
+
"margin": "anchor-size(";
|
|
53
|
+
"margin-block": "anchor-size(";
|
|
54
|
+
"margin-block-end": "anchor-size(";
|
|
55
|
+
"margin-block-start": "anchor-size(";
|
|
56
|
+
"margin-bottom": "anchor-size(";
|
|
57
|
+
"margin-inline": "anchor-size(";
|
|
58
|
+
"margin-inline-end": "anchor-size(";
|
|
59
|
+
"margin-inline-start": "anchor-size(";
|
|
60
|
+
"margin-left": "anchor-size(";
|
|
61
|
+
"margin-right": "anchor-size(";
|
|
62
|
+
"margin-top": "anchor-size(";
|
|
63
|
+
"mask": "x-end" | "x-start" | "y-end" | "y-start";
|
|
64
|
+
"mask-origin": "fill-box" | "stroke-box" | "view-box";
|
|
65
|
+
"max-block-size": "anchor-size(" | "fit-content" | "fit-content(";
|
|
66
|
+
"max-height": "anchor-size(" | "fit-content(";
|
|
67
|
+
"max-inline-size": "anchor-size(" | "fit-content" | "fit-content(";
|
|
68
|
+
"max-width": "anchor-size(" | "fit-content(";
|
|
69
|
+
"min-block-size": "anchor-size(" | "fit-content" | "fit-content(";
|
|
70
|
+
"min-height": "anchor-size(" | "fit-content(";
|
|
71
|
+
"min-inline-size": "anchor-size(" | "fit-content" | "fit-content(";
|
|
72
|
+
"min-width": "anchor-size(" | "fit-content(";
|
|
73
|
+
"offset-path": "border-box" | "content-box" | "fill-box" | "none" | "padding-box" | "stroke-box" | "view-box";
|
|
74
|
+
"place-items": "anchor-center";
|
|
75
|
+
"place-self": "anchor-center";
|
|
76
|
+
"right": "anchor(" | "anchor-size(";
|
|
77
|
+
"shape-outside": "path(" | "rect(" | "xywh(";
|
|
78
|
+
"text-align": "match-parent";
|
|
79
|
+
"text-decoration": "currentColor" | "transparent";
|
|
80
|
+
"text-decoration-line": "blink" | "grammar-error" | "spelling-error";
|
|
81
|
+
"text-decoration-skip-ink": "all";
|
|
82
|
+
"text-indent": "each-line" | "hanging";
|
|
83
|
+
"text-transform": "full-size-kana" | "full-width" | "math-auto";
|
|
84
|
+
"text-underline-position": "left" | "right";
|
|
85
|
+
"text-wrap": "auto" | "balance" | "pretty" | "stable";
|
|
86
|
+
"top": "anchor(" | "anchor-size(";
|
|
87
|
+
"touch-action": "pan-down" | "pan-left" | "pan-right" | "pan-up";
|
|
88
|
+
"transform-box": "content-box" | "stroke-box";
|
|
89
|
+
"white-space": "preserve-spaces";
|
|
90
|
+
"white-space-collapse": "preserve-spaces";
|
|
91
|
+
"width": "anchor-size(" | "fit-content(";
|
|
92
|
+
"word-break": "auto-phrase" | "break-word";
|
|
93
|
+
"writing-mode": "sideways-lr" | "sideways-rl";
|
|
94
|
+
};
|
|
95
|
+
fn: "abs" | "anchor" | "anchor-size" | "calc-size" | "contrast-color" | "cross-fade" | "dynamic-range-limit-mix" | "element" | "fit-content" | "layer" | "leader" | "light-dark" | "mod" | "paint" | "palette-mix" | "rem" | "round" | "scroll" | "sign" | "src" | "superellipse" | "symbols" | "target-counter" | "target-counters" | "target-text" | "view";
|
|
96
|
+
unit: "rcap" | "rch" | "rex" | "ric";
|
|
97
|
+
media: "color-index" | "device-aspect-ratio" | "device-height" | "device-posture" | "device-width" | "horizontal-viewport-segments" | "inverted-colors" | "prefers-contrast" | "prefers-reduced-data" | "prefers-reduced-transparency" | "vertical-viewport-segments" | "video-dynamic-range";
|
|
98
|
+
container: "anchored(" | "style(";
|
|
99
|
+
supports: "selector(";
|
|
100
|
+
};
|
|
101
|
+
type P<K extends keyof typeof properties> = GProp<B, K>;
|
|
102
|
+
export declare const background: P<"background">;
|
|
103
|
+
export declare const backgroundPositionX: P<"background-position-x">;
|
|
104
|
+
export declare const backgroundPositionY: P<"background-position-y">;
|
|
105
|
+
export declare const dominantBaseline: P<"dominant-baseline">;
|
|
106
|
+
export declare const flexFlow: P<"flex-flow">;
|
|
107
|
+
export declare const inlineSize: P<"inline-size">;
|
|
108
|
+
export declare const mask: P<"mask">;
|
|
109
|
+
export declare const maxBlockSize: P<"max-block-size">;
|
|
110
|
+
export declare const maxInlineSize: P<"max-inline-size">;
|
|
111
|
+
export declare const minBlockSize: P<"min-block-size">;
|
|
112
|
+
export declare const minInlineSize: P<"min-inline-size">;
|
|
113
|
+
export declare const shapeOutside: P<"shape-outside">;
|
|
114
|
+
export declare const textWrap: P<"text-wrap">;
|
|
115
|
+
export declare const whiteSpace: P<"white-space">;
|
|
116
|
+
export declare const media: GCondition<B, "media", QueryWrap>;
|
|
117
|
+
export declare const supports: GCondition<B, "supports", Wrap>;
|
|
118
|
+
export declare const flex: GLayout<B, "flex", Pick<FlexMethods, "direction" | "wrap" | "flow" | "alignItems" | "alignContent" | "justifyContent" | "placeContent" | "gap" | "rowGap" | "columnGap">>;
|
|
119
|
+
export declare const grid: GLayout<B, "grid", Pick<GridMethods, "templateColumns" | "templateRows" | "templateAreas" | "template" | "autoFlow" | "autoColumns" | "autoRows" | "alignItems" | "justifyItems" | "placeItems" | "alignContent" | "justifyContent" | "placeContent" | "gap" | "rowGap" | "columnGap">>;
|
|
120
|
+
//#endregion
|
|
121
|
+
export { type AttrOp, type CSS, type CSSColorValue, type CSSImageValue, type CSSStyleValue, type CSSUnitValue, CheckOverrides, type ClassValue, type CvConfig, type CvProps, type CvValue, DtcgColor, DtcgCubicBezier, DtcgShadow, DtcgUnit, DtcgValue, type Fallback, type Keyframes, Overrides, type Part, type PositionTry, type QueryWrap, type StateWrap, type Steps, type Style, Tokens, WebkitTextFillColor, WebkitTextStroke, WebkitTextStrokeColor, WebkitTextStrokeWidth, type Wrap, acos, active, alignContent, alignItems, alignSelf, all, animation, animationComposition, animationDelay, animationDirection, animationDuration, animationFillMode, animationIterationCount, animationName, animationPlayState, animationTimingFunction, anyLink, appearance, asin, aspectRatio, atan, atan2, attr, attrFn, backfaceVisibility, backgroundAttachment, backgroundBlendMode, backgroundClip, backgroundColor, backgroundImage, backgroundOrigin, backgroundPosition, backgroundRepeat, backgroundSize, bg, blockSize, blur, border, borderBlock, borderBlockColor, borderBlockEnd, borderBlockEndColor, borderBlockEndStyle, borderBlockEndWidth, borderBlockStart, borderBlockStartColor, borderBlockStartStyle, borderBlockStartWidth, borderBlockStyle, borderBlockWidth, borderBottom, borderBottomColor, borderBottomLeftRadius, borderBottomRightRadius, borderBottomStyle, borderBottomWidth, borderCollapse, borderColor, borderEndEndRadius, borderEndStartRadius, borderImage, borderImageOutset, borderImageRepeat, borderImageSlice, borderImageSource, borderImageWidth, borderInline, borderInlineColor, borderInlineEnd, borderInlineEndColor, borderInlineEndStyle, borderInlineEndWidth, borderInlineStart, borderInlineStartColor, borderInlineStartStyle, borderInlineStartWidth, borderInlineStyle, borderInlineWidth, borderLeft, borderLeftColor, borderLeftStyle, borderLeftWidth, borderRadius, borderRight, borderRightColor, borderRightStyle, borderRightWidth, borderSpacing, borderStartEndRadius, borderStartStartRadius, borderStyle, borderTop, borderTopColor, borderTopLeftRadius, borderTopRightRadius, borderTopStyle, borderTopWidth, borderWidth, bottom, boxShadow, boxSizing, breakAfter, breakBefore, breakInside, brightness, calc, captionSide, caretColor, check, checked, circle, clamp, clear, clipPath, clipRule, cn, color, colorFn, colorInterpolationFilters, colorMix, colorScheme, columnCount, columnFill, columnGap, columnRule, columnRuleColor, columnRuleStyle, columnRuleWidth, columnSpan, columnWidth, columns, conicGradient, contain, containIntrinsicBlockSize, containIntrinsicHeight, containIntrinsicInlineSize, containIntrinsicSize, containIntrinsicWidth, container, containerName, containerType, content, contrast, cos, counter, counterIncrement, counterReset, counterSet, counters, createGlobalTheme, createTokens, cubicBezier, cursor, cv, cx, cy, defined, direction, disabled, display, dropShadow, ellipse, empty, emptyCells, enabled, env, exp, fill, fillOpacity, fillRule, filter, firstChild, firstOfType, firstThatWorks, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, float, floodColor, floodOpacity, focus, focusVisible, focusWithin, font, fontFamily, fontFeatureSettings, fontKerning, fontOpticalSizing, fontPalette, fontSize, fontStyle, fontSynthesis, fontSynthesisSmallCaps, fontSynthesisStyle, fontSynthesisWeight, fontVariant, fontVariantAlternates, fontVariantCaps, fontVariantEastAsian, fontVariantLigatures, fontVariantNumeric, fontVariantPosition, fontVariationSettings, fontWeight, gap, global, grayscale, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridColumnEnd, gridColumnStart, gridRow, gridRowEnd, gridRowStart, gridTemplate, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, group, height, hover, hsl, hsla, hueRotate, hwb, hyphenateCharacter, hyphens, hypot, image, imageOrientation, imageRendering, imageSet, inRange, indeterminate, inset, insetBlock, insetBlockEnd, insetBlockStart, insetFn, insetInline, insetInlineEnd, insetInlineStart, invalid, invert, isolation, justifyContent, justifyItems, justifySelf, keyframes, lab, lastChild, lastOfType, layers, lch, left, letterSpacing, lightingColor, lineBreak, lineHeight, linear, linearGradient, link, listStyle, listStyleImage, listStylePosition, listStyleType, log, m, margin, marginBlock, marginBlockEnd, marginBlockStart, marginBottom, marginInline, marginInlineEnd, marginInlineStart, marginLeft, marginRight, marginTop, marker, markerEnd, markerMid, markerStart, maskClip, maskComposite, maskOrigin, maskPosition, maskRepeat, maskSize, maskType, mathStyle, matrix, matrix3d, max, maxHeight, maxWidth, mb, min, minHeight, minWidth, minmax, mixBlendMode, ml, modal, mr, mt, objectFit, objectPosition, offset, offsetAnchor, offsetDistance, offsetPath, offsetPosition, offsetRotate, oklab, oklch, onlyChild, onlyOfType, opacity, opacityFn, optional, order, outOfRange, outline, outlineColor, outlineOffset, outlineStyle, outlineWidth, overflow, overflowWrap, overflowX, overflowY, p, padding, paddingBlock, paddingBlockEnd, paddingBlockStart, paddingBottom, paddingInline, paddingInlineEnd, paddingInlineStart, paddingLeft, paddingRight, paddingTop, page, paintOrder, path, pb, perspective, perspectiveFn, perspectiveOrigin, pl, placeContent, placeItems, placeSelf, placeholderShown, pointerEvents, polygon, position, pow, pr, pt, quotes, r, radialGradient, ray, readOnly, readWrite, rect, repeatingConicGradient, repeatingLinearGradient, repeatingRadialGradient, required, rgb, rgba, right, root, rotate, rotate3d, rotateFn, rotateX, rotateY, rotateZ, rowGap, rx, ry, saturate, scale, scale3d, scaleFn, scaleX, scaleY, scaleZ, scope, scrollBehavior, scrollMargin, scrollMarginBlock, scrollMarginBlockEnd, scrollMarginBlockStart, scrollMarginBottom, scrollMarginInline, scrollMarginInlineEnd, scrollMarginInlineStart, scrollMarginLeft, scrollMarginRight, scrollMarginTop, scrollPadding, scrollPaddingBlock, scrollPaddingBlockEnd, scrollPaddingBlockStart, scrollPaddingBottom, scrollPaddingInline, scrollPaddingInlineEnd, scrollPaddingInlineStart, scrollPaddingLeft, scrollPaddingRight, scrollPaddingTop, scrollSnapAlign, scrollSnapStop, scrollSnapType, sepia, shapeImageThreshold, shapeMargin, shapeRendering, sin, skew, skewX, skewY, sqrt, steps, stopColor, stopOpacity, stroke, strokeDasharray, strokeDashoffset, strokeLinecap, strokeLinejoin, strokeMiterlimit, strokeOpacity, strokeWidth, style, tabSize, tableLayout, tan, target, textAlign, textAlignLast, textAnchor, textCombineUpright, textDecoration, textDecorationColor, textDecorationLine, textDecorationSkipInk, textDecorationStyle, textDecorationThickness, textEmphasis, textEmphasisColor, textEmphasisPosition, textEmphasisStyle, textIndent, textOrientation, textOverflow, textRendering, textShadow, textTransform, textUnderlineOffset, textUnderlinePosition, token, top, touchAction, transform, transformBox, transformOrigin, transformStyle, transition, transitionDelay, transitionDuration, transitionProperty, transitionTimingFunction, translate, translate3d, translateFn, translateX, translateY, translateZ, unicodeBidi, url, userInvalid, userValid, valid, _var as var, vectorEffect, verticalAlign, visibility, visited, whiteSpaceCollapse, width, willChange, within, wordBreak, wordSpacing, writingMode, x, xywh, y, zIndex };
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as registry, d as MacroError, f as MemberError, o as warn, r as forgetKernels, t as Registry } from "./registry-
|
|
2
|
-
import { A as camel, C as hashClass, D as settled, E as minWidth, F as probed, M as failIn, N as isNode, O as toDecls, P as node, S as edge, T as merged, _ as PSEUDOS, a as createTokens, b as checkVars, c as tokensOf, d as style, f as token, g as PROPS, h as LAYER, i as createGlobalTheme, j as fail, k as VAR, l as CSSTokenValue, m as FUNCTIONS, n as addTheme, o as isDone, p as CONTEXTS, r as check$1, t as DONE, u as isStyle, v as carried, w as isFallback, x as dropsOf, y as chainDecl } from "./theme-
|
|
3
|
-
import { D as relation, S as addRuntime, _ as addKernel, i as byOrder, n as addGlobal, r as addLayers, y as kernelWarnings } from "./sheet-
|
|
4
|
-
import { n as loweredOf } from "./lowered-
|
|
5
|
-
import {
|
|
1
|
+
import { a as registry, d as MacroError, f as MemberError, o as warn, r as forgetKernels, t as Registry } from "./registry-BUSEO32-.mjs";
|
|
2
|
+
import { A as camel, C as hashClass, D as settled, E as minWidth, F as probed, M as failIn, N as isNode, O as toDecls, P as node, S as edge, T as merged, _ as PSEUDOS, a as createTokens, b as checkVars, c as tokensOf, d as style, f as token, g as PROPS, h as LAYER, i as createGlobalTheme, j as fail, k as VAR, l as CSSTokenValue, m as FUNCTIONS, n as addTheme, o as isDone, p as CONTEXTS, r as check$1, t as DONE, u as isStyle, v as carried, w as isFallback, x as dropsOf, y as chainDecl } from "./theme-SlQ73rFL.mjs";
|
|
3
|
+
import { D as relation, S as addRuntime, _ as addKernel, i as byOrder, n as addGlobal, r as addLayers, y as kernelWarnings } from "./sheet-BeHdq4xt.mjs";
|
|
4
|
+
import { n as loweredOf } from "./lowered-aJVapQT6.mjs";
|
|
5
|
+
import { c as groups$1, n as CX_CALL, t as CV_CALL } from "./instrument-BqIZpbIU.mjs";
|
|
6
6
|
import { checkDeclarationNow, checkQuery, checkSelector, checkValueNow, isDeclarationError } from "@cssints/css-grammar/check";
|
|
7
7
|
import { lackingOf, messageOf } from "@cssints/css-grammar/support";
|
|
8
8
|
import { CSS, CSSColorValue, CSSImageValue, CSSStyleValue, CSSStyleValue as CSSStyleValue$1, CSSUnitValue } from "@cssints/css-grammar/values";
|
|
@@ -116,6 +116,7 @@ const compile$1 = (id) => {
|
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
};
|
|
119
|
+
const of = (id) => compiled$1.get(id) ?? compiled$1.set(id, compile$1(id)).get(id);
|
|
119
120
|
const hit = (c, own, text) => text.match(WORDS)?.find((w) => own?.has(w) || c.fn.has(w) || c.unit?.test(w));
|
|
120
121
|
const said = (w) => w.endsWith("(") ? `${w.slice(0, -1)}()` : w;
|
|
121
122
|
const refuse = (c, label, w) => fail(`cssints: ${label}: "${said(w)}" is not in cssints/${c.id}`);
|
|
@@ -165,7 +166,7 @@ const wrap = (c, name, member) => {
|
|
|
165
166
|
*/
|
|
166
167
|
const groupOf = (css, id) => {
|
|
167
168
|
if (id === "limited-availability") return css;
|
|
168
|
-
const c =
|
|
169
|
+
const c = of(id);
|
|
169
170
|
return new Proxy(css, { get: (t, k) => {
|
|
170
171
|
if (typeof k !== "string") return Reflect.get(t, k);
|
|
171
172
|
if (TIED.has(k) && !c.members.has(k)) return () => {
|
|
@@ -174,6 +175,19 @@ const groupOf = (css, id) => {
|
|
|
174
175
|
return wrap(c, k, t[k]);
|
|
175
176
|
} });
|
|
176
177
|
};
|
|
178
|
+
const KNOWN = new Set(Object.values(PROPS));
|
|
179
|
+
/**
|
|
180
|
+
* Whether a declaration is in an export group: the group has the property, and the value holds no word it bans.
|
|
181
|
+
* @param {string} id the group: `widely-available`, `baseline-2022/with-downstream`, `css-grid-2`, ...
|
|
182
|
+
* @param {string} property the CSS name: `text-wrap`
|
|
183
|
+
* @param {string} value the value as written: `balance`
|
|
184
|
+
* @returns {boolean} true for a property cssints has no member for (`--x`, `-webkit-text-size-adjust`)
|
|
185
|
+
*/
|
|
186
|
+
const inGroup = (id, property, value) => {
|
|
187
|
+
if (id === "limited-availability") return true;
|
|
188
|
+
const c = of(id);
|
|
189
|
+
return (c.props.has(property) || !KNOWN.has(property)) && !hit(c, c.kw.get(property), value);
|
|
190
|
+
};
|
|
177
191
|
//#endregion
|
|
178
192
|
//#region src/scope-engine.ts
|
|
179
193
|
const NAME$1 = /^[a-z][a-z0-9-]*$/;
|
|
@@ -636,7 +650,8 @@ const dependsOn = (path) => {
|
|
|
636
650
|
const engine = {
|
|
637
651
|
scope,
|
|
638
652
|
lacking: lacking$1,
|
|
639
|
-
dependsOn
|
|
653
|
+
dependsOn,
|
|
654
|
+
inGroup
|
|
640
655
|
};
|
|
641
656
|
//#endregion
|
|
642
657
|
//#region src/runtime.ts
|