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.
- package/dist/AXB53BZF-XKOjjeWO.mjs +25 -0
- package/dist/Accordion.mjs +30 -23
- package/dist/Alert.mjs +76 -70
- package/dist/AspectRatio.mjs +8 -10
- package/dist/Avatar.mjs +48 -47
- package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-CWSI38FM.mjs} +355 -351
- package/dist/Badge.mjs +25 -25
- package/dist/Box.mjs +5 -5
- package/dist/Breadcrumb.mjs +173 -168
- package/dist/Button.mjs +72 -67
- package/dist/ButtonGroup.mjs +13 -12
- 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-D_13Gd_3.mjs → CustomPopper-CZt4RioF.mjs} +3200 -3047
- package/dist/DatePicker.mjs +81 -80
- package/dist/DateTimePicker.mjs +67 -62
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +190 -174
- package/dist/DropdownMenu.mjs +389 -386
- package/dist/Field.mjs +104 -92
- package/dist/FieldGroup.mjs +12 -9
- package/dist/FileDrop.mjs +613 -576
- package/dist/FileUpload.mjs +95 -74
- package/dist/Files.mjs +46 -46
- package/dist/Flex.mjs +13 -13
- package/dist/Grid.mjs +29 -29
- package/dist/Hint.mjs +12 -12
- package/dist/ITI7HKP4-C89kOQb8.mjs +474 -0
- package/dist/Icon.mjs +24 -24
- package/dist/Icons.mjs +988 -988
- package/dist/IconsFont.mjs +159 -159
- package/dist/InputText.mjs +65 -57
- package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-afsomHuH.mjs} +109 -108
- package/dist/KUU7WJ55-CzsjuIMv.mjs +61 -0
- package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
- package/dist/Label.mjs +37 -35
- package/dist/Link.mjs +28 -24
- package/dist/Loader.mjs +20 -16
- package/dist/Logo.mjs +55 -42
- package/dist/MTZPJQMC-TybFZCho.mjs +15 -0
- package/dist/Modal.mjs +276 -253
- package/dist/NLEBE274-oSxMftGy.mjs +84 -0
- package/dist/P2CTZE2T-DOT1mNnX.mjs +301 -0
- package/dist/P4IRICAX-CWSZLTGz.mjs +37 -0
- package/dist/Pagination.mjs +104 -104
- package/dist/PasswordInput.mjs +35 -34
- package/dist/Picker.mjs +35 -33
- package/dist/Popover.mjs +100 -93
- package/dist/QYJ6MIDR-DJ-vUdAM.mjs +98 -0
- package/dist/Radio.mjs +58 -52
- package/dist/RadioGroup.mjs +46 -46
- package/dist/RadioTab.mjs +37 -35
- package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-B6m278Vb.mjs} +18 -17
- package/dist/Search.mjs +175 -161
- package/dist/Select.mjs +885 -847
- package/dist/Shape.mjs +9 -9
- package/dist/Slider.mjs +359 -336
- package/dist/Stack.mjs +22 -24
- package/dist/Swiper.mjs +324 -311
- package/dist/Table.mjs +23 -23
- package/dist/Tabs.mjs +250 -245
- package/dist/Tag.mjs +51 -49
- package/dist/Text.mjs +49 -47
- package/dist/Textarea.mjs +39 -39
- package/dist/TimePicker.mjs +57 -56
- package/dist/Toast.mjs +144 -137
- package/dist/Toggle.mjs +27 -24
- package/dist/Tooltip.mjs +115 -111
- package/dist/UniversalLink.mjs +16 -16
- package/dist/VEVQD5MH-0w9Y7Ytc.mjs +20 -0
- package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-C0UPBY-5.mjs} +61 -62
- package/dist/VariantIcon.mjs +14 -22
- package/dist/WelcomeLoader.mjs +4863 -9223
- package/dist/WuiProvider.mjs +69 -58
- package/dist/X5NMLKT6-BJw3xE-K.mjs +25 -0
- package/dist/YV4JVR4I-DPC8mMuG.mjs +344 -0
- package/dist/downshift.esm-B7Jil1wW.mjs +1082 -0
- package/dist/{field-styles-DLIhqG_8.mjs → field-styles-BVlRlvuu.mjs} +2 -2
- package/dist/{hex-to-rgba-BIDK-3ab.mjs → hex-to-rgba-DU_XzKIK.mjs} +2 -2
- package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
- package/dist/index-5HBq1O6Z.mjs +185 -0
- package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
- package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
- 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-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
- package/dist/index-DpkNUfAS.mjs +11 -0
- package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
- package/dist/{index-BJAZgeHL.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 +1175 -1120
- package/dist/throttle-CW18pWlW.mjs +13 -0
- package/dist/types/components/Accordion/index.d.ts +1 -1
- package/dist/types/components/Accordion/styles.d.ts +2 -2
- package/dist/types/components/Accordion/theme.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +2 -2
- package/dist/types/components/Alert/styles.d.ts +9 -9
- package/dist/types/components/Alert/theme.d.ts +4 -4
- package/dist/types/components/Avatar/index.d.ts +2 -3
- package/dist/types/components/Avatar/styles.d.ts +8 -8
- package/dist/types/components/Avatar/theme.d.ts +3 -3
- package/dist/types/components/Avatar/utils.d.ts +1 -1
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Badge/styles.d.ts +5 -5
- package/dist/types/components/Badge/theme.d.ts +1 -1
- package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +2 -2
- package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +4 -5
- package/dist/types/components/Button/styles.d.ts +1 -1
- 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 +4 -4
- package/dist/types/components/Card/index.d.ts +2 -3
- package/dist/types/components/Card/theme.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +2 -2
- package/dist/types/components/Checkbox/styles.d.ts +1 -1
- package/dist/types/components/Checkbox/theme.d.ts +1 -1
- package/dist/types/components/ClearButton/index.d.ts +5 -6
- package/dist/types/components/ClearButton/styles.d.ts +4 -4
- package/dist/types/components/CloseButton/styles.d.ts +4 -4
- 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/theme.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
- 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 +12 -12
- package/dist/types/components/Drawer/styles.d.ts +5 -5
- package/dist/types/components/Drawer/theme.d.ts +2 -2
- package/dist/types/components/DropdownMenu/index.d.ts +4 -4
- package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
- 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 +20 -20
- package/dist/types/components/FileDrop/theme.d.ts +1 -1
- package/dist/types/components/FileUpload/index.d.ts +13 -13
- package/dist/types/components/Files/index.d.ts +5 -5
- package/dist/types/components/Files/types.d.ts +1 -1
- package/dist/types/components/Hint/index.d.ts +1 -2
- package/dist/types/components/Hint/theme.d.ts +1 -1
- 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 +3 -3
- package/dist/types/components/Icons/Sun/content.json.d.ts +2 -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/Label/theme.d.ts +1 -1
- package/dist/types/components/Link/index.d.ts +5 -5
- package/dist/types/components/Link/styles.d.ts +4 -4
- package/dist/types/components/Link/theme.d.ts +1 -1
- package/dist/types/components/Loader/index.d.ts +1 -1
- package/dist/types/components/Loader/styles.d.ts +4 -4
- package/dist/types/components/Loader/theme.d.ts +4 -4
- 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 +5 -6
- package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
- package/dist/types/components/Modal/Assets/index.d.ts +9 -9
- package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
- package/dist/types/components/Modal/Close.d.ts +3 -4
- package/dist/types/components/Modal/Content.d.ts +4 -5
- 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 +17 -17
- package/dist/types/components/Modal/styles.d.ts +7 -7
- package/dist/types/components/Modal/theme.d.ts +2 -2
- package/dist/types/components/Pagination/index.d.ts +2 -2
- package/dist/types/components/Pagination/theme.d.ts +1 -1
- package/dist/types/components/Pagination/utils.d.ts +1 -1
- package/dist/types/components/Picker/index.d.ts +1 -1
- package/dist/types/components/Picker/styles.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/styles.d.ts +4 -4
- package/dist/types/components/Popover/theme.d.ts +1 -1
- package/dist/types/components/Popover/usePopover.d.ts +6 -6
- package/dist/types/components/Radio/index.d.ts +3 -3
- package/dist/types/components/Radio/styles.d.ts +5 -5
- package/dist/types/components/Radio/theme.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +2 -2
- package/dist/types/components/RadioTab/index.d.ts +3 -3
- package/dist/types/components/RadioTab/styles.d.ts +3 -9
- package/dist/types/components/RadioTab/theme.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +5 -5
- package/dist/types/components/Select/index.d.ts +11 -11
- package/dist/types/components/Select/styles.d.ts +6 -6
- package/dist/types/components/Select/utils.d.ts +11 -7
- package/dist/types/components/Shape/index.d.ts +1 -1
- package/dist/types/components/Shape/styles.d.ts +3 -3
- 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 +16 -16
- package/dist/types/components/Slider/theme.d.ts +1 -1
- package/dist/types/components/Stack/index.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +17 -18
- package/dist/types/components/Swiper/styles.d.ts +56 -56
- package/dist/types/components/Swiper/theme.d.ts +1 -1
- package/dist/types/components/System/index.d.ts +14 -14
- package/dist/types/components/Table/index.d.ts +6 -7
- package/dist/types/components/Table/styles.d.ts +1 -1
- package/dist/types/components/Table/theme.d.ts +1 -1
- package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
- package/dist/types/components/Tabs/TabList.d.ts +4 -4
- package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
- package/dist/types/components/Tabs/styles.d.ts +2 -2
- package/dist/types/components/Tabs/theme.d.ts +2 -2
- 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 +3 -3
- package/dist/types/components/Text/index.d.ts +2 -2
- package/dist/types/components/Textarea/index.d.ts +1 -1
- package/dist/types/components/Textarea/theme.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 +5 -5
- package/dist/types/components/Toast/index.d.ts +6 -6
- package/dist/types/components/Toast/styles.d.ts +16 -16
- package/dist/types/components/Toast/theme.d.ts +2 -2
- package/dist/types/components/Toast/utils.d.ts +13 -13
- package/dist/types/components/Toggle/index.d.ts +3 -3
- package/dist/types/components/Toggle/styles.d.ts +5 -4
- package/dist/types/components/Toggle/theme.d.ts +6 -6
- package/dist/types/components/Tooltip/index.d.ts +2 -2
- package/dist/types/components/Tooltip/styles.d.ts +1 -1
- package/dist/types/components/Tooltip/theme.d.ts +1 -1
- 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 +3 -3
- package/dist/types/components/WuiProvider/font.d.ts +3 -5
- package/dist/types/components/WuiProvider/index.d.ts +1 -1
- package/dist/types/theme/colors.d.ts +3 -11
- package/dist/types/theme/dark.d.ts +1 -1
- package/dist/types/theme/defaultFields.d.ts +10 -10
- 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 +1 -1
- package/dist/types/theme/space.d.ts +1 -1
- package/dist/types/theme/typography.d.ts +1 -1
- package/dist/types/utils/field-styles.d.ts +6 -6
- 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/use-viewport.d.ts +2 -2
- package/dist/types/utils/wrap-children.d.ts +1 -1
- package/dist/{use-fork-ref-CUZErtAC.mjs → use-fork-ref-DvaCTfQ_.mjs} +4 -3
- package/dist/use-viewport-CWpjoHXy.mjs +16 -0
- package/dist/utils.mjs +96 -85
- package/dist/wrap-children-DBSD-X5-.mjs +9 -0
- package/package.json +9 -36
- package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
- package/dist/ITI7HKP4-BONrZ9Pq.mjs +0 -473
- package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
- package/dist/LVA2YJMS-qFC9J-lt.mjs +0 -1479
- package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
- package/dist/NLEBE274-C94QU78N.mjs +0 -84
- package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
- package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
- package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
- package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
- package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
- package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
- package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
- package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
- package/dist/index-BDeIsk2X.mjs +0 -184
- package/dist/index-BRDOakbf.mjs +0 -11
- package/dist/index-BpRjq7lj.mjs +0 -11
- package/dist/index-BrfXjmHY.mjs +0 -36
- package/dist/index-CExLVjET.mjs +0 -26
- package/dist/index-DEJJvyGk.mjs +0 -66
- package/dist/index-u1oHKa7X.mjs +0 -16
- package/dist/radio-group-CGC6DTFJ.mjs +0 -51
- package/dist/throttle-BDBzFeFj.mjs +0 -13
- package/dist/use-viewport-m3glsbna.mjs +0 -16
- package/dist/wrap-children-aq69jtFP.mjs +0 -12
package/dist/Breadcrumb.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
},
|
|
16
|
-
return
|
|
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.",
|
|
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
|
|
28
|
+
var z = function(e) {
|
|
29
29
|
return Object.freeze(e);
|
|
30
|
-
},
|
|
30
|
+
}, Se = /* @__PURE__ */ function() {
|
|
31
31
|
function e(t, r) {
|
|
32
|
-
this.inlineSize = t, this.blockSize = r,
|
|
32
|
+
this.inlineSize = t, this.blockSize = r, z(this);
|
|
33
33
|
}
|
|
34
34
|
return e;
|
|
35
|
-
}(),
|
|
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,
|
|
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,
|
|
41
|
-
return { x: r, y: n, top: i, right:
|
|
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
|
-
}(),
|
|
45
|
+
}(), V = function(e) {
|
|
46
46
|
return e instanceof SVGElement && "getBBox" in e;
|
|
47
|
-
},
|
|
48
|
-
if (
|
|
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,
|
|
53
|
-
return !(
|
|
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
|
-
},
|
|
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/,
|
|
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
|
-
},
|
|
78
|
-
return e === void 0 && (e = 0), t === void 0 && (t = 0), r === void 0 && (r = !1), new
|
|
79
|
-
}, Q =
|
|
80
|
-
devicePixelContentBoxSize:
|
|
81
|
-
borderBoxSize:
|
|
82
|
-
contentBoxSize:
|
|
83
|
-
contentRect: new
|
|
84
|
-
}),
|
|
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 (
|
|
87
|
+
if (ae(e))
|
|
88
88
|
return M.set(e, Q), Q;
|
|
89
|
-
var r = getComputedStyle(e), n =
|
|
90
|
-
devicePixelContentBoxSize:
|
|
91
|
-
borderBoxSize:
|
|
92
|
-
contentBoxSize:
|
|
93
|
-
contentRect: new
|
|
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,
|
|
96
|
-
},
|
|
97
|
-
var n =
|
|
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
|
|
104
|
+
return a;
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, Ie = /* @__PURE__ */ function() {
|
|
107
107
|
function e(t) {
|
|
108
|
-
var r =
|
|
109
|
-
this.target = t, this.contentRect = r.contentRect, this.borderBoxSize =
|
|
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
|
-
}(),
|
|
113
|
-
if (
|
|
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
|
-
},
|
|
118
|
+
}, Me = function() {
|
|
119
119
|
var e = 1 / 0, t = [];
|
|
120
|
-
|
|
120
|
+
w.forEach(function(o) {
|
|
121
121
|
if (o.activeTargets.length !== 0) {
|
|
122
|
-
var
|
|
122
|
+
var v = [];
|
|
123
123
|
o.activeTargets.forEach(function(c) {
|
|
124
|
-
var
|
|
125
|
-
|
|
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,
|
|
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
|
-
|
|
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() && (
|
|
139
|
+
i.isActive() && (ve(i.target) > e ? r.activeTargets.push(i) : r.skippedTargets.push(i));
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
|
-
},
|
|
142
|
+
}, Ae = function() {
|
|
143
143
|
var e = 0;
|
|
144
|
-
for (Z(e);
|
|
145
|
-
e =
|
|
146
|
-
return
|
|
147
|
-
},
|
|
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
|
-
},
|
|
152
|
-
if (!
|
|
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
|
|
156
|
-
}).observe(r, n),
|
|
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),
|
|
161
|
-
},
|
|
162
|
-
|
|
160
|
+
le.push(e), F();
|
|
161
|
+
}, We = function(e) {
|
|
162
|
+
Ne(function() {
|
|
163
163
|
requestAnimationFrame(e);
|
|
164
164
|
});
|
|
165
|
-
}, N = 0,
|
|
165
|
+
}, N = 0, $e = function() {
|
|
166
166
|
return !!N;
|
|
167
|
-
},
|
|
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
|
-
],
|
|
182
|
+
], te = function(e) {
|
|
183
183
|
return e === void 0 && (e = 0), Date.now() + e;
|
|
184
|
-
},
|
|
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 =
|
|
194
|
-
|
|
195
|
-
var n =
|
|
196
|
-
|
|
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 =
|
|
199
|
+
i = Ae();
|
|
200
200
|
} finally {
|
|
201
|
-
if (
|
|
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,
|
|
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(),
|
|
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(),
|
|
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
|
-
}(),
|
|
226
|
-
!N && e > 0 &&
|
|
227
|
-
},
|
|
228
|
-
return !
|
|
229
|
-
},
|
|
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 =
|
|
238
|
-
return
|
|
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
|
-
}(),
|
|
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(),
|
|
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
|
|
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),
|
|
258
|
-
|
|
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 =
|
|
261
|
-
i >= 0 && (
|
|
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
|
-
}(),
|
|
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
|
|
295
|
-
${
|
|
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
|
-
${
|
|
301
|
+
${O("breadcrumbs.item.hover")};
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
&[aria-current='page'] {
|
|
305
|
-
${
|
|
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 =
|
|
313
|
-
${
|
|
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 },
|
|
317
|
+
({ children: e, dataTestId: t, isActive: r, separator: n, ...i }, a) => {
|
|
318
318
|
const o = i.href || i.to;
|
|
319
|
-
return /* @__PURE__ */ g.
|
|
320
|
-
|
|
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
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
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 =
|
|
343
|
-
({ gradientBackground: e, theme: t }) =>
|
|
344
|
+
), de = y.spanBox(
|
|
345
|
+
({ gradientBackground: e, theme: t }) => oe`
|
|
344
346
|
left: 0;
|
|
345
|
-
background-image: ${
|
|
347
|
+
background-image: ${he(t, e)};
|
|
346
348
|
transform-origin: left;
|
|
347
349
|
`
|
|
348
|
-
),
|
|
349
|
-
({ gradientBackground: e, theme: t }) =>
|
|
350
|
+
), fe = y.spanBox(
|
|
351
|
+
({ gradientBackground: e, theme: t }) => oe`
|
|
350
352
|
right: 0;
|
|
351
|
-
background-image: ${
|
|
353
|
+
background-image: ${he(t, e, "left")};
|
|
352
354
|
transform-origin: right;
|
|
353
355
|
`
|
|
354
|
-
), Ye =
|
|
355
|
-
${
|
|
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
|
-
${
|
|
363
|
+
${fe} {
|
|
362
364
|
position: absolute;
|
|
363
365
|
bottom: 0;
|
|
364
366
|
top: 0;
|
|
365
367
|
width: 30;
|
|
366
368
|
}
|
|
367
|
-
`, Ke =
|
|
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
|
-
`,
|
|
378
|
-
const n =
|
|
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
|
-
},
|
|
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.
|
|
387
|
+
separator: n = /* @__PURE__ */ g.jsx(ze, { size: "xs" }),
|
|
386
388
|
...i
|
|
387
|
-
},
|
|
388
|
-
const o =
|
|
389
|
-
const
|
|
390
|
-
return
|
|
391
|
-
|
|
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:
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
});
|
|
395
|
+
separator: p ? void 0 : n,
|
|
396
|
+
...s.props
|
|
397
|
+
}) : s;
|
|
397
398
|
});
|
|
398
|
-
function B(
|
|
399
|
-
|
|
399
|
+
function B(s, u) {
|
|
400
|
+
s && (s.style.transform = `scale3d(${u}, 1, 1)`);
|
|
400
401
|
}
|
|
401
|
-
const m = q((
|
|
402
|
-
const u = 1 -
|
|
403
|
-
B(
|
|
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
|
-
|
|
407
|
-
|
|
408
|
-
m(
|
|
409
|
-
}, [
|
|
410
|
-
() =>
|
|
411
|
-
(
|
|
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:
|
|
418
|
+
target: { offsetWidth: p, scrollLeft: x, scrollWidth: h }
|
|
418
419
|
}
|
|
419
|
-
] =
|
|
420
|
-
|
|
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
|
-
[
|
|
426
|
+
[d]
|
|
426
427
|
);
|
|
427
428
|
return J(() => {
|
|
428
|
-
const
|
|
429
|
-
return
|
|
429
|
+
const s = new Xe(S);
|
|
430
|
+
return o.current && s.observe(o.current), () => s.disconnect();
|
|
430
431
|
}, []), J(() => {
|
|
431
|
-
|
|
432
|
-
}, [c, m]), /* @__PURE__ */ g.
|
|
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
|
-
|
|
436
|
-
const
|
|
440
|
+
pe.displayName = "Breadcrumb";
|
|
441
|
+
const at = Object.assign(pe, {
|
|
437
442
|
Item: Ue
|
|
438
443
|
});
|
|
439
444
|
export {
|
|
440
|
-
|
|
441
|
-
|
|
445
|
+
at as Breadcrumb,
|
|
446
|
+
pe as BreadcrumbComponent
|
|
442
447
|
};
|