@easypost/easy-ui 1.0.0-alpha.64 → 1.0.0-alpha.66
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/Badge/index.js +14 -14
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +5 -5
- package/Banner/index.mjs +5 -5
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +14 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +13 -13
- package/CodeBlock/index.mjs +13 -13
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +57 -57
- package/DataGrid/index.mjs +58 -58
- package/DatePicker/index.js +3 -3
- package/DatePicker/index.mjs +5 -5
- package/DateRangePicker/index.js +3 -3
- package/DateRangePicker/index.mjs +5 -5
- package/Drawer/index.js +18 -18
- package/Drawer/index.mjs +22 -22
- package/DropdownButton/index.js +12 -12
- package/DropdownButton/index.mjs +12 -12
- package/EmptyStateCard/index.js +8 -8
- package/EmptyStateCard/index.mjs +8 -8
- package/FocusedProductLayout/index.js +23 -23
- package/FocusedProductLayout/index.mjs +23 -23
- package/ForgeLayout/index.js +41 -231
- package/ForgeLayout/index.mjs +40 -230
- package/FormLayout/index.js +5 -5
- package/FormLayout/index.mjs +5 -5
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +12 -12
- package/IconButton/index.mjs +12 -12
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/MenuOverlay.d.ts.map +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Menu/utilities.d.ts +3 -0
- package/Menu/utilities.d.ts.map +1 -1
- package/Modal/index.js +19 -19
- package/Modal/index.mjs +23 -23
- package/MultiSelect/MultiSelect.d.ts +123 -0
- package/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/MultiSelect/MultiSelect.stories.d.ts +11 -0
- package/MultiSelect/MultiSelect.stories.d.ts.map +1 -0
- package/MultiSelect/MultiSelect.test.d.ts +2 -0
- package/MultiSelect/MultiSelect.test.d.ts.map +1 -0
- package/MultiSelect/MultiSelectDropdown.d.ts +22 -0
- package/MultiSelect/MultiSelectDropdown.d.ts.map +1 -0
- package/MultiSelect/index.d.ts +2 -0
- package/MultiSelect/index.d.ts.map +1 -0
- package/MultiSelect/index.js +1989 -0
- package/MultiSelect/index.mjs +1974 -0
- package/MultiSelect/utilities.d.ts +3 -0
- package/MultiSelect/utilities.d.ts.map +1 -0
- package/NexusLayout/index.js +28 -28
- package/NexusLayout/index.mjs +28 -28
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +7 -7
- package/Pagination/index.mjs +7 -7
- package/PillGroup/index.js +3 -1681
- package/PillGroup/index.mjs +3 -1681
- package/ProductLayout/index.js +21 -21
- package/ProductLayout/index.mjs +25 -25
- package/Provider/index.js +1 -1
- package/Provider/index.mjs +1 -1
- package/RadioButtonGroup/index.js +3 -3
- package/RadioButtonGroup/index.mjs +3 -3
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/index.js +29 -29
- package/SearchNav/index.mjs +29 -29
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +5 -5
- package/Select/index.mjs +5 -5
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +1 -1
- package/TabPanels/index.mjs +2 -2
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/VerticalNav/index.js +24 -24
- package/VerticalNav/index.mjs +24 -24
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-CDRssWxC.mjs → Button-BqogJAQ3.mjs} +3 -3
- package/__chunks__/{Button-SuH-KkYi.js → Button-CVaEK94Q.js} +18 -18
- package/__chunks__/{Button-DfkicQp7.mjs → Button-CVbi-24J.mjs} +18 -18
- package/__chunks__/{Button-BvLvcmfd.js → Button-Y550ybuK.js} +1 -1
- package/__chunks__/{Calendar-CB3kTGpr.mjs → Calendar-C2JlXaSY.mjs} +1 -1
- package/__chunks__/{Calendar-D5V31Ypy.js → Calendar-CmF_v-Dn.js} +1 -1
- package/__chunks__/{CalendarBase-CIkCiMYk.js → CalendarBase-Cavy4k_H.js} +18 -18
- package/__chunks__/{CalendarBase-Cq-ReOPx.mjs → CalendarBase-aeU9JZC2.mjs} +18 -18
- package/__chunks__/{Card-BKC3iEwF.mjs → Card-B5c1vM8E.mjs} +12 -12
- package/__chunks__/{Card-BGmLybqD.js → Card-BHZOcCVB.js} +12 -12
- package/__chunks__/{Checkbox-B-c8_oGX.js → Checkbox-BmtLwm3J.js} +19 -19
- package/__chunks__/{Checkbox-AbvJCEnW.mjs → Checkbox-IhSMESiF.mjs} +20 -20
- package/__chunks__/{CodeSnippet-CzP6GP8p.mjs → CodeSnippet-DA3SuGi9.mjs} +2 -2
- package/__chunks__/{CodeSnippet-D9Gfaozc.js → CodeSnippet-HAojQDBb.js} +2 -2
- package/__chunks__/{DatePickerBase-DVe9Z17z.mjs → DatePickerBase-DYuliQ2j.mjs} +20 -64
- package/__chunks__/{DatePickerBase-BW867uS-.js → DatePickerBase-PqJZhPW5.js} +18 -62
- package/__chunks__/Dialog-CFyC5TFs.js +232 -0
- package/__chunks__/Dialog-DnCSZh3s.mjs +233 -0
- package/__chunks__/{HelpMenu-BikR3il4.js → HelpMenu-DttT1pkc.js} +6 -6
- package/__chunks__/{HelpMenu-ylsZtQ2y.mjs → HelpMenu-dPaIsmEG.mjs} +6 -6
- package/__chunks__/{HorizontalGrid-7W4Y5Vah.js → HorizontalGrid-BFqXCljf.js} +1 -1
- package/__chunks__/{HorizontalGrid-B399c2dw.mjs → HorizontalGrid-CyBrrh6k.mjs} +1 -1
- package/__chunks__/{HorizontalStack-Bz49rrqk.js → HorizontalStack-BG-lZii5.js} +1 -1
- package/__chunks__/{HorizontalStack-9tVfFqP2.mjs → HorizontalStack-p9m9muAJ.mjs} +1 -1
- package/__chunks__/{Icon-AWZqgFkO.js → Icon-BHbBKuGB.js} +2 -2
- package/__chunks__/{Icon-tvIiMl4h.mjs → Icon-ZRjQkfey.mjs} +2 -2
- package/__chunks__/{InputCaption-DMwqCmEY.js → InputCaption-BQw7pLl1.js} +2 -2
- package/__chunks__/{InputCaption-BPHL8W55.mjs → InputCaption-DE7SnGJr.mjs} +2 -2
- package/__chunks__/{InputField-LUuwaWK6.mjs → InputField-1toY1X94.mjs} +6 -89
- package/__chunks__/{InputField-BBG9VjEM.js → InputField-e2dBsTrQ.js} +6 -89
- package/__chunks__/{InputIcon-C6fRUjFn.mjs → InputIcon-CKwsgYvg.mjs} +31 -31
- package/__chunks__/{InputIcon-BOj4dVSh.js → InputIcon-DM19rdNu.js} +31 -31
- package/__chunks__/{KebabButton-DXxpDShY.js → KebabButton-3APOVOtc.js} +4 -4
- package/__chunks__/{KebabButton-DdERbhKc.mjs → KebabButton-CGvwEB3q.mjs} +4 -4
- package/__chunks__/{Menu-BtQxi784.js → Menu-90Db_wYM.js} +22 -62
- package/__chunks__/{Menu-CGSgffvA.mjs → Menu-D7JiGJt4.mjs} +22 -62
- package/__chunks__/{Notification-sLPjuMls.mjs → Notification-C4gEE6IM.mjs} +14 -14
- package/__chunks__/{Notification-CTV7jwBV.js → Notification-DZ0uDsoT.js} +14 -14
- package/__chunks__/{Overlay-DyfvFsGi.mjs → Overlay-BEmOdNIB.mjs} +3 -3
- package/__chunks__/PillGroup-BetDOSFz.js +2061 -0
- package/__chunks__/PillGroup-Bp5vfk6Z.mjs +2062 -0
- package/__chunks__/{RadioGroup-jGUuixrB.mjs → RadioGroup-DPJOnxCi.mjs} +16 -16
- package/__chunks__/{RadioGroup-CN_RSlFy.js → RadioGroup-Qn2c29rT.js} +15 -15
- package/__chunks__/{RangeCalendar-D5fz339R.mjs → RangeCalendar-BNySCRAa.mjs} +1 -1
- package/__chunks__/{RangeCalendar-odwkDlEn.js → RangeCalendar-lhIzCnWl.js} +1 -1
- package/__chunks__/{SelectOverlay-BegZKkp1.js → SelectOverlay-CoOED545.js} +28 -188
- package/__chunks__/{SelectOverlay-CoSQv1a0.mjs → SelectOverlay-D12QgA_I.mjs} +29 -189
- package/__chunks__/{SelectorErrorTooltip-DT7rcGh6.js → SelectorErrorTooltip-CNinvIcU.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-By-GwbSg.mjs → SelectorErrorTooltip-Cz7Uw_O_.mjs} +4 -4
- package/__chunks__/{Spinner-dtD1VQqy.mjs → Spinner-Co64ezt-.mjs} +5 -5
- package/__chunks__/{Spinner-nHnby3-R.js → Spinner-DTH0xdij.js} +5 -5
- package/__chunks__/{Stepper-vfWux5uh.js → Stepper-DqcfNOrn.js} +25 -25
- package/__chunks__/{Stepper-DCWfT6Sx.mjs → Stepper-OFWKfhi3.mjs} +25 -25
- package/__chunks__/{TabNav-BRBhGNv8.mjs → TabNav-B44TuB70.mjs} +1 -1
- package/__chunks__/{TabNav-BJUikM9a.js → TabNav-DzF57oTN.js} +1 -1
- package/__chunks__/{Tabs-Do2OPQch.mjs → Tabs-ClOwavjv.mjs} +17 -17
- package/__chunks__/{Tabs-DX6oanPk.js → Tabs-CsxDAl1X.js} +17 -17
- package/__chunks__/{Text-DM6H1mZu.js → Text-BwXTDw77.js} +34 -34
- package/__chunks__/{Text-DLBOW0Eu.mjs → Text-DYLBjpe-.mjs} +34 -34
- package/__chunks__/{TextField-BmHD0Ts_.mjs → TextField-DVWDMYaM.mjs} +1 -1
- package/__chunks__/{TextField-DN6oGeBc.js → TextField-YD_1oSnk.js} +1 -1
- package/__chunks__/{Toggle-CDwSjy-c.mjs → Toggle-DiK1wHdG.mjs} +11 -11
- package/__chunks__/{Toggle-CkJcayVz.js → Toggle-gPKUf7QS.js} +11 -11
- package/__chunks__/{Tooltip-CSsijgRV.mjs → Tooltip-BX_C7x_7.mjs} +10 -10
- package/__chunks__/{Tooltip-U0vMQeot.js → Tooltip-DPZMv6Ia.js} +8 -8
- package/__chunks__/{VerticalStack-1CrrssEd.mjs → VerticalStack-C466n8W1.mjs} +3 -3
- package/__chunks__/{VerticalStack-D25ZR-UD.js → VerticalStack-DIpmkisq.js} +3 -3
- package/__chunks__/{useDialog-c-C07qhw.mjs → useDialog-h-MPfyGr.mjs} +1 -1
- package/__chunks__/{useEdgeInterceptors-DM6DGJVL.mjs → useEdgeInterceptors-BORL2txk.mjs} +5 -5
- package/__chunks__/{useEdgeInterceptors-g_iE4uY5.js → useEdgeInterceptors-DU8I_hQ1.js} +5 -5
- package/__chunks__/useFilter-D-K0Oj-7.mjs +65 -0
- package/__chunks__/useFilter-DpnZ54nd.js +64 -0
- package/__chunks__/{useFormValidation-v2O6VL2V.mjs → useFormValidation-B3euLzzR.mjs} +4 -4
- package/__chunks__/useListBoxSection-BlFRlBZy.js +192 -0
- package/__chunks__/useListBoxSection-BsSdeGKp.mjs +193 -0
- package/__chunks__/{useTriggerWidth-CRz8zSDa.mjs → useMenuTrigger-D4pQ727R.mjs} +3 -130
- package/__chunks__/{useTriggerWidth-Dj7C0lza.js → useMenuTrigger-qbIPy-fg.js} +0 -127
- package/__chunks__/useMenuTriggerState-Cf_X36NC.mjs +67 -0
- package/__chunks__/useMenuTriggerState-Dai3rheB.js +66 -0
- package/__chunks__/{useModalOverlay-S0R2uVTX.mjs → useModalOverlay-CkOujl0G.mjs} +1 -1
- package/__chunks__/{useOverlayPosition-BjK7cu6U.mjs → useOverlayPosition-dua8TTSS.mjs} +1 -1
- package/__chunks__/{useOverlayTrigger-DDcXdZOM.mjs → useOverlayTrigger-BS8c6XEz.mjs} +1 -1
- package/__chunks__/{useSelectableItem-D61t76J1.mjs → useSelectableItem-B8l2VAQ8.mjs} +2 -2
- package/__chunks__/{useSelectableList-UkBCcTuC.js → useSelectableList-CzTJAukw.js} +15 -0
- package/__chunks__/{useSelectableList-BdG5I7cy.mjs → useSelectableList-DsUuWr0P.mjs} +18 -3
- package/__chunks__/useTextField-CErFc3WZ.js +106 -0
- package/__chunks__/useTextField-Dd-YTxI4.mjs +107 -0
- package/__chunks__/useTriggerWidth-B-IM2wNY.js +132 -0
- package/__chunks__/useTriggerWidth-CAYuGPNq.mjs +133 -0
- package/__chunks__/{utilities-CaBPUKEB.js → utilities-BDABIMDb.js} +4 -0
- package/__chunks__/{utilities-DASknbaa.mjs → utilities-DpKIaDkW.mjs} +5 -1
- package/__chunks__/{utils-D4ddhsBL.mjs → utils-Dt6xdGol.mjs} +10 -2
- package/__chunks__/{utils-DIF5XAA2.js → utils-eHk7b-OB.js} +8 -0
- package/package.json +2 -2
- package/style.css +1609 -1444
- package/utilities/storybook.d.ts +1 -0
- package/utilities/storybook.d.ts.map +1 -1
|
@@ -30,15 +30,15 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
import React__default, { useMemo, useState, useContext } from "react";
|
|
33
|
-
import { T as Text } from "./Text-
|
|
34
|
-
import { H as HorizontalStack } from "./HorizontalStack-
|
|
35
|
-
import { S as SelectorErrorTooltip } from "./SelectorErrorTooltip-
|
|
33
|
+
import { T as Text } from "./Text-DYLBjpe-.mjs";
|
|
34
|
+
import { H as HorizontalStack } from "./HorizontalStack-p9m9muAJ.mjs";
|
|
35
|
+
import { S as SelectorErrorTooltip } from "./SelectorErrorTooltip-Cz7Uw_O_.mjs";
|
|
36
36
|
import { classNames } from "../utilities/css.mjs";
|
|
37
37
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928, c as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-DSi85raC.mjs";
|
|
38
38
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
39
39
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DA1Lwdha.mjs";
|
|
40
40
|
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-CNor_Zjt.mjs";
|
|
41
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10,
|
|
41
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-B3euLzzR.mjs";
|
|
42
42
|
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-Db4pSZfY.mjs";
|
|
43
43
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-YOWeCHgO.mjs";
|
|
44
44
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-BOYR4wqI.mjs";
|
|
@@ -242,16 +242,16 @@ const useRadioGroupContext = () => {
|
|
|
242
242
|
}
|
|
243
243
|
return radioGroupContext;
|
|
244
244
|
};
|
|
245
|
-
const RadioGroupItem$1 = "
|
|
246
|
-
const label = "
|
|
247
|
-
const radioOuter = "
|
|
248
|
-
const radioInner = "
|
|
249
|
-
const focusVisible = "
|
|
250
|
-
const selected = "
|
|
251
|
-
const invalid = "
|
|
252
|
-
const disabled = "
|
|
253
|
-
const hovered = "
|
|
254
|
-
const readOnly = "
|
|
245
|
+
const RadioGroupItem$1 = "_RadioGroupItem_19lhr_5";
|
|
246
|
+
const label = "_label_19lhr_11";
|
|
247
|
+
const radioOuter = "_radioOuter_19lhr_29";
|
|
248
|
+
const radioInner = "_radioInner_19lhr_30";
|
|
249
|
+
const focusVisible = "_focusVisible_19lhr_44";
|
|
250
|
+
const selected = "_selected_19lhr_63";
|
|
251
|
+
const invalid = "_invalid_19lhr_67";
|
|
252
|
+
const disabled = "_disabled_19lhr_71";
|
|
253
|
+
const hovered = "_hovered_19lhr_83";
|
|
254
|
+
const readOnly = "_readOnly_19lhr_83";
|
|
255
255
|
const styles$1 = {
|
|
256
256
|
RadioGroupItem: RadioGroupItem$1,
|
|
257
257
|
label,
|
|
@@ -300,8 +300,8 @@ function RadioGroupItem(props) {
|
|
|
300
300
|
content: errorText
|
|
301
301
|
})));
|
|
302
302
|
}
|
|
303
|
-
const RadioGroup$1 = "
|
|
304
|
-
const list = "
|
|
303
|
+
const RadioGroup$1 = "_RadioGroup_1wvit_5";
|
|
304
|
+
const list = "_list_1wvit_14";
|
|
305
305
|
const styles = {
|
|
306
306
|
RadioGroup: RadioGroup$1,
|
|
307
307
|
list
|
|
@@ -31,9 +31,9 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
const React = require("react");
|
|
34
|
-
const Text = require("./Text-
|
|
35
|
-
const HorizontalStack = require("./HorizontalStack-
|
|
36
|
-
const SelectorErrorTooltip = require("./SelectorErrorTooltip-
|
|
34
|
+
const Text = require("./Text-BwXTDw77.js");
|
|
35
|
+
const HorizontalStack = require("./HorizontalStack-BG-lZii5.js");
|
|
36
|
+
const SelectorErrorTooltip = require("./SelectorErrorTooltip-CNinvIcU.js");
|
|
37
37
|
const utilities_css = require("../utilities/css.js");
|
|
38
38
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
39
39
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
@@ -243,16 +243,16 @@ const useRadioGroupContext = () => {
|
|
|
243
243
|
}
|
|
244
244
|
return radioGroupContext;
|
|
245
245
|
};
|
|
246
|
-
const RadioGroupItem$1 = "
|
|
247
|
-
const label = "
|
|
248
|
-
const radioOuter = "
|
|
249
|
-
const radioInner = "
|
|
250
|
-
const focusVisible = "
|
|
251
|
-
const selected = "
|
|
252
|
-
const invalid = "
|
|
253
|
-
const disabled = "
|
|
254
|
-
const hovered = "
|
|
255
|
-
const readOnly = "
|
|
246
|
+
const RadioGroupItem$1 = "_RadioGroupItem_19lhr_5";
|
|
247
|
+
const label = "_label_19lhr_11";
|
|
248
|
+
const radioOuter = "_radioOuter_19lhr_29";
|
|
249
|
+
const radioInner = "_radioInner_19lhr_30";
|
|
250
|
+
const focusVisible = "_focusVisible_19lhr_44";
|
|
251
|
+
const selected = "_selected_19lhr_63";
|
|
252
|
+
const invalid = "_invalid_19lhr_67";
|
|
253
|
+
const disabled = "_disabled_19lhr_71";
|
|
254
|
+
const hovered = "_hovered_19lhr_83";
|
|
255
|
+
const readOnly = "_readOnly_19lhr_83";
|
|
256
256
|
const styles$1 = {
|
|
257
257
|
RadioGroupItem: RadioGroupItem$1,
|
|
258
258
|
label,
|
|
@@ -301,8 +301,8 @@ function RadioGroupItem(props) {
|
|
|
301
301
|
content: errorText
|
|
302
302
|
})));
|
|
303
303
|
}
|
|
304
|
-
const RadioGroup$1 = "
|
|
305
|
-
const list = "
|
|
304
|
+
const RadioGroup$1 = "_RadioGroup_1wvit_5";
|
|
305
|
+
const list = "_list_1wvit_14";
|
|
306
306
|
const styles = {
|
|
307
307
|
RadioGroup: RadioGroup$1,
|
|
308
308
|
list
|
|
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
import React__default, { useState, useRef, useMemo } from "react";
|
|
33
|
-
import { c as $f62d864046160412$export$f4a51ff076cc9a09, d as $11d87f3f76e88657$export$93522d1a439f3617, e as $14e0f24ef4ac5c92$export$a75f2bff57811055, f as $14e0f24ef4ac5c92$export$5c333a116e949cdd, a as $131cf43a05231e1e$export$6d095e787d2b5e1f, g as $14e0f24ef4ac5c92$export$91b62ebf2ba703ee, h as $f62d864046160412$export$eac50920cf2fd59a, i as $f62d864046160412$export$4f5203c0d889109e, j as $f62d864046160412$export$a1d3911297b952d7, k as $11d87f3f76e88657$export$b4a036af3fc0b032, l as $3b62074eb05584b2$export$80ee6245ec4f29ec, $ as $c4acc1de3ab169cf$export$d652b3ea2d672d5b, b as $64244302c3013299$export$dd0bbc9b26defe37, C as CalendarBase } from "./CalendarBase-
|
|
33
|
+
import { c as $f62d864046160412$export$f4a51ff076cc9a09, d as $11d87f3f76e88657$export$93522d1a439f3617, e as $14e0f24ef4ac5c92$export$a75f2bff57811055, f as $14e0f24ef4ac5c92$export$5c333a116e949cdd, a as $131cf43a05231e1e$export$6d095e787d2b5e1f, g as $14e0f24ef4ac5c92$export$91b62ebf2ba703ee, h as $f62d864046160412$export$eac50920cf2fd59a, i as $f62d864046160412$export$4f5203c0d889109e, j as $f62d864046160412$export$a1d3911297b952d7, k as $11d87f3f76e88657$export$b4a036af3fc0b032, l as $3b62074eb05584b2$export$80ee6245ec4f29ec, $ as $c4acc1de3ab169cf$export$d652b3ea2d672d5b, b as $64244302c3013299$export$dd0bbc9b26defe37, C as CalendarBase } from "./CalendarBase-aeU9JZC2.mjs";
|
|
34
34
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BZCcafjG.mjs";
|
|
35
35
|
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-CFWhSD5C.mjs";
|
|
36
36
|
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-B0fsKtsf.mjs";
|
|
@@ -31,7 +31,7 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
const React = require("react");
|
|
34
|
-
const CalendarBase = require("./CalendarBase-
|
|
34
|
+
const CalendarBase = require("./CalendarBase-Cavy4k_H.js");
|
|
35
35
|
const context = require("./context-D3NeXov7.js");
|
|
36
36
|
const useControlledState = require("./useControlledState-mnKBd6Uc.js");
|
|
37
37
|
const useEvent = require("./useEvent-DY7dR7Mi.js");
|
|
@@ -24,23 +24,20 @@ const useSingleSelectListState = require("./useSingleSelectListState-5RB1w9vv.js
|
|
|
24
24
|
const React = require("react");
|
|
25
25
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
26
26
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
27
|
-
const useSelectableList = require("./useSelectableList-
|
|
27
|
+
const useSelectableList = require("./useSelectableList-CzTJAukw.js");
|
|
28
28
|
const useSelectableItem = require("./useSelectableItem-DpEX9QBc.js");
|
|
29
29
|
const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
|
|
30
30
|
const useCollator = require("./useCollator-DGrSWVh4.js");
|
|
31
31
|
const useField = require("./useField-BJW_bXVD.js");
|
|
32
|
-
const
|
|
32
|
+
const useMenuTrigger = require("./useMenuTrigger-qbIPy-fg.js");
|
|
33
33
|
const useFormReset = require("./useFormReset-Bgj93eR3.js");
|
|
34
34
|
const VisuallyHidden = require("./VisuallyHidden-CVfjb1YY.js");
|
|
35
|
-
const Text = require("./Text-
|
|
35
|
+
const Text = require("./Text-BwXTDw77.js");
|
|
36
36
|
const Item = require("./Item-CfWjPrxx.js");
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const useHover = require("./useHover-BIKwjrCT.js");
|
|
40
|
-
const utilities = require("./utilities-CaBPUKEB.js");
|
|
37
|
+
const useListBoxSection = require("./useListBoxSection-BlFRlBZy.js");
|
|
38
|
+
const utilities = require("./utilities-BDABIMDb.js");
|
|
41
39
|
const utilities_useScrollbar = require("../utilities/useScrollbar.js");
|
|
42
|
-
const
|
|
43
|
-
const useLabel = require("./useLabel-t-N6anB8.js");
|
|
40
|
+
const useTriggerWidth = require("./useTriggerWidth-B-IM2wNY.js");
|
|
44
41
|
function $2bc3a590c5373a4e$export$5159ec8b34d4ec12(props) {
|
|
45
42
|
let triggerState = Overlay.$fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
46
43
|
let [focusStrategy, setFocusStrategy] = React.useState(null);
|
|
@@ -73,163 +70,6 @@ function $2bc3a590c5373a4e$export$5159ec8b34d4ec12(props) {
|
|
|
73
70
|
setFocused
|
|
74
71
|
});
|
|
75
72
|
}
|
|
76
|
-
const $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
|
|
77
|
-
function $b1f0cad8af73213b$var$normalizeKey(key) {
|
|
78
|
-
if (typeof key === "string") return key.replace(/\s*/g, "");
|
|
79
|
-
return "" + key;
|
|
80
|
-
}
|
|
81
|
-
function $b1f0cad8af73213b$export$9145995848b05025(state, itemKey) {
|
|
82
|
-
let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
|
|
83
|
-
if (!data) throw new Error("Unknown list");
|
|
84
|
-
return `${data.id}-option-${$b1f0cad8af73213b$var$normalizeKey(itemKey)}`;
|
|
85
|
-
}
|
|
86
|
-
function $c132121280ec012d$export$50eacbbf140a3141(props, state, ref) {
|
|
87
|
-
let domProps = filterDOMProps.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
88
|
-
labelable: true
|
|
89
|
-
});
|
|
90
|
-
let selectionBehavior = props.selectionBehavior || "toggle";
|
|
91
|
-
let linkBehavior = props.linkBehavior || (selectionBehavior === "replace" ? "action" : "override");
|
|
92
|
-
if (selectionBehavior === "toggle" && linkBehavior === "action")
|
|
93
|
-
linkBehavior = "override";
|
|
94
|
-
let { listProps } = useSelectableList.$982254629710d113$export$b95089534ab7c1fd(__spreadProps(__spreadValues({}, props), {
|
|
95
|
-
ref,
|
|
96
|
-
selectionManager: state.selectionManager,
|
|
97
|
-
collection: state.collection,
|
|
98
|
-
disabledKeys: state.disabledKeys,
|
|
99
|
-
linkBehavior
|
|
100
|
-
}));
|
|
101
|
-
let { focusWithinProps } = useFocusWithin.$9ab94262bd0047c7$export$420e68273165f4ec({
|
|
102
|
-
onFocusWithin: props.onFocus,
|
|
103
|
-
onBlurWithin: props.onBlur,
|
|
104
|
-
onFocusWithinChange: props.onFocusChange
|
|
105
|
-
});
|
|
106
|
-
let id = mergeProps.$bdb11010cef70236$export$f680877a34711e37(props.id);
|
|
107
|
-
$b1f0cad8af73213b$export$3585ede4d035bf14.set(state, {
|
|
108
|
-
id,
|
|
109
|
-
shouldUseVirtualFocus: props.shouldUseVirtualFocus,
|
|
110
|
-
shouldSelectOnPressUp: props.shouldSelectOnPressUp,
|
|
111
|
-
shouldFocusOnHover: props.shouldFocusOnHover,
|
|
112
|
-
isVirtualized: props.isVirtualized,
|
|
113
|
-
onAction: props.onAction,
|
|
114
|
-
linkBehavior
|
|
115
|
-
});
|
|
116
|
-
let { labelProps, fieldProps } = useLabel.$d191a55c9702f145$export$8467354a121f1b9f(__spreadProps(__spreadValues({}, props), {
|
|
117
|
-
id,
|
|
118
|
-
// listbox is not an HTML input element so it
|
|
119
|
-
// shouldn't be labeled by a <label> element.
|
|
120
|
-
labelElementType: "span"
|
|
121
|
-
}));
|
|
122
|
-
return {
|
|
123
|
-
labelProps,
|
|
124
|
-
listBoxProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, focusWithinProps, state.selectionManager.selectionMode === "multiple" ? {
|
|
125
|
-
"aria-multiselectable": "true"
|
|
126
|
-
} : {}, __spreadValues({
|
|
127
|
-
role: "listbox"
|
|
128
|
-
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(fieldProps, listProps)))
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
|
|
132
|
-
var _item_props, _item_props1;
|
|
133
|
-
let { key } = props;
|
|
134
|
-
let data = $b1f0cad8af73213b$export$3585ede4d035bf14.get(state);
|
|
135
|
-
var _props_isDisabled;
|
|
136
|
-
let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : state.selectionManager.isDisabled(key);
|
|
137
|
-
var _props_isSelected;
|
|
138
|
-
let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : state.selectionManager.isSelected(key);
|
|
139
|
-
var _props_shouldSelectOnPressUp;
|
|
140
|
-
let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data === null || data === void 0 ? void 0 : data.shouldSelectOnPressUp;
|
|
141
|
-
var _props_shouldFocusOnHover;
|
|
142
|
-
let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data === null || data === void 0 ? void 0 : data.shouldFocusOnHover;
|
|
143
|
-
var _props_shouldUseVirtualFocus;
|
|
144
|
-
let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data === null || data === void 0 ? void 0 : data.shouldUseVirtualFocus;
|
|
145
|
-
var _props_isVirtualized;
|
|
146
|
-
let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data === null || data === void 0 ? void 0 : data.isVirtualized;
|
|
147
|
-
let labelId = mergeProps.$bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
148
|
-
let descriptionId = mergeProps.$bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
149
|
-
let optionProps = {
|
|
150
|
-
role: "option",
|
|
151
|
-
"aria-disabled": isDisabled || void 0,
|
|
152
|
-
"aria-selected": state.selectionManager.selectionMode !== "none" ? isSelected : void 0
|
|
153
|
-
};
|
|
154
|
-
if (!(isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10() && isVirtualEvent.$c87311424ea30a05$export$78551043582a6a98())) {
|
|
155
|
-
optionProps["aria-label"] = props["aria-label"];
|
|
156
|
-
optionProps["aria-labelledby"] = labelId;
|
|
157
|
-
optionProps["aria-describedby"] = descriptionId;
|
|
158
|
-
}
|
|
159
|
-
let item = state.collection.getItem(key);
|
|
160
|
-
if (isVirtualized) {
|
|
161
|
-
let index = Number(item === null || item === void 0 ? void 0 : item.index);
|
|
162
|
-
optionProps["aria-posinset"] = Number.isNaN(index) ? void 0 : index + 1;
|
|
163
|
-
optionProps["aria-setsize"] = useTriggerWidth.$453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
|
|
164
|
-
}
|
|
165
|
-
let onAction = (data === null || data === void 0 ? void 0 : data.onAction) ? () => {
|
|
166
|
-
var _data_onAction;
|
|
167
|
-
return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);
|
|
168
|
-
} : void 0;
|
|
169
|
-
let { itemProps, isPressed, isFocused, hasAction, allowsSelection } = useSelectableItem.$880e95eb8b93ba9a$export$ecf600387e221c37({
|
|
170
|
-
selectionManager: state.selectionManager,
|
|
171
|
-
key,
|
|
172
|
-
ref,
|
|
173
|
-
shouldSelectOnPressUp,
|
|
174
|
-
allowsDifferentPressOrigin: shouldSelectOnPressUp && shouldFocusOnHover,
|
|
175
|
-
isVirtualized,
|
|
176
|
-
shouldUseVirtualFocus,
|
|
177
|
-
isDisabled,
|
|
178
|
-
onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? mergeProps.$ff5963eb1fccf552$export$e08e3b67e392101e(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : void 0,
|
|
179
|
-
linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior
|
|
180
|
-
});
|
|
181
|
-
let { hoverProps } = useHover.$6179b936705e76d3$export$ae780daf29e6d456({
|
|
182
|
-
isDisabled: isDisabled || !shouldFocusOnHover,
|
|
183
|
-
onHoverStart() {
|
|
184
|
-
if (!useFocusVisible.$507fabe10e71c6fb$export$b9b3dfddab17db27()) {
|
|
185
|
-
state.selectionManager.setFocused(true);
|
|
186
|
-
state.selectionManager.setFocusedKey(key);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
let domProps = filterDOMProps.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(item === null || item === void 0 ? void 0 : item.props);
|
|
191
|
-
delete domProps.id;
|
|
192
|
-
let linkProps = usePress.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item === null || item === void 0 ? void 0 : item.props);
|
|
193
|
-
return {
|
|
194
|
-
optionProps: __spreadProps(__spreadValues(__spreadValues({}, optionProps), mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, itemProps, hoverProps, linkProps)), {
|
|
195
|
-
id: $b1f0cad8af73213b$export$9145995848b05025(state, key)
|
|
196
|
-
}),
|
|
197
|
-
labelProps: {
|
|
198
|
-
id: labelId
|
|
199
|
-
},
|
|
200
|
-
descriptionProps: {
|
|
201
|
-
id: descriptionId
|
|
202
|
-
},
|
|
203
|
-
isFocused,
|
|
204
|
-
isFocusVisible: isFocused && useFocusVisible.$507fabe10e71c6fb$export$b9b3dfddab17db27(),
|
|
205
|
-
isSelected,
|
|
206
|
-
isDisabled,
|
|
207
|
-
isPressed,
|
|
208
|
-
allowsSelection,
|
|
209
|
-
hasAction
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
|
|
213
|
-
let { heading, "aria-label": ariaLabel } = props;
|
|
214
|
-
let headingId = mergeProps.$bdb11010cef70236$export$f680877a34711e37();
|
|
215
|
-
return {
|
|
216
|
-
itemProps: {
|
|
217
|
-
role: "presentation"
|
|
218
|
-
},
|
|
219
|
-
headingProps: heading ? {
|
|
220
|
-
// Techincally, listbox cannot contain headings according to ARIA.
|
|
221
|
-
// We hide the heading from assistive technology, using role="presentation",
|
|
222
|
-
// and only use it as a visual label for the nested group.
|
|
223
|
-
id: headingId,
|
|
224
|
-
role: "presentation"
|
|
225
|
-
} : {},
|
|
226
|
-
groupProps: {
|
|
227
|
-
role: "group",
|
|
228
|
-
"aria-label": ariaLabel,
|
|
229
|
-
"aria-labelledby": heading ? headingId : void 0
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
73
|
const $58aed456727eb0f3$export$703601b7e90536f8 = /* @__PURE__ */ new WeakMap();
|
|
234
74
|
function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
|
|
235
75
|
let { keyboardDelegate, isDisabled, isRequired, name, validationBehavior = "aria" } = props;
|
|
@@ -243,7 +83,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
|
|
|
243
83
|
state.disabledKeys,
|
|
244
84
|
collator
|
|
245
85
|
]);
|
|
246
|
-
let { menuTriggerProps, menuProps } =
|
|
86
|
+
let { menuTriggerProps, menuProps } = useMenuTrigger.$168583247155ddda$export$dc9c12ed27dd1b49({
|
|
247
87
|
isDisabled,
|
|
248
88
|
type: "listbox"
|
|
249
89
|
}, state, ref);
|
|
@@ -425,24 +265,24 @@ function useInternalSelectContext() {
|
|
|
425
265
|
}
|
|
426
266
|
return selectContext;
|
|
427
267
|
}
|
|
428
|
-
const underlay = "
|
|
429
|
-
const listboxRoot = "
|
|
430
|
-
const listbox = "
|
|
431
|
-
const listboxList = "
|
|
432
|
-
const sectionList = "
|
|
433
|
-
const optionContent = "
|
|
434
|
-
const separator = "
|
|
435
|
-
const option = "
|
|
436
|
-
const fieldRoot = "
|
|
437
|
-
const selectField = "
|
|
438
|
-
const selectSizeSm = "
|
|
439
|
-
const selectSizeLg = "
|
|
440
|
-
const selectFieldError = "
|
|
441
|
-
const selectFieldIconStart = "
|
|
442
|
-
const selectFieldIconEnd = "
|
|
443
|
-
const selectFieldIconContainer = "
|
|
444
|
-
const selectFieldText = "
|
|
445
|
-
const listboxOpen = "
|
|
268
|
+
const underlay = "_underlay_irnxr_5";
|
|
269
|
+
const listboxRoot = "_listboxRoot_irnxr_10";
|
|
270
|
+
const listbox = "_listbox_irnxr_10";
|
|
271
|
+
const listboxList = "_listboxList_irnxr_79";
|
|
272
|
+
const sectionList = "_sectionList_irnxr_80";
|
|
273
|
+
const optionContent = "_optionContent_irnxr_86";
|
|
274
|
+
const separator = "_separator_irnxr_87";
|
|
275
|
+
const option = "_option_irnxr_86";
|
|
276
|
+
const fieldRoot = "_fieldRoot_irnxr_130";
|
|
277
|
+
const selectField = "_selectField_irnxr_151";
|
|
278
|
+
const selectSizeSm = "_selectSizeSm_irnxr_188";
|
|
279
|
+
const selectSizeLg = "_selectSizeLg_irnxr_200";
|
|
280
|
+
const selectFieldError = "_selectFieldError_irnxr_206";
|
|
281
|
+
const selectFieldIconStart = "_selectFieldIconStart_irnxr_214";
|
|
282
|
+
const selectFieldIconEnd = "_selectFieldIconEnd_irnxr_218";
|
|
283
|
+
const selectFieldIconContainer = "_selectFieldIconContainer_irnxr_222";
|
|
284
|
+
const selectFieldText = "_selectFieldText_irnxr_228";
|
|
285
|
+
const listboxOpen = "_listboxOpen_irnxr_232";
|
|
446
286
|
const styles = {
|
|
447
287
|
underlay,
|
|
448
288
|
listboxRoot,
|
|
@@ -469,7 +309,7 @@ function SelectOption(_props) {
|
|
|
469
309
|
Object.assign(SelectOption, Item.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2);
|
|
470
310
|
function SelectOptionContent({ item, state }) {
|
|
471
311
|
const ref = React.useRef(null);
|
|
472
|
-
const { optionProps, isSelected, isFocused, isDisabled } =
|
|
312
|
+
const { optionProps, isSelected, isFocused, isDisabled } = useListBoxSection.$293f70390ea03370$export$497855f14858aa34({
|
|
473
313
|
key: item.key
|
|
474
314
|
}, state, ref);
|
|
475
315
|
return React.createElement("li", __spreadProps(__spreadValues({}, optionProps), {
|
|
@@ -490,7 +330,7 @@ function SelectSection(_props) {
|
|
|
490
330
|
}
|
|
491
331
|
Object.assign(SelectSection, useTriggerWidth.$9fc4852771d079eb$export$6e2c8f0811a474ce);
|
|
492
332
|
function SelectSectionContent({ section, state }) {
|
|
493
|
-
const { itemProps, groupProps } =
|
|
333
|
+
const { itemProps, groupProps } = useListBoxSection.$af383d3bef1cfdc9$export$c3f9f39876e4bc7({
|
|
494
334
|
"aria-label": section["aria-label"]
|
|
495
335
|
});
|
|
496
336
|
const { separatorProps } = useTriggerWidth.$f4b273590fab9f93$export$52210f68a14655d0({
|
|
@@ -528,7 +368,7 @@ function SelectOverlayContent() {
|
|
|
528
368
|
scrollRef: listBoxRef,
|
|
529
369
|
triggerRef
|
|
530
370
|
}, selectState);
|
|
531
|
-
const { listBoxProps } =
|
|
371
|
+
const { listBoxProps } = useListBoxSection.$c132121280ec012d$export$50eacbbf140a3141(listBoxPropsFromSelect, selectState, listBoxRef);
|
|
532
372
|
utilities_useScrollbar.useScrollbar(listBoxRef, "ezui-os-theme-overlay");
|
|
533
373
|
const style = __spreadValues(__spreadValues({}, popoverProps.style), utilities.getUnmergedPopoverStyles(utilities.DEFAULT_WIDTH, triggerWidth));
|
|
534
374
|
return React.createElement(Overlay.$337b884510726a0d$export$c6fdb837b070b4ff, null, React.createElement("div", __spreadProps(__spreadValues({}, underlayProps), {
|