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/Tooltip.mjs
CHANGED
|
@@ -1,53 +1,52 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { Box as
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import
|
|
7
|
-
import { c as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
function vt(t = {}) {
|
|
2
|
+
import p, { useRef as G, useEffect as C, useState as J } from "react";
|
|
3
|
+
import M, { css as v, th as y } from "@xstyled/styled-components";
|
|
4
|
+
import { Box as U } from "./Box.mjs";
|
|
5
|
+
import { forwardRef as tt } from "./System.mjs";
|
|
6
|
+
import { c as et, d as ot, e as rt, f as nt, g as it, h as st } from "./BYC7LY2E-B1IDizRs.mjs";
|
|
7
|
+
import { c as j, a as at, b as A, d as B } from "./YV4JVR4I-Bh7B7TET.mjs";
|
|
8
|
+
import { B as I, C as E, D as $, v as ut, f as z, c as Y, h as L, _ as K, i as Q, E as lt, t as ct, g as P, d as W, Y as H, Z as dt, Q as pt, b as w } from "./LVA2YJMS-DDEmK0pp.mjs";
|
|
9
|
+
import { c as vt } from "./JC64G2H7-BzklVBKM.mjs";
|
|
10
|
+
function ft(t = {}) {
|
|
12
11
|
var r;
|
|
13
12
|
process.env.NODE_ENV !== "production" && t.type === "label" && console.warn(
|
|
14
13
|
"The `type` option on the tooltip store is deprecated.",
|
|
15
14
|
"Render a visually hidden label or use the `aria-label` or `aria-labelledby` attributes on the anchor element instead.",
|
|
16
15
|
"See https://ariakit.org/components/tooltip#tooltip-anchors-must-have-accessible-names"
|
|
17
16
|
);
|
|
18
|
-
const o = (r = t.store) == null ? void 0 : r.getState(), e =
|
|
19
|
-
placement:
|
|
17
|
+
const o = (r = t.store) == null ? void 0 : r.getState(), e = et(I($({}, t), {
|
|
18
|
+
placement: E(
|
|
20
19
|
t.placement,
|
|
21
20
|
o == null ? void 0 : o.placement,
|
|
22
21
|
"top"
|
|
23
22
|
),
|
|
24
|
-
hideTimeout:
|
|
25
|
-
})),
|
|
26
|
-
type:
|
|
27
|
-
skipTimeout:
|
|
28
|
-
}), i =
|
|
29
|
-
return
|
|
23
|
+
hideTimeout: E(t.hideTimeout, o == null ? void 0 : o.hideTimeout, 0)
|
|
24
|
+
})), f = I($({}, e.getState()), {
|
|
25
|
+
type: E(t.type, o == null ? void 0 : o.type, "description"),
|
|
26
|
+
skipTimeout: E(t.skipTimeout, o == null ? void 0 : o.skipTimeout, 300)
|
|
27
|
+
}), i = j(f, e, t.store);
|
|
28
|
+
return $($({}, e), i);
|
|
30
29
|
}
|
|
31
30
|
function mt(t, r, o) {
|
|
32
|
-
return A(t, o, "type"), A(t, o, "skipTimeout"),
|
|
31
|
+
return A(t, o, "type"), A(t, o, "skipTimeout"), ot(t, r, o);
|
|
33
32
|
}
|
|
34
33
|
function ht(t = {}) {
|
|
35
|
-
const [r, o] =
|
|
34
|
+
const [r, o] = at(ft, t);
|
|
36
35
|
return mt(r, o, t);
|
|
37
36
|
}
|
|
38
|
-
var
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
), k =
|
|
37
|
+
var X = ut(
|
|
38
|
+
[nt],
|
|
39
|
+
[rt]
|
|
40
|
+
), k = X.useProviderContext, bt = X.ScopedContextProvider, St = "div", gt = Y(
|
|
42
41
|
function(r) {
|
|
43
42
|
var o = r, {
|
|
44
43
|
store: e,
|
|
45
|
-
portal:
|
|
44
|
+
portal: f = !0,
|
|
46
45
|
gutter: i = 8,
|
|
47
46
|
preserveTabOrder: g = !1,
|
|
48
47
|
hideOnHoverOutside: d = !0,
|
|
49
48
|
hideOnInteractOutside: c = !0
|
|
50
|
-
} = o, a =
|
|
49
|
+
} = o, a = K(o, [
|
|
51
50
|
"store",
|
|
52
51
|
"portal",
|
|
53
52
|
"gutter",
|
|
@@ -56,20 +55,20 @@ var q = lt(
|
|
|
56
55
|
"hideOnInteractOutside"
|
|
57
56
|
]);
|
|
58
57
|
const h = k();
|
|
59
|
-
e = e || h,
|
|
58
|
+
e = e || h, Q(
|
|
60
59
|
e,
|
|
61
60
|
process.env.NODE_ENV !== "production" && "Tooltip must receive a `store` prop or be wrapped in a TooltipProvider component."
|
|
62
|
-
), a =
|
|
61
|
+
), a = lt(
|
|
63
62
|
a,
|
|
64
|
-
(s) => /* @__PURE__ */
|
|
63
|
+
(s) => /* @__PURE__ */ ct.jsx(bt, { value: e, children: s }),
|
|
65
64
|
[e]
|
|
66
65
|
);
|
|
67
66
|
const b = e.useState(
|
|
68
67
|
(s) => s.type === "description" ? "tooltip" : "none"
|
|
69
68
|
);
|
|
70
|
-
return a =
|
|
69
|
+
return a = P({ role: b }, a), a = it(W(P({}, a), {
|
|
71
70
|
store: e,
|
|
72
|
-
portal:
|
|
71
|
+
portal: f,
|
|
73
72
|
gutter: i,
|
|
74
73
|
preserveTabOrder: g,
|
|
75
74
|
hideOnHoverOutside(s) {
|
|
@@ -84,16 +83,16 @@ var q = lt(
|
|
|
84
83
|
}
|
|
85
84
|
})), a;
|
|
86
85
|
}
|
|
87
|
-
),
|
|
86
|
+
), Tt = vt(
|
|
88
87
|
z(function(r) {
|
|
89
88
|
const o = gt(r);
|
|
90
89
|
return L(St, o);
|
|
91
90
|
}),
|
|
92
91
|
k
|
|
93
|
-
),
|
|
92
|
+
), xt = "div", m = j({
|
|
94
93
|
activeStore: null
|
|
95
94
|
});
|
|
96
|
-
function
|
|
95
|
+
function N(t) {
|
|
97
96
|
return () => {
|
|
98
97
|
const { activeStore: r } = m.getState();
|
|
99
98
|
r === t && m.setState("activeStore", null);
|
|
@@ -101,14 +100,14 @@ function I(t) {
|
|
|
101
100
|
}
|
|
102
101
|
var yt = Y(
|
|
103
102
|
function(r) {
|
|
104
|
-
var o = r, { store: e, showOnHover:
|
|
103
|
+
var o = r, { store: e, showOnHover: f = !0 } = o, i = K(o, ["store", "showOnHover"]);
|
|
105
104
|
const g = k();
|
|
106
|
-
e = e || g,
|
|
105
|
+
e = e || g, Q(
|
|
107
106
|
e,
|
|
108
107
|
process.env.NODE_ENV !== "production" && "TooltipAnchor must receive a `store` prop or be wrapped in a TooltipProvider component."
|
|
109
108
|
);
|
|
110
|
-
const d =
|
|
111
|
-
C(() =>
|
|
109
|
+
const d = G(!1);
|
|
110
|
+
C(() => B(e, ["mounted"], (n) => {
|
|
112
111
|
n.mounted || (d.current = !1);
|
|
113
112
|
}), [e]), C(() => {
|
|
114
113
|
if (e)
|
|
@@ -116,15 +115,15 @@ var yt = Y(
|
|
|
116
115
|
// Immediately remove the current store from the global store when
|
|
117
116
|
// the component unmounts. This is useful, for example, to avoid
|
|
118
117
|
// showing tooltips immediately on serial tests.
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
N(e),
|
|
119
|
+
B(e, ["mounted", "skipTimeout"], (n) => {
|
|
121
120
|
if (!e) return;
|
|
122
121
|
if (n.mounted) {
|
|
123
|
-
const { activeStore:
|
|
124
|
-
return
|
|
122
|
+
const { activeStore: T } = m.getState();
|
|
123
|
+
return T !== e && (T == null || T.hide()), m.setState("activeStore", e);
|
|
125
124
|
}
|
|
126
125
|
const l = setTimeout(
|
|
127
|
-
|
|
126
|
+
N(e),
|
|
128
127
|
n.skipTimeout
|
|
129
128
|
);
|
|
130
129
|
return () => clearTimeout(l);
|
|
@@ -143,48 +142,48 @@ var yt = Y(
|
|
|
143
142
|
var l;
|
|
144
143
|
return (l = n.contentElement) == null ? void 0 : l.id;
|
|
145
144
|
});
|
|
146
|
-
return i = W(
|
|
145
|
+
return i = W(P({
|
|
147
146
|
"aria-labelledby": O === "label" ? _ : void 0
|
|
148
147
|
}, i), {
|
|
149
148
|
onMouseEnter: a,
|
|
150
149
|
onFocusVisible: b,
|
|
151
150
|
onBlur: u
|
|
152
|
-
}), i =
|
|
151
|
+
}), i = st(P({
|
|
153
152
|
store: e,
|
|
154
153
|
showOnHover(n) {
|
|
155
|
-
if (!d.current || H(
|
|
154
|
+
if (!d.current || H(f, n)) return !1;
|
|
156
155
|
const { activeStore: l } = m.getState();
|
|
157
156
|
return l ? (e == null || e.show(), !1) : !0;
|
|
158
157
|
}
|
|
159
158
|
}, i)), i;
|
|
160
159
|
}
|
|
161
|
-
),
|
|
160
|
+
), Et = z(function(r) {
|
|
162
161
|
const o = yt(r);
|
|
163
|
-
return L(
|
|
162
|
+
return L(xt, o);
|
|
164
163
|
});
|
|
165
|
-
const
|
|
166
|
-
|
|
164
|
+
const $t = {
|
|
165
|
+
top: "translate3d(0, -4px, 0)",
|
|
166
|
+
right: "translate3d(4px, 0, 0)",
|
|
167
167
|
bottom: "translate3d(0, 4px, 0)",
|
|
168
168
|
left: "translate3d(-4px, 0, 0)",
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}, Et = (t) => {
|
|
169
|
+
auto: "translate3d(0, 0, 0)"
|
|
170
|
+
}, Pt = (t) => {
|
|
172
171
|
const r = t == null ? void 0 : t.split("-"), o = r[0];
|
|
173
172
|
if (r.length < 2)
|
|
174
|
-
return
|
|
173
|
+
return $t[o];
|
|
175
174
|
{
|
|
176
175
|
let e = "0, 0";
|
|
177
176
|
return (t == "right-end" || t == "bottom-end") && (e = "4px, 4px"), (t == "right-start" || t == "top-end") && (e = "4px, -4px"), (t == "left-end" || t == "bottom-start") && (e = "-4px, 4px"), (t == "left-start" || t == "top-start") && (e = "-4px, -4px"), `translate3d(${e}, 0)`;
|
|
178
177
|
}
|
|
179
|
-
}, Ot =
|
|
178
|
+
}, Ot = v`
|
|
180
179
|
visibility: visible;
|
|
181
180
|
opacity: 1;
|
|
182
181
|
transform: translate3d(0, 0, 0);
|
|
183
|
-
`, S = 12,
|
|
184
|
-
const o = r -
|
|
185
|
-
return t.includes("end") ? o ? `${S}px` : `calc(100% - ${
|
|
186
|
-
}, _t =
|
|
187
|
-
({ fixed: t, placement: r
|
|
182
|
+
`, S = 12, x = S * 1.5, D = (t) => t.includes("start") ? x : t.includes("end") ? `calc(100% - ${x + "px"})` : "50%", F = (t, r) => {
|
|
183
|
+
const o = r - x < S;
|
|
184
|
+
return t.includes("end") ? o ? `${S}px` : `calc(100% - ${x}px)` : t.includes("start") ? o ? `${S}px` : `${x}px` : "50%";
|
|
185
|
+
}, _t = M.divBox(
|
|
186
|
+
({ fixed: t, placement: r, popoverHeight: o, withArrow: e }) => v`
|
|
188
187
|
${y("tooltips")};
|
|
189
188
|
transition:
|
|
190
189
|
opacity ${y.transition("medium")},
|
|
@@ -195,7 +194,7 @@ const Pt = {
|
|
|
195
194
|
transform-origin: top center;
|
|
196
195
|
z-index: 10;
|
|
197
196
|
|
|
198
|
-
${t && e &&
|
|
197
|
+
${t && e && v`
|
|
199
198
|
&::after {
|
|
200
199
|
content: '';
|
|
201
200
|
position: absolute;
|
|
@@ -210,95 +209,92 @@ const Pt = {
|
|
|
210
209
|
z-index: 0;
|
|
211
210
|
translate: -50% -50%;
|
|
212
211
|
|
|
213
|
-
${r.includes("top") &&
|
|
212
|
+
${r.includes("top") && v`
|
|
214
213
|
top: 100%;
|
|
215
|
-
left: ${
|
|
214
|
+
left: ${D(r)};
|
|
216
215
|
rotate: 45deg;
|
|
217
216
|
`}
|
|
218
217
|
|
|
219
|
-
${r.includes("bottom") &&
|
|
218
|
+
${r.includes("bottom") && v`
|
|
220
219
|
bottom: 100%;
|
|
221
|
-
left: ${
|
|
220
|
+
left: ${D(r)};
|
|
222
221
|
translate: -50% 50%;
|
|
223
222
|
rotate: 225deg;
|
|
224
223
|
`}
|
|
225
224
|
|
|
226
|
-
${r.includes("left") &&
|
|
227
|
-
top: ${
|
|
225
|
+
${r.includes("left") && v`
|
|
226
|
+
top: ${F(r, o)};
|
|
228
227
|
left: 100%;
|
|
229
228
|
rotate: -45deg;
|
|
230
229
|
`}
|
|
231
230
|
|
|
232
|
-
${r.includes("right") &&
|
|
233
|
-
top: ${
|
|
231
|
+
${r.includes("right") && v`
|
|
232
|
+
top: ${F(r, o)};
|
|
234
233
|
left: 0%;
|
|
235
234
|
rotate: 135deg;
|
|
236
235
|
`}
|
|
237
236
|
}
|
|
238
237
|
`}
|
|
239
238
|
|
|
240
|
-
${t &&
|
|
241
|
-
transform: ${
|
|
239
|
+
${t && v`
|
|
240
|
+
transform: ${Pt(r)};
|
|
242
241
|
`}
|
|
243
242
|
|
|
244
243
|
[data-enter] & {
|
|
245
244
|
${Ot}
|
|
246
245
|
}
|
|
247
246
|
`
|
|
248
|
-
), wt =
|
|
247
|
+
), wt = M.div`
|
|
249
248
|
display: inline-block;
|
|
250
|
-
`, Nt =
|
|
249
|
+
`, Nt = tt(
|
|
251
250
|
({
|
|
252
251
|
children: t,
|
|
253
252
|
content: r,
|
|
254
253
|
fixed: o = !1,
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
placement: e = o ? "top" : "bottom",
|
|
255
|
+
gutter: f = 8,
|
|
257
256
|
withArrow: i,
|
|
258
257
|
...g
|
|
259
258
|
}, d) => {
|
|
260
|
-
var
|
|
261
|
-
const c = ht({
|
|
259
|
+
var R;
|
|
260
|
+
const c = ht({ placement: e, animated: 300 }), [a, h] = J({ x: 0, y: 0 }), { render: b, stopAnimation: s } = c, { anchorElement: u, currentPlacement: O, mounted: _, popoverElement: n } = c.useState(), l = () => {
|
|
262
261
|
n && Object.assign(n.style, {
|
|
263
262
|
display: _ ? "block" : "none",
|
|
264
|
-
left: `${a.x}px`,
|
|
265
263
|
position: "absolute",
|
|
264
|
+
left: `${a.x}px`,
|
|
266
265
|
top: `${a.y + window.scrollY + 20}px`
|
|
267
266
|
});
|
|
268
|
-
},
|
|
267
|
+
}, T = (R = t == null ? void 0 : t.props) != null && R.disabled ? p.Children.only(/* @__PURE__ */ p.createElement(wt, null, t)) : t;
|
|
269
268
|
return C(() => {
|
|
270
|
-
function V({ clientX:
|
|
271
|
-
h({ x:
|
|
269
|
+
function V({ clientX: Z, clientY: q }) {
|
|
270
|
+
h({ x: Z, y: q }), b();
|
|
272
271
|
}
|
|
273
272
|
if (u && !o)
|
|
274
273
|
return u.addEventListener("mousemove", V), () => {
|
|
275
274
|
u.removeEventListener("mousemove", V);
|
|
276
275
|
};
|
|
277
|
-
}, [b, o, u]), r ? /* @__PURE__ */ p.
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
276
|
+
}, [b, o, u]), r ? /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement(Et, { render: T, store: c }), /* @__PURE__ */ p.createElement(
|
|
277
|
+
Tt,
|
|
278
|
+
{
|
|
279
|
+
fixed: o,
|
|
280
|
+
gutter: f,
|
|
281
|
+
ref: d,
|
|
282
|
+
render: /* @__PURE__ */ p.createElement(U, { ...g }),
|
|
283
|
+
store: c,
|
|
284
|
+
updatePosition: o ? void 0 : l
|
|
285
|
+
},
|
|
286
|
+
/* @__PURE__ */ p.createElement(
|
|
287
|
+
_t,
|
|
281
288
|
{
|
|
282
289
|
fixed: o,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
_t,
|
|
290
|
-
{
|
|
291
|
-
fixed: o,
|
|
292
|
-
onTransitionEnd: s,
|
|
293
|
-
placement: O,
|
|
294
|
-
popoverHeight: n == null ? void 0 : n.getBoundingClientRect().height,
|
|
295
|
-
withArrow: i,
|
|
296
|
-
children: r
|
|
297
|
-
}
|
|
298
|
-
)
|
|
299
|
-
}
|
|
290
|
+
onTransitionEnd: s,
|
|
291
|
+
placement: O,
|
|
292
|
+
popoverHeight: n == null ? void 0 : n.getBoundingClientRect().height,
|
|
293
|
+
withArrow: i
|
|
294
|
+
},
|
|
295
|
+
r
|
|
300
296
|
)
|
|
301
|
-
|
|
297
|
+
)) : t;
|
|
302
298
|
}
|
|
303
299
|
);
|
|
304
300
|
export {
|
package/dist/UniversalLink.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import l from "
|
|
5
|
-
const
|
|
2
|
+
import t from "react";
|
|
3
|
+
import a from "@xstyled/styled-components";
|
|
4
|
+
import { shouldForwardProp as l, forwardRef as d } from "./System.mjs";
|
|
5
|
+
const s = a.aBox.withConfig({ shouldForwardProp: l })`
|
|
6
6
|
color: inherit;
|
|
7
7
|
text-decoration: none;
|
|
8
|
-
`,
|
|
9
|
-
({ children:
|
|
10
|
-
|
|
8
|
+
`, c = d(
|
|
9
|
+
({ children: o, dataTestId: r, target: e, ...i }, n) => /* @__PURE__ */ t.createElement(
|
|
10
|
+
s,
|
|
11
11
|
{
|
|
12
12
|
color: "inherit",
|
|
13
|
-
"data-testid":
|
|
13
|
+
"data-testid": r,
|
|
14
14
|
ref: n,
|
|
15
|
-
rel:
|
|
16
|
-
target:
|
|
17
|
-
...i
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
rel: e === "_blank" ? "noopener noreferrer" : void 0,
|
|
16
|
+
target: e,
|
|
17
|
+
...i
|
|
18
|
+
},
|
|
19
|
+
o
|
|
20
20
|
)
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
c.displayName = "UniversalLink";
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
c as UniversalLink
|
|
25
25
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as t, a as r } from "./P2CTZE2T-
|
|
3
|
-
import { P as a, a as i } from "./MTZPJQMC-
|
|
4
|
-
import {
|
|
2
|
+
import { C as t, a as r } from "./P2CTZE2T-Cl2w7OLV.mjs";
|
|
3
|
+
import { P as a, a as i } from "./MTZPJQMC-CMjAwC0N.mjs";
|
|
4
|
+
import { v as s } from "./LVA2YJMS-DDEmK0pp.mjs";
|
|
5
5
|
import { createContext as o } from "react";
|
|
6
6
|
o(
|
|
7
7
|
void 0
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { m as Y, o as Z, t as ee, c as te, s as y, d as
|
|
3
|
-
import {
|
|
4
|
-
import { createContext as
|
|
2
|
+
import { m as Y, o as Z, t as ee, c as te, s as y, d as j, e as ne, a as oe, b as P, u as H } from "./YV4JVR4I-Bh7B7TET.mjs";
|
|
3
|
+
import { C as p, B as se, D as ae, H as re, v as R, f as T, _ as F, t as I, g as _, c as ie, h as ue, i as le, x as ce, F as S, E as de, d as A, e as me, z as fe } from "./LVA2YJMS-DDEmK0pp.mjs";
|
|
4
|
+
import { createContext as M, useRef as ve, useState as pe, useMemo as Se } from "react";
|
|
5
5
|
import { r as De } from "./index-CBBbX29m.mjs";
|
|
6
|
-
import { j as M } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
7
6
|
function Ce(n = {}) {
|
|
8
7
|
const o = Y(
|
|
9
8
|
n.store,
|
|
@@ -25,7 +24,7 @@ function Ce(n = {}) {
|
|
|
25
24
|
}, s = te(r, o);
|
|
26
25
|
return y(
|
|
27
26
|
s,
|
|
28
|
-
() =>
|
|
27
|
+
() => j(s, ["animated", "animating"], (a) => {
|
|
29
28
|
a.animated || s.setState("animating", !1);
|
|
30
29
|
})
|
|
31
30
|
), y(
|
|
@@ -35,7 +34,7 @@ function Ce(n = {}) {
|
|
|
35
34
|
})
|
|
36
35
|
), y(
|
|
37
36
|
s,
|
|
38
|
-
() =>
|
|
37
|
+
() => j(s, ["open", "animating"], (a) => {
|
|
39
38
|
s.setState("mounted", a.open || a.animating);
|
|
40
39
|
})
|
|
41
40
|
), se(ae({}, s), {
|
|
@@ -52,15 +51,15 @@ function Ce(n = {}) {
|
|
|
52
51
|
function xe(n, o, e) {
|
|
53
52
|
return re(o, [e.store, e.disclosure]), P(n, e, "open", "setOpen"), P(n, e, "mounted", "setMounted"), P(n, e, "animated"), Object.assign(n, { disclosure: e.disclosure });
|
|
54
53
|
}
|
|
55
|
-
function
|
|
54
|
+
function Re(n = {}) {
|
|
56
55
|
const [o, e] = oe(Ce, n);
|
|
57
56
|
return xe(o, e, n);
|
|
58
57
|
}
|
|
59
|
-
var b =
|
|
58
|
+
var b = R(), N = b.useProviderContext, ge = b.ContextProvider, Ee = b.ScopedContextProvider, D = R(
|
|
60
59
|
[ge],
|
|
61
60
|
[Ee]
|
|
62
|
-
),
|
|
63
|
-
function
|
|
61
|
+
), Te = D.useScopedContext, Fe = D.useProviderContext, Ie = D.ContextProvider, ye = D.ScopedContextProvider, Me = M(void 0), Ne = M(void 0), Pe = "div";
|
|
62
|
+
function V(n, o) {
|
|
64
63
|
const e = setTimeout(o, n);
|
|
65
64
|
return () => clearTimeout(e);
|
|
66
65
|
}
|
|
@@ -70,7 +69,7 @@ function _e(n) {
|
|
|
70
69
|
});
|
|
71
70
|
return () => cancelAnimationFrame(o);
|
|
72
71
|
}
|
|
73
|
-
function
|
|
72
|
+
function w(...n) {
|
|
74
73
|
return n.join(", ").split(", ").reduce((o, e) => {
|
|
75
74
|
const t = e.endsWith("ms") ? 1 : 1e3, i = Number.parseFloat(e || "0s") * t;
|
|
76
75
|
return i > o ? i : o;
|
|
@@ -86,7 +85,7 @@ var he = ie(function(o) {
|
|
|
86
85
|
t,
|
|
87
86
|
process.env.NODE_ENV !== "production" && "DisclosureContent must receive a `store` prop or be wrapped in a DisclosureProvider component."
|
|
88
87
|
);
|
|
89
|
-
const a = ve(null), f = ce(r.id), [l, h] = pe(null), c = t.useState("open"), C = t.useState("mounted"), d = t.useState("animated"), m = t.useState("contentElement"), x =
|
|
88
|
+
const a = ve(null), f = ce(r.id), [l, h] = pe(null), c = t.useState("open"), C = t.useState("mounted"), d = t.useState("animated"), m = t.useState("contentElement"), x = H(t.disclosure, "contentElement");
|
|
90
89
|
S(() => {
|
|
91
90
|
a.current && (t == null || t.setContentElement(a.current));
|
|
92
91
|
}, [t]), S(() => {
|
|
@@ -109,41 +108,41 @@ var he = ie(function(o) {
|
|
|
109
108
|
const u = () => t == null ? void 0 : t.setState("animating", !1), v = () => De.flushSync(u);
|
|
110
109
|
if (l === "leave" && c || l === "enter" && !c) return;
|
|
111
110
|
if (typeof d == "number")
|
|
112
|
-
return
|
|
111
|
+
return V(d, v);
|
|
113
112
|
const {
|
|
114
113
|
transitionDuration: k,
|
|
115
114
|
animationDuration: q,
|
|
116
115
|
transitionDelay: U,
|
|
117
116
|
animationDelay: W
|
|
118
117
|
} = getComputedStyle(m), {
|
|
119
|
-
transitionDuration:
|
|
120
|
-
animationDuration:
|
|
118
|
+
transitionDuration: z = "0",
|
|
119
|
+
animationDuration: B = "0",
|
|
121
120
|
transitionDelay: L = "0",
|
|
122
|
-
animationDelay:
|
|
123
|
-
} = x ? getComputedStyle(x) : {}, J =
|
|
121
|
+
animationDelay: G = "0"
|
|
122
|
+
} = x ? getComputedStyle(x) : {}, J = w(
|
|
124
123
|
U,
|
|
125
124
|
W,
|
|
126
125
|
L,
|
|
127
|
-
|
|
128
|
-
), K =
|
|
126
|
+
G
|
|
127
|
+
), K = w(
|
|
129
128
|
k,
|
|
130
129
|
q,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
),
|
|
134
|
-
if (!
|
|
130
|
+
z,
|
|
131
|
+
B
|
|
132
|
+
), O = J + K;
|
|
133
|
+
if (!O) {
|
|
135
134
|
l === "enter" && t.setState("animated", !1), u();
|
|
136
135
|
return;
|
|
137
136
|
}
|
|
138
|
-
const Q = 1e3 / 60, X = Math.max(
|
|
139
|
-
return
|
|
137
|
+
const Q = 1e3 / 60, X = Math.max(O - Q, 0);
|
|
138
|
+
return V(X, v);
|
|
140
139
|
}, [t, d, m, x, c, l]), r = de(
|
|
141
140
|
r,
|
|
142
|
-
(u) => /* @__PURE__ */
|
|
141
|
+
(u) => /* @__PURE__ */ I.jsx(ye, { value: t, children: u }),
|
|
143
142
|
[t]
|
|
144
143
|
);
|
|
145
|
-
const g = be(C, r.hidden, i), E = r.style, $ = Se(() => g ?
|
|
146
|
-
return r =
|
|
144
|
+
const g = be(C, r.hidden, i), E = r.style, $ = Se(() => g ? A(_({}, E), { display: "none" }) : E, [g, E]);
|
|
145
|
+
return r = A(_({
|
|
147
146
|
id: f,
|
|
148
147
|
"data-open": c || void 0,
|
|
149
148
|
"data-enter": l === "enter" || void 0,
|
|
@@ -153,33 +152,33 @@ var he = ie(function(o) {
|
|
|
153
152
|
ref: me(f ? t.setContentElement : null, a, r.ref),
|
|
154
153
|
style: $
|
|
155
154
|
}), fe(r);
|
|
156
|
-
}),
|
|
155
|
+
}), Oe = T(function(o) {
|
|
157
156
|
const e = he(o);
|
|
158
157
|
return ue(Pe, e);
|
|
159
|
-
}),
|
|
158
|
+
}), $e = T(function(o) {
|
|
160
159
|
var e = o, {
|
|
161
160
|
unmountOnHide: t
|
|
162
161
|
} = e, i = F(e, [
|
|
163
162
|
"unmountOnHide"
|
|
164
163
|
]);
|
|
165
164
|
const r = N(), s = i.store || r;
|
|
166
|
-
return
|
|
165
|
+
return H(
|
|
167
166
|
s,
|
|
168
167
|
(f) => !t || (f == null ? void 0 : f.mounted)
|
|
169
|
-
) === !1 ? null : /* @__PURE__ */
|
|
168
|
+
) === !1 ? null : /* @__PURE__ */ I.jsx(Oe, _({}, i));
|
|
170
169
|
});
|
|
171
170
|
export {
|
|
172
171
|
ye as D,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
172
|
+
Fe as a,
|
|
173
|
+
Te as b,
|
|
174
|
+
Ie as c,
|
|
175
|
+
$e as d,
|
|
176
|
+
Re as e,
|
|
178
177
|
he as f,
|
|
179
178
|
Ce as g,
|
|
180
179
|
xe as h,
|
|
181
180
|
be as i,
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
Me as j,
|
|
182
|
+
Ne as k,
|
|
184
183
|
N as u
|
|
185
184
|
};
|
package/dist/VariantIcon.mjs
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import t, { useMemo as a } from "react";
|
|
3
|
+
import f, { th as m, css as u } from "@xstyled/styled-components";
|
|
4
4
|
import "./Icon.mjs";
|
|
5
|
-
import { P as
|
|
6
|
-
import { forwardRef as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
({ variant: e }) => j`
|
|
5
|
+
import { P as s, C as i, I, A as d, S as p, a as E } from "./index-wr_b5GSV.mjs";
|
|
6
|
+
import { forwardRef as x } from "./System.mjs";
|
|
7
|
+
const g = f.divBox(
|
|
8
|
+
({ variant: n }) => u`
|
|
10
9
|
display: inline-flex;
|
|
11
|
-
${
|
|
10
|
+
${m(`variantIcon.${n}`)}
|
|
12
11
|
flex-shrink: 0;
|
|
13
12
|
align-self: center;
|
|
14
13
|
`
|
|
15
|
-
),
|
|
16
|
-
({ icon:
|
|
17
|
-
const
|
|
18
|
-
|
|
14
|
+
), h = x(
|
|
15
|
+
({ icon: n, size: r = "md", variant: e, ...l }, c) => {
|
|
16
|
+
const o = a(() => {
|
|
17
|
+
if (n === null) return null;
|
|
18
|
+
if (n) return n;
|
|
19
|
+
if (e === "default") return /* @__PURE__ */ t.createElement(s, { size: r });
|
|
20
|
+
if (e === "success") return /* @__PURE__ */ t.createElement(i, { size: r });
|
|
21
|
+
if (e === "info") return /* @__PURE__ */ t.createElement(I, { size: r });
|
|
22
|
+
if (e === "warning") return /* @__PURE__ */ t.createElement(d, { size: r });
|
|
23
|
+
if (e === "danger") return /* @__PURE__ */ t.createElement(p, { size: r });
|
|
24
|
+
if (e === "ai") return /* @__PURE__ */ t.createElement(E, { size: r });
|
|
25
|
+
}, [r, n, e]);
|
|
26
|
+
return o ? /* @__PURE__ */ t.createElement(g, { ref: c, variant: e, ...l }, o) : null;
|
|
19
27
|
}
|
|
20
28
|
);
|
|
21
|
-
|
|
29
|
+
h.displayName = "VariantIcon";
|
|
22
30
|
export {
|
|
23
|
-
|
|
31
|
+
h as VariantIcon
|
|
24
32
|
};
|