welcome-ui 8.0.0 → 8.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AXB53BZF-XKOjjeWO.mjs +25 -0
- package/dist/Accordion.mjs +30 -23
- package/dist/Alert.mjs +76 -70
- package/dist/AspectRatio.mjs +8 -10
- package/dist/Avatar.mjs +48 -47
- package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-CWSI38FM.mjs} +355 -351
- package/dist/Badge.mjs +25 -25
- package/dist/Box.mjs +5 -5
- package/dist/Breadcrumb.mjs +173 -168
- package/dist/Button.mjs +72 -67
- package/dist/ButtonGroup.mjs +13 -12
- package/dist/Card.mjs +14 -14
- package/dist/Checkbox.mjs +2 -2
- package/dist/ClearButton.mjs +15 -15
- package/dist/CloseButton.mjs +9 -9
- package/dist/{CustomInput-D_13Gd_3.mjs → CustomPopper-CZt4RioF.mjs} +3200 -3047
- package/dist/DatePicker.mjs +81 -80
- package/dist/DateTimePicker.mjs +67 -62
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +190 -174
- package/dist/DropdownMenu.mjs +389 -386
- package/dist/Field.mjs +104 -92
- package/dist/FieldGroup.mjs +12 -9
- package/dist/FileDrop.mjs +613 -576
- package/dist/FileUpload.mjs +95 -74
- package/dist/Files.mjs +46 -46
- package/dist/Flex.mjs +13 -13
- package/dist/Grid.mjs +29 -29
- package/dist/Hint.mjs +12 -12
- package/dist/ITI7HKP4-C89kOQb8.mjs +474 -0
- package/dist/Icon.mjs +24 -24
- package/dist/Icons.mjs +988 -988
- package/dist/IconsFont.mjs +159 -159
- package/dist/InputText.mjs +65 -57
- package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-afsomHuH.mjs} +109 -108
- package/dist/KUU7WJ55-CzsjuIMv.mjs +61 -0
- package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
- package/dist/Label.mjs +37 -35
- package/dist/Link.mjs +28 -24
- package/dist/Loader.mjs +20 -16
- package/dist/Logo.mjs +55 -42
- package/dist/MTZPJQMC-TybFZCho.mjs +15 -0
- package/dist/Modal.mjs +276 -253
- package/dist/NLEBE274-oSxMftGy.mjs +84 -0
- package/dist/P2CTZE2T-DOT1mNnX.mjs +301 -0
- package/dist/P4IRICAX-CWSZLTGz.mjs +37 -0
- package/dist/Pagination.mjs +104 -104
- package/dist/PasswordInput.mjs +35 -34
- package/dist/Picker.mjs +35 -33
- package/dist/Popover.mjs +100 -93
- package/dist/QYJ6MIDR-DJ-vUdAM.mjs +98 -0
- package/dist/Radio.mjs +58 -52
- package/dist/RadioGroup.mjs +46 -46
- package/dist/RadioTab.mjs +37 -35
- package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-B6m278Vb.mjs} +18 -17
- package/dist/Search.mjs +175 -161
- package/dist/Select.mjs +885 -847
- package/dist/Shape.mjs +9 -9
- package/dist/Slider.mjs +359 -336
- package/dist/Stack.mjs +22 -24
- package/dist/Swiper.mjs +324 -311
- package/dist/Table.mjs +23 -23
- package/dist/Tabs.mjs +250 -245
- package/dist/Tag.mjs +51 -49
- package/dist/Text.mjs +49 -47
- package/dist/Textarea.mjs +39 -39
- package/dist/TimePicker.mjs +57 -56
- package/dist/Toast.mjs +144 -137
- package/dist/Toggle.mjs +27 -24
- package/dist/Tooltip.mjs +115 -111
- package/dist/UniversalLink.mjs +16 -16
- package/dist/VEVQD5MH-0w9Y7Ytc.mjs +20 -0
- package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-C0UPBY-5.mjs} +61 -62
- package/dist/VariantIcon.mjs +14 -22
- package/dist/WelcomeLoader.mjs +4863 -9223
- package/dist/WuiProvider.mjs +69 -58
- package/dist/X5NMLKT6-BJw3xE-K.mjs +25 -0
- package/dist/YV4JVR4I-DPC8mMuG.mjs +344 -0
- package/dist/downshift.esm-B7Jil1wW.mjs +1082 -0
- package/dist/{field-styles-DLIhqG_8.mjs → field-styles-BVlRlvuu.mjs} +2 -2
- package/dist/{hex-to-rgba-BIDK-3ab.mjs → hex-to-rgba-DU_XzKIK.mjs} +2 -2
- package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
- package/dist/index-5HBq1O6Z.mjs +185 -0
- package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
- package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
- package/dist/index-CYmF7qCH.mjs +11 -0
- package/dist/index-C_k-m0Rl.mjs +36 -0
- package/dist/index-D8v_VJ9z.mjs +26 -0
- package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
- package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
- package/dist/index-DpkNUfAS.mjs +11 -0
- package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
- package/dist/{index-BJAZgeHL.mjs → index-QaLwIvZS.mjs} +8 -8
- package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
- package/dist/index-i_anpNhw.mjs +66 -0
- package/dist/index-wl3X6EM1.mjs +16 -0
- package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
- package/dist/radio-group-C0fUHvam.mjs +52 -0
- package/dist/theme.mjs +1175 -1120
- package/dist/throttle-CW18pWlW.mjs +13 -0
- package/dist/types/components/Accordion/index.d.ts +1 -1
- package/dist/types/components/Accordion/styles.d.ts +2 -2
- package/dist/types/components/Accordion/theme.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +2 -2
- package/dist/types/components/Alert/styles.d.ts +9 -9
- package/dist/types/components/Alert/theme.d.ts +4 -4
- package/dist/types/components/Avatar/index.d.ts +2 -3
- package/dist/types/components/Avatar/styles.d.ts +8 -8
- package/dist/types/components/Avatar/theme.d.ts +3 -3
- package/dist/types/components/Avatar/utils.d.ts +1 -1
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Badge/styles.d.ts +5 -5
- package/dist/types/components/Badge/theme.d.ts +1 -1
- package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +2 -2
- package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +4 -5
- package/dist/types/components/Button/styles.d.ts +1 -1
- package/dist/types/components/Button/theme.d.ts +7 -7
- package/dist/types/components/ButtonGroup/index.d.ts +3 -3
- package/dist/types/components/Card/Cover.styles.d.ts +4 -4
- package/dist/types/components/Card/index.d.ts +2 -3
- package/dist/types/components/Card/theme.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +2 -2
- package/dist/types/components/Checkbox/styles.d.ts +1 -1
- package/dist/types/components/Checkbox/theme.d.ts +1 -1
- package/dist/types/components/ClearButton/index.d.ts +5 -6
- package/dist/types/components/ClearButton/styles.d.ts +4 -4
- package/dist/types/components/CloseButton/styles.d.ts +4 -4
- package/dist/types/components/DatePicker/index.d.ts +3 -3
- package/dist/types/components/DateTimePicker/index.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
- package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
- package/dist/types/components/Drawer/index.d.ts +12 -12
- package/dist/types/components/Drawer/styles.d.ts +5 -5
- package/dist/types/components/Drawer/theme.d.ts +2 -2
- package/dist/types/components/DropdownMenu/index.d.ts +4 -4
- package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
- package/dist/types/components/Field/index.d.ts +8 -8
- package/dist/types/components/Field/styles.d.ts +1 -1
- package/dist/types/components/Field/utils.d.ts +1 -1
- package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
- package/dist/types/components/FileDrop/Message.d.ts +1 -1
- package/dist/types/components/FileDrop/index.d.ts +20 -20
- package/dist/types/components/FileDrop/theme.d.ts +1 -1
- package/dist/types/components/FileUpload/index.d.ts +13 -13
- package/dist/types/components/Files/index.d.ts +5 -5
- package/dist/types/components/Files/types.d.ts +1 -1
- package/dist/types/components/Hint/index.d.ts +1 -2
- package/dist/types/components/Hint/theme.d.ts +1 -1
- package/dist/types/components/Icon/index.d.ts +3 -3
- package/dist/types/components/Icon/styles.d.ts +3 -3
- package/dist/types/components/Icon/theme.d.ts +3 -3
- package/dist/types/components/Icons/Sun/content.json.d.ts +2 -1
- package/dist/types/components/Icons/index.d.ts +2 -2
- package/dist/types/components/IconsFont/index.d.ts +2 -3
- package/dist/types/components/IconsFont/styles.d.ts +1 -1
- package/dist/types/components/InputText/index.d.ts +1 -1
- package/dist/types/components/InputText/styles.d.ts +1 -1
- package/dist/types/components/Label/index.d.ts +2 -3
- package/dist/types/components/Label/theme.d.ts +1 -1
- package/dist/types/components/Link/index.d.ts +5 -5
- package/dist/types/components/Link/styles.d.ts +4 -4
- package/dist/types/components/Link/theme.d.ts +1 -1
- package/dist/types/components/Loader/index.d.ts +1 -1
- package/dist/types/components/Loader/styles.d.ts +4 -4
- package/dist/types/components/Loader/theme.d.ts +4 -4
- package/dist/types/components/Logo/Solutions.d.ts +1 -2
- package/dist/types/components/Logo/Symbol.d.ts +1 -2
- package/dist/types/components/Logo/Wui.d.ts +1 -2
- package/dist/types/components/Logo/index.d.ts +5 -5
- package/dist/types/components/Modal/Assets/Backdrop.d.ts +5 -6
- package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
- package/dist/types/components/Modal/Assets/index.d.ts +9 -9
- package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
- package/dist/types/components/Modal/Close.d.ts +3 -4
- package/dist/types/components/Modal/Content.d.ts +4 -5
- package/dist/types/components/Modal/Footer.d.ts +1 -1
- package/dist/types/components/Modal/Header.d.ts +2 -2
- package/dist/types/components/Modal/index.d.ts +17 -17
- package/dist/types/components/Modal/styles.d.ts +7 -7
- package/dist/types/components/Modal/theme.d.ts +2 -2
- package/dist/types/components/Pagination/index.d.ts +2 -2
- package/dist/types/components/Pagination/theme.d.ts +1 -1
- package/dist/types/components/Pagination/utils.d.ts +1 -1
- package/dist/types/components/Picker/index.d.ts +1 -1
- package/dist/types/components/Picker/styles.d.ts +1 -1
- package/dist/types/components/Popover/Arrow.d.ts +1 -2
- package/dist/types/components/Popover/Content.d.ts +2 -3
- package/dist/types/components/Popover/Popover.d.ts +4 -5
- package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
- package/dist/types/components/Popover/Trigger.d.ts +1 -1
- package/dist/types/components/Popover/styles.d.ts +4 -4
- package/dist/types/components/Popover/theme.d.ts +1 -1
- package/dist/types/components/Popover/usePopover.d.ts +6 -6
- package/dist/types/components/Radio/index.d.ts +3 -3
- package/dist/types/components/Radio/styles.d.ts +5 -5
- package/dist/types/components/Radio/theme.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +2 -2
- package/dist/types/components/RadioTab/index.d.ts +3 -3
- package/dist/types/components/RadioTab/styles.d.ts +3 -9
- package/dist/types/components/RadioTab/theme.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +5 -5
- package/dist/types/components/Select/index.d.ts +11 -11
- package/dist/types/components/Select/styles.d.ts +6 -6
- package/dist/types/components/Select/utils.d.ts +11 -7
- package/dist/types/components/Shape/index.d.ts +1 -1
- package/dist/types/components/Shape/styles.d.ts +3 -3
- package/dist/types/components/Slider/Range.d.ts +3 -3
- package/dist/types/components/Slider/index.d.ts +2 -2
- package/dist/types/components/Slider/styles.d.ts +16 -16
- package/dist/types/components/Slider/theme.d.ts +1 -1
- package/dist/types/components/Stack/index.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +17 -18
- package/dist/types/components/Swiper/styles.d.ts +56 -56
- package/dist/types/components/Swiper/theme.d.ts +1 -1
- package/dist/types/components/System/index.d.ts +14 -14
- package/dist/types/components/Table/index.d.ts +6 -7
- package/dist/types/components/Table/styles.d.ts +1 -1
- package/dist/types/components/Table/theme.d.ts +1 -1
- package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
- package/dist/types/components/Tabs/TabList.d.ts +4 -4
- package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
- package/dist/types/components/Tabs/styles.d.ts +2 -2
- package/dist/types/components/Tabs/theme.d.ts +2 -2
- package/dist/types/components/Tag/index.d.ts +2 -3
- package/dist/types/components/Tag/styles.d.ts +1 -1
- package/dist/types/components/Tag/theme.d.ts +3 -3
- package/dist/types/components/Text/index.d.ts +2 -2
- package/dist/types/components/Textarea/index.d.ts +1 -1
- package/dist/types/components/Textarea/theme.d.ts +1 -1
- package/dist/types/components/TimePicker/index.d.ts +2 -2
- package/dist/types/components/Toast/Growl.d.ts +1 -1
- package/dist/types/components/Toast/Snackbar.d.ts +1 -1
- package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
- package/dist/types/components/Toast/index.d.ts +6 -6
- package/dist/types/components/Toast/styles.d.ts +16 -16
- package/dist/types/components/Toast/theme.d.ts +2 -2
- package/dist/types/components/Toast/utils.d.ts +13 -13
- package/dist/types/components/Toggle/index.d.ts +3 -3
- package/dist/types/components/Toggle/styles.d.ts +5 -4
- package/dist/types/components/Toggle/theme.d.ts +6 -6
- package/dist/types/components/Tooltip/index.d.ts +2 -2
- package/dist/types/components/Tooltip/styles.d.ts +1 -1
- package/dist/types/components/Tooltip/theme.d.ts +1 -1
- package/dist/types/components/VariantIcon/index.d.ts +1 -1
- package/dist/types/components/VariantIcon/styles.d.ts +1 -1
- package/dist/types/components/VariantIcon/theme.d.ts +3 -3
- package/dist/types/components/WuiProvider/font.d.ts +3 -5
- package/dist/types/components/WuiProvider/index.d.ts +1 -1
- package/dist/types/theme/colors.d.ts +3 -11
- package/dist/types/theme/dark.d.ts +1 -1
- package/dist/types/theme/defaultFields.d.ts +10 -10
- package/dist/types/theme/fonts.d.ts +5 -5
- package/dist/types/theme/index.d.ts +31 -31
- package/dist/types/theme/screens.d.ts +1 -1
- package/dist/types/theme/space.d.ts +1 -1
- package/dist/types/theme/typography.d.ts +1 -1
- package/dist/types/utils/field-styles.d.ts +6 -6
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/ts-utils.d.ts +1 -1
- package/dist/types/utils/use-copy-text.d.ts +1 -1
- package/dist/types/utils/use-create-portal.d.ts +1 -1
- package/dist/types/utils/use-viewport.d.ts +2 -2
- package/dist/types/utils/wrap-children.d.ts +1 -1
- package/dist/{use-fork-ref-CUZErtAC.mjs → use-fork-ref-DvaCTfQ_.mjs} +4 -3
- package/dist/use-viewport-CWpjoHXy.mjs +16 -0
- package/dist/utils.mjs +96 -85
- package/dist/wrap-children-DBSD-X5-.mjs +9 -0
- package/package.json +9 -36
- package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
- package/dist/ITI7HKP4-BONrZ9Pq.mjs +0 -473
- package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
- package/dist/LVA2YJMS-qFC9J-lt.mjs +0 -1479
- package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
- package/dist/NLEBE274-C94QU78N.mjs +0 -84
- package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
- package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
- package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
- package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
- package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
- package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
- package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
- package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
- package/dist/index-BDeIsk2X.mjs +0 -184
- package/dist/index-BRDOakbf.mjs +0 -11
- package/dist/index-BpRjq7lj.mjs +0 -11
- package/dist/index-BrfXjmHY.mjs +0 -36
- package/dist/index-CExLVjET.mjs +0 -26
- package/dist/index-DEJJvyGk.mjs +0 -66
- package/dist/index-u1oHKa7X.mjs +0 -16
- package/dist/radio-group-CGC6DTFJ.mjs +0 -51
- package/dist/throttle-BDBzFeFj.mjs +0 -13
- package/dist/use-viewport-m3glsbna.mjs +0 -16
- package/dist/wrap-children-aq69jtFP.mjs +0 -12
package/dist/Drawer.mjs
CHANGED
|
@@ -1,66 +1,148 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { j as r } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
|
+
import { forwardRef as m } from "./System.mjs";
|
|
4
|
+
import n, { th as s, css as d, useTheme as x } from "@xstyled/styled-components";
|
|
5
5
|
import { Box as l } from "./Box.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { forwardRef as d } from "./System.mjs";
|
|
8
|
-
import { Text as f } from "./Text.mjs";
|
|
6
|
+
import { Button as b } from "./Button.mjs";
|
|
9
7
|
import "./Icon.mjs";
|
|
10
|
-
import { A as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { D as
|
|
14
|
-
|
|
8
|
+
import { A as $ } from "./index-QaLwIvZS.mjs";
|
|
9
|
+
import { Text as p } from "./Text.mjs";
|
|
10
|
+
import { CloseButton as D } from "./CloseButton.mjs";
|
|
11
|
+
import { D as B } from "./SYRFVSLH-B6m278Vb.mjs";
|
|
12
|
+
import { D as k, u as v } from "./JC64G2H7-afsomHuH.mjs";
|
|
13
|
+
import { D as C } from "./AXB53BZF-XKOjjeWO.mjs";
|
|
14
|
+
const I = n.divBox`
|
|
15
|
+
overflow-y: scroll;
|
|
16
|
+
flex: 1;
|
|
17
|
+
margin: 0 auto;
|
|
18
|
+
width: 100%;
|
|
19
|
+
`, S = n.divBox(
|
|
20
|
+
({ size: t }) => d`
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
height: 48;
|
|
26
|
+
width: 48;
|
|
27
|
+
border-radius: md;
|
|
28
|
+
background-color: beige-20;
|
|
29
|
+
transition: background-color ${s("transitions.medium")};
|
|
30
|
+
|
|
31
|
+
${t === "sm" && d`
|
|
32
|
+
height: 32;
|
|
33
|
+
width: 32;
|
|
34
|
+
`}
|
|
35
|
+
`
|
|
36
|
+
), T = m(
|
|
37
|
+
({ children: t, maxWidth: e = 820, store: o, ...i }, a) => {
|
|
38
|
+
const c = x();
|
|
39
|
+
return /* @__PURE__ */ r.jsx(
|
|
40
|
+
J,
|
|
41
|
+
{
|
|
42
|
+
...i,
|
|
43
|
+
autoFocusOnShow: !1,
|
|
44
|
+
h: { _: "100%", md: "calc(100% - 3rem)" },
|
|
45
|
+
hideOnInteractOutside: !0,
|
|
46
|
+
placement: "bottom",
|
|
47
|
+
ref: a,
|
|
48
|
+
store: o,
|
|
49
|
+
style: {
|
|
50
|
+
borderTopLeftRadius: c.radii.xxl,
|
|
51
|
+
borderTopRightRadius: c.radii.xxl
|
|
52
|
+
},
|
|
53
|
+
withBackdrop: !0,
|
|
54
|
+
withCloseButton: !0,
|
|
55
|
+
children: /* @__PURE__ */ r.jsx(I, { maxWidth: e, children: /* @__PURE__ */ r.jsx(l, { p: { _: "xl md", md: "3xl xl" }, children: t }) })
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
), F = ({
|
|
60
|
+
action: t,
|
|
61
|
+
icon: e,
|
|
62
|
+
onBackButtonClick: o,
|
|
63
|
+
subtitle: i,
|
|
64
|
+
title: a
|
|
65
|
+
}) => /* @__PURE__ */ r.jsxs(
|
|
66
|
+
l,
|
|
67
|
+
{
|
|
68
|
+
alignItems: { md: "center" },
|
|
69
|
+
backgroundColor: "neutral-10",
|
|
70
|
+
display: "flex",
|
|
71
|
+
flexDirection: { _: "column", md: "row" },
|
|
72
|
+
gap: "xl",
|
|
73
|
+
justifyContent: "space-between",
|
|
74
|
+
mb: "xl",
|
|
75
|
+
mt: "-md",
|
|
76
|
+
position: "sticky",
|
|
77
|
+
py: "md",
|
|
78
|
+
top: 0,
|
|
79
|
+
zIndex: 1,
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ r.jsxs(l, { alignItems: "center", display: "flex", gap: { _: "md", md: "xl" }, children: [
|
|
82
|
+
!!o && /* @__PURE__ */ r.jsx(b, { onClick: o, shape: "circle", size: "lg", variant: "ghost", children: /* @__PURE__ */ r.jsx($, {}) }),
|
|
83
|
+
!!e && /* @__PURE__ */ r.jsx(O, { icon: e }),
|
|
84
|
+
/* @__PURE__ */ r.jsxs(l, { display: "flex", flexDirection: "column", gap: "xxs", children: [
|
|
85
|
+
/* @__PURE__ */ r.jsx(p, { pr: "xl", variant: "h3", children: a }),
|
|
86
|
+
i
|
|
87
|
+
] })
|
|
88
|
+
] }),
|
|
89
|
+
t && /* @__PURE__ */ r.jsx(l, { alignItems: "center", display: "flex", flexShrink: 0, gap: "md", children: t })
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
), O = ({ icon: t, size: e = "md" }) => /* @__PURE__ */ r.jsx(S, { size: e, children: /* @__PURE__ */ r.jsx(t, { color: "neutral-90", size: e }) }), R = (t) => {
|
|
15
93
|
switch (t) {
|
|
16
|
-
case "
|
|
94
|
+
case "bottom":
|
|
17
95
|
return {
|
|
18
|
-
|
|
96
|
+
bottom: 0,
|
|
97
|
+
left: 0,
|
|
19
98
|
right: 0,
|
|
99
|
+
transform: "translateY(100%)"
|
|
100
|
+
};
|
|
101
|
+
case "left":
|
|
102
|
+
return {
|
|
103
|
+
bottom: 0,
|
|
20
104
|
left: 0,
|
|
21
|
-
|
|
105
|
+
top: "0 !important",
|
|
106
|
+
transform: "translateX(-100%)"
|
|
22
107
|
};
|
|
23
108
|
case "right":
|
|
24
109
|
return {
|
|
25
|
-
top: "0 !important",
|
|
26
|
-
right: 0,
|
|
27
110
|
bottom: 0,
|
|
111
|
+
right: 0,
|
|
112
|
+
top: "0 !important",
|
|
28
113
|
transform: "translateX(100%)"
|
|
29
114
|
};
|
|
30
|
-
case "
|
|
115
|
+
case "top":
|
|
31
116
|
return {
|
|
32
|
-
right: 0,
|
|
33
|
-
bottom: 0,
|
|
34
117
|
left: 0,
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
case "left":
|
|
38
|
-
return {
|
|
118
|
+
right: 0,
|
|
39
119
|
top: "0 !important",
|
|
40
|
-
|
|
41
|
-
left: 0,
|
|
42
|
-
transform: "translateX(-100%)"
|
|
120
|
+
transform: "translateY(-100%)"
|
|
43
121
|
};
|
|
122
|
+
default:
|
|
123
|
+
return {};
|
|
44
124
|
}
|
|
45
|
-
}, u = ["sm", "md", "lg"],
|
|
46
|
-
switch (
|
|
47
|
-
case "top":
|
|
125
|
+
}, u = ["sm", "md", "lg"], _ = (t, e) => {
|
|
126
|
+
switch (e) {
|
|
48
127
|
case "bottom":
|
|
49
|
-
|
|
128
|
+
case "top":
|
|
129
|
+
return t && u.includes(t) ? s(`drawers.sizes.vertical.${t}`) : {
|
|
50
130
|
height: t
|
|
51
131
|
};
|
|
52
|
-
case "right":
|
|
53
132
|
case "left":
|
|
54
|
-
|
|
133
|
+
case "right":
|
|
134
|
+
return t && u.includes(t) ? s(`drawers.sizes.horizontal.${t}`) : {
|
|
55
135
|
width: t
|
|
56
136
|
};
|
|
137
|
+
default:
|
|
138
|
+
return {};
|
|
57
139
|
}
|
|
58
|
-
},
|
|
59
|
-
({ placement: t, size:
|
|
60
|
-
${
|
|
61
|
-
${
|
|
62
|
-
${
|
|
63
|
-
${
|
|
140
|
+
}, A = n.divBox(
|
|
141
|
+
({ placement: t, size: e }) => d`
|
|
142
|
+
${s("cards.default")};
|
|
143
|
+
${s("drawers.default")};
|
|
144
|
+
${R(t)}
|
|
145
|
+
${_(e, t)}
|
|
64
146
|
position: fixed;
|
|
65
147
|
display: flex;
|
|
66
148
|
flex-direction: column;
|
|
@@ -74,11 +156,11 @@ const I = (t) => {
|
|
|
74
156
|
transform: translate(0, 0);
|
|
75
157
|
}
|
|
76
158
|
`
|
|
77
|
-
),
|
|
159
|
+
), f = n.divBox.withConfig({
|
|
78
160
|
shouldForwardProp: (t) => !["hideOnInteractOutside"].includes(t)
|
|
79
161
|
})(
|
|
80
|
-
({ hideOnInteractOutside: t }) =>
|
|
81
|
-
${
|
|
162
|
+
({ hideOnInteractOutside: t }) => d`
|
|
163
|
+
${s("drawers.backdrop")};
|
|
82
164
|
position: fixed;
|
|
83
165
|
top: 0;
|
|
84
166
|
right: 0;
|
|
@@ -87,7 +169,7 @@ const I = (t) => {
|
|
|
87
169
|
opacity: 0;
|
|
88
170
|
transition: opacity 150ms ease-in-out;
|
|
89
171
|
|
|
90
|
-
${t &&
|
|
172
|
+
${t && d`
|
|
91
173
|
cursor: pointer;
|
|
92
174
|
`}
|
|
93
175
|
|
|
@@ -95,173 +177,107 @@ const I = (t) => {
|
|
|
95
177
|
opacity: 1;
|
|
96
178
|
}
|
|
97
179
|
`
|
|
98
|
-
),
|
|
99
|
-
${
|
|
100
|
-
`,
|
|
101
|
-
${
|
|
102
|
-
`,
|
|
103
|
-
${
|
|
104
|
-
`,
|
|
105
|
-
${
|
|
106
|
-
`,
|
|
107
|
-
const o =
|
|
108
|
-
return /* @__PURE__ */
|
|
109
|
-
|
|
180
|
+
), Y = n.divBox`
|
|
181
|
+
${s("drawers.title")};
|
|
182
|
+
`, E = n.divBox`
|
|
183
|
+
${s("drawers.content")};
|
|
184
|
+
`, L = n(D)`
|
|
185
|
+
${s("drawers.closeButton")};
|
|
186
|
+
`, P = n.divBox`
|
|
187
|
+
${s("drawers.footer")};
|
|
188
|
+
`, h = ({ zIndex: t = "2", ...e }) => {
|
|
189
|
+
const o = x();
|
|
190
|
+
return /* @__PURE__ */ r.jsx(l, { h: "0", children: /* @__PURE__ */ r.jsx(
|
|
191
|
+
B,
|
|
110
192
|
{
|
|
111
|
-
render: /* @__PURE__ */
|
|
112
|
-
|
|
193
|
+
render: /* @__PURE__ */ r.jsx(
|
|
194
|
+
L,
|
|
113
195
|
{
|
|
114
196
|
left: `calc(100% - ${o.space.lg} - ${o.buttons.sizes.sm.height})`,
|
|
115
197
|
mt: "lg",
|
|
116
198
|
position: "sticky",
|
|
117
199
|
top: "0",
|
|
118
200
|
zIndex: t,
|
|
119
|
-
...
|
|
201
|
+
...e
|
|
120
202
|
}
|
|
121
203
|
)
|
|
122
204
|
}
|
|
123
|
-
));
|
|
124
|
-
},
|
|
125
|
-
|
|
205
|
+
) });
|
|
206
|
+
}, X = m((t, e) => /* @__PURE__ */ r.jsx(E, { flex: "1", overflowY: { md: "auto" }, ref: e, ...t })), H = m((t, e) => /* @__PURE__ */ r.jsx(
|
|
207
|
+
P,
|
|
126
208
|
{
|
|
127
|
-
bottom: {
|
|
128
|
-
position: {
|
|
129
|
-
ref:
|
|
209
|
+
bottom: { md: "auto", xs: 0 },
|
|
210
|
+
position: { md: "static", xs: "sticky" },
|
|
211
|
+
ref: e,
|
|
130
212
|
w: "100%",
|
|
131
213
|
...t
|
|
132
214
|
}
|
|
133
|
-
)),
|
|
134
|
-
|
|
215
|
+
)), Z = ({ children: t, zIndex: e = "1", ...o }) => /* @__PURE__ */ r.jsx(
|
|
216
|
+
Y,
|
|
135
217
|
{
|
|
136
218
|
alignItems: "center",
|
|
137
219
|
display: "flex",
|
|
138
220
|
justifyContent: "space-between",
|
|
139
|
-
position: {
|
|
140
|
-
top: {
|
|
221
|
+
position: { md: "static", xs: "sticky" },
|
|
222
|
+
top: { md: "auto", xs: 0 },
|
|
141
223
|
w: "100%",
|
|
142
|
-
zIndex:
|
|
143
|
-
...o
|
|
144
|
-
|
|
145
|
-
/* @__PURE__ */ e.createElement(f, { m: "0", variant: "h3", w: "100%" }, t)
|
|
146
|
-
), L = a.divBox`
|
|
147
|
-
overflow-y: scroll;
|
|
148
|
-
flex: 1;
|
|
149
|
-
margin: 0 auto;
|
|
150
|
-
width: 100%;
|
|
151
|
-
`, P = a.divBox(
|
|
152
|
-
({ size: t }) => m`
|
|
153
|
-
display: flex;
|
|
154
|
-
align-items: center;
|
|
155
|
-
justify-content: center;
|
|
156
|
-
flex-shrink: 0;
|
|
157
|
-
height: 48;
|
|
158
|
-
width: 48;
|
|
159
|
-
border-radius: md;
|
|
160
|
-
background-color: beige-20;
|
|
161
|
-
transition: background-color ${n("transitions.medium")};
|
|
162
|
-
|
|
163
|
-
${t === "sm" && m`
|
|
164
|
-
height: 32;
|
|
165
|
-
width: 32;
|
|
166
|
-
`}
|
|
167
|
-
`
|
|
168
|
-
), X = d(
|
|
169
|
-
({ children: t, maxWidth: r = 820, store: o, ...s }, i) => {
|
|
170
|
-
const c = p();
|
|
171
|
-
return /* @__PURE__ */ e.createElement(
|
|
172
|
-
G,
|
|
173
|
-
{
|
|
174
|
-
...s,
|
|
175
|
-
autoFocusOnShow: !1,
|
|
176
|
-
h: { _: "100%", md: "calc(100% - 3rem)" },
|
|
177
|
-
hideOnInteractOutside: !0,
|
|
178
|
-
placement: "bottom",
|
|
179
|
-
ref: i,
|
|
180
|
-
store: o,
|
|
181
|
-
style: {
|
|
182
|
-
borderTopLeftRadius: c.radii.xxl,
|
|
183
|
-
borderTopRightRadius: c.radii.xxl
|
|
184
|
-
},
|
|
185
|
-
withBackdrop: !0,
|
|
186
|
-
withCloseButton: !0
|
|
187
|
-
},
|
|
188
|
-
/* @__PURE__ */ e.createElement(L, { maxWidth: r }, /* @__PURE__ */ e.createElement(l, { p: { _: "xl md", md: "3xl xl" } }, t))
|
|
189
|
-
);
|
|
224
|
+
zIndex: e,
|
|
225
|
+
...o,
|
|
226
|
+
children: /* @__PURE__ */ r.jsx(p, { m: "0", variant: "h3", w: "100%", children: t })
|
|
190
227
|
}
|
|
191
|
-
),
|
|
192
|
-
action: t,
|
|
193
|
-
icon: r,
|
|
194
|
-
onBackButtonClick: o,
|
|
195
|
-
subtitle: s,
|
|
196
|
-
title: i
|
|
197
|
-
}) => /* @__PURE__ */ e.createElement(
|
|
198
|
-
l,
|
|
199
|
-
{
|
|
200
|
-
alignItems: { md: "center" },
|
|
201
|
-
backgroundColor: "neutral-10",
|
|
202
|
-
display: "flex",
|
|
203
|
-
flexDirection: { _: "column", md: "row" },
|
|
204
|
-
gap: "xl",
|
|
205
|
-
justifyContent: "space-between",
|
|
206
|
-
mb: "xl",
|
|
207
|
-
mt: "-md",
|
|
208
|
-
position: "sticky",
|
|
209
|
-
py: "md",
|
|
210
|
-
top: 0,
|
|
211
|
-
zIndex: 1
|
|
212
|
-
},
|
|
213
|
-
/* @__PURE__ */ e.createElement(l, { alignItems: "center", display: "flex", gap: { _: "md", md: "xl" } }, !!o && /* @__PURE__ */ e.createElement(B, { onClick: o, shape: "circle", size: "lg", variant: "ghost" }, /* @__PURE__ */ e.createElement(D, null)), !!r && /* @__PURE__ */ e.createElement(H, { icon: r }), /* @__PURE__ */ e.createElement(l, { display: "flex", flexDirection: "column", gap: "xxs" }, /* @__PURE__ */ e.createElement(f, { pr: "xl", variant: "h3" }, i), s)),
|
|
214
|
-
t && /* @__PURE__ */ e.createElement(l, { alignItems: "center", display: "flex", flexShrink: 0, gap: "md" }, t)
|
|
215
|
-
), H = ({ icon: t, size: r = "md" }) => /* @__PURE__ */ e.createElement(P, { size: r }, /* @__PURE__ */ e.createElement(t, { color: "neutral-90", size: r })), Z = d(
|
|
228
|
+
), q = m(
|
|
216
229
|
({
|
|
217
230
|
children: t,
|
|
218
|
-
hideOnInteractOutside:
|
|
231
|
+
hideOnInteractOutside: e = !0,
|
|
219
232
|
placement: o = "right",
|
|
220
|
-
size:
|
|
221
|
-
store:
|
|
233
|
+
size: i = "lg",
|
|
234
|
+
store: a,
|
|
222
235
|
withBackdrop: c = !1,
|
|
223
236
|
withCloseButton: w = !0,
|
|
224
|
-
...
|
|
225
|
-
}, y) => /* @__PURE__ */
|
|
237
|
+
...j
|
|
238
|
+
}, y) => /* @__PURE__ */ r.jsx(
|
|
226
239
|
k,
|
|
227
240
|
{
|
|
228
|
-
backdrop: c ? /* @__PURE__ */
|
|
229
|
-
hideOnInteractOutside:
|
|
241
|
+
backdrop: c ? /* @__PURE__ */ r.jsx(f, { hideOnInteractOutside: e }) : !1,
|
|
242
|
+
hideOnInteractOutside: e,
|
|
230
243
|
modal: c,
|
|
231
244
|
ref: y,
|
|
232
|
-
render: /* @__PURE__ */
|
|
233
|
-
store:
|
|
234
|
-
...
|
|
235
|
-
|
|
236
|
-
|
|
245
|
+
render: /* @__PURE__ */ r.jsx(A, { placement: o, size: i }),
|
|
246
|
+
store: a,
|
|
247
|
+
...j,
|
|
248
|
+
children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
249
|
+
w && /* @__PURE__ */ r.jsx(h, {}),
|
|
250
|
+
t
|
|
251
|
+
] })
|
|
252
|
+
}
|
|
237
253
|
)
|
|
238
254
|
);
|
|
239
|
-
function
|
|
240
|
-
return
|
|
255
|
+
function st(t = {}) {
|
|
256
|
+
return v({ animated: !0, ...t });
|
|
241
257
|
}
|
|
242
|
-
const
|
|
258
|
+
const G = ({
|
|
243
259
|
hideOnInteractOutside: t = !0,
|
|
244
|
-
...
|
|
245
|
-
}) => /* @__PURE__ */
|
|
246
|
-
|
|
260
|
+
...e
|
|
261
|
+
}) => /* @__PURE__ */ r.jsx(f, { hideOnInteractOutside: t, ...e }), g = m(({ as: t, store: e, ...o }, i) => /* @__PURE__ */ r.jsx(
|
|
262
|
+
C,
|
|
247
263
|
{
|
|
248
|
-
ref:
|
|
249
|
-
render: t ? (
|
|
250
|
-
store:
|
|
264
|
+
ref: i,
|
|
265
|
+
render: t ? (a) => /* @__PURE__ */ r.jsx(t, { ...a }) : void 0,
|
|
266
|
+
store: e,
|
|
251
267
|
...o
|
|
252
268
|
}
|
|
253
|
-
)),
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}),
|
|
269
|
+
)), J = Object.assign(q, {
|
|
270
|
+
Backdrop: G,
|
|
271
|
+
Close: h,
|
|
272
|
+
Content: X,
|
|
273
|
+
Footer: H,
|
|
274
|
+
Title: Z,
|
|
275
|
+
Trigger: g
|
|
276
|
+
}), nt = Object.assign(T, { Header: F, Trigger: g });
|
|
261
277
|
export {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
278
|
+
nt as AssetDrawer,
|
|
279
|
+
J as Drawer,
|
|
280
|
+
G as DrawerBackdrop,
|
|
281
|
+
g as Trigger,
|
|
282
|
+
st as useDrawer
|
|
267
283
|
};
|