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