@aurora-ds/components 0.24.7 → 0.24.9
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/cjs/components/forms/input/Input.props.d.ts +7 -1
- package/dist/cjs/components/forms/textarea/TextArea.props.d.ts +5 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/forms/input/Input.props.d.ts +7 -1
- package/dist/esm/components/forms/textarea/TextArea.props.d.ts +5 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +11 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { PropsWithChildren, FC, ReactNode, MouseEvent, CSSProperties, FormEvent, ComponentType, SVGProps, DragEvent, ComponentPropsWithoutRef, ReactElement, RefObject } from 'react';
|
|
2
|
+
import { PropsWithChildren, FC, ReactNode, MouseEvent, CSSProperties, FormEvent, FocusEvent, ComponentType, SVGProps, DragEvent, ComponentPropsWithoutRef, ReactElement, RefObject } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Alert variant types
|
|
@@ -703,6 +703,12 @@ type InputProps = {
|
|
|
703
703
|
value: string;
|
|
704
704
|
/** Callback fired when the value changes */
|
|
705
705
|
onChange: (value: string) => void;
|
|
706
|
+
/** Callback fired when the input receives focus */
|
|
707
|
+
onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
708
|
+
/** Callback fired when the input loses focus */
|
|
709
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
710
|
+
/** Callback fired when the input is clicked */
|
|
711
|
+
onClick?: (event: MouseEvent<HTMLInputElement>) => void;
|
|
706
712
|
/** Label displayed above the input */
|
|
707
713
|
label?: string;
|
|
708
714
|
/** Whether the field is mandatory (displays an asterisk next to the label) */
|
|
@@ -730,6 +736,10 @@ type TextAreaProps = {
|
|
|
730
736
|
value: string;
|
|
731
737
|
/** Callback fired when the value changes */
|
|
732
738
|
onChange: (value: string) => void;
|
|
739
|
+
/** Callback fired when the textarea receives focus */
|
|
740
|
+
onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
741
|
+
/** Callback fired when the textarea loses focus */
|
|
742
|
+
onBlur?: (event: FocusEvent<HTMLTextAreaElement>) => void;
|
|
733
743
|
/** Label displayed above the textarea */
|
|
734
744
|
label?: string;
|
|
735
745
|
/** Whether the field is mandatory (displays an asterisk next to the label) */
|