@nimbus-ds/components 5.28.0 → 5.29.0-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 (78) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Accordion/index.js +1 -1
  3. package/dist/Alert/index.js +1 -1
  4. package/dist/Badge/index.js +1 -1
  5. package/dist/Button/index.js +1 -1
  6. package/dist/CHANGELOG.md +6 -0
  7. package/dist/Card/index.js +1 -1
  8. package/dist/Checkbox/index.js +1 -1
  9. package/dist/Chip/index.js +1 -1
  10. package/dist/FileUploader/index.js +1 -1
  11. package/dist/Icon/index.js +1 -1
  12. package/dist/IconButton/index.js +1 -1
  13. package/dist/Input/index.js +1 -1
  14. package/dist/Label/index.js +1 -1
  15. package/dist/Link/index.js +1 -1
  16. package/dist/List/index.js +1 -1
  17. package/dist/Modal/index.js +1 -1
  18. package/dist/MultiSelect/index.js +1 -1
  19. package/dist/Pagination/index.js +1 -1
  20. package/dist/ProgressBar/index.js +1 -1
  21. package/dist/Radio/index.js +1 -1
  22. package/dist/ScrollPane/index.js +1 -1
  23. package/dist/SegmentedControl/index.js +1 -1
  24. package/dist/Select/index.js +1 -1
  25. package/dist/Sidebar/index.js +1 -1
  26. package/dist/Stepper/index.js +1 -1
  27. package/dist/Tag/index.js +1 -1
  28. package/dist/Text/index.js +1 -1
  29. package/dist/Textarea/index.js +1 -1
  30. package/dist/Thumbnail/index.js +1 -1
  31. package/dist/Title/index.js +1 -1
  32. package/dist/Toast/index.js +1 -1
  33. package/dist/Toggle/index.js +1 -1
  34. package/dist/Tooltip/index.js +1 -1
  35. package/dist/index.d.ts +19 -7
  36. package/dist/index.js +1 -1
  37. package/package.json +1 -1
  38. package/dist/Accordion/index.d.ts +0 -136
  39. package/dist/Alert/index.d.ts +0 -60
  40. package/dist/Badge/index.d.ts +0 -55
  41. package/dist/Box/index.d.ts +0 -779
  42. package/dist/Button/index.d.ts +0 -83
  43. package/dist/Card/index.d.ts +0 -153
  44. package/dist/Checkbox/index.d.ts +0 -62
  45. package/dist/Chip/index.d.ts +0 -59
  46. package/dist/Collapsible/index.d.ts +0 -45
  47. package/dist/Divider/index.d.ts +0 -30
  48. package/dist/FileUploader/index.d.ts +0 -98
  49. package/dist/Icon/index.d.ts +0 -120
  50. package/dist/IconButton/index.d.ts +0 -170
  51. package/dist/Input/index.d.ts +0 -76
  52. package/dist/Label/index.d.ts +0 -55
  53. package/dist/Link/index.d.ts +0 -115
  54. package/dist/List/index.d.ts +0 -75
  55. package/dist/Modal/index.d.ts +0 -232
  56. package/dist/MultiSelect/index.d.ts +0 -107
  57. package/dist/Pagination/index.d.ts +0 -41
  58. package/dist/Popover/index.d.ts +0 -165
  59. package/dist/ProgressBar/index.d.ts +0 -57
  60. package/dist/Radio/index.d.ts +0 -62
  61. package/dist/ScrollPane/index.d.ts +0 -893
  62. package/dist/SegmentedControl/index.d.ts +0 -879
  63. package/dist/Select/index.d.ts +0 -87
  64. package/dist/Sidebar/index.d.ts +0 -389
  65. package/dist/Skeleton/index.d.ts +0 -31
  66. package/dist/Spinner/index.d.ts +0 -53
  67. package/dist/Stepper/index.d.ts +0 -873
  68. package/dist/Table/index.d.ts +0 -123
  69. package/dist/Tabs/index.d.ts +0 -92
  70. package/dist/Tag/index.d.ts +0 -51
  71. package/dist/Text/index.d.ts +0 -495
  72. package/dist/Textarea/index.d.ts +0 -71
  73. package/dist/Thumbnail/index.d.ts +0 -73
  74. package/dist/Title/index.d.ts +0 -164
  75. package/dist/Toast/index.d.ts +0 -56
  76. package/dist/Toggle/index.d.ts +0 -48
  77. package/dist/Tooltip/index.d.ts +0 -46
  78. package/dist/components-props.json +0 -1
@@ -1,87 +0,0 @@
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 {};
@@ -1,389 +0,0 @@
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
- };
282
- };
283
- export type CloseOnOutsidePress = (event: PointerEvent | MouseEvent) => boolean;
284
- export interface SidebarBodyProperties {
285
- /**
286
- * The content of the sidebar body.
287
- * @TJS-type React.ReactNode
288
- */
289
- children: ReactNode;
290
- /**
291
- * The padding properties are used to generate space around an sidebar's body content area.
292
- * @default base
293
- */
294
- padding?: keyof typeof sidebar.properties.padding;
295
- }
296
- export type SidebarBodyProps = SidebarBodyProperties & HTMLAttributes<HTMLElement>;
297
- export declare const SidebarBody: React.FC<SidebarBodyProps>;
298
- export interface SidebarFooterProperties {
299
- /**
300
- * The content of the sidebar footer.
301
- * @TJS-type React.ReactNode
302
- */
303
- children: ReactNode;
304
- /**
305
- * The padding properties are used to generate space around an sidebar's footer content area.
306
- * @default base
307
- */
308
- padding?: keyof typeof sidebar.properties.padding;
309
- }
310
- export type SidebarFooterProps = SidebarFooterProperties & HTMLAttributes<HTMLElement>;
311
- export declare const SidebarFooter: React.FC<SidebarFooterProps>;
312
- export interface SidebarHeaderProperties {
313
- /**
314
- * The content of the sidebar header.
315
- * @TJS-type React.ReactNode
316
- */
317
- children?: ReactNode;
318
- /**
319
- * The title to display in the sidebar header.
320
- */
321
- title?: string;
322
- /**
323
- * The padding properties are used to generate space around an sidebar's header content area.
324
- * @default base
325
- */
326
- padding?: keyof typeof sidebar.properties.padding;
327
- }
328
- export type SidebarHeaderProps = SidebarHeaderProperties & HTMLAttributes<HTMLElement>;
329
- export declare const SidebarHeader: React.FC<SidebarHeaderProps>;
330
- export interface SidebarComponents {
331
- Body: typeof SidebarBody;
332
- Footer: typeof SidebarFooter;
333
- Header: typeof SidebarHeader;
334
- }
335
- export interface SidebarProperties extends SidebarSprinkle {
336
- /**
337
- * Side from which the sidebar will appear.
338
- * @default right
339
- */
340
- position?: "right" | "left";
341
- /**
342
- * The padding properties are used to generate space around an sidebar's content area.
343
- * @default base
344
- */
345
- padding?: keyof typeof sidebar.properties.padding;
346
- /**
347
- * The content of the sidebar.
348
- * @TJS-type React.ReactNode
349
- */
350
- children: ReactNode;
351
- /**
352
- * Callback fired when the component requests to be closed.
353
- * () => void;
354
- */
355
- onRemove?: () => void;
356
- /**
357
- * Determines if the sidebar is shown or not.
358
- * @default true
359
- */
360
- open?: boolean;
361
- /**
362
- * Determines if RemoveScroll wraps sidebar's children component.
363
- * @default true
364
- */
365
- needRemoveScroll?: boolean;
366
- /**
367
- * Controls whether clicking/pressing outside should close the sidebar.
368
- * - boolean: enable/disable dismissal on outside press
369
- * - function: receive the DOM event and return true to allow closing, false to ignore
370
- *
371
- * Defaults to true for backward compatibility.
372
- */
373
- closeOnOutsidePress?: boolean | CloseOnOutsidePress;
374
- /**
375
- * The attribute name to ignore when checking for outside clicks.
376
- * @default "data-nimbus-outside-press-ignore"
377
- */
378
- ignoreAttributeName?: string;
379
- }
380
- export type SidebarProps = SidebarProperties & {
381
- /**
382
- * Root element where the portal should be mounted. When provided and not null,
383
- * the portal renders inside this element; when null/undefined, the default root is used.
384
- */
385
- root?: HTMLElement | null;
386
- } & HTMLAttributes<HTMLDivElement>;
387
- export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;
388
-
389
- export {};
@@ -1,31 +0,0 @@
1
- // Generated by dts-bundle-generator v7.2.0
2
-
3
- import React from 'react';
4
- import { HTMLAttributes } 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 declare const Skeleton: React.FC<SkeletonProps>;
26
-
27
- export {
28
- Skeleton as default,
29
- };
30
-
31
- export {};
@@ -1,53 +0,0 @@
1
- // Generated by dts-bundle-generator v7.2.0
2
-
3
- import React from 'react';
4
- import { SVGAttributes } from 'react';
5
-
6
- declare const spinner: {
7
- sprinkle: ((props: {
8
- color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "success-interactive" | undefined;
9
- }) => string) & {
10
- properties: Set<"color">;
11
- };
12
- properties: {
13
- color: {
14
- currentColor: string;
15
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
16
- "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
17
- "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
18
- "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
19
- "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
20
- "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
21
- "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
22
- "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
23
- "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
24
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
25
- "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
26
- "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
27
- "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
28
- };
29
- };
30
- classnames: {
31
- base: string;
32
- };
33
- };
34
- export interface SpinnerProperties {
35
- /**
36
- * Sets the width and height of the spinner.
37
- * @default large
38
- */
39
- size?: "small" | "medium" | "large" | number;
40
- /**
41
- * Set the color for the spinner SVG fill.
42
- * @default primary-interactive
43
- */
44
- color?: keyof typeof spinner.properties.color;
45
- }
46
- export type SpinnerProps = SpinnerProperties & SVGAttributes<SVGElement>;
47
- export declare const Spinner: React.FC<SpinnerProps>;
48
-
49
- export {
50
- Spinner as default,
51
- };
52
-
53
- export {};