@midas-ds/components 13.0.1 → 14.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-CAi-XFOc.js +343 -0
- package/AccordionItem-tWS22wDv.cjs +1 -0
- package/BadgeContainer-BZl6mSeb.cjs +1 -0
- package/{BadgeContainer-iNNgJKD9.js → BadgeContainer-DilMiV6u.js} +9 -9
- package/{Breadcrumbs-BQLxFZVm.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
- package/{Breadcrumbs-C6B4fyk3.js → Breadcrumbs-BenPNv8Z.js} +15 -15
- package/Button-1sEX8jKn.cjs +1 -0
- package/{Button-D_tRdPW9.cjs → Button-BEWKXjlP.cjs} +1 -1
- package/{Button-CUMHt7MG.js → Button-CF97piBl.js} +10 -4
- package/{Button-DD5_S-tD.js → Button-CGe3Nyos.js} +122 -116
- package/Button.module-COONZqNU.cjs +1 -0
- package/Button.module-Cm0H98vy.js +14 -0
- package/{ButtonGroup-zx-9mxbJ.cjs → ButtonGroup-BpvDDECt.cjs} +1 -1
- package/{ButtonGroup-DC8925jD.js → ButtonGroup-Swh2E6Es.js} +1 -1
- package/CHANGELOG.md +59 -0
- package/Card-DJ8E5Rzd.js +131 -0
- package/Card-Db9xdzJ0.cjs +1 -0
- package/{CharacterCounter-CnRv-iUP.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
- package/{CharacterCounter-DT7A0wWP.js → CharacterCounter-gbDGfize.js} +8 -8
- package/Checkbox-BgrLxY6P.cjs +1 -0
- package/{Checkbox-DTuryJdM.js → Checkbox-CdN1D5pD.js} +91 -87
- package/{CheckboxGroup-BmFdy-K6.js → CheckboxGroup-B1b-6bKq.js} +12 -12
- package/{CheckboxGroup-LrqCwPET.cjs → CheckboxGroup-BfZyy5yU.cjs} +1 -1
- package/{Collection-B0_WAieZ.js → Collection-BkxwF21i.js} +205 -213
- package/Collection-vGO6v3_U.cjs +1 -0
- package/{ColorSchemeSwitch-D5juAHPc.cjs → ColorSchemeSwitch-BOooU0iy.cjs} +3 -3
- package/{ColorSchemeSwitch-CgZfgCG4.js → ColorSchemeSwitch-KjnsdbDr.js} +10 -10
- package/{ComboBox-B2btGwWe.js → ComboBox-D1ZSZ6m-.js} +286 -278
- package/ComboBox-Dztk_jtC.cjs +1 -0
- package/DateField-BogEOseq.cjs +1 -0
- package/DateField-lsr_1fw4.js +47 -0
- package/{DateInputDivider-LxS0Kw1H.js → DateInputDivider-CRv3YuXd.js} +199 -196
- package/DateInputDivider-CYqm6PZP.cjs +1 -0
- package/{DateRangePicker-BmPPDZIF.js → DateRangePicker-5k1swaEt.js} +123 -119
- package/DateRangePicker-CgNXWOT6.cjs +6 -0
- package/Dialog-B1N4Ndyx.js +256 -0
- package/{Dialog-COeUapMW.js → Dialog-BUAp30Wc.js} +710 -692
- package/Dialog-BgSxz1JW.cjs +1 -0
- package/Dialog-PrnV8KTh.cjs +6 -0
- package/{DragAndDrop-Dw8JZmrn.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
- package/{DragAndDrop-PrUJv--B.js → DragAndDrop-DF0VoPJw.js} +2 -2
- package/{Dropdown-C_W6Sizy.cjs → Dropdown-DBFLb8Tl.cjs} +2 -2
- package/{Dropdown-CGQbf7OT.js → Dropdown-DaARa89l.js} +8 -8
- package/FieldError-Cimgm8qD.cjs +1 -0
- package/FieldError-l3xULRa0.js +48 -0
- package/{FileUpload-D2gnQKdn.js → FileUpload-CN0HNJ_Y.js} +14 -14
- package/{FileUpload-D3RaARDV.cjs → FileUpload-DHmsupSe.cjs} +1 -1
- package/{Grid-BmX6arAO.js → Grid-0XOQPryP.js} +2 -2
- package/{Grid-Bn1bCTH8.cjs → Grid-B6G4PWn5.cjs} +1 -1
- package/{GridItem-luVsL9lu.cjs → GridItem-BZ8eOXMB.cjs} +1 -1
- package/{GridItem-BtO9kCX9.js → GridItem-YtIpL5V2.js} +1 -1
- package/Group-B0Wj9pI8.cjs +1 -0
- package/Group-BAd7alBM.js +46 -0
- package/Heading-CCoGfKQ8.js +48 -0
- package/Heading-x7y3xadc.cjs +1 -0
- package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
- package/InfoBanner-BW3vy9mc.js +72 -0
- package/InfoBanner-_M_rGQiu.cjs +1 -0
- package/{Input-CzMx2mfl.cjs → Input-Bda0PCu5.cjs} +1 -1
- package/{Input-BLVRv0FK.js → Input-CQzv-D9g.js} +9 -9
- package/{Label-1N6ddn5w.js → Label-BGMXsSFb.js} +15 -15
- package/Label-CNTODOFg.cjs +1 -0
- package/Layout-BrEuHajQ.cjs +16 -0
- package/{Layout-B-A-s7B0.js → Layout-JL9l-y7w.js} +144 -145
- package/{Link-lO-Ke97K.js → Link-BudFjYrw.js} +22 -22
- package/Link-BvUSTIip.cjs +6 -0
- package/{Link-wM7cVPlS.cjs → Link-DRU6Qzia.cjs} +1 -1
- package/{Link-CbFSuEI1.js → Link-l-nMP-Zd.js} +10 -10
- package/LinkButton-DGdnbTgR.cjs +6 -0
- package/LinkButton-DP9W-E32.js +69 -0
- package/ListBox-TGCxrXIJ.cjs +1 -0
- package/ListBox-mOCZvKD4.js +534 -0
- package/{ListBoxLoadMoreItem-C4jnDcYH.js → ListBoxLoadMoreItem-CLdTe6-z.js} +5 -5
- package/{ListBoxLoadMoreItem-3jGpi90m.cjs → ListBoxLoadMoreItem-UX0jFQN4.cjs} +1 -1
- package/ListBoxSection-BNBHosou.cjs +1 -0
- package/{ListBoxSection-D7BcbjUt.js → ListBoxSection-D_kTkvgG.js} +139 -140
- package/{ListKeyboardDelegate-CVxkAn5D.js → ListKeyboardDelegate-BHnZMUhW.js} +36 -40
- package/ListKeyboardDelegate-CLRlDto7.cjs +1 -0
- package/{Logo-CFjZc5u2.cjs → Logo-4tRnV4Su.cjs} +1 -1
- package/{Logo-DkagDdKQ.js → Logo-DLlt576_.js} +17 -17
- package/{OverlayArrow-CvNuu3e3.js → OverlayArrow-CjGslX2c.js} +4 -4
- package/{OverlayArrow-ByH6lM-H.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
- package/{Popover-Bf5YH53o.js → Popover-CZFi2YGz.js} +13 -13
- package/Popover-uYTWBGHa.cjs +1 -0
- package/{PressResponder-CxVtArtP.js → PressResponder-BMj6Zvbn.js} +9 -9
- package/PressResponder-ChvCuOue.cjs +1 -0
- package/ProgressBar-BGemuJIq.cjs +1 -0
- package/ProgressBar-DhRmckYM.js +53 -0
- package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
- package/RSPContexts-XUvspq3j.cjs +1 -0
- package/Radio-Bp_31Z59.js +340 -0
- package/Radio-D3RGVrEd.cjs +1 -0
- package/{RangeCalendar-Bi9jc61A.js → RangeCalendar-9C96gMvy.js} +146 -145
- package/RangeCalendar-ChfmP_ql.cjs +6 -0
- package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
- package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
- package/{SearchField-BevjTbcW.js → SearchField-DrEdzWAy.js} +44 -44
- package/SearchField-JaDXLq5W.cjs +6 -0
- package/Select-BCUH-Z7q.cjs +1 -0
- package/{Select-CEwJo1BT.js → Select-CpPE78Ke.js} +210 -188
- package/SelectionIndicator-BiSN1toV.cjs +1 -0
- package/{FocusScope-Bj40Ir-g.js → SelectionIndicator-ant6jeC1.js} +256 -165
- package/SelectionManager-C469yQeD.js +1063 -0
- package/SelectionManager-uFYC4wpu.cjs +1 -0
- package/{Separator-Bj24aGrT.js → Separator-B6l5qSpR.js} +28 -28
- package/{Separator-CM0KPvsX.js → Separator-BWAnBMVN.js} +5 -5
- package/Separator-DbhmtwDa.cjs +1 -0
- package/{Separator-Dgin8BNW.cjs → Separator-J0pLW4BN.cjs} +1 -1
- package/Skeleton-8onymGEG.cjs +1 -0
- package/Skeleton-BjTEGRpe.js +35 -0
- package/Spinner-D6Fcu_Dp.js +54 -0
- package/Spinner-DIapnvIz.cjs +6 -0
- package/TabList-C0tRVI6Q.cjs +1 -0
- package/TabList-DmkxO7MM.js +394 -0
- package/Table-BLqjyYKk.cjs +16 -0
- package/{Table-BzJktg2G.js → Table-CyWZO9uf.js} +710 -706
- package/Tag-DJqYiBLR.js +774 -0
- package/Tag-FDHGu_WP.cjs +1 -0
- package/{Text-BtPiT2P1.cjs → Text-0wXj3J8E.cjs} +1 -1
- package/Text-BBFWBNAH.js +32 -0
- package/{Text-BAFsaON-.cjs → Text-D5OSv6Uv.cjs} +1 -1
- package/{Text-Be7WIOwv.js → Text-bqP9NeVg.js} +3 -3
- package/TextArea-CZxwvBcS.cjs +1 -0
- package/TextArea-CrY7P18c.js +125 -0
- package/{TextField-_UY8CXtW.js → TextField-BWea-IT-.js} +26 -26
- package/TextField-DsN-kBfh.cjs +1 -0
- package/TextField.module-C03d0VY9.js +13 -0
- package/TextField.module-DmRrFHra.cjs +1 -0
- package/{Toast-Cs0CEbRr.cjs → Toast-DUZ5jfG1.cjs} +1 -1
- package/{Toast-B74PMVL9.js → Toast-Di3h8A14.js} +101 -101
- package/{ToggleButtonGroup-CwHPu7w5.js → ToggleButtonGroup-Bh4hP6Lk.js} +83 -79
- package/ToggleButtonGroup-D7r34GCt.cjs +1 -0
- package/{Tooltip-BHAtsp9k.js → Tooltip-CUdmOznK.js} +13 -13
- package/{Tooltip-CZa9n5sT.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
- package/{VisuallyHidden-EjrqodVh.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
- package/{VisuallyHidden-CGEtjAP7.js → VisuallyHidden-DuW70K-5.js} +8 -8
- package/accordion/Accordion.d.ts +0 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +2 -3
- package/assets/AccordionItem.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Dropdown.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Logo.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/default.css +1 -1
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/clsx-DKOfLqne.cjs +1 -0
- package/clsx-jbLnTBqA.js +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
- package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
- package/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/Heading.d.ts +6 -0
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BLPblar-.js → index-DEx4upZl.js} +19 -19
- package/{index-DSFSh2sC.cjs → index-hURPlN0u.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.js +126 -127
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-banner/index.cjs +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.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/{mergeProps-BSsN7Bgk.js → mergeProps-Ct8m5-xW.js} +1 -1
- package/{mergeProps-JhcJ7uJL.cjs → mergeProps-Du5A8xi8.cjs} +1 -1
- package/modal/Dialog.d.ts +16 -3
- package/modal/index.cjs +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +2 -2
- package/package.json +4 -4
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-BVI21Y4-.js +65 -0
- package/scrollIntoView-BueMOyGp.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/select/types.d.ts +1 -1
- package/select/useMultiSelect.d.ts +2 -2
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/Spinner.d.ts +5 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tabs.d.ts +2 -9
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +0 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/TextArea.d.ts +3 -2
- package/textfield/TextField.d.ts +3 -2
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-R8-i3HLC.cjs → useButton-C0r5nrqs.cjs} +1 -1
- package/{useButton-D6iUB8cN.js → useButton-CRgN6aZf.js} +3 -3
- package/useDateFormatter-BrrFo4nY.cjs +1 -0
- package/{useDateFormatter-BJ1ZyaH1.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
- package/{useDescription-BMuiAqI5.cjs → useDescription-6BYtQxe6.cjs} +1 -1
- package/{useDescription-BLmIkYCq.js → useDescription-BFwQx7Rp.js} +1 -1
- package/useEvent-C125NAue.cjs +1 -0
- package/{useEvent-DpBHTuHJ.js → useEvent-smuTnX4G.js} +1 -1
- package/{useField-BMegM8fA.js → useField-BhJ9dM2g.js} +2 -2
- package/{useField-DyeD7MLj.cjs → useField-DvszkIMx.cjs} +1 -1
- package/{useFilter-BFnSe_Eq.js → useFilter-BdUU-HQZ.js} +1 -1
- package/{useFilter-aoggM85n.cjs → useFilter-R2IPvbS8.cjs} +1 -1
- package/{useFocusRing-BcbYske2.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
- package/{useFocusRing-DMo8ctYV.js → useFocusRing-CcxI7nbg.js} +2 -2
- package/{useFocusWithin-ClMkhYcq.js → useFocusWithin-DhXBuB2O.js} +1 -1
- package/{useFocusWithin-DTnk0e8a.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
- package/{useFocusable-DXlMChFC.js → useFocusable-BJj-Bkig.js} +14 -14
- package/{useFocusable-CsG-IPuC.cjs → useFocusable-M4se1KJt.cjs} +1 -1
- package/{useFormValidation-L0UHvOsP.js → useFormValidation-By7G-T7y.js} +2 -2
- package/{useFormValidation-BQIRxgbU.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
- package/useHasTabbableChild-CIZGg_iG.cjs +1 -0
- package/{useHasTabbableChild-BDaxMsGu.js → useHasTabbableChild-CnpSoDuJ.js} +2 -2
- package/{useHighlightSelectionDescription-CQaG611l.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
- package/{useHighlightSelectionDescription-BkEv9Jye.js → useHighlightSelectionDescription-DPiqOr_Z.js} +5 -5
- package/{useHover-DGAmG7jt.cjs → useHover-DULSfLuK.cjs} +1 -1
- package/{useHover-D6bNIkU0.js → useHover-DkC5FyNd.js} +5 -5
- package/{useLabels-CvUk-yS3.cjs → useLabels-B5pmat1S.cjs} +1 -1
- package/{useLabels-Kmq5JCp_.js → useLabels-D24on06F.js} +1 -1
- package/{useListState-D2IEg6_e.cjs → useListState-DBawAMhF.cjs} +1 -1
- package/{useListState-pixYqSLl.js → useListState-PZF3ahpk.js} +1 -1
- package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
- package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
- package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
- package/{usePress-DMUpU0GU.js → usePress-BqQIhkNY.js} +54 -54
- package/usePress-DmU79HEg.cjs +7 -0
- package/{useSingleSelectListState-BlvpP8y-.js → useSingleSelectListState-BLRBEJC7.js} +1 -1
- package/{useSingleSelectListState-CwWK_Dx2.cjs → useSingleSelectListState-CNETmoj5.cjs} +1 -1
- package/{useTextField-BC5X_AO_.js → useTextField-B8pM0p6X.js} +7 -7
- package/{useTextField-Cxpfu0U3.cjs → useTextField-CiWV3eeD.cjs} +1 -1
- package/useToggleState-DaxmInOW.cjs +1 -0
- package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
- package/utils/clsx.d.ts +8 -0
- package/utils/types.d.ts +5 -0
- package/utils-CtICjCYt.cjs +1 -0
- package/{utils-Cpcjg55U.js → utils-D2iKpxcZ.js} +47 -43
- package/utils-DRIRjPUS.cjs +1 -0
- package/{utils-DFIwp4PB.js → utils-Dxh86KaB.js} +20 -18
- package/AccordionItem-Bq8nUKg4.cjs +0 -1
- package/AccordionItem-D2Y0gJZB.js +0 -335
- package/BadgeContainer-su0iCJKy.cjs +0 -1
- package/Button-CMIbSc4-.cjs +0 -1
- package/Button.module-BT9wZenr.cjs +0 -1
- package/Button.module-CGIVvzVm.js +0 -14
- package/Card-D2UbrhDW.js +0 -131
- package/Card-UolcSL5O.cjs +0 -1
- package/Checkbox-dtZfsSfx.cjs +0 -1
- package/Collection-BvWp2xBd.cjs +0 -1
- package/ComboBox-uMsVrOYu.cjs +0 -1
- package/DateField-B5dlDwdH.cjs +0 -1
- package/DateField-CEpRn4wR.js +0 -47
- package/DateInputDivider-BnSo_Aox.cjs +0 -1
- package/DateRangePicker-It4M98bT.cjs +0 -6
- package/Dialog-B1HuzqOX.js +0 -240
- package/Dialog-DR6nEqMT.cjs +0 -1
- package/Dialog-doGnVsJJ.cjs +0 -1
- package/FieldError-Cornph2A.cjs +0 -1
- package/FieldError-DdvFyIf4.js +0 -48
- package/FocusScope-Uy3DiY0-.cjs +0 -1
- package/Group-BKYGeOBr.cjs +0 -1
- package/Group-C73mD_-i.js +0 -45
- package/Heading-BQlmb5Tm.js +0 -46
- package/Heading-D3FR_KXb.cjs +0 -1
- package/InfoBanner-C82hcpzj.cjs +0 -1
- package/InfoBanner-Dz_0wVSa.js +0 -83
- package/Label-06gf6yKQ.cjs +0 -1
- package/Layout-DlE30BHE.cjs +0 -16
- package/Link-ePZ3nrAW.cjs +0 -6
- package/LinkButton-CJyZh3BS.js +0 -69
- package/LinkButton-Cw73pOM2.cjs +0 -6
- package/ListBox-ICZKGluC.cjs +0 -1
- package/ListBox-LncMQt6I.js +0 -523
- package/ListBoxSection-BeDwnVZx.cjs +0 -1
- package/ListKeyboardDelegate-C_X1wLkh.cjs +0 -1
- package/Popover-DIq3kp6B.cjs +0 -1
- package/PressResponder-DbnYqwGB.cjs +0 -1
- package/ProgressBar-DRhXkSE6.js +0 -53
- package/ProgressBar-i7almbvK.cjs +0 -1
- package/RSPContexts-D8hmBfGm.cjs +0 -1
- package/Radio-BpQoJB8e.cjs +0 -1
- package/Radio-D4wUZfW9.js +0 -333
- package/RangeCalendar-KcJooXYf.cjs +0 -6
- package/SearchField-BA-X9dzb.cjs +0 -6
- package/Select-1QuVY4f5.cjs +0 -1
- package/SelectionManager-Bq-Gw1UT.js +0 -1043
- package/SelectionManager-BtbHoHpA.cjs +0 -1
- package/Separator-Cfv2pbWf.cjs +0 -1
- package/Skeleton-Iovq135_.js +0 -35
- package/Skeleton-MaBUPqhT.cjs +0 -1
- package/Spinner-BZ7i01Kt.js +0 -47
- package/Spinner-DxWDMW6e.cjs +0 -6
- package/TabList-3fErCDyP.cjs +0 -1
- package/TabList-CXaxruLg.js +0 -397
- package/Table-Dyqa6_rE.cjs +0 -16
- package/Tag-BYUPXbhG.js +0 -765
- package/Tag-BweDKw1v.cjs +0 -1
- package/Text-CmlsaWMA.js +0 -32
- package/TextArea-B4BZUoJp.cjs +0 -1
- package/TextArea-Df1fR5R4.js +0 -124
- package/TextField-Bm5916AD.cjs +0 -1
- package/TextField.module-CH39P8ZE.js +0 -13
- package/TextField.module-gJ-ruFra.cjs +0 -1
- package/ToggleButtonGroup-DY9S3USc.cjs +0 -1
- package/inertValue-B3AFhVG4.cjs +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/useDateFormatter-2B0vgHc-.cjs +0 -1
- package/useEvent-3ZO5TPSH.cjs +0 -1
- package/useHasTabbableChild-CJcLnolh.cjs +0 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
- package/useObserveElement-BdI4zgd7.js +0 -27
- package/useObserveElement-MhzEsCkX.cjs +0 -1
- package/usePress-CicXV7UO.cjs +0 -7
- package/useToggleState-SqDyNfRi.cjs +0 -1
- package/utils/storybook.d.ts +0 -5
- package/utils/test.d.ts +0 -11
- package/utils-CMHKYKlz.cjs +0 -1
- package/utils-__vrf9VZ.cjs +0 -1
- package/variables-B3KEYyhW.cjs +0 -1
- package/variables-DzXcMW2k.js +0 -5
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { jsxs as xe, jsx as A } from "react/jsx-runtime";
|
|
2
2
|
import _, { useRef as y, useMemo as J, useEffect as ce, useState as z, useCallback as de, forwardRef as bu, createContext as Ee } from "react";
|
|
3
|
-
import { f as ae, b as
|
|
4
|
-
import { $ as mu, c as xu, d as hu, e as fu, a as vu, f as Au } from "./utils-
|
|
5
|
-
import { $ as Bu, F as he } from "./FieldError-
|
|
3
|
+
import { f as ae, b as Te, e as De, $ as Cu } from "./Button-CGe3Nyos.js";
|
|
4
|
+
import { $ as mu, c as xu, d as hu, e as fu, a as vu, f as Au } from "./utils-D2iKpxcZ.js";
|
|
5
|
+
import { $ as Bu, F as he } from "./FieldError-l3xULRa0.js";
|
|
6
6
|
import { $ as Eu } from "./Form-CXcEMuBf.js";
|
|
7
|
-
import { $ as ye } from "./Group-
|
|
8
|
-
import { $ as Fe, a as
|
|
9
|
-
import { d as
|
|
10
|
-
import { p as Su, h as Lu, i as gu, n as ku } from "./Dialog-
|
|
11
|
-
import { $ as Le } from "./Text-
|
|
12
|
-
import { b as Ku, c as Pu } from "./Collection-
|
|
13
|
-
import { $ as
|
|
14
|
-
import { a as
|
|
15
|
-
import { $ as Vu } from "./useFilter-
|
|
16
|
-
import { d as
|
|
17
|
-
import { e as
|
|
18
|
-
import { $ as zu } from "./useSingleSelectListState-
|
|
19
|
-
import { b as Nu } from "./useListState-
|
|
7
|
+
import { $ as ye } from "./Group-BAd7alBM.js";
|
|
8
|
+
import { $ as Fe, a as Tu } from "./Input-CQzv-D9g.js";
|
|
9
|
+
import { d as Du, e as yu, f as Se, g as Fu } from "./ListBox-mOCZvKD4.js";
|
|
10
|
+
import { p as Su, h as Lu, i as gu, n as ku } from "./Dialog-BUAp30Wc.js";
|
|
11
|
+
import { $ as Le } from "./Text-bqP9NeVg.js";
|
|
12
|
+
import { b as Ku, c as Pu } from "./Collection-BkxwF21i.js";
|
|
13
|
+
import { $ as Ou } from "./filterDOMProps-wsa9OcNI.js";
|
|
14
|
+
import { a as Iu, g as Ru } from "./OverlayArrow-CjGslX2c.js";
|
|
15
|
+
import { $ as Vu } from "./useFilter-BdUU-HQZ.js";
|
|
16
|
+
import { d as ju, $ as wu } from "./useFormValidation-By7G-T7y.js";
|
|
17
|
+
import { e as Gu, f as ge, i as Mu } from "./SelectionManager-C469yQeD.js";
|
|
18
|
+
import { $ as zu } from "./useSingleSelectListState-BLRBEJC7.js";
|
|
19
|
+
import { b as Nu } from "./useListState-PZF3ahpk.js";
|
|
20
20
|
import { $ as Uu } from "./useControlledState-u436Wbp1.js";
|
|
21
|
-
import { e as qu, a as fe } from "./mergeProps-
|
|
22
|
-
import { c as Wu, b as _u } from "./utils-
|
|
23
|
-
import { c as Xu } from "./usePress-
|
|
24
|
-
import { $ as ve } from "./useLabels-
|
|
21
|
+
import { e as qu, a as fe } from "./mergeProps-Ct8m5-xW.js";
|
|
22
|
+
import { c as Wu, b as _u } from "./utils-Dxh86KaB.js";
|
|
23
|
+
import { c as Xu } from "./usePress-BqQIhkNY.js";
|
|
24
|
+
import { $ as ve } from "./useLabels-D24on06F.js";
|
|
25
25
|
import { $ as Zu } from "./useUpdateEffect-CCDx8D4X.js";
|
|
26
|
-
import { o as be } from "./useHover-
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { $ as Qu } from "./
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
26
|
+
import { o as be } from "./useHover-DkC5FyNd.js";
|
|
27
|
+
import { $ as Hu } from "./useEvent-smuTnX4G.js";
|
|
28
|
+
import { a as Ju } from "./Separator-BWAnBMVN.js";
|
|
29
|
+
import { a as Yu } from "./ListKeyboardDelegate-BHnZMUhW.js";
|
|
30
|
+
import { $ as Qu } from "./useLocalizedStringFormatter-CSEh15AZ.js";
|
|
31
|
+
import { $ as en } from "./useTextField-B8pM0p6X.js";
|
|
32
|
+
import { c as Ce } from "./clsx-jbLnTBqA.js";
|
|
33
|
+
import { a as un, L as nn } from "./Label-BGMXsSFb.js";
|
|
34
|
+
import { T as Ae } from "./Text-BBFWBNAH.js";
|
|
35
|
+
import { b as on, L as tn, a as ln, c as cn } from "./ListBoxSection-D_kTkvgG.js";
|
|
36
|
+
import { C as pn } from "./chevron-down-DmZMdOiC.js";
|
|
37
|
+
import { u as dn } from "./useLocalizedStringFormatter-aOhh7wdl.js";
|
|
37
38
|
import './assets/ComboBox.css';var ke = {};
|
|
38
39
|
ke = {
|
|
39
40
|
buttonLabel: "عرض المقترحات",
|
|
@@ -94,8 +95,8 @@ Pe = {
|
|
|
94
95
|
listboxLabel: "Návrhy",
|
|
95
96
|
selectedAnnouncement: (e) => `${e.optionText}, vybráno`
|
|
96
97
|
};
|
|
97
|
-
var
|
|
98
|
-
|
|
98
|
+
var Oe = {};
|
|
99
|
+
Oe = {
|
|
99
100
|
buttonLabel: "Vis forslag",
|
|
100
101
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
101
102
|
one: () => `${u.number(e.optionCount)} mulighed tilgængelig`,
|
|
@@ -114,8 +115,8 @@ Ie = {
|
|
|
114
115
|
listboxLabel: "Forslag",
|
|
115
116
|
selectedAnnouncement: (e) => `${e.optionText}, valgt`
|
|
116
117
|
};
|
|
117
|
-
var
|
|
118
|
-
|
|
118
|
+
var Ie = {};
|
|
119
|
+
Ie = {
|
|
119
120
|
buttonLabel: "Empfehlungen anzeigen",
|
|
120
121
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
121
122
|
one: () => `${u.number(e.optionCount)} Option`,
|
|
@@ -174,8 +175,8 @@ Ve = {
|
|
|
174
175
|
buttonLabel: "Show suggestions",
|
|
175
176
|
listboxLabel: "Suggestions"
|
|
176
177
|
};
|
|
177
|
-
var
|
|
178
|
-
|
|
178
|
+
var je = {};
|
|
179
|
+
je = {
|
|
179
180
|
buttonLabel: "Mostrar sugerencias",
|
|
180
181
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
181
182
|
one: () => `${u.number(e.optionCount)} opción`,
|
|
@@ -194,8 +195,8 @@ we = {
|
|
|
194
195
|
listboxLabel: "Sugerencias",
|
|
195
196
|
selectedAnnouncement: (e) => `${e.optionText}, seleccionado`
|
|
196
197
|
};
|
|
197
|
-
var
|
|
198
|
-
|
|
198
|
+
var we = {};
|
|
199
|
+
we = {
|
|
199
200
|
buttonLabel: "Kuva soovitused",
|
|
200
201
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
201
202
|
one: () => `${u.number(e.optionCount)} valik`,
|
|
@@ -214,8 +215,8 @@ Ge = {
|
|
|
214
215
|
listboxLabel: "Soovitused",
|
|
215
216
|
selectedAnnouncement: (e) => `${e.optionText}, valitud`
|
|
216
217
|
};
|
|
217
|
-
var
|
|
218
|
-
|
|
218
|
+
var Ge = {};
|
|
219
|
+
Ge = {
|
|
219
220
|
buttonLabel: "Näytä ehdotukset",
|
|
220
221
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
221
222
|
one: () => `${u.number(e.optionCount)} vaihtoehto`,
|
|
@@ -234,8 +235,8 @@ Me = {
|
|
|
234
235
|
listboxLabel: "Ehdotukset",
|
|
235
236
|
selectedAnnouncement: (e) => `${e.optionText}, valittu`
|
|
236
237
|
};
|
|
237
|
-
var
|
|
238
|
-
|
|
238
|
+
var Me = {};
|
|
239
|
+
Me = {
|
|
239
240
|
buttonLabel: "Afficher les suggestions",
|
|
240
241
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
241
242
|
one: () => `${u.number(e.optionCount)} option`,
|
|
@@ -694,8 +695,8 @@ du = {
|
|
|
694
695
|
listboxLabel: "建议",
|
|
695
696
|
selectedAnnouncement: (e) => `${e.optionText}, 已选择`
|
|
696
697
|
};
|
|
697
|
-
var
|
|
698
|
-
|
|
698
|
+
var ru = {};
|
|
699
|
+
ru = {
|
|
699
700
|
buttonLabel: "顯示建議",
|
|
700
701
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
701
702
|
one: () => `${u.number(e.optionCount)} 選項`,
|
|
@@ -714,19 +715,19 @@ su = {
|
|
|
714
715
|
listboxLabel: "建議",
|
|
715
716
|
selectedAnnouncement: (e) => `${e.optionText}, 已選取`
|
|
716
717
|
};
|
|
717
|
-
var
|
|
718
|
-
|
|
718
|
+
var su = {};
|
|
719
|
+
su = {
|
|
719
720
|
"ar-AE": ke,
|
|
720
721
|
"bg-BG": Ke,
|
|
721
722
|
"cs-CZ": Pe,
|
|
722
|
-
"da-DK":
|
|
723
|
-
"de-DE":
|
|
723
|
+
"da-DK": Oe,
|
|
724
|
+
"de-DE": Ie,
|
|
724
725
|
"el-GR": Re,
|
|
725
726
|
"en-US": Ve,
|
|
726
|
-
"es-ES":
|
|
727
|
-
"et-EE":
|
|
728
|
-
"fi-FI":
|
|
729
|
-
"fr-FR":
|
|
727
|
+
"es-ES": je,
|
|
728
|
+
"et-EE": we,
|
|
729
|
+
"fi-FI": Ge,
|
|
730
|
+
"fr-FR": Me,
|
|
730
731
|
"he-IL": ze,
|
|
731
732
|
"hr-HR": Ne,
|
|
732
733
|
"hu-HU": Ue,
|
|
@@ -749,39 +750,39 @@ ru = {
|
|
|
749
750
|
"tr-TR": cu,
|
|
750
751
|
"uk-UA": pu,
|
|
751
752
|
"zh-CN": du,
|
|
752
|
-
"zh-TW":
|
|
753
|
+
"zh-TW": ru
|
|
753
754
|
};
|
|
754
|
-
function
|
|
755
|
+
function rn(e) {
|
|
755
756
|
return e && e.__esModule ? e.default : e;
|
|
756
757
|
}
|
|
757
758
|
function sn(e, u) {
|
|
758
|
-
let { buttonRef:
|
|
759
|
-
|
|
760
|
-
let E =
|
|
759
|
+
let { buttonRef: i, popoverRef: p, inputRef: t, listBoxRef: d, keyboardDelegate: B, layoutDelegate: b, shouldFocusWrap: x, isReadOnly: F, isDisabled: g } = e, h = y(null);
|
|
760
|
+
i = i ?? h;
|
|
761
|
+
let E = Qu(rn(su), "@react-aria/combobox"), { menuTriggerProps: T, menuProps: D } = Su({
|
|
761
762
|
type: "listbox",
|
|
762
763
|
isDisabled: g || F
|
|
763
|
-
}, u,
|
|
764
|
-
|
|
765
|
-
id:
|
|
764
|
+
}, u, i);
|
|
765
|
+
Du.set(u, {
|
|
766
|
+
id: D.id
|
|
766
767
|
});
|
|
767
|
-
let { collection: f } = u, { disabledKeys: S } = u.selectionManager,
|
|
768
|
+
let { collection: f } = u, { disabledKeys: S } = u.selectionManager, c = J(() => B || new Yu({
|
|
768
769
|
collection: f,
|
|
769
770
|
disabledKeys: S,
|
|
770
|
-
ref:
|
|
771
|
+
ref: d,
|
|
771
772
|
layoutDelegate: b
|
|
772
773
|
}), [
|
|
773
774
|
B,
|
|
774
775
|
b,
|
|
775
776
|
f,
|
|
776
777
|
S,
|
|
777
|
-
|
|
778
|
-
]), { collectionProps: R } =
|
|
778
|
+
d
|
|
779
|
+
]), { collectionProps: R } = Gu({
|
|
779
780
|
selectionManager: u.selectionManager,
|
|
780
|
-
keyboardDelegate:
|
|
781
|
+
keyboardDelegate: c,
|
|
781
782
|
disallowTypeAhead: !0,
|
|
782
783
|
disallowEmptySelection: !0,
|
|
783
784
|
shouldFocusWrap: x,
|
|
784
|
-
ref:
|
|
785
|
+
ref: t,
|
|
785
786
|
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
786
787
|
isVirtualized: !0
|
|
787
788
|
}), Y = Xu(), Q = (n) => {
|
|
@@ -789,14 +790,18 @@ function sn(e, u) {
|
|
|
789
790
|
switch (n.key) {
|
|
790
791
|
case "Enter":
|
|
791
792
|
case "Tab":
|
|
792
|
-
if (u.isOpen && n.key === "Enter" && n.preventDefault(), u.isOpen &&
|
|
793
|
-
let
|
|
794
|
-
if (
|
|
795
|
-
let
|
|
796
|
-
|
|
793
|
+
if (u.isOpen && n.key === "Enter" && n.preventDefault(), u.isOpen && d.current && u.selectionManager.focusedKey != null) {
|
|
794
|
+
let o = u.collection.getItem(u.selectionManager.focusedKey);
|
|
795
|
+
if (o != null && o.props.href) {
|
|
796
|
+
let r = d.current.querySelector(`[data-key="${CSS.escape(u.selectionManager.focusedKey.toString())}"]`);
|
|
797
|
+
n.key === "Enter" && r instanceof HTMLAnchorElement && Y.open(r, n, o.props.href, o.props.routerOptions), u.close();
|
|
798
|
+
break;
|
|
799
|
+
} else if (o != null && o.props.onAction) {
|
|
800
|
+
o.props.onAction(), u.close();
|
|
801
|
+
break;
|
|
797
802
|
}
|
|
798
|
-
|
|
799
|
-
|
|
803
|
+
}
|
|
804
|
+
u.commit();
|
|
800
805
|
break;
|
|
801
806
|
case "Escape":
|
|
802
807
|
(u.selectedKey !== null || u.inputValue === "" || e.allowsCustomValue) && n.continuePropagation(), u.revert();
|
|
@@ -813,12 +818,12 @@ function sn(e, u) {
|
|
|
813
818
|
break;
|
|
814
819
|
}
|
|
815
820
|
}, a = (n) => {
|
|
816
|
-
var
|
|
817
|
-
let
|
|
818
|
-
|
|
821
|
+
var o;
|
|
822
|
+
let r = (i == null ? void 0 : i.current) && i.current === n.relatedTarget, G = (o = p.current) === null || o === void 0 ? void 0 : o.contains(n.relatedTarget);
|
|
823
|
+
r || G || (e.onBlur && e.onBlur(n), u.setFocused(!1));
|
|
819
824
|
}, N = (n) => {
|
|
820
825
|
u.isFocused || (e.onFocus && e.onFocus(n), u.setFocused(!0));
|
|
821
|
-
}, { isInvalid: ee, validationErrors: P, validationDetails: k } = u.displayValidation, { labelProps: v, inputProps: X, descriptionProps: ue, errorMessageProps: U } =
|
|
826
|
+
}, { isInvalid: ee, validationErrors: P, validationDetails: k } = u.displayValidation, { labelProps: v, inputProps: X, descriptionProps: ue, errorMessageProps: U } = en({
|
|
822
827
|
...e,
|
|
823
828
|
onChange: u.setInputValue,
|
|
824
829
|
onKeyDown: F ? e.onKeyDown : qu(u.isOpen && R.onKeyDown, Q, e.onKeyDown),
|
|
@@ -828,107 +833,109 @@ function sn(e, u) {
|
|
|
828
833
|
onFocus: N,
|
|
829
834
|
autoComplete: "off",
|
|
830
835
|
validate: void 0,
|
|
831
|
-
[
|
|
832
|
-
},
|
|
836
|
+
[ju]: u
|
|
837
|
+
}, t), ne = (n) => {
|
|
833
838
|
if (n.pointerType === "touch") {
|
|
834
|
-
var
|
|
835
|
-
(
|
|
839
|
+
var o;
|
|
840
|
+
(o = t.current) === null || o === void 0 || o.focus(), u.toggle(null, "manual");
|
|
836
841
|
}
|
|
837
|
-
},
|
|
842
|
+
}, s = (n) => {
|
|
838
843
|
if (n.pointerType !== "touch") {
|
|
839
|
-
var
|
|
840
|
-
(
|
|
844
|
+
var o;
|
|
845
|
+
(o = t.current) === null || o === void 0 || o.focus(), u.toggle(n.pointerType === "keyboard" || n.pointerType === "virtual" ? "first" : null, "manual");
|
|
841
846
|
}
|
|
842
|
-
},
|
|
843
|
-
id:
|
|
847
|
+
}, O = ve({
|
|
848
|
+
id: T.id,
|
|
844
849
|
"aria-label": E.format("buttonLabel"),
|
|
845
850
|
"aria-labelledby": e["aria-labelledby"] || v.id
|
|
846
851
|
}), V = ve({
|
|
847
|
-
id:
|
|
852
|
+
id: D.id,
|
|
848
853
|
"aria-label": E.format("listboxLabel"),
|
|
849
854
|
"aria-labelledby": e["aria-labelledby"] || v.id
|
|
850
855
|
}), L = y(0), oe = (n) => {
|
|
851
856
|
if (g || F) return;
|
|
852
857
|
if (n.timeStamp - L.current < 500) {
|
|
853
|
-
var
|
|
854
|
-
n.preventDefault(), (
|
|
858
|
+
var o;
|
|
859
|
+
n.preventDefault(), (o = t.current) === null || o === void 0 || o.focus();
|
|
855
860
|
return;
|
|
856
861
|
}
|
|
857
|
-
let
|
|
858
|
-
if (
|
|
862
|
+
let r = n.target.getBoundingClientRect(), G = n.changedTouches[0], H = Math.ceil(r.left + 0.5 * r.width), re = Math.ceil(r.top + 0.5 * r.height);
|
|
863
|
+
if (G.clientX === H && G.clientY === re) {
|
|
859
864
|
var ie;
|
|
860
|
-
n.preventDefault(), (ie =
|
|
865
|
+
n.preventDefault(), (ie = t.current) === null || ie === void 0 || ie.focus(), u.toggle(null, "manual"), L.current = n.timeStamp;
|
|
861
866
|
}
|
|
862
867
|
}, C = u.selectionManager.focusedKey != null && u.isOpen ? u.collection.getItem(u.selectionManager.focusedKey) : void 0;
|
|
863
868
|
var q;
|
|
864
869
|
let K = (q = C == null ? void 0 : C.parentKey) !== null && q !== void 0 ? q : null;
|
|
865
870
|
var W;
|
|
866
|
-
let
|
|
871
|
+
let I = (W = u.selectionManager.focusedKey) !== null && W !== void 0 ? W : null, Z = y(K), j = y(I);
|
|
867
872
|
ce(() => {
|
|
868
|
-
if (be() && C != null &&
|
|
869
|
-
let
|
|
873
|
+
if (be() && C != null && I != null && I !== j.current) {
|
|
874
|
+
let o = u.selectionManager.isSelected(I), r = K != null ? u.collection.getItem(K) : null, G = (r == null ? void 0 : r["aria-label"]) || (typeof (r == null ? void 0 : r.rendered) == "string" ? r.rendered : "") || "";
|
|
870
875
|
var n;
|
|
871
876
|
let H = E.format("focusAnnouncement", {
|
|
872
|
-
isGroupChange: (n =
|
|
873
|
-
groupTitle:
|
|
874
|
-
groupCount:
|
|
875
|
-
...ge(
|
|
877
|
+
isGroupChange: (n = r && K !== Z.current) !== null && n !== void 0 ? n : !1,
|
|
878
|
+
groupTitle: G,
|
|
879
|
+
groupCount: r ? [
|
|
880
|
+
...ge(r, u.collection)
|
|
876
881
|
].length : 0,
|
|
877
882
|
optionText: C["aria-label"] || C.textValue || "",
|
|
878
|
-
isSelected:
|
|
883
|
+
isSelected: o
|
|
879
884
|
});
|
|
880
885
|
ae(H);
|
|
881
886
|
}
|
|
882
|
-
Z.current = K,
|
|
887
|
+
Z.current = K, j.current = I;
|
|
883
888
|
});
|
|
884
|
-
let
|
|
889
|
+
let w = Ju(u.collection), te = y(w), le = y(u.isOpen);
|
|
885
890
|
ce(() => {
|
|
886
891
|
let n = u.isOpen !== le.current && (u.selectionManager.focusedKey == null || be());
|
|
887
|
-
if (u.isOpen && (n ||
|
|
888
|
-
let
|
|
889
|
-
optionCount:
|
|
892
|
+
if (u.isOpen && (n || w !== te.current)) {
|
|
893
|
+
let o = E.format("countAnnouncement", {
|
|
894
|
+
optionCount: w
|
|
890
895
|
});
|
|
891
|
-
ae(
|
|
896
|
+
ae(o);
|
|
892
897
|
}
|
|
893
|
-
te.current =
|
|
898
|
+
te.current = w, le.current = u.isOpen;
|
|
894
899
|
});
|
|
895
900
|
let pe = y(u.selectedKey);
|
|
896
901
|
return ce(() => {
|
|
897
902
|
if (be() && u.isFocused && u.selectedItem && u.selectedKey !== pe.current) {
|
|
898
|
-
let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "",
|
|
903
|
+
let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", o = E.format("selectedAnnouncement", {
|
|
899
904
|
optionText: n
|
|
900
905
|
});
|
|
901
|
-
ae(
|
|
906
|
+
ae(o);
|
|
902
907
|
}
|
|
903
908
|
pe.current = u.selectedKey;
|
|
904
909
|
}), ce(() => {
|
|
905
910
|
if (u.isOpen) return Lu([
|
|
906
|
-
|
|
911
|
+
t.current,
|
|
907
912
|
p.current
|
|
908
913
|
].filter((n) => n != null));
|
|
909
914
|
}, [
|
|
910
915
|
u.isOpen,
|
|
911
|
-
|
|
916
|
+
t,
|
|
912
917
|
p
|
|
913
918
|
]), Zu(() => {
|
|
914
|
-
!C &&
|
|
919
|
+
!C && t.current && Wu(_u(t.current)) === t.current && Mu(t.current, null);
|
|
915
920
|
}, [
|
|
916
921
|
C
|
|
917
|
-
]), {
|
|
922
|
+
]), Hu(d, "react-aria-item-action", u.isOpen ? () => {
|
|
923
|
+
u.close();
|
|
924
|
+
} : void 0), {
|
|
918
925
|
labelProps: v,
|
|
919
926
|
buttonProps: {
|
|
920
|
-
...
|
|
921
|
-
...
|
|
927
|
+
...T,
|
|
928
|
+
...O,
|
|
922
929
|
excludeFromTabOrder: !0,
|
|
923
930
|
preventFocusOnPress: !0,
|
|
924
931
|
onPress: ne,
|
|
925
|
-
onPressStart:
|
|
932
|
+
onPressStart: s,
|
|
926
933
|
isDisabled: g || F
|
|
927
934
|
},
|
|
928
935
|
inputProps: fe(X, {
|
|
929
936
|
role: "combobox",
|
|
930
|
-
"aria-expanded":
|
|
931
|
-
"aria-controls": u.isOpen ?
|
|
937
|
+
"aria-expanded": T["aria-expanded"],
|
|
938
|
+
"aria-controls": u.isOpen ? D.id : void 0,
|
|
932
939
|
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
933
940
|
"aria-autocomplete": "list",
|
|
934
941
|
"aria-activedescendant": C ? yu(u, C.key) : void 0,
|
|
@@ -938,12 +945,13 @@ function sn(e, u) {
|
|
|
938
945
|
// This disable's the macOS Safari spell check auto corrections.
|
|
939
946
|
spellCheck: "false"
|
|
940
947
|
}),
|
|
941
|
-
listBoxProps: fe(
|
|
948
|
+
listBoxProps: fe(D, V, {
|
|
942
949
|
autoFocus: u.focusStrategy || !0,
|
|
943
950
|
shouldUseVirtualFocus: !0,
|
|
944
951
|
shouldSelectOnPressUp: !0,
|
|
945
952
|
shouldFocusOnHover: !0,
|
|
946
|
-
linkBehavior: "selection"
|
|
953
|
+
linkBehavior: "selection",
|
|
954
|
+
UNSTABLE_itemBehavior: "action"
|
|
947
955
|
}),
|
|
948
956
|
descriptionProps: ue,
|
|
949
957
|
errorMessageProps: U,
|
|
@@ -952,168 +960,168 @@ function sn(e, u) {
|
|
|
952
960
|
validationDetails: k
|
|
953
961
|
};
|
|
954
962
|
}
|
|
955
|
-
function
|
|
963
|
+
function $n(e) {
|
|
956
964
|
var u;
|
|
957
|
-
let { defaultFilter:
|
|
958
|
-
e.onSelectionChange && e.onSelectionChange(
|
|
965
|
+
let { defaultFilter: i, menuTrigger: p = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur: B = !0 } = e, [b, x] = z(!1), [F, g] = z(!1), [h, E] = z(null), T = (l) => {
|
|
966
|
+
e.onSelectionChange && e.onSelectionChange(l), l === c && (W(), C());
|
|
959
967
|
};
|
|
960
|
-
var
|
|
961
|
-
let { collection: f, selectionManager: S, selectedKey:
|
|
968
|
+
var D;
|
|
969
|
+
let { collection: f, selectionManager: S, selectedKey: c, setSelectedKey: R, selectedItem: Y, disabledKeys: Q } = zu({
|
|
962
970
|
...e,
|
|
963
|
-
onSelectionChange:
|
|
964
|
-
items: (
|
|
965
|
-
}), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue,
|
|
971
|
+
onSelectionChange: T,
|
|
972
|
+
items: (D = e.items) !== null && D !== void 0 ? D : e.defaultItems
|
|
973
|
+
}), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue, c, f) || "", e.onInputChange), [ee] = z(c), [P] = z(a), k = f, v = J(() => (
|
|
966
974
|
// No default filter if items are controlled.
|
|
967
|
-
e.items != null || !
|
|
975
|
+
e.items != null || !i ? f : an(f, a, i)
|
|
968
976
|
), [
|
|
969
977
|
f,
|
|
970
978
|
a,
|
|
971
|
-
|
|
979
|
+
i,
|
|
972
980
|
e.items
|
|
973
|
-
]), [X, ue] = z(v), U = y("focus"),
|
|
981
|
+
]), [X, ue] = z(v), U = y("focus"), s = Iu({
|
|
974
982
|
...e,
|
|
975
|
-
onOpenChange: (
|
|
976
|
-
e.onOpenChange && e.onOpenChange(
|
|
983
|
+
onOpenChange: (l) => {
|
|
984
|
+
e.onOpenChange && e.onOpenChange(l, l ? U.current : void 0), S.setFocused(l), l || S.setFocusedKey(null);
|
|
977
985
|
},
|
|
978
986
|
isOpen: void 0,
|
|
979
987
|
defaultOpen: void 0
|
|
980
|
-
}),
|
|
988
|
+
}), O = (l = null, $) => {
|
|
981
989
|
let m = $ === "manual" || $ === "focus" && p === "focus";
|
|
982
|
-
(
|
|
983
|
-
}, V = (
|
|
990
|
+
(t || v.size > 0 || m && k.size > 0 || e.items) && (m && !s.isOpen && e.items === void 0 && x(!0), U.current = $, E(l), s.open());
|
|
991
|
+
}, V = (l = null, $) => {
|
|
984
992
|
let m = $ === "manual" || $ === "focus" && p === "focus";
|
|
985
|
-
!(
|
|
993
|
+
!(t || v.size > 0 || m && k.size > 0 || e.items) && !s.isOpen || (m && !s.isOpen && e.items === void 0 && x(!0), s.isOpen || (U.current = $), oe(l));
|
|
986
994
|
}, L = de(() => {
|
|
987
995
|
ue(b ? k : v);
|
|
988
996
|
}, [
|
|
989
997
|
b,
|
|
990
998
|
k,
|
|
991
999
|
v
|
|
992
|
-
]), oe = de((
|
|
993
|
-
|
|
1000
|
+
]), oe = de((l = null) => {
|
|
1001
|
+
s.isOpen && L(), E(l), s.toggle();
|
|
994
1002
|
}, [
|
|
995
|
-
|
|
1003
|
+
s,
|
|
996
1004
|
L
|
|
997
1005
|
]), C = de(() => {
|
|
998
|
-
|
|
1006
|
+
s.isOpen && (L(), s.close());
|
|
999
1007
|
}, [
|
|
1000
|
-
|
|
1008
|
+
s,
|
|
1001
1009
|
L
|
|
1002
1010
|
]), [q, K] = z(a), W = () => {
|
|
1003
|
-
var
|
|
1004
|
-
let m =
|
|
1011
|
+
var l, $;
|
|
1012
|
+
let m = c != null && ($ = (l = f.getItem(c)) === null || l === void 0 ? void 0 : l.textValue) !== null && $ !== void 0 ? $ : "";
|
|
1005
1013
|
K(m), N(m);
|
|
1006
1014
|
};
|
|
1007
|
-
var
|
|
1008
|
-
let
|
|
1009
|
-
var
|
|
1010
|
-
let te = y(
|
|
1015
|
+
var I, Z;
|
|
1016
|
+
let j = y((Z = (I = e.selectedKey) !== null && I !== void 0 ? I : e.defaultSelectedKey) !== null && Z !== void 0 ? Z : null);
|
|
1017
|
+
var w;
|
|
1018
|
+
let te = y(c != null && (w = (u = f.getItem(c)) === null || u === void 0 ? void 0 : u.textValue) !== null && w !== void 0 ? w : "");
|
|
1011
1019
|
ce(() => {
|
|
1012
|
-
var
|
|
1013
|
-
F && (v.size > 0 ||
|
|
1020
|
+
var l;
|
|
1021
|
+
F && (v.size > 0 || t) && !s.isOpen && a !== q && p !== "manual" && O(null, "input"), !b && !t && s.isOpen && v.size === 0 && C(), c != null && c !== j.current && C(), a !== q && (S.setFocusedKey(null), x(!1), a === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && R(null)), c !== j.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? W() : q !== a && K(a);
|
|
1014
1022
|
var $;
|
|
1015
|
-
let m =
|
|
1016
|
-
!F &&
|
|
1023
|
+
let m = c != null && ($ = (l = f.getItem(c)) === null || l === void 0 ? void 0 : l.textValue) !== null && $ !== void 0 ? $ : "";
|
|
1024
|
+
!F && c != null && e.inputValue === void 0 && c === j.current && te.current !== m && (K(m), N(m)), j.current = c, te.current = m;
|
|
1017
1025
|
});
|
|
1018
|
-
let le =
|
|
1026
|
+
let le = wu({
|
|
1019
1027
|
...e,
|
|
1020
1028
|
value: J(() => ({
|
|
1021
1029
|
inputValue: a,
|
|
1022
|
-
selectedKey:
|
|
1030
|
+
selectedKey: c
|
|
1023
1031
|
}), [
|
|
1024
1032
|
a,
|
|
1025
|
-
|
|
1033
|
+
c
|
|
1026
1034
|
])
|
|
1027
1035
|
}), pe = () => {
|
|
1028
|
-
|
|
1036
|
+
d && c == null ? n() : o();
|
|
1029
1037
|
}, n = () => {
|
|
1030
|
-
|
|
1031
|
-
},
|
|
1038
|
+
j.current = null, R(null), C();
|
|
1039
|
+
}, o = () => {
|
|
1032
1040
|
if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
|
|
1033
|
-
var
|
|
1034
|
-
(
|
|
1041
|
+
var l, $;
|
|
1042
|
+
(l = e.onSelectionChange) === null || l === void 0 || l.call(e, c);
|
|
1035
1043
|
var m;
|
|
1036
|
-
let au =
|
|
1044
|
+
let au = c != null && (m = ($ = f.getItem(c)) === null || $ === void 0 ? void 0 : $.textValue) !== null && m !== void 0 ? m : "";
|
|
1037
1045
|
K(au), C();
|
|
1038
1046
|
} else
|
|
1039
1047
|
W(), C();
|
|
1040
1048
|
};
|
|
1041
|
-
const
|
|
1042
|
-
if (
|
|
1043
|
-
var
|
|
1044
|
-
const m =
|
|
1045
|
-
a === m ?
|
|
1049
|
+
const r = () => {
|
|
1050
|
+
if (d) {
|
|
1051
|
+
var l, $;
|
|
1052
|
+
const m = c != null && ($ = (l = f.getItem(c)) === null || l === void 0 ? void 0 : l.textValue) !== null && $ !== void 0 ? $ : "";
|
|
1053
|
+
a === m ? o() : n();
|
|
1046
1054
|
} else
|
|
1047
|
-
|
|
1055
|
+
o();
|
|
1048
1056
|
};
|
|
1049
|
-
let
|
|
1050
|
-
|
|
1051
|
-
}, H = y(a),
|
|
1052
|
-
|
|
1053
|
-
}, ie = J(() =>
|
|
1054
|
-
|
|
1057
|
+
let G = () => {
|
|
1058
|
+
s.isOpen && S.focusedKey != null ? c === S.focusedKey ? o() : R(S.focusedKey) : r();
|
|
1059
|
+
}, H = y(a), re = (l) => {
|
|
1060
|
+
l ? (H.current = a, p === "focus" && !e.isReadOnly && O(null, "focus")) : (B && r(), a !== H.current && le.commitValidation()), g(l);
|
|
1061
|
+
}, ie = J(() => s.isOpen ? b ? k : v : X, [
|
|
1062
|
+
s.isOpen,
|
|
1055
1063
|
k,
|
|
1056
1064
|
v,
|
|
1057
1065
|
b,
|
|
1058
1066
|
X
|
|
1059
1067
|
]);
|
|
1060
|
-
var
|
|
1061
|
-
let me = (
|
|
1068
|
+
var se;
|
|
1069
|
+
let me = (se = e.defaultSelectedKey) !== null && se !== void 0 ? se : ee;
|
|
1062
1070
|
var $e;
|
|
1063
1071
|
return {
|
|
1064
1072
|
...le,
|
|
1065
|
-
...
|
|
1073
|
+
...s,
|
|
1066
1074
|
focusStrategy: h,
|
|
1067
1075
|
toggle: V,
|
|
1068
|
-
open:
|
|
1069
|
-
close:
|
|
1076
|
+
open: O,
|
|
1077
|
+
close: r,
|
|
1070
1078
|
selectionManager: S,
|
|
1071
|
-
selectedKey:
|
|
1079
|
+
selectedKey: c,
|
|
1072
1080
|
defaultSelectedKey: me,
|
|
1073
1081
|
setSelectedKey: R,
|
|
1074
1082
|
disabledKeys: Q,
|
|
1075
1083
|
isFocused: F,
|
|
1076
|
-
setFocused:
|
|
1084
|
+
setFocused: re,
|
|
1077
1085
|
selectedItem: Y,
|
|
1078
1086
|
collection: ie,
|
|
1079
1087
|
inputValue: a,
|
|
1080
1088
|
defaultInputValue: ($e = Be(e.defaultInputValue, me, f)) !== null && $e !== void 0 ? $e : P,
|
|
1081
1089
|
setInputValue: N,
|
|
1082
|
-
commit:
|
|
1090
|
+
commit: G,
|
|
1083
1091
|
revert: pe
|
|
1084
1092
|
};
|
|
1085
1093
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return new Nu($u(e, e, u,
|
|
1094
|
+
function an(e, u, i) {
|
|
1095
|
+
return new Nu($u(e, e, u, i));
|
|
1088
1096
|
}
|
|
1089
|
-
function $u(e, u,
|
|
1090
|
-
let
|
|
1091
|
-
for (let
|
|
1092
|
-
if (
|
|
1093
|
-
let B = $u(e, ge(
|
|
1097
|
+
function $u(e, u, i, p) {
|
|
1098
|
+
let t = [];
|
|
1099
|
+
for (let d of u)
|
|
1100
|
+
if (d.type === "section" && d.hasChildNodes) {
|
|
1101
|
+
let B = $u(e, ge(d, e), i, p);
|
|
1094
1102
|
[
|
|
1095
1103
|
...B
|
|
1096
|
-
].some((b) => b.type === "item") &&
|
|
1097
|
-
...
|
|
1104
|
+
].some((b) => b.type === "item") && t.push({
|
|
1105
|
+
...d,
|
|
1098
1106
|
childNodes: B
|
|
1099
1107
|
});
|
|
1100
|
-
} else
|
|
1101
|
-
...
|
|
1102
|
-
}) :
|
|
1103
|
-
...
|
|
1108
|
+
} else d.type === "item" && p(d.textValue, i) ? t.push({
|
|
1109
|
+
...d
|
|
1110
|
+
}) : d.type !== "item" && t.push({
|
|
1111
|
+
...d
|
|
1104
1112
|
});
|
|
1105
|
-
return
|
|
1113
|
+
return t;
|
|
1106
1114
|
}
|
|
1107
|
-
function Be(e, u,
|
|
1115
|
+
function Be(e, u, i) {
|
|
1108
1116
|
if (e == null) {
|
|
1109
|
-
var p,
|
|
1110
|
-
if (u != null) return (
|
|
1117
|
+
var p, t;
|
|
1118
|
+
if (u != null) return (t = (p = i.getItem(u)) === null || p === void 0 ? void 0 : p.textValue) !== null && t !== void 0 ? t : "";
|
|
1111
1119
|
}
|
|
1112
1120
|
return e;
|
|
1113
1121
|
}
|
|
1114
|
-
const
|
|
1115
|
-
[u,
|
|
1116
|
-
let { children: p, isDisabled:
|
|
1122
|
+
const bn = /* @__PURE__ */ Ee(null), Cn = /* @__PURE__ */ Ee(null), mn = /* @__PURE__ */ bu(function(u, i) {
|
|
1123
|
+
[u, i] = mu(u, i, bn);
|
|
1124
|
+
let { children: p, isDisabled: t = !1, isInvalid: d = !1, isRequired: B = !1 } = u, b = J(() => {
|
|
1117
1125
|
var x;
|
|
1118
1126
|
return /* @__PURE__ */ _.createElement(Se.Provider, {
|
|
1119
1127
|
value: {
|
|
@@ -1121,41 +1129,41 @@ const an = /* @__PURE__ */ Ee(null), bn = /* @__PURE__ */ Ee(null), Cn = /* @__P
|
|
|
1121
1129
|
}
|
|
1122
1130
|
}, typeof p == "function" ? p({
|
|
1123
1131
|
isOpen: !1,
|
|
1124
|
-
isDisabled:
|
|
1125
|
-
isInvalid:
|
|
1132
|
+
isDisabled: t,
|
|
1133
|
+
isInvalid: d,
|
|
1126
1134
|
isRequired: B,
|
|
1127
1135
|
defaultChildren: null
|
|
1128
1136
|
}) : p);
|
|
1129
1137
|
}, [
|
|
1130
1138
|
p,
|
|
1131
|
-
|
|
1132
|
-
|
|
1139
|
+
t,
|
|
1140
|
+
d,
|
|
1133
1141
|
B,
|
|
1134
1142
|
u.items,
|
|
1135
1143
|
u.defaultItems
|
|
1136
1144
|
]);
|
|
1137
1145
|
return /* @__PURE__ */ _.createElement(Ku, {
|
|
1138
1146
|
content: b
|
|
1139
|
-
}, (x) => /* @__PURE__ */ _.createElement(
|
|
1147
|
+
}, (x) => /* @__PURE__ */ _.createElement(hn, {
|
|
1140
1148
|
props: u,
|
|
1141
1149
|
collection: x,
|
|
1142
|
-
comboBoxRef:
|
|
1150
|
+
comboBoxRef: i
|
|
1143
1151
|
}));
|
|
1144
|
-
}),
|
|
1145
|
-
De,
|
|
1152
|
+
}), xn = [
|
|
1146
1153
|
Te,
|
|
1154
|
+
De,
|
|
1147
1155
|
Fe,
|
|
1148
1156
|
ye,
|
|
1149
1157
|
Le
|
|
1150
1158
|
];
|
|
1151
|
-
function
|
|
1152
|
-
let { name: p, formValue:
|
|
1153
|
-
|
|
1159
|
+
function hn({ props: e, collection: u, comboBoxRef: i }) {
|
|
1160
|
+
let { name: p, formValue: t = "key", allowsCustomValue: d } = e;
|
|
1161
|
+
d && (t = "text");
|
|
1154
1162
|
let { validationBehavior: B } = xu(Eu) || {};
|
|
1155
1163
|
var b, x;
|
|
1156
1164
|
let F = (x = (b = e.validationBehavior) !== null && b !== void 0 ? b : B) !== null && x !== void 0 ? x : "native", { contains: g } = Vu({
|
|
1157
1165
|
sensitivity: "base"
|
|
1158
|
-
}), h =
|
|
1166
|
+
}), h = $n({
|
|
1159
1167
|
defaultFilter: e.defaultFilter || g,
|
|
1160
1168
|
...e,
|
|
1161
1169
|
// If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
|
|
@@ -1163,28 +1171,28 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1163
1171
|
children: void 0,
|
|
1164
1172
|
collection: u,
|
|
1165
1173
|
validationBehavior: F
|
|
1166
|
-
}), E = y(null),
|
|
1174
|
+
}), E = y(null), T = y(null), D = y(null), f = y(null), [S, c] = hu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: R, inputProps: Y, listBoxProps: Q, labelProps: a, descriptionProps: N, errorMessageProps: ee, ...P } = sn({
|
|
1167
1175
|
...fu(e),
|
|
1168
|
-
label:
|
|
1169
|
-
inputRef:
|
|
1176
|
+
label: c,
|
|
1177
|
+
inputRef: T,
|
|
1170
1178
|
buttonRef: E,
|
|
1171
|
-
listBoxRef:
|
|
1179
|
+
listBoxRef: D,
|
|
1172
1180
|
popoverRef: f,
|
|
1173
|
-
name:
|
|
1181
|
+
name: t === "text" ? p : void 0,
|
|
1174
1182
|
validationBehavior: F
|
|
1175
1183
|
}, h), [k, v] = z(null), X = de(() => {
|
|
1176
|
-
if (
|
|
1177
|
-
var
|
|
1178
|
-
let V = (
|
|
1184
|
+
if (T.current) {
|
|
1185
|
+
var O;
|
|
1186
|
+
let V = (O = E.current) === null || O === void 0 ? void 0 : O.getBoundingClientRect(), L = T.current.getBoundingClientRect(), oe = V ? Math.min(V.left, L.left) : L.left, C = V ? Math.max(V.right, L.right) : L.right;
|
|
1179
1187
|
v(C - oe + "px");
|
|
1180
1188
|
}
|
|
1181
1189
|
}, [
|
|
1182
1190
|
E,
|
|
1183
|
-
|
|
1191
|
+
T,
|
|
1184
1192
|
v
|
|
1185
1193
|
]);
|
|
1186
1194
|
Ru({
|
|
1187
|
-
ref:
|
|
1195
|
+
ref: T,
|
|
1188
1196
|
onResize: X
|
|
1189
1197
|
});
|
|
1190
1198
|
let ue = J(() => ({
|
|
@@ -1201,26 +1209,26 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1201
1209
|
...e,
|
|
1202
1210
|
values: ue,
|
|
1203
1211
|
defaultClassName: "react-aria-ComboBox"
|
|
1204
|
-
}), ne =
|
|
1212
|
+
}), ne = Ou(e, {
|
|
1205
1213
|
global: !0
|
|
1206
1214
|
});
|
|
1207
1215
|
delete ne.id;
|
|
1208
|
-
var
|
|
1216
|
+
var s;
|
|
1209
1217
|
return /* @__PURE__ */ _.createElement(Au, {
|
|
1210
1218
|
values: [
|
|
1211
1219
|
[
|
|
1212
|
-
|
|
1220
|
+
Cn,
|
|
1213
1221
|
h
|
|
1214
1222
|
],
|
|
1215
1223
|
[
|
|
1216
|
-
|
|
1224
|
+
Te,
|
|
1217
1225
|
{
|
|
1218
1226
|
...a,
|
|
1219
1227
|
ref: S
|
|
1220
1228
|
}
|
|
1221
1229
|
],
|
|
1222
1230
|
[
|
|
1223
|
-
|
|
1231
|
+
De,
|
|
1224
1232
|
{
|
|
1225
1233
|
...R,
|
|
1226
1234
|
ref: E,
|
|
@@ -1231,7 +1239,7 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1231
1239
|
Fe,
|
|
1232
1240
|
{
|
|
1233
1241
|
...Y,
|
|
1234
|
-
ref:
|
|
1242
|
+
ref: T
|
|
1235
1243
|
}
|
|
1236
1244
|
],
|
|
1237
1245
|
[
|
|
@@ -1242,22 +1250,22 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1242
1250
|
ku,
|
|
1243
1251
|
{
|
|
1244
1252
|
ref: f,
|
|
1245
|
-
triggerRef:
|
|
1246
|
-
scrollRef:
|
|
1253
|
+
triggerRef: T,
|
|
1254
|
+
scrollRef: D,
|
|
1247
1255
|
placement: "bottom start",
|
|
1248
1256
|
isNonModal: !0,
|
|
1249
1257
|
trigger: "ComboBox",
|
|
1250
1258
|
style: {
|
|
1251
1259
|
"--trigger-width": k
|
|
1252
1260
|
},
|
|
1253
|
-
clearContexts:
|
|
1261
|
+
clearContexts: xn
|
|
1254
1262
|
}
|
|
1255
1263
|
],
|
|
1256
1264
|
[
|
|
1257
1265
|
Se,
|
|
1258
1266
|
{
|
|
1259
1267
|
...Q,
|
|
1260
|
-
ref:
|
|
1268
|
+
ref: D
|
|
1261
1269
|
}
|
|
1262
1270
|
],
|
|
1263
1271
|
[
|
|
@@ -1288,63 +1296,63 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1288
1296
|
}, /* @__PURE__ */ _.createElement("div", {
|
|
1289
1297
|
...ne,
|
|
1290
1298
|
...U,
|
|
1291
|
-
ref:
|
|
1299
|
+
ref: i,
|
|
1292
1300
|
slot: e.slot || void 0,
|
|
1293
1301
|
"data-focused": h.isFocused || void 0,
|
|
1294
1302
|
"data-open": h.isOpen || void 0,
|
|
1295
1303
|
"data-disabled": e.isDisabled || void 0,
|
|
1296
1304
|
"data-invalid": P.isInvalid || void 0,
|
|
1297
1305
|
"data-required": e.isRequired || void 0
|
|
1298
|
-
}), p &&
|
|
1306
|
+
}), p && t === "key" && /* @__PURE__ */ _.createElement("input", {
|
|
1299
1307
|
type: "hidden",
|
|
1300
1308
|
name: p,
|
|
1301
1309
|
form: e.form,
|
|
1302
|
-
value: (
|
|
1310
|
+
value: (s = h.selectedKey) !== null && s !== void 0 ? s : ""
|
|
1303
1311
|
}));
|
|
1304
1312
|
}
|
|
1305
|
-
const
|
|
1306
|
-
combobox:
|
|
1307
|
-
inputField:
|
|
1308
|
-
medium:
|
|
1309
|
-
wrap:
|
|
1310
|
-
button:
|
|
1311
|
-
icon:
|
|
1313
|
+
const fn = "_combobox_j6di5_1", vn = "_inputField_j6di5_6", An = "_medium_j6di5_28", Bn = "_wrap_j6di5_68", En = "_button_j6di5_74", Tn = "_icon_j6di5_106", Dn = "_emptyState_j6di5_112", M = {
|
|
1314
|
+
combobox: fn,
|
|
1315
|
+
inputField: vn,
|
|
1316
|
+
medium: An,
|
|
1317
|
+
wrap: Bn,
|
|
1318
|
+
button: En,
|
|
1319
|
+
icon: Tn,
|
|
1312
1320
|
emptyState: Dn
|
|
1313
|
-
},
|
|
1314
|
-
en:
|
|
1315
|
-
sv:
|
|
1321
|
+
}, yn = { showList: "Show list", noResultsFound: "No results found" }, Fn = { showList: "Visa lista", noResultsFound: "Inga träffar" }, Sn = {
|
|
1322
|
+
en: yn,
|
|
1323
|
+
sv: Fn
|
|
1316
1324
|
};
|
|
1317
|
-
function
|
|
1325
|
+
function bo({
|
|
1318
1326
|
label: e,
|
|
1319
1327
|
description: u,
|
|
1320
|
-
errorMessage:
|
|
1328
|
+
errorMessage: i,
|
|
1321
1329
|
children: p,
|
|
1322
|
-
items:
|
|
1323
|
-
className:
|
|
1330
|
+
items: t,
|
|
1331
|
+
className: d,
|
|
1324
1332
|
errorPosition: B = "top",
|
|
1325
1333
|
size: b = "large",
|
|
1326
1334
|
popover: x,
|
|
1327
1335
|
...F
|
|
1328
1336
|
}) {
|
|
1329
|
-
const g = _.useRef(null), h =
|
|
1330
|
-
var
|
|
1331
|
-
|
|
1337
|
+
const g = _.useRef(null), h = dn(Sn), E = (T) => {
|
|
1338
|
+
var D;
|
|
1339
|
+
T.currentTarget.value && ((D = g.current) == null || D.select());
|
|
1332
1340
|
};
|
|
1333
1341
|
return /* @__PURE__ */ xe(
|
|
1334
|
-
|
|
1342
|
+
mn,
|
|
1335
1343
|
{
|
|
1336
|
-
className: Ce(
|
|
1344
|
+
className: Ce(M.combobox, d),
|
|
1337
1345
|
...F,
|
|
1338
1346
|
children: [
|
|
1339
|
-
/* @__PURE__ */ A(
|
|
1347
|
+
/* @__PURE__ */ A(un, { popover: x, children: e && /* @__PURE__ */ A(nn, { children: e }) }),
|
|
1340
1348
|
u && /* @__PURE__ */ A(Ae, { slot: "description", children: u }),
|
|
1341
|
-
B === "top" && /* @__PURE__ */ A(he, { "data-testid": "fieldError", children:
|
|
1342
|
-
/* @__PURE__ */ xe("div", { className:
|
|
1349
|
+
B === "top" && /* @__PURE__ */ A(he, { "data-testid": "fieldError", children: i }),
|
|
1350
|
+
/* @__PURE__ */ xe("div", { className: M.wrap, children: [
|
|
1343
1351
|
/* @__PURE__ */ A(
|
|
1344
|
-
|
|
1352
|
+
Tu,
|
|
1345
1353
|
{
|
|
1346
|
-
className: Ce(
|
|
1347
|
-
[
|
|
1354
|
+
className: Ce(M.inputField, {
|
|
1355
|
+
[M.medium]: b === "medium"
|
|
1348
1356
|
}),
|
|
1349
1357
|
onMouseUp: E,
|
|
1350
1358
|
ref: g
|
|
@@ -1353,17 +1361,17 @@ function $o({
|
|
|
1353
1361
|
/* @__PURE__ */ A(
|
|
1354
1362
|
Cu,
|
|
1355
1363
|
{
|
|
1356
|
-
className: Ce(
|
|
1357
|
-
[
|
|
1364
|
+
className: Ce(M.button, {
|
|
1365
|
+
[M.medium]: b === "medium"
|
|
1358
1366
|
}),
|
|
1359
1367
|
"aria-label": h.format("showList"),
|
|
1360
1368
|
children: /* @__PURE__ */ A(
|
|
1361
1369
|
"div",
|
|
1362
1370
|
{
|
|
1363
|
-
className:
|
|
1371
|
+
className: M.icon,
|
|
1364
1372
|
"aria-hidden": "true",
|
|
1365
1373
|
children: /* @__PURE__ */ A(
|
|
1366
|
-
|
|
1374
|
+
pn,
|
|
1367
1375
|
{
|
|
1368
1376
|
size: 20,
|
|
1369
1377
|
"aria-hidden": !0
|
|
@@ -1374,12 +1382,12 @@ function $o({
|
|
|
1374
1382
|
}
|
|
1375
1383
|
)
|
|
1376
1384
|
] }),
|
|
1377
|
-
B === "bottom" && /* @__PURE__ */ A(he, { "data-testid": "fieldError", children:
|
|
1378
|
-
/* @__PURE__ */ A(
|
|
1379
|
-
|
|
1385
|
+
B === "bottom" && /* @__PURE__ */ A(he, { "data-testid": "fieldError", children: i }),
|
|
1386
|
+
/* @__PURE__ */ A(on, { children: /* @__PURE__ */ A(
|
|
1387
|
+
tn,
|
|
1380
1388
|
{
|
|
1381
|
-
items:
|
|
1382
|
-
renderEmptyState: () => /* @__PURE__ */ A(Ae, { className:
|
|
1389
|
+
items: t,
|
|
1390
|
+
renderEmptyState: () => /* @__PURE__ */ A(Ae, { className: M.emptyState, children: h.format("noResultsFound") }),
|
|
1383
1391
|
children: p
|
|
1384
1392
|
}
|
|
1385
1393
|
) })
|
|
@@ -1387,14 +1395,14 @@ function $o({
|
|
|
1387
1395
|
}
|
|
1388
1396
|
);
|
|
1389
1397
|
}
|
|
1390
|
-
function
|
|
1391
|
-
return /* @__PURE__ */ A(
|
|
1398
|
+
function Ln(e) {
|
|
1399
|
+
return /* @__PURE__ */ A(ln, { ...e });
|
|
1392
1400
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return /* @__PURE__ */ A(
|
|
1401
|
+
function Co(e) {
|
|
1402
|
+
return /* @__PURE__ */ A(cn, { ...e, children: /* @__PURE__ */ A(Pu, { items: e.children, children: (u) => /* @__PURE__ */ A(Ln, { children: u.name }, u.id) }) });
|
|
1395
1403
|
}
|
|
1396
1404
|
export {
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1405
|
+
bo as C,
|
|
1406
|
+
Ln as a,
|
|
1407
|
+
Co as b
|
|
1400
1408
|
};
|