@midas-ds/components 15.2.1 → 15.2.2
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-8UtB6O1X.js → AccordionItem-B_49vBml.js} +58 -58
- package/AccordionItem-C-gkv3jn.cjs +1 -0
- package/{Breadcrumbs-BenPNv8Z.js → Breadcrumbs-BKft9SZ9.js} +8 -8
- package/{Breadcrumbs-BBDGxc68.cjs → Breadcrumbs-G8PykxwF.cjs} +1 -1
- package/{Button-DdXFHfXw.js → Button-Bb0wSnh4.js} +1 -1
- package/Button-BuelSBWx.cjs +1 -0
- package/{Button-BEWKXjlP.cjs → Button-CaPoPCq8.cjs} +1 -1
- package/{Button-BbfVT9Yl.js → Button-DQKRTkoz.js} +8 -8
- package/CHANGELOG.md +7 -0
- package/{Card-CdqGFff2.js → Card-BIx_JcUG.js} +4 -4
- package/{Card-Db9xdzJ0.cjs → Card-Du2Tzg4R.cjs} +1 -1
- package/CharacterCounter-C8PalBAH.cjs +1 -0
- package/CharacterCounter-mifF3s5f.js +22 -0
- package/{Checkbox-ujNi8mrO.js → Checkbox-CsITchPQ.js} +68 -75
- package/Checkbox-LGIr8OfT.cjs +1 -0
- package/CheckboxGroup-BdcEnLWf.cjs +1 -0
- package/{CheckboxGroup-BeBThHOu.js → CheckboxGroup-Cn5j_R5a.js} +44 -42
- package/{Collection-BkxwF21i.js → Collection-CXAXUgCh.js} +12 -12
- package/Collection-Dq97IKYm.cjs +1 -0
- package/ColorSchemeSwitch-AM8Xon5u.cjs +1 -0
- package/{ColorSchemeSwitch-aF2UxI20.js → ColorSchemeSwitch-DK2w93PC.js} +5 -23
- package/{ComboBox-BGXUTKrW.js → ComboBox-BFfUWFb-.js} +59 -60
- package/{ComboBox-lteAZwCb.cjs → ComboBox-_fqwvHy1.cjs} +1 -1
- package/{DateField-snXaUoBR.js → DateField-CJkMWNOU.js} +4 -4
- package/{DateField-ZPcapPji.cjs → DateField-CuEzECWT.cjs} +1 -1
- package/{DateInputDivider-BjVsNVEk.js → DateInputDivider-DCOj8K0x.js} +43 -43
- package/DateInputDivider-DJN5KyLX.cjs +1 -0
- package/DateRangePicker-BleP75yR.cjs +1 -0
- package/{DateRangePicker-CgvPZfMd.js → DateRangePicker-Dwd6n5Ep.js} +64 -69
- package/{Dialog-DtOf0vWx.cjs → Dialog-DOXrOfUr.cjs} +1 -1
- package/{Dialog-D4Py85wi.js → Dialog-F3u8agGf.js} +43 -43
- package/{Dialog-CPuJA2fm.js → Dialog-OKCVfgWq.js} +11 -11
- package/Dialog-XOUP-FA_.cjs +6 -0
- package/{DragAndDrop-DF0VoPJw.js → DragAndDrop-37cBrgqG.js} +7 -7
- package/DragAndDrop-pskCjm3i.cjs +1 -0
- package/Dropdown-C-2k1le5.cjs +1 -0
- package/{Dropdown-B4lwe0Hn.js → Dropdown-yIguICs_.js} +4 -10
- package/FieldError-DQ61agyq.js +48 -0
- package/FieldError-DwYQXCwP.cjs +1 -0
- package/{FileUpload-DLBP3VPp.js → FileUpload-B3KSWqbo.js} +16 -16
- package/{FileUpload-C0TjNkuh.cjs → FileUpload-DsTi9F39.cjs} +2 -2
- package/{Group-B0Wj9pI8.cjs → Group-BGDzFZ4R.cjs} +1 -1
- package/{Group-BAd7alBM.js → Group-C-bh9aEE.js} +4 -4
- package/{Heading-CCoGfKQ8.js → Heading-BRErvUe8.js} +1 -1
- package/{Heading-x7y3xadc.cjs → Heading-DWSQCI4U.cjs} +1 -1
- package/InfoBanner-BY-ATC3B.cjs +1 -0
- package/InfoBanner-DU8GMggz.js +72 -0
- package/{Input-CQzv-D9g.js → Input-B6G4aU36.js} +4 -4
- package/{Input-Bda0PCu5.cjs → Input-CpMWCSE3.cjs} +1 -1
- package/Label-DkNtFYv5.cjs +1 -0
- package/Label-knQhhLVp.js +74 -0
- package/Layout-B6EeXI6A.cjs +1 -0
- package/{Layout-FveYuBny.js → Layout-DTTpCtPx.js} +160 -179
- package/{Link-BudFjYrw.js → Link-BEXS7vVU.js} +5 -11
- package/Link-BPg_SBiF.cjs +1 -0
- package/{Link-DRU6Qzia.cjs → Link-MUiihlbG.cjs} +1 -1
- package/{Link-l-nMP-Zd.js → Link-bblcx0a9.js} +7 -7
- package/{LinkButton-DP9W-E32.js → LinkButton-Dr3wO2Gq.js} +5 -11
- package/LinkButton-zk257klG.cjs +1 -0
- package/ListBox-BDEzuwgf.cjs +1 -0
- package/ListBox-BJLtPJiW.cjs +1 -0
- package/{ListBox-5GK4ZRj1.js → ListBox-CEkHNTKf.js} +34 -34
- package/{ListBox-CfzKpJFW.js → ListBox-TsgvK95f.js} +26 -27
- package/{ListBoxLoadMoreItem-10BeO9ux.cjs → ListBoxLoadMoreItem-Bpp_Sab2.cjs} +1 -1
- package/{ListBoxLoadMoreItem-k-uwDi4f.js → ListBoxLoadMoreItem-z7Cpu0NS.js} +4 -4
- package/{ListBoxSection-XoMfdRLd.js → ListBoxSection-C-7JFypr.js} +4 -4
- package/{ListBoxSection-B5l2LIMZ.cjs → ListBoxSection-DcajcZMK.cjs} +1 -1
- package/ListKeyboardDelegate-6U5oNrPf.cjs +1 -0
- package/{ListKeyboardDelegate-BBmpJ-2O.js → ListKeyboardDelegate-RT2g6YNq.js} +9 -9
- package/{LocalizedStringFormatter-D-4Qyql0.js → LocalizedStringFormatter-B30riBJg.js} +1 -1
- package/LocalizedStringFormatter-COUSbzAQ.cjs +1 -0
- package/{Logo-DLlt576_.js → Logo-DJIcUslN.js} +1 -1
- package/{Logo-4tRnV4Su.cjs → Logo-YY9hQ8G3.cjs} +1 -1
- package/{OverlayArrow-CjGslX2c.js → OverlayArrow--IqDwz6a.js} +26 -26
- package/OverlayArrow-C2rMXHUL.cjs +1 -0
- package/{Popover-DpB0XDBp.cjs → Popover-DatBJsbE.cjs} +1 -1
- package/{Popover-CS8Yyfrq.js → Popover-wdMVjcxB.js} +2 -2
- package/PressResponder-DNelELQh.cjs +1 -0
- package/{PressResponder-BMj6Zvbn.js → PressResponder-zxT2DkkQ.js} +5 -5
- package/ProgressBar-Cp0-AYZG.js +53 -0
- package/ProgressBar-DkpC1juo.cjs +1 -0
- package/{Radio-CNO4IHkf.js → Radio-BPNKJKOP.js} +20 -20
- package/Radio-BxWwVigT.cjs +1 -0
- package/RangeCalendar-BNrmWgzG.cjs +1 -0
- package/{RangeCalendar-DKsuoiPF.js → RangeCalendar-vgnMNbq9.js} +31 -37
- package/{SearchField-3XoN9q0k.js → SearchField-DPfxzKjv.js} +124 -131
- package/SearchField-o3f8qUIH.cjs +1 -0
- package/Select-CBDKZpHJ.js +672 -0
- package/Select-C_NA-Rmt.cjs +1 -0
- package/Select-CsKzomrZ.cjs +1 -0
- package/{Select-oiNYST-S.js → Select-L_SkM5rY.js} +118 -118
- package/{SelectionIndicator-C2E23-zO.js → SelectionIndicator-B5J-eND9.js} +16 -16
- package/SelectionIndicator-CD2Lb431.cjs +1 -0
- package/SelectionManager-C4hvFZl0.cjs +1 -0
- package/{SelectionManager-DoNLJm8c.js → SelectionManager-bnxBDhgb.js} +20 -20
- package/{Separator-DCi4bnBr.cjs → Separator--v6lgpnX.cjs} +1 -1
- package/{Separator-CSyYDGNE.cjs → Separator-CYPstw7z.cjs} +1 -1
- package/{Separator-CQfDz_zr.js → Separator-Cxt7kicM.js} +6 -6
- package/{Separator-DLr4kUJD.js → Separator-DNzGXwgr.js} +4 -4
- package/{Spinner-D6Fcu_Dp.js → Spinner-BY-ql54i.js} +4 -10
- package/{Spinner-DIapnvIz.cjs → Spinner-Diy-6pvn.cjs} +1 -6
- package/{TabList-BBmBumm6.js → TabList-B3171e0b.js} +17 -17
- package/TabList-DPmDWfKk.cjs +1 -0
- package/Table-BUdVtD4F.cjs +1 -0
- package/{Table-3x_iGkVe.js → Table-CbogM0Ti.js} +49 -67
- package/Tag-Bd8ql_zX.cjs +1 -0
- package/{Tag-DX1X_NZE.js → Tag-DbNUEevV.js} +29 -29
- package/{Text-CnY7jiPS.js → Text-6Fdknq88.js} +1 -1
- package/{Text-bqP9NeVg.js → Text-B30xuDOt.js} +1 -1
- package/{Text-0wXj3J8E.cjs → Text-BiDSbNaP.cjs} +1 -1
- package/{Text-DUIBTA3N.cjs → Text-D29KP4_q.cjs} +1 -1
- package/{TextArea-Bzgu6xU_.js → TextArea-CPNWfdbi.js} +9 -9
- package/{TextArea-DPeIoF7V.cjs → TextArea-CWEBjWY4.cjs} +1 -1
- package/{TextField-DFMRyd9V.js → TextField-1_-3gKYa.js} +11 -11
- package/{TextField-CdhdTYjC.cjs → TextField-6v1u8c__.cjs} +1 -1
- package/Toast-Ds5Fo6h5.cjs +1 -0
- package/{Toast-B99bLWnh.js → Toast-_qUnywNt.js} +14 -14
- package/{ToggleButtonGroup-dnvnzkaD.cjs → ToggleButtonGroup-DWqPFJWL.cjs} +1 -1
- package/{ToggleButtonGroup-CFRutAZ4.js → ToggleButtonGroup-H5EyZXFC.js} +7 -7
- package/Tooltip-CPn8DVh8.cjs +1 -0
- package/{Tooltip-CUdmOznK.js → Tooltip-CTF8e-pm.js} +9 -9
- package/{VisuallyHidden-DuW70K-5.js → VisuallyHidden-BCa6ThRH.js} +2 -2
- package/{VisuallyHidden-BMelU6B0.cjs → VisuallyHidden-CrRi8fmq.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/arrow-right-CG_-Xh3g.cjs +1 -0
- package/arrow-right-DNeP8Eqv.js +8 -0
- package/assets/Card.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Table.css +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- 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/check-BxlvVsvD.js +5 -0
- package/check-DA2sdqW6.cjs +1 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/chevron-down-DgT-uSF9.js +5 -0
- package/chevron-down-DyBh7agb.cjs +1 -0
- package/chevron-right-BBue_o6c.cjs +1 -0
- package/chevron-right-GpyqdYK4.js +5 -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/{createLucideIcon-XRdN60yz.js → createLucideIcon-D4r5Phnh.js} +0 -24
- package/createLucideIcon-H_Gy5FIB.cjs +1 -0
- 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/{filterDOMProps-wsa9OcNI.js → filterDOMProps-BSVCO5jK.js} +1 -1
- package/{filterDOMProps-RRlKPKX0.cjs → filterDOMProps-WUskt27c.cjs} +1 -1
- package/{getScrollParent-DjULaF_q.cjs → getScrollParent-DL0OH1RF.cjs} +1 -1
- package/{getScrollParent-DFCzfqHG.js → getScrollParent-DcNANHTB.js} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/icon-map-BzhRRdiZ.cjs +1 -0
- package/{icon-map-uS87FT_Q.js → icon-map-Ckc-nEUA.js} +3 -15
- package/{index-DEx4upZl.js → index-Cm_oKP6P.js} +0 -18
- package/index-DTHSUSyf.cjs +1 -0
- package/index.cjs +1 -1
- package/index.js +45 -45
- package/info-BxSJFLL7.cjs +1 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/info-kdfED7Wh.js +9 -0
- 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/legacy-select/index.cjs +1 -1
- package/legacy-select/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 +3 -3
- 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-D9EPHb19.cjs +1 -0
- package/{mergeProps-Ct8m5-xW.js → mergeProps-oYrDoKjU.js} +1 -1
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- 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-BueMOyGp.cjs → scrollIntoView-CogxjvPU.cjs} +1 -1
- package/{scrollIntoView-BVI21Y4-.js → scrollIntoView-LRRMWgN9.js} +1 -1
- 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/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/square-arrow-out-up-right-BRD_p9sV.cjs +1 -0
- package/{square-arrow-out-up-right-ok0A3Ovo.js → square-arrow-out-up-right-XMqOAsOL.js} +1 -7
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -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/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-C0r5nrqs.cjs → useButton-BuHg3SHI.cjs} +1 -1
- package/{useButton-CRgN6aZf.js → useButton-aiD_OMdm.js} +4 -4
- package/{useDateFormatter-Bs5A6Xtu.js → useDateFormatter-BjUtrG4h.js} +12 -12
- package/useDateFormatter-DsPmipft.cjs +1 -0
- package/{useDescription-BFwQx7Rp.js → useDescription-6jSV4EKe.js} +1 -1
- package/{useDescription-6BYtQxe6.cjs → useDescription-D-EGF3RO.cjs} +1 -1
- package/{useEvent-smuTnX4G.js → useEvent-ChPThFqF.js} +1 -1
- package/{useEvent-C125NAue.cjs → useEvent-DnWDW9C-.cjs} +1 -1
- package/{useField-Bx76iuoW.js → useField-Bf6sH2Px.js} +2 -2
- package/{useField-DvszkIMx.cjs → useField-yjDSH-M4.cjs} +1 -1
- package/{useFilter-Dn4vTT3G.js → useFilter-DMfUE0Pr.js} +1 -1
- package/{useFilter-eOgdlVLd.cjs → useFilter-Dg_Msy0o.cjs} +1 -1
- package/{useFocusRing-C-XVcAE5.cjs → useFocusRing-BV6zA8CX.cjs} +1 -1
- package/{useFocusRing-CcxI7nbg.js → useFocusRing-DAZgolYd.js} +2 -2
- package/{useFocusWithin-DhXBuB2O.js → useFocusWithin-Bfslfw41.js} +1 -1
- package/{useFocusWithin-GBjoTL5o.cjs → useFocusWithin-CrScjOpV.cjs} +1 -1
- package/{useFocusable-BJj-Bkig.js → useFocusable--wi5KJXc.js} +4 -4
- package/{useFocusable-M4se1KJt.cjs → useFocusable-Sz45n7Ye.cjs} +1 -1
- package/{useFormValidation-By7G-T7y.js → useFormValidation-BgOffXI-.js} +11 -11
- package/useFormValidation-pVNhWoaN.cjs +1 -0
- package/useHasTabbableChild-CdkTG0q5.cjs +1 -0
- package/{useHasTabbableChild-DpISgPsS.js → useHasTabbableChild-CqUFT0lE.js} +4 -4
- package/{useHighlightSelectionDescription-Zvo5KTxM.js → useHighlightSelectionDescription-Cb6lF44_.js} +5 -5
- package/{useHighlightSelectionDescription-CBZfyrhy.cjs → useHighlightSelectionDescription-P3sZZm15.cjs} +1 -1
- package/{useHover-DkC5FyNd.js → useHover-BkQu__4t.js} +4 -4
- package/useHover-DIDiFsU7.cjs +1 -0
- package/{useLabels-B5pmat1S.cjs → useLabels-CU8PN8IQ.cjs} +1 -1
- package/{useLabels-D24on06F.js → useLabels-Cu5Jf9jq.js} +1 -1
- package/useListState-BCVYtjD-.cjs +1 -0
- package/{useListState-CP7AKhOX.js → useListState-DeBExb3v.js} +8 -8
- package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-D1ErlkJ8.js} +1 -1
- package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-Dfow0G-0.cjs} +1 -1
- package/{useLocalizedStringFormatter-CHAo1AyN.cjs → useLocalizedStringFormatter-MAvCRfhy.cjs} +1 -1
- package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-m7LExKN3.js} +1 -1
- package/usePress-BQdBua-S.cjs +7 -0
- package/{usePress-BqQIhkNY.js → usePress-DPxp2Cij.js} +14 -14
- package/{useSingleSelectListState-JCvbhUVI.cjs → useSingleSelectListState-CdlkYnNt.cjs} +1 -1
- package/{useSingleSelectListState-GSY0f4qW.js → useSingleSelectListState-HaZMDvFf.js} +1 -1
- package/{useTextField-I3QVGvyX.js → useTextField-BwMgd3fF.js} +6 -6
- package/{useTextField-CiWV3eeD.cjs → useTextField-CMt3kP3D.cjs} +1 -1
- package/{utils-D2iKpxcZ.js → utils-BJ6_Ry69.js} +1 -1
- package/utils-CByogC0r.cjs +1 -0
- package/{utils-Dxh86KaB.js → utils-DdKRtUsl.js} +4 -4
- package/{utils-CtICjCYt.cjs → utils-ZN3Na38z.cjs} +1 -1
- package/x-BXShoIAM.js +8 -0
- package/x-DRkCcaDU.cjs +1 -0
- package/AccordionItem-DKE794Si.cjs +0 -1
- package/Button-1sEX8jKn.cjs +0 -1
- package/CharacterCounter-BjOzWOoN.cjs +0 -1
- package/CharacterCounter-b6RpXKDF.js +0 -22
- package/Checkbox-D9X5vM4a.cjs +0 -6
- package/CheckboxGroup-BmEiqFKx.cjs +0 -1
- package/Collection-vGO6v3_U.cjs +0 -1
- package/ColorSchemeSwitch-Ckna0otR.cjs +0 -16
- package/DateInputDivider-YOvEmapQ.cjs +0 -1
- package/DateRangePicker-Biwt-Q8X.cjs +0 -6
- package/Dialog-DycTLpdr.cjs +0 -6
- package/DragAndDrop-Cs-V-9ak.cjs +0 -1
- package/Dropdown-_g9l5k07.cjs +0 -6
- package/FieldError-DHzrxRPt.cjs +0 -1
- package/FieldError-DtEDCIQK.js +0 -48
- package/InfoBanner-D7Ta-7PI.js +0 -72
- package/InfoBanner-_M_rGQiu.cjs +0 -1
- package/Label-Cbp1q387.cjs +0 -1
- package/Label-DH4JI6a4.js +0 -74
- package/Layout-DQiqgjqR.cjs +0 -16
- package/Link-BvUSTIip.cjs +0 -6
- package/LinkButton-DGdnbTgR.cjs +0 -6
- package/ListBox-CMM6O46x.cjs +0 -1
- package/ListBox-FD30iELk.cjs +0 -1
- package/ListKeyboardDelegate-8zuIfwQ7.cjs +0 -1
- package/LocalizedStringFormatter-C0C54hjf.cjs +0 -1
- package/OverlayArrow-bcrb_syE.cjs +0 -1
- package/PressResponder-ChvCuOue.cjs +0 -1
- package/ProgressBar-C6ExqGom.cjs +0 -1
- package/ProgressBar-CePyiuw1.js +0 -53
- package/Radio-bfeheQ39.cjs +0 -1
- package/RangeCalendar-D7xj3ObC.cjs +0 -6
- package/SearchField-ClK2IHpM.cjs +0 -6
- package/Select-C1rNC9sy.cjs +0 -1
- package/Select-CCyvb02g.cjs +0 -1
- package/Select-mz65sX1p.js +0 -677
- package/SelectionIndicator-ClG0GpJu.cjs +0 -1
- package/SelectionManager-CNJmHeCF.cjs +0 -1
- package/TabList-DVzXuGXA.cjs +0 -1
- package/Table-BKbmV4Yp.cjs +0 -16
- package/Tag-BL-_PONN.cjs +0 -1
- package/Toast-DUZ5jfG1.cjs +0 -1
- package/Tooltip-D-ATlbIM.cjs +0 -1
- package/arrow-right-BGd86zzR.cjs +0 -6
- package/arrow-right-uemUGIg8.js +0 -14
- package/check-B0aKTFe5.cjs +0 -6
- package/check-B5h1DvDs.js +0 -11
- package/chevron-down-5hFlg_lR.cjs +0 -6
- package/chevron-down-DmZMdOiC.js +0 -11
- package/chevron-right-0-sUFBiR.cjs +0 -6
- package/chevron-right-BYYHEJjK.js +0 -11
- package/createLucideIcon-CTVXwe6i.cjs +0 -21
- package/icon-map-9XcghDra.cjs +0 -11
- package/index-hURPlN0u.cjs +0 -17
- package/info-CPK1vbOJ.js +0 -15
- package/info-Dj6SyPex.cjs +0 -6
- package/mergeProps-Du5A8xi8.cjs +0 -1
- package/square-arrow-out-up-right-xCFdJTzY.cjs +0 -6
- package/useDateFormatter-BrrFo4nY.cjs +0 -1
- package/useFormValidation-DV2Ioblb.cjs +0 -1
- package/useHasTabbableChild-BJ_VejL5.cjs +0 -1
- package/useHover-DULSfLuK.cjs +0 -1
- package/useListState-DZFWpD-x.cjs +0 -1
- package/usePress-DmU79HEg.cjs +0 -7
- package/utils-DRIRjPUS.cjs +0 -1
- package/x-C2xUHAEl.js +0 -14
- package/x-rV-nu490.cjs +0 -6
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { $ as j } from "./Link-
|
|
2
|
+
import { $ as j } from "./Link-bblcx0a9.js";
|
|
3
3
|
import { c as y } from "./clsx-jbLnTBqA.js";
|
|
4
|
-
import { S as p } from "./square-arrow-out-up-right-
|
|
5
|
-
import { c as g } from "./createLucideIcon-
|
|
6
|
-
import { A as h } from "./arrow-right-
|
|
7
|
-
import './assets/LinkButton.css'
|
|
8
|
-
* @license lucide-react v0.525.0 - ISC
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the ISC license.
|
|
11
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/
|
|
13
|
-
const B = [
|
|
4
|
+
import { S as p } from "./square-arrow-out-up-right-XMqOAsOL.js";
|
|
5
|
+
import { c as g } from "./createLucideIcon-D4r5Phnh.js";
|
|
6
|
+
import { A as h } from "./arrow-right-DNeP8Eqv.js";
|
|
7
|
+
import './assets/LinkButton.css';const B = [
|
|
14
8
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
15
9
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
16
10
|
], k = g("arrow-left", B), w = "_linkButton_138jj_1", L = "_secondary_138jj_56", x = "_icon_138jj_61", A = "_tertiary_138jj_98", $ = "_danger_138jj_124", N = "_iconBtn_138jj_141", z = "_medium_138jj_163", R = "_iconLeft_138jj_168", S = "_fullwidth_138jj_172", t = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/LinkButton.css');const n=require("react/jsx-runtime"),f=require("./Link-MUiihlbG.cjs"),m=require("./clsx-DKOfLqne.cjs"),y=require("./square-arrow-out-up-right-BRD_p9sV.cjs"),x=require("./createLucideIcon-H_Gy5FIB.cjs"),g=require("./arrow-right-CG_-Xh3g.cjs");const h=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],k=x.createLucideIcon("arrow-left",h),w="_linkButton_138jj_1",B="_secondary_138jj_56",L="_icon_138jj_61",q="_tertiary_138jj_98",p="_danger_138jj_124",R="_iconBtn_138jj_141",A="_medium_138jj_163",N="_iconLeft_138jj_168",$="_fullwidth_138jj_172",t={linkButton:w,secondary:B,icon:L,tertiary:q,danger:p,iconBtn:R,medium:A,iconLeft:N,fullwidth:$},z=({children:i,variant:e,fullwidth:s,icon:o,iconPlacement:c,className:u,as:_,size:d="large",...a})=>{const j=_||f.$4f118338184dc1d9$export$a6c7ac8248d6e38a,l=({...r})=>o?n.jsx(o,{...r}):r.target==="_blank"?n.jsx(y.SquareArrowOutUpRight,{...r}):c==="left"?n.jsx(k,{...r}):n.jsx(g.ArrowRight,{...r});return n.jsxs(j,{className:m.clsx(t.linkButton,e==="primary"&&t.primary,e==="secondary"&&t.secondary,e==="tertiary"&&t.tertiary,e==="danger"&&t.danger,e==="icon"&&t.iconBtn,d==="medium"&&t.medium,s&&t.fullwidth,c==="left"&&t.iconLeft,u),...a,children:[i,n.jsx(l,{size:20,className:t.icon})]})};exports.LinkButton=z;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ListBox.css');const M=require("react/jsx-runtime"),J=require("./ListBox-BJLtPJiW.cjs"),q=require("./Collection-Dq97IKYm.cjs"),c=require("react"),k=require("./mergeProps-D9EPHb19.cjs"),K=require("./context-UOrD6Zxk.cjs"),E=require("react-dom"),Q=require("./OverlayArrow-C2rMXHUL.cjs"),Z=require("./useEvent-DnWDW9C-.cjs"),ee=require("./clsx-DKOfLqne.cjs"),V=require("./SelectionManager-C4hvFZl0.cjs");class te{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t,i;return(i=(t=this.getLayoutInfo(e))===null||t===void 0?void 0:t.rect)!==null&&i!==void 0?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class b{copy(){let e=new b(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class x{copy(){return new x(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}}class y{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return(process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&e.area>0)&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-t,n=Math.max(this.maxY,e.maxY)-i;return new y(t,i,l,n)}intersection(e){if(!this.intersects(e))return new y(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new y(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new y(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,i=0,l=0){this.x=e,this.y=t,this.width=i,this.height=l}}class ${copy(){return new $(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}}let ie=0;class B{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new ne(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++ie,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class le extends B{constructor(e){super(e,"root")}}class ne extends B{constructor(e,t,i){super(e,i),this.parent=t}}function oe(s,e){if(s===e)return!0;if(s.size!==e.size)return!1;for(let t of s)if(!e.has(t))return!1;return!0}class se{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let i=this.visibleRect.width/3;e.width+=i,this.velocity.x<0&&(e.x-=i)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new y}}class re{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:l}=e.layoutInfo;e.content=l||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let l=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,l),l}keyAtPoint(e){let t=new y(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let l of i)if(l.rect.intersects(t))return l.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,l=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),l=Math.max(0,Math.min(this.contentSize.height-t.height,l)),i!==t.x||l!==t.y){let n=new y(i,l,t.width,t.height);this.delegate.setVisibleRect(n)}else this.updateSubviews()}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),l;e&&!(t&&i)?l=new y(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let n=this.layout.getVisibleLayoutInfos(l),o=new Map;for(let a of n)o.set(a.key,a);return o}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let n=e.get(i);(!n||l.parent!==this.getParentView(n))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let n=this._visibleViews.get(i);if(!n)n=this.getReusableView(l),n.parent.children.add(n),this._visibleViews.set(i,n),t.delete(n);else{n.layoutInfo=l;let o=this.collection.getItem(l.key);n.content!==o&&(n.content!=null&&this._renderedContent.delete(n.content),this._renderView(n))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let l=this._visibleViews.get(i);l.parent.children.delete(l),l.parent.children.add(l)}}render(e){let t=this,i=!1,l=!1,n=!1,o=!1,a=!1,h=!1;return e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=!0),e.persistedKeys&&!oe(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(l=!e.visibleRect.pointEquals(this.visibleRect),n=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(n||(n=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),o||(o=e.invalidationContext.itemSizeChanged||!1),a||(a=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=o||n||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:n,itemSizeChanged:o,layoutOptionsChanged:a,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new $,this.visibleRect=new y,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new le(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new se}}const ae=typeof document<"u"?c.useLayoutEffect:()=>{};function he(s){let[e,t]=c.useState(new y(0,0,0,0)),[i,l]=c.useState(!1),[n,o]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new re({collection:s.collection,layout:s.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:s.renderView,invalidate:o}}));ae(()=>{a.current&&(a.current=!1,s.onVisibleRectChange(e))});let r=c.useMemo(()=>s.layoutOptions!=null?{...n,layoutOptions:s.layoutOptions}:n,[n,s.layoutOptions]),d=h.render({layout:s.layout,collection:s.collection,persistedKeys:s.persistedKeys,layoutOptions:s.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),v=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:v}),[h,d,t,u,i,f,v])}const R=48;class de extends te{get collection(){return this.virtualizer.collection}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))===null||t===void 0?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){if(e.height>1){var t,i;let o=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:R)+this.gap;e.y=Math.floor(e.y/o)*o,e.height=Math.ceil(e.height/o)*o}this.layoutIfNeeded(e);let l=[],n=o=>{for(let a of o)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&n(a.children))};return n(this.rootNodes),l}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new y(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new y(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;var i,l,n,o,a;return e.sizeChanged||this.rowHeight!==((i=t?.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t?.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((n=t?.loaderHeight)!==null&&n!==void 0?n:this.loaderHeight)||this.gap!==((o=t?.gap)!==null&&o!==void 0?o:this.gap)||this.padding!==((a=t?.padding)!==null&&a!==void 0?a:this.padding)}shouldInvalidateLayoutOptions(e,t){return e.rowHeight!==t.rowHeight||e.estimatedRowHeight!==t.estimatedRowHeight||e.headingHeight!==t.headingHeight||e.estimatedHeadingHeight!==t.estimatedHeadingHeight||e.loaderHeight!==t.loaderHeight||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;var l;this.rowHeight=(l=i?.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var n;this.estimatedRowHeight=(n=i?.estimatedRowHeight)!==null&&n!==void 0?n:this.estimatedRowHeight;var o;this.headingHeight=(o=i?.headingHeight)!==null&&o!==void 0?o:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i?.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i?.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i?.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i?.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i?.padding)!==null&&u!==void 0?u:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let f of this.lastCollection.getKeys())t.getItem(f)||this.layoutNodes.get(f)&&this.layoutNodes.delete(f);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=[...t],l=i.filter(r=>r.type==="loader"),n=[],o=t?.size===0;o&&(e=0);for(let r of i){var a,h;let d=((h=(a=this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:R)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,n.push(u),r.type==="loader"){let f=l.indexOf(r);l.splice(f,1)}if((r.type==="item"||r.type==="loader")&&e>this.requestedRect.maxY){let f=i.indexOf(r);for(let v of l){let g=i.indexOf(v);e+=(g-f-1)*d;let p=this.buildChild(v,this.padding,e,null);n.push(p),e=p.layoutInfo.rect.maxY,f=g}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new $(this.virtualizer.visibleRect.width,e),n}isValid(e,t){let i=this.layoutNodes.get(e.key);return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect.y&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,l){if(this.isValid(e,i))return this.layoutNodes.get(e.key);let n=this.buildNode(e,t,i);return n.layoutInfo.parentKey=l??null,n.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,n),n}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let l=new y(t,i,this.padding,0),n=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var o,a,h;return l.height=e.props.isLoading?(h=(a=(o=this.loaderHeight)!==null&&o!==void 0?o:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:R:0,{layoutInfo:n,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,n=this.virtualizer.visibleRect.width-this.padding,o=new y(t,i,n-t,0),a=new b(e.type,e.key,o),h=i,r=0,d=[];for(let v of V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let g=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:R)+this.gap;if(i+g<this.requestedRect.y&&!this.isValid(e,i)){i+=g,r++;continue}let p=this.buildChild(v,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*g;break}}return i-=this.gap,o.height=i-h,{layoutInfo:a,children:d,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding,n=this.headingHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key),d=r?.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),f=this.lastCollection?this.lastCollection.getItem(e.key):null;n=d.rect.height,o=l!==d.rect.width||u!==f||d.estimatedSize}else n=e.rendered?this.estimatedHeadingHeight:0,o=!0}n==null&&(n=R);let a=new y(t,i,l-t,n),h=new b("header",e.key,a);return h.estimatedSize=o,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,n=this.rowHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key);r?(n=r.layoutInfo.rect.height,o=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(n=this.estimatedRowHeight,o=!0)}n==null&&(n=R);let a=new y(t,i,l,n),h=new b(e.type,e.key,a);return h.estimatedSize=o,{layoutInfo:h,children:[],validRect:h.rect,node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return!1;let l=this.virtualizer.collection,n=i.layoutInfo;if(n.estimatedSize=!1,n.rect.height!==t.height){let o=n.copy();o.rect.height=t.height,i.layoutInfo=o,this.validRect.height=Math.min(this.validRect.height,n.rect.y-this.validRect.y),this.requestedRect.height+=o.rect.height-n.rect.height,this.updateLayoutNode(e,n,o);let a=n.parentKey!=null?l.getItem(n.parentKey):null;for(;a;)this.updateLayoutNode(a.key,n,o),a=a.parentKey!=null?l.getItem(a.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let l=this.layoutNodes.get(e);l&&(l.validRect=l.validRect.intersection(this.validRect),l.layoutInfo===t&&(l.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let l=new y(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),n=this.getVisibleLayoutInfos(l),o=null,a=1/0;for(let u of n){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),v=Math.abs(u.rect.maxY-t),g=Math.min(f,v);g<a&&(a=g,o=u.key)}if(o==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(o);if(!h)return null;let r=h.rect,d={type:"item",key:h.key,dropPosition:"on"};return i(d)?t<=r.y+10&&i({...d,dropPosition:"before"})?d.dropPosition="before":t>=r.maxY-10&&i({...d,dropPosition:"after"})&&(d.dropPosition="after"):t<=r.y+r.height/2&&i({...d,dropPosition:"before"})?d.dropPosition="before":i({...d,dropPosition:"after"})&&(d.dropPosition="after"),d}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;if(e.dropPosition==="before")i=new y(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let n=this.collection.getItem(e.key);if(n){var l;let o=(l=n.level)!==null&&l!==void 0?l:0,a=this.collection.getKeyAfter(e.key);for(;a!=null;){let h=this.collection.getItem(a);if(!h||h.level<=o)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new y(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness)}else i=t.rect;return new b("dropIndicator",e.key+":"+e.dropPosition,i)}constructor(e={}){super();var t;this.rowHeight=(t=e.rowHeight)!==null&&t!==void 0?t:null;var i;this.estimatedRowHeight=(i=e.estimatedRowHeight)!==null&&i!==void 0?i:null;var l;this.headingHeight=(l=e.headingHeight)!==null&&l!==void 0?l:null;var n;this.estimatedHeadingHeight=(n=e.estimatedHeadingHeight)!==null&&n!==void 0?n:null;var o;this.loaderHeight=(o=e.loaderHeight)!==null&&o!==void 0?o:null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new y,this.requestedRect=new y,this.contentSize=new $}}let S=null;function ce(s=!1){if(S===null||s){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),l=i.style;return l.width="100px",l.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?S="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?S="negative":S="positive-ascending"),document.body.removeChild(e),S}return S}function ue(s,e){let{scrollLeft:t}=s;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=s;switch(ce()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function fe(s,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:n,onScrollEnd:o,scrollDirection:a="both",...h}=s,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),v=c.useCallback(w=>{w.target===w.currentTarget&&(s.onScroll&&s.onScroll(w),E.flushSync(()=>{let m=w.currentTarget.scrollTop,z=ue(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(z,t.width-r.width)),i(new y(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),n&&n());let C=Date.now();r.scrollEndTime<=C+50&&(r.scrollEndTime=C+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),o&&o()},300))}))},[s,d,r,t,i,n,o]);Z.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let g=c.useRef(!1),p=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||g.current)return;g.current=!0;let z=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,C=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),G=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),N=m.clientWidth,T=m.clientHeight,_=z&&!C?1/0:N,L=z&&!G?1/0:T;(r.width!==_||r.height!==L)&&(r.width=_,r.height=L,w(()=>{i(new y(r.scrollLeft,r.scrollTop,_,L))}),(!z&&N!==m.clientWidth||T!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new y(r.scrollLeft,r.scrollTop,r.width,r.height))}))),g.current=!1}),H=c.useRef(null),[A,F]=c.useState({});k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!g.current&&(H.current==null||!t.equals(H.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){F({}),H.current=t;return}else queueMicrotask(()=>p(E.flushSync));H.current=t}),k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{p(w=>w())},[A]);let U=c.useCallback(()=>{p(E.flushSync)},[p]);Q.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:U});let I={padding:0,...h.style};return a==="horizontal"?(I.overflowX="auto",I.overflowY="hidden"):a==="vertical"||t.width===r.width?(I.overflowY="auto",I.overflowX="hidden"):I.overflow="auto",l={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:u?"none":"auto",position:"relative",...l},{isScrolling:u,scrollViewProps:{...h,style:I},contentProps:{role:"presentation",style:l}}}function ye(s){let{layoutInfo:e,virtualizer:t,ref:i}=s,l=e?.key,n=c.useCallback(()=>{if(l!=null&&i.current){let o=ge(i.current);t.updateItemSize(l,o)}},[t,l,i]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e?.estimatedSize&&n()}),{updateSize:n}}function ge(s){let e=s.style.height;s.style.height="";let t=new $(s.scrollWidth,s.scrollHeight);return s.style.height=e,t}function Y(s){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:n,children:o}=s,{direction:a}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ye({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...ve(i,a,n),...e}},o)}let O=new WeakMap;function ve(s,e,t){let i=e==="rtl"?"right":"left",l=O.get(s);if(l&&l[i]!=null){if(!t)return l;let h=s.rect.y-t.rect.y,r=s.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let n={top:s.rect.y-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.y:0),[i]:s.rect.x-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.x:0),width:s.rect.width,height:s.rect.height};Object.entries(n).forEach(([h,r])=>{Number.isFinite(r)||(n[h]=void 0)});var o;let a={position:s.isSticky?"sticky":"absolute",display:s.isSticky?"inline-block":void 0,overflow:s.allowOverflow?"visible":"hidden",opacity:s.opacity,zIndex:s.zIndex,transform:(o=s.transform)!==null&&o!==void 0?o:void 0,contain:"size layout style",...n};return O.set(s,a),a}const W=c.createContext(null),j=c.createContext(null);function pe(s){let{children:e,layout:t,layoutOptions:i}=s,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),n=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:we,CollectionBranch:me}),[l]);return c.createElement(q.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:n},c.createElement(j.Provider,{value:{layout:l,layoutOptions:i}},e))}function we({collection:s,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:n,layoutOptions:o}=c.useContext(j),a=(l=n.useLayoutOptions)===null||l===void 0?void 0:l.call(n),h=he({layout:n,collection:s,renderView:(d,u)=>{var f;return u==null||(f=u.render)===null||f===void 0?void 0:f.call(u,u)},onVisibleRectChange(d){let u=t?.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>o&&a?{...o,...a}:o||a,[o,a])}),{contentProps:r}=fe({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(W.Provider,{value:h},D(null,h.visibleViews,i)))}function me({parent:s,renderDropIndicator:e}){let i=c.useContext(W).virtualizer.getVisibleView(s.key);return D(i,Array.from(i.children),e)}function D(s,e,t){return e.map(i=>be(s,i,t))}function be(s,e,t){let i=c.createElement(Y,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:s?.layoutInfo},e.rendered),{collection:l,layout:n}=e.virtualizer,o=e.content;return o?.type==="item"&&t&&n.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},P(s,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,q.$7135fc7d473fd974$export$2dbbd341daed716d(l,o,a=>P(s,e,a,t)))),i}function P(s,e,t,i){let l=i(t);if(l){let n=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(Y,{layoutInfo:n,virtualizer:e.virtualizer,parent:s?.layoutInfo},l)}return l}class xe extends de{getContentSize(){const e=this?.virtualizer?.collection.getKeys();return Array.from(e||[]).forEach(t=>{this.getLayoutInfo(t)}),this.contentSize}}const Ie="_listBox_1kyjv_4",Re="_listBoxPopover_1kyjv_16",Se="_listBoxSectionHeading_1kyjv_31",$e="_listBoxButton_1kyjv_43",ze="_listBoxItem_1kyjv_55",He="_textContent_1kyjv_69",Ce="_listBoxLoadMoreItem_1kyjv_175",X={listBox:Ie,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:$e,listBoxItem:ze,textContent:He,listBoxLoadMoreItem:Ce},ke=({className:s,children:e,...t})=>M.jsx(pe,{layout:xe,layoutOptions:{headingHeight:38},children:M.jsx(J.$eed445e0843c11d0$export$41f133550aa26f48,{className:ee.clsx(X.listBox,s),...t,children:e})});exports.ListBox=ke;exports.styles=X;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const x=require("./Collection-Dq97IKYm.cjs"),v=require("./utils-ZN3Na38z.cjs"),E=require("./DragAndDrop-pskCjm3i.cjs"),N=require("./Separator--v6lgpnX.cjs"),te=require("./RSPContexts-XUvspq3j.cjs"),K=require("./SelectionIndicator-CD2Lb431.cjs"),re=require("./Text-BiDSbNaP.cjs"),g=require("./mergeProps-D9EPHb19.cjs"),I=require("./filterDOMProps-WUskt27c.cjs"),ae=require("./inertValue-BWmZ1afe.cjs"),r=require("react"),de=require("./usePress-BQdBua-S.cjs"),H=require("./useHover-DIDiFsU7.cjs"),ie=require("./SelectionManager-C4hvFZl0.cjs"),le=require("./useFocusWithin-CrScjOpV.cjs"),ne=require("./Button-BuelSBWx.cjs"),Q=require("./useListState-BCVYtjD-.cjs"),ce=require("./context-UOrD6Zxk.cjs"),J=require("./ListKeyboardDelegate-6U5oNrPf.cjs"),se=require("./useFocusRing-BV6zA8CX.cjs"),U=new WeakMap;function $e(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function X(t,e){let d=U.get(t);if(!d)throw new Error("Unknown list");return`${d.id}-option-${$e(e)}`}function ue(t,e,d){let o=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),i=t.selectionBehavior||"toggle",l=t.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&l==="action"&&(l="override");let{listProps:a}=N.$982254629710d113$export$b95089534ab7c1fd({...t,ref:d,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:l}),{focusWithinProps:n}=le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),c=g.$bdb11010cef70236$export$f680877a34711e37(t.id);U.set(e,{id:c,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:l,UNSTABLE_itemBehavior:t.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:$}=ne.$d191a55c9702f145$export$8467354a121f1b9f({...t,id:c,labelElementType:"span"});return{labelProps:u,listBoxProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(o,n,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...g.$3ef42575df84b30b$export$9d1611c77c2fe928($,a)})}}function fe(t,e,d){var o,i;let{key:l}=t,a=U.get(e);var n;let c=(n=t.isDisabled)!==null&&n!==void 0?n:e.selectionManager.isDisabled(l);var u;let $=(u=t.isSelected)!==null&&u!==void 0?u:e.selectionManager.isSelected(l);var b;let s=(b=t.shouldSelectOnPressUp)!==null&&b!==void 0?b:a?.shouldSelectOnPressUp;var D;let h=(D=t.shouldFocusOnHover)!==null&&D!==void 0?D:a?.shouldFocusOnHover;var P;let p=(P=t.shouldUseVirtualFocus)!==null&&P!==void 0?P:a?.shouldUseVirtualFocus;var y;let M=(y=t.isVirtualized)!==null&&y!==void 0?y:a?.isVirtualized,F=g.$bdb11010cef70236$export$b4cc09c592e8fdb8(),S=g.$bdb11010cef70236$export$b4cc09c592e8fdb8(),B={role:"option","aria-disabled":c||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?$:void 0};H.$c87311424ea30a05$export$9ac100e40613ea10()&&H.$c87311424ea30a05$export$78551043582a6a98()||(B["aria-label"]=t["aria-label"],B["aria-labelledby"]=F,B["aria-describedby"]=S);let f=e.collection.getItem(l);if(M){let m=Number(f?.index);B["aria-posinset"]=Number.isNaN(m)?void 0:m+1,B["aria-setsize"]=N.$453cc9f0df89c0a5$export$77d5aafae4e095b2(e.collection)}let T=a?.onAction?()=>{var m;return a==null||(m=a.onAction)===null||m===void 0?void 0:m.call(a,l)}:void 0,C=X(e,l),{itemProps:k,isPressed:L,isFocused:w,hasAction:_,allowsSelection:O}=ie.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:l,ref:d,shouldSelectOnPressUp:s,allowsDifferentPressOrigin:s&&h,isVirtualized:M,shouldUseVirtualFocus:p,isDisabled:c,onAction:T||!(f==null||(o=f.props)===null||o===void 0)&&o.onAction?g.$ff5963eb1fccf552$export$e08e3b67e392101e(f==null||(i=f.props)===null||i===void 0?void 0:i.onAction,T):void 0,linkBehavior:a?.linkBehavior,UNSTABLE_itemBehavior:a?.UNSTABLE_itemBehavior,id:C}),{hoverProps:z}=H.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c||!h,onHoverStart(){H.$507fabe10e71c6fb$export$b9b3dfddab17db27()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(l))}}),A=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(f?.props);delete A.id;let q=de.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(f?.props);return{optionProps:{...B,...g.$3ef42575df84b30b$export$9d1611c77c2fe928(A,k,z,q),id:C},labelProps:{id:F},descriptionProps:{id:S},isFocused:w,isFocusVisible:w&&e.selectionManager.isFocused&&H.$507fabe10e71c6fb$export$b9b3dfddab17db27(),isSelected:$,isDisabled:c,isPressed:L,allowsSelection:O,hasAction:_}}function be(t){let{heading:e,"aria-label":d}=t,o=g.$bdb11010cef70236$export$f680877a34711e37();return{itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":d,"aria-labelledby":e?o:void 0}}}const W=r.createContext(null),V=r.createContext(null),pe=r.forwardRef(function(e,d){[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,W);let o=r.useContext(V);return o?r.createElement(Y,{state:o,props:e,listBoxRef:d}):r.createElement(x.$e1995378a142960e$export$bf788dd355e3a401,{content:r.createElement(x.$e1995378a142960e$export$fb8073518f34e6ec,e)},i=>r.createElement(ve,{props:e,listBoxRef:d,collection:i}))});function ve({props:t,listBoxRef:e,collection:d}){t={...t,collection:d,children:null,items:null};let{layoutDelegate:o}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),i=Q.$e72dd72e1c76a225$export$2f645645f7bca764({...t,layoutDelegate:o});return r.createElement(Y,{state:i,props:t,listBoxRef:e})}function Y({state:t,props:e,listBoxRef:d}){[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,te.$4e85f108e88277b8$export$b0d3ecf7112093a7);let{dragAndDropHooks:o,layout:i="stack",orientation:l="vertical",filter:a}=e,n=Q.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(t,a),{collection:c,selectionManager:u}=n,$=!!o?.useDraggableCollectionState,b=!!o?.useDroppableCollectionState,{direction:s}=ce.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{disabledBehavior:D,disabledKeys:h}=u,P=J.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),{isVirtualized:p,layoutDelegate:y,dropTargetDelegate:M,CollectionRoot:F}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),S=r.useMemo(()=>e.keyboardDelegate||new J.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:c,collator:P,ref:d,disabledKeys:h,disabledBehavior:D,layout:i,orientation:l,direction:s,layoutDelegate:y}),[c,P,d,D,h,l,s,e.keyboardDelegate,i,y]),{listBoxProps:B}=ue({...e,shouldSelectOnPressUp:$||e.shouldSelectOnPressUp,keyboardDelegate:S,isVirtualized:p},n,d),f=r.useRef($),T=r.useRef(b);r.useEffect(()=>{process.env.NODE_ENV!=="production"&&(f.current!==$&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),T.current!==b&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[$,b]);let C,k,L,w=!1,_=null,O=r.useRef(null);if($&&o){C=o.useDraggableCollectionState({collection:c,selectionManager:u,preview:o.renderDragPreview?O:void 0}),o.useDraggableCollection({},C,d);let R=o.DragPreview;_=o.renderDragPreview?r.createElement(R,{ref:O},o.renderDragPreview):null}if(b&&o){k=o.useDroppableCollectionState({collection:c,selectionManager:u});let R=o.dropTargetDelegate||M||new o.ListDropTargetDelegate(c,d,{orientation:l,layout:i,direction:s});L=o.useDroppableCollection({keyboardDelegate:S,dropTargetDelegate:R},k,d),w=k.isDropTarget({type:"root"})}let{focusProps:z,isFocused:A,isFocusVisible:q}=se.$f7dceffc5ad7768b$export$4e328f61c538687f(),m=n.collection.size===0,j={isDropTarget:w,isEmpty:m,isFocused:A,isFocusVisible:q,layout:e.layout||"stack",state:n},ee=v.$64fa3d84918910a7$export$4d86445c2cf5e3({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:j}),G=null;m&&e.renderEmptyState&&(G=r.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(j)));let oe=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return r.createElement(K.$9bf71ea28793e738$export$20e40289641fbbb6,null,r.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(oe,ee,B,z,L?.collectionProps),ref:d,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":w||void 0,"data-empty":m||void 0,"data-focused":A||void 0,"data-focus-visible":q||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},r.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[W,e],[V,n],[E.$612b8eb6cb90e02d$export$d188a835a7bc5783,{dragAndDropHooks:o,dragState:C,dropState:k}],[N.$431f98aba6844401$export$6615d83f6de245ce,{elementType:"div"}],[E.$612b8eb6cb90e02d$export$f55761759794cf55,{render:he}],[x.$7135fc7d473fd974$export$d40e14dec8b060a8,{name:"ListBoxSection",render:Z}]]},r.createElement(K.$c8a5a149f625efcf$export$758399f318e6385a,null,r.createElement(F,{collection:c,scrollRef:d,persistedKeys:E.$612b8eb6cb90e02d$export$d1e8e3fbb7461f6(u,o,k),renderDropIndicator:E.$612b8eb6cb90e02d$export$971707d8a129a1f7(o,k)}))),G,_))}function Z(t,e,d,o="react-aria-ListBoxSection"){let i=r.useContext(V),{dragAndDropHooks:l,dropState:a}=r.useContext(E.$612b8eb6cb90e02d$export$d188a835a7bc5783),{CollectionBranch:n}=r.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),[c,u]=v.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8();var $;let{headingProps:b,groupProps:s}=be({heading:u,"aria-label":($=t["aria-label"])!==null&&$!==void 0?$:void 0}),D=v.$64fa3d84918910a7$export$4d86445c2cf5e3({defaultClassName:o,className:t.className,style:t.style,values:{}}),h=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return delete h.id,r.createElement("section",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(h,D,s),ref:e},r.createElement(N.$72a5793c14baf454$export$e0e4026c12a8bdbb.Provider,{value:{...b,ref:c}},r.createElement(n,{collection:i.collection,parent:d,renderDropIndicator:E.$612b8eb6cb90e02d$export$971707d8a129a1f7(l,a)})))}const ge=x.$e1995378a142960e$export$e953bb1cd0f19726(x.$23b9f4fcf0fe224b$export$437f11dc9b403b78,Z),xe=x.$e1995378a142960e$export$18af5c7a9e9b3664(x.$23b9f4fcf0fe224b$export$fd11f34e1d07f134,function(e,d,o){let i=v.$df56164dff5785e2$export$4338b53315abf666(d),l=r.useContext(V),{dragAndDropHooks:a,dragState:n,dropState:c}=r.useContext(E.$612b8eb6cb90e02d$export$d188a835a7bc5783),{optionProps:u,labelProps:$,descriptionProps:b,...s}=fe({key:o.key,"aria-label":e?.["aria-label"]},l,i),{hoverProps:D,isHovered:h}=H.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!s.allowsSelection&&!s.hasAction,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),P=null;n&&a&&(P=a.useDraggableItem({key:o.key},n));let p=null;c&&a&&(p=a.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,i));let y=n&&n.isDragging(o.key),M=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...s,isHovered:h,selectionMode:l.selectionManager.selectionMode,selectionBehavior:l.selectionManager.selectionBehavior,allowsDragging:!!n,isDragging:y,isDropTarget:p?.isDropTarget}});r.useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[o.textValue]);let F=e.href?"a":"div",S=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete S.id,delete S.onClick,r.createElement(F,{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(S,M,u,D,P?.dragProps,p?.dropProps),ref:i,"data-allows-dragging":!!n||void 0,"data-selected":s.isSelected||void 0,"data-disabled":s.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":s.isFocused||void 0,"data-focus-visible":s.isFocusVisible||void 0,"data-pressed":s.isPressed||void 0,"data-dragging":y||void 0,"data-drop-target":p?.isDropTarget||void 0,"data-selection-mode":l.selectionManager.selectionMode==="none"?void 0:l.selectionManager.selectionMode},r.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[re.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{[v.$64fa3d84918910a7$export$c62b8e45d58ddad9]:$,label:$,description:b}}],[K.$1d5b8b8664671ef2$export$c9549807523555e0,{isSelected:s.isSelected}]]},M.children))});function he(t,e){e=v.$df56164dff5785e2$export$4338b53315abf666(e);let{dragAndDropHooks:d,dropState:o}=r.useContext(E.$612b8eb6cb90e02d$export$d188a835a7bc5783),{dropIndicatorProps:i,isHidden:l,isDropTarget:a}=d.useDropIndicator(t,o,e);return l?null:r.createElement(De,{...t,dropIndicatorProps:i,isDropTarget:a,ref:e})}function Pe(t,e){let{dropIndicatorProps:d,isDropTarget:o,...i}=t,l=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return r.createElement("div",{...d,...l,role:"option",ref:e,"data-drop-target":o||void 0})}const De=r.forwardRef(Pe),me=x.$e1995378a142960e$export$18af5c7a9e9b3664(x.$23b9f4fcf0fe224b$export$8258a0665a675899,function(e,d,o){let i=r.useContext(V),{isLoading:l,onLoadMore:a,scrollOffset:n,...c}=e,u=r.useRef(null),$=r.useMemo(()=>({onLoadMore:a,collection:i?.collection,sentinelRef:u,scrollOffset:n}),[a,n,i?.collection]);E.$a5fa973c1850dd36$export$ccaea96c28e8b9e7($,u);let b=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),s={tabIndex:-1};return r.createElement(r.Fragment,null,r.createElement("div",{style:{position:"relative",width:0,height:0},inert:ae.$cdc5a6778b766db2$export$a9d04c5684123369(!0)},r.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),l&&b.children&&r.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0}),s),...b,role:"option",ref:d},b.children))});exports.$b1f0cad8af73213b$export$3585ede4d035bf14=U;exports.$b1f0cad8af73213b$export$9145995848b05025=X;exports.$eed445e0843c11d0$export$41f133550aa26f48=pe;exports.$eed445e0843c11d0$export$7c5906fe4f1f2af2=V;exports.$eed445e0843c11d0$export$7ff8f37d2d81a48d=W;exports.$eed445e0843c11d0$export$8e6d031a08cf56a1=me;exports.$eed445e0843c11d0$export$a11e76429ed99b4=xe;exports.$eed445e0843c11d0$export$dca12b0bb56e4fc=ge;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { $ as J, a as ue, b as fe, c as $e, d as be, e as pe, f as ve, g as K, h as ge } from "./Collection-
|
|
2
|
-
import { $ as Q, b as X, a as I, f as Y, g as me, d as he } from "./utils-
|
|
3
|
-
import { $ as N, a as xe, b as Pe, c as Z, d as De } from "./DragAndDrop-
|
|
4
|
-
import { a as ye, b as Se, c as Ee, d as ke } from "./Separator-
|
|
1
|
+
import { $ as J, a as ue, b as fe, c as $e, d as be, e as pe, f as ve, g as K, h as ge } from "./Collection-CXAXUgCh.js";
|
|
2
|
+
import { $ as Q, b as X, a as I, f as Y, g as me, d as he } from "./utils-BJ6_Ry69.js";
|
|
3
|
+
import { $ as N, a as xe, b as Pe, c as Z, d as De } from "./DragAndDrop-37cBrgqG.js";
|
|
4
|
+
import { a as ye, b as Se, c as Ee, d as ke } from "./Separator-Cxt7kicM.js";
|
|
5
5
|
import { b as Be } from "./RSPContexts-B0lEq7qq.js";
|
|
6
|
-
import { a as Me, b as Fe, c as we } from "./SelectionIndicator-
|
|
7
|
-
import { $ as Le } from "./Text-
|
|
8
|
-
import { c as ee, a as k, b as j, e as He } from "./mergeProps-
|
|
9
|
-
import { $ as L } from "./filterDOMProps-
|
|
6
|
+
import { a as Me, b as Fe, c as we } from "./SelectionIndicator-B5J-eND9.js";
|
|
7
|
+
import { $ as Le } from "./Text-B30xuDOt.js";
|
|
8
|
+
import { c as ee, a as k, b as j, e as He } from "./mergeProps-oYrDoKjU.js";
|
|
9
|
+
import { $ as L } from "./filterDOMProps-BSVCO5jK.js";
|
|
10
10
|
import { $ as Ie } from "./inertValue-B7loUihk.js";
|
|
11
11
|
import d, { forwardRef as oe, createContext as te, useContext as x, useEffect as ae, useRef as C, useMemo as re } from "react";
|
|
12
|
-
import { d as Ve } from "./usePress-
|
|
13
|
-
import { h as _e, i as Ae, $ as le, a as G } from "./useHover-
|
|
14
|
-
import { d as Te } from "./SelectionManager-
|
|
15
|
-
import { $ as Oe } from "./useFocusWithin-
|
|
16
|
-
import { a as Ce } from "./Button-
|
|
17
|
-
import { a as Ne, $ as Ue } from "./useListState-
|
|
12
|
+
import { d as Ve } from "./usePress-DPxp2Cij.js";
|
|
13
|
+
import { h as _e, i as Ae, $ as le, a as G } from "./useHover-BkQu__4t.js";
|
|
14
|
+
import { d as Te } from "./SelectionManager-bnxBDhgb.js";
|
|
15
|
+
import { $ as Oe } from "./useFocusWithin-Bfslfw41.js";
|
|
16
|
+
import { a as Ce } from "./Button-DQKRTkoz.js";
|
|
17
|
+
import { a as Ne, $ as Ue } from "./useListState-DeBExb3v.js";
|
|
18
18
|
import { $ as ze } from "./context-Dl_saGB6.js";
|
|
19
|
-
import { $ as Ke, a as Re } from "./ListKeyboardDelegate-
|
|
20
|
-
import { $ as We } from "./useFocusRing-
|
|
19
|
+
import { $ as Ke, a as Re } from "./ListKeyboardDelegate-RT2g6YNq.js";
|
|
20
|
+
import { $ as We } from "./useFocusRing-DAZgolYd.js";
|
|
21
21
|
const R = /* @__PURE__ */ new WeakMap();
|
|
22
22
|
function qe(t) {
|
|
23
23
|
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
@@ -80,13 +80,13 @@ function Je(t, e, r) {
|
|
|
80
80
|
var f;
|
|
81
81
|
let u = (f = t.isSelected) !== null && f !== void 0 ? f : e.selectionManager.isSelected(i);
|
|
82
82
|
var b;
|
|
83
|
-
let c = (b = t.shouldSelectOnPressUp) !== null && b !== void 0 ? b : a
|
|
83
|
+
let c = (b = t.shouldSelectOnPressUp) !== null && b !== void 0 ? b : a?.shouldSelectOnPressUp;
|
|
84
84
|
var m;
|
|
85
|
-
let v = (m = t.shouldFocusOnHover) !== null && m !== void 0 ? m : a
|
|
85
|
+
let v = (m = t.shouldFocusOnHover) !== null && m !== void 0 ? m : a?.shouldFocusOnHover;
|
|
86
86
|
var g;
|
|
87
|
-
let p = (g = t.shouldUseVirtualFocus) !== null && g !== void 0 ? g : a
|
|
87
|
+
let p = (g = t.shouldUseVirtualFocus) !== null && g !== void 0 ? g : a?.shouldUseVirtualFocus;
|
|
88
88
|
var P;
|
|
89
|
-
let E = (P = t.isVirtualized) !== null && P !== void 0 ? P : a
|
|
89
|
+
let E = (P = t.isVirtualized) !== null && P !== void 0 ? P : a?.isVirtualized, B = j(), D = j(), y = {
|
|
90
90
|
role: "option",
|
|
91
91
|
"aria-disabled": s || void 0,
|
|
92
92
|
"aria-selected": e.selectionManager.selectionMode !== "none" ? u : void 0
|
|
@@ -94,10 +94,10 @@ function Je(t, e, r) {
|
|
|
94
94
|
_e() && Ae() || (y["aria-label"] = t["aria-label"], y["aria-labelledby"] = B, y["aria-describedby"] = D);
|
|
95
95
|
let $ = e.collection.getItem(i);
|
|
96
96
|
if (E) {
|
|
97
|
-
let h = Number(
|
|
97
|
+
let h = Number($?.index);
|
|
98
98
|
y["aria-posinset"] = Number.isNaN(h) ? void 0 : h + 1, y["aria-setsize"] = Se(e.collection);
|
|
99
99
|
}
|
|
100
|
-
let _ = a
|
|
100
|
+
let _ = a?.onAction ? () => {
|
|
101
101
|
var h;
|
|
102
102
|
return a == null || (h = a.onAction) === null || h === void 0 ? void 0 : h.call(a, i);
|
|
103
103
|
} : void 0, M = je(e, i), { itemProps: S, isPressed: F, isFocused: w, hasAction: A, allowsSelection: T } = Te({
|
|
@@ -110,18 +110,18 @@ function Je(t, e, r) {
|
|
|
110
110
|
shouldUseVirtualFocus: p,
|
|
111
111
|
isDisabled: s,
|
|
112
112
|
onAction: _ || !($ == null || (o = $.props) === null || o === void 0) && o.onAction ? He($ == null || (l = $.props) === null || l === void 0 ? void 0 : l.onAction, _) : void 0,
|
|
113
|
-
linkBehavior: a
|
|
113
|
+
linkBehavior: a?.linkBehavior,
|
|
114
114
|
// @ts-ignore
|
|
115
|
-
UNSTABLE_itemBehavior: a
|
|
115
|
+
UNSTABLE_itemBehavior: a?.UNSTABLE_itemBehavior,
|
|
116
116
|
id: M
|
|
117
117
|
}), { hoverProps: U } = le({
|
|
118
118
|
isDisabled: s || !v,
|
|
119
119
|
onHoverStart() {
|
|
120
120
|
G() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(i));
|
|
121
121
|
}
|
|
122
|
-
}), H = L(
|
|
122
|
+
}), H = L($?.props);
|
|
123
123
|
delete H.id;
|
|
124
|
-
let O = Ve(
|
|
124
|
+
let O = Ve($?.props);
|
|
125
125
|
return {
|
|
126
126
|
optionProps: {
|
|
127
127
|
...y,
|
|
@@ -197,7 +197,7 @@ function Xe({ props: t, listBoxRef: e, collection: r }) {
|
|
|
197
197
|
}
|
|
198
198
|
function de({ state: t, props: e, listBoxRef: r }) {
|
|
199
199
|
[e, r] = Q(e, r, Be);
|
|
200
|
-
let { dragAndDropHooks: o, layout: l = "stack", orientation: i = "vertical", filter: a } = e, n = Ne(t, a), { collection: s, selectionManager: f } = n, u = !!
|
|
200
|
+
let { dragAndDropHooks: o, layout: l = "stack", orientation: i = "vertical", filter: a } = e, n = Ne(t, a), { collection: s, selectionManager: f } = n, u = !!o?.useDraggableCollectionState, b = !!o?.useDroppableCollectionState, { direction: c } = ze(), { disabledBehavior: m, disabledKeys: v } = f, g = Ke({
|
|
201
201
|
usage: "search",
|
|
202
202
|
sensitivity: "base"
|
|
203
203
|
}), { isVirtualized: p, layoutDelegate: P, dropTargetDelegate: E, CollectionRoot: B } = x(K), D = re(() => e.keyboardDelegate || new Re({
|
|
@@ -286,7 +286,7 @@ function de({ state: t, props: e, listBoxRef: r }) {
|
|
|
286
286
|
global: !0
|
|
287
287
|
});
|
|
288
288
|
return /* @__PURE__ */ d.createElement(Fe, null, /* @__PURE__ */ d.createElement("div", {
|
|
289
|
-
...k(ce, se, y, U, F
|
|
289
|
+
...k(ce, se, y, U, F?.collectionProps),
|
|
290
290
|
ref: r,
|
|
291
291
|
slot: e.slot || void 0,
|
|
292
292
|
onScroll: e.onScroll,
|
|
@@ -372,7 +372,7 @@ function ne(t, e, r, o = "react-aria-ListBoxSection") {
|
|
|
372
372
|
const yo = /* @__PURE__ */ ue(pe, ne), So = /* @__PURE__ */ J(be, function(e, r, o) {
|
|
373
373
|
let l = X(r), i = x(V), { dragAndDropHooks: a, dragState: n, dropState: s } = x(N), { optionProps: f, labelProps: u, descriptionProps: b, ...c } = Je({
|
|
374
374
|
key: o.key,
|
|
375
|
-
"aria-label": e
|
|
375
|
+
"aria-label": e?.["aria-label"]
|
|
376
376
|
}, i, l), { hoverProps: m, isHovered: v } = le({
|
|
377
377
|
isDisabled: !c.allowsSelection && !c.hasAction,
|
|
378
378
|
onHoverStart: o.props.onHoverStart,
|
|
@@ -402,7 +402,7 @@ const yo = /* @__PURE__ */ ue(pe, ne), So = /* @__PURE__ */ J(be, function(e, r,
|
|
|
402
402
|
selectionBehavior: i.selectionManager.selectionBehavior,
|
|
403
403
|
allowsDragging: !!n,
|
|
404
404
|
isDragging: P,
|
|
405
|
-
isDropTarget: p
|
|
405
|
+
isDropTarget: p?.isDropTarget
|
|
406
406
|
}
|
|
407
407
|
});
|
|
408
408
|
ae(() => {
|
|
@@ -414,7 +414,7 @@ const yo = /* @__PURE__ */ ue(pe, ne), So = /* @__PURE__ */ J(be, function(e, r,
|
|
|
414
414
|
global: !0
|
|
415
415
|
});
|
|
416
416
|
return delete D.id, delete D.onClick, /* @__PURE__ */ d.createElement(B, {
|
|
417
|
-
...k(D, E, f, m, g
|
|
417
|
+
...k(D, E, f, m, g?.dragProps, p?.dropProps),
|
|
418
418
|
ref: l,
|
|
419
419
|
"data-allows-dragging": !!n || void 0,
|
|
420
420
|
"data-selected": c.isSelected || void 0,
|
|
@@ -424,7 +424,7 @@ const yo = /* @__PURE__ */ ue(pe, ne), So = /* @__PURE__ */ J(be, function(e, r,
|
|
|
424
424
|
"data-focus-visible": c.isFocusVisible || void 0,
|
|
425
425
|
"data-pressed": c.isPressed || void 0,
|
|
426
426
|
"data-dragging": P || void 0,
|
|
427
|
-
"data-drop-target":
|
|
427
|
+
"data-drop-target": p?.isDropTarget || void 0,
|
|
428
428
|
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
|
|
429
429
|
}, /* @__PURE__ */ d.createElement(Y, {
|
|
430
430
|
values: [
|
|
@@ -477,13 +477,13 @@ function Ze(t, e) {
|
|
|
477
477
|
const eo = /* @__PURE__ */ oe(Ze), Eo = J(ve, function(e, r, o) {
|
|
478
478
|
let l = x(V), { isLoading: i, onLoadMore: a, scrollOffset: n, ...s } = e, f = C(null), u = re(() => ({
|
|
479
479
|
onLoadMore: a,
|
|
480
|
-
collection: l
|
|
480
|
+
collection: l?.collection,
|
|
481
481
|
sentinelRef: f,
|
|
482
482
|
scrollOffset: n
|
|
483
483
|
}), [
|
|
484
484
|
a,
|
|
485
485
|
n,
|
|
486
|
-
l
|
|
486
|
+
l?.collection
|
|
487
487
|
]);
|
|
488
488
|
xe(u, f);
|
|
489
489
|
let b = I({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as K } from "react/jsx-runtime";
|
|
2
|
-
import { e as te } from "./ListBox-
|
|
3
|
-
import { g as ie, m as le } from "./Collection-
|
|
2
|
+
import { e as te } from "./ListBox-CEkHNTKf.js";
|
|
3
|
+
import { g as ie, m as le } from "./Collection-CXAXUgCh.js";
|
|
4
4
|
import m, { useState as z, useRef as _, useMemo as k, useCallback as C, useEffect as oe, createContext as W, useContext as D } from "react";
|
|
5
|
-
import { d as ne, $ as M } from "./mergeProps-
|
|
5
|
+
import { d as ne, $ as M } from "./mergeProps-oYrDoKjU.js";
|
|
6
6
|
import { $ as j } from "./context-Dl_saGB6.js";
|
|
7
7
|
import { flushSync as V } from "react-dom";
|
|
8
|
-
import { g as se } from "./OverlayArrow
|
|
9
|
-
import { $ as re } from "./useEvent-
|
|
8
|
+
import { g as se } from "./OverlayArrow--IqDwz6a.js";
|
|
9
|
+
import { $ as re } from "./useEvent-ChPThFqF.js";
|
|
10
10
|
import { c as ae } from "./clsx-jbLnTBqA.js";
|
|
11
|
-
import { f as q } from "./SelectionManager-
|
|
11
|
+
import { f as q } from "./SelectionManager-bnxBDhgb.js";
|
|
12
12
|
import './assets/ListBox.css';class he {
|
|
13
13
|
/**
|
|
14
14
|
* Returns whether the layout should invalidate in response to
|
|
@@ -478,7 +478,7 @@ class me extends he {
|
|
|
478
478
|
shouldInvalidateEverything(e) {
|
|
479
479
|
let t = e.layoutOptions;
|
|
480
480
|
var i, l, o, n, a;
|
|
481
|
-
return e.sizeChanged || this.rowHeight !== ((i = t
|
|
481
|
+
return e.sizeChanged || this.rowHeight !== ((i = t?.rowHeight) !== null && i !== void 0 ? i : this.rowHeight) || this.headingHeight !== ((l = t?.headingHeight) !== null && l !== void 0 ? l : this.headingHeight) || this.loaderHeight !== ((o = t?.loaderHeight) !== null && o !== void 0 ? o : this.loaderHeight) || this.gap !== ((n = t?.gap) !== null && n !== void 0 ? n : this.gap) || this.padding !== ((a = t?.padding) !== null && a !== void 0 ? a : this.padding);
|
|
482
482
|
}
|
|
483
483
|
shouldInvalidateLayoutOptions(e, t) {
|
|
484
484
|
return e.rowHeight !== t.rowHeight || e.estimatedRowHeight !== t.estimatedRowHeight || e.headingHeight !== t.headingHeight || e.estimatedHeadingHeight !== t.estimatedHeadingHeight || e.loaderHeight !== t.loaderHeight || e.dropIndicatorThickness !== t.dropIndicatorThickness || e.gap !== t.gap || e.padding !== t.padding;
|
|
@@ -488,28 +488,28 @@ class me extends he {
|
|
|
488
488
|
this.invalidateEverything = this.shouldInvalidateEverything(e), this.invalidateEverything && (this.requestedRect = this.virtualizer.visibleRect.copy(), this.layoutNodes.clear());
|
|
489
489
|
let i = e.layoutOptions;
|
|
490
490
|
var l;
|
|
491
|
-
this.rowHeight = (l = i
|
|
491
|
+
this.rowHeight = (l = i?.rowHeight) !== null && l !== void 0 ? l : this.rowHeight;
|
|
492
492
|
var o;
|
|
493
|
-
this.estimatedRowHeight = (o = i
|
|
493
|
+
this.estimatedRowHeight = (o = i?.estimatedRowHeight) !== null && o !== void 0 ? o : this.estimatedRowHeight;
|
|
494
494
|
var n;
|
|
495
|
-
this.headingHeight = (n = i
|
|
495
|
+
this.headingHeight = (n = i?.headingHeight) !== null && n !== void 0 ? n : this.headingHeight;
|
|
496
496
|
var a;
|
|
497
|
-
this.estimatedHeadingHeight = (a = i
|
|
497
|
+
this.estimatedHeadingHeight = (a = i?.estimatedHeadingHeight) !== null && a !== void 0 ? a : this.estimatedHeadingHeight;
|
|
498
498
|
var h;
|
|
499
|
-
this.loaderHeight = (h = i
|
|
499
|
+
this.loaderHeight = (h = i?.loaderHeight) !== null && h !== void 0 ? h : this.loaderHeight;
|
|
500
500
|
var r;
|
|
501
|
-
this.dropIndicatorThickness = (r = i
|
|
501
|
+
this.dropIndicatorThickness = (r = i?.dropIndicatorThickness) !== null && r !== void 0 ? r : this.dropIndicatorThickness;
|
|
502
502
|
var d;
|
|
503
|
-
this.gap = (d = i
|
|
503
|
+
this.gap = (d = i?.gap) !== null && d !== void 0 ? d : this.gap;
|
|
504
504
|
var c;
|
|
505
|
-
if (this.padding = (c = i
|
|
505
|
+
if (this.padding = (c = i?.padding) !== null && c !== void 0 ? c : this.padding, this.rootNodes = this.buildCollection(), this.lastCollection && t !== this.lastCollection)
|
|
506
506
|
for (let u of this.lastCollection.getKeys()) t.getItem(u) || this.layoutNodes.get(u) && this.layoutNodes.delete(u);
|
|
507
507
|
this.lastCollection = t, this.invalidateEverything = !1, this.validRect = this.requestedRect.copy();
|
|
508
508
|
}
|
|
509
509
|
buildCollection(e = this.padding) {
|
|
510
510
|
let t = this.virtualizer.collection, i = [
|
|
511
511
|
...t
|
|
512
|
-
], l = i.filter((r) => r.type === "loader"), o = [], n =
|
|
512
|
+
], l = i.filter((r) => r.type === "loader"), o = [], n = t?.size === 0;
|
|
513
513
|
n && (e = 0);
|
|
514
514
|
for (let r of i) {
|
|
515
515
|
var a, h;
|
|
@@ -598,7 +598,7 @@ class me extends he {
|
|
|
598
598
|
buildSectionHeader(e, t, i) {
|
|
599
599
|
let l = this.virtualizer.visibleRect.width - this.padding, o = this.headingHeight, n = !1;
|
|
600
600
|
if (o == null) {
|
|
601
|
-
let r = this.layoutNodes.get(e.key), d = r
|
|
601
|
+
let r = this.layoutNodes.get(e.key), d = r?.layoutInfo;
|
|
602
602
|
if (d) {
|
|
603
603
|
let c = this.virtualizer.collection.getItem(e.key), u = this.lastCollection ? this.lastCollection.getItem(e.key) : null;
|
|
604
604
|
o = d.rect.height, n = l !== d.rect.width || c !== u || d.estimatedSize;
|
|
@@ -830,7 +830,7 @@ function xe(s, e) {
|
|
|
830
830
|
};
|
|
831
831
|
}
|
|
832
832
|
function Ie(s) {
|
|
833
|
-
let { layoutInfo: e, virtualizer: t, ref: i } = s, l = e
|
|
833
|
+
let { layoutInfo: e, virtualizer: t, ref: i } = s, l = e?.key, o = C(() => {
|
|
834
834
|
if (l != null && i.current) {
|
|
835
835
|
let n = Re(i.current);
|
|
836
836
|
t.updateItemSize(l, n);
|
|
@@ -841,7 +841,7 @@ function Ie(s) {
|
|
|
841
841
|
i
|
|
842
842
|
]);
|
|
843
843
|
return M(() => {
|
|
844
|
-
e
|
|
844
|
+
e?.estimatedSize && o();
|
|
845
845
|
}), {
|
|
846
846
|
updateSize: o
|
|
847
847
|
};
|
|
@@ -935,7 +935,7 @@ function $e({ collection: s, persistedKeys: e, scrollRef: t, renderDropIndicator
|
|
|
935
935
|
return c == null || (u = c.render) === null || u === void 0 ? void 0 : u.call(c, c);
|
|
936
936
|
},
|
|
937
937
|
onVisibleRectChange(d) {
|
|
938
|
-
let c = t
|
|
938
|
+
let c = t?.current;
|
|
939
939
|
c && (c.scrollLeft = d.x, c.scrollTop = d.y);
|
|
940
940
|
},
|
|
941
941
|
persistedKeys: e,
|
|
@@ -968,9 +968,9 @@ function _e(s, e, t) {
|
|
|
968
968
|
key: e.key,
|
|
969
969
|
layoutInfo: e.layoutInfo,
|
|
970
970
|
virtualizer: e.virtualizer,
|
|
971
|
-
parent: s
|
|
971
|
+
parent: s?.layoutInfo
|
|
972
972
|
}, e.rendered), { collection: l, layout: o } = e.virtualizer, n = e.content;
|
|
973
|
-
return
|
|
973
|
+
return n?.type === "item" && t && o.getDropTargetLayoutInfo && (i = /* @__PURE__ */ m.createElement(m.Fragment, {
|
|
974
974
|
key: e.key
|
|
975
975
|
}, Y(s, e, {
|
|
976
976
|
type: "item",
|
|
@@ -985,7 +985,7 @@ function Y(s, e, t, i) {
|
|
|
985
985
|
l = /* @__PURE__ */ m.createElement(A, {
|
|
986
986
|
layoutInfo: o,
|
|
987
987
|
virtualizer: e.virtualizer,
|
|
988
|
-
parent: s
|
|
988
|
+
parent: s?.layoutInfo
|
|
989
989
|
}, l);
|
|
990
990
|
}
|
|
991
991
|
return l;
|
|
@@ -1008,10 +1008,9 @@ class ke extends me {
|
|
|
1008
1008
|
* This might not be optional for performance, FYI
|
|
1009
1009
|
*/
|
|
1010
1010
|
getContentSize() {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
this.getLayoutInfo(i);
|
|
1011
|
+
const e = this?.virtualizer?.collection.getKeys();
|
|
1012
|
+
return Array.from(e || []).forEach((t) => {
|
|
1013
|
+
this.getLayoutInfo(t);
|
|
1015
1014
|
}), this.contentSize;
|
|
1016
1015
|
}
|
|
1017
1016
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),r=require("./clsx-DKOfLqne.cjs"),n=require("./ListBox-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),r=require("./clsx-DKOfLqne.cjs"),n=require("./ListBox-BDEzuwgf.cjs"),c=require("./ListBox-BJLtPJiW.cjs"),l=require("./Spinner-Diy-6pvn.cjs"),d=require("./useLocalizedStringFormatter-Dfow0G-0.cjs"),x=({className:s,children:e,...o})=>t.jsx("button",{type:"button",className:r.clsx(n.styles.listBoxItem,n.styles.listBoxButton,s),...o,children:e}),u={"loading...":"Loading..."},m={"loading...":"Laddar..."},L={en:u,sv:m},B=({className:s,children:e,isLoading:o,...i})=>{const a=d.useLocalizedStringFormatter(L);return t.jsx(c.$eed445e0843c11d0$export$8e6d031a08cf56a1,{className:r.clsx(n.styles.listBoxLoadMoreItem,s),isLoading:o,...i,children:e||t.jsxs(t.Fragment,{children:[t.jsx(l.Spinner,{small:!0}),t.jsx("span",{"aria-hidden":!0,children:a.format("loading...")})]})})};exports.ListBoxButton=x;exports.ListBoxLoadMoreItem=B;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { c as e } from "./clsx-jbLnTBqA.js";
|
|
3
|
-
import { s as a } from "./ListBox-
|
|
4
|
-
import { $ as c } from "./ListBox-
|
|
5
|
-
import { S as l } from "./Spinner-
|
|
6
|
-
import { u as p } from "./useLocalizedStringFormatter-
|
|
3
|
+
import { s as a } from "./ListBox-TsgvK95f.js";
|
|
4
|
+
import { $ as c } from "./ListBox-CEkHNTKf.js";
|
|
5
|
+
import { S as l } from "./Spinner-BY-ql54i.js";
|
|
6
|
+
import { u as p } from "./useLocalizedStringFormatter-m7LExKN3.js";
|
|
7
7
|
const S = ({ className: o, children: s, ...r }) => /* @__PURE__ */ t(
|
|
8
8
|
"button",
|
|
9
9
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as s, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { a as m, b as x } from "./ListBox-
|
|
2
|
+
import { a as m, b as x } from "./ListBox-CEkHNTKf.js";
|
|
3
3
|
import { c as r } from "./clsx-jbLnTBqA.js";
|
|
4
|
-
import { s as a } from "./ListBox-
|
|
5
|
-
import { b } from "./Dialog-
|
|
6
|
-
import { $ as p } from "./Separator-
|
|
4
|
+
import { s as a } from "./ListBox-TsgvK95f.js";
|
|
5
|
+
import { b } from "./Dialog-F3u8agGf.js";
|
|
6
|
+
import { $ as p } from "./Separator-Cxt7kicM.js";
|
|
7
7
|
const N = ({
|
|
8
8
|
children: o,
|
|
9
9
|
className: t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("./ListBox-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("./ListBox-BJLtPJiW.cjs"),x=require("./clsx-DKOfLqne.cjs"),i=require("./ListBox-BDEzuwgf.cjs"),l=require("./Dialog-XOUP-FA_.cjs"),B=require("./Separator--v6lgpnX.cjs"),$=({children:e,className:s,textValue:o,...n})=>t.jsx(c.$eed445e0843c11d0$export$a11e76429ed99b4,{className:x.clsx(i.styles.listBoxItem,s),textValue:o||(typeof e=="string"?e:void 0),...n,children:a=>t.jsx("div",{className:i.styles.textContent,children:typeof e=="function"?e(a):e})}),b=({className:e,children:s,...o})=>t.jsx(l.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:x.clsx(e,i.styles.listBoxPopover),offset:0,...o,children:s}),r=({className:e,...s})=>t.jsx(B.$72a5793c14baf454$export$8b251419efc915eb,{className:x.clsx(i.styles.listBoxSectionHeading,e),...s}),d=({children:e,name:s,...o})=>t.jsxs(c.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...o,children:[s&&t.jsx(r,{children:s}),e]});exports.ListBoxHeader=r;exports.ListBoxItem=$;exports.ListBoxPopover=b;exports.ListBoxSection=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./context-UOrD6Zxk.cjs"),c=require("./SelectionManager-C4hvFZl0.cjs"),h=require("./scrollIntoView-CogxjvPU.cjs");let s=new Map;function g(o){let{locale:e}=u.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=e+(o?Object.entries(o).sort((l,n)=>l[0]<n[0]?-1:1).join():"");if(s.has(t))return s.get(t);let i=new Intl.Collator(e,o);return s.set(t,i),i}class a{getItemRect(e){let t=this.ref.current;if(!t)return null;let i=e!=null?c.$feb5ffebff200149$export$c3d8340acf92597f(this.ref,e):null;if(!i)return null;let l=t.getBoundingClientRect(),n=i.getBoundingClientRect();return{x:n.left-l.left-t.clientLeft+t.scrollLeft,y:n.top-l.top-t.clientTop+t.scrollTop,width:n.width,height:n.height}}getContentSize(){let e=this.ref.current;var t,i;return{width:(t=e?.scrollWidth)!==null&&t!==void 0?t:0,height:(i=e?.scrollHeight)!==null&&i!==void 0?i:0}}getVisibleRect(){let e=this.ref.current;var t,i,l,n;return{x:(t=e?.scrollLeft)!==null&&t!==void 0?t:0,y:(i=e?.scrollTop)!==null&&i!==void 0?i:0,width:(l=e?.clientWidth)!==null&&l!==void 0?l:0,height:(n=e?.clientHeight)!==null&&n!==void 0?n:0}}constructor(e){this.ref=e}}class d{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let i=e;for(;i!=null;){let l=this.collection.getItem(i);if(l?.type==="item"&&!this.isDisabled(l))return i;i=t(i)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,i=>this.collection.getKeyAfter(i))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,i=>this.collection.getKeyBefore(i))}findKey(e,t,i){let l=e,n=this.layoutDelegate.getItemRect(l);if(!n||l==null)return null;let r=n;do{if(l=t(l),l==null)break;n=this.layoutDelegate.getItemRect(l)}while(n&&i(r,n)&&l!=null);return l}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[t](i))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,i=>this.getNextColumn(i,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[t](i))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,i=>this.getNextColumn(i,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!h.$cc38e7bd3fc7b213$export$2bb74740c4e19def(t))return this.getFirstKey();let l=e;if(this.orientation==="horizontal"){let n=Math.max(0,i.x+i.width-this.layoutDelegate.getVisibleRect().width);for(;i&&i.x>n&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let n=Math.max(0,i.y+i.height-this.layoutDelegate.getVisibleRect().height);for(;i&&i.y>n&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!h.$cc38e7bd3fc7b213$export$2bb74740c4e19def(t))return this.getLastKey();let l=e;if(this.orientation==="horizontal"){let n=Math.min(this.layoutDelegate.getContentSize().width,i.y-i.width+this.layoutDelegate.getVisibleRect().width);for(;i&&i.x<n&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let n=Math.min(this.layoutDelegate.getContentSize().height,i.y-i.height+this.layoutDelegate.getVisibleRect().height);for(;i&&i.y<n&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let i=this.collection,l=t||this.getFirstKey();for(;l!=null;){let n=i.getItem(l);if(!n)return null;let r=n.textValue.slice(0,e.length);if(n.textValue&&this.collator.compare(r,e)===0)return l;l=this.getNextKey(l)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new a(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new a(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}exports.$2a25aae57d74318e$export$a05409b8bb224a5a=d;exports.$325a3faab7a68acd$export$a16aca283550c30d=g;exports.$657e4dc4a6e88df0$export$8f5ed9ff9f511381=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $ as u } from "./context-Dl_saGB6.js";
|
|
2
|
-
import { c } from "./SelectionManager-
|
|
3
|
-
import { $ as a } from "./scrollIntoView-
|
|
2
|
+
import { c } from "./SelectionManager-bnxBDhgb.js";
|
|
3
|
+
import { $ as a } from "./scrollIntoView-LRRMWgN9.js";
|
|
4
4
|
let s = /* @__PURE__ */ new Map();
|
|
5
5
|
function y(o) {
|
|
6
6
|
let { locale: t } = u(), e = t + (o ? Object.entries(o).sort((l, n) => l[0] < n[0] ? -1 : 1).join() : "");
|
|
@@ -26,18 +26,18 @@ class h {
|
|
|
26
26
|
let t = this.ref.current;
|
|
27
27
|
var e, i;
|
|
28
28
|
return {
|
|
29
|
-
width: (e = t
|
|
30
|
-
height: (i = t
|
|
29
|
+
width: (e = t?.scrollWidth) !== null && e !== void 0 ? e : 0,
|
|
30
|
+
height: (i = t?.scrollHeight) !== null && i !== void 0 ? i : 0
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
getVisibleRect() {
|
|
34
34
|
let t = this.ref.current;
|
|
35
35
|
var e, i, l, n;
|
|
36
36
|
return {
|
|
37
|
-
x: (e = t
|
|
38
|
-
y: (i = t
|
|
39
|
-
width: (l = t
|
|
40
|
-
height: (n = t
|
|
37
|
+
x: (e = t?.scrollLeft) !== null && e !== void 0 ? e : 0,
|
|
38
|
+
y: (i = t?.scrollTop) !== null && i !== void 0 ? i : 0,
|
|
39
|
+
width: (l = t?.clientWidth) !== null && l !== void 0 ? l : 0,
|
|
40
|
+
height: (n = t?.clientHeight) !== null && n !== void 0 ? n : 0
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
constructor(t) {
|
|
@@ -53,7 +53,7 @@ class K {
|
|
|
53
53
|
let i = t;
|
|
54
54
|
for (; i != null; ) {
|
|
55
55
|
let l = this.collection.getItem(i);
|
|
56
|
-
if (
|
|
56
|
+
if (l?.type === "item" && !this.isDisabled(l)) return i;
|
|
57
57
|
i = e(i);
|
|
58
58
|
}
|
|
59
59
|
return null;
|
|
@@ -23,7 +23,7 @@ class u {
|
|
|
23
23
|
[e]: n[a]
|
|
24
24
|
}, e);
|
|
25
25
|
}
|
|
26
|
-
let r = i
|
|
26
|
+
let r = i?.[t];
|
|
27
27
|
if (!r) throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
|
|
28
28
|
return r;
|
|
29
29
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const f=Symbol.for("react-aria.i18n.locale"),g=Symbol.for("react-aria.i18n.strings");let l;class s{getStringForLocale(t,e){let n=this.getStringsForLocale(e)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${e} locale`);return n}getStringsForLocale(t){let e=this.strings[t];return e||(e=$(t,this.strings,this.defaultLocale),this.strings[t]=e),e}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let e=window[f];if(l===void 0){let n=window[g];if(!n)return null;l={};for(let a in n)l[a]=new s({[e]:n[a]},e)}let r=l?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,e="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=e}}function $(i,t,e="en-US"){if(t[i])return t[i];let r=b(i);if(t[r])return t[r];for(let n in t)if(n.startsWith(r+"-"))return t[n];return t[e]}function b(i){return Intl.Locale?new Intl.Locale(i).language:i.split("-")[0]}const c=new Map,d=new Map;class h{format(t,e){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(e,this):r}plural(t,e,r="cardinal"){let n=e["="+t];if(n)return typeof n=="function"?n():n;let a=this.locale+":"+r,o=c.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),c.set(a,o));let u=o.select(t);return n=e[u]||e.other,typeof n=="function"?n():n}number(t){let e=d.get(this.locale);return e||(e=new Intl.NumberFormat(this.locale),d.set(this.locale,e)),e.format(t)}select(t,e){let r=t[e]||t.other;return typeof r=="function"?r():r}constructor(t,e){this.locale=t,this.strings=e}}exports.$5b160d28a433310d$export$c17fa47878dc55b6=s;exports.$6db58dc88e78b024$export$2f817fcdc4b89ae0=h;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import { c as o } from "./clsx-jbLnTBqA.js";
|
|
3
|
-
import { u as i } from "./useLocalizedStringFormatter-
|
|
3
|
+
import { u as i } from "./useLocalizedStringFormatter-m7LExKN3.js";
|
|
4
4
|
import './assets/Logo.css';const m = "_container_191fy_1", p = "_noPadding_191fy_6", g = "_logo_191fy_10", f = "_primary_191fy_15", M = "_dark_191fy_23", Z = "_xSmall_191fy_31", _ = "_small_191fy_35", u = "_large_191fy_39", l = {
|
|
5
5
|
container: m,
|
|
6
6
|
noPadding: p,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Logo.css');const c=require("react/jsx-runtime"),h=require("./clsx-DKOfLqne.cjs"),v=require("./useLocalizedStringFormatter-
|
|
1
|
+
"use strict";require('./assets/Logo.css');const c=require("react/jsx-runtime"),h=require("./clsx-DKOfLqne.cjs"),v=require("./useLocalizedStringFormatter-Dfow0G-0.cjs"),i="_container_191fy_1",x="_noPadding_191fy_6",g="_logo_191fy_10",m="_primary_191fy_15",p="_dark_191fy_23",M="_xSmall_191fy_31",f="_small_191fy_35",Z="_large_191fy_39",l={container:i,noPadding:x,logo:g,primary:m,dark:p,xSmall:M,small:f,large:Z},u={logotype:"Logotype of the Swedish Migration Agency"},j={logotype:"Migrationsverkets logotyp"},_={en:u,sv:j},y=({primary:o=!0,size:s="medium",padding:t=!0,className:d,...n})=>{const e=h.clsx(l.logo,o?l.primary:l.dark,s==="x-small"&&l.xSmall,s==="medium"&&l.medium,s==="large"&&l.large,s==="small"&&l.small),a=v.useLocalizedStringFormatter(_),r=()=>s==="x-small"?c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 92",className:e,role:"img","aria-hidden":"false",focusable:"false","aria-label":a.format("logotype"),children:c.jsx("path",{d:"M99.99,91.69c-1.84-1.11-4.05-4.55-4.05-9.46V9.15c0-4.79,1.96-7.25,3.81-8.85h-14.75l-33.91,65.47L12.41.3H0c1.6,1.59,3.93,3.07,3.93,8.23v75.55c0,3.56-2.21,6.51-3.81,7.61h16.34c-1.72-1.22-3.93-4.18-3.93-7.98V25.97l36.24,61.42,33.04-63.26v58.96c0,5.53-2.21,7.61-3.81,8.6h21.99Z"})}):c.jsxs("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 112 40",className:e,"aria-hidden":"false",focusable:"false","aria-label":a.format("logotype"),children:[c.jsx("path",{d:"M97.78,21.61c-7.48-9.73-20.06-16.03-34.32-16.03-13.07,0-24.86,5.27-32.46,13.65,6.56-5.83,15.64-9.44,25.66-9.44,11.37,0,21.52,4.56,28.18,11.83h12.94Z"}),c.jsx("path",{d:"M90.45,12.58C70.67-1.51,41.26,2.77,27.49,21.61h-12.23C30.56-2.89,68.29-7.47,90.45,12.58h0Z"}),c.jsx("path",{d:"M11.89,37.13c-.22-.13-.48-.53-.48-1.11v-8.58c0-.56.23-.85.45-1.04h-1.73l-3.98,7.69-4.54-7.69H.15c.19.19.46.36.46.97v8.87c0,.42-.26.76-.45.89h1.92c-.2-.14-.46-.49-.46-.94v-6.78l4.25,7.21,3.88-7.43v6.92c0,.65-.26.89-.45,1.01h2.58Z"}),c.jsx("path",{d:"M15.81,26.86c0-.45-.36-.81-.81-.81s-.81.36-.81.81.36.81.81.81.81-.36.81-.81h0ZM16.22,37.13c-.3-.23-.45-.5-.45-1.07v-6.4h-1.98c.37.19.49.58.49,1.17v5.23c0,.48-.09.79-.46,1.07h2.39Z",fillRule:"evenodd"}),c.jsx("path",{d:"M24.52,30.97c-.04-.33-.17-.68-.37-.95h-1.36c-.29-.26-.87-.58-1.96-.58-1.53,0-2.8.92-2.8,2.58,0,1.02.52,1.86,1.31,2.26-.43.37-1.38.98-1.38,1.61,0,.71.79.99,1.38,1.1-.88.26-1.67.82-1.67,1.59,0,1.14,1.73,1.41,2.64,1.41,1.54,0,3.91-.78,3.91-2.64,0-1.21-1.23-1.49-2.22-1.5-2.42-.06-2.51-.2-2.51-.56,0-.2.42-.68.55-.81.23.03.48.06.71.06,1.76,0,2.93-.94,2.93-2.7,0-.48-.14-.91-.29-1.11.12-.04.25-.04.37-.04.27,0,.55.12.76.27h0ZM22.27,32.21c0,.79-.37,1.61-1.36,1.61-1.07,0-1.47-1.21-1.47-2.09,0-.95.5-1.57,1.31-1.57,1.2,0,1.51,1.25,1.51,2.05h0ZM22.89,37.92c0,.76-.82,1.31-1.93,1.31-.59,0-1.7-.3-1.69-1.15,0-.45.26-.74.59-.99l1.96.04c.5.01,1.07.1,1.07.79h0Z",fillRule:"evenodd"}),c.jsx("path",{d:"M30.11,31.22l-.23-1.63c-.2-.1-.43-.14-.65-.14-.85,0-1.46.68-1.79,1.37v-1.15h-1.96c.45.27.48.76.48,1.14v5.19c0,.58-.1.89-.45,1.14h2.35c-.36-.29-.42-.63-.42-1.12v-4.27c.22-.58.78-1.04,1.43-1.04.46,0,.97.26,1.24.52h0Z"}),c.jsx("path",{d:"M36.87,37.13c-.37-.33-.43-.59-.43-1.25v-3.89c0-2.21-1.43-2.55-2.8-2.55-.61,0-1.67.22-2.03.42-.2.4-.3,1.24-.4,1.67.46-.56,1.27-1.37,2.39-1.37,1.18,0,1.36.82,1.36,1.7v.39l-2.21.76c-1.04.36-1.87,1.08-1.87,2.26,0,1.31.88,2.08,2.15,2.08.87,0,1.46-.43,1.93-.94v.72h1.92ZM34.95,35.62c-.26.32-.74.85-1.37.85-.75,0-1.18-.79-1.18-1.54,0-.71.35-1.15.89-1.37l1.66-.63v2.7h0Z",fillRule:"evenodd"}),c.jsx("path",{d:"M42.58,36.15c-.29.27-.71.46-1.11.46-.87,0-1.07-.98-1.07-1.66v-4.51h.85c.43,0,.94.13,1.33.35l-.17-1.12h-2v-1.76c-.68.95-1.54,1.96-2.58,2.54h1.1v4.43c0,1.43.32,2.47,1.95,2.47.48,0,.98-.1,1.38-.36.14-.25.25-.55.33-.82h0Z"}),c.jsx("path",{d:"M45.63,26.86c0-.45-.36-.81-.81-.81s-.81.36-.81.81.36.81.81.81.81-.36.81-.81h0ZM46.04,37.13c-.3-.23-.45-.5-.45-1.07v-6.4h-1.98c.37.19.49.58.49,1.17v5.23c0,.48-.09.79-.46,1.07h2.39Z",fillRule:"evenodd"}),c.jsx("path",{d:"M54.96,33.37c0-2.06-1.3-3.95-3.5-3.95s-3.84,1.76-3.84,4.01c0,2.06,1.28,3.95,3.49,3.95s3.85-1.76,3.85-4.01h0ZM53.43,34.04c0,1.27-.52,2.57-1.86,2.57-1.79,0-2.42-2.44-2.42-3.86,0-1.21.48-2.57,1.87-2.57,1.79,0,2.41,2.44,2.41,3.86h0Z",fillRule:"evenodd"}),c.jsx("path",{d:"M63.37,37.13c-.27-.22-.45-.42-.45-1.11v-3.94c0-1.63-.39-2.64-2.18-2.64-1.01,0-1.79.56-2.38,1.12v-.91h-1.98c.3.17.49.46.49,1.05v5.33c0,.59-.14.88-.48,1.08h2.39c-.23-.23-.43-.37-.43-1.17v-4.4c.32-.45,1.07-1.24,1.85-1.24,1.01,0,1.23,1.01,1.23,1.8v3.95c0,.74-.26.87-.46,1.05h2.39Z"}),c.jsx("path",{d:"M69.79,35.2c0-2.21-3.42-2.71-3.42-4.07,0-.75.71-.98,1.34-.98s1.33.29,1.74.81l-.07-1.18c-.46-.17-1.11-.35-1.69-.35-1.44,0-2.68.63-2.68,1.89,0,2.36,3.46,2.68,3.46,4.25,0,.79-.62,1.05-1.31,1.05-1.01,0-1.86-.46-2.52-1.21v.1c0,.4-.03.99.3,1.27.53.43,1.53.56,2.18.56,1.36,0,2.67-.62,2.67-2.15h0Z",fillRule:"evenodd"}),c.jsx("path",{d:"M77.98,29.66h-1.43c.13.1.11.56-.19,1.33l-1.86,4.72-1.87-4.7c-.26-.65-.32-1.15-.16-1.34h-2.06c.19.1.49.85.82,1.67l2.31,5.8h1.31l2.35-5.97c.32-.81.56-1.36.78-1.5h0Z"}),c.jsx("path",{d:"M84.91,33.54v-.23c0-1.92-.62-3.88-2.88-3.88s-3.56,2.02-3.56,4.11,1.41,3.81,3.58,3.81c.78,0,1.62-.17,2.13-.45.32-.35.49-.79.59-1.27-.69.5-1.41.84-2.31.84-1.49,0-2.35-1.57-2.38-2.88l4.83-.04h0ZM83.34,32.88c-1.1.09-2.16.1-3.27.1.01-.78.29-2.83,1.7-2.83,1.33,0,1.57,1.72,1.57,2.73h0Z",fillRule:"evenodd"}),c.jsx("path",{d:"M90.95,31.22l-.23-1.63c-.2-.1-.43-.14-.65-.14-.85,0-1.46.68-1.79,1.37v-1.15h-1.96c.45.27.48.76.48,1.14v5.19c0,.58-.1.89-.45,1.14h2.35c-.36-.29-.42-.63-.42-1.12v-4.27c.22-.58.78-1.04,1.43-1.04.46,0,.97.26,1.24.52h0Z"}),c.jsx("path",{d:"M99.79,37.16c-2.26-.37-2.49-4.04-4.7-4.04l2.62-2.8c.22-.23.5-.48.75-.66h-1.77c.14.14.13.39-.13.66l-2.65,2.83v-7.07h-1.98c.33.2.49.56.49,1.01v9.01c0,.58-.22.81-.46,1.02h2.35c-.26-.25-.4-.49-.4-1.02v-2.57c.27,0,.62.13.82.26,1.28.82,1.95,3.11,2.67,3.45.14.07.94.1,1.14.1.45,0,.84-.03,1.25-.19h0Z"}),c.jsx("path",{d:"M106.3,33.54v-.23c0-1.92-.62-3.88-2.88-3.88s-3.56,2.02-3.56,4.11,1.41,3.81,3.58,3.81c.78,0,1.62-.17,2.13-.45.32-.35.49-.79.59-1.27-.69.5-1.41.84-2.31.84-1.49,0-2.35-1.57-2.38-2.88l4.83-.04h0ZM104.73,32.88c-1.1.09-2.16.1-3.27.1.01-.78.29-2.83,1.7-2.83,1.33,0,1.57,1.72,1.57,2.73h0Z",fillRule:"evenodd"}),c.jsx("path",{d:"M111.85,36.15c-.29.27-.71.46-1.11.46-.86,0-1.07-.98-1.07-1.66v-4.51h.85c.43,0,.94.13,1.33.35l-.17-1.12h-2v-1.76c-.68.95-1.54,1.96-2.58,2.54h1.1v4.43c0,1.43.32,2.47,1.95,2.47.48,0,.98-.1,1.38-.36.14-.25.25-.55.33-.82h0Z"})]});return c.jsx("div",{className:h.clsx(l.container,t===!1&&l.noPadding,d),...n,children:c.jsx(r,{})})};exports.Logo=y;
|