@ultraviolet/plus 0.21.29 → 0.21.31

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.
Files changed (24) hide show
  1. package/dist/components/EstimateCost/Components/CustomUnitInput.cjs +2 -2
  2. package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts +1 -1
  3. package/dist/components/EstimateCost/Components/CustomUnitInput.js +3 -3
  4. package/dist/components/EstimateCost/Components/Item.cjs +10 -10
  5. package/dist/components/EstimateCost/Components/Item.d.ts +1 -1
  6. package/dist/components/EstimateCost/Components/Item.js +11 -11
  7. package/dist/components/EstimateCost/Components/Region.cjs +4 -3
  8. package/dist/components/EstimateCost/Components/Region.d.ts +2 -2
  9. package/dist/components/EstimateCost/Components/Region.js +4 -3
  10. package/dist/components/EstimateCost/Components/Regular.cjs +4 -3
  11. package/dist/components/EstimateCost/Components/Regular.d.ts +2 -2
  12. package/dist/components/EstimateCost/Components/Regular.js +4 -3
  13. package/dist/components/EstimateCost/Components/Strong.cjs +4 -3
  14. package/dist/components/EstimateCost/Components/Strong.d.ts +2 -2
  15. package/dist/components/EstimateCost/Components/Strong.js +4 -3
  16. package/dist/components/EstimateCost/Components/Zone.cjs +4 -3
  17. package/dist/components/EstimateCost/Components/Zone.d.ts +1 -1
  18. package/dist/components/EstimateCost/Components/Zone.js +4 -3
  19. package/dist/components/EstimateCost/EstimateCost.d.ts +10 -10
  20. package/dist/components/EstimateCost/EstimateCostContent.cjs +14 -11
  21. package/dist/components/EstimateCost/EstimateCostContent.js +17 -14
  22. package/dist/components/EstimateCost/componentStyle.d.ts +1 -1
  23. package/dist/components/Navigation/constants.d.ts +2 -2
  24. package/package.json +8 -8
@@ -4,7 +4,7 @@ const jsxRuntime = require("@emotion/react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const EstimateCostProvider = require("../EstimateCostProvider.cjs");
6
6
  const UnitInput = require("./UnitInput.cjs");
7
- const CustomUnitInput = ({
7
+ const CustomUnitInput = react.memo(({
8
8
  defaultTimeUnit = "hours",
9
9
  setIteration,
10
10
  iteration,
@@ -29,5 +29,5 @@ const CustomUnitInput = ({
29
29
  value: iteration.value
30
30
  });
31
31
  }, placeholder: "0", value: iteration.value, unitValue: iteration.unit || defaultOption?.value, minValue: 1, size: "medium", options });
32
- };
32
+ });
33
33
  exports.CustomUnitInput = CustomUnitInput;
@@ -5,5 +5,5 @@ type CustomUnitInputProps = {
5
5
  iteration: Iteration;
6
6
  timeUnits: Units[];
7
7
  };
8
- export declare const CustomUnitInput: ({ defaultTimeUnit, setIteration, iteration, timeUnits, }: CustomUnitInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
+ export declare const CustomUnitInput: import("react").MemoExoticComponent<({ defaultTimeUnit, setIteration, iteration, timeUnits, }: CustomUnitInputProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
9
9
  export {};
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "@emotion/react/jsx-runtime";
2
- import { useMemo } from "react";
2
+ import { memo, useMemo } from "react";
3
3
  import { useEstimateCost } from "../EstimateCostProvider.js";
4
4
  import { UnitInput } from "./UnitInput.js";
5
- const CustomUnitInput = ({
5
+ const CustomUnitInput = memo(({
6
6
  defaultTimeUnit = "hours",
7
7
  setIteration,
8
8
  iteration,
@@ -27,7 +27,7 @@ const CustomUnitInput = ({
27
27
  value: iteration.value
28
28
  });
29
29
  }, placeholder: "0", value: iteration.value, unitValue: iteration.unit || defaultOption?.value, minValue: 1, size: "medium", options });
30
- };
30
+ });
31
31
  export {
32
32
  CustomUnitInput
33
33
  };