@midas-ds/components 10.4.1 → 11.1.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/{AccordionItem-oeN1Cc09.js → AccordionItem-BPOQqTkQ.js} +17 -16
- package/AccordionItem-CS-QKqrU.cjs +1 -0
- package/{BadgeContainer-DM8TdyMT.js → BadgeContainer-CKBIZWsc.js} +13 -13
- package/BadgeContainer-DWVHS5dn.cjs +1 -0
- package/{Breadcrumbs-D8ad6xvL.js → Breadcrumbs-BBzSV4SK.js} +4 -4
- package/{Breadcrumbs-DkJIkGG5.cjs → Breadcrumbs-CFUryOhf.cjs} +1 -1
- package/{Button-DtSrCAf6.js → Button-BjMaGya2.js} +1 -1
- package/{Button-CFYdzG0H.js → Button-CepQFEit.js} +4 -4
- package/CHANGELOG.md +34 -0
- package/{Card-BzJ_OEe6.js → Card-BRs1FKX5.js} +3 -3
- package/{CharacterCounter-cLhqPZlk.js → CharacterCounter-DpBDwvLw.js} +2 -2
- package/{Checkbox-LuUwTZ3W.js → Checkbox-EB_SCBEo.js} +3 -3
- package/CheckboxGroup-CT_eqERw.cjs +1 -0
- package/{CheckboxGroup-CcTfzurp.js → CheckboxGroup-oosHSGAt.js} +7 -8
- package/{Collection--62xKPm9.js → Collection-D2jVTmDW.js} +1 -1
- package/{ColorSchemeSwitch-y8qKczjQ.js → ColorSchemeSwitch-Cnyb9EKC.js} +1 -1
- package/ComboBox-CQ49PhNd.cjs +1 -0
- package/{ComboBox-CZyP8Dfh.js → ComboBox-D4MsSPBu.js} +64 -65
- package/{DateField-1w5J_iyF.cjs → DateField-BURrxhil.cjs} +1 -1
- package/{DateField-BTROlenJ.js → DateField-COs1-CkQ.js} +4 -4
- package/{DateInputDivider-Bi5N-C0c.js → DateInputDivider-B3oE1_tB.js} +39 -38
- package/DateInputDivider-ToFY-yjB.cjs +1 -0
- package/DateRangePicker-Bfibl08v.cjs +6 -0
- package/{DateRangePicker-DmZP9laM.js → DateRangePicker-CvEycxmX.js} +43 -44
- package/{Dialog-DnMwnqiC.cjs → Dialog-B3R3WtL5.cjs} +1 -1
- package/{Dialog-0ZBhhPyd.js → Dialog-BkUw6PlA.js} +6 -6
- package/{Dialog-CtVrVuMr.js → Dialog-DKHo0W9B.js} +443 -468
- package/Dialog-DtHk3eXI.cjs +1 -0
- package/{DragAndDrop-BoEd260f.cjs → DragAndDrop-CSg60YQE.cjs} +1 -1
- package/{DragAndDrop-DkSTL28C.js → DragAndDrop-DOXLfJaA.js} +1 -1
- package/{Dropdown-By91MEV2.cjs → Dropdown-CYakzdJg.cjs} +1 -1
- package/{Dropdown-BEAMfAxj.js → Dropdown-D6WCi_Ll.js} +2 -2
- package/FieldError-Bv3Q6ZP-.cjs +1 -0
- package/FieldError-CDCvUjK5.js +46 -0
- package/{FileUpload-DvQdIZ6k.js → FileUpload-BokzdXVc.js} +448 -562
- package/{FileUpload-vf0oJd0K.cjs → FileUpload-Bz9md5zc.cjs} +2 -2
- package/{FocusScope-D_hwN_TJ.js → FocusScope-BCsrRPqD.js} +1 -1
- package/{Group-CpkUzEAs.js → Group-B0vQfHDy.js} +1 -1
- package/{Heading-NxtGri2i.js → Heading-D2y_kiC0.js} +1 -1
- package/{InfoBanner-yj90XVEP.js → InfoBanner-D05poAe3.js} +1 -1
- package/{Input-LnjmFI1x.js → Input-n-Z20KbW.js} +1 -1
- package/{Label-E3LhQfNv.cjs → Label-ChjDdBlv.cjs} +1 -1
- package/{Label-D2GmP8_2.js → Label-DA6FZwy0.js} +4 -4
- package/{Layout-Ri7XQHFp.cjs → Layout-BwLxIwtY.cjs} +1 -1
- package/{Layout-BMNgqjXv.js → Layout-CcADAhds.js} +6 -6
- package/{Link-Bn8V3ZI0.js → Link-CibH8uRY.js} +3 -3
- package/{Link-CVvnCOGP.cjs → Link-ESjrl63P.cjs} +1 -1
- package/{Link-BCVI5W_i.js → Link-ovwNVMfg.js} +12 -11
- package/{LinkButton-Cui-gvAk.js → LinkButton-BkZULm2a.js} +1 -1
- package/{ListBox-BCz5-23H.cjs → ListBox-B0E1hdEt.cjs} +1 -1
- package/{ListBox-C-isJIHL.js → ListBox-CsxDGpCA.js} +11 -11
- package/{ListBoxButton-DNm3gvcT.cjs → ListBoxButton-BsuHFd_O.cjs} +1 -1
- package/{ListBoxButton-C_krklY0.js → ListBoxButton-DawRfuny.js} +1 -1
- package/{ListBoxSection-CfQZoURJ.cjs → ListBoxSection-C-Rz358T.cjs} +1 -1
- package/{ListBoxSection-BVR2xtOH.js → ListBoxSection-Cc2cx0_S.js} +6 -6
- package/{ListKeyboardDelegate-CY6t6y1t.js → ListKeyboardDelegate-C-sPNj0f.js} +2 -2
- package/{ListKeyboardDelegate-CPsZ7D83.cjs → ListKeyboardDelegate-ZKBk2IId.cjs} +1 -1
- package/{OverlayArrow-CfhSYL46.js → OverlayArrow-DB_aVTVM.js} +1 -1
- package/{Popover-CnAsw3wI.cjs → Popover-BDvKByTT.cjs} +1 -1
- package/{Popover-C8VY1YKi.js → Popover-DHoXfBp2.js} +3 -3
- package/PressResponder-4jE_HLu3.cjs +1 -0
- package/PressResponder-C3APAKsz.js +34 -0
- package/{ProgressBar-Bpq-hyZa.js → ProgressBar-C0IBfi5I.js} +2 -2
- package/{ProgressBar-D4lOEhAh.cjs → ProgressBar-ClysdvqU.cjs} +1 -1
- package/{Radio-BPcq9kW5.js → Radio-B6N9dCtB.js} +19 -20
- package/Radio-Cz0vLIBw.cjs +1 -0
- package/{RangeCalendar-6miAJVoO.js → RangeCalendar-BCruEq9d.js} +16 -15
- package/RangeCalendar-BY82hPRu.cjs +11 -0
- package/{SearchField-DEoGi9xv.cjs → SearchField-QFyuaT-K.cjs} +1 -1
- package/{SearchField-CDyD5iWr.js → SearchField-nwlyszwt.js} +3 -3
- package/{Select-B2wYDnAU.js → Select-DMVj2lrG.js} +104 -105
- package/Select-DiCEyap1.cjs +1 -0
- package/SelectionManager-BJjqIWtf.cjs +1 -0
- package/{SelectionManager-zsWy3vsd.js → SelectionManager-BubxiIKu.js} +25 -24
- package/{Separator-Dn5LYN5I.js → Separator-CEZ5y7tZ.js} +4 -4
- package/{Separator-CxF-3jhR.cjs → Separator-DPLEx950.cjs} +1 -1
- package/{TabList-CheXtBJm.cjs → TabList-BkSWzbDG.cjs} +1 -1
- package/{TabList-D0qzIjSx.js → TabList-QApx8qRC.js} +8 -8
- package/{Table-zKvjzd9t.js → Table-B5Aine4F.js} +35 -34
- package/Table-DGYC-sDq.cjs +16 -0
- package/{Tag-BoqT5nbh.js → Tag-Byva_Xuy.js} +123 -122
- package/Tag-bYq-wf5D.cjs +1 -0
- package/{Text-DlKqpvSa.js → Text-BPcfhYQ9.js} +1 -1
- package/{Text-92cPh38G.js → Text-DcZqSUN9.js} +3 -3
- package/{TextArea-B5und61h.cjs → TextArea-DJKHFKuI.cjs} +1 -1
- package/{TextArea-Pxr-eLXe.js → TextArea-eK7Jx3qs.js} +8 -8
- package/{TextField-BdK9KEQ5.cjs → TextField-BAX93sq7.cjs} +1 -1
- package/{TextField-ByDJkig9.js → TextField-Dma22dnD.js} +19 -19
- package/{Toast-DfKiA5hp.js → Toast-CWt_mNIg.js} +1 -1
- package/{ToggleButtonGroup-DhlfvYGg.js → ToggleButtonGroup-HjvaTYD4.js} +3 -3
- package/{Tooltip-5mLWn_wO.js → Tooltip-DjNc93tV.js} +3 -3
- package/accordion/Accordion.d.ts +1 -2
- package/accordion/index.cjs +1 -1
- package/accordion/index.d.ts +2 -1
- package/accordion/index.js +3 -2
- package/assets/BadgeContainer.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -1
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.d.ts +1 -0
- package/breadcrumbs/index.js +1 -1
- package/button/Button.d.ts +1 -2
- package/button/index.d.ts +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/color-scheme-switch/index.d.ts +1 -0
- package/color-scheme-switch/index.js +1 -1
- package/combobox/ComboBox.d.ts +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.d.ts +1 -0
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +1 -2
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.d.ts +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.d.ts +1 -0
- package/field-error/index.js +1 -1
- package/file-upload/FileUpload.d.ts +3 -14
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.d.ts +1 -1
- package/file-upload/index.js +3 -2
- package/{getScrollParent-CsZ9ciml.cjs → getScrollParent-DuKmPmUa.cjs} +1 -1
- package/{getScrollParent-CT_L9LUr.js → getScrollParent-Ru2U2LlM.js} +1 -1
- package/grid/index.d.ts +1 -1
- package/heading/index.d.ts +1 -0
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +118 -116
- package/info-banner/index.d.ts +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.d.ts +1 -0
- package/layout/index.js +1 -1
- package/link/Link.d.ts +2 -2
- package/link/index.cjs +1 -1
- package/link/index.d.ts +1 -1
- package/link/index.js +2 -2
- package/link-button/LinkButton.d.ts +2 -2
- package/link-button/index.d.ts +1 -0
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/modal/Dialog.d.ts +1 -1
- package/modal/index.cjs +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- package/popover/Popover.d.ts +1 -2
- package/popover/index.cjs +1 -1
- package/popover/index.d.ts +1 -0
- package/popover/index.js +1 -1
- package/progress-bar/ProgressBar.d.ts +1 -2
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.d.ts +1 -0
- package/progress-bar/index.js +1 -1
- package/radio/Radio.d.ts +1 -2
- package/radio/index.cjs +1 -1
- package/radio/index.d.ts +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-ClEACHUk.js +57 -0
- package/scrollIntoView-DRSoJp89.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.d.ts +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.d.ts +1 -1
- package/spinner/index.d.ts +1 -1
- package/table/index.cjs +1 -1
- package/table/index.d.ts +1 -0
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +1 -0
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.d.ts +1 -1
- package/tag/index.js +1 -1
- package/text/index.d.ts +1 -0
- package/text/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.d.ts +3 -0
- package/textfield/index.js +1 -1
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +1 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +1 -0
- package/toast/Toast.d.ts +2 -3
- package/toast/index.d.ts +1 -0
- package/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/{tokens-BghDnMdO.cjs → tokens-BF-dPard.cjs} +1 -1
- package/{tokens-fEwCQXDv.js → tokens-r1r3wC04.js} +4 -3
- package/tooltip/Tooltip.d.ts +1 -2
- package/tooltip/index.d.ts +1 -0
- package/tooltip/index.js +1 -1
- package/{useButton-1-Jf-oHj.js → useButton-BoIV3kDJ.js} +5 -5
- package/{useDateFormatter-BVCkxVdw.js → useDateFormatter-C7BJgoDR.js} +1 -1
- package/useDescription-CPo72trh.cjs +1 -0
- package/useDescription-DYfKjGGU.js +32 -0
- package/{useField-BEBXv5Mh.js → useField-CefQB81E.js} +1 -1
- package/{useFilter-e2oIVF_O.cjs → useFilter-BhM2yVO3.cjs} +1 -1
- package/{useFilter-CousKe2K.js → useFilter-DginflOU.js} +1 -1
- package/{useFocusable-ChPA2Jc7.js → useFocusable-BjE42axF.js} +7 -7
- package/{useHasTabbableChild-BE81d_ab.js → useHasTabbableChild-DP62kzkG.js} +1 -1
- package/{useHighlightSelectionDescription-BfR_vGOe.cjs → useHighlightSelectionDescription-DmbDkFGY.cjs} +1 -1
- package/{useHighlightSelectionDescription-D73hrkmn.js → useHighlightSelectionDescription-xr_16pKd.js} +2 -2
- package/{useListState-CebsX_1d.js → useListState-DNB7JWoj.js} +1 -1
- package/{useListState-DymkJGDF.cjs → useListState-wLau6fXo.cjs} +1 -1
- package/{usePress-DuR4pVsE.js → usePress-BW47IcyU.js} +34 -34
- package/{useSingleSelectListState-BLXvGjLI.js → useSingleSelectListState-B0OMoHd_.js} +1 -1
- package/{useSingleSelectListState-BPhlCU26.cjs → useSingleSelectListState-DlO5H9N-.cjs} +1 -1
- package/{useTextField-C-sUypsx.js → useTextField-DjxayZsV.js} +2 -2
- package/{utils-DJhAJHk_.js → utils-KLjWgdLR.js} +5 -5
- package/AccordionItem-D2QYNgZS.cjs +0 -1
- package/BadgeContainer-I1XA3OCl.cjs +0 -1
- package/CheckboxGroup-DWxQTABg.cjs +0 -1
- package/ComboBox-Dg2xhkLC.cjs +0 -1
- package/DateInputDivider-3BvwXXa9.cjs +0 -1
- package/DateRangePicker-CX3830ZF.cjs +0 -6
- package/Dialog-CSnN6baf.cjs +0 -1
- package/FieldError-B3YFj-an.js +0 -23
- package/FieldError-BbR-29BM.js +0 -28
- package/FieldError-MVsU-Mgw.cjs +0 -1
- package/FieldError-bRTpchvr.cjs +0 -1
- package/Radio-CwNbUGah.cjs +0 -1
- package/RangeCalendar-CAI1PRDo.cjs +0 -11
- package/Select-nRN944QZ.cjs +0 -1
- package/SelectionManager-D0jYUYcy.cjs +0 -1
- package/Table-DAhnYYIA.cjs +0 -16
- package/Tag-t-aJVo3W.cjs +0 -1
- package/file-upload/intl/translations.json.d.ts +0 -17
- package/scrollIntoView-BLnsPvFA.js +0 -87
- package/scrollIntoView-joIyo-Jt.cjs +0 -1
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import { jsxs as be, jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import X, { useRef as T, useMemo as ee, useEffect as pe, useState as Q, useCallback as se, forwardRef as su, createContext as he } from "react";
|
|
3
|
-
import { f as re,
|
|
4
|
-
import { $ as $u,
|
|
5
|
-
import { $ as hu } from "./FieldError-
|
|
3
|
+
import { f as re, b as fe, e as ve, $ as ru } from "./Button-CepQFEit.js";
|
|
4
|
+
import { $ as $u, c as au, d as bu, e as Cu, a as xu, f as mu } from "./utils-KLjWgdLR.js";
|
|
5
|
+
import { $ as hu, F as Ce } from "./FieldError-CDCvUjK5.js";
|
|
6
6
|
import { $ as fu } from "./Form-CXcEMuBf.js";
|
|
7
|
-
import { a as Ae } from "./Group-
|
|
8
|
-
import { $ as Be, a as vu } from "./Input-
|
|
9
|
-
import { c as Au, d as Bu, e as Ee, f as Eu } from "./ListBox-
|
|
10
|
-
import { o as Tu, h as Du, i as Fu, m as yu } from "./Dialog-
|
|
11
|
-
import {
|
|
12
|
-
import { b as Lu, c as Su } from "./Collection
|
|
7
|
+
import { a as Ae } from "./Group-B0vQfHDy.js";
|
|
8
|
+
import { $ as Be, a as vu } from "./Input-n-Z20KbW.js";
|
|
9
|
+
import { c as Au, d as Bu, e as Ee, f as Eu } from "./ListBox-CsxDGpCA.js";
|
|
10
|
+
import { o as Tu, h as Du, i as Fu, m as yu } from "./Dialog-DKHo0W9B.js";
|
|
11
|
+
import { $ as Te } from "./Text-DcZqSUN9.js";
|
|
12
|
+
import { b as Lu, c as Su } from "./Collection-D2jVTmDW.js";
|
|
13
13
|
import { $ as gu } from "./filterDOMProps-D6KHYVBX.js";
|
|
14
|
-
import { a as ku, g as Pu } from "./OverlayArrow-
|
|
15
|
-
import { $ as Ku } from "./useFilter-
|
|
14
|
+
import { a as ku, g as Pu } from "./OverlayArrow-DB_aVTVM.js";
|
|
15
|
+
import { $ as Ku } from "./useFilter-DginflOU.js";
|
|
16
16
|
import { d as Ou, $ as Iu } from "./useFormValidation-BzzruZKm.js";
|
|
17
|
-
import { e as Ru, f as De, h as wu } from "./SelectionManager-
|
|
18
|
-
import { $ as Gu } from "./useSingleSelectListState-
|
|
19
|
-
import { b as zu } from "./useListState-
|
|
17
|
+
import { e as Ru, f as De, h as wu } from "./SelectionManager-BubxiIKu.js";
|
|
18
|
+
import { $ as Gu } from "./useSingleSelectListState-B0OMoHd_.js";
|
|
19
|
+
import { b as zu } from "./useListState-DNB7JWoj.js";
|
|
20
20
|
import { $ as Vu } from "./useControlledState-u436Wbp1.js";
|
|
21
|
-
import { e as Mu, a as
|
|
21
|
+
import { e as Mu, a as xe } from "./mergeProps-C1U1OIeJ.js";
|
|
22
22
|
import { c as ju, b as Nu } from "./utils-CoCR_Fce.js";
|
|
23
|
-
import {
|
|
23
|
+
import { c as Uu } from "./usePress-BW47IcyU.js";
|
|
24
24
|
import { $ as me } from "./useLabels-LrKQiY11.js";
|
|
25
25
|
import { $ as qu } from "./useUpdateEffect-CCDx8D4X.js";
|
|
26
26
|
import { o as $e } from "./useHover-DQvJ3Y-W.js";
|
|
27
|
-
import { a as Wu } from "./Separator-
|
|
28
|
-
import { a as Xu } from "./ListKeyboardDelegate-
|
|
27
|
+
import { a as Wu } from "./Separator-CEZ5y7tZ.js";
|
|
28
|
+
import { a as Xu } from "./ListKeyboardDelegate-C-sPNj0f.js";
|
|
29
29
|
import { $ as Zu } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
|
|
30
|
-
import { $ as Hu } from "./useTextField-
|
|
30
|
+
import { $ as Hu } from "./useTextField-DjxayZsV.js";
|
|
31
31
|
import { c as ae } from "./clsx-OuTLNxxd.js";
|
|
32
|
-
import { a as Ju, L as Yu } from "./Label-
|
|
33
|
-
import { T as _u } from "./Text-
|
|
34
|
-
import {
|
|
35
|
-
import { b as Qu, L as en, a as un, c as nn } from "./ListBoxSection-BVR2xtOH.js";
|
|
32
|
+
import { a as Ju, L as Yu } from "./Label-DA6FZwy0.js";
|
|
33
|
+
import { T as _u } from "./Text-BPcfhYQ9.js";
|
|
34
|
+
import { b as Qu, L as en, a as un, c as nn } from "./ListBoxSection-Cc2cx0_S.js";
|
|
36
35
|
import { C as on } from "./chevron-down-DmZMdOiC.js";
|
|
37
36
|
import { u as tn } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
38
37
|
import './assets/ComboBox.css';var Fe = {};
|
|
@@ -756,8 +755,8 @@ function ln(e) {
|
|
|
756
755
|
return e && e.__esModule ? e.default : e;
|
|
757
756
|
}
|
|
758
757
|
function cn(e, u) {
|
|
759
|
-
let { buttonRef: i, popoverRef: a, inputRef: t, listBoxRef: d, keyboardDelegate: v, layoutDelegate: b, shouldFocusWrap:
|
|
760
|
-
i = i ??
|
|
758
|
+
let { buttonRef: i, popoverRef: a, inputRef: t, listBoxRef: d, keyboardDelegate: v, layoutDelegate: b, shouldFocusWrap: x, isReadOnly: F, isDisabled: g } = e, m = T(null);
|
|
759
|
+
i = i ?? m;
|
|
761
760
|
let A = Zu(ln(iu), "@react-aria/combobox"), { menuTriggerProps: B, menuProps: E } = Tu({
|
|
762
761
|
type: "listbox",
|
|
763
762
|
isDisabled: g || F
|
|
@@ -781,7 +780,7 @@ function cn(e, u) {
|
|
|
781
780
|
keyboardDelegate: l,
|
|
782
781
|
disallowTypeAhead: !0,
|
|
783
782
|
disallowEmptySelection: !0,
|
|
784
|
-
shouldFocusWrap:
|
|
783
|
+
shouldFocusWrap: x,
|
|
785
784
|
ref: t,
|
|
786
785
|
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
787
786
|
isVirtualized: !0
|
|
@@ -925,7 +924,7 @@ function cn(e, u) {
|
|
|
925
924
|
onPressStart: H,
|
|
926
925
|
isDisabled: g || F
|
|
927
926
|
},
|
|
928
|
-
inputProps:
|
|
927
|
+
inputProps: xe(L, {
|
|
929
928
|
role: "combobox",
|
|
930
929
|
"aria-expanded": B["aria-expanded"],
|
|
931
930
|
"aria-controls": u.isOpen ? E.id : void 0,
|
|
@@ -938,7 +937,7 @@ function cn(e, u) {
|
|
|
938
937
|
// This disable's the macOS Safari spell check auto corrections.
|
|
939
938
|
spellCheck: "false"
|
|
940
939
|
}),
|
|
941
|
-
listBoxProps:
|
|
940
|
+
listBoxProps: xe(E, k, {
|
|
942
941
|
autoFocus: u.focusStrategy || !0,
|
|
943
942
|
shouldUseVirtualFocus: !0,
|
|
944
943
|
shouldSelectOnPressUp: !0,
|
|
@@ -954,7 +953,7 @@ function cn(e, u) {
|
|
|
954
953
|
}
|
|
955
954
|
function pn(e) {
|
|
956
955
|
var u;
|
|
957
|
-
let { defaultFilter: i, menuTrigger: a = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur: v = !0 } = e, [b,
|
|
956
|
+
let { defaultFilter: i, menuTrigger: a = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur: v = !0 } = e, [b, x] = Q(!1), [F, g] = Q(!1), [m, A] = Q(null), B = (o) => {
|
|
958
957
|
e.onSelectionChange && e.onSelectionChange(o), o === l && (w(), P());
|
|
959
958
|
};
|
|
960
959
|
var E;
|
|
@@ -984,10 +983,10 @@ function pn(e) {
|
|
|
984
983
|
defaultOpen: void 0
|
|
985
984
|
}), k = (o = null, $) => {
|
|
986
985
|
let C = $ === "manual" || $ === "focus" && a === "focus";
|
|
987
|
-
(t || L.size > 0 || C && y.size > 0 || e.items) && (C && !r.isOpen && e.items === void 0 &&
|
|
986
|
+
(t || L.size > 0 || C && y.size > 0 || e.items) && (C && !r.isOpen && e.items === void 0 && x(!0), V.current = $, A(o), r.open());
|
|
988
987
|
}, I = (o = null, $) => {
|
|
989
988
|
let C = $ === "manual" || $ === "focus" && a === "focus";
|
|
990
|
-
!(t || L.size > 0 || C && y.size > 0 || e.items) && !r.isOpen || (C && !r.isOpen && e.items === void 0 &&
|
|
989
|
+
!(t || L.size > 0 || C && y.size > 0 || e.items) && !r.isOpen || (C && !r.isOpen && e.items === void 0 && x(!0), r.isOpen || (V.current = $), D(o));
|
|
991
990
|
}, M = se(() => {
|
|
992
991
|
oe(b ? y : L);
|
|
993
992
|
}, [
|
|
@@ -1015,7 +1014,7 @@ function pn(e) {
|
|
|
1015
1014
|
let te = T(l != null && (_ = (u = h.getItem(l)) === null || u === void 0 ? void 0 : u.textValue) !== null && _ !== void 0 ? _ : "");
|
|
1016
1015
|
pe(() => {
|
|
1017
1016
|
var o;
|
|
1018
|
-
F && (L.size > 0 || t) && !r.isOpen && s !== R && a !== "manual" && k(null, "input"), !b && !t && r.isOpen && L.size === 0 && P(), l != null && l !== K.current && P(), s !== R && (S.setFocusedKey(null),
|
|
1017
|
+
F && (L.size > 0 || t) && !r.isOpen && s !== R && a !== "manual" && k(null, "input"), !b && !t && r.isOpen && L.size === 0 && P(), l != null && l !== K.current && P(), s !== R && (S.setFocusedKey(null), x(!1), s === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && G(null)), l !== K.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? w() : R !== s && j(s);
|
|
1019
1018
|
var $;
|
|
1020
1019
|
let C = l != null && ($ = (o = h.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && $ !== void 0 ? $ : "";
|
|
1021
1020
|
!F && l != null && e.inputValue === void 0 && l === K.current && te.current !== C && (j(C), q(C)), K.current = l, te.current = C;
|
|
@@ -1065,7 +1064,7 @@ function pn(e) {
|
|
|
1065
1064
|
return {
|
|
1066
1065
|
...le,
|
|
1067
1066
|
...r,
|
|
1068
|
-
focusStrategy:
|
|
1067
|
+
focusStrategy: m,
|
|
1069
1068
|
toggle: I,
|
|
1070
1069
|
open: k,
|
|
1071
1070
|
close: O,
|
|
@@ -1107,10 +1106,10 @@ function cu(e, u, i, a) {
|
|
|
1107
1106
|
const sn = /* @__PURE__ */ he(null), rn = /* @__PURE__ */ he(null), $n = /* @__PURE__ */ su(function(u, i) {
|
|
1108
1107
|
[u, i] = $u(u, i, sn);
|
|
1109
1108
|
let { children: a, isDisabled: t = !1, isInvalid: d = !1, isRequired: v = !1 } = u, b = ee(() => {
|
|
1110
|
-
var
|
|
1109
|
+
var x;
|
|
1111
1110
|
return /* @__PURE__ */ X.createElement(Ee.Provider, {
|
|
1112
1111
|
value: {
|
|
1113
|
-
items: (
|
|
1112
|
+
items: (x = u.items) !== null && x !== void 0 ? x : u.defaultItems
|
|
1114
1113
|
}
|
|
1115
1114
|
}, typeof a == "function" ? a({
|
|
1116
1115
|
isOpen: !1,
|
|
@@ -1129,9 +1128,9 @@ const sn = /* @__PURE__ */ he(null), rn = /* @__PURE__ */ he(null), $n = /* @__P
|
|
|
1129
1128
|
]);
|
|
1130
1129
|
return /* @__PURE__ */ X.createElement(Lu, {
|
|
1131
1130
|
content: b
|
|
1132
|
-
}, (
|
|
1131
|
+
}, (x) => /* @__PURE__ */ X.createElement(bn, {
|
|
1133
1132
|
props: u,
|
|
1134
|
-
collection:
|
|
1133
|
+
collection: x,
|
|
1135
1134
|
comboBoxRef: i
|
|
1136
1135
|
}));
|
|
1137
1136
|
}), an = [
|
|
@@ -1145,10 +1144,10 @@ function bn({ props: e, collection: u, comboBoxRef: i }) {
|
|
|
1145
1144
|
let { name: a, formValue: t = "key", allowsCustomValue: d } = e;
|
|
1146
1145
|
d && (t = "text");
|
|
1147
1146
|
let { validationBehavior: v } = au(fu) || {};
|
|
1148
|
-
var b,
|
|
1149
|
-
let F = (
|
|
1147
|
+
var b, x;
|
|
1148
|
+
let F = (x = (b = e.validationBehavior) !== null && b !== void 0 ? b : v) !== null && x !== void 0 ? x : "native", { contains: g } = Ku({
|
|
1150
1149
|
sensitivity: "base"
|
|
1151
|
-
}),
|
|
1150
|
+
}), m = pn({
|
|
1152
1151
|
defaultFilter: e.defaultFilter || g,
|
|
1153
1152
|
...e,
|
|
1154
1153
|
// If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
|
|
@@ -1165,7 +1164,7 @@ function bn({ props: e, collection: u, comboBoxRef: i }) {
|
|
|
1165
1164
|
popoverRef: h,
|
|
1166
1165
|
name: t === "text" ? a : void 0,
|
|
1167
1166
|
validationBehavior: F
|
|
1168
|
-
},
|
|
1167
|
+
}, m), [q, y] = Q(null), L = se(() => {
|
|
1169
1168
|
if (B.current) {
|
|
1170
1169
|
var r;
|
|
1171
1170
|
let k = (r = A.current) === null || r === void 0 ? void 0 : r.getBoundingClientRect(), I = B.current.getBoundingClientRect(), M = k ? Math.min(k.left, I.left) : I.left, D = k ? Math.max(k.right, I.right) : I.right;
|
|
@@ -1181,27 +1180,27 @@ function bn({ props: e, collection: u, comboBoxRef: i }) {
|
|
|
1181
1180
|
onResize: L
|
|
1182
1181
|
});
|
|
1183
1182
|
let Z = ee(() => ({
|
|
1184
|
-
isOpen:
|
|
1183
|
+
isOpen: m.isOpen,
|
|
1185
1184
|
isDisabled: e.isDisabled || !1,
|
|
1186
1185
|
isInvalid: s.isInvalid || !1,
|
|
1187
1186
|
isRequired: e.isRequired || !1
|
|
1188
1187
|
}), [
|
|
1189
|
-
|
|
1188
|
+
m.isOpen,
|
|
1190
1189
|
e.isDisabled,
|
|
1191
1190
|
s.isInvalid,
|
|
1192
1191
|
e.isRequired
|
|
1193
|
-
]), oe =
|
|
1192
|
+
]), oe = xu({
|
|
1194
1193
|
...e,
|
|
1195
1194
|
values: Z,
|
|
1196
1195
|
defaultClassName: "react-aria-ComboBox"
|
|
1197
1196
|
}), V = gu(e);
|
|
1198
1197
|
delete V.id;
|
|
1199
1198
|
var H;
|
|
1200
|
-
return /* @__PURE__ */ X.createElement(
|
|
1199
|
+
return /* @__PURE__ */ X.createElement(mu, {
|
|
1201
1200
|
values: [
|
|
1202
1201
|
[
|
|
1203
1202
|
rn,
|
|
1204
|
-
|
|
1203
|
+
m
|
|
1205
1204
|
],
|
|
1206
1205
|
[
|
|
1207
1206
|
fe,
|
|
@@ -1215,7 +1214,7 @@ function bn({ props: e, collection: u, comboBoxRef: i }) {
|
|
|
1215
1214
|
{
|
|
1216
1215
|
...G,
|
|
1217
1216
|
ref: A,
|
|
1218
|
-
isPressed:
|
|
1217
|
+
isPressed: m.isOpen
|
|
1219
1218
|
}
|
|
1220
1219
|
],
|
|
1221
1220
|
[
|
|
@@ -1227,7 +1226,7 @@ function bn({ props: e, collection: u, comboBoxRef: i }) {
|
|
|
1227
1226
|
],
|
|
1228
1227
|
[
|
|
1229
1228
|
Fu,
|
|
1230
|
-
|
|
1229
|
+
m
|
|
1231
1230
|
],
|
|
1232
1231
|
[
|
|
1233
1232
|
yu,
|
|
@@ -1253,7 +1252,7 @@ function bn({ props: e, collection: u, comboBoxRef: i }) {
|
|
|
1253
1252
|
],
|
|
1254
1253
|
[
|
|
1255
1254
|
Eu,
|
|
1256
|
-
|
|
1255
|
+
m
|
|
1257
1256
|
],
|
|
1258
1257
|
[
|
|
1259
1258
|
Te,
|
|
@@ -1281,21 +1280,21 @@ function bn({ props: e, collection: u, comboBoxRef: i }) {
|
|
|
1281
1280
|
...oe,
|
|
1282
1281
|
ref: i,
|
|
1283
1282
|
slot: e.slot || void 0,
|
|
1284
|
-
"data-focused":
|
|
1285
|
-
"data-open":
|
|
1283
|
+
"data-focused": m.isFocused || void 0,
|
|
1284
|
+
"data-open": m.isOpen || void 0,
|
|
1286
1285
|
"data-disabled": e.isDisabled || void 0,
|
|
1287
1286
|
"data-invalid": s.isInvalid || void 0,
|
|
1288
1287
|
"data-required": e.isRequired || void 0
|
|
1289
1288
|
}), a && t === "key" && /* @__PURE__ */ X.createElement("input", {
|
|
1290
1289
|
type: "hidden",
|
|
1291
1290
|
name: a,
|
|
1292
|
-
value: (H =
|
|
1291
|
+
value: (H = m.selectedKey) !== null && H !== void 0 ? H : ""
|
|
1293
1292
|
}));
|
|
1294
1293
|
}
|
|
1295
|
-
const Cn = "_combobox_zftmk_4",
|
|
1294
|
+
const Cn = "_combobox_zftmk_4", xn = "_inputField_zftmk_9", mn = "_medium_zftmk_27", hn = "_wrap_zftmk_67", fn = "_button_zftmk_73", vn = "_icon_zftmk_105", W = {
|
|
1296
1295
|
combobox: Cn,
|
|
1297
|
-
inputField:
|
|
1298
|
-
medium:
|
|
1296
|
+
inputField: xn,
|
|
1297
|
+
medium: mn,
|
|
1299
1298
|
wrap: hn,
|
|
1300
1299
|
button: fn,
|
|
1301
1300
|
icon: vn
|
|
@@ -1307,7 +1306,7 @@ const Cn = "_combobox_zftmk_4", mn = "_inputField_zftmk_9", xn = "_medium_zftmk_
|
|
|
1307
1306
|
en: An,
|
|
1308
1307
|
sv: Bn
|
|
1309
1308
|
};
|
|
1310
|
-
function
|
|
1309
|
+
function po({
|
|
1311
1310
|
label: e,
|
|
1312
1311
|
description: u,
|
|
1313
1312
|
errorMessage: i,
|
|
@@ -1316,10 +1315,10 @@ function so({
|
|
|
1316
1315
|
className: d,
|
|
1317
1316
|
errorPosition: v = "top",
|
|
1318
1317
|
size: b = "large",
|
|
1319
|
-
popover:
|
|
1318
|
+
popover: x,
|
|
1320
1319
|
...F
|
|
1321
1320
|
}) {
|
|
1322
|
-
const g = X.useRef(null),
|
|
1321
|
+
const g = X.useRef(null), m = tn(En), A = (B) => {
|
|
1323
1322
|
var E;
|
|
1324
1323
|
B.currentTarget.value && ((E = g.current) == null || E.select());
|
|
1325
1324
|
};
|
|
@@ -1329,9 +1328,9 @@ function so({
|
|
|
1329
1328
|
className: ae(W.combobox, d),
|
|
1330
1329
|
...F,
|
|
1331
1330
|
children: [
|
|
1332
|
-
/* @__PURE__ */ f(Ju, { popover:
|
|
1331
|
+
/* @__PURE__ */ f(Ju, { popover: x, children: e && /* @__PURE__ */ f(Yu, { children: e }) }),
|
|
1333
1332
|
u && /* @__PURE__ */ f(_u, { slot: "description", children: u }),
|
|
1334
|
-
v === "top" && /* @__PURE__ */ f(
|
|
1333
|
+
v === "top" && /* @__PURE__ */ f(Ce, { "data-testid": "fieldError", children: i }),
|
|
1335
1334
|
/* @__PURE__ */ be("div", { className: W.wrap, children: [
|
|
1336
1335
|
/* @__PURE__ */ f(
|
|
1337
1336
|
vu,
|
|
@@ -1349,7 +1348,7 @@ function so({
|
|
|
1349
1348
|
className: ae(W.button, {
|
|
1350
1349
|
[W.medium]: b === "medium"
|
|
1351
1350
|
}),
|
|
1352
|
-
"aria-label":
|
|
1351
|
+
"aria-label": m.format("showList"),
|
|
1353
1352
|
children: /* @__PURE__ */ f(
|
|
1354
1353
|
"div",
|
|
1355
1354
|
{
|
|
@@ -1367,7 +1366,7 @@ function so({
|
|
|
1367
1366
|
}
|
|
1368
1367
|
)
|
|
1369
1368
|
] }),
|
|
1370
|
-
v === "bottom" && /* @__PURE__ */ f(
|
|
1369
|
+
v === "bottom" && /* @__PURE__ */ f(Ce, { "data-testid": "fieldError", children: i }),
|
|
1371
1370
|
/* @__PURE__ */ f(Qu, { children: /* @__PURE__ */ f(en, { items: t, children: a }) })
|
|
1372
1371
|
]
|
|
1373
1372
|
}
|
|
@@ -1379,12 +1378,12 @@ function Tn(e) {
|
|
|
1379
1378
|
function Dn(e) {
|
|
1380
1379
|
return /* @__PURE__ */ f(nn, { ...e, children: /* @__PURE__ */ f(Su, { items: e.children, children: (u) => /* @__PURE__ */ f(Tn, { children: u.name }, u.id) }) });
|
|
1381
1380
|
}
|
|
1382
|
-
function
|
|
1381
|
+
function so(e) {
|
|
1383
1382
|
return /* @__PURE__ */ f(Dn, { ...e });
|
|
1384
1383
|
}
|
|
1385
1384
|
export {
|
|
1386
|
-
|
|
1385
|
+
po as C,
|
|
1387
1386
|
Tn as a,
|
|
1388
1387
|
Dn as b,
|
|
1389
|
-
|
|
1388
|
+
so as c
|
|
1390
1389
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/DateField.css');const e=require("react/jsx-runtime"),i=require("./DateInputDivider-
|
|
1
|
+
"use strict";require('./assets/DateField.css');const e=require("react/jsx-runtime"),i=require("./DateInputDivider-ToFY-yjB.cjs"),c=require("./clsx-C11secjj.cjs"),n=require("./FieldError-Bv3Q6ZP-.cjs"),a=require("./Label-ChjDdBlv.cjs"),j=require("./Text-DBHWi5gA.cjs"),_="_dateField_1453v_4",h="_inputField_1453v_11",q="_medium_1453v_22",t={dateField:_,inputField:h,medium:q},v=({className:u,description:d,errorMessage:l,errorPosition:s="top",isDisabled:o,label:r,size:x="large",popover:m,...F})=>e.jsxs(i.$40825cdb76e74f70$export$d9781c7894a82487,{...F,className:c.clsx(t.dateField,u),children:[e.jsx(a.LabelWrapper,{popover:m,children:r&&e.jsx(a.Label,{children:r})}),d&&e.jsx(j.Text,{slot:"description",children:d}),s==="top"&&e.jsx(n.FieldError,{children:l}),e.jsx("div",{className:c.clsx(t.inputField,{[t.medium]:x==="medium"}),"data-disabled":o||void 0,"data-testid":"date-field_input-field",children:e.jsx(i.DateInput,{children:p=>e.jsx(i.DateSegment,{segment:p})})}),s==="bottom"&&e.jsx(n.FieldError,{children:l})]});exports.DateField=v;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as F, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { $ as _, a as f, D as h } from "./DateInputDivider-
|
|
2
|
+
import { $ as _, a as f, D as h } from "./DateInputDivider-B3oE1_tB.js";
|
|
3
3
|
import { c as m } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
import { F as s } from "./FieldError-
|
|
5
|
-
import { a as x, L as v } from "./Label-
|
|
6
|
-
import { T as D } from "./Text-
|
|
4
|
+
import { F as s } from "./FieldError-CDCvUjK5.js";
|
|
5
|
+
import { a as x, L as v } from "./Label-DA6FZwy0.js";
|
|
6
|
+
import { T as D } from "./Text-BPcfhYQ9.js";
|
|
7
7
|
import './assets/DateField.css';const b = "_dateField_1453v_4", $ = "_inputField_1453v_11", L = "_medium_1453v_22", d = {
|
|
8
8
|
dateField: b,
|
|
9
9
|
inputField: $,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as be } from "react/jsx-runtime";
|
|
2
2
|
import { c as Re } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import { $ as Se,
|
|
4
|
-
import { $ as Xu } from "./FieldError-
|
|
3
|
+
import { $ as Se, c as qu, d as Yu, e as Be, a as Te, f as Ne, b as Ju } from "./utils-KLjWgdLR.js";
|
|
4
|
+
import { $ as Xu } from "./FieldError-CDCvUjK5.js";
|
|
5
5
|
import { $ as Qu } from "./Form-CXcEMuBf.js";
|
|
6
|
-
import { a as je, $ as et } from "./Group-
|
|
7
|
-
import { $ as Ie, a as at } from "./Input-
|
|
8
|
-
import { g as ut, h as tt, f as rt,
|
|
9
|
-
import {
|
|
10
|
-
import { c as ne, p as ee, x as dt, y as ot, w as lt, b as st, a as ct, $ as Q, z as mt, q as ft, t as Dt, A as $t, B as pt, u as Oe } from "./useDateFormatter-
|
|
6
|
+
import { a as je, $ as et } from "./Group-B0vQfHDy.js";
|
|
7
|
+
import { $ as Ie, a as at } from "./Input-n-Z20KbW.js";
|
|
8
|
+
import { g as ut, h as tt, f as rt, b as nt } from "./Button-CepQFEit.js";
|
|
9
|
+
import { $ as it } from "./Text-DcZqSUN9.js";
|
|
10
|
+
import { c as ne, p as ee, x as dt, y as ot, w as lt, b as st, a as ct, $ as Q, z as mt, q as ft, t as Dt, A as $t, B as pt, u as Oe } from "./useDateFormatter-C7BJgoDR.js";
|
|
11
11
|
import { d as Ee, a as ae, $ as bt, c as yt } from "./mergeProps-C1U1OIeJ.js";
|
|
12
12
|
import { $ as ye } from "./filterDOMProps-D6KHYVBX.js";
|
|
13
13
|
import O, { useRef as z, useEffect as le, useMemo as P, useState as $e, forwardRef as ue, createContext as xe, useContext as H, cloneElement as xt } from "react";
|
|
@@ -15,17 +15,18 @@ import { $ as te } from "./context-CGNJ3grH.js";
|
|
|
15
15
|
import { a as se, $ as ht } from "./LocalizedStringFormatter-D-4Qyql0.js";
|
|
16
16
|
import { a as vt, b as gt, c as Ce, f as Bt, $ as Et } from "./useFormValidation-BzzruZKm.js";
|
|
17
17
|
import { $ as Ct } from "./useControlledState-u436Wbp1.js";
|
|
18
|
-
import { b as ze, $ as Me } from "./FocusScope-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { $ as
|
|
22
|
-
import { $ as
|
|
23
|
-
import { $ as _e, a as
|
|
24
|
-
import { $ as
|
|
25
|
-
import { $ as
|
|
26
|
-
import { l as
|
|
18
|
+
import { b as ze, $ as Me } from "./FocusScope-BCsrRPqD.js";
|
|
19
|
+
import { b as Ft } from "./usePress-BW47IcyU.js";
|
|
20
|
+
import { $ as wt } from "./useDescription-DYfKjGGU.js";
|
|
21
|
+
import { $ as Pt } from "./useFocusWithin-T1ifEM_s.js";
|
|
22
|
+
import { $ as kt } from "./useField-CefQB81E.js";
|
|
23
|
+
import { $ as _e, a as At } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
|
|
24
|
+
import { $ as Vt } from "./useLabels-LrKQiY11.js";
|
|
25
|
+
import { $ as Rt } from "./getScrollParent-Ru2U2LlM.js";
|
|
26
|
+
import { l as St, h as Tt, $ as Nt } from "./useHover-DQvJ3Y-W.js";
|
|
27
27
|
import { $ as me } from "./useEvent-CigwyJOw.js";
|
|
28
|
-
import {
|
|
28
|
+
import { b as jt } from "./scrollIntoView-ClEACHUk.js";
|
|
29
|
+
import { $ as It } from "./useFilter-DginflOU.js";
|
|
29
30
|
import { $ as Ot } from "./utils-CoCR_Fce.js";
|
|
30
31
|
import { $ as zt } from "./useFocusRing-DOfBqnUN.js";
|
|
31
32
|
import './assets/DateInputDivider.css';const Mt = new RegExp("^.*\\(.*\\).*$"), _t = [
|
|
@@ -1201,12 +1202,12 @@ function Ht(e) {
|
|
|
1201
1202
|
const ru = /* @__PURE__ */ new WeakMap(), De = "__role_" + Date.now(), qt = "__focusManager_" + Date.now();
|
|
1202
1203
|
function nu(e, a, u) {
|
|
1203
1204
|
var t;
|
|
1204
|
-
let { isInvalid: r, validationErrors: i, validationDetails: o } = a.displayValidation, { labelProps: f, fieldProps: n, descriptionProps: c, errorMessageProps: l } =
|
|
1205
|
+
let { isInvalid: r, validationErrors: i, validationDetails: o } = a.displayValidation, { labelProps: f, fieldProps: n, descriptionProps: c, errorMessageProps: l } = kt({
|
|
1205
1206
|
...e,
|
|
1206
1207
|
labelElementType: "span",
|
|
1207
1208
|
isInvalid: r,
|
|
1208
1209
|
errorMessage: e.errorMessage || i
|
|
1209
|
-
}), s = z(null), { focusWithinProps: D } =
|
|
1210
|
+
}), s = z(null), { focusWithinProps: D } = Pt({
|
|
1210
1211
|
...e,
|
|
1211
1212
|
onFocusWithin($) {
|
|
1212
1213
|
var p;
|
|
@@ -1293,7 +1294,7 @@ function Yt(e) {
|
|
|
1293
1294
|
return e && e.__esModule ? e.default : e;
|
|
1294
1295
|
}
|
|
1295
1296
|
function Jt() {
|
|
1296
|
-
let { locale: e } = te(), a =
|
|
1297
|
+
let { locale: e } = te(), a = At(Yt(he), "@react-aria/datepicker");
|
|
1297
1298
|
return P(() => {
|
|
1298
1299
|
try {
|
|
1299
1300
|
return new Intl.DisplayNames(e, {
|
|
@@ -1369,7 +1370,7 @@ function Qt(e, a, u) {
|
|
|
1369
1370
|
d = h === 0 ? "" : d, d.length === 0 || h === 0 ? a.clearSegment(e.type) : a.setSegment(e.type, h), t.current = d;
|
|
1370
1371
|
} else e.type === "dayPeriod" && a.clearSegment(e.type);
|
|
1371
1372
|
}, S = (d) => {
|
|
1372
|
-
if (d.key === "a" && (
|
|
1373
|
+
if (d.key === "a" && (Tt() ? d.metaKey : d.ctrlKey) && d.preventDefault(), !(d.ctrlKey || d.metaKey || d.shiftKey || d.altKey))
|
|
1373
1374
|
switch (d.key) {
|
|
1374
1375
|
case "Backspace":
|
|
1375
1376
|
case "Delete":
|
|
@@ -1456,8 +1457,8 @@ function Qt(e, a, u) {
|
|
|
1456
1457
|
}
|
|
1457
1458
|
}
|
|
1458
1459
|
}, $ = () => {
|
|
1459
|
-
t.current = "", u.current &&
|
|
1460
|
-
containingElement:
|
|
1460
|
+
t.current = "", u.current && jt(u.current, {
|
|
1461
|
+
containingElement: Rt(u.current)
|
|
1461
1462
|
});
|
|
1462
1463
|
let d = window.getSelection();
|
|
1463
1464
|
d == null || d.collapse(u.current);
|
|
@@ -1498,7 +1499,7 @@ function Qt(e, a, u) {
|
|
|
1498
1499
|
u,
|
|
1499
1500
|
l
|
|
1500
1501
|
]);
|
|
1501
|
-
let b =
|
|
1502
|
+
let b = St() || e.type === "timeZoneName" ? {
|
|
1502
1503
|
role: "textbox",
|
|
1503
1504
|
"aria-valuemax": null,
|
|
1504
1505
|
"aria-valuemin": null,
|
|
@@ -1508,7 +1509,7 @@ function Qt(e, a, u) {
|
|
|
1508
1509
|
a.segments
|
|
1509
1510
|
]);
|
|
1510
1511
|
e !== _ && !a.isInvalid && (c = void 0);
|
|
1511
|
-
let q = yt(), U = !a.isDisabled && !a.isReadOnly && e.isEditable, F = e.type === "literal" ? "" : o.of(e.type), Z =
|
|
1512
|
+
let q = yt(), U = !a.isDisabled && !a.isReadOnly && e.isEditable, F = e.type === "literal" ? "" : o.of(e.type), Z = Vt({
|
|
1512
1513
|
"aria-label": `${F}${f ? `, ${f}` : ""}${n ? ", " : ""}`,
|
|
1513
1514
|
"aria-labelledby": n
|
|
1514
1515
|
});
|
|
@@ -1871,7 +1872,7 @@ function pe(e, a, u, t, r) {
|
|
|
1871
1872
|
}
|
|
1872
1873
|
};
|
|
1873
1874
|
}
|
|
1874
|
-
function
|
|
1875
|
+
function Hr(e, a, u, t, r) {
|
|
1875
1876
|
var i;
|
|
1876
1877
|
let o = pe((i = e == null ? void 0 : e.start) !== null && i !== void 0 ? i : null, a, u, t, r);
|
|
1877
1878
|
var f;
|
|
@@ -1922,7 +1923,7 @@ function de(e, a) {
|
|
|
1922
1923
|
let n = r.slice(o, f + 1).reduce((l, s) => (l[s] = e[s], l), {});
|
|
1923
1924
|
return a.hourCycle != null && (n.hour12 = a.hourCycle === 12), n.timeZone = a.timeZone || "UTC", (t === "hour" || t === "minute" || t === "second") && a.timeZone && !a.hideTimeZone && (n.timeZoneName = "short"), a.showEra && o === 0 && (n.era = "short"), n;
|
|
1924
1925
|
}
|
|
1925
|
-
function
|
|
1926
|
+
function qr(e) {
|
|
1926
1927
|
return e && "hour" in e ? e : new mt();
|
|
1927
1928
|
}
|
|
1928
1929
|
function Zu(e, a) {
|
|
@@ -2699,7 +2700,7 @@ function lr(e, a, u, t) {
|
|
|
2699
2700
|
}
|
|
2700
2701
|
throw new Error("Unknown segment: " + a);
|
|
2701
2702
|
}
|
|
2702
|
-
const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__PURE__ */ xe(null),
|
|
2703
|
+
const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__PURE__ */ xe(null), Yr = /* @__PURE__ */ ue(function(a, u) {
|
|
2703
2704
|
[a, u] = Se(a, u, Gu);
|
|
2704
2705
|
let { validationBehavior: t } = qu(Qu) || {};
|
|
2705
2706
|
var r, i;
|
|
@@ -2831,7 +2832,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
|
|
|
2831
2832
|
key: n
|
|
2832
2833
|
}))), /* @__PURE__ */ O.createElement(at, null));
|
|
2833
2834
|
}), mr = /* @__PURE__ */ ue(function({ segment: a, ...u }, t) {
|
|
2834
|
-
let r = H(re), i = H(ve), o = r ?? i, f = Ju(t), { segmentProps: n } = Qt(a, o, f), { focusProps: c, isFocused: l, isFocusVisible: s } = zt(), { hoverProps: D, isHovered: g } =
|
|
2835
|
+
let r = H(re), i = H(ve), o = r ?? i, f = Ju(t), { segmentProps: n } = Qt(a, o, f), { focusProps: c, isFocused: l, isFocusVisible: s } = zt(), { hoverProps: D, isHovered: g } = Nt({
|
|
2835
2836
|
...u,
|
|
2836
2837
|
isDisabled: o.isDisabled || a.type === "literal"
|
|
2837
2838
|
}), { isEditable: v, ...y } = a, x = Te({
|
|
@@ -2864,7 +2865,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
|
|
|
2864
2865
|
});
|
|
2865
2866
|
}), fr = "_dateSegment_1lvsj_4", Dr = {
|
|
2866
2867
|
dateSegment: fr
|
|
2867
|
-
},
|
|
2868
|
+
}, Jr = ({
|
|
2868
2869
|
className: e,
|
|
2869
2870
|
...a
|
|
2870
2871
|
}) => /* @__PURE__ */ be(
|
|
@@ -2876,13 +2877,13 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
|
|
|
2876
2877
|
), $r = "_dateInput_bhs3c_4", pr = "_divider_bhs3c_24", Hu = {
|
|
2877
2878
|
dateInput: $r,
|
|
2878
2879
|
divider: pr
|
|
2879
|
-
},
|
|
2880
|
+
}, Xr = ({ className: e, ...a }) => /* @__PURE__ */ be(
|
|
2880
2881
|
sr,
|
|
2881
2882
|
{
|
|
2882
2883
|
className: Re(Hu.dateInput, e),
|
|
2883
2884
|
...a
|
|
2884
2885
|
}
|
|
2885
|
-
),
|
|
2886
|
+
), Qr = () => /* @__PURE__ */ be(
|
|
2886
2887
|
"span",
|
|
2887
2888
|
{
|
|
2888
2889
|
"aria-hidden": "true",
|
|
@@ -2891,10 +2892,10 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
|
|
|
2891
2892
|
}
|
|
2892
2893
|
);
|
|
2893
2894
|
export {
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2895
|
+
Yr as $,
|
|
2896
|
+
Jr as D,
|
|
2897
|
+
Xr as a,
|
|
2898
|
+
Qr as b,
|
|
2898
2899
|
Wt as c,
|
|
2899
2900
|
De as d,
|
|
2900
2901
|
he as e,
|
|
@@ -2902,7 +2903,7 @@ export {
|
|
|
2902
2903
|
rr as g,
|
|
2903
2904
|
pe as h,
|
|
2904
2905
|
de as i,
|
|
2905
|
-
|
|
2906
|
-
|
|
2906
|
+
qr as j,
|
|
2907
|
+
Hr as k,
|
|
2907
2908
|
Gu as l
|
|
2908
2909
|
};
|