@galaxy-io/dls 1.4.9 → 1.4.10
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type InputProps } from "./Input";
|
|
2
2
|
type NumberInputProps = Omit<InputProps<number>, "type" | "parse">;
|
|
3
|
-
declare const NumberInput: ({ value, placeholder, label, leading, trailing, isRequired, isDisabled, min, max, step, onChange, width, fillWidth, }: NumberInputProps) => import("react").JSX.Element;
|
|
3
|
+
declare const NumberInput: ({ value, placeholder, label, size, leading, trailing, isRequired, isDisabled, min, max, step, onChange, width, fillWidth, }: NumberInputProps) => import("react").JSX.Element;
|
|
4
4
|
export default NumberInput;
|
|
@@ -2,12 +2,13 @@ import Input from "./Input.js";
|
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/inputs/NumberInput.tsx
|
|
5
|
-
var NumberInput = ({ value, placeholder, label, leading, trailing, isRequired, isDisabled, min, max, step, onChange, width, fillWidth }) => {
|
|
5
|
+
var NumberInput = ({ value, placeholder, label, size, leading, trailing, isRequired, isDisabled, min, max, step, onChange, width, fillWidth }) => {
|
|
6
6
|
return /* @__PURE__ */ jsx(Input, {
|
|
7
7
|
type: "number",
|
|
8
8
|
value,
|
|
9
9
|
placeholder,
|
|
10
10
|
label,
|
|
11
|
+
size,
|
|
11
12
|
leading,
|
|
12
13
|
trailing,
|
|
13
14
|
isRequired,
|