welcome-ui 8.1.0 → 8.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/{AXB53BZF-XKOjjeWO.mjs → AXB53BZF-BOEe01VW.mjs} +3 -3
  2. package/dist/Accordion.mjs +23 -30
  3. package/dist/Alert.mjs +70 -76
  4. package/dist/AspectRatio.mjs +9 -9
  5. package/dist/Avatar.mjs +47 -48
  6. package/dist/{BYC7LY2E-CWSI38FM.mjs → BYC7LY2E-B1IDizRs.mjs} +127 -128
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +168 -172
  10. package/dist/Button.mjs +67 -72
  11. package/dist/ButtonGroup.mjs +12 -13
  12. package/dist/Card.mjs +14 -14
  13. package/dist/Checkbox.mjs +2 -2
  14. package/dist/ClearButton.mjs +15 -15
  15. package/dist/CloseButton.mjs +9 -9
  16. package/dist/{CustomPopper-B2Cqfph4.mjs → CustomInput-IA_gVoXd.mjs} +1445 -1466
  17. package/dist/DatePicker.mjs +80 -81
  18. package/dist/DateTimePicker.mjs +61 -66
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +181 -188
  21. package/dist/DropdownMenu.mjs +411 -414
  22. package/dist/Field.mjs +91 -103
  23. package/dist/FieldGroup.mjs +9 -12
  24. package/dist/FileDrop.mjs +556 -587
  25. package/dist/FileUpload.mjs +71 -92
  26. package/dist/Files.mjs +46 -46
  27. package/dist/Flex.mjs +13 -13
  28. package/dist/Grid.mjs +29 -29
  29. package/dist/Hint.mjs +12 -12
  30. package/dist/{ITI7HKP4-C89kOQb8.mjs → ITI7HKP4-EL9KXYBU.mjs} +67 -68
  31. package/dist/Icon.mjs +25 -25
  32. package/dist/Icons.mjs +988 -988
  33. package/dist/IconsFont.mjs +22 -22
  34. package/dist/InputText.mjs +58 -66
  35. package/dist/{JC64G2H7-afsomHuH.mjs → JC64G2H7-BzklVBKM.mjs} +46 -47
  36. package/dist/{KUU7WJ55-CzsjuIMv.mjs → KUU7WJ55-CS4NemC6.mjs} +1 -1
  37. package/dist/LVA2YJMS-DDEmK0pp.mjs +1482 -0
  38. package/dist/Label.mjs +35 -37
  39. package/dist/Link.mjs +28 -32
  40. package/dist/Loader.mjs +16 -20
  41. package/dist/Logo.mjs +42 -55
  42. package/dist/{MTZPJQMC-TybFZCho.mjs → MTZPJQMC-CMjAwC0N.mjs} +2 -2
  43. package/dist/Modal.mjs +253 -276
  44. package/dist/{NLEBE274-oSxMftGy.mjs → NLEBE274-QOMV1l7e.mjs} +9 -9
  45. package/dist/{P2CTZE2T-DOT1mNnX.mjs → P2CTZE2T-Cl2w7OLV.mjs} +48 -49
  46. package/dist/{P4IRICAX-CWSZLTGz.mjs → P4IRICAX-DezbJY4s.mjs} +3 -3
  47. package/dist/Pagination.mjs +104 -104
  48. package/dist/PasswordInput.mjs +34 -35
  49. package/dist/Picker.mjs +33 -35
  50. package/dist/Popover.mjs +99 -106
  51. package/dist/{QYJ6MIDR-DJ-vUdAM.mjs → QYJ6MIDR-Bb0O5xUM.mjs} +30 -31
  52. package/dist/Radio.mjs +48 -54
  53. package/dist/RadioGroup.mjs +47 -47
  54. package/dist/RadioTab.mjs +35 -37
  55. package/dist/{SYRFVSLH-B6m278Vb.mjs → SYRFVSLH-jn06-eLy.mjs} +10 -11
  56. package/dist/Search.mjs +159 -175
  57. package/dist/Select.mjs +338 -373
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +336 -359
  60. package/dist/Stack.mjs +24 -22
  61. package/dist/Swiper.mjs +224 -231
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +200 -205
  64. package/dist/Tag.mjs +53 -55
  65. package/dist/Text.mjs +47 -49
  66. package/dist/Textarea.mjs +40 -40
  67. package/dist/TimePicker.mjs +57 -58
  68. package/dist/Toast.mjs +128 -135
  69. package/dist/Toggle.mjs +24 -27
  70. package/dist/Tooltip.mjs +99 -103
  71. package/dist/UniversalLink.mjs +15 -15
  72. package/dist/{VEVQD5MH-0w9Y7Ytc.mjs → VEVQD5MH-CuegL0m0.mjs} +3 -3
  73. package/dist/{VGCJ63VH-C0UPBY-5.mjs → VGCJ63VH-BMzoZtCu.mjs} +38 -39
  74. package/dist/VariantIcon.mjs +22 -14
  75. package/dist/WelcomeLoader.mjs +121 -122
  76. package/dist/WuiProvider.mjs +58 -69
  77. package/dist/{X5NMLKT6-BJw3xE-K.mjs → X5NMLKT6-CvSCix-_.mjs} +2 -2
  78. package/dist/{YV4JVR4I-DPC8mMuG.mjs → YV4JVR4I-Bh7B7TET.mjs} +57 -57
  79. package/dist/{field-styles-BVlRlvuu.mjs → field-styles-CfVLcVQp.mjs} +1 -1
  80. package/dist/{hex-to-rgba-DU_XzKIK.mjs → hex-to-rgba-BIDK-3ab.mjs} +2 -2
  81. package/dist/hide-focus-rings-root-BNyva1yb.mjs +14 -0
  82. package/dist/{index-5HBq1O6Z.mjs → index-5PUh49rV.mjs} +73 -74
  83. package/dist/index-B0gDDiFm.mjs +66 -0
  84. package/dist/index-B22SHR8h.mjs +26 -0
  85. package/dist/{index-DAZ1SYdj.mjs → index-BNGGwOCo.mjs} +7 -7
  86. package/dist/{index-SQQQ4dEE.mjs → index-BQtDgQBH.mjs} +8 -8
  87. package/dist/index-BhcLigYU.mjs +77 -0
  88. package/dist/{index-QaLwIvZS.mjs → index-Bkl89twW.mjs} +8 -8
  89. package/dist/{index-BaLGEKs7.mjs → index-C7zM96J_.mjs} +8 -8
  90. package/dist/index-CQD9fgf_.mjs +11 -0
  91. package/dist/index-CmsWSKKs.mjs +11 -0
  92. package/dist/{index-DvzWKxKE.mjs → index-DqBUFsqP.mjs} +7 -7
  93. package/dist/index-u1oHKa7X.mjs +16 -0
  94. package/dist/index-wr_b5GSV.mjs +36 -0
  95. package/dist/radio-group-RFyDp0KD.mjs +51 -0
  96. package/dist/theme.mjs +801 -801
  97. package/dist/throttle-BDBzFeFj.mjs +13 -0
  98. package/dist/types/components/Accordion/index.d.ts +1 -1
  99. package/dist/types/components/Accordion/styles.d.ts +2 -2
  100. package/dist/types/components/Accordion/theme.d.ts +1 -1
  101. package/dist/types/components/Alert/index.d.ts +2 -2
  102. package/dist/types/components/Alert/styles.d.ts +9 -9
  103. package/dist/types/components/Alert/theme.d.ts +3 -3
  104. package/dist/types/components/AspectRatio/styles.d.ts +2 -3
  105. package/dist/types/components/Avatar/index.d.ts +3 -2
  106. package/dist/types/components/Avatar/styles.d.ts +8 -8
  107. package/dist/types/components/Avatar/theme.d.ts +3 -3
  108. package/dist/types/components/Avatar/utils.d.ts +1 -1
  109. package/dist/types/components/Badge/index.d.ts +2 -2
  110. package/dist/types/components/Badge/styles.d.ts +5 -5
  111. package/dist/types/components/Badge/theme.d.ts +1 -1
  112. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  113. package/dist/types/components/Breadcrumb/index.d.ts +2 -2
  114. package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
  115. package/dist/types/components/Button/index.d.ts +5 -4
  116. package/dist/types/components/Button/styles.d.ts +1 -1
  117. package/dist/types/components/Button/theme.d.ts +7 -7
  118. package/dist/types/components/ButtonGroup/index.d.ts +4 -4
  119. package/dist/types/components/Card/Cover.styles.d.ts +4 -4
  120. package/dist/types/components/Card/index.d.ts +3 -2
  121. package/dist/types/components/Card/theme.d.ts +1 -1
  122. package/dist/types/components/Checkbox/index.d.ts +2 -2
  123. package/dist/types/components/Checkbox/styles.d.ts +1 -1
  124. package/dist/types/components/Checkbox/theme.d.ts +1 -1
  125. package/dist/types/components/ClearButton/index.d.ts +6 -5
  126. package/dist/types/components/ClearButton/styles.d.ts +4 -4
  127. package/dist/types/components/CloseButton/styles.d.ts +4 -4
  128. package/dist/types/components/DatePicker/index.d.ts +3 -3
  129. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  130. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  131. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  132. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  133. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  134. package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
  135. package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
  136. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  137. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  138. package/dist/types/components/Drawer/index.d.ts +12 -12
  139. package/dist/types/components/Drawer/styles.d.ts +5 -5
  140. package/dist/types/components/Drawer/theme.d.ts +2 -2
  141. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  142. package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
  143. package/dist/types/components/Field/index.d.ts +8 -8
  144. package/dist/types/components/Field/styles.d.ts +1 -1
  145. package/dist/types/components/Field/utils.d.ts +1 -1
  146. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  147. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  148. package/dist/types/components/FileDrop/index.d.ts +20 -20
  149. package/dist/types/components/FileDrop/theme.d.ts +1 -1
  150. package/dist/types/components/FileUpload/index.d.ts +13 -13
  151. package/dist/types/components/Files/index.d.ts +5 -5
  152. package/dist/types/components/Files/types.d.ts +1 -1
  153. package/dist/types/components/Hint/index.d.ts +2 -1
  154. package/dist/types/components/Hint/theme.d.ts +1 -1
  155. package/dist/types/components/Icon/index.d.ts +3 -3
  156. package/dist/types/components/Icon/styles.d.ts +3 -3
  157. package/dist/types/components/Icon/theme.d.ts +3 -3
  158. package/dist/types/components/Icons/Sun/content.json.d.ts +1 -2
  159. package/dist/types/components/Icons/index.d.ts +2 -2
  160. package/dist/types/components/IconsFont/index.d.ts +3 -2
  161. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  162. package/dist/types/components/InputText/index.d.ts +1 -1
  163. package/dist/types/components/InputText/styles.d.ts +1 -1
  164. package/dist/types/components/Label/index.d.ts +3 -2
  165. package/dist/types/components/Label/theme.d.ts +1 -1
  166. package/dist/types/components/Link/index.d.ts +5 -5
  167. package/dist/types/components/Link/styles.d.ts +4 -4
  168. package/dist/types/components/Link/theme.d.ts +1 -1
  169. package/dist/types/components/Loader/index.d.ts +1 -1
  170. package/dist/types/components/Loader/styles.d.ts +4 -4
  171. package/dist/types/components/Loader/theme.d.ts +4 -4
  172. package/dist/types/components/Logo/Solutions.d.ts +2 -1
  173. package/dist/types/components/Logo/Symbol.d.ts +2 -1
  174. package/dist/types/components/Logo/Wui.d.ts +2 -1
  175. package/dist/types/components/Logo/index.d.ts +5 -5
  176. package/dist/types/components/Modal/Assets/Backdrop.d.ts +6 -5
  177. package/dist/types/components/Modal/Assets/Iframe.d.ts +2 -1
  178. package/dist/types/components/Modal/Assets/index.d.ts +9 -9
  179. package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
  180. package/dist/types/components/Modal/Close.d.ts +4 -3
  181. package/dist/types/components/Modal/Content.d.ts +5 -3
  182. package/dist/types/components/Modal/Footer.d.ts +1 -1
  183. package/dist/types/components/Modal/Header.d.ts +2 -2
  184. package/dist/types/components/Modal/index.d.ts +17 -17
  185. package/dist/types/components/Modal/styles.d.ts +7 -7
  186. package/dist/types/components/Modal/theme.d.ts +2 -2
  187. package/dist/types/components/Pagination/index.d.ts +2 -2
  188. package/dist/types/components/Pagination/theme.d.ts +1 -1
  189. package/dist/types/components/Pagination/utils.d.ts +1 -1
  190. package/dist/types/components/Picker/index.d.ts +1 -1
  191. package/dist/types/components/Picker/styles.d.ts +1 -1
  192. package/dist/types/components/Popover/Arrow.d.ts +2 -1
  193. package/dist/types/components/Popover/Content.d.ts +3 -2
  194. package/dist/types/components/Popover/Popover.d.ts +5 -4
  195. package/dist/types/components/Popover/PopoverHover.d.ts +4 -3
  196. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  197. package/dist/types/components/Popover/styles.d.ts +4 -4
  198. package/dist/types/components/Popover/theme.d.ts +1 -1
  199. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  200. package/dist/types/components/Radio/index.d.ts +3 -3
  201. package/dist/types/components/Radio/styles.d.ts +5 -5
  202. package/dist/types/components/Radio/theme.d.ts +1 -1
  203. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  204. package/dist/types/components/RadioTab/index.d.ts +3 -3
  205. package/dist/types/components/RadioTab/styles.d.ts +9 -3
  206. package/dist/types/components/RadioTab/theme.d.ts +1 -1
  207. package/dist/types/components/Search/index.d.ts +5 -5
  208. package/dist/types/components/Select/index.d.ts +11 -11
  209. package/dist/types/components/Select/styles.d.ts +6 -6
  210. package/dist/types/components/Select/utils.d.ts +7 -11
  211. package/dist/types/components/Shape/index.d.ts +1 -1
  212. package/dist/types/components/Shape/styles.d.ts +3 -3
  213. package/dist/types/components/Slider/Range.d.ts +3 -3
  214. package/dist/types/components/Slider/index.d.ts +2 -2
  215. package/dist/types/components/Slider/styles.d.ts +16 -16
  216. package/dist/types/components/Slider/theme.d.ts +1 -1
  217. package/dist/types/components/Stack/index.d.ts +1 -1
  218. package/dist/types/components/Swiper/index.d.ts +17 -16
  219. package/dist/types/components/Swiper/styles.d.ts +53 -53
  220. package/dist/types/components/Swiper/theme.d.ts +1 -1
  221. package/dist/types/components/System/index.d.ts +14 -14
  222. package/dist/types/components/Table/index.d.ts +7 -6
  223. package/dist/types/components/Table/styles.d.ts +1 -1
  224. package/dist/types/components/Table/theme.d.ts +1 -1
  225. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  226. package/dist/types/components/Tabs/TabList.d.ts +4 -4
  227. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  228. package/dist/types/components/Tabs/styles.d.ts +2 -2
  229. package/dist/types/components/Tabs/theme.d.ts +2 -2
  230. package/dist/types/components/Tag/index.d.ts +3 -2
  231. package/dist/types/components/Tag/styles.d.ts +1 -1
  232. package/dist/types/components/Tag/theme.d.ts +2 -2
  233. package/dist/types/components/Text/index.d.ts +2 -2
  234. package/dist/types/components/Textarea/index.d.ts +1 -1
  235. package/dist/types/components/Textarea/theme.d.ts +1 -1
  236. package/dist/types/components/TimePicker/index.d.ts +2 -2
  237. package/dist/types/components/Toast/Growl.d.ts +1 -1
  238. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  239. package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
  240. package/dist/types/components/Toast/index.d.ts +6 -6
  241. package/dist/types/components/Toast/styles.d.ts +16 -16
  242. package/dist/types/components/Toast/theme.d.ts +2 -2
  243. package/dist/types/components/Toast/utils.d.ts +13 -13
  244. package/dist/types/components/Toggle/index.d.ts +3 -3
  245. package/dist/types/components/Toggle/styles.d.ts +4 -5
  246. package/dist/types/components/Toggle/theme.d.ts +5 -5
  247. package/dist/types/components/Tooltip/index.d.ts +2 -2
  248. package/dist/types/components/Tooltip/styles.d.ts +1 -1
  249. package/dist/types/components/Tooltip/theme.d.ts +1 -1
  250. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  251. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  252. package/dist/types/components/VariantIcon/theme.d.ts +2 -2
  253. package/dist/types/components/WuiProvider/font.d.ts +5 -3
  254. package/dist/types/components/WuiProvider/index.d.ts +1 -1
  255. package/dist/types/theme/colors.d.ts +11 -3
  256. package/dist/types/theme/dark.d.ts +1 -1
  257. package/dist/types/theme/defaultFields.d.ts +10 -10
  258. package/dist/types/theme/fonts.d.ts +5 -5
  259. package/dist/types/theme/index.d.ts +31 -31
  260. package/dist/types/theme/screens.d.ts +1 -1
  261. package/dist/types/theme/space.d.ts +1 -1
  262. package/dist/types/theme/typography.d.ts +1 -1
  263. package/dist/types/utils/field-styles.d.ts +6 -6
  264. package/dist/types/utils/index.d.ts +2 -2
  265. package/dist/types/utils/ts-utils.d.ts +1 -1
  266. package/dist/types/utils/use-copy-text.d.ts +1 -1
  267. package/dist/types/utils/use-create-portal.d.ts +1 -1
  268. package/dist/types/utils/use-viewport.d.ts +2 -2
  269. package/dist/types/utils/wrap-children.d.ts +1 -1
  270. package/dist/{use-fork-ref-DvaCTfQ_.mjs → use-fork-ref-CUZErtAC.mjs} +3 -4
  271. package/dist/{use-viewport-CWpjoHXy.mjs → use-viewport-CfklieD-.mjs} +2 -2
  272. package/dist/utils.mjs +29 -102
  273. package/dist/wrap-children-aq69jtFP.mjs +12 -0
  274. package/package.json +28 -4
  275. package/dist/LVA2YJMS-C-kJ1lkr.mjs +0 -873
  276. package/dist/hide-focus-rings-root-CCXdysih.mjs +0 -15
  277. package/dist/index-CYmF7qCH.mjs +0 -11
  278. package/dist/index-C_k-m0Rl.mjs +0 -36
  279. package/dist/index-D8v_VJ9z.mjs +0 -26
  280. package/dist/index-DpkNUfAS.mjs +0 -11
  281. package/dist/index-i_anpNhw.mjs +0 -66
  282. package/dist/index-wl3X6EM1.mjs +0 -16
  283. package/dist/jsx-runtime-B7I4PJ0H.mjs +0 -613
  284. package/dist/radio-group-C0fUHvam.mjs +0 -52
  285. package/dist/throttle-CW18pWlW.mjs +0 -13
  286. package/dist/wrap-children-DBSD-X5-.mjs +0 -9
  287. package/dist/{downshift.esm-B7Jil1wW.mjs → downshift.esm-D0ns_SQs.mjs} +9 -9
@@ -1,22 +1,23 @@
1
1
  "use client";
2
- import { j as g } from "./jsx-runtime-B7I4PJ0H.mjs";
3
- import ge, { useRef as P, useState as j, Children as me, cloneElement as xe, useCallback as q, useMemo as we, useEffect as J } from "react";
4
- import "./Icon.mjs";
5
- import { R as ze } from "./index-CYmF7qCH.mjs";
2
+ import g, { useRef as _, useState as X, Children as ge, cloneElement as me, useCallback as q, useMemo as xe, useEffect as J } from "react";
3
+ import { t as Ee } from "./throttle-BDBzFeFj.mjs";
4
+ import R, { th as z, css as ne } from "@xstyled/styled-components";
6
5
  import { forwardRef as ie } from "./System.mjs";
7
- import { t as Oe } from "./throttle-CW18pWlW.mjs";
8
- import { Box as Re } from "./Box.mjs";
9
- import y, { th as O, css as oe } from "@xstyled/styled-components";
10
- import { h as ye } from "./hex-to-rgba-DU_XzKIK.mjs";
11
- var w = [], Ee = function() {
12
- return w.some(function(e) {
6
+ import { Box as we } from "./Box.mjs";
7
+ import { h as ze } from "./hex-to-rgba-BIDK-3ab.mjs";
8
+ import "./overflow-ellipsis-DGV5Kgt-.mjs";
9
+ import "./index-BhcLigYU.mjs";
10
+ import "./Icon.mjs";
11
+ import { R as Oe } from "./index-CmsWSKKs.mjs";
12
+ var x = [], Re = function() {
13
+ return x.some(function(e) {
13
14
  return e.activeTargets.length > 0;
14
15
  });
15
- }, Be = function() {
16
- return w.some(function(e) {
16
+ }, ye = function() {
17
+ return x.some(function(e) {
17
18
  return e.skippedTargets.length > 0;
18
19
  });
19
- }, U = "ResizeObserver loop completed with undelivered notifications.", Te = function() {
20
+ }, U = "ResizeObserver loop completed with undelivered notifications.", Be = function() {
20
21
  var e;
21
22
  typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
22
23
  message: U
@@ -25,39 +26,39 @@ var w = [], Ee = function() {
25
26
  (function(e) {
26
27
  e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
27
28
  })(k || (k = {}));
28
- var z = function(e) {
29
+ var E = function(e) {
29
30
  return Object.freeze(e);
30
- }, Se = /* @__PURE__ */ function() {
31
+ }, Te = /* @__PURE__ */ function() {
31
32
  function e(t, r) {
32
- this.inlineSize = t, this.blockSize = r, z(this);
33
+ this.inlineSize = t, this.blockSize = r, E(this);
33
34
  }
34
35
  return e;
35
- }(), se = function() {
36
+ }(), oe = function() {
36
37
  function e(t, r, n, i) {
37
- return this.x = t, this.y = r, this.width = n, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, z(this);
38
+ return this.x = t, this.y = r, this.width = n, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, E(this);
38
39
  }
39
40
  return e.prototype.toJSON = function() {
40
- var t = this, r = t.x, n = t.y, i = t.top, a = t.right, o = t.bottom, l = t.left, v = t.width, c = t.height;
41
- return { x: r, y: n, top: i, right: a, bottom: o, left: l, width: v, height: c };
41
+ var t = this, r = t.x, n = t.y, i = t.top, s = t.right, o = t.bottom, v = t.left, l = t.width, c = t.height;
42
+ return { x: r, y: n, top: i, right: s, bottom: o, left: v, width: l, height: c };
42
43
  }, e.fromRect = function(t) {
43
44
  return new e(t.x, t.y, t.width, t.height);
44
45
  }, e;
45
- }(), V = function(e) {
46
+ }(), G = function(e) {
46
47
  return e instanceof SVGElement && "getBBox" in e;
47
- }, ae = function(e) {
48
- if (V(e)) {
48
+ }, se = function(e) {
49
+ if (G(e)) {
49
50
  var t = e.getBBox(), r = t.width, n = t.height;
50
51
  return !r && !n;
51
52
  }
52
- var i = e, a = i.offsetWidth, o = i.offsetHeight;
53
- return !(a || o || e.getClientRects().length);
53
+ var i = e, s = i.offsetWidth, o = i.offsetHeight;
54
+ return !(s || o || e.getClientRects().length);
54
55
  }, Y = function(e) {
55
56
  var t;
56
57
  if (e instanceof Element)
57
58
  return !0;
58
59
  var r = (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView;
59
60
  return !!(r && e instanceof r.Element);
60
- }, Ce = function(e) {
61
+ }, Se = function(e) {
61
62
  switch (e.tagName) {
62
63
  case "INPUT":
63
64
  if (e.type !== "image")
@@ -72,59 +73,59 @@ var z = function(e) {
72
73
  return !0;
73
74
  }
74
75
  return !1;
75
- }, C = typeof window < "u" ? window : {}, M = /* @__PURE__ */ new WeakMap(), K = /auto|scroll/, ke = /^tb|vertical/, De = /msie|trident/i.test(C.navigator && C.navigator.userAgent), f = function(e) {
76
+ }, C = typeof window < "u" ? window : {}, M = /* @__PURE__ */ new WeakMap(), K = /auto|scroll/, Ce = /^tb|vertical/, ke = /msie|trident/i.test(C.navigator && C.navigator.userAgent), f = function(e) {
76
77
  return parseFloat(e || "0");
77
- }, R = function(e, t, r) {
78
- return e === void 0 && (e = 0), t === void 0 && (t = 0), r === void 0 && (r = !1), new Se((r ? t : e) || 0, (r ? e : t) || 0);
79
- }, Q = z({
80
- devicePixelContentBoxSize: R(),
81
- borderBoxSize: R(),
82
- contentBoxSize: R(),
83
- contentRect: new se(0, 0, 0, 0)
84
- }), ce = function(e, t) {
78
+ }, O = function(e, t, r) {
79
+ return e === void 0 && (e = 0), t === void 0 && (t = 0), r === void 0 && (r = !1), new Te((r ? t : e) || 0, (r ? e : t) || 0);
80
+ }, Q = E({
81
+ devicePixelContentBoxSize: O(),
82
+ borderBoxSize: O(),
83
+ contentBoxSize: O(),
84
+ contentRect: new oe(0, 0, 0, 0)
85
+ }), ae = function(e, t) {
85
86
  if (t === void 0 && (t = !1), M.has(e) && !t)
86
87
  return M.get(e);
87
- if (ae(e))
88
+ if (se(e))
88
89
  return M.set(e, Q), Q;
89
- var r = getComputedStyle(e), n = V(e) && e.ownerSVGElement && e.getBBox(), i = !De && r.boxSizing === "border-box", a = ke.test(r.writingMode || ""), o = !n && K.test(r.overflowY || ""), l = !n && K.test(r.overflowX || ""), v = n ? 0 : f(r.paddingTop), c = n ? 0 : f(r.paddingRight), E = n ? 0 : f(r.paddingBottom), d = n ? 0 : f(r.paddingLeft), W = n ? 0 : f(r.borderTopWidth), D = n ? 0 : f(r.borderRightWidth), I = n ? 0 : f(r.borderBottomWidth), $ = n ? 0 : f(r.borderLeftWidth), B = d + c, m = v + E, T = $ + D, S = W + I, s = l ? e.offsetHeight - S - e.clientHeight : 0, u = o ? e.offsetWidth - T - e.clientWidth : 0, p = i ? B + T : 0, x = i ? m + S : 0, h = n ? n.width : f(r.width) - p - u, b = n ? n.height : f(r.height) - x - s, _ = h + B + u + T, be = b + m + s + S, X = z({
90
- devicePixelContentBoxSize: R(Math.round(h * devicePixelRatio), Math.round(b * devicePixelRatio), a),
91
- borderBoxSize: R(_, be, a),
92
- contentBoxSize: R(h, b, a),
93
- contentRect: new se(d, v, h, b)
90
+ var r = getComputedStyle(e), n = G(e) && e.ownerSVGElement && e.getBBox(), i = !ke && r.boxSizing === "border-box", s = Ce.test(r.writingMode || ""), o = !n && K.test(r.overflowY || ""), v = !n && K.test(r.overflowX || ""), l = n ? 0 : f(r.paddingTop), c = n ? 0 : f(r.paddingRight), y = n ? 0 : f(r.paddingBottom), d = n ? 0 : f(r.paddingLeft), W = n ? 0 : f(r.borderTopWidth), D = n ? 0 : f(r.borderRightWidth), I = n ? 0 : f(r.borderBottomWidth), $ = n ? 0 : f(r.borderLeftWidth), B = d + c, m = l + y, T = $ + D, S = W + I, a = v ? e.offsetHeight - S - e.clientHeight : 0, u = o ? e.offsetWidth - T - e.clientWidth : 0, h = i ? B + T : 0, p = i ? m + S : 0, b = n ? n.width : f(r.width) - h - u, w = n ? n.height : f(r.height) - p - a, pe = b + B + u + T, be = w + m + a + S, V = E({
91
+ devicePixelContentBoxSize: O(Math.round(b * devicePixelRatio), Math.round(w * devicePixelRatio), s),
92
+ borderBoxSize: O(pe, be, s),
93
+ contentBoxSize: O(b, w, s),
94
+ contentRect: new oe(d, l, b, w)
94
95
  });
95
- return M.set(e, X), X;
96
- }, ue = function(e, t, r) {
97
- var n = ce(e, r), i = n.borderBoxSize, a = n.contentBoxSize, o = n.devicePixelContentBoxSize;
96
+ return M.set(e, V), V;
97
+ }, ce = function(e, t, r) {
98
+ var n = ae(e, r), i = n.borderBoxSize, s = n.contentBoxSize, o = n.devicePixelContentBoxSize;
98
99
  switch (t) {
99
100
  case k.DEVICE_PIXEL_CONTENT_BOX:
100
101
  return o;
101
102
  case k.BORDER_BOX:
102
103
  return i;
103
104
  default:
104
- return a;
105
+ return s;
105
106
  }
106
- }, Ie = /* @__PURE__ */ function() {
107
+ }, De = /* @__PURE__ */ function() {
107
108
  function e(t) {
108
- var r = ce(t);
109
- this.target = t, this.contentRect = r.contentRect, this.borderBoxSize = z([r.borderBoxSize]), this.contentBoxSize = z([r.contentBoxSize]), this.devicePixelContentBoxSize = z([r.devicePixelContentBoxSize]);
109
+ var r = ae(t);
110
+ this.target = t, this.contentRect = r.contentRect, this.borderBoxSize = E([r.borderBoxSize]), this.contentBoxSize = E([r.contentBoxSize]), this.devicePixelContentBoxSize = E([r.devicePixelContentBoxSize]);
110
111
  }
111
112
  return e;
112
- }(), le = function(e) {
113
- if (ae(e))
113
+ }(), ue = function(e) {
114
+ if (se(e))
114
115
  return 1 / 0;
115
116
  for (var t = 0, r = e.parentNode; r; )
116
117
  t += 1, r = r.parentNode;
117
118
  return t;
118
- }, Me = function() {
119
+ }, Ie = function() {
119
120
  var e = 1 / 0, t = [];
120
- w.forEach(function(o) {
121
+ x.forEach(function(o) {
121
122
  if (o.activeTargets.length !== 0) {
122
- var l = [];
123
+ var v = [];
123
124
  o.activeTargets.forEach(function(c) {
124
- var E = new Ie(c.target), d = le(c.target);
125
- l.push(E), c.lastReportedSize = ue(c.target, c.observedBox), d < e && (e = d);
125
+ var y = new De(c.target), d = ue(c.target);
126
+ v.push(y), c.lastReportedSize = ce(c.target, c.observedBox), d < e && (e = d);
126
127
  }), t.push(function() {
127
- o.callback.call(o.observer, l, o.observer);
128
+ o.callback.call(o.observer, v, o.observer);
128
129
  }), o.activeTargets.splice(0, o.activeTargets.length);
129
130
  }
130
131
  });
@@ -134,37 +135,37 @@ var z = function(e) {
134
135
  }
135
136
  return e;
136
137
  }, Z = function(e) {
137
- w.forEach(function(r) {
138
+ x.forEach(function(r) {
138
139
  r.activeTargets.splice(0, r.activeTargets.length), r.skippedTargets.splice(0, r.skippedTargets.length), r.observationTargets.forEach(function(i) {
139
- i.isActive() && (le(i.target) > e ? r.activeTargets.push(i) : r.skippedTargets.push(i));
140
+ i.isActive() && (ue(i.target) > e ? r.activeTargets.push(i) : r.skippedTargets.push(i));
140
141
  });
141
142
  });
142
- }, Ae = function() {
143
+ }, Me = function() {
143
144
  var e = 0;
144
- for (Z(e); Ee(); )
145
- e = Me(), Z(e);
146
- return Be() && Te(), e > 0;
147
- }, F, ve = [], Le = function() {
145
+ for (Z(e); Re(); )
146
+ e = Ie(), Z(e);
147
+ return ye() && Be(), e > 0;
148
+ }, P, ve = [], Ae = function() {
148
149
  return ve.splice(0).forEach(function(e) {
149
150
  return e();
150
151
  });
151
- }, Ne = function(e) {
152
- if (!F) {
152
+ }, Le = function(e) {
153
+ if (!P) {
153
154
  var t = 0, r = document.createTextNode(""), n = { characterData: !0 };
154
155
  new MutationObserver(function() {
155
- return Le();
156
- }).observe(r, n), F = function() {
156
+ return Ae();
157
+ }).observe(r, n), P = function() {
157
158
  r.textContent = "".concat(t ? t-- : t++);
158
159
  };
159
160
  }
160
- ve.push(e), F();
161
- }, We = function(e) {
162
- Ne(function() {
161
+ ve.push(e), P();
162
+ }, Ne = function(e) {
163
+ Le(function() {
163
164
  requestAnimationFrame(e);
164
165
  });
165
- }, N = 0, $e = function() {
166
+ }, N = 0, We = function() {
166
167
  return !!N;
167
- }, _e = 250, Pe = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, ee = [
168
+ }, $e = 250, _e = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, j = [
168
169
  "resize",
169
170
  "load",
170
171
  "transitionend",
@@ -179,9 +180,9 @@ var z = function(e) {
179
180
  "mouseout",
180
181
  "blur",
181
182
  "focus"
182
- ], te = function(e) {
183
+ ], ee = function(e) {
183
184
  return e === void 0 && (e = 0), Date.now() + e;
184
- }, H = !1, Fe = function() {
185
+ }, F = !1, Pe = function() {
185
186
  function e() {
186
187
  var t = this;
187
188
  this.stopped = !0, this.listener = function() {
@@ -190,15 +191,15 @@ var z = function(e) {
190
191
  }
191
192
  return e.prototype.run = function(t) {
192
193
  var r = this;
193
- if (t === void 0 && (t = _e), !H) {
194
- H = !0;
195
- var n = te(t);
196
- We(function() {
194
+ if (t === void 0 && (t = $e), !F) {
195
+ F = !0;
196
+ var n = ee(t);
197
+ Ne(function() {
197
198
  var i = !1;
198
199
  try {
199
- i = Ae();
200
+ i = Me();
200
201
  } finally {
201
- if (H = !1, t = n - te(), !$e())
202
+ if (F = !1, t = n - ee(), !We())
202
203
  return;
203
204
  i ? r.run(1e3) : t > 0 ? r.run(t) : r.start();
204
205
  }
@@ -208,25 +209,25 @@ var z = function(e) {
208
209
  this.stop(), this.run();
209
210
  }, e.prototype.observe = function() {
210
211
  var t = this, r = function() {
211
- return t.observer && t.observer.observe(document.body, Pe);
212
+ return t.observer && t.observer.observe(document.body, _e);
212
213
  };
213
214
  document.body ? r() : C.addEventListener("DOMContentLoaded", r);
214
215
  }, e.prototype.start = function() {
215
216
  var t = this;
216
- this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), ee.forEach(function(r) {
217
+ this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), j.forEach(function(r) {
217
218
  return C.addEventListener(r, t.listener, !0);
218
219
  }));
219
220
  }, e.prototype.stop = function() {
220
221
  var t = this;
221
- this.stopped || (this.observer && this.observer.disconnect(), ee.forEach(function(r) {
222
+ this.stopped || (this.observer && this.observer.disconnect(), j.forEach(function(r) {
222
223
  return C.removeEventListener(r, t.listener, !0);
223
224
  }), this.stopped = !0);
224
225
  }, e;
225
- }(), G = new Fe(), re = function(e) {
226
- !N && e > 0 && G.start(), N += e, !N && G.stop();
227
- }, He = function(e) {
228
- return !V(e) && !Ce(e) && getComputedStyle(e).display === "inline";
229
- }, Ge = function() {
226
+ }(), H = new Pe(), te = function(e) {
227
+ !N && e > 0 && H.start(), N += e, !N && H.stop();
228
+ }, Fe = function(e) {
229
+ return !G(e) && !Se(e) && getComputedStyle(e).display === "inline";
230
+ }, He = function() {
230
231
  function e(t, r) {
231
232
  this.target = t, this.observedBox = r || k.CONTENT_BOX, this.lastReportedSize = {
232
233
  inlineSize: 0,
@@ -234,15 +235,15 @@ var z = function(e) {
234
235
  };
235
236
  }
236
237
  return e.prototype.isActive = function() {
237
- var t = ue(this.target, this.observedBox, !0);
238
- return He(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
238
+ var t = ce(this.target, this.observedBox, !0);
239
+ return Fe(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
239
240
  }, e;
240
- }(), Ve = /* @__PURE__ */ function() {
241
+ }(), Ge = /* @__PURE__ */ function() {
241
242
  function e(t, r) {
242
243
  this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = r;
243
244
  }
244
245
  return e;
245
- }(), A = /* @__PURE__ */ new WeakMap(), ne = function(e, t) {
246
+ }(), A = /* @__PURE__ */ new WeakMap(), re = function(e, t) {
246
247
  for (var r = 0; r < e.length; r += 1)
247
248
  if (e[r].target === t)
248
249
  return r;
@@ -251,21 +252,21 @@ var z = function(e) {
251
252
  function e() {
252
253
  }
253
254
  return e.connect = function(t, r) {
254
- var n = new Ve(t, r);
255
+ var n = new Ge(t, r);
255
256
  A.set(t, n);
256
257
  }, e.observe = function(t, r, n) {
257
- var i = A.get(t), a = i.observationTargets.length === 0;
258
- ne(i.observationTargets, r) < 0 && (a && w.push(i), i.observationTargets.push(new Ge(r, n && n.box)), re(1), G.schedule());
258
+ var i = A.get(t), s = i.observationTargets.length === 0;
259
+ re(i.observationTargets, r) < 0 && (s && x.push(i), i.observationTargets.push(new He(r, n && n.box)), te(1), H.schedule());
259
260
  }, e.unobserve = function(t, r) {
260
- var n = A.get(t), i = ne(n.observationTargets, r), a = n.observationTargets.length === 1;
261
- i >= 0 && (a && w.splice(w.indexOf(n), 1), n.observationTargets.splice(i, 1), re(-1));
261
+ var n = A.get(t), i = re(n.observationTargets, r), s = n.observationTargets.length === 1;
262
+ i >= 0 && (s && x.splice(x.indexOf(n), 1), n.observationTargets.splice(i, 1), te(-1));
262
263
  }, e.disconnect = function(t) {
263
264
  var r = this, n = A.get(t);
264
265
  n.observationTargets.slice().forEach(function(i) {
265
266
  return r.unobserve(t, i.target);
266
267
  }), n.activeTargets.splice(0, n.activeTargets.length);
267
268
  }, e;
268
- }(), Xe = function() {
269
+ }(), Ve = function() {
269
270
  function e(t) {
270
271
  if (arguments.length === 0)
271
272
  throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
@@ -291,82 +292,80 @@ var z = function(e) {
291
292
  return "function ResizeObserver () { [polyfill code] }";
292
293
  }, e;
293
294
  }();
294
- const je = (e, t, r) => Math.min(Math.max(e, t), r), qe = y.aBox`
295
- ${O("breadcrumbs.item.default")};
295
+ const Xe = (e, t, r) => Math.min(Math.max(e, t), r), qe = R.aBox`
296
+ ${z("breadcrumbs.item.default")};
296
297
  align-items: center;
297
298
  transition: medium;
298
299
  direction: initial;
299
300
 
300
301
  &:hover {
301
- ${O("breadcrumbs.item.hover")};
302
+ ${z("breadcrumbs.item.hover")};
302
303
  }
303
304
 
304
305
  &[aria-current='page'] {
305
- ${O("breadcrumbs.item.active")};
306
+ ${z("breadcrumbs.item.active")};
306
307
  }
307
308
 
308
309
  &[aria-disabled='true'] {
309
310
  pointer-events: none;
310
311
  cursor: default;
311
312
  }
312
- `, Je = y.spanBox`
313
- ${O("breadcrumbs.separator")};
313
+ `, Je = R.spanBox`
314
+ ${z("breadcrumbs.separator")};
314
315
  display: flex;
315
316
  align-items: center;
316
317
  `, Ue = ie(
317
- ({ children: e, dataTestId: t, isActive: r, separator: n, ...i }, a) => {
318
+ ({ children: e, dataTestId: t, isActive: r, separator: n, ...i }, s) => {
318
319
  const o = i.href || i.to;
319
- return /* @__PURE__ */ g.jsxs(
320
- Re,
320
+ return /* @__PURE__ */ g.createElement(
321
+ we,
321
322
  {
322
323
  "aria-label": "breadcrumb",
323
324
  as: "li",
324
325
  "data-testid": t,
325
326
  display: "inline-flex",
326
327
  flex: "0 0 auto",
327
- lineHeight: "normal",
328
- children: [
329
- n ? /* @__PURE__ */ g.jsx(Je, { role: "presentation", children: n }) : null,
330
- /* @__PURE__ */ g.jsx(
331
- qe,
332
- {
333
- "aria-current": r ? "page" : void 0,
334
- "aria-disabled": !o,
335
- ...i,
336
- ref: a,
337
- children: e
338
- }
339
- )
340
- ]
341
- }
328
+ lineHeight: "normal"
329
+ },
330
+ n && /* @__PURE__ */ g.createElement(Je, { role: "presentation" }, n),
331
+ /* @__PURE__ */ g.createElement(
332
+ qe,
333
+ {
334
+ "aria-current": r ? "page" : void 0,
335
+ "aria-disabled": !o,
336
+ ...i,
337
+ ref: s
338
+ },
339
+ e
340
+ )
342
341
  );
343
342
  }
344
- ), de = y.spanBox(
345
- ({ gradientBackground: e, theme: t }) => oe`
343
+ ), le = R.spanBox(
344
+ ({ gradientBackground: e, theme: t }) => ne`
346
345
  left: 0;
347
- background-image: ${he(t, e)};
346
+ background-image: ${fe(t, e)};
348
347
  transform-origin: left;
349
348
  `
350
- ), fe = y.spanBox(
351
- ({ gradientBackground: e, theme: t }) => oe`
349
+ ), de = R.spanBox(
350
+ ({ gradientBackground: e, theme: t }) => ne`
352
351
  right: 0;
353
- background-image: ${he(t, e, "left")};
352
+ background-image: ${fe(t, e, "left")};
354
353
  transform-origin: right;
355
354
  `
356
- ), Ye = y.divBox`
357
- ${O("breadcrumbs.list")};
355
+ ), Ye = R.divBox`
356
+ ${z("breadcrumbs.list")};
358
357
  height: 100%;
359
358
  position: relative;
360
359
  overflow-x: hidden;
361
360
 
362
- ${de},
363
- ${fe} {
361
+ ${le},
362
+ ${de} {
364
363
  position: absolute;
365
364
  bottom: 0;
366
365
  top: 0;
367
366
  width: 30;
368
367
  }
369
- `, Ke = y.olBox`
368
+ `, Ke = R.olBox`
370
369
  display: inline-flex;
371
370
  align-items: center;
372
371
  max-width: 100%;
@@ -376,49 +375,50 @@ const je = (e, t, r) => Math.min(Math.max(e, t), r), qe = y.aBox`
376
375
  padding: 0;
377
376
  list-style: none;
378
377
  white-space: nowrap;
379
- `, he = (e, t, r = "right") => {
380
- const n = O(`colors.${t}`)({ theme: e }), i = ye(n, 0);
378
+ `, fe = (e, t, r = "right") => {
379
+ const n = z(`colors.${t}`)({ theme: e }), i = ze(n, 0);
381
380
  return `linear-gradient(to ${r}, ${n}, ${i} 100%)`;
382
- }, pe = ie(
381
+ }, he = ie(
383
382
  ({
384
383
  children: e,
385
384
  gradientBackground: t = "neutral-10",
386
385
  lastChildNotClickable: r = !0,
387
- separator: n = /* @__PURE__ */ g.jsx(ze, { size: "xs" }),
386
+ separator: n = /* @__PURE__ */ g.createElement(Oe, { size: "xs" }),
388
387
  ...i
389
- }, a) => {
390
- const o = P(null), l = P(null), v = P(null), [c, E] = j(!1), [d, W] = j(0), D = me.toArray(e).filter(Boolean), I = D.length, $ = D.map((s, u) => {
391
- const p = I === 1 || I === u + 1, x = p && r;
392
- return ge.isValidElement(s) ? xe(s, {
393
- isActive: x,
388
+ }, s) => {
389
+ const o = _(null), v = _(), l = _(), [c, y] = X(!1), [d, W] = X(0), D = ge.toArray(e).filter(Boolean), I = D.length, $ = D.map((a, u) => {
390
+ const h = I === 1 || I === u + 1, p = h && r;
391
+ return me(a, {
392
+ // eslint-disable-next-line react/no-array-index-key
394
393
  key: `breadcrumb-${u}`,
395
- separator: p ? void 0 : n,
396
- ...s.props
397
- }) : s;
394
+ separator: h ? void 0 : n,
395
+ isActive: p,
396
+ ...a.props
397
+ });
398
398
  });
399
- function B(s, u) {
400
- s && (s.style.transform = `scale3d(${u}, 1, 1)`);
399
+ function B(a, u) {
400
+ a && (a.style.transform = `scale3d(${u}, 1, 1)`);
401
401
  }
402
- const m = q((s) => {
403
- const u = 1 - s;
404
- B(l.current, u), B(v.current, s);
402
+ const m = q((a) => {
403
+ const u = 1 - a;
404
+ B(v.current, u), B(l.current, a);
405
405
  }, []), T = q(() => {
406
- const { current: s } = o;
407
- if (!s) return;
408
- const { offsetWidth: u, scrollLeft: p, scrollWidth: x } = s, h = x - u, _ = je(Math.abs(p - d), 0, h) / h;
409
- m(_);
410
- }, [d, m]), S = we(
411
- () => Oe(
412
- (...s) => {
413
- const u = s[0], [
406
+ const {
407
+ current: { offsetWidth: a, scrollLeft: u, scrollWidth: h }
408
+ } = o, p = h - a, w = Xe(Math.abs(u - d), 0, p) / p;
409
+ m(w);
410
+ }, [d, m]), S = xe(
411
+ () => Ee(
412
+ (a) => {
413
+ const [
414
414
  {
415
415
  // Is offsetWidth really needed ?
416
416
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
417
417
  // @ts-ignore
418
- target: { offsetWidth: p, scrollLeft: x, scrollWidth: h }
418
+ target: { offsetWidth: u, scrollLeft: h, scrollWidth: p }
419
419
  }
420
- ] = u, b = h - p;
421
- d || W(x === 0 ? 0 : b), E(b > 0);
420
+ ] = a, b = p - u;
421
+ d || W(h === 0 ? 0 : b), y(b > 0);
422
422
  },
423
423
  300,
424
424
  !1
@@ -426,22 +426,18 @@ const je = (e, t, r) => Math.min(Math.max(e, t), r), qe = y.aBox`
426
426
  [d]
427
427
  );
428
428
  return J(() => {
429
- const s = new Xe(S);
430
- return o.current && s.observe(o.current), () => s.disconnect();
429
+ const a = new Ve(S);
430
+ return a.observe(o.current), () => a.disconnect();
431
431
  }, []), J(() => {
432
- l.current && v.current && m(0);
433
- }, [c, m]), /* @__PURE__ */ g.jsxs(Ye, { as: "nav", ref: a, ...i, children: [
434
- c ? /* @__PURE__ */ g.jsx(de, { gradientBackground: t, ref: l }) : null,
435
- /* @__PURE__ */ g.jsx(Ke, { dir: "rtl", onScroll: T, ref: o, children: $.reverse() }),
436
- c ? /* @__PURE__ */ g.jsx(fe, { gradientBackground: t, ref: v }) : null
437
- ] });
432
+ v.current && l.current && m(0);
433
+ }, [c, m]), /* @__PURE__ */ g.createElement(Ye, { as: "nav", ref: s, ...i }, c && /* @__PURE__ */ g.createElement(le, { gradientBackground: t, ref: v }), /* @__PURE__ */ g.createElement(Ke, { dir: "rtl", onScroll: T, ref: o }, $.reverse()), c && /* @__PURE__ */ g.createElement(de, { gradientBackground: t, ref: l }));
438
434
  }
439
435
  );
440
- pe.displayName = "Breadcrumb";
441
- const at = Object.assign(pe, {
436
+ he.displayName = "Breadcrumb";
437
+ const at = Object.assign(he, {
442
438
  Item: Ue
443
439
  });
444
440
  export {
445
441
  at as Breadcrumb,
446
- pe as BreadcrumbComponent
442
+ he as BreadcrumbComponent
447
443
  };