@takecasper/acuity-design-system 1.17.0 → 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 +23 -7
- package/dist/index.es.js +1475 -1412
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
6
6
|
import { default as React_2 } from 'react';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
8
|
|
|
9
|
-
export declare const Alert: ({ variant, isDismissible, showIcon, titleSize, title, description, content, closeAriaLabel, id, handleClose }: AlertProps) => JSX_2.Element;
|
|
9
|
+
export declare const Alert: ({ variant, isDismissible, showIcon, titleSize, title, description, content, closeAriaLabel, id, handleClose, ...props }: AlertProps) => JSX_2.Element;
|
|
10
10
|
|
|
11
11
|
declare type AlertProps = {
|
|
12
12
|
variant: 'success' | 'info' | 'warning' | 'error';
|
|
@@ -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;
|
|
@@ -48,7 +48,7 @@ declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonEle
|
|
|
48
48
|
iconIndicator?: boolean;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export declare const Card: ({ content, iconName, title, footer, className }: CardProps) => JSX_2.Element;
|
|
51
|
+
export declare const Card: ({ content, iconName, title, footer, className, ...props }: CardProps) => JSX_2.Element;
|
|
52
52
|
|
|
53
53
|
declare interface CardProps {
|
|
54
54
|
iconName?: IconNames;
|
|
@@ -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;
|