@midas-ds/components 12.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccordionItem-C9dBt-tQ.js +335 -0
- package/AccordionItem-SOfjXh3V.cjs +1 -0
- package/{BadgeContainer-DGJGJMPi.js → BadgeContainer-iNNgJKD9.js} +8 -8
- package/BadgeContainer-su0iCJKy.cjs +1 -0
- package/Breadcrumbs-BAHJMPsu.js +271 -0
- package/Breadcrumbs-DUcHHI_2.cjs +1 -0
- package/Button-CMIbSc4-.cjs +1 -0
- package/{Button-DtC_ZOyd.js → Button-DD5_S-tD.js} +155 -161
- package/{Button-akT6Hvug.js → Button-DYcmg49Z.js} +2 -2
- package/{Button-DQm2iqKU.cjs → Button-DrL5Jv-s.cjs} +1 -1
- package/Button.module-BNLcvARn.cjs +1 -0
- package/Button.module-Bax2YU6N.js +14 -0
- package/ButtonGroup-ClYTgaRc.cjs +1 -0
- package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
- package/CHANGELOG.md +65 -0
- package/Card-BDDyGAMA.js +131 -0
- package/Card-mj5lCIR4.cjs +1 -0
- package/{CharacterCounter-DQJVM-mZ.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
- package/CharacterCounter-DT7A0wWP.js +22 -0
- package/Checkbox-BtM2rFh9.js +278 -0
- package/Checkbox-CvdIG43J.cjs +1 -0
- package/CheckboxGroup-C94as9Xt.cjs +1 -0
- package/CheckboxGroup-CjcDYBRk.js +157 -0
- package/Collection-B0_WAieZ.js +625 -0
- package/Collection-BvWp2xBd.cjs +1 -0
- package/{ColorSchemeSwitch-DyZ9FAKG.js → ColorSchemeSwitch-C4PMYeD5.js} +20 -28
- package/{ColorSchemeSwitch-DtyJ9-5B.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +3 -3
- package/ComboBox-B2EmfOyr.cjs +1 -0
- package/{ComboBox-Dn3tQzri.js → ComboBox-BWXJZyOR.js} +522 -507
- package/DateField-CcQJYDLD.js +47 -0
- package/DateField-IpCiF81R.cjs +1 -0
- package/{DateInputDivider-CJEGWmG0.js → DateInputDivider-CXkUdlzc.js} +936 -839
- package/DateInputDivider-Cf5GZHlM.cjs +1 -0
- package/DateRangePicker-B2BJO1KC.js +889 -0
- package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
- package/Dialog-B8swxl24.js +1643 -0
- package/Dialog-DR6nEqMT.cjs +1 -0
- package/Dialog-DgJobm71.cjs +1 -0
- package/Dialog-P3frHOdq.js +240 -0
- package/DragAndDrop-Dw8JZmrn.cjs +1 -0
- package/DragAndDrop-PrUJv--B.js +75 -0
- package/{Dropdown-BWbdSQ9U.js → Dropdown-CIvWpN3v.js} +8 -8
- package/{Dropdown-CJ-sujKv.cjs → Dropdown-DJ2vWAqk.cjs} +2 -2
- package/FieldError-Cornph2A.cjs +1 -0
- package/FieldError-DdvFyIf4.js +48 -0
- package/{FileUpload-B89QfnCB.js → FileUpload-D2gnQKdn.js} +76 -74
- package/{FileUpload-KQ1XAKAc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
- package/{FocusScope-CEgd3xCY.js → FocusScope-Bj40Ir-g.js} +192 -195
- package/FocusScope-Uy3DiY0-.cjs +1 -0
- package/{Grid-Db5wZrw6.cjs → Grid-WbEkSCGh.cjs} +1 -1
- package/{Grid-B2av0vt8.js → Grid-s8ovKDi8.js} +1 -1
- package/GridItem-CIVF1fRW.cjs +1 -0
- package/GridItem-D3FZyyO-.js +243 -0
- package/{Group-Cdy6z9ra.cjs → Group-BKYGeOBr.cjs} +1 -1
- package/{Group-B3mRMVy7.js → Group-C73mD_-i.js} +13 -13
- package/Heading-BQlmb5Tm.js +46 -0
- package/Heading-D3FR_KXb.cjs +1 -0
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/InfoBanner-CqjnTYaa.cjs +1 -0
- package/InfoBanner-CrA8MS3v.js +83 -0
- package/{Input-BnpBRnJz.js → Input-BLVRv0FK.js} +9 -9
- package/{Input-DIhhWEPW.cjs → Input-CzMx2mfl.cjs} +1 -1
- package/{Label-ByWt6Lfh.js → Label-BG7G0iyG.js} +24 -28
- package/Label-C00qz3kQ.cjs +1 -0
- package/Layout-Bta_Cpq_.cjs +16 -0
- package/Layout-CG-Qxr_1.js +482 -0
- package/{Link-Dnnv00g9.js → Link-BtxKZ0h3.js} +16 -16
- package/Link-Bx6avHVl.cjs +6 -0
- package/Link-CbFSuEI1.js +73 -0
- package/Link-wM7cVPlS.cjs +1 -0
- package/LinkButton-BvXu6vAH.cjs +6 -0
- package/LinkButton-D3EnZ65v.js +69 -0
- package/ListBox-ICZKGluC.cjs +1 -0
- package/ListBox-LncMQt6I.js +523 -0
- package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
- package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
- package/ListBoxSection-BCPv9H50.js +1085 -0
- package/ListBoxSection-Dx75ZinL.cjs +1 -0
- package/{ListKeyboardDelegate-mcrZobNa.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
- package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
- package/{Logo-BW5NXAdu.cjs → Logo-CFjZc5u2.cjs} +1 -1
- package/{Logo-qkVS1MCN.js → Logo-DkagDdKQ.js} +15 -19
- package/OverlayArrow-ByH6lM-H.cjs +1 -0
- package/OverlayArrow-CvNuu3e3.js +519 -0
- package/{Popover-C5chAY42.cjs → Popover-Bi5yJEoE.cjs} +1 -1
- package/{Popover-viLqHHX2.js → Popover-CyEVqpJ6.js} +11 -11
- package/{PressResponder-B_Zqu7b1.js → PressResponder-CxVtArtP.js} +9 -9
- package/PressResponder-DbnYqwGB.cjs +1 -0
- package/ProgressBar-CdXHEJh6.js +53 -0
- package/ProgressBar-CjuHokVZ.cjs +1 -0
- package/Radio-Bll-7H8O.cjs +1 -0
- package/Radio-DoWx2AE1.js +333 -0
- package/RangeCalendar-A4WQIG7P.cjs +6 -0
- package/{RangeCalendar-DGGMbb0j.js → RangeCalendar-D7eFVAPP.js} +638 -630
- package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
- package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
- package/{SearchField-Ma3KB8Em.cjs → SearchField-BbrUZpQm.cjs} +2 -2
- package/{SearchField-B0dlPqsW.js → SearchField-F2FKgYds.js} +29 -33
- package/Select-BnbDXwgD.cjs +1 -0
- package/Select-Dpi3LhbI.js +654 -0
- package/{SelectionManager-BdKKuso-.js → SelectionManager-Bq-Gw1UT.js} +291 -282
- package/SelectionManager-BtbHoHpA.cjs +1 -0
- package/Separator-CM0KPvsX.js +105 -0
- package/Separator-Cfv2pbWf.cjs +1 -0
- package/Separator-DH-5wu9X.js +77 -0
- package/Separator-Dgin8BNW.cjs +1 -0
- package/Skeleton-BpYj25p8.js +37 -0
- package/Skeleton-DMOxEwnd.cjs +1 -0
- package/Spinner-D1UBuLy4.cjs +6 -0
- package/Spinner-DTKb_LAA.js +47 -0
- package/TabList-D4WwgQY3.cjs +1 -0
- package/TabList-D9tl2s85.js +397 -0
- package/Table-C6k3PiiC.cjs +16 -0
- package/{Table-CTS0J_sQ.js → Table-CkN3y69S.js} +856 -798
- package/Tag-7dHEMQum.cjs +1 -0
- package/Tag-BUJ20HHw.js +765 -0
- package/Text-BAFsaON-.cjs +1 -0
- package/{Text--KL3Auo7.js → Text-Be7WIOwv.js} +3 -3
- package/{Text-wuw0HQoa.cjs → Text-BtPiT2P1.cjs} +1 -1
- package/Text-CmlsaWMA.js +32 -0
- package/TextArea-BCikUXaD.cjs +1 -0
- package/TextArea-h5_oBQH1.js +125 -0
- package/TextField-Bm5916AD.cjs +1 -0
- package/TextField-_UY8CXtW.js +134 -0
- package/TextField.module-C9Zm9unF.js +13 -0
- package/TextField.module-GTQtNO0r.cjs +1 -0
- package/{Toast-BnzpC_5v.js → Toast-BBkWczCk.js} +202 -214
- package/{Toast-BEh5yYzO.cjs → Toast-DclaxvZM.cjs} +1 -1
- package/ToggleButtonGroup-BGG64PK1.js +214 -0
- package/ToggleButtonGroup-Da330GRT.cjs +1 -0
- package/Tooltip-BHAtsp9k.js +281 -0
- package/Tooltip-CZa9n5sT.cjs +1 -0
- package/{VisuallyHidden-BKslUoMJ.js → VisuallyHidden-CGEtjAP7.js} +8 -8
- package/{VisuallyHidden-DxDOcIsh.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/BadgeContainer.css +1 -1
- package/assets/Breadcrumbs.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/ButtonGroup.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/CharacterCounter.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Dropdown.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/GridItem.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Logo.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -0
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/ToggleButtonGroup.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/theme.css +1 -1
- package/assets/variables.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/chevron-right-0-sUFBiR.cjs +6 -0
- package/chevron-right-BYYHEJjK.js +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.d.ts +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +4 -2
- package/{context-Dl_saGB6.js → context-CGNJ3grH.js} +11 -11
- package/{context-UOrD6Zxk.cjs → context-Df3XbgBG.cjs} +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +18 -0
- 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-RRlKPKX0.cjs +1 -0
- package/filterDOMProps-wsa9OcNI.js +65 -0
- package/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BSMrH_Du.js → index-BLPblar-.js} +33 -30
- package/{index-D97L3EBk.cjs → index-DSFSh2sC.cjs} +3 -3
- package/index.cjs +1 -1
- package/index.d.ts +2 -0
- package/index.js +140 -125
- package/inertValue-B3AFhVG4.cjs +1 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +6 -5
- package/list-box/intl/translations.json.d.ts +11 -0
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/Menu.d.ts +13 -0
- package/menu/MenuItem.d.ts +5 -0
- package/menu/MenuPopover.d.ts +3 -0
- package/menu/MenuSection.d.ts +3 -0
- package/menu/Separator.d.ts +3 -0
- package/menu/index.cjs +1 -0
- package/menu/index.d.ts +5 -0
- package/menu/index.js +8 -0
- package/mergeProps-BSsN7Bgk.js +117 -0
- package/mergeProps-JhcJ7uJL.cjs +1 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +6 -4
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/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/Input.d.ts +7 -2
- package/textfield/PasswordField.d.ts +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/generated-object.d.ts +384 -0
- package/theme/generated-tokens.d.ts +334 -0
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +4 -1
- package/theme/index.js +4037 -14
- package/theme/tokens.d.ts +30 -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/{tokens-BWo7EvNX.cjs → tokens-B3FfJ-rY.cjs} +1 -1
- package/{tokens-BtEBd3jO.js → tokens-B9ooUP4g.js} +1 -2
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/useButton-D6iUB8cN.js +56 -0
- package/useButton-R8-i3HLC.cjs +1 -0
- package/useDateFormatter-2B0vgHc-.cjs +1 -0
- package/{useDateFormatter-DiIUdTak.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
- package/{useDescription-LmB1V4Tg.js → useDescription-BLmIkYCq.js} +1 -1
- package/{useDescription-ByNlNIRU.cjs → useDescription-BMuiAqI5.cjs} +1 -1
- package/useEvent-3ZO5TPSH.cjs +1 -0
- package/{useEvent-DqWz89vg.js → useEvent-DpBHTuHJ.js} +1 -1
- package/{useField-5CEdtfab.js → useField-BMegM8fA.js} +2 -2
- package/{useField-CoQAzygg.cjs → useField-DyeD7MLj.cjs} +1 -1
- package/{useFilter-BKQT28sh.js → useFilter-BFnSe_Eq.js} +1 -1
- package/{useFilter-Bjh5dq2Q.cjs → useFilter-aoggM85n.cjs} +1 -1
- package/{useFocusRing-BM-zcH6L.cjs → useFocusRing-BcbYske2.cjs} +1 -1
- package/{useFocusRing-HoJn20X5.js → useFocusRing-DMo8ctYV.js} +2 -2
- package/{useFocusWithin-Cn18Myw6.js → useFocusWithin-ClMkhYcq.js} +1 -1
- package/{useFocusWithin-o0WjCpEB.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
- package/{useFocusable-DbmryjUH.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
- package/{useFocusable-ZjCKo1ed.js → useFocusable-DXlMChFC.js} +14 -14
- package/useFormValidation-BQIRxgbU.cjs +1 -0
- package/useFormValidation-L0UHvOsP.js +217 -0
- package/{useHasTabbableChild-CyOmqumh.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
- package/useHasTabbableChild-CJcLnolh.cjs +1 -0
- package/{useHighlightSelectionDescription-DTxHtOsw.js → useHighlightSelectionDescription-BkEv9Jye.js} +5 -5
- package/{useHighlightSelectionDescription-DAhPdEG6.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
- package/{useHover-D8fja4GW.js → useHover-D6bNIkU0.js} +81 -79
- package/useHover-DGAmG7jt.cjs +1 -0
- package/{useLabels-BtDN_ALM.cjs → useLabels-CvUk-yS3.cjs} +1 -1
- package/{useLabels-DZlvh4P4.js → useLabels-Kmq5JCp_.js} +1 -1
- package/useListState-D2IEg6_e.cjs +1 -0
- package/{useListState-e7cL-FOK.js → useListState-pixYqSLl.js} +43 -42
- package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-BO2iZEL0.cjs} +1 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
- package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-N0AyjzbM.js} +1 -1
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-CicXV7UO.cjs +7 -0
- package/{usePress-B_jgTf4k.js → usePress-DMUpU0GU.js} +84 -80
- package/{useSingleSelectListState-D7LjjoUJ.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
- package/{useSingleSelectListState-BiJMNaOl.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
- package/useTextField-BC5X_AO_.js +89 -0
- package/useTextField-Cxpfu0U3.cjs +1 -0
- package/useToggleState-BVOqL4hI.js +21 -0
- package/useToggleState-SqDyNfRi.cjs +1 -0
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/utils/types.d.ts +4 -0
- package/{utils-BM2vxlNA.cjs → utils-CMHKYKlz.cjs} +1 -1
- package/{utils-KYuflGZt.js → utils-Cpcjg55U.js} +10 -10
- package/utils-DFIwp4PB.js +262 -0
- package/utils-__vrf9VZ.cjs +1 -0
- package/AccordionItem-DEiRuizp.js +0 -361
- package/AccordionItem-Dhr7uo8u.cjs +0 -1
- package/BadgeContainer-CxVmqJ7g.cjs +0 -1
- package/Breadcrumbs-CEyKlcGU.js +0 -262
- package/Breadcrumbs-CnGzvtbn.cjs +0 -1
- package/Button-DZzQGk-L.cjs +0 -1
- package/Button.module-D-mPLRxe.js +0 -14
- package/Button.module-goCEz5qs.cjs +0 -1
- package/ButtonGroup-DUqW5dzM.cjs +0 -1
- package/Card-CwwVnA_a.js +0 -131
- package/Card-DPfOZC7f.cjs +0 -1
- package/CharacterCounter-DPphWPzA.js +0 -22
- package/Checkbox-BN_3F2Hl.js +0 -264
- package/Checkbox-CZtCj4yR.cjs +0 -1
- package/CheckboxGroup--xgOT1Do.js +0 -159
- package/CheckboxGroup-DGHaqRvb.cjs +0 -1
- package/Collection-B1xL4EdF.cjs +0 -1
- package/Collection-C5vE9MtJ.js +0 -577
- package/ComboBox-UadZMhiR.cjs +0 -1
- package/DateField-CNEoLyf5.cjs +0 -1
- package/DateField-CZmLugT0.js +0 -47
- package/DateInputDivider-CCjiq90K.cjs +0 -1
- package/DateRangePicker-DhgLEa9P.cjs +0 -6
- package/DateRangePicker-WQ97Psz7.js +0 -870
- package/Dialog-BT0tVGQb.cjs +0 -1
- package/Dialog-BuJdAr0D.js +0 -1611
- package/Dialog-DYK8lySl.cjs +0 -1
- package/Dialog-L53DWF0Z.js +0 -220
- package/DragAndDrop-DKxsUpmW.js +0 -60
- package/DragAndDrop-Dgfq6uJ0.cjs +0 -1
- package/FieldError-BlKkw9YL.js +0 -46
- package/FieldError-BvU0sueN.cjs +0 -1
- package/FocusScope-CAgWgk3N.cjs +0 -1
- package/GridItem-BnyULDnc.cjs +0 -1
- package/GridItem-orSzD7H5.js +0 -243
- package/Heading-DDhdwRAW.js +0 -46
- package/Heading-OUPkdoEJ.cjs +0 -1
- package/InfoBanner-DpLcq_1R.cjs +0 -1
- package/InfoBanner-U5hxOipC.js +0 -99
- package/Label-COpr4xVt.cjs +0 -1
- package/Layout-BR3Or1Ga.cjs +0 -16
- package/Layout-Bdqauktv.js +0 -498
- package/Link-CM2N5Jq-.js +0 -72
- package/Link-Dq8IFDBx.cjs +0 -6
- package/Link-ceVlGaWQ.cjs +0 -1
- package/LinkButton-BJA9_HzL.cjs +0 -6
- package/LinkButton-DH3Nfdis.js +0 -69
- package/ListBox-D0u9svwm.cjs +0 -1
- package/ListBox-y_dw__MI.js +0 -531
- package/ListBoxButton-C2zp-gXD.cjs +0 -1
- package/ListBoxButton-DiseS_LX.js +0 -15
- package/ListBoxSection-Cv-gN76G.js +0 -1058
- package/ListBoxSection-DtsigmC1.cjs +0 -1
- package/ListKeyboardDelegate-fZKXmHAk.cjs +0 -1
- package/OverlayArrow-8praV_Xy.cjs +0 -1
- package/OverlayArrow-DfkRZlgG.js +0 -507
- package/PressResponder-Bm3_RM9c.cjs +0 -1
- package/ProgressBar-D5mNQTID.cjs +0 -1
- package/ProgressBar-wQirOG1N.js +0 -53
- package/Radio-BIomn_sP.js +0 -313
- package/Radio-CxvJ5Wrl.cjs +0 -1
- package/RangeCalendar-BvvZ2SBj.cjs +0 -11
- package/Select-769RSZ9V.js +0 -664
- package/Select-Go5x0zWl.cjs +0 -1
- package/SelectionManager-BvREZgeu.cjs +0 -1
- package/Separator-CggS0R7Q.js +0 -59
- package/Separator-DBsDhqCr.cjs +0 -1
- package/Skeleton-BAwbfKBW.cjs +0 -1
- package/Skeleton-BePDRmrO.js +0 -40
- package/Spinner-AXFRWuT6.js +0 -51
- package/Spinner-yHx_DX_4.cjs +0 -6
- package/TabList-0gj27e_e.js +0 -386
- package/TabList-Cqpup53E.cjs +0 -1
- package/Table-BhtlNY9P.cjs +0 -16
- package/Tag-B9M-nBTM.js +0 -748
- package/Tag-DkW6zaIS.cjs +0 -1
- package/Text-BUDAzDjW.js +0 -32
- package/Text-DA_gK6a2.cjs +0 -1
- package/TextArea-CSrrYY05.cjs +0 -1
- package/TextArea-DphcH6wE.js +0 -119
- package/TextField-CsyRTSEG.js +0 -120
- package/TextField-P5yICj5z.cjs +0 -1
- package/TextField.module-BcpPBWnD.js +0 -13
- package/TextField.module-Dw5Rtn9y.cjs +0 -1
- package/ToggleButtonGroup-BwFAhFEi.cjs +0 -1
- package/ToggleButtonGroup-CuxAKB3-.js +0 -211
- package/Tooltip-Bz0xCZSw.cjs +0 -1
- package/Tooltip-EuEQtHZj.js +0 -285
- package/filterDOMProps-BS2lrgFA.cjs +0 -1
- package/filterDOMProps-D6KHYVBX.js +0 -24
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/mergeProps-BYJQ6N1s.js +0 -115
- package/mergeProps-C7Sx47fA.cjs +0 -1
- package/useButton-CWHoXYnj.js +0 -47
- package/useButton-CwOQUGtY.cjs +0 -1
- package/useDateFormatter-bzjwqA2K.cjs +0 -1
- package/useEvent-CGRyLM2c.cjs +0 -1
- package/useFormValidation-BW2NSTM4.js +0 -215
- package/useFormValidation-DSRwb9US.cjs +0 -1
- package/useHasTabbableChild-CogBR_6o.cjs +0 -1
- package/useHover-CaFzQrR_.cjs +0 -1
- package/useListState-TtWy_rDI.cjs +0 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BOGIOlm8.cjs +0 -7
- package/useTextField-BVIOd8Ld.cjs +0 -1
- package/useTextField-DFkSHoQN.js +0 -86
- package/useToggleState-Bz5rAf4C.js +0 -18
- package/useToggleState-DoIkSQdj.cjs +0 -1
- package/utils-C5-CzvX2.cjs +0 -1
- package/utils-CuqJqFqQ.js +0 -234
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ListBoxSection.css');const S=require("react/jsx-runtime"),V=require("./ListBox-ICZKGluC.cjs"),W=require("./Collection-BvWp2xBd.cjs"),c=require("react"),C=require("./mergeProps-JhcJ7uJL.cjs"),X=require("./context-Df3XbgBG.cjs"),M=require("react-dom"),te=require("./OverlayArrow-ByH6lM-H.cjs"),B=require("./useEvent-3ZO5TPSH.cjs"),O=require("./clsx-C11secjj.cjs"),K=require("./SelectionManager-BtbHoHpA.cjs"),ie=require("./Dialog-DR6nEqMT.cjs"),le=require("./Separator-Dgin8BNW.cjs");class oe{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 g{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,o=Math.max(this.maxY,e.maxY)-i;return new g(t,i,l,o)}intersection(e){if(!this.intersects(e))return new g(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new g(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new g(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 z{copy(){return new z(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 ne=0;class j{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 re(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=++ne,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class se extends j{constructor(e){super(e,"root")}}class re extends j{constructor(e,t,i){super(e,i),this.parent=t}}function ae(n,e){if(n===e)return!0;if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}class he{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 g}}class de{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 g(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 o=new g(i,l,t.width,t.height);this.delegate.setVisibleRect(o)}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 g(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let o=this.layout.getVisibleLayoutInfos(l),s=new Map;for(let a of o)s.set(a.key,a);return s}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let o=e.get(i);(!o||l.parent!==this.getParentView(o))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let o=this._visibleViews.get(i);if(!o)o=this.getReusableView(l),o.parent.children.add(o),this._visibleViews.set(i,o),t.delete(o);else{o.layoutInfo=l;let s=this.collection.getItem(l.key);o.content!==s&&(o.content!=null&&this._renderedContent.delete(o.content),this._renderView(o))}}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,o=!1,s=!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&&!ae(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),o=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(o||(o=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),s||(s=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=s||o||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:o,itemSizeChanged:s,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 z,this.visibleRect=new g,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new se(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new he}}function ce(n){let[e,t]=c.useState(new g(0,0,0,0)),[i,l]=c.useState(!1),[o,s]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new de({collection:n.collection,layout:n.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:n.renderView,invalidate:s}}));C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{a.current&&(a.current=!1,n.onVisibleRectChange(e))});let r=c.useMemo(()=>n.layoutOptions!=null?{...o,layoutOptions:n.layoutOptions}:o,[o,n.layoutOptions]),d=h.render({layout:n.layout,collection:n.collection,persistedKeys:n.persistedKeys,layoutOptions:n.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),y=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:y}),[h,d,t,u,i,f,y])}const $=48;class ue extends oe{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 s=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:$)+this.gap;e.y=Math.floor(e.y/s)*s,e.height=Math.ceil(e.height/s)*s}this.layoutIfNeeded(e);let l=[],o=s=>{for(let a of s)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&o(a.children))};return o(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 g(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new g(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,o,s,a;return e.sizeChanged||this.rowHeight!==((i=t==null?void 0:t.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t==null?void 0:t.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((o=t==null?void 0:t.loaderHeight)!==null&&o!==void 0?o:this.loaderHeight)||this.gap!==((s=t==null?void 0:t.gap)!==null&&s!==void 0?s:this.gap)||this.padding!==((a=t==null?void 0: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==null?void 0:i.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var o;this.estimatedRowHeight=(o=i==null?void 0:i.estimatedRowHeight)!==null&&o!==void 0?o:this.estimatedRowHeight;var s;this.headingHeight=(s=i==null?void 0:i.headingHeight)!==null&&s!==void 0?s:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i==null?void 0:i.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i==null?void 0:i.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i==null?void 0:i.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i==null?void 0:i.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i==null?void 0: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"),o=[],s=(t==null?void 0:t.size)===0;s&&(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:$)+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,o.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 y of l){let v=i.indexOf(y);e+=(v-f-1)*d;let p=this.buildChild(y,this.padding,e,null);o.push(p),e=p.layoutInfo.rect.maxY,f=v}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=s?0:this.padding,this.contentSize=new z(this.virtualizer.visibleRect.width,e),o}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 o=this.buildNode(e,t,i);return o.layoutInfo.parentKey=l??null,o.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,o),o}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 g(t,i,this.padding,0),o=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var s,a,h;return l.height=e.props.isLoading?(h=(a=(s=this.loaderHeight)!==null&&s!==void 0?s:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$:0,{layoutInfo:o,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,o=this.virtualizer.visibleRect.width-this.padding,s=new g(t,i,o-t,0),a=new b(e.type,e.key,s),h=i,r=0,d=[];for(let y of K.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let v=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:$)+this.gap;if(i+v<this.requestedRect.y&&!this.isValid(e,i)){i+=v,r++;continue}let p=this.buildChild(y,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...K.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*v;break}}return i-=this.gap,s.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,o=this.headingHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key),d=r==null?void 0:r.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),f=this.lastCollection?this.lastCollection.getItem(e.key):null;o=d.rect.height,s=l!==d.rect.width||u!==f||d.estimatedSize}else o=e.rendered?this.estimatedHeadingHeight:0,s=!0}o==null&&(o=$);let a=new g(t,i,l-t,o),h=new b("header",e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,o=this.rowHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key);r?(o=r.layoutInfo.rect.height,s=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(o=this.estimatedRowHeight,s=!0)}o==null&&(o=$);let a=new g(t,i,l,o),h=new b(e.type,e.key,a);return h.estimatedSize=s,{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,o=i.layoutInfo;if(o.estimatedSize=!1,o.rect.height!==t.height){let s=o.copy();s.rect.height=t.height,i.layoutInfo=s,this.validRect.height=Math.min(this.validRect.height,o.rect.y-this.validRect.y),this.requestedRect.height+=s.rect.height-o.rect.height,this.updateLayoutNode(e,o,s);let a=o.parentKey!=null?l.getItem(o.parentKey):null;for(;a;)this.updateLayoutNode(a.key,o,s),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 g(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),o=this.getVisibleLayoutInfos(l),s=null,a=1/0;for(let u of o){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),y=Math.abs(u.rect.maxY-t),v=Math.min(f,y);v<a&&(a=v,s=u.key)}if(s==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(s);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 g(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let o=this.collection.getItem(e.key);if(o){var l;let s=(l=o.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<=s)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new g(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 o;this.estimatedHeadingHeight=(o=e.estimatedHeadingHeight)!==null&&o!==void 0?o:null;var s;this.loaderHeight=(s=e.loaderHeight)!==null&&s!==void 0?s: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 g,this.requestedRect=new g,this.contentSize=new z}}let R=null;function fe(n=!1){if(R===null||n){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?R="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?R="negative":R="positive-ascending"),document.body.removeChild(e),R}return R}function ge(n,e){let{scrollLeft:t}=n;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=n;switch(fe()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function ye(n,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:o,onScrollEnd:s,scrollDirection:a="both",...h}=n,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=X.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),y=c.useCallback(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),s==null||s()},[r,s]),v=c.useCallback(w=>{w.target===w.currentTarget&&(n.onScroll&&n.onScroll(w),M.flushSync(()=>{let m=w.currentTarget.scrollTop,H=ge(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(H,t.width-r.width)),i(new g(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),o&&o());let N=Date.now();!("onscrollend"in window)&&r.scrollEndTime<=N+50&&(r.scrollEndTime=N+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(y,300))}))},[n,d,r,t,i,o,y]);B.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),B.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scrollend",y),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let p=c.useRef(!1),_=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||p.current)return;p.current=!0;let H=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,N=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),ee=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),P=m.clientWidth,q=m.clientHeight,E=H&&!N?1/0:P,T=H&&!ee?1/0:q;(r.width!==E||r.height!==T)&&(r.width=E,r.height=T,w(()=>{i(new g(r.scrollLeft,r.scrollTop,E,T))}),(!H&&P!==m.clientWidth||q!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new g(r.scrollLeft,r.scrollTop,r.width,r.height))}))),p.current=!1}),L=c.useRef(null),[J,Q]=c.useState({});C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!p.current&&(L.current==null||!t.equals(L.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){Q({}),L.current=t;return}else queueMicrotask(()=>_(M.flushSync));L.current=t}),C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{_(w=>w())},[J]);let Z=c.useCallback(()=>{_(M.flushSync)},[_]);te.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:Z});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 ve(n){let{layoutInfo:e,virtualizer:t,ref:i}=n,l=e==null?void 0:e.key,o=c.useCallback(()=>{if(l!=null&&i.current){let s=pe(i.current);t.updateItemSize(l,s)}},[t,l,i]);return C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&o()}),{updateSize:o}}function pe(n){let e=n.style.height;n.style.height="";let t=new z(n.scrollWidth,n.scrollHeight);return n.style.height=e,t}function A(n){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:o,children:s}=n,{direction:a}=X.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ve({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...we(i,a,o),...e}},s)}let Y=new WeakMap;function we(n,e,t){let i=e==="rtl"?"right":"left",l=Y.get(n);if(l&&l[i]!=null){if(!t)return l;let h=n.rect.y-t.rect.y,r=n.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let o={top:n.rect.y-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.y:0),[i]:n.rect.x-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.x:0),width:n.rect.width,height:n.rect.height};Object.entries(o).forEach(([h,r])=>{Number.isFinite(r)||(o[h]=void 0)});var s;let a={position:n.isSticky?"sticky":"absolute",display:n.isSticky?"inline-block":void 0,overflow:n.allowOverflow?"visible":"hidden",opacity:n.opacity,zIndex:n.zIndex,transform:(s=n.transform)!==null&&s!==void 0?s:void 0,contain:"size layout style",...o};return Y.set(n,a),a}const F=c.createContext(null),U=c.createContext(null);function me(n){let{children:e,layout:t,layoutOptions:i}=n,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),o=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:be,CollectionBranch:xe}),[l]);return c.createElement(W.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:o},c.createElement(U.Provider,{value:{layout:l,layoutOptions:i}},e))}function be({collection:n,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:o,layoutOptions:s}=c.useContext(U),a=(l=o.useLayoutOptions)===null||l===void 0?void 0:l.call(o),h=ce({layout:o,collection:n,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==null?void 0:t.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>s&&a?{...s,...a}:s||a,[s,a])}),{contentProps:r}=ye({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(F.Provider,{value:h},G(null,h.visibleViews,i)))}function xe({parent:n,renderDropIndicator:e}){let i=c.useContext(F).virtualizer.getVisibleView(n.key);return G(i,Array.from(i.children),e)}function G(n,e,t){return e.map(i=>Ie(n,i,t))}function Ie(n,e,t){let i=c.createElement(A,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},e.rendered),{collection:l,layout:o}=e.virtualizer,s=e.content;return(s==null?void 0:s.type)==="item"&&t&&o.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},D(n,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,W.$7135fc7d473fd974$export$2dbbd341daed716d(l,s,a=>D(n,e,a,t)))),i}function D(n,e,t,i){let l=i(t);if(l){let o=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(A,{layoutInfo:o,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},l)}return l}class $e extends ue{getContentSize(){var t;const e=(t=this==null?void 0:this.virtualizer)==null?void 0:t.collection.getKeys();return Array.from(e||[]).forEach(i=>{this.getLayoutInfo(i)}),this.contentSize}}const Re="_listBox_1ns4v_7",Se="_listBoxPopover_1ns4v_19",ze="_listBoxSectionHeading_1ns4v_34",He="_listBoxButton_1ns4v_44",Ce="_listBoxItem_1ns4v_56",ke="_listBoxLoadMoreItem_1ns4v_101",k={listBox:Re,listBoxPopover:Se,listBoxSectionHeading:ze,listBoxButton:He,listBoxItem:Ce,listBoxLoadMoreItem:ke},_e=({className:n,children:e,...t})=>S.jsx(me,{layout:$e,layoutOptions:{headingHeight:44},children:S.jsx(V.$eed445e0843c11d0$export$41f133550aa26f48,{className:O.clsx(k.listBox,n),...t,children:e})}),Le=({children:n,className:e,...t})=>S.jsx(V.$eed445e0843c11d0$export$a11e76429ed99b4,{className:O.clsx(k.listBoxItem,e),...t,children:n}),Ne=({className:n,children:e,...t})=>S.jsx(ie.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:O.clsx(n,k.listBoxPopover),offset:0,...t,children:e}),Ee=({children:n,name:e,...t})=>S.jsxs(V.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[S.jsx(le.$72a5793c14baf454$export$8b251419efc915eb,{className:k.listBoxSectionHeading,children:e}),n]});exports.ListBox=_e;exports.ListBoxItem=Le;exports.ListBoxPopover=Ne;exports.ListBoxSection=Ee;exports.styles=k;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c } from "./
|
|
1
|
+
import { createContext as u } from "react";
|
|
2
|
+
import { $ as c } from "./context-CGNJ3grH.js";
|
|
3
|
+
import { c as g } from "./SelectionManager-Bq-Gw1UT.js";
|
|
3
4
|
import { $ as a } from "./scrollIntoView-ClEACHUk.js";
|
|
5
|
+
const m = /* @__PURE__ */ u(null), b = /* @__PURE__ */ u(null);
|
|
4
6
|
let s = /* @__PURE__ */ new Map();
|
|
5
|
-
function
|
|
6
|
-
let { locale: t } =
|
|
7
|
+
function x(n) {
|
|
8
|
+
let { locale: t } = c(), e = t + (n ? Object.entries(n).sort((l, o) => l[0] < o[0] ? -1 : 1).join() : "");
|
|
7
9
|
if (s.has(e)) return s.get(e);
|
|
8
10
|
let i = new Intl.Collator(t, n);
|
|
9
11
|
return s.set(e, i), i;
|
|
@@ -12,7 +14,7 @@ class h {
|
|
|
12
14
|
getItemRect(t) {
|
|
13
15
|
let e = this.ref.current;
|
|
14
16
|
if (!e) return null;
|
|
15
|
-
let i = t != null ?
|
|
17
|
+
let i = t != null ? g(this.ref, t) : null;
|
|
16
18
|
if (!i) return null;
|
|
17
19
|
let l = e.getBoundingClientRect(), o = i.getBoundingClientRect();
|
|
18
20
|
return {
|
|
@@ -44,7 +46,7 @@ class h {
|
|
|
44
46
|
this.ref = t;
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
|
-
class
|
|
49
|
+
class v {
|
|
48
50
|
isDisabled(t) {
|
|
49
51
|
var e;
|
|
50
52
|
return this.disabledBehavior === "all" && (((e = t.props) === null || e === void 0 ? void 0 : e.isDisabled) || this.disabledKeys.has(t.key));
|
|
@@ -161,7 +163,9 @@ class K {
|
|
|
161
163
|
}
|
|
162
164
|
}
|
|
163
165
|
export {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
x as $,
|
|
167
|
+
b as a,
|
|
168
|
+
m as b,
|
|
169
|
+
v as c,
|
|
170
|
+
h as d
|
|
167
171
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react"),u=require("./context-Df3XbgBG.cjs"),f=require("./SelectionManager-BtbHoHpA.cjs"),h=require("./scrollIntoView-DRSoJp89.cjs"),g=c.createContext(null),d=c.createContext(null);let s=new Map;function y(n){let{locale:e}=u.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=e+(n?Object.entries(n).sort((l,o)=>l[0]<o[0]?-1:1).join():"");if(s.has(t))return s.get(t);let i=new Intl.Collator(e,n);return s.set(t,i),i}class a{getItemRect(e){let t=this.ref.current;if(!t)return null;let i=e!=null?f.$feb5ffebff200149$export$c3d8340acf92597f(this.ref,e):null;if(!i)return null;let l=t.getBoundingClientRect(),o=i.getBoundingClientRect();return{x:o.left-l.left+t.scrollLeft,y:o.top-l.top+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,i;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(i=e==null?void 0:e.scrollHeight)!==null&&i!==void 0?i:0}}getVisibleRect(){let e=this.ref.current;var t,i,l,o;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(i=e==null?void 0:e.scrollTop)!==null&&i!==void 0?i:0,width:(l=e==null?void 0:e.offsetWidth)!==null&&l!==void 0?l:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class K{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==null?void 0: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,o=this.layoutDelegate.getItemRect(l);if(!o||l==null)return null;let r=o;do{if(l=t(l),l==null)break;o=this.layoutDelegate.getItemRect(l)}while(o&&i(r,o)&&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 o=Math.max(0,i.x+i.width-this.layoutDelegate.getVisibleRect().width);for(;i&&i.x>o&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let o=Math.max(0,i.y+i.height-this.layoutDelegate.getVisibleRect().height);for(;i&&i.y>o&&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 o=Math.min(this.layoutDelegate.getContentSize().width,i.y-i.width+this.layoutDelegate.getVisibleRect().width);for(;i&&i.x<o&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,i.y-i.height+this.layoutDelegate.getVisibleRect().height);for(;i&&i.y<o&&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 o=i.getItem(l);if(!o)return null;let r=o.textValue.slice(0,e.length);if(o.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=K;exports.$325a3faab7a68acd$export$a16aca283550c30d=y;exports.$657e4dc4a6e88df0$export$8f5ed9ff9f511381=a;exports.$8e6cc465cc68f603$export$698f465ec27e93df=d;exports.$8e6cc465cc68f603$export$b0d3ecf7112093a7=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Logo.css');const c=require("react/jsx-runtime"),h=require("./clsx-C11secjj.cjs"),v=require("./useLocalizedStringFormatter-
|
|
1
|
+
"use strict";require('./assets/Logo.css');const c=require("react/jsx-runtime"),h=require("./clsx-C11secjj.cjs"),v=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),i="_container_1eax7_1",x="_noPadding_1eax7_6",g="_logo_1eax7_10",m="_primary_1eax7_15",p="_dark_1eax7_19",M="_xSmall_1eax7_23",Z="_small_1eax7_27",u="_large_1eax7_31",l={container:i,noPadding:x,logo:g,primary:m,dark:p,xSmall:M,small:Z,large:u},j={logotype:"Logotype of the Swedish Migration Agency"},_={logotype:"Migrationsverkets logotyp"},f={en:j,sv:_},y=({primary:o=!0,size:e="medium",padding:t=!0,className:d,...n})=>{const s=h.clsx(l.logo,o?l.primary:l.dark,e==="x-small"&&l.xSmall,e==="medium"&&l.medium,e==="large"&&l.large,e==="small"&&l.small),a=v.useLocalizedStringFormatter(f),r=()=>e==="x-small"?c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 92",className:s,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:s,"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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import { c as o } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import { u as i } from "./useLocalizedStringFormatter-
|
|
4
|
-
import './assets/Logo.css';const m = "
|
|
3
|
+
import { u as i } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
4
|
+
import './assets/Logo.css';const m = "_container_1eax7_1", p = "_noPadding_1eax7_6", g = "_logo_1eax7_10", M = "_primary_1eax7_15", Z = "_dark_1eax7_19", _ = "_xSmall_1eax7_23", f = "_small_1eax7_27", x = "_large_1eax7_31", l = {
|
|
5
5
|
container: m,
|
|
6
6
|
noPadding: p,
|
|
7
7
|
logo: g,
|
|
@@ -10,37 +10,33 @@ import './assets/Logo.css';const m = "_container_1sx1z_4", p = "_noPadding_1sx1z
|
|
|
10
10
|
xSmall: _,
|
|
11
11
|
small: f,
|
|
12
12
|
large: x
|
|
13
|
-
}, u = {
|
|
14
|
-
logotype: "Logotype of the Swedish Migration Agency"
|
|
15
|
-
}, y = {
|
|
16
|
-
logotype: "Migrationsverkets logotyp"
|
|
17
|
-
}, w = {
|
|
13
|
+
}, u = { logotype: "Logotype of the Swedish Migration Agency" }, y = { logotype: "Migrationsverkets logotyp" }, w = {
|
|
18
14
|
en: u,
|
|
19
15
|
sv: y
|
|
20
|
-
},
|
|
21
|
-
primary:
|
|
16
|
+
}, L = ({
|
|
17
|
+
primary: t = !0,
|
|
22
18
|
size: a = "medium",
|
|
23
|
-
padding:
|
|
19
|
+
padding: s = !0,
|
|
24
20
|
className: d,
|
|
25
21
|
...n
|
|
26
22
|
}) => {
|
|
27
|
-
const
|
|
23
|
+
const e = o(
|
|
28
24
|
l.logo,
|
|
29
|
-
|
|
25
|
+
t ? l.primary : l.dark,
|
|
30
26
|
a === "x-small" && l.xSmall,
|
|
31
27
|
a === "medium" && l.medium,
|
|
32
28
|
a === "large" && l.large,
|
|
33
29
|
a === "small" && l.small
|
|
34
|
-
),
|
|
30
|
+
), h = i(w), r = () => a === "x-small" ? /* @__PURE__ */ c(
|
|
35
31
|
"svg",
|
|
36
32
|
{
|
|
37
33
|
xmlns: "http://www.w3.org/2000/svg",
|
|
38
34
|
viewBox: "0 0 100 92",
|
|
39
|
-
className:
|
|
35
|
+
className: e,
|
|
40
36
|
role: "img",
|
|
41
37
|
"aria-hidden": "false",
|
|
42
38
|
focusable: "false",
|
|
43
|
-
"aria-label":
|
|
39
|
+
"aria-label": h.format("logotype"),
|
|
44
40
|
children: /* @__PURE__ */ c("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" })
|
|
45
41
|
}
|
|
46
42
|
) : /* @__PURE__ */ v(
|
|
@@ -49,10 +45,10 @@ import './assets/Logo.css';const m = "_container_1sx1z_4", p = "_noPadding_1sx1z
|
|
|
49
45
|
role: "img",
|
|
50
46
|
xmlns: "http://www.w3.org/2000/svg",
|
|
51
47
|
viewBox: "0 0 112 40",
|
|
52
|
-
className:
|
|
48
|
+
className: e,
|
|
53
49
|
"aria-hidden": "false",
|
|
54
50
|
focusable: "false",
|
|
55
|
-
"aria-label":
|
|
51
|
+
"aria-label": h.format("logotype"),
|
|
56
52
|
children: [
|
|
57
53
|
/* @__PURE__ */ c("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" }),
|
|
58
54
|
/* @__PURE__ */ c("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" }),
|
|
@@ -128,7 +124,7 @@ import './assets/Logo.css';const m = "_container_1sx1z_4", p = "_noPadding_1sx1z
|
|
|
128
124
|
{
|
|
129
125
|
className: o(
|
|
130
126
|
l.container,
|
|
131
|
-
|
|
127
|
+
s === !1 && l.noPadding,
|
|
132
128
|
d
|
|
133
129
|
),
|
|
134
130
|
...n,
|
|
@@ -137,5 +133,5 @@ import './assets/Logo.css';const m = "_container_1sx1z_4", p = "_noPadding_1sx1z
|
|
|
137
133
|
);
|
|
138
134
|
};
|
|
139
135
|
export {
|
|
140
|
-
|
|
136
|
+
L
|
|
141
137
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const X=require("./mergeProps-JhcJ7uJL.cjs"),me=require("react-dom"),w=require("react"),ve=require("./useHover-DGAmG7jt.cjs"),J=require("./number-E0x3H9cL.cjs"),ge=require("./context-Df3XbgBG.cjs"),be=require("./useControlledState-D0L6S_5r.cjs"),ee=require("./utils-CMHKYKlz.cjs"),he=require("./filterDOMProps-RRlKPKX0.cjs");function xe(){return typeof window.ResizeObserver<"u"}function K(t){const{ref:e,box:l,onResize:r}=t;w.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(xe()){const n=new window.ResizeObserver(c=>{c.length&&r()});return n.observe(o,{box:l}),()=>{o&&n.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,l])}function we(t,e=!0){let[l,r]=w.useState(!0),o=l&&e;return X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let n of t.current.getAnimations())n instanceof CSSTransition&&n.cancel()},[t,o]),ae(t,o,w.useCallback(()=>r(!1),[])),o}function Ee(t,e){let[l,r]=w.useState(e?"open":"closed");switch(l){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let o=l==="exiting";return ae(t,o,w.useCallback(()=>{r(n=>n==="exiting"?"closed":n)},[])),o}function ae(t,e,l){X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){l();return}let r=t.current.getAnimations();if(r.length===0){l();return}let o=!1;return Promise.all(r.map(n=>n.finished)).then(()=>{o||me.flushSync(()=>{l()})}).catch(()=>{}),()=>{o=!0}}},[t,e,l])}const M={top:"top",bottom:"top",left:"left",right:"left"},j={top:"bottom",bottom:"top",left:"right",right:"left"},Pe={top:"left",left:"top"},Q={top:"height",left:"width"},ce={width:"totalWidth",height:"totalHeight"},Z={};let C=typeof document<"u"?window.visualViewport:null;function te(t){let e=0,l=0,r=0,o=0,n=0,c=0,i={};var b;let d=((b=C==null?void 0:C.scale)!==null&&b!==void 0?b:1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,o=u.clientHeight;var p;e=(p=C==null?void 0:C.width)!==null&&p!==void 0?p:r;var m;l=(m=C==null?void 0:C.height)!==null&&m!==void 0?m:o,i.top=u.scrollTop||t.scrollTop,i.left=u.scrollLeft||t.scrollLeft,C&&(n=C.offsetTop,c=C.offsetLeft)}else({width:e,height:l,top:n,left:c}=Y(t,!1)),i.top=t.scrollTop,i.left=t.scrollLeft,r=e,o=l;if(ve.$c87311424ea30a05$export$78551043582a6a98()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d){i.top=0,i.left=0;var $;n=($=C==null?void 0:C.pageTop)!==null&&$!==void 0?$:0;var s;c=(s=C==null?void 0:C.pageLeft)!==null&&s!==void 0?s:0}return{width:e,height:l,totalWidth:r,totalHeight:o,scroll:i,top:n,left:c}}function Ce(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function oe(t,e,l,r,o,n,c){var i;let b=(i=o.scroll[t])!==null&&i!==void 0?i:0,d=r[Q[t]],p=r.scroll[M[t]]+n,m=d+r.scroll[M[t]]-n,$=e-b+c[t]-r[M[t]],s=e-b+l+c[t]-r[M[t]];return $<p?p-$:s>m?Math.max(m-s,p-$):0}function Le(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function le(t){if(Z[t])return Z[t];let[e,l]=t.split(" "),r=M[e]||"right",o=Pe[r];M[l]||(l="center");let n=Q[r],c=Q[o];return Z[t]={placement:e,crossPlacement:l,axis:r,crossAxis:o,size:n,crossSize:c},Z[t]}function W(t,e,l,r,o,n,c,i,b,d){let{placement:p,crossPlacement:m,axis:$,crossAxis:s,size:u,crossSize:v}=r,f={};var R;f[s]=(R=t[s])!==null&&R!==void 0?R:0;var a,E,x,T;m==="center"?f[s]+=(((a=t[v])!==null&&a!==void 0?a:0)-((E=l[v])!==null&&E!==void 0?E:0))/2:m!==s&&(f[s]+=((x=t[v])!==null&&x!==void 0?x:0)-((T=l[v])!==null&&T!==void 0?T:0)),f[s]+=n;const g=t[s]-l[v]+b+d,S=t[s]+t[v]-b-d;if(f[s]=J.$9446cca9a3875146$export$7d15b64cf5a3a4c4(f[s],g,S),p===$){const k=i?c[u]:e[ce[u]];f[j[$]]=Math.floor(k-t[$]+o)}else f[$]=Math.floor(t[$]+t[u]+o);return f}function Re(t,e,l,r,o,n,c,i){const b=r?l.height:e[ce.height];var d;let p=t.top!=null?l.top+t.top:l.top+(b-((d=t.bottom)!==null&&d!==void 0?d:0)-c);var m,$,s,u,v,f;let R=i!=="top"?Math.max(0,e.height+e.top+((m=e.scroll.top)!==null&&m!==void 0?m:0)-p-((($=o.top)!==null&&$!==void 0?$:0)+((s=o.bottom)!==null&&s!==void 0?s:0)+n)):Math.max(0,p+c-(e.top+((u=e.scroll.top)!==null&&u!==void 0?u:0))-(((v=o.top)!==null&&v!==void 0?v:0)+((f=o.bottom)!==null&&f!==void 0?f:0)+n));return Math.min(e.height-n*2,R)}function re(t,e,l,r,o,n){let{placement:c,axis:i,size:b}=n;var d,p;if(c===i)return Math.max(0,l[i]-t[i]-((d=t.scroll[i])!==null&&d!==void 0?d:0)+e[i]-((p=r[i])!==null&&p!==void 0?p:0)-r[j[i]]-o);var m;return Math.max(0,t[b]+t[i]+t.scroll[i]-e[i]-l[i]-l[b]-((m=r[i])!==null&&m!==void 0?m:0)-r[j[i]]-o)}function Te(t,e,l,r,o,n,c,i,b,d,p,m,$,s,u,v){let f=le(t),{size:R,crossAxis:a,crossSize:E,placement:x,crossPlacement:T}=f,g=W(e,i,l,f,p,m,d,$,u,v),S=p,k=re(i,d,e,o,n+p,f);if(c&&r[R]>k){let G=le(`${j[x]} ${T}`),$e=W(e,i,l,G,p,m,d,$,u,v);re(i,d,e,o,n+p,G)>k&&(f=G,g=$e,S=p)}let _="bottom";f.axis==="top"?f.placement==="top"?_="top":f.placement==="bottom"&&(_="bottom"):f.crossAxis==="top"&&(f.crossPlacement==="top"?_="bottom":f.crossPlacement==="bottom"&&(_="top"));let y=oe(a,g[a],l[E],i,b,n,d);g[a]+=y;let z=Re(g,i,d,$,o,n,l.height,_);s&&s<z&&(z=s),l.height=Math.min(l.height,z),g=W(e,i,l,f,S,m,d,$,u,v),y=oe(a,g[a],l[E],i,b,n,d),g[a]+=y;let P={},L=e[a]-g[a]-o[M[a]],O=L+.5*e[E];const B=u/2+v;var A,N,F,I;const H=M[a]==="left"?((A=o.left)!==null&&A!==void 0?A:0)+((N=o.right)!==null&&N!==void 0?N:0):((F=o.top)!==null&&F!==void 0?F:0)+((I=o.bottom)!==null&&I!==void 0?I:0),q=l[E]-H-u/2-v,U=e[a]+u/2-(g[a]+o[M[a]]),de=e[a]+e[E]-u/2-(g[a]+o[M[a]]),ue=J.$9446cca9a3875146$export$7d15b64cf5a3a4c4(O,U,de);P[a]=J.$9446cca9a3875146$export$7d15b64cf5a3a4c4(ue,B,q),{placement:x,crossPlacement:T}=f,u?L=P[a]:T==="right"?L+=e[E]:T==="center"&&(L+=e[E]/2);let V=x==="left"||x==="top"?l[R]:0,pe={x:x==="top"||x==="bottom"?L:V,y:x==="left"||x==="right"?L:V};return{position:g,maxHeight:z,arrowOffsetLeft:P.left,arrowOffsetTop:P.top,placement:x,triggerAnchorPoint:pe}}function Se(t){let{placement:e,targetNode:l,overlayNode:r,scrollNode:o,padding:n,shouldFlip:c,boundaryElement:i,offset:b,crossOffset:d,maxHeight:p,arrowSize:m=0,arrowBoundaryOffset:$=0}=t,s=r instanceof HTMLElement?Ae(r):document.documentElement,u=s===document.documentElement;const v=window.getComputedStyle(s).position;let f=!!v&&v!=="static",R=u?Y(l,!1):ne(l,s,!1);if(!u){let{marginTop:P,marginLeft:L}=window.getComputedStyle(l);R.top+=parseInt(P,10)||0,R.left+=parseInt(L,10)||0}let a=Y(r,!0),E=Le(r);var x,T;a.width+=((x=E.left)!==null&&x!==void 0?x:0)+((T=E.right)!==null&&T!==void 0?T:0);var g,S;a.height+=((g=E.top)!==null&&g!==void 0?g:0)+((S=E.bottom)!==null&&S!==void 0?S:0);let k=Ce(o),_=te(i),y=te(s),z=i.tagName==="BODY"?Y(s,!1):ne(s,i,!1);return s.tagName==="HTML"&&i.tagName==="BODY"&&(y.scroll.top=0,y.scroll.left=0),Te(e,R,a,k,E,n,c,_,y,z,b,d,f,p,m,$)}function D(t,e){let{top:l,left:r,width:o,height:n}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(o=t.offsetWidth,n=t.offsetHeight),{top:l,left:r,width:o,height:n}}function Y(t,e){let{top:l,left:r,width:o,height:n}=D(t,e),{scrollTop:c,scrollLeft:i,clientTop:b,clientLeft:d}=document.documentElement;return{top:l+c-b,left:r+i-d,width:o,height:n}}function ne(t,e,l){let r=window.getComputedStyle(t),o;if(r.position==="fixed")o=D(t,l);else{o=Y(t,l);let n=Y(e,l),c=window.getComputedStyle(e);n.top+=(parseInt(c.borderTopWidth,10)||0)-e.scrollTop,n.left+=(parseInt(c.borderLeftWidth,10)||0)-e.scrollLeft,o.top-=n.top,o.left-=n.left}return o.top-=parseInt(r.marginTop,10)||0,o.left-=parseInt(r.marginLeft,10)||0,o}function Ae(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!ie(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!ie(e);)e=e.parentElement;return e||document.documentElement}function ie(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const se=new WeakMap;function He(t){let{triggerRef:e,isOpen:l,onClose:r}=t;w.useEffect(()=>{if(!l||r===null)return;let o=n=>{let c=n.target;if(!e.current||c instanceof Node&&!c.contains(e.current)||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement)return;let i=r||se.get(e.current);i&&i()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[l,r,e])}let h=typeof document<"u"?window.visualViewport:null;function _e(t){let{direction:e}=ge.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{arrowSize:l,targetRef:r,overlayRef:o,arrowRef:n,scrollRef:c=o,placement:i="bottom",containerPadding:b=12,shouldFlip:d=!0,boundaryElement:p=typeof document<"u"?document.body:null,offset:m=0,crossOffset:$=0,shouldUpdatePosition:s=!0,isOpen:u=!0,onClose:v,maxHeight:f,arrowBoundaryOffset:R=0}=t,[a,E]=w.useState(null),x=[s,i,o.current,r.current,n==null?void 0:n.current,c.current,b,d,p,m,$,u,e,f,R,l],T=w.useRef(h==null?void 0:h.scale);w.useEffect(()=>{u&&(T.current=h==null?void 0:h.scale)},[u]);let g=w.useCallback(()=>{if(s===!1||!u||!o.current||!r.current||!p||(h==null?void 0:h.scale)!==T.current)return;let P=null;if(c.current&&c.current.contains(document.activeElement)){var L;let H=(L=document.activeElement)===null||L===void 0?void 0:L.getBoundingClientRect(),q=c.current.getBoundingClientRect();var O;if(P={type:"top",offset:((O=H==null?void 0:H.top)!==null&&O!==void 0?O:0)-q.top},P.offset>q.height/2){P.type="bottom";var B;P.offset=((B=H==null?void 0:H.bottom)!==null&&B!==void 0?B:0)-q.bottom}}let A=o.current;if(!f&&o.current){var N;A.style.top="0px",A.style.bottom="";var F;A.style.maxHeight=((F=(N=window.visualViewport)===null||N===void 0?void 0:N.height)!==null&&F!==void 0?F:window.innerHeight)+"px"}let I=Se({placement:ze(i,e),overlayNode:o.current,targetNode:r.current,scrollNode:c.current||o.current,padding:b,shouldFlip:d,boundaryElement:p,offset:m,crossOffset:$,maxHeight:f,arrowSize:l??(n!=null&&n.current?D(n.current,!0).width:0),arrowBoundaryOffset:R});if(I.position){if(A.style.top="",A.style.bottom="",A.style.left="",A.style.right="",Object.keys(I.position).forEach(H=>A.style[H]=I.position[H]+"px"),A.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"",P&&document.activeElement&&c.current){let H=document.activeElement.getBoundingClientRect(),q=c.current.getBoundingClientRect(),U=H[P.type]-q[P.type];c.current.scrollTop+=U-P.offset}E(I)}},x);X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(g,x),ye(g),K({ref:o,onResize:g}),K({ref:r,onResize:g});let S=w.useRef(!1);X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let P,L=()=>{S.current=!0,clearTimeout(P),P=setTimeout(()=>{S.current=!1},500),g()},O=()=>{S.current&&L()};return h==null||h.addEventListener("resize",L),h==null||h.addEventListener("scroll",O),()=>{h==null||h.removeEventListener("resize",L),h==null||h.removeEventListener("scroll",O)}},[g]);let k=w.useCallback(()=>{S.current||v==null||v()},[v,S]);He({triggerRef:r,isOpen:u,onClose:v&&k});var _,y,z;return{overlayProps:{style:{position:a?"absolute":"fixed",top:a?void 0:0,left:a?void 0:0,zIndex:1e5,...a==null?void 0:a.position,maxHeight:(_=a==null?void 0:a.maxHeight)!==null&&_!==void 0?_:"100vh"}},placement:(y=a==null?void 0:a.placement)!==null&&y!==void 0?y:null,triggerAnchorPoint:(z=a==null?void 0:a.triggerAnchorPoint)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:a==null?void 0:a.arrowOffsetLeft,top:a==null?void 0:a.arrowOffsetTop}},updatePosition:g}}function ye(t){X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function ze(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Ie=w.createContext({});function Me(){var t;return(t=w.useContext(Ie))!==null&&t!==void 0?t:{}}function ke(t){let[e,l]=be.$458b0a5536c1a7cf$export$40bfa8c7b0832715(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=w.useCallback(()=>{l(!0)},[l]),o=w.useCallback(()=>{l(!1)},[l]),n=w.useCallback(()=>{l(!e)},[l,e]);return{isOpen:e,setOpen:l,open:r,close:o,toggle:n}}const fe=w.createContext({placement:"bottom"}),Oe=w.forwardRef(function(e,l){[e,l]=ee.$64fa3d84918910a7$export$29f1550f4b0d4415(e,l,fe);let r=e.placement,o={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(o[r]="100%");let n=ee.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});n.style&&Object.keys(n.style).forEach(i=>n.style[i]===void 0&&delete n.style[i]);let c=he.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);return w.createElement("div",{...c,...n,style:{...o,...n.style},ref:l,"data-placement":r})});exports.$2a41e45df1593e64$export$d39e1813b3bdd0e1=_e;exports.$44f671af83e7d9e0$export$2de4954e8ae13b9f=fe;exports.$44f671af83e7d9e0$export$746d02f47f4d381=Oe;exports.$96b38030c423d352$export$9fc1347d4195ccb3=Me;exports.$9daab02d461809db$export$683480f191c0e3ea=K;exports.$d3f049242431219c$export$45fda7c47f93fd48=Ee;exports.$d3f049242431219c$export$6d3443f2c48bfc20=we;exports.$dd149f63282afbbf$export$f6211563215e3b37=se;exports.$fc909762b330b746$export$61c6a8c84e605fb6=ke;
|