@stacksjs/ts-css 0.3.10 → 0.3.12

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.
@@ -5,6 +5,7 @@ import type { UtilityRule } from './rules';
5
5
  // Background utilities
6
6
  export declare const backgroundAttachmentRule: UtilityRule;
7
7
  export declare const backgroundClipRule: UtilityRule;
8
+ export declare const gradientInterpolationRule: UtilityRule;
8
9
  /**
9
10
  * Linear gradients. `bg-linear-*` is Tailwind v4's name for `bg-gradient-*`;
10
11
  * both spellings are accepted so v3 markup keeps working.
@@ -0,0 +1,36 @@
1
+ import type { UtilityRule } from './rules';
2
+ export declare const maskPresetRule: UtilityRule;
3
+ /**
4
+ * `mask-repeat-x` / `mask-repeat-y` parse as the `mask-repeat` utility with a
5
+ * bare axis as the value, which the longhand rule's keyword table does not
6
+ * cover — so both emitted nothing. `mask-repeat-space` and
7
+ * `mask-repeat-round` happen to work there already because `space` and
8
+ * `round` are the literal CSS keywords.
9
+ */
10
+ export declare const maskRepeatAxisRule: UtilityRule;
11
+ /**
12
+ * Linear gradient masks: an angle (`mask-linear-45`, `-mask-linear-45`) or a
13
+ * stop (`mask-linear-from-20%`, `mask-linear-to-black`).
14
+ */
15
+ export declare const maskLinearRule: UtilityRule;
16
+ /**
17
+ * Edge masks: `mask-t-from-50%`, `mask-r-to-black`, and the axis shorthands
18
+ * `mask-x-*` (right and left) and `mask-y-*` (top and bottom).
19
+ */
20
+ export declare const maskEdgeRule: UtilityRule;
21
+ /**
22
+ * Radial gradient masks: stops (`mask-radial-from-50%`), the shape
23
+ * (`mask-circle`, `mask-ellipse`), the size (`mask-radial-closest-side`,
24
+ * `mask-radial-[50%_50%]`) and the centre (`mask-radial-at-top-left`).
25
+ *
26
+ * The shape, size and position utilities deliberately emit ONLY their
27
+ * variable, with no composed `mask-image` — they are modifiers on a radial
28
+ * mask rather than masks in their own right, and that is what Tailwind does.
29
+ */
30
+ export declare const maskRadialRule: UtilityRule;
31
+ /**
32
+ * Conic gradient masks: a start angle (`mask-conic-180`, `-mask-conic-90`) or
33
+ * a stop (`mask-conic-from-50%`, `mask-conic-to-black`).
34
+ */
35
+ export declare const maskConicRule: UtilityRule;
36
+ export declare const maskRules: UtilityRule[];
@@ -0,0 +1,14 @@
1
+ import type { UtilityRule } from './rules';
2
+ export declare const insetShadowRule: UtilityRule;
3
+ export declare const insetRingRule: UtilityRule;
4
+ /**
5
+ * `drop-shadow-<color>`. The scale itself lives in the generator's static
6
+ * filter map, which is keyed by raw class name, so a colour never matches
7
+ * there and falls through to here.
8
+ *
9
+ * Only the colour variable is set: the composed `filter` and the
10
+ * `--tc-drop-shadow` value belong to the scale utility, and re-declaring
11
+ * either would wipe out the offsets.
12
+ */
13
+ export declare const dropShadowColorRule: UtilityRule;
14
+ export declare const shadowRules: UtilityRule[];
@@ -0,0 +1,22 @@
1
+ /**
2
+ * The shared `box-shadow` layer stack.
3
+ *
4
+ * Every shadow-ish utility — `shadow-*`, `ring-*`, `inset-shadow-*`,
5
+ * `inset-ring-*` — writes one custom property and then re-declares the whole
6
+ * stack, because any one of them may be the only such utility on the element.
7
+ * That only composes if all of them agree on the layer list, which is why it
8
+ * lives here instead of being spelled out at each site. It used to be
9
+ * repeated verbatim in fourteen places across four files.
10
+ *
11
+ * The order is Tailwind's and it is visual, not arbitrary: inner shadows
12
+ * paint on top of the outer ones, so the inset layers come first.
13
+ *
14
+ * Every layer carries a transparent fallback. No preflight defines these
15
+ * variables, and a `var()` with no fallback that resolves to nothing
16
+ * invalidates the ENTIRE box-shadow at computed-value time — so a lone
17
+ * `shadow-md` would lose its shadow completely rather than just skipping the
18
+ * ring layers.
19
+ */
20
+ /** A shadow that paints nothing. Tailwind's `0 0 #0000`. */
21
+ export declare const SHADOW_NONE: '0 0 #0000';
22
+ export declare const BOX_SHADOW_LAYERS: string;
@@ -56,6 +56,7 @@ export declare interface Theme {
56
56
  fontFamily: Record<string, string[]>
57
57
  lineHeight?: Record<string, string>
58
58
  screens: Record<string, string>
59
+ containers: Record<string, string>
59
60
  borderRadius: Record<string, string>
60
61
  boxShadow: Record<string, string>
61
62
  extend?: Partial<Omit<Theme, 'extend'>>
@@ -70,9 +71,16 @@ export declare interface VariantConfig {
70
71
  'light': boolean
71
72
  'group': boolean
72
73
  'peer': boolean
74
+ '*': boolean
75
+ '**': boolean
76
+ 'in': boolean
73
77
  'before': boolean
74
78
  'after': boolean
75
79
  'marker': boolean
80
+ 'first-letter': boolean
81
+ 'first-line': boolean
82
+ 'backdrop': boolean
83
+ 'details-content': boolean
76
84
  'first': boolean
77
85
  'last': boolean
78
86
  'odd': boolean
@@ -91,6 +99,11 @@ export declare interface VariantConfig {
91
99
  'invalid': boolean
92
100
  'read-only': boolean
93
101
  'autofill': boolean
102
+ 'user-valid': boolean
103
+ 'user-invalid': boolean
104
+ 'in-range': boolean
105
+ 'out-of-range': boolean
106
+ 'placeholder-shown': boolean
94
107
  'open': boolean
95
108
  'closed': boolean
96
109
  'empty': boolean
@@ -100,6 +113,8 @@ export declare interface VariantConfig {
100
113
  'indeterminate': boolean
101
114
  'default': boolean
102
115
  'optional': boolean
116
+ 'inert': boolean
117
+ 'only-of-type': boolean
103
118
  'aria': boolean
104
119
  'data': boolean
105
120
  'has': boolean
@@ -109,6 +124,15 @@ export declare interface VariantConfig {
109
124
  'landscape': boolean
110
125
  'portrait': boolean
111
126
  'forced-colors': boolean
127
+ 'pointer-none': boolean
128
+ 'pointer-coarse': boolean
129
+ 'pointer-fine': boolean
130
+ 'any-pointer-none': boolean
131
+ 'any-pointer-coarse': boolean
132
+ 'any-pointer-fine': boolean
133
+ 'inverted-colors': boolean
134
+ 'noscript': boolean
135
+ 'starting': boolean
112
136
  'rtl': boolean
113
137
  'ltr': boolean
114
138
  'motion-safe': boolean
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{t,m,e,o,n,T}from"./chunk-8h5zg4ad.js";import{r,f,x,P}from"./chunk-b44sfqdn.js";import{v,R,w,C}from"./chunk-exnx4hfp.js";import{h,a,l,k,A}from"./chunk-y79srf7m.js";var s={floatPrecision:3,verbose:!1},i=null;async function c(){if(!i){let{loadConfig:p}=await import("bunfig");i=await p({name:"ts-css",defaultConfig:s})}return i}var S=s;export{t as List,m as clone,S as config,C as cssSelect,P as cssWhat,A as csso,T as csstree,s as defaultConfig,e as generate,c as getConfig,w as is,x as isTraversal,h as minify,a as minifyBlock,o as parse,r as parseSelector,v as selectAll,R as selectOne,l as specificity,f as stringifySelector,k as syntax,n as walk};
2
+ import{t,m,e,o,n,T}from"./chunk-8h5zg4ad.js";import{r,f,x,O}from"./chunk-dbj97h19.js";import{v,R,k,C}from"./chunk-zn8gy7w7.js";import{h,a,l,w,A}from"./chunk-k6ta54hd.js";var s={floatPrecision:3,verbose:!1},i=null;async function c(){if(!i){let{loadConfig:p}=await import("bunfig");i=await p({name:"ts-css",defaultConfig:s})}return i}var S=s;export{t as List,m as clone,S as config,C as cssSelect,O as cssWhat,A as csso,T as csstree,s as defaultConfig,e as generate,c as getConfig,k as is,x as isTraversal,h as minify,a as minifyBlock,o as parse,r as parseSelector,v as selectAll,R as selectOne,l as specificity,f as stringifySelector,w as syntax,n as walk};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{s,u,p,h,a,l,S,k}from"../chunk-y79srf7m.js";import"../chunk-8h5zg4ad.js";import"../chunk-b44sfqdn.js";export{p as compressTree,u as dedupeDeclarations,h as minify,a as minifyBlock,s as removeComments,l as specificity,S as specificityToString,k as syntax};
2
+ import{s,u,p,h,a,l,S,w}from"../chunk-k6ta54hd.js";import"../chunk-8h5zg4ad.js";import"../chunk-dbj97h19.js";export{p as compressTree,u as dedupeDeclarations,h as minify,a as minifyBlock,s as removeComments,l as specificity,S as specificityToString,w as syntax};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{i,g,O,v,R,w}from"../chunk-exnx4hfp.js";import"../chunk-b44sfqdn.js";export{O as clearSelectorCache,g as compile,w as is,i as parseAndCompile,v as selectAll,R as selectOne};
2
+ import{i,g,P,v,R,k}from"../chunk-zn8gy7w7.js";import"../chunk-dbj97h19.js";export{P as clearSelectorCache,g as compile,k as is,i as parseAndCompile,v as selectAll,R as selectOne};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{r,f,x,E}from"../chunk-b44sfqdn.js";export{E as IgnoreCaseMode,x as isTraversal,r as parse,f as stringify};
2
+ import{r,f,x,E}from"../chunk-dbj97h19.js";export{E as IgnoreCaseMode,x as isTraversal,r as parse,f as stringify};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ts-css",
3
3
  "type": "module",
4
- "version": "0.3.10",
4
+ "version": "0.3.12",
5
5
  "description": "Pure-TypeScript CSS toolkit and utility-first CSS engine for Bun/Node — parser, walker, generator, selector engine, minifier, and a Tailwind-compatible utility engine. Zero runtime deps.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",