@nimbus-ds/styles 9.38.0-rc.2 → 9.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/dist/CHANGELOG.md +7 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +101 -7
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/themes/dark/index.js +1 -1
- package/dist/themes/next/index.js +1 -1
- package/dist/themes/next-dark/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -71,6 +71,8 @@ export type Overflow = "visible" | "hidden" | "scroll" | "auto";
|
|
|
71
71
|
export type PointerEvents = "auto" | "none" | "visiblePainted" | "visibleFill" | "visibleStroke" | "visible" | "painted" | "fill" | "stroke" | "all" | "inherit";
|
|
72
72
|
export type TransitionTiming = "ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end";
|
|
73
73
|
export type WordBreak = "normal" | "break-all" | "keep-all" | "break-word";
|
|
74
|
+
export type TextOverflow = "clip" | "ellipsis";
|
|
75
|
+
export type WhiteSpace = "normal" | "nowrap" | "pre" | "pre-wrap" | "pre-line" | "break-spaces";
|
|
74
76
|
declare const propertiesBox: {
|
|
75
77
|
gap: {
|
|
76
78
|
none: string;
|
|
@@ -213,7 +215,10 @@ declare const propertiesBox: {
|
|
|
213
215
|
transparent: string;
|
|
214
216
|
};
|
|
215
217
|
borderRadius: {
|
|
216
|
-
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
218
|
+
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
|
|
219
|
+
* The alignItems property sets the align-self value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis.
|
|
220
|
+
* In Grid Layout, it controls the alignment of items on the Block Axis within their grid area.
|
|
221
|
+
*/
|
|
217
222
|
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
218
223
|
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
219
224
|
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -221,6 +226,10 @@ declare const propertiesBox: {
|
|
|
221
226
|
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
222
227
|
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
223
228
|
full: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
229
|
+
/**
|
|
230
|
+
* The alignSelf property overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area.
|
|
231
|
+
* In Flexbox, it aligns the item on the cross axis.
|
|
232
|
+
*/
|
|
224
233
|
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
225
234
|
half: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
226
235
|
none: string;
|
|
@@ -347,9 +356,7 @@ declare const propertiesBox: {
|
|
|
347
356
|
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
348
357
|
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
349
358
|
h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
350
|
-
h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
351
|
-
* This defines the ability for a flex item to shrink if necessary.
|
|
352
|
-
*/
|
|
359
|
+
h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
353
360
|
h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
354
361
|
h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
355
362
|
h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -3224,7 +3231,9 @@ export declare const tag: {
|
|
|
3224
3231
|
declare const propertiesText: {
|
|
3225
3232
|
color: {
|
|
3226
3233
|
"ai-generative": "transparent";
|
|
3227
|
-
currentColor: string;
|
|
3234
|
+
currentColor: string; /**
|
|
3235
|
+
* The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
|
|
3236
|
+
*/
|
|
3228
3237
|
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
3229
3238
|
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
3230
3239
|
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -3266,6 +3275,9 @@ declare const propertiesText: {
|
|
|
3266
3275
|
};
|
|
3267
3276
|
wordBreak: WordBreak[];
|
|
3268
3277
|
textDecoration: TextDecoration[];
|
|
3278
|
+
textOverflow: TextOverflow[];
|
|
3279
|
+
whiteSpace: WhiteSpace[];
|
|
3280
|
+
overflow: Overflow[];
|
|
3269
3281
|
};
|
|
3270
3282
|
export type TextColorProperties = keyof typeof propertiesText.color;
|
|
3271
3283
|
export type TextFontSizeProperties = keyof typeof propertiesText.fontSize;
|
|
@@ -3308,13 +3320,26 @@ export interface TextSprinkle {
|
|
|
3308
3320
|
*/
|
|
3309
3321
|
WebkitLineClamp?: number | TextConditions<number>;
|
|
3310
3322
|
/**
|
|
3311
|
-
* The
|
|
3323
|
+
* The wordBreak property sets whether line breaks appear wherever the text would otherwise overflow its content box.
|
|
3312
3324
|
*/
|
|
3313
3325
|
wordBreak?: WordBreak | TextConditions<WordBreak>;
|
|
3314
3326
|
/**
|
|
3315
3327
|
* The textDecoration shorthand property sets the appearance of decorative lines on text.
|
|
3316
3328
|
*/
|
|
3317
3329
|
textDecoration?: TextDecoration | TextConditions<TextDecoration>;
|
|
3330
|
+
/**
|
|
3331
|
+
* The textOverflow property specifies how overflowed content that is not displayed should be signaled to the user (e.g., 'ellipsis' for '...', 'clip' for hard cutoff).
|
|
3332
|
+
* Note: This property only works when overflow is set to 'hidden'.
|
|
3333
|
+
*/
|
|
3334
|
+
textOverflow?: TextOverflow | TextConditions<TextOverflow>;
|
|
3335
|
+
/**
|
|
3336
|
+
* The whiteSpace property sets how white space inside an element is handled.
|
|
3337
|
+
*/
|
|
3338
|
+
whiteSpace?: WhiteSpace | TextConditions<WhiteSpace>;
|
|
3339
|
+
/**
|
|
3340
|
+
* The overflow property specifies what happens if content overflows an element's box.
|
|
3341
|
+
*/
|
|
3342
|
+
overflow?: Overflow | TextConditions<Overflow>;
|
|
3318
3343
|
}
|
|
3319
3344
|
export declare const text: {
|
|
3320
3345
|
sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
|
|
@@ -3575,6 +3600,72 @@ export declare const text: {
|
|
|
3575
3600
|
staticScale: TextDecoration[];
|
|
3576
3601
|
name: "textDecoration";
|
|
3577
3602
|
};
|
|
3603
|
+
textOverflow: {
|
|
3604
|
+
values: {
|
|
3605
|
+
clip: {
|
|
3606
|
+
default: string;
|
|
3607
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3608
|
+
};
|
|
3609
|
+
ellipsis: {
|
|
3610
|
+
default: string;
|
|
3611
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3612
|
+
};
|
|
3613
|
+
};
|
|
3614
|
+
staticScale: TextOverflow[];
|
|
3615
|
+
name: "textOverflow";
|
|
3616
|
+
};
|
|
3617
|
+
whiteSpace: {
|
|
3618
|
+
values: {
|
|
3619
|
+
pre: {
|
|
3620
|
+
default: string;
|
|
3621
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3622
|
+
};
|
|
3623
|
+
normal: {
|
|
3624
|
+
default: string;
|
|
3625
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3626
|
+
};
|
|
3627
|
+
nowrap: {
|
|
3628
|
+
default: string;
|
|
3629
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3630
|
+
};
|
|
3631
|
+
"break-spaces": {
|
|
3632
|
+
default: string;
|
|
3633
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3634
|
+
};
|
|
3635
|
+
"pre-line": {
|
|
3636
|
+
default: string;
|
|
3637
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3638
|
+
};
|
|
3639
|
+
"pre-wrap": {
|
|
3640
|
+
default: string;
|
|
3641
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3642
|
+
};
|
|
3643
|
+
};
|
|
3644
|
+
staticScale: WhiteSpace[];
|
|
3645
|
+
name: "whiteSpace";
|
|
3646
|
+
};
|
|
3647
|
+
overflow: {
|
|
3648
|
+
values: {
|
|
3649
|
+
hidden: {
|
|
3650
|
+
default: string;
|
|
3651
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3652
|
+
};
|
|
3653
|
+
auto: {
|
|
3654
|
+
default: string;
|
|
3655
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3656
|
+
};
|
|
3657
|
+
visible: {
|
|
3658
|
+
default: string;
|
|
3659
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3660
|
+
};
|
|
3661
|
+
scroll: {
|
|
3662
|
+
default: string;
|
|
3663
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3664
|
+
};
|
|
3665
|
+
};
|
|
3666
|
+
staticScale: Overflow[];
|
|
3667
|
+
name: "overflow";
|
|
3668
|
+
};
|
|
3578
3669
|
};
|
|
3579
3670
|
} & {
|
|
3580
3671
|
config: {
|
|
@@ -3606,7 +3697,7 @@ export declare const text: {
|
|
|
3606
3697
|
} & {
|
|
3607
3698
|
config: {
|
|
3608
3699
|
[x: string]: {
|
|
3609
|
-
mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "wordBreak" | "lineClamp" | "textDecoration" | "WebkitLineClamp")[];
|
|
3700
|
+
mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "textOverflow" | "whiteSpace" | "wordBreak" | "lineClamp" | "overflow" | "textDecoration" | "WebkitLineClamp")[];
|
|
3610
3701
|
};
|
|
3611
3702
|
};
|
|
3612
3703
|
}
|
|
@@ -3656,6 +3747,9 @@ export declare const text: {
|
|
|
3656
3747
|
};
|
|
3657
3748
|
wordBreak: WordBreak[];
|
|
3658
3749
|
textDecoration: TextDecoration[];
|
|
3750
|
+
textOverflow: TextOverflow[];
|
|
3751
|
+
whiteSpace: WhiteSpace[];
|
|
3752
|
+
overflow: Overflow[];
|
|
3659
3753
|
};
|
|
3660
3754
|
aiColors: {
|
|
3661
3755
|
readonly "ai-generative": "transparent";
|