@takecasper/acuity-design-system 1.19.0 → 1.20.0
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/README.md +15 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +10 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +43 -18
- package/dist/index.es.js +756 -671
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
8
8
|
|
|
9
9
|
export declare const Alert: ({ variant, isDismissible, showIcon, titleSize, title, description, content, closeAriaLabel, id, handleClose, ...props }: AlertProps) => JSX_2.Element;
|
|
10
10
|
|
|
11
|
-
declare type AlertProps = {
|
|
11
|
+
export declare type AlertProps = {
|
|
12
12
|
variant: 'success' | 'info' | 'warning' | 'error';
|
|
13
13
|
isDismissible?: boolean;
|
|
14
14
|
showIcon?: boolean;
|
|
@@ -23,7 +23,7 @@ declare type AlertProps = {
|
|
|
23
23
|
|
|
24
24
|
export declare const Badge: ({ label, type, color, dismissible, dismissLabel, className, onDismiss, ...props }: BadgeProps) => JSX_2.Element;
|
|
25
25
|
|
|
26
|
-
declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
26
|
+
export declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
27
|
label: string;
|
|
28
28
|
color?: 'default' | 'gray' | 'blue' | 'green' | 'yellow' | 'red';
|
|
29
29
|
type?: 'regular' | 'small';
|
|
@@ -35,7 +35,7 @@ declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
35
35
|
|
|
36
36
|
export declare const Button: React_2.FC<ButtonProps>;
|
|
37
37
|
|
|
38
|
-
declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
38
|
+
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
39
39
|
variant?: ButtonVariant;
|
|
40
40
|
text?: string;
|
|
41
41
|
label?: string;
|
|
@@ -48,7 +48,7 @@ declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonEle
|
|
|
48
48
|
iconIndicator?: boolean;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
declare type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'inline';
|
|
51
|
+
export declare type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'inline';
|
|
52
52
|
|
|
53
53
|
export declare const Card: ({ content, iconName, title, footer, className, ...props }: CardProps) => JSX_2.Element;
|
|
54
54
|
|
|
@@ -62,7 +62,7 @@ declare interface CardProps {
|
|
|
62
62
|
|
|
63
63
|
export declare const Checkbox: ({ id, label, name, checked, disabled, indeterminate, onChange, onClick, ...props }: CheckboxProps) => JSX_2.Element;
|
|
64
64
|
|
|
65
|
-
declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
65
|
+
export declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
66
66
|
id: string;
|
|
67
67
|
label?: string;
|
|
68
68
|
indeterminate?: boolean;
|
|
@@ -72,7 +72,7 @@ declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
72
72
|
|
|
73
73
|
export declare const Heading: ({ size, className, text, descriptionTop, descriptionBottom, hasHorizontalRule, hasMarginBottom, headingTag, ...props }: HeadingProps) => JSX_2.Element;
|
|
74
74
|
|
|
75
|
-
declare interface HeadingProps extends VariantProps<typeof headingVariants> {
|
|
75
|
+
export declare interface HeadingProps extends VariantProps<typeof headingVariants> {
|
|
76
76
|
size?: 'small' | 'medium' | 'large' | 'extra-large';
|
|
77
77
|
text?: string;
|
|
78
78
|
descriptionTop?: string;
|
|
@@ -92,7 +92,7 @@ export declare const Icon: ({ size, name, hasIndicator, className, altText, role
|
|
|
92
92
|
|
|
93
93
|
export declare const IconButton: React_2.FC<IconButtonProps>;
|
|
94
94
|
|
|
95
|
-
declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
95
|
+
export declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
96
96
|
variant: 'default' | 'small';
|
|
97
97
|
iconName: IconNames;
|
|
98
98
|
iconSize?: 'small' | 'medium';
|
|
@@ -108,9 +108,9 @@ declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButto
|
|
|
108
108
|
|
|
109
109
|
declare type IconNames = 'settings' | 'questionCircle' | 'notifications' | 'flag' | 'edit' | 'delete' | 'resourceCenter' | 'search' | 'error' | 'warning' | 'dropdown' | 'calendar' | 'bookmark' | 'infoCircle' | 'menu' | 'add' | 'exclude' | 'email' | 'close' | 'checkCircle' | 'linkNewTab';
|
|
110
110
|
|
|
111
|
-
declare type IconNamesWithIndicator = 'notifications' | 'resourceCenter' | 'bookmark';
|
|
111
|
+
export declare type IconNamesWithIndicator = 'notifications' | 'resourceCenter' | 'bookmark';
|
|
112
112
|
|
|
113
|
-
declare interface IconProps extends React.SVGAttributes<HTMLOrSVGImageElement> {
|
|
113
|
+
export declare interface IconProps extends React.SVGAttributes<HTMLOrSVGImageElement> {
|
|
114
114
|
size: 'small' | 'medium';
|
|
115
115
|
name: IconNames | IconNamesWithIndicator;
|
|
116
116
|
hasIndicator?: boolean;
|
|
@@ -121,11 +121,12 @@ declare interface IconProps extends React.SVGAttributes<HTMLOrSVGImageElement> {
|
|
|
121
121
|
|
|
122
122
|
declare type IconRole = 'graphics-document' | 'img' | 'graphics-symbol' | undefined;
|
|
123
123
|
|
|
124
|
-
declare type InputState = 'default' | 'error' | 'success';
|
|
124
|
+
export declare type InputState = 'default' | 'error' | 'success';
|
|
125
125
|
|
|
126
|
-
export declare const LabelAtom: ({ state, disabled, htmlFor, value, optionalityLabel }: LabelAtomProps) => JSX_2.Element;
|
|
126
|
+
export declare const LabelAtom: ({ id, state, disabled, htmlFor, value, optionalityLabel }: LabelAtomProps) => JSX_2.Element;
|
|
127
127
|
|
|
128
|
-
declare interface LabelAtomProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
128
|
+
export declare interface LabelAtomProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
129
|
+
id?: string;
|
|
129
130
|
state?: 'default' | 'error' | 'success';
|
|
130
131
|
disabled?: boolean;
|
|
131
132
|
htmlFor: string;
|
|
@@ -135,7 +136,7 @@ declare interface LabelAtomProps extends React.LabelHTMLAttributes<HTMLLabelElem
|
|
|
135
136
|
|
|
136
137
|
export declare const Link: React_2.FC<LinkProps>;
|
|
137
138
|
|
|
138
|
-
declare interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
139
|
+
export declare interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
139
140
|
text: string;
|
|
140
141
|
href: string;
|
|
141
142
|
type?: 'default' | 'inline';
|
|
@@ -144,7 +145,7 @@ declare interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
144
145
|
|
|
145
146
|
export declare const Modal: ({ open, onClose, title, backdrop, content, footer, icon, iconComponent, iconName, dismissible, horizontalRule }: ModalProps) => JSX_2.Element;
|
|
146
147
|
|
|
147
|
-
declare interface ModalProps {
|
|
148
|
+
export declare interface ModalProps {
|
|
148
149
|
open: boolean;
|
|
149
150
|
onClose: () => void;
|
|
150
151
|
title: string;
|
|
@@ -160,7 +161,7 @@ declare interface ModalProps {
|
|
|
160
161
|
|
|
161
162
|
export declare const Radio: ({ label, name, id, disabled, onChange, onClick, ...props }: RadioProps) => JSX_2.Element;
|
|
162
163
|
|
|
163
|
-
declare interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
164
|
+
export declare interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
164
165
|
label?: string;
|
|
165
166
|
name: string;
|
|
166
167
|
id: string;
|
|
@@ -168,16 +169,40 @@ declare interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
168
169
|
onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLButtonElement, MouseEvent>) => void;
|
|
169
170
|
}
|
|
170
171
|
|
|
172
|
+
export declare const Textarea: ({ id, state, label, rows, cols, isResizable, optionalityLabel, helpText, message, disabled, ...props }: TextareaProps) => JSX_2.Element;
|
|
173
|
+
|
|
174
|
+
export declare const TextareaAtom: ({ state, rows, cols, isResizable, disabled, ...props }: TextareaAtomProps) => JSX_2.Element;
|
|
175
|
+
|
|
176
|
+
export declare interface TextareaAtomProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
177
|
+
state?: InputState;
|
|
178
|
+
rows?: number;
|
|
179
|
+
cols?: number;
|
|
180
|
+
isResizable?: boolean;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export declare interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
184
|
+
id: string;
|
|
185
|
+
state?: InputState;
|
|
186
|
+
label: string;
|
|
187
|
+
rows?: number;
|
|
188
|
+
cols?: number;
|
|
189
|
+
isResizable?: boolean;
|
|
190
|
+
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
191
|
+
optionalityLabel?: string;
|
|
192
|
+
helpText?: string[];
|
|
193
|
+
message?: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
171
196
|
export declare const TextInput: ({ id, state, disabled, type, label, optionalityLabel, helpText, message, ...props }: TextInputProps) => JSX_2.Element;
|
|
172
197
|
|
|
173
198
|
export declare const TextInputAtom: ({ state, disabled, type, ...props }: TextInputAtomProps) => JSX_2.Element;
|
|
174
199
|
|
|
175
|
-
declare interface TextInputAtomProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
200
|
+
export declare interface TextInputAtomProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
176
201
|
state?: InputState;
|
|
177
202
|
type?: TextInputTypes;
|
|
178
203
|
}
|
|
179
204
|
|
|
180
|
-
declare interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
205
|
+
export declare interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
181
206
|
id: string;
|
|
182
207
|
state?: InputState;
|
|
183
208
|
type?: TextInputTypes;
|
|
@@ -188,6 +213,6 @@ declare interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElem
|
|
|
188
213
|
message?: string;
|
|
189
214
|
}
|
|
190
215
|
|
|
191
|
-
declare type TextInputTypes = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
|
|
216
|
+
export declare type TextInputTypes = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
|
|
192
217
|
|
|
193
218
|
export { }
|