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/Button.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
10
|
-
width: ${t(`buttons.sizes.${
|
|
2
|
+
import r from "react";
|
|
3
|
+
import h, { th as t, system as p, css as e } from "@xstyled/styled-components";
|
|
4
|
+
import { B as y } from "./X5NMLKT6-CvSCix-_.mjs";
|
|
5
|
+
import { h as w } from "./hide-focus-rings-root-BNyva1yb.mjs";
|
|
6
|
+
import { shouldForwardProp as g, forwardRef as x } from "./System.mjs";
|
|
7
|
+
import { Loader as B } from "./Loader.mjs";
|
|
8
|
+
import { Box as c } from "./Box.mjs";
|
|
9
|
+
const E = (i, s = "square") => e`
|
|
10
|
+
width: ${t(`buttons.sizes.${i}.height`)};
|
|
11
11
|
padding: 0;
|
|
12
|
-
${
|
|
13
|
-
border-radius: ${t(`buttons.sizes.${
|
|
12
|
+
${s === "circle" && e`
|
|
13
|
+
border-radius: ${t(`buttons.sizes.${i}.height`)};
|
|
14
14
|
`};
|
|
15
|
-
`,
|
|
16
|
-
({ ai:
|
|
15
|
+
`, d = h(y).withConfig({ shouldForwardProp: g })(
|
|
16
|
+
({ ai: i, danger: s, disabled: u, shape: $, size: n = "md", variant: o = "primary" }) => e`
|
|
17
17
|
${t(`buttons.${o}`)};
|
|
18
|
-
${
|
|
18
|
+
${i && e`
|
|
19
19
|
${t(`buttons.ai.${o}`)};
|
|
20
20
|
`}
|
|
21
|
-
${
|
|
21
|
+
${s && e`
|
|
22
22
|
${t(`buttons.danger.${o}`)};
|
|
23
23
|
`}
|
|
24
24
|
position: relative;
|
|
@@ -26,7 +26,7 @@ const B = (s, i = "square") => n`
|
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: center;
|
|
28
28
|
width: auto;
|
|
29
|
-
${t(`buttons.sizes.${
|
|
29
|
+
${t(`buttons.sizes.${n}`)};
|
|
30
30
|
text-decoration: none;
|
|
31
31
|
text-align: center;
|
|
32
32
|
white-space: nowrap;
|
|
@@ -37,22 +37,22 @@ const B = (s, i = "square") => n`
|
|
|
37
37
|
appearance: none;
|
|
38
38
|
overflow: hidden;
|
|
39
39
|
transition: medium;
|
|
40
|
-
${$ &&
|
|
41
|
-
${
|
|
40
|
+
${$ && E(n, $)};
|
|
41
|
+
${p};
|
|
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.${n}`)};
|
|
49
|
+
height: ${t(`buttons.icon.only.${n}`)};
|
|
50
|
+
font-size: ${t(`buttons.icon.only.${n}`)};
|
|
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.${n}`)};
|
|
54
|
+
height: ${t(`buttons.icon.default.${n}`)};
|
|
55
|
+
font-size: ${t(`buttons.icon.default.${n}`)};
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -60,34 +60,34 @@ const B = (s, i = "square") => n`
|
|
|
60
60
|
margin-right: sm;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
${!u &&
|
|
64
|
-
[${
|
|
63
|
+
${!u && e`
|
|
64
|
+
[${w}] &:focus {
|
|
65
65
|
box-shadow: none;
|
|
66
66
|
}
|
|
67
67
|
&:focus {
|
|
68
68
|
${t(`buttons.focus.${o}`)};
|
|
69
|
-
${
|
|
69
|
+
${i && e`
|
|
70
70
|
${t(`buttons.focus.ai.${o}`)};
|
|
71
71
|
`}
|
|
72
|
-
${
|
|
72
|
+
${s && e`
|
|
73
73
|
${t(`buttons.focus.danger.${o}`)};
|
|
74
74
|
`}
|
|
75
75
|
}
|
|
76
76
|
&:hover {
|
|
77
77
|
${t(`buttons.hover.${o}`)};
|
|
78
|
-
${
|
|
78
|
+
${i && e`
|
|
79
79
|
${t(`buttons.hover.ai.${o}`)};
|
|
80
80
|
`}
|
|
81
|
-
${
|
|
81
|
+
${s && e`
|
|
82
82
|
${t(`buttons.hover.danger.${o}`)};
|
|
83
83
|
`}
|
|
84
84
|
}
|
|
85
85
|
&:active {
|
|
86
86
|
${t(`buttons.active.${o}`)};
|
|
87
|
-
${
|
|
87
|
+
${i && e`
|
|
88
88
|
${t(`buttons.active.ai.${o}`)};
|
|
89
89
|
`}
|
|
90
|
-
${
|
|
90
|
+
${s && e`
|
|
91
91
|
${t(`buttons.active.danger.${o}`)};
|
|
92
92
|
`}
|
|
93
93
|
}
|
|
@@ -97,59 +97,54 @@ const B = (s, i = "square") => n`
|
|
|
97
97
|
cursor: not-allowed;
|
|
98
98
|
}
|
|
99
99
|
`
|
|
100
|
-
), R =
|
|
100
|
+
), R = x(
|
|
101
101
|
({
|
|
102
|
-
ai:
|
|
103
|
-
children:
|
|
102
|
+
ai: i,
|
|
103
|
+
children: s,
|
|
104
104
|
danger: u,
|
|
105
105
|
dataTestId: $,
|
|
106
|
-
disabled:
|
|
106
|
+
disabled: n,
|
|
107
107
|
isLoading: o,
|
|
108
|
-
size:
|
|
109
|
-
variant:
|
|
108
|
+
size: a = "md",
|
|
109
|
+
variant: m = "primary",
|
|
110
110
|
...b
|
|
111
|
-
},
|
|
112
|
-
const
|
|
113
|
-
return /* @__PURE__ */ r.
|
|
114
|
-
|
|
111
|
+
}, f) => {
|
|
112
|
+
const l = n || o;
|
|
113
|
+
return /* @__PURE__ */ r.createElement(
|
|
114
|
+
d,
|
|
115
115
|
{
|
|
116
|
-
ai:
|
|
116
|
+
ai: i,
|
|
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
|
-
|
|
142
|
-
/* @__PURE__ */ r.jsx(l, { opacity: "0", children: i })
|
|
143
|
-
] }) : null,
|
|
144
|
-
!o && i
|
|
145
|
-
]
|
|
146
|
-
}
|
|
120
|
+
disabled: l,
|
|
121
|
+
ref: f,
|
|
122
|
+
size: a,
|
|
123
|
+
variant: l ? "disabled" : m,
|
|
124
|
+
...b
|
|
125
|
+
},
|
|
126
|
+
o && /* @__PURE__ */ r.createElement("div", null, /* @__PURE__ */ r.createElement(
|
|
127
|
+
c,
|
|
128
|
+
{
|
|
129
|
+
alignItems: "center",
|
|
130
|
+
bottom: 0,
|
|
131
|
+
display: "flex",
|
|
132
|
+
justifyContent: "center",
|
|
133
|
+
left: 0,
|
|
134
|
+
m: 0,
|
|
135
|
+
position: "absolute",
|
|
136
|
+
right: 0,
|
|
137
|
+
top: 0
|
|
138
|
+
},
|
|
139
|
+
/* @__PURE__ */ r.createElement(B, { size: "xs" })
|
|
140
|
+
), /* @__PURE__ */ r.createElement(c, { opacity: "0" }, s)),
|
|
141
|
+
!o && s
|
|
147
142
|
);
|
|
148
143
|
}
|
|
149
144
|
);
|
|
150
145
|
R.displayName = "Button";
|
|
151
|
-
const
|
|
146
|
+
const q = d;
|
|
152
147
|
export {
|
|
153
148
|
R as Button,
|
|
154
|
-
|
|
149
|
+
q as StyledButton
|
|
155
150
|
};
|
package/dist/ButtonGroup.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
|
|
6
|
-
const x = b.divBox`
|
|
2
|
+
import d, { Children as p, cloneElement as u } from "react";
|
|
3
|
+
import f from "@xstyled/styled-components";
|
|
4
|
+
import { forwardRef as m } from "./System.mjs";
|
|
5
|
+
const b = f.divBox`
|
|
7
6
|
display: inline-flex;
|
|
8
7
|
flex-wrap: wrap;
|
|
9
8
|
align-items: center;
|
|
@@ -32,19 +31,19 @@ const x = b.divBox`
|
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
|
-
`,
|
|
36
|
-
({ children: t, dataTestId: o, disabled: e, size: i, variant:
|
|
37
|
-
function
|
|
38
|
-
return
|
|
34
|
+
`, x = m(
|
|
35
|
+
({ children: t, dataTestId: o, disabled: e, size: i, variant: a }, n) => {
|
|
36
|
+
function l(s) {
|
|
37
|
+
return p.toArray(s).filter(Boolean).map((r) => u(r, {
|
|
39
38
|
...r.props,
|
|
40
39
|
disabled: e || r.props.disabled,
|
|
41
40
|
size: i || r.props.size,
|
|
42
|
-
variant:
|
|
43
|
-
})
|
|
41
|
+
variant: a || r.props.variant
|
|
42
|
+
}));
|
|
44
43
|
}
|
|
45
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ d.createElement(b, { "data-testid": o, ref: n }, l(t));
|
|
46
45
|
}
|
|
47
46
|
);
|
|
48
47
|
export {
|
|
49
|
-
|
|
48
|
+
x as ButtonGroup
|
|
50
49
|
};
|
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 r from "react";
|
|
3
|
+
import t, { th as d } from "@xstyled/styled-components";
|
|
4
|
+
import { Shape as c } from "./Shape.mjs";
|
|
5
|
+
import { forwardRef as a } from "./System.mjs";
|
|
6
|
+
const i = t(c)`
|
|
7
|
+
${d("cards.cover")};
|
|
8
|
+
`, s = ({ src: e, ...o }) => /* @__PURE__ */ r.createElement(i, { ...o }, /* @__PURE__ */ r.createElement("img", { src: e })), m = t.divBox`
|
|
9
9
|
overflow: 'hidden';
|
|
10
10
|
border-radius: md;
|
|
11
|
-
${
|
|
11
|
+
${d("cards.default")};
|
|
12
12
|
background-size: cover;
|
|
13
13
|
background-position: center;
|
|
14
|
-
`,
|
|
14
|
+
`, f = t.divBox`
|
|
15
15
|
padding: lg;
|
|
16
|
-
`,
|
|
17
|
-
Body:
|
|
18
|
-
Cover:
|
|
16
|
+
`, l = a(({ children: e, ...o }, n) => /* @__PURE__ */ r.createElement(m, { ref: n, ...o }, e)), C = Object.assign(l, {
|
|
17
|
+
Body: f,
|
|
18
|
+
Cover: s
|
|
19
19
|
});
|
|
20
20
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
C as Card,
|
|
22
|
+
l as CardComponent
|
|
23
23
|
};
|
package/dist/Checkbox.mjs
CHANGED
package/dist/ClearButton.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import t from "react";
|
|
3
|
+
import n, { keyframes as i, css as s, th as m } from "@xstyled/styled-components";
|
|
4
|
+
import { Button as c } from "./Button.mjs";
|
|
3
5
|
import "./Icon.mjs";
|
|
4
|
-
import { C as
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
|
|
7
|
-
import { Button as f } from "./Button.mjs";
|
|
8
|
-
const l = m`
|
|
6
|
+
import { C as l } from "./index-C7zM96J_.mjs";
|
|
7
|
+
import { forwardRef as f } from "./System.mjs";
|
|
8
|
+
const p = i`
|
|
9
9
|
from {
|
|
10
10
|
opacity: 0;
|
|
11
11
|
}
|
|
12
12
|
to {
|
|
13
13
|
opacity: 1;
|
|
14
14
|
}
|
|
15
|
-
`, u =
|
|
16
|
-
${
|
|
17
|
-
`,
|
|
15
|
+
`, u = s`
|
|
16
|
+
${p}
|
|
17
|
+
`, e = n(c)`
|
|
18
18
|
pointer-events: auto;
|
|
19
|
-
animation: ${
|
|
19
|
+
animation: ${m("transitions.medium")};
|
|
20
20
|
animation-name: ${u};
|
|
21
|
-
`,
|
|
22
|
-
({ size:
|
|
23
|
-
),
|
|
21
|
+
`, h = f(
|
|
22
|
+
({ size: o = "xs", ...r }, a) => /* @__PURE__ */ t.createElement(e, { ref: a, shape: "circle", size: o, title: "Clear", variant: "ghost", ...r }, /* @__PURE__ */ t.createElement(l, { size: "xxs" }))
|
|
23
|
+
), R = e;
|
|
24
24
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
h as ClearButton,
|
|
26
|
+
R as StyledClearButton
|
|
27
27
|
};
|
package/dist/CloseButton.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import t from "react";
|
|
3
|
+
import s, { th as e } from "@xstyled/styled-components";
|
|
4
|
+
import { Button as m } from "./Button.mjs";
|
|
3
5
|
import "./Icon.mjs";
|
|
4
|
-
import { C as
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
|
|
7
|
-
import { Button as l } from "./Button.mjs";
|
|
8
|
-
const n = m(l)`
|
|
6
|
+
import { C as i } from "./index-C7zM96J_.mjs";
|
|
7
|
+
import { forwardRef as l } from "./System.mjs";
|
|
8
|
+
const c = s(m)`
|
|
9
9
|
& > svg:only-child {
|
|
10
|
-
width: ${
|
|
11
|
-
height: ${
|
|
10
|
+
width: ${e("space.md")};
|
|
11
|
+
height: ${e("space.md")};
|
|
12
12
|
}
|
|
13
|
-
`, u =
|
|
13
|
+
`, u = l((o, r) => /* @__PURE__ */ t.createElement(c, { ref: r, shape: "circle", size: "sm", title: "Close", variant: "ghost", ...o }, /* @__PURE__ */ t.createElement(i, { size: "lg" })));
|
|
14
14
|
export {
|
|
15
15
|
u as CloseButton
|
|
16
16
|
};
|