@vitus-labs/unistyle 1.2.1 → 1.2.3-alpha.56

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.
Files changed (59) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +198 -0
  3. package/lib/analysis/index.js.html +1 -1
  4. package/lib/analysis/vitus-labs-unistyle.native.js.html +1 -1
  5. package/lib/index.d.ts +567 -430
  6. package/lib/index.d.ts.map +1 -0
  7. package/lib/index.js +1868 -732
  8. package/lib/index.js.map +1 -1
  9. package/lib/vitus-labs-unistyle.native.js +1854 -719
  10. package/lib/vitus-labs-unistyle.native.js.map +1 -1
  11. package/package.json +17 -18
  12. package/lib/types/context.d.ts +0 -15
  13. package/lib/types/context.d.ts.map +0 -1
  14. package/lib/types/index.d.ts +0 -12
  15. package/lib/types/index.d.ts.map +0 -1
  16. package/lib/types/responsive/breakpoints.d.ts +0 -14
  17. package/lib/types/responsive/breakpoints.d.ts.map +0 -1
  18. package/lib/types/responsive/createMediaQueries.d.ts +0 -8
  19. package/lib/types/responsive/createMediaQueries.d.ts.map +0 -1
  20. package/lib/types/responsive/index.d.ts +0 -15
  21. package/lib/types/responsive/index.d.ts.map +0 -1
  22. package/lib/types/responsive/makeItResponsive.d.ts +0 -30
  23. package/lib/types/responsive/makeItResponsive.d.ts.map +0 -1
  24. package/lib/types/responsive/normalizeTheme.d.ts +0 -7
  25. package/lib/types/responsive/normalizeTheme.d.ts.map +0 -1
  26. package/lib/types/responsive/optimizeTheme.d.ts +0 -7
  27. package/lib/types/responsive/optimizeTheme.d.ts.map +0 -1
  28. package/lib/types/responsive/sortBreakpoints.d.ts +0 -4
  29. package/lib/types/responsive/sortBreakpoints.d.ts.map +0 -1
  30. package/lib/types/responsive/transformTheme.d.ts +0 -7
  31. package/lib/types/responsive/transformTheme.d.ts.map +0 -1
  32. package/lib/types/styles/alignContent.d.ts +0 -34
  33. package/lib/types/styles/alignContent.d.ts.map +0 -1
  34. package/lib/types/styles/extendCss.d.ts +0 -5
  35. package/lib/types/styles/extendCss.d.ts.map +0 -1
  36. package/lib/types/styles/index.d.ts +0 -9
  37. package/lib/types/styles/index.d.ts.map +0 -1
  38. package/lib/types/styles/shorthands/borderRadius.d.ts +0 -15
  39. package/lib/types/styles/shorthands/borderRadius.d.ts.map +0 -1
  40. package/lib/types/styles/shorthands/edge.d.ts +0 -14
  41. package/lib/types/styles/shorthands/edge.d.ts.map +0 -1
  42. package/lib/types/styles/shorthands/index.d.ts +0 -7
  43. package/lib/types/styles/shorthands/index.d.ts.map +0 -1
  44. package/lib/types/styles/styles/index.d.ts +0 -11
  45. package/lib/types/styles/styles/index.d.ts.map +0 -1
  46. package/lib/types/styles/styles/types.d.ts +0 -247
  47. package/lib/types/styles/styles/types.d.ts.map +0 -1
  48. package/lib/types/styles/styles/utils.d.ts +0 -12
  49. package/lib/types/styles/styles/utils.d.ts.map +0 -1
  50. package/lib/types/types.d.ts +0 -10
  51. package/lib/types/types.d.ts.map +0 -1
  52. package/lib/types/units/index.d.ts +0 -9
  53. package/lib/types/units/index.d.ts.map +0 -1
  54. package/lib/types/units/stripUnit.d.ts +0 -6
  55. package/lib/types/units/stripUnit.d.ts.map +0 -1
  56. package/lib/types/units/value.d.ts +0 -5
  57. package/lib/types/units/value.d.ts.map +0 -1
  58. package/lib/types/units/values.d.ts +0 -5
  59. package/lib/types/units/values.d.ts.map +0 -1
package/lib/index.d.ts CHANGED
@@ -1,430 +1,567 @@
1
- import { config } from '@vitus-labs/core';
2
- import { context } from '@vitus-labs/core';
3
- import type { CSSProperties } from 'react';
4
- import type { FC } from 'react';
5
- import type { ReactNode } from 'react';
6
-
7
- export declare const ALIGN_CONTENT_DIRECTION: {
8
- inline: string;
9
- reverseInline: string;
10
- rows: string;
11
- reverseRows: string;
12
- };
13
-
14
- export declare const ALIGN_CONTENT_MAP_X: {
15
- readonly center: string;
16
- readonly spaceBetween: string;
17
- readonly spaceAround: string;
18
- readonly block: string;
19
- readonly left: "flex-start";
20
- readonly right: "flex-end";
21
- };
22
-
23
- export declare const ALIGN_CONTENT_MAP_Y: {
24
- readonly center: string;
25
- readonly spaceBetween: string;
26
- readonly spaceAround: string;
27
- readonly block: string;
28
- readonly top: "flex-start";
29
- readonly bottom: "flex-end";
30
- };
31
-
32
- export declare type AlignContent = ({ direction, alignX, alignY, }: {
33
- direction: AlignContentDirectionKeys;
34
- alignX: AlignContentAlignXKeys;
35
- alignY: AlignContentAlignYKeys;
36
- }) => ReturnType<typeof config.css> | null;
37
-
38
- export declare const alignContent: AlignContent;
39
-
40
- export declare type AlignContentAlignXKeys = keyof typeof ALIGN_CONTENT_MAP_X;
41
-
42
- export declare type AlignContentAlignYKeys = keyof typeof ALIGN_CONTENT_MAP_Y;
43
-
44
- export declare type AlignContentDirectionKeys = keyof typeof ALIGN_CONTENT_DIRECTION;
45
-
46
- declare type BorderColor = Color | Defaults;
47
-
48
- declare type BorderImageRepeat = 'stretch' | 'repeat' | 'round' | 'space' | Defaults;
49
-
50
- declare type BorderStyle = 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | Defaults;
51
-
52
- export declare type Breakpoints = typeof breakpoints;
53
-
54
- export declare const breakpoints: {
55
- readonly rootSize: 16;
56
- readonly breakpoints: {
57
- readonly xs: 0;
58
- readonly sm: 576;
59
- readonly md: 768;
60
- readonly lg: 992;
61
- readonly xl: 1200;
62
- readonly xxl: 1440;
63
- };
64
- };
65
-
66
- export declare type BrowserColors = 'black' | 'silver' | 'gray' | 'white' | 'maroon' | 'red' | 'purple' | 'fuchsia' | 'green' | 'lime' | 'olive' | 'yellow' | 'navy' | 'blue' | 'teal' | 'aqua' | 'orange' | 'aliceblue' | 'antiquewhite' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'blanchedalmond' | 'blueviolet' | 'brown' | 'burlywood' | 'cadetblue' | 'chartreuse' | 'chocolate' | 'coral' | 'cornflowerblue' | 'cornsilk' | 'crimson' | 'cyan' | 'darkblue' | 'darkcyan' | 'darkgoldenrod' | 'darkgray' | 'darkgreen' | 'darkgrey' | 'darkkhaki' | 'darkmagenta' | 'darkolivegreen' | 'darkorange' | 'darkorchid' | 'darkred' | 'darksalmon' | 'darkseagreen' | 'darkslateblue' | 'darkslategray' | 'darkslategrey' | 'darkturquoise' | 'darkviolet' | 'deeppink' | 'deepskyblue' | 'dimgray' | 'dimgrey' | 'dodgerblue' | 'firebrick' | 'floralwhite' | 'forestgreen' | 'gainsboro' | 'ghostwhite' | 'gold' | 'goldenrod' | 'greenyellow' | 'grey' | 'honeydew' | 'hotpink' | 'indianred' | 'indigo' | 'ivory' | 'khaki' | 'lavender' | 'lavenderblush' | 'lawngreen' | 'lemonchiffon' | 'lightblue' | 'lightcoral' | 'lightcyan' | 'lightgoldenrodyellow' | 'lightgray' | 'lightgreen' | 'lightgrey' | 'lightpink' | 'lightsalmon' | 'lightseagreen' | 'lightskyblue' | 'lightslategray' | 'lightslategrey' | 'lightsteelblue' | 'lightyellow' | 'limegreen' | 'linen' | 'magenta' | 'mediumaquamarine' | 'mediumblue' | 'mediumorchid' | 'mediumpurple' | 'mediumseagreen' | 'mediumslateblue' | 'mediumspringgreen' | 'mediumturquoise' | 'mediumvioletred' | 'midnightblue' | 'mintcream' | 'mistyrose' | 'moccasin' | 'navajowhite' | 'oldlace' | 'olivedrab' | 'orangered' | 'orchid' | 'palegoldenrod' | 'palegreen' | 'paleturquoise' | 'palevioletred' | 'papayawhip' | 'peachpuff' | 'peru' | 'pink' | 'plum' | 'powderblue' | 'rosybrown' | 'royalblue' | 'saddlebrown' | 'salmon' | 'sandybrown' | 'seagreen' | 'seashell' | 'sienna' | 'skyblue' | 'slateblue' | 'slategray' | 'slategrey' | 'snow' | 'springgreen' | 'steelblue' | 'tan' | 'thistle' | 'tomato' | 'turquoise' | 'violet' | 'wheat' | 'whitesmoke' | 'yellowgreen' | 'rebeccapurple';
67
-
68
- export declare type Color = `#${string | number}` | 'currentColor' | 'transparent' | `rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})` | `rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number},${number},${number},${number})` | `hsl(${number}, ${number}%, ${number}%)` | `hsl(${number},${number}%,${number}%)` | `hsla(${number}, ${number}%, ${number}%, ${number})` | `hsla(${number},${number}%,${number}%,${number})` | BrowserColors | Defaults;
69
-
70
- export { context }
71
-
72
- export declare type CreateMediaQueries = <B extends {}, R extends number, C extends (...args: any) => any>(props: {
73
- breakpoints: B;
74
- rootSize: R;
75
- css: C;
76
- }) => Record<keyof B, ReturnType<C>>;
77
-
78
- export declare const createMediaQueries: CreateMediaQueries;
79
-
80
- declare type Css = typeof config.css;
81
-
82
- declare type CssUnits = 'px' | 'rem' | '%' | 'em' | 'ex' | 'cm' | 'mm' | 'in' | 'pt' | 'pc' | 'ch' | 'vh' | 'vw' | 'vmin' | 'vmax';
83
-
84
- declare type Cursor = 'alias' | 'all-scroll' | 'auto' | 'cell' | 'context-menu' | 'col-resize' | 'copy' | 'crosshair' | 'default' | 'e-resize' | 'ew-resize' | 'grab' | 'grabbing' | 'help' | 'move' | 'n-resize' | 'ne-resize' | 'nesw-resize' | 'ns-resize' | 'nw-resize' | 'nwse-resize' | 'no-drop' | 'none' | 'not-allowed' | 'pointer' | 'progress' | 'row-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'text' | 'URL' | 'vertical-text' | 'w-resize' | 'wait' | 'zoom-in' | 'zoom-out' | Defaults;
85
-
86
- declare type CustomTheme = Record<string, Record<string, unknown> | number | string | boolean>;
87
-
88
- export declare type Defaults = 'initial' | 'inherit';
89
-
90
- export declare type ExtendCss = (styles: ((css: typeof config.css) => ReturnType<typeof css>) | string | null | undefined) => string | ReturnType<typeof config.css>;
91
-
92
- export declare const extendCss: ExtendCss;
93
-
94
- declare type FontSize = 'medium' | 'xx-small' | 'x-small' | 'small' | 'large' | 'x-large' | 'xx-large' | 'smaller' | 'larger' | 'initial' | 'inherit' | PropertyValue;
95
-
96
- declare type Func<T> = (...args: any) => T;
97
-
98
- declare type GridProperty = 'auto' | number | `span ${number}`;
99
-
100
- declare type InnerTheme = {
101
- [I in keyof ITheme]: ITheme[I] | null | undefined;
102
- };
103
-
104
- declare type ITheme = {
105
- /**
106
- * The [inset](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)
107
- * CSS property is a shorthand that corresponds to the top,
108
- * right, bottom, and/or left properties. It has the same multi-value
109
- * syntax of the margin shorthand.
110
- */
111
- inset: PropertyValue;
112
- /**
113
- * Custom Shorthand to set marginx on axes X
114
- * The [inset](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)
115
- * CSS property is a shorthand that corresponds to the top,
116
- * right, bottom, and/or left properties. It has the same multi-value
117
- * syntax of the margin shorthand.
118
- */
119
- insetX: PropertyValue;
120
- /**
121
- * Custom Shorthand to set marginx on axes Y
122
- * The [inset](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)
123
- * CSS property is a shorthand that corresponds to the top,
124
- * right, bottom, and/or left properties. It has the same multi-value
125
- * syntax of the margin shorthand.
126
- */
127
- insetY: PropertyValue;
128
- /**
129
- * The [top](https://developer.mozilla.org/en-US/docs/Web/CSS/top)
130
- * CSS property participates in specifying the vertical position
131
- * of a positioned element. It has no effect on non-positioned elements.
132
- */
133
- top: PropertyValue;
134
- bottom: PropertyValue;
135
- left: PropertyValue;
136
- right: PropertyValue;
137
- positionX: PropertyValue;
138
- positionY: PropertyValue;
139
- width: PropertyValue | Size;
140
- height: PropertyValue | Size;
141
- size: PropertyValue | Size;
142
- minWidth: PropertyValue | Size;
143
- minHeight: PropertyValue | Size;
144
- minSize: PropertyValue | Size;
145
- maxWidth: PropertyValue | Size;
146
- maxHeight: PropertyValue | Size;
147
- maxSize: PropertyValue | Size;
148
- margin: PropertyValue;
149
- marginTop: PropertyValue;
150
- marginBottom: PropertyValue;
151
- marginLeft: PropertyValue;
152
- marginRight: PropertyValue;
153
- marginX: PropertyValue;
154
- marginY: PropertyValue;
155
- padding: PropertyValue;
156
- paddingTop: PropertyValue;
157
- paddingBottom: PropertyValue;
158
- paddingLeft: PropertyValue;
159
- paddingRight: PropertyValue;
160
- paddingX: PropertyValue;
161
- paddingY: PropertyValue;
162
- gap: PropertyValue;
163
- alignContent: CSSProperties['alignContent'];
164
- alignItems: CSSProperties['alignItems'];
165
- alignSelf: CSSProperties['alignSelf'];
166
- all: CSSProperties['all'];
167
- animation: CSSProperties['animation'];
168
- backfaceVisibility: CSSProperties['backfaceVisibility'];
169
- background: string;
170
- backgroundAttachment: CSSProperties['backgroundAttachment'];
171
- backgroundClip: CSSProperties['backgroundClip'];
172
- backgroundColor: Color;
173
- backgroundImage: string | 'none' | Defaults;
174
- backgroundOrigin: CSSProperties['backgroundOrigin'];
175
- backgroundPosition: CSSProperties['backgroundPosition'];
176
- backgroundRepeat: CSSProperties['backgroundRepeat'];
177
- backgroundSize: 'auto' | PropertyValue | 'cover' | 'contain' | Defaults;
178
- border: string;
179
- borderTop: string;
180
- borderBottom: string;
181
- borderLeft: string;
182
- borderRight: string;
183
- borderWidth: PropertyValue;
184
- borderWidthX: PropertyValue;
185
- borderWidthY: PropertyValue;
186
- borderWidthTop: PropertyValue;
187
- borderWidthBottom: PropertyValue;
188
- borderWidthLeft: PropertyValue;
189
- borderWidthRight: PropertyValue;
190
- borderStyle: BorderStyle;
191
- borderStyleX: BorderStyle;
192
- borderStyleY: BorderStyle;
193
- borderStyleTop: BorderStyle;
194
- borderStyleBottom: BorderStyle;
195
- borderStyleLeft: BorderStyle;
196
- borderStyleRight: BorderStyle;
197
- borderColor: BorderColor;
198
- borderColorX: BorderColor;
199
- borderColorY: BorderColor;
200
- borderColorTop: BorderColor;
201
- borderColorBottom: BorderColor;
202
- borderColorLeft: BorderColor;
203
- borderColorRight: BorderColor;
204
- borderCollapse: 'separate' | 'collapse' | Defaults;
205
- borderImage: string;
206
- borderImageOutset: string;
207
- borderImageRepeat: `${BorderImageRepeat}` | `${BorderImageRepeat} ${BorderImageRepeat}`;
208
- borderImageSlice: PropertyValue;
209
- borderImageSource: string;
210
- borderImageWidth: string;
211
- borderSpacing: string;
212
- borderRadius: PropertyValue;
213
- borderRadiusTopLeft: PropertyValue;
214
- borderRadiusLeft: PropertyValue;
215
- borderRadiusTop: PropertyValue;
216
- borderRadiusTopRight: PropertyValue;
217
- borderRadiusRight: PropertyValue;
218
- borderRadiusBottomLeft: PropertyValue;
219
- borderRadiusBottom: PropertyValue;
220
- borderRadiusBottomRight: PropertyValue;
221
- boxShadow: CSSProperties['boxShadow'];
222
- boxSizing: CSSProperties['boxSizing'];
223
- captionSide: CSSProperties['captionSide'];
224
- clear: CSSProperties['clear'];
225
- clip: CSSProperties['clip'];
226
- clipPath: CSSProperties['clipPath'];
227
- color: Color;
228
- content: CSSProperties['content'];
229
- contentVisibility: CSSProperties['contentVisibility'];
230
- counterIncrement: CSSProperties['counterIncrement'];
231
- counterReset: CSSProperties['counterReset'];
232
- cursor: Cursor;
233
- direction: CSSProperties['direction'];
234
- display: CSSProperties['display'];
235
- emptyCells: CSSProperties['emptyCells'];
236
- filter: CSSProperties['filter'];
237
- flex: CSSProperties['flex'];
238
- flexBasis: CSSProperties['flexBasis'];
239
- flexDirection: CSSProperties['flexDirection'];
240
- flexFlow: CSSProperties['flexFlow'];
241
- flexGrow: CSSProperties['flexGrow'];
242
- flexShrink: CSSProperties['flexShrink'];
243
- flexWrap: CSSProperties['flexWrap'];
244
- float: CSSProperties['float'];
245
- font: CSSProperties['font'];
246
- fontFamily: CSSProperties['fontFamily'];
247
- fontSize: FontSize;
248
- fontSizeAdjust: CSSProperties['fontSizeAdjust'];
249
- fontStretch: CSSProperties['fontStretch'];
250
- fontStyle: CSSProperties['fontStyle'];
251
- fontVariant: CSSProperties['fontVariant'];
252
- fontWeight: 'normal' | 'bold' | 'bolder' | 'lighter' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | Defaults;
253
- gridArea: CSSProperties['gridArea'];
254
- gridAutoColumns: CSSProperties['gridAutoColumns'];
255
- gridAutoFlow: CSSProperties['gridAutoFlow'];
256
- gridAutoRows: CSSProperties['gridAutoRows'];
257
- gridColumn: number | `${'auto' | string | number} / ${GridProperty}`;
258
- gridColumnEnd: GridProperty;
259
- gridColumnGap: PropertyValue;
260
- gridColumnStart: GridProperty;
261
- gridGap: PropertyValue;
262
- gridRow: number | `${'auto' | string | number} / ${GridProperty}`;
263
- gridRowStart: GridProperty;
264
- gridRowEnd: GridProperty;
265
- gridRowGap: PropertyValue;
266
- gridTemplate: CSSProperties['gridTemplate'];
267
- gridTemplateAreas: CSSProperties['gridTemplateAreas'];
268
- gridTemplateColumns: CSSProperties['gridTemplateColumns'];
269
- gridTemplateRows: CSSProperties['gridTemplateRows'];
270
- justifyContent: CSSProperties['justifyContent'];
271
- justifyItems: CSSProperties['justifyItems'];
272
- keyframe: any;
273
- letterSpacing: CSSProperties['letterSpacing'];
274
- lineHeight: CSSProperties['lineHeight'];
275
- listStyle: CSSProperties['listStyle'];
276
- listStyleImage: CSSProperties['listStyleImage'];
277
- listStylePosition: CSSProperties['listStylePosition'];
278
- listStyleType: ListStyleType;
279
- objectFit: CSSProperties['objectFit'];
280
- objectPosition: CSSProperties['objectPosition'];
281
- opacity: CSSProperties['opacity'];
282
- order: CSSProperties['order'];
283
- outline: CSSProperties['outline'];
284
- outlineColor: CSSProperties['outlineColor'];
285
- outlineOffset: CSSProperties['outlineOffset'];
286
- outlineStyle: CSSProperties['outlineStyle'];
287
- outlineWidth: CSSProperties['outlineWidth'];
288
- overflow: CSSProperties['overflow'];
289
- overflowWrap: CSSProperties['overflowWrap'];
290
- overflowX: CSSProperties['overflowX'];
291
- overflowY: CSSProperties['overflowY'];
292
- perspective: CSSProperties['perspective'];
293
- perspectiveOrigin: CSSProperties['perspectiveOrigin'];
294
- pointerEvents: CSSProperties['pointerEvents'];
295
- position: CSSProperties['position'];
296
- quotes: CSSProperties['quotes'];
297
- resize: CSSProperties['resize'];
298
- tabSize: CSSProperties['tabSize'];
299
- tableLayout: CSSProperties['tableLayout'];
300
- textAlign: CSSProperties['textAlign'];
301
- textAlignLast: CSSProperties['textAlignLast'];
302
- textDecoration: CSSProperties['textDecoration'];
303
- textDecorationColor: CSSProperties['textDecorationColor'];
304
- textDecorationLine: CSSProperties['textDecorationLine'];
305
- textDecorationStyle: CSSProperties['textDecorationStyle'];
306
- textIndent: CSSProperties['textIndent'];
307
- textJustify: CSSProperties['textJustify'];
308
- textOverflow: CSSProperties['textOverflow'];
309
- textShadow: CSSProperties['textShadow'];
310
- textTransform: CSSProperties['textTransform'];
311
- transform: CSSProperties['transform'];
312
- transformOrigin: CSSProperties['transformOrigin'];
313
- transformStyle: CSSProperties['transformStyle'];
314
- transition: CSSProperties['transition'];
315
- transitionDelay: CSSProperties['transitionDelay'];
316
- transitionDuration: CSSProperties['transitionDuration'];
317
- transitionProperty: CSSProperties['transitionProperty'];
318
- transitionTimingFunction: CSSProperties['transitionTimingFunction'] | `cubic-bezier(${number},${number},${number},${number})` | `cubic-bezier(${number}, ${number}, ${number}, ${number})`;
319
- userSelect: CSSProperties['userSelect'];
320
- verticalAlign: CSSProperties['verticalAlign'];
321
- visibility: CSSProperties['visibility'];
322
- whiteSpace: CSSProperties['whiteSpace'];
323
- wordBreak: CSSProperties['wordBreak'];
324
- wordWrap: CSSProperties['wordWrap'];
325
- writingMode: CSSProperties['writingMode'];
326
- zIndex: CSSProperties['zIndex'];
327
- hideEmpty: boolean;
328
- clearFix: boolean;
329
- fullScreen: boolean;
330
- extendCss: ReturnType<typeof config.css> | string;
331
- };
332
-
333
- declare type ListStyleType = 'disc' | 'armenian' | 'circle' | 'cjk-ideographic' | 'decimal' | 'decimal-leading-zero' | 'georgian' | 'hebrew' | 'hiragana' | 'hiragana-iroha' | 'katakana' | 'katakana-iroha' | 'lower-alpha' | 'lower-greek' | 'lower-latin' | 'lower-roman' | 'none' | 'square' | 'upper-alpha' | 'upper-greek' | 'upper-latin' | 'upper-roman' | Defaults;
334
-
335
- export declare type MakeItResponsive = ({ theme, key, css, styles, normalize, }: {
336
- theme?: CustomTheme;
337
- key?: string;
338
- css: any;
339
- styles: MakeItResponsiveStyles;
340
- normalize?: boolean;
341
- }) => ({ theme }: {
342
- theme?: Theme_2;
343
- }) => any;
344
-
345
- export declare const makeItResponsive: MakeItResponsive;
346
-
347
- export declare type MakeItResponsiveStyles<T extends Partial<Record<string, any>> = any> = ({ theme, css, rootSize, globalTheme, }: {
348
- theme: T;
349
- css: Css;
350
- rootSize?: number;
351
- globalTheme?: Record<string, any>;
352
- }) => ReturnType<typeof css> | string | any;
353
-
354
- export declare type NormalizeTheme = ({ theme, breakpoints, }: {
355
- theme: Record<string, unknown>;
356
- breakpoints: string[];
357
- }) => Record<string, unknown>;
358
-
359
- export declare const normalizeTheme: NormalizeTheme;
360
-
361
- export declare type PropertyValue = UnitValue | 'auto' | Defaults | `calc(${string | number})`;
362
-
363
- export declare const Provider: FC<TProvider>;
364
-
365
- declare type Size = 'max-content' | 'min-content' | 'fit-content';
366
-
367
- export declare type SortBreakpoints = <T extends Record<string, number>>(breakpoints: T) => (keyof T)[];
368
-
369
- export declare const sortBreakpoints: SortBreakpoints;
370
-
371
- export declare type StripUnit = <V extends string | number, UR extends boolean = false>(value: V, unitReturn?: UR) => UR extends true ? [Value_2<V>, Unit<V>] : Value_2<V>;
372
-
373
- export declare const stripUnit: StripUnit;
374
-
375
- export declare type Styles = ({ theme, css, rootSize, }: {
376
- theme: InnerTheme;
377
- css: Css;
378
- rootSize?: number;
379
- }) => ReturnType<typeof css>;
380
-
381
- export declare const styles: Styles;
382
-
383
- export declare type StylesTheme = {
384
- [I in keyof ITheme]: ITheme[I] | Func<ITheme[I]> | null | undefined;
385
- };
386
-
387
- declare type Theme = {
388
- rootSize: number;
389
- breakpoints?: Record<string, number>;
390
- __VITUS_LABS__?: never;
391
- } & Partial<Record<string, unknown>>;
392
-
393
- declare type Theme_2 = Partial<{
394
- rootSize: number;
395
- breakpoints: Record<string, number>;
396
- __VITUS_LABS__: Partial<{
397
- media: ReturnType<typeof createMediaQueries>;
398
- sortedBreakpoints: ReturnType<typeof sortBreakpoints>;
399
- }>;
400
- }> & CustomTheme;
401
-
402
- export declare type TProvider = {
403
- theme: Theme;
404
- children: ReactNode;
405
- } & Partial<Record<string, unknown>>;
406
-
407
- export declare type TransformTheme = ({ theme, breakpoints, }: {
408
- theme: Record<string, unknown>;
409
- breakpoints: string[];
410
- }) => any;
411
-
412
- export declare const transformTheme: TransformTheme;
413
-
414
- declare type Unit<V> = V extends string ? string : undefined;
415
-
416
- declare type Units = 'px' | 'rem' | 'em' | '%' | 'vh' | 'vw' | 'vmin' | 'vmax' | 'ex';
417
-
418
- export declare type UnitValue = number | `${number}${Units}`;
419
-
420
- export declare type Value = (param: string | number | null | undefined, rootSize?: number, outputUnit?: CssUnits) => string | number | null;
421
-
422
- export declare const value: Value;
423
-
424
- declare type Value_2<V> = V extends string ? number : V;
425
-
426
- export declare type Values = (values: unknown[], rootSize?: number, outputUnit?: Units) => string | number;
427
-
428
- export declare const values: Values;
429
-
430
- export { }
1
+ import { config, context } from "@vitus-labs/core";
2
+ import { CSSProperties, FC, ReactNode } from "react";
3
+
4
+ //#region src/context.d.ts
5
+ type Theme$2 = {
6
+ rootSize: number;
7
+ breakpoints?: Record<string, number>;
8
+ __VITUS_LABS__?: never;
9
+ } & Partial<Record<string, unknown>>;
10
+ type TProvider = {
11
+ theme: Theme$2;
12
+ children: ReactNode;
13
+ } & Partial<Record<string, unknown>>;
14
+ /**
15
+ * Unistyle Provider — wraps the core Provider and enriches the theme
16
+ * with pre-computed sorted breakpoints and media-query tagged-template
17
+ * helpers consumed by `makeItResponsive`.
18
+ */
19
+ declare const Provider: FC<TProvider>;
20
+ //#endregion
21
+ //#region src/responsive/breakpoints.d.ts
22
+ declare const breakpoints$1: {
23
+ readonly rootSize: 16;
24
+ readonly breakpoints: {
25
+ readonly xs: 0;
26
+ readonly sm: 576;
27
+ readonly md: 768;
28
+ readonly lg: 992;
29
+ readonly xl: 1200;
30
+ readonly xxl: 1440;
31
+ };
32
+ };
33
+ type Breakpoints = typeof breakpoints$1;
34
+ //#endregion
35
+ //#region src/responsive/createMediaQueries.d.ts
36
+ type CreateMediaQueries = <B extends Record<string, number>, R extends number, C extends (...args: any) => any>(props: {
37
+ breakpoints: B;
38
+ rootSize: R;
39
+ css: C;
40
+ }) => Record<keyof B, ReturnType<C>>;
41
+ /**
42
+ * Builds a map of breakpoint-name → tagged-template function.
43
+ * The smallest breakpoint (value 0) gets no media wrapper.
44
+ * Others are wrapped in `@media (min-width: <em>)` — em units
45
+ * ensure correct behaviour when users change browser font size.
46
+ */
47
+ declare const createMediaQueries: CreateMediaQueries;
48
+ //#endregion
49
+ //#region src/types.d.ts
50
+ type Css = typeof config.css;
51
+ type Defaults = 'initial' | 'inherit';
52
+ type Units = 'px' | 'rem' | 'em' | '%' | 'vh' | 'vw' | 'vmin' | 'vmax' | 'ex';
53
+ type UnitValue = number | `${number}${Units}`;
54
+ type PropertyValue = UnitValue | 'auto' | Defaults | `calc(${string | number})`;
55
+ type Size = 'max-content' | 'min-content' | 'fit-content';
56
+ type Color = `#${string | number}` | 'currentColor' | 'transparent' | `rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})` | `rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number},${number},${number},${number})` | `hsl(${number}, ${number}%, ${number}%)` | `hsl(${number},${number}%,${number}%)` | `hsla(${number}, ${number}%, ${number}%, ${number})` | `hsla(${number},${number}%,${number}%,${number})` | BrowserColors | Defaults;
57
+ type BrowserColors = 'black' | 'silver' | 'gray' | 'white' | 'maroon' | 'red' | 'purple' | 'fuchsia' | 'green' | 'lime' | 'olive' | 'yellow' | 'navy' | 'blue' | 'teal' | 'aqua' | 'orange' | 'aliceblue' | 'antiquewhite' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'blanchedalmond' | 'blueviolet' | 'brown' | 'burlywood' | 'cadetblue' | 'chartreuse' | 'chocolate' | 'coral' | 'cornflowerblue' | 'cornsilk' | 'crimson' | 'cyan' | 'darkblue' | 'darkcyan' | 'darkgoldenrod' | 'darkgray' | 'darkgreen' | 'darkgrey' | 'darkkhaki' | 'darkmagenta' | 'darkolivegreen' | 'darkorange' | 'darkorchid' | 'darkred' | 'darksalmon' | 'darkseagreen' | 'darkslateblue' | 'darkslategray' | 'darkslategrey' | 'darkturquoise' | 'darkviolet' | 'deeppink' | 'deepskyblue' | 'dimgray' | 'dimgrey' | 'dodgerblue' | 'firebrick' | 'floralwhite' | 'forestgreen' | 'gainsboro' | 'ghostwhite' | 'gold' | 'goldenrod' | 'greenyellow' | 'grey' | 'honeydew' | 'hotpink' | 'indianred' | 'indigo' | 'ivory' | 'khaki' | 'lavender' | 'lavenderblush' | 'lawngreen' | 'lemonchiffon' | 'lightblue' | 'lightcoral' | 'lightcyan' | 'lightgoldenrodyellow' | 'lightgray' | 'lightgreen' | 'lightgrey' | 'lightpink' | 'lightsalmon' | 'lightseagreen' | 'lightskyblue' | 'lightslategray' | 'lightslategrey' | 'lightsteelblue' | 'lightyellow' | 'limegreen' | 'linen' | 'magenta' | 'mediumaquamarine' | 'mediumblue' | 'mediumorchid' | 'mediumpurple' | 'mediumseagreen' | 'mediumslateblue' | 'mediumspringgreen' | 'mediumturquoise' | 'mediumvioletred' | 'midnightblue' | 'mintcream' | 'mistyrose' | 'moccasin' | 'navajowhite' | 'oldlace' | 'olivedrab' | 'orangered' | 'orchid' | 'palegoldenrod' | 'palegreen' | 'paleturquoise' | 'palevioletred' | 'papayawhip' | 'peachpuff' | 'peru' | 'pink' | 'plum' | 'powderblue' | 'rosybrown' | 'royalblue' | 'saddlebrown' | 'salmon' | 'sandybrown' | 'seagreen' | 'seashell' | 'sienna' | 'skyblue' | 'slateblue' | 'slategray' | 'slategrey' | 'snow' | 'springgreen' | 'steelblue' | 'tan' | 'thistle' | 'tomato' | 'turquoise' | 'violet' | 'wheat' | 'whitesmoke' | 'yellowgreen' | 'rebeccapurple';
58
+ //# sourceMappingURL=types.d.ts.map
59
+ //#endregion
60
+ //#region src/responsive/sortBreakpoints.d.ts
61
+ type SortBreakpoints = <T extends Record<string, number>>(breakpoints: T) => (keyof T)[];
62
+ /** Sorts breakpoint keys by their pixel value (ascending, mobile-first). */
63
+ declare const sortBreakpoints: SortBreakpoints;
64
+ //#endregion
65
+ //#region src/responsive/makeItResponsive.d.ts
66
+ type CustomTheme = Record<string, Record<string, unknown> | number | string | boolean>;
67
+ type Theme$1 = Partial<{
68
+ rootSize: number;
69
+ breakpoints: Record<string, number>;
70
+ __VITUS_LABS__: Partial<{
71
+ media: ReturnType<typeof createMediaQueries>;
72
+ sortedBreakpoints: ReturnType<typeof sortBreakpoints>;
73
+ }>;
74
+ }> & CustomTheme;
75
+ type MakeItResponsiveStyles<T extends Partial<Record<string, any>> = any> = ({
76
+ theme,
77
+ css,
78
+ rootSize,
79
+ globalTheme
80
+ }: {
81
+ theme: T;
82
+ css: Css;
83
+ rootSize?: number;
84
+ globalTheme?: Record<string, any>;
85
+ }) => ReturnType<typeof css> | string | any;
86
+ type MakeItResponsive = ({
87
+ theme,
88
+ key,
89
+ css,
90
+ styles,
91
+ normalize
92
+ }: {
93
+ theme?: CustomTheme;
94
+ key?: string;
95
+ css: any;
96
+ styles: MakeItResponsiveStyles;
97
+ normalize?: boolean;
98
+ }) => (props: {
99
+ theme?: Theme$1;
100
+ [key: string]: any;
101
+ }) => any;
102
+ /**
103
+ * Core responsive engine used by every styled component in the system.
104
+ *
105
+ * Returns a styled-components interpolation function that:
106
+ * 1. Reads the component's theme prop (via `key` or direct `theme`)
107
+ * 2. Without breakpoints renders plain CSS
108
+ * 3. With breakpoints normalizes, transforms (property-per-breakpoint
109
+ * breakpoint-per-property), optimizes (deduplicates identical breakpoints),
110
+ * and wraps each breakpoint's styles in the appropriate `@media` query.
111
+ */
112
+ declare const makeItResponsive: MakeItResponsive;
113
+ //#endregion
114
+ //#region src/responsive/normalizeTheme.d.ts
115
+ type NormalizeTheme = ({
116
+ theme,
117
+ breakpoints
118
+ }: {
119
+ theme: Record<string, unknown>;
120
+ breakpoints: string[];
121
+ }) => Record<string, unknown>;
122
+ /**
123
+ * Expands each theme property into a full breakpoint map so every
124
+ * breakpoint has a value. Arrays fill by index (last value carries forward),
125
+ * objects inherit from the previous breakpoint, scalars repeat for all.
126
+ * Skipped entirely when no property is array/object (fast path).
127
+ */
128
+ declare const normalizeTheme: NormalizeTheme;
129
+ //#endregion
130
+ //#region src/responsive/transformTheme.d.ts
131
+ type TransformTheme = ({
132
+ theme,
133
+ breakpoints
134
+ }: {
135
+ theme: Record<string, unknown>;
136
+ breakpoints: string[];
137
+ }) => any;
138
+ /**
139
+ * Pivots the theme from property-centric to breakpoint-centric layout.
140
+ * Input: `{ fontSize: { xs: 12, md: 15 }, color: 'red' }`
141
+ * Output: `{ xs: { fontSize: 12, color: 'red' }, md: { fontSize: 15 } }`
142
+ * Supports three input shapes per property: scalar, array (positional), or object (keyed).
143
+ */
144
+ declare const transformTheme: TransformTheme;
145
+ //#endregion
146
+ //#region src/styles/alignContent.d.ts
147
+ type AlignContentDirectionKeys = keyof typeof ALIGN_CONTENT_DIRECTION;
148
+ type AlignContentAlignXKeys = keyof typeof ALIGN_CONTENT_MAP_X;
149
+ type AlignContentAlignYKeys = keyof typeof ALIGN_CONTENT_MAP_Y;
150
+ declare const ALIGN_CONTENT_MAP_X: {
151
+ readonly center: string;
152
+ readonly spaceBetween: string;
153
+ readonly spaceAround: string;
154
+ readonly block: string;
155
+ readonly left: "flex-start";
156
+ readonly right: "flex-end";
157
+ };
158
+ declare const ALIGN_CONTENT_MAP_Y: {
159
+ readonly center: string;
160
+ readonly spaceBetween: string;
161
+ readonly spaceAround: string;
162
+ readonly block: string;
163
+ readonly top: "flex-start";
164
+ readonly bottom: "flex-end";
165
+ };
166
+ declare const ALIGN_CONTENT_DIRECTION: {
167
+ inline: string;
168
+ reverseInline: string;
169
+ rows: string;
170
+ reverseRows: string;
171
+ };
172
+ type AlignContent = ({
173
+ direction,
174
+ alignX,
175
+ alignY
176
+ }: {
177
+ direction: AlignContentDirectionKeys;
178
+ alignX: AlignContentAlignXKeys;
179
+ alignY: AlignContentAlignYKeys;
180
+ }) => ReturnType<typeof config.css> | null;
181
+ /**
182
+ * Converts semantic direction/alignX/alignY values into `flex-direction`,
183
+ * `align-items`, and `justify-content`. For inline directions (row) the
184
+ * X/Y axes are swapped so that `alignX` always controls the horizontal axis.
185
+ */
186
+ declare const alignContent: AlignContent;
187
+ //#endregion
188
+ //#region src/styles/extendCss.d.ts
189
+ type ExtendCss = (styles: ((css: typeof config.css) => ReturnType<typeof css>) | string | null | undefined) => string | ReturnType<typeof config.css>;
190
+ /**
191
+ * Evaluates an `extendCss` value — either a callback receiving `css`
192
+ * or a raw CSS string. Returns empty string for null/undefined.
193
+ */
194
+ declare const extendCss: ExtendCss;
195
+ //#endregion
196
+ //#region src/styles/styles/types.d.ts
197
+ type Func<T> = (...args: any) => T;
198
+ type BorderColor = Color | Defaults;
199
+ type BorderImageRepeat = 'stretch' | 'repeat' | 'round' | 'space' | Defaults;
200
+ type GridProperty = 'auto' | number | `span ${number}`;
201
+ type BorderStyle = 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | Defaults;
202
+ type FontSize = 'medium' | 'xx-small' | 'x-small' | 'small' | 'large' | 'x-large' | 'xx-large' | 'smaller' | 'larger' | 'initial' | 'inherit' | PropertyValue;
203
+ type ListStyleType = 'disc' | 'armenian' | 'circle' | 'cjk-ideographic' | 'decimal' | 'decimal-leading-zero' | 'georgian' | 'hebrew' | 'hiragana' | 'hiragana-iroha' | 'katakana' | 'katakana-iroha' | 'lower-alpha' | 'lower-greek' | 'lower-latin' | 'lower-roman' | 'none' | 'square' | 'upper-alpha' | 'upper-greek' | 'upper-latin' | 'upper-roman' | Defaults;
204
+ type Cursor = 'alias' | 'all-scroll' | 'auto' | 'cell' | 'context-menu' | 'col-resize' | 'copy' | 'crosshair' | 'default' | 'e-resize' | 'ew-resize' | 'grab' | 'grabbing' | 'help' | 'move' | 'n-resize' | 'ne-resize' | 'nesw-resize' | 'ns-resize' | 'nw-resize' | 'nwse-resize' | 'no-drop' | 'none' | 'not-allowed' | 'pointer' | 'progress' | 'row-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'text' | 'URL' | 'vertical-text' | 'w-resize' | 'wait' | 'zoom-in' | 'zoom-out' | Defaults;
205
+ type ITheme = {
206
+ inset: PropertyValue;
207
+ insetX: PropertyValue;
208
+ insetY: PropertyValue;
209
+ top: PropertyValue;
210
+ bottom: PropertyValue;
211
+ left: PropertyValue;
212
+ right: PropertyValue;
213
+ width: PropertyValue | Size;
214
+ height: PropertyValue | Size;
215
+ size: PropertyValue | Size;
216
+ minWidth: PropertyValue | Size;
217
+ minHeight: PropertyValue | Size;
218
+ minSize: PropertyValue | Size;
219
+ maxWidth: PropertyValue | Size;
220
+ maxHeight: PropertyValue | Size;
221
+ maxSize: PropertyValue | Size;
222
+ aspectRatio: CSSProperties['aspectRatio'];
223
+ margin: PropertyValue;
224
+ marginTop: PropertyValue;
225
+ marginBottom: PropertyValue;
226
+ marginLeft: PropertyValue;
227
+ marginRight: PropertyValue;
228
+ marginX: PropertyValue;
229
+ marginY: PropertyValue;
230
+ padding: PropertyValue;
231
+ paddingTop: PropertyValue;
232
+ paddingBottom: PropertyValue;
233
+ paddingLeft: PropertyValue;
234
+ paddingRight: PropertyValue;
235
+ paddingX: PropertyValue;
236
+ paddingY: PropertyValue;
237
+ gap: PropertyValue;
238
+ alignContent: CSSProperties['alignContent'];
239
+ alignItems: CSSProperties['alignItems'];
240
+ alignSelf: CSSProperties['alignSelf'];
241
+ all: CSSProperties['all'];
242
+ display: CSSProperties['display'];
243
+ position: CSSProperties['position'];
244
+ boxSizing: CSSProperties['boxSizing'];
245
+ float: CSSProperties['float'];
246
+ contain: CSSProperties['contain'];
247
+ containerType: CSSProperties['containerType'];
248
+ containerName: CSSProperties['containerName'];
249
+ container: CSSProperties['container'];
250
+ flex: CSSProperties['flex'];
251
+ flexBasis: CSSProperties['flexBasis'];
252
+ flexDirection: CSSProperties['flexDirection'];
253
+ flexFlow: CSSProperties['flexFlow'];
254
+ flexGrow: CSSProperties['flexGrow'];
255
+ flexShrink: CSSProperties['flexShrink'];
256
+ flexWrap: CSSProperties['flexWrap'];
257
+ justifyContent: CSSProperties['justifyContent'];
258
+ justifyItems: CSSProperties['justifyItems'];
259
+ justifySelf: CSSProperties['justifySelf'];
260
+ placeItems: CSSProperties['placeItems'];
261
+ placeContent: CSSProperties['placeContent'];
262
+ placeSelf: CSSProperties['placeSelf'];
263
+ rowGap: PropertyValue;
264
+ columnGap: PropertyValue;
265
+ grid: CSSProperties['grid'];
266
+ gridArea: CSSProperties['gridArea'];
267
+ gridAutoColumns: CSSProperties['gridAutoColumns'];
268
+ gridAutoFlow: CSSProperties['gridAutoFlow'];
269
+ gridAutoRows: CSSProperties['gridAutoRows'];
270
+ gridColumn: number | `${'auto' | string | number} / ${GridProperty}`;
271
+ gridColumnEnd: GridProperty;
272
+ gridColumnGap: PropertyValue;
273
+ gridColumnStart: GridProperty;
274
+ gridGap: PropertyValue;
275
+ gridRow: number | `${'auto' | string | number} / ${GridProperty}`;
276
+ gridRowStart: GridProperty;
277
+ gridRowEnd: GridProperty;
278
+ gridRowGap: PropertyValue;
279
+ gridTemplate: CSSProperties['gridTemplate'];
280
+ gridTemplateAreas: CSSProperties['gridTemplateAreas'];
281
+ gridTemplateColumns: CSSProperties['gridTemplateColumns'];
282
+ gridTemplateRows: CSSProperties['gridTemplateRows'];
283
+ objectFit: CSSProperties['objectFit'];
284
+ objectPosition: CSSProperties['objectPosition'];
285
+ order: CSSProperties['order'];
286
+ opacity: CSSProperties['opacity'];
287
+ resize: CSSProperties['resize'];
288
+ verticalAlign: CSSProperties['verticalAlign'];
289
+ lineHeight: CSSProperties['lineHeight'];
290
+ font: CSSProperties['font'];
291
+ fontFamily: CSSProperties['fontFamily'];
292
+ fontSize: FontSize;
293
+ fontSizeAdjust: CSSProperties['fontSizeAdjust'];
294
+ fontStretch: CSSProperties['fontStretch'];
295
+ fontStyle: CSSProperties['fontStyle'];
296
+ fontVariant: CSSProperties['fontVariant'];
297
+ fontWeight: 'normal' | 'bold' | 'bolder' | 'lighter' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | Defaults;
298
+ fontKerning: CSSProperties['fontKerning'];
299
+ fontFeatureSettings: CSSProperties['fontFeatureSettings'];
300
+ fontVariationSettings: CSSProperties['fontVariationSettings'];
301
+ fontOpticalSizing: CSSProperties['fontOpticalSizing'];
302
+ textAlign: CSSProperties['textAlign'];
303
+ textAlignLast: CSSProperties['textAlignLast'];
304
+ textTransform: CSSProperties['textTransform'];
305
+ textDecoration: CSSProperties['textDecoration'];
306
+ textDecorationColor: CSSProperties['textDecorationColor'];
307
+ textDecorationLine: CSSProperties['textDecorationLine'];
308
+ textDecorationStyle: CSSProperties['textDecorationStyle'];
309
+ textDecorationThickness: CSSProperties['textDecorationThickness'];
310
+ textUnderlineOffset: CSSProperties['textUnderlineOffset'];
311
+ textEmphasis: CSSProperties['textEmphasis'];
312
+ textEmphasisColor: CSSProperties['textEmphasisColor'];
313
+ textEmphasisStyle: CSSProperties['textEmphasisStyle'];
314
+ letterSpacing: CSSProperties['letterSpacing'];
315
+ wordSpacing: CSSProperties['wordSpacing'];
316
+ textIndent: CSSProperties['textIndent'];
317
+ textJustify: CSSProperties['textJustify'];
318
+ textOverflow: CSSProperties['textOverflow'];
319
+ textShadow: CSSProperties['textShadow'];
320
+ textWrap: CSSProperties['textWrap'];
321
+ textRendering: CSSProperties['textRendering'];
322
+ whiteSpace: CSSProperties['whiteSpace'];
323
+ wordBreak: CSSProperties['wordBreak'];
324
+ wordWrap: CSSProperties['wordWrap'];
325
+ writingMode: CSSProperties['writingMode'];
326
+ direction: CSSProperties['direction'];
327
+ hyphens: CSSProperties['hyphens'];
328
+ listStyle: CSSProperties['listStyle'];
329
+ listStyleImage: CSSProperties['listStyleImage'];
330
+ listStylePosition: CSSProperties['listStylePosition'];
331
+ listStyleType: ListStyleType;
332
+ color: Color;
333
+ background: string;
334
+ backgroundColor: Color;
335
+ backgroundImage: string | 'none' | Defaults;
336
+ backgroundAttachment: CSSProperties['backgroundAttachment'];
337
+ backgroundClip: CSSProperties['backgroundClip'];
338
+ backgroundOrigin: CSSProperties['backgroundOrigin'];
339
+ backgroundPosition: CSSProperties['backgroundPosition'];
340
+ backgroundRepeat: CSSProperties['backgroundRepeat'];
341
+ backgroundSize: 'auto' | PropertyValue | 'cover' | 'contain' | Defaults;
342
+ border: string;
343
+ borderTop: string;
344
+ borderBottom: string;
345
+ borderLeft: string;
346
+ borderRight: string;
347
+ borderWidth: PropertyValue;
348
+ borderWidthX: PropertyValue;
349
+ borderWidthY: PropertyValue;
350
+ borderWidthTop: PropertyValue;
351
+ borderWidthBottom: PropertyValue;
352
+ borderWidthLeft: PropertyValue;
353
+ borderWidthRight: PropertyValue;
354
+ borderStyle: BorderStyle;
355
+ borderStyleX: BorderStyle;
356
+ borderStyleY: BorderStyle;
357
+ borderStyleTop: BorderStyle;
358
+ borderStyleBottom: BorderStyle;
359
+ borderStyleLeft: BorderStyle;
360
+ borderStyleRight: BorderStyle;
361
+ borderColor: BorderColor;
362
+ borderColorX: BorderColor;
363
+ borderColorY: BorderColor;
364
+ borderColorTop: BorderColor;
365
+ borderColorBottom: BorderColor;
366
+ borderColorLeft: BorderColor;
367
+ borderColorRight: BorderColor;
368
+ borderCollapse: 'separate' | 'collapse' | Defaults;
369
+ borderImage: string;
370
+ borderImageOutset: string;
371
+ borderImageRepeat: `${BorderImageRepeat}` | `${BorderImageRepeat} ${BorderImageRepeat}`;
372
+ borderImageSlice: PropertyValue;
373
+ borderImageSource: string;
374
+ borderImageWidth: string;
375
+ borderSpacing: string;
376
+ borderRadius: PropertyValue;
377
+ borderRadiusTopLeft: PropertyValue;
378
+ borderRadiusLeft: PropertyValue;
379
+ borderRadiusTop: PropertyValue;
380
+ borderRadiusTopRight: PropertyValue;
381
+ borderRadiusRight: PropertyValue;
382
+ borderRadiusBottomLeft: PropertyValue;
383
+ borderRadiusBottom: PropertyValue;
384
+ borderRadiusBottomRight: PropertyValue;
385
+ backfaceVisibility: CSSProperties['backfaceVisibility'];
386
+ boxShadow: CSSProperties['boxShadow'];
387
+ filter: CSSProperties['filter'];
388
+ backdropFilter: CSSProperties['backdropFilter'];
389
+ mixBlendMode: CSSProperties['mixBlendMode'];
390
+ backgroundBlendMode: CSSProperties['backgroundBlendMode'];
391
+ isolation: CSSProperties['isolation'];
392
+ outline: CSSProperties['outline'];
393
+ outlineColor: CSSProperties['outlineColor'];
394
+ outlineOffset: CSSProperties['outlineOffset'];
395
+ outlineStyle: CSSProperties['outlineStyle'];
396
+ outlineWidth: CSSProperties['outlineWidth'];
397
+ animation: CSSProperties['animation'];
398
+ keyframe: any;
399
+ animationName: CSSProperties['animationName'];
400
+ animationDuration: CSSProperties['animationDuration'];
401
+ animationTimingFunction: CSSProperties['animationTimingFunction'];
402
+ animationDelay: CSSProperties['animationDelay'];
403
+ animationIterationCount: CSSProperties['animationIterationCount'];
404
+ animationDirection: CSSProperties['animationDirection'];
405
+ animationFillMode: CSSProperties['animationFillMode'];
406
+ animationPlayState: CSSProperties['animationPlayState'];
407
+ transition: CSSProperties['transition'];
408
+ transitionDelay: CSSProperties['transitionDelay'];
409
+ transitionDuration: CSSProperties['transitionDuration'];
410
+ transitionProperty: CSSProperties['transitionProperty'];
411
+ transitionTimingFunction: CSSProperties['transitionTimingFunction'] | `cubic-bezier(${number},${number},${number},${number})` | `cubic-bezier(${number}, ${number}, ${number}, ${number})`;
412
+ transform: CSSProperties['transform'];
413
+ transformOrigin: CSSProperties['transformOrigin'];
414
+ transformStyle: CSSProperties['transformStyle'];
415
+ translate: CSSProperties['translate'];
416
+ rotate: CSSProperties['rotate'];
417
+ scale: CSSProperties['scale'];
418
+ willChange: CSSProperties['willChange'];
419
+ scrollBehavior: CSSProperties['scrollBehavior'];
420
+ scrollSnapType: CSSProperties['scrollSnapType'];
421
+ scrollSnapAlign: CSSProperties['scrollSnapAlign'];
422
+ scrollSnapStop: CSSProperties['scrollSnapStop'];
423
+ scrollMargin: CSSProperties['scrollMargin'];
424
+ scrollPadding: CSSProperties['scrollPadding'];
425
+ overscrollBehavior: CSSProperties['overscrollBehavior'];
426
+ overscrollBehaviorX: CSSProperties['overscrollBehaviorX'];
427
+ overscrollBehaviorY: CSSProperties['overscrollBehaviorY'];
428
+ cursor: Cursor;
429
+ pointerEvents: CSSProperties['pointerEvents'];
430
+ userSelect: CSSProperties['userSelect'];
431
+ touchAction: CSSProperties['touchAction'];
432
+ scrollbarWidth: CSSProperties['scrollbarWidth'];
433
+ scrollbarColor: CSSProperties['scrollbarColor'];
434
+ scrollbarGutter: CSSProperties['scrollbarGutter'];
435
+ caretColor: CSSProperties['caretColor'];
436
+ accentColor: CSSProperties['accentColor'];
437
+ colorScheme: CSSProperties['colorScheme'];
438
+ inlineSize: PropertyValue | Size;
439
+ blockSize: PropertyValue | Size;
440
+ minInlineSize: PropertyValue | Size;
441
+ minBlockSize: PropertyValue | Size;
442
+ maxInlineSize: PropertyValue | Size;
443
+ maxBlockSize: PropertyValue | Size;
444
+ marginInline: PropertyValue;
445
+ marginInlineStart: PropertyValue;
446
+ marginInlineEnd: PropertyValue;
447
+ marginBlock: PropertyValue;
448
+ marginBlockStart: PropertyValue;
449
+ marginBlockEnd: PropertyValue;
450
+ paddingInline: PropertyValue;
451
+ paddingInlineStart: PropertyValue;
452
+ paddingInlineEnd: PropertyValue;
453
+ paddingBlock: PropertyValue;
454
+ paddingBlockStart: PropertyValue;
455
+ paddingBlockEnd: PropertyValue;
456
+ borderInline: string;
457
+ borderBlock: string;
458
+ borderInlineStart: string;
459
+ borderInlineEnd: string;
460
+ borderBlockStart: string;
461
+ borderBlockEnd: string;
462
+ insetInline: PropertyValue;
463
+ insetInlineStart: PropertyValue;
464
+ insetInlineEnd: PropertyValue;
465
+ insetBlock: PropertyValue;
466
+ insetBlockStart: PropertyValue;
467
+ insetBlockEnd: PropertyValue;
468
+ captionSide: CSSProperties['captionSide'];
469
+ clear: CSSProperties['clear'];
470
+ clip: CSSProperties['clip'];
471
+ clipPath: CSSProperties['clipPath'];
472
+ content: CSSProperties['content'];
473
+ contentVisibility: CSSProperties['contentVisibility'];
474
+ counterIncrement: CSSProperties['counterIncrement'];
475
+ counterReset: CSSProperties['counterReset'];
476
+ emptyCells: CSSProperties['emptyCells'];
477
+ zIndex: CSSProperties['zIndex'];
478
+ overflow: CSSProperties['overflow'];
479
+ overflowWrap: CSSProperties['overflowWrap'];
480
+ overflowX: CSSProperties['overflowX'];
481
+ overflowY: CSSProperties['overflowY'];
482
+ perspective: CSSProperties['perspective'];
483
+ perspectiveOrigin: CSSProperties['perspectiveOrigin'];
484
+ quotes: CSSProperties['quotes'];
485
+ tabSize: CSSProperties['tabSize'];
486
+ tableLayout: CSSProperties['tableLayout'];
487
+ visibility: CSSProperties['visibility'];
488
+ appearance: CSSProperties['appearance'];
489
+ imageRendering: CSSProperties['imageRendering'];
490
+ maskImage: CSSProperties['maskImage'];
491
+ maskSize: CSSProperties['maskSize'];
492
+ maskPosition: CSSProperties['maskPosition'];
493
+ maskRepeat: CSSProperties['maskRepeat'];
494
+ shapeOutside: CSSProperties['shapeOutside'];
495
+ shapeMargin: CSSProperties['shapeMargin'];
496
+ shapeImageThreshold: CSSProperties['shapeImageThreshold'];
497
+ columnCount: CSSProperties['columnCount'];
498
+ columnWidth: CSSProperties['columnWidth'];
499
+ columnRule: CSSProperties['columnRule'];
500
+ columns: CSSProperties['columns'];
501
+ breakBefore: CSSProperties['breakBefore'];
502
+ breakAfter: CSSProperties['breakAfter'];
503
+ breakInside: CSSProperties['breakInside'];
504
+ orphans: CSSProperties['orphans'];
505
+ widows: CSSProperties['widows'];
506
+ printColorAdjust: CSSProperties['printColorAdjust'];
507
+ hideEmpty: boolean;
508
+ clearFix: boolean;
509
+ fullScreen: boolean;
510
+ extendCss: ReturnType<typeof config.css> | string;
511
+ };
512
+ type InnerTheme = { [I in keyof ITheme]: ITheme[I] | null | undefined };
513
+ type Theme = { [I in keyof ITheme]: ITheme[I] | Func<ITheme[I]> | null | undefined };
514
+ //# sourceMappingURL=types.d.ts.map
515
+ //#endregion
516
+ //#region src/styles/styles/index.d.ts
517
+ type Styles = ({
518
+ theme,
519
+ css,
520
+ rootSize
521
+ }: {
522
+ theme: InnerTheme;
523
+ css: Css;
524
+ rootSize?: number;
525
+ }) => ReturnType<typeof css>;
526
+ /**
527
+ * Data-driven style processor. Iterates the `propertyMap` descriptors
528
+ * and delegates each to `processDescriptor`, which maps theme values
529
+ * to CSS strings. The result is a single `css` tagged-template literal
530
+ * containing all non-null property outputs.
531
+ */
532
+ declare const styles$1: Styles;
533
+ //#endregion
534
+ //#region src/units/stripUnit.d.ts
535
+ type Value$1<V> = V extends string ? number : V;
536
+ type Unit<V> = V extends string ? string : undefined;
537
+ type StripUnit = <V extends string | number, UR extends boolean = false>(value: V, unitReturn?: UR) => UR extends true ? [Value$1<V>, Unit<V>] : Value$1<V>;
538
+ /**
539
+ * Strips the CSS unit suffix from a value.
540
+ * With `unitReturn=true`, returns a `[number, unit]` tuple.
541
+ * Otherwise returns just the numeric part.
542
+ * Non-string inputs are passed through unchanged.
543
+ */
544
+ declare const stripUnit: StripUnit;
545
+ //#endregion
546
+ //#region src/units/value.d.ts
547
+ type CssUnits = 'px' | 'rem' | '%' | 'em' | 'ex' | 'cm' | 'mm' | 'in' | 'pt' | 'pc' | 'ch' | 'vh' | 'vw' | 'vmin' | 'vmax';
548
+ type Value = (param: string | number | null | undefined, rootSize?: number, outputUnit?: CssUnits) => string | number | null;
549
+ /**
550
+ * Converts a raw numeric value to a CSS string with appropriate units.
551
+ * - Numbers without a unit are divided by `rootSize` and output as rem (web) or px (native).
552
+ * - Values that already carry a unit are returned as-is, unless converting px→rem.
553
+ * - Zero is always returned unitless.
554
+ */
555
+ declare const value: Value;
556
+ //#endregion
557
+ //#region src/units/values.d.ts
558
+ type Values = (values: unknown[], rootSize?: number, outputUnit?: Units) => string | number | null;
559
+ /**
560
+ * Picks the first non-null value from the array, converts it via `value()`,
561
+ * and returns the result. If the picked value is itself an array, each item
562
+ * is converted and joined with spaces (e.g. for shorthand properties).
563
+ */
564
+ declare const values: Values;
565
+ //#endregion
566
+ export { ALIGN_CONTENT_DIRECTION, ALIGN_CONTENT_MAP_X, ALIGN_CONTENT_MAP_Y, type AlignContent, type AlignContentAlignXKeys, type AlignContentAlignYKeys, type AlignContentDirectionKeys, type Breakpoints, type BrowserColors, type Color, type CreateMediaQueries, type Defaults, type ExtendCss, type MakeItResponsive, type MakeItResponsiveStyles, type NormalizeTheme, type PropertyValue, Provider, type SortBreakpoints, type StripUnit, type Styles, type Theme as StylesTheme, type TProvider, type TransformTheme, type UnitValue, type Value, type Values, alignContent, breakpoints$1 as breakpoints, context, createMediaQueries, extendCss, makeItResponsive, normalizeTheme, sortBreakpoints, stripUnit, styles$1 as styles, transformTheme, value, values };
567
+ //# sourceMappingURL=index.d.d.ts.map