@takecasper/acuity-design-system 1.16.0 → 1.17.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/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';
@@ -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;
@@ -58,12 +58,14 @@ declare interface CardProps {
58
58
  className?: string;
59
59
  }
60
60
 
61
- 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;
62
62
 
63
63
  declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
64
64
  id: string;
65
65
  label?: string;
66
66
  indeterminate?: boolean;
67
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
68
+ onClick?: (e: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
67
69
  }
68
70
 
69
71
  export declare const Heading: ({ size, className, text, descriptionTop, descriptionBottom, hasHorizontalRule, hasMarginBottom, headingTag, ...props }: HeadingProps) => JSX_2.Element;
@@ -84,7 +86,7 @@ declare const headingVariants: (props?: ({
84
86
  size?: "large" | "small" | "medium" | "extra-large" | null | undefined;
85
87
  } & ClassProp) | undefined) => string;
86
88
 
87
- export declare const Icon: ({ size, name, hasIndicator, className, altText }: IconProps) => React.ReactNode;
89
+ export declare const Icon: ({ size, name, hasIndicator, className, altText, role }: IconProps) => JSX.Element;
88
90
 
89
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';
90
92
 
@@ -96,6 +98,21 @@ declare interface IconProps extends React.SVGAttributes<HTMLOrSVGImageElement> {
96
98
  hasIndicator?: boolean;
97
99
  className?: string;
98
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;
99
116
  }
100
117
 
101
118
  export declare const Link: React_2.FC<LinkProps>;
@@ -123,12 +140,36 @@ declare interface ModalProps {
123
140
  horizontalRule?: boolean;
124
141
  }
125
142
 
126
- 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;
127
144
 
128
145
  declare interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {
129
146
  label?: string;
130
147
  name: string;
131
148
  id: string;
149
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
150
+ onClick?: (e: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
132
151
  }
133
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;
160
+ }
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
+
134
175
  export { }