welcome-ui 8.0.0 → 8.1.0-alpha.0

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