@takecasper/acuity-design-system 1.17.1 → 1.18.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 +10 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +21 -5
- package/dist/index.es.js +1474 -1414
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare type AlertProps = {
|
|
|
18
18
|
id?: string;
|
|
19
19
|
content?: React.ReactNode;
|
|
20
20
|
closeAriaLabel?: string;
|
|
21
|
-
handleClose?:
|
|
21
|
+
handleClose?: React.MouseEventHandler<HTMLButtonElement | HTMLInputElement>;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export declare const Badge: ({ label, type, color, dismissible, dismissLabel, className, onDismiss, ...props }: BadgeProps) => JSX_2.Element;
|
|
@@ -36,7 +36,7 @@ declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
36
36
|
export declare const Button: React_2.FC<ButtonProps>;
|
|
37
37
|
|
|
38
38
|
declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
39
|
-
variant?: 'primary' | 'secondary' | 'danger' | 'inline'
|
|
39
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'inline';
|
|
40
40
|
text?: string;
|
|
41
41
|
label?: string;
|
|
42
42
|
disabled?: boolean;
|
|
@@ -65,7 +65,7 @@ declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
65
65
|
label?: string;
|
|
66
66
|
indeterminate?: boolean;
|
|
67
67
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
68
|
-
onClick?: (e: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
|
|
68
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLButtonElement, MouseEvent>) => void;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export declare const Heading: ({ size, className, text, descriptionTop, descriptionBottom, hasHorizontalRule, hasMarginBottom, headingTag, ...props }: HeadingProps) => JSX_2.Element;
|
|
@@ -83,11 +83,27 @@ declare interface HeadingProps extends VariantProps<typeof headingVariants> {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
declare const headingVariants: (props?: ({
|
|
86
|
-
size?: "
|
|
86
|
+
size?: "small" | "medium" | "large" | "extra-large" | null | undefined;
|
|
87
87
|
} & ClassProp) | undefined) => string;
|
|
88
88
|
|
|
89
89
|
export declare const Icon: ({ size, name, hasIndicator, className, altText, role }: IconProps) => JSX.Element;
|
|
90
90
|
|
|
91
|
+
export declare const IconButton: React_2.FC<IconButtonProps>;
|
|
92
|
+
|
|
93
|
+
declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
94
|
+
variant: 'default' | 'small';
|
|
95
|
+
iconName: IconNames;
|
|
96
|
+
iconSize?: 'small' | 'medium';
|
|
97
|
+
label?: string;
|
|
98
|
+
disabled: boolean;
|
|
99
|
+
className?: string;
|
|
100
|
+
onClick: React_2.MouseEventHandler<HTMLButtonElement | HTMLInputElement>;
|
|
101
|
+
hasIndicator?: boolean;
|
|
102
|
+
hasTooltip?: boolean;
|
|
103
|
+
iconColor?: string;
|
|
104
|
+
isTransparent?: boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
91
107
|
declare type IconNames = 'settings' | 'questionCircle' | 'notifications' | 'flag' | 'edit' | 'delete' | 'resourceCenter' | 'search' | 'error' | 'warning' | 'dropdown' | 'calendar' | 'bookmark' | 'infoCircle' | 'menu' | 'add' | 'exclude' | 'email' | 'close' | 'checkCircle' | 'linkNewTab';
|
|
92
108
|
|
|
93
109
|
declare type IconNamesWithIndicator = 'notifications' | 'resourceCenter' | 'bookmark';
|
|
@@ -147,7 +163,7 @@ declare interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
147
163
|
name: string;
|
|
148
164
|
id: string;
|
|
149
165
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
150
|
-
onClick?: (e: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
|
|
166
|
+
onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLButtonElement, MouseEvent>) => void;
|
|
151
167
|
}
|
|
152
168
|
|
|
153
169
|
export declare const TextInput: ({ id, state, disabled, type, label, optionalityLabel, helpText, message, ...props }: TextInputProps) => JSX_2.Element;
|