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/RadioTab.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
const y =
|
|
2
|
+
import d from "react";
|
|
3
|
+
import a, { th as i, css as e } from "@xstyled/styled-components";
|
|
4
|
+
import { d as f } from "./field-styles-CfVLcVQp.mjs";
|
|
5
|
+
import { o as u } from "./overflow-ellipsis-DGV5Kgt-.mjs";
|
|
6
|
+
import { shouldForwardProp as b, forwardRef as h } from "./System.mjs";
|
|
7
|
+
import { R as c } from "./NLEBE274-QOMV1l7e.mjs";
|
|
8
|
+
import { Button as g } from "./Button.mjs";
|
|
9
|
+
const y = a(c).withConfig({ shouldForwardProp: b })`
|
|
10
10
|
position: absolute;
|
|
11
11
|
top: 0;
|
|
12
12
|
left: 0;
|
|
@@ -23,7 +23,7 @@ const y = s(c).withConfig({ shouldForwardProp: u })`
|
|
|
23
23
|
border-top-right-radius: 0;
|
|
24
24
|
border-top-left-radius: 0;
|
|
25
25
|
}
|
|
26
|
-
`,
|
|
26
|
+
`, w = e`
|
|
27
27
|
margin-left: -${i.borderWidth("sm")};
|
|
28
28
|
|
|
29
29
|
&:first-of-type {
|
|
@@ -36,8 +36,8 @@ const y = s(c).withConfig({ shouldForwardProp: u })`
|
|
|
36
36
|
border-bottom-left-radius: 0;
|
|
37
37
|
}
|
|
38
38
|
`;
|
|
39
|
-
|
|
40
|
-
({ checked: o, flexDirection: t, size: r, variant:
|
|
39
|
+
a.labelBox(
|
|
40
|
+
({ checked: o, flexDirection: t, size: r, variant: s }) => e`
|
|
41
41
|
${i("radioTabs.default")};
|
|
42
42
|
flex: 1;
|
|
43
43
|
display: flex;
|
|
@@ -52,28 +52,28 @@ s.labelBox(
|
|
|
52
52
|
cursor: pointer;
|
|
53
53
|
transition: medium;
|
|
54
54
|
|
|
55
|
-
${
|
|
55
|
+
${f({ size: r, variant: s })};
|
|
56
56
|
${o && e`
|
|
57
57
|
${i("radioTabs.checked")};
|
|
58
58
|
z-index: 2;
|
|
59
59
|
`};
|
|
60
60
|
${t === "column" && $};
|
|
61
|
-
${t === "row" &&
|
|
61
|
+
${t === "row" && w};
|
|
62
62
|
padding-top: 0;
|
|
63
63
|
padding-bottom: 0;
|
|
64
64
|
`
|
|
65
65
|
);
|
|
66
|
-
|
|
66
|
+
a.div`
|
|
67
67
|
flex-shrink: 0;
|
|
68
68
|
position: relative;
|
|
69
69
|
`;
|
|
70
|
-
|
|
71
|
-
${
|
|
70
|
+
a.div`
|
|
71
|
+
${u};
|
|
72
72
|
max-width: 100%;
|
|
73
73
|
`;
|
|
74
|
-
const
|
|
75
|
-
({ checked: o, dataTestId: t, disabled: r, id:
|
|
76
|
-
|
|
74
|
+
const x = h(
|
|
75
|
+
({ checked: o, dataTestId: t, disabled: r, id: s, label: l, onChange: m, value: n }, p) => /* @__PURE__ */ d.createElement(
|
|
76
|
+
g,
|
|
77
77
|
{
|
|
78
78
|
as: "label",
|
|
79
79
|
borderColor: !o && "neutral-30",
|
|
@@ -81,25 +81,23 @@ const w = b(
|
|
|
81
81
|
dataTestId: t,
|
|
82
82
|
disabled: r,
|
|
83
83
|
ref: p,
|
|
84
|
-
variant: o ? "primary" : "ghost"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
]
|
|
99
|
-
}
|
|
84
|
+
variant: o ? "primary" : "ghost"
|
|
85
|
+
},
|
|
86
|
+
/* @__PURE__ */ d.createElement(
|
|
87
|
+
y,
|
|
88
|
+
{
|
|
89
|
+
checked: o,
|
|
90
|
+
"data-testid": t ? `${t}-input` : void 0,
|
|
91
|
+
disabled: r,
|
|
92
|
+
id: s,
|
|
93
|
+
onChange: m,
|
|
94
|
+
value: n
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
l
|
|
100
98
|
)
|
|
101
99
|
);
|
|
102
|
-
|
|
100
|
+
x.displayName = "RadioTab";
|
|
103
101
|
export {
|
|
104
|
-
|
|
102
|
+
x as RadioTab
|
|
105
103
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { u as
|
|
3
|
-
import { b as d } from "./VGCJ63VH-
|
|
4
|
-
import { f as p, c as
|
|
2
|
+
import { u as m } from "./X5NMLKT6-CvSCix-_.mjs";
|
|
3
|
+
import { b as d } from "./VGCJ63VH-BMzoZtCu.mjs";
|
|
4
|
+
import { f as p, c as x, h as f, _ as D, b as g, t as r, d as h, g as k } from "./LVA2YJMS-DDEmK0pp.mjs";
|
|
5
5
|
import { useMemo as v } from "react";
|
|
6
|
-
|
|
7
|
-
var _ = "button", b = f(
|
|
6
|
+
var _ = "button", b = x(
|
|
8
7
|
function(i) {
|
|
9
8
|
var o = i, { store: e } = o, s = D(o, ["store"]);
|
|
10
9
|
const l = d();
|
|
11
10
|
e = e || l;
|
|
12
11
|
const t = s.onClick, u = g((a) => {
|
|
13
12
|
t == null || t(a), !a.defaultPrevented && (e == null || e.hide());
|
|
14
|
-
}),
|
|
13
|
+
}), c = v(
|
|
15
14
|
() => /* @__PURE__ */ r.jsxs(
|
|
16
15
|
"svg",
|
|
17
16
|
{
|
|
@@ -35,15 +34,15 @@ var _ = "button", b = f(
|
|
|
35
34
|
);
|
|
36
35
|
return s = h(k({
|
|
37
36
|
"data-dialog-dismiss": "",
|
|
38
|
-
children:
|
|
37
|
+
children: c
|
|
39
38
|
}, s), {
|
|
40
39
|
onClick: u
|
|
41
|
-
}), s =
|
|
40
|
+
}), s = m(s), s;
|
|
42
41
|
}
|
|
43
|
-
),
|
|
42
|
+
), w = p(function(i) {
|
|
44
43
|
const o = b(i);
|
|
45
|
-
return
|
|
44
|
+
return f(_, o);
|
|
46
45
|
});
|
|
47
46
|
export {
|
|
48
|
-
|
|
47
|
+
w as D
|
|
49
48
|
};
|
package/dist/Search.mjs
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { D as W } from "./downshift.esm-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
2
|
+
import t, { useState as de, useCallback as me, useMemo as pe, Fragment as fe } from "react";
|
|
3
|
+
import { D as W } from "./downshift.esm-D0ns_SQs.mjs";
|
|
4
|
+
import { c as ue } from "./create-event-rXDe5aCQ.mjs";
|
|
5
|
+
import { d as he, F as ge } from "./field-styles-CfVLcVQp.mjs";
|
|
6
|
+
import { t as Ee } from "./throttle-BDBzFeFj.mjs";
|
|
7
|
+
import a, { css as F, th as o } from "@xstyled/styled-components";
|
|
8
|
+
import { o as V } from "./overflow-ellipsis-DGV5Kgt-.mjs";
|
|
9
|
+
import { shouldForwardProp as j, forwardRef as we } from "./System.mjs";
|
|
10
|
+
import { StyledIcon as ye } from "./Icon.mjs";
|
|
11
|
+
import { ClearButton as $e } from "./ClearButton.mjs";
|
|
12
|
+
import { IconWrapper as be } from "./Field.mjs";
|
|
13
|
+
const A = a.divBox.withConfig({ shouldForwardProp: j })`
|
|
15
14
|
position: relative;
|
|
16
|
-
`,
|
|
15
|
+
`, Fe = a.div`
|
|
17
16
|
position: relative;
|
|
18
|
-
`,
|
|
19
|
-
({ iconPlacement: i, size:
|
|
17
|
+
`, Ie = a.inputBox.withConfig({ shouldForwardProp: j })(
|
|
18
|
+
({ iconPlacement: i, size: n, transparent: s, variant: g }) => F`
|
|
20
19
|
position: relative;
|
|
21
|
-
${
|
|
22
|
-
${
|
|
20
|
+
${he({ iconPlacement: i, size: n, variant: g, transparent: s, isClearable: !0 })};
|
|
21
|
+
${V};
|
|
23
22
|
|
|
24
23
|
br {
|
|
25
24
|
display: none;
|
|
26
25
|
}
|
|
27
26
|
`
|
|
28
|
-
),
|
|
29
|
-
${
|
|
30
|
-
${
|
|
27
|
+
), Se = a.ul`
|
|
28
|
+
${o("defaultFields.select.default")};
|
|
29
|
+
${o("cards.default")};
|
|
31
30
|
position: absolute;
|
|
32
31
|
color: neutral-90;
|
|
33
32
|
z-index: 2;
|
|
@@ -39,32 +38,32 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
39
38
|
transition: medium;
|
|
40
39
|
overflow: auto;
|
|
41
40
|
-webkit-overflow-scrolling: touch;
|
|
42
|
-
`,
|
|
43
|
-
({ isExisting: i, isHighlighted:
|
|
41
|
+
`, H = a.li(
|
|
42
|
+
({ isExisting: i, isHighlighted: n, isSelected: s }) => F`
|
|
44
43
|
color: beige-70;
|
|
45
|
-
${
|
|
46
|
-
${
|
|
47
|
-
${i &&
|
|
48
|
-
${
|
|
49
|
-
${
|
|
44
|
+
${n && o("defaultFields.select.highlighted")};
|
|
45
|
+
${s && o("defaultFields.select.selected")};
|
|
46
|
+
${i && o("defaultFields.select.existing")};
|
|
47
|
+
${s && n && o("defaultFields.select.selectedAndHighlighted")};
|
|
48
|
+
${V};
|
|
50
49
|
padding: sm;
|
|
51
50
|
list-style: none;
|
|
52
51
|
text-decoration: none;
|
|
53
52
|
font-size: sm;
|
|
54
|
-
transition: background ${
|
|
53
|
+
transition: background ${o.transition("medium")};
|
|
55
54
|
`
|
|
56
|
-
),
|
|
55
|
+
), ke = a.div`
|
|
57
56
|
position: absolute;
|
|
58
57
|
padding: 0;
|
|
59
58
|
top: 0;
|
|
60
59
|
bottom: 0;
|
|
61
60
|
right: 0;
|
|
62
61
|
display: flex;
|
|
63
|
-
`,
|
|
64
|
-
({ isOpen: i, size:
|
|
62
|
+
`, xe = a.buttonBox(
|
|
63
|
+
({ isOpen: i, size: n }) => F`
|
|
65
64
|
position: relative;
|
|
66
65
|
height: 100%;
|
|
67
|
-
width: ${
|
|
66
|
+
width: ${o(`defaultFields.sizes.${n}.height`)};
|
|
68
67
|
padding: 0;
|
|
69
68
|
outline: none !important; /* important for firefox */
|
|
70
69
|
appearance: none;
|
|
@@ -75,7 +74,7 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
75
74
|
align-items: center;
|
|
76
75
|
justify-content: center;
|
|
77
76
|
|
|
78
|
-
${
|
|
77
|
+
${ye} {
|
|
79
78
|
transform: ${i ? "rotate3d(0, 0, 1, 180deg)" : "rotate3d(0)"};
|
|
80
79
|
transition: medium;
|
|
81
80
|
}
|
|
@@ -84,156 +83,141 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
84
83
|
width: auto;
|
|
85
84
|
}
|
|
86
85
|
`
|
|
87
|
-
),
|
|
86
|
+
), O = "", Ce = W.default || W, ve = we(
|
|
88
87
|
({
|
|
89
88
|
autoComplete: i = "off",
|
|
90
|
-
autoFocus:
|
|
91
|
-
dataTestId:
|
|
92
|
-
disabled:
|
|
93
|
-
groupsEnabled:
|
|
94
|
-
icon:
|
|
95
|
-
id:
|
|
96
|
-
itemToString:
|
|
97
|
-
minChars:
|
|
98
|
-
name:
|
|
99
|
-
onBlur:
|
|
100
|
-
onChange:
|
|
101
|
-
onClick:
|
|
102
|
-
onFocus:
|
|
103
|
-
placeholder:
|
|
104
|
-
renderGroupHeader:
|
|
105
|
-
renderItem:
|
|
106
|
-
search:
|
|
107
|
-
size:
|
|
108
|
-
throttle:
|
|
109
|
-
value:
|
|
110
|
-
variant:
|
|
111
|
-
...
|
|
112
|
-
},
|
|
113
|
-
const
|
|
114
|
-
async (
|
|
115
|
-
if (
|
|
116
|
-
const
|
|
117
|
-
|
|
89
|
+
autoFocus: n,
|
|
90
|
+
dataTestId: s,
|
|
91
|
+
disabled: g,
|
|
92
|
+
groupsEnabled: G,
|
|
93
|
+
icon: p,
|
|
94
|
+
id: L,
|
|
95
|
+
itemToString: l,
|
|
96
|
+
minChars: E = 3,
|
|
97
|
+
name: I,
|
|
98
|
+
onBlur: Y,
|
|
99
|
+
onChange: S,
|
|
100
|
+
onClick: Z,
|
|
101
|
+
onFocus: k,
|
|
102
|
+
placeholder: q = "Search…",
|
|
103
|
+
renderGroupHeader: J,
|
|
104
|
+
renderItem: x,
|
|
105
|
+
search: C,
|
|
106
|
+
size: w = "md",
|
|
107
|
+
throttle: v = 500,
|
|
108
|
+
value: f = O,
|
|
109
|
+
variant: K,
|
|
110
|
+
...y
|
|
111
|
+
}, Q) => {
|
|
112
|
+
const U = f ? l(f) : O, [R, d] = de([]), D = me(
|
|
113
|
+
async (e) => {
|
|
114
|
+
if (E === 0 || (e == null ? void 0 : e.length) >= E) {
|
|
115
|
+
const m = await C(e);
|
|
116
|
+
d(m || []);
|
|
118
117
|
} else
|
|
119
|
-
|
|
118
|
+
d([]);
|
|
120
119
|
},
|
|
121
|
-
[g, k]
|
|
122
|
-
), B = mt(
|
|
123
|
-
() => bt((...t) => E(t[0]), C, !1),
|
|
124
120
|
[E, C]
|
|
125
|
-
),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
121
|
+
), _ = pe(
|
|
122
|
+
() => Ee(D, v, !1),
|
|
123
|
+
[D, v]
|
|
124
|
+
), $ = (e) => {
|
|
125
|
+
const m = ue({ name: I, value: e });
|
|
126
|
+
S && S(e, m);
|
|
127
|
+
}, z = (e) => {
|
|
128
|
+
e ? $(e) : ($(), d([]));
|
|
129
|
+
}, X = () => {
|
|
130
|
+
f || z(), d([]);
|
|
131
|
+
}, ee = (e) => l(e) || "";
|
|
132
|
+
return /* @__PURE__ */ t.createElement(
|
|
133
|
+
Ce,
|
|
135
134
|
{
|
|
136
|
-
initialInputValue:
|
|
137
|
-
itemToString:
|
|
138
|
-
onInputValueChange:
|
|
139
|
-
onOuterClick:
|
|
140
|
-
onSelect:
|
|
141
|
-
selectedItem:
|
|
142
|
-
...
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
...z({
|
|
216
|
-
index: h,
|
|
217
|
-
isSelected: !!(u && a(u) === a(d)),
|
|
218
|
-
item: d
|
|
219
|
-
}),
|
|
220
|
-
isHighlighted: M === h,
|
|
221
|
-
children: R(d)
|
|
222
|
-
},
|
|
223
|
-
h
|
|
224
|
-
)
|
|
225
|
-
), r),
|
|
226
|
-
{ itemIndex: 0, itemsToRender: [] }
|
|
227
|
-
).itemsToRender }) : null
|
|
228
|
-
] });
|
|
229
|
-
}
|
|
135
|
+
initialInputValue: U,
|
|
136
|
+
itemToString: ee,
|
|
137
|
+
onInputValueChange: _,
|
|
138
|
+
onOuterClick: X,
|
|
139
|
+
onSelect: z,
|
|
140
|
+
selectedItem: f,
|
|
141
|
+
...y
|
|
142
|
+
},
|
|
143
|
+
({
|
|
144
|
+
clearSelection: e,
|
|
145
|
+
getInputProps: m,
|
|
146
|
+
getItemProps: B,
|
|
147
|
+
getMenuProps: te,
|
|
148
|
+
getRootProps: ne,
|
|
149
|
+
highlightedIndex: M,
|
|
150
|
+
inputValue: oe,
|
|
151
|
+
isOpen: P,
|
|
152
|
+
selectedItem: u,
|
|
153
|
+
toggleMenu: ie
|
|
154
|
+
}) => {
|
|
155
|
+
const ae = () => {
|
|
156
|
+
d([]), $(), e();
|
|
157
|
+
}, se = P && R.length > 0, le = /* @__PURE__ */ t.createElement(xe, { as: "div", size: w }, /* @__PURE__ */ t.createElement($e, { onClick: ae })), re = m({
|
|
158
|
+
autoComplete: i,
|
|
159
|
+
autoFocus: n,
|
|
160
|
+
"data-testid": s,
|
|
161
|
+
disabled: g,
|
|
162
|
+
iconPlacement: !!p && "left",
|
|
163
|
+
id: L,
|
|
164
|
+
name: I,
|
|
165
|
+
onBlur: Y,
|
|
166
|
+
onClick: Z,
|
|
167
|
+
onFocus: (r) => {
|
|
168
|
+
k && k(r), _(""), ie();
|
|
169
|
+
},
|
|
170
|
+
placeholder: q,
|
|
171
|
+
ref: Q,
|
|
172
|
+
size: w,
|
|
173
|
+
tabIndex: 0,
|
|
174
|
+
variant: P ? "focused" : K,
|
|
175
|
+
...y
|
|
176
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
177
|
+
}), N = ge[w];
|
|
178
|
+
return /* @__PURE__ */ t.createElement(A, { ...ne(y) }, /* @__PURE__ */ t.createElement(Fe, null, /* @__PURE__ */ t.createElement(Ie, { ...re }), p && /* @__PURE__ */ t.createElement(be, { iconPlacement: "left", size: N }, t.cloneElement(p, { ...p.props, size: N })), /* @__PURE__ */ t.createElement(ke, null, oe && le)), se && /* @__PURE__ */ t.createElement(Se, { ...te() }, R.reduce(
|
|
179
|
+
(r, c, h) => (G ? r.itemsToRender.push(
|
|
180
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
181
|
+
/* @__PURE__ */ t.createElement(fe, { key: h }, J(c), c.options && c.options.map((b, ce) => {
|
|
182
|
+
const T = r.itemIndex++;
|
|
183
|
+
return /* @__PURE__ */ t.createElement(
|
|
184
|
+
H,
|
|
185
|
+
{
|
|
186
|
+
key: ce,
|
|
187
|
+
...B({
|
|
188
|
+
index: T,
|
|
189
|
+
isSelected: u && l(u) === l(b),
|
|
190
|
+
item: b
|
|
191
|
+
}),
|
|
192
|
+
isHighlighted: M === T
|
|
193
|
+
},
|
|
194
|
+
x(b)
|
|
195
|
+
);
|
|
196
|
+
}))
|
|
197
|
+
) : r.itemsToRender.push(
|
|
198
|
+
/* @__PURE__ */ t.createElement(
|
|
199
|
+
H,
|
|
200
|
+
{
|
|
201
|
+
key: h,
|
|
202
|
+
...B({
|
|
203
|
+
index: h,
|
|
204
|
+
isSelected: u && l(u) === l(c),
|
|
205
|
+
item: c
|
|
206
|
+
}),
|
|
207
|
+
isHighlighted: M === h
|
|
208
|
+
},
|
|
209
|
+
x(c)
|
|
210
|
+
)
|
|
211
|
+
), r),
|
|
212
|
+
{ itemsToRender: [], itemIndex: 0 }
|
|
213
|
+
).itemsToRender));
|
|
230
214
|
}
|
|
231
215
|
);
|
|
232
216
|
}
|
|
233
217
|
);
|
|
234
|
-
|
|
235
|
-
const
|
|
218
|
+
ve.displayName = "Search";
|
|
219
|
+
const Ve = A;
|
|
236
220
|
export {
|
|
237
|
-
|
|
238
|
-
|
|
221
|
+
ve as Search,
|
|
222
|
+
Ve as StyledSearch
|
|
239
223
|
};
|