welcome-ui 8.1.3 → 8.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AXB53BZF-BOEe01VW.mjs → AXB53BZF-XKOjjeWO.mjs} +3 -3
- package/dist/Accordion.mjs +30 -23
- package/dist/Alert.mjs +72 -66
- package/dist/AspectRatio.mjs +9 -9
- package/dist/Avatar.mjs +45 -41
- package/dist/{BYC7LY2E-B1IDizRs.mjs → BYC7LY2E-CWSI38FM.mjs} +128 -127
- package/dist/Badge.mjs +25 -25
- package/dist/Box.mjs +5 -5
- package/dist/Breadcrumb.mjs +118 -112
- package/dist/Button.mjs +72 -67
- package/dist/ButtonGroup.mjs +12 -11
- package/dist/Card.mjs +14 -14
- package/dist/Checkbox.mjs +2 -2
- package/dist/ClearButton.mjs +15 -15
- package/dist/CloseButton.mjs +9 -9
- package/dist/{CustomInput-IA_gVoXd.mjs → CustomPopper-DezjKb9n.mjs} +1458 -1442
- package/dist/DatePicker.mjs +63 -62
- package/dist/DateTimePicker.mjs +69 -63
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +180 -168
- package/dist/DropdownMenu.mjs +354 -351
- package/dist/Field.mjs +103 -92
- package/dist/FieldGroup.mjs +12 -9
- package/dist/FileDrop.mjs +316 -295
- package/dist/FileUpload.mjs +83 -69
- package/dist/Files.mjs +41 -41
- package/dist/Flex.mjs +13 -13
- package/dist/Grid.mjs +29 -29
- package/dist/Hint.mjs +12 -12
- package/dist/{ITI7HKP4-EL9KXYBU.mjs → ITI7HKP4-C89kOQb8.mjs} +68 -67
- package/dist/Icon.mjs +25 -25
- package/dist/Icons.mjs +988 -988
- package/dist/IconsFont.mjs +22 -22
- package/dist/InputText.mjs +64 -56
- package/dist/{JC64G2H7-BzklVBKM.mjs → JC64G2H7-afsomHuH.mjs} +47 -46
- package/dist/{KUU7WJ55-CS4NemC6.mjs → KUU7WJ55-CzsjuIMv.mjs} +1 -1
- package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
- package/dist/Label.mjs +37 -35
- package/dist/Link.mjs +32 -28
- package/dist/Loader.mjs +20 -16
- package/dist/Logo.mjs +55 -42
- package/dist/{MTZPJQMC-CMjAwC0N.mjs → MTZPJQMC-TybFZCho.mjs} +2 -2
- package/dist/Modal.mjs +263 -244
- package/dist/{NLEBE274-QOMV1l7e.mjs → NLEBE274-oSxMftGy.mjs} +9 -9
- package/dist/{P2CTZE2T-Cl2w7OLV.mjs → P2CTZE2T-DOT1mNnX.mjs} +49 -48
- package/dist/{P4IRICAX-DezbJY4s.mjs → P4IRICAX-CWSZLTGz.mjs} +3 -3
- package/dist/Pagination.mjs +105 -103
- package/dist/PasswordInput.mjs +35 -34
- package/dist/Picker.mjs +36 -34
- package/dist/Popover.mjs +106 -99
- package/dist/{QYJ6MIDR-Bb0O5xUM.mjs → QYJ6MIDR-DJ-vUdAM.mjs} +31 -30
- package/dist/Radio.mjs +52 -46
- package/dist/RadioGroup.mjs +47 -47
- package/dist/RadioTab.mjs +37 -35
- package/dist/{SYRFVSLH-jn06-eLy.mjs → SYRFVSLH-B6m278Vb.mjs} +11 -10
- package/dist/Search.mjs +147 -135
- package/dist/Select.mjs +348 -330
- package/dist/Shape.mjs +9 -9
- package/dist/Slider.mjs +353 -326
- package/dist/Stack.mjs +24 -23
- package/dist/Swiper.mjs +192 -186
- package/dist/Table.mjs +23 -23
- package/dist/Tabs.mjs +205 -200
- package/dist/Tag.mjs +49 -47
- package/dist/Text.mjs +20 -20
- package/dist/Textarea.mjs +40 -40
- package/dist/TimePicker.mjs +59 -58
- package/dist/Toast.mjs +135 -128
- package/dist/Toggle.mjs +27 -24
- package/dist/Tooltip.mjs +103 -99
- package/dist/UniversalLink.mjs +15 -15
- package/dist/{VEVQD5MH-CuegL0m0.mjs → VEVQD5MH-0w9Y7Ytc.mjs} +3 -3
- package/dist/{VGCJ63VH-BMzoZtCu.mjs → VGCJ63VH-C0UPBY-5.mjs} +39 -38
- package/dist/VariantIcon.mjs +23 -22
- package/dist/WelcomeLoader.mjs +122 -121
- package/dist/WuiProvider.mjs +52 -44
- package/dist/{X5NMLKT6-CvSCix-_.mjs → X5NMLKT6-BJw3xE-K.mjs} +2 -2
- package/dist/{YV4JVR4I-Bh7B7TET.mjs → YV4JVR4I-DPC8mMuG.mjs} +57 -57
- package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
- package/dist/{index-5PUh49rV.mjs → index-62h-enZF.mjs} +62 -61
- package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
- package/dist/index-CYmF7qCH.mjs +11 -0
- package/dist/index-C_k-m0Rl.mjs +36 -0
- package/dist/index-D8v_VJ9z.mjs +26 -0
- package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
- package/dist/index-DpkNUfAS.mjs +11 -0
- package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
- package/dist/{index-Bkl89twW.mjs → index-QaLwIvZS.mjs} +8 -8
- package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
- package/dist/index-i_anpNhw.mjs +66 -0
- package/dist/index-wl3X6EM1.mjs +16 -0
- package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
- package/dist/radio-group-C0fUHvam.mjs +52 -0
- package/dist/theme.mjs +805 -805
- package/dist/types/components/Accordion/index.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +2 -2
- package/dist/types/components/Alert/styles.d.ts +4 -4
- package/dist/types/components/Alert/theme.d.ts +4 -4
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Avatar/styles.d.ts +4 -4
- package/dist/types/components/Avatar/theme.d.ts +1 -1
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Badge/styles.d.ts +2 -2
- package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +4 -5
- package/dist/types/components/Button/theme.d.ts +7 -7
- package/dist/types/components/ButtonGroup/index.d.ts +3 -3
- package/dist/types/components/Card/Cover.styles.d.ts +2 -2
- package/dist/types/components/Card/index.d.ts +2 -3
- package/dist/types/components/Checkbox/index.d.ts +2 -2
- package/dist/types/components/ClearButton/index.d.ts +4 -5
- package/dist/types/components/ClearButton/styles.d.ts +2 -2
- package/dist/types/components/CloseButton/styles.d.ts +2 -2
- package/dist/types/components/DatePicker/index.d.ts +3 -3
- package/dist/types/components/DateTimePicker/index.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/utils.d.ts +1 -1
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
- package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
- package/dist/types/components/Drawer/index.d.ts +8 -8
- package/dist/types/components/Drawer/styles.d.ts +3 -3
- package/dist/types/components/Drawer/theme.d.ts +1 -1
- package/dist/types/components/DropdownMenu/index.d.ts +4 -4
- package/dist/types/components/Field/index.d.ts +8 -8
- package/dist/types/components/Field/styles.d.ts +1 -1
- package/dist/types/components/Field/utils.d.ts +1 -1
- package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
- package/dist/types/components/FileDrop/Message.d.ts +1 -1
- package/dist/types/components/FileDrop/index.d.ts +16 -16
- package/dist/types/components/FileUpload/index.d.ts +13 -13
- package/dist/types/components/Files/index.d.ts +4 -4
- package/dist/types/components/Files/types.d.ts +1 -1
- package/dist/types/components/Hint/index.d.ts +1 -2
- package/dist/types/components/Icon/index.d.ts +3 -3
- package/dist/types/components/Icon/styles.d.ts +3 -3
- package/dist/types/components/Icon/theme.d.ts +1 -1
- package/dist/types/components/Icons/index.d.ts +2 -2
- package/dist/types/components/IconsFont/index.d.ts +2 -3
- package/dist/types/components/IconsFont/styles.d.ts +1 -1
- package/dist/types/components/InputText/index.d.ts +1 -1
- package/dist/types/components/InputText/styles.d.ts +1 -1
- package/dist/types/components/Label/index.d.ts +2 -3
- package/dist/types/components/Link/index.d.ts +3 -3
- package/dist/types/components/Link/styles.d.ts +2 -2
- package/dist/types/components/Loader/index.d.ts +1 -1
- package/dist/types/components/Loader/styles.d.ts +2 -2
- package/dist/types/components/Loader/theme.d.ts +2 -2
- package/dist/types/components/Logo/Solutions.d.ts +1 -2
- package/dist/types/components/Logo/Symbol.d.ts +1 -2
- package/dist/types/components/Logo/Wui.d.ts +1 -2
- package/dist/types/components/Logo/index.d.ts +5 -5
- package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -5
- package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
- package/dist/types/components/Modal/Assets/index.d.ts +5 -5
- package/dist/types/components/Modal/Assets/styles.d.ts +4 -4
- package/dist/types/components/Modal/Close.d.ts +1 -2
- package/dist/types/components/Modal/Footer.d.ts +1 -1
- package/dist/types/components/Modal/Header.d.ts +2 -2
- package/dist/types/components/Modal/index.d.ts +11 -11
- package/dist/types/components/Modal/styles.d.ts +4 -4
- package/dist/types/components/Modal/theme.d.ts +1 -1
- package/dist/types/components/Pagination/index.d.ts +2 -2
- package/dist/types/components/Pagination/utils.d.ts +1 -1
- package/dist/types/components/Popover/Arrow.d.ts +1 -2
- package/dist/types/components/Popover/Content.d.ts +2 -3
- package/dist/types/components/Popover/Popover.d.ts +4 -5
- package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
- package/dist/types/components/Popover/Trigger.d.ts +1 -1
- package/dist/types/components/Popover/usePopover.d.ts +6 -6
- package/dist/types/components/Radio/index.d.ts +5 -5
- package/dist/types/components/Radio/styles.d.ts +2 -2
- package/dist/types/components/RadioGroup/index.d.ts +2 -2
- package/dist/types/components/RadioTab/index.d.ts +2 -2
- package/dist/types/components/RadioTab/styles.d.ts +9 -9
- package/dist/types/components/Search/index.d.ts +4 -4
- package/dist/types/components/Select/index.d.ts +9 -9
- package/dist/types/components/Select/styles.d.ts +4 -4
- package/dist/types/components/Select/utils.d.ts +4 -4
- package/dist/types/components/Shape/index.d.ts +1 -1
- package/dist/types/components/Shape/styles.d.ts +2 -2
- package/dist/types/components/Slider/Range.d.ts +3 -3
- package/dist/types/components/Slider/index.d.ts +2 -2
- package/dist/types/components/Slider/styles.d.ts +10 -10
- package/dist/types/components/Stack/index.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +16 -17
- package/dist/types/components/Swiper/styles.d.ts +55 -55
- package/dist/types/components/System/index.d.ts +10 -10
- package/dist/types/components/Table/index.d.ts +6 -7
- package/dist/types/components/Table/styles.d.ts +1 -1
- package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
- package/dist/types/components/Tabs/TabList.d.ts +2 -2
- package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
- package/dist/types/components/Tabs/theme.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +2 -3
- package/dist/types/components/Tag/styles.d.ts +1 -1
- package/dist/types/components/Tag/theme.d.ts +2 -2
- package/dist/types/components/Text/index.d.ts +2 -2
- package/dist/types/components/Textarea/index.d.ts +1 -1
- package/dist/types/components/TimePicker/index.d.ts +2 -2
- package/dist/types/components/Toast/Growl.d.ts +1 -1
- package/dist/types/components/Toast/Snackbar.d.ts +1 -1
- package/dist/types/components/Toast/ToastWrapper.d.ts +4 -4
- package/dist/types/components/Toast/index.d.ts +5 -5
- package/dist/types/components/Toast/styles.d.ts +10 -10
- package/dist/types/components/Toast/theme.d.ts +1 -1
- package/dist/types/components/Toast/utils.d.ts +13 -13
- package/dist/types/components/Toggle/index.d.ts +2 -2
- package/dist/types/components/Toggle/theme.d.ts +4 -4
- package/dist/types/components/Tooltip/index.d.ts +3 -3
- package/dist/types/components/VariantIcon/index.d.ts +1 -1
- package/dist/types/components/VariantIcon/styles.d.ts +1 -1
- package/dist/types/components/VariantIcon/theme.d.ts +1 -1
- package/dist/types/theme/colors.d.ts +3 -3
- package/dist/types/theme/dark.d.ts +1 -1
- package/dist/types/theme/defaultFields.d.ts +5 -5
- package/dist/types/theme/fonts.d.ts +5 -5
- package/dist/types/theme/index.d.ts +31 -31
- package/dist/types/theme/screens.d.ts +7 -7
- package/dist/types/theme/space.d.ts +9 -9
- package/dist/types/utils/field-styles.d.ts +2 -2
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/ts-utils.d.ts +1 -1
- package/dist/types/utils/use-copy-text.d.ts +1 -1
- package/dist/types/utils/use-create-portal.d.ts +1 -1
- package/dist/types/utils/wrap-children.d.ts +1 -1
- package/dist/{use-viewport-CfklieD-.mjs → use-viewport-CWpjoHXy.mjs} +2 -2
- package/dist/utils.mjs +13 -13
- package/dist/wrap-children-CzmhoRzd.mjs +13 -0
- package/package.json +3 -27
- package/dist/LVA2YJMS-DDEmK0pp.mjs +0 -1482
- package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
- package/dist/index-B0gDDiFm.mjs +0 -66
- package/dist/index-B22SHR8h.mjs +0 -26
- package/dist/index-CQD9fgf_.mjs +0 -11
- package/dist/index-CmsWSKKs.mjs +0 -11
- package/dist/index-u1oHKa7X.mjs +0 -16
- package/dist/index-wr_b5GSV.mjs +0 -36
- package/dist/radio-group-RFyDp0KD.mjs +0 -51
- package/dist/wrap-children-aq69jtFP.mjs +0 -12
- 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
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
({ disabled: e, length:
|
|
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.${
|
|
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 &&
|
|
15
|
-
${t(`badges.disabled.${
|
|
14
|
+
${e && n`
|
|
15
|
+
${t(`badges.disabled.${i}`)};
|
|
16
16
|
`}
|
|
17
17
|
|
|
18
|
-
${
|
|
18
|
+
${d === 1 && n`
|
|
19
19
|
width: ${t(`badges.sizes.${s}.height`)};
|
|
20
20
|
`}
|
|
21
21
|
`
|
|
22
|
-
), p =
|
|
22
|
+
), p = b(
|
|
23
23
|
({
|
|
24
24
|
children: e,
|
|
25
|
-
dataTestId:
|
|
25
|
+
dataTestId: d,
|
|
26
26
|
disabled: s,
|
|
27
|
-
size:
|
|
28
|
-
variant:
|
|
29
|
-
withNumberAbbreviation:
|
|
27
|
+
size: i = "md",
|
|
28
|
+
variant: o = "default",
|
|
29
|
+
withNumberAbbreviation: g,
|
|
30
30
|
...r
|
|
31
31
|
}, l) => {
|
|
32
|
-
let
|
|
33
|
-
const
|
|
34
|
-
return
|
|
35
|
-
|
|
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":
|
|
37
|
+
"data-testid": d,
|
|
38
38
|
disabled: s,
|
|
39
|
-
length:
|
|
39
|
+
length: $,
|
|
40
40
|
ref: l,
|
|
41
|
-
size:
|
|
42
|
-
variant:
|
|
43
|
-
...r
|
|
44
|
-
|
|
45
|
-
|
|
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 "
|
|
3
|
-
import { x as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
const
|
|
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
|
-
|
|
7
|
+
f as Box
|
|
8
8
|
};
|
package/dist/Breadcrumb.mjs
CHANGED
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
-
|
|
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
|
-
},
|
|
17
|
+
}, Ee = function() {
|
|
17
18
|
return x.some(function(e) {
|
|
18
19
|
return e.skippedTargets.length > 0;
|
|
19
20
|
});
|
|
20
|
-
},
|
|
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:
|
|
24
|
-
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message =
|
|
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
|
|
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,
|
|
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,
|
|
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
|
-
},
|
|
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 : {},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
81
|
-
devicePixelContentBoxSize:
|
|
82
|
-
borderBoxSize:
|
|
83
|
-
contentBoxSize:
|
|
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),
|
|
87
|
-
return
|
|
87
|
+
if (t === void 0 && (t = !1), I.has(e) && !t)
|
|
88
|
+
return I.get(e);
|
|
88
89
|
if (se(e))
|
|
89
|
-
return
|
|
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 &&
|
|
91
|
-
devicePixelContentBoxSize:
|
|
92
|
-
borderBoxSize:
|
|
93
|
-
contentBoxSize:
|
|
94
|
-
contentRect: new oe(d, l,
|
|
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
|
|
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 =
|
|
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
|
-
},
|
|
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
|
|
126
|
-
v.push(
|
|
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
|
-
},
|
|
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
|
-
},
|
|
144
|
+
}, Ie = function() {
|
|
144
145
|
var e = 0;
|
|
145
|
-
for (
|
|
146
|
-
e =
|
|
147
|
-
return
|
|
148
|
-
},
|
|
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 (!
|
|
154
|
+
if (!_) {
|
|
154
155
|
var t = 0, r = document.createTextNode(""), n = { characterData: !0 };
|
|
155
156
|
new MutationObserver(function() {
|
|
156
|
-
return
|
|
157
|
-
}).observe(r, n),
|
|
157
|
+
return Me();
|
|
158
|
+
}).observe(r, n), _ = function() {
|
|
158
159
|
r.textContent = "".concat(t ? t-- : t++);
|
|
159
160
|
};
|
|
160
161
|
}
|
|
161
|
-
ve.push(e),
|
|
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,
|
|
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,
|
|
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 =
|
|
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,
|
|
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(),
|
|
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(),
|
|
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
|
|
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
|
-
}(),
|
|
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
|
-
|
|
257
|
+
M.set(t, n);
|
|
257
258
|
}, e.observe = function(t, r, n) {
|
|
258
|
-
var i =
|
|
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 =
|
|
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 =
|
|
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 (!
|
|
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 (!
|
|
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),
|
|
296
|
-
${
|
|
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
|
-
${
|
|
303
|
+
${O("breadcrumbs.item.hover")};
|
|
303
304
|
}
|
|
304
305
|
|
|
305
306
|
&[aria-current='page'] {
|
|
306
|
-
${
|
|
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
|
-
`,
|
|
314
|
-
${
|
|
314
|
+
`, qe = y.spanBox`
|
|
315
|
+
${O("breadcrumbs.separator")};
|
|
315
316
|
display: flex;
|
|
316
317
|
align-items: center;
|
|
317
|
-
`,
|
|
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__ */
|
|
321
|
-
|
|
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
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
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 =
|
|
344
|
-
({ gradientBackground: e, theme: t }) =>
|
|
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 =
|
|
350
|
-
({ gradientBackground: e, theme: t }) =>
|
|
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
|
-
),
|
|
356
|
-
${
|
|
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
|
-
`,
|
|
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 =
|
|
382
|
+
const n = O(`colors.${t}`)({ theme: e }), i = Re(n, 0);
|
|
380
383
|
return `linear-gradient(to ${r}, ${n}, ${i} 100%)`;
|
|
381
|
-
}, he =
|
|
384
|
+
}, he = ne(
|
|
382
385
|
({
|
|
383
386
|
children: e,
|
|
384
387
|
gradientBackground: t = "neutral-10",
|
|
385
388
|
lastChildNotClickable: r = !0,
|
|
386
|
-
separator: n = /* @__PURE__ */
|
|
389
|
+
separator: n = /* @__PURE__ */ b.jsx(we, { size: "xs" }),
|
|
387
390
|
...i
|
|
388
391
|
}, s) => {
|
|
389
|
-
const o =
|
|
390
|
-
const h =
|
|
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
|
-
|
|
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
|
|
404
|
+
const g = j((a) => {
|
|
403
405
|
const u = 1 - a;
|
|
404
406
|
B(v.current, u), B(l.current, a);
|
|
405
|
-
}, []), T =
|
|
407
|
+
}, []), T = j(() => {
|
|
406
408
|
const {
|
|
407
409
|
current: { offsetWidth: a, scrollLeft: u, scrollWidth: h }
|
|
408
|
-
} = o,
|
|
409
|
-
|
|
410
|
-
}, [d,
|
|
411
|
-
() =>
|
|
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:
|
|
420
|
+
target: { offsetWidth: u, scrollLeft: h, scrollWidth: m }
|
|
419
421
|
}
|
|
420
|
-
] = a,
|
|
421
|
-
d || W(h === 0 ? 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
|
|
430
|
+
return q(() => {
|
|
429
431
|
const a = new Ve(S);
|
|
430
432
|
return a.observe(o.current), () => a.disconnect();
|
|
431
|
-
}, []),
|
|
432
|
-
v.current && l.current &&
|
|
433
|
-
}, [c,
|
|
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
|
|
438
|
-
Item:
|
|
443
|
+
const ct = Object.assign(he, {
|
|
444
|
+
Item: Je
|
|
439
445
|
});
|
|
440
446
|
export {
|
|
441
|
-
|
|
447
|
+
ct as Breadcrumb,
|
|
442
448
|
he as BreadcrumbComponent
|
|
443
449
|
};
|