@nimbus-ds/components 5.22.0 → 5.23.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/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Box/index.d.ts +17 -13
- package/dist/Button/index.js +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Label/index.js +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/List/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollPane/index.js +1 -1
- package/dist/SegmentedControl/index.d.ts +17 -13
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Sidebar/index.js +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/Tag/index.js +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Title/index.js +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toggle/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/index.d.ts +17 -13
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Alert/index.d.ts +0 -60
- package/dist/Chip/index.d.ts +0 -59
- package/dist/FileUploader/index.d.ts +0 -98
- package/dist/Icon/index.d.ts +0 -120
- package/dist/Input/index.d.ts +0 -76
- package/dist/Link/index.d.ts +0 -115
- package/dist/Modal/index.d.ts +0 -232
- package/dist/MultiSelect/index.d.ts +0 -107
- package/dist/Pagination/index.d.ts +0 -41
- package/dist/Popover/index.d.ts +0 -165
- package/dist/Radio/index.d.ts +0 -62
- package/dist/ScrollPane/index.d.ts +0 -882
- package/dist/Select/index.d.ts +0 -81
- package/dist/Skeleton/index.d.ts +0 -31
- package/dist/Spinner/index.d.ts +0 -53
- package/dist/Stepper/index.d.ts +0 -862
- package/dist/Thumbnail/index.d.ts +0 -73
- package/dist/Toast/index.d.ts +0 -56
- package/dist/Tooltip/index.d.ts +0 -46
- package/dist/components-props.json +0 -1
package/package.json
CHANGED
package/dist/Alert/index.d.ts
DELETED
|
@@ -1,60 +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 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 AlertSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "height" | "data-testid">>;
|
|
26
|
-
export type AlertSkeletonProps = AlertSkeletonProperties;
|
|
27
|
-
export declare const AlertSkeleton: React.FC<AlertSkeletonProps>;
|
|
28
|
-
export interface AlertComponents {
|
|
29
|
-
Skeleton: typeof AlertSkeleton;
|
|
30
|
-
}
|
|
31
|
-
export interface AlertProperties {
|
|
32
|
-
/**
|
|
33
|
-
* The content for the title of the alert.
|
|
34
|
-
*/
|
|
35
|
-
title?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Change the visual style of the alert.
|
|
38
|
-
* @default neutral
|
|
39
|
-
*/
|
|
40
|
-
appearance?: "primary" | "success" | "warning" | "danger" | "neutral";
|
|
41
|
-
/**
|
|
42
|
-
* The content of the alert.
|
|
43
|
-
* @TJS-type React.ReactNode
|
|
44
|
-
*/
|
|
45
|
-
children: ReactNode;
|
|
46
|
-
/**
|
|
47
|
-
* Function to be passed on actioning the dismiss button.
|
|
48
|
-
* @TJS-type () => void;
|
|
49
|
-
*/
|
|
50
|
-
onRemove?: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* Determines if the alert is shown or not.
|
|
53
|
-
* @default true
|
|
54
|
-
*/
|
|
55
|
-
show?: boolean;
|
|
56
|
-
}
|
|
57
|
-
export type AlertProps = AlertProperties & HTMLAttributes<HTMLElement>;
|
|
58
|
-
export declare const Alert: React.FC<AlertProps> & AlertComponents;
|
|
59
|
-
|
|
60
|
-
export {};
|
package/dist/Chip/index.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,98 +0,0 @@
|
|
|
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 {};
|
package/dist/Icon/index.d.ts
DELETED
|
@@ -1,120 +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 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 {};
|
package/dist/Input/index.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
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 {};
|
package/dist/Link/index.d.ts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
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 {};
|