@nimbus-ds/components 5.33.0-rc.2 → 5.34.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/Accordion/index.js +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Box/index.d.ts +9 -4
- package/dist/Button/index.js +1 -1
- package/dist/CHANGELOG.md +7 -1
- package/dist/Card/index.js +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Label/index.js +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/List/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollPane/index.d.ts +9 -4
- package/dist/ScrollPane/index.js +1 -1
- package/dist/SegmentedControl/index.d.ts +9 -4
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Sidebar/index.js +1 -1
- package/dist/SplitButton/index.d.ts +9 -4
- package/dist/SplitButton/index.js +1 -1
- package/dist/Stepper/index.d.ts +9 -4
- package/dist/Stepper/index.js +1 -1
- package/dist/Tag/index.js +1 -1
- package/dist/Text/index.d.ts +93 -3
- package/dist/Text/index.js +1 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Title/index.js +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toggle/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +101 -7
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -101,6 +101,8 @@ export type Overflow = "visible" | "hidden" | "scroll" | "auto";
|
|
|
101
101
|
export type PointerEvents = "auto" | "none" | "visiblePainted" | "visibleFill" | "visibleStroke" | "visible" | "painted" | "fill" | "stroke" | "all" | "inherit";
|
|
102
102
|
export type TransitionTiming = "ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end";
|
|
103
103
|
export type WordBreak = "normal" | "break-all" | "keep-all" | "break-word";
|
|
104
|
+
export type TextOverflow = "clip" | "ellipsis";
|
|
105
|
+
export type WhiteSpace = "normal" | "nowrap" | "pre" | "pre-wrap" | "pre-line" | "break-spaces";
|
|
104
106
|
declare const propertiesBox: {
|
|
105
107
|
gap: {
|
|
106
108
|
none: string;
|
|
@@ -243,7 +245,10 @@ declare const propertiesBox: {
|
|
|
243
245
|
transparent: string;
|
|
244
246
|
};
|
|
245
247
|
borderRadius: {
|
|
246
|
-
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
248
|
+
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
|
|
249
|
+
* 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.
|
|
250
|
+
* In Grid Layout, it controls the alignment of items on the Block Axis within their grid area.
|
|
251
|
+
*/
|
|
247
252
|
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
248
253
|
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
249
254
|
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -251,6 +256,10 @@ declare const propertiesBox: {
|
|
|
251
256
|
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
252
257
|
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
253
258
|
full: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
259
|
+
/**
|
|
260
|
+
* The alignSelf property overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area.
|
|
261
|
+
* In Flexbox, it aligns the item on the cross axis.
|
|
262
|
+
*/
|
|
254
263
|
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
255
264
|
half: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
256
265
|
none: string;
|
|
@@ -377,9 +386,7 @@ declare const propertiesBox: {
|
|
|
377
386
|
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
378
387
|
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
379
388
|
h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
380
|
-
h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
381
|
-
* This defines the ability for a flex item to shrink if necessary.
|
|
382
|
-
*/
|
|
389
|
+
h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
383
390
|
h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
384
391
|
h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
385
392
|
h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -929,7 +936,9 @@ export interface IconButtonSprinkle {
|
|
|
929
936
|
declare const propertiesText: {
|
|
930
937
|
color: {
|
|
931
938
|
"ai-generative": "transparent";
|
|
932
|
-
currentColor: string;
|
|
939
|
+
currentColor: string; /**
|
|
940
|
+
* The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
|
|
941
|
+
*/
|
|
933
942
|
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
934
943
|
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
935
944
|
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -971,6 +980,9 @@ declare const propertiesText: {
|
|
|
971
980
|
};
|
|
972
981
|
wordBreak: WordBreak[];
|
|
973
982
|
textDecoration: TextDecoration[];
|
|
983
|
+
textOverflow: TextOverflow[];
|
|
984
|
+
whiteSpace: WhiteSpace[];
|
|
985
|
+
overflow: Overflow[];
|
|
974
986
|
};
|
|
975
987
|
export type TextColorProperties = keyof typeof propertiesText.color;
|
|
976
988
|
export type TextFontSizeProperties = keyof typeof propertiesText.fontSize;
|
|
@@ -1013,13 +1025,26 @@ export interface TextSprinkle {
|
|
|
1013
1025
|
*/
|
|
1014
1026
|
WebkitLineClamp?: number | TextConditions<number>;
|
|
1015
1027
|
/**
|
|
1016
|
-
* The
|
|
1028
|
+
* The wordBreak property sets whether line breaks appear wherever the text would otherwise overflow its content box.
|
|
1017
1029
|
*/
|
|
1018
1030
|
wordBreak?: WordBreak | TextConditions<WordBreak>;
|
|
1019
1031
|
/**
|
|
1020
1032
|
* The textDecoration shorthand property sets the appearance of decorative lines on text.
|
|
1021
1033
|
*/
|
|
1022
1034
|
textDecoration?: TextDecoration | TextConditions<TextDecoration>;
|
|
1035
|
+
/**
|
|
1036
|
+
* 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).
|
|
1037
|
+
* Note: This property only works when overflow is set to 'hidden'.
|
|
1038
|
+
*/
|
|
1039
|
+
textOverflow?: TextOverflow | TextConditions<TextOverflow>;
|
|
1040
|
+
/**
|
|
1041
|
+
* The whiteSpace property sets how white space inside an element is handled.
|
|
1042
|
+
*/
|
|
1043
|
+
whiteSpace?: WhiteSpace | TextConditions<WhiteSpace>;
|
|
1044
|
+
/**
|
|
1045
|
+
* The overflow property specifies what happens if content overflows an element's box.
|
|
1046
|
+
*/
|
|
1047
|
+
overflow?: Overflow | TextConditions<Overflow>;
|
|
1023
1048
|
}
|
|
1024
1049
|
declare const text: {
|
|
1025
1050
|
sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
|
|
@@ -1280,6 +1305,72 @@ declare const text: {
|
|
|
1280
1305
|
staticScale: TextDecoration[];
|
|
1281
1306
|
name: "textDecoration";
|
|
1282
1307
|
};
|
|
1308
|
+
textOverflow: {
|
|
1309
|
+
values: {
|
|
1310
|
+
clip: {
|
|
1311
|
+
default: string;
|
|
1312
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1313
|
+
};
|
|
1314
|
+
ellipsis: {
|
|
1315
|
+
default: string;
|
|
1316
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
staticScale: TextOverflow[];
|
|
1320
|
+
name: "textOverflow";
|
|
1321
|
+
};
|
|
1322
|
+
whiteSpace: {
|
|
1323
|
+
values: {
|
|
1324
|
+
pre: {
|
|
1325
|
+
default: string;
|
|
1326
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1327
|
+
};
|
|
1328
|
+
normal: {
|
|
1329
|
+
default: string;
|
|
1330
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1331
|
+
};
|
|
1332
|
+
nowrap: {
|
|
1333
|
+
default: string;
|
|
1334
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1335
|
+
};
|
|
1336
|
+
"break-spaces": {
|
|
1337
|
+
default: string;
|
|
1338
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1339
|
+
};
|
|
1340
|
+
"pre-line": {
|
|
1341
|
+
default: string;
|
|
1342
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1343
|
+
};
|
|
1344
|
+
"pre-wrap": {
|
|
1345
|
+
default: string;
|
|
1346
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1347
|
+
};
|
|
1348
|
+
};
|
|
1349
|
+
staticScale: WhiteSpace[];
|
|
1350
|
+
name: "whiteSpace";
|
|
1351
|
+
};
|
|
1352
|
+
overflow: {
|
|
1353
|
+
values: {
|
|
1354
|
+
hidden: {
|
|
1355
|
+
default: string;
|
|
1356
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1357
|
+
};
|
|
1358
|
+
auto: {
|
|
1359
|
+
default: string;
|
|
1360
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1361
|
+
};
|
|
1362
|
+
visible: {
|
|
1363
|
+
default: string;
|
|
1364
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1365
|
+
};
|
|
1366
|
+
scroll: {
|
|
1367
|
+
default: string;
|
|
1368
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
staticScale: Overflow[];
|
|
1372
|
+
name: "overflow";
|
|
1373
|
+
};
|
|
1283
1374
|
};
|
|
1284
1375
|
} & {
|
|
1285
1376
|
config: {
|
|
@@ -1311,7 +1402,7 @@ declare const text: {
|
|
|
1311
1402
|
} & {
|
|
1312
1403
|
config: {
|
|
1313
1404
|
[x: string]: {
|
|
1314
|
-
mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "wordBreak" | "lineClamp" | "textDecoration" | "WebkitLineClamp")[];
|
|
1405
|
+
mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "textOverflow" | "whiteSpace" | "wordBreak" | "lineClamp" | "overflow" | "textDecoration" | "WebkitLineClamp")[];
|
|
1315
1406
|
};
|
|
1316
1407
|
};
|
|
1317
1408
|
}
|
|
@@ -1361,6 +1452,9 @@ declare const text: {
|
|
|
1361
1452
|
};
|
|
1362
1453
|
wordBreak: WordBreak[];
|
|
1363
1454
|
textDecoration: TextDecoration[];
|
|
1455
|
+
textOverflow: TextOverflow[];
|
|
1456
|
+
whiteSpace: WhiteSpace[];
|
|
1457
|
+
overflow: Overflow[];
|
|
1364
1458
|
};
|
|
1365
1459
|
aiColors: {
|
|
1366
1460
|
readonly "ai-generative": "transparent";
|