@utilix-tech/sdk 0.1.0
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/LICENSE +21 -0
- package/README.md +199 -0
- package/dist/api-8aZtWhSj.d.cts +308 -0
- package/dist/api-8aZtWhSj.d.ts +308 -0
- package/dist/chunk-2CJSLYWI.js +520 -0
- package/dist/chunk-3BAHSW4C.js +1385 -0
- package/dist/chunk-6YPV2AB5.js +1246 -0
- package/dist/chunk-BPVAB4P2.js +1126 -0
- package/dist/chunk-FL53T24A.js +257 -0
- package/dist/chunk-L6KCTHUW.js +1086 -0
- package/dist/chunk-MLKGABMK.js +7 -0
- package/dist/chunk-ROTPLW7T.js +265 -0
- package/dist/chunk-TSAGO3XP.js +1253 -0
- package/dist/chunk-UC656APA.js +1080 -0
- package/dist/chunk-W4UBLYFU.js +1219 -0
- package/dist/chunk-XST6X3HT.js +896 -0
- package/dist/chunk-XXYZLLHI.js +2227 -0
- package/dist/chunk-ZKL2VX2G.js +2215 -0
- package/dist/chunk-ZPQZEIXP.js +685 -0
- package/dist/code-QNrdLIR3.d.cts +327 -0
- package/dist/code-QNrdLIR3.d.ts +327 -0
- package/dist/color-tPwZCr9H.d.cts +229 -0
- package/dist/color-tPwZCr9H.d.ts +229 -0
- package/dist/css-Cf7AMGM-.d.cts +318 -0
- package/dist/css-Cf7AMGM-.d.ts +318 -0
- package/dist/data-rMjWNiOJ.d.cts +215 -0
- package/dist/data-rMjWNiOJ.d.ts +215 -0
- package/dist/encoding-7gmq-vkV.d.cts +108 -0
- package/dist/encoding-7gmq-vkV.d.ts +108 -0
- package/dist/generators-BGtRGpJZ.d.cts +118 -0
- package/dist/generators-BGtRGpJZ.d.ts +118 -0
- package/dist/hashing-CnetQFD_.d.cts +76 -0
- package/dist/hashing-CnetQFD_.d.ts +76 -0
- package/dist/index.cjs +15466 -0
- package/dist/index.d.cts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +20 -0
- package/dist/json-BjSoIS1h.d.cts +198 -0
- package/dist/json-BjSoIS1h.d.ts +198 -0
- package/dist/misc-DcVBManm.d.cts +201 -0
- package/dist/misc-DcVBManm.d.ts +201 -0
- package/dist/network-CNtmrDeN.d.cts +170 -0
- package/dist/network-CNtmrDeN.d.ts +170 -0
- package/dist/text-DqAjPtQ0.d.cts +319 -0
- package/dist/text-DqAjPtQ0.d.ts +319 -0
- package/dist/time-DbT8fjaF.d.cts +145 -0
- package/dist/time-DbT8fjaF.d.ts +145 -0
- package/dist/tools/api.cjs +1216 -0
- package/dist/tools/api.d.cts +1 -0
- package/dist/tools/api.d.ts +1 -0
- package/dist/tools/api.js +2 -0
- package/dist/tools/code.cjs +2212 -0
- package/dist/tools/code.d.cts +1 -0
- package/dist/tools/code.d.ts +1 -0
- package/dist/tools/code.js +2 -0
- package/dist/tools/color.cjs +1122 -0
- package/dist/tools/color.d.cts +1 -0
- package/dist/tools/color.d.ts +1 -0
- package/dist/tools/color.js +2 -0
- package/dist/tools/css.cjs +1242 -0
- package/dist/tools/css.d.cts +1 -0
- package/dist/tools/css.d.ts +1 -0
- package/dist/tools/css.js +2 -0
- package/dist/tools/data.cjs +1097 -0
- package/dist/tools/data.d.cts +1 -0
- package/dist/tools/data.d.ts +1 -0
- package/dist/tools/data.js +2 -0
- package/dist/tools/encoding.cjs +261 -0
- package/dist/tools/encoding.d.cts +1 -0
- package/dist/tools/encoding.d.ts +1 -0
- package/dist/tools/encoding.js +2 -0
- package/dist/tools/generators.cjs +521 -0
- package/dist/tools/generators.d.cts +1 -0
- package/dist/tools/generators.d.ts +1 -0
- package/dist/tools/generators.js +2 -0
- package/dist/tools/hashing.cjs +259 -0
- package/dist/tools/hashing.d.cts +1 -0
- package/dist/tools/hashing.d.ts +1 -0
- package/dist/tools/hashing.js +2 -0
- package/dist/tools/json.cjs +1270 -0
- package/dist/tools/json.d.cts +1 -0
- package/dist/tools/json.d.ts +1 -0
- package/dist/tools/json.js +2 -0
- package/dist/tools/misc.cjs +1082 -0
- package/dist/tools/misc.d.cts +1 -0
- package/dist/tools/misc.d.ts +1 -0
- package/dist/tools/misc.js +2 -0
- package/dist/tools/network.cjs +1381 -0
- package/dist/tools/network.d.cts +1 -0
- package/dist/tools/network.d.ts +1 -0
- package/dist/tools/network.js +2 -0
- package/dist/tools/text.cjs +2224 -0
- package/dist/tools/text.d.cts +1 -0
- package/dist/tools/text.d.ts +1 -0
- package/dist/tools/text.js +2 -0
- package/dist/tools/time.cjs +681 -0
- package/dist/tools/time.d.cts +1 -0
- package/dist/tools/time.d.ts +1 -0
- package/dist/tools/time.js +2 -0
- package/dist/tools/units.cjs +892 -0
- package/dist/tools/units.d.cts +1 -0
- package/dist/tools/units.d.ts +1 -0
- package/dist/tools/units.js +2 -0
- package/dist/units-6lwDYBvX.d.cts +302 -0
- package/dist/units-6lwDYBvX.d.ts +302 -0
- package/package.json +148 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module css
|
|
3
|
+
* CSS utility tools for the @utilix/sdk Node.js SDK.
|
|
4
|
+
*
|
|
5
|
+
* Tools covered:
|
|
6
|
+
* - css-gradient : generateGradient, generateCssProperty, parseGradient, GRADIENT_PRESETS
|
|
7
|
+
* - css-box-shadow : generateBoxShadow, parseBoxShadow, DEFAULT_SHADOW, SHADOW_PRESETS
|
|
8
|
+
* - border-radius : generateBorderRadius, parseBorderRadius, isUniform, BORDER_PRESETS
|
|
9
|
+
* - css-animation : generateKeyframesCSS, generateAnimationCSS, generateFullCSS,
|
|
10
|
+
* parseKeyframesCSS, validateKeyframes, ANIMATION_PRESETS
|
|
11
|
+
* - css-cubic-bezier : parseCubicBezier, toCssValue, sampleCurve, getCurvePoints,
|
|
12
|
+
* validateParams, PRESETS (cubic bezier)
|
|
13
|
+
* - css-clamp : calcClamp, previewClamp, parseClampString
|
|
14
|
+
* - css-specificity : calcSpecificity, compareSpecificity, explainSelector, multipleSelectors
|
|
15
|
+
* - css-minifier-tool : minifyCss, formatCss, countRules, countProperties
|
|
16
|
+
* - flexbox : generateFlexContainerCss, generateFlexItemCss,
|
|
17
|
+
* DEFAULT_CONTAINER, DEFAULT_ITEM, FLEX_PRESETS
|
|
18
|
+
* - css-grid : generateGridContainerCss, generateGridItemCss,
|
|
19
|
+
* DEFAULT_CONFIG, GRID_PRESETS, parseRepeat, buildRepeat
|
|
20
|
+
*/
|
|
21
|
+
type GradientType = 'linear' | 'radial' | 'conic';
|
|
22
|
+
interface ColorStop {
|
|
23
|
+
color: string;
|
|
24
|
+
position: number;
|
|
25
|
+
}
|
|
26
|
+
interface GradientConfig {
|
|
27
|
+
type: GradientType;
|
|
28
|
+
angle: number;
|
|
29
|
+
stops: ColorStop[];
|
|
30
|
+
radialShape?: 'circle' | 'ellipse';
|
|
31
|
+
}
|
|
32
|
+
declare function generateGradient(config: GradientConfig): string;
|
|
33
|
+
declare function generateCssProperty(config: GradientConfig): string;
|
|
34
|
+
declare function parseGradient(css: string): GradientConfig | {
|
|
35
|
+
error: string;
|
|
36
|
+
};
|
|
37
|
+
declare const GRADIENT_PRESETS: Array<{
|
|
38
|
+
name: string;
|
|
39
|
+
config: GradientConfig;
|
|
40
|
+
}>;
|
|
41
|
+
interface ShadowLayer {
|
|
42
|
+
offsetX: number;
|
|
43
|
+
offsetY: number;
|
|
44
|
+
blur: number;
|
|
45
|
+
spread: number;
|
|
46
|
+
color: string;
|
|
47
|
+
inset: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare function generateBoxShadow(layers: ShadowLayer[]): string;
|
|
50
|
+
declare function parseBoxShadow(css: string): ShadowLayer[] | {
|
|
51
|
+
error: string;
|
|
52
|
+
};
|
|
53
|
+
declare const DEFAULT_SHADOW: ShadowLayer;
|
|
54
|
+
declare const SHADOW_PRESETS: Array<{
|
|
55
|
+
name: string;
|
|
56
|
+
layers: ShadowLayer[];
|
|
57
|
+
}>;
|
|
58
|
+
interface BorderRadiusConfig {
|
|
59
|
+
topLeft: number;
|
|
60
|
+
topRight: number;
|
|
61
|
+
bottomRight: number;
|
|
62
|
+
bottomLeft: number;
|
|
63
|
+
unit: 'px' | '%' | 'rem';
|
|
64
|
+
}
|
|
65
|
+
declare function generateBorderRadius(config: BorderRadiusConfig): string;
|
|
66
|
+
declare function parseBorderRadius(css: string): BorderRadiusConfig | {
|
|
67
|
+
error: string;
|
|
68
|
+
};
|
|
69
|
+
declare function isUniform(config: BorderRadiusConfig): boolean;
|
|
70
|
+
declare const BORDER_PRESETS: Array<{
|
|
71
|
+
name: string;
|
|
72
|
+
config: BorderRadiusConfig;
|
|
73
|
+
}>;
|
|
74
|
+
interface Keyframe {
|
|
75
|
+
stop: number;
|
|
76
|
+
properties: Record<string, string>;
|
|
77
|
+
}
|
|
78
|
+
interface AnimationConfig {
|
|
79
|
+
name: string;
|
|
80
|
+
duration: string;
|
|
81
|
+
timingFunction: string;
|
|
82
|
+
delay: string;
|
|
83
|
+
iterationCount: string;
|
|
84
|
+
direction: string;
|
|
85
|
+
fillMode: string;
|
|
86
|
+
}
|
|
87
|
+
declare const ANIMATION_PRESETS: Record<string, {
|
|
88
|
+
keyframes: Keyframe[];
|
|
89
|
+
config: Partial<AnimationConfig>;
|
|
90
|
+
}>;
|
|
91
|
+
declare function generateKeyframesCSS(name: string, keyframes: Keyframe[]): string;
|
|
92
|
+
declare function generateAnimationCSS(config: AnimationConfig): string;
|
|
93
|
+
declare function generateFullCSS(selector: string, config: AnimationConfig, keyframes: Keyframe[]): string;
|
|
94
|
+
declare function parseKeyframesCSS(css: string): {
|
|
95
|
+
name: string;
|
|
96
|
+
keyframes: Keyframe[];
|
|
97
|
+
} | {
|
|
98
|
+
error: string;
|
|
99
|
+
};
|
|
100
|
+
declare function validateKeyframes(keyframes: Keyframe[]): string | null;
|
|
101
|
+
interface CubicBezierParams {
|
|
102
|
+
x1: number;
|
|
103
|
+
y1: number;
|
|
104
|
+
x2: number;
|
|
105
|
+
y2: number;
|
|
106
|
+
}
|
|
107
|
+
declare const CUBIC_BEZIER_PRESETS: Record<string, CubicBezierParams>;
|
|
108
|
+
/** @deprecated Use CUBIC_BEZIER_PRESETS */
|
|
109
|
+
declare const PRESETS: Record<string, CubicBezierParams>;
|
|
110
|
+
declare function parseCubicBezier(input: string): CubicBezierParams | {
|
|
111
|
+
error: string;
|
|
112
|
+
};
|
|
113
|
+
declare function toCssValue(params: CubicBezierParams): string;
|
|
114
|
+
/**
|
|
115
|
+
* Evaluate the cubic bezier at parameter t ∈ [0,1].
|
|
116
|
+
* The curve is defined by control points P0=(0,0), P1=(x1,y1), P2=(x2,y2), P3=(1,1).
|
|
117
|
+
* Returns the Y value at the given t (not solving for x=t).
|
|
118
|
+
*/
|
|
119
|
+
declare function sampleCurve(params: CubicBezierParams, t: number): number;
|
|
120
|
+
declare function getCurvePoints(params: CubicBezierParams, steps?: number): Array<{
|
|
121
|
+
t: number;
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
}>;
|
|
125
|
+
declare function validateCubicBezierParams(params: CubicBezierParams): string | null;
|
|
126
|
+
/** Alias matching the source logic.ts name */
|
|
127
|
+
declare const validateParams: typeof validateCubicBezierParams;
|
|
128
|
+
interface ClampConfig {
|
|
129
|
+
minSize: number;
|
|
130
|
+
maxSize: number;
|
|
131
|
+
minViewport: number;
|
|
132
|
+
maxViewport: number;
|
|
133
|
+
unit: 'px' | 'rem';
|
|
134
|
+
rootFontSize?: number;
|
|
135
|
+
}
|
|
136
|
+
interface ClampResult {
|
|
137
|
+
clampValue: string;
|
|
138
|
+
slope: number;
|
|
139
|
+
intercept: number;
|
|
140
|
+
minOutput: string;
|
|
141
|
+
maxOutput: string;
|
|
142
|
+
preferredOutput: string;
|
|
143
|
+
}
|
|
144
|
+
declare function calcClamp(config: ClampConfig): ClampResult | {
|
|
145
|
+
error: string;
|
|
146
|
+
};
|
|
147
|
+
declare function previewClamp(config: ClampConfig, viewportWidth: number): number;
|
|
148
|
+
declare function parseClampString(clamp: string): ClampConfig | {
|
|
149
|
+
error: string;
|
|
150
|
+
};
|
|
151
|
+
interface SpecificityResult {
|
|
152
|
+
inline: number;
|
|
153
|
+
id: number;
|
|
154
|
+
classAttr: number;
|
|
155
|
+
element: number;
|
|
156
|
+
value: [number, number, number, number];
|
|
157
|
+
notation: string;
|
|
158
|
+
}
|
|
159
|
+
interface SpecificityToken {
|
|
160
|
+
token: string;
|
|
161
|
+
type: string;
|
|
162
|
+
contribution: [number, number, number, number];
|
|
163
|
+
}
|
|
164
|
+
declare function calcSpecificity(selector: string): SpecificityResult;
|
|
165
|
+
declare function compareSpecificity(a: SpecificityResult, b: SpecificityResult): -1 | 0 | 1;
|
|
166
|
+
declare function explainSelector(selector: string): SpecificityToken[];
|
|
167
|
+
declare function multipleSelectors(css: string): Array<{
|
|
168
|
+
selector: string;
|
|
169
|
+
specificity: SpecificityResult;
|
|
170
|
+
}>;
|
|
171
|
+
interface CssResult {
|
|
172
|
+
output: string;
|
|
173
|
+
originalSize: number;
|
|
174
|
+
outputSize: number;
|
|
175
|
+
savingsPercent: number;
|
|
176
|
+
}
|
|
177
|
+
declare function minifyCss(input: string): CssResult;
|
|
178
|
+
declare function formatCss(input: string, indentSize?: number): CssResult;
|
|
179
|
+
declare function countRules(css: string): number;
|
|
180
|
+
declare function countProperties(css: string): number;
|
|
181
|
+
type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
182
|
+
type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
183
|
+
type JustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
184
|
+
type AlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
185
|
+
type AlignContent = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around';
|
|
186
|
+
interface FlexContainerConfig {
|
|
187
|
+
flexDirection: FlexDirection;
|
|
188
|
+
flexWrap: FlexWrap;
|
|
189
|
+
justifyContent: JustifyContent;
|
|
190
|
+
alignItems: AlignItems;
|
|
191
|
+
alignContent: AlignContent;
|
|
192
|
+
gap: number;
|
|
193
|
+
rowGap?: number;
|
|
194
|
+
columnGap?: number;
|
|
195
|
+
}
|
|
196
|
+
interface FlexItemConfig {
|
|
197
|
+
flexGrow: number;
|
|
198
|
+
flexShrink: number;
|
|
199
|
+
flexBasis: string;
|
|
200
|
+
alignSelf: AlignItems | 'auto';
|
|
201
|
+
order: number;
|
|
202
|
+
}
|
|
203
|
+
declare const DEFAULT_CONTAINER: FlexContainerConfig;
|
|
204
|
+
declare const DEFAULT_ITEM: FlexItemConfig;
|
|
205
|
+
declare function generateFlexContainerCss(config: FlexContainerConfig): string;
|
|
206
|
+
declare function generateFlexItemCss(config: FlexItemConfig): string;
|
|
207
|
+
declare const FLEX_PRESETS: Array<{
|
|
208
|
+
name: string;
|
|
209
|
+
container: FlexContainerConfig;
|
|
210
|
+
description: string;
|
|
211
|
+
}>;
|
|
212
|
+
interface GridConfig {
|
|
213
|
+
templateColumns: string;
|
|
214
|
+
templateRows: string;
|
|
215
|
+
gap: number;
|
|
216
|
+
columnGap?: number;
|
|
217
|
+
rowGap?: number;
|
|
218
|
+
justifyItems: 'start' | 'end' | 'center' | 'stretch';
|
|
219
|
+
alignItems: 'start' | 'end' | 'center' | 'stretch';
|
|
220
|
+
justifyContent: 'start' | 'end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'space-evenly';
|
|
221
|
+
alignContent: 'start' | 'end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'space-evenly';
|
|
222
|
+
}
|
|
223
|
+
interface GridItemConfig {
|
|
224
|
+
columnStart?: number;
|
|
225
|
+
columnEnd?: number;
|
|
226
|
+
rowStart?: number;
|
|
227
|
+
rowEnd?: number;
|
|
228
|
+
justifySelf?: 'start' | 'end' | 'center' | 'stretch';
|
|
229
|
+
alignSelf?: 'start' | 'end' | 'center' | 'stretch';
|
|
230
|
+
}
|
|
231
|
+
declare const DEFAULT_CONFIG: GridConfig;
|
|
232
|
+
declare const GRID_PRESETS: Array<{
|
|
233
|
+
name: string;
|
|
234
|
+
config: GridConfig;
|
|
235
|
+
description: string;
|
|
236
|
+
}>;
|
|
237
|
+
declare function generateGridContainerCss(config: GridConfig): string;
|
|
238
|
+
declare function generateGridItemCss(config: GridItemConfig): string;
|
|
239
|
+
declare function parseRepeat(expr: string): string | {
|
|
240
|
+
error: string;
|
|
241
|
+
};
|
|
242
|
+
declare function buildRepeat(count: number, size: string): string;
|
|
243
|
+
|
|
244
|
+
declare const css_ANIMATION_PRESETS: typeof ANIMATION_PRESETS;
|
|
245
|
+
type css_AlignContent = AlignContent;
|
|
246
|
+
type css_AlignItems = AlignItems;
|
|
247
|
+
type css_AnimationConfig = AnimationConfig;
|
|
248
|
+
declare const css_BORDER_PRESETS: typeof BORDER_PRESETS;
|
|
249
|
+
type css_BorderRadiusConfig = BorderRadiusConfig;
|
|
250
|
+
declare const css_CUBIC_BEZIER_PRESETS: typeof CUBIC_BEZIER_PRESETS;
|
|
251
|
+
type css_ClampConfig = ClampConfig;
|
|
252
|
+
type css_ClampResult = ClampResult;
|
|
253
|
+
type css_ColorStop = ColorStop;
|
|
254
|
+
type css_CssResult = CssResult;
|
|
255
|
+
type css_CubicBezierParams = CubicBezierParams;
|
|
256
|
+
declare const css_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
|
|
257
|
+
declare const css_DEFAULT_CONTAINER: typeof DEFAULT_CONTAINER;
|
|
258
|
+
declare const css_DEFAULT_ITEM: typeof DEFAULT_ITEM;
|
|
259
|
+
declare const css_DEFAULT_SHADOW: typeof DEFAULT_SHADOW;
|
|
260
|
+
declare const css_FLEX_PRESETS: typeof FLEX_PRESETS;
|
|
261
|
+
type css_FlexContainerConfig = FlexContainerConfig;
|
|
262
|
+
type css_FlexDirection = FlexDirection;
|
|
263
|
+
type css_FlexItemConfig = FlexItemConfig;
|
|
264
|
+
type css_FlexWrap = FlexWrap;
|
|
265
|
+
declare const css_GRADIENT_PRESETS: typeof GRADIENT_PRESETS;
|
|
266
|
+
declare const css_GRID_PRESETS: typeof GRID_PRESETS;
|
|
267
|
+
type css_GradientConfig = GradientConfig;
|
|
268
|
+
type css_GradientType = GradientType;
|
|
269
|
+
type css_GridConfig = GridConfig;
|
|
270
|
+
type css_GridItemConfig = GridItemConfig;
|
|
271
|
+
type css_JustifyContent = JustifyContent;
|
|
272
|
+
type css_Keyframe = Keyframe;
|
|
273
|
+
declare const css_PRESETS: typeof PRESETS;
|
|
274
|
+
declare const css_SHADOW_PRESETS: typeof SHADOW_PRESETS;
|
|
275
|
+
type css_ShadowLayer = ShadowLayer;
|
|
276
|
+
type css_SpecificityResult = SpecificityResult;
|
|
277
|
+
type css_SpecificityToken = SpecificityToken;
|
|
278
|
+
declare const css_buildRepeat: typeof buildRepeat;
|
|
279
|
+
declare const css_calcClamp: typeof calcClamp;
|
|
280
|
+
declare const css_calcSpecificity: typeof calcSpecificity;
|
|
281
|
+
declare const css_compareSpecificity: typeof compareSpecificity;
|
|
282
|
+
declare const css_countProperties: typeof countProperties;
|
|
283
|
+
declare const css_countRules: typeof countRules;
|
|
284
|
+
declare const css_explainSelector: typeof explainSelector;
|
|
285
|
+
declare const css_formatCss: typeof formatCss;
|
|
286
|
+
declare const css_generateAnimationCSS: typeof generateAnimationCSS;
|
|
287
|
+
declare const css_generateBorderRadius: typeof generateBorderRadius;
|
|
288
|
+
declare const css_generateBoxShadow: typeof generateBoxShadow;
|
|
289
|
+
declare const css_generateCssProperty: typeof generateCssProperty;
|
|
290
|
+
declare const css_generateFlexContainerCss: typeof generateFlexContainerCss;
|
|
291
|
+
declare const css_generateFlexItemCss: typeof generateFlexItemCss;
|
|
292
|
+
declare const css_generateFullCSS: typeof generateFullCSS;
|
|
293
|
+
declare const css_generateGradient: typeof generateGradient;
|
|
294
|
+
declare const css_generateGridContainerCss: typeof generateGridContainerCss;
|
|
295
|
+
declare const css_generateGridItemCss: typeof generateGridItemCss;
|
|
296
|
+
declare const css_generateKeyframesCSS: typeof generateKeyframesCSS;
|
|
297
|
+
declare const css_getCurvePoints: typeof getCurvePoints;
|
|
298
|
+
declare const css_isUniform: typeof isUniform;
|
|
299
|
+
declare const css_minifyCss: typeof minifyCss;
|
|
300
|
+
declare const css_multipleSelectors: typeof multipleSelectors;
|
|
301
|
+
declare const css_parseBorderRadius: typeof parseBorderRadius;
|
|
302
|
+
declare const css_parseBoxShadow: typeof parseBoxShadow;
|
|
303
|
+
declare const css_parseClampString: typeof parseClampString;
|
|
304
|
+
declare const css_parseCubicBezier: typeof parseCubicBezier;
|
|
305
|
+
declare const css_parseGradient: typeof parseGradient;
|
|
306
|
+
declare const css_parseKeyframesCSS: typeof parseKeyframesCSS;
|
|
307
|
+
declare const css_parseRepeat: typeof parseRepeat;
|
|
308
|
+
declare const css_previewClamp: typeof previewClamp;
|
|
309
|
+
declare const css_sampleCurve: typeof sampleCurve;
|
|
310
|
+
declare const css_toCssValue: typeof toCssValue;
|
|
311
|
+
declare const css_validateCubicBezierParams: typeof validateCubicBezierParams;
|
|
312
|
+
declare const css_validateKeyframes: typeof validateKeyframes;
|
|
313
|
+
declare const css_validateParams: typeof validateParams;
|
|
314
|
+
declare namespace css {
|
|
315
|
+
export { css_ANIMATION_PRESETS as ANIMATION_PRESETS, type css_AlignContent as AlignContent, type css_AlignItems as AlignItems, type css_AnimationConfig as AnimationConfig, css_BORDER_PRESETS as BORDER_PRESETS, type css_BorderRadiusConfig as BorderRadiusConfig, css_CUBIC_BEZIER_PRESETS as CUBIC_BEZIER_PRESETS, type css_ClampConfig as ClampConfig, type css_ClampResult as ClampResult, type css_ColorStop as ColorStop, type css_CssResult as CssResult, type css_CubicBezierParams as CubicBezierParams, css_DEFAULT_CONFIG as DEFAULT_CONFIG, css_DEFAULT_CONTAINER as DEFAULT_CONTAINER, css_DEFAULT_ITEM as DEFAULT_ITEM, css_DEFAULT_SHADOW as DEFAULT_SHADOW, css_FLEX_PRESETS as FLEX_PRESETS, type css_FlexContainerConfig as FlexContainerConfig, type css_FlexDirection as FlexDirection, type css_FlexItemConfig as FlexItemConfig, type css_FlexWrap as FlexWrap, css_GRADIENT_PRESETS as GRADIENT_PRESETS, css_GRID_PRESETS as GRID_PRESETS, type css_GradientConfig as GradientConfig, type css_GradientType as GradientType, type css_GridConfig as GridConfig, type css_GridItemConfig as GridItemConfig, type css_JustifyContent as JustifyContent, type css_Keyframe as Keyframe, css_PRESETS as PRESETS, css_SHADOW_PRESETS as SHADOW_PRESETS, type css_ShadowLayer as ShadowLayer, type css_SpecificityResult as SpecificityResult, type css_SpecificityToken as SpecificityToken, css_buildRepeat as buildRepeat, css_calcClamp as calcClamp, css_calcSpecificity as calcSpecificity, css_compareSpecificity as compareSpecificity, css_countProperties as countProperties, css_countRules as countRules, css_explainSelector as explainSelector, css_formatCss as formatCss, css_generateAnimationCSS as generateAnimationCSS, css_generateBorderRadius as generateBorderRadius, css_generateBoxShadow as generateBoxShadow, css_generateCssProperty as generateCssProperty, css_generateFlexContainerCss as generateFlexContainerCss, css_generateFlexItemCss as generateFlexItemCss, css_generateFullCSS as generateFullCSS, css_generateGradient as generateGradient, css_generateGridContainerCss as generateGridContainerCss, css_generateGridItemCss as generateGridItemCss, css_generateKeyframesCSS as generateKeyframesCSS, css_getCurvePoints as getCurvePoints, css_isUniform as isUniform, css_minifyCss as minifyCss, css_multipleSelectors as multipleSelectors, css_parseBorderRadius as parseBorderRadius, css_parseBoxShadow as parseBoxShadow, css_parseClampString as parseClampString, css_parseCubicBezier as parseCubicBezier, css_parseGradient as parseGradient, css_parseKeyframesCSS as parseKeyframesCSS, css_parseRepeat as parseRepeat, css_previewClamp as previewClamp, css_sampleCurve as sampleCurve, css_toCssValue as toCssValue, css_validateCubicBezierParams as validateCubicBezierParams, css_validateKeyframes as validateKeyframes, css_validateParams as validateParams };
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export { generateKeyframesCSS as $, ANIMATION_PRESETS as A, BORDER_PRESETS as B, CUBIC_BEZIER_PRESETS as C, DEFAULT_CONFIG as D, calcClamp as E, FLEX_PRESETS as F, GRADIENT_PRESETS as G, calcSpecificity as H, compareSpecificity as I, type JustifyContent as J, type Keyframe as K, countProperties as L, countRules as M, explainSelector as N, formatCss as O, PRESETS as P, generateAnimationCSS as Q, generateBorderRadius as R, SHADOW_PRESETS as S, generateBoxShadow as T, generateCssProperty as U, generateFlexContainerCss as V, generateFlexItemCss as W, generateFullCSS as X, generateGradient as Y, generateGridContainerCss as Z, generateGridItemCss as _, type AlignContent as a, getCurvePoints as a0, isUniform as a1, minifyCss as a2, multipleSelectors as a3, parseBorderRadius as a4, parseBoxShadow as a5, parseClampString as a6, parseCubicBezier as a7, parseGradient as a8, parseKeyframesCSS as a9, parseRepeat as aa, previewClamp as ab, sampleCurve as ac, toCssValue as ad, validateCubicBezierParams as ae, validateKeyframes as af, validateParams as ag, type AlignItems as b, css as c, type AnimationConfig as d, type BorderRadiusConfig as e, type ClampConfig as f, type ClampResult as g, type ColorStop as h, type CssResult as i, type CubicBezierParams as j, DEFAULT_CONTAINER as k, DEFAULT_ITEM as l, DEFAULT_SHADOW as m, type FlexContainerConfig as n, type FlexDirection as o, type FlexItemConfig as p, type FlexWrap as q, GRID_PRESETS as r, type GradientConfig as s, type GradientType as t, type GridConfig as u, type GridItemConfig as v, type ShadowLayer as w, type SpecificityResult as x, type SpecificityToken as y, buildRepeat as z };
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module css
|
|
3
|
+
* CSS utility tools for the @utilix/sdk Node.js SDK.
|
|
4
|
+
*
|
|
5
|
+
* Tools covered:
|
|
6
|
+
* - css-gradient : generateGradient, generateCssProperty, parseGradient, GRADIENT_PRESETS
|
|
7
|
+
* - css-box-shadow : generateBoxShadow, parseBoxShadow, DEFAULT_SHADOW, SHADOW_PRESETS
|
|
8
|
+
* - border-radius : generateBorderRadius, parseBorderRadius, isUniform, BORDER_PRESETS
|
|
9
|
+
* - css-animation : generateKeyframesCSS, generateAnimationCSS, generateFullCSS,
|
|
10
|
+
* parseKeyframesCSS, validateKeyframes, ANIMATION_PRESETS
|
|
11
|
+
* - css-cubic-bezier : parseCubicBezier, toCssValue, sampleCurve, getCurvePoints,
|
|
12
|
+
* validateParams, PRESETS (cubic bezier)
|
|
13
|
+
* - css-clamp : calcClamp, previewClamp, parseClampString
|
|
14
|
+
* - css-specificity : calcSpecificity, compareSpecificity, explainSelector, multipleSelectors
|
|
15
|
+
* - css-minifier-tool : minifyCss, formatCss, countRules, countProperties
|
|
16
|
+
* - flexbox : generateFlexContainerCss, generateFlexItemCss,
|
|
17
|
+
* DEFAULT_CONTAINER, DEFAULT_ITEM, FLEX_PRESETS
|
|
18
|
+
* - css-grid : generateGridContainerCss, generateGridItemCss,
|
|
19
|
+
* DEFAULT_CONFIG, GRID_PRESETS, parseRepeat, buildRepeat
|
|
20
|
+
*/
|
|
21
|
+
type GradientType = 'linear' | 'radial' | 'conic';
|
|
22
|
+
interface ColorStop {
|
|
23
|
+
color: string;
|
|
24
|
+
position: number;
|
|
25
|
+
}
|
|
26
|
+
interface GradientConfig {
|
|
27
|
+
type: GradientType;
|
|
28
|
+
angle: number;
|
|
29
|
+
stops: ColorStop[];
|
|
30
|
+
radialShape?: 'circle' | 'ellipse';
|
|
31
|
+
}
|
|
32
|
+
declare function generateGradient(config: GradientConfig): string;
|
|
33
|
+
declare function generateCssProperty(config: GradientConfig): string;
|
|
34
|
+
declare function parseGradient(css: string): GradientConfig | {
|
|
35
|
+
error: string;
|
|
36
|
+
};
|
|
37
|
+
declare const GRADIENT_PRESETS: Array<{
|
|
38
|
+
name: string;
|
|
39
|
+
config: GradientConfig;
|
|
40
|
+
}>;
|
|
41
|
+
interface ShadowLayer {
|
|
42
|
+
offsetX: number;
|
|
43
|
+
offsetY: number;
|
|
44
|
+
blur: number;
|
|
45
|
+
spread: number;
|
|
46
|
+
color: string;
|
|
47
|
+
inset: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare function generateBoxShadow(layers: ShadowLayer[]): string;
|
|
50
|
+
declare function parseBoxShadow(css: string): ShadowLayer[] | {
|
|
51
|
+
error: string;
|
|
52
|
+
};
|
|
53
|
+
declare const DEFAULT_SHADOW: ShadowLayer;
|
|
54
|
+
declare const SHADOW_PRESETS: Array<{
|
|
55
|
+
name: string;
|
|
56
|
+
layers: ShadowLayer[];
|
|
57
|
+
}>;
|
|
58
|
+
interface BorderRadiusConfig {
|
|
59
|
+
topLeft: number;
|
|
60
|
+
topRight: number;
|
|
61
|
+
bottomRight: number;
|
|
62
|
+
bottomLeft: number;
|
|
63
|
+
unit: 'px' | '%' | 'rem';
|
|
64
|
+
}
|
|
65
|
+
declare function generateBorderRadius(config: BorderRadiusConfig): string;
|
|
66
|
+
declare function parseBorderRadius(css: string): BorderRadiusConfig | {
|
|
67
|
+
error: string;
|
|
68
|
+
};
|
|
69
|
+
declare function isUniform(config: BorderRadiusConfig): boolean;
|
|
70
|
+
declare const BORDER_PRESETS: Array<{
|
|
71
|
+
name: string;
|
|
72
|
+
config: BorderRadiusConfig;
|
|
73
|
+
}>;
|
|
74
|
+
interface Keyframe {
|
|
75
|
+
stop: number;
|
|
76
|
+
properties: Record<string, string>;
|
|
77
|
+
}
|
|
78
|
+
interface AnimationConfig {
|
|
79
|
+
name: string;
|
|
80
|
+
duration: string;
|
|
81
|
+
timingFunction: string;
|
|
82
|
+
delay: string;
|
|
83
|
+
iterationCount: string;
|
|
84
|
+
direction: string;
|
|
85
|
+
fillMode: string;
|
|
86
|
+
}
|
|
87
|
+
declare const ANIMATION_PRESETS: Record<string, {
|
|
88
|
+
keyframes: Keyframe[];
|
|
89
|
+
config: Partial<AnimationConfig>;
|
|
90
|
+
}>;
|
|
91
|
+
declare function generateKeyframesCSS(name: string, keyframes: Keyframe[]): string;
|
|
92
|
+
declare function generateAnimationCSS(config: AnimationConfig): string;
|
|
93
|
+
declare function generateFullCSS(selector: string, config: AnimationConfig, keyframes: Keyframe[]): string;
|
|
94
|
+
declare function parseKeyframesCSS(css: string): {
|
|
95
|
+
name: string;
|
|
96
|
+
keyframes: Keyframe[];
|
|
97
|
+
} | {
|
|
98
|
+
error: string;
|
|
99
|
+
};
|
|
100
|
+
declare function validateKeyframes(keyframes: Keyframe[]): string | null;
|
|
101
|
+
interface CubicBezierParams {
|
|
102
|
+
x1: number;
|
|
103
|
+
y1: number;
|
|
104
|
+
x2: number;
|
|
105
|
+
y2: number;
|
|
106
|
+
}
|
|
107
|
+
declare const CUBIC_BEZIER_PRESETS: Record<string, CubicBezierParams>;
|
|
108
|
+
/** @deprecated Use CUBIC_BEZIER_PRESETS */
|
|
109
|
+
declare const PRESETS: Record<string, CubicBezierParams>;
|
|
110
|
+
declare function parseCubicBezier(input: string): CubicBezierParams | {
|
|
111
|
+
error: string;
|
|
112
|
+
};
|
|
113
|
+
declare function toCssValue(params: CubicBezierParams): string;
|
|
114
|
+
/**
|
|
115
|
+
* Evaluate the cubic bezier at parameter t ∈ [0,1].
|
|
116
|
+
* The curve is defined by control points P0=(0,0), P1=(x1,y1), P2=(x2,y2), P3=(1,1).
|
|
117
|
+
* Returns the Y value at the given t (not solving for x=t).
|
|
118
|
+
*/
|
|
119
|
+
declare function sampleCurve(params: CubicBezierParams, t: number): number;
|
|
120
|
+
declare function getCurvePoints(params: CubicBezierParams, steps?: number): Array<{
|
|
121
|
+
t: number;
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
}>;
|
|
125
|
+
declare function validateCubicBezierParams(params: CubicBezierParams): string | null;
|
|
126
|
+
/** Alias matching the source logic.ts name */
|
|
127
|
+
declare const validateParams: typeof validateCubicBezierParams;
|
|
128
|
+
interface ClampConfig {
|
|
129
|
+
minSize: number;
|
|
130
|
+
maxSize: number;
|
|
131
|
+
minViewport: number;
|
|
132
|
+
maxViewport: number;
|
|
133
|
+
unit: 'px' | 'rem';
|
|
134
|
+
rootFontSize?: number;
|
|
135
|
+
}
|
|
136
|
+
interface ClampResult {
|
|
137
|
+
clampValue: string;
|
|
138
|
+
slope: number;
|
|
139
|
+
intercept: number;
|
|
140
|
+
minOutput: string;
|
|
141
|
+
maxOutput: string;
|
|
142
|
+
preferredOutput: string;
|
|
143
|
+
}
|
|
144
|
+
declare function calcClamp(config: ClampConfig): ClampResult | {
|
|
145
|
+
error: string;
|
|
146
|
+
};
|
|
147
|
+
declare function previewClamp(config: ClampConfig, viewportWidth: number): number;
|
|
148
|
+
declare function parseClampString(clamp: string): ClampConfig | {
|
|
149
|
+
error: string;
|
|
150
|
+
};
|
|
151
|
+
interface SpecificityResult {
|
|
152
|
+
inline: number;
|
|
153
|
+
id: number;
|
|
154
|
+
classAttr: number;
|
|
155
|
+
element: number;
|
|
156
|
+
value: [number, number, number, number];
|
|
157
|
+
notation: string;
|
|
158
|
+
}
|
|
159
|
+
interface SpecificityToken {
|
|
160
|
+
token: string;
|
|
161
|
+
type: string;
|
|
162
|
+
contribution: [number, number, number, number];
|
|
163
|
+
}
|
|
164
|
+
declare function calcSpecificity(selector: string): SpecificityResult;
|
|
165
|
+
declare function compareSpecificity(a: SpecificityResult, b: SpecificityResult): -1 | 0 | 1;
|
|
166
|
+
declare function explainSelector(selector: string): SpecificityToken[];
|
|
167
|
+
declare function multipleSelectors(css: string): Array<{
|
|
168
|
+
selector: string;
|
|
169
|
+
specificity: SpecificityResult;
|
|
170
|
+
}>;
|
|
171
|
+
interface CssResult {
|
|
172
|
+
output: string;
|
|
173
|
+
originalSize: number;
|
|
174
|
+
outputSize: number;
|
|
175
|
+
savingsPercent: number;
|
|
176
|
+
}
|
|
177
|
+
declare function minifyCss(input: string): CssResult;
|
|
178
|
+
declare function formatCss(input: string, indentSize?: number): CssResult;
|
|
179
|
+
declare function countRules(css: string): number;
|
|
180
|
+
declare function countProperties(css: string): number;
|
|
181
|
+
type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
182
|
+
type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
183
|
+
type JustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
184
|
+
type AlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
185
|
+
type AlignContent = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around';
|
|
186
|
+
interface FlexContainerConfig {
|
|
187
|
+
flexDirection: FlexDirection;
|
|
188
|
+
flexWrap: FlexWrap;
|
|
189
|
+
justifyContent: JustifyContent;
|
|
190
|
+
alignItems: AlignItems;
|
|
191
|
+
alignContent: AlignContent;
|
|
192
|
+
gap: number;
|
|
193
|
+
rowGap?: number;
|
|
194
|
+
columnGap?: number;
|
|
195
|
+
}
|
|
196
|
+
interface FlexItemConfig {
|
|
197
|
+
flexGrow: number;
|
|
198
|
+
flexShrink: number;
|
|
199
|
+
flexBasis: string;
|
|
200
|
+
alignSelf: AlignItems | 'auto';
|
|
201
|
+
order: number;
|
|
202
|
+
}
|
|
203
|
+
declare const DEFAULT_CONTAINER: FlexContainerConfig;
|
|
204
|
+
declare const DEFAULT_ITEM: FlexItemConfig;
|
|
205
|
+
declare function generateFlexContainerCss(config: FlexContainerConfig): string;
|
|
206
|
+
declare function generateFlexItemCss(config: FlexItemConfig): string;
|
|
207
|
+
declare const FLEX_PRESETS: Array<{
|
|
208
|
+
name: string;
|
|
209
|
+
container: FlexContainerConfig;
|
|
210
|
+
description: string;
|
|
211
|
+
}>;
|
|
212
|
+
interface GridConfig {
|
|
213
|
+
templateColumns: string;
|
|
214
|
+
templateRows: string;
|
|
215
|
+
gap: number;
|
|
216
|
+
columnGap?: number;
|
|
217
|
+
rowGap?: number;
|
|
218
|
+
justifyItems: 'start' | 'end' | 'center' | 'stretch';
|
|
219
|
+
alignItems: 'start' | 'end' | 'center' | 'stretch';
|
|
220
|
+
justifyContent: 'start' | 'end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'space-evenly';
|
|
221
|
+
alignContent: 'start' | 'end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'space-evenly';
|
|
222
|
+
}
|
|
223
|
+
interface GridItemConfig {
|
|
224
|
+
columnStart?: number;
|
|
225
|
+
columnEnd?: number;
|
|
226
|
+
rowStart?: number;
|
|
227
|
+
rowEnd?: number;
|
|
228
|
+
justifySelf?: 'start' | 'end' | 'center' | 'stretch';
|
|
229
|
+
alignSelf?: 'start' | 'end' | 'center' | 'stretch';
|
|
230
|
+
}
|
|
231
|
+
declare const DEFAULT_CONFIG: GridConfig;
|
|
232
|
+
declare const GRID_PRESETS: Array<{
|
|
233
|
+
name: string;
|
|
234
|
+
config: GridConfig;
|
|
235
|
+
description: string;
|
|
236
|
+
}>;
|
|
237
|
+
declare function generateGridContainerCss(config: GridConfig): string;
|
|
238
|
+
declare function generateGridItemCss(config: GridItemConfig): string;
|
|
239
|
+
declare function parseRepeat(expr: string): string | {
|
|
240
|
+
error: string;
|
|
241
|
+
};
|
|
242
|
+
declare function buildRepeat(count: number, size: string): string;
|
|
243
|
+
|
|
244
|
+
declare const css_ANIMATION_PRESETS: typeof ANIMATION_PRESETS;
|
|
245
|
+
type css_AlignContent = AlignContent;
|
|
246
|
+
type css_AlignItems = AlignItems;
|
|
247
|
+
type css_AnimationConfig = AnimationConfig;
|
|
248
|
+
declare const css_BORDER_PRESETS: typeof BORDER_PRESETS;
|
|
249
|
+
type css_BorderRadiusConfig = BorderRadiusConfig;
|
|
250
|
+
declare const css_CUBIC_BEZIER_PRESETS: typeof CUBIC_BEZIER_PRESETS;
|
|
251
|
+
type css_ClampConfig = ClampConfig;
|
|
252
|
+
type css_ClampResult = ClampResult;
|
|
253
|
+
type css_ColorStop = ColorStop;
|
|
254
|
+
type css_CssResult = CssResult;
|
|
255
|
+
type css_CubicBezierParams = CubicBezierParams;
|
|
256
|
+
declare const css_DEFAULT_CONFIG: typeof DEFAULT_CONFIG;
|
|
257
|
+
declare const css_DEFAULT_CONTAINER: typeof DEFAULT_CONTAINER;
|
|
258
|
+
declare const css_DEFAULT_ITEM: typeof DEFAULT_ITEM;
|
|
259
|
+
declare const css_DEFAULT_SHADOW: typeof DEFAULT_SHADOW;
|
|
260
|
+
declare const css_FLEX_PRESETS: typeof FLEX_PRESETS;
|
|
261
|
+
type css_FlexContainerConfig = FlexContainerConfig;
|
|
262
|
+
type css_FlexDirection = FlexDirection;
|
|
263
|
+
type css_FlexItemConfig = FlexItemConfig;
|
|
264
|
+
type css_FlexWrap = FlexWrap;
|
|
265
|
+
declare const css_GRADIENT_PRESETS: typeof GRADIENT_PRESETS;
|
|
266
|
+
declare const css_GRID_PRESETS: typeof GRID_PRESETS;
|
|
267
|
+
type css_GradientConfig = GradientConfig;
|
|
268
|
+
type css_GradientType = GradientType;
|
|
269
|
+
type css_GridConfig = GridConfig;
|
|
270
|
+
type css_GridItemConfig = GridItemConfig;
|
|
271
|
+
type css_JustifyContent = JustifyContent;
|
|
272
|
+
type css_Keyframe = Keyframe;
|
|
273
|
+
declare const css_PRESETS: typeof PRESETS;
|
|
274
|
+
declare const css_SHADOW_PRESETS: typeof SHADOW_PRESETS;
|
|
275
|
+
type css_ShadowLayer = ShadowLayer;
|
|
276
|
+
type css_SpecificityResult = SpecificityResult;
|
|
277
|
+
type css_SpecificityToken = SpecificityToken;
|
|
278
|
+
declare const css_buildRepeat: typeof buildRepeat;
|
|
279
|
+
declare const css_calcClamp: typeof calcClamp;
|
|
280
|
+
declare const css_calcSpecificity: typeof calcSpecificity;
|
|
281
|
+
declare const css_compareSpecificity: typeof compareSpecificity;
|
|
282
|
+
declare const css_countProperties: typeof countProperties;
|
|
283
|
+
declare const css_countRules: typeof countRules;
|
|
284
|
+
declare const css_explainSelector: typeof explainSelector;
|
|
285
|
+
declare const css_formatCss: typeof formatCss;
|
|
286
|
+
declare const css_generateAnimationCSS: typeof generateAnimationCSS;
|
|
287
|
+
declare const css_generateBorderRadius: typeof generateBorderRadius;
|
|
288
|
+
declare const css_generateBoxShadow: typeof generateBoxShadow;
|
|
289
|
+
declare const css_generateCssProperty: typeof generateCssProperty;
|
|
290
|
+
declare const css_generateFlexContainerCss: typeof generateFlexContainerCss;
|
|
291
|
+
declare const css_generateFlexItemCss: typeof generateFlexItemCss;
|
|
292
|
+
declare const css_generateFullCSS: typeof generateFullCSS;
|
|
293
|
+
declare const css_generateGradient: typeof generateGradient;
|
|
294
|
+
declare const css_generateGridContainerCss: typeof generateGridContainerCss;
|
|
295
|
+
declare const css_generateGridItemCss: typeof generateGridItemCss;
|
|
296
|
+
declare const css_generateKeyframesCSS: typeof generateKeyframesCSS;
|
|
297
|
+
declare const css_getCurvePoints: typeof getCurvePoints;
|
|
298
|
+
declare const css_isUniform: typeof isUniform;
|
|
299
|
+
declare const css_minifyCss: typeof minifyCss;
|
|
300
|
+
declare const css_multipleSelectors: typeof multipleSelectors;
|
|
301
|
+
declare const css_parseBorderRadius: typeof parseBorderRadius;
|
|
302
|
+
declare const css_parseBoxShadow: typeof parseBoxShadow;
|
|
303
|
+
declare const css_parseClampString: typeof parseClampString;
|
|
304
|
+
declare const css_parseCubicBezier: typeof parseCubicBezier;
|
|
305
|
+
declare const css_parseGradient: typeof parseGradient;
|
|
306
|
+
declare const css_parseKeyframesCSS: typeof parseKeyframesCSS;
|
|
307
|
+
declare const css_parseRepeat: typeof parseRepeat;
|
|
308
|
+
declare const css_previewClamp: typeof previewClamp;
|
|
309
|
+
declare const css_sampleCurve: typeof sampleCurve;
|
|
310
|
+
declare const css_toCssValue: typeof toCssValue;
|
|
311
|
+
declare const css_validateCubicBezierParams: typeof validateCubicBezierParams;
|
|
312
|
+
declare const css_validateKeyframes: typeof validateKeyframes;
|
|
313
|
+
declare const css_validateParams: typeof validateParams;
|
|
314
|
+
declare namespace css {
|
|
315
|
+
export { css_ANIMATION_PRESETS as ANIMATION_PRESETS, type css_AlignContent as AlignContent, type css_AlignItems as AlignItems, type css_AnimationConfig as AnimationConfig, css_BORDER_PRESETS as BORDER_PRESETS, type css_BorderRadiusConfig as BorderRadiusConfig, css_CUBIC_BEZIER_PRESETS as CUBIC_BEZIER_PRESETS, type css_ClampConfig as ClampConfig, type css_ClampResult as ClampResult, type css_ColorStop as ColorStop, type css_CssResult as CssResult, type css_CubicBezierParams as CubicBezierParams, css_DEFAULT_CONFIG as DEFAULT_CONFIG, css_DEFAULT_CONTAINER as DEFAULT_CONTAINER, css_DEFAULT_ITEM as DEFAULT_ITEM, css_DEFAULT_SHADOW as DEFAULT_SHADOW, css_FLEX_PRESETS as FLEX_PRESETS, type css_FlexContainerConfig as FlexContainerConfig, type css_FlexDirection as FlexDirection, type css_FlexItemConfig as FlexItemConfig, type css_FlexWrap as FlexWrap, css_GRADIENT_PRESETS as GRADIENT_PRESETS, css_GRID_PRESETS as GRID_PRESETS, type css_GradientConfig as GradientConfig, type css_GradientType as GradientType, type css_GridConfig as GridConfig, type css_GridItemConfig as GridItemConfig, type css_JustifyContent as JustifyContent, type css_Keyframe as Keyframe, css_PRESETS as PRESETS, css_SHADOW_PRESETS as SHADOW_PRESETS, type css_ShadowLayer as ShadowLayer, type css_SpecificityResult as SpecificityResult, type css_SpecificityToken as SpecificityToken, css_buildRepeat as buildRepeat, css_calcClamp as calcClamp, css_calcSpecificity as calcSpecificity, css_compareSpecificity as compareSpecificity, css_countProperties as countProperties, css_countRules as countRules, css_explainSelector as explainSelector, css_formatCss as formatCss, css_generateAnimationCSS as generateAnimationCSS, css_generateBorderRadius as generateBorderRadius, css_generateBoxShadow as generateBoxShadow, css_generateCssProperty as generateCssProperty, css_generateFlexContainerCss as generateFlexContainerCss, css_generateFlexItemCss as generateFlexItemCss, css_generateFullCSS as generateFullCSS, css_generateGradient as generateGradient, css_generateGridContainerCss as generateGridContainerCss, css_generateGridItemCss as generateGridItemCss, css_generateKeyframesCSS as generateKeyframesCSS, css_getCurvePoints as getCurvePoints, css_isUniform as isUniform, css_minifyCss as minifyCss, css_multipleSelectors as multipleSelectors, css_parseBorderRadius as parseBorderRadius, css_parseBoxShadow as parseBoxShadow, css_parseClampString as parseClampString, css_parseCubicBezier as parseCubicBezier, css_parseGradient as parseGradient, css_parseKeyframesCSS as parseKeyframesCSS, css_parseRepeat as parseRepeat, css_previewClamp as previewClamp, css_sampleCurve as sampleCurve, css_toCssValue as toCssValue, css_validateCubicBezierParams as validateCubicBezierParams, css_validateKeyframes as validateKeyframes, css_validateParams as validateParams };
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export { generateKeyframesCSS as $, ANIMATION_PRESETS as A, BORDER_PRESETS as B, CUBIC_BEZIER_PRESETS as C, DEFAULT_CONFIG as D, calcClamp as E, FLEX_PRESETS as F, GRADIENT_PRESETS as G, calcSpecificity as H, compareSpecificity as I, type JustifyContent as J, type Keyframe as K, countProperties as L, countRules as M, explainSelector as N, formatCss as O, PRESETS as P, generateAnimationCSS as Q, generateBorderRadius as R, SHADOW_PRESETS as S, generateBoxShadow as T, generateCssProperty as U, generateFlexContainerCss as V, generateFlexItemCss as W, generateFullCSS as X, generateGradient as Y, generateGridContainerCss as Z, generateGridItemCss as _, type AlignContent as a, getCurvePoints as a0, isUniform as a1, minifyCss as a2, multipleSelectors as a3, parseBorderRadius as a4, parseBoxShadow as a5, parseClampString as a6, parseCubicBezier as a7, parseGradient as a8, parseKeyframesCSS as a9, parseRepeat as aa, previewClamp as ab, sampleCurve as ac, toCssValue as ad, validateCubicBezierParams as ae, validateKeyframes as af, validateParams as ag, type AlignItems as b, css as c, type AnimationConfig as d, type BorderRadiusConfig as e, type ClampConfig as f, type ClampResult as g, type ColorStop as h, type CssResult as i, type CubicBezierParams as j, DEFAULT_CONTAINER as k, DEFAULT_ITEM as l, DEFAULT_SHADOW as m, type FlexContainerConfig as n, type FlexDirection as o, type FlexItemConfig as p, type FlexWrap as q, GRID_PRESETS as r, type GradientConfig as s, type GradientType as t, type GridConfig as u, type GridItemConfig as v, type ShadowLayer as w, type SpecificityResult as x, type SpecificityToken as y, buildRepeat as z };
|