@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,87 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { ComponentPropsWithRef, HTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, ReactNode } from 'react';
5
+
6
+ export interface SelectGroupProperties {
7
+ /**
8
+ * Label for the option group.
9
+ */
10
+ label: string;
11
+ /**
12
+ * The content of the option group.
13
+ * @TJS-type React.ReactNode
14
+ */
15
+ children: ReactNode;
16
+ }
17
+ export type SelectGroupProps = SelectGroupProperties & OptgroupHTMLAttributes<HTMLOptGroupElement>;
18
+ export declare const SelectGroup: React.FC<SelectGroupProps>;
19
+ export interface SelectOptionProperties {
20
+ /**
21
+ * Label for the option.
22
+ */
23
+ label: string;
24
+ /**
25
+ * Value of the option
26
+ */
27
+ value: string;
28
+ }
29
+ export type SelectOptionProps = SelectOptionProperties & OptionHTMLAttributes<HTMLOptionElement>;
30
+ export declare const SelectOption: React.FC<SelectOptionProps>;
31
+ export interface SkeletonProperties {
32
+ /**
33
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
34
+ */
35
+ width: string;
36
+ /**
37
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
38
+ */
39
+ height: string;
40
+ /**
41
+ * The border radius of the skeleton.
42
+ */
43
+ borderRadius?: string;
44
+ /**
45
+ * This is an attribute used to identify a DOM node for testing purposes.
46
+ */
47
+ "data-testid"?: string;
48
+ }
49
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
50
+ export type SelectSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
51
+ export type SelectSkeletonProps = SelectSkeletonProperties;
52
+ export declare const SelectSkeleton: React.FC<SelectSkeletonProps>;
53
+ export interface SelectComponents {
54
+ Group: typeof SelectGroup;
55
+ Option: typeof SelectOption;
56
+ Skeleton: typeof SelectSkeleton;
57
+ }
58
+ export interface SelectProperties {
59
+ /**
60
+ * The name of the wrapper element or the select element when native.
61
+ */
62
+ name: string;
63
+ /**
64
+ * The id of the wrapper element or the select element when native.
65
+ */
66
+ id: string;
67
+ /**
68
+ * The content of the select.
69
+ * @TJS-type React.ReactNode
70
+ */
71
+ children: ReactNode;
72
+ /**
73
+ * Change the visual style of the select.
74
+ * @default neutral
75
+ */
76
+ appearance?: "success" | "warning" | "danger" | "neutral" | "ai-generative";
77
+ /**
78
+ * Shows ai-generative appearance with active ai focus shadow.
79
+ * When true, this styling takes precedence over `appearance`.
80
+ * @default false
81
+ */
82
+ aiGenerated?: boolean;
83
+ }
84
+ export declare const Select: React.ForwardRefExoticComponent<SelectProperties & React.SelectHTMLAttributes<HTMLSelectElement> & React.InputHTMLAttributes<HTMLSelectElement> & React.RefAttributes<HTMLSelectElement>> & SelectComponents;
85
+ export type SelectProps = ComponentPropsWithRef<typeof Select>;
86
+
87
+ export {};
@@ -0,0 +1,390 @@
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
+ declare const sidebarSprinkle: {
13
+ sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
14
+ {
15
+ config: {
16
+ zIndex: {
17
+ values: {
18
+ 100: {
19
+ default: string;
20
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
21
+ };
22
+ 200: {
23
+ default: string;
24
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
25
+ };
26
+ 300: {
27
+ default: string;
28
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
29
+ };
30
+ 400: {
31
+ default: string;
32
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
33
+ };
34
+ 500: {
35
+ default: string;
36
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
37
+ };
38
+ 600: {
39
+ default: string;
40
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
41
+ };
42
+ 700: {
43
+ default: string;
44
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
45
+ };
46
+ 800: {
47
+ default: string;
48
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
49
+ };
50
+ 900: {
51
+ default: string;
52
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
53
+ };
54
+ };
55
+ staticScale: {
56
+ "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
57
+ "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
58
+ "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
59
+ "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
60
+ "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
61
+ "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
62
+ "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
63
+ "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
64
+ "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
65
+ };
66
+ name: "zIndex";
67
+ };
68
+ padding: {
69
+ values: {
70
+ base: {
71
+ default: string;
72
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
73
+ };
74
+ small: {
75
+ default: string;
76
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
77
+ };
78
+ none: {
79
+ default: string;
80
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
81
+ };
82
+ };
83
+ staticScale: {
84
+ base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
85
+ small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
86
+ none: string;
87
+ };
88
+ name: "padding";
89
+ };
90
+ };
91
+ } & {
92
+ config: {
93
+ maxWidth: {
94
+ dynamic: {
95
+ default: string;
96
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
97
+ };
98
+ dynamicScale: true;
99
+ name: "maxWidth";
100
+ vars: {
101
+ default: string;
102
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
103
+ };
104
+ };
105
+ };
106
+ } & {
107
+ config: {
108
+ [x: string]: {
109
+ mappings: ("zIndex" | "maxWidth" | "padding")[];
110
+ };
111
+ };
112
+ }
113
+ ]>;
114
+ properties: {
115
+ zIndex: {
116
+ "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
117
+ "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
118
+ "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
119
+ "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
120
+ "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
121
+ "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
122
+ "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
123
+ "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
124
+ "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
125
+ };
126
+ padding: {
127
+ base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
128
+ small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
129
+ none: string;
130
+ };
131
+ };
132
+ };
133
+ export type SidebarPaddingProperties = keyof typeof sidebarSprinkle.properties.padding;
134
+ export type SidebarZIndexProperties = keyof typeof sidebarSprinkle.properties.zIndex;
135
+ export interface SidebarSprinkle {
136
+ /**
137
+ * The maxWidth property specifies the maxWidth of a sidebar's content area.
138
+ * @default 375px
139
+ */
140
+ maxWidth?: string | Conditions<string>;
141
+ /**
142
+ * The zIndex property specifies the stack order of the sidebar.
143
+ */
144
+ zIndex?: SidebarZIndexProperties | Conditions<SidebarZIndexProperties>;
145
+ /**
146
+ * The padding properties are used to generate space around an sidebar's content area.
147
+ * @default base
148
+ */
149
+ padding?: SidebarPaddingProperties | Conditions<SidebarPaddingProperties>;
150
+ }
151
+ declare const sidebar: {
152
+ sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
153
+ {
154
+ config: {
155
+ zIndex: {
156
+ values: {
157
+ 100: {
158
+ default: string;
159
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
160
+ };
161
+ 200: {
162
+ default: string;
163
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
164
+ };
165
+ 300: {
166
+ default: string;
167
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
168
+ };
169
+ 400: {
170
+ default: string;
171
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
172
+ };
173
+ 500: {
174
+ default: string;
175
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
176
+ };
177
+ 600: {
178
+ default: string;
179
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
180
+ };
181
+ 700: {
182
+ default: string;
183
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
184
+ };
185
+ 800: {
186
+ default: string;
187
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
188
+ };
189
+ 900: {
190
+ default: string;
191
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
192
+ };
193
+ };
194
+ staticScale: {
195
+ "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
196
+ "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
197
+ "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
198
+ "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
199
+ "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
200
+ "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
201
+ "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
202
+ "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
203
+ "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
204
+ };
205
+ name: "zIndex";
206
+ };
207
+ padding: {
208
+ values: {
209
+ base: {
210
+ default: string;
211
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
212
+ };
213
+ small: {
214
+ default: string;
215
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
216
+ };
217
+ none: {
218
+ default: string;
219
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
220
+ };
221
+ };
222
+ staticScale: {
223
+ base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
224
+ small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
225
+ none: string;
226
+ };
227
+ name: "padding";
228
+ };
229
+ };
230
+ } & {
231
+ config: {
232
+ maxWidth: {
233
+ dynamic: {
234
+ default: string;
235
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
236
+ };
237
+ dynamicScale: true;
238
+ name: "maxWidth";
239
+ vars: {
240
+ default: string;
241
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
242
+ };
243
+ };
244
+ };
245
+ } & {
246
+ config: {
247
+ [x: string]: {
248
+ mappings: ("zIndex" | "maxWidth" | "padding")[];
249
+ };
250
+ };
251
+ }
252
+ ]>;
253
+ properties: {
254
+ zIndex: {
255
+ "100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
256
+ "200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
257
+ "300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
258
+ "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
259
+ "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
260
+ "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
261
+ "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
262
+ "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
263
+ "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
264
+ };
265
+ padding: {
266
+ base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
267
+ small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
268
+ none: string;
269
+ };
270
+ };
271
+ classnames: {
272
+ overlay: string;
273
+ overlayScoped: string;
274
+ container: string;
275
+ containerScoped: string;
276
+ container__header: string;
277
+ container__body: string;
278
+ container__footer: string;
279
+ position: Record<"left" | "right", string>;
280
+ isVisible: string;
281
+ removeScrollElement: string;
282
+ };
283
+ };
284
+ export type CloseOnOutsidePress = (event: PointerEvent | MouseEvent) => boolean;
285
+ export interface SidebarBodyProperties {
286
+ /**
287
+ * The content of the sidebar body.
288
+ * @TJS-type React.ReactNode
289
+ */
290
+ children: ReactNode;
291
+ /**
292
+ * The padding properties are used to generate space around an sidebar's body content area.
293
+ * @default base
294
+ */
295
+ padding?: keyof typeof sidebar.properties.padding;
296
+ }
297
+ export type SidebarBodyProps = SidebarBodyProperties & HTMLAttributes<HTMLElement>;
298
+ export declare const SidebarBody: React.FC<SidebarBodyProps>;
299
+ export interface SidebarFooterProperties {
300
+ /**
301
+ * The content of the sidebar footer.
302
+ * @TJS-type React.ReactNode
303
+ */
304
+ children: ReactNode;
305
+ /**
306
+ * The padding properties are used to generate space around an sidebar's footer content area.
307
+ * @default base
308
+ */
309
+ padding?: keyof typeof sidebar.properties.padding;
310
+ }
311
+ export type SidebarFooterProps = SidebarFooterProperties & HTMLAttributes<HTMLElement>;
312
+ export declare const SidebarFooter: React.FC<SidebarFooterProps>;
313
+ export interface SidebarHeaderProperties {
314
+ /**
315
+ * The content of the sidebar header.
316
+ * @TJS-type React.ReactNode
317
+ */
318
+ children?: ReactNode;
319
+ /**
320
+ * The title to display in the sidebar header.
321
+ */
322
+ title?: string;
323
+ /**
324
+ * The padding properties are used to generate space around an sidebar's header content area.
325
+ * @default base
326
+ */
327
+ padding?: keyof typeof sidebar.properties.padding;
328
+ }
329
+ export type SidebarHeaderProps = SidebarHeaderProperties & HTMLAttributes<HTMLElement>;
330
+ export declare const SidebarHeader: React.FC<SidebarHeaderProps>;
331
+ export interface SidebarComponents {
332
+ Body: typeof SidebarBody;
333
+ Footer: typeof SidebarFooter;
334
+ Header: typeof SidebarHeader;
335
+ }
336
+ export interface SidebarProperties extends SidebarSprinkle {
337
+ /**
338
+ * Side from which the sidebar will appear.
339
+ * @default right
340
+ */
341
+ position?: "right" | "left";
342
+ /**
343
+ * The padding properties are used to generate space around an sidebar's content area.
344
+ * @default base
345
+ */
346
+ padding?: keyof typeof sidebar.properties.padding;
347
+ /**
348
+ * The content of the sidebar.
349
+ * @TJS-type React.ReactNode
350
+ */
351
+ children: ReactNode;
352
+ /**
353
+ * Callback fired when the component requests to be closed.
354
+ * () => void;
355
+ */
356
+ onRemove?: () => void;
357
+ /**
358
+ * Determines if the sidebar is shown or not.
359
+ * @default true
360
+ */
361
+ open?: boolean;
362
+ /**
363
+ * Determines if RemoveScroll wraps sidebar's children component.
364
+ * @default true
365
+ */
366
+ needRemoveScroll?: boolean;
367
+ /**
368
+ * Controls whether clicking/pressing outside should close the sidebar.
369
+ * - boolean: enable/disable dismissal on outside press
370
+ * - function: receive the DOM event and return true to allow closing, false to ignore
371
+ *
372
+ * Defaults to true for backward compatibility.
373
+ */
374
+ closeOnOutsidePress?: boolean | CloseOnOutsidePress;
375
+ /**
376
+ * The attribute name to ignore when checking for outside clicks.
377
+ * @default "data-nimbus-outside-press-ignore"
378
+ */
379
+ ignoreAttributeName?: string;
380
+ }
381
+ export type SidebarProps = SidebarProperties & {
382
+ /**
383
+ * Root element where the portal should be mounted. When provided and not null,
384
+ * the portal renders inside this element; when null/undefined, the default root is used.
385
+ */
386
+ root?: HTMLElement | null;
387
+ } & HTMLAttributes<HTMLDivElement>;
388
+ export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;
389
+
390
+ export {};