@takecasper/acuity-design-system 1.27.4 → 1.27.6

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
@@ -2,9 +2,11 @@
2
2
 
3
3
  import { AnchorHTMLAttributes } from 'react';
4
4
  import { ClassProp } from 'class-variance-authority/types';
5
+ import { ForwardRefExoticComponent } from 'react';
5
6
  import { JSX as JSX_2 } from 'react/jsx-runtime';
6
7
  import { default as React_2 } from 'react';
7
8
  import { ReactNode } from 'react';
9
+ import { RefAttributes } from 'react';
8
10
  import { VariantProps } from 'class-variance-authority';
9
11
 
10
12
  export declare const Alert: ({ variant, isDismissible, showIcon, titleSize, title, description, content, closeAriaLabel, id, handleClose, className, ...props }: AlertProps) => JSX_2.Element;
@@ -73,7 +75,7 @@ export declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInp
73
75
  onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLButtonElement, MouseEvent>) => void;
74
76
  }
75
77
 
76
- export declare const Dropdown: ({ id, state, disabled, label, optionalityLabel, helpText, message, className, hasMarginBottom, ...props }: DropdownProps) => JSX_2.Element;
78
+ export declare const Dropdown: ({ id, state, disabled, label, optionalityLabel, helpText, message, className, hasMarginBottom, onBlur, ...props }: DropdownProps) => JSX_2.Element;
77
79
 
78
80
  export declare const DropdownAtom: ({ state, disabled, className, ...props }: DropdownAtomProps) => JSX_2.Element;
79
81
 
@@ -248,7 +250,7 @@ export declare interface TabsProps extends React_2.HTMLAttributes<HTMLDivElement
248
250
  className?: string;
249
251
  }
250
252
 
251
- export declare const Textarea: ({ id, state, label, rows, cols, isResizable, optionalityLabel, helpText, message, disabled, className, hasMarginBottom, ...props }: TextareaProps) => JSX_2.Element;
253
+ export declare const Textarea: ({ id, state, label, rows, cols, isResizable, optionalityLabel, helpText, message, disabled, className, hasMarginBottom, onBlur, ...props }: TextareaProps) => JSX_2.Element;
252
254
 
253
255
  export declare const TextareaAtom: ({ state, rows, cols, isResizable, disabled, ...props }: TextareaAtomProps) => JSX_2.Element;
254
256
 
@@ -274,28 +276,26 @@ export declare interface TextareaProps extends React.TextareaHTMLAttributes<HTML
274
276
  hasMarginBottom?: boolean;
275
277
  }
276
278
 
277
- export declare const TextInput: ({ id, state, disabled, type, label, optionalityLabel, helpText, message, className, hasMarginBottom, ref, ...props }: TextInputProps) => JSX_2.Element;
279
+ export declare const TextInput: React_2.ForwardRefExoticComponent<TextInputProps & React_2.RefAttributes<HTMLInputElement>>;
278
280
 
279
- export declare const TextInputAtom: ({ state, disabled, type, ref, ...props }: TextInputAtomProps) => JSX_2.Element;
281
+ export declare const TextInputAtom: ForwardRefExoticComponent<TextInputAtomProps & RefAttributes<HTMLInputElement>>;
280
282
 
281
283
  export declare interface TextInputAtomProps extends React.InputHTMLAttributes<HTMLInputElement> {
282
284
  state?: InputState;
283
285
  type?: TextInputTypes;
284
- ref?: React.Ref<HTMLInputElement>;
285
286
  }
286
287
 
287
- export declare interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
288
+ export declare interface TextInputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
288
289
  id: string;
289
290
  state?: InputState;
290
291
  type?: TextInputTypes;
291
292
  label: string;
292
293
  optionalityLabel?: string;
293
294
  helpText?: string[];
294
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
295
+ onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
295
296
  message?: string;
296
297
  className?: string;
297
298
  hasMarginBottom?: boolean;
298
- ref?: React.Ref<HTMLInputElement>;
299
299
  }
300
300
 
301
301
  export declare type TextInputTypes = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';