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
package/dist/utils.mjs
CHANGED
|
@@ -1,95 +1,106 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { o as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { s as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
import { F as L, d as q } from "./field-styles-BVlRlvuu.mjs";
|
|
3
|
+
import { f as N } from "./format-bytes-gST0dTWd.mjs";
|
|
4
|
+
import { h as P } from "./hex-to-rgba-DU_XzKIK.mjs";
|
|
5
|
+
import { o as B } from "./overflow-ellipsis-DGV5Kgt-.mjs";
|
|
6
|
+
import { t as j } from "./throttle-CW18pWlW.mjs";
|
|
7
|
+
import { g as w } from "./_commonjsHelpers-CXJ7dpIk.mjs";
|
|
8
|
+
import { useState as D, useCallback as E } from "react";
|
|
9
|
+
import { s as K, u as O } from "./use-fork-ref-DvaCTfQ_.mjs";
|
|
10
|
+
import { u as X } from "./use-isomorphic-layout-effect-Izr-e2pi.mjs";
|
|
11
|
+
import { u as $ } from "./use-viewport-CWpjoHXy.mjs";
|
|
12
|
+
var m, C;
|
|
13
|
+
function T() {
|
|
14
|
+
return C || (C = 1, m = function() {
|
|
15
|
+
var e = document.getSelection();
|
|
16
|
+
if (!e.rangeCount)
|
|
17
|
+
return function() {
|
|
18
|
+
};
|
|
19
|
+
for (var o = document.activeElement, c = [], l = 0; l < e.rangeCount; l++)
|
|
20
|
+
c.push(e.getRangeAt(l));
|
|
21
|
+
switch (o.tagName.toUpperCase()) {
|
|
22
|
+
// .toUpperCase handles XHTML
|
|
23
|
+
case "INPUT":
|
|
24
|
+
case "TEXTAREA":
|
|
25
|
+
o.blur();
|
|
26
|
+
break;
|
|
27
|
+
default:
|
|
28
|
+
o = null;
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
return e.removeAllRanges(), function() {
|
|
32
|
+
e.type === "Caret" && e.removeAllRanges(), e.rangeCount || c.forEach(function(u) {
|
|
33
|
+
e.addRange(u);
|
|
34
|
+
}), o && o.focus();
|
|
16
35
|
};
|
|
17
|
-
|
|
18
|
-
r.push(e.getRangeAt(o));
|
|
19
|
-
switch (t.tagName.toUpperCase()) {
|
|
20
|
-
case "INPUT":
|
|
21
|
-
case "TEXTAREA":
|
|
22
|
-
t.blur();
|
|
23
|
-
break;
|
|
24
|
-
default:
|
|
25
|
-
t = null;
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
28
|
-
return e.removeAllRanges(), function() {
|
|
29
|
-
e.type === "Caret" && e.removeAllRanges(), e.rangeCount || r.forEach(function(c) {
|
|
30
|
-
e.addRange(c);
|
|
31
|
-
}), t && t.focus();
|
|
32
|
-
};
|
|
33
|
-
}, v = g, f = {
|
|
34
|
-
"text/plain": "Text",
|
|
35
|
-
"text/html": "Url",
|
|
36
|
-
default: "Text"
|
|
37
|
-
}, b = "Copy to clipboard: #{key}, Enter";
|
|
38
|
-
function C(e) {
|
|
39
|
-
var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
40
|
-
return e.replace(/#{\s*key\s*}/g, t);
|
|
36
|
+
}), m;
|
|
41
37
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
var p =
|
|
57
|
-
|
|
58
|
-
throw new Error("copy command was unsuccessful");
|
|
59
|
-
i = !0;
|
|
60
|
-
} catch (l) {
|
|
61
|
-
r && console.error("unable to copy using execCommand: ", l), r && console.warn("trying IE specific stuff");
|
|
38
|
+
var y, b;
|
|
39
|
+
function h() {
|
|
40
|
+
if (b) return y;
|
|
41
|
+
b = 1;
|
|
42
|
+
var e = T(), o = {
|
|
43
|
+
"text/plain": "Text",
|
|
44
|
+
"text/html": "Url",
|
|
45
|
+
default: "Text"
|
|
46
|
+
}, c = "Copy to clipboard: #{key}, Enter";
|
|
47
|
+
function l(a) {
|
|
48
|
+
var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
49
|
+
return a.replace(/#{\s*key\s*}/g, t);
|
|
50
|
+
}
|
|
51
|
+
function u(a, t) {
|
|
52
|
+
var s, g, v, f, i, r, p = !1;
|
|
53
|
+
t || (t = {}), s = t.debug || !1;
|
|
62
54
|
try {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
v = e(), f = document.createRange(), i = document.getSelection(), r = document.createElement("span"), r.textContent = a, r.ariaHidden = "true", r.style.all = "unset", r.style.position = "fixed", r.style.top = 0, r.style.clip = "rect(0, 0, 0, 0)", r.style.whiteSpace = "pre", r.style.webkitUserSelect = "text", r.style.MozUserSelect = "text", r.style.msUserSelect = "text", r.style.userSelect = "text", r.addEventListener("copy", function(n) {
|
|
56
|
+
if (n.stopPropagation(), t.format)
|
|
57
|
+
if (n.preventDefault(), typeof n.clipboardData > "u") {
|
|
58
|
+
s && console.warn("unable to use e.clipboardData"), s && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
|
|
59
|
+
var d = o[t.format] || o.default;
|
|
60
|
+
window.clipboardData.setData(d, a);
|
|
61
|
+
} else
|
|
62
|
+
n.clipboardData.clearData(), n.clipboardData.setData(t.format, a);
|
|
63
|
+
t.onCopy && (n.preventDefault(), t.onCopy(n.clipboardData));
|
|
64
|
+
}), document.body.appendChild(r), f.selectNodeContents(r), i.addRange(f);
|
|
65
|
+
var x = document.execCommand("copy");
|
|
66
|
+
if (!x)
|
|
67
|
+
throw new Error("copy command was unsuccessful");
|
|
68
|
+
p = !0;
|
|
69
|
+
} catch (n) {
|
|
70
|
+
s && console.error("unable to copy using execCommand: ", n), s && console.warn("trying IE specific stuff");
|
|
71
|
+
try {
|
|
72
|
+
window.clipboardData.setData(t.format || "text", a), t.onCopy && t.onCopy(window.clipboardData), p = !0;
|
|
73
|
+
} catch (d) {
|
|
74
|
+
s && console.error("unable to copy using clipboardData: ", d), s && console.error("falling back to prompt"), g = l("message" in t ? t.message : c), window.prompt(g, a);
|
|
75
|
+
}
|
|
76
|
+
} finally {
|
|
77
|
+
i && (typeof i.removeRange == "function" ? i.removeRange(f) : i.removeAllRanges()), r && document.body.removeChild(r), v();
|
|
66
78
|
}
|
|
67
|
-
|
|
68
|
-
s && (typeof s.removeRange == "function" ? s.removeRange(n) : s.removeAllRanges()), a && document.body.removeChild(a), c();
|
|
79
|
+
return p;
|
|
69
80
|
}
|
|
70
|
-
return
|
|
81
|
+
return y = u, y;
|
|
71
82
|
}
|
|
72
|
-
var
|
|
73
|
-
const
|
|
74
|
-
function
|
|
75
|
-
const [
|
|
76
|
-
return [
|
|
77
|
-
let
|
|
78
|
-
typeof e == "number" || typeof e == "string" ?
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
}, [e,
|
|
83
|
+
var S = h();
|
|
84
|
+
const R = /* @__PURE__ */ w(S);
|
|
85
|
+
function A(e, o) {
|
|
86
|
+
const [c, l] = D(!1);
|
|
87
|
+
return [E(() => {
|
|
88
|
+
let a;
|
|
89
|
+
typeof e == "number" || typeof e == "string" ? a = e.toString() : e.current instanceof HTMLInputElement ? a = e.current.value : e.current instanceof HTMLElement && (a = e.current.textContent);
|
|
90
|
+
const t = a && R(a);
|
|
91
|
+
l(t || !1), o && setTimeout(l, o);
|
|
92
|
+
}, [e, o]), c];
|
|
82
93
|
}
|
|
83
94
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
L as FIELD_ICON_SIZE,
|
|
96
|
+
q as defaultFieldStyles,
|
|
97
|
+
N as formatBytes,
|
|
98
|
+
P as hexToRGBA,
|
|
99
|
+
B as overflowEllipsis,
|
|
100
|
+
K as setRef,
|
|
101
|
+
j as throttle,
|
|
102
|
+
A as useCopyText,
|
|
103
|
+
O as useForkRef,
|
|
104
|
+
X as useIsomorphicLayoutEffect,
|
|
105
|
+
$ as useViewportSize
|
|
95
106
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
|
+
import n from "react";
|
|
4
|
+
const p = (t) => n.Children.toArray(t).map(
|
|
5
|
+
(r) => ["number", "string"].includes(typeof r) ? /* @__PURE__ */ e.jsx("span", { children: r }, r.toString()) : r
|
|
6
|
+
);
|
|
7
|
+
export {
|
|
8
|
+
p as w
|
|
9
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "welcome-ui",
|
|
3
|
-
"version": "8.0.0",
|
|
3
|
+
"version": "8.1.0-alpha.0",
|
|
4
4
|
"description": "Customizable design system with react • styled-components • styled-system and ariakit.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"start": "vite build --watch",
|
|
28
28
|
"build": "vite build",
|
|
29
|
-
"test": "
|
|
29
|
+
"test": "vitest"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@ariakit/react": "0.4.15",
|
|
54
|
-
"@juggle/resize-observer": "^3.4.0",
|
|
55
54
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
55
|
+
"@juggle/resize-observer": "^3.4.0",
|
|
56
56
|
"copy-to-clipboard": "^3.3.3",
|
|
57
57
|
"date-fns": "^4.1.0",
|
|
58
58
|
"downshift": "^7.4.1",
|
|
@@ -67,56 +67,29 @@
|
|
|
67
67
|
"react-hot-toast": "^2.4.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@babel/cli": "7.25.9",
|
|
71
|
-
"@babel/core": "7.25.2",
|
|
72
|
-
"@babel/eslint-parser": "^7.25.1",
|
|
73
|
-
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
74
|
-
"@babel/plugin-proposal-optional-chaining": "7.21.0",
|
|
75
|
-
"@babel/plugin-transform-modules-commonjs": "7.26.3",
|
|
76
|
-
"@babel/plugin-transform-runtime": "^7.25.4",
|
|
77
|
-
"@babel/preset-env": "^7.26.0",
|
|
78
|
-
"@babel/preset-react": "^7.26.3",
|
|
79
|
-
"@babel/preset-typescript": "^7.22.11",
|
|
80
70
|
"@testing-library/dom": "^10.4.0",
|
|
81
71
|
"@testing-library/jest-dom": "^6.6.3",
|
|
82
72
|
"@testing-library/react": "^16.2.0",
|
|
83
73
|
"@testing-library/user-event": "^14.6.1",
|
|
84
|
-
"@types/jest": "^29.5.13",
|
|
85
74
|
"@types/lodash.capitalize": "^4.2.9",
|
|
86
75
|
"@types/lodash.debounce": "^4.0.6",
|
|
87
76
|
"@types/lodash.range": "^3.2.9",
|
|
88
|
-
"@types/node": "22.13.4",
|
|
89
77
|
"@types/ramda": "^0.30.2",
|
|
90
|
-
"@types/react": "18.3.12",
|
|
91
78
|
"@types/react-datepicker": "^4.15.0",
|
|
92
|
-
"
|
|
93
|
-
"@xstyled/styled-components": "^4.0.0",
|
|
94
|
-
"babel-jest": "^29.7.0",
|
|
95
|
-
"babel-plugin-annotate-pure-calls": "^0.4.0",
|
|
96
|
-
"babel-plugin-styled-components": "^2.1.4",
|
|
97
|
-
"babel-plugin-transform-async-to-promises": "^0.8.18",
|
|
98
|
-
"babel-preset-vite": "^1.1.3",
|
|
99
|
-
"jest": "29.7.0",
|
|
100
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
101
|
-
"jest-styled-components": "7.2.0",
|
|
79
|
+
"jsdom": "^26.0.0",
|
|
102
80
|
"ramda": "^0.30.1",
|
|
103
|
-
"react": "^18.3.1",
|
|
104
81
|
"release-it": "^18.1.2",
|
|
82
|
+
"rollup": "^4.35.0",
|
|
105
83
|
"rollup-preserve-directives": "^1.1.3",
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"vite": "^
|
|
109
|
-
"
|
|
110
|
-
"vite-plugin-static-copy": "^2.2.0",
|
|
111
|
-
"wttj-config": "^3.0.1"
|
|
84
|
+
"vite": "^6.2.1",
|
|
85
|
+
"vite-plugin-dts": "^4.5.3",
|
|
86
|
+
"vite-plugin-static-copy": "^2.3.0",
|
|
87
|
+
"vitest": "^3.0.8"
|
|
112
88
|
},
|
|
113
89
|
"peerDependencies": {
|
|
114
90
|
"@xstyled/styled-components": "^4.0.0",
|
|
115
91
|
"react": "^18.3.1",
|
|
116
92
|
"styled-components": "^6.1.15"
|
|
117
93
|
},
|
|
118
|
-
"resolutions": {
|
|
119
|
-
"@babel/traverse": ">=7.23.2"
|
|
120
|
-
},
|
|
121
94
|
"homepage": "https://welcome-ui.com"
|
|
122
95
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { u } from "./P4IRICAX-DzXqUYe-.mjs";
|
|
3
|
-
import { a as c } from "./VGCJ63VH-B39w1tBw.mjs";
|
|
4
|
-
import { c as l, _ as p, i as D, g as a, s as m, f as g, h as v } from "./LVA2YJMS-qFC9J-lt.mjs";
|
|
5
|
-
var f = "button", d = l(
|
|
6
|
-
function(r) {
|
|
7
|
-
var s = r, { store: o } = s, e = p(s, ["store"]);
|
|
8
|
-
const i = c();
|
|
9
|
-
o = o || i, D(
|
|
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": m(n, "dialog")
|
|
16
|
-
}, e), e = u(a({ store: o }, e)), e;
|
|
17
|
-
}
|
|
18
|
-
), P = g(function(r) {
|
|
19
|
-
const s = d(r);
|
|
20
|
-
return v(f, s);
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
P as D,
|
|
24
|
-
d as u
|
|
25
|
-
};
|