@oliasoft-open-source/react-ui-library 4.2.1 → 4.2.2

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 (27) hide show
  1. package/dist/index.js +7 -2
  2. package/dist/index.js.map +1 -1
  3. package/dist/storybook/assets/{Color-6VNJS4EI-11a1508d.js → Color-6VNJS4EI-176a0637.js} +1 -1
  4. package/dist/storybook/assets/{DocsRenderer-NNNQARDV-8f214a0a.js → DocsRenderer-NNNQARDV-d6b1a926.js} +1 -1
  5. package/dist/storybook/assets/{WithTooltip-4HIR6TLV-bcdb019a.js → WithTooltip-4HIR6TLV-01fcb383.js} +1 -1
  6. package/dist/storybook/assets/{buttons-and-links-72daa9ae.js → buttons-and-links-9b4c48c7.js} +1 -1
  7. package/dist/storybook/assets/{chunk-HLWAVYOI-6a96cff0.js → chunk-HLWAVYOI-efbdedb9.js} +1 -1
  8. package/dist/storybook/assets/{color-9bdf643a.js → color-bdf2c712.js} +1 -1
  9. package/dist/storybook/assets/{formatter-SWP5E3XI-06c7911e.js → formatter-SWP5E3XI-a62ef2ff.js} +1 -1
  10. package/dist/storybook/assets/{iframe-c1fab5c5.js → iframe-3b8c9505.js} +1 -1
  11. package/dist/storybook/assets/{index-97b8789c.js → index-5306dda7.js} +4 -4
  12. package/dist/storybook/assets/{input-validation-64e7abcc.js → input-validation-cad6ba98.js} +1 -1
  13. package/dist/storybook/assets/{inputs-e48e1acb.js → inputs-b36361a7.js} +1 -1
  14. package/dist/storybook/assets/{layout-forms-289235b9.js → layout-forms-500f50e3.js} +1 -1
  15. package/dist/storybook/assets/{layout-general-545e69b0.js → layout-general-6fcc0bac.js} +1 -1
  16. package/dist/storybook/assets/{padding-and-spacing-7aefd342.js → padding-and-spacing-b4b4aa42.js} +1 -1
  17. package/dist/storybook/assets/{preview-88cc5d68.js → preview-6eef7a6c.js} +1 -1
  18. package/dist/storybook/assets/preview-c280dfa3.js +1 -0
  19. package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-5e884b35.js → syntaxhighlighter-NMPM6SWI-2c058518.js} +1 -1
  20. package/dist/storybook/assets/unit-input.stories-65984064.js +273 -0
  21. package/dist/storybook/iframe.html +1 -1
  22. package/dist/storybook/index.json +1 -1
  23. package/dist/storybook/project.json +1 -1
  24. package/dist/storybook/stories.json +1 -1
  25. package/package.json +1 -1
  26. package/dist/storybook/assets/preview-5405e1e8.js +0 -1
  27. package/dist/storybook/assets/unit-input.stories-50ac8b0f.js +0 -257
package/dist/index.js CHANGED
@@ -9162,6 +9162,7 @@ const Input$1 = forwardRef(
9162
9162
  size: size2 = null
9163
9163
  //use width instead
9164
9164
  }, ref2) => {
9165
+ const [valueState, setValueState] = useState(value);
9165
9166
  const disabledContext = useContext(DisabledContext);
9166
9167
  const order2 = (() => {
9167
9168
  if (groupOrder) {
@@ -9177,6 +9178,10 @@ const Input$1 = forwardRef(
9177
9178
  return "";
9178
9179
  })();
9179
9180
  const width2 = propWidth || (size2 ? "auto" : "100%");
9181
+ const handleChange = (e2) => {
9182
+ setValueState(e2.target.value);
9183
+ onChange(e2);
9184
+ };
9180
9185
  return /* @__PURE__ */ jsx("div", { style: { width: width2 }, className: order2, children: /* @__PURE__ */ jsx(
9181
9186
  Tooltip,
9182
9187
  {
@@ -9194,8 +9199,8 @@ const Input$1 = forwardRef(
9194
9199
  type: type || "text",
9195
9200
  size: size2 || 20,
9196
9201
  placeholder: placeholder3 ?? "",
9197
- value: value ?? "",
9198
- onChange,
9202
+ value: valueState ?? "",
9203
+ onChange: handleChange,
9199
9204
  onKeyPress,
9200
9205
  onFocus,
9201
9206
  onBlur,