welcome-ui 8.0.0 → 8.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AXB53BZF-XKOjjeWO.mjs +25 -0
- package/dist/Accordion.mjs +30 -23
- package/dist/Alert.mjs +76 -70
- package/dist/AspectRatio.mjs +8 -10
- package/dist/Avatar.mjs +48 -47
- package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-CWSI38FM.mjs} +355 -351
- package/dist/Badge.mjs +25 -25
- package/dist/Box.mjs +5 -5
- package/dist/Breadcrumb.mjs +173 -168
- package/dist/Button.mjs +72 -67
- package/dist/ButtonGroup.mjs +13 -12
- package/dist/Card.mjs +14 -14
- package/dist/Checkbox.mjs +2 -2
- package/dist/ClearButton.mjs +15 -15
- package/dist/CloseButton.mjs +9 -9
- package/dist/{CustomInput-D_13Gd_3.mjs → CustomPopper-CZt4RioF.mjs} +3200 -3047
- package/dist/DatePicker.mjs +81 -80
- package/dist/DateTimePicker.mjs +67 -62
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +190 -174
- package/dist/DropdownMenu.mjs +389 -386
- package/dist/Field.mjs +104 -92
- package/dist/FieldGroup.mjs +12 -9
- package/dist/FileDrop.mjs +613 -576
- package/dist/FileUpload.mjs +95 -74
- package/dist/Files.mjs +46 -46
- package/dist/Flex.mjs +13 -13
- package/dist/Grid.mjs +29 -29
- package/dist/Hint.mjs +12 -12
- package/dist/ITI7HKP4-C89kOQb8.mjs +474 -0
- package/dist/Icon.mjs +24 -24
- package/dist/Icons.mjs +988 -988
- package/dist/IconsFont.mjs +159 -159
- package/dist/InputText.mjs +65 -57
- package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-afsomHuH.mjs} +109 -108
- package/dist/KUU7WJ55-CzsjuIMv.mjs +61 -0
- package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
- package/dist/Label.mjs +37 -35
- package/dist/Link.mjs +28 -24
- package/dist/Loader.mjs +20 -16
- package/dist/Logo.mjs +55 -42
- package/dist/MTZPJQMC-TybFZCho.mjs +15 -0
- package/dist/Modal.mjs +276 -253
- package/dist/NLEBE274-oSxMftGy.mjs +84 -0
- package/dist/P2CTZE2T-DOT1mNnX.mjs +301 -0
- package/dist/P4IRICAX-CWSZLTGz.mjs +37 -0
- package/dist/Pagination.mjs +104 -104
- package/dist/PasswordInput.mjs +35 -34
- package/dist/Picker.mjs +35 -33
- package/dist/Popover.mjs +100 -93
- package/dist/QYJ6MIDR-DJ-vUdAM.mjs +98 -0
- package/dist/Radio.mjs +58 -52
- package/dist/RadioGroup.mjs +46 -46
- package/dist/RadioTab.mjs +37 -35
- package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-B6m278Vb.mjs} +18 -17
- package/dist/Search.mjs +175 -161
- package/dist/Select.mjs +885 -847
- package/dist/Shape.mjs +9 -9
- package/dist/Slider.mjs +359 -336
- package/dist/Stack.mjs +22 -24
- package/dist/Swiper.mjs +324 -311
- package/dist/Table.mjs +23 -23
- package/dist/Tabs.mjs +250 -245
- package/dist/Tag.mjs +51 -49
- package/dist/Text.mjs +49 -47
- package/dist/Textarea.mjs +39 -39
- package/dist/TimePicker.mjs +57 -56
- package/dist/Toast.mjs +144 -137
- package/dist/Toggle.mjs +27 -24
- package/dist/Tooltip.mjs +115 -111
- package/dist/UniversalLink.mjs +16 -16
- package/dist/VEVQD5MH-0w9Y7Ytc.mjs +20 -0
- package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-C0UPBY-5.mjs} +61 -62
- package/dist/VariantIcon.mjs +14 -22
- package/dist/WelcomeLoader.mjs +4863 -9223
- package/dist/WuiProvider.mjs +69 -58
- package/dist/X5NMLKT6-BJw3xE-K.mjs +25 -0
- package/dist/YV4JVR4I-DPC8mMuG.mjs +344 -0
- package/dist/downshift.esm-B7Jil1wW.mjs +1082 -0
- package/dist/{field-styles-DLIhqG_8.mjs → field-styles-BVlRlvuu.mjs} +2 -2
- package/dist/{hex-to-rgba-BIDK-3ab.mjs → hex-to-rgba-DU_XzKIK.mjs} +2 -2
- package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
- package/dist/index-5HBq1O6Z.mjs +185 -0
- package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
- package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
- package/dist/index-CYmF7qCH.mjs +11 -0
- package/dist/index-C_k-m0Rl.mjs +36 -0
- package/dist/index-D8v_VJ9z.mjs +26 -0
- package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
- package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
- package/dist/index-DpkNUfAS.mjs +11 -0
- package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
- package/dist/{index-BJAZgeHL.mjs → index-QaLwIvZS.mjs} +8 -8
- package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
- package/dist/index-i_anpNhw.mjs +66 -0
- package/dist/index-wl3X6EM1.mjs +16 -0
- package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
- package/dist/radio-group-C0fUHvam.mjs +52 -0
- package/dist/theme.mjs +1175 -1120
- package/dist/throttle-CW18pWlW.mjs +13 -0
- package/dist/types/components/Accordion/index.d.ts +1 -1
- package/dist/types/components/Accordion/styles.d.ts +2 -2
- package/dist/types/components/Accordion/theme.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +2 -2
- package/dist/types/components/Alert/styles.d.ts +9 -9
- package/dist/types/components/Alert/theme.d.ts +4 -4
- package/dist/types/components/Avatar/index.d.ts +2 -3
- package/dist/types/components/Avatar/styles.d.ts +8 -8
- package/dist/types/components/Avatar/theme.d.ts +3 -3
- package/dist/types/components/Avatar/utils.d.ts +1 -1
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Badge/styles.d.ts +5 -5
- package/dist/types/components/Badge/theme.d.ts +1 -1
- package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +2 -2
- package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +4 -5
- package/dist/types/components/Button/styles.d.ts +1 -1
- package/dist/types/components/Button/theme.d.ts +7 -7
- package/dist/types/components/ButtonGroup/index.d.ts +3 -3
- package/dist/types/components/Card/Cover.styles.d.ts +4 -4
- package/dist/types/components/Card/index.d.ts +2 -3
- package/dist/types/components/Card/theme.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +2 -2
- package/dist/types/components/Checkbox/styles.d.ts +1 -1
- package/dist/types/components/Checkbox/theme.d.ts +1 -1
- package/dist/types/components/ClearButton/index.d.ts +5 -6
- package/dist/types/components/ClearButton/styles.d.ts +4 -4
- package/dist/types/components/CloseButton/styles.d.ts +4 -4
- package/dist/types/components/DatePicker/index.d.ts +3 -3
- package/dist/types/components/DateTimePicker/index.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
- package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
- package/dist/types/components/Drawer/index.d.ts +12 -12
- package/dist/types/components/Drawer/styles.d.ts +5 -5
- package/dist/types/components/Drawer/theme.d.ts +2 -2
- package/dist/types/components/DropdownMenu/index.d.ts +4 -4
- package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
- package/dist/types/components/Field/index.d.ts +8 -8
- package/dist/types/components/Field/styles.d.ts +1 -1
- package/dist/types/components/Field/utils.d.ts +1 -1
- package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
- package/dist/types/components/FileDrop/Message.d.ts +1 -1
- package/dist/types/components/FileDrop/index.d.ts +20 -20
- package/dist/types/components/FileDrop/theme.d.ts +1 -1
- package/dist/types/components/FileUpload/index.d.ts +13 -13
- package/dist/types/components/Files/index.d.ts +5 -5
- package/dist/types/components/Files/types.d.ts +1 -1
- package/dist/types/components/Hint/index.d.ts +1 -2
- package/dist/types/components/Hint/theme.d.ts +1 -1
- package/dist/types/components/Icon/index.d.ts +3 -3
- package/dist/types/components/Icon/styles.d.ts +3 -3
- package/dist/types/components/Icon/theme.d.ts +3 -3
- package/dist/types/components/Icons/Sun/content.json.d.ts +2 -1
- package/dist/types/components/Icons/index.d.ts +2 -2
- package/dist/types/components/IconsFont/index.d.ts +2 -3
- package/dist/types/components/IconsFont/styles.d.ts +1 -1
- package/dist/types/components/InputText/index.d.ts +1 -1
- package/dist/types/components/InputText/styles.d.ts +1 -1
- package/dist/types/components/Label/index.d.ts +2 -3
- package/dist/types/components/Label/theme.d.ts +1 -1
- package/dist/types/components/Link/index.d.ts +5 -5
- package/dist/types/components/Link/styles.d.ts +4 -4
- package/dist/types/components/Link/theme.d.ts +1 -1
- package/dist/types/components/Loader/index.d.ts +1 -1
- package/dist/types/components/Loader/styles.d.ts +4 -4
- package/dist/types/components/Loader/theme.d.ts +4 -4
- package/dist/types/components/Logo/Solutions.d.ts +1 -2
- package/dist/types/components/Logo/Symbol.d.ts +1 -2
- package/dist/types/components/Logo/Wui.d.ts +1 -2
- package/dist/types/components/Logo/index.d.ts +5 -5
- package/dist/types/components/Modal/Assets/Backdrop.d.ts +5 -6
- package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
- package/dist/types/components/Modal/Assets/index.d.ts +9 -9
- package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
- package/dist/types/components/Modal/Close.d.ts +3 -4
- package/dist/types/components/Modal/Content.d.ts +4 -5
- package/dist/types/components/Modal/Footer.d.ts +1 -1
- package/dist/types/components/Modal/Header.d.ts +2 -2
- package/dist/types/components/Modal/index.d.ts +17 -17
- package/dist/types/components/Modal/styles.d.ts +7 -7
- package/dist/types/components/Modal/theme.d.ts +2 -2
- package/dist/types/components/Pagination/index.d.ts +2 -2
- package/dist/types/components/Pagination/theme.d.ts +1 -1
- package/dist/types/components/Pagination/utils.d.ts +1 -1
- package/dist/types/components/Picker/index.d.ts +1 -1
- package/dist/types/components/Picker/styles.d.ts +1 -1
- package/dist/types/components/Popover/Arrow.d.ts +1 -2
- package/dist/types/components/Popover/Content.d.ts +2 -3
- package/dist/types/components/Popover/Popover.d.ts +4 -5
- package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
- package/dist/types/components/Popover/Trigger.d.ts +1 -1
- package/dist/types/components/Popover/styles.d.ts +4 -4
- package/dist/types/components/Popover/theme.d.ts +1 -1
- package/dist/types/components/Popover/usePopover.d.ts +6 -6
- package/dist/types/components/Radio/index.d.ts +3 -3
- package/dist/types/components/Radio/styles.d.ts +5 -5
- package/dist/types/components/Radio/theme.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +2 -2
- package/dist/types/components/RadioTab/index.d.ts +3 -3
- package/dist/types/components/RadioTab/styles.d.ts +3 -9
- package/dist/types/components/RadioTab/theme.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +5 -5
- package/dist/types/components/Select/index.d.ts +11 -11
- package/dist/types/components/Select/styles.d.ts +6 -6
- package/dist/types/components/Select/utils.d.ts +11 -7
- package/dist/types/components/Shape/index.d.ts +1 -1
- package/dist/types/components/Shape/styles.d.ts +3 -3
- package/dist/types/components/Slider/Range.d.ts +3 -3
- package/dist/types/components/Slider/index.d.ts +2 -2
- package/dist/types/components/Slider/styles.d.ts +16 -16
- package/dist/types/components/Slider/theme.d.ts +1 -1
- package/dist/types/components/Stack/index.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +17 -18
- package/dist/types/components/Swiper/styles.d.ts +56 -56
- package/dist/types/components/Swiper/theme.d.ts +1 -1
- package/dist/types/components/System/index.d.ts +14 -14
- package/dist/types/components/Table/index.d.ts +6 -7
- package/dist/types/components/Table/styles.d.ts +1 -1
- package/dist/types/components/Table/theme.d.ts +1 -1
- package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
- package/dist/types/components/Tabs/TabList.d.ts +4 -4
- package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
- package/dist/types/components/Tabs/styles.d.ts +2 -2
- package/dist/types/components/Tabs/theme.d.ts +2 -2
- package/dist/types/components/Tag/index.d.ts +2 -3
- package/dist/types/components/Tag/styles.d.ts +1 -1
- package/dist/types/components/Tag/theme.d.ts +3 -3
- package/dist/types/components/Text/index.d.ts +2 -2
- package/dist/types/components/Textarea/index.d.ts +1 -1
- package/dist/types/components/Textarea/theme.d.ts +1 -1
- package/dist/types/components/TimePicker/index.d.ts +2 -2
- package/dist/types/components/Toast/Growl.d.ts +1 -1
- package/dist/types/components/Toast/Snackbar.d.ts +1 -1
- package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
- package/dist/types/components/Toast/index.d.ts +6 -6
- package/dist/types/components/Toast/styles.d.ts +16 -16
- package/dist/types/components/Toast/theme.d.ts +2 -2
- package/dist/types/components/Toast/utils.d.ts +13 -13
- package/dist/types/components/Toggle/index.d.ts +3 -3
- package/dist/types/components/Toggle/styles.d.ts +5 -4
- package/dist/types/components/Toggle/theme.d.ts +6 -6
- package/dist/types/components/Tooltip/index.d.ts +2 -2
- package/dist/types/components/Tooltip/styles.d.ts +1 -1
- package/dist/types/components/Tooltip/theme.d.ts +1 -1
- package/dist/types/components/VariantIcon/index.d.ts +1 -1
- package/dist/types/components/VariantIcon/styles.d.ts +1 -1
- package/dist/types/components/VariantIcon/theme.d.ts +3 -3
- package/dist/types/components/WuiProvider/font.d.ts +3 -5
- package/dist/types/components/WuiProvider/index.d.ts +1 -1
- package/dist/types/theme/colors.d.ts +3 -11
- package/dist/types/theme/dark.d.ts +1 -1
- package/dist/types/theme/defaultFields.d.ts +10 -10
- package/dist/types/theme/fonts.d.ts +5 -5
- package/dist/types/theme/index.d.ts +31 -31
- package/dist/types/theme/screens.d.ts +1 -1
- package/dist/types/theme/space.d.ts +1 -1
- package/dist/types/theme/typography.d.ts +1 -1
- package/dist/types/utils/field-styles.d.ts +6 -6
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/ts-utils.d.ts +1 -1
- package/dist/types/utils/use-copy-text.d.ts +1 -1
- package/dist/types/utils/use-create-portal.d.ts +1 -1
- package/dist/types/utils/use-viewport.d.ts +2 -2
- package/dist/types/utils/wrap-children.d.ts +1 -1
- package/dist/{use-fork-ref-CUZErtAC.mjs → use-fork-ref-DvaCTfQ_.mjs} +4 -3
- package/dist/use-viewport-CWpjoHXy.mjs +16 -0
- package/dist/utils.mjs +96 -85
- package/dist/wrap-children-DBSD-X5-.mjs +9 -0
- package/package.json +9 -36
- package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
- package/dist/ITI7HKP4-BONrZ9Pq.mjs +0 -473
- package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
- package/dist/LVA2YJMS-qFC9J-lt.mjs +0 -1479
- package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
- package/dist/NLEBE274-C94QU78N.mjs +0 -84
- package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
- package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
- package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
- package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
- package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
- package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
- package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
- package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
- package/dist/index-BDeIsk2X.mjs +0 -184
- package/dist/index-BRDOakbf.mjs +0 -11
- package/dist/index-BpRjq7lj.mjs +0 -11
- package/dist/index-BrfXjmHY.mjs +0 -36
- package/dist/index-CExLVjET.mjs +0 -26
- package/dist/index-DEJJvyGk.mjs +0 -66
- package/dist/index-u1oHKa7X.mjs +0 -16
- package/dist/radio-group-CGC6DTFJ.mjs +0 -51
- package/dist/throttle-BDBzFeFj.mjs +0 -13
- package/dist/use-viewport-m3glsbna.mjs +0 -16
- package/dist/wrap-children-aq69jtFP.mjs +0 -12
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { u } from "./P4IRICAX-CWSZLTGz.mjs";
|
|
3
|
+
import { a as c } from "./VGCJ63VH-C0UPBY-5.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-C-kJ1lkr.mjs";
|
|
5
|
+
var f = "button", d = p(
|
|
6
|
+
function(r) {
|
|
7
|
+
var s = r, { store: o } = s, e = m(s, ["store"]);
|
|
8
|
+
const i = c();
|
|
9
|
+
o = o || i, g(
|
|
10
|
+
o,
|
|
11
|
+
process.env.NODE_ENV !== "production" && "DialogDisclosure must receive a `store` prop or be wrapped in a DialogProvider component."
|
|
12
|
+
);
|
|
13
|
+
const n = o.useState("contentElement");
|
|
14
|
+
return e = a({
|
|
15
|
+
"aria-haspopup": v(n, "dialog")
|
|
16
|
+
}, e), e = u(a({ store: o }, e)), e;
|
|
17
|
+
}
|
|
18
|
+
), P = l(function(r) {
|
|
19
|
+
const s = d(r);
|
|
20
|
+
return D(f, s);
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
P as D,
|
|
24
|
+
d as u
|
|
25
|
+
};
|
package/dist/Accordion.mjs
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { D as u } from "./P4IRICAX-DzXqUYe-.mjs";
|
|
5
|
-
import { d as p, e as f } from "./VGCJ63VH-B39w1tBw.mjs";
|
|
2
|
+
import { j as o } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
|
+
import { cloneElement as m } from "react";
|
|
6
4
|
import "./Icon.mjs";
|
|
7
|
-
import { R as
|
|
8
|
-
import { forwardRef as
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { R as p } from "./index-CYmF7qCH.mjs";
|
|
6
|
+
import { forwardRef as u } from "./System.mjs";
|
|
7
|
+
import t, { th as i } from "@xstyled/styled-components";
|
|
8
|
+
import { D as f } from "./P4IRICAX-CWSZLTGz.mjs";
|
|
9
|
+
import { d as g, e as h } from "./VGCJ63VH-C0UPBY-5.mjs";
|
|
10
|
+
const x = t.divBox`
|
|
11
|
+
${i("accordions.wrapper")};
|
|
11
12
|
transition: medium;
|
|
12
13
|
|
|
13
14
|
&:hover {
|
|
14
15
|
border-color: neutral-50;
|
|
15
16
|
}
|
|
16
|
-
`, n =
|
|
17
|
+
`, n = t.divBox`
|
|
17
18
|
flex-shrink: 0;
|
|
18
|
-
${
|
|
19
|
+
${i("accordions.icon")};
|
|
19
20
|
transform: rotate3d(0);
|
|
20
21
|
transition: medium;
|
|
21
22
|
width: 32;
|
|
@@ -27,10 +28,10 @@ const $ = r.divBox`
|
|
|
27
28
|
& *:first-child {
|
|
28
29
|
margin: auto;
|
|
29
30
|
}
|
|
30
|
-
`,
|
|
31
|
-
${
|
|
31
|
+
`, $ = t(f)`
|
|
32
|
+
${i("accordions.title")};
|
|
32
33
|
width: 100%;
|
|
33
|
-
padding: ${
|
|
34
|
+
padding: ${i("accordions.padding")};
|
|
34
35
|
background-color: transparent;
|
|
35
36
|
border: 0;
|
|
36
37
|
display: flex;
|
|
@@ -58,7 +59,7 @@ const $ = r.divBox`
|
|
|
58
59
|
color: inherit;
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
|
-
`,
|
|
62
|
+
`, j = t(g)`
|
|
62
63
|
display: grid;
|
|
63
64
|
grid-template-rows: 0fr;
|
|
64
65
|
transition-property: grid-template-rows;
|
|
@@ -74,18 +75,24 @@ const $ = r.divBox`
|
|
|
74
75
|
&[data-enter] {
|
|
75
76
|
grid-template-rows: 1fr;
|
|
76
77
|
}
|
|
77
|
-
`, v =
|
|
78
|
-
${
|
|
79
|
-
padding: ${
|
|
78
|
+
`, v = t.div`
|
|
79
|
+
${i("accordions.content")};
|
|
80
|
+
padding: ${i("accordions.padding")};
|
|
80
81
|
padding-top: 0;
|
|
81
82
|
color: neutral-70;
|
|
82
|
-
`,
|
|
83
|
-
({ children:
|
|
83
|
+
`, B = u(
|
|
84
|
+
({ children: e, dataTestId: r, icon: d = /* @__PURE__ */ o.jsx(p, {}), store: s, title: c, ...a }, l) => /* @__PURE__ */ o.jsxs(x, { "data-testid": r, ref: l, ...a, 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
|
+
] })
|
|
84
91
|
);
|
|
85
|
-
function
|
|
86
|
-
return
|
|
92
|
+
function E(e) {
|
|
93
|
+
return h({ animated: !0, ...e });
|
|
87
94
|
}
|
|
88
95
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
96
|
+
B as Accordion,
|
|
97
|
+
E as useAccordion
|
|
91
98
|
};
|
package/dist/Alert.mjs
CHANGED
|
@@ -1,126 +1,132 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { CloseButton as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
2
|
+
import { j as s } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
|
+
import j, { Children as B, cloneElement as m } from "react";
|
|
4
|
+
import { Box as w } from "./Box.mjs";
|
|
5
|
+
import { Button as A } from "./Button.mjs";
|
|
6
|
+
import { CloseButton as _ } from "./CloseButton.mjs";
|
|
7
|
+
import { forwardRef as d } from "./System.mjs";
|
|
8
|
+
import c, { th as r, css as f, system as D } from "@xstyled/styled-components";
|
|
9
|
+
import { Text as O } from "./Text.mjs";
|
|
10
|
+
import { VariantIcon as q } from "./VariantIcon.mjs";
|
|
11
|
+
const x = c.divBox`
|
|
11
12
|
display: flex;
|
|
12
13
|
gap: md;
|
|
13
14
|
flex-direction: column;
|
|
14
15
|
justify-content: space-between;
|
|
15
16
|
align-items: flex-start;
|
|
16
17
|
flex: 1;
|
|
17
|
-
`,
|
|
18
|
+
`, b = c(q)`
|
|
18
19
|
position: absolute;
|
|
19
20
|
align-self: flex-start;
|
|
20
|
-
`,
|
|
21
|
+
`, F = c.divBox(({ icon: n, isFullWidth: o, size: e, variant: l }) => f`
|
|
21
22
|
position: relative;
|
|
22
23
|
display: flex;
|
|
23
24
|
align-items: flex-start;
|
|
24
25
|
width: 100%;
|
|
25
|
-
max-width: ${
|
|
26
|
-
${
|
|
27
|
-
${
|
|
28
|
-
${
|
|
26
|
+
max-width: ${o ? "100%" : "max-content"};
|
|
27
|
+
${r("alerts.default")};
|
|
28
|
+
${r(`alerts.${l}`)};
|
|
29
|
+
${r(`alerts.sizes.${e}`)};
|
|
29
30
|
|
|
30
|
-
${n !== null && e === "sm" &&
|
|
31
|
-
${
|
|
32
|
-
margin-left: calc(${
|
|
31
|
+
${n !== null && e === "sm" && f`
|
|
32
|
+
${x} {
|
|
33
|
+
margin-left: calc(${r("icons.sm")} + ${r("space.md")});
|
|
33
34
|
}
|
|
34
35
|
`}
|
|
35
36
|
|
|
36
|
-
${n !== null && e === "md" &&
|
|
37
|
-
${
|
|
38
|
-
margin-left: calc(${
|
|
39
|
-
gap: ${
|
|
40
|
-
font-size: ${
|
|
37
|
+
${n !== null && e === "md" && f`
|
|
38
|
+
${x} {
|
|
39
|
+
margin-left: calc(${r("icons.md")} + ${r("space.lg")});
|
|
40
|
+
gap: ${r("space.lg")};
|
|
41
|
+
font-size: ${r("fontSizes.md")};
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
${
|
|
44
|
+
${b} {
|
|
44
45
|
margin-top: -3;
|
|
45
46
|
}
|
|
46
47
|
`}
|
|
47
|
-
`),
|
|
48
|
+
`), G = c(O)(({ variant: n }) => f`
|
|
48
49
|
font-weight: medium;
|
|
49
|
-
${
|
|
50
|
-
${
|
|
51
|
-
${
|
|
52
|
-
`),
|
|
50
|
+
${r("alerts.title.default")};
|
|
51
|
+
${r(`alerts.title.sizes.${n}`)};
|
|
52
|
+
${D};
|
|
53
|
+
`), v = ({ children: n, dataTestId: o, variant: e }) => /* @__PURE__ */ s.jsx(G, { "data-testid": o, variant: e, children: n }), H = d(
|
|
53
54
|
({
|
|
54
55
|
children: n,
|
|
55
|
-
cta:
|
|
56
|
+
cta: o,
|
|
56
57
|
dataTestId: e,
|
|
57
58
|
handleClose: l,
|
|
58
59
|
icon: p,
|
|
59
|
-
isFullWidth:
|
|
60
|
-
size:
|
|
61
|
-
variant:
|
|
62
|
-
...
|
|
63
|
-
},
|
|
64
|
-
const
|
|
60
|
+
isFullWidth: E,
|
|
61
|
+
size: i = "sm",
|
|
62
|
+
variant: a = "default",
|
|
63
|
+
...I
|
|
64
|
+
}, V) => {
|
|
65
|
+
const h = e ? `${e}-close-button` : void 0, k = a === "beige" ? "default" : a, u = a === "ai", T = B.toArray(n).map((t) => j.isValidElement(t) && t.type === v ? m(t, { variant: i }) : t), $ = (t) => {
|
|
65
66
|
var y;
|
|
66
67
|
if (t) {
|
|
67
68
|
if (t.type === S)
|
|
68
69
|
return m(t, {
|
|
69
|
-
size: a,
|
|
70
70
|
ai: u,
|
|
71
|
+
size: i,
|
|
71
72
|
variant: u ? "primary" : void 0
|
|
72
73
|
});
|
|
73
74
|
if (t.type === C)
|
|
74
75
|
return m(t, {
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
ai: u,
|
|
77
|
+
size: i
|
|
77
78
|
});
|
|
78
79
|
if ((y = t.props) != null && y.children)
|
|
79
80
|
return m(t, {
|
|
80
81
|
...t.props,
|
|
81
82
|
children: B.map(
|
|
82
83
|
t.props.children,
|
|
83
|
-
(R) =>
|
|
84
|
+
(R) => $(R)
|
|
84
85
|
)
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
88
|
return t;
|
|
88
|
-
}, g =
|
|
89
|
-
return /* @__PURE__ */ s.
|
|
90
|
-
|
|
89
|
+
}, g = j.isValidElement(o) ? $(o) : o;
|
|
90
|
+
return /* @__PURE__ */ s.jsxs(
|
|
91
|
+
F,
|
|
91
92
|
{
|
|
92
93
|
"data-testid": e,
|
|
93
94
|
icon: p,
|
|
94
|
-
isFullWidth:
|
|
95
|
-
ref:
|
|
96
|
-
size:
|
|
97
|
-
variant:
|
|
98
|
-
...
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
95
|
+
isFullWidth: E,
|
|
96
|
+
ref: V,
|
|
97
|
+
size: i,
|
|
98
|
+
variant: a,
|
|
99
|
+
...I,
|
|
100
|
+
children: [
|
|
101
|
+
!!l && /* @__PURE__ */ s.jsx(
|
|
102
|
+
_,
|
|
103
|
+
{
|
|
104
|
+
dataTestId: h,
|
|
105
|
+
onClick: l,
|
|
106
|
+
position: "absolute",
|
|
107
|
+
right: "sm",
|
|
108
|
+
size: "xs",
|
|
109
|
+
top: "sm"
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
p !== null && /* @__PURE__ */ s.jsx(b, { icon: p, size: i, variant: k }),
|
|
113
|
+
/* @__PURE__ */ s.jsxs(x, { children: [
|
|
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
|
+
}
|
|
113
119
|
);
|
|
114
120
|
}
|
|
115
|
-
), S =
|
|
116
|
-
({ variant: n = "secondary", ...
|
|
117
|
-
), C =
|
|
118
|
-
({ variant: n = "tertiary", ...
|
|
119
|
-
),
|
|
120
|
-
Title: b,
|
|
121
|
+
), S = d(
|
|
122
|
+
({ variant: n = "secondary", ...o }, e) => /* @__PURE__ */ s.jsx(A, { flexShrink: 0, ref: e, w: "fit-content", ...o, variant: n })
|
|
123
|
+
), C = d(
|
|
124
|
+
({ variant: n = "tertiary", ...o }, e) => /* @__PURE__ */ s.jsx(A, { flexShrink: 0, ref: e, w: "fit-content", ...o, variant: n })
|
|
125
|
+
), X = Object.assign(H, {
|
|
121
126
|
Button: S,
|
|
122
|
-
SecondaryButton: C
|
|
127
|
+
SecondaryButton: C,
|
|
128
|
+
Title: v
|
|
123
129
|
});
|
|
124
130
|
export {
|
|
125
|
-
|
|
131
|
+
X as Alert
|
|
126
132
|
};
|
package/dist/AspectRatio.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import i from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
({ ratio: t }) =>
|
|
2
|
+
import { j as i } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
|
+
import { forwardRef as s } from "./System.mjs";
|
|
4
|
+
import r, { css as n } from "@xstyled/styled-components";
|
|
5
|
+
const p = r.divBox(
|
|
6
|
+
({ ratio: t = 4 / 3 }) => n`
|
|
7
7
|
position: relative;
|
|
8
8
|
|
|
9
9
|
& > * {
|
|
@@ -32,10 +32,8 @@ const n = r.divBox(
|
|
|
32
32
|
padding-bottom: ${1 / t * 100}%;
|
|
33
33
|
}
|
|
34
34
|
`
|
|
35
|
-
),
|
|
36
|
-
|
|
37
|
-
);
|
|
38
|
-
a.displayName = "AspectRatio";
|
|
35
|
+
), c = s(({ ratio: t, ...o }, e) => /* @__PURE__ */ i.jsx(p, { ratio: t, ref: e, ...o }));
|
|
36
|
+
c.displayName = "AspectRatio";
|
|
39
37
|
export {
|
|
40
|
-
|
|
38
|
+
c as AspectRatio
|
|
41
39
|
};
|
package/dist/Avatar.mjs
CHANGED
|
@@ -1,56 +1,57 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import m, { th as
|
|
2
|
+
import { j as s } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
|
+
import m, { th as g, useTheme as j } from "@xstyled/styled-components";
|
|
4
|
+
import { Box as v } from "./Box.mjs";
|
|
5
|
+
import { forwardRef as y } from "./System.mjs";
|
|
4
6
|
import { Shape as C } from "./Shape.mjs";
|
|
5
7
|
import { Text as $ } from "./Text.mjs";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
const b = m(C)`
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
`, A = m($)`
|
|
11
|
+
${g("avatars.text")};
|
|
12
|
+
`;
|
|
8
13
|
function z(o, t = "") {
|
|
9
|
-
const
|
|
10
|
-
return
|
|
14
|
+
const r = Object.keys(o).filter((e) => e.startsWith("secondary-")), a = t.length % r.length;
|
|
15
|
+
return r[a];
|
|
11
16
|
}
|
|
12
|
-
function
|
|
13
|
-
const [t,
|
|
14
|
-
return t &&
|
|
17
|
+
function S(o = "") {
|
|
18
|
+
const [t, r] = o.split(" ");
|
|
19
|
+
return t && r ? `${t.charAt(0).toUpperCase()}${r.charAt(0).toUpperCase()}` : t.substring(0, 2).toUpperCase();
|
|
15
20
|
}
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
!n && /* @__PURE__ */ a.createElement(A, null, /* @__PURE__ */ a.createElement(T, { fontSize: g, m: 0 }, e(r)))
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
)
|
|
21
|
+
const T = y(
|
|
22
|
+
({
|
|
23
|
+
color: o,
|
|
24
|
+
fontSize: t,
|
|
25
|
+
getInitials: r = S,
|
|
26
|
+
h: a,
|
|
27
|
+
name: e,
|
|
28
|
+
shape: p = "circle",
|
|
29
|
+
size: f = "md",
|
|
30
|
+
src: i,
|
|
31
|
+
w: n,
|
|
32
|
+
...h
|
|
33
|
+
}, x) => {
|
|
34
|
+
const l = j(), d = o || z(l.colors, e), c = l.avatars.sizes[f], u = t || `calc(${n ? l.toRem(n) : c} / 2.5)`;
|
|
35
|
+
return /* @__PURE__ */ s.jsxs(
|
|
36
|
+
b,
|
|
37
|
+
{
|
|
38
|
+
"aria-label": e,
|
|
39
|
+
backgroundColor: d,
|
|
40
|
+
h: a || c,
|
|
41
|
+
ref: x,
|
|
42
|
+
role: "img",
|
|
43
|
+
shape: p,
|
|
44
|
+
w: n || c,
|
|
45
|
+
...h,
|
|
46
|
+
children: [
|
|
47
|
+
i && /* @__PURE__ */ s.jsx("img", { alt: e, src: i }),
|
|
48
|
+
!i && /* @__PURE__ */ s.jsx(v, { children: /* @__PURE__ */ s.jsx(A, { fontSize: u, m: 0, children: r(e) }) })
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
52
53
|
);
|
|
53
|
-
|
|
54
|
+
T.displayName = "Avatar";
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
T as Avatar
|
|
56
57
|
};
|