sag_components 2.0.0-beta213 → 2.0.0-beta214
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 +5 -1
- package/dist/index.esm.js +7 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/Input/Input.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35770,7 +35770,8 @@ const Input$2 = _ref => {
|
|
|
35770
35770
|
multiline = false,
|
|
35771
35771
|
rows = 3,
|
|
35772
35772
|
maxLength,
|
|
35773
|
-
regex
|
|
35773
|
+
regex,
|
|
35774
|
+
onKeyDown
|
|
35774
35775
|
} = _ref;
|
|
35775
35776
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
35776
35777
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -35921,6 +35922,7 @@ const Input$2 = _ref => {
|
|
|
35921
35922
|
onClick: handleLabelClick,
|
|
35922
35923
|
onFocus: handleFocus,
|
|
35923
35924
|
onBlur: handleBlur,
|
|
35925
|
+
onKeyDown: onKeyDown,
|
|
35924
35926
|
disabled: disabled,
|
|
35925
35927
|
isDarkerBackground: isDarkerBackground,
|
|
35926
35928
|
placeholder: isFocused ? placeHolder : "",
|
|
@@ -35965,7 +35967,8 @@ Input$2.propTypes = {
|
|
|
35965
35967
|
multiline: PropTypes.bool,
|
|
35966
35968
|
rows: PropTypes.number,
|
|
35967
35969
|
maxLength: PropTypes.number,
|
|
35968
|
-
regex: PropTypes.instanceOf(RegExp)
|
|
35970
|
+
regex: PropTypes.instanceOf(RegExp),
|
|
35971
|
+
onKeyDown: PropTypes.func
|
|
35969
35972
|
};
|
|
35970
35973
|
Input$2.defaultProps = {
|
|
35971
35974
|
placeHolder: "Type...",
|
|
@@ -35989,7 +35992,8 @@ Input$2.defaultProps = {
|
|
|
35989
35992
|
multiline: false,
|
|
35990
35993
|
rows: 3,
|
|
35991
35994
|
maxLength: undefined,
|
|
35992
|
-
regex: undefined
|
|
35995
|
+
regex: undefined,
|
|
35996
|
+
onKeyDown: () => {}
|
|
35993
35997
|
};
|
|
35994
35998
|
|
|
35995
35999
|
const ToggleSwitchLabel = styled__default["default"].label`
|