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