@nimbus-ds/styles 9.38.0 → 9.40.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 +12 -0
- package/dist/CHANGELOG.md +12 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +102 -7
- package/dist/index.js +1 -1
- package/dist/styles.css +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})`;
|
|
@@ -3010,6 +3017,7 @@ export declare const fileUploader: {
|
|
|
3010
3017
|
container: string;
|
|
3011
3018
|
container__input: string;
|
|
3012
3019
|
disabled: string;
|
|
3020
|
+
dragging: string;
|
|
3013
3021
|
skeleton: string;
|
|
3014
3022
|
};
|
|
3015
3023
|
};
|
|
@@ -3224,7 +3232,9 @@ export declare const tag: {
|
|
|
3224
3232
|
declare const propertiesText: {
|
|
3225
3233
|
color: {
|
|
3226
3234
|
"ai-generative": "transparent";
|
|
3227
|
-
currentColor: string;
|
|
3235
|
+
currentColor: string; /**
|
|
3236
|
+
* The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
|
|
3237
|
+
*/
|
|
3228
3238
|
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
3229
3239
|
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
3230
3240
|
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -3266,6 +3276,9 @@ declare const propertiesText: {
|
|
|
3266
3276
|
};
|
|
3267
3277
|
wordBreak: WordBreak[];
|
|
3268
3278
|
textDecoration: TextDecoration[];
|
|
3279
|
+
textOverflow: TextOverflow[];
|
|
3280
|
+
whiteSpace: WhiteSpace[];
|
|
3281
|
+
overflow: Overflow[];
|
|
3269
3282
|
};
|
|
3270
3283
|
export type TextColorProperties = keyof typeof propertiesText.color;
|
|
3271
3284
|
export type TextFontSizeProperties = keyof typeof propertiesText.fontSize;
|
|
@@ -3308,13 +3321,26 @@ export interface TextSprinkle {
|
|
|
3308
3321
|
*/
|
|
3309
3322
|
WebkitLineClamp?: number | TextConditions<number>;
|
|
3310
3323
|
/**
|
|
3311
|
-
* The
|
|
3324
|
+
* The wordBreak property sets whether line breaks appear wherever the text would otherwise overflow its content box.
|
|
3312
3325
|
*/
|
|
3313
3326
|
wordBreak?: WordBreak | TextConditions<WordBreak>;
|
|
3314
3327
|
/**
|
|
3315
3328
|
* The textDecoration shorthand property sets the appearance of decorative lines on text.
|
|
3316
3329
|
*/
|
|
3317
3330
|
textDecoration?: TextDecoration | TextConditions<TextDecoration>;
|
|
3331
|
+
/**
|
|
3332
|
+
* 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).
|
|
3333
|
+
* Note: This property only works when overflow is set to 'hidden'.
|
|
3334
|
+
*/
|
|
3335
|
+
textOverflow?: TextOverflow | TextConditions<TextOverflow>;
|
|
3336
|
+
/**
|
|
3337
|
+
* The whiteSpace property sets how white space inside an element is handled.
|
|
3338
|
+
*/
|
|
3339
|
+
whiteSpace?: WhiteSpace | TextConditions<WhiteSpace>;
|
|
3340
|
+
/**
|
|
3341
|
+
* The overflow property specifies what happens if content overflows an element's box.
|
|
3342
|
+
*/
|
|
3343
|
+
overflow?: Overflow | TextConditions<Overflow>;
|
|
3318
3344
|
}
|
|
3319
3345
|
export declare const text: {
|
|
3320
3346
|
sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
|
|
@@ -3575,6 +3601,72 @@ export declare const text: {
|
|
|
3575
3601
|
staticScale: TextDecoration[];
|
|
3576
3602
|
name: "textDecoration";
|
|
3577
3603
|
};
|
|
3604
|
+
textOverflow: {
|
|
3605
|
+
values: {
|
|
3606
|
+
clip: {
|
|
3607
|
+
default: string;
|
|
3608
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3609
|
+
};
|
|
3610
|
+
ellipsis: {
|
|
3611
|
+
default: string;
|
|
3612
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3613
|
+
};
|
|
3614
|
+
};
|
|
3615
|
+
staticScale: TextOverflow[];
|
|
3616
|
+
name: "textOverflow";
|
|
3617
|
+
};
|
|
3618
|
+
whiteSpace: {
|
|
3619
|
+
values: {
|
|
3620
|
+
pre: {
|
|
3621
|
+
default: string;
|
|
3622
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3623
|
+
};
|
|
3624
|
+
normal: {
|
|
3625
|
+
default: string;
|
|
3626
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3627
|
+
};
|
|
3628
|
+
nowrap: {
|
|
3629
|
+
default: string;
|
|
3630
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3631
|
+
};
|
|
3632
|
+
"break-spaces": {
|
|
3633
|
+
default: string;
|
|
3634
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3635
|
+
};
|
|
3636
|
+
"pre-line": {
|
|
3637
|
+
default: string;
|
|
3638
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3639
|
+
};
|
|
3640
|
+
"pre-wrap": {
|
|
3641
|
+
default: string;
|
|
3642
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3643
|
+
};
|
|
3644
|
+
};
|
|
3645
|
+
staticScale: WhiteSpace[];
|
|
3646
|
+
name: "whiteSpace";
|
|
3647
|
+
};
|
|
3648
|
+
overflow: {
|
|
3649
|
+
values: {
|
|
3650
|
+
hidden: {
|
|
3651
|
+
default: string;
|
|
3652
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3653
|
+
};
|
|
3654
|
+
auto: {
|
|
3655
|
+
default: string;
|
|
3656
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3657
|
+
};
|
|
3658
|
+
visible: {
|
|
3659
|
+
default: string;
|
|
3660
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3661
|
+
};
|
|
3662
|
+
scroll: {
|
|
3663
|
+
default: string;
|
|
3664
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
3665
|
+
};
|
|
3666
|
+
};
|
|
3667
|
+
staticScale: Overflow[];
|
|
3668
|
+
name: "overflow";
|
|
3669
|
+
};
|
|
3578
3670
|
};
|
|
3579
3671
|
} & {
|
|
3580
3672
|
config: {
|
|
@@ -3606,7 +3698,7 @@ export declare const text: {
|
|
|
3606
3698
|
} & {
|
|
3607
3699
|
config: {
|
|
3608
3700
|
[x: string]: {
|
|
3609
|
-
mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "wordBreak" | "lineClamp" | "textDecoration" | "WebkitLineClamp")[];
|
|
3701
|
+
mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "textOverflow" | "whiteSpace" | "wordBreak" | "lineClamp" | "overflow" | "textDecoration" | "WebkitLineClamp")[];
|
|
3610
3702
|
};
|
|
3611
3703
|
};
|
|
3612
3704
|
}
|
|
@@ -3656,6 +3748,9 @@ export declare const text: {
|
|
|
3656
3748
|
};
|
|
3657
3749
|
wordBreak: WordBreak[];
|
|
3658
3750
|
textDecoration: TextDecoration[];
|
|
3751
|
+
textOverflow: TextOverflow[];
|
|
3752
|
+
whiteSpace: WhiteSpace[];
|
|
3753
|
+
overflow: Overflow[];
|
|
3659
3754
|
};
|
|
3660
3755
|
aiColors: {
|
|
3661
3756
|
readonly "ai-generative": "transparent";
|