@sequencing/design-system 1.0.16 → 1.0.17

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.
@@ -19,10 +19,12 @@ export interface TextFieldProps {
19
19
  onChange?: (value: string) => void;
20
20
  /** Callback called when the input is clicked */
21
21
  onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
22
+ /** Reference to the input element */
23
+ inputRef?: React.RefObject<HTMLInputElement>;
22
24
  }
23
25
  /**
24
26
  * The Text Field component renders a simple input field with SDS stylings applied.
25
27
  *
26
28
  */
27
- declare const TextField: ({ value, customClass, placeholder, showClearButton, variant, onChange, onClick, }: PropsWithChildren<TextFieldProps>) => React.JSX.Element;
29
+ declare const TextField: ({ value, customClass, placeholder, showClearButton, variant, onChange, onClick, inputRef, }: PropsWithChildren<TextFieldProps>) => React.JSX.Element;
28
30
  export default TextField;
package/dist/index.d.ts CHANGED
@@ -155,12 +155,14 @@ interface TextFieldProps {
155
155
  onChange?: (value: string) => void;
156
156
  /** Callback called when the input is clicked */
157
157
  onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
158
+ /** Reference to the input element */
159
+ inputRef?: React.RefObject<HTMLInputElement>;
158
160
  }
159
161
  /**
160
162
  * The Text Field component renders a simple input field with SDS stylings applied.
161
163
  *
162
164
  */
163
- declare const TextField: ({ value, customClass, placeholder, showClearButton, variant, onChange, onClick, }: PropsWithChildren<TextFieldProps>) => React.JSX.Element;
165
+ declare const TextField: ({ value, customClass, placeholder, showClearButton, variant, onChange, onClick, inputRef, }: PropsWithChildren<TextFieldProps>) => React.JSX.Element;
164
166
 
165
167
  interface AccordionProps {
166
168
  /**