@takecasper/acuity-design-system 1.24.1 → 1.25.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 +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +19 -3
- package/dist/index.es.js +424 -359
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInp
|
|
|
71
71
|
onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLButtonElement, MouseEvent>) => void;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
export declare const Dropdown: ({ id, state, disabled, label, optionalityLabel, helpText, message, ...props }: DropdownProps) => JSX_2.Element;
|
|
74
|
+
export declare const Dropdown: ({ id, state, disabled, label, optionalityLabel, helpText, message, className, hasMarginBottom, ...props }: DropdownProps) => JSX_2.Element;
|
|
75
75
|
|
|
76
76
|
export declare const DropdownAtom: ({ state, disabled, className, ...props }: DropdownAtomProps) => JSX_2.Element;
|
|
77
77
|
|
|
@@ -87,6 +87,8 @@ export declare interface DropdownProps extends React.InputHTMLAttributes<HTMLSel
|
|
|
87
87
|
helpText?: string[];
|
|
88
88
|
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
89
89
|
message?: string;
|
|
90
|
+
className?: string;
|
|
91
|
+
hasMarginBottom?: boolean;
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
export declare const Heading: ({ size, className, text, descriptionTop, descriptionBottom, hasHorizontalRule, hasMarginBottom, headingTag, ...props }: HeadingProps) => JSX_2.Element;
|
|
@@ -202,6 +204,16 @@ export declare interface RadioProps extends React.InputHTMLAttributes<HTMLInputE
|
|
|
202
204
|
onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLButtonElement, MouseEvent>) => void;
|
|
203
205
|
}
|
|
204
206
|
|
|
207
|
+
export declare const Spinner: ({ size, focusable, label, ariaLive, className }: SpinnerProps) => JSX_2.Element;
|
|
208
|
+
|
|
209
|
+
export declare interface SpinnerProps {
|
|
210
|
+
size: 'small' | 'medium' | 'large' | 'extra-large';
|
|
211
|
+
focusable: boolean;
|
|
212
|
+
label: string;
|
|
213
|
+
ariaLive?: 'polite' | 'assertive' | 'off';
|
|
214
|
+
className?: string;
|
|
215
|
+
}
|
|
216
|
+
|
|
205
217
|
export declare const Tab: ({ children }: TabProps) => ReactNode;
|
|
206
218
|
|
|
207
219
|
export declare interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -221,7 +233,7 @@ export declare interface TabsProps extends React_2.HTMLAttributes<HTMLDivElement
|
|
|
221
233
|
className?: string;
|
|
222
234
|
}
|
|
223
235
|
|
|
224
|
-
export declare const Textarea: ({ id, state, label, rows, cols, isResizable, optionalityLabel, helpText, message, disabled, ...props }: TextareaProps) => JSX_2.Element;
|
|
236
|
+
export declare const Textarea: ({ id, state, label, rows, cols, isResizable, optionalityLabel, helpText, message, disabled, className, hasMarginBottom, ...props }: TextareaProps) => JSX_2.Element;
|
|
225
237
|
|
|
226
238
|
export declare const TextareaAtom: ({ state, rows, cols, isResizable, disabled, ...props }: TextareaAtomProps) => JSX_2.Element;
|
|
227
239
|
|
|
@@ -243,9 +255,11 @@ export declare interface TextareaProps extends React.TextareaHTMLAttributes<HTML
|
|
|
243
255
|
optionalityLabel?: string;
|
|
244
256
|
helpText?: string[];
|
|
245
257
|
message?: string;
|
|
258
|
+
className?: string;
|
|
259
|
+
hasMarginBottom?: boolean;
|
|
246
260
|
}
|
|
247
261
|
|
|
248
|
-
export declare const TextInput: ({ id, state, disabled, type, label, optionalityLabel, helpText, message, ...props }: TextInputProps) => JSX_2.Element;
|
|
262
|
+
export declare const TextInput: ({ id, state, disabled, type, label, optionalityLabel, helpText, message, className, hasMarginBottom, ...props }: TextInputProps) => JSX_2.Element;
|
|
249
263
|
|
|
250
264
|
export declare const TextInputAtom: ({ state, disabled, type, ...props }: TextInputAtomProps) => JSX_2.Element;
|
|
251
265
|
|
|
@@ -263,6 +277,8 @@ export declare interface TextInputProps extends React.InputHTMLAttributes<HTMLIn
|
|
|
263
277
|
helpText?: string[];
|
|
264
278
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
265
279
|
message?: string;
|
|
280
|
+
className?: string;
|
|
281
|
+
hasMarginBottom?: boolean;
|
|
266
282
|
}
|
|
267
283
|
|
|
268
284
|
export declare type TextInputTypes = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
|