welcome-ui 8.1.0-alpha.3 → 8.1.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-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 +172 -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 +27 -3
- 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/Swiper.mjs
CHANGED
|
@@ -1,68 +1,67 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { IconsFont as ot } from "./IconsFont.mjs";
|
|
7
|
-
import { u as mt } from "./use-viewport-CWpjoHXy.mjs";
|
|
2
|
+
import C, { useRef as lt, useEffect as X, useState as tt, useMemo as ut, Children as it, cloneElement as ft, useCallback as Q } from "react";
|
|
3
|
+
import { c as Y, g as ht } from "./_commonjsHelpers-CXJ7dpIk.mjs";
|
|
4
|
+
import B, { system as ct, css as P, th as rt, useTheme as gt } from "@xstyled/styled-components";
|
|
5
|
+
import { u as mt } from "./use-viewport-CfklieD-.mjs";
|
|
8
6
|
import { Button as pt } from "./Button.mjs";
|
|
7
|
+
import { IconsFont as ot } from "./IconsFont.mjs";
|
|
9
8
|
var et, st;
|
|
10
9
|
function wt() {
|
|
11
10
|
if (st) return et;
|
|
12
11
|
st = 1;
|
|
13
|
-
var
|
|
12
|
+
var i = "Expected a function", e = NaN, a = "[object Symbol]", f = /^\s+|\s+$/g, s = /^[-+]0x[0-9a-f]+$/i, d = /^0b[01]+$/i, g = /^0o[0-7]+$/i, S = parseInt, D = typeof Y == "object" && Y && Y.Object === Object && Y, L = typeof self == "object" && self && self.Object === Object && self, V = D || L || Function("return this")(), N = Object.prototype, z = N.toString, h = Math.max, H = Math.min, $ = function() {
|
|
14
13
|
return V.Date.now();
|
|
15
14
|
};
|
|
16
|
-
function
|
|
17
|
-
var
|
|
15
|
+
function T(t, r, u) {
|
|
16
|
+
var R, A, W, m, p, x, O = 0, J = !1, j = !1, G = !0;
|
|
18
17
|
if (typeof t != "function")
|
|
19
|
-
throw new TypeError(
|
|
20
|
-
|
|
18
|
+
throw new TypeError(i);
|
|
19
|
+
r = M(r) || 0, y(u) && (J = !!u.leading, j = "maxWait" in u, W = j ? h(M(u.maxWait) || 0, r) : W, G = "trailing" in u ? !!u.trailing : G);
|
|
21
20
|
function K(n) {
|
|
22
|
-
var
|
|
23
|
-
return
|
|
24
|
-
}
|
|
25
|
-
function R(n) {
|
|
26
|
-
return O = n, p = setTimeout(l, o), J ? K(n) : m;
|
|
21
|
+
var b = R, I = A;
|
|
22
|
+
return R = A = void 0, O = n, m = t.apply(I, b), m;
|
|
27
23
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
return T ? H(Z, W - I) : Z;
|
|
24
|
+
function E(n) {
|
|
25
|
+
return O = n, p = setTimeout(l, r), J ? K(n) : m;
|
|
31
26
|
}
|
|
32
27
|
function _(n) {
|
|
33
|
-
var
|
|
34
|
-
return j
|
|
28
|
+
var b = n - x, I = n - O, Z = r - b;
|
|
29
|
+
return j ? H(Z, W - I) : Z;
|
|
30
|
+
}
|
|
31
|
+
function F(n) {
|
|
32
|
+
var b = n - x, I = n - O;
|
|
33
|
+
return x === void 0 || b >= r || b < 0 || j && I >= W;
|
|
35
34
|
}
|
|
36
35
|
function l() {
|
|
37
|
-
var n =
|
|
38
|
-
if (
|
|
39
|
-
return
|
|
40
|
-
p = setTimeout(l,
|
|
36
|
+
var n = $();
|
|
37
|
+
if (F(n))
|
|
38
|
+
return o(n);
|
|
39
|
+
p = setTimeout(l, _(n));
|
|
41
40
|
}
|
|
42
|
-
function
|
|
43
|
-
return p = void 0, G &&
|
|
41
|
+
function o(n) {
|
|
42
|
+
return p = void 0, G && R ? K(n) : (R = A = void 0, m);
|
|
44
43
|
}
|
|
45
44
|
function c() {
|
|
46
|
-
p !== void 0 && clearTimeout(p), O = 0,
|
|
45
|
+
p !== void 0 && clearTimeout(p), O = 0, R = x = A = p = void 0;
|
|
47
46
|
}
|
|
48
|
-
function
|
|
49
|
-
return p === void 0 ? m :
|
|
47
|
+
function w() {
|
|
48
|
+
return p === void 0 ? m : o($());
|
|
50
49
|
}
|
|
51
50
|
function v() {
|
|
52
|
-
var n =
|
|
53
|
-
if (
|
|
51
|
+
var n = $(), b = F(n);
|
|
52
|
+
if (R = arguments, A = this, x = n, b) {
|
|
54
53
|
if (p === void 0)
|
|
55
|
-
return
|
|
56
|
-
if (
|
|
57
|
-
return p = setTimeout(l,
|
|
54
|
+
return E(x);
|
|
55
|
+
if (j)
|
|
56
|
+
return p = setTimeout(l, r), K(x);
|
|
58
57
|
}
|
|
59
|
-
return p === void 0 && (p = setTimeout(l,
|
|
58
|
+
return p === void 0 && (p = setTimeout(l, r)), m;
|
|
60
59
|
}
|
|
61
|
-
return v.cancel = c, v.flush =
|
|
60
|
+
return v.cancel = c, v.flush = w, v;
|
|
62
61
|
}
|
|
63
62
|
function y(t) {
|
|
64
|
-
var
|
|
65
|
-
return !!t && (
|
|
63
|
+
var r = typeof t;
|
|
64
|
+
return !!t && (r == "object" || r == "function");
|
|
66
65
|
}
|
|
67
66
|
function U(t) {
|
|
68
67
|
return !!t && typeof t == "object";
|
|
@@ -76,32 +75,45 @@ function wt() {
|
|
|
76
75
|
if (q(t))
|
|
77
76
|
return e;
|
|
78
77
|
if (y(t)) {
|
|
79
|
-
var
|
|
80
|
-
t = y(
|
|
78
|
+
var r = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
79
|
+
t = y(r) ? r + "" : r;
|
|
81
80
|
}
|
|
82
81
|
if (typeof t != "string")
|
|
83
82
|
return t === 0 ? t : +t;
|
|
84
83
|
t = t.replace(f, "");
|
|
85
84
|
var u = d.test(t);
|
|
86
|
-
return u || g.test(t) ?
|
|
85
|
+
return u || g.test(t) ? S(t.slice(2), u ? 2 : 8) : s.test(t) ? e : +t;
|
|
87
86
|
}
|
|
88
|
-
return et =
|
|
87
|
+
return et = T, et;
|
|
89
88
|
}
|
|
90
89
|
var bt = wt();
|
|
91
|
-
const $t = /* @__PURE__ */
|
|
90
|
+
const $t = /* @__PURE__ */ ht(bt), yt = (i, e) => {
|
|
91
|
+
const a = lt();
|
|
92
|
+
X(() => {
|
|
93
|
+
a.current = i;
|
|
94
|
+
}, [i]), X(() => {
|
|
95
|
+
function f() {
|
|
96
|
+
a.current();
|
|
97
|
+
}
|
|
98
|
+
if (e !== null) {
|
|
99
|
+
const s = setInterval(f, e);
|
|
100
|
+
return () => clearInterval(s);
|
|
101
|
+
}
|
|
102
|
+
}, [e]);
|
|
103
|
+
}, k = (i = 3, e, a) => {
|
|
92
104
|
if (e === 0)
|
|
93
|
-
return `${100 /
|
|
94
|
-
const
|
|
95
|
-
return `calc(${100 /
|
|
105
|
+
return `${100 / i}%`;
|
|
106
|
+
const s = a(e * (i === 1 ? 4 : 2));
|
|
107
|
+
return `calc(${100 / i}% - ${s})`;
|
|
96
108
|
}, dt = B.div`
|
|
97
109
|
overflow-y: hidden;
|
|
98
110
|
position: relative;
|
|
99
111
|
width: 100%;
|
|
100
112
|
height: 100%;
|
|
101
113
|
|
|
102
|
-
${
|
|
114
|
+
${ct}
|
|
103
115
|
`, at = B(pt)(
|
|
104
|
-
({ disabled:
|
|
116
|
+
({ disabled: i, withDarkUI: e, withNavigation: { desktop: a, mobile: f } }) => P`
|
|
105
117
|
top: 50%;
|
|
106
118
|
transform: translate3d(0, -50%, 0);
|
|
107
119
|
z-index: ${f ? 1 : -1};
|
|
@@ -120,13 +132,13 @@ const $t = /* @__PURE__ */ ft(bt), k = (r = 3, e, a) => {
|
|
|
120
132
|
display: ${a ? "flex" : "none"};
|
|
121
133
|
}
|
|
122
134
|
|
|
123
|
-
${
|
|
135
|
+
${i && P`
|
|
124
136
|
opacity: 0;
|
|
125
137
|
z-index: -1;
|
|
126
138
|
`};
|
|
127
139
|
`
|
|
128
|
-
),
|
|
129
|
-
({ withPagination: { desktop:
|
|
140
|
+
), vt = B.divBox(
|
|
141
|
+
({ withPagination: { desktop: i, mobile: e } }) => P`
|
|
130
142
|
justify-content: center;
|
|
131
143
|
position: absolute;
|
|
132
144
|
bottom: 0;
|
|
@@ -137,24 +149,24 @@ const $t = /* @__PURE__ */ ft(bt), k = (r = 3, e, a) => {
|
|
|
137
149
|
display: ${e ? "flex" : "none"};
|
|
138
150
|
|
|
139
151
|
@media (min-width: md) {
|
|
140
|
-
z-index: ${
|
|
141
|
-
display: ${
|
|
152
|
+
z-index: ${i ? 1 : -1};
|
|
153
|
+
display: ${i ? "flex" : "none"};
|
|
142
154
|
}
|
|
143
155
|
`
|
|
144
|
-
),
|
|
145
|
-
({ active:
|
|
156
|
+
), St = B.div(
|
|
157
|
+
({ active: i, withDarkUI: e }) => P`
|
|
146
158
|
height: 10;
|
|
147
159
|
width: 10;
|
|
148
160
|
border-radius: 50%;
|
|
149
161
|
cursor: pointer;
|
|
150
162
|
margin: 0 xxs;
|
|
151
|
-
${
|
|
163
|
+
${i ? rt("swipers.navigation.bullet.active") : rt("swipers.navigation.bullet.default")}
|
|
152
164
|
${e && P`
|
|
153
|
-
background-color: ${
|
|
165
|
+
background-color: ${i ? "neutral-90" : "neutral-50"};
|
|
154
166
|
`}
|
|
155
|
-
${
|
|
167
|
+
${ct}
|
|
156
168
|
`
|
|
157
|
-
), xt = B.ulBox(({ fullWidth:
|
|
169
|
+
), xt = B.ulBox(({ fullWidth: i, slidesPerView: { desktop: e, mobile: a, tablet: f }, spaceBetween: s, theme: d }) => P`
|
|
158
170
|
scroll-snap-type: x mandatory;
|
|
159
171
|
display: flex;
|
|
160
172
|
-webkit-overflow-scrolling: touch;
|
|
@@ -176,9 +188,9 @@ const $t = /* @__PURE__ */ ft(bt), k = (r = 3, e, a) => {
|
|
|
176
188
|
|
|
177
189
|
> * {
|
|
178
190
|
list-style-type: none;
|
|
179
|
-
margin-right: ${
|
|
180
|
-
min-width: ${k(a,
|
|
181
|
-
max-width: ${k(a,
|
|
191
|
+
margin-right: ${s};
|
|
192
|
+
min-width: ${k(a, s, d.toRem)};
|
|
193
|
+
max-width: ${k(a, s, d.toRem)};
|
|
182
194
|
flex: 1;
|
|
183
195
|
|
|
184
196
|
&:last-child {
|
|
@@ -189,8 +201,8 @@ const $t = /* @__PURE__ */ ft(bt), k = (r = 3, e, a) => {
|
|
|
189
201
|
@media (min-width: sm) {
|
|
190
202
|
${a && P`
|
|
191
203
|
> * {
|
|
192
|
-
min-width: ${k(a,
|
|
193
|
-
max-width: ${k(a,
|
|
204
|
+
min-width: ${k(a, s, d.toRem)};
|
|
205
|
+
max-width: ${k(a, s, d.toRem)};
|
|
194
206
|
|
|
195
207
|
&:nth-of-type(${a}n + 1) {
|
|
196
208
|
scroll-snap-align: start;
|
|
@@ -202,8 +214,8 @@ const $t = /* @__PURE__ */ ft(bt), k = (r = 3, e, a) => {
|
|
|
202
214
|
@media (min-width: md) {
|
|
203
215
|
${f && P`
|
|
204
216
|
> * {
|
|
205
|
-
min-width: ${k(f,
|
|
206
|
-
max-width: ${k(f,
|
|
217
|
+
min-width: ${k(f, s, d.toRem)};
|
|
218
|
+
max-width: ${k(f, s, d.toRem)};
|
|
207
219
|
|
|
208
220
|
&:nth-of-type(${f}n + 1) {
|
|
209
221
|
scroll-snap-align: start;
|
|
@@ -215,8 +227,8 @@ const $t = /* @__PURE__ */ ft(bt), k = (r = 3, e, a) => {
|
|
|
215
227
|
@media (min-width: lg) {
|
|
216
228
|
${e && P`
|
|
217
229
|
> * {
|
|
218
|
-
min-width: ${k(e,
|
|
219
|
-
max-width: ${k(e,
|
|
230
|
+
min-width: ${k(e, s, d.toRem)};
|
|
231
|
+
max-width: ${k(e, s, d.toRem)};
|
|
220
232
|
|
|
221
233
|
scroll-snap-align: unset;
|
|
222
234
|
|
|
@@ -232,232 +244,213 @@ const $t = /* @__PURE__ */ ft(bt), k = (r = 3, e, a) => {
|
|
|
232
244
|
}
|
|
233
245
|
|
|
234
246
|
@media (min-width: xl) {
|
|
235
|
-
${e &&
|
|
247
|
+
${e && i && P`
|
|
236
248
|
> * {
|
|
237
|
-
min-width: ${k(e + 2,
|
|
238
|
-
max-width: ${k(e + 2,
|
|
249
|
+
min-width: ${k(e + 2, s, d.toRem)};
|
|
250
|
+
max-width: ${k(e + 2, s, d.toRem)};
|
|
239
251
|
}
|
|
240
252
|
`}
|
|
241
253
|
}
|
|
242
|
-
`),
|
|
243
|
-
const a = ct();
|
|
244
|
-
X(() => {
|
|
245
|
-
a.current = r;
|
|
246
|
-
}, [r]), X(() => {
|
|
247
|
-
function f() {
|
|
248
|
-
var i;
|
|
249
|
-
(i = a.current) == null || i.call(a);
|
|
250
|
-
}
|
|
251
|
-
if (e !== 0) {
|
|
252
|
-
const i = setInterval(f, e);
|
|
253
|
-
return () => clearInterval(i);
|
|
254
|
-
}
|
|
255
|
-
}, [e]);
|
|
256
|
-
}, Et = (r = {}) => {
|
|
254
|
+
`), Ct = (i = {}) => {
|
|
257
255
|
const {
|
|
258
256
|
autoplay: e = !1,
|
|
259
257
|
centeredSlides: a = !1,
|
|
260
258
|
duration: f = 5e3,
|
|
261
|
-
firstSlideToShow:
|
|
259
|
+
firstSlideToShow: s = 0,
|
|
262
260
|
fullWidth: d = !1,
|
|
263
261
|
id: g = "swiper",
|
|
264
|
-
loop:
|
|
262
|
+
loop: S = !1,
|
|
265
263
|
navigationSize: D = "md",
|
|
266
|
-
slidesPerView:
|
|
264
|
+
slidesPerView: L = { mobile: 1, tablet: 1, desktop: 1 },
|
|
267
265
|
spaceBetween: V = 20,
|
|
268
266
|
withDarkUI: N = !1,
|
|
269
|
-
withNavigation: z = {
|
|
270
|
-
withPagination: h = {
|
|
271
|
-
} =
|
|
267
|
+
withNavigation: z = { mobile: !0, desktop: !0 },
|
|
268
|
+
withPagination: h = { mobile: !1, desktop: !1 }
|
|
269
|
+
} = i, H = S || e, { width: $ } = mt(), [T, y] = tt(0), [U, q] = tt(!1), [M, t] = tt(!1), r = lt(), { screens: u } = gt(), R = ut(() => $ <= u.md ? L.mobile : $ <= u.lg ? L.tablet : $ >= u["4xl"] && d ? L.desktop + 2 : L.desktop, [d, $, u, L]);
|
|
272
270
|
return {
|
|
273
|
-
autoplay: e,
|
|
274
271
|
centeredSlides: a,
|
|
275
|
-
|
|
276
|
-
currentSlidesPerView:
|
|
277
|
-
|
|
278
|
-
|
|
272
|
+
firstSlideToShow: s,
|
|
273
|
+
currentSlidesPerView: R,
|
|
274
|
+
currentPage: T,
|
|
275
|
+
setCurrentPage: y,
|
|
279
276
|
fullWidth: d,
|
|
280
277
|
id: g,
|
|
281
278
|
navigationSize: D,
|
|
282
|
-
|
|
283
|
-
|
|
279
|
+
slidesPerView: L,
|
|
280
|
+
spaceBetween: V,
|
|
281
|
+
withNavigation: z,
|
|
282
|
+
withPagination: h,
|
|
283
|
+
autoplay: e,
|
|
284
|
+
shouldLoop: H,
|
|
285
|
+
duration: f,
|
|
286
|
+
withDarkUI: N,
|
|
287
|
+
ref: r,
|
|
284
288
|
setShowLeftArrow: q,
|
|
285
289
|
setShowRightArrow: t,
|
|
286
|
-
shouldLoop: H,
|
|
287
290
|
showLeftArrow: U,
|
|
288
|
-
showRightArrow: M
|
|
289
|
-
slidesPerView: S,
|
|
290
|
-
spaceBetween: V,
|
|
291
|
-
withDarkUI: N,
|
|
292
|
-
withNavigation: z,
|
|
293
|
-
withPagination: h
|
|
291
|
+
showRightArrow: M
|
|
294
292
|
};
|
|
295
|
-
},
|
|
293
|
+
}, Pt = ({ children: i, dataTestId: e, store: a, ...f }) => {
|
|
296
294
|
const {
|
|
297
|
-
autoplay:
|
|
295
|
+
autoplay: s,
|
|
298
296
|
centeredSlides: d,
|
|
299
297
|
currentPage: g,
|
|
300
|
-
currentSlidesPerView:
|
|
298
|
+
currentSlidesPerView: S,
|
|
301
299
|
duration: D,
|
|
302
|
-
firstSlideToShow:
|
|
300
|
+
firstSlideToShow: L,
|
|
303
301
|
fullWidth: V,
|
|
304
302
|
id: N,
|
|
305
303
|
navigationSize: z,
|
|
306
304
|
ref: h,
|
|
307
305
|
setCurrentPage: H,
|
|
308
|
-
setShowLeftArrow:
|
|
309
|
-
setShowRightArrow:
|
|
306
|
+
setShowLeftArrow: $,
|
|
307
|
+
setShowRightArrow: T,
|
|
310
308
|
shouldLoop: y,
|
|
311
309
|
showLeftArrow: U,
|
|
312
310
|
showRightArrow: q,
|
|
313
311
|
slidesPerView: M,
|
|
314
312
|
spaceBetween: t,
|
|
315
|
-
withDarkUI:
|
|
313
|
+
withDarkUI: r,
|
|
316
314
|
withNavigation: u,
|
|
317
|
-
withPagination:
|
|
318
|
-
} = a, A =
|
|
319
|
-
const c = `${N}-${
|
|
320
|
-
return
|
|
315
|
+
withPagination: R
|
|
316
|
+
} = a, A = it.toArray(i).length, W = Math.ceil(A / S), m = Array.from(Array(W).keys()), p = g === 0, x = g === m.length - 1, O = it.map(i, (l, o) => {
|
|
317
|
+
const c = `${N}-${o}`, w = o + 1, v = Math.ceil(w / S) - 1, n = x ? A - w >= S : v !== g;
|
|
318
|
+
return ft(l, {
|
|
321
319
|
...l.props,
|
|
320
|
+
id: c,
|
|
321
|
+
key: c,
|
|
322
322
|
"aria-hidden": n,
|
|
323
|
-
"aria-label": `${b} of ${A}`,
|
|
324
323
|
"aria-roledescription": "slide",
|
|
325
|
-
|
|
326
|
-
key: c
|
|
324
|
+
"aria-label": `${w} of ${A}`
|
|
327
325
|
});
|
|
328
326
|
}), J = d ? (
|
|
329
327
|
// if centeredSlides is true, we calculate which number is the middle page
|
|
330
328
|
Math.floor(W / 2)
|
|
331
329
|
) : (
|
|
332
330
|
// if centeredSlides is false, we calculate on which page the number in firstSlideToShow props is
|
|
333
|
-
Math.ceil(
|
|
334
|
-
),
|
|
331
|
+
Math.ceil(L / S) - 1
|
|
332
|
+
), j = Q(() => {
|
|
335
333
|
const l = h == null ? void 0 : h.current;
|
|
336
334
|
if (l && !y) {
|
|
337
|
-
const { offsetWidth:
|
|
338
|
-
|
|
335
|
+
const { offsetWidth: o, scrollLeft: c, scrollWidth: w } = l, v = !(c > t), n = !(w - (c + o) > t);
|
|
336
|
+
$(!v), T(!n);
|
|
339
337
|
} else
|
|
340
|
-
|
|
341
|
-
}, [h,
|
|
342
|
-
var
|
|
338
|
+
$(!0), T(!0);
|
|
339
|
+
}, [h, $, T, y, t]), G = () => {
|
|
340
|
+
var o, c;
|
|
343
341
|
const l = h == null ? void 0 : h.current;
|
|
344
342
|
if (l) {
|
|
345
|
-
const { children:
|
|
343
|
+
const { children: w, offsetWidth: v, scrollLeft: n, scrollWidth: b } = l, I = (c = (o = w == null ? void 0 : w[0]) == null ? void 0 : o.getBoundingClientRect()) == null ? void 0 : c.width, nt = !(b - (n + v) > t) ? m.length - 1 : Math.round(n / ((I + t) * S));
|
|
346
344
|
nt !== g && H(nt);
|
|
347
345
|
}
|
|
348
346
|
}, K = $t(() => {
|
|
349
|
-
|
|
350
|
-
}, 100),
|
|
351
|
-
(l,
|
|
352
|
-
var v, n,
|
|
353
|
-
const c = h == null ? void 0 : h.current,
|
|
347
|
+
j(), G();
|
|
348
|
+
}, 100), E = Q(
|
|
349
|
+
(l, o = !1) => {
|
|
350
|
+
var v, n, b;
|
|
351
|
+
const c = h == null ? void 0 : h.current, w = (b = (n = (v = c == null ? void 0 : c.children) == null ? void 0 : v[0]) == null ? void 0 : n.getBoundingClientRect()) == null ? void 0 : b.width;
|
|
354
352
|
c == null || c.scrollTo({
|
|
353
|
+
left: l * (w + t) * S,
|
|
354
|
+
top: 0,
|
|
355
355
|
// We don't want to have a scroll effect when we first render the swiper
|
|
356
|
-
behavior:
|
|
357
|
-
left: l * (b + t) * x,
|
|
358
|
-
top: 0
|
|
356
|
+
behavior: o ? "auto" : "smooth"
|
|
359
357
|
});
|
|
360
358
|
},
|
|
361
|
-
[
|
|
362
|
-
),
|
|
363
|
-
|
|
364
|
-
}, [g,
|
|
365
|
-
|
|
366
|
-
}, [m.length, g,
|
|
367
|
-
return
|
|
359
|
+
[S, t, h]
|
|
360
|
+
), _ = Q(() => {
|
|
361
|
+
E(y && x ? 0 : g + 1);
|
|
362
|
+
}, [g, E, x, y]), F = Q(() => {
|
|
363
|
+
E(p && y ? m.length - 1 : g - 1);
|
|
364
|
+
}, [m.length, g, E, p, y]);
|
|
365
|
+
return yt(
|
|
368
366
|
() => {
|
|
369
|
-
|
|
367
|
+
s && _();
|
|
370
368
|
},
|
|
371
|
-
|
|
369
|
+
s ? D : null
|
|
372
370
|
), X(() => {
|
|
373
|
-
const l = (
|
|
374
|
-
|
|
371
|
+
const l = (o) => {
|
|
372
|
+
o.code === "ArrowLeft" && F(), o.code === "ArrowRight" && _();
|
|
375
373
|
};
|
|
376
374
|
return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
|
|
377
|
-
}, [
|
|
378
|
-
|
|
375
|
+
}, [F, _]), X(() => {
|
|
376
|
+
E(J, !0);
|
|
379
377
|
}, []), X(() => {
|
|
380
|
-
|
|
381
|
-
}, [
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
{
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
);
|
|
452
|
-
})
|
|
453
|
-
}
|
|
454
|
-
)
|
|
455
|
-
] });
|
|
378
|
+
j();
|
|
379
|
+
}, [j, i]), /* @__PURE__ */ C.createElement(dt, { "data-testid": e, ...f }, /* @__PURE__ */ C.createElement(
|
|
380
|
+
xt,
|
|
381
|
+
{
|
|
382
|
+
fullWidth: V,
|
|
383
|
+
onScroll: K,
|
|
384
|
+
ref: h,
|
|
385
|
+
slidesPerView: M,
|
|
386
|
+
spaceBetween: t
|
|
387
|
+
},
|
|
388
|
+
O
|
|
389
|
+
), /* @__PURE__ */ C.createElement(
|
|
390
|
+
at,
|
|
391
|
+
{
|
|
392
|
+
"aria-label": "Previous slide",
|
|
393
|
+
"data-testid": e && `${e}-prev-button`,
|
|
394
|
+
disabled: !U,
|
|
395
|
+
left: 10,
|
|
396
|
+
onClick: F,
|
|
397
|
+
position: "absolute",
|
|
398
|
+
shape: "circle",
|
|
399
|
+
size: z,
|
|
400
|
+
variant: r ? "secondary" : "ghost",
|
|
401
|
+
withDarkUI: r,
|
|
402
|
+
withNavigation: u
|
|
403
|
+
},
|
|
404
|
+
/* @__PURE__ */ C.createElement(ot.Left, null)
|
|
405
|
+
), /* @__PURE__ */ C.createElement(
|
|
406
|
+
at,
|
|
407
|
+
{
|
|
408
|
+
"aria-label": "Next slide",
|
|
409
|
+
"data-testid": e && `${e}-next-button`,
|
|
410
|
+
disabled: !q,
|
|
411
|
+
onClick: _,
|
|
412
|
+
position: "absolute",
|
|
413
|
+
right: 10,
|
|
414
|
+
shape: "circle",
|
|
415
|
+
size: z,
|
|
416
|
+
variant: r ? "secondary" : "ghost",
|
|
417
|
+
withDarkUI: r,
|
|
418
|
+
withNavigation: u
|
|
419
|
+
},
|
|
420
|
+
/* @__PURE__ */ C.createElement(ot.Right, null)
|
|
421
|
+
), /* @__PURE__ */ C.createElement(
|
|
422
|
+
vt,
|
|
423
|
+
{
|
|
424
|
+
className: "swiper-pagination",
|
|
425
|
+
"data-testid": e && `${e}-pagination`,
|
|
426
|
+
role: "tablist",
|
|
427
|
+
withPagination: R
|
|
428
|
+
},
|
|
429
|
+
m.length > 1 && m.map((l, o) => {
|
|
430
|
+
const c = {
|
|
431
|
+
idx: o,
|
|
432
|
+
role: "tab",
|
|
433
|
+
"aria-controls": `${N}-${o}`,
|
|
434
|
+
"aria-label": `${o + 1} of ${m.length}`,
|
|
435
|
+
"aria-selected": o === g,
|
|
436
|
+
onClick: () => E(o)
|
|
437
|
+
};
|
|
438
|
+
return /* @__PURE__ */ C.createElement(
|
|
439
|
+
St,
|
|
440
|
+
{
|
|
441
|
+
active: o === g,
|
|
442
|
+
key: `bullet-${o + 1}`,
|
|
443
|
+
withDarkUI: r,
|
|
444
|
+
...c
|
|
445
|
+
}
|
|
446
|
+
);
|
|
447
|
+
})
|
|
448
|
+
));
|
|
456
449
|
};
|
|
457
|
-
|
|
458
|
-
const
|
|
450
|
+
Pt.displayName = "Swiper";
|
|
451
|
+
const Tt = dt;
|
|
459
452
|
export {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
453
|
+
Tt as StyledSwiper,
|
|
454
|
+
Pt as Swiper,
|
|
455
|
+
Ct as useSwiper
|
|
463
456
|
};
|