@ultraviolet/ui 3.20.2 → 3.20.3

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 (137) hide show
  1. package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.138.0}/helpers/esm/asyncToGenerator.js +2 -2
  2. package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.138.0}/helpers/esm/defineProperty.js +3 -3
  3. package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.138.0}/helpers/esm/extends.js +2 -2
  4. package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.138.0}/helpers/esm/objectDestructuringEmpty.js +2 -2
  5. package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.138.0}/helpers/esm/objectSpread2.js +3 -3
  6. package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.138.0}/helpers/esm/objectWithoutProperties.js +3 -3
  7. package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.138.0}/helpers/esm/objectWithoutPropertiesLoose.js +2 -2
  8. package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.138.0}/helpers/esm/toPrimitive.js +3 -3
  9. package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.138.0}/helpers/esm/toPropertyKey.js +4 -4
  10. package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.138.0}/helpers/esm/typeof.js +2 -2
  11. package/dist/_virtual/_rolldown/runtime.js +8 -1
  12. package/dist/components/ActionBar/index.js +1 -1
  13. package/dist/components/Avatar/index.js +1 -1
  14. package/dist/components/BarChart/index.js +1 -1
  15. package/dist/components/Breadcrumbs/components/Item.js +1 -1
  16. package/dist/components/Carousel/Item.js +1 -1
  17. package/dist/components/CheckboxGroup/index.js +1 -1
  18. package/dist/components/DateInput/helpers.js +5 -3
  19. package/dist/components/DateInput/helpersLocale.js +2 -1
  20. package/dist/components/Dialog/index.js +1 -1
  21. package/dist/components/Drawer/index.js +1 -1
  22. package/dist/components/Expandable/AnimatedExpandable.js +1 -1
  23. package/dist/components/Expandable/NonAnimatedExpandable.js +1 -1
  24. package/dist/components/FileInput/components/Button.js +2 -2
  25. package/dist/components/FileInput/components/List.js +2 -1
  26. package/dist/components/FileInput/helpers.js +3 -2
  27. package/dist/components/FileInput/index.js +4 -3
  28. package/dist/components/InfiniteScroll/index.js +1 -1
  29. package/dist/components/LineChart/index.js +1 -1
  30. package/dist/components/List/Cell.js +1 -1
  31. package/dist/components/List/ListContext.js +3 -3
  32. package/dist/components/Loader/index.js +1 -1
  33. package/dist/components/Menu/MenuContent.js +2 -1
  34. package/dist/components/Menu/index.js +2 -2
  35. package/dist/components/Modal/components/Dialog.js +3 -2
  36. package/dist/components/Notification/Notification.js +1 -1
  37. package/dist/components/Notification/index.js +5 -2
  38. package/dist/components/NumberInput/components/Controls.d.ts +1 -1
  39. package/dist/components/NumberInput/components/Controls.d.ts.map +1 -1
  40. package/dist/components/NumberInput/components/Controls.js +6 -10
  41. package/dist/components/NumberInput/index.d.ts.map +1 -1
  42. package/dist/components/NumberInput/index.js +31 -9
  43. package/dist/components/PieChart/index.js +1 -1
  44. package/dist/components/Popup/index.js +1 -1
  45. package/dist/components/Row/index.js +1 -1
  46. package/dist/components/Row/styles.css.js +1 -1
  47. package/dist/components/SelectInput/components/Dropdown/Dropdown.js +1 -1
  48. package/dist/components/SelectInput/components/Dropdown/Group.js +1 -1
  49. package/dist/components/SelectInput/components/Dropdown/SearchBar.js +5 -3
  50. package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts +1 -0
  51. package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts.map +1 -1
  52. package/dist/components/SelectInput/styles.css.d.ts +1 -0
  53. package/dist/components/SelectInput/styles.css.d.ts.map +1 -1
  54. package/dist/components/SelectInput/styles.css.js +10 -9
  55. package/dist/components/SelectableCard/MultiStateInput.js +1 -1
  56. package/dist/components/SelectableCard/SelectableCard.js +1 -1
  57. package/dist/components/SelectableCard/index.js +1 -1
  58. package/dist/components/SelectableCardOptionGroup/components/Option.js +1 -1
  59. package/dist/components/SelectableCardOptionGroup/index.js +4 -2
  60. package/dist/components/Skeleton/index.js +2 -1
  61. package/dist/components/Slider/components/SingleSlider.js +1 -1
  62. package/dist/components/Stack/index.js +2 -2
  63. package/dist/components/Stack/styles.css.js +1 -1
  64. package/dist/components/Stepper/index.js +1 -1
  65. package/dist/components/SwitchButton/index.js +2 -1
  66. package/dist/components/Table/Cell.js +1 -1
  67. package/dist/components/Table/TableContext.js +2 -2
  68. package/dist/components/Table/index.js +1 -1
  69. package/dist/components/Tabs/Tab.js +2 -2
  70. package/dist/components/Tabs/TabMenu.js +2 -2
  71. package/dist/components/Tabs/TabMenuItem.js +2 -2
  72. package/dist/components/Tabs/index.js +2 -2
  73. package/dist/components/TagInput/index.js +1 -1
  74. package/dist/components/TagList/index.js +1 -1
  75. package/dist/components/Text/index.js +1 -1
  76. package/dist/components/TextArea/index.js +1 -1
  77. package/dist/components/TimeInput/index.js +1 -1
  78. package/dist/components/Toaster/Toaster.js +1 -1
  79. package/dist/components/Toaster/components/Button.js +2 -2
  80. package/dist/components/Toaster/components/Link.js +3 -3
  81. package/dist/components/Toaster/index.js +3 -1
  82. package/dist/components/TreeMapChart/index.js +1 -1
  83. package/dist/components/VerificationCode/index.js +4 -2
  84. package/dist/components/index.js +1 -1
  85. package/dist/components/styles.js +1 -1
  86. package/dist/compositions/EstimateCost/Components/Item.js +1 -1
  87. package/dist/compositions/EstimateCost/Components/LineThrough.js +2 -2
  88. package/dist/compositions/EstimateCost/Components/Unit.js +1 -1
  89. package/dist/compositions/EstimateCost/EstimateCostProvider.js +1 -1
  90. package/dist/compositions/EstimateCost/Image.js +1 -1
  91. package/dist/compositions/EstimateCost/styles.css.js +0 -2
  92. package/dist/compositions/Filters/filterTypes/FilterSlider.js +1 -1
  93. package/dist/compositions/Filters/parts/AbstractFilter.js +1 -1
  94. package/dist/compositions/Filters/parts/reducer.js +9 -3
  95. package/dist/compositions/Filters/parts/useFilters.js +1 -1
  96. package/dist/compositions/InfoTable/components/Row.js +1 -1
  97. package/dist/compositions/Navigation/NavigationProvider.js +2 -2
  98. package/dist/compositions/Navigation/styles.css.js +0 -2
  99. package/dist/compositions/OptionSelector/styles.css.js +0 -14
  100. package/dist/compositions/OrderSummary/NonScrollableContent.d.ts.map +1 -1
  101. package/dist/compositions/OrderSummary/NonScrollableContent.js +5 -0
  102. package/dist/compositions/OrderSummary/components/Category.d.ts.map +1 -1
  103. package/dist/compositions/OrderSummary/components/Category.js +8 -0
  104. package/dist/compositions/OrderSummary/components/SubCategory.js +4 -0
  105. package/dist/compositions/OrderSummary/components/SubCategoryPrice.d.ts.map +1 -1
  106. package/dist/compositions/OrderSummary/components/SubCategoryPrice.js +5 -0
  107. package/dist/compositions/OrderSummary/helpers.js +2 -2
  108. package/dist/compositions/OrderSummary/styles.css.d.ts +1 -0
  109. package/dist/compositions/OrderSummary/styles.css.d.ts.map +1 -1
  110. package/dist/compositions/OrderSummary/styles.css.js +2 -1
  111. package/dist/compositions/Plans/PlanHeader.d.ts +1 -1
  112. package/dist/compositions/Plans/PlanHeader.d.ts.map +1 -1
  113. package/dist/compositions/Plans/PlanHeader.js +2 -4
  114. package/dist/compositions/Plans/index.js +2 -1
  115. package/dist/compositions/RichTextInput/editorCore.js +1 -1
  116. package/dist/compositions/RichTextInput/index.js +1 -1
  117. package/dist/compositions/index.js +1 -1
  118. package/dist/compositions/styles.js +1 -1
  119. package/dist/helpers/treeMap.js +1 -1
  120. package/dist/index.js +1 -1
  121. package/dist/theme/index.js +2 -1
  122. package/dist/ui.css +1 -1
  123. package/dist/utils/index.js +5 -1
  124. package/dist/utils/normalize.d.ts.map +1 -1
  125. package/dist/utils/normalize.js +0 -1
  126. package/dist/utils/responsive/index.js +11 -0
  127. package/dist/utils/responsive/utilities.js +1 -1
  128. package/package.json +10 -10
  129. package/dist/components/Avatar/variables.css.ts.vanilla.js +0 -8
  130. package/dist/components/List/variables.css.ts.vanilla.js +0 -8
  131. package/dist/components/Popup/variables.css.ts.vanilla.js +0 -8
  132. package/dist/components/ProgressBar/variables.css.ts.vanilla.js +0 -8
  133. package/dist/components/SelectableCard/variables.css.ts.vanilla.js +0 -8
  134. package/dist/components/Table/variables.css.ts.vanilla.js +0 -8
  135. package/dist/components/Text/variables.css.ts.vanilla.js +0 -8
  136. package/dist/compositions/Navigation/variables.css.ts.vanilla.js +0 -8
  137. package/dist/themes/dist/vanilla/themes.css.js.vanilla.js +0 -8
@@ -1,6 +1,6 @@
1
1
  import { __esmMin, __name } from "../../../_rolldown/runtime.js";
2
2
 
3
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/asyncToGenerator.js
3
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/asyncToGenerator.js
4
4
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
5
5
  try {
6
6
  var i = n[a](c);
@@ -31,4 +31,4 @@ var init_asyncToGenerator = __esmMin(() => {});
31
31
 
32
32
  //#endregion
33
33
  init_asyncToGenerator();
34
- export { _asyncToGenerator, init_asyncToGenerator };
34
+ export { _asyncToGenerator as default, init_asyncToGenerator };
@@ -1,7 +1,7 @@
1
1
  import { __esmMin, __name } from "../../../_rolldown/runtime.js";
2
- import { init_toPropertyKey, toPropertyKey } from "./toPropertyKey.js";
2
+ import toPropertyKey, { init_toPropertyKey } from "./toPropertyKey.js";
3
3
 
4
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
4
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/defineProperty.js
5
5
  function _defineProperty(e, r, t) {
6
6
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
7
7
  value: t,
@@ -16,4 +16,4 @@ var init_defineProperty = __esmMin(() => {
16
16
 
17
17
  //#endregion
18
18
  init_defineProperty();
19
- export { _defineProperty, init_defineProperty };
19
+ export { _defineProperty as default, init_defineProperty };
@@ -1,6 +1,6 @@
1
1
  import { __esmMin, __name } from "../../../_rolldown/runtime.js";
2
2
 
3
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/extends.js
3
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/extends.js
4
4
  function _extends() {
5
5
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
6
6
  for (var e = 1; e < arguments.length; e++) {
@@ -14,4 +14,4 @@ var init_extends = __esmMin(() => {});
14
14
 
15
15
  //#endregion
16
16
  init_extends();
17
- export { _extends, init_extends };
17
+ export { _extends as default, init_extends };
@@ -1,6 +1,6 @@
1
1
  import { __esmMin, __name } from "../../../_rolldown/runtime.js";
2
2
 
3
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectDestructuringEmpty.js
3
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/objectDestructuringEmpty.js
4
4
  function _objectDestructuringEmpty(t) {
5
5
  if (null == t) throw new TypeError("Cannot destructure " + t);
6
6
  }
@@ -8,4 +8,4 @@ var init_objectDestructuringEmpty = __esmMin(() => {});
8
8
 
9
9
  //#endregion
10
10
  init_objectDestructuringEmpty();
11
- export { _objectDestructuringEmpty, init_objectDestructuringEmpty };
11
+ export { _objectDestructuringEmpty as default, init_objectDestructuringEmpty };
@@ -1,7 +1,7 @@
1
1
  import { __esmMin, __name } from "../../../_rolldown/runtime.js";
2
- import { _defineProperty, init_defineProperty } from "./defineProperty.js";
2
+ import _defineProperty, { init_defineProperty } from "./defineProperty.js";
3
3
 
4
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectSpread2.js
4
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/objectSpread2.js
5
5
  function ownKeys(e, r) {
6
6
  var t = Object.keys(e);
7
7
  if (Object.getOwnPropertySymbols) {
@@ -29,4 +29,4 @@ var init_objectSpread2 = __esmMin(() => {
29
29
 
30
30
  //#endregion
31
31
  init_objectSpread2();
32
- export { _objectSpread2, init_objectSpread2 };
32
+ export { _objectSpread2 as default, init_objectSpread2 };
@@ -1,7 +1,7 @@
1
1
  import { __esmMin, __name } from "../../../_rolldown/runtime.js";
2
- import { _objectWithoutPropertiesLoose, init_objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
2
+ import _objectWithoutPropertiesLoose, { init_objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
3
3
 
4
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectWithoutProperties.js
4
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/objectWithoutProperties.js
5
5
  function _objectWithoutProperties(e, t) {
6
6
  if (null == e) return {};
7
7
  var o;
@@ -19,4 +19,4 @@ var init_objectWithoutProperties = __esmMin(() => {
19
19
 
20
20
  //#endregion
21
21
  init_objectWithoutProperties();
22
- export { _objectWithoutProperties, init_objectWithoutProperties };
22
+ export { _objectWithoutProperties as default, init_objectWithoutProperties };
@@ -1,6 +1,6 @@
1
1
  import { __esmMin, __name } from "../../../_rolldown/runtime.js";
2
2
 
3
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectWithoutPropertiesLoose.js
3
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/objectWithoutPropertiesLoose.js
4
4
  function _objectWithoutPropertiesLoose(r, e) {
5
5
  if (null == r) return {};
6
6
  var t = {};
@@ -14,4 +14,4 @@ var init_objectWithoutPropertiesLoose = __esmMin(() => {});
14
14
 
15
15
  //#endregion
16
16
  init_objectWithoutPropertiesLoose();
17
- export { _objectWithoutPropertiesLoose, init_objectWithoutPropertiesLoose };
17
+ export { _objectWithoutPropertiesLoose as default, init_objectWithoutPropertiesLoose };
@@ -1,7 +1,7 @@
1
1
  import { __esmMin, __name } from "../../../_rolldown/runtime.js";
2
- import { _typeof, init_typeof } from "./typeof.js";
2
+ import _typeof, { init_typeof } from "./typeof.js";
3
3
 
4
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
4
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/toPrimitive.js
5
5
  function toPrimitive(t, r) {
6
6
  if ("object" != _typeof(t) || !t) return t;
7
7
  var e = t[Symbol.toPrimitive];
@@ -18,4 +18,4 @@ var init_toPrimitive = __esmMin(() => {
18
18
 
19
19
  //#endregion
20
20
  init_toPrimitive();
21
- export { init_toPrimitive, toPrimitive };
21
+ export { toPrimitive as default, init_toPrimitive };
@@ -1,8 +1,8 @@
1
1
  import { __esmMin, __name } from "../../../_rolldown/runtime.js";
2
- import { _typeof, init_typeof } from "./typeof.js";
3
- import { init_toPrimitive, toPrimitive } from "./toPrimitive.js";
2
+ import _typeof, { init_typeof } from "./typeof.js";
3
+ import toPrimitive, { init_toPrimitive } from "./toPrimitive.js";
4
4
 
5
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
5
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/toPropertyKey.js
6
6
  function toPropertyKey(t) {
7
7
  var i = toPrimitive(t, "string");
8
8
  return "symbol" == _typeof(i) ? i : i + "";
@@ -14,4 +14,4 @@ var init_toPropertyKey = __esmMin(() => {
14
14
 
15
15
  //#endregion
16
16
  init_toPropertyKey();
17
- export { init_toPropertyKey, toPropertyKey };
17
+ export { toPropertyKey as default, init_toPropertyKey };
@@ -1,6 +1,6 @@
1
1
  import { __esmMin, __name } from "../../../_rolldown/runtime.js";
2
2
 
3
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
3
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/typeof.js
4
4
  function _typeof(o) {
5
5
  "@babel/helpers - typeof";
6
6
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -13,4 +13,4 @@ var init_typeof = __esmMin(() => {});
13
13
 
14
14
  //#endregion
15
15
  init_typeof();
16
- export { _typeof, init_typeof };
16
+ export { _typeof as default, init_typeof };
@@ -4,7 +4,14 @@ var __name = (target, value) => __defProp(target, "name", {
4
4
  value,
5
5
  configurable: true
6
6
  });
7
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
7
+ var __esmMin = (fn, res, err) => () => {
8
+ if (err) throw err[0];
9
+ try {
10
+ return fn && (res = fn(fn = 0)), res;
11
+ } catch (e) {
12
+ throw err = [e], e;
13
+ }
14
+ };
8
15
 
9
16
  //#endregion
10
17
  export { __esmMin, __name };
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { Stack, init_Stack } from "../Stack/index.js";
5
5
  import { actionBarStyle, init_styles_css, rankActionBar } from "./styles.css.js";
6
6
  import { cn } from "@ultraviolet/utils";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { Text, init_Text } from "../Text/index.js";
5
5
  import { DEFAULT_COLORS, TEXT_VARIANT_BY_SIZE, init_constants, sizes } from "./constants.js";
6
6
  import { avatarStyle, init_styles_css } from "./styles.css.js";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { getLegendColor, init_legend } from "../../helpers/legend.js";
5
5
  import { getNivoTheme, init_nivoTheme } from "../../helpers/nivoTheme.js";
6
6
  import { BarChartTooltip, init_Tooltip } from "./Tooltip.js";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { Text, init_Text } from "../../Text/index.js";
5
5
  import { Button, init_Button } from "../../Button/index.js";
6
6
  import { Link, init_Link } from "../../Link/index.js";
@@ -1,5 +1,5 @@
1
1
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
2
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
3
3
  import { carouselStyle, init_styles_css, widthVar } from "./styles.css.js";
4
4
  import { assignInlineVars } from "@vanilla-extract/dynamic";
5
5
  import { jsx } from "react/jsx-runtime";
@@ -82,4 +82,4 @@ var init_CheckboxGroup = __esmMin(() => {
82
82
 
83
83
  //#endregion
84
84
  init_CheckboxGroup();
85
- export { CheckboxGroup, init_CheckboxGroup };
85
+ export { CheckboxGroup, CheckboxGroupCheckbox, init_CheckboxGroup };
@@ -56,10 +56,12 @@ var init_helpers = __esmMin(() => {
56
56
  const res = value.split(SPLIT_REGEX).map((val) => Number.parseInt(val, 10));
57
57
  const year = Math.max(...res) < 100 ? Math.max(...res) + 2e3 : Math.max(...res);
58
58
  const month = Math.min(...res) - 1;
59
- return returnValidDate(new Date(year, month), minDate, maxDate);
59
+ const computedDate = new Date(year, month);
60
+ return returnValidDate(computedDate, minDate, maxDate);
60
61
  }
61
62
  const [day, month, year] = value.split(DATE_SEPARATOR_REGEX);
62
- return returnValidDate(/* @__PURE__ */ new Date(`${month} ${day} ${year}`), minDate, maxDate);
63
+ const computedDate = /* @__PURE__ */ new Date(`${month} ${day} ${year}`);
64
+ return returnValidDate(computedDate, minDate, maxDate);
63
65
  };
64
66
  createDateRange = (value, showMonthYearPicker) => {
65
67
  const [startDateInput, endDateInput] = value.split(" - ").map((val) => createDate(val, showMonthYearPicker));
@@ -70,4 +72,4 @@ var init_helpers = __esmMin(() => {
70
72
 
71
73
  //#endregion
72
74
  init_helpers();
73
- export { createDate, createDateRange, formatValue, getIsInHoveredRange, getMonthFirstDay, getNextMonth, getPreviousMonth, init_helpers, isSameDay, isSameMonth };
75
+ export { addZero, createDate, createDateRange, formatValue, getIsInHoveredRange, getMonthFirstDay, getNextMonth, getPreviousMonth, init_helpers, isSameDay, isSameMonth };
@@ -32,7 +32,8 @@ var init_helpersLocale = __esmMin(() => {
32
32
  return months;
33
33
  };
34
34
  getDays = (locale) => {
35
- const longDays = getLocalizedDays(typeof locale === "string" ? locale : locale.code);
35
+ const computedLocale = typeof locale === "string" ? locale : locale.code;
36
+ const longDays = getLocalizedDays(computedLocale);
36
37
  const days = {};
37
38
  for (const longDay of longDays) days[longDay] = longDay.slice(0, 2);
38
39
  const dayKeys = Object.keys(days);
@@ -79,4 +79,4 @@ var init_Dialog = __esmMin(() => {
79
79
 
80
80
  //#endregion
81
81
  init_Dialog();
82
- export { Dialog, init_Dialog };
82
+ export { BaseDialog, Dialog, init_Dialog };
@@ -107,4 +107,4 @@ var init_Drawer = __esmMin(() => {
107
107
 
108
108
  //#endregion
109
109
  init_Drawer();
110
- export { Drawer, init_Drawer };
110
+ export { BaseDrawer, Drawer, init_Drawer };
@@ -1,5 +1,5 @@
1
1
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
2
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
3
3
  import { init_constant } from "./constant.js";
4
4
  import { animationDurationVar, expandableStyle, init_styles_css } from "./styles.css.js";
5
5
  import { useEffect, useRef, useState } from "react";
@@ -1,5 +1,5 @@
1
1
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
2
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/Expandable/NonAnimatedExpandable.tsx
@@ -1,6 +1,6 @@
1
1
  import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
2
- import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
- import { _objectWithoutProperties, init_objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectWithoutProperties.js";
2
+ import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
3
+ import _objectWithoutProperties, { init_objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectWithoutProperties.js";
4
4
  import { Button, init_Button as init_Button$1 } from "../../Button/index.js";
5
5
  import { init_FileInputProvider, useFileInput } from "../FileInputProvider.js";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -84,7 +84,8 @@ var init_List = __esmMin(() => {
84
84
  className: fileInputStyle.fileListContainer,
85
85
  children: [files.map((file, index) => {
86
86
  if (!computedLimit || index < computedLimit) {
87
- const illustration = getIllustration(getMimeTypeType(file.type), !!file.error || error, !!file.loading, file.file);
87
+ const fileType = getMimeTypeType(file.type);
88
+ const illustration = getIllustration(fileType, !!file.error || error, !!file.loading, file.file);
88
89
  const sentiment = file.error ? "danger" : "neutral";
89
90
  return /* @__PURE__ */ jsxs(Stack, {
90
91
  "data-testid": file.name,
@@ -1,5 +1,5 @@
1
1
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
2
- import { _asyncToGenerator, init_asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
2
+ import _asyncToGenerator, { init_asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/asyncToGenerator.js";
3
3
 
4
4
  //#region src/components/FileInput/helpers.ts
5
5
  var getMimeTypeType, formatFileSize, fileIsAccepted, isFileEntry, isDirectoryEntry, convertEntryToFile, readEntriesInDirectory, readEntries, readTransferredFiles;
@@ -92,7 +92,8 @@ var init_helpers = __esmMin(() => {
92
92
  }();
93
93
  readTransferredFiles = function() {
94
94
  var _ref4 = _asyncToGenerator(function* (dataTransfer) {
95
- const files = yield readEntries([...dataTransfer.items].map((entry) => entry.webkitGetAsEntry()).filter((item) => !!item));
95
+ const items = [...dataTransfer.items].map((entry) => entry.webkitGetAsEntry()).filter((item) => !!item);
96
+ const files = yield readEntries(items);
96
97
  const outputDataTransfer = new DataTransfer();
97
98
  for (const file of files) outputDataTransfer.items.add(file);
98
99
  return outputDataTransfer.files;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { Stack, init_Stack } from "../Stack/index.js";
5
5
  import { Text, init_Text } from "../Text/index.js";
6
6
  import { hasHelperText, init_hasHelperText } from "../../helpers/hasHelperText.js";
@@ -8,7 +8,7 @@ import { Description, init_Description } from "../Description/index.js";
8
8
  import { Label, init_Label } from "../Label/index.js";
9
9
  import { FileInputContext, init_FileInputProvider } from "./FileInputProvider.js";
10
10
  import { FileInputButton, init_Button } from "./components/Button.js";
11
- import { _asyncToGenerator, init_asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/asyncToGenerator.js";
11
+ import _asyncToGenerator, { init_asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/asyncToGenerator.js";
12
12
  import { fileIsAccepted, init_helpers, readTransferredFiles } from "./helpers.js";
13
13
  import { fileInputStyle, init_styles_css } from "./styles.css.js";
14
14
  import { ListFiles, init_List } from "./components/List.js";
@@ -114,7 +114,8 @@ var init_FileInput = __esmMin(() => {
114
114
  var _event$dataTransfer;
115
115
  event.preventDefault();
116
116
  if (disabled || disabledDragndrop) return;
117
- const [acceptedFiles, errorFiles] = addFiles(allowDirectories ? yield readTransferredFiles(event.dataTransfer) : (_event$dataTransfer = event.dataTransfer) === null || _event$dataTransfer === void 0 ? void 0 : _event$dataTransfer.files);
117
+ const fileList = allowDirectories ? yield readTransferredFiles(event.dataTransfer) : (_event$dataTransfer = event.dataTransfer) === null || _event$dataTransfer === void 0 ? void 0 : _event$dataTransfer.files;
118
+ const [acceptedFiles, errorFiles] = addFiles(fileList);
118
119
  onDrop === null || onDrop === void 0 || onDrop(event, acceptedFiles, errorFiles);
119
120
  });
120
121
  return function onDropComputed(_x) {
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { Loader, init_Loader } from "../Loader/index.js";
5
5
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
6
6
  import { useDebouncedCallback } from "@ultraviolet/utils";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { getLegendColor, init_legend } from "../../helpers/legend.js";
5
5
  import { getNivoTheme, init_nivoTheme } from "../../helpers/nivoTheme.js";
6
6
  import { getMaxChartValue, getMinChartValue, init_helpers } from "./helpers.js";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { init_ColumnProvider, useColumnProvider } from "./ColumnProvider.js";
5
5
  import { init_ListContext, useListContext } from "./ListContext.js";
6
6
  import { init_styles_css, listStyle } from "./styles.css.js";
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { init_toPropertyKey, toPropertyKey } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/toPropertyKey.js";
4
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
5
- import { _objectWithoutProperties, init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectWithoutProperties.js";
3
+ import toPropertyKey, { init_toPropertyKey } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/toPropertyKey.js";
4
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
5
+ import _objectWithoutProperties, { init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectWithoutProperties.js";
6
6
  import { createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
 
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { SIZES, init_constants } from "./constants.js";
5
5
  import { init_styles_css, loaderStyle } from "./styles.css.js";
6
6
  import { useTheme } from "@ultraviolet/themes";
@@ -137,7 +137,8 @@ var init_MenuContent = __esmMin(() => {
137
137
  useEffect(() => {
138
138
  if (disclosureRef.current && placement === "bottom" && shrink) {
139
139
  const disclosureBottom = disclosureRef.current.getBoundingClientRect().bottom;
140
- setPopupMaxHeight(`${portalTarget.getBoundingClientRect().bottom - disclosureBottom - SPACE_DISCLOSURE_POPUP}px`);
140
+ const availableSpace = portalTarget.getBoundingClientRect().bottom - disclosureBottom - SPACE_DISCLOSURE_POPUP;
141
+ setPopupMaxHeight(`${availableSpace}px`);
141
142
  }
142
143
  }, [
143
144
  isVisible,
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
4
- import { _objectWithoutProperties, init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectWithoutProperties.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
+ import _objectWithoutProperties, { init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectWithoutProperties.js";
5
5
  import { Group, init_Group } from "./components/Group.js";
6
6
  import { MenuProvider, init_MenuProvider } from "./MenuProvider.js";
7
7
  import { Item, init_Item } from "./components/Item.js";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { Stack, init_Stack } from "../../Stack/index.js";
5
5
  import { init_ModalProvider, useModal } from "../ModalProvider.js";
6
6
  import { init_styles_css, modalStyle, positionModal, topModal } from "../styles.css.js";
@@ -115,7 +115,8 @@ var init_Dialog = __esmMin(() => {
115
115
  if (focusableEls) {
116
116
  const elems = [...focusableEls];
117
117
  const firstFocusableEl = elems[0];
118
- handleFocusMove(event, firstFocusableEl, elems.at(-1));
118
+ const lastFocusableEl = elems.at(-1);
119
+ handleFocusMove(event, firstFocusableEl, lastFocusableEl);
119
120
  }
120
121
  }, [dialogRef, handleFocusMove]);
121
122
  if ((modalAbove === null || modalAbove === void 0 ? void 0 : modalAbove.ref) && typeof modalAbove.ref === "object" && "current" in modalAbove.ref && currentModalHeight) {
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.138.0/helpers/esm/objectSpread2.js";
4
4
  import { Stack, init_Stack } from "../Stack/index.js";
5
5
  import { Text, init_Text } from "../Text/index.js";
6
6
  import { Button, init_Button } from "../Button/index.js";
@@ -3,8 +3,11 @@ import { init_Notification as init_Notification$1, notification } from "./Notifi
3
3
  import { NotificationContainer, init_NotificationContainer } from "./NotificationContainer.js";
4
4
 
5
5
  //#region src/components/Notification/index.ts
6
- var init_Notification = __esmMin(() => {});
6
+ var init_Notification = __esmMin(() => {
7
+ init_Notification$1();
8
+ init_NotificationContainer();
9
+ });
7
10
 
8
11
  //#endregion
9
12
  init_Notification();
10
- export { init_Notification };
13
+ export { NotificationContainer, init_Notification, notification };
@@ -1,3 +1,3 @@
1
1
  import type { ControlsProps } from '../types';
2
- export declare const Controls: ({ controls, direction, size, localRef, max, min, onChange, isDisabledOrReadOnly, }: ControlsProps) => import("react").JSX.Element | null;
2
+ export declare const Controls: ({ controls, direction, size, localRef, max, min, isDisabledOrReadOnly }: ControlsProps) => import("react").JSX.Element | null;
3
3
  //# sourceMappingURL=Controls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../src/components/NumberInput/components/Controls.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAG7C,eAAO,MAAM,QAAQ,uFASlB,aAAa,uCAkEf,CAAA"}
1
+ {"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../src/components/NumberInput/components/Controls.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAG7C,eAAO,MAAM,QAAQ,4EAA6E,aAAa,uCAkE9G,CAAA"}
@@ -13,7 +13,7 @@ var init_Controls = __esmMin(() => {
13
13
  init_Button();
14
14
  init_Stack();
15
15
  init_styles_css();
16
- Controls = ({ controls, direction, size, localRef, max, min, onChange, isDisabledOrReadOnly }) => {
16
+ Controls = ({ controls, direction, size, localRef, max, min, isDisabledOrReadOnly }) => {
17
17
  var _localRef$current4;
18
18
  var _localRef$current8;
19
19
  const isUp = direction === "up";
@@ -37,8 +37,6 @@ var init_Controls = __esmMin(() => {
37
37
  return Number.isNaN(numericValue) || numericValue <= minValue;
38
38
  }, [localRef === null || localRef === void 0 || (_localRef$current8 = localRef.current) === null || _localRef$current8 === void 0 ? void 0 : _localRef$current8.value, min]);
39
39
  const onClickSideButton = useCallback(() => {
40
- var _Number$parseFloat;
41
- var _localRef$current$val;
42
40
  var _localRef$current11;
43
41
  if (direction === "up") {
44
42
  var _localRef$current9;
@@ -47,13 +45,11 @@ var init_Controls = __esmMin(() => {
47
45
  var _localRef$current10;
48
46
  (_localRef$current10 = localRef.current) === null || _localRef$current10 === void 0 || _localRef$current10.stepDown();
49
47
  }
50
- onChange === null || onChange === void 0 || onChange((_Number$parseFloat = Number.parseFloat((_localRef$current$val = (_localRef$current11 = localRef.current) === null || _localRef$current11 === void 0 ? void 0 : _localRef$current11.value) !== null && _localRef$current$val !== void 0 ? _localRef$current$val : "")) !== null && _Number$parseFloat !== void 0 ? _Number$parseFloat : min);
51
- }, [
52
- localRef,
53
- min,
54
- onChange,
55
- direction
56
- ]);
48
+ (_localRef$current11 = localRef.current) === null || _localRef$current11 === void 0 || _localRef$current11.dispatchEvent(new Event("input", {
49
+ bubbles: true,
50
+ cancelable: false
51
+ }));
52
+ }, [localRef, direction]);
57
53
  const isDisabled = isUp ? isPlusDisabled() : isMinusDisabled();
58
54
  return controls ? /* @__PURE__ */ jsx(Stack, {
59
55
  alignItems: "center",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/index.tsx"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;oRAwLvB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/index.tsx"],"names":[],"mappings":"AAqBA;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;oRAkMvB,CAAA"}
@@ -14,7 +14,7 @@ import { isNullOrUndefined } from "@ultraviolet/utils";
14
14
  import { jsx, jsxs } from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/NumberInput/index.tsx
17
- var NumberInput;
17
+ var getValueAsNumber, NumberInput;
18
18
  var init_NumberInput = __esmMin(() => {
19
19
  init_hasHelperText();
20
20
  init_Description();
@@ -25,9 +25,29 @@ var init_NumberInput = __esmMin(() => {
25
25
  init_Controls();
26
26
  init_Unit();
27
27
  init_styles_css();
28
+ getValueAsNumber = (input) => {
29
+ return input.value === "" && !input.validity.badInput ? null : input.valueAsNumber;
30
+ };
28
31
  NumberInput = forwardRef(({ disabled = false, max = Number.MAX_SAFE_INTEGER, min = 0, name, onChange, onFocus, onBlur, size = "large", step, unit, value, tooltip, className, label, labelDescription, id, controls = true, placeholder = "", error, success, helper, "aria-label": ariaLabel, "data-testid": dataTestId, "aria-describedby": ariaDescribedBy, required, autoFocus, readOnly, style }, ref) => {
29
32
  const localRef = useRef(null);
30
- useImperativeHandle(ref, () => localRef.current);
33
+ /**
34
+ * Expose a custom ref for react-hook-form which reads the `value` prop of the native input when using the `register` function.
35
+ * We return a modified `value` to differentiate empty (null) from invalid (NaN), like we do in the `onChange` callback.
36
+ */
37
+ useImperativeHandle(ref, () => {
38
+ if (!localRef.current) return null;
39
+ return new Proxy(localRef.current, {
40
+ get(target, prop) {
41
+ if (prop === "value") return getValueAsNumber(target);
42
+ const value = Reflect.get(target, prop);
43
+ return typeof value === "function" ? value.bind(target) : value;
44
+ },
45
+ set(target, prop, newValue) {
46
+ if (prop === "value" && Number.isNaN(newValue)) return true;
47
+ return Reflect.set(target, prop, newValue);
48
+ }
49
+ });
50
+ });
31
51
  const uniqueId = useId();
32
52
  const helperId = useId();
33
53
  const localId = id !== null && id !== void 0 ? id : uniqueId;
@@ -103,16 +123,18 @@ var init_NumberInput = __esmMin(() => {
103
123
  inputMode: Number.isInteger(step) ? "numeric" : "decimal",
104
124
  onBlur: (event) => {
105
125
  const { valueAsNumber } = event.target;
106
- if (valueAsNumber) {
107
- if (!isNullOrUndefined(max) && valueAsNumber > max) onChange === null || onChange === void 0 || onChange(max);
108
- if (!isNullOrUndefined(min) && valueAsNumber < min) onChange === null || onChange === void 0 || onChange(min);
126
+ if (valueAsNumber && localRef.current) {
127
+ if (!isNullOrUndefined(max) && valueAsNumber > max) localRef.current.valueAsNumber = max;
128
+ if (!isNullOrUndefined(min) && valueAsNumber < min) localRef.current.valueAsNumber = min;
129
+ localRef.current.dispatchEvent(new Event("input", {
130
+ bubbles: true,
131
+ cancelable: false
132
+ }));
109
133
  }
110
134
  onBlur === null || onBlur === void 0 || onBlur(event);
111
135
  },
112
136
  onChange: onChange ? (event) => {
113
- const { target } = event;
114
- if (Number.isNaN(target.valueAsNumber)) onChange(null);
115
- else onChange(target.valueAsNumber);
137
+ onChange(getValueAsNumber(event.target));
116
138
  } : void 0,
117
139
  onFocus,
118
140
  placeholder,
@@ -122,7 +144,7 @@ var init_NumberInput = __esmMin(() => {
122
144
  step,
123
145
  style,
124
146
  type: "number",
125
- value: value === null || value === void 0 ? void 0 : value.toString()
147
+ value: value === null || Number.isNaN(value) ? "" : value
126
148
  }), /* @__PURE__ */ jsx(Unit, {
127
149
  controls,
128
150
  disabled,