@lumx/react 4.15.0-alpha.1 → 4.15.0-alpha.2
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/index.d.ts +4 -0
- package/index.js +20 -9
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -2022,6 +2022,8 @@ interface RawInputTextProps$1 extends HasTheme, HasClassName {
|
|
|
2022
2022
|
ref?: CommonRef;
|
|
2023
2023
|
handleChange?: (value: string, name?: string, event?: any) => void;
|
|
2024
2024
|
handleInput?: (value: string, name?: string, event?: any) => void;
|
|
2025
|
+
handleFocus?: (event?: any) => void;
|
|
2026
|
+
handleBlur?: (event?: any) => void;
|
|
2025
2027
|
}
|
|
2026
2028
|
|
|
2027
2029
|
type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
|
|
@@ -2048,6 +2050,8 @@ interface RawInputTextareaProps$1 extends HasTheme, HasClassName {
|
|
|
2048
2050
|
ref?: CommonRef;
|
|
2049
2051
|
handleChange?: (value: string, name?: string, event?: any) => void;
|
|
2050
2052
|
handleInput?: (value: string, name?: string, event?: any) => void;
|
|
2053
|
+
handleFocus?: (event?: any) => void;
|
|
2054
|
+
handleBlur?: (event?: any) => void;
|
|
2051
2055
|
}
|
|
2052
2056
|
|
|
2053
2057
|
type NativeTextareaProps = Omit<ComponentProps<'textarea'>, 'value' | 'onChange'>;
|
package/index.js
CHANGED
|
@@ -1687,7 +1687,7 @@ const IconButton$1 = props => {
|
|
|
1687
1687
|
size = DEFAULT_PROPS$1a.size,
|
|
1688
1688
|
...forwardedProps
|
|
1689
1689
|
} = props;
|
|
1690
|
-
const
|
|
1690
|
+
const defaultChildren = image ? /*#__PURE__*/jsx("img", {
|
|
1691
1691
|
// no need to set alt as an aria-label is already set on the button
|
|
1692
1692
|
alt: "",
|
|
1693
1693
|
src: image
|
|
@@ -1700,12 +1700,7 @@ const IconButton$1 = props => {
|
|
|
1700
1700
|
...forwardedProps,
|
|
1701
1701
|
'aria-label': label,
|
|
1702
1702
|
variant: 'icon',
|
|
1703
|
-
children:
|
|
1704
|
-
children: [iconNode, /*#__PURE__*/jsx("span", {
|
|
1705
|
-
className: visuallyHidden(),
|
|
1706
|
-
children: label
|
|
1707
|
-
})]
|
|
1708
|
-
})
|
|
1703
|
+
children: defaultChildren
|
|
1709
1704
|
});
|
|
1710
1705
|
};
|
|
1711
1706
|
IconButton$1.displayName = COMPONENT_NAME$1r;
|
|
@@ -7745,6 +7740,8 @@ const RawInputText$1 = props => {
|
|
|
7745
7740
|
value,
|
|
7746
7741
|
handleChange,
|
|
7747
7742
|
handleInput,
|
|
7743
|
+
handleFocus,
|
|
7744
|
+
handleBlur,
|
|
7748
7745
|
type = DEFAULT_PROPS$11.type,
|
|
7749
7746
|
name,
|
|
7750
7747
|
ref,
|
|
@@ -7767,6 +7764,8 @@ const RawInputText$1 = props => {
|
|
|
7767
7764
|
})),
|
|
7768
7765
|
onChange: handleOnChange,
|
|
7769
7766
|
onInput: handleOnInput,
|
|
7767
|
+
onFocus: handleFocus,
|
|
7768
|
+
onBlur: handleBlur,
|
|
7770
7769
|
value: value
|
|
7771
7770
|
});
|
|
7772
7771
|
};
|
|
@@ -7780,13 +7779,17 @@ const RawInputText = forwardRef((props, ref) => {
|
|
|
7780
7779
|
const {
|
|
7781
7780
|
theme = defaultTheme,
|
|
7782
7781
|
onChange,
|
|
7782
|
+
onFocus,
|
|
7783
|
+
onBlur,
|
|
7783
7784
|
...restOfProps
|
|
7784
7785
|
} = props;
|
|
7785
7786
|
return RawInputText$1({
|
|
7786
7787
|
...restOfProps,
|
|
7787
7788
|
ref,
|
|
7788
7789
|
theme,
|
|
7789
|
-
handleChange: onChange
|
|
7790
|
+
handleChange: onChange,
|
|
7791
|
+
handleFocus: onFocus,
|
|
7792
|
+
handleBlur: onBlur
|
|
7790
7793
|
});
|
|
7791
7794
|
});
|
|
7792
7795
|
|
|
@@ -7816,6 +7819,8 @@ const RawInputTextarea$1 = props => {
|
|
|
7816
7819
|
value,
|
|
7817
7820
|
handleChange,
|
|
7818
7821
|
handleInput,
|
|
7822
|
+
handleFocus,
|
|
7823
|
+
handleBlur,
|
|
7819
7824
|
rows = DEFAULT_PROPS$10.rows,
|
|
7820
7825
|
name,
|
|
7821
7826
|
ref,
|
|
@@ -7837,6 +7842,8 @@ const RawInputTextarea$1 = props => {
|
|
|
7837
7842
|
})),
|
|
7838
7843
|
onChange: handleOnChange,
|
|
7839
7844
|
onInput: handleOnInput,
|
|
7845
|
+
onFocus: handleFocus,
|
|
7846
|
+
onBlur: handleBlur,
|
|
7840
7847
|
value: value,
|
|
7841
7848
|
rows: rows
|
|
7842
7849
|
});
|
|
@@ -7905,6 +7912,8 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
7905
7912
|
minimumRows = DEFAULT_PROPS$$.minimumRows,
|
|
7906
7913
|
value,
|
|
7907
7914
|
onChange,
|
|
7915
|
+
onFocus,
|
|
7916
|
+
onBlur,
|
|
7908
7917
|
...restOfProps
|
|
7909
7918
|
} = props;
|
|
7910
7919
|
const textareaRef = useRef(null);
|
|
@@ -7915,7 +7924,9 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
7915
7924
|
theme,
|
|
7916
7925
|
value,
|
|
7917
7926
|
rows,
|
|
7918
|
-
handleChange: onChange
|
|
7927
|
+
handleChange: onChange,
|
|
7928
|
+
handleFocus: onFocus,
|
|
7929
|
+
handleBlur: onBlur
|
|
7919
7930
|
});
|
|
7920
7931
|
});
|
|
7921
7932
|
|