@ultraviolet/ui 3.23.0 → 3.24.1

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 (192) hide show
  1. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/asyncToGenerator.js +1 -1
  2. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/defineProperty.js +1 -1
  3. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/extends.js +1 -1
  4. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/objectDestructuringEmpty.js +1 -1
  5. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/objectSpread2.js +1 -1
  6. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/objectWithoutProperties.js +1 -1
  7. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  8. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/toPrimitive.js +1 -1
  9. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/toPropertyKey.js +1 -1
  10. package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/typeof.js +1 -1
  11. package/dist/components/ActionBar/index.js +1 -1
  12. package/dist/components/Alert/index.js +0 -1
  13. package/dist/components/Alert/styles.css.d.ts +0 -40
  14. package/dist/components/Alert/styles.css.d.ts.map +1 -1
  15. package/dist/components/Avatar/index.js +1 -1
  16. package/dist/components/Badge/index.d.ts +5 -2
  17. package/dist/components/Badge/index.d.ts.map +1 -1
  18. package/dist/components/Badge/styles.css.d.ts +0 -45
  19. package/dist/components/Badge/styles.css.d.ts.map +1 -1
  20. package/dist/components/Banner/index.d.ts +3 -2
  21. package/dist/components/Banner/index.d.ts.map +1 -1
  22. package/dist/components/Banner/styles.css.d.ts +0 -17
  23. package/dist/components/Banner/styles.css.d.ts.map +1 -1
  24. package/dist/components/BarChart/index.js +1 -1
  25. package/dist/components/Breadcrumbs/components/Item.js +1 -1
  26. package/dist/components/Button/index.d.ts +6 -2
  27. package/dist/components/Button/index.d.ts.map +1 -1
  28. package/dist/components/Button/styles.css.d.ts +0 -83
  29. package/dist/components/Button/styles.css.d.ts.map +1 -1
  30. package/dist/components/Carousel/Item.js +1 -1
  31. package/dist/components/Chip/index.js +4 -2
  32. package/dist/components/DateInput/components/CalendarContent.js +14 -10
  33. package/dist/components/DateInput/components/CalendarDaily.js +37 -35
  34. package/dist/components/DateInput/components/CalendarMonthly.js +46 -42
  35. package/dist/components/DateInput/index.js +8 -6
  36. package/dist/components/DateInput/styles.css.d.ts.map +1 -1
  37. package/dist/components/Dialog/index.js +1 -1
  38. package/dist/components/Expandable/AnimatedExpandable.js +1 -1
  39. package/dist/components/Expandable/NonAnimatedExpandable.js +1 -1
  40. package/dist/components/FileInput/components/Button.js +2 -2
  41. package/dist/components/FileInput/helpers.js +1 -1
  42. package/dist/components/FileInput/index.js +2 -2
  43. package/dist/components/InfiniteScroll/index.js +1 -1
  44. package/dist/components/KeyValueInput/index.js +1 -1
  45. package/dist/components/LineChart/index.js +1 -1
  46. package/dist/components/List/Cell.js +1 -1
  47. package/dist/components/List/ListContext.js +3 -3
  48. package/dist/components/Loader/index.js +1 -1
  49. package/dist/components/Menu/MenuContent.js +1 -1
  50. package/dist/components/Menu/index.js +2 -2
  51. package/dist/components/Modal/components/Dialog.js +1 -1
  52. package/dist/components/Notification/Notification.js +1 -1
  53. package/dist/components/NumberInput/components/Controls.d.ts.map +1 -1
  54. package/dist/components/NumberInput/components/Controls.js +1 -0
  55. package/dist/components/Pagination/PaginationButtons.d.ts +2 -1
  56. package/dist/components/Pagination/PaginationButtons.d.ts.map +1 -1
  57. package/dist/components/Pagination/PaginationButtons.js +19 -15
  58. package/dist/components/Pagination/getPageItems.d.ts +8 -0
  59. package/dist/components/Pagination/getPageItems.d.ts.map +1 -0
  60. package/dist/components/Pagination/getPageItems.js +35 -0
  61. package/dist/components/Pagination/getPageNumbers.d.ts +2 -1
  62. package/dist/components/Pagination/getPageNumbers.d.ts.map +1 -1
  63. package/dist/components/Pagination/getPageNumbers.js +3 -4
  64. package/dist/components/Pagination/index.d.ts.map +1 -1
  65. package/dist/components/Pagination/index.js +15 -3
  66. package/dist/components/Pagination/styles.css.d.ts +1 -0
  67. package/dist/components/Pagination/styles.css.d.ts.map +1 -1
  68. package/dist/components/Pagination/styles.css.js +6 -5
  69. package/dist/components/PieChart/index.js +1 -1
  70. package/dist/components/Popup/index.js +1 -1
  71. package/dist/components/Popup/styles.css.d.ts.map +1 -1
  72. package/dist/components/Popup/styles.css.js +1 -7
  73. package/dist/components/Row/index.js +1 -1
  74. package/dist/components/SearchInput/styles.css.d.ts.map +1 -1
  75. package/dist/components/SelectInput/components/Dropdown/Dropdown.js +1 -1
  76. package/dist/components/SelectInput/components/Dropdown/Group.js +9 -7
  77. package/dist/components/SelectInput/components/Dropdown/Item.d.ts.map +1 -1
  78. package/dist/components/SelectInput/components/Dropdown/Item.js +49 -43
  79. package/dist/components/SelectInput/components/Dropdown/Option.d.ts.map +1 -1
  80. package/dist/components/SelectInput/components/Dropdown/Option.js +71 -89
  81. package/dist/components/SelectInput/components/Dropdown/SearchBar.js +36 -31
  82. package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts.map +1 -1
  83. package/dist/components/SelectInput/components/SelectBar/SelectBar.js +6 -4
  84. package/dist/components/SelectableCard/MultiStateInput.js +1 -1
  85. package/dist/components/SelectableCard/SelectableCard.js +1 -1
  86. package/dist/components/SelectableCardOptionGroup/components/Option.js +1 -1
  87. package/dist/components/Separator/index.d.ts +3 -2
  88. package/dist/components/Separator/index.d.ts.map +1 -1
  89. package/dist/components/Separator/styles.css.d.ts +0 -60
  90. package/dist/components/Separator/styles.css.d.ts.map +1 -1
  91. package/dist/components/Separator/styles.css.js +6 -4
  92. package/dist/components/Slider/components/DoubleSlider.d.ts.map +1 -1
  93. package/dist/components/Slider/components/DoubleSlider.js +103 -114
  94. package/dist/components/Slider/components/SingleSlider.js +2 -5
  95. package/dist/components/Slider/styles.css.d.ts +0 -37
  96. package/dist/components/Slider/styles.css.d.ts.map +1 -1
  97. package/dist/components/Slider/styles.css.js +27 -44
  98. package/dist/components/Stack/index.js +2 -2
  99. package/dist/components/Stepper/index.js +1 -1
  100. package/dist/components/SwitchButton/index.js +1 -0
  101. package/dist/components/Table/Cell.js +1 -1
  102. package/dist/components/Table/TableContext.js +2 -2
  103. package/dist/components/Tabs/Tab.js +2 -2
  104. package/dist/components/Tabs/TabMenu.js +2 -2
  105. package/dist/components/Tabs/TabMenuItem.js +2 -2
  106. package/dist/components/Tabs/index.js +2 -2
  107. package/dist/components/Tag/index.d.ts.map +1 -1
  108. package/dist/components/Tag/index.js +28 -23
  109. package/dist/components/Tag/styles.css.d.ts.map +1 -1
  110. package/dist/components/Tag/styles.css.js +43 -41
  111. package/dist/components/Tag/type.d.ts +1 -2
  112. package/dist/components/Tag/type.d.ts.map +1 -1
  113. package/dist/components/TagInput/index.js +2 -1
  114. package/dist/components/TagList/constant.d.ts +2 -2
  115. package/dist/components/TagList/constant.d.ts.map +1 -1
  116. package/dist/components/TagList/constant.js +2 -4
  117. package/dist/components/TagList/index.d.ts +6 -6
  118. package/dist/components/TagList/index.d.ts.map +1 -1
  119. package/dist/components/TagList/index.js +77 -115
  120. package/dist/components/TagList/styles.css.d.ts +3 -3
  121. package/dist/components/TagList/styles.css.d.ts.map +1 -1
  122. package/dist/components/TagList/styles.css.js +7 -8
  123. package/dist/components/Text/index.d.ts.map +1 -1
  124. package/dist/components/Text/index.js +4 -6
  125. package/dist/components/Text/style.css.d.ts +0 -47
  126. package/dist/components/Text/style.css.d.ts.map +1 -1
  127. package/dist/components/TextArea/index.js +1 -1
  128. package/dist/components/TimeInput/index.js +1 -1
  129. package/dist/components/Toaster/Toaster.js +1 -1
  130. package/dist/components/Toaster/components/Button.js +2 -2
  131. package/dist/components/Toaster/components/Link.js +3 -3
  132. package/dist/components/Tooltip/TooltipChildren.d.ts +10 -0
  133. package/dist/components/Tooltip/TooltipChildren.d.ts.map +1 -0
  134. package/dist/components/Tooltip/TooltipChildren.js +71 -0
  135. package/dist/components/Tooltip/TooltipElement.d.ts +8 -0
  136. package/dist/components/Tooltip/TooltipElement.d.ts.map +1 -0
  137. package/dist/components/Tooltip/TooltipElement.js +39 -0
  138. package/dist/components/Tooltip/index.d.ts +92 -34
  139. package/dist/components/Tooltip/index.d.ts.map +1 -1
  140. package/dist/components/Tooltip/index.js +51 -29
  141. package/dist/components/Tooltip/styles.css.d.ts +17 -0
  142. package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
  143. package/dist/components/Tooltip/styles.css.js +23 -1
  144. package/dist/components/Tooltip/types.d.ts +7 -0
  145. package/dist/components/Tooltip/types.d.ts.map +1 -0
  146. package/dist/components/Tooltip/useTooltip.d.ts +25 -0
  147. package/dist/components/Tooltip/useTooltip.d.ts.map +1 -0
  148. package/dist/components/Tooltip/useTooltip.js +75 -0
  149. package/dist/components/TreeMapChart/index.js +1 -1
  150. package/dist/components/VisuallyHidden/index.js +2 -2
  151. package/dist/composition.js +3 -3
  152. package/dist/compositions/EstimateCost/Components/Item.js +1 -1
  153. package/dist/compositions/EstimateCost/Components/LineThrough.js +2 -2
  154. package/dist/compositions/EstimateCost/Components/Unit.js +1 -1
  155. package/dist/compositions/EstimateCost/EstimateCostProvider.js +1 -1
  156. package/dist/compositions/EstimateCost/Image.js +1 -1
  157. package/dist/compositions/Filters/filterTypes/FilterSlider.js +1 -1
  158. package/dist/compositions/Filters/filterTypes/FilterText.d.ts.map +1 -1
  159. package/dist/compositions/Filters/filterTypes/FilterText.js +1 -0
  160. package/dist/compositions/Filters/parts/AbstractFilter.js +1 -1
  161. package/dist/compositions/Filters/parts/FiltersDrawer.d.ts +1 -0
  162. package/dist/compositions/Filters/parts/FiltersDrawer.d.ts.map +1 -1
  163. package/dist/compositions/Filters/parts/FiltersDrawer.js +15 -4
  164. package/dist/compositions/Filters/parts/FiltersMainRow.js +1 -0
  165. package/dist/compositions/Filters/parts/helpers.d.ts.map +1 -1
  166. package/dist/compositions/Filters/parts/helpers.js +3 -1
  167. package/dist/compositions/Filters/parts/reducer.js +1 -1
  168. package/dist/compositions/Filters/parts/useFilters.js +1 -1
  169. package/dist/compositions/Filters/types.d.ts +1 -0
  170. package/dist/compositions/Filters/types.d.ts.map +1 -1
  171. package/dist/compositions/InfoTable/components/Row.js +1 -1
  172. package/dist/compositions/InfoTable/styles.css.d.ts.map +1 -1
  173. package/dist/compositions/InfoTable/styles.css.js +30 -30
  174. package/dist/compositions/Navigation/NavigationProvider.js +1 -1
  175. package/dist/compositions/Navigation/components/items.css.d.ts.map +1 -1
  176. package/dist/compositions/Navigation/components/styles.css.d.ts.map +1 -1
  177. package/dist/compositions/OfferList/components/Row.js +4 -2
  178. package/dist/compositions/OptionSelector/styles.css.js +30 -30
  179. package/dist/compositions/OrderSummary/helpers.js +1 -1
  180. package/dist/compositions/RichTextInput/index.js +1 -1
  181. package/dist/hooks/useBreakpoint.d.ts +15 -0
  182. package/dist/hooks/useBreakpoint.d.ts.map +1 -0
  183. package/dist/hooks/useBreakpoint.js +46 -0
  184. package/dist/hooks/useIsOverflowing.d.ts +7 -3
  185. package/dist/hooks/useIsOverflowing.d.ts.map +1 -1
  186. package/dist/hooks/useIsOverflowing.js +13 -10
  187. package/dist/index.js +13 -13
  188. package/dist/ui.css +1 -1
  189. package/package.json +5 -4
  190. package/dist/components/Pagination/PaginationButton.d.ts +0 -11
  191. package/dist/components/Pagination/PaginationButton.d.ts.map +0 -1
  192. package/dist/components/Pagination/PaginationButton.js +0 -34
@@ -1,10 +1,11 @@
1
1
  import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
2
2
 
3
3
  //#region src/compositions/Filters/parts/helpers.ts
4
- var isFilterConfigGroup, getKeysWithDifferentValues, isSameValues;
4
+ var isFilterConfigGroup, isEmpty, getKeysWithDifferentValues, isSameValues;
5
5
  function init_helpers() {
6
6
  return (init_helpers = __esmMin(() => {
7
7
  isFilterConfigGroup = (item) => item.type === "group";
8
+ isEmpty = (value) => value === void 0 || value === null || value === "";
8
9
  getKeysWithDifferentValues = (a, b) => {
9
10
  if (a === b) return [];
10
11
  if (!a || !b) return [];
@@ -17,6 +18,7 @@ function init_helpers() {
17
18
  if (!Object.hasOwn(a, keyB)) return true;
18
19
  const valueA = a[keyA];
19
20
  const valueB = b[keyA];
21
+ if (isEmpty(valueA) && isEmpty(valueB)) return false;
20
22
  if (valueA === valueB) return false;
21
23
  if (Array.isArray(valueA) && Array.isArray(valueB)) {
22
24
  if (valueA.length !== valueB.length) return true;
@@ -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.142.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
3
3
  import { init_helpers, isSameValues } from "./helpers.js";
4
4
 
5
5
  //#region src/compositions/Filters/parts/reducer.ts
@@ -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.142.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
3
3
  import { getKeysWithDifferentValues, init_helpers, isSameValues } from "./helpers.js";
4
4
  import { filtersReducer, init_reducer } from "./reducer.js";
5
5
  import { useEffect, useMemo, useReducer } from "react";
@@ -27,6 +27,7 @@ export type FilterConfigItemText = FilterConfigItemBase & {
27
27
  type: 'text';
28
28
  regexp?: RegExp;
29
29
  debounceDuration?: number;
30
+ clearable?: boolean;
30
31
  };
31
32
  export type FilterConfigItemSearch = FilterConfigItemBase & {
32
33
  type: 'search';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/compositions/Filters/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAElF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE/C,MAAM,MAAM,eAAe,CAAC,KAAK,IAAI;IACnC,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAChC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,GAAG;IACxD,IAAI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AAC,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;IACxB,gBAAgB,EAAE,QAAQ,GAAG,KAAK,CAAA;IAClC,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -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.142.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
4
4
  import { Row, init_Row as init_Row$1 } from "../../../components/Row/index.js";
5
5
  import { InfoTableContext, init_Context } from "../Context.js";
6
6
  import { infoTableStyle, init_styles_css, rowWidth } from "../styles.css.js";
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/compositions/InfoTable/styles.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,oBAAc,CAAA;AAkFnC,eAAO,MAAM,cAAc;;;;YAtDrB,KAAK;gBAAI,YAAY;;YACrB,KAAK;gBAAI,YAAY;;;;;;;;;CA6D1B,CAAA"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/compositions/InfoTable/styles.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,oBAAc,CAAA;AAwFnC,eAAO,MAAM,cAAc;;;;YA5DrB,KAAK;gBAAI,YAAY;;YACrB,KAAK;gBAAI,YAAY;;;;;;;;;CAmE1B,CAAA"}
@@ -1,22 +1,22 @@
1
1
  import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { init_variables_css_ts_vanilla } from "../../components/Stack/variables.css.ts.vanilla.js";
3
3
  import { init_styles_css_ts_vanilla } from "../../components/Stack/styles.css.ts.vanilla.js";
4
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$1 } from "../../components/Tag/styles.css.ts.vanilla.js";
5
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$2 } from "../../components/TagList/styles.css.ts.vanilla.js";
6
- import { init_style_css_ts_vanilla } from "../../components/Text/style.css.ts.vanilla.js";
7
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$3 } from "../../components/Popup/styles.css.ts.vanilla.js";
8
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$4 } from "../../components/Tooltip/styles.css.ts.vanilla.js";
9
4
  import { init_animationsVanillaExtract_css_ts_vanilla } from "../../utils/animations/animationsVanillaExtract.css.ts.vanilla.js";
10
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$5 } from "../../components/Loader/styles.css.ts.vanilla.js";
11
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$6 } from "../../components/Button/styles.css.ts.vanilla.js";
12
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$7 } from "../../components/Menu/styles.css.ts.vanilla.js";
13
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$8 } from "../../components/Label/styles.css.ts.vanilla.js";
14
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$9 } from "../../components/SearchInput/styles.css.ts.vanilla.js";
15
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$10 } from "../../components/TextInput/styles.css.ts.vanilla.js";
16
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$11 } from "../../components/Key/styles.css.ts.vanilla.js";
17
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$12 } from "../../components/Badge/styles.css.ts.vanilla.js";
18
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$13 } from "../../components/Expandable/styles.css.ts.vanilla.js";
19
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$14 } from "../../components/Drawer/styles.css.ts.vanilla.js";
5
+ import { init_style_css_ts_vanilla } from "../../components/Text/style.css.ts.vanilla.js";
6
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$1 } from "../../components/Tooltip/styles.css.ts.vanilla.js";
7
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$2 } from "../../components/Loader/styles.css.ts.vanilla.js";
8
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$3 } from "../../components/Button/styles.css.ts.vanilla.js";
9
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$4 } from "../../components/Menu/styles.css.ts.vanilla.js";
10
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$5 } from "../../components/Popup/styles.css.ts.vanilla.js";
11
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$6 } from "../../components/Label/styles.css.ts.vanilla.js";
12
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$7 } from "../../components/SearchInput/styles.css.ts.vanilla.js";
13
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$8 } from "../../components/TextInput/styles.css.ts.vanilla.js";
14
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$9 } from "../../components/Key/styles.css.ts.vanilla.js";
15
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$10 } from "../../components/Badge/styles.css.ts.vanilla.js";
16
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$11 } from "../../components/Expandable/styles.css.ts.vanilla.js";
17
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$12 } from "../../components/Drawer/styles.css.ts.vanilla.js";
18
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$13 } from "../../components/TagList/styles.css.ts.vanilla.js";
19
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$14 } from "../../components/Tag/styles.css.ts.vanilla.js";
20
20
  import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$15 } from "../../components/Separator/styles.css.ts.vanilla.js";
21
21
  import { init_variables_css_ts_vanilla as init_variables_css_ts_vanilla$1 } from "../../components/Row/variables.css.ts.vanilla.js";
22
22
  import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$16 } from "../../components/Row/styles.css.ts.vanilla.js";
@@ -93,14 +93,14 @@ function init_styles_css() {
93
93
  /* @__PURE__ */ init_styles_css_ts_vanilla$27();
94
94
  /* @__PURE__ */ init_styles_css_ts_vanilla$18();
95
95
  /* @__PURE__ */ init_styles_css_ts_vanilla$28();
96
- /* @__PURE__ */ init_styles_css_ts_vanilla$12();
96
+ /* @__PURE__ */ init_styles_css_ts_vanilla$10();
97
97
  /* @__PURE__ */ init_styles_css_ts_vanilla$29();
98
98
  /* @__PURE__ */ init_styles_css_ts_vanilla$30();
99
99
  /* @__PURE__ */ init_styles_css_ts_vanilla$31();
100
100
  /* @__PURE__ */ init_styles_css_ts_vanilla$32();
101
101
  /* @__PURE__ */ init_styles_css_ts_vanilla$33();
102
102
  /* @__PURE__ */ init_styles_css_ts_vanilla$34();
103
- /* @__PURE__ */ init_styles_css_ts_vanilla$6();
103
+ /* @__PURE__ */ init_styles_css_ts_vanilla$3();
104
104
  /* @__PURE__ */ init_styles_css_ts_vanilla$35();
105
105
  /* @__PURE__ */ init_styles_css_ts_vanilla$36();
106
106
  /* @__PURE__ */ init_styles_css_ts_vanilla$23();
@@ -111,19 +111,19 @@ function init_styles_css() {
111
111
  /* @__PURE__ */ init_styles_css_ts_vanilla$38();
112
112
  /* @__PURE__ */ init_styles_css_ts_vanilla$39();
113
113
  /* @__PURE__ */ init_styles_css_ts_vanilla$40();
114
- /* @__PURE__ */ init_styles_css_ts_vanilla$14();
114
+ /* @__PURE__ */ init_styles_css_ts_vanilla$12();
115
115
  /* @__PURE__ */ init_styles_css_ts_vanilla$41();
116
- /* @__PURE__ */ init_styles_css_ts_vanilla$13();
116
+ /* @__PURE__ */ init_styles_css_ts_vanilla$11();
117
117
  /* @__PURE__ */ init_styles_css_ts_vanilla$42();
118
118
  /* @__PURE__ */ init_styles_css_ts_vanilla$43();
119
119
  /* @__PURE__ */ init_styles_css_ts_vanilla$44();
120
- /* @__PURE__ */ init_styles_css_ts_vanilla$11();
120
+ /* @__PURE__ */ init_styles_css_ts_vanilla$9();
121
121
  /* @__PURE__ */ init_styles_css_ts_vanilla$45();
122
- /* @__PURE__ */ init_styles_css_ts_vanilla$8();
122
+ /* @__PURE__ */ init_styles_css_ts_vanilla$6();
123
123
  /* @__PURE__ */ init_styles_css_ts_vanilla$46();
124
124
  /* @__PURE__ */ init_styles_css_ts_vanilla$47();
125
- /* @__PURE__ */ init_styles_css_ts_vanilla$5();
126
- /* @__PURE__ */ init_styles_css_ts_vanilla$7();
125
+ /* @__PURE__ */ init_styles_css_ts_vanilla$2();
126
+ /* @__PURE__ */ init_styles_css_ts_vanilla$4();
127
127
  /* @__PURE__ */ init_styles_css_ts_vanilla$48();
128
128
  /* @__PURE__ */ init_styles_css_ts_vanilla$49();
129
129
  /* @__PURE__ */ init_styles_css_ts_vanilla$50();
@@ -133,10 +133,7 @@ function init_styles_css() {
133
133
  /* @__PURE__ */ init_styles_css_ts_vanilla$53();
134
134
  /* @__PURE__ */ init_styles_css_ts_vanilla$54();
135
135
  /* @__PURE__ */ init_styles_css_ts_vanilla$55();
136
- /* @__PURE__ */ init_styles_css_ts_vanilla$1();
137
- /* @__PURE__ */ init_styles_css_ts_vanilla$2();
138
- /* @__PURE__ */ init_style_css_ts_vanilla();
139
- /* @__PURE__ */ init_styles_css_ts_vanilla$3();
136
+ /* @__PURE__ */ init_styles_css_ts_vanilla$5();
140
137
  /* @__PURE__ */ init_styles_css_ts_vanilla$56();
141
138
  /* @__PURE__ */ init_styles_css_ts_vanilla$20();
142
139
  /* @__PURE__ */ init_styles_css_ts_vanilla$57();
@@ -144,12 +141,14 @@ function init_styles_css() {
144
141
  /* @__PURE__ */ init_styles_css_ts_vanilla$59();
145
142
  /* @__PURE__ */ init_variables_css_ts_vanilla$1();
146
143
  /* @__PURE__ */ init_styles_css_ts_vanilla$16();
147
- /* @__PURE__ */ init_styles_css_ts_vanilla$9();
144
+ /* @__PURE__ */ init_styles_css_ts_vanilla$7();
148
145
  /* @__PURE__ */ init_styles_css_ts_vanilla$60();
149
146
  /* @__PURE__ */ init_dropdown_css_ts_vanilla();
150
147
  /* @__PURE__ */ init_styles_css_ts_vanilla$21();
151
148
  /* @__PURE__ */ init_selectBar_css_ts_vanilla();
152
149
  /* @__PURE__ */ init_styles_css_ts_vanilla$22();
150
+ /* @__PURE__ */ init_styles_css_ts_vanilla$13();
151
+ /* @__PURE__ */ init_styles_css_ts_vanilla$14();
153
152
  /* @__PURE__ */ init_styles_css_ts_vanilla$15();
154
153
  /* @__PURE__ */ init_stylesVariants_css_ts_vanilla();
155
154
  /* @__PURE__ */ init_styles_css_ts_vanilla$19();
@@ -163,13 +162,14 @@ function init_styles_css() {
163
162
  /* @__PURE__ */ init_styles_css_ts_vanilla$66();
164
163
  /* @__PURE__ */ init_styles_css_ts_vanilla$67();
165
164
  /* @__PURE__ */ init_styles_css_ts_vanilla$68();
165
+ /* @__PURE__ */ init_style_css_ts_vanilla();
166
166
  /* @__PURE__ */ init_styles_css_ts_vanilla$69();
167
- /* @__PURE__ */ init_styles_css_ts_vanilla$10();
167
+ /* @__PURE__ */ init_styles_css_ts_vanilla$8();
168
168
  /* @__PURE__ */ init_styles_css_ts_vanilla$70();
169
169
  /* @__PURE__ */ init_styles_css_ts_vanilla$71();
170
170
  /* @__PURE__ */ init_styles_css_ts_vanilla$72();
171
171
  /* @__PURE__ */ init_styles_css_ts_vanilla$73();
172
- /* @__PURE__ */ init_styles_css_ts_vanilla$4();
172
+ /* @__PURE__ */ init_styles_css_ts_vanilla$1();
173
173
  /* @__PURE__ */ init_styles_css_ts_vanilla$74();
174
174
  /* @__PURE__ */ init_styles_css_ts_vanilla$75();
175
175
  /* @__PURE__ */ init_styles_css_ts_vanilla$76();
@@ -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.142.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
4
4
  import { ANIMATION_EASING, init_constants } from "./constants.js";
5
5
  import en_default, { init_en } from "./locales/en.js";
6
6
  import { init_variables_css, widthNavigationContainerDuration } from "./variables.css.js";
@@ -1 +1 @@
1
- {"version":3,"file":"items.css.d.ts","sourceRoot":"","sources":["../../../../src/compositions/Navigation/components/items.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,QAAwB,CAAA;AAEtD,eAAO,MAAM,YAAY,QAAkC,CAAA;AAE3D,eAAO,MAAM,UAAU,QAAyC,CAAA;AAEhE,eAAO,MAAM,aAAa,QAIxB,CAAA;AAWF,eAAO,MAAM,WAAW,uCAiBtB,CAAA;AAEF,eAAO,MAAM,QAAQ,QAEnB,CAAA;AAEF,eAAO,MAAM,cAAc,QAAY,CAAA;AAEvC,eAAO,MAAM,iBAAiB,QAS5B,CAAA;AAEF,eAAO,MAAM,gBAAgB,QAE3B,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;QA8DpB,IAAI;YACF,eAAe;;;;QAIjB,IAAI;YACF,eAAe;YACf,SAAS;gBACP,SAAS;oBACP,eAAe;;;;;;;;;;EAWzB,CAAA;AAEF,eAAO,MAAM,iBAAiB,QAAY,CAAA;AAC1C,eAAO,MAAM,iBAAiB,QAAY,CAAA;AAC1C,eAAO,MAAM,YAAY,QAAY,CAAA;AAErC,eAAO,MAAM,YAAY;;QAGnB,IAAI;;;QAGJ,IAAI;;;QAGJ,IAAI;;EAGR,CAAA;AAEF,eAAO,MAAM,YAAY,QASvB,CAAA;AACF,eAAO,MAAM,YAAY;;;;;;;;;;;;QA+BnB,IAAI;YACF,KAAK;;;;QAIP,IAAI;YACF,KAAK;;;EAIX,CAAA;AAEF,eAAO,MAAM,SAAS,QAapB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B,CAAA;AAEF,eAAO,MAAM,gBAAgB,QAE3B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/compositions/Navigation/components/styles.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;EAYpB,CAAA;AAEF,eAAO,MAAM,UAAU,QAAwC,CAAA;AAE/D,eAAO,MAAM,sBAAsB,QAsBjC,CAAA;AAEF,eAAO,MAAM,qBAAqB,QAEhC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;QAM1B,IAAI;YACF,UAAU;YACV,WAAW;;;EAIjB,CAAA;AAEF,eAAO,MAAM,SAAS,QAKpB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;EAYxB,CAAA"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/compositions/Navigation/components/styles.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;EAYpB,CAAA;AAEF,eAAO,MAAM,UAAU,QAAwC,CAAA;AAE/D,eAAO,MAAM,sBAAsB,QAsBjC,CAAA;AAEF,eAAO,MAAM,qBAAqB,QAEhC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;QAM1B,IAAI;YACF,UAAU;YACV,WAAW;;;EAIjB,CAAA;AAEF,eAAO,MAAM,SAAS,QASpB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;EAYxB,CAAA"}
@@ -32,8 +32,10 @@ function init_Row() {
32
32
  const [isHovered, setHovered] = useState(false);
33
33
  const childrenNumber = Children.count(children) + (selectable ? 1 : 0) + (expandable ? 1 : 0);
34
34
  const toggleRowExpand = useCallback(() => {
35
- if (!loading) if (expandedRowIds[id]) collapseRow(id);
36
- else expandRow(id);
35
+ if (!loading) {
36
+ if (expandedRowIds[id]) collapseRow(id);
37
+ else expandRow(id);
38
+ }
37
39
  }, [
38
40
  collapseRow,
39
41
  expandRow,
@@ -1,22 +1,22 @@
1
1
  import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { init_variables_css_ts_vanilla } from "../../components/Stack/variables.css.ts.vanilla.js";
3
3
  import { init_styles_css_ts_vanilla } from "../../components/Stack/styles.css.ts.vanilla.js";
4
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$1 } from "../../components/Tag/styles.css.ts.vanilla.js";
5
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$2 } from "../../components/TagList/styles.css.ts.vanilla.js";
6
- import { init_style_css_ts_vanilla } from "../../components/Text/style.css.ts.vanilla.js";
7
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$3 } from "../../components/Popup/styles.css.ts.vanilla.js";
8
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$4 } from "../../components/Tooltip/styles.css.ts.vanilla.js";
9
4
  import { init_animationsVanillaExtract_css_ts_vanilla } from "../../utils/animations/animationsVanillaExtract.css.ts.vanilla.js";
10
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$5 } from "../../components/Loader/styles.css.ts.vanilla.js";
11
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$6 } from "../../components/Button/styles.css.ts.vanilla.js";
12
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$7 } from "../../components/Menu/styles.css.ts.vanilla.js";
13
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$8 } from "../../components/Label/styles.css.ts.vanilla.js";
14
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$9 } from "../../components/SearchInput/styles.css.ts.vanilla.js";
15
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$10 } from "../../components/TextInput/styles.css.ts.vanilla.js";
16
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$11 } from "../../components/Key/styles.css.ts.vanilla.js";
17
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$12 } from "../../components/Badge/styles.css.ts.vanilla.js";
18
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$13 } from "../../components/Expandable/styles.css.ts.vanilla.js";
19
- import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$14 } from "../../components/Drawer/styles.css.ts.vanilla.js";
5
+ import { init_style_css_ts_vanilla } from "../../components/Text/style.css.ts.vanilla.js";
6
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$1 } from "../../components/Tooltip/styles.css.ts.vanilla.js";
7
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$2 } from "../../components/Loader/styles.css.ts.vanilla.js";
8
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$3 } from "../../components/Button/styles.css.ts.vanilla.js";
9
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$4 } from "../../components/Menu/styles.css.ts.vanilla.js";
10
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$5 } from "../../components/Popup/styles.css.ts.vanilla.js";
11
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$6 } from "../../components/Label/styles.css.ts.vanilla.js";
12
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$7 } from "../../components/SearchInput/styles.css.ts.vanilla.js";
13
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$8 } from "../../components/TextInput/styles.css.ts.vanilla.js";
14
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$9 } from "../../components/Key/styles.css.ts.vanilla.js";
15
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$10 } from "../../components/Badge/styles.css.ts.vanilla.js";
16
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$11 } from "../../components/Expandable/styles.css.ts.vanilla.js";
17
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$12 } from "../../components/Drawer/styles.css.ts.vanilla.js";
18
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$13 } from "../../components/TagList/styles.css.ts.vanilla.js";
19
+ import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$14 } from "../../components/Tag/styles.css.ts.vanilla.js";
20
20
  import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$15 } from "../../components/Separator/styles.css.ts.vanilla.js";
21
21
  import { init_variables_css_ts_vanilla as init_variables_css_ts_vanilla$1 } from "../../components/Row/variables.css.ts.vanilla.js";
22
22
  import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$16 } from "../../components/Row/styles.css.ts.vanilla.js";
@@ -93,14 +93,14 @@ function init_styles_css() {
93
93
  /* @__PURE__ */ init_styles_css_ts_vanilla$27();
94
94
  /* @__PURE__ */ init_styles_css_ts_vanilla$18();
95
95
  /* @__PURE__ */ init_styles_css_ts_vanilla$28();
96
- /* @__PURE__ */ init_styles_css_ts_vanilla$12();
96
+ /* @__PURE__ */ init_styles_css_ts_vanilla$10();
97
97
  /* @__PURE__ */ init_styles_css_ts_vanilla$29();
98
98
  /* @__PURE__ */ init_styles_css_ts_vanilla$30();
99
99
  /* @__PURE__ */ init_styles_css_ts_vanilla$31();
100
100
  /* @__PURE__ */ init_styles_css_ts_vanilla$32();
101
101
  /* @__PURE__ */ init_styles_css_ts_vanilla$33();
102
102
  /* @__PURE__ */ init_styles_css_ts_vanilla$34();
103
- /* @__PURE__ */ init_styles_css_ts_vanilla$6();
103
+ /* @__PURE__ */ init_styles_css_ts_vanilla$3();
104
104
  /* @__PURE__ */ init_styles_css_ts_vanilla$35();
105
105
  /* @__PURE__ */ init_styles_css_ts_vanilla$36();
106
106
  /* @__PURE__ */ init_styles_css_ts_vanilla$23();
@@ -111,19 +111,19 @@ function init_styles_css() {
111
111
  /* @__PURE__ */ init_styles_css_ts_vanilla$38();
112
112
  /* @__PURE__ */ init_styles_css_ts_vanilla$39();
113
113
  /* @__PURE__ */ init_styles_css_ts_vanilla$40();
114
- /* @__PURE__ */ init_styles_css_ts_vanilla$14();
114
+ /* @__PURE__ */ init_styles_css_ts_vanilla$12();
115
115
  /* @__PURE__ */ init_styles_css_ts_vanilla$41();
116
- /* @__PURE__ */ init_styles_css_ts_vanilla$13();
116
+ /* @__PURE__ */ init_styles_css_ts_vanilla$11();
117
117
  /* @__PURE__ */ init_styles_css_ts_vanilla$42();
118
118
  /* @__PURE__ */ init_styles_css_ts_vanilla$43();
119
119
  /* @__PURE__ */ init_styles_css_ts_vanilla$44();
120
- /* @__PURE__ */ init_styles_css_ts_vanilla$11();
120
+ /* @__PURE__ */ init_styles_css_ts_vanilla$9();
121
121
  /* @__PURE__ */ init_styles_css_ts_vanilla$45();
122
- /* @__PURE__ */ init_styles_css_ts_vanilla$8();
122
+ /* @__PURE__ */ init_styles_css_ts_vanilla$6();
123
123
  /* @__PURE__ */ init_styles_css_ts_vanilla$46();
124
124
  /* @__PURE__ */ init_styles_css_ts_vanilla$47();
125
- /* @__PURE__ */ init_styles_css_ts_vanilla$5();
126
- /* @__PURE__ */ init_styles_css_ts_vanilla$7();
125
+ /* @__PURE__ */ init_styles_css_ts_vanilla$2();
126
+ /* @__PURE__ */ init_styles_css_ts_vanilla$4();
127
127
  /* @__PURE__ */ init_styles_css_ts_vanilla$48();
128
128
  /* @__PURE__ */ init_styles_css_ts_vanilla$49();
129
129
  /* @__PURE__ */ init_styles_css_ts_vanilla$50();
@@ -133,10 +133,7 @@ function init_styles_css() {
133
133
  /* @__PURE__ */ init_styles_css_ts_vanilla$53();
134
134
  /* @__PURE__ */ init_styles_css_ts_vanilla$54();
135
135
  /* @__PURE__ */ init_styles_css_ts_vanilla$55();
136
- /* @__PURE__ */ init_styles_css_ts_vanilla$1();
137
- /* @__PURE__ */ init_styles_css_ts_vanilla$2();
138
- /* @__PURE__ */ init_style_css_ts_vanilla();
139
- /* @__PURE__ */ init_styles_css_ts_vanilla$3();
136
+ /* @__PURE__ */ init_styles_css_ts_vanilla$5();
140
137
  /* @__PURE__ */ init_styles_css_ts_vanilla$56();
141
138
  /* @__PURE__ */ init_styles_css_ts_vanilla$20();
142
139
  /* @__PURE__ */ init_styles_css_ts_vanilla$57();
@@ -144,12 +141,14 @@ function init_styles_css() {
144
141
  /* @__PURE__ */ init_styles_css_ts_vanilla$59();
145
142
  /* @__PURE__ */ init_variables_css_ts_vanilla$1();
146
143
  /* @__PURE__ */ init_styles_css_ts_vanilla$16();
147
- /* @__PURE__ */ init_styles_css_ts_vanilla$9();
144
+ /* @__PURE__ */ init_styles_css_ts_vanilla$7();
148
145
  /* @__PURE__ */ init_styles_css_ts_vanilla$60();
149
146
  /* @__PURE__ */ init_dropdown_css_ts_vanilla();
150
147
  /* @__PURE__ */ init_styles_css_ts_vanilla$21();
151
148
  /* @__PURE__ */ init_selectBar_css_ts_vanilla();
152
149
  /* @__PURE__ */ init_styles_css_ts_vanilla$22();
150
+ /* @__PURE__ */ init_styles_css_ts_vanilla$13();
151
+ /* @__PURE__ */ init_styles_css_ts_vanilla$14();
153
152
  /* @__PURE__ */ init_styles_css_ts_vanilla$15();
154
153
  /* @__PURE__ */ init_stylesVariants_css_ts_vanilla();
155
154
  /* @__PURE__ */ init_styles_css_ts_vanilla$19();
@@ -163,13 +162,14 @@ function init_styles_css() {
163
162
  /* @__PURE__ */ init_styles_css_ts_vanilla$66();
164
163
  /* @__PURE__ */ init_styles_css_ts_vanilla$67();
165
164
  /* @__PURE__ */ init_styles_css_ts_vanilla$68();
165
+ /* @__PURE__ */ init_style_css_ts_vanilla();
166
166
  /* @__PURE__ */ init_styles_css_ts_vanilla$69();
167
- /* @__PURE__ */ init_styles_css_ts_vanilla$10();
167
+ /* @__PURE__ */ init_styles_css_ts_vanilla$8();
168
168
  /* @__PURE__ */ init_styles_css_ts_vanilla$70();
169
169
  /* @__PURE__ */ init_styles_css_ts_vanilla$71();
170
170
  /* @__PURE__ */ init_styles_css_ts_vanilla$72();
171
171
  /* @__PURE__ */ init_styles_css_ts_vanilla$73();
172
- /* @__PURE__ */ init_styles_css_ts_vanilla$4();
172
+ /* @__PURE__ */ init_styles_css_ts_vanilla$1();
173
173
  /* @__PURE__ */ init_styles_css_ts_vanilla$74();
174
174
  /* @__PURE__ */ init_styles_css_ts_vanilla$75();
175
175
  /* @__PURE__ */ init_styles_css_ts_vanilla$76();
@@ -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.142.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
3
3
  import { init_constants, multiplier } from "./constants.js";
4
4
  import { OrderSummaryContext, init_Provider } from "./Provider.js";
5
5
  import { useContext } from "react";
@@ -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.142.0/helpers/esm/objectSpread2.js";
3
+ import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
4
4
  import { Stack, init_Stack } from "../../components/Stack/index.js";
5
5
  import { hasHelperText, init_hasHelperText } from "../../helpers/hasHelperText.js";
6
6
  import { Description, init_Description } from "../../components/Description/index.js";
@@ -0,0 +1,15 @@
1
+ import type { RefObject } from 'react';
2
+ type BreakpointState<T extends string> = Record<T, boolean>;
3
+ /**
4
+ * Returns whether each breakpoint is active for the given element's width.
5
+ *
6
+ * The `breakpoints` argument maps a breakpoint name to the width (in px) at
7
+ * which its range starts, e.g. `{ small: 0, medium: 320, large: 768 }`. A
8
+ * breakpoint is active while the element's width is at least its start value
9
+ * and below the next breakpoint's start value. The last breakpoint has no
10
+ * upper bound. The returned object has the breakpoint names as properties,
11
+ * each set to `true` when that breakpoint is active.
12
+ */
13
+ export declare const useBreakpoints: <T extends string>(ref: RefObject<HTMLElement | null>, breakpoints: Record<T, number>) => BreakpointState<T>;
14
+ export {};
15
+ //# sourceMappingURL=useBreakpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,KAAK,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAA;AAc3D;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,OACxC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,eACrB,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAC7B,eAAe,CAAC,CAAC,CA2BnB,CAAA"}
@@ -0,0 +1,46 @@
1
+ import { __esmMin, __name } from "../_virtual/_rolldown/runtime.js";
2
+ import { useEffect, useRef, useState } from "react";
3
+
4
+ //#region src/hooks/useBreakpoint.ts
5
+ var getActive, useBreakpoints;
6
+ function init_useBreakpoint() {
7
+ return (init_useBreakpoint = __esmMin(() => {
8
+ getActive = (width, breakpoints) => {
9
+ const sorted = Object.entries(breakpoints).sort((a, b) => a[1] - b[1]);
10
+ const active = {};
11
+ sorted.forEach(([name, start], index) => {
12
+ var _sorted;
13
+ const next = (_sorted = sorted[index + 1]) === null || _sorted === void 0 ? void 0 : _sorted[1];
14
+ active[name] = width >= start && (next === void 0 || width < next);
15
+ });
16
+ return active;
17
+ };
18
+ useBreakpoints = (ref, breakpoints) => {
19
+ const breakpointsRef = useRef(breakpoints);
20
+ const [current, setCurrent] = useState(() => {
21
+ var _ref$current$getBound;
22
+ var _ref$current;
23
+ var _ref$current$getBound2;
24
+ const width = (_ref$current$getBound = (_ref$current = ref.current) === null || _ref$current === void 0 || (_ref$current$getBound2 = _ref$current.getBoundingClientRect) === null || _ref$current$getBound2 === void 0 || (_ref$current$getBound2 = _ref$current$getBound2.call(_ref$current)) === null || _ref$current$getBound2 === void 0 ? void 0 : _ref$current$getBound2.width) !== null && _ref$current$getBound !== void 0 ? _ref$current$getBound : 0;
25
+ return getActive(width, breakpoints);
26
+ });
27
+ useEffect(() => {
28
+ const element = ref.current;
29
+ if (!element) return;
30
+ const update = (width) => setCurrent(getActive(width, breakpointsRef.current));
31
+ if (typeof ResizeObserver === "undefined") {
32
+ update(element.getBoundingClientRect().width);
33
+ return;
34
+ }
35
+ const observer = new ResizeObserver(([entry]) => update(entry.contentRect.width));
36
+ observer.observe(element);
37
+ return () => observer.disconnect();
38
+ }, [ref]);
39
+ return current;
40
+ };
41
+ }))();
42
+ }
43
+
44
+ //#endregion
45
+ init_useBreakpoint();
46
+ export { init_useBreakpoint, useBreakpoints };
@@ -1,6 +1,10 @@
1
- import type { RefObject } from 'react';
1
+ type UseIsOverflowingOptions = {
2
+ callback?: (hasOverflow: boolean) => void;
3
+ enabled?: boolean;
4
+ };
2
5
  /**
3
- * This hook checks if the element has overflow based on the offsetWidth and scrollWidth of the element.
6
+ * Check if the element has overflow based on the clientWidth and scrollWidth of the element.
4
7
  */
5
- export declare const useIsOverflowing: (ref: RefObject<HTMLElement | HTMLDivElement | undefined | null>, callback?: (hasOverflow: boolean) => void) => boolean;
8
+ export declare const useIsOverflowing: ({ callback, enabled }?: UseIsOverflowingOptions) => readonly [import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>, boolean];
9
+ export {};
6
10
  //# sourceMappingURL=useIsOverflowing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIsOverflowing.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsOverflowing.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;GAEG;AACH,eAAO,MAAM,gBAAgB,QACtB,SAAS,CAAC,WAAW,GAAG,cAAc,GAAG,SAAS,GAAG,IAAI,CAAC,aACpD,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,YAkC1C,CAAA"}
1
+ {"version":3,"file":"useIsOverflowing.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsOverflowing.ts"],"names":[],"mappings":"AAEA,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAA;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,2BAAkC,uBAAuB,qGA2BrF,CAAA"}
@@ -5,24 +5,27 @@ import { useEffect, useState } from "react";
5
5
  var useIsOverflowing;
6
6
  function init_useIsOverflowing() {
7
7
  return (init_useIsOverflowing = __esmMin(() => {
8
- useIsOverflowing = (ref, callback) => {
8
+ useIsOverflowing = ({ callback, enabled = true } = {}) => {
9
+ const [element, setElement] = useState(null);
9
10
  const [isOverflowing, setIsOverflowing] = useState(false);
10
11
  useEffect(() => {
12
+ if (!enabled || !element || typeof ResizeObserver === "undefined") return;
11
13
  const handleResize = () => {
12
- if (!ref.current) return;
13
- const element = ref.current;
14
- const hasOverflow = element.clientWidth < element.scrollWidth;
14
+ const hasOverflow = element.scrollWidth > element.clientWidth;
15
15
  setIsOverflowing(hasOverflow);
16
16
  if (callback) callback(hasOverflow);
17
17
  };
18
- const timeout = setTimeout(() => handleResize(), 0);
19
- window.addEventListener("resize", handleResize);
18
+ const resizeObserver = new ResizeObserver(handleResize);
19
+ resizeObserver.observe(element);
20
20
  return () => {
21
- window.removeEventListener("resize", handleResize);
22
- clearTimeout(timeout);
21
+ resizeObserver.disconnect();
23
22
  };
24
- }, [ref, callback]);
25
- return isOverflowing;
23
+ }, [
24
+ element,
25
+ callback,
26
+ enabled
27
+ ]);
28
+ return [setElement, isOverflowing];
26
29
  };
27
30
  }))();
28
31
  }
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { __esmMin } from "./_virtual/_rolldown/runtime.js";
2
2
  import { init_styles_css, stackStyle } from "./components/Stack/styles.css.js";
3
3
  import { Stack, init_Stack } from "./components/Stack/index.js";
4
- import { init_styles_css as init_styles_css$1, popupStyle } from "./components/Popup/styles.css.js";
5
- import { Popup, init_Popup } from "./components/Popup/index.js";
6
- import { init_styles_css as init_styles_css$2, tooltipStyle } from "./components/Tooltip/styles.css.js";
4
+ import { init_styles_css as init_styles_css$1, tooltipStyle } from "./components/Tooltip/styles.css.js";
7
5
  import { Tooltip, init_Tooltip } from "./components/Tooltip/index.js";
8
6
  import { init_style_css, textStyle } from "./components/Text/style.css.js";
9
7
  import { Text, init_Text } from "./components/Text/index.js";
10
- import { init_styles_css as init_styles_css$3, loaderStyle } from "./components/Loader/styles.css.js";
8
+ import { init_styles_css as init_styles_css$2, loaderStyle } from "./components/Loader/styles.css.js";
11
9
  import { Loader, init_Loader } from "./components/Loader/index.js";
12
- import { buttonStyle, init_styles_css as init_styles_css$4 } from "./components/Button/styles.css.js";
10
+ import { buttonStyle, init_styles_css as init_styles_css$3 } from "./components/Button/styles.css.js";
13
11
  import { Button, init_Button } from "./components/Button/index.js";
14
- import { init_styles_css as init_styles_css$5, menuStyle } from "./components/Menu/styles.css.js";
12
+ import { init_styles_css as init_styles_css$4, menuStyle } from "./components/Menu/styles.css.js";
13
+ import { init_styles_css as init_styles_css$5, popupStyle } from "./components/Popup/styles.css.js";
14
+ import { Popup, init_Popup } from "./components/Popup/index.js";
15
15
  import { init_styles_css as init_styles_css$6, labelStyle } from "./components/Label/styles.css.js";
16
16
  import { Label, init_Label } from "./components/Label/index.js";
17
17
  import { init_styles_css as init_styles_css$7, textInputStyle } from "./components/TextInput/styles.css.js";
@@ -96,8 +96,6 @@ import { init_styles_css as init_styles_css$73, verificationCodeStyle } from "./
96
96
  import { Tag, init_Tag } from "./components/Tag/index.js";
97
97
  import { SelectInput, init_SelectInput } from "./components/SelectInput/index.js";
98
98
  import { UnitInput, init_UnitInput } from "./components/UnitInput/index.js";
99
- import { Modal, init_Modal } from "./components/Modal/index.js";
100
- import { Drawer, init_Drawer } from "./components/Drawer/index.js";
101
99
  import { ActionBar, init_ActionBar } from "./components/ActionBar/index.js";
102
100
  import { Avatar, init_Avatar } from "./components/Avatar/index.js";
103
101
  import { Link, init_Link } from "./components/Link/index.js";
@@ -113,7 +111,9 @@ import { CheckboxGroup, init_CheckboxGroup } from "./components/CheckboxGroup/in
113
111
  import { Chip, init_Chip } from "./components/Chip/index.js";
114
112
  import { CopyButton, init_CopyButton } from "./components/CopyButton/index.js";
115
113
  import { DateInput, init_DateInput } from "./components/DateInput/index.js";
114
+ import { Modal, init_Modal } from "./components/Modal/index.js";
116
115
  import { Dialog, init_Dialog } from "./components/Dialog/index.js";
116
+ import { Drawer, init_Drawer } from "./components/Drawer/index.js";
117
117
  import { EmptyState, init_EmptyState } from "./components/EmptyState/index.js";
118
118
  import { ExpandableCard, init_ExpandableCard } from "./components/ExpandableCard/index.js";
119
119
  import { FileInput, init_FileInput } from "./components/FileInput/index.js";
@@ -259,7 +259,7 @@ function init_src() {
259
259
  init_styles_css$23();
260
260
  init_styles_css$24();
261
261
  init_styles_css$25();
262
- init_styles_css$4();
262
+ init_styles_css$3();
263
263
  init_styles_css$26();
264
264
  init_styles_css$27();
265
265
  init_styles_css$18();
@@ -279,8 +279,8 @@ function init_src() {
279
279
  init_styles_css$38();
280
280
  init_styles_css$39();
281
281
  init_styles_css$40();
282
- init_styles_css$3();
283
- init_styles_css$5();
282
+ init_styles_css$2();
283
+ init_styles_css$4();
284
284
  init_styles_css$41();
285
285
  init_styles_css$42();
286
286
  init_styles_css$43();
@@ -290,7 +290,7 @@ function init_src() {
290
290
  init_styles_css$46();
291
291
  init_styles_css$47();
292
292
  init_styles_css$48();
293
- init_styles_css$1();
293
+ init_styles_css$5();
294
294
  init_styles_css$49();
295
295
  init_styles_css$50();
296
296
  init_styles_css$51();
@@ -321,7 +321,7 @@ function init_src() {
321
321
  init_styles_css$68();
322
322
  init_styles_css$69();
323
323
  init_styles_css$70();
324
- init_styles_css$2();
324
+ init_styles_css$1();
325
325
  init_styles_css$71();
326
326
  init_styles_css$72();
327
327
  init_styles_css$73();