nuclo 0.1.128 → 0.2.1

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 (41) hide show
  1. package/dist/core/runtimeBootstrap.d.ts.map +1 -1
  2. package/dist/nuclo.cjs +1 -1
  3. package/dist/nuclo.cjs.map +1 -1
  4. package/dist/nuclo.mjs +1 -1
  5. package/dist/nuclo.mjs.map +1 -1
  6. package/dist/nuclo.umd.js +1 -1
  7. package/dist/nuclo.umd.js.map +1 -1
  8. package/dist/polyfill/nuclo.polyfill.cjs +1 -1
  9. package/dist/polyfill/nuclo.polyfill.cjs.map +1 -1
  10. package/dist/polyfill/nuclo.polyfill.mjs +1 -1
  11. package/dist/polyfill/nuclo.polyfill.mjs.map +1 -1
  12. package/dist/ssr/index.d.ts +1 -1
  13. package/dist/ssr/index.d.ts.map +1 -1
  14. package/dist/ssr/nuclo.ssr.cjs +1 -1
  15. package/dist/ssr/nuclo.ssr.cjs.map +1 -1
  16. package/dist/ssr/nuclo.ssr.mjs +1 -1
  17. package/dist/ssr/nuclo.ssr.mjs.map +1 -1
  18. package/dist/style/css.d.ts +314 -0
  19. package/dist/style/css.d.ts.map +1 -0
  20. package/dist/style/engine.d.ts +34 -0
  21. package/dist/style/engine.d.ts.map +1 -0
  22. package/dist/style/index.d.ts +2 -4
  23. package/dist/style/index.d.ts.map +1 -1
  24. package/package.json +5 -5
  25. package/types/features/style.d.ts +61 -1954
  26. package/dist/environment-UucRvjm0.mjs +0 -2
  27. package/dist/environment-UucRvjm0.mjs.map +0 -1
  28. package/dist/environment-z8pVZwev.cjs +0 -2
  29. package/dist/environment-z8pVZwev.cjs.map +0 -1
  30. package/dist/style/cssGenerator.d.ts +0 -13
  31. package/dist/style/cssGenerator.d.ts.map +0 -1
  32. package/dist/style/cssPropertyTypes.d.ts +0 -98
  33. package/dist/style/cssPropertyTypes.d.ts.map +0 -1
  34. package/dist/style/styleBuilder.d.ts +0 -337
  35. package/dist/style/styleBuilder.d.ts.map +0 -1
  36. package/dist/style/styleCache.d.ts +0 -5
  37. package/dist/style/styleCache.d.ts.map +0 -1
  38. package/dist/style/styleProperties.d.ts +0 -13
  39. package/dist/style/styleProperties.d.ts.map +0 -1
  40. package/dist/style/styleQueries.d.ts +0 -25
  41. package/dist/style/styleQueries.d.ts.map +0 -1
@@ -1,1964 +1,71 @@
1
- // Style utility functions type definitions
1
+ // Styling global type definitions.
2
+ //
3
+ // nuclo styling is atomic, theme-aware, typed CSS-in-TS:
4
+ //
5
+ // const { css, cx } = createCss({
6
+ // colors: { primary: "#6366f1" },
7
+ // screens: { md: "(min-width: 768px)" },
8
+ // });
9
+ // const button = css({ px: 24, bg: "primary", hover: { bg: "#4f46e5" }, md: { px: 32 } });
10
+ // div(button, "Save");
11
+ //
12
+ // The themeless defaults (css, cx, keyframes, globalStyle) are registered as
13
+ // globals by the runtime bootstrap; themed instances come from createCss().
2
14
 
3
15
  import type {
4
- DisplayValue,
5
- PositionValue,
6
- TextAlignValue,
7
- FontWeightValue,
8
- FontStyleValue,
9
- TextTransformValue,
10
- TextDecorationValue,
11
- TextDecorationStyleValue,
12
- TextDecorationLineValue,
13
- WhiteSpaceValue,
14
- OverflowValue,
15
- VisibilityValue,
16
- FlexDirectionValue,
17
- FlexWrapValue,
18
- AlignItemsValue,
19
- JustifyContentValue,
20
- AlignSelfValue,
21
- AlignContentValue,
22
- JustifySelfValue,
23
- JustifyItemsValue,
24
- GridAutoFlowValue,
25
- BorderStyleValue,
26
- OutlineStyleValue,
27
- BoxSizingValue,
28
- ObjectFitValue,
29
- VerticalAlignValue,
30
- TextAlignLastValue,
31
- TextJustifyValue,
32
- TextOverflowValue,
33
- WordWrapValue,
34
- OverflowWrapValue,
35
- BackgroundRepeatValue,
36
- BackgroundAttachmentValue,
37
- BackgroundClipValue,
38
- BackgroundOriginValue,
39
- TransformStyleValue,
40
- BackfaceVisibilityValue,
41
- AnimationDirectionValue,
42
- AnimationFillModeValue,
43
- AnimationPlayStateValue,
44
- ListStyleTypeValue,
45
- ListStylePositionValue,
46
- BorderCollapseValue,
47
- CaptionSideValue,
48
- EmptyCellsValue,
49
- TableLayoutValue,
50
- AppearanceValue,
51
- UserSelectValue,
52
- PointerEventsValue,
53
- ResizeValue,
54
- ScrollBehaviorValue,
55
- IsolationValue,
56
- MixBlendModeValue,
57
- ContainValue,
58
- PageBreakValue,
59
- BreakValue,
60
- ColumnFillValue,
61
- ColumnRuleStyleValue,
62
- ColumnSpanValue,
63
- CursorValue,
64
- CSSLengthValue,
65
- CSSColorValue,
66
- CSSFontFamilyValue,
67
- CSSTimingFunctionValue,
68
- CSSTransformValue,
69
- CSSFilterValue,
70
- CSSBackgroundImageValue,
71
- CSSAnimationNameValue,
72
- CSSContentValue,
73
- CSSAspectRatioValue,
74
- FloatValue,
75
- ClearValue,
76
- WritingModeValue,
77
- DirectionValue,
78
- UnicodeBidiValue,
79
- TextOrientationValue,
80
- HyphensValue,
81
- LineBreakValue,
82
- WordBreakValue,
83
- TouchActionValue,
84
- OverscrollBehaviorValue,
85
- ImageRenderingValue,
86
- ColorSchemeValue,
87
- CaretColorValue,
88
- CaretShapeValue,
89
- BackgroundBlendModeValue,
90
- ContentVisibilityValue,
91
- ContainerTypeValue,
92
- FontKerningValue,
93
- FontSynthesisValue,
94
- FontOpticalSizingValue,
95
- FontDisplayValue,
96
- FontVariantCapsValue,
97
- TextRenderingValue,
98
- TextCombineUprightValue,
99
- MaskCompositeValue,
100
- ClipRuleValue,
101
- } from "../../src/style/cssPropertyTypes";
16
+ ClassInput as NucloClassInput,
17
+ CSSProperties as NucloCSSProperties,
18
+ FlatStyle as NucloFlatStyle,
19
+ Size as NucloSize,
20
+ Style as NucloStyle,
21
+ StyleResult as NucloStyleResult,
22
+ ThemeConfig as NucloThemeConfig,
23
+ } from "../../src/style/css";
102
24
 
103
- /**
104
- * Comprehensive list of CSS pseudo-classes that are automatically available
105
- * in createStyleQueries without needing to define them.
106
- */
107
- export type CSSPseudoClass =
108
- | 'hover'
109
- | 'active'
110
- | 'focus'
111
- | 'focus-visible'
112
- | 'focus-within'
113
- | 'visited'
114
- | 'link'
115
- | 'target'
116
- | 'root'
117
- | 'empty'
118
- | 'enabled'
119
- | 'disabled'
120
- | 'checked'
121
- | 'indeterminate'
122
- | 'default'
123
- | 'required'
124
- | 'optional'
125
- | 'valid'
126
- | 'invalid'
127
- | 'in-range'
128
- | 'out-of-range'
129
- | 'placeholder-shown'
130
- | 'autofill'
131
- | 'read-only'
132
- | 'read-write'
133
- | 'first-child'
134
- | 'last-child'
135
- | 'only-child'
136
- | 'first-of-type'
137
- | 'last-of-type'
138
- | 'only-of-type'
139
- | 'nth-child'
140
- | 'nth-last-child'
141
- | 'nth-of-type'
142
- | 'nth-last-of-type'
143
- | 'lang'
144
- | 'dir'
145
- | 'not'
146
- | 'is'
147
- | 'where'
148
- | 'has'
149
- | 'any-link'
150
- | 'local-link'
151
- | 'scope'
152
- | 'current'
153
- | 'past'
154
- | 'future'
155
- | 'playing'
156
- | 'paused'
157
- | 'seeking'
158
- | 'muted'
159
- | 'volume-locked'
160
- | 'buffering'
161
- | 'stalled'
162
- | 'picture-in-picture'
163
- | 'fullscreen'
164
- | 'modal'
165
- | 'popover-open'
166
- | 'user-invalid'
167
- | 'user-valid';
168
-
169
- /**
170
- * Creates a CSS class with the given styles and injects it into the document
171
- */
172
25
  declare global {
173
- export type StyleQueryDefinitions =
174
- | Record<string, string>
175
- | ReadonlyArray<readonly [string, string]>;
176
-
177
- export type InferStyleQueryKeys<TDefinitions extends StyleQueryDefinitions> =
178
- TDefinitions extends ReadonlyArray<infer TEntry>
179
- ? TEntry extends readonly [infer TKey extends string, string]
180
- ? TKey
181
- : never
182
- : keyof TDefinitions & string;
183
-
184
- export type StyleQueryStyles<TDefinitions extends StyleQueryDefinitions> =
185
- Partial<Record<InferStyleQueryKeys<TDefinitions> | CSSPseudoClass, StyleBuilder>>;
186
-
187
- export type StyleQueryResult = { className: string };
188
-
189
- export interface StyleQueryBuilder<TDefinitions extends StyleQueryDefinitions> {
190
- (defaultStyles: StyleBuilder, queryStyles?: StyleQueryStyles<TDefinitions>): StyleQueryResult;
191
- (queryStyles?: StyleQueryStyles<TDefinitions>): StyleQueryResult;
192
- (className: string): StyleQueryResult;
193
- (className: string, defaultStyles: StyleBuilder, queryStyles?: StyleQueryStyles<TDefinitions>): StyleQueryResult;
194
- (className: string, queryStyles: StyleQueryStyles<TDefinitions>): StyleQueryResult;
26
+ export type Size = NucloSize;
27
+ export type CSSProperties = NucloCSSProperties;
28
+ export type ThemeConfig = NucloThemeConfig;
29
+ export type FlatStyle<T extends ThemeConfig = ThemeConfig> = NucloFlatStyle<T>;
30
+ export type Style<T extends ThemeConfig = ThemeConfig> = NucloStyle<T>;
31
+ export type StyleResult = NucloStyleResult;
32
+ export type ClassInput = NucloClassInput;
33
+
34
+ export interface CssInstance<T extends ThemeConfig = ThemeConfig> {
35
+ /**
36
+ * Compile a style object into atomic CSS classes.
37
+ * Returns `{ className }` — usable directly as a nuclo attributes object.
38
+ */
39
+ css(style: Style<T>): StyleResult;
40
+ /**
41
+ * Compose class lists with exact conflict resolution: when two inputs
42
+ * style the same (query, selector, property), the last one wins.
43
+ * Accepts results, raw class strings, and falsy values for conditionals.
44
+ */
45
+ cx(...inputs: ClassInput[]): StyleResult;
46
+ /** Register a @keyframes block; returns its generated animation name. */
47
+ keyframes(frames: Record<string, FlatStyle<T>>): string;
48
+ /** Global selector styles (body, resets). Flat properties only. */
49
+ globalStyle(selector: string, style: FlatStyle<T>): void;
50
+ /** The theme this instance was created with. */
51
+ theme: T;
195
52
  }
196
53
 
197
- function createCSSClass(className: string, styles: Record<string, string>): void;
198
-
199
- /**
200
- * Creates a style query class name generator for responsive and conditional styles.
201
- * Supports @media, @container, @supports queries, and automatically includes all CSS pseudo-classes.
202
- *
203
- * Query values should include the at-rule prefix:
204
- * - "@media (min-width: 768px)" for media queries
205
- * - "@container (min-width: 400px)" for container queries
206
- * - "@supports (display: grid)" for feature queries
207
- *
208
- * For backward compatibility, values without a prefix are treated as media queries.
209
- *
210
- * Pseudo-classes (hover, focus, active, etc.) are automatically available and don't need to be defined:
211
- * ```ts
212
- * const cn = createStyleQueries({
213
- * small: "@media (min-width: 341px)",
214
- * medium: "@media (min-width: 601px)",
215
- * large: "@media (min-width: 1025px)",
216
- * });
217
- *
218
- * const s = {
219
- * navLink: cn(
220
- * color("gray").fontSize("14px").transition("all 0.2s"),
221
- * {
222
- * medium: fontSize("15px"),
223
- * hover: color("blue") // hover is automatically available!
224
- * }
225
- * )
226
- * };
227
- * ```
228
- *
229
- * Supports named-class signatures in addition to the existing ones:
230
- * 1. cn(queryStyles) - Only query-specific styles
231
- * 2. cn(defaultStyles, queryStyles) - Default styles + query overrides
232
- * 3. cn(className, defaultStyles?, queryStyles?) - Uses the provided className as a prefix and appends `_hash`
233
- */
234
- function createStyleQueries<const TDefinitions extends StyleQueryDefinitions>(
235
- queries: TDefinitions
236
- ): StyleQueryBuilder<TDefinitions>;
237
-
238
54
  /**
239
- * @deprecated Use createStyleQueries instead. Alias for backward compatibility.
55
+ * Create a themed styling instance. Theme tokens (colors, fonts, shadows,
56
+ * radii) become autocompleted values; `screens` become responsive variant
57
+ * keys usable inside style objects.
240
58
  */
241
- function createBreakpoints<const TDefinitions extends StyleQueryDefinitions>(
242
- breakpoints: TDefinitions
243
- ): StyleQueryBuilder<TDefinitions>;
244
-
245
- /**
246
- * Style builder class for chaining CSS properties
247
- */
248
- class StyleBuilder {
249
- getStyles(): Record<string, string>;
250
- add(property: string, value: string): this;
251
-
252
- // Display
253
- display(value: DisplayValue): this;
254
- flex(value?: CSSLengthValue | "auto" | "initial" | "none" | "1" | "0"): this;
255
- grid(): this;
256
-
257
- // Colors
258
- bg(color: CSSColorValue): this;
259
- color(color: CSSColorValue): this;
260
- accentColor(value: CSSColorValue): this;
261
-
262
- // Typography
263
- fontSize(size: CSSLengthValue): this;
264
- fontWeight(value: FontWeightValue): this;
265
- fontFamily(value: CSSFontFamilyValue): this;
266
- lineHeight(value: CSSLengthValue | "normal" | number): this;
267
- letterSpacing(value: CSSLengthValue | "normal"): this;
268
- textAlign(value: TextAlignValue): this;
269
- textDecoration(value: TextDecorationValue): this;
270
- bold(): this;
271
- fontStyle(value: FontStyleValue): this;
272
- fontVariant(value: string): this;
273
- fontStretch(value: string): this;
274
- textTransform(value: TextTransformValue): this;
275
- textIndent(value: CSSLengthValue): this;
276
- textOverflow(value: TextOverflowValue): this;
277
- textShadow(value: string): this;
278
- whiteSpace(value: WhiteSpaceValue): this;
279
- wordSpacing(value: CSSLengthValue | "normal"): this;
280
- wordWrap(value: WordWrapValue): this;
281
- overflowWrap(value: OverflowWrapValue): this;
282
- textAlignLast(value: TextAlignLastValue): this;
283
- textJustify(value: TextJustifyValue): this;
284
- textDecorationLine(value: TextDecorationLineValue): this;
285
- textDecorationColor(value: CSSColorValue): this;
286
- textDecorationStyle(value: TextDecorationStyleValue): this;
287
- textDecorationThickness(value: CSSLengthValue | "auto" | "from-font"): this;
288
- textUnderlineOffset(value: CSSLengthValue | "auto"): this;
289
- verticalAlign(value: VerticalAlignValue): this;
290
-
291
- // Layout
292
- position(value: PositionValue): this;
293
- padding(value: CSSLengthValue): this;
294
- paddingTop(value: CSSLengthValue): this;
295
- paddingRight(value: CSSLengthValue): this;
296
- paddingBottom(value: CSSLengthValue): this;
297
- paddingLeft(value: CSSLengthValue): this;
298
- margin(value: CSSLengthValue | "auto"): this;
299
- marginTop(value: CSSLengthValue | "auto"): this;
300
- marginRight(value: CSSLengthValue | "auto"): this;
301
- marginBottom(value: CSSLengthValue | "auto"): this;
302
- marginLeft(value: CSSLengthValue | "auto"): this;
303
- width(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
304
- height(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
305
- minWidth(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
306
- maxWidth(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): this;
307
- minHeight(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
308
- maxHeight(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): this;
309
- boxSizing(value: BoxSizingValue): this;
310
-
311
- // Positioning
312
- top(value: CSSLengthValue | "auto"): this;
313
- right(value: CSSLengthValue | "auto"): this;
314
- bottom(value: CSSLengthValue | "auto"): this;
315
- left(value: CSSLengthValue | "auto"): this;
316
- zIndex(value: number | "auto"): this;
317
-
318
- // Flexbox
319
- flexDirection(value: FlexDirectionValue): this;
320
- alignItems(value: AlignItemsValue): this;
321
- justifyContent(value: JustifyContentValue): this;
322
- center(): this;
323
- gap(value: CSSLengthValue): this;
324
- flexWrap(value: FlexWrapValue): this;
325
- flexGrow(value: number | string): this;
326
- flexShrink(value: number | string): this;
327
- flexBasis(value: CSSLengthValue | "auto" | "content" | "fit-content"): this;
328
- alignSelf(value: AlignSelfValue): this;
329
- alignContent(value: AlignContentValue): this;
330
- justifySelf(value: JustifySelfValue): this;
331
- justifyItems(value: JustifyItemsValue): this;
332
-
333
- // Grid
334
- gridTemplateColumns(value: string): this;
335
- gridTemplateRows(value: string): this;
336
- gridTemplateAreas(value: string): this;
337
- gridColumn(value: string): this;
338
- gridRow(value: string): this;
339
- gridColumnStart(value: string | number | "auto"): this;
340
- gridColumnEnd(value: string | number | "auto"): this;
341
- gridRowStart(value: string | number | "auto"): this;
342
- gridRowEnd(value: string | number | "auto"): this;
343
- gridArea(value: string): this;
344
- gridAutoColumns(value: CSSLengthValue): this;
345
- gridAutoRows(value: CSSLengthValue): this;
346
- gridAutoFlow(value: GridAutoFlowValue): this;
347
-
348
- // Borders
349
- border(value: string): this;
350
- borderTop(value: string): this;
351
- borderRight(value: string): this;
352
- borderBottom(value: string): this;
353
- borderLeft(value: string): this;
354
- borderWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
355
- borderStyle(value: BorderStyleValue): this;
356
- borderColor(value: CSSColorValue): this;
357
- borderTopWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
358
- borderRightWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
359
- borderBottomWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
360
- borderLeftWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
361
- borderTopStyle(value: BorderStyleValue): this;
362
- borderRightStyle(value: BorderStyleValue): this;
363
- borderBottomStyle(value: BorderStyleValue): this;
364
- borderLeftStyle(value: BorderStyleValue): this;
365
- borderTopColor(value: CSSColorValue): this;
366
- borderRightColor(value: CSSColorValue): this;
367
- borderBottomColor(value: CSSColorValue): this;
368
- borderLeftColor(value: CSSColorValue): this;
369
- borderRadius(value: CSSLengthValue): this;
370
- borderTopLeftRadius(value: CSSLengthValue): this;
371
- borderTopRightRadius(value: CSSLengthValue): this;
372
- borderBottomLeftRadius(value: CSSLengthValue): this;
373
- borderBottomRightRadius(value: CSSLengthValue): this;
374
-
375
- // Outline
376
- outline(value: string): this;
377
- outlineWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
378
- outlineStyle(value: OutlineStyleValue): this;
379
- outlineColor(value: CSSColorValue): this;
380
- outlineOffset(value: CSSLengthValue): this;
381
-
382
- // Background
383
- backgroundColor(value: CSSColorValue): this;
384
- backgroundImage(value: CSSBackgroundImageValue | "none"): this;
385
- backgroundRepeat(value: BackgroundRepeatValue): this;
386
- backgroundPosition(value: string): this;
387
- backgroundSize(value: CSSLengthValue | "auto" | "cover" | "contain"): this;
388
- backgroundAttachment(value: BackgroundAttachmentValue): this;
389
- backgroundClip(value: BackgroundClipValue): this;
390
- backgroundOrigin(value: BackgroundOriginValue): this;
391
-
392
- // Effects
393
- boxShadow(value: string | "none"): this;
394
- opacity(value: number | string): this;
395
- transition(value: string): this;
396
- transitionProperty(value: string | "none" | "all"): this;
397
- transitionDuration(value: string | number): this;
398
- transitionTimingFunction(value: CSSTimingFunctionValue): this;
399
- transitionDelay(value: string | number): this;
400
-
401
- // Transform
402
- transform(value: CSSTransformValue | "none"): this;
403
- transformOrigin(value: string): this;
404
- transformStyle(value: TransformStyleValue): this;
405
- perspective(value: CSSLengthValue | "none"): this;
406
- perspectiveOrigin(value: string): this;
407
- backfaceVisibility(value: BackfaceVisibilityValue): this;
408
-
409
- // Animation
410
- animation(value: string): this;
411
- animationName(value: CSSAnimationNameValue): this;
412
- animationDuration(value: string | number): this;
413
- animationTimingFunction(value: CSSTimingFunctionValue): this;
414
- animationDelay(value: string | number): this;
415
- animationIterationCount(value: number | "infinite" | string): this;
416
- animationDirection(value: AnimationDirectionValue): this;
417
- animationFillMode(value: AnimationFillModeValue): this;
418
- animationPlayState(value: AnimationPlayStateValue): this;
419
-
420
- // Filter
421
- filter(value: CSSFilterValue | "none"): this;
422
- backdropFilter(value: CSSFilterValue | "none"): this;
423
-
424
- // Overflow
425
- overflow(value: OverflowValue): this;
426
- overflowX(value: OverflowValue): this;
427
- overflowY(value: OverflowValue): this;
428
-
429
- // Visibility
430
- visibility(value: VisibilityValue): this;
431
-
432
- // Object fit/position
433
- objectFit(value: ObjectFitValue): this;
434
- objectPosition(value: string): this;
435
-
436
- // List
437
- listStyle(value: string): this;
438
- listStyleType(value: ListStyleTypeValue): this;
439
- listStylePosition(value: ListStylePositionValue): this;
440
- listStyleImage(value: CSSBackgroundImageValue | "none"): this;
441
-
442
- // Table
443
- borderCollapse(value: BorderCollapseValue): this;
444
- borderSpacing(value: CSSLengthValue): this;
445
- captionSide(value: CaptionSideValue): this;
446
- emptyCells(value: EmptyCellsValue): this;
447
- tableLayout(value: TableLayoutValue): this;
448
-
449
- // Content
450
- content(value: CSSContentValue | "normal" | "none"): this;
451
- quotes(value: string | "none"): this;
452
- counterReset(value: string | "none"): this;
453
- counterIncrement(value: string | "none"): this;
454
-
455
- // User interface
456
- appearance(value: AppearanceValue): this;
457
- userSelect(value: UserSelectValue): this;
458
- pointerEvents(value: PointerEventsValue): this;
459
- resize(value: ResizeValue): this;
460
- scrollBehavior(value: ScrollBehaviorValue): this;
461
-
462
- // Clip
463
- clip(value: string | "auto"): this;
464
- clipPath(value: string | "none"): this;
465
-
466
- // Isolation
467
- isolation(value: IsolationValue): this;
468
-
469
- // Mix blend mode
470
- mixBlendMode(value: MixBlendModeValue): this;
471
-
472
- // Will change
473
- willChange(value: string | "auto"): this;
474
-
475
- // Contain
476
- contain(value: ContainValue): this;
477
-
478
- // Page break
479
- pageBreakBefore(value: PageBreakValue): this;
480
- pageBreakAfter(value: PageBreakValue): this;
481
- pageBreakInside(value: PageBreakValue): this;
482
-
483
- // Break
484
- breakBefore(value: BreakValue): this;
485
- breakAfter(value: BreakValue): this;
486
- breakInside(value: BreakValue): this;
487
-
488
- // Orphans and widows
489
- orphans(value: number | string): this;
490
- widows(value: number | string): this;
491
-
492
- // Column
493
- columnCount(value: number | "auto" | string): this;
494
- columnFill(value: ColumnFillValue): this;
495
- columnGap(value: CSSLengthValue | "normal"): this;
496
- columnRule(value: string): this;
497
- columnRuleColor(value: CSSColorValue): this;
498
- columnRuleStyle(value: ColumnRuleStyleValue): this;
499
- columnRuleWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
500
- columnSpan(value: ColumnSpanValue): this;
501
- columnWidth(value: CSSLengthValue | "auto"): this;
502
- columns(value: string): this;
503
-
504
- // Interaction
505
- cursor(value: CursorValue): this;
506
-
507
- // Layout - Additional
508
- aspectRatio(value: CSSAspectRatioValue): this;
509
- clear(value: ClearValue): this;
510
- float(value: FloatValue): this;
511
- order(value: number | string): this;
512
-
513
- // Flexbox - Place properties
514
- placeContent(value: string): this;
515
- placeItems(value: string): this;
516
- placeSelf(value: string): this;
517
-
518
- // Text - Additional
519
- hyphens(value: HyphensValue): this;
520
- lineBreak(value: LineBreakValue): this;
521
- wordBreak(value: WordBreakValue): this;
522
- textOrientation(value: TextOrientationValue): this;
523
- writingMode(value: WritingModeValue): this;
524
- direction(value: DirectionValue): this;
525
- unicodeBidi(value: UnicodeBidiValue): this;
526
-
527
- // Background - Additional
528
- backgroundBlendMode(value: BackgroundBlendModeValue): this;
529
- backgroundPositionX(value: string): this;
530
- backgroundPositionY(value: string): this;
531
-
532
- // Border Image
533
- borderImage(value: string): this;
534
- borderImageSource(value: CSSBackgroundImageValue | "none"): this;
535
- borderImageSlice(value: string | number): this;
536
- borderImageWidth(value: CSSLengthValue | number): this;
537
- borderImageOutset(value: CSSLengthValue | number): this;
538
- borderImageRepeat(value: BackgroundRepeatValue): this;
539
-
540
- // Logical Properties - Inset
541
- inset(value: CSSLengthValue | "auto"): this;
542
- insetBlock(value: CSSLengthValue): this;
543
- insetBlockStart(value: CSSLengthValue | "auto"): this;
544
- insetBlockEnd(value: CSSLengthValue | "auto"): this;
545
- insetInline(value: CSSLengthValue): this;
546
- insetInlineStart(value: CSSLengthValue | "auto"): this;
547
- insetInlineEnd(value: CSSLengthValue | "auto"): this;
548
-
549
- // Logical Properties - Margin
550
- marginBlock(value: CSSLengthValue | "auto"): this;
551
- marginBlockStart(value: CSSLengthValue | "auto"): this;
552
- marginBlockEnd(value: CSSLengthValue | "auto"): this;
553
- marginInline(value: CSSLengthValue | "auto"): this;
554
- marginInlineStart(value: CSSLengthValue | "auto"): this;
555
- marginInlineEnd(value: CSSLengthValue | "auto"): this;
556
-
557
- // Logical Properties - Padding
558
- paddingBlock(value: CSSLengthValue): this;
559
- paddingBlockStart(value: CSSLengthValue): this;
560
- paddingBlockEnd(value: CSSLengthValue): this;
561
- paddingInline(value: CSSLengthValue): this;
562
- paddingInlineStart(value: CSSLengthValue): this;
563
- paddingInlineEnd(value: CSSLengthValue): this;
564
-
565
- // Logical Properties - Size
566
- inlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
567
- blockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
568
- minInlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
569
- minBlockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
570
- maxInlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): this;
571
- maxBlockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): this;
572
-
573
- // Logical Properties - Border
574
- borderBlock(value: string): this;
575
- borderBlockStart(value: string): this;
576
- borderBlockEnd(value: string): this;
577
- borderInline(value: string): this;
578
- borderInlineStart(value: string): this;
579
- borderInlineEnd(value: string): this;
580
- borderBlockWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
581
- borderBlockStartWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
582
- borderBlockEndWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
583
- borderInlineWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
584
- borderInlineStartWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
585
- borderInlineEndWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
586
- borderBlockStyle(value: BorderStyleValue): this;
587
- borderBlockStartStyle(value: BorderStyleValue): this;
588
- borderBlockEndStyle(value: BorderStyleValue): this;
589
- borderInlineStyle(value: BorderStyleValue): this;
590
- borderInlineStartStyle(value: BorderStyleValue): this;
591
- borderInlineEndStyle(value: BorderStyleValue): this;
592
- borderBlockColor(value: CSSColorValue): this;
593
- borderBlockStartColor(value: CSSColorValue): this;
594
- borderBlockEndColor(value: CSSColorValue): this;
595
- borderInlineColor(value: CSSColorValue): this;
596
- borderInlineStartColor(value: CSSColorValue): this;
597
- borderInlineEndColor(value: CSSColorValue): this;
598
-
599
- // Logical Properties - Border Radius
600
- borderStartStartRadius(value: CSSLengthValue): this;
601
- borderStartEndRadius(value: CSSLengthValue): this;
602
- borderEndStartRadius(value: CSSLengthValue): this;
603
- borderEndEndRadius(value: CSSLengthValue): this;
604
-
605
- // Scroll
606
- scrollMargin(value: CSSLengthValue): this;
607
- scrollMarginTop(value: CSSLengthValue): this;
608
- scrollMarginRight(value: CSSLengthValue): this;
609
- scrollMarginBottom(value: CSSLengthValue): this;
610
- scrollMarginLeft(value: CSSLengthValue): this;
611
- scrollPadding(value: CSSLengthValue): this;
612
- scrollPaddingTop(value: CSSLengthValue): this;
613
- scrollPaddingRight(value: CSSLengthValue): this;
614
- scrollPaddingBottom(value: CSSLengthValue): this;
615
- scrollPaddingLeft(value: CSSLengthValue): this;
616
- overscrollBehavior(value: OverscrollBehaviorValue): this;
617
- overscrollBehaviorX(value: OverscrollBehaviorValue): this;
618
- overscrollBehaviorY(value: OverscrollBehaviorValue): this;
619
-
620
- // Caret
621
- caretColor(value: CaretColorValue): this;
622
- caretShape(value: CaretShapeValue): this;
623
- caretAnimation(value: string): this;
624
-
625
- // Other
626
- imageRendering(value: ImageRenderingValue): this;
627
- colorScheme(value: ColorSchemeValue): this;
628
- contentVisibility(value: ContentVisibilityValue): this;
629
- touchAction(value: TouchActionValue): this;
630
-
631
- // Container Queries
632
- containerType(value: ContainerTypeValue): this;
633
- containerName(value: string): this;
634
- container(value: string): this;
635
-
636
- // Font - Additional
637
- fontFeatureSettings(value: string): this;
638
- fontKerning(value: FontKerningValue): this;
639
- fontSynthesis(value: FontSynthesisValue): this;
640
- fontOpticalSizing(value: FontOpticalSizingValue): this;
641
- fontDisplay(value: FontDisplayValue): this;
642
- fontVariantCaps(value: FontVariantCapsValue): this;
643
- fontVariantNumeric(value: string): this;
644
- fontVariantLigatures(value: string): this;
645
- fontVariantEastAsian(value: string): this;
646
- fontVariantAlternates(value: string): this;
647
- fontVariantPosition(value: string): this;
648
-
649
- // Text - Additional
650
- textRendering(value: TextRenderingValue): this;
651
- textCombineUpright(value: TextCombineUprightValue): this;
652
- textSizeAdjust(value: string | "auto" | "none" | `${number}%`): this;
653
-
654
- // Mask
655
- mask(value: string): this;
656
- maskImage(value: CSSBackgroundImageValue | "none"): this;
657
- maskMode(value: string): this;
658
- maskRepeat(value: BackgroundRepeatValue): this;
659
- maskPosition(value: string): this;
660
- maskSize(value: CSSLengthValue | "auto" | "cover" | "contain"): this;
661
- maskOrigin(value: BackgroundOriginValue): this;
662
- maskClip(value: BackgroundClipValue): this;
663
- maskComposite(value: MaskCompositeValue): this;
664
-
665
- // Clip
666
- clipRule(value: ClipRuleValue): this;
667
-
668
- // Grid - Additional
669
- gridColumnGap(value: CSSLengthValue): this;
670
- gridRowGap(value: CSSLengthValue): this;
671
- gridGap(value: CSSLengthValue): this;
672
- }
673
-
674
- // Utility functions available globally (like HTML tags)
675
- // Display
676
- function display(value: DisplayValue): StyleBuilder;
677
- function flex(value?: CSSLengthValue | "auto" | "initial" | "none" | "1" | "0"): StyleBuilder;
678
- function grid(): StyleBuilder;
679
-
680
- // Colors
681
- function bg(color: CSSColorValue): StyleBuilder;
682
- function color(colorValue: CSSColorValue): StyleBuilder;
683
- function accentColor(value: CSSColorValue): StyleBuilder;
684
-
685
- // Typography
686
- function fontSize(size: CSSLengthValue): StyleBuilder;
687
- function fontWeight(value: FontWeightValue): StyleBuilder;
688
- function fontFamily(value: CSSFontFamilyValue): StyleBuilder;
689
- function lineHeight(value: CSSLengthValue | "normal" | number): StyleBuilder;
690
- function letterSpacing(value: CSSLengthValue | "normal"): StyleBuilder;
691
- function textAlign(value: TextAlignValue): StyleBuilder;
692
- function textDecoration(value: TextDecorationValue): StyleBuilder;
693
- function bold(): StyleBuilder;
694
- function fontStyle(value: FontStyleValue): StyleBuilder;
695
- function fontVariant(value: string): StyleBuilder;
696
- function fontStretch(value: string): StyleBuilder;
697
- function textTransform(value: TextTransformValue): StyleBuilder;
698
- function textIndent(value: CSSLengthValue): StyleBuilder;
699
- function textOverflow(value: TextOverflowValue): StyleBuilder;
700
- function textShadow(value: string): StyleBuilder;
701
- function whiteSpace(value: WhiteSpaceValue): StyleBuilder;
702
- function wordSpacing(value: CSSLengthValue | "normal"): StyleBuilder;
703
- function wordWrap(value: WordWrapValue): StyleBuilder;
704
- function overflowWrap(value: OverflowWrapValue): StyleBuilder;
705
- function textAlignLast(value: TextAlignLastValue): StyleBuilder;
706
- function textJustify(value: TextJustifyValue): StyleBuilder;
707
- function textDecorationLine(value: TextDecorationLineValue): StyleBuilder;
708
- function textDecorationColor(value: CSSColorValue): StyleBuilder;
709
- function textDecorationStyle(value: TextDecorationStyleValue): StyleBuilder;
710
- function textDecorationThickness(value: CSSLengthValue | "auto" | "from-font"): StyleBuilder;
711
- function textUnderlineOffset(value: CSSLengthValue | "auto"): StyleBuilder;
712
- function verticalAlign(value: VerticalAlignValue): StyleBuilder;
713
-
714
- // Layout
715
- function position(value: PositionValue): StyleBuilder;
716
- function padding(value: CSSLengthValue): StyleBuilder;
717
- function paddingTop(value: CSSLengthValue): StyleBuilder;
718
- function paddingRight(value: CSSLengthValue): StyleBuilder;
719
- function paddingBottom(value: CSSLengthValue): StyleBuilder;
720
- function paddingLeft(value: CSSLengthValue): StyleBuilder;
721
- function margin(value: CSSLengthValue | "auto"): StyleBuilder;
722
- function marginTop(value: CSSLengthValue | "auto"): StyleBuilder;
723
- function marginRight(value: CSSLengthValue | "auto"): StyleBuilder;
724
- function marginBottom(value: CSSLengthValue | "auto"): StyleBuilder;
725
- function marginLeft(value: CSSLengthValue | "auto"): StyleBuilder;
726
- function width(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
727
- function height(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
728
- function minWidth(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
729
- function maxWidth(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): StyleBuilder;
730
- function minHeight(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
731
- function maxHeight(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): StyleBuilder;
732
- function boxSizing(value: BoxSizingValue): StyleBuilder;
733
-
734
- // Positioning (Note: top conflicts with window.top and is skipped at runtime)
735
- // function top(value: CSSLengthValue | "auto"): StyleBuilder; // Use module import: import { top } from "nuclo"
736
- function right(value: CSSLengthValue | "auto"): StyleBuilder;
737
- function bottom(value: CSSLengthValue | "auto"): StyleBuilder;
738
- function left(value: CSSLengthValue | "auto"): StyleBuilder;
739
- function zIndex(value: number | "auto"): StyleBuilder;
740
-
741
- // Flexbox
742
- function flexDirection(value: FlexDirectionValue): StyleBuilder;
743
- function alignItems(value: AlignItemsValue): StyleBuilder;
744
- function justifyContent(value: JustifyContentValue): StyleBuilder;
745
- function center(): StyleBuilder;
746
- function gap(value: CSSLengthValue): StyleBuilder;
747
- function flexWrap(value: FlexWrapValue): StyleBuilder;
748
- function flexGrow(value: number | string): StyleBuilder;
749
- function flexShrink(value: number | string): StyleBuilder;
750
- function flexBasis(value: CSSLengthValue | "auto" | "content" | "fit-content"): StyleBuilder;
751
- function alignSelf(value: AlignSelfValue): StyleBuilder;
752
- function alignContent(value: AlignContentValue): StyleBuilder;
753
- function justifySelf(value: JustifySelfValue): StyleBuilder;
754
- function justifyItems(value: JustifyItemsValue): StyleBuilder;
755
-
756
- // Grid
757
- function gridTemplateColumns(value: string): StyleBuilder;
758
- function gridTemplateRows(value: string): StyleBuilder;
759
- function gridTemplateAreas(value: string): StyleBuilder;
760
- function gridColumn(value: string): StyleBuilder;
761
- function gridRow(value: string): StyleBuilder;
762
- function gridColumnStart(value: string | number | "auto"): StyleBuilder;
763
- function gridColumnEnd(value: string | number | "auto"): StyleBuilder;
764
- function gridRowStart(value: string | number | "auto"): StyleBuilder;
765
- function gridRowEnd(value: string | number | "auto"): StyleBuilder;
766
- function gridArea(value: string): StyleBuilder;
767
- function gridAutoColumns(value: CSSLengthValue): StyleBuilder;
768
- function gridAutoRows(value: CSSLengthValue): StyleBuilder;
769
- function gridAutoFlow(value: GridAutoFlowValue): StyleBuilder;
770
-
771
- // Borders
772
- function border(value: string): StyleBuilder;
773
- function borderTop(value: string): StyleBuilder;
774
- function borderRight(value: string): StyleBuilder;
775
- function borderBottom(value: string): StyleBuilder;
776
- function borderLeft(value: string): StyleBuilder;
777
- function borderWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
778
- function borderStyle(value: BorderStyleValue): StyleBuilder;
779
- function borderColor(value: CSSColorValue): StyleBuilder;
780
- function borderTopWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
781
- function borderRightWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
782
- function borderBottomWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
783
- function borderLeftWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
784
- function borderTopStyle(value: BorderStyleValue): StyleBuilder;
785
- function borderRightStyle(value: BorderStyleValue): StyleBuilder;
786
- function borderBottomStyle(value: BorderStyleValue): StyleBuilder;
787
- function borderLeftStyle(value: BorderStyleValue): StyleBuilder;
788
- function borderTopColor(value: CSSColorValue): StyleBuilder;
789
- function borderRightColor(value: CSSColorValue): StyleBuilder;
790
- function borderBottomColor(value: CSSColorValue): StyleBuilder;
791
- function borderLeftColor(value: CSSColorValue): StyleBuilder;
792
- function borderRadius(value: CSSLengthValue): StyleBuilder;
793
- function borderTopLeftRadius(value: CSSLengthValue): StyleBuilder;
794
- function borderTopRightRadius(value: CSSLengthValue): StyleBuilder;
795
- function borderBottomLeftRadius(value: CSSLengthValue): StyleBuilder;
796
- function borderBottomRightRadius(value: CSSLengthValue): StyleBuilder;
797
-
798
- // Outline
799
- function outline(value: string): StyleBuilder;
800
- function outlineWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
801
- function outlineStyle(value: OutlineStyleValue): StyleBuilder;
802
- function outlineColor(value: CSSColorValue): StyleBuilder;
803
- function outlineOffset(value: CSSLengthValue): StyleBuilder;
804
-
805
- // Background
806
- function backgroundColor(value: CSSColorValue): StyleBuilder;
807
- function backgroundImage(value: CSSBackgroundImageValue | "none"): StyleBuilder;
808
- function backgroundRepeat(value: BackgroundRepeatValue): StyleBuilder;
809
- function backgroundPosition(value: string): StyleBuilder;
810
- function backgroundSize(value: CSSLengthValue | "auto" | "cover" | "contain"): StyleBuilder;
811
- function backgroundAttachment(value: BackgroundAttachmentValue): StyleBuilder;
812
- function backgroundClip(value: BackgroundClipValue): StyleBuilder;
813
- function backgroundOrigin(value: BackgroundOriginValue): StyleBuilder;
814
-
815
- // Effects
816
- function boxShadow(value: string | "none"): StyleBuilder;
817
- function opacity(value: number | string): StyleBuilder;
818
- function transition(value: string): StyleBuilder;
819
- function transitionProperty(value: string | "none" | "all"): StyleBuilder;
820
- function transitionDuration(value: string | number): StyleBuilder;
821
- function transitionTimingFunction(value: CSSTimingFunctionValue): StyleBuilder;
822
- function transitionDelay(value: string | number): StyleBuilder;
823
-
824
- // Transform
825
- function transform(value: CSSTransformValue | "none"): StyleBuilder;
826
- function transformOrigin(value: string): StyleBuilder;
827
- function transformStyle(value: TransformStyleValue): StyleBuilder;
828
- function perspective(value: CSSLengthValue | "none"): StyleBuilder;
829
- function perspectiveOrigin(value: string): StyleBuilder;
830
- function backfaceVisibility(value: BackfaceVisibilityValue): StyleBuilder;
831
-
832
- // Animation
833
- function animation(value: string): StyleBuilder;
834
- function animationName(value: CSSAnimationNameValue): StyleBuilder;
835
- function animationDuration(value: string | number): StyleBuilder;
836
- function animationTimingFunction(value: CSSTimingFunctionValue): StyleBuilder;
837
- function animationDelay(value: string | number): StyleBuilder;
838
- function animationIterationCount(value: number | "infinite" | string): StyleBuilder;
839
- function animationDirection(value: AnimationDirectionValue): StyleBuilder;
840
- function animationFillMode(value: AnimationFillModeValue): StyleBuilder;
841
- function animationPlayState(value: AnimationPlayStateValue): StyleBuilder;
842
-
843
- // Filter (Note: conflicts with SVG filter element, use module import if needed)
844
- // function filter(value: CSSFilterValue | "none"): StyleBuilder; // Use: import { filter } from "nuclo"
845
- function backdropFilter(value: CSSFilterValue | "none"): StyleBuilder;
846
-
847
- // Overflow
848
- function overflow(value: OverflowValue): StyleBuilder;
849
- function overflowX(value: OverflowValue): StyleBuilder;
850
- function overflowY(value: OverflowValue): StyleBuilder;
851
-
852
- // Visibility
853
- function visibility(value: VisibilityValue): StyleBuilder;
854
-
855
- // Object fit/position
856
- function objectFit(value: ObjectFitValue): StyleBuilder;
857
- function objectPosition(value: string): StyleBuilder;
858
-
859
- // List
860
- function listStyle(value: string): StyleBuilder;
861
- function listStyleType(value: ListStyleTypeValue): StyleBuilder;
862
- function listStylePosition(value: ListStylePositionValue): StyleBuilder;
863
- function listStyleImage(value: CSSBackgroundImageValue | "none"): StyleBuilder;
864
-
865
- // Table
866
- function borderCollapse(value: BorderCollapseValue): StyleBuilder;
867
- function borderSpacing(value: CSSLengthValue): StyleBuilder;
868
- function captionSide(value: CaptionSideValue): StyleBuilder;
869
- function emptyCells(value: EmptyCellsValue): StyleBuilder;
870
- function tableLayout(value: TableLayoutValue): StyleBuilder;
871
-
872
- // Content
873
- function content(value: CSSContentValue | "normal" | "none"): StyleBuilder;
874
- function quotes(value: string | "none"): StyleBuilder;
875
- function counterReset(value: string | "none"): StyleBuilder;
876
- function counterIncrement(value: string | "none"): StyleBuilder;
877
-
878
- // User interface
879
- function appearance(value: AppearanceValue): StyleBuilder;
880
- function userSelect(value: UserSelectValue): StyleBuilder;
881
- function pointerEvents(value: PointerEventsValue): StyleBuilder;
882
- function resize(value: ResizeValue): StyleBuilder;
883
- function scrollBehavior(value: ScrollBehaviorValue): StyleBuilder;
884
-
885
- // Clip (Note: clipPath conflicts with SVG clipPath element, use module import if needed)
886
- function clip(value: string | "auto"): StyleBuilder;
887
- // function clipPath(value: string | "none"): StyleBuilder; // Use: import { clipPath } from "nuclo"
888
-
889
- // Isolation
890
- function isolation(value: IsolationValue): StyleBuilder;
891
-
892
- // Mix blend mode
893
- function mixBlendMode(value: MixBlendModeValue): StyleBuilder;
894
-
895
- // Will change
896
- function willChange(value: string | "auto"): StyleBuilder;
897
-
898
- // Contain
899
- function contain(value: ContainValue): StyleBuilder;
900
-
901
- // Page break
902
- function pageBreakBefore(value: PageBreakValue): StyleBuilder;
903
- function pageBreakAfter(value: PageBreakValue): StyleBuilder;
904
- function pageBreakInside(value: PageBreakValue): StyleBuilder;
905
-
906
- // Break
907
- function breakBefore(value: BreakValue): StyleBuilder;
908
- function breakAfter(value: BreakValue): StyleBuilder;
909
- function breakInside(value: BreakValue): StyleBuilder;
910
-
911
- // Orphans and widows
912
- function orphans(value: number | string): StyleBuilder;
913
- function widows(value: number | string): StyleBuilder;
914
-
915
- // Column
916
- function columnCount(value: number | "auto" | string): StyleBuilder;
917
- function columnFill(value: ColumnFillValue): StyleBuilder;
918
- function columnGap(value: CSSLengthValue | "normal"): StyleBuilder;
919
- function columnRule(value: string): StyleBuilder;
920
- function columnRuleColor(value: CSSColorValue): StyleBuilder;
921
- function columnRuleStyle(value: ColumnRuleStyleValue): StyleBuilder;
922
- function columnRuleWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
923
- function columnSpan(value: ColumnSpanValue): StyleBuilder;
924
- function columnWidth(value: CSSLengthValue | "auto"): StyleBuilder;
925
- function columns(value: string): StyleBuilder;
926
-
927
- // Interaction
928
- function cursor(value: CursorValue): StyleBuilder;
929
-
930
- // Layout - Additional
931
- function aspectRatio(value: CSSAspectRatioValue): StyleBuilder;
932
- function clear(value: ClearValue): StyleBuilder;
933
- function float(value: FloatValue): StyleBuilder;
934
- function order(value: number | string): StyleBuilder;
935
-
936
- // Flexbox - Place properties
937
- function placeContent(value: string): StyleBuilder;
938
- function placeItems(value: string): StyleBuilder;
939
- function placeSelf(value: string): StyleBuilder;
940
-
941
- // Text - Additional
942
- function hyphens(value: HyphensValue): StyleBuilder;
943
- function lineBreak(value: LineBreakValue): StyleBuilder;
944
- function wordBreak(value: WordBreakValue): StyleBuilder;
945
- function textOrientation(value: TextOrientationValue): StyleBuilder;
946
- function writingMode(value: WritingModeValue): StyleBuilder;
947
- function direction(value: DirectionValue): StyleBuilder;
948
- function unicodeBidi(value: UnicodeBidiValue): StyleBuilder;
949
-
950
- // Background - Additional
951
- function backgroundBlendMode(value: BackgroundBlendModeValue): StyleBuilder;
952
- function backgroundPositionX(value: string): StyleBuilder;
953
- function backgroundPositionY(value: string): StyleBuilder;
954
-
955
- // Border Image
956
- function borderImage(value: string): StyleBuilder;
957
- function borderImageSource(value: CSSBackgroundImageValue | "none"): StyleBuilder;
958
- function borderImageSlice(value: string | number): StyleBuilder;
959
- function borderImageWidth(value: CSSLengthValue | number): StyleBuilder;
960
- function borderImageOutset(value: CSSLengthValue | number): StyleBuilder;
961
- function borderImageRepeat(value: BackgroundRepeatValue): StyleBuilder;
962
-
963
- // Logical Properties - Inset
964
- function inset(value: CSSLengthValue | "auto"): StyleBuilder;
965
- function insetBlock(value: CSSLengthValue): StyleBuilder;
966
- function insetBlockStart(value: CSSLengthValue | "auto"): StyleBuilder;
967
- function insetBlockEnd(value: CSSLengthValue | "auto"): StyleBuilder;
968
- function insetInline(value: CSSLengthValue): StyleBuilder;
969
- function insetInlineStart(value: CSSLengthValue | "auto"): StyleBuilder;
970
- function insetInlineEnd(value: CSSLengthValue | "auto"): StyleBuilder;
971
-
972
- // Logical Properties - Margin
973
- function marginBlock(value: CSSLengthValue | "auto"): StyleBuilder;
974
- function marginBlockStart(value: CSSLengthValue | "auto"): StyleBuilder;
975
- function marginBlockEnd(value: CSSLengthValue | "auto"): StyleBuilder;
976
- function marginInline(value: CSSLengthValue | "auto"): StyleBuilder;
977
- function marginInlineStart(value: CSSLengthValue | "auto"): StyleBuilder;
978
- function marginInlineEnd(value: CSSLengthValue | "auto"): StyleBuilder;
979
-
980
- // Logical Properties - Padding
981
- function paddingBlock(value: CSSLengthValue): StyleBuilder;
982
- function paddingBlockStart(value: CSSLengthValue): StyleBuilder;
983
- function paddingBlockEnd(value: CSSLengthValue): StyleBuilder;
984
- function paddingInline(value: CSSLengthValue): StyleBuilder;
985
- function paddingInlineStart(value: CSSLengthValue): StyleBuilder;
986
- function paddingInlineEnd(value: CSSLengthValue): StyleBuilder;
987
-
988
- // Logical Properties - Size
989
- function inlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
990
- function blockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
991
- function minInlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
992
- function minBlockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
993
- function maxInlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): StyleBuilder;
994
- function maxBlockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): StyleBuilder;
995
-
996
- // Logical Properties - Border
997
- function borderBlock(value: string): StyleBuilder;
998
- function borderBlockStart(value: string): StyleBuilder;
999
- function borderBlockEnd(value: string): StyleBuilder;
1000
- function borderInline(value: string): StyleBuilder;
1001
- function borderInlineStart(value: string): StyleBuilder;
1002
- function borderInlineEnd(value: string): StyleBuilder;
1003
- function borderBlockWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1004
- function borderBlockStartWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1005
- function borderBlockEndWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1006
- function borderInlineWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1007
- function borderInlineStartWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1008
- function borderInlineEndWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1009
- function borderBlockStyle(value: BorderStyleValue): StyleBuilder;
1010
- function borderBlockStartStyle(value: BorderStyleValue): StyleBuilder;
1011
- function borderBlockEndStyle(value: BorderStyleValue): StyleBuilder;
1012
- function borderInlineStyle(value: BorderStyleValue): StyleBuilder;
1013
- function borderInlineStartStyle(value: BorderStyleValue): StyleBuilder;
1014
- function borderInlineEndStyle(value: BorderStyleValue): StyleBuilder;
1015
- function borderBlockColor(value: CSSColorValue): StyleBuilder;
1016
- function borderBlockStartColor(value: CSSColorValue): StyleBuilder;
1017
- function borderBlockEndColor(value: CSSColorValue): StyleBuilder;
1018
- function borderInlineColor(value: CSSColorValue): StyleBuilder;
1019
- function borderInlineStartColor(value: CSSColorValue): StyleBuilder;
1020
- function borderInlineEndColor(value: CSSColorValue): StyleBuilder;
1021
-
1022
- // Logical Properties - Border Radius
1023
- function borderStartStartRadius(value: CSSLengthValue): StyleBuilder;
1024
- function borderStartEndRadius(value: CSSLengthValue): StyleBuilder;
1025
- function borderEndStartRadius(value: CSSLengthValue): StyleBuilder;
1026
- function borderEndEndRadius(value: CSSLengthValue): StyleBuilder;
1027
-
1028
- // Scroll
1029
- function scrollMargin(value: CSSLengthValue): StyleBuilder;
1030
- function scrollMarginTop(value: CSSLengthValue): StyleBuilder;
1031
- function scrollMarginRight(value: CSSLengthValue): StyleBuilder;
1032
- function scrollMarginBottom(value: CSSLengthValue): StyleBuilder;
1033
- function scrollMarginLeft(value: CSSLengthValue): StyleBuilder;
1034
- function scrollPadding(value: CSSLengthValue): StyleBuilder;
1035
- function scrollPaddingTop(value: CSSLengthValue): StyleBuilder;
1036
- function scrollPaddingRight(value: CSSLengthValue): StyleBuilder;
1037
- function scrollPaddingBottom(value: CSSLengthValue): StyleBuilder;
1038
- function scrollPaddingLeft(value: CSSLengthValue): StyleBuilder;
1039
- function overscrollBehavior(value: OverscrollBehaviorValue): StyleBuilder;
1040
- function overscrollBehaviorX(value: OverscrollBehaviorValue): StyleBuilder;
1041
- function overscrollBehaviorY(value: OverscrollBehaviorValue): StyleBuilder;
1042
-
1043
- // Caret
1044
- function caretColor(value: CaretColorValue): StyleBuilder;
1045
- function caretShape(value: CaretShapeValue): StyleBuilder;
1046
- function caretAnimation(value: string): StyleBuilder;
1047
-
1048
- // Other
1049
- function imageRendering(value: ImageRenderingValue): StyleBuilder;
1050
- function colorScheme(value: ColorSchemeValue): StyleBuilder;
1051
- function contentVisibility(value: ContentVisibilityValue): StyleBuilder;
1052
- function touchAction(value: TouchActionValue): StyleBuilder;
1053
-
1054
- // Container Queries
1055
- function containerType(value: ContainerTypeValue): StyleBuilder;
1056
- function containerName(value: string): StyleBuilder;
1057
- function container(value: string): StyleBuilder;
1058
-
1059
- // Font - Additional
1060
- function fontFeatureSettings(value: string): StyleBuilder;
1061
- function fontKerning(value: FontKerningValue): StyleBuilder;
1062
- function fontSynthesis(value: FontSynthesisValue): StyleBuilder;
1063
- function fontOpticalSizing(value: FontOpticalSizingValue): StyleBuilder;
1064
- function fontDisplay(value: FontDisplayValue): StyleBuilder;
1065
- function fontVariantCaps(value: FontVariantCapsValue): StyleBuilder;
1066
- function fontVariantNumeric(value: string): StyleBuilder;
1067
- function fontVariantLigatures(value: string): StyleBuilder;
1068
- function fontVariantEastAsian(value: string): StyleBuilder;
1069
- function fontVariantAlternates(value: string): StyleBuilder;
1070
- function fontVariantPosition(value: string): StyleBuilder;
1071
-
1072
- // Text - Additional
1073
- function textRendering(value: TextRenderingValue): StyleBuilder;
1074
- function textCombineUpright(value: TextCombineUprightValue): StyleBuilder;
1075
- function textSizeAdjust(value: string | "auto" | "none" | `${number}%`): StyleBuilder;
1076
-
1077
- // Mask (Note: mask conflicts with SVG mask element, use module import if needed)
1078
- // function mask(value: string): StyleBuilder; // Use: import { mask } from "nuclo"
1079
- function maskImage(value: CSSBackgroundImageValue | "none"): StyleBuilder;
1080
- function maskMode(value: string): StyleBuilder;
1081
- function maskRepeat(value: BackgroundRepeatValue): StyleBuilder;
1082
- function maskPosition(value: string): StyleBuilder;
1083
- function maskSize(value: CSSLengthValue | "auto" | "cover" | "contain"): StyleBuilder;
1084
- function maskOrigin(value: BackgroundOriginValue): StyleBuilder;
1085
- function maskClip(value: BackgroundClipValue): StyleBuilder;
1086
- function maskComposite(value: MaskCompositeValue): StyleBuilder;
1087
-
1088
- // Clip
1089
- function clipRule(value: ClipRuleValue): StyleBuilder;
1090
-
1091
- // Grid - Additional
1092
- function gridColumnGap(value: CSSLengthValue): StyleBuilder;
1093
- function gridRowGap(value: CSSLengthValue): StyleBuilder;
1094
- function gridGap(value: CSSLengthValue): StyleBuilder;
1095
- }
1096
-
1097
- // Export StyleBuilder class with all its methods (for module imports)
1098
- export class StyleBuilder {
1099
- getStyles(): Record<string, string>;
1100
- add(property: string, value: string): this;
1101
-
1102
- // Display
1103
- display(value: DisplayValue): this;
1104
- flex(value?: CSSLengthValue | "auto" | "initial" | "none" | "1" | "0"): this;
1105
- grid(): this;
1106
-
1107
- // Colors
1108
- bg(color: CSSColorValue): this;
1109
- color(color: CSSColorValue): this;
1110
- accentColor(value: CSSColorValue): this;
1111
-
1112
- // Typography
1113
- fontSize(size: CSSLengthValue): this;
1114
- fontWeight(value: FontWeightValue): this;
1115
- fontFamily(value: CSSFontFamilyValue): this;
1116
- lineHeight(value: CSSLengthValue | "normal" | number): this;
1117
- letterSpacing(value: CSSLengthValue | "normal"): this;
1118
- textAlign(value: TextAlignValue): this;
1119
- textDecoration(value: TextDecorationValue): this;
1120
- bold(): this;
1121
- fontStyle(value: FontStyleValue): this;
1122
- fontVariant(value: string): this;
1123
- fontStretch(value: string): this;
1124
- textTransform(value: TextTransformValue): this;
1125
- textIndent(value: CSSLengthValue): this;
1126
- textOverflow(value: TextOverflowValue): this;
1127
- textShadow(value: string): this;
1128
- whiteSpace(value: WhiteSpaceValue): this;
1129
- wordSpacing(value: CSSLengthValue | "normal"): this;
1130
- wordWrap(value: WordWrapValue): this;
1131
- overflowWrap(value: OverflowWrapValue): this;
1132
- textAlignLast(value: TextAlignLastValue): this;
1133
- textJustify(value: TextJustifyValue): this;
1134
- textDecorationLine(value: TextDecorationLineValue): this;
1135
- textDecorationColor(value: CSSColorValue): this;
1136
- textDecorationStyle(value: TextDecorationStyleValue): this;
1137
- textDecorationThickness(value: CSSLengthValue | "auto" | "from-font"): this;
1138
- textUnderlineOffset(value: CSSLengthValue | "auto"): this;
1139
- verticalAlign(value: VerticalAlignValue): this;
1140
-
1141
- // Layout
1142
- position(value: PositionValue): this;
1143
- padding(value: CSSLengthValue): this;
1144
- paddingTop(value: CSSLengthValue): this;
1145
- paddingRight(value: CSSLengthValue): this;
1146
- paddingBottom(value: CSSLengthValue): this;
1147
- paddingLeft(value: CSSLengthValue): this;
1148
- margin(value: CSSLengthValue | "auto"): this;
1149
- marginTop(value: CSSLengthValue | "auto"): this;
1150
- marginRight(value: CSSLengthValue | "auto"): this;
1151
- marginBottom(value: CSSLengthValue | "auto"): this;
1152
- marginLeft(value: CSSLengthValue | "auto"): this;
1153
- width(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
1154
- height(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
1155
- minWidth(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
1156
- maxWidth(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): this;
1157
- minHeight(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
1158
- maxHeight(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): this;
1159
- boxSizing(value: BoxSizingValue): this;
1160
-
1161
- // Positioning
1162
- top(value: CSSLengthValue | "auto"): this;
1163
- right(value: CSSLengthValue | "auto"): this;
1164
- bottom(value: CSSLengthValue | "auto"): this;
1165
- left(value: CSSLengthValue | "auto"): this;
1166
- zIndex(value: number | "auto"): this;
1167
-
1168
- // Flexbox
1169
- flexDirection(value: FlexDirectionValue): this;
1170
- alignItems(value: AlignItemsValue): this;
1171
- justifyContent(value: JustifyContentValue): this;
1172
- center(): this;
1173
- gap(value: CSSLengthValue): this;
1174
- flexWrap(value: FlexWrapValue): this;
1175
- flexGrow(value: number | string): this;
1176
- flexShrink(value: number | string): this;
1177
- flexBasis(value: CSSLengthValue | "auto" | "content" | "fit-content"): this;
1178
- alignSelf(value: AlignSelfValue): this;
1179
- alignContent(value: AlignContentValue): this;
1180
- justifySelf(value: JustifySelfValue): this;
1181
- justifyItems(value: JustifyItemsValue): this;
1182
-
1183
- // Grid
1184
- gridTemplateColumns(value: string): this;
1185
- gridTemplateRows(value: string): this;
1186
- gridTemplateAreas(value: string): this;
1187
- gridColumn(value: string): this;
1188
- gridRow(value: string): this;
1189
- gridColumnStart(value: string | number | "auto"): this;
1190
- gridColumnEnd(value: string | number | "auto"): this;
1191
- gridRowStart(value: string | number | "auto"): this;
1192
- gridRowEnd(value: string | number | "auto"): this;
1193
- gridArea(value: string): this;
1194
- gridAutoColumns(value: CSSLengthValue): this;
1195
- gridAutoRows(value: CSSLengthValue): this;
1196
- gridAutoFlow(value: GridAutoFlowValue): this;
1197
-
1198
- // Borders
1199
- border(value: string): this;
1200
- borderTop(value: string): this;
1201
- borderRight(value: string): this;
1202
- borderBottom(value: string): this;
1203
- borderLeft(value: string): this;
1204
- borderWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1205
- borderStyle(value: BorderStyleValue): this;
1206
- borderColor(value: CSSColorValue): this;
1207
- borderTopWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1208
- borderRightWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1209
- borderBottomWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1210
- borderLeftWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1211
- borderTopStyle(value: BorderStyleValue): this;
1212
- borderRightStyle(value: BorderStyleValue): this;
1213
- borderBottomStyle(value: BorderStyleValue): this;
1214
- borderLeftStyle(value: BorderStyleValue): this;
1215
- borderTopColor(value: CSSColorValue): this;
1216
- borderRightColor(value: CSSColorValue): this;
1217
- borderBottomColor(value: CSSColorValue): this;
1218
- borderLeftColor(value: CSSColorValue): this;
1219
- borderRadius(value: CSSLengthValue): this;
1220
- borderTopLeftRadius(value: CSSLengthValue): this;
1221
- borderTopRightRadius(value: CSSLengthValue): this;
1222
- borderBottomLeftRadius(value: CSSLengthValue): this;
1223
- borderBottomRightRadius(value: CSSLengthValue): this;
1224
-
1225
- // Outline
1226
- outline(value: string): this;
1227
- outlineWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1228
- outlineStyle(value: OutlineStyleValue): this;
1229
- outlineColor(value: CSSColorValue): this;
1230
- outlineOffset(value: CSSLengthValue): this;
1231
-
1232
- // Background
1233
- backgroundColor(value: CSSColorValue): this;
1234
- backgroundImage(value: CSSBackgroundImageValue | "none"): this;
1235
- backgroundRepeat(value: BackgroundRepeatValue): this;
1236
- backgroundPosition(value: string): this;
1237
- backgroundSize(value: CSSLengthValue | "auto" | "cover" | "contain"): this;
1238
- backgroundAttachment(value: BackgroundAttachmentValue): this;
1239
- backgroundClip(value: BackgroundClipValue): this;
1240
- backgroundOrigin(value: BackgroundOriginValue): this;
1241
-
1242
- // Effects
1243
- boxShadow(value: string | "none"): this;
1244
- opacity(value: number | string): this;
1245
- transition(value: string): this;
1246
- transitionProperty(value: string | "none" | "all"): this;
1247
- transitionDuration(value: string | number): this;
1248
- transitionTimingFunction(value: CSSTimingFunctionValue): this;
1249
- transitionDelay(value: string | number): this;
1250
-
1251
- // Transform
1252
- transform(value: CSSTransformValue | "none"): this;
1253
- transformOrigin(value: string): this;
1254
- transformStyle(value: TransformStyleValue): this;
1255
- perspective(value: CSSLengthValue | "none"): this;
1256
- perspectiveOrigin(value: string): this;
1257
- backfaceVisibility(value: BackfaceVisibilityValue): this;
1258
-
1259
- // Animation
1260
- animation(value: string): this;
1261
- animationName(value: CSSAnimationNameValue): this;
1262
- animationDuration(value: string | number): this;
1263
- animationTimingFunction(value: CSSTimingFunctionValue): this;
1264
- animationDelay(value: string | number): this;
1265
- animationIterationCount(value: number | "infinite" | string): this;
1266
- animationDirection(value: AnimationDirectionValue): this;
1267
- animationFillMode(value: AnimationFillModeValue): this;
1268
- animationPlayState(value: AnimationPlayStateValue): this;
1269
-
1270
- // Filter
1271
- filter(value: CSSFilterValue | "none"): this;
1272
- backdropFilter(value: CSSFilterValue | "none"): this;
1273
-
1274
- // Overflow
1275
- overflow(value: OverflowValue): this;
1276
- overflowX(value: OverflowValue): this;
1277
- overflowY(value: OverflowValue): this;
1278
-
1279
- // Visibility
1280
- visibility(value: VisibilityValue): this;
1281
-
1282
- // Object fit/position
1283
- objectFit(value: ObjectFitValue): this;
1284
- objectPosition(value: string): this;
1285
-
1286
- // List
1287
- listStyle(value: string): this;
1288
- listStyleType(value: ListStyleTypeValue): this;
1289
- listStylePosition(value: ListStylePositionValue): this;
1290
- listStyleImage(value: CSSBackgroundImageValue | "none"): this;
1291
-
1292
- // Table
1293
- borderCollapse(value: BorderCollapseValue): this;
1294
- borderSpacing(value: CSSLengthValue): this;
1295
- captionSide(value: CaptionSideValue): this;
1296
- emptyCells(value: EmptyCellsValue): this;
1297
- tableLayout(value: TableLayoutValue): this;
1298
-
1299
- // Content
1300
- content(value: CSSContentValue | "normal" | "none"): this;
1301
- quotes(value: string | "none"): this;
1302
- counterReset(value: string | "none"): this;
1303
- counterIncrement(value: string | "none"): this;
1304
-
1305
- // User interface
1306
- appearance(value: AppearanceValue): this;
1307
- userSelect(value: UserSelectValue): this;
1308
- pointerEvents(value: PointerEventsValue): this;
1309
- resize(value: ResizeValue): this;
1310
- scrollBehavior(value: ScrollBehaviorValue): this;
1311
-
1312
- // Clip
1313
- clip(value: string | "auto"): this;
1314
- clipPath(value: string | "none"): this;
1315
-
1316
- // Isolation
1317
- isolation(value: IsolationValue): this;
1318
-
1319
- // Mix blend mode
1320
- mixBlendMode(value: MixBlendModeValue): this;
1321
-
1322
- // Will change
1323
- willChange(value: string | "auto"): this;
1324
-
1325
- // Contain
1326
- contain(value: ContainValue): this;
1327
-
1328
- // Page break
1329
- pageBreakBefore(value: PageBreakValue): this;
1330
- pageBreakAfter(value: PageBreakValue): this;
1331
- pageBreakInside(value: PageBreakValue): this;
1332
-
1333
- // Break
1334
- breakBefore(value: BreakValue): this;
1335
- breakAfter(value: BreakValue): this;
1336
- breakInside(value: BreakValue): this;
1337
-
1338
- // Orphans and widows
1339
- orphans(value: number | string): this;
1340
- widows(value: number | string): this;
1341
-
1342
- // Column
1343
- columnCount(value: number | "auto" | string): this;
1344
- columnFill(value: ColumnFillValue): this;
1345
- columnGap(value: CSSLengthValue | "normal"): this;
1346
- columnRule(value: string): this;
1347
- columnRuleColor(value: CSSColorValue): this;
1348
- columnRuleStyle(value: ColumnRuleStyleValue): this;
1349
- columnRuleWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1350
- columnSpan(value: ColumnSpanValue): this;
1351
- columnWidth(value: CSSLengthValue | "auto"): this;
1352
- columns(value: string): this;
1353
-
1354
- // Interaction
1355
- cursor(value: CursorValue): this;
1356
-
1357
- // Layout - Additional
1358
- aspectRatio(value: CSSAspectRatioValue): this;
1359
- clear(value: ClearValue): this;
1360
- float(value: FloatValue): this;
1361
- order(value: number | string): this;
1362
-
1363
- // Flexbox - Place properties
1364
- placeContent(value: string): this;
1365
- placeItems(value: string): this;
1366
- placeSelf(value: string): this;
1367
-
1368
- // Text - Additional
1369
- hyphens(value: HyphensValue): this;
1370
- lineBreak(value: LineBreakValue): this;
1371
- wordBreak(value: WordBreakValue): this;
1372
- textOrientation(value: TextOrientationValue): this;
1373
- writingMode(value: WritingModeValue): this;
1374
- direction(value: DirectionValue): this;
1375
- unicodeBidi(value: UnicodeBidiValue): this;
1376
-
1377
- // Background - Additional
1378
- backgroundBlendMode(value: BackgroundBlendModeValue): this;
1379
- backgroundPositionX(value: string): this;
1380
- backgroundPositionY(value: string): this;
1381
-
1382
- // Border Image
1383
- borderImage(value: string): this;
1384
- borderImageSource(value: CSSBackgroundImageValue | "none"): this;
1385
- borderImageSlice(value: string | number): this;
1386
- borderImageWidth(value: CSSLengthValue | number): this;
1387
- borderImageOutset(value: CSSLengthValue | number): this;
1388
- borderImageRepeat(value: BackgroundRepeatValue): this;
1389
-
1390
- // Logical Properties - Inset
1391
- inset(value: CSSLengthValue | "auto"): this;
1392
- insetBlock(value: CSSLengthValue): this;
1393
- insetBlockStart(value: CSSLengthValue | "auto"): this;
1394
- insetBlockEnd(value: CSSLengthValue | "auto"): this;
1395
- insetInline(value: CSSLengthValue): this;
1396
- insetInlineStart(value: CSSLengthValue | "auto"): this;
1397
- insetInlineEnd(value: CSSLengthValue | "auto"): this;
1398
-
1399
- // Logical Properties - Margin
1400
- marginBlock(value: CSSLengthValue | "auto"): this;
1401
- marginBlockStart(value: CSSLengthValue | "auto"): this;
1402
- marginBlockEnd(value: CSSLengthValue | "auto"): this;
1403
- marginInline(value: CSSLengthValue | "auto"): this;
1404
- marginInlineStart(value: CSSLengthValue | "auto"): this;
1405
- marginInlineEnd(value: CSSLengthValue | "auto"): this;
1406
-
1407
- // Logical Properties - Padding
1408
- paddingBlock(value: CSSLengthValue): this;
1409
- paddingBlockStart(value: CSSLengthValue): this;
1410
- paddingBlockEnd(value: CSSLengthValue): this;
1411
- paddingInline(value: CSSLengthValue): this;
1412
- paddingInlineStart(value: CSSLengthValue): this;
1413
- paddingInlineEnd(value: CSSLengthValue): this;
1414
-
1415
- // Logical Properties - Size
1416
- inlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
1417
- blockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
1418
- minInlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
1419
- minBlockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): this;
1420
- maxInlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): this;
1421
- maxBlockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): this;
1422
-
1423
- // Logical Properties - Border
1424
- borderBlock(value: string): this;
1425
- borderBlockStart(value: string): this;
1426
- borderBlockEnd(value: string): this;
1427
- borderInline(value: string): this;
1428
- borderInlineStart(value: string): this;
1429
- borderInlineEnd(value: string): this;
1430
- borderBlockWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1431
- borderBlockStartWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1432
- borderBlockEndWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1433
- borderInlineWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1434
- borderInlineStartWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1435
- borderInlineEndWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): this;
1436
- borderBlockStyle(value: BorderStyleValue): this;
1437
- borderBlockStartStyle(value: BorderStyleValue): this;
1438
- borderBlockEndStyle(value: BorderStyleValue): this;
1439
- borderInlineStyle(value: BorderStyleValue): this;
1440
- borderInlineStartStyle(value: BorderStyleValue): this;
1441
- borderInlineEndStyle(value: BorderStyleValue): this;
1442
- borderBlockColor(value: CSSColorValue): this;
1443
- borderBlockStartColor(value: CSSColorValue): this;
1444
- borderBlockEndColor(value: CSSColorValue): this;
1445
- borderInlineColor(value: CSSColorValue): this;
1446
- borderInlineStartColor(value: CSSColorValue): this;
1447
- borderInlineEndColor(value: CSSColorValue): this;
1448
-
1449
- // Logical Properties - Border Radius
1450
- borderStartStartRadius(value: CSSLengthValue): this;
1451
- borderStartEndRadius(value: CSSLengthValue): this;
1452
- borderEndStartRadius(value: CSSLengthValue): this;
1453
- borderEndEndRadius(value: CSSLengthValue): this;
1454
-
1455
- // Scroll
1456
- scrollMargin(value: CSSLengthValue): this;
1457
- scrollMarginTop(value: CSSLengthValue): this;
1458
- scrollMarginRight(value: CSSLengthValue): this;
1459
- scrollMarginBottom(value: CSSLengthValue): this;
1460
- scrollMarginLeft(value: CSSLengthValue): this;
1461
- scrollPadding(value: CSSLengthValue): this;
1462
- scrollPaddingTop(value: CSSLengthValue): this;
1463
- scrollPaddingRight(value: CSSLengthValue): this;
1464
- scrollPaddingBottom(value: CSSLengthValue): this;
1465
- scrollPaddingLeft(value: CSSLengthValue): this;
1466
- overscrollBehavior(value: OverscrollBehaviorValue): this;
1467
- overscrollBehaviorX(value: OverscrollBehaviorValue): this;
1468
- overscrollBehaviorY(value: OverscrollBehaviorValue): this;
1469
-
1470
- // Caret
1471
- caretColor(value: CaretColorValue): this;
1472
- caretShape(value: CaretShapeValue): this;
1473
- caretAnimation(value: string): this;
1474
-
1475
- // Other
1476
- imageRendering(value: ImageRenderingValue): this;
1477
- colorScheme(value: ColorSchemeValue): this;
1478
- contentVisibility(value: ContentVisibilityValue): this;
1479
- touchAction(value: TouchActionValue): this;
1480
-
1481
- // Container Queries
1482
- containerType(value: ContainerTypeValue): this;
1483
- containerName(value: string): this;
1484
- container(value: string): this;
1485
-
1486
- // Font - Additional
1487
- fontFeatureSettings(value: string): this;
1488
- fontKerning(value: FontKerningValue): this;
1489
- fontSynthesis(value: FontSynthesisValue): this;
1490
- fontOpticalSizing(value: FontOpticalSizingValue): this;
1491
- fontDisplay(value: FontDisplayValue): this;
1492
- fontVariantCaps(value: FontVariantCapsValue): this;
1493
- fontVariantNumeric(value: string): this;
1494
- fontVariantLigatures(value: string): this;
1495
- fontVariantEastAsian(value: string): this;
1496
- fontVariantAlternates(value: string): this;
1497
- fontVariantPosition(value: string): this;
1498
-
1499
- // Text - Additional
1500
- textRendering(value: TextRenderingValue): this;
1501
- textCombineUpright(value: TextCombineUprightValue): this;
1502
- textSizeAdjust(value: string | "auto" | "none" | `${number}%`): this;
1503
-
1504
- // Mask (Note: mask conflicts with SVG mask element, use module import if needed)
1505
- // mask(value: string): this; // Use: import { mask } from "nuclo"
1506
- maskImage(value: CSSBackgroundImageValue | "none"): this;
1507
- maskMode(value: string): this;
1508
- maskRepeat(value: BackgroundRepeatValue): this;
1509
- maskPosition(value: string): this;
1510
- maskSize(value: CSSLengthValue | "auto" | "cover" | "contain"): this;
1511
- maskOrigin(value: BackgroundOriginValue): this;
1512
- maskClip(value: BackgroundClipValue): this;
1513
- maskComposite(value: MaskCompositeValue): this;
1514
-
1515
- // Clip
1516
- clipRule(value: ClipRuleValue): this;
1517
-
1518
- // Grid - Additional
1519
- gridColumnGap(value: CSSLengthValue): this;
1520
- gridRowGap(value: CSSLengthValue): this;
1521
- gridGap(value: CSSLengthValue): this;
59
+ function createCss<const T extends ThemeConfig>(theme?: T): CssInstance<T>;
60
+
61
+ /** Themeless css() — full property/variant typing, no tokens or screens. */
62
+ function css(style: Style<object>): StyleResult;
63
+ /** Compose class lists with last-wins conflict resolution. */
64
+ function cx(...inputs: ClassInput[]): StyleResult;
65
+ /** Themeless keyframes() helper. */
66
+ function keyframes(frames: Record<string, FlatStyle<object>>): string;
67
+ /** Themeless globalStyle() helper. */
68
+ function globalStyle(selector: string, style: FlatStyle<object>): void;
1522
69
  }
1523
70
 
1524
- // Utility functions that return StyleBuilders - exported at module level
1525
- // Display
1526
- export function display(value: DisplayValue): StyleBuilder;
1527
- export function flex(value?: CSSLengthValue | "auto" | "initial" | "none" | "1" | "0"): StyleBuilder;
1528
- export function grid(): StyleBuilder;
1529
-
1530
- // Colors
1531
- export function bg(color: CSSColorValue): StyleBuilder;
1532
- export function color(colorValue: CSSColorValue): StyleBuilder;
1533
- export function accentColor(value: CSSColorValue): StyleBuilder;
1534
-
1535
- // Typography
1536
- export function fontSize(size: CSSLengthValue): StyleBuilder;
1537
- export function fontWeight(value: FontWeightValue): StyleBuilder;
1538
- export function fontFamily(value: CSSFontFamilyValue): StyleBuilder;
1539
- export function lineHeight(value: CSSLengthValue | "normal" | number): StyleBuilder;
1540
- export function letterSpacing(value: CSSLengthValue | "normal"): StyleBuilder;
1541
- export function textAlign(value: TextAlignValue): StyleBuilder;
1542
- export function textDecoration(value: TextDecorationValue): StyleBuilder;
1543
- export function bold(): StyleBuilder;
1544
- export function fontStyle(value: FontStyleValue): StyleBuilder;
1545
- export function fontVariant(value: string): StyleBuilder;
1546
- export function fontStretch(value: string): StyleBuilder;
1547
- export function textTransform(value: TextTransformValue): StyleBuilder;
1548
- export function textIndent(value: CSSLengthValue): StyleBuilder;
1549
- export function textOverflow(value: TextOverflowValue): StyleBuilder;
1550
- export function textShadow(value: string): StyleBuilder;
1551
- export function whiteSpace(value: WhiteSpaceValue): StyleBuilder;
1552
- export function wordSpacing(value: CSSLengthValue | "normal"): StyleBuilder;
1553
- export function wordWrap(value: WordWrapValue): StyleBuilder;
1554
- export function overflowWrap(value: OverflowWrapValue): StyleBuilder;
1555
- export function textAlignLast(value: TextAlignLastValue): StyleBuilder;
1556
- export function textJustify(value: TextJustifyValue): StyleBuilder;
1557
- export function textDecorationLine(value: TextDecorationLineValue): StyleBuilder;
1558
- export function textDecorationColor(value: CSSColorValue): StyleBuilder;
1559
- export function textDecorationStyle(value: TextDecorationStyleValue): StyleBuilder;
1560
- export function textDecorationThickness(value: CSSLengthValue | "auto" | "from-font"): StyleBuilder;
1561
- export function textUnderlineOffset(value: CSSLengthValue | "auto"): StyleBuilder;
1562
- export function verticalAlign(value: VerticalAlignValue): StyleBuilder;
1563
-
1564
- // Layout
1565
- export function position(value: PositionValue): StyleBuilder;
1566
- export function padding(value: CSSLengthValue): StyleBuilder;
1567
- export function paddingTop(value: CSSLengthValue): StyleBuilder;
1568
- export function paddingRight(value: CSSLengthValue): StyleBuilder;
1569
- export function paddingBottom(value: CSSLengthValue): StyleBuilder;
1570
- export function paddingLeft(value: CSSLengthValue): StyleBuilder;
1571
- export function margin(value: CSSLengthValue | "auto"): StyleBuilder;
1572
- export function marginTop(value: CSSLengthValue | "auto"): StyleBuilder;
1573
- export function marginRight(value: CSSLengthValue | "auto"): StyleBuilder;
1574
- export function marginBottom(value: CSSLengthValue | "auto"): StyleBuilder;
1575
- export function marginLeft(value: CSSLengthValue | "auto"): StyleBuilder;
1576
- export function width(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
1577
- export function height(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
1578
- export function minWidth(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
1579
- export function maxWidth(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): StyleBuilder;
1580
- export function minHeight(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
1581
- export function maxHeight(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): StyleBuilder;
1582
- export function boxSizing(value: BoxSizingValue): StyleBuilder;
1583
-
1584
- // Positioning
1585
- export function top(value: CSSLengthValue | "auto"): StyleBuilder;
1586
- export function right(value: CSSLengthValue | "auto"): StyleBuilder;
1587
- export function bottom(value: CSSLengthValue | "auto"): StyleBuilder;
1588
- export function left(value: CSSLengthValue | "auto"): StyleBuilder;
1589
- export function zIndex(value: number | "auto"): StyleBuilder;
1590
-
1591
- // Flexbox
1592
- export function flexDirection(value: FlexDirectionValue): StyleBuilder;
1593
- export function alignItems(value: AlignItemsValue): StyleBuilder;
1594
- export function justifyContent(value: JustifyContentValue): StyleBuilder;
1595
- export function center(): StyleBuilder;
1596
- export function gap(value: CSSLengthValue): StyleBuilder;
1597
- export function flexWrap(value: FlexWrapValue): StyleBuilder;
1598
- export function flexGrow(value: number | string): StyleBuilder;
1599
- export function flexShrink(value: number | string): StyleBuilder;
1600
- export function flexBasis(value: CSSLengthValue | "auto" | "content" | "fit-content"): StyleBuilder;
1601
- export function alignSelf(value: AlignSelfValue): StyleBuilder;
1602
- export function alignContent(value: AlignContentValue): StyleBuilder;
1603
- export function justifySelf(value: JustifySelfValue): StyleBuilder;
1604
- export function justifyItems(value: JustifyItemsValue): StyleBuilder;
1605
-
1606
- // Grid
1607
- export function gridTemplateColumns(value: string): StyleBuilder;
1608
- export function gridTemplateRows(value: string): StyleBuilder;
1609
- export function gridTemplateAreas(value: string): StyleBuilder;
1610
- export function gridColumn(value: string): StyleBuilder;
1611
- export function gridRow(value: string): StyleBuilder;
1612
- export function gridColumnStart(value: string | number | "auto"): StyleBuilder;
1613
- export function gridColumnEnd(value: string | number | "auto"): StyleBuilder;
1614
- export function gridRowStart(value: string | number | "auto"): StyleBuilder;
1615
- export function gridRowEnd(value: string | number | "auto"): StyleBuilder;
1616
- export function gridArea(value: string): StyleBuilder;
1617
- export function gridAutoColumns(value: CSSLengthValue): StyleBuilder;
1618
- export function gridAutoRows(value: CSSLengthValue): StyleBuilder;
1619
- export function gridAutoFlow(value: GridAutoFlowValue): StyleBuilder;
1620
-
1621
- // Borders
1622
- export function border(value: string): StyleBuilder;
1623
- export function borderTop(value: string): StyleBuilder;
1624
- export function borderRight(value: string): StyleBuilder;
1625
- export function borderBottom(value: string): StyleBuilder;
1626
- export function borderLeft(value: string): StyleBuilder;
1627
- export function borderWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1628
- export function borderStyle(value: BorderStyleValue): StyleBuilder;
1629
- export function borderColor(value: CSSColorValue): StyleBuilder;
1630
- export function borderTopWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1631
- export function borderRightWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1632
- export function borderBottomWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1633
- export function borderLeftWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1634
- export function borderTopStyle(value: BorderStyleValue): StyleBuilder;
1635
- export function borderRightStyle(value: BorderStyleValue): StyleBuilder;
1636
- export function borderBottomStyle(value: BorderStyleValue): StyleBuilder;
1637
- export function borderLeftStyle(value: BorderStyleValue): StyleBuilder;
1638
- export function borderTopColor(value: CSSColorValue): StyleBuilder;
1639
- export function borderRightColor(value: CSSColorValue): StyleBuilder;
1640
- export function borderBottomColor(value: CSSColorValue): StyleBuilder;
1641
- export function borderLeftColor(value: CSSColorValue): StyleBuilder;
1642
- export function borderRadius(value: CSSLengthValue): StyleBuilder;
1643
- export function borderTopLeftRadius(value: CSSLengthValue): StyleBuilder;
1644
- export function borderTopRightRadius(value: CSSLengthValue): StyleBuilder;
1645
- export function borderBottomLeftRadius(value: CSSLengthValue): StyleBuilder;
1646
- export function borderBottomRightRadius(value: CSSLengthValue): StyleBuilder;
1647
-
1648
- // Outline
1649
- export function outline(value: string): StyleBuilder;
1650
- export function outlineWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1651
- export function outlineStyle(value: OutlineStyleValue): StyleBuilder;
1652
- export function outlineColor(value: CSSColorValue): StyleBuilder;
1653
- export function outlineOffset(value: CSSLengthValue): StyleBuilder;
1654
-
1655
- // Background
1656
- export function backgroundColor(value: CSSColorValue): StyleBuilder;
1657
- export function backgroundImage(value: CSSBackgroundImageValue | "none"): StyleBuilder;
1658
- export function backgroundRepeat(value: BackgroundRepeatValue): StyleBuilder;
1659
- export function backgroundPosition(value: string): StyleBuilder;
1660
- export function backgroundSize(value: CSSLengthValue | "auto" | "cover" | "contain"): StyleBuilder;
1661
- export function backgroundAttachment(value: BackgroundAttachmentValue): StyleBuilder;
1662
- export function backgroundClip(value: BackgroundClipValue): StyleBuilder;
1663
- export function backgroundOrigin(value: BackgroundOriginValue): StyleBuilder;
1664
-
1665
- // Effects
1666
- export function boxShadow(value: string | "none"): StyleBuilder;
1667
- export function opacity(value: number | string): StyleBuilder;
1668
- export function transition(value: string): StyleBuilder;
1669
- export function transitionProperty(value: string | "none" | "all"): StyleBuilder;
1670
- export function transitionDuration(value: string | number): StyleBuilder;
1671
- export function transitionTimingFunction(value: CSSTimingFunctionValue): StyleBuilder;
1672
- export function transitionDelay(value: string | number): StyleBuilder;
1673
-
1674
- // Transform
1675
- export function transform(value: CSSTransformValue | "none"): StyleBuilder;
1676
- export function transformOrigin(value: string): StyleBuilder;
1677
- export function transformStyle(value: TransformStyleValue): StyleBuilder;
1678
- export function perspective(value: CSSLengthValue | "none"): StyleBuilder;
1679
- export function perspectiveOrigin(value: string): StyleBuilder;
1680
- export function backfaceVisibility(value: BackfaceVisibilityValue): StyleBuilder;
1681
-
1682
- // Animation
1683
- export function animation(value: string): StyleBuilder;
1684
- export function animationName(value: CSSAnimationNameValue): StyleBuilder;
1685
- export function animationDuration(value: string | number): StyleBuilder;
1686
- export function animationTimingFunction(value: CSSTimingFunctionValue): StyleBuilder;
1687
- export function animationDelay(value: string | number): StyleBuilder;
1688
- export function animationIterationCount(value: number | "infinite" | string): StyleBuilder;
1689
- export function animationDirection(value: AnimationDirectionValue): StyleBuilder;
1690
- export function animationFillMode(value: AnimationFillModeValue): StyleBuilder;
1691
- export function animationPlayState(value: AnimationPlayStateValue): StyleBuilder;
1692
-
1693
- // Filter
1694
- export function filter(value: CSSFilterValue | "none"): StyleBuilder;
1695
- export function backdropFilter(value: CSSFilterValue | "none"): StyleBuilder;
1696
-
1697
- // Overflow
1698
- export function overflow(value: OverflowValue): StyleBuilder;
1699
- export function overflowX(value: OverflowValue): StyleBuilder;
1700
- export function overflowY(value: OverflowValue): StyleBuilder;
1701
-
1702
- // Visibility
1703
- export function visibility(value: VisibilityValue): StyleBuilder;
1704
-
1705
- // Object fit/position
1706
- export function objectFit(value: ObjectFitValue): StyleBuilder;
1707
- export function objectPosition(value: string): StyleBuilder;
1708
-
1709
- // List
1710
- export function listStyle(value: string): StyleBuilder;
1711
- export function listStyleType(value: ListStyleTypeValue): StyleBuilder;
1712
- export function listStylePosition(value: ListStylePositionValue): StyleBuilder;
1713
- export function listStyleImage(value: CSSBackgroundImageValue | "none"): StyleBuilder;
1714
-
1715
- // Table
1716
- export function borderCollapse(value: BorderCollapseValue): StyleBuilder;
1717
- export function borderSpacing(value: CSSLengthValue): StyleBuilder;
1718
- export function captionSide(value: CaptionSideValue): StyleBuilder;
1719
- export function emptyCells(value: EmptyCellsValue): StyleBuilder;
1720
- export function tableLayout(value: TableLayoutValue): StyleBuilder;
1721
-
1722
- // Content
1723
- export function content(value: CSSContentValue | "normal" | "none"): StyleBuilder;
1724
- export function quotes(value: string | "none"): StyleBuilder;
1725
- export function counterReset(value: string | "none"): StyleBuilder;
1726
- export function counterIncrement(value: string | "none"): StyleBuilder;
1727
-
1728
- // User interface
1729
- export function appearance(value: AppearanceValue): StyleBuilder;
1730
- export function userSelect(value: UserSelectValue): StyleBuilder;
1731
- export function pointerEvents(value: PointerEventsValue): StyleBuilder;
1732
- export function resize(value: ResizeValue): StyleBuilder;
1733
- export function scrollBehavior(value: ScrollBehaviorValue): StyleBuilder;
1734
-
1735
- // Clip
1736
- export function clip(value: string | "auto"): StyleBuilder;
1737
- export function clipPath(value: string | "none"): StyleBuilder;
1738
-
1739
- // Isolation
1740
- export function isolation(value: IsolationValue): StyleBuilder;
1741
-
1742
- // Mix blend mode
1743
- export function mixBlendMode(value: MixBlendModeValue): StyleBuilder;
1744
-
1745
- // Will change
1746
- export function willChange(value: string | "auto"): StyleBuilder;
1747
-
1748
- // Contain
1749
- export function contain(value: ContainValue): StyleBuilder;
1750
-
1751
- // Page break
1752
- export function pageBreakBefore(value: PageBreakValue): StyleBuilder;
1753
- export function pageBreakAfter(value: PageBreakValue): StyleBuilder;
1754
- export function pageBreakInside(value: PageBreakValue): StyleBuilder;
1755
-
1756
- // Break
1757
- export function breakBefore(value: BreakValue): StyleBuilder;
1758
- export function breakAfter(value: BreakValue): StyleBuilder;
1759
- export function breakInside(value: BreakValue): StyleBuilder;
1760
-
1761
- // Orphans and widows
1762
- export function orphans(value: number | string): StyleBuilder;
1763
- export function widows(value: number | string): StyleBuilder;
1764
-
1765
- // Column
1766
- export function columnCount(value: number | "auto" | string): StyleBuilder;
1767
- export function columnFill(value: ColumnFillValue): StyleBuilder;
1768
- export function columnGap(value: CSSLengthValue | "normal"): StyleBuilder;
1769
- export function columnRule(value: string): StyleBuilder;
1770
- export function columnRuleColor(value: CSSColorValue): StyleBuilder;
1771
- export function columnRuleStyle(value: ColumnRuleStyleValue): StyleBuilder;
1772
- export function columnRuleWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1773
- export function columnSpan(value: ColumnSpanValue): StyleBuilder;
1774
- export function columnWidth(value: CSSLengthValue | "auto"): StyleBuilder;
1775
- export function columns(value: string): StyleBuilder;
1776
-
1777
- // Interaction
1778
- export function cursor(value: CursorValue): StyleBuilder;
1779
-
1780
- // Layout - Additional
1781
- export function aspectRatio(value: CSSAspectRatioValue): StyleBuilder;
1782
- export function clear(value: ClearValue): StyleBuilder;
1783
- export function float(value: FloatValue): StyleBuilder;
1784
- export function order(value: number | string): StyleBuilder;
1785
-
1786
- // Flexbox - Place properties
1787
- export function placeContent(value: string): StyleBuilder;
1788
- export function placeItems(value: string): StyleBuilder;
1789
- export function placeSelf(value: string): StyleBuilder;
1790
-
1791
- // Text - Additional
1792
- export function hyphens(value: HyphensValue): StyleBuilder;
1793
- export function lineBreak(value: LineBreakValue): StyleBuilder;
1794
- export function wordBreak(value: WordBreakValue): StyleBuilder;
1795
- export function textOrientation(value: TextOrientationValue): StyleBuilder;
1796
- export function writingMode(value: WritingModeValue): StyleBuilder;
1797
- export function direction(value: DirectionValue): StyleBuilder;
1798
- export function unicodeBidi(value: UnicodeBidiValue): StyleBuilder;
1799
-
1800
- // Background - Additional
1801
- export function backgroundBlendMode(value: BackgroundBlendModeValue): StyleBuilder;
1802
- export function backgroundPositionX(value: string): StyleBuilder;
1803
- export function backgroundPositionY(value: string): StyleBuilder;
1804
-
1805
- // Border Image
1806
- export function borderImage(value: string): StyleBuilder;
1807
- export function borderImageSource(value: CSSBackgroundImageValue | "none"): StyleBuilder;
1808
- export function borderImageSlice(value: string | number): StyleBuilder;
1809
- export function borderImageWidth(value: CSSLengthValue | number): StyleBuilder;
1810
- export function borderImageOutset(value: CSSLengthValue | number): StyleBuilder;
1811
- export function borderImageRepeat(value: BackgroundRepeatValue): StyleBuilder;
1812
-
1813
- // Logical Properties - Inset
1814
- export function inset(value: CSSLengthValue | "auto"): StyleBuilder;
1815
- export function insetBlock(value: CSSLengthValue): StyleBuilder;
1816
- export function insetBlockStart(value: CSSLengthValue | "auto"): StyleBuilder;
1817
- export function insetBlockEnd(value: CSSLengthValue | "auto"): StyleBuilder;
1818
- export function insetInline(value: CSSLengthValue): StyleBuilder;
1819
- export function insetInlineStart(value: CSSLengthValue | "auto"): StyleBuilder;
1820
- export function insetInlineEnd(value: CSSLengthValue | "auto"): StyleBuilder;
1821
-
1822
- // Logical Properties - Margin
1823
- export function marginBlock(value: CSSLengthValue | "auto"): StyleBuilder;
1824
- export function marginBlockStart(value: CSSLengthValue | "auto"): StyleBuilder;
1825
- export function marginBlockEnd(value: CSSLengthValue | "auto"): StyleBuilder;
1826
- export function marginInline(value: CSSLengthValue | "auto"): StyleBuilder;
1827
- export function marginInlineStart(value: CSSLengthValue | "auto"): StyleBuilder;
1828
- export function marginInlineEnd(value: CSSLengthValue | "auto"): StyleBuilder;
1829
-
1830
- // Logical Properties - Padding
1831
- export function paddingBlock(value: CSSLengthValue): StyleBuilder;
1832
- export function paddingBlockStart(value: CSSLengthValue): StyleBuilder;
1833
- export function paddingBlockEnd(value: CSSLengthValue): StyleBuilder;
1834
- export function paddingInline(value: CSSLengthValue): StyleBuilder;
1835
- export function paddingInlineStart(value: CSSLengthValue): StyleBuilder;
1836
- export function paddingInlineEnd(value: CSSLengthValue): StyleBuilder;
1837
-
1838
- // Logical Properties - Size
1839
- export function inlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
1840
- export function blockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
1841
- export function minInlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
1842
- export function minBlockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content"): StyleBuilder;
1843
- export function maxInlineSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): StyleBuilder;
1844
- export function maxBlockSize(value: CSSLengthValue | "auto" | "fit-content" | "max-content" | "min-content" | "none"): StyleBuilder;
1845
-
1846
- // Logical Properties - Border
1847
- export function borderBlock(value: string): StyleBuilder;
1848
- export function borderBlockStart(value: string): StyleBuilder;
1849
- export function borderBlockEnd(value: string): StyleBuilder;
1850
- export function borderInline(value: string): StyleBuilder;
1851
- export function borderInlineStart(value: string): StyleBuilder;
1852
- export function borderInlineEnd(value: string): StyleBuilder;
1853
- export function borderBlockWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1854
- export function borderBlockStartWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1855
- export function borderBlockEndWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1856
- export function borderInlineWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1857
- export function borderInlineStartWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1858
- export function borderInlineEndWidth(value: CSSLengthValue | "thin" | "medium" | "thick"): StyleBuilder;
1859
- export function borderBlockStyle(value: BorderStyleValue): StyleBuilder;
1860
- export function borderBlockStartStyle(value: BorderStyleValue): StyleBuilder;
1861
- export function borderBlockEndStyle(value: BorderStyleValue): StyleBuilder;
1862
- export function borderInlineStyle(value: BorderStyleValue): StyleBuilder;
1863
- export function borderInlineStartStyle(value: BorderStyleValue): StyleBuilder;
1864
- export function borderInlineEndStyle(value: BorderStyleValue): StyleBuilder;
1865
- export function borderBlockColor(value: CSSColorValue): StyleBuilder;
1866
- export function borderBlockStartColor(value: CSSColorValue): StyleBuilder;
1867
- export function borderBlockEndColor(value: CSSColorValue): StyleBuilder;
1868
- export function borderInlineColor(value: CSSColorValue): StyleBuilder;
1869
- export function borderInlineStartColor(value: CSSColorValue): StyleBuilder;
1870
- export function borderInlineEndColor(value: CSSColorValue): StyleBuilder;
1871
-
1872
- // Logical Properties - Border Radius
1873
- export function borderStartStartRadius(value: CSSLengthValue): StyleBuilder;
1874
- export function borderStartEndRadius(value: CSSLengthValue): StyleBuilder;
1875
- export function borderEndStartRadius(value: CSSLengthValue): StyleBuilder;
1876
- export function borderEndEndRadius(value: CSSLengthValue): StyleBuilder;
1877
-
1878
- // Scroll
1879
- export function scrollMargin(value: CSSLengthValue): StyleBuilder;
1880
- export function scrollMarginTop(value: CSSLengthValue): StyleBuilder;
1881
- export function scrollMarginRight(value: CSSLengthValue): StyleBuilder;
1882
- export function scrollMarginBottom(value: CSSLengthValue): StyleBuilder;
1883
- export function scrollMarginLeft(value: CSSLengthValue): StyleBuilder;
1884
- export function scrollPadding(value: CSSLengthValue): StyleBuilder;
1885
- export function scrollPaddingTop(value: CSSLengthValue): StyleBuilder;
1886
- export function scrollPaddingRight(value: CSSLengthValue): StyleBuilder;
1887
- export function scrollPaddingBottom(value: CSSLengthValue): StyleBuilder;
1888
- export function scrollPaddingLeft(value: CSSLengthValue): StyleBuilder;
1889
- export function overscrollBehavior(value: OverscrollBehaviorValue): StyleBuilder;
1890
- export function overscrollBehaviorX(value: OverscrollBehaviorValue): StyleBuilder;
1891
- export function overscrollBehaviorY(value: OverscrollBehaviorValue): StyleBuilder;
1892
-
1893
- // Caret
1894
- export function caretColor(value: CaretColorValue): StyleBuilder;
1895
- export function caretShape(value: CaretShapeValue): StyleBuilder;
1896
- export function caretAnimation(value: string): StyleBuilder;
1897
-
1898
- // Other
1899
- export function imageRendering(value: ImageRenderingValue): StyleBuilder;
1900
- export function colorScheme(value: ColorSchemeValue): StyleBuilder;
1901
- export function contentVisibility(value: ContentVisibilityValue): StyleBuilder;
1902
- export function touchAction(value: TouchActionValue): StyleBuilder;
1903
-
1904
- // Container Queries
1905
- export function containerType(value: ContainerTypeValue): StyleBuilder;
1906
- export function containerName(value: string): StyleBuilder;
1907
- export function container(value: string): StyleBuilder;
1908
-
1909
- // Font - Additional
1910
- export function fontFeatureSettings(value: string): StyleBuilder;
1911
- export function fontKerning(value: FontKerningValue): StyleBuilder;
1912
- export function fontSynthesis(value: FontSynthesisValue): StyleBuilder;
1913
- export function fontOpticalSizing(value: FontOpticalSizingValue): StyleBuilder;
1914
- export function fontDisplay(value: FontDisplayValue): StyleBuilder;
1915
- export function fontVariantCaps(value: FontVariantCapsValue): StyleBuilder;
1916
- export function fontVariantNumeric(value: string): StyleBuilder;
1917
- export function fontVariantLigatures(value: string): StyleBuilder;
1918
- export function fontVariantEastAsian(value: string): StyleBuilder;
1919
- export function fontVariantAlternates(value: string): StyleBuilder;
1920
- export function fontVariantPosition(value: string): StyleBuilder;
1921
-
1922
- // Text - Additional
1923
- export function textRendering(value: TextRenderingValue): StyleBuilder;
1924
- export function textCombineUpright(value: TextCombineUprightValue): StyleBuilder;
1925
- export function textSizeAdjust(value: string | "auto" | "none" | `${number}%`): StyleBuilder;
1926
-
1927
- // Mask
1928
- export function mask(value: string): StyleBuilder;
1929
- export function maskImage(value: CSSBackgroundImageValue | "none"): StyleBuilder;
1930
- export function maskMode(value: string): StyleBuilder;
1931
- export function maskRepeat(value: BackgroundRepeatValue): StyleBuilder;
1932
- export function maskPosition(value: string): StyleBuilder;
1933
- export function maskSize(value: CSSLengthValue | "auto" | "cover" | "contain"): StyleBuilder;
1934
- export function maskOrigin(value: BackgroundOriginValue): StyleBuilder;
1935
- export function maskClip(value: BackgroundClipValue): StyleBuilder;
1936
- export function maskComposite(value: MaskCompositeValue): StyleBuilder;
1937
-
1938
- // Clip
1939
- export function clipRule(value: ClipRuleValue): StyleBuilder;
1940
-
1941
- // Grid - Additional
1942
- export function gridColumnGap(value: CSSLengthValue): StyleBuilder;
1943
- export function gridRowGap(value: CSSLengthValue): StyleBuilder;
1944
- export function gridGap(value: CSSLengthValue): StyleBuilder;
1945
-
1946
- // Style queries / breakpoints
1947
- export function createStyleQueries<T extends string>(
1948
- queries: Record<T, string> | Array<[T, string]>
1949
- ): {
1950
- (defaultStyles: StyleBuilder, queryStyles?: Partial<Record<T | CSSPseudoClass, StyleBuilder>>): { className: string } | string;
1951
- (queryStyles?: Partial<Record<T | CSSPseudoClass, StyleBuilder>>): { className: string } | string;
1952
- };
1953
-
1954
- /**
1955
- * @deprecated Use createStyleQueries instead. Alias for backward compatibility.
1956
- */
1957
- export function createBreakpoints<T extends string>(
1958
- breakpoints: Record<T, string> | Array<[T, string]>
1959
- ): {
1960
- (defaultStyles: StyleBuilder, breakpointStyles?: Partial<Record<T | CSSPseudoClass, StyleBuilder>>): { className: string } | string;
1961
- (breakpointStyles?: Partial<Record<T | CSSPseudoClass, StyleBuilder>>): { className: string } | string;
1962
- };
1963
-
1964
- export function createCSSClass(className: string, styles: Record<string, string>): void;
71
+ export {};