@tokenami/config 0.0.52 → 0.0.54

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/index.d.cts CHANGED
@@ -1,5 +1,65 @@
1
1
  import * as CSS from 'csstype';
2
2
 
3
+ type GridProperty = '--_grid';
4
+ declare const GridProperty: {
5
+ safeParse: (input: unknown) => Validated<"--_grid">;
6
+ };
7
+ declare function gridProperty(): GridProperty;
8
+ type GridValue = number;
9
+ declare const GridValue: {
10
+ safeParse: (input: unknown) => Validated<number>;
11
+ };
12
+ type TokenProperty<P extends string = string> = `--${P}`;
13
+ declare const TokenProperty: {
14
+ safeParse: (input: unknown) => Validated<`--${string}`>;
15
+ };
16
+ declare function tokenProperty(name: string): TokenProperty;
17
+ declare function parsedTokenProperty(name: string): TokenProperty;
18
+ type VariantProperty<P extends string = string, V extends string = string> = `--${V}_${P}`;
19
+ declare const VariantProperty: {
20
+ safeParse: (input: unknown) => Validated<`--${string}_${string}`>;
21
+ };
22
+ declare function variantProperty(variant: string, name: string): VariantProperty;
23
+ declare function parsedVariantProperty(variant: string, name: string): VariantProperty;
24
+ type TokenValue<TK extends string = string, V extends string = string> = `var(--${TK}_${V})`;
25
+ declare const TokenValue: {
26
+ safeParse: (input: unknown) => Validated<`var(--${string}_${string})`>;
27
+ };
28
+ declare function tokenValue<TK extends string, N extends string>(themeKey: TK, name: N): TokenValue<TK, N>;
29
+ type ArbitraryValue = `var(---,${string})`;
30
+ declare const ArbitraryValue: {
31
+ safeParse: (input: unknown) => Validated<`var(---,${string})`>;
32
+ };
33
+ declare function arbitraryValue(value: string): ArbitraryValue;
34
+ type Validated<T> = {
35
+ success: true;
36
+ output: T;
37
+ } | {
38
+ success: false;
39
+ };
40
+ declare function getTokenPropertyName(property: TokenProperty): string;
41
+ declare function getTokenPropertySplit(property: TokenProperty): {
42
+ alias: string;
43
+ variants: string[];
44
+ };
45
+ type PropertyParts = {
46
+ alias: string;
47
+ responsive?: string;
48
+ selector?: string;
49
+ variant?: string;
50
+ };
51
+ declare function getTokenPropertyParts(tokenProperty: TokenProperty, config: Config): PropertyParts | null;
52
+ declare function getArbitrarySelector(selector: string | undefined): string | undefined;
53
+ declare function getTokenValueParts(tokenValue: TokenValue): {
54
+ property: string;
55
+ themeKey: string;
56
+ token: string;
57
+ };
58
+ declare function getCSSPropertiesForAlias(alias: string, aliases: Config['aliases']): string[];
59
+ declare function parseProperty<T extends string>(str: T, options?: {
60
+ escapeSpecialChars?: boolean;
61
+ }): T;
62
+
3
63
  interface CSSProperties<TLength = (string & {}) | 0, TTime = string & {}> extends CSS.StandardPropertiesHyphen<TLength, TTime>, CSS.SvgPropertiesHyphen<TLength, TTime> {
4
64
  }
5
65
  type CSSProperty = keyof CSSProperties;
@@ -39,7 +99,7 @@ interface Config {
39
99
  aliases?: Aliases;
40
100
  themeSelector?: (mode: string) => string;
41
101
  theme: ThemeConfig;
42
- properties?: Partial<Record<CSSProperty, PropertiesOptions>>;
102
+ properties?: Partial<Record<TokenProperty<CSSProperty | `-${string}`>, PropertiesOptions>>;
43
103
  }
44
104
  declare const defaultConfig: {
45
105
  include: never[];
@@ -64,270 +124,146 @@ declare const defaultConfig: {
64
124
  disabled: string;
65
125
  };
66
126
  properties: {
67
- 'accent-color': "color"[];
68
- animation: "anim"[];
69
- 'animation-timing-function': "ease"[];
70
- background: ("color" | "surface")[];
71
- 'background-color': "color"[];
72
- 'background-image': "surface"[];
73
- 'background-position': "grid"[];
74
- 'background-position-x': "grid"[];
75
- 'background-position-y': "grid"[];
76
- 'block-size': ("grid" | "size")[];
77
- border: "border"[];
78
- 'border-block': "border"[];
79
- 'border-block-color': "color"[];
80
- 'border-block-end': "border"[];
81
- 'border-block-end-color': "color"[];
82
- 'border-block-end-style': "line-style"[];
83
- 'border-block-start': "border"[];
84
- 'border-block-start-color': "color"[];
85
- 'border-block-start-style': "line-style"[];
86
- 'border-block-style': "line-style"[];
87
- 'border-bottom': "border"[];
88
- 'border-bottom-color': "color"[];
89
- 'border-bottom-left-radius': "radii"[];
90
- 'border-bottom-right-radius': "radii"[];
91
- 'border-bottom-style': "line-style"[];
92
- 'border-color': "color"[];
93
- 'border-end-end-radius': "radii"[];
94
- 'border-end-start-radius': "radii"[];
95
- 'border-inline': "border"[];
96
- 'border-inline-color': "color"[];
97
- 'border-inline-end': "border"[];
98
- 'border-inline-end-color': "color"[];
99
- 'border-inline-end-style': "line-style"[];
100
- 'border-inline-start': "border"[];
101
- 'border-inline-start-color': "color"[];
102
- 'border-inline-start-style': "line-style"[];
103
- 'border-inline-style': "line-style"[];
104
- 'border-left': "border"[];
105
- 'border-left-color': "color"[];
106
- 'border-left-style': "line-style"[];
107
- 'border-radius': "radii"[];
108
- 'border-right': "border"[];
109
- 'border-right-color': "color"[];
110
- 'border-right-style': "line-style"[];
111
- 'border-start-end-radius': "radii"[];
112
- 'border-start-start-radius': "radii"[];
113
- 'border-style': "line-style"[];
114
- 'border-top': "border"[];
115
- 'border-top-color': "color"[];
116
- 'border-top-left-radius': "radii"[];
117
- 'border-top-right-radius': "radii"[];
118
- 'border-top-style': "line-style"[];
119
- bottom: "grid"[];
120
- 'box-shadow': "shadow"[];
121
- 'caret-color': "color"[];
122
- color: "color"[];
123
- 'column-gap': "grid"[];
124
- 'column-rule-color': "color"[];
125
- 'column-rule-width': "grid"[];
126
- 'column-width': ("grid" | "size")[];
127
- fill: "color"[];
128
- 'flex-basis': ("grid" | "size")[];
129
- 'font-family': "font"[];
130
- 'font-size': "font-size"[];
131
- 'font-weight': "weight"[];
132
- gap: "grid"[];
133
- height: ("grid" | "size")[];
134
- 'inline-size': ("grid" | "size")[];
135
- inset: "grid"[];
136
- 'inset-block': "grid"[];
137
- 'inset-block-end': "grid"[];
138
- 'inset-block-start': "grid"[];
139
- 'inset-inline': "grid"[];
140
- 'inset-inline-end': "grid"[];
141
- 'inset-inline-start': "grid"[];
142
- left: "grid"[];
143
- 'letter-spacing': "tracking"[];
144
- 'line-height': "leading"[];
145
- margin: "grid"[];
146
- 'margin-block': "grid"[];
147
- 'margin-block-end': "grid"[];
148
- 'margin-block-start': "grid"[];
149
- 'margin-bottom': "grid"[];
150
- 'margin-inline': "grid"[];
151
- 'margin-inline-end': "grid"[];
152
- 'margin-inline-start': "grid"[];
153
- 'margin-left': "grid"[];
154
- 'margin-right': "grid"[];
155
- 'margin-top': "grid"[];
156
- 'max-block-size': ("grid" | "size")[];
157
- 'max-height': ("grid" | "size")[];
158
- 'max-inline-size': ("grid" | "size")[];
159
- 'max-width': ("grid" | "size")[];
160
- 'min-block-size': ("grid" | "size")[];
161
- 'min-height': ("grid" | "size")[];
162
- 'min-inline-size': ("grid" | "size")[];
163
- 'min-width': ("grid" | "size")[];
164
- opacity: "alpha"[];
165
- 'outline-color': "color"[];
166
- padding: "grid"[];
167
- 'padding-block': "grid"[];
168
- 'padding-block-end': "grid"[];
169
- 'padding-block-start': "grid"[];
170
- 'padding-bottom': "grid"[];
171
- 'padding-inline': "grid"[];
172
- 'padding-inline-end': "grid"[];
173
- 'padding-inline-start': "grid"[];
174
- 'padding-left': "grid"[];
175
- 'padding-right': "grid"[];
176
- 'padding-top': "grid"[];
177
- right: "grid"[];
178
- 'row-gap': "grid"[];
179
- 'scroll-margin': "grid"[];
180
- 'scroll-margin-bottom': "grid"[];
181
- 'scroll-margin-left': "grid"[];
182
- 'scroll-margin-right': "grid"[];
183
- 'scroll-margin-top': "grid"[];
184
- 'scroll-padding': "grid"[];
185
- 'scroll-padding-bottom': "grid"[];
186
- 'scroll-padding-left': "grid"[];
187
- 'scroll-padding-right': "grid"[];
188
- 'scroll-padding-top': "grid"[];
189
- stroke: "color"[];
190
- 'text-decoration-color': "color"[];
191
- 'text-shadow': "shadow"[];
192
- top: "grid"[];
193
- transition: "transition"[];
194
- 'transition-timing-function': "ease"[];
195
- width: ("grid" | "size")[];
196
- 'z-index': "z"[];
127
+ '--accent-color': "color"[];
128
+ '--animation': "anim"[];
129
+ '--animation-timing-function': "ease"[];
130
+ '--background': ("color" | "surface")[];
131
+ '--background-color': "color"[];
132
+ '--background-image': "surface"[];
133
+ '--background-position': "grid"[];
134
+ '--background-position-x': "grid"[];
135
+ '--background-position-y': "grid"[];
136
+ '--block-size': ("grid" | "size")[];
137
+ '--border': "border"[];
138
+ '--border-block': "border"[];
139
+ '--border-block-color': "color"[];
140
+ '--border-block-end': "border"[];
141
+ '--border-block-end-color': "color"[];
142
+ '--border-block-end-style': "line-style"[];
143
+ '--border-block-start': "border"[];
144
+ '--border-block-start-color': "color"[];
145
+ '--border-block-start-style': "line-style"[];
146
+ '--border-block-style': "line-style"[];
147
+ '--border-bottom': "border"[];
148
+ '--border-bottom-color': "color"[];
149
+ '--border-bottom-left-radius': "radii"[];
150
+ '--border-bottom-right-radius': "radii"[];
151
+ '--border-bottom-style': "line-style"[];
152
+ '--border-color': "color"[];
153
+ '--border-end-end-radius': "radii"[];
154
+ '--border-end-start-radius': "radii"[];
155
+ '--border-inline': "border"[];
156
+ '--border-inline-color': "color"[];
157
+ '--border-inline-end': "border"[];
158
+ '--border-inline-end-color': "color"[];
159
+ '--border-inline-end-style': "line-style"[];
160
+ '--border-inline-start': "border"[];
161
+ '--border-inline-start-color': "color"[];
162
+ '--border-inline-start-style': "line-style"[];
163
+ '--border-inline-style': "line-style"[];
164
+ '--border-left': "border"[];
165
+ '--border-left-color': "color"[];
166
+ '--border-left-style': "line-style"[];
167
+ '--border-radius': "radii"[];
168
+ '--border-right': "border"[];
169
+ '--border-right-color': "color"[];
170
+ '--border-right-style': "line-style"[];
171
+ '--border-start-end-radius': "radii"[];
172
+ '--border-start-start-radius': "radii"[];
173
+ '--border-style': "line-style"[];
174
+ '--border-top': "border"[];
175
+ '--border-top-color': "color"[];
176
+ '--border-top-left-radius': "radii"[];
177
+ '--border-top-right-radius': "radii"[];
178
+ '--border-top-style': "line-style"[];
179
+ '--bottom': "grid"[];
180
+ '--box-shadow': "shadow"[];
181
+ '--caret-color': "color"[];
182
+ '--color': "color"[];
183
+ '--column-gap': "grid"[];
184
+ '--column-rule-color': "color"[];
185
+ '--column-rule-width': "grid"[];
186
+ '--column-width': ("grid" | "size")[];
187
+ '--fill': "color"[];
188
+ '--flex-basis': ("grid" | "size")[];
189
+ '--font-family': "font"[];
190
+ '--font-size': "font-size"[];
191
+ '--font-weight': "weight"[];
192
+ '--gap': "grid"[];
193
+ '--height': ("grid" | "size")[];
194
+ '--inline-size': ("grid" | "size")[];
195
+ '--inset': "grid"[];
196
+ '--inset-block': "grid"[];
197
+ '--inset-block-end': "grid"[];
198
+ '--inset-block-start': "grid"[];
199
+ '--inset-inline': "grid"[];
200
+ '--inset-inline-end': "grid"[];
201
+ '--inset-inline-start': "grid"[];
202
+ '--left': "grid"[];
203
+ '--letter-spacing': "tracking"[];
204
+ '--line-height': "leading"[];
205
+ '--margin': "grid"[];
206
+ '--margin-block': "grid"[];
207
+ '--margin-block-end': "grid"[];
208
+ '--margin-block-start': "grid"[];
209
+ '--margin-bottom': "grid"[];
210
+ '--margin-inline': "grid"[];
211
+ '--margin-inline-end': "grid"[];
212
+ '--margin-inline-start': "grid"[];
213
+ '--margin-left': "grid"[];
214
+ '--margin-right': "grid"[];
215
+ '--margin-top': "grid"[];
216
+ '--max-block-size': ("grid" | "size")[];
217
+ '--max-height': ("grid" | "size")[];
218
+ '--max-inline-size': ("grid" | "size")[];
219
+ '--max-width': ("grid" | "size")[];
220
+ '--min-block-size': ("grid" | "size")[];
221
+ '--min-height': ("grid" | "size")[];
222
+ '--min-inline-size': ("grid" | "size")[];
223
+ '--min-width': ("grid" | "size")[];
224
+ '--opacity': "alpha"[];
225
+ '--outline-color': "color"[];
226
+ '--padding': "grid"[];
227
+ '--padding-block': "grid"[];
228
+ '--padding-block-end': "grid"[];
229
+ '--padding-block-start': "grid"[];
230
+ '--padding-bottom': "grid"[];
231
+ '--padding-inline': "grid"[];
232
+ '--padding-inline-end': "grid"[];
233
+ '--padding-inline-start': "grid"[];
234
+ '--padding-left': "grid"[];
235
+ '--padding-right': "grid"[];
236
+ '--padding-top': "grid"[];
237
+ '--right': "grid"[];
238
+ '--row-gap': "grid"[];
239
+ '--scroll-margin': "grid"[];
240
+ '--scroll-margin-bottom': "grid"[];
241
+ '--scroll-margin-left': "grid"[];
242
+ '--scroll-margin-right': "grid"[];
243
+ '--scroll-margin-top': "grid"[];
244
+ '--scroll-padding': "grid"[];
245
+ '--scroll-padding-bottom': "grid"[];
246
+ '--scroll-padding-left': "grid"[];
247
+ '--scroll-padding-right': "grid"[];
248
+ '--scroll-padding-top': "grid"[];
249
+ '--stroke': "color"[];
250
+ '--text-decoration-color': "color"[];
251
+ '--text-shadow': "shadow"[];
252
+ '--top': "grid"[];
253
+ '--transition': "transition"[];
254
+ '--transition-timing-function': "ease"[];
255
+ '--width': ("grid" | "size")[];
256
+ '--z-index': "z"[];
197
257
  };
198
258
  };
199
259
  type DefaultConfig = typeof defaultConfig;
200
260
  type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
201
- type Exact<T, V extends T> = Exclude<keyof V, keyof T> extends never ? V : T;
261
+ type ExactConfig<Shape, T> = T extends Shape ? keyof T extends keyof Shape ? keyof Shape extends keyof T ? T : Shape : Shape : Shape;
202
262
  type MatchingThemeModes<M> = M extends ThemeMode ? {
203
263
  theme: ThemeModes<UnionToIntersection<M[keyof M]>>;
204
264
  } : {};
205
- declare function createConfig<T extends Config>(obj: Exact<Config, T> & MatchingThemeModes<T['theme']['modes']>): Omit<DefaultConfig, keyof DeepReadonly<T>> & DeepReadonly<T>;
265
+ declare function createConfig<T>(obj: ExactConfig<Config, T> & (T extends Config ? MatchingThemeModes<T['theme']['modes']> : {})): Omit<DefaultConfig, keyof DeepReadonly<T>> & DeepReadonly<T>;
206
266
 
207
- type GridProperty = '--_grid';
208
- declare const GridProperty: {
209
- safeParse: (input: unknown) => Validated<"--_grid">;
210
- };
211
- declare function gridProperty(): GridProperty;
212
- type GridValue = number;
213
- declare const GridValue: {
214
- safeParse: (input: unknown) => Validated<number>;
215
- };
216
- type TokenProperty<P extends string = string> = `--${P}`;
217
- declare const TokenProperty: {
218
- safeParse: (input: unknown) => Validated<`--${string}`>;
219
- };
220
- declare function tokenProperty(name: string): TokenProperty;
221
- type VariantProperty<P extends string = string, V extends string = string> = `--${V}_${P}`;
222
- declare const VariantProperty: {
223
- safeParse: (input: unknown) => Validated<`--${string}_${string}`>;
224
- };
225
- declare function variantProperty(variant: string, name: string): VariantProperty;
226
- type TokenValue<TK extends string = string, V extends string = string> = `var(--${TK}_${V})`;
227
- declare const TokenValue: {
228
- safeParse: (input: unknown) => Validated<`var(--${string}_${string})`>;
229
- };
230
- declare function tokenValue<TK extends string, N extends string>(themeKey: TK, name: N): TokenValue<TK, N>;
231
- type ArbitraryValue = `var(---,${string})`;
232
- declare const ArbitraryValue: {
233
- safeParse: (input: unknown) => Validated<`var(---,${string})`>;
234
- };
235
- declare function arbitraryValue(value: string): ArbitraryValue;
236
- type Validated<T> = {
237
- success: true;
238
- output: T;
239
- } | {
240
- success: false;
241
- };
242
- declare function getTokenPropertyName(property: TokenProperty): string;
243
- declare function getTokenPropertySplit(property: TokenProperty): {
244
- alias: string;
245
- variants: string[];
246
- };
247
- type PropertyParts = {
248
- alias: string;
249
- responsive?: string;
250
- selector?: string;
251
- variant?: string;
252
- };
253
- declare function getTokenPropertyParts(tokenProperty: TokenProperty, config: Config): PropertyParts | null;
254
- declare function getTokenValueParts(tokenValue: TokenValue): {
255
- property: string;
256
- themeKey: string;
257
- token: string;
258
- };
259
- declare function getCSSPropertiesForAlias(alias: string, aliases: Config['aliases']): string[];
260
-
261
- declare const mapShorthandToLonghands: {
262
- all: never[];
263
- animation: ("animation-delay" | "animation-direction" | "animation-duration" | "animation-fill-mode" | "animation-iteration-count" | "animation-name" | "animation-play-state" | "animation-timeline" | "animation-timing-function")[];
264
- background: ("background-attachment" | "background-clip" | "background-color" | "background-image" | "background-repeat" | "background-size" | "background-position")[];
265
- 'background-position': ("background-position-x" | "background-position-y")[];
266
- border: ("border-block" | "border-bottom" | "border-color" | "border-image" | "border-inline" | "border-left" | "border-right" | "border-style" | "border-top" | "border-width")[];
267
- 'border-top': ("border-top-color" | "border-top-style" | "border-top-width")[];
268
- 'border-right': ("border-right-color" | "border-right-style" | "border-right-width")[];
269
- 'border-bottom': ("border-bottom-color" | "border-bottom-style" | "border-bottom-width")[];
270
- 'border-left': ("border-left-color" | "border-left-style" | "border-left-width")[];
271
- 'border-color': ("border-bottom-color" | "border-left-color" | "border-right-color" | "border-top-color")[];
272
- 'border-style': ("border-bottom-style" | "border-left-style" | "border-right-style" | "border-top-style")[];
273
- 'border-width': ("border-bottom-width" | "border-left-width" | "border-right-width" | "border-top-width")[];
274
- 'border-image': ("border-image-outset" | "border-image-repeat" | "border-image-slice" | "border-image-source" | "border-image-width")[];
275
- 'border-radius': ("border-bottom-left-radius" | "border-bottom-right-radius" | "border-top-left-radius" | "border-top-right-radius")[];
276
- 'border-block': ("border-block-color" | "border-block-style" | "border-block-width" | "border-block-end" | "border-block-start")[];
277
- 'border-block-width': ("border-block-end-width" | "border-block-start-width")[];
278
- 'border-block-style': ("border-block-end-style" | "border-block-start-style")[];
279
- 'border-block-color': ("border-block-end-color" | "border-block-start-color")[];
280
- 'border-block-start': ("border-block-start-color" | "border-block-start-style" | "border-block-start-width")[];
281
- 'border-block-end': ("border-block-end-color" | "border-block-end-style" | "border-block-end-width")[];
282
- 'border-inline': ("border-inline-color" | "border-inline-style" | "border-inline-width" | "border-inline-end" | "border-inline-start")[];
283
- 'border-inline-width': ("border-inline-end-width" | "border-inline-start-width")[];
284
- 'border-inline-style': ("border-inline-end-style" | "border-inline-start-style")[];
285
- 'border-inline-color': ("border-inline-end-color" | "border-inline-start-color")[];
286
- 'border-inline-start': ("border-inline-start-color" | "border-inline-start-style" | "border-inline-start-width")[];
287
- 'border-inline-end': ("border-inline-end-color" | "border-inline-end-style" | "border-inline-end-width")[];
288
- 'column-rule': ("column-rule-color" | "column-rule-style" | "column-rule-width")[];
289
- columns: ("column-count" | "column-width")[];
290
- container: ("container-name" | "container-type")[];
291
- 'contain-intrinsic-size': ("contain-intrinsic-height" | "contain-intrinsic-width")[];
292
- flex: ("flex-basis" | "flex-grow" | "flex-shrink")[];
293
- 'flex-flow': ("flex-direction" | "flex-wrap")[];
294
- font: ("font-size" | "font-family" | "font-stretch" | "font-style" | "font-variant" | "font-weight" | "line-height")[];
295
- 'font-variant': ("font-variant-alternates" | "font-variant-caps" | "font-variant-east-asian" | "font-variant-emoji" | "font-variant-ligatures" | "font-variant-numeric" | "font-variant-position")[];
296
- gap: ("column-gap" | "row-gap")[];
297
- grid: ("grid-auto-columns" | "grid-auto-flow" | "grid-auto-rows" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows")[];
298
- 'grid-area': ("grid-column-end" | "grid-column-start" | "grid-row-end" | "grid-row-start")[];
299
- 'grid-column': ("grid-column-end" | "grid-column-start")[];
300
- 'grid-row': ("grid-row-end" | "grid-row-start")[];
301
- 'grid-template': ("grid-template-areas" | "grid-template-columns" | "grid-template-rows")[];
302
- inset: ("bottom" | "left" | "right" | "top")[];
303
- 'list-style': ("list-style-image" | "list-style-position" | "list-style-type")[];
304
- 'inset-block': ("inset-block-end" | "inset-block-start")[];
305
- 'inset-inline': ("inset-inline-end" | "inset-inline-start")[];
306
- margin: ("margin-bottom" | "margin-left" | "margin-right" | "margin-top")[];
307
- 'margin-block': ("margin-block-end" | "margin-block-start")[];
308
- 'margin-inline': ("margin-inline-end" | "margin-inline-start")[];
309
- mask: ("mask-clip" | "mask-composite" | "mask-image" | "mask-mode" | "mask-origin" | "mask-position" | "mask-repeat" | "mask-size" | "mask-type")[];
310
- 'mask-border': ("mask-border-mode" | "mask-border-outset" | "mask-border-repeat" | "mask-border-slice" | "mask-border-source" | "mask-border-width")[];
311
- offset: ("offset-anchor" | "offset-distance" | "offset-path" | "offset-position" | "offset-rotate")[];
312
- outline: ("outline-color" | "outline-style" | "outline-width")[];
313
- overflow: ("overflow-x" | "overflow-y")[];
314
- 'overscroll-behavior': ("overscroll-behavior-x" | "overscroll-behavior-y")[];
315
- padding: ("padding-bottom" | "padding-left" | "padding-right" | "padding-top")[];
316
- 'padding-block': ("padding-block-end" | "padding-block-start")[];
317
- 'padding-inline': ("padding-inline-end" | "padding-inline-start")[];
318
- 'place-content': ("align-content" | "justify-content")[];
319
- 'place-items': ("align-items" | "justify-items")[];
320
- 'place-self': ("align-self" | "justify-self")[];
321
- 'scroll-margin': ("scroll-margin-bottom" | "scroll-margin-left" | "scroll-margin-right" | "scroll-margin-top")[];
322
- 'scroll-margin-block': ("scroll-margin-block-end" | "scroll-margin-block-start")[];
323
- 'scroll-margin-inline': ("scroll-margin-inline-end" | "scroll-margin-inline-start")[];
324
- 'scroll-padding': ("scroll-padding-bottom" | "scroll-padding-left" | "scroll-padding-right" | "scroll-padding-top")[];
325
- 'scroll-padding-block': ("scroll-padding-block-end" | "scroll-padding-block-start")[];
326
- 'scroll-padding-inline': ("scroll-padding-inline-end" | "scroll-padding-inline-start")[];
327
- 'scroll-timeline': ("scroll-timeline-axis" | "scroll-timeline-name")[];
328
- 'text-decoration': ("text-decoration-color" | "text-decoration-line" | "text-decoration-style" | "text-decoration-thickness")[];
329
- 'text-emphasis': ("text-emphasis-color" | "text-emphasis-style")[];
330
- transition: ("transition-delay" | "transition-duration" | "transition-property" | "transition-timing-function")[];
331
- };
267
+ declare const mapShorthandToLonghands: Map<"flex" | "grid" | "all" | "border-block-color" | "border-block-style" | "border-block-width" | "border-inline-color" | "border-inline-style" | "border-inline-width" | "border" | "transition" | "font-variant" | "animation" | "background" | "background-position" | "border-block" | "border-block-end" | "border-block-start" | "border-bottom" | "border-color" | "border-image" | "border-inline" | "border-inline-end" | "border-inline-start" | "border-left" | "border-radius" | "border-right" | "border-style" | "border-top" | "border-width" | "column-rule" | "columns" | "contain-intrinsic-size" | "container" | "flex-flow" | "font" | "gap" | "grid-area" | "grid-column" | "grid-row" | "grid-template" | "inset" | "inset-block" | "inset-inline" | "list-style" | "margin" | "margin-block" | "margin-inline" | "mask" | "mask-border" | "offset" | "outline" | "overflow" | "overscroll-behavior" | "padding" | "padding-block" | "padding-inline" | "place-content" | "place-items" | "place-self" | "scroll-margin" | "scroll-margin-block" | "scroll-margin-inline" | "scroll-padding" | "scroll-padding-block" | "scroll-padding-inline" | "scroll-timeline" | "text-decoration" | "text-emphasis", string[]>;
332
268
 
333
- export { type Aliases, ArbitraryValue, type CSSProperties, type CSSProperty, type Config, type DeepReadonly, type DefaultConfig, GridProperty, GridValue, type Theme, type ThemeModes, TokenProperty, TokenValue, VariantProperty, arbitraryValue, createConfig, defaultConfig, getCSSPropertiesForAlias, getTokenPropertyName, getTokenPropertyParts, getTokenPropertySplit, getTokenValueParts, gridProperty, mapShorthandToLonghands, tokenProperty, tokenValue, variantProperty };
269
+ export { type Aliases, ArbitraryValue, type CSSProperties, type CSSProperty, type Config, type DeepReadonly, type DefaultConfig, GridProperty, GridValue, type Theme, type ThemeModes, TokenProperty, TokenValue, VariantProperty, arbitraryValue, createConfig, defaultConfig, getArbitrarySelector, getCSSPropertiesForAlias, getTokenPropertyName, getTokenPropertyParts, getTokenPropertySplit, getTokenValueParts, gridProperty, mapShorthandToLonghands, parseProperty, parsedTokenProperty, parsedVariantProperty, tokenProperty, tokenValue, variantProperty };