@nimbus-ds/components 5.29.0-rc.1 → 5.29.1-rc.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 (46) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/Accordion/index.d.ts +136 -0
  3. package/dist/Alert/index.d.ts +60 -0
  4. package/dist/Badge/index.d.ts +55 -0
  5. package/dist/Box/index.d.ts +779 -0
  6. package/dist/Button/index.d.ts +83 -0
  7. package/dist/CHANGELOG.md +1 -1
  8. package/dist/Card/index.d.ts +153 -0
  9. package/dist/Checkbox/index.d.ts +62 -0
  10. package/dist/Chip/index.d.ts +59 -0
  11. package/dist/Collapsible/index.d.ts +45 -0
  12. package/dist/Divider/index.d.ts +30 -0
  13. package/dist/FileUploader/index.d.ts +98 -0
  14. package/dist/Icon/index.d.ts +120 -0
  15. package/dist/IconButton/index.d.ts +170 -0
  16. package/dist/Input/index.d.ts +76 -0
  17. package/dist/Label/index.d.ts +55 -0
  18. package/dist/Link/index.d.ts +115 -0
  19. package/dist/List/index.d.ts +75 -0
  20. package/dist/Modal/index.d.ts +232 -0
  21. package/dist/MultiSelect/index.d.ts +107 -0
  22. package/dist/Pagination/index.d.ts +41 -0
  23. package/dist/Popover/index.d.ts +165 -0
  24. package/dist/ProgressBar/index.d.ts +57 -0
  25. package/dist/Radio/index.d.ts +62 -0
  26. package/dist/ScrollPane/index.d.ts +893 -0
  27. package/dist/SegmentedControl/index.d.ts +879 -0
  28. package/dist/Select/index.d.ts +87 -0
  29. package/dist/Sidebar/index.d.ts +390 -0
  30. package/dist/Sidebar/index.js +1 -1
  31. package/dist/Skeleton/index.d.ts +31 -0
  32. package/dist/Spinner/index.d.ts +53 -0
  33. package/dist/Stepper/index.d.ts +873 -0
  34. package/dist/Table/index.d.ts +123 -0
  35. package/dist/Tabs/index.d.ts +92 -0
  36. package/dist/Tag/index.d.ts +51 -0
  37. package/dist/Text/index.d.ts +508 -0
  38. package/dist/Textarea/index.d.ts +71 -0
  39. package/dist/Thumbnail/index.d.ts +73 -0
  40. package/dist/Title/index.d.ts +164 -0
  41. package/dist/Toast/index.d.ts +56 -0
  42. package/dist/Toggle/index.d.ts +48 -0
  43. package/dist/Tooltip/index.d.ts +46 -0
  44. package/dist/index.d.ts +2 -0
  45. package/dist/index.js +1 -1
  46. package/package.json +1 -1
@@ -0,0 +1,164 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { HTMLAttributes, ReactNode } from 'react';
5
+
6
+ export interface Conditions<T> {
7
+ xs?: T;
8
+ md?: T;
9
+ lg?: T;
10
+ xl?: T;
11
+ }
12
+ export type TextAlign = "left" | "right" | "center" | "justify";
13
+ declare const propertiesTitle: {
14
+ color: {
15
+ "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
16
+ "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
17
+ "success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
18
+ "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
19
+ "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
20
+ "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
21
+ "danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
22
+ "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
23
+ "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
24
+ "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
25
+ "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
26
+ };
27
+ textAlign: TextAlign[];
28
+ fontSize: {
29
+ "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
30
+ "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
31
+ "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
32
+ "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
33
+ "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
34
+ "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
35
+ "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
36
+ "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
37
+ "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
38
+ "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
39
+ "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
40
+ "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
41
+ "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
42
+ "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
43
+ "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
44
+ "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
45
+ "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
46
+ "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
47
+ "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
48
+ "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
49
+ "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
50
+ h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
51
+ h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
52
+ h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
53
+ h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
54
+ h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
55
+ h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
56
+ };
57
+ fontWeight: {
58
+ regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
59
+ medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
60
+ bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
61
+ };
62
+ lineHeight: {
63
+ "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
64
+ "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
65
+ "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
66
+ "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
67
+ "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
68
+ "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
69
+ "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
70
+ "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
71
+ "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
72
+ "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
73
+ "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
74
+ "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
75
+ "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
76
+ "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
77
+ "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
78
+ "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
79
+ "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
80
+ "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
81
+ "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
82
+ "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
83
+ "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
84
+ h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
85
+ h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
86
+ h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
87
+ h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
88
+ h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
89
+ h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
90
+ };
91
+ };
92
+ export type TitleColorProperties = keyof typeof propertiesTitle.color;
93
+ export type TitleFontSizeProperties = keyof typeof propertiesTitle.fontSize;
94
+ export type TitleFontWeightProperties = keyof typeof propertiesTitle.fontWeight;
95
+ export type TitleLineHeightProperties = keyof typeof propertiesTitle.lineHeight;
96
+ export type TitleConditions<T> = Conditions<T>;
97
+ export interface TitleSprinkle {
98
+ /**
99
+ * The fontSize property sets the size of the title.
100
+ * @default base
101
+ */
102
+ fontSize?: TitleFontSizeProperties | TitleConditions<TitleFontSizeProperties>;
103
+ /**
104
+ * The fontWeight property sets how thick or thin characters in title should be displayed.
105
+ * @default regular
106
+ */
107
+ fontWeight?: TitleFontWeightProperties | TitleConditions<TitleFontWeightProperties>;
108
+ /**
109
+ * The lineHeight property specifies the line height of the title.
110
+ * @default base
111
+ */
112
+ lineHeight?: TitleLineHeightProperties | TitleConditions<TitleLineHeightProperties>;
113
+ /**
114
+ * The textAlign property specifies the horizontal alignment of title.
115
+ * @default left
116
+ */
117
+ textAlign?: TextAlign | TitleConditions<TextAlign>;
118
+ /**
119
+ * The color property is used to set the color of the title.
120
+ * @default neutral-textLow
121
+ */
122
+ color?: TitleColorProperties | TitleConditions<TitleColorProperties>;
123
+ }
124
+ export interface SkeletonProperties {
125
+ /**
126
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
127
+ */
128
+ width: string;
129
+ /**
130
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
131
+ */
132
+ height: string;
133
+ /**
134
+ * The border radius of the skeleton.
135
+ */
136
+ borderRadius?: string;
137
+ /**
138
+ * This is an attribute used to identify a DOM node for testing purposes.
139
+ */
140
+ "data-testid"?: string;
141
+ }
142
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
143
+ export type TitleSkeletonProperties = Pick<TitleProps, "as"> & Partial<Pick<SkeletonProps, "width" | "height" | "data-testid">>;
144
+ export type TitleSkeletonProps = TitleSkeletonProperties;
145
+ export declare const TitleSkeleton: React.FC<TitleSkeletonProps>;
146
+ export interface TitleComponents {
147
+ Skeleton: typeof TitleSkeleton;
148
+ }
149
+ export interface TitleProperties extends TitleSprinkle {
150
+ /**
151
+ * The content of the title.
152
+ * @TJS-type React.ReactNode
153
+ */
154
+ children: ReactNode;
155
+ /**
156
+ * Type of html tag to create for the title.
157
+ * @default h1
158
+ */
159
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
160
+ }
161
+ export type TitleProps = TitleProperties & HTMLAttributes<HTMLHeadingElement>;
162
+ export declare const Title: React.FC<TitleProps> & TitleComponents;
163
+
164
+ export {};
@@ -0,0 +1,56 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { HTMLAttributes, ReactNode } from 'react';
5
+
6
+ export interface ToastProviderProperties {
7
+ /**
8
+ * @TJS-type React.ReactNode
9
+ */
10
+ children: ReactNode;
11
+ }
12
+ export type ToastProviderProps = ToastProviderProperties;
13
+ export declare const ToastProvider: React.FC<ToastProviderProps>;
14
+ export interface ToastComponents {
15
+ Provider: typeof ToastProvider;
16
+ }
17
+ export type Types = "primary" | "success" | "danger" | "progress";
18
+ export interface ToastProperties {
19
+ /**
20
+ * Unique toast ID used when hiding or removing a toast.
21
+ */
22
+ id: string;
23
+ /**
24
+ * The text that should appear in the toast message.
25
+ */
26
+ text: string;
27
+ /**
28
+ * Change the visual style of the toast.
29
+ * @default primary
30
+ */
31
+ type?: Types;
32
+ /**
33
+ * The time in milliseconds that the toast message should persist.
34
+ * @default 4000
35
+ */
36
+ duration?: 4000 | 8000 | 16000;
37
+ /**
38
+ * Tells you whether or not Toast should close automatically.
39
+ * @default true
40
+ */
41
+ autoClose?: boolean;
42
+ /**
43
+ * Tells the toast position when we are using multiple toasts.
44
+ * @default 0
45
+ */
46
+ position?: number;
47
+ }
48
+ export type ToastProps = ToastProperties & HTMLAttributes<HTMLDivElement>;
49
+ export declare const Toast: React.FC<ToastProps> & ToastComponents;
50
+ export interface ToastContextProps {
51
+ closeToast: (id: string) => void;
52
+ addToast: (toast: Omit<ToastProps, "autoClose">) => void;
53
+ }
54
+ export declare const useToast: () => ToastContextProps;
55
+
56
+ export {};
@@ -0,0 +1,48 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { HTMLAttributes, InputHTMLAttributes } from 'react';
5
+
6
+ export interface SkeletonProperties {
7
+ /**
8
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
9
+ */
10
+ width: string;
11
+ /**
12
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
13
+ */
14
+ height: string;
15
+ /**
16
+ * The border radius of the skeleton.
17
+ */
18
+ borderRadius?: string;
19
+ /**
20
+ * This is an attribute used to identify a DOM node for testing purposes.
21
+ */
22
+ "data-testid"?: string;
23
+ }
24
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
25
+ export type ToggleSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
26
+ export type ToggleSkeletonProps = ToggleSkeletonProperties;
27
+ export declare const ToggleSkeleton: React.FC<ToggleSkeletonProps>;
28
+ export interface ToggleComponents {
29
+ Skeleton: typeof ToggleSkeleton;
30
+ }
31
+ export interface ToggleProperties {
32
+ /**
33
+ * The name of the input element.
34
+ */
35
+ name: string;
36
+ /**
37
+ * Sets toggle state to activated or deactivated.
38
+ */
39
+ active?: boolean;
40
+ /**
41
+ * Text to be rendered inside the component
42
+ */
43
+ label?: string;
44
+ }
45
+ export type ToggleProps = ToggleProperties & InputHTMLAttributes<HTMLInputElement>;
46
+ export declare const Toggle: React.FC<ToggleProps> & ToggleComponents;
47
+
48
+ export {};
@@ -0,0 +1,46 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { HTMLAttributes, ReactNode } from 'react';
5
+
6
+ export interface Conditions<T> {
7
+ xs?: T;
8
+ md?: T;
9
+ lg?: T;
10
+ xl?: T;
11
+ }
12
+ export interface TooltipSprinkle {
13
+ /**
14
+ * The maxWidth property specifies the maximum width of a popover's content area.
15
+ */
16
+ maxWidth?: string | Conditions<string>;
17
+ }
18
+ export interface TooltipProperties extends TooltipSprinkle {
19
+ /**
20
+ * An HTML element, or a function that returns one. It's used to set the position of the tooltip.
21
+ * @TJS-type React.ReactNode
22
+ */
23
+ children: ReactNode;
24
+ /**
25
+ * The text that should appear in the tooltip message.
26
+ */
27
+ content: string;
28
+ /**
29
+ * Conditional for displaying the popover arrow.
30
+ * @default false
31
+ */
32
+ arrow?: boolean;
33
+ /**
34
+ * Position of the popover.
35
+ * @default bottom
36
+ */
37
+ position?: "top" | "bottom" | "left" | "right";
38
+ }
39
+ export type TooltipProps = TooltipProperties & HTMLAttributes<HTMLDivElement>;
40
+ export declare const Tooltip: React.FC<TooltipProps>;
41
+
42
+ export {
43
+ Tooltip as default,
44
+ };
45
+
46
+ export {};
package/dist/index.d.ts CHANGED
@@ -995,6 +995,7 @@ export interface TextSprinkle {
995
995
  textAlign?: TextAlign | TextConditions<TextAlign>;
996
996
  /**
997
997
  * The color property is used to set the color of the text.
998
+ * Note: Gradients like 'ai-generative' changes other properties like 'width' and 'display', which could make the component behave differently. Ensure to visually test the component when dynamically changing the color.
998
999
  * @default neutral-textLow
999
1000
  */
1000
1001
  color?: TextColorProperties | TextConditions<TextColorProperties>;
@@ -2166,6 +2167,7 @@ declare const sidebar: {
2166
2167
  container__footer: string;
2167
2168
  position: Record<"left" | "right", string>;
2168
2169
  isVisible: string;
2170
+ removeScrollElement: string;
2169
2171
  };
2170
2172
  };
2171
2173
  declare const propertiesTable: {