@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,170 @@
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 Conditions<T> {
7
+ xs?: T;
8
+ md?: T;
9
+ lg?: T;
10
+ xl?: T;
11
+ }
12
+ export type Cursor = "auto" | "pointer" | "not-allowed" | "grab" | "inherit";
13
+ declare const icon: {
14
+ sprinkle: ((props: {
15
+ 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;
16
+ cursor?: Cursor | undefined;
17
+ }) => string) & {
18
+ properties: Set<"color" | "cursor">;
19
+ };
20
+ properties: {
21
+ color: {
22
+ currentColor: string;
23
+ "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
24
+ "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
25
+ "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
26
+ "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
27
+ "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
28
+ "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
29
+ "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
30
+ "success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
31
+ "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
32
+ "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
33
+ "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
34
+ "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
35
+ "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
36
+ "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
37
+ "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
38
+ "danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
39
+ "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
40
+ "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
41
+ "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
42
+ "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
43
+ "neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
44
+ "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
45
+ "ai-generative": string;
46
+ };
47
+ cursor: Cursor[];
48
+ };
49
+ classnames: {
50
+ base: string;
51
+ };
52
+ };
53
+ declare const propertiesIconButton: {
54
+ backgroundColor: {
55
+ transparent: string;
56
+ "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
57
+ "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
58
+ "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
59
+ "ai-generativeSurface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
60
+ };
61
+ borderColor: {
62
+ "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
63
+ "neutral-interactiveHover": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
64
+ "neutral-interactivePressed": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
65
+ "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
66
+ transparent: string;
67
+ "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
68
+ "neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
69
+ "ai-generativeSurface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
70
+ };
71
+ };
72
+ export type IconButtonBackgroundColorProperties = keyof typeof propertiesIconButton.backgroundColor;
73
+ export type IconButtonBorderColorProperties = keyof typeof propertiesIconButton.borderColor;
74
+ export interface IconButtonConditions<T> extends Conditions<T> {
75
+ focus?: T;
76
+ active?: T;
77
+ hover?: T;
78
+ }
79
+ export interface IconButtonSprinkle {
80
+ /**
81
+ * The size of the component.
82
+ * @default 2.75rem
83
+ */
84
+ size?: string | IconButtonConditions<string>;
85
+ /**
86
+ * The borderColor property sets the color of the icon button's four borders.
87
+ * @default { xs: "neutral-interactive", active: "neutral-interactivePressed", hover: "neutral-interactiveHover", focus: "primary-interactive" }
88
+ */
89
+ borderColor?: IconButtonBorderColorProperties | IconButtonConditions<IconButtonBorderColorProperties>;
90
+ /**
91
+ * The backgroundColor property sets the background color of the icon button.
92
+ * @default { xs: "neutral-surface", active: "neutral-interactive", hover: "neutral-surfaceHighlight" }
93
+ */
94
+ backgroundColor?: IconButtonBackgroundColorProperties | IconButtonConditions<IconButtonBackgroundColorProperties>;
95
+ }
96
+ export interface SkeletonProperties {
97
+ /**
98
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
99
+ */
100
+ width: string;
101
+ /**
102
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
103
+ */
104
+ height: string;
105
+ /**
106
+ * The border radius of the skeleton.
107
+ */
108
+ borderRadius?: string;
109
+ /**
110
+ * This is an attribute used to identify a DOM node for testing purposes.
111
+ */
112
+ "data-testid"?: string;
113
+ }
114
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
115
+ export interface IconProperties {
116
+ /**
117
+ * The SVG contents to display in the Icon.
118
+ * @TJS-type React.ReactNode
119
+ */
120
+ source: ReactNode;
121
+ /**
122
+ * Set the color for the SVG fill.
123
+ * Use "ai-generative" to apply the Nimbus AI generative gradient.
124
+ * @default neutral-textLow
125
+ */
126
+ color?: keyof typeof icon.properties.color | "ai-generative";
127
+ /**
128
+ * The cursor property specifies the mouse cursor to be displayed when pointing over an element.
129
+ * @default inherit
130
+ */
131
+ cursor?: (typeof icon.properties.cursor)[number];
132
+ }
133
+ export type IconProps = IconProperties & HTMLAttributes<HTMLDivElement>;
134
+ export type IconButtonSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "height">> & {
135
+ /**
136
+ * This is an attribute used to identify a DOM node for testing purposes.
137
+ */
138
+ "data-testid"?: string;
139
+ };
140
+ export type IconButtonSkeletonProps = IconButtonSkeletonProperties;
141
+ export declare const IconButtonSkeleton: React.FC<IconButtonSkeletonProps>;
142
+ export interface IconButtonComponents {
143
+ Skeleton: typeof IconButtonSkeleton;
144
+ }
145
+ export interface IconButtonProperties extends IconButtonSprinkle {
146
+ /**
147
+ * Type of html tag to create for the Icon Button component.
148
+ * @default button
149
+ */
150
+ as?: "button" | "div";
151
+ /**
152
+ * The SVG contents to display in the Icon button.
153
+ * @TJS-type React.ReactNode
154
+ */
155
+ source: ReactNode;
156
+ /**
157
+ * Set the color for the inner Icon fill.
158
+ * @default neutral-textHigh
159
+ */
160
+ color?: IconProps["color"];
161
+ /**
162
+ * AI gradient background appearance for the button container.
163
+ * When provided, container color/border sprinkles are ignored in favor of gradient styles.
164
+ */
165
+ appearance?: "ai-generative";
166
+ }
167
+ export type IconButtonProps = IconButtonProperties & ButtonHTMLAttributes<HTMLButtonElement | HTMLDivElement>;
168
+ export declare const IconButton: React.FC<IconButtonProps> & IconButtonComponents;
169
+
170
+ export {};
@@ -0,0 +1,76 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { ButtonHTMLAttributes, ComponentPropsWithRef, HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';
5
+
6
+ export type InputIconProperties = Required<Pick<InputBaseProps, "appendPosition">>;
7
+ export type InputIconProps = InputIconProperties & ButtonHTMLAttributes<HTMLButtonElement>;
8
+ export declare const InputIcon: React.FC<InputIconProps>;
9
+ export type InputPasswordProperties = Pick<InputBaseProps, "appearance" | "disabled" | "aiGenerated">;
10
+ export declare const InputPassword: React.ForwardRefExoticComponent<InputPasswordProperties & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
11
+ export type InputPasswordProps = ComponentPropsWithRef<typeof InputPassword>;
12
+ export type InputSearchProperties = Pick<InputBaseProps, "appearance" | "disabled" | "aiGenerated">;
13
+ export declare const InputSearch: React.ForwardRefExoticComponent<InputSearchProperties & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
14
+ export type InputSearchProps = ComponentPropsWithRef<typeof InputSearch>;
15
+ export interface SkeletonProperties {
16
+ /**
17
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
18
+ */
19
+ width: string;
20
+ /**
21
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
22
+ */
23
+ height: string;
24
+ /**
25
+ * The border radius of the skeleton.
26
+ */
27
+ borderRadius?: string;
28
+ /**
29
+ * This is an attribute used to identify a DOM node for testing purposes.
30
+ */
31
+ "data-testid"?: string;
32
+ }
33
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
34
+ export type InputSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
35
+ export type InputSkeletonProps = InputSkeletonProperties;
36
+ export declare const InputSkeleton: React.FC<InputSkeletonProps>;
37
+ export interface InputComponents {
38
+ Password: typeof InputPassword;
39
+ Search: typeof InputSearch;
40
+ Skeleton: typeof InputSkeleton;
41
+ }
42
+ export interface InputProperties {
43
+ /**
44
+ * Change the visual style of the input.
45
+ * @default neutral
46
+ */
47
+ appearance?: "neutral" | "success" | "warning" | "danger" | "ai-generative";
48
+ /**
49
+ * Highlights the field to indicate its value was generated by AI.
50
+ * Applies AI gradient border, white background and an AI focus ring.
51
+ */
52
+ aiGenerated?: boolean;
53
+ /**
54
+ * Disables the input, disallowing user interaction.
55
+ */
56
+ disabled?: boolean;
57
+ /**
58
+ * Sent icon display position
59
+ * @default start
60
+ */
61
+ appendPosition?: "end" | "start";
62
+ /**
63
+ * SVG icon to be displayed on input.
64
+ * @TJS-type React.ReactNode
65
+ */
66
+ append?: ReactNode;
67
+ /**
68
+ * This is an attribute used to identify a DOM node for testing purposes.
69
+ */
70
+ "data-testid"?: string;
71
+ }
72
+ export type InputBaseProps = InputProperties & InputHTMLAttributes<HTMLInputElement>;
73
+ export declare const Input: React.ForwardRefExoticComponent<InputProperties & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>> & InputComponents;
74
+ export type InputProps = ComponentPropsWithRef<typeof Input>;
75
+
76
+ export {};
@@ -0,0 +1,55 @@
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 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 LabelSkeletonProperties = 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 LabelSkeletonProps = LabelSkeletonProperties;
32
+ export declare const LabelSkeleton: React.FC<LabelSkeletonProps>;
33
+ export interface LabelComponents {
34
+ Skeleton: typeof LabelSkeleton;
35
+ }
36
+ export interface LabelProperties {
37
+ /**
38
+ * The content of the label.
39
+ * @TJS-type React.ReactNode
40
+ */
41
+ children: ReactNode;
42
+ /**
43
+ * The for attribute specifies which form element a label is bound to.
44
+ */
45
+ htmlFor?: string;
46
+ /**
47
+ * If true the label will be visually hidden but maintain accessibility purpose
48
+ * @default false
49
+ */
50
+ hidden?: boolean;
51
+ }
52
+ export type LabelProps = LabelProperties & HTMLAttributes<HTMLElement>;
53
+ export declare const Label: React.FC<LabelProps> & LabelComponents;
54
+
55
+ export {};
@@ -0,0 +1,115 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { 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 type TextDecoration = "none" | "underline" | "line-through";
33
+ declare const link: {
34
+ sprinkle: ((props: {
35
+ textDecoration?: TextDecoration | undefined;
36
+ fontSize?: "base" | "caption" | "highlight" | undefined;
37
+ lineHeight?: "base" | "caption" | "highlight" | undefined;
38
+ }) => string) & {
39
+ properties: Set<"fontSize" | "textDecoration" | "lineHeight">;
40
+ };
41
+ properties: {
42
+ textDecoration: TextDecoration[];
43
+ fontSize: {
44
+ caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
45
+ base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
46
+ highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
47
+ };
48
+ lineHeight: {
49
+ readonly caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
50
+ readonly base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
51
+ readonly highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
52
+ };
53
+ };
54
+ classnames: {
55
+ base: string;
56
+ appearance: Record<"primary" | "danger" | "neutral" | "neutral-background", string>;
57
+ };
58
+ };
59
+ export interface SkeletonProperties {
60
+ /**
61
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
62
+ */
63
+ width: string;
64
+ /**
65
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
66
+ */
67
+ height: string;
68
+ /**
69
+ * The border radius of the skeleton.
70
+ */
71
+ borderRadius?: string;
72
+ /**
73
+ * This is an attribute used to identify a DOM node for testing purposes.
74
+ */
75
+ "data-testid"?: string;
76
+ }
77
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
78
+ export type LinkSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
79
+ export type LinkSkeletonProps = LinkSkeletonProperties;
80
+ export declare const LinkSkeleton: React.FC<LinkSkeletonProps>;
81
+ export interface LinkComponents {
82
+ Skeleton: typeof LinkSkeleton;
83
+ }
84
+ export interface LinkProperties {
85
+ /**
86
+ * The content of the link.
87
+ * @TJS-type React.ReactNode
88
+ */
89
+ children: ReactNode;
90
+ /**
91
+ * Change the visual style of the link.
92
+ * @default neutral
93
+ */
94
+ appearance?: "primary" | "danger" | "neutral" | "neutral-background";
95
+ /**
96
+ * The textDecoration property specifies the decoration added to link.
97
+ * @default neutral
98
+ */
99
+ textDecoration?: typeof link.properties.textDecoration[number];
100
+ /**
101
+ * The fontSize property sets the size of the link.
102
+ * @default base
103
+ */
104
+ fontSize?: keyof typeof link.properties.fontSize;
105
+ /**
106
+ * The lineHeight property specifies the line height of the link
107
+ * @default base
108
+ */
109
+ lineHeight?: keyof typeof link.properties.lineHeight;
110
+ }
111
+ export type LinkBaseProps = LinkProperties & HTMLAttributes<HTMLElement>;
112
+ export declare const Link: PolymorphicForwardRefComponent<"a" | "button", LinkBaseProps> & LinkComponents;
113
+ export type LinkProps = ComponentPropsWithRef<typeof Link>;
114
+
115
+ export {};
@@ -0,0 +1,75 @@
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 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 ListSkeletonItemProperties = 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 ListSkeletonItemProps = ListSkeletonItemProperties;
32
+ export declare const ListSkeletonItem: React.FC<ListSkeletonItemProps>;
33
+ export interface ListSkeletonProperties {
34
+ /**
35
+ * The content of the list skeleton.
36
+ * @TJS-type React.ReactNode
37
+ */
38
+ children: ReactNode;
39
+ /**
40
+ * This is an attribute used to identify a DOM node for testing purposes.
41
+ */
42
+ "data-testid"?: string;
43
+ }
44
+ export type ListSkeletonProps = ListSkeletonProperties & HTMLAttributes<HTMLDivElement>;
45
+ export declare const ListSkeleton: React.FC<ListSkeletonProps>;
46
+ export interface ListItemProperties {
47
+ /**
48
+ * The content of the list item.
49
+ * @TJS-type React.ReactNode
50
+ */
51
+ children: ReactNode;
52
+ }
53
+ export type ListItemProps = ListItemProperties & HTMLAttributes<HTMLLIElement>;
54
+ export declare const ListItem: React.FC<ListItemProps>;
55
+ export interface ListComponents {
56
+ Skeleton: typeof ListSkeleton;
57
+ SkeletonItem: typeof ListSkeletonItem;
58
+ Item: typeof ListItem;
59
+ }
60
+ export interface ListProperties {
61
+ /**
62
+ * The content of the list.
63
+ * @TJS-type React.ReactNode
64
+ */
65
+ children: ReactNode;
66
+ /**
67
+ * Determines the type of html list that will be rendered
68
+ * @default ul
69
+ */
70
+ as?: "ul" | "ol";
71
+ }
72
+ export type ListProps = ListProperties & HTMLAttributes<HTMLUListElement | HTMLOListElement>;
73
+ export declare const List: React.FC<ListProps> & ListComponents;
74
+
75
+ export {};