fastapi-rtk 1.0.28 → 1.0.30

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.
@@ -3,6 +3,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const core = require("@mantine/core");
5
5
  const React = require("react");
6
- const HeaderNumberInput = React.forwardRef(({ clearIcon, mrtprops: { textinputprops }, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(core.NumberInput, { ref, rightSection: clearIcon, ...textinputprops, ...props, value: props.value ?? "" }));
6
+ const HeaderNumberInput = React.forwardRef(({ clearIcon, mrtprops: { textinputprops }, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7
+ core.NumberInput,
8
+ {
9
+ ref,
10
+ rightSection: clearIcon,
11
+ ...textinputprops,
12
+ ...props,
13
+ value: props.value ?? "",
14
+ onChange: (value) => props.onChange(typeof value === "string" ? value || void 0 : value ?? void 0)
15
+ }
16
+ ));
7
17
  HeaderNumberInput.displayName = "HeaderNumberInput";
8
18
  exports.HeaderNumberInput = HeaderNumberInput;
@@ -1,7 +1,17 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { NumberInput } from "@mantine/core";
3
3
  import { forwardRef } from "react";
4
- const HeaderNumberInput = forwardRef(({ clearIcon, mrtprops: { textinputprops }, ...props }, ref) => /* @__PURE__ */ jsx(NumberInput, { ref, rightSection: clearIcon, ...textinputprops, ...props, value: props.value ?? "" }));
4
+ const HeaderNumberInput = forwardRef(({ clearIcon, mrtprops: { textinputprops }, ...props }, ref) => /* @__PURE__ */ jsx(
5
+ NumberInput,
6
+ {
7
+ ref,
8
+ rightSection: clearIcon,
9
+ ...textinputprops,
10
+ ...props,
11
+ value: props.value ?? "",
12
+ onChange: (value) => props.onChange(typeof value === "string" ? value || void 0 : value ?? void 0)
13
+ }
14
+ ));
5
15
  HeaderNumberInput.displayName = "HeaderNumberInput";
6
16
  export {
7
17
  HeaderNumberInput
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastapi-rtk",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "private": false,
5
5
  "description": "A React component library for FastAPI in combination with FastAPI React Toolkit backend, built with Mantine, JsonForms, and Zustand.",
6
6
  "license": "MIT",