welcome-ui 8.1.3 → 8.2.0-alpha.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-BOEe01VW.mjs → AXB53BZF-XKOjjeWO.mjs} +3 -3
- package/dist/Accordion.mjs +30 -23
- package/dist/Alert.mjs +72 -66
- package/dist/AspectRatio.mjs +9 -9
- package/dist/Avatar.mjs +45 -41
- package/dist/{BYC7LY2E-B1IDizRs.mjs → BYC7LY2E-CWSI38FM.mjs} +128 -127
- package/dist/Badge.mjs +25 -25
- package/dist/Box.mjs +5 -5
- package/dist/Breadcrumb.mjs +118 -112
- package/dist/Button.mjs +72 -67
- package/dist/ButtonGroup.mjs +12 -11
- 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-IA_gVoXd.mjs → CustomPopper-DezjKb9n.mjs} +1458 -1442
- package/dist/DatePicker.mjs +63 -62
- package/dist/DateTimePicker.mjs +69 -63
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +180 -168
- package/dist/DropdownMenu.mjs +354 -351
- package/dist/Field.mjs +103 -92
- package/dist/FieldGroup.mjs +12 -9
- package/dist/FileDrop.mjs +316 -295
- package/dist/FileUpload.mjs +83 -69
- package/dist/Files.mjs +41 -41
- package/dist/Flex.mjs +13 -13
- package/dist/Grid.mjs +29 -29
- package/dist/Hint.mjs +12 -12
- package/dist/{ITI7HKP4-EL9KXYBU.mjs → ITI7HKP4-C89kOQb8.mjs} +68 -67
- package/dist/Icon.mjs +25 -25
- package/dist/Icons.mjs +988 -988
- package/dist/IconsFont.mjs +22 -22
- package/dist/InputText.mjs +64 -56
- package/dist/{JC64G2H7-BzklVBKM.mjs → JC64G2H7-afsomHuH.mjs} +47 -46
- package/dist/{KUU7WJ55-CS4NemC6.mjs → KUU7WJ55-CzsjuIMv.mjs} +1 -1
- package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
- package/dist/Label.mjs +37 -35
- package/dist/Link.mjs +32 -28
- package/dist/Loader.mjs +20 -16
- package/dist/Logo.mjs +55 -42
- package/dist/{MTZPJQMC-CMjAwC0N.mjs → MTZPJQMC-TybFZCho.mjs} +2 -2
- package/dist/Modal.mjs +263 -244
- package/dist/{NLEBE274-QOMV1l7e.mjs → NLEBE274-oSxMftGy.mjs} +9 -9
- package/dist/{P2CTZE2T-Cl2w7OLV.mjs → P2CTZE2T-DOT1mNnX.mjs} +49 -48
- package/dist/{P4IRICAX-DezbJY4s.mjs → P4IRICAX-CWSZLTGz.mjs} +3 -3
- package/dist/Pagination.mjs +105 -103
- package/dist/PasswordInput.mjs +35 -34
- package/dist/Picker.mjs +36 -34
- package/dist/Popover.mjs +106 -99
- package/dist/{QYJ6MIDR-Bb0O5xUM.mjs → QYJ6MIDR-DJ-vUdAM.mjs} +31 -30
- package/dist/Radio.mjs +52 -46
- package/dist/RadioGroup.mjs +47 -47
- package/dist/RadioTab.mjs +37 -35
- package/dist/{SYRFVSLH-jn06-eLy.mjs → SYRFVSLH-B6m278Vb.mjs} +11 -10
- package/dist/Search.mjs +147 -135
- package/dist/Select.mjs +348 -330
- package/dist/Shape.mjs +9 -9
- package/dist/Slider.mjs +353 -326
- package/dist/Stack.mjs +24 -23
- package/dist/Swiper.mjs +192 -186
- package/dist/Table.mjs +23 -23
- package/dist/Tabs.mjs +205 -200
- package/dist/Tag.mjs +49 -47
- package/dist/Text.mjs +20 -20
- package/dist/Textarea.mjs +40 -40
- package/dist/TimePicker.mjs +59 -58
- package/dist/Toast.mjs +135 -128
- package/dist/Toggle.mjs +27 -24
- package/dist/Tooltip.mjs +103 -99
- package/dist/UniversalLink.mjs +15 -15
- package/dist/{VEVQD5MH-CuegL0m0.mjs → VEVQD5MH-0w9Y7Ytc.mjs} +3 -3
- package/dist/{VGCJ63VH-BMzoZtCu.mjs → VGCJ63VH-C0UPBY-5.mjs} +39 -38
- package/dist/VariantIcon.mjs +23 -22
- package/dist/WelcomeLoader.mjs +122 -121
- package/dist/WuiProvider.mjs +52 -44
- package/dist/{X5NMLKT6-CvSCix-_.mjs → X5NMLKT6-BJw3xE-K.mjs} +2 -2
- package/dist/{YV4JVR4I-Bh7B7TET.mjs → YV4JVR4I-DPC8mMuG.mjs} +57 -57
- package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
- package/dist/{index-5PUh49rV.mjs → index-62h-enZF.mjs} +62 -61
- package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
- 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-DpkNUfAS.mjs +11 -0
- package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
- package/dist/{index-Bkl89twW.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 +805 -805
- package/dist/types/components/Accordion/index.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +2 -2
- package/dist/types/components/Alert/styles.d.ts +4 -4
- package/dist/types/components/Alert/theme.d.ts +4 -4
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Avatar/styles.d.ts +4 -4
- package/dist/types/components/Avatar/theme.d.ts +1 -1
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Badge/styles.d.ts +2 -2
- package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +4 -5
- 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 +2 -2
- package/dist/types/components/Card/index.d.ts +2 -3
- package/dist/types/components/Checkbox/index.d.ts +2 -2
- package/dist/types/components/ClearButton/index.d.ts +4 -5
- package/dist/types/components/ClearButton/styles.d.ts +2 -2
- package/dist/types/components/CloseButton/styles.d.ts +2 -2
- 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/utils.d.ts +1 -1
- 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 +8 -8
- package/dist/types/components/Drawer/styles.d.ts +3 -3
- package/dist/types/components/Drawer/theme.d.ts +1 -1
- package/dist/types/components/DropdownMenu/index.d.ts +4 -4
- 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 +16 -16
- package/dist/types/components/FileUpload/index.d.ts +13 -13
- package/dist/types/components/Files/index.d.ts +4 -4
- package/dist/types/components/Files/types.d.ts +1 -1
- package/dist/types/components/Hint/index.d.ts +1 -2
- 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 +1 -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/Link/index.d.ts +3 -3
- package/dist/types/components/Link/styles.d.ts +2 -2
- package/dist/types/components/Loader/index.d.ts +1 -1
- package/dist/types/components/Loader/styles.d.ts +2 -2
- package/dist/types/components/Loader/theme.d.ts +2 -2
- 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 +4 -5
- package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
- package/dist/types/components/Modal/Assets/index.d.ts +5 -5
- package/dist/types/components/Modal/Assets/styles.d.ts +4 -4
- package/dist/types/components/Modal/Close.d.ts +1 -2
- 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 +11 -11
- package/dist/types/components/Modal/styles.d.ts +4 -4
- package/dist/types/components/Modal/theme.d.ts +1 -1
- package/dist/types/components/Pagination/index.d.ts +2 -2
- package/dist/types/components/Pagination/utils.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/usePopover.d.ts +6 -6
- package/dist/types/components/Radio/index.d.ts +5 -5
- package/dist/types/components/Radio/styles.d.ts +2 -2
- package/dist/types/components/RadioGroup/index.d.ts +2 -2
- package/dist/types/components/RadioTab/index.d.ts +2 -2
- package/dist/types/components/RadioTab/styles.d.ts +9 -9
- package/dist/types/components/Search/index.d.ts +4 -4
- package/dist/types/components/Select/index.d.ts +9 -9
- package/dist/types/components/Select/styles.d.ts +4 -4
- package/dist/types/components/Select/utils.d.ts +4 -4
- package/dist/types/components/Shape/index.d.ts +1 -1
- package/dist/types/components/Shape/styles.d.ts +2 -2
- 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 +10 -10
- package/dist/types/components/Stack/index.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +16 -17
- package/dist/types/components/Swiper/styles.d.ts +55 -55
- package/dist/types/components/System/index.d.ts +10 -10
- package/dist/types/components/Table/index.d.ts +6 -7
- package/dist/types/components/Table/styles.d.ts +1 -1
- package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
- package/dist/types/components/Tabs/TabList.d.ts +2 -2
- package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
- package/dist/types/components/Tabs/theme.d.ts +1 -1
- 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 +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/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 +4 -4
- package/dist/types/components/Toast/index.d.ts +5 -5
- package/dist/types/components/Toast/styles.d.ts +10 -10
- package/dist/types/components/Toast/theme.d.ts +1 -1
- package/dist/types/components/Toast/utils.d.ts +13 -13
- package/dist/types/components/Toggle/index.d.ts +2 -2
- package/dist/types/components/Toggle/theme.d.ts +4 -4
- package/dist/types/components/Tooltip/index.d.ts +3 -3
- 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 +1 -1
- package/dist/types/theme/colors.d.ts +3 -3
- package/dist/types/theme/dark.d.ts +1 -1
- package/dist/types/theme/defaultFields.d.ts +5 -5
- 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 +7 -7
- package/dist/types/theme/space.d.ts +9 -9
- package/dist/types/utils/field-styles.d.ts +2 -2
- 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/wrap-children.d.ts +1 -1
- package/dist/{use-viewport-CfklieD-.mjs → use-viewport-CWpjoHXy.mjs} +2 -2
- package/dist/utils.mjs +13 -13
- package/dist/wrap-children-CzmhoRzd.mjs +13 -0
- package/package.json +3 -27
- package/dist/LVA2YJMS-DDEmK0pp.mjs +0 -1482
- package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
- package/dist/index-B0gDDiFm.mjs +0 -66
- package/dist/index-B22SHR8h.mjs +0 -26
- package/dist/index-CQD9fgf_.mjs +0 -11
- package/dist/index-CmsWSKKs.mjs +0 -11
- package/dist/index-u1oHKa7X.mjs +0 -16
- package/dist/index-wr_b5GSV.mjs +0 -36
- package/dist/radio-group-RFyDp0KD.mjs +0 -51
- package/dist/wrap-children-aq69jtFP.mjs +0 -12
- package/dist/{downshift.esm-D0ns_SQs.mjs → downshift.esm-B7Jil1wW.mjs} +9 -9
package/dist/Button.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import r from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
10
|
-
width: ${t(`buttons.sizes.${
|
|
2
|
+
import { j as r } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
|
+
import { Box as l } from "./Box.mjs";
|
|
4
|
+
import { Loader as f } from "./Loader.mjs";
|
|
5
|
+
import { shouldForwardProp as p, forwardRef as y } from "./System.mjs";
|
|
6
|
+
import { B as w } from "./X5NMLKT6-BJw3xE-K.mjs";
|
|
7
|
+
import x, { th as t, system as g, css as n } from "@xstyled/styled-components";
|
|
8
|
+
import { h as j } from "./hide-focus-rings-root-CCXdysih.mjs";
|
|
9
|
+
const B = (s, i = "square") => n`
|
|
10
|
+
width: ${t(`buttons.sizes.${s}.height`)};
|
|
11
11
|
padding: 0;
|
|
12
|
-
${
|
|
13
|
-
border-radius: ${t(`buttons.sizes.${
|
|
12
|
+
${i === "circle" && n`
|
|
13
|
+
border-radius: ${t(`buttons.sizes.${s}.height`)};
|
|
14
14
|
`};
|
|
15
|
-
`,
|
|
16
|
-
({ ai:
|
|
15
|
+
`, c = x(w).withConfig({ shouldForwardProp: p })(
|
|
16
|
+
({ ai: s, danger: i, disabled: u, shape: $, size: e = "md", variant: o = "primary" }) => n`
|
|
17
17
|
${t(`buttons.${o}`)};
|
|
18
|
-
${
|
|
18
|
+
${s && n`
|
|
19
19
|
${t(`buttons.ai.${o}`)};
|
|
20
20
|
`}
|
|
21
|
-
${
|
|
21
|
+
${i && n`
|
|
22
22
|
${t(`buttons.danger.${o}`)};
|
|
23
23
|
`}
|
|
24
24
|
position: relative;
|
|
@@ -26,7 +26,7 @@ const E = (i, s = "square") => e`
|
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: center;
|
|
28
28
|
width: auto;
|
|
29
|
-
${t(`buttons.sizes.${
|
|
29
|
+
${t(`buttons.sizes.${e}`)};
|
|
30
30
|
text-decoration: none;
|
|
31
31
|
text-align: center;
|
|
32
32
|
white-space: nowrap;
|
|
@@ -37,22 +37,22 @@ const E = (i, s = "square") => e`
|
|
|
37
37
|
appearance: none;
|
|
38
38
|
overflow: hidden;
|
|
39
39
|
transition: medium;
|
|
40
|
-
${$ &&
|
|
41
|
-
${
|
|
40
|
+
${$ && B(e, $)};
|
|
41
|
+
${g};
|
|
42
42
|
|
|
43
43
|
& > svg.wui-icon,
|
|
44
44
|
& > i.wui-icon-font {
|
|
45
45
|
font-weight: initial;
|
|
46
46
|
|
|
47
47
|
&:only-child {
|
|
48
|
-
width: ${t(`buttons.icon.only.${
|
|
49
|
-
height: ${t(`buttons.icon.only.${
|
|
50
|
-
font-size: ${t(`buttons.icon.only.${
|
|
48
|
+
width: ${t(`buttons.icon.only.${e}`)};
|
|
49
|
+
height: ${t(`buttons.icon.only.${e}`)};
|
|
50
|
+
font-size: ${t(`buttons.icon.only.${e}`)};
|
|
51
51
|
}
|
|
52
52
|
&:not(:only-child) {
|
|
53
|
-
width: ${t(`buttons.icon.default.${
|
|
54
|
-
height: ${t(`buttons.icon.default.${
|
|
55
|
-
font-size: ${t(`buttons.icon.default.${
|
|
53
|
+
width: ${t(`buttons.icon.default.${e}`)};
|
|
54
|
+
height: ${t(`buttons.icon.default.${e}`)};
|
|
55
|
+
font-size: ${t(`buttons.icon.default.${e}`)};
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -60,34 +60,34 @@ const E = (i, s = "square") => e`
|
|
|
60
60
|
margin-right: sm;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
${!u &&
|
|
64
|
-
[${
|
|
63
|
+
${!u && n`
|
|
64
|
+
[${j}] &:focus {
|
|
65
65
|
box-shadow: none;
|
|
66
66
|
}
|
|
67
67
|
&:focus {
|
|
68
68
|
${t(`buttons.focus.${o}`)};
|
|
69
|
-
${
|
|
69
|
+
${s && n`
|
|
70
70
|
${t(`buttons.focus.ai.${o}`)};
|
|
71
71
|
`}
|
|
72
|
-
${
|
|
72
|
+
${i && n`
|
|
73
73
|
${t(`buttons.focus.danger.${o}`)};
|
|
74
74
|
`}
|
|
75
75
|
}
|
|
76
76
|
&:hover {
|
|
77
77
|
${t(`buttons.hover.${o}`)};
|
|
78
|
-
${
|
|
78
|
+
${s && n`
|
|
79
79
|
${t(`buttons.hover.ai.${o}`)};
|
|
80
80
|
`}
|
|
81
|
-
${
|
|
81
|
+
${i && n`
|
|
82
82
|
${t(`buttons.hover.danger.${o}`)};
|
|
83
83
|
`}
|
|
84
84
|
}
|
|
85
85
|
&:active {
|
|
86
86
|
${t(`buttons.active.${o}`)};
|
|
87
|
-
${
|
|
87
|
+
${s && n`
|
|
88
88
|
${t(`buttons.active.ai.${o}`)};
|
|
89
89
|
`}
|
|
90
|
-
${
|
|
90
|
+
${i && n`
|
|
91
91
|
${t(`buttons.active.danger.${o}`)};
|
|
92
92
|
`}
|
|
93
93
|
}
|
|
@@ -97,54 +97,59 @@ const E = (i, s = "square") => e`
|
|
|
97
97
|
cursor: not-allowed;
|
|
98
98
|
}
|
|
99
99
|
`
|
|
100
|
-
), R =
|
|
100
|
+
), R = y(
|
|
101
101
|
({
|
|
102
|
-
ai:
|
|
103
|
-
children:
|
|
102
|
+
ai: s,
|
|
103
|
+
children: i,
|
|
104
104
|
danger: u,
|
|
105
105
|
dataTestId: $,
|
|
106
|
-
disabled:
|
|
106
|
+
disabled: e,
|
|
107
107
|
isLoading: o,
|
|
108
|
-
size:
|
|
109
|
-
variant:
|
|
108
|
+
size: h = "md",
|
|
109
|
+
variant: a = "primary",
|
|
110
110
|
...b
|
|
111
|
-
},
|
|
112
|
-
const
|
|
113
|
-
return /* @__PURE__ */ r.
|
|
114
|
-
|
|
111
|
+
}, m) => {
|
|
112
|
+
const d = e || o;
|
|
113
|
+
return /* @__PURE__ */ r.jsxs(
|
|
114
|
+
c,
|
|
115
115
|
{
|
|
116
|
-
ai:
|
|
116
|
+
ai: s,
|
|
117
117
|
danger: u,
|
|
118
118
|
"data-loading": o,
|
|
119
119
|
"data-testid": $,
|
|
120
|
-
disabled:
|
|
121
|
-
ref:
|
|
122
|
-
size:
|
|
123
|
-
variant:
|
|
124
|
-
...b
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
120
|
+
disabled: d,
|
|
121
|
+
ref: m,
|
|
122
|
+
size: h,
|
|
123
|
+
variant: d ? "disabled" : a,
|
|
124
|
+
...b,
|
|
125
|
+
children: [
|
|
126
|
+
o ? /* @__PURE__ */ r.jsxs("div", { children: [
|
|
127
|
+
/* @__PURE__ */ r.jsx(
|
|
128
|
+
l,
|
|
129
|
+
{
|
|
130
|
+
alignItems: "center",
|
|
131
|
+
bottom: 0,
|
|
132
|
+
display: "flex",
|
|
133
|
+
justifyContent: "center",
|
|
134
|
+
left: 0,
|
|
135
|
+
m: 0,
|
|
136
|
+
position: "absolute",
|
|
137
|
+
right: 0,
|
|
138
|
+
top: 0,
|
|
139
|
+
children: /* @__PURE__ */ r.jsx(f, { size: "xs" })
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
/* @__PURE__ */ r.jsx(l, { opacity: "0", children: i })
|
|
143
|
+
] }) : null,
|
|
144
|
+
!o && i
|
|
145
|
+
]
|
|
146
|
+
}
|
|
142
147
|
);
|
|
143
148
|
}
|
|
144
149
|
);
|
|
145
150
|
R.displayName = "Button";
|
|
146
|
-
const
|
|
151
|
+
const E = c;
|
|
147
152
|
export {
|
|
148
153
|
R as Button,
|
|
149
|
-
|
|
154
|
+
E as StyledButton
|
|
150
155
|
};
|
package/dist/ButtonGroup.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import { j as l } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
|
+
import { Children as d, cloneElement as m } from "react";
|
|
4
|
+
import { forwardRef as u } from "./System.mjs";
|
|
3
5
|
import f from "@xstyled/styled-components";
|
|
4
|
-
import { forwardRef as m } from "./System.mjs";
|
|
5
6
|
const b = f.divBox`
|
|
6
7
|
display: inline-flex;
|
|
7
8
|
flex-wrap: wrap;
|
|
@@ -31,19 +32,19 @@ const b = f.divBox`
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
`,
|
|
35
|
-
({ children: t, dataTestId: o, disabled:
|
|
36
|
-
function
|
|
37
|
-
return
|
|
35
|
+
`, y = u(
|
|
36
|
+
({ children: t, dataTestId: o, disabled: i, size: e, variant: s }, a) => {
|
|
37
|
+
function n(p) {
|
|
38
|
+
return d.toArray(p).filter(Boolean).map((r) => m(r, {
|
|
38
39
|
...r.props,
|
|
39
|
-
disabled:
|
|
40
|
-
size:
|
|
41
|
-
variant:
|
|
40
|
+
disabled: i || r.props.disabled,
|
|
41
|
+
size: e || r.props.size,
|
|
42
|
+
variant: s || r.props.variant
|
|
42
43
|
}));
|
|
43
44
|
}
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ l.jsx(b, { "data-testid": o, ref: a, children: n(t) });
|
|
45
46
|
}
|
|
46
47
|
);
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
y as ButtonGroup
|
|
49
50
|
};
|
package/dist/Card.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
${
|
|
8
|
-
`,
|
|
2
|
+
import { j as d } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
|
+
import { forwardRef as n } from "./System.mjs";
|
|
4
|
+
import e, { th as t } from "@xstyled/styled-components";
|
|
5
|
+
import { Shape as i } from "./Shape.mjs";
|
|
6
|
+
const c = e(i)`
|
|
7
|
+
${t("cards.cover")};
|
|
8
|
+
`, a = ({ src: o, ...r }) => /* @__PURE__ */ d.jsx(c, { ...r, children: /* @__PURE__ */ d.jsx("img", { src: o }) }), m = e.divBox`
|
|
9
9
|
overflow: 'hidden';
|
|
10
10
|
border-radius: md;
|
|
11
|
-
${
|
|
11
|
+
${t("cards.default")};
|
|
12
12
|
background-size: cover;
|
|
13
13
|
background-position: center;
|
|
14
|
-
`,
|
|
14
|
+
`, p = e.divBox`
|
|
15
15
|
padding: lg;
|
|
16
|
-
`,
|
|
17
|
-
Body:
|
|
18
|
-
Cover:
|
|
16
|
+
`, f = n(({ children: o, ...r }, s) => /* @__PURE__ */ d.jsx(m, { ref: s, ...r, children: o })), j = Object.assign(f, {
|
|
17
|
+
Body: p,
|
|
18
|
+
Cover: a
|
|
19
19
|
});
|
|
20
20
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
j as Card,
|
|
22
|
+
f as CardComponent
|
|
23
23
|
};
|
package/dist/Checkbox.mjs
CHANGED
package/dist/ClearButton.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import t from "
|
|
3
|
-
import n, { keyframes as i, css as s, th as m } from "@xstyled/styled-components";
|
|
4
|
-
import { Button as c } from "./Button.mjs";
|
|
2
|
+
import { j as t } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
5
3
|
import "./Icon.mjs";
|
|
6
|
-
import { C as
|
|
7
|
-
import { forwardRef as
|
|
8
|
-
|
|
4
|
+
import { C as i } from "./index-BaLGEKs7.mjs";
|
|
5
|
+
import { forwardRef as n } from "./System.mjs";
|
|
6
|
+
import a, { keyframes as m, css as c, th as p } from "@xstyled/styled-components";
|
|
7
|
+
import { Button as f } from "./Button.mjs";
|
|
8
|
+
const l = m`
|
|
9
9
|
from {
|
|
10
10
|
opacity: 0;
|
|
11
11
|
}
|
|
12
12
|
to {
|
|
13
13
|
opacity: 1;
|
|
14
14
|
}
|
|
15
|
-
`, u =
|
|
16
|
-
${
|
|
17
|
-
`,
|
|
15
|
+
`, u = c`
|
|
16
|
+
${l}
|
|
17
|
+
`, o = a(f)`
|
|
18
18
|
pointer-events: auto;
|
|
19
|
-
animation: ${
|
|
19
|
+
animation: ${p("transitions.medium")};
|
|
20
20
|
animation-name: ${u};
|
|
21
|
-
`,
|
|
22
|
-
({ size:
|
|
23
|
-
),
|
|
21
|
+
`, B = n(
|
|
22
|
+
({ size: r = "xs", ...e }, s) => /* @__PURE__ */ t.jsx(o, { ref: s, shape: "circle", size: r, title: "Clear", variant: "ghost", ...e, children: /* @__PURE__ */ t.jsx(i, { size: "xxs" }) })
|
|
23
|
+
), $ = o;
|
|
24
24
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
B as ClearButton,
|
|
26
|
+
$ as StyledClearButton
|
|
27
27
|
};
|
package/dist/CloseButton.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import s, { th as e } from "@xstyled/styled-components";
|
|
4
|
-
import { Button as m } from "./Button.mjs";
|
|
2
|
+
import { j as o } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
5
3
|
import "./Icon.mjs";
|
|
6
|
-
import { C as
|
|
7
|
-
import { forwardRef as
|
|
8
|
-
|
|
4
|
+
import { C as e } from "./index-BaLGEKs7.mjs";
|
|
5
|
+
import { forwardRef as i } from "./System.mjs";
|
|
6
|
+
import m, { th as t } from "@xstyled/styled-components";
|
|
7
|
+
import { Button as l } from "./Button.mjs";
|
|
8
|
+
const n = m(l)`
|
|
9
9
|
& > svg:only-child {
|
|
10
|
-
width: ${
|
|
11
|
-
height: ${
|
|
10
|
+
width: ${t("space.md")};
|
|
11
|
+
height: ${t("space.md")};
|
|
12
12
|
}
|
|
13
|
-
`, u =
|
|
13
|
+
`, u = i((s, r) => /* @__PURE__ */ o.jsx(n, { ref: r, shape: "circle", size: "sm", title: "Close", variant: "ghost", ...s, children: /* @__PURE__ */ o.jsx(e, { size: "lg" }) }));
|
|
14
14
|
export {
|
|
15
15
|
u as CloseButton
|
|
16
16
|
};
|