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.d.ts
CHANGED
|
@@ -1187,7 +1187,7 @@ declare function WeeksPicker({ label, disabled, borderColor, borderColorFocus, t
|
|
|
1187
1187
|
restrictToRange?: boolean;
|
|
1188
1188
|
}): any;
|
|
1189
1189
|
|
|
1190
|
-
declare function Input({ label, labelEmptyValue, size, selectedValue, placeHolder, onChange, onClick, onBlur, required, disabled, isDarkerBackground, width, height, error, errorMessage, labelColor, leftIcon, rightIcon, password, leftIconOnClick, rightIconOnClick, multiline, rows, maxLength, regex, }: {
|
|
1190
|
+
declare function Input({ label, labelEmptyValue, size, selectedValue, placeHolder, onChange, onClick, onBlur, required, disabled, isDarkerBackground, width, height, error, errorMessage, labelColor, leftIcon, rightIcon, password, leftIconOnClick, rightIconOnClick, multiline, rows, maxLength, regex, onKeyDown, }: {
|
|
1191
1191
|
label: any;
|
|
1192
1192
|
labelEmptyValue: any;
|
|
1193
1193
|
size: any;
|
|
@@ -1213,6 +1213,7 @@ declare function Input({ label, labelEmptyValue, size, selectedValue, placeHolde
|
|
|
1213
1213
|
rows?: number;
|
|
1214
1214
|
maxLength: any;
|
|
1215
1215
|
regex: any;
|
|
1216
|
+
onKeyDown: any;
|
|
1216
1217
|
}): any;
|
|
1217
1218
|
declare namespace Input {
|
|
1218
1219
|
namespace propTypes {
|
|
@@ -1239,6 +1240,7 @@ declare namespace Input {
|
|
|
1239
1240
|
const rows: any;
|
|
1240
1241
|
const maxLength: any;
|
|
1241
1242
|
const regex: any;
|
|
1243
|
+
const onKeyDown: any;
|
|
1242
1244
|
}
|
|
1243
1245
|
namespace defaultProps {
|
|
1244
1246
|
const placeHolder_1: string;
|
|
@@ -1285,6 +1287,8 @@ declare namespace Input {
|
|
|
1285
1287
|
export { maxLength_1 as maxLength };
|
|
1286
1288
|
const regex_1: any;
|
|
1287
1289
|
export { regex_1 as regex };
|
|
1290
|
+
export function onKeyDown_1(): void;
|
|
1291
|
+
export { onKeyDown_1 as onKeyDown };
|
|
1288
1292
|
}
|
|
1289
1293
|
}
|
|
1290
1294
|
|
package/dist/index.esm.js
CHANGED
|
@@ -35760,7 +35760,8 @@ const Input$2 = _ref => {
|
|
|
35760
35760
|
multiline = false,
|
|
35761
35761
|
rows = 3,
|
|
35762
35762
|
maxLength,
|
|
35763
|
-
regex
|
|
35763
|
+
regex,
|
|
35764
|
+
onKeyDown
|
|
35764
35765
|
} = _ref;
|
|
35765
35766
|
const [isFocused, setIsFocused] = useState(false);
|
|
35766
35767
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -35911,6 +35912,7 @@ const Input$2 = _ref => {
|
|
|
35911
35912
|
onClick: handleLabelClick,
|
|
35912
35913
|
onFocus: handleFocus,
|
|
35913
35914
|
onBlur: handleBlur,
|
|
35915
|
+
onKeyDown: onKeyDown,
|
|
35914
35916
|
disabled: disabled,
|
|
35915
35917
|
isDarkerBackground: isDarkerBackground,
|
|
35916
35918
|
placeholder: isFocused ? placeHolder : "",
|
|
@@ -35955,7 +35957,8 @@ Input$2.propTypes = {
|
|
|
35955
35957
|
multiline: PropTypes.bool,
|
|
35956
35958
|
rows: PropTypes.number,
|
|
35957
35959
|
maxLength: PropTypes.number,
|
|
35958
|
-
regex: PropTypes.instanceOf(RegExp)
|
|
35960
|
+
regex: PropTypes.instanceOf(RegExp),
|
|
35961
|
+
onKeyDown: PropTypes.func
|
|
35959
35962
|
};
|
|
35960
35963
|
Input$2.defaultProps = {
|
|
35961
35964
|
placeHolder: "Type...",
|
|
@@ -35979,7 +35982,8 @@ Input$2.defaultProps = {
|
|
|
35979
35982
|
multiline: false,
|
|
35980
35983
|
rows: 3,
|
|
35981
35984
|
maxLength: undefined,
|
|
35982
|
-
regex: undefined
|
|
35985
|
+
regex: undefined,
|
|
35986
|
+
onKeyDown: () => {}
|
|
35983
35987
|
};
|
|
35984
35988
|
|
|
35985
35989
|
const ToggleSwitchLabel = styled.label`
|