@nimbus-ds/components 5.33.0 → 5.35.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 +13 -0
- package/dist/Accordion/index.js +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Box/index.d.ts +9 -4
- package/dist/CHANGELOG.md +13 -0
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.d.ts +20 -3
- package/dist/FileUploader/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollPane/index.d.ts +9 -4
- package/dist/SegmentedControl/index.d.ts +9 -4
- 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/Text/index.d.ts +93 -3
- package/dist/Text/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 +121 -10
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v7.2.0
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { ButtonHTMLAttributes, ComponentPropsWithRef, HTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, PropsWithChildren, ReactElement, ReactNode, SVGAttributes } from 'react';
|
|
4
|
+
import { ButtonHTMLAttributes, ComponentPropsWithRef, DragEvent, HTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, PropsWithChildren, ReactElement, ReactNode, SVGAttributes } from 'react';
|
|
5
5
|
|
|
6
6
|
export interface SkeletonProperties {
|
|
7
7
|
/**
|
|
@@ -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})`;
|
|
@@ -839,6 +846,7 @@ declare const fileUploader: {
|
|
|
839
846
|
container: string;
|
|
840
847
|
container__input: string;
|
|
841
848
|
disabled: string;
|
|
849
|
+
dragging: string;
|
|
842
850
|
skeleton: string;
|
|
843
851
|
};
|
|
844
852
|
};
|
|
@@ -929,7 +937,9 @@ export interface IconButtonSprinkle {
|
|
|
929
937
|
declare const propertiesText: {
|
|
930
938
|
color: {
|
|
931
939
|
"ai-generative": "transparent";
|
|
932
|
-
currentColor: string;
|
|
940
|
+
currentColor: string; /**
|
|
941
|
+
* The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
|
|
942
|
+
*/
|
|
933
943
|
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
934
944
|
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
935
945
|
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -971,6 +981,9 @@ declare const propertiesText: {
|
|
|
971
981
|
};
|
|
972
982
|
wordBreak: WordBreak[];
|
|
973
983
|
textDecoration: TextDecoration[];
|
|
984
|
+
textOverflow: TextOverflow[];
|
|
985
|
+
whiteSpace: WhiteSpace[];
|
|
986
|
+
overflow: Overflow[];
|
|
974
987
|
};
|
|
975
988
|
export type TextColorProperties = keyof typeof propertiesText.color;
|
|
976
989
|
export type TextFontSizeProperties = keyof typeof propertiesText.fontSize;
|
|
@@ -1013,13 +1026,26 @@ export interface TextSprinkle {
|
|
|
1013
1026
|
*/
|
|
1014
1027
|
WebkitLineClamp?: number | TextConditions<number>;
|
|
1015
1028
|
/**
|
|
1016
|
-
* The
|
|
1029
|
+
* The wordBreak property sets whether line breaks appear wherever the text would otherwise overflow its content box.
|
|
1017
1030
|
*/
|
|
1018
1031
|
wordBreak?: WordBreak | TextConditions<WordBreak>;
|
|
1019
1032
|
/**
|
|
1020
1033
|
* The textDecoration shorthand property sets the appearance of decorative lines on text.
|
|
1021
1034
|
*/
|
|
1022
1035
|
textDecoration?: TextDecoration | TextConditions<TextDecoration>;
|
|
1036
|
+
/**
|
|
1037
|
+
* 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).
|
|
1038
|
+
* Note: This property only works when overflow is set to 'hidden'.
|
|
1039
|
+
*/
|
|
1040
|
+
textOverflow?: TextOverflow | TextConditions<TextOverflow>;
|
|
1041
|
+
/**
|
|
1042
|
+
* The whiteSpace property sets how white space inside an element is handled.
|
|
1043
|
+
*/
|
|
1044
|
+
whiteSpace?: WhiteSpace | TextConditions<WhiteSpace>;
|
|
1045
|
+
/**
|
|
1046
|
+
* The overflow property specifies what happens if content overflows an element's box.
|
|
1047
|
+
*/
|
|
1048
|
+
overflow?: Overflow | TextConditions<Overflow>;
|
|
1023
1049
|
}
|
|
1024
1050
|
declare const text: {
|
|
1025
1051
|
sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
|
|
@@ -1280,6 +1306,72 @@ declare const text: {
|
|
|
1280
1306
|
staticScale: TextDecoration[];
|
|
1281
1307
|
name: "textDecoration";
|
|
1282
1308
|
};
|
|
1309
|
+
textOverflow: {
|
|
1310
|
+
values: {
|
|
1311
|
+
clip: {
|
|
1312
|
+
default: string;
|
|
1313
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1314
|
+
};
|
|
1315
|
+
ellipsis: {
|
|
1316
|
+
default: string;
|
|
1317
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1318
|
+
};
|
|
1319
|
+
};
|
|
1320
|
+
staticScale: TextOverflow[];
|
|
1321
|
+
name: "textOverflow";
|
|
1322
|
+
};
|
|
1323
|
+
whiteSpace: {
|
|
1324
|
+
values: {
|
|
1325
|
+
pre: {
|
|
1326
|
+
default: string;
|
|
1327
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1328
|
+
};
|
|
1329
|
+
normal: {
|
|
1330
|
+
default: string;
|
|
1331
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1332
|
+
};
|
|
1333
|
+
nowrap: {
|
|
1334
|
+
default: string;
|
|
1335
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1336
|
+
};
|
|
1337
|
+
"break-spaces": {
|
|
1338
|
+
default: string;
|
|
1339
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1340
|
+
};
|
|
1341
|
+
"pre-line": {
|
|
1342
|
+
default: string;
|
|
1343
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1344
|
+
};
|
|
1345
|
+
"pre-wrap": {
|
|
1346
|
+
default: string;
|
|
1347
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1348
|
+
};
|
|
1349
|
+
};
|
|
1350
|
+
staticScale: WhiteSpace[];
|
|
1351
|
+
name: "whiteSpace";
|
|
1352
|
+
};
|
|
1353
|
+
overflow: {
|
|
1354
|
+
values: {
|
|
1355
|
+
hidden: {
|
|
1356
|
+
default: string;
|
|
1357
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1358
|
+
};
|
|
1359
|
+
auto: {
|
|
1360
|
+
default: string;
|
|
1361
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1362
|
+
};
|
|
1363
|
+
visible: {
|
|
1364
|
+
default: string;
|
|
1365
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1366
|
+
};
|
|
1367
|
+
scroll: {
|
|
1368
|
+
default: string;
|
|
1369
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
staticScale: Overflow[];
|
|
1373
|
+
name: "overflow";
|
|
1374
|
+
};
|
|
1283
1375
|
};
|
|
1284
1376
|
} & {
|
|
1285
1377
|
config: {
|
|
@@ -1311,7 +1403,7 @@ declare const text: {
|
|
|
1311
1403
|
} & {
|
|
1312
1404
|
config: {
|
|
1313
1405
|
[x: string]: {
|
|
1314
|
-
mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "wordBreak" | "lineClamp" | "textDecoration" | "WebkitLineClamp")[];
|
|
1406
|
+
mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "textOverflow" | "whiteSpace" | "wordBreak" | "lineClamp" | "overflow" | "textDecoration" | "WebkitLineClamp")[];
|
|
1315
1407
|
};
|
|
1316
1408
|
};
|
|
1317
1409
|
}
|
|
@@ -1361,6 +1453,9 @@ declare const text: {
|
|
|
1361
1453
|
};
|
|
1362
1454
|
wordBreak: WordBreak[];
|
|
1363
1455
|
textDecoration: TextDecoration[];
|
|
1456
|
+
textOverflow: TextOverflow[];
|
|
1457
|
+
whiteSpace: WhiteSpace[];
|
|
1458
|
+
overflow: Overflow[];
|
|
1364
1459
|
};
|
|
1365
1460
|
aiColors: {
|
|
1366
1461
|
readonly "ai-generative": "transparent";
|
|
@@ -2369,12 +2464,28 @@ export interface FileUploaderProperties {
|
|
|
2369
2464
|
* Permitted aspect ratios for the size of the file uploader.
|
|
2370
2465
|
* @default 1/1
|
|
2371
2466
|
*/
|
|
2372
|
-
aspectRatio?: typeof fileUploader.properties.aspectRatio[number];
|
|
2467
|
+
aspectRatio?: (typeof fileUploader.properties.aspectRatio)[number];
|
|
2373
2468
|
/**
|
|
2374
2469
|
* Defines the position of the placeholder in relation to the icon.
|
|
2375
2470
|
* @default column
|
|
2376
2471
|
*/
|
|
2377
|
-
flexDirection?: typeof fileUploader.properties.flexDirection[number];
|
|
2472
|
+
flexDirection?: (typeof fileUploader.properties.flexDirection)[number];
|
|
2473
|
+
/**
|
|
2474
|
+
* Callback fired when files are dropped (before validation)
|
|
2475
|
+
*/
|
|
2476
|
+
onDrop?: (event: DragEvent<HTMLLabelElement>) => void;
|
|
2477
|
+
/**
|
|
2478
|
+
* Callback fired when all dropped files are rejected due to file type validation
|
|
2479
|
+
*/
|
|
2480
|
+
onDropReject?: (event: DragEvent<HTMLLabelElement>) => void;
|
|
2481
|
+
/**
|
|
2482
|
+
* Callback fired when files are successfully accepted and processed
|
|
2483
|
+
*/
|
|
2484
|
+
onDropSuccess?: (event: DragEvent<HTMLLabelElement>) => void;
|
|
2485
|
+
/**
|
|
2486
|
+
* Callback fired when an error occurs during file drop processing
|
|
2487
|
+
*/
|
|
2488
|
+
onError?: (error: Error) => void;
|
|
2378
2489
|
}
|
|
2379
2490
|
export type FileUploaderProps = FileUploaderProperties & InputHTMLAttributes<HTMLInputElement>;
|
|
2380
2491
|
export declare const FileUploader: React.FC<FileUploaderProps> & FileUploaderComponents;
|