@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,83 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { ButtonHTMLAttributes, ComponentPropsWithRef, HTMLAttributes, ReactNode } from 'react';
5
+
6
+ export type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
7
+ export type ForwardRefExoticComponent<E, OwnProps> = React.ForwardRefExoticComponent<Merge<E extends React.ElementType ? React.ComponentPropsWithRef<E> : never, OwnProps & {
8
+ as?: E;
9
+ }>>;
10
+ export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps = {}
11
+ /**
12
+ * Extends original type to ensure built in React types play nice
13
+ * with polymorphic components still e.g. `React.ElementRef` etc.
14
+ */
15
+ > extends ForwardRefExoticComponent<IntrinsicElementString, OwnProps> {
16
+ /**
17
+ * When `as` prop is passed, use this overload.
18
+ * Merges original own props (without DOM props) and the inferred props
19
+ * from `as` element with the own props taking precendence.
20
+ *
21
+ * We explicitly avoid `React.ElementType` and manually narrow the prop types
22
+ * so that events are typed when using JSX.IntrinsicElements.
23
+ */
24
+ <As = IntrinsicElementString>(props: As extends "" ? {
25
+ as: keyof JSX.IntrinsicElements;
26
+ } : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
27
+ as: As;
28
+ }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
29
+ as: As;
30
+ }> : never): React.ReactElement | null;
31
+ }
32
+ export interface SkeletonProperties {
33
+ /**
34
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
35
+ */
36
+ width: string;
37
+ /**
38
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
39
+ */
40
+ height: string;
41
+ /**
42
+ * The border radius of the skeleton.
43
+ */
44
+ borderRadius?: string;
45
+ /**
46
+ * This is an attribute used to identify a DOM node for testing purposes.
47
+ */
48
+ "data-testid"?: string;
49
+ }
50
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
51
+ export type ButtonSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
52
+ export type ButtonSkeletonProps = ButtonSkeletonProperties;
53
+ export declare const ButtonSkeleton: React.FC<ButtonSkeletonProps>;
54
+ export interface ButtonComponents {
55
+ Skeleton: typeof ButtonSkeleton;
56
+ }
57
+ export interface ButtonProperties {
58
+ /**
59
+ * The content of the button.
60
+ * @TJS-type React.ReactNode
61
+ */
62
+ children: ReactNode;
63
+ /**
64
+ * Change the visual style of the button.
65
+ * @default neutral
66
+ */
67
+ appearance?: "primary" | "danger" | "neutral" | "transparent" | "ai-primary" | "ai-secondary";
68
+ /**
69
+ * Disables the button, disallowing user interaction.
70
+ * @default false
71
+ */
72
+ disabled?: boolean;
73
+ /**
74
+ * Determines if the button should grow to fill the full width of its container.
75
+ * @default false
76
+ */
77
+ fullWidth?: boolean;
78
+ }
79
+ export type ButtonBaseProps = ButtonProperties & ButtonHTMLAttributes<HTMLButtonElement>;
80
+ export declare const Button: PolymorphicForwardRefComponent<"a" | "button", ButtonBaseProps> & ButtonComponents;
81
+ export type ButtonProps = ComponentPropsWithRef<typeof Button>;
82
+
83
+ export {};
package/dist/CHANGELOG.md CHANGED
@@ -6,7 +6,7 @@ Nimbus is an open-source Design System created by Tiendanube / Nuvemshop's team
6
6
 
7
7
  #### 🎉 New features
8
8
 
9
- - `Text`: Added `ai-generative` appearance to highlight AI-generated content using Nimbus AI gradient style. ([#TBD](https://github.com/TiendaNube/nimbus-design-system/pull/TBD) by [@usuario](https://github.com/usuario))
9
+ - `Text`: Added `ai-generative` appearance to highlight AI-generated content using Nimbus AI gradient style. ([#363](https://github.com/TiendaNube/nimbus-design-system/pull/363) by [@joacotornello](https://github.com/joacotornello))
10
10
 
11
11
  ## 2025-09-25 `5.28.0`
12
12
 
@@ -0,0 +1,153 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { HTMLAttributes, ReactNode } from 'react';
5
+
6
+ declare const card: {
7
+ classnames: {
8
+ container: string;
9
+ container__footer: string;
10
+ };
11
+ subComponents: {
12
+ header: {
13
+ sprinkle: ((props: {
14
+ padding?: "base" | "small" | "none" | undefined;
15
+ }) => string) & {
16
+ properties: Set<"padding">;
17
+ };
18
+ properties: {
19
+ padding: {
20
+ base: string;
21
+ small: string;
22
+ none: string;
23
+ };
24
+ };
25
+ };
26
+ body: {
27
+ sprinkle: ((props: {
28
+ padding?: "base" | "small" | "none" | undefined;
29
+ }) => string) & {
30
+ properties: Set<"padding">;
31
+ };
32
+ properties: {
33
+ padding: {
34
+ base: string;
35
+ small: string;
36
+ none: string;
37
+ };
38
+ };
39
+ };
40
+ footer: {
41
+ sprinkle: ((props: {
42
+ padding?: "base" | "small" | "none" | undefined;
43
+ }) => string) & {
44
+ properties: Set<"padding">;
45
+ };
46
+ properties: {
47
+ padding: {
48
+ base: string;
49
+ small: string;
50
+ none: string;
51
+ };
52
+ };
53
+ };
54
+ };
55
+ sprinkle: ((props: {
56
+ backgroundColor?: "primary-surface" | "primary-surfaceHighlight" | "success-surface" | "success-surfaceHighlight" | "warning-surface" | "warning-surfaceHighlight" | "danger-surface" | "danger-surfaceHighlight" | "neutral-background" | "neutral-surface" | "neutral-surfaceHighlight" | undefined;
57
+ padding?: "base" | "small" | "none" | undefined;
58
+ }) => string) & {
59
+ properties: Set<"backgroundColor" | "padding">;
60
+ };
61
+ properties: {
62
+ backgroundColor: {
63
+ "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
64
+ "primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
65
+ "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
66
+ "success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
67
+ "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
68
+ "danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
69
+ "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
70
+ "warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
71
+ "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
72
+ "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
73
+ "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
74
+ };
75
+ padding: {
76
+ base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
77
+ small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
78
+ none: string;
79
+ };
80
+ };
81
+ };
82
+ export interface CardBodyProperties {
83
+ /**
84
+ * The content of the card body.
85
+ * @TJS-type React.ReactNode
86
+ */
87
+ children: ReactNode;
88
+ /**
89
+ * The padding properties are used to generate space around an card's body content area.
90
+ * @default none
91
+ */
92
+ padding?: keyof typeof card.subComponents.body.properties.padding;
93
+ }
94
+ export type CardBodyProps = CardBodyProperties & HTMLAttributes<HTMLElement>;
95
+ export declare const CardBody: React.FC<CardBodyProps>;
96
+ export interface CardFooterProperties {
97
+ /**
98
+ * The content of the card footer.
99
+ * @TJS-type React.ReactNode
100
+ */
101
+ children: ReactNode;
102
+ /**
103
+ * The padding properties are used to generate space around an card's footer content area.
104
+ * @default none
105
+ */
106
+ padding?: keyof typeof card.subComponents.footer.properties.padding;
107
+ }
108
+ export type CardFooterProps = CardFooterProperties & HTMLAttributes<HTMLElement>;
109
+ export declare const CardFooter: React.FC<CardFooterProps>;
110
+ export interface CardHeaderProperties {
111
+ /**
112
+ * The content of the card header.
113
+ * @TJS-type React.ReactNode
114
+ */
115
+ children?: ReactNode;
116
+ /**
117
+ * The title to display in the card header.
118
+ */
119
+ title?: string;
120
+ /**
121
+ * The padding properties are used to generate space around an card's header content area.
122
+ * @default none
123
+ */
124
+ padding?: keyof typeof card.subComponents.header.properties.padding;
125
+ }
126
+ export type CardHeaderProps = CardHeaderProperties & HTMLAttributes<HTMLElement>;
127
+ export declare const CardHeader: React.FC<CardHeaderProps>;
128
+ export interface CardComponents {
129
+ Body: typeof CardBody;
130
+ Footer: typeof CardFooter;
131
+ Header: typeof CardHeader;
132
+ }
133
+ export interface CardProperties {
134
+ /**
135
+ * The content of the card.
136
+ * @TJS-type React.ReactNode
137
+ */
138
+ children: ReactNode;
139
+ /**
140
+ * The padding properties are used to generate space around an card's content area.
141
+ * @default base
142
+ */
143
+ padding?: keyof typeof card.properties.padding;
144
+ /**
145
+ * The backgroundColor property sets the background color of the card.
146
+ * @default neutral-background
147
+ */
148
+ backgroundColor?: keyof typeof card.properties.backgroundColor;
149
+ }
150
+ export type CardProps = CardProperties & HTMLAttributes<HTMLElement>;
151
+ export declare const Card: React.FC<CardProps> & CardComponents;
152
+
153
+ export {};
@@ -0,0 +1,62 @@
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 CheckboxSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
26
+ export type CheckboxSkeletonProps = CheckboxSkeletonProperties;
27
+ export declare const CheckboxSkeleton: React.FC<CheckboxSkeletonProps>;
28
+ export interface CheckboxComponents {
29
+ Skeleton: typeof CheckboxSkeleton;
30
+ }
31
+ export interface CheckboxProperties {
32
+ /**
33
+ * The name of the input element.
34
+ */
35
+ name: string;
36
+ /**
37
+ * Change the visual style of the checkbox.
38
+ * @default neutral
39
+ */
40
+ appearance?: "primary" | "danger";
41
+ /**
42
+ * Modifies true/false value of the native checkbox.
43
+ */
44
+ checked?: boolean;
45
+ /**
46
+ * Modifies the native disabled state of the native checkbox.
47
+ */
48
+ disabled?: boolean;
49
+ /**
50
+ * If true, the component appears indeterminate. This does not set the native input element to indeterminate due to inconsistent behavior across browsers. However, we set a data-indeterminate attribute on the input.
51
+ * @default false
52
+ */
53
+ indeterminate?: boolean;
54
+ /**
55
+ * Text to be rendered inside the component.
56
+ */
57
+ label?: string;
58
+ }
59
+ export type CheckboxProps = CheckboxProperties & InputHTMLAttributes<HTMLInputElement>;
60
+ export declare const Checkbox: React.FC<CheckboxProps> & CheckboxComponents;
61
+
62
+ export {};
@@ -0,0 +1,59 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } 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 ChipSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
26
+ /**
27
+ * This is an attribute used to identify a DOM node for testing purposes.
28
+ */
29
+ "data-testid"?: string;
30
+ };
31
+ export type ChipSkeletonProps = ChipSkeletonProperties;
32
+ export declare const ChipSkeleton: React.FC<ChipSkeletonProps>;
33
+ export interface ChipComponents {
34
+ Skeleton: typeof ChipSkeleton;
35
+ }
36
+ export interface ChipProperties {
37
+ /**
38
+ Text to be displayed on chip.
39
+ */
40
+ text: string;
41
+ /**
42
+ * SVG icon to be displayed on chip.
43
+ * @TJS-type React.ReactNode
44
+ */
45
+ icon?: ReactNode;
46
+ /**
47
+ * Informs whether the close icon should be displayed.
48
+ */
49
+ removable?: boolean;
50
+ /**
51
+ * Highlights the chip to indicate its value was generated by AI.
52
+ * Applies AI gradient border and an AI outline.
53
+ */
54
+ aiGenerated?: boolean;
55
+ }
56
+ export type ChipProps = ChipProperties & ButtonHTMLAttributes<HTMLButtonElement | HTMLDivElement>;
57
+ export declare const Chip: React.FC<ChipProps> & ChipComponents;
58
+
59
+ export {};
@@ -0,0 +1,45 @@
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 CollapsibleBodyProperties {
7
+ /**
8
+ * The content of the collapsible body.
9
+ * @TJS-type React.ReactNode
10
+ */
11
+ children: ReactNode;
12
+ /**
13
+ * Show Collapsible.Body when state is open or closed.
14
+ * @default open
15
+ */
16
+ visibleWhen?: "open" | "closed";
17
+ /**
18
+ * Set the direction that Collapsible.Body going to open
19
+ * @default none
20
+ */
21
+ direction?: "top" | "bottom" | "none";
22
+ }
23
+ export type CollapsibleBodyProps = CollapsibleBodyProperties & HTMLAttributes<HTMLElement>;
24
+ export declare const CollapsibleBody: React.FC<CollapsibleBodyProps>;
25
+ export interface CollapsibleItemProperties {
26
+ /**
27
+ * The content of the collapsible body.
28
+ * @TJS-type React.ReactNode
29
+ */
30
+ children: ReactNode;
31
+ }
32
+ export type CollapsibleItemProps = CollapsibleItemProperties;
33
+ export declare const CollapsibleItem: React.FC<CollapsibleItemProps>;
34
+ export interface CollapsibleComponents {
35
+ Body: typeof CollapsibleBody;
36
+ Item: typeof CollapsibleItem;
37
+ }
38
+ export interface CollapsibleProperties {
39
+ children?: ReactNode;
40
+ open?: boolean;
41
+ }
42
+ export type CollapsibleBaseProps = CollapsibleProperties & Omit<HTMLAttributes<HTMLElement>, "onChange">;
43
+ export declare const Collapsible: React.FC<CollapsibleProperties> & CollapsibleComponents;
44
+
45
+ export {};
@@ -0,0 +1,30 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { HTMLAttributes } from 'react';
5
+
6
+ export interface DividerProperties {
7
+ /**
8
+ * Defines the orientation of the divider.
9
+ * @default horizontal
10
+ */
11
+ orientation?: "horizontal" | "vertical";
12
+ /**
13
+ * Visual appearance color.
14
+ * @default neutral
15
+ */
16
+ appearance?: "neutral";
17
+ /**
18
+ * Thickness level based on shape.border.width tokens.
19
+ * @default 1
20
+ */
21
+ thickness?: 1 | 2 | 3;
22
+ }
23
+ export type DividerProps = DividerProperties & HTMLAttributes<HTMLHRElement>;
24
+ export declare const Divider: React.FC<DividerProps>;
25
+
26
+ export {
27
+ Divider as default,
28
+ };
29
+
30
+ export {};
@@ -0,0 +1,98 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { HTMLAttributes, InputHTMLAttributes } from 'react';
5
+
6
+ export type AspectRatio = "1/1" | "16/9" | "9/16" | "4/3" | "3/4" | "2/1" | "1/2";
7
+ export type Cursor = "auto" | "pointer" | "not-allowed" | "grab" | "inherit";
8
+ declare const fileUploader: {
9
+ sprinkle: ((props: {
10
+ aspectRatio?: "none" | AspectRatio | undefined;
11
+ flexDirection?: "row" | "column" | undefined;
12
+ cursor?: Cursor | undefined;
13
+ }) => string) & {
14
+ properties: Set<"aspectRatio" | "cursor" | "flexDirection">;
15
+ };
16
+ properties: {
17
+ aspectRatio: readonly [
18
+ "none",
19
+ ...AspectRatio[]
20
+ ];
21
+ flexDirection: readonly [
22
+ "row",
23
+ "column"
24
+ ];
25
+ cursor: Cursor[];
26
+ };
27
+ classnames: {
28
+ container: string;
29
+ container__input: string;
30
+ disabled: string;
31
+ skeleton: string;
32
+ };
33
+ };
34
+ export interface SkeletonProperties {
35
+ /**
36
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
37
+ */
38
+ width: string;
39
+ /**
40
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
41
+ */
42
+ height: string;
43
+ /**
44
+ * The border radius of the skeleton.
45
+ */
46
+ borderRadius?: string;
47
+ /**
48
+ * This is an attribute used to identify a DOM node for testing purposes.
49
+ */
50
+ "data-testid"?: string;
51
+ }
52
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
53
+ export type FileUploaderSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & Partial<Pick<FileUploaderProps, "aspectRatio">> & {
54
+ /**
55
+ * This is an attribute used to identify a DOM node for testing purposes.
56
+ */
57
+ "data-testid"?: string;
58
+ };
59
+ export type FileUploaderSkeletonProps = FileUploaderSkeletonProperties;
60
+ export declare const FileUploaderSkeleton: React.FC<FileUploaderSkeletonProps>;
61
+ export interface FileUploaderComponents {
62
+ Skeleton: typeof FileUploaderSkeleton;
63
+ }
64
+ export interface FileUploaderProperties {
65
+ /**
66
+ * Provide additional context to the action.
67
+ */
68
+ placeholder?: string;
69
+ /**
70
+ * Accept file types
71
+ * @default image/jpeg,image/gif,image/png
72
+ */
73
+ accept?: string;
74
+ /**
75
+ * Height value of the file uploader. Defaults to 100%.
76
+ * @default 100%
77
+ */
78
+ height?: string;
79
+ /**
80
+ * Width value of the file uploader. Defaults to 100%.
81
+ * @default 100%
82
+ */
83
+ width?: string;
84
+ /**
85
+ * Permitted aspect ratios for the size of the file uploader.
86
+ * @default 1/1
87
+ */
88
+ aspectRatio?: typeof fileUploader.properties.aspectRatio[number];
89
+ /**
90
+ * Defines the position of the placeholder in relation to the icon.
91
+ * @default column
92
+ */
93
+ flexDirection?: typeof fileUploader.properties.flexDirection[number];
94
+ }
95
+ export type FileUploaderProps = FileUploaderProperties & InputHTMLAttributes<HTMLInputElement>;
96
+ export declare const FileUploader: React.FC<FileUploaderProps> & FileUploaderComponents;
97
+
98
+ export {};
@@ -0,0 +1,120 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { HTMLAttributes, ReactNode } from 'react';
5
+
6
+ export type Cursor = "auto" | "pointer" | "not-allowed" | "grab" | "inherit";
7
+ declare const icon: {
8
+ sprinkle: ((props: {
9
+ color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "warning-interactive" | "warning-surface" | "warning-textLow" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "success-interactive" | "ai-generative" | "primary-textHigh" | "success-textHigh" | "warning-textHigh" | "danger-textHigh" | "neutral-textDisabled" | "neutral-textHigh" | undefined;
10
+ cursor?: Cursor | undefined;
11
+ }) => string) & {
12
+ properties: Set<"color" | "cursor">;
13
+ };
14
+ properties: {
15
+ color: {
16
+ currentColor: string;
17
+ "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
18
+ "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
19
+ "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
20
+ "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
21
+ "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
22
+ "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
23
+ "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
24
+ "success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
25
+ "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
26
+ "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
27
+ "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
28
+ "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
29
+ "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
30
+ "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
31
+ "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
32
+ "danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
33
+ "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
34
+ "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
35
+ "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
36
+ "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
37
+ "neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
38
+ "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
39
+ "ai-generative": string;
40
+ };
41
+ cursor: Cursor[];
42
+ };
43
+ classnames: {
44
+ base: string;
45
+ };
46
+ };
47
+ export interface SkeletonProperties {
48
+ /**
49
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
50
+ */
51
+ width: string;
52
+ /**
53
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
54
+ */
55
+ height: string;
56
+ /**
57
+ * The border radius of the skeleton.
58
+ */
59
+ borderRadius?: string;
60
+ /**
61
+ * This is an attribute used to identify a DOM node for testing purposes.
62
+ */
63
+ "data-testid"?: string;
64
+ }
65
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
66
+ export type IconSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
67
+ /**
68
+ * This is an attribute used to identify a DOM node for testing purposes.
69
+ */
70
+ "data-testid"?: string;
71
+ };
72
+ export type IconSkeletonProps = IconSkeletonProperties;
73
+ export declare const IconSkeleton: React.FC<IconSkeletonProps>;
74
+ export interface IconComponents {
75
+ Skeleton: typeof IconSkeleton;
76
+ }
77
+ export interface IconProperties {
78
+ /**
79
+ * The SVG contents to display in the Icon.
80
+ * @TJS-type React.ReactNode
81
+ */
82
+ source: ReactNode;
83
+ /**
84
+ * Set the color for the SVG fill.
85
+ * Use "ai-generative" to apply the Nimbus AI generative gradient.
86
+ * @default neutral-textLow
87
+ */
88
+ color?: keyof typeof icon.properties.color | "ai-generative";
89
+ /**
90
+ * The cursor property specifies the mouse cursor to be displayed when pointing over an element.
91
+ * @default inherit
92
+ */
93
+ cursor?: (typeof icon.properties.cursor)[number];
94
+ }
95
+ export type IconProps = IconProperties & HTMLAttributes<HTMLDivElement>;
96
+ export declare const Icon: React.FC<IconProps> & IconComponents;
97
+ /**
98
+ * Checks if a color value is valid (exists and is not "none" or "transparent")
99
+ * @param color - The color value to check
100
+ * @returns True if color is valid, false otherwise
101
+ */
102
+ export declare const isValidColorValue: (color: string | undefined) => boolean;
103
+ /**
104
+ * Checks if a color value can use gradient (valid and not already a URL reference)
105
+ * @param color - The color value to check
106
+ * @returns True if color can use gradient, false otherwise
107
+ */
108
+ export declare const canUseGradient: (color: string) => boolean;
109
+ /**
110
+ * Checks if a color value is a gradient
111
+ * @param color - The color value to check
112
+ * @returns True if color is a known gradient value, false otherwise
113
+ */
114
+ export declare const isGradient: (color: string) => boolean;
115
+ /**
116
+ * Collection of known gradient color values
117
+ */
118
+ export declare const GRADIENT_COLORS: Set<string>;
119
+
120
+ export {};