@nimbus-ds/components 5.23.0-rc.1 → 5.24.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.
- package/CHANGELOG.md +14 -0
- package/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.d.ts +60 -0
- package/dist/Alert/index.js +1 -1
- package/dist/Box/index.d.ts +6 -3
- package/dist/Button/index.d.ts +1 -1
- package/dist/CHANGELOG.md +14 -0
- package/dist/Chip/index.d.ts +59 -0
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.d.ts +98 -0
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.d.ts +120 -0
- package/dist/Icon/index.js +1 -1
- package/dist/IconButton/index.d.ts +7 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/Input/index.d.ts +76 -0
- package/dist/Input/index.js +1 -1
- package/dist/Link/index.d.ts +115 -0
- package/dist/Modal/index.d.ts +232 -0
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.d.ts +107 -0
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.d.ts +41 -0
- package/dist/Pagination/index.js +1 -1
- package/dist/Popover/index.d.ts +165 -0
- package/dist/Radio/index.d.ts +62 -0
- package/dist/ScrollPane/index.d.ts +889 -0
- package/dist/SegmentedControl/index.d.ts +6 -3
- package/dist/Select/index.d.ts +81 -0
- package/dist/Select/index.js +1 -1
- package/dist/Skeleton/index.d.ts +31 -0
- package/dist/Spinner/index.d.ts +53 -0
- package/dist/Stepper/index.d.ts +869 -0
- package/dist/Stepper/index.js +1 -1
- package/dist/Thumbnail/index.d.ts +73 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Toast/index.d.ts +56 -0
- package/dist/Toast/index.js +1 -1
- package/dist/Tooltip/index.d.ts +46 -0
- package/dist/index.d.ts +14 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
export interface Conditions<T> {
|
|
7
|
+
xs?: T;
|
|
8
|
+
md?: T;
|
|
9
|
+
lg?: T;
|
|
10
|
+
xl?: T;
|
|
11
|
+
}
|
|
12
|
+
export type Overflow = "visible" | "hidden" | "scroll" | "auto";
|
|
13
|
+
declare const propertiesPopover: {
|
|
14
|
+
backgroundColor: {
|
|
15
|
+
"primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16
|
+
"primary-interactiveHover": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17
|
+
"success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
18
|
+
"danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
19
|
+
"neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
20
|
+
"warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
21
|
+
"neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
22
|
+
};
|
|
23
|
+
color: {
|
|
24
|
+
"primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
25
|
+
"primary-interactiveHover": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
26
|
+
"success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
27
|
+
"danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
28
|
+
"neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
29
|
+
"warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
30
|
+
"neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
31
|
+
};
|
|
32
|
+
padding: {
|
|
33
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
34
|
+
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
35
|
+
none: string;
|
|
36
|
+
};
|
|
37
|
+
zIndex: {
|
|
38
|
+
"100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
39
|
+
"200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
40
|
+
"300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
41
|
+
"400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
42
|
+
"500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
43
|
+
"600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
44
|
+
"700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
45
|
+
"800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
46
|
+
"900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
47
|
+
};
|
|
48
|
+
overflow: Overflow[];
|
|
49
|
+
};
|
|
50
|
+
export type PopoverColorProperties = keyof typeof propertiesPopover.color;
|
|
51
|
+
export type PopoverBackgroundColorProperties = keyof typeof propertiesPopover.backgroundColor;
|
|
52
|
+
export type PopoverPaddingProperties = keyof typeof propertiesPopover.padding;
|
|
53
|
+
export type PopoverZIndexProperties = keyof typeof propertiesPopover.zIndex;
|
|
54
|
+
export interface PopoverSprinkle {
|
|
55
|
+
/**
|
|
56
|
+
* The width property specifies the width of a popover's content area.
|
|
57
|
+
* @default fit-content
|
|
58
|
+
*/
|
|
59
|
+
width?: string | Conditions<string>;
|
|
60
|
+
/**
|
|
61
|
+
* The maxWidth property specifies the maximum width of a popover's content area.
|
|
62
|
+
*/
|
|
63
|
+
maxWidth?: string | Conditions<string>;
|
|
64
|
+
/**
|
|
65
|
+
* The height property specifies the height of a popover's content area.
|
|
66
|
+
*/
|
|
67
|
+
height?: string | Conditions<string>;
|
|
68
|
+
/**
|
|
69
|
+
* The zIndex property specifies the stack order of the popover.
|
|
70
|
+
*/
|
|
71
|
+
zIndex?: PopoverZIndexProperties | Conditions<PopoverZIndexProperties>;
|
|
72
|
+
/**
|
|
73
|
+
* The backgroundColor property sets the background color of the popover.
|
|
74
|
+
* @default neutral-background
|
|
75
|
+
* @examples ["neutral-interactive", { xs: "neutral-surface", md: "neutral-interactive" }]
|
|
76
|
+
*/
|
|
77
|
+
backgroundColor?: PopoverBackgroundColorProperties | Conditions<PopoverBackgroundColorProperties>;
|
|
78
|
+
/**
|
|
79
|
+
* The color property is used to set the color of the popover.
|
|
80
|
+
* @default neutral-background
|
|
81
|
+
*/
|
|
82
|
+
color?: PopoverColorProperties | Conditions<PopoverColorProperties>;
|
|
83
|
+
/**
|
|
84
|
+
* The padding properties are used to generate space around an popover's content area.
|
|
85
|
+
* @default base
|
|
86
|
+
*/
|
|
87
|
+
padding?: PopoverPaddingProperties | Conditions<PopoverPaddingProperties>;
|
|
88
|
+
/**
|
|
89
|
+
* The overflow shorthand property sets the desired behavior for an popover's content overflow.
|
|
90
|
+
*/
|
|
91
|
+
overflow?: Overflow | Conditions<Overflow>;
|
|
92
|
+
}
|
|
93
|
+
export type PopoverPlacement = "top" | "right" | "bottom" | "left" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" | "top-start" | "top-end";
|
|
94
|
+
export interface PopoverProperties extends PopoverSprinkle {
|
|
95
|
+
/**
|
|
96
|
+
* An HTML element, or a function that returns one. It's used to set the position of the popover.
|
|
97
|
+
* @TJS-type React.ReactNode | ((data: { open: boolean, setVisibility: (visibility: boolean) => void }) => React.ReactNode);
|
|
98
|
+
*/
|
|
99
|
+
children: ReactNode | ((data: {
|
|
100
|
+
open: boolean;
|
|
101
|
+
setVisibility: (visibility: boolean) => void;
|
|
102
|
+
}) => ReactNode);
|
|
103
|
+
/**
|
|
104
|
+
* The content of the popover.
|
|
105
|
+
* @TJS-type React.ReactNode
|
|
106
|
+
*/
|
|
107
|
+
content: ReactNode;
|
|
108
|
+
/**
|
|
109
|
+
* If true, the component is shown.
|
|
110
|
+
*/
|
|
111
|
+
visible?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Function to control popover opening and closing.
|
|
114
|
+
* @TJS-type (visible: boolean) => void;
|
|
115
|
+
*/
|
|
116
|
+
onVisibility?: (visible: boolean) => void;
|
|
117
|
+
/**
|
|
118
|
+
* Conditional for displaying the popover arrow.
|
|
119
|
+
* @default true
|
|
120
|
+
*/
|
|
121
|
+
arrow?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* A common feature of select dropdowns is that the dropdown matches the width of the reference regardless of its contents.
|
|
124
|
+
* @default false
|
|
125
|
+
*/
|
|
126
|
+
matchReferenceWidth?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Position of the popover.
|
|
129
|
+
* @default bottom
|
|
130
|
+
*/
|
|
131
|
+
position?: PopoverPlacement;
|
|
132
|
+
/**
|
|
133
|
+
* Adds hover event listeners that change the open state, like CSS :hover.
|
|
134
|
+
* @default false
|
|
135
|
+
*/
|
|
136
|
+
enabledHover?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Adds click event listeners that change the open state.
|
|
139
|
+
* @default true
|
|
140
|
+
*/
|
|
141
|
+
enabledClick?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Adds listeners that dismiss (close) the floating element.
|
|
144
|
+
* @default true
|
|
145
|
+
*/
|
|
146
|
+
enabledDismiss?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Offest displaces the floating element from its core placement along the specified axes.
|
|
149
|
+
* @default 10
|
|
150
|
+
*/
|
|
151
|
+
offset?: number;
|
|
152
|
+
/**
|
|
153
|
+
* When enabled, renders an invisible overlay that prevents accidental clicks on elements behind the popover.
|
|
154
|
+
* @default false
|
|
155
|
+
*/
|
|
156
|
+
renderOverlay?: boolean;
|
|
157
|
+
}
|
|
158
|
+
export type PopoverProps = PopoverProperties & Omit<HTMLAttributes<HTMLDivElement>, "children" | "content">;
|
|
159
|
+
export declare const Popover: React.FC<PopoverProps>;
|
|
160
|
+
|
|
161
|
+
export {
|
|
162
|
+
Popover as default,
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
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 RadioSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<RadioProps, "as">> & {
|
|
26
|
+
/**
|
|
27
|
+
* This is an attribute used to identify a DOM node for testing purposes.
|
|
28
|
+
*/
|
|
29
|
+
"data-testid"?: string;
|
|
30
|
+
};
|
|
31
|
+
export type RadioSkeletonProps = RadioSkeletonProperties;
|
|
32
|
+
export declare const RadioSkeleton: React.FC<RadioSkeletonProps>;
|
|
33
|
+
export interface RadioComponents {
|
|
34
|
+
Skeleton: typeof RadioSkeleton;
|
|
35
|
+
}
|
|
36
|
+
export interface RadioProperties {
|
|
37
|
+
/**
|
|
38
|
+
* Name attribute of the input element.
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
* Change the visual style of the radio.
|
|
43
|
+
* @default radio
|
|
44
|
+
*/
|
|
45
|
+
as?: "radio" | "button";
|
|
46
|
+
/**
|
|
47
|
+
* Modifies true/false value of the native radio.
|
|
48
|
+
*/
|
|
49
|
+
checked?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Modifies the native disabled state of the native radio.
|
|
52
|
+
*/
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Text to be rendered inside the component.
|
|
56
|
+
*/
|
|
57
|
+
label?: string;
|
|
58
|
+
}
|
|
59
|
+
export type RadioProps = RadioProperties & InputHTMLAttributes<HTMLInputElement>;
|
|
60
|
+
export declare const Radio: React.FC<RadioProps> & RadioComponents;
|
|
61
|
+
|
|
62
|
+
export {};
|