welcome-ui 8.0.0-alpha.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 +11 -38
- 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
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { i as re, $ as C, a0 as ue, Q as F, a1 as ae, a2 as oe, a3 as se, B as ie, D as ce, a4 as fe, J as le, F as G, d as de, g as U, b as Se, a5 as pe } from "./LVA2YJMS-qFC9J-lt.mjs";
|
|
3
|
-
import * as I from "react";
|
|
4
|
-
import Q from "react";
|
|
5
|
-
import { g as _e } from "./_commonjsHelpers-CXJ7dpIk.mjs";
|
|
6
|
-
function D(e, n) {
|
|
7
|
-
const t = e.__unstableInternals;
|
|
8
|
-
return re(t, "Invalid store"), t[n];
|
|
9
|
-
}
|
|
10
|
-
function q(e, ...n) {
|
|
11
|
-
let t = e, l = t, o = Symbol(), u = fe;
|
|
12
|
-
const s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), g = (a) => (_.add(a), () => _.delete(a)), x = () => {
|
|
13
|
-
const a = s.size, r = Symbol();
|
|
14
|
-
s.add(r);
|
|
15
|
-
const b = () => {
|
|
16
|
-
s.delete(r), !s.size && u();
|
|
17
|
-
};
|
|
18
|
-
if (a) return b;
|
|
19
|
-
const w = ue(t).map(
|
|
20
|
-
(L) => F(
|
|
21
|
-
...n.map((V) => {
|
|
22
|
-
var h;
|
|
23
|
-
const T = (h = V == null ? void 0 : V.getState) == null ? void 0 : h.call(V);
|
|
24
|
-
if (T && C(T, L))
|
|
25
|
-
return k(V, [L], (j) => {
|
|
26
|
-
p(
|
|
27
|
-
L,
|
|
28
|
-
j[L],
|
|
29
|
-
// @ts-expect-error - Not public API. This is just to prevent
|
|
30
|
-
// infinite loops.
|
|
31
|
-
!0
|
|
32
|
-
);
|
|
33
|
-
});
|
|
34
|
-
})
|
|
35
|
-
)
|
|
36
|
-
), A = [];
|
|
37
|
-
for (const L of _)
|
|
38
|
-
A.push(L());
|
|
39
|
-
const K = n.map(X);
|
|
40
|
-
return u = F(...w, ...A, ...K), b;
|
|
41
|
-
}, E = (a, r, b = m) => (b.add(r), d.set(r, a), () => {
|
|
42
|
-
var w;
|
|
43
|
-
(w = i.get(r)) == null || w(), i.delete(r), d.delete(r), b.delete(r);
|
|
44
|
-
}), R = (a, r) => E(a, r), P = (a, r) => (i.set(r, r(t, t)), E(a, r)), B = (a, r) => (i.set(r, r(t, l)), E(a, r, v)), S = (a) => q(ae(t, a), y), f = (a) => q(oe(t, a), y), O = () => t, p = (a, r, b = !1) => {
|
|
45
|
-
var w;
|
|
46
|
-
if (!C(t, a)) return;
|
|
47
|
-
const A = se(r, t[a]);
|
|
48
|
-
if (A === t[a]) return;
|
|
49
|
-
if (!b)
|
|
50
|
-
for (const h of n)
|
|
51
|
-
(w = h == null ? void 0 : h.setState) == null || w.call(h, a, A);
|
|
52
|
-
const K = t;
|
|
53
|
-
t = ie(ce({}, t), { [a]: A });
|
|
54
|
-
const L = Symbol();
|
|
55
|
-
o = L, c.add(a);
|
|
56
|
-
const V = (h, T, j) => {
|
|
57
|
-
var $;
|
|
58
|
-
const H = d.get(h), ne = (z) => j ? j.has(z) : z === a;
|
|
59
|
-
(!H || H.some(ne)) && (($ = i.get(h)) == null || $(), i.set(h, h(t, T)));
|
|
60
|
-
};
|
|
61
|
-
for (const h of m)
|
|
62
|
-
V(h, K);
|
|
63
|
-
queueMicrotask(() => {
|
|
64
|
-
if (o !== L) return;
|
|
65
|
-
const h = t;
|
|
66
|
-
for (const T of v)
|
|
67
|
-
V(T, l, c);
|
|
68
|
-
l = h, c.clear();
|
|
69
|
-
});
|
|
70
|
-
}, y = {
|
|
71
|
-
getState: O,
|
|
72
|
-
setState: p,
|
|
73
|
-
__unstableInternals: {
|
|
74
|
-
setup: g,
|
|
75
|
-
init: x,
|
|
76
|
-
subscribe: R,
|
|
77
|
-
sync: P,
|
|
78
|
-
batch: B,
|
|
79
|
-
pick: S,
|
|
80
|
-
omit: f
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
return y;
|
|
84
|
-
}
|
|
85
|
-
function Le(e, ...n) {
|
|
86
|
-
if (e)
|
|
87
|
-
return D(e, "setup")(...n);
|
|
88
|
-
}
|
|
89
|
-
function X(e, ...n) {
|
|
90
|
-
if (e)
|
|
91
|
-
return D(e, "init")(...n);
|
|
92
|
-
}
|
|
93
|
-
function Z(e, ...n) {
|
|
94
|
-
if (e)
|
|
95
|
-
return D(e, "subscribe")(...n);
|
|
96
|
-
}
|
|
97
|
-
function k(e, ...n) {
|
|
98
|
-
if (e)
|
|
99
|
-
return D(e, "sync")(...n);
|
|
100
|
-
}
|
|
101
|
-
function ve(e, ...n) {
|
|
102
|
-
if (e)
|
|
103
|
-
return D(e, "batch")(...n);
|
|
104
|
-
}
|
|
105
|
-
function xe(e, ...n) {
|
|
106
|
-
if (e)
|
|
107
|
-
return D(e, "omit")(...n);
|
|
108
|
-
}
|
|
109
|
-
function Re(e, ...n) {
|
|
110
|
-
if (e)
|
|
111
|
-
return D(e, "pick")(...n);
|
|
112
|
-
}
|
|
113
|
-
function Ve(...e) {
|
|
114
|
-
const n = e.reduce((l, o) => {
|
|
115
|
-
var u;
|
|
116
|
-
const s = (u = o == null ? void 0 : o.getState) == null ? void 0 : u.call(o);
|
|
117
|
-
return s ? Object.assign(l, s) : l;
|
|
118
|
-
}, {}), t = q(n, ...e);
|
|
119
|
-
return Object.assign({}, ...e, t);
|
|
120
|
-
}
|
|
121
|
-
function De(e, n) {
|
|
122
|
-
if (process.env.NODE_ENV === "production" || !n) return;
|
|
123
|
-
const t = Object.entries(e).filter(([u, s]) => u.startsWith("default") && s !== void 0).map(([u]) => {
|
|
124
|
-
var s;
|
|
125
|
-
const c = u.replace("default", "");
|
|
126
|
-
return `${((s = c[0]) == null ? void 0 : s.toLowerCase()) || ""}${c.slice(1)}`;
|
|
127
|
-
});
|
|
128
|
-
if (!t.length) return;
|
|
129
|
-
const l = n.getState();
|
|
130
|
-
if (t.filter(
|
|
131
|
-
(u) => C(l, u)
|
|
132
|
-
).length)
|
|
133
|
-
throw new Error(
|
|
134
|
-
`Passing a store prop in conjunction with a default state is not supported.
|
|
135
|
-
|
|
136
|
-
const store = useSelectStore();
|
|
137
|
-
<SelectProvider store={store} defaultValue="Apple" />
|
|
138
|
-
^ ^
|
|
139
|
-
|
|
140
|
-
Instead, pass the default state to the topmost store:
|
|
141
|
-
|
|
142
|
-
const store = useSelectStore({ defaultValue: "Apple" });
|
|
143
|
-
<SelectProvider store={store} />
|
|
144
|
-
|
|
145
|
-
See https://github.com/ariakit/ariakit/pull/2745 for more details.
|
|
146
|
-
|
|
147
|
-
If there's a particular need for this, please submit a feature request at https://github.com/ariakit/ariakit
|
|
148
|
-
`
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
var W = { exports: {} }, M = {}, Y;
|
|
152
|
-
function he() {
|
|
153
|
-
if (Y) return M;
|
|
154
|
-
Y = 1;
|
|
155
|
-
var e = Q;
|
|
156
|
-
function n(i, d) {
|
|
157
|
-
return i === d && (i !== 0 || 1 / i === 1 / d) || i !== i && d !== d;
|
|
158
|
-
}
|
|
159
|
-
var t = typeof Object.is == "function" ? Object.is : n, l = e.useState, o = e.useEffect, u = e.useLayoutEffect, s = e.useDebugValue;
|
|
160
|
-
function c(i, d) {
|
|
161
|
-
var g = d(), x = l({ inst: { value: g, getSnapshot: d } }), E = x[0].inst, R = x[1];
|
|
162
|
-
return u(function() {
|
|
163
|
-
E.value = g, E.getSnapshot = d, _(E) && R({ inst: E });
|
|
164
|
-
}, [i, g, d]), o(function() {
|
|
165
|
-
return _(E) && R({ inst: E }), i(function() {
|
|
166
|
-
_(E) && R({ inst: E });
|
|
167
|
-
});
|
|
168
|
-
}, [i]), s(g), g;
|
|
169
|
-
}
|
|
170
|
-
function _(i) {
|
|
171
|
-
var d = i.getSnapshot;
|
|
172
|
-
i = i.value;
|
|
173
|
-
try {
|
|
174
|
-
var g = d();
|
|
175
|
-
return !t(i, g);
|
|
176
|
-
} catch {
|
|
177
|
-
return !0;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
function m(i, d) {
|
|
181
|
-
return d();
|
|
182
|
-
}
|
|
183
|
-
var v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : c;
|
|
184
|
-
return M.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v, M;
|
|
185
|
-
}
|
|
186
|
-
var N = {}, J;
|
|
187
|
-
function me() {
|
|
188
|
-
return J || (J = 1, process.env.NODE_ENV !== "production" && function() {
|
|
189
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
190
|
-
var e = Q, n = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
191
|
-
function t(S) {
|
|
192
|
-
{
|
|
193
|
-
for (var f = arguments.length, O = new Array(f > 1 ? f - 1 : 0), p = 1; p < f; p++)
|
|
194
|
-
O[p - 1] = arguments[p];
|
|
195
|
-
l("error", S, O);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
function l(S, f, O) {
|
|
199
|
-
{
|
|
200
|
-
var p = n.ReactDebugCurrentFrame, y = p.getStackAddendum();
|
|
201
|
-
y !== "" && (f += "%s", O = O.concat([y]));
|
|
202
|
-
var a = O.map(function(r) {
|
|
203
|
-
return String(r);
|
|
204
|
-
});
|
|
205
|
-
a.unshift("Warning: " + f), Function.prototype.apply.call(console[S], console, a);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
function o(S, f) {
|
|
209
|
-
return S === f && (S !== 0 || 1 / S === 1 / f) || S !== S && f !== f;
|
|
210
|
-
}
|
|
211
|
-
var u = typeof Object.is == "function" ? Object.is : o, s = e.useState, c = e.useEffect, _ = e.useLayoutEffect, m = e.useDebugValue, v = !1, i = !1;
|
|
212
|
-
function d(S, f, O) {
|
|
213
|
-
v || e.startTransition !== void 0 && (v = !0, t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
214
|
-
var p = f();
|
|
215
|
-
if (!i) {
|
|
216
|
-
var y = f();
|
|
217
|
-
u(p, y) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), i = !0);
|
|
218
|
-
}
|
|
219
|
-
var a = s({
|
|
220
|
-
inst: {
|
|
221
|
-
value: p,
|
|
222
|
-
getSnapshot: f
|
|
223
|
-
}
|
|
224
|
-
}), r = a[0].inst, b = a[1];
|
|
225
|
-
return _(function() {
|
|
226
|
-
r.value = p, r.getSnapshot = f, g(r) && b({
|
|
227
|
-
inst: r
|
|
228
|
-
});
|
|
229
|
-
}, [S, p, f]), c(function() {
|
|
230
|
-
g(r) && b({
|
|
231
|
-
inst: r
|
|
232
|
-
});
|
|
233
|
-
var w = function() {
|
|
234
|
-
g(r) && b({
|
|
235
|
-
inst: r
|
|
236
|
-
});
|
|
237
|
-
};
|
|
238
|
-
return S(w);
|
|
239
|
-
}, [S]), m(p), p;
|
|
240
|
-
}
|
|
241
|
-
function g(S) {
|
|
242
|
-
var f = S.getSnapshot, O = S.value;
|
|
243
|
-
try {
|
|
244
|
-
var p = f();
|
|
245
|
-
return !u(O, p);
|
|
246
|
-
} catch {
|
|
247
|
-
return !0;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
function x(S, f, O) {
|
|
251
|
-
return f();
|
|
252
|
-
}
|
|
253
|
-
var E = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !E, P = R ? x : d, B = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : P;
|
|
254
|
-
N.useSyncExternalStore = B, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
255
|
-
}()), N;
|
|
256
|
-
}
|
|
257
|
-
process.env.NODE_ENV === "production" ? W.exports = he() : W.exports = me();
|
|
258
|
-
var Ee = W.exports;
|
|
259
|
-
const ge = /* @__PURE__ */ _e(Ee);
|
|
260
|
-
var { useSyncExternalStore: ee } = ge, te = () => () => {
|
|
261
|
-
};
|
|
262
|
-
function Oe(e, n = le) {
|
|
263
|
-
const t = I.useCallback(
|
|
264
|
-
(o) => e ? Z(e, null, o) : te(),
|
|
265
|
-
[e]
|
|
266
|
-
), l = () => {
|
|
267
|
-
const o = typeof n == "string" ? n : null, u = typeof n == "function" ? n : null, s = e == null ? void 0 : e.getState();
|
|
268
|
-
if (u) return u(s);
|
|
269
|
-
if (s && o && C(s, o))
|
|
270
|
-
return s[o];
|
|
271
|
-
};
|
|
272
|
-
return ee(t, l, l);
|
|
273
|
-
}
|
|
274
|
-
function Ae(e, n) {
|
|
275
|
-
const t = I.useRef(
|
|
276
|
-
{}
|
|
277
|
-
), l = I.useCallback(
|
|
278
|
-
(u) => e ? Z(e, null, u) : te(),
|
|
279
|
-
[e]
|
|
280
|
-
), o = () => {
|
|
281
|
-
const u = e == null ? void 0 : e.getState();
|
|
282
|
-
let s = !1;
|
|
283
|
-
const c = t.current;
|
|
284
|
-
for (const _ in n) {
|
|
285
|
-
const m = n[_];
|
|
286
|
-
if (typeof m == "function") {
|
|
287
|
-
const v = m(u);
|
|
288
|
-
v !== c[_] && (c[_] = v, s = !0);
|
|
289
|
-
}
|
|
290
|
-
if (typeof m == "string") {
|
|
291
|
-
if (!u || !C(u, m)) continue;
|
|
292
|
-
const v = u[m];
|
|
293
|
-
v !== c[_] && (c[_] = v, s = !0);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
return s && (t.current = U({}, c)), t.current;
|
|
297
|
-
};
|
|
298
|
-
return ee(l, o, o);
|
|
299
|
-
}
|
|
300
|
-
function Te(e, n, t, l) {
|
|
301
|
-
const o = C(n, t) ? n[t] : void 0, u = l ? n[l] : void 0, s = pe({ value: o, setValue: u });
|
|
302
|
-
G(() => k(e, [t], (c, _) => {
|
|
303
|
-
const { value: m, setValue: v } = s.current;
|
|
304
|
-
v && c[t] !== _[t] && c[t] !== m && v(c[t]);
|
|
305
|
-
}), [e, t]), G(() => {
|
|
306
|
-
if (o !== void 0)
|
|
307
|
-
return e.setState(t, o), ve(e, [t], () => {
|
|
308
|
-
o !== void 0 && e.setState(t, o);
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
function Ie(e, n) {
|
|
313
|
-
const [t, l] = I.useState(() => e(n));
|
|
314
|
-
G(() => X(t), [t]);
|
|
315
|
-
const o = I.useCallback(
|
|
316
|
-
(c) => Oe(t, c),
|
|
317
|
-
[t]
|
|
318
|
-
), u = I.useMemo(
|
|
319
|
-
() => de(U({}, t), { useState: o }),
|
|
320
|
-
[t, o]
|
|
321
|
-
), s = Se(() => {
|
|
322
|
-
l((c) => e(U(U({}, n), c.getState())));
|
|
323
|
-
});
|
|
324
|
-
return [u, s];
|
|
325
|
-
}
|
|
326
|
-
export {
|
|
327
|
-
Ie as a,
|
|
328
|
-
Te as b,
|
|
329
|
-
q as c,
|
|
330
|
-
k as d,
|
|
331
|
-
Z as e,
|
|
332
|
-
Ae as f,
|
|
333
|
-
ve as g,
|
|
334
|
-
X as i,
|
|
335
|
-
Ve as m,
|
|
336
|
-
xe as o,
|
|
337
|
-
Re as p,
|
|
338
|
-
Le as s,
|
|
339
|
-
De as t,
|
|
340
|
-
Oe as u
|
|
341
|
-
};
|