@lumx/react 4.15.0-alpha.0 → 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 +21 -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
|
|
@@ -1698,13 +1698,9 @@ const IconButton$1 = props => {
|
|
|
1698
1698
|
emphasis,
|
|
1699
1699
|
size,
|
|
1700
1700
|
...forwardedProps,
|
|
1701
|
+
'aria-label': label,
|
|
1701
1702
|
variant: 'icon',
|
|
1702
|
-
children:
|
|
1703
|
-
children: [iconNode, /*#__PURE__*/jsx("span", {
|
|
1704
|
-
className: visuallyHidden(),
|
|
1705
|
-
children: label
|
|
1706
|
-
})]
|
|
1707
|
-
})
|
|
1703
|
+
children: defaultChildren
|
|
1708
1704
|
});
|
|
1709
1705
|
};
|
|
1710
1706
|
IconButton$1.displayName = COMPONENT_NAME$1r;
|
|
@@ -7744,6 +7740,8 @@ const RawInputText$1 = props => {
|
|
|
7744
7740
|
value,
|
|
7745
7741
|
handleChange,
|
|
7746
7742
|
handleInput,
|
|
7743
|
+
handleFocus,
|
|
7744
|
+
handleBlur,
|
|
7747
7745
|
type = DEFAULT_PROPS$11.type,
|
|
7748
7746
|
name,
|
|
7749
7747
|
ref,
|
|
@@ -7766,6 +7764,8 @@ const RawInputText$1 = props => {
|
|
|
7766
7764
|
})),
|
|
7767
7765
|
onChange: handleOnChange,
|
|
7768
7766
|
onInput: handleOnInput,
|
|
7767
|
+
onFocus: handleFocus,
|
|
7768
|
+
onBlur: handleBlur,
|
|
7769
7769
|
value: value
|
|
7770
7770
|
});
|
|
7771
7771
|
};
|
|
@@ -7779,13 +7779,17 @@ const RawInputText = forwardRef((props, ref) => {
|
|
|
7779
7779
|
const {
|
|
7780
7780
|
theme = defaultTheme,
|
|
7781
7781
|
onChange,
|
|
7782
|
+
onFocus,
|
|
7783
|
+
onBlur,
|
|
7782
7784
|
...restOfProps
|
|
7783
7785
|
} = props;
|
|
7784
7786
|
return RawInputText$1({
|
|
7785
7787
|
...restOfProps,
|
|
7786
7788
|
ref,
|
|
7787
7789
|
theme,
|
|
7788
|
-
handleChange: onChange
|
|
7790
|
+
handleChange: onChange,
|
|
7791
|
+
handleFocus: onFocus,
|
|
7792
|
+
handleBlur: onBlur
|
|
7789
7793
|
});
|
|
7790
7794
|
});
|
|
7791
7795
|
|
|
@@ -7815,6 +7819,8 @@ const RawInputTextarea$1 = props => {
|
|
|
7815
7819
|
value,
|
|
7816
7820
|
handleChange,
|
|
7817
7821
|
handleInput,
|
|
7822
|
+
handleFocus,
|
|
7823
|
+
handleBlur,
|
|
7818
7824
|
rows = DEFAULT_PROPS$10.rows,
|
|
7819
7825
|
name,
|
|
7820
7826
|
ref,
|
|
@@ -7836,6 +7842,8 @@ const RawInputTextarea$1 = props => {
|
|
|
7836
7842
|
})),
|
|
7837
7843
|
onChange: handleOnChange,
|
|
7838
7844
|
onInput: handleOnInput,
|
|
7845
|
+
onFocus: handleFocus,
|
|
7846
|
+
onBlur: handleBlur,
|
|
7839
7847
|
value: value,
|
|
7840
7848
|
rows: rows
|
|
7841
7849
|
});
|
|
@@ -7904,6 +7912,8 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
7904
7912
|
minimumRows = DEFAULT_PROPS$$.minimumRows,
|
|
7905
7913
|
value,
|
|
7906
7914
|
onChange,
|
|
7915
|
+
onFocus,
|
|
7916
|
+
onBlur,
|
|
7907
7917
|
...restOfProps
|
|
7908
7918
|
} = props;
|
|
7909
7919
|
const textareaRef = useRef(null);
|
|
@@ -7914,7 +7924,9 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
7914
7924
|
theme,
|
|
7915
7925
|
value,
|
|
7916
7926
|
rows,
|
|
7917
|
-
handleChange: onChange
|
|
7927
|
+
handleChange: onChange,
|
|
7928
|
+
handleFocus: onFocus,
|
|
7929
|
+
handleBlur: onBlur
|
|
7918
7930
|
});
|
|
7919
7931
|
});
|
|
7920
7932
|
|