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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u } from "./P4IRICAX-
|
|
3
|
-
import { a as c } from "./VGCJ63VH-
|
|
4
|
-
import { f as l, c as p, h as D, _ as m, i as g, g as a, s as v } from "./LVA2YJMS-
|
|
2
|
+
import { u } from "./P4IRICAX-DezbJY4s.mjs";
|
|
3
|
+
import { a as c } from "./VGCJ63VH-BMzoZtCu.mjs";
|
|
4
|
+
import { f as l, c as p, h as D, _ as m, i as g, g as a, s as v } from "./LVA2YJMS-DDEmK0pp.mjs";
|
|
5
5
|
var f = "button", d = p(
|
|
6
6
|
function(r) {
|
|
7
7
|
var s = r, { store: o } = s, e = m(s, ["store"]);
|
package/dist/Accordion.mjs
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import o, { cloneElement as m } from "react";
|
|
3
|
+
import e, { th as r } from "@xstyled/styled-components";
|
|
4
|
+
import { D as u } from "./P4IRICAX-DezbJY4s.mjs";
|
|
5
|
+
import { d as p, e as f } from "./VGCJ63VH-BMzoZtCu.mjs";
|
|
4
6
|
import "./Icon.mjs";
|
|
5
|
-
import { R as
|
|
6
|
-
import { forwardRef as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { d as g, e as h } from "./VGCJ63VH-C0UPBY-5.mjs";
|
|
10
|
-
const x = t.divBox`
|
|
11
|
-
${i("accordions.wrapper")};
|
|
7
|
+
import { R as g } from "./index-CmsWSKKs.mjs";
|
|
8
|
+
import { forwardRef as h } from "./System.mjs";
|
|
9
|
+
const $ = e.divBox`
|
|
10
|
+
${r("accordions.wrapper")};
|
|
12
11
|
transition: medium;
|
|
13
12
|
|
|
14
13
|
&:hover {
|
|
15
14
|
border-color: neutral-50;
|
|
16
15
|
}
|
|
17
|
-
`, n =
|
|
16
|
+
`, n = e.divBox`
|
|
18
17
|
flex-shrink: 0;
|
|
19
|
-
${
|
|
18
|
+
${r("accordions.icon")};
|
|
20
19
|
transform: rotate3d(0);
|
|
21
20
|
transition: medium;
|
|
22
21
|
width: 32;
|
|
@@ -28,10 +27,10 @@ const x = t.divBox`
|
|
|
28
27
|
& *:first-child {
|
|
29
28
|
margin: auto;
|
|
30
29
|
}
|
|
31
|
-
`,
|
|
32
|
-
${
|
|
30
|
+
`, v = e(u)`
|
|
31
|
+
${r("accordions.title")};
|
|
33
32
|
width: 100%;
|
|
34
|
-
padding: ${
|
|
33
|
+
padding: ${r("accordions.padding")};
|
|
35
34
|
background-color: transparent;
|
|
36
35
|
border: 0;
|
|
37
36
|
display: flex;
|
|
@@ -59,7 +58,7 @@ const x = t.divBox`
|
|
|
59
58
|
color: inherit;
|
|
60
59
|
}
|
|
61
60
|
}
|
|
62
|
-
`,
|
|
61
|
+
`, w = e(p)`
|
|
63
62
|
display: grid;
|
|
64
63
|
grid-template-rows: 0fr;
|
|
65
64
|
transition-property: grid-template-rows;
|
|
@@ -75,24 +74,18 @@ const x = t.divBox`
|
|
|
75
74
|
&[data-enter] {
|
|
76
75
|
grid-template-rows: 1fr;
|
|
77
76
|
}
|
|
78
|
-
`,
|
|
79
|
-
${
|
|
80
|
-
padding: ${
|
|
77
|
+
`, E = e.div`
|
|
78
|
+
${r("accordions.content")};
|
|
79
|
+
padding: ${r("accordions.padding")};
|
|
81
80
|
padding-top: 0;
|
|
82
81
|
color: neutral-70;
|
|
83
|
-
`,
|
|
84
|
-
({ children:
|
|
85
|
-
/* @__PURE__ */ o.jsxs($, { "data-testid": r ? `${r}-title` : void 0, store: s, children: [
|
|
86
|
-
c,
|
|
87
|
-
/* @__PURE__ */ o.jsx(n, { children: m(d, { size: "sm" }) })
|
|
88
|
-
] }),
|
|
89
|
-
/* @__PURE__ */ o.jsx(j, { "data-testid": r ? `${r}-content` : void 0, store: s, children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(v, { children: e }) }) })
|
|
90
|
-
] })
|
|
82
|
+
`, A = h(
|
|
83
|
+
({ children: i, dataTestId: t, icon: c = /* @__PURE__ */ o.createElement(g, null), store: a, title: d, ...s }, l) => /* @__PURE__ */ o.createElement($, { "data-testid": t, ref: l, ...s }, /* @__PURE__ */ o.createElement(v, { "data-testid": t ? `${t}-title` : void 0, store: a }, d, /* @__PURE__ */ o.createElement(n, null, m(c, { size: "sm" }))), /* @__PURE__ */ o.createElement(w, { "data-testid": t ? `${t}-content` : void 0, store: a }, /* @__PURE__ */ o.createElement("div", null, /* @__PURE__ */ o.createElement(E, null, i))))
|
|
91
84
|
);
|
|
92
|
-
function
|
|
93
|
-
return
|
|
85
|
+
function B(i) {
|
|
86
|
+
return f({ animated: !0, ...i });
|
|
94
87
|
}
|
|
95
88
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
A as Accordion,
|
|
90
|
+
B as useAccordion
|
|
98
91
|
};
|
package/dist/Alert.mjs
CHANGED
|
@@ -1,132 +1,126 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { CloseButton as
|
|
2
|
+
import s, { Children as B, cloneElement as m } from "react";
|
|
3
|
+
import f, { th as o, css as c, system as _ } from "@xstyled/styled-components";
|
|
4
|
+
import { Text as D } from "./Text.mjs";
|
|
5
|
+
import { VariantIcon as O } from "./VariantIcon.mjs";
|
|
6
|
+
import { CloseButton as h } from "./CloseButton.mjs";
|
|
7
|
+
import { Button as w } from "./Button.mjs";
|
|
7
8
|
import { forwardRef as d } from "./System.mjs";
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
import { VariantIcon as q } from "./VariantIcon.mjs";
|
|
11
|
-
const x = c.divBox`
|
|
9
|
+
import { Box as E } from "./Box.mjs";
|
|
10
|
+
const $ = f.divBox`
|
|
12
11
|
display: flex;
|
|
13
12
|
gap: md;
|
|
14
13
|
flex-direction: column;
|
|
15
14
|
justify-content: space-between;
|
|
16
15
|
align-items: flex-start;
|
|
17
16
|
flex: 1;
|
|
18
|
-
`,
|
|
17
|
+
`, A = f(O)`
|
|
19
18
|
position: absolute;
|
|
20
19
|
align-self: flex-start;
|
|
21
|
-
`,
|
|
20
|
+
`, q = f.divBox(({ icon: n, isFullWidth: r, size: e, variant: l }) => c`
|
|
22
21
|
position: relative;
|
|
23
22
|
display: flex;
|
|
24
23
|
align-items: flex-start;
|
|
25
24
|
width: 100%;
|
|
26
|
-
max-width: ${
|
|
27
|
-
${
|
|
28
|
-
${
|
|
29
|
-
${
|
|
25
|
+
max-width: ${r ? "100%" : "max-content"};
|
|
26
|
+
${o("alerts.default")};
|
|
27
|
+
${o(`alerts.${l}`)};
|
|
28
|
+
${o(`alerts.sizes.${e}`)};
|
|
30
29
|
|
|
31
|
-
${n !== null && e === "sm" &&
|
|
32
|
-
${
|
|
33
|
-
margin-left: calc(${
|
|
30
|
+
${n !== null && e === "sm" && c`
|
|
31
|
+
${$} {
|
|
32
|
+
margin-left: calc(${o("icons.sm")} + ${o("space.md")});
|
|
34
33
|
}
|
|
35
34
|
`}
|
|
36
35
|
|
|
37
|
-
${n !== null && e === "md" &&
|
|
38
|
-
${
|
|
39
|
-
margin-left: calc(${
|
|
40
|
-
gap: ${
|
|
41
|
-
font-size: ${
|
|
36
|
+
${n !== null && e === "md" && c`
|
|
37
|
+
${$} {
|
|
38
|
+
margin-left: calc(${o("icons.md")} + ${o("space.lg")});
|
|
39
|
+
gap: ${o("space.lg")};
|
|
40
|
+
font-size: ${o("fontSizes.md")};
|
|
42
41
|
}
|
|
43
42
|
|
|
44
|
-
${
|
|
43
|
+
${A} {
|
|
45
44
|
margin-top: -3;
|
|
46
45
|
}
|
|
47
46
|
`}
|
|
48
|
-
`),
|
|
47
|
+
`), F = f(D)(({ variant: n }) => c`
|
|
49
48
|
font-weight: medium;
|
|
50
|
-
${
|
|
51
|
-
${
|
|
52
|
-
${
|
|
53
|
-
`),
|
|
49
|
+
${o("alerts.title.default")};
|
|
50
|
+
${o(`alerts.title.sizes.${n}`)};
|
|
51
|
+
${_};
|
|
52
|
+
`), b = ({ children: n, dataTestId: r, variant: e }) => /* @__PURE__ */ s.createElement(F, { "data-testid": r, variant: e }, n), G = d(
|
|
54
53
|
({
|
|
55
54
|
children: n,
|
|
56
|
-
cta:
|
|
55
|
+
cta: r,
|
|
57
56
|
dataTestId: e,
|
|
58
57
|
handleClose: l,
|
|
59
58
|
icon: p,
|
|
60
|
-
isFullWidth:
|
|
61
|
-
size:
|
|
62
|
-
variant:
|
|
59
|
+
isFullWidth: C,
|
|
60
|
+
size: a = "sm",
|
|
61
|
+
variant: i = "default",
|
|
63
62
|
...I
|
|
64
|
-
},
|
|
65
|
-
const
|
|
63
|
+
}, k) => {
|
|
64
|
+
const T = e ? `${e}-close-button` : void 0, V = i === "beige" ? "default" : i, u = i === "ai", j = B.toArray(n).map((t) => t.type === b ? m(t, { variant: a }) : t), x = (t) => {
|
|
66
65
|
var y;
|
|
67
66
|
if (t) {
|
|
68
|
-
if (t.type ===
|
|
67
|
+
if (t.type === v)
|
|
69
68
|
return m(t, {
|
|
69
|
+
size: a,
|
|
70
70
|
ai: u,
|
|
71
|
-
size: i,
|
|
72
71
|
variant: u ? "primary" : void 0
|
|
73
72
|
});
|
|
74
|
-
if (t.type ===
|
|
73
|
+
if (t.type === S)
|
|
75
74
|
return m(t, {
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
size: a,
|
|
76
|
+
ai: u
|
|
78
77
|
});
|
|
79
78
|
if ((y = t.props) != null && y.children)
|
|
80
79
|
return m(t, {
|
|
81
80
|
...t.props,
|
|
82
81
|
children: B.map(
|
|
83
82
|
t.props.children,
|
|
84
|
-
(R) =>
|
|
83
|
+
(R) => x(R)
|
|
85
84
|
)
|
|
86
85
|
});
|
|
87
86
|
}
|
|
88
87
|
return t;
|
|
89
|
-
}, g =
|
|
90
|
-
return /* @__PURE__ */ s.
|
|
91
|
-
|
|
88
|
+
}, g = s.isValidElement(r) ? x(r) : r;
|
|
89
|
+
return /* @__PURE__ */ s.createElement(
|
|
90
|
+
q,
|
|
92
91
|
{
|
|
93
92
|
"data-testid": e,
|
|
94
93
|
icon: p,
|
|
95
|
-
isFullWidth:
|
|
96
|
-
ref:
|
|
97
|
-
size:
|
|
98
|
-
variant:
|
|
99
|
-
...I
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
/* @__PURE__ */ s.jsx(w, { flex: 1, children: T }),
|
|
115
|
-
!!g && /* @__PURE__ */ s.jsx(w, { alignItems: "center", display: "flex", gap: "sm", children: g })
|
|
116
|
-
] })
|
|
117
|
-
]
|
|
118
|
-
}
|
|
94
|
+
isFullWidth: C,
|
|
95
|
+
ref: k,
|
|
96
|
+
size: a,
|
|
97
|
+
variant: i,
|
|
98
|
+
...I
|
|
99
|
+
},
|
|
100
|
+
!!l && /* @__PURE__ */ s.createElement(
|
|
101
|
+
h,
|
|
102
|
+
{
|
|
103
|
+
dataTestId: T,
|
|
104
|
+
onClick: l,
|
|
105
|
+
position: "absolute",
|
|
106
|
+
right: "sm",
|
|
107
|
+
size: "xs",
|
|
108
|
+
top: "sm"
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
p !== null && /* @__PURE__ */ s.createElement(A, { icon: p, size: a, variant: V }),
|
|
112
|
+
/* @__PURE__ */ s.createElement($, null, /* @__PURE__ */ s.createElement(E, { flex: 1 }, j), !!g && /* @__PURE__ */ s.createElement(E, { alignItems: "center", display: "flex", gap: "sm" }, g))
|
|
119
113
|
);
|
|
120
114
|
}
|
|
115
|
+
), v = d(
|
|
116
|
+
({ variant: n = "secondary", ...r }, e) => /* @__PURE__ */ s.createElement(w, { flexShrink: 0, ref: e, w: "fit-content", ...r, variant: n })
|
|
121
117
|
), S = d(
|
|
122
|
-
({ variant: n = "
|
|
123
|
-
),
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
SecondaryButton: C,
|
|
128
|
-
Title: v
|
|
118
|
+
({ variant: n = "tertiary", ...r }, e) => /* @__PURE__ */ s.createElement(w, { flexShrink: 0, ref: e, w: "fit-content", ...r, variant: n })
|
|
119
|
+
), U = Object.assign(G, {
|
|
120
|
+
Title: b,
|
|
121
|
+
Button: v,
|
|
122
|
+
SecondaryButton: S
|
|
129
123
|
});
|
|
130
124
|
export {
|
|
131
|
-
|
|
125
|
+
U as Alert
|
|
132
126
|
};
|
package/dist/AspectRatio.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
({ ratio: t }) =>
|
|
2
|
+
import i from "react";
|
|
3
|
+
import r, { css as s } from "@xstyled/styled-components";
|
|
4
|
+
import { forwardRef as c } from "./System.mjs";
|
|
5
|
+
const n = r.divBox(
|
|
6
|
+
({ ratio: t }) => s`
|
|
7
7
|
position: relative;
|
|
8
8
|
|
|
9
9
|
& > * {
|
|
@@ -32,10 +32,10 @@ const p = r.divBox(
|
|
|
32
32
|
padding-bottom: ${1 / t * 100}%;
|
|
33
33
|
}
|
|
34
34
|
`
|
|
35
|
-
),
|
|
36
|
-
({ ratio: t = 4 / 3, ...
|
|
35
|
+
), a = c(
|
|
36
|
+
({ ratio: t = 4 / 3, ...e }, o) => /* @__PURE__ */ i.createElement(n, { ratio: t, ref: o, ...e })
|
|
37
37
|
);
|
|
38
|
-
|
|
38
|
+
a.displayName = "AspectRatio";
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
a as AspectRatio
|
|
41
41
|
};
|
package/dist/Avatar.mjs
CHANGED
|
@@ -1,57 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import m, { th as
|
|
4
|
-
import { Box as v } from "./Box.mjs";
|
|
5
|
-
import { forwardRef as y } from "./System.mjs";
|
|
2
|
+
import a, { memo as x } from "react";
|
|
3
|
+
import m, { th as v, useTheme as y } from "@xstyled/styled-components";
|
|
6
4
|
import { Shape as C } from "./Shape.mjs";
|
|
7
5
|
import { Text as $ } from "./Text.mjs";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
`, A = m($)`
|
|
11
|
-
${g("avatars.text")};
|
|
12
|
-
`;
|
|
6
|
+
import { forwardRef as b } from "./System.mjs";
|
|
7
|
+
import { Box as A } from "./Box.mjs";
|
|
13
8
|
function z(o, t = "") {
|
|
14
|
-
const
|
|
15
|
-
return
|
|
9
|
+
const e = Object.keys(o).filter((r) => r.startsWith("secondary-")), s = t.length % e.length;
|
|
10
|
+
return e[s];
|
|
16
11
|
}
|
|
17
|
-
function
|
|
18
|
-
const [t,
|
|
19
|
-
return t &&
|
|
12
|
+
function E(o = "") {
|
|
13
|
+
const [t, e] = o.split(" ");
|
|
14
|
+
return t && e ? `${t.charAt(0).toUpperCase()}${e.charAt(0).toUpperCase()}` : t.substring(0, 2).toUpperCase();
|
|
20
15
|
}
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
16
|
+
const S = m(C)`
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
`, T = m($)`
|
|
19
|
+
${v("avatars.text")};
|
|
20
|
+
`, k = x(
|
|
21
|
+
b(
|
|
22
|
+
({
|
|
23
|
+
color: o,
|
|
24
|
+
fontSize: t,
|
|
25
|
+
getInitials: e = E,
|
|
26
|
+
h: s,
|
|
27
|
+
name: r,
|
|
28
|
+
shape: f = "circle",
|
|
29
|
+
size: p = "md",
|
|
30
|
+
src: n,
|
|
31
|
+
w: l,
|
|
32
|
+
...u
|
|
33
|
+
}, h) => {
|
|
34
|
+
const i = y(), d = o || z(i.colors, r), c = i.avatars.sizes[p], g = t || `calc(${l ? i.toRem(l) : c} / 2.5)`;
|
|
35
|
+
return /* @__PURE__ */ a.createElement(
|
|
36
|
+
S,
|
|
37
|
+
{
|
|
38
|
+
"aria-label": r,
|
|
39
|
+
backgroundColor: d,
|
|
40
|
+
h: s || c,
|
|
41
|
+
ref: h,
|
|
42
|
+
role: "img",
|
|
43
|
+
shape: f,
|
|
44
|
+
w: l || c,
|
|
45
|
+
...u
|
|
46
|
+
},
|
|
47
|
+
n && /* @__PURE__ */ a.createElement("img", { alt: r, src: n }),
|
|
48
|
+
!n && /* @__PURE__ */ a.createElement(A, null, /* @__PURE__ */ a.createElement(T, { fontSize: g, m: 0 }, e(r)))
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
)
|
|
53
52
|
);
|
|
54
|
-
|
|
53
|
+
k.displayName = "Avatar";
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
k as Avatar
|
|
57
56
|
};
|