tailwindcss 4.0.0-alpha.24 → 4.0.0-alpha.25
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/chunk-VCGEO6A3.mjs +1 -0
- package/dist/default-theme.d.mts +1 -1
- package/dist/default-theme.d.ts +1 -1
- package/dist/default-theme.js +1 -1
- package/dist/default-theme.mjs +1 -1
- package/dist/lib.d.mts +188 -5
- package/dist/lib.js +15 -15
- package/dist/lib.mjs +15 -15
- package/dist/plugin.d.mts +2 -2
- package/dist/plugin.d.ts +1 -1
- package/dist/{resolve-config-C9L_YGHi.d.ts → resolve-config-CT1JRAbd.d.ts} +4 -0
- package/dist/resolve-config-CaMNEFdQ.d.mts +187 -0
- package/dist/{types-D9a5isOA.d.mts → types-D_qOw1fc.d.mts} +1 -1
- package/package.json +3 -2
- package/dist/chunk-LP57NRCI.mjs +0 -1
- package/dist/resolve-config-4MvviLnr.d.mts +0 -348
package/dist/plugin.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-
|
2
|
-
import './resolve-config-
|
1
|
+
import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-D_qOw1fc.mjs';
|
2
|
+
import './resolve-config-CaMNEFdQ.mjs';
|
3
3
|
|
4
4
|
declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
|
5
5
|
declare namespace createPlugin {
|
package/dist/plugin.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { P as PluginUtils, N as NamedUtilityValue } from './resolve-config-
|
1
|
+
import { P as PluginUtils, N as NamedUtilityValue } from './resolve-config-CT1JRAbd.js';
|
2
2
|
|
3
3
|
type ResolvableTo<T> = T | ((utils: PluginUtils) => T);
|
4
4
|
type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
|
@@ -0,0 +1,187 @@
|
|
1
|
+
type ArbitraryUtilityValue = {
|
2
|
+
kind: 'arbitrary';
|
3
|
+
/**
|
4
|
+
* ```
|
5
|
+
* bg-[color:var(--my-color)]
|
6
|
+
* ^^^^^
|
7
|
+
* ```
|
8
|
+
*/
|
9
|
+
dataType: string | null;
|
10
|
+
/**
|
11
|
+
* ```
|
12
|
+
* bg-[#0088cc]
|
13
|
+
* ^^^^^^^
|
14
|
+
*
|
15
|
+
* bg-[var(--my_variable)]
|
16
|
+
* ^^^^^^^^^^^^^^^^^^
|
17
|
+
* ```
|
18
|
+
*/
|
19
|
+
value: string;
|
20
|
+
};
|
21
|
+
type NamedUtilityValue = {
|
22
|
+
kind: 'named';
|
23
|
+
/**
|
24
|
+
* ```
|
25
|
+
* bg-red-500
|
26
|
+
* ^^^^^^^
|
27
|
+
*
|
28
|
+
* w-1/2
|
29
|
+
* ^
|
30
|
+
* ```
|
31
|
+
*/
|
32
|
+
value: string;
|
33
|
+
/**
|
34
|
+
* ```
|
35
|
+
* w-1/2
|
36
|
+
* ^^^
|
37
|
+
* ```
|
38
|
+
*/
|
39
|
+
fraction: string | null;
|
40
|
+
};
|
41
|
+
type ArbitraryModifier = {
|
42
|
+
kind: 'arbitrary';
|
43
|
+
/**
|
44
|
+
* ```
|
45
|
+
* bg-red-500/[50%]
|
46
|
+
* ^^^
|
47
|
+
* ```
|
48
|
+
*/
|
49
|
+
value: string;
|
50
|
+
};
|
51
|
+
type NamedModifier = {
|
52
|
+
kind: 'named';
|
53
|
+
/**
|
54
|
+
* ```
|
55
|
+
* bg-red-500/50
|
56
|
+
* ^^
|
57
|
+
* ```
|
58
|
+
*/
|
59
|
+
value: string;
|
60
|
+
};
|
61
|
+
type ArbitraryVariantValue = {
|
62
|
+
kind: 'arbitrary';
|
63
|
+
value: string;
|
64
|
+
};
|
65
|
+
type NamedVariantValue = {
|
66
|
+
kind: 'named';
|
67
|
+
value: string;
|
68
|
+
};
|
69
|
+
type Variant =
|
70
|
+
/**
|
71
|
+
* Arbitrary variants are variants that take a selector and generate a variant
|
72
|
+
* on the fly.
|
73
|
+
*
|
74
|
+
* E.g.: `[&_p]`
|
75
|
+
*/
|
76
|
+
{
|
77
|
+
kind: 'arbitrary';
|
78
|
+
selector: string;
|
79
|
+
compounds: boolean;
|
80
|
+
relative: boolean;
|
81
|
+
}
|
82
|
+
/**
|
83
|
+
* Static variants are variants that don't take any arguments.
|
84
|
+
*
|
85
|
+
* E.g.: `hover`
|
86
|
+
*/
|
87
|
+
| {
|
88
|
+
kind: 'static';
|
89
|
+
root: string;
|
90
|
+
compounds: boolean;
|
91
|
+
}
|
92
|
+
/**
|
93
|
+
* Functional variants are variants that can take an argument. The argument is
|
94
|
+
* either a named variant value or an arbitrary variant value.
|
95
|
+
*
|
96
|
+
* E.g.:
|
97
|
+
*
|
98
|
+
* - `aria-disabled`
|
99
|
+
* - `aria-[disabled]`
|
100
|
+
* - `@container-size` -> @container, with named value `size`
|
101
|
+
* - `@container-[inline-size]` -> @container, with arbitrary variant value `inline-size`
|
102
|
+
* - `@container` -> @container, with no value
|
103
|
+
*/
|
104
|
+
| {
|
105
|
+
kind: 'functional';
|
106
|
+
root: string;
|
107
|
+
value: ArbitraryVariantValue | NamedVariantValue | null;
|
108
|
+
modifier: ArbitraryModifier | NamedModifier | null;
|
109
|
+
compounds: boolean;
|
110
|
+
}
|
111
|
+
/**
|
112
|
+
* Compound variants are variants that take another variant as an argument.
|
113
|
+
*
|
114
|
+
* E.g.:
|
115
|
+
*
|
116
|
+
* - `has-[&_p]`
|
117
|
+
* - `group-*`
|
118
|
+
* - `peer-*`
|
119
|
+
*/
|
120
|
+
| {
|
121
|
+
kind: 'compound';
|
122
|
+
root: string;
|
123
|
+
modifier: ArbitraryModifier | NamedModifier | null;
|
124
|
+
variant: Variant;
|
125
|
+
compounds: boolean;
|
126
|
+
};
|
127
|
+
type Candidate =
|
128
|
+
/**
|
129
|
+
* Arbitrary candidates are candidates that register utilities on the fly with
|
130
|
+
* a property and a value.
|
131
|
+
*
|
132
|
+
* E.g.:
|
133
|
+
*
|
134
|
+
* - `[color:red]`
|
135
|
+
* - `[color:red]/50`
|
136
|
+
* - `[color:red]/50!`
|
137
|
+
*/
|
138
|
+
{
|
139
|
+
kind: 'arbitrary';
|
140
|
+
property: string;
|
141
|
+
value: string;
|
142
|
+
modifier: ArbitraryModifier | NamedModifier | null;
|
143
|
+
variants: Variant[];
|
144
|
+
important: boolean;
|
145
|
+
raw: string;
|
146
|
+
}
|
147
|
+
/**
|
148
|
+
* Static candidates are candidates that don't take any arguments.
|
149
|
+
*
|
150
|
+
* E.g.:
|
151
|
+
*
|
152
|
+
* - `underline`
|
153
|
+
* - `flex`
|
154
|
+
*/
|
155
|
+
| {
|
156
|
+
kind: 'static';
|
157
|
+
root: string;
|
158
|
+
variants: Variant[];
|
159
|
+
negative: boolean;
|
160
|
+
important: boolean;
|
161
|
+
raw: string;
|
162
|
+
}
|
163
|
+
/**
|
164
|
+
* Functional candidates are candidates that can take an argument.
|
165
|
+
*
|
166
|
+
* E.g.:
|
167
|
+
*
|
168
|
+
* - `bg-red-500`
|
169
|
+
* - `bg-[#0088cc]`
|
170
|
+
* - `w-1/2`
|
171
|
+
*/
|
172
|
+
| {
|
173
|
+
kind: 'functional';
|
174
|
+
root: string;
|
175
|
+
value: ArbitraryUtilityValue | NamedUtilityValue | null;
|
176
|
+
modifier: ArbitraryModifier | NamedModifier | null;
|
177
|
+
variants: Variant[];
|
178
|
+
negative: boolean;
|
179
|
+
important: boolean;
|
180
|
+
raw: string;
|
181
|
+
};
|
182
|
+
|
183
|
+
interface PluginUtils {
|
184
|
+
theme(keypath: string, defaultValue?: any): any;
|
185
|
+
}
|
186
|
+
|
187
|
+
export type { Candidate as C, NamedUtilityValue as N, PluginUtils as P, Variant as V };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "tailwindcss",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.25",
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -54,7 +54,8 @@
|
|
54
54
|
"devDependencies": {
|
55
55
|
"@types/node": "^20.14.8",
|
56
56
|
"lightningcss": "^1.26.0",
|
57
|
-
"
|
57
|
+
"dedent": "1.5.3",
|
58
|
+
"@tailwindcss/oxide": "4.0.0-alpha.25"
|
58
59
|
},
|
59
60
|
"scripts": {
|
60
61
|
"lint": "tsc --noEmit",
|
package/dist/chunk-LP57NRCI.mjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
import{a as u}from"./chunk-2PMIOWFK.mjs";var p=new Uint8Array(256);function b(e,l){let r=0,c=[],x=0,g=e.length,C=l.charCodeAt(0);for(let o=0;o<g;o++){let s=e.charCodeAt(o);if(r===0&&s===C){c.push(e.slice(x,o)),x=o+1;continue}switch(s){case 92:o+=1;break;case 39:case 34:for(;++o<g;){let d=e.charCodeAt(o);if(d===92){o+=1;continue}if(d===s)break}break;case 40:p[r]=41,r++;break;case 91:p[r]=93,r++;break;case 123:p[r]=125,r++;break;case 93:case 125:case 41:r>0&&s===p[r-1]&&r--;break}}return c.push(e.slice(x)),c}function i(e){return{__BARE_VALUE__:e}}var n=i(e=>{if(!Number.isNaN(Number(e.value)))return e.value}),t=i(e=>{if(!Number.isNaN(Number(e.value)))return`${e.value}%`}),a=i(e=>{if(!Number.isNaN(Number(e.value)))return`${e.value}px`}),f=i(e=>{if(!Number.isNaN(Number(e.value)))return`${e.value}ms`}),m=i(e=>{if(!Number.isNaN(Number(e.value)))return`${e.value}deg`}),E=i(e=>{if(e.fraction===null)return;let[l,r]=b(e.fraction,"/");if(!(!Number.isInteger(Number(l))||!Number.isInteger(Number(r))))return e.fraction}),h=i(e=>{if(!Number.isNaN(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),y={accentColor:({theme:e})=>e("colors"),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...E},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...t}),backdropContrast:({theme:e})=>({...e("contrast"),...t}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...t}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...m}),backdropInvert:({theme:e})=>({...e("invert"),...t}),backdropOpacity:({theme:e})=>({...e("opacity"),...t}),backdropSaturate:({theme:e})=>({...e("saturate"),...t}),backdropSepia:({theme:e})=>({...e("sepia"),...t}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...a},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...t},caretColor:({theme:e})=>e("colors"),colors:()=>({...u}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...n},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...t},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...a}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...n},flexShrink:{0:"0",DEFAULT:"1",...n},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...t},grayscale:{0:"0",DEFAULT:"100%",...t},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...n},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...n},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...n},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...n},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...h},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...h},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...m},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...t},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...n},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...t},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...n},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...a},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...a},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...a},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...a},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...m},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...t},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...t},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...t},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...m},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...n},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...a},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...a},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...f},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...f},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...n}};export{b as a,y as b};
|
@@ -1,348 +0,0 @@
|
|
1
|
-
type Rule = {
|
2
|
-
kind: 'rule';
|
3
|
-
selector: string;
|
4
|
-
nodes: AstNode[];
|
5
|
-
};
|
6
|
-
type Declaration = {
|
7
|
-
kind: 'declaration';
|
8
|
-
property: string;
|
9
|
-
value: string | undefined;
|
10
|
-
important: boolean;
|
11
|
-
};
|
12
|
-
type Comment = {
|
13
|
-
kind: 'comment';
|
14
|
-
value: string;
|
15
|
-
};
|
16
|
-
type AstNode = Rule | Declaration | Comment;
|
17
|
-
|
18
|
-
declare const enum ThemeOptions {
|
19
|
-
NONE = 0,
|
20
|
-
INLINE = 1,
|
21
|
-
REFERENCE = 2,
|
22
|
-
DEFAULT = 4
|
23
|
-
}
|
24
|
-
declare class Theme {
|
25
|
-
#private;
|
26
|
-
private values;
|
27
|
-
constructor(values?: Map<string, {
|
28
|
-
value: string;
|
29
|
-
options: number;
|
30
|
-
}>);
|
31
|
-
add(key: string, value: string, options?: ThemeOptions): void;
|
32
|
-
keysInNamespaces(themeKeys: ThemeKey[]): string[];
|
33
|
-
get(themeKeys: ThemeKey[]): string | null;
|
34
|
-
hasDefault(key: string): boolean;
|
35
|
-
getOptions(key: string): number;
|
36
|
-
entries(): IterableIterator<[string, {
|
37
|
-
value: string;
|
38
|
-
options: number;
|
39
|
-
}]>;
|
40
|
-
resolve(candidateValue: string | null, themeKeys: ThemeKey[]): string | null;
|
41
|
-
resolveValue(candidateValue: string | null, themeKeys: ThemeKey[]): string | null;
|
42
|
-
resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
|
43
|
-
namespace(namespace: string): Map<string | null, string>;
|
44
|
-
}
|
45
|
-
type ThemeKey = `--${string}`;
|
46
|
-
|
47
|
-
type VariantFn<T extends Variant['kind']> = (rule: Rule, variant: Extract<Variant, {
|
48
|
-
kind: T;
|
49
|
-
}>) => null | void;
|
50
|
-
type CompareFn = (a: Variant, z: Variant) => number;
|
51
|
-
declare class Variants {
|
52
|
-
private compareFns;
|
53
|
-
private variants;
|
54
|
-
private completions;
|
55
|
-
/**
|
56
|
-
* Registering a group of variants should result in the same sort number for
|
57
|
-
* all the variants. This is to ensure that the variants are applied in the
|
58
|
-
* correct order.
|
59
|
-
*/
|
60
|
-
private groupOrder;
|
61
|
-
/**
|
62
|
-
* Keep track of the last sort order instead of using the size of the map to
|
63
|
-
* avoid unnecessarily skipping order numbers.
|
64
|
-
*/
|
65
|
-
private lastOrder;
|
66
|
-
static(name: string, applyFn: VariantFn<'static'>, { compounds }?: {
|
67
|
-
compounds?: boolean;
|
68
|
-
}): void;
|
69
|
-
fromAst(name: string, ast: AstNode[]): void;
|
70
|
-
functional(name: string, applyFn: VariantFn<'functional'>, { compounds }?: {
|
71
|
-
compounds?: boolean;
|
72
|
-
}): void;
|
73
|
-
compound(name: string, applyFn: VariantFn<'compound'>, { compounds }?: {
|
74
|
-
compounds?: boolean;
|
75
|
-
}): void;
|
76
|
-
group(fn: () => void, compareFn?: CompareFn): void;
|
77
|
-
has(name: string): boolean;
|
78
|
-
get(name: string): {
|
79
|
-
kind: Variant["kind"];
|
80
|
-
order: number;
|
81
|
-
applyFn: VariantFn<any>;
|
82
|
-
compounds: boolean;
|
83
|
-
} | undefined;
|
84
|
-
kind(name: string): "static" | "functional" | "arbitrary" | "compound";
|
85
|
-
compounds(name: string): boolean;
|
86
|
-
suggest(name: string, suggestions: () => string[]): void;
|
87
|
-
getCompletions(name: string): string[];
|
88
|
-
compare(a: Variant | null, z: Variant | null): number;
|
89
|
-
keys(): IterableIterator<string>;
|
90
|
-
entries(): IterableIterator<[string, {
|
91
|
-
kind: Variant["kind"];
|
92
|
-
order: number;
|
93
|
-
applyFn: VariantFn<any>;
|
94
|
-
compounds: boolean;
|
95
|
-
}]>;
|
96
|
-
private set;
|
97
|
-
private nextOrder;
|
98
|
-
}
|
99
|
-
|
100
|
-
declare function compileAstNodes(candidate: Candidate, designSystem: DesignSystem): {
|
101
|
-
node: AstNode;
|
102
|
-
propertySort: number[];
|
103
|
-
}[];
|
104
|
-
|
105
|
-
interface ClassMetadata {
|
106
|
-
modifiers: string[];
|
107
|
-
}
|
108
|
-
type ClassEntry = [string, ClassMetadata];
|
109
|
-
interface SelectorOptions {
|
110
|
-
modifier?: string;
|
111
|
-
value?: string;
|
112
|
-
}
|
113
|
-
interface VariantEntry {
|
114
|
-
name: string;
|
115
|
-
isArbitrary: boolean;
|
116
|
-
values: string[];
|
117
|
-
hasDash: boolean;
|
118
|
-
selectors: (options: SelectorOptions) => string[];
|
119
|
-
}
|
120
|
-
|
121
|
-
type CompileFn<T extends Candidate['kind']> = (value: Extract<Candidate, {
|
122
|
-
kind: T;
|
123
|
-
}>) => AstNode[] | undefined | null;
|
124
|
-
interface SuggestionGroup {
|
125
|
-
supportsNegative?: boolean;
|
126
|
-
values: (string | null)[];
|
127
|
-
modifiers: string[];
|
128
|
-
}
|
129
|
-
type UtilityOptions = {
|
130
|
-
types: string[];
|
131
|
-
};
|
132
|
-
type Utility = {
|
133
|
-
kind: 'static' | 'functional';
|
134
|
-
compileFn: CompileFn<any>;
|
135
|
-
options?: UtilityOptions;
|
136
|
-
};
|
137
|
-
declare class Utilities {
|
138
|
-
private utilities;
|
139
|
-
private completions;
|
140
|
-
static(name: string, compileFn: CompileFn<'static'>): void;
|
141
|
-
functional(name: string, compileFn: CompileFn<'functional'>, options?: UtilityOptions): void;
|
142
|
-
has(name: string, kind: 'static' | 'functional'): boolean;
|
143
|
-
get(name: string): Utility[];
|
144
|
-
getCompletions(name: string): SuggestionGroup[];
|
145
|
-
suggest(name: string, groups: () => SuggestionGroup[]): void;
|
146
|
-
keys(kind: 'static' | 'functional'): string[];
|
147
|
-
}
|
148
|
-
|
149
|
-
type DesignSystem = {
|
150
|
-
theme: Theme;
|
151
|
-
utilities: Utilities;
|
152
|
-
variants: Variants;
|
153
|
-
candidatesToCss(classes: string[]): (string | null)[];
|
154
|
-
getClassOrder(classes: string[]): [string, bigint | null][];
|
155
|
-
getClassList(): ClassEntry[];
|
156
|
-
getVariants(): VariantEntry[];
|
157
|
-
parseCandidate(candidate: string): Candidate[];
|
158
|
-
parseVariant(variant: string): ReturnType<typeof parseVariant>;
|
159
|
-
compileAstNodes(candidate: Candidate): ReturnType<typeof compileAstNodes>;
|
160
|
-
getUsedVariants(): ReturnType<typeof parseVariant>[];
|
161
|
-
resolveThemeValue(path: string): string | undefined;
|
162
|
-
};
|
163
|
-
|
164
|
-
type ArbitraryUtilityValue = {
|
165
|
-
kind: 'arbitrary';
|
166
|
-
/**
|
167
|
-
* bg-[color:--my-color]
|
168
|
-
* ^^^^^
|
169
|
-
*/
|
170
|
-
dataType: string | null;
|
171
|
-
/**
|
172
|
-
* bg-[#0088cc]
|
173
|
-
* ^^^^^^^
|
174
|
-
* bg-[--my_variable]
|
175
|
-
* var(^^^^^^^^^^^^^)
|
176
|
-
*/
|
177
|
-
value: string;
|
178
|
-
/**
|
179
|
-
* bg-[--my_variable]
|
180
|
-
* ^^^^^^^^^^^^^
|
181
|
-
*/
|
182
|
-
dashedIdent: string | null;
|
183
|
-
};
|
184
|
-
type NamedUtilityValue = {
|
185
|
-
kind: 'named';
|
186
|
-
/**
|
187
|
-
* bg-red-500
|
188
|
-
* ^^^^^^^
|
189
|
-
*
|
190
|
-
* w-1/2
|
191
|
-
* ^
|
192
|
-
*/
|
193
|
-
value: string;
|
194
|
-
/**
|
195
|
-
* w-1/2
|
196
|
-
* ^^^
|
197
|
-
*/
|
198
|
-
fraction: string | null;
|
199
|
-
};
|
200
|
-
type ArbitraryModifier = {
|
201
|
-
kind: 'arbitrary';
|
202
|
-
/**
|
203
|
-
* bg-red-500/[50%]
|
204
|
-
* ^^^
|
205
|
-
*/
|
206
|
-
value: string;
|
207
|
-
/**
|
208
|
-
* bg-red-500/[--my_variable]
|
209
|
-
* ^^^^^^^^^^^^^
|
210
|
-
*/
|
211
|
-
dashedIdent: string | null;
|
212
|
-
};
|
213
|
-
type NamedModifier = {
|
214
|
-
kind: 'named';
|
215
|
-
/**
|
216
|
-
* bg-red-500/50
|
217
|
-
* ^^
|
218
|
-
*/
|
219
|
-
value: string;
|
220
|
-
};
|
221
|
-
type ArbitraryVariantValue = {
|
222
|
-
kind: 'arbitrary';
|
223
|
-
value: string;
|
224
|
-
};
|
225
|
-
type NamedVariantValue = {
|
226
|
-
kind: 'named';
|
227
|
-
value: string;
|
228
|
-
};
|
229
|
-
type Variant =
|
230
|
-
/**
|
231
|
-
* Arbitrary variants are variants that take a selector and generate a variant
|
232
|
-
* on the fly.
|
233
|
-
*
|
234
|
-
* E.g.: `[&_p]`
|
235
|
-
*/
|
236
|
-
{
|
237
|
-
kind: 'arbitrary';
|
238
|
-
selector: string;
|
239
|
-
compounds: boolean;
|
240
|
-
relative: boolean;
|
241
|
-
}
|
242
|
-
/**
|
243
|
-
* Static variants are variants that don't take any arguments.
|
244
|
-
*
|
245
|
-
* E.g.: `hover`
|
246
|
-
*/
|
247
|
-
| {
|
248
|
-
kind: 'static';
|
249
|
-
root: string;
|
250
|
-
compounds: boolean;
|
251
|
-
}
|
252
|
-
/**
|
253
|
-
* Functional variants are variants that can take an argument. The argument is
|
254
|
-
* either a named variant value or an arbitrary variant value.
|
255
|
-
*
|
256
|
-
* E.g.:
|
257
|
-
*
|
258
|
-
* - `aria-disabled`
|
259
|
-
* - `aria-[disabled]`
|
260
|
-
* - `@container-size` -> @container, with named value `size`
|
261
|
-
* - `@container-[inline-size]` -> @container, with arbitrary variant value `inline-size`
|
262
|
-
* - `@container` -> @container, with no value
|
263
|
-
*/
|
264
|
-
| {
|
265
|
-
kind: 'functional';
|
266
|
-
root: string;
|
267
|
-
value: ArbitraryVariantValue | NamedVariantValue | null;
|
268
|
-
modifier: ArbitraryModifier | NamedModifier | null;
|
269
|
-
compounds: boolean;
|
270
|
-
}
|
271
|
-
/**
|
272
|
-
* Compound variants are variants that take another variant as an argument.
|
273
|
-
*
|
274
|
-
* E.g.:
|
275
|
-
*
|
276
|
-
* - `has-[&_p]`
|
277
|
-
* - `group-*`
|
278
|
-
* - `peer-*`
|
279
|
-
*/
|
280
|
-
| {
|
281
|
-
kind: 'compound';
|
282
|
-
root: string;
|
283
|
-
modifier: ArbitraryModifier | NamedModifier | null;
|
284
|
-
variant: Variant;
|
285
|
-
compounds: boolean;
|
286
|
-
};
|
287
|
-
type Candidate =
|
288
|
-
/**
|
289
|
-
* Arbitrary candidates are candidates that register utilities on the fly with
|
290
|
-
* a property and a value.
|
291
|
-
*
|
292
|
-
* E.g.:
|
293
|
-
*
|
294
|
-
* - `[color:red]`
|
295
|
-
* - `[color:red]/50`
|
296
|
-
* - `[color:red]/50!`
|
297
|
-
*/
|
298
|
-
{
|
299
|
-
kind: 'arbitrary';
|
300
|
-
property: string;
|
301
|
-
value: string;
|
302
|
-
modifier: ArbitraryModifier | NamedModifier | null;
|
303
|
-
variants: Variant[];
|
304
|
-
important: boolean;
|
305
|
-
raw: string;
|
306
|
-
}
|
307
|
-
/**
|
308
|
-
* Static candidates are candidates that don't take any arguments.
|
309
|
-
*
|
310
|
-
* E.g.:
|
311
|
-
*
|
312
|
-
* - `underline`
|
313
|
-
* - `flex`
|
314
|
-
*/
|
315
|
-
| {
|
316
|
-
kind: 'static';
|
317
|
-
root: string;
|
318
|
-
variants: Variant[];
|
319
|
-
negative: boolean;
|
320
|
-
important: boolean;
|
321
|
-
raw: string;
|
322
|
-
}
|
323
|
-
/**
|
324
|
-
* Functional candidates are candidates that can take an argument.
|
325
|
-
*
|
326
|
-
* E.g.:
|
327
|
-
*
|
328
|
-
* - `bg-red-500`
|
329
|
-
* - `bg-[#0088cc]`
|
330
|
-
* - `w-1/2`
|
331
|
-
*/
|
332
|
-
| {
|
333
|
-
kind: 'functional';
|
334
|
-
root: string;
|
335
|
-
value: ArbitraryUtilityValue | NamedUtilityValue | null;
|
336
|
-
modifier: ArbitraryModifier | NamedModifier | null;
|
337
|
-
variants: Variant[];
|
338
|
-
negative: boolean;
|
339
|
-
important: boolean;
|
340
|
-
raw: string;
|
341
|
-
};
|
342
|
-
declare function parseVariant(variant: string, designSystem: DesignSystem): Variant | null;
|
343
|
-
|
344
|
-
interface PluginUtils {
|
345
|
-
theme(keypath: string, defaultValue?: any): any;
|
346
|
-
}
|
347
|
-
|
348
|
-
export type { DesignSystem as D, NamedUtilityValue as N, PluginUtils as P };
|