@takecasper/acuity-design-system 1.15.0 → 1.17.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/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +56 -3
- package/dist/index.es.js +1889 -1353
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,18 @@ declare type AlertProps = {
|
|
|
21
21
|
handleClose?: () => void;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
export declare const Badge: ({ label, type, color, dismissible, dismissLabel, className, onDismiss, ...props }: BadgeProps) => JSX_2.Element;
|
|
25
|
+
|
|
26
|
+
declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
label: string;
|
|
28
|
+
color?: 'default' | 'gray' | 'blue' | 'green' | 'yellow' | 'red';
|
|
29
|
+
type?: 'regular' | 'small';
|
|
30
|
+
dismissible?: boolean;
|
|
31
|
+
dismissLabel?: string;
|
|
32
|
+
className?: string;
|
|
33
|
+
onDismiss?: () => void;
|
|
34
|
+
}
|
|
35
|
+
|
|
24
36
|
export declare const Button: React_2.FC<ButtonProps>;
|
|
25
37
|
|
|
26
38
|
declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -46,12 +58,14 @@ declare interface CardProps {
|
|
|
46
58
|
className?: string;
|
|
47
59
|
}
|
|
48
60
|
|
|
49
|
-
export declare const Checkbox: ({ id, label, name, checked, disabled, indeterminate, ...props }: CheckboxProps) => JSX_2.Element;
|
|
61
|
+
export declare const Checkbox: ({ id, label, name, checked, disabled, indeterminate, onChange, onClick, ...props }: CheckboxProps) => JSX_2.Element;
|
|
50
62
|
|
|
51
63
|
declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
52
64
|
id: string;
|
|
53
65
|
label?: string;
|
|
54
66
|
indeterminate?: boolean;
|
|
67
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
68
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
|
|
55
69
|
}
|
|
56
70
|
|
|
57
71
|
export declare const Heading: ({ size, className, text, descriptionTop, descriptionBottom, hasHorizontalRule, hasMarginBottom, headingTag, ...props }: HeadingProps) => JSX_2.Element;
|
|
@@ -72,7 +86,7 @@ declare const headingVariants: (props?: ({
|
|
|
72
86
|
size?: "large" | "small" | "medium" | "extra-large" | null | undefined;
|
|
73
87
|
} & ClassProp) | undefined) => string;
|
|
74
88
|
|
|
75
|
-
export declare const Icon: ({ size, name, hasIndicator, className, altText }: IconProps) =>
|
|
89
|
+
export declare const Icon: ({ size, name, hasIndicator, className, altText, role }: IconProps) => JSX.Element;
|
|
76
90
|
|
|
77
91
|
declare type IconNames = 'settings' | 'questionCircle' | 'notifications' | 'flag' | 'edit' | 'delete' | 'resourceCenter' | 'search' | 'error' | 'warning' | 'dropdown' | 'calendar' | 'bookmark' | 'infoCircle' | 'menu' | 'add' | 'exclude' | 'email' | 'close' | 'checkCircle' | 'linkNewTab';
|
|
78
92
|
|
|
@@ -84,6 +98,21 @@ declare interface IconProps extends React.SVGAttributes<HTMLOrSVGImageElement> {
|
|
|
84
98
|
hasIndicator?: boolean;
|
|
85
99
|
className?: string;
|
|
86
100
|
altText?: string;
|
|
101
|
+
role?: IconRole;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare type IconRole = 'graphics-document' | 'img' | 'graphics-symbol' | undefined;
|
|
105
|
+
|
|
106
|
+
declare type InputState = 'default' | 'error' | 'success';
|
|
107
|
+
|
|
108
|
+
export declare const LabelAtom: ({ state, disabled, htmlFor, value, optionalityLabel }: LabelAtomProps) => JSX_2.Element;
|
|
109
|
+
|
|
110
|
+
declare interface LabelAtomProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
111
|
+
state?: 'default' | 'error' | 'success';
|
|
112
|
+
disabled?: boolean;
|
|
113
|
+
htmlFor: string;
|
|
114
|
+
value: string;
|
|
115
|
+
optionalityLabel?: string;
|
|
87
116
|
}
|
|
88
117
|
|
|
89
118
|
export declare const Link: React_2.FC<LinkProps>;
|
|
@@ -111,12 +140,36 @@ declare interface ModalProps {
|
|
|
111
140
|
horizontalRule?: boolean;
|
|
112
141
|
}
|
|
113
142
|
|
|
114
|
-
export declare const Radio: ({ label, name, id, disabled, ...props }: RadioProps) => JSX_2.Element;
|
|
143
|
+
export declare const Radio: ({ label, name, id, disabled, onChange, onClick, ...props }: RadioProps) => JSX_2.Element;
|
|
115
144
|
|
|
116
145
|
declare interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
117
146
|
label?: string;
|
|
118
147
|
name: string;
|
|
119
148
|
id: string;
|
|
149
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
150
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export declare const TextInput: ({ id, state, disabled, type, label, optionalityLabel, helpText, message, ...props }: TextInputProps) => JSX_2.Element;
|
|
154
|
+
|
|
155
|
+
export declare const TextInputAtom: ({ state, disabled, type, ...props }: TextInputAtomProps) => JSX_2.Element;
|
|
156
|
+
|
|
157
|
+
declare interface TextInputAtomProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
158
|
+
state?: InputState;
|
|
159
|
+
type?: TextInputTypes;
|
|
120
160
|
}
|
|
121
161
|
|
|
162
|
+
declare interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
163
|
+
id: string;
|
|
164
|
+
state?: InputState;
|
|
165
|
+
type?: TextInputTypes;
|
|
166
|
+
label: string;
|
|
167
|
+
optionalityLabel?: string;
|
|
168
|
+
helpText?: string[];
|
|
169
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
170
|
+
message?: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare type TextInputTypes = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
|
|
174
|
+
|
|
122
175
|
export { }
|