@midas-ds/components 15.1.3 → 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 +50 -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-CsITchPQ.js +281 -0
- package/Checkbox-LGIr8OfT.cjs +1 -0
- package/CheckboxGroup-BdcEnLWf.cjs +1 -0
- package/{CheckboxGroup-BkzQi1FB.js → CheckboxGroup-Cn5j_R5a.js} +45 -40
- 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-t1RVXiiQ.js → ComboBox-BFfUWFb-.js} +157 -162
- package/{ComboBox-BISNYEw3.cjs → ComboBox-_fqwvHy1.cjs} +1 -1
- package/DateField-CJkMWNOU.js +45 -0
- package/DateField-CuEzECWT.cjs +1 -0
- package/{DateInputDivider-DOHpVaNE.js → DateInputDivider-DCOj8K0x.js} +43 -43
- package/DateInputDivider-DJN5KyLX.cjs +1 -0
- package/DateRangePicker-BleP75yR.cjs +1 -0
- package/{DateRangePicker-ezrFzzrO.js → DateRangePicker-Dwd6n5Ep.js} +207 -209
- 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-DTTpCtPx.js +463 -0
- 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-BP_jDOdE.js → ListBox-TsgvK95f.js} +51 -52
- package/{ListBoxLoadMoreItem-8dHDWs3w.cjs → ListBoxLoadMoreItem-Bpp_Sab2.cjs} +1 -1
- package/{ListBoxLoadMoreItem-BE5zpVVP.js → ListBoxLoadMoreItem-z7Cpu0NS.js} +4 -4
- package/ListBoxSection-C-7JFypr.js +51 -0
- package/ListBoxSection-DcajcZMK.cjs +1 -0
- 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-DClH8mWz.js → Radio-BPNKJKOP.js} +45 -45
- package/Radio-BxWwVigT.cjs +1 -0
- package/RangeCalendar-BNrmWgzG.cjs +1 -0
- package/{RangeCalendar-DT_KVd80.js → RangeCalendar-vgnMNbq9.js} +125 -122
- package/{SearchField-Cd6X2rY4.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-D4xRL7l2.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-DxqKDp7N.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-BBFWBNAH.js → Text-6Fdknq88.js} +10 -10
- package/{Text-bqP9NeVg.js → Text-B30xuDOt.js} +1 -1
- package/{Text-0wXj3J8E.cjs → Text-BiDSbNaP.cjs} +1 -1
- package/Text-D29KP4_q.cjs +1 -0
- package/{TextArea-CcKY4TI2.js → TextArea-CPNWfdbi.js} +10 -10
- package/{TextArea-D68vGjYJ.cjs → TextArea-CWEBjWY4.cjs} +1 -1
- package/{TextField-DyR61bjZ.js → TextField-1_-3gKYa.js} +11 -11
- package/{TextField-DtD9-arA.cjs → TextField-6v1u8c__.cjs} +1 -1
- package/TextField.module-D9xjQoiS.js +13 -0
- package/TextField.module-gwQfMD2x.cjs +1 -0
- 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/CharacterCounter.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateRangePicker.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/ListBox.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/default.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/CalendarGrid.d.ts +1 -0
- package/calendar/CalendarHeader.d.ts +3 -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/ComboBox.d.ts +10 -3
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/combobox/utils.d.ts +12 -3
- 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/DatePicker.d.ts +1 -2
- package/date-picker/DatePickerInputField.d.ts +2 -5
- 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/Select.d.ts +1 -1
- package/legacy-select/index.cjs +1 -1
- package/legacy-select/index.js +1 -1
- package/legacy-select/types.d.ts +3 -0
- 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/ListBoxItem.d.ts +3 -9
- package/list-box/ListBoxSection.d.ts +6 -3
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +3 -3
- package/list-box/types.d.ts +6 -0
- 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 +2 -2
- 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/variables-BkqZ2WGF.js +5 -0
- package/variables-CVumCR9l.cjs +1 -0
- 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-CTpQ12f7.cjs +0 -1
- package/CharacterCounter-gbDGfize.js +0 -22
- package/Checkbox-BgrLxY6P.cjs +0 -1
- package/Checkbox-CdN1D5pD.js +0 -282
- package/CheckboxGroup-BdRG71EM.cjs +0 -1
- package/Collection-vGO6v3_U.cjs +0 -1
- package/ColorSchemeSwitch-Ckna0otR.cjs +0 -16
- package/DateField-B9Yxknuy.cjs +0 -1
- package/DateField-BUZ7i9eS.js +0 -47
- package/DateInputDivider-CCrXjsUB.cjs +0 -1
- package/DateRangePicker-mlnh0C1A.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-CIxlNQCM.js +0 -48
- package/FieldError-JWxR_EqN.cjs +0 -1
- package/InfoBanner-D7Ta-7PI.js +0 -72
- package/InfoBanner-_M_rGQiu.cjs +0 -1
- package/Label-BqvFQoEF.js +0 -74
- package/Label-C3ZSrB04.cjs +0 -1
- package/Layout-BrEuHajQ.cjs +0 -16
- package/Layout-Hd1e_MEA.js +0 -481
- package/Link-BvUSTIip.cjs +0 -6
- package/LinkButton-DGdnbTgR.cjs +0 -6
- package/ListBox-FD30iELk.cjs +0 -1
- package/ListBox-Rke-lL0z.cjs +0 -1
- package/ListBoxSection-7Xzi-bqq.cjs +0 -1
- package/ListBoxSection-AIWxdu1v.js +0 -53
- 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-BrtaxoR8.cjs +0 -1
- package/ProgressBar-DhVQOs4P.js +0 -53
- package/Radio-VFIiuJIR.cjs +0 -1
- package/RangeCalendar-CH0CyBui.cjs +0 -6
- package/SearchField-Cz5Pb0XE.cjs +0 -6
- package/Select-CHJefc5g.cjs +0 -1
- package/Select-DL5Mvadi.cjs +0 -1
- package/Select-zDwMkzOI.js +0 -678
- package/SelectionIndicator-ClG0GpJu.cjs +0 -1
- package/SelectionManager-CNJmHeCF.cjs +0 -1
- package/TabList-DVzXuGXA.cjs +0 -1
- package/Table-B1nxmW14.cjs +0 -16
- package/Tag-BL-_PONN.cjs +0 -1
- package/Text-D5OSv6Uv.cjs +0 -1
- package/TextField.module-BndKUn-7.js +0 -13
- package/TextField.module-Du0bmSGZ.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
package/Layout-BrEuHajQ.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),E=require("./GridItem-BZ8eOXMB.cjs"),O=require("react"),p=require("./clsx-DKOfLqne.cjs"),L=require("./Button-BEWKXjlP.cjs"),C=require("./Link-DRU6Qzia.cjs"),I=require("./Tooltip-D-ATlbIM.cjs"),j=require("./BadgeContainer-BZl6mSeb.cjs"),y=require("./createLucideIcon-CTVXwe6i.cjs"),T=require("./usePress-DmU79HEg.cjs"),N=require("./useLocalizedStringFormatter-BSac43NO.cjs"),k=require("./Logo-4tRnV4Su.cjs"),H=require("./x-rV-nu490.cjs");function G(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>a[r]})}}return t.default=a,Object.freeze(t)}const b=G(O);/**
|
|
2
|
-
* @license lucide-react v0.525.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const D=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],F=y.createLucideIcon("menu",D);/**
|
|
7
|
-
* @license lucide-react v0.525.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const W=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],R=y.createLucideIcon("panel-left-close",W);/**
|
|
12
|
-
* @license lucide-react v0.525.0 - ISC
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the ISC license.
|
|
15
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const A=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],X=y.createLucideIcon("panel-left-open",A),J="_baseLayout_7ccl4_1",K="_mainContent_7ccl4_10",Q="_header_7ccl4_15",U="_headerExternal_7ccl4_26",V="_headerContent_7ccl4_41",Y="_logo_7ccl4_60",Z="_headerItems_7ccl4_69",ee="_toggleButton_7ccl4_75",se="_sidebar_7ccl4_83",ae="_main_7ccl4_10",te="_app_7ccl4_116",ne="_sidebarOpened_7ccl4_124",re="_sidebarHeader_7ccl4_128",ie="_appName_7ccl4_140",ce="_collapseButton_7ccl4_147",oe="_sidebarCollapsed_7ccl4_156",le="_userName_7ccl4_166",de="_userTitle_7ccl4_184",me="_title_7ccl4_196",ue="_sidebarNav_7ccl4_207",xe="_list_7ccl4_213",pe="_listGroupTitle_7ccl4_219",_e="_listItem_7ccl4_226",he="_listItemCollapsed_7ccl4_231",be="_listLink_7ccl4_235",je="_listLinkCollapsed_7ccl4_298",ve="_active_7ccl4_303",fe="_backdrop_7ccl4_330",Ne="_backdropOpened_7ccl4_340",ge="_skipToContent_7ccl4_358",ke="_navbar_7ccl4_372",Ce="_navbarList_7ccl4_384",Le="_navbarItem_7ccl4_406",ye="_headerContentExternal_7ccl4_457",Se="_logoExternalContainer_7ccl4_465",Me="_logoExternal_7ccl4_465",Ee="_logoExternalDesktop_7ccl4_477",Ie="_navbarWrapper_7ccl4_486",s={baseLayout:J,mainContent:K,header:Q,headerExternal:U,headerContent:V,logo:Y,headerItems:Z,toggleButton:ee,sidebar:se,main:ae,app:te,sidebarOpened:ne,sidebarHeader:re,appName:ie,collapseButton:ce,sidebarCollapsed:oe,userName:le,userTitle:de,title:me,sidebarNav:ue,list:xe,listGroupTitle:pe,listItem:_e,listItemCollapsed:he,listLink:be,listLinkCollapsed:je,active:ve,backdrop:fe,backdropOpened:Ne,skipToContent:ge,navbar:ke,navbarList:Ce,navbarItem:Le,headerContentExternal:ye,logoExternalContainer:Se,logoExternal:Me,logoExternalDesktop:Ee,navbarWrapper:Ie},$=b.createContext(void 0),Be=({items:a,title:t,user:r,app:n,children:i,clientSideRouter:o,clientSideHref:c,headerChildren:x,isCollapsed:u,setIsCollapsed:d,isOpened:_,setIsOpened:m,variant:h,id:v})=>e.jsx($.Provider,{value:{items:a,title:t,user:r,app:n,headerChildren:x,isCollapsed:u,setIsCollapsed:d,isOpened:_,setIsOpened:m,clientSideRouter:o,clientSideHref:c,variant:h,id:v},children:i}),f=()=>{const a=b.useContext($);if(!a)throw new Error("useLayoutContext must be used within a LayoutProvider");return a},S=({title:a,href:t,icon:r,active:n,hasBadge:i})=>{const{isCollapsed:o,setIsOpened:c,clientSideHref:x}=f(),u=x?x(t):t,[d,_]=b.useState(!1);return b.useEffect(()=>{typeof window<"u"&&_(n??window.location.pathname===u)},[n,u]),o?e.jsxs(I.TooltipTrigger,{children:[e.jsx(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:p.clsx(s.listLink,s.listLinkCollapsed,d&&s.active),onPress:()=>c==null?void 0:c(!1),children:e.jsxs(j.BadgeContainer,{children:[e.jsx(r,{size:20,"aria-label":a}),i&&e.jsx(j.Badge,{})]})}),e.jsx(I.Tooltip,{placement:"right",children:a})]}):e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:p.clsx(s.listLink,d&&s.active),onPress:()=>c==null?void 0:c(!1),children:[e.jsxs(j.BadgeContainer,{children:[e.jsx(r,{size:20}),i&&e.jsx(j.Badge,{})]}),a]})},ze={closeMenu:"Close menu",openMenu:"Open menu",maximizeMenu:"Maximize menu",minimizeMenu:"Minimize menu",sidebarMenu:"Sidebar menu",bottomMenu:"Bottom menu",skipToContent:"Skip to main content"},Te={closeMenu:"Stäng meny",openMenu:"Öppna meny",maximizeMenu:"Maximera meny",minimizeMenu:"Minimera meny",sidebarMenu:"Sidomeny",bottomMenu:"Bottenmeny",skipToContent:"Hoppa till huvudinnehåll"},g={en:ze,sv:Te},P=()=>{const{items:a,app:t,isOpened:r,isCollapsed:n,setIsCollapsed:i,setIsOpened:o,clientSideRouter:c,clientSideHref:x,id:u}=f(),d=N.useLocalizedStringFormatter(g),_=({group:m})=>e.jsx("ul",{className:s.list,children:m.items.map((h,v)=>e.jsx("li",{className:p.clsx(s.listItem,n&&s.listItemCollapsed),children:e.jsx(S,{...h})},"link_"+v))});return b.useEffect(()=>{const m=h=>{h.key==="Escape"&&o!==void 0&&o(!1)};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[o]),e.jsxs("aside",{id:u,className:p.clsx(s.sidebar,n&&s.sidebarCollapsed,r&&s.sidebarOpened),children:[e.jsxs("div",{className:s.sidebarHeader,children:[!n&&e.jsx("p",{className:s.appName,children:t.name}),e.jsx(L.Button,{variant:"icon","aria-label":n?d.format("maximizeMenu"):d.format("minimizeMenu"),onPress:()=>i(!n),className:s.collapseButton,children:n?e.jsx(X,{size:20}):e.jsx(R,{size:20})})]}),e.jsx("nav",{className:s.sidebarNav,"aria-label":d.format("sidebarMenu"),children:e.jsx("ul",{className:s.list,children:a.map((m,h)=>e.jsxs("li",{children:[m.title&&!n&&e.jsx("p",{className:s.listGroupTitle,children:m.title}),c?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:c,useHref:x,children:e.jsx(_,{group:m})}):e.jsx(_,{group:m})]},"list_"+h))})})]})},$e="light-dark(#b90835, #b90835)",w=()=>{const{title:a,user:t,app:r,isOpened:n,setIsOpened:i,setIsCollapsed:o,headerChildren:c,variant:x,id:u}=f(),d=N.useLocalizedStringFormatter(g);return x==="external"?e.jsx("header",{className:p.clsx(s.header,s.headerExternal),children:e.jsxs("div",{className:s.headerContentExternal,children:[e.jsxs("div",{className:s.logoExternalContainer,children:[e.jsx(k.Logo,{size:"x-small",padding:!1,className:s.logoExternal}),e.jsx(k.Logo,{size:"small",padding:!1,className:s.logoExternalDesktop}),e.jsxs("div",{children:[e.jsx("p",{className:s.userName,children:t.name}),e.jsx("p",{className:s.userTitle,children:t.title})]})]}),e.jsx("div",{className:s.headerItems,children:c})]})}):e.jsxs("header",{className:s.header,style:{borderTop:`solid 4px ${r.color?r.color:$e}`},children:[e.jsxs("div",{className:s.headerContent,children:[e.jsx("div",{className:s.logo,children:e.jsx(k.Logo,{size:"small",padding:!1})}),n!==void 0&&e.jsx(L.Button,{variant:"icon",className:s.toggleButton,"aria-label":n?d.format("closeMenu"):d.format("openMenu"),"aria-controls":u,onPressStart:()=>{o(!1),i==null||i(!0)},children:n?e.jsx(H.X,{size:20,"aria-hidden":"true"}):e.jsx(F,{size:20,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("p",{className:s.userName,children:t.name}),e.jsx("p",{className:s.userTitle,children:t.title}),e.jsx("p",{className:s.title,children:a})]})]}),e.jsx("div",{className:s.headerItems,children:c})]})},B=({id:a="main:first-of-type"})=>{const t=()=>{const n=document.querySelector(a);n&&(n.tabIndex=-1,n.focus(),setTimeout(()=>n.removeAttribute("tabindex"),1e3))},r=N.useLocalizedStringFormatter(g);return e.jsx(L.Button,{onPress:t,className:s.skipToContent,children:r.format("skipToContent")})},Pe=()=>{const{isOpened:a,setIsOpened:t}=f();return a?e.jsx("div",{className:p.clsx(s.backdrop,s.backdropOpened),onClick:()=>{t==null||t(!1)},"aria-hidden":!0}):null},q=()=>{var o;const{items:a,clientSideRouter:t,clientSideHref:r}=f(),n=N.useLocalizedStringFormatter(g),i=(o=a.at(0))==null?void 0:o.items;return e.jsx("nav",{className:s.navbar,"aria-label":n.format("bottomMenu"),children:i&&e.jsx("ul",{className:p.clsx(s.navbarList),children:t?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:t,useHref:r,children:e.jsx(z,{items:i})}):e.jsx(z,{items:i})})})},z=({items:a})=>e.jsx(e.Fragment,{children:a.map(({href:t,active:r,icon:n,title:i,hasBadge:o},c)=>e.jsx("li",{children:e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,className:p.clsx(s.navbarItem),"data-active":r,"aria-current":r&&"page",children:[e.jsxs(j.BadgeContainer,{children:[e.jsx(n,{size:20}),o&&e.jsx(j.Badge,{})]}),i]})},c))}),l=({items:a,title:t,user:r,app:n,children:i,headerChildren:o,clientSideRouter:c,clientSideHref:x,variant:u,className:d})=>{const[_,m]=b.useState(!1),[h,v]=b.useState(!1),M=b.useId();return u==="external"?e.jsx(l.Provider,{items:a,title:t,user:r,app:n,clientSideRouter:c,clientSideHref:x,headerChildren:o,isCollapsed:_,setIsCollapsed:m,variant:u,id:M,children:e.jsxs("div",{className:p.clsx(s.baseLayout,d),children:[e.jsx(B,{}),e.jsx(l.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(l.Sidebar,{}),e.jsx(E.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:i})})}),e.jsx(l.Backdrop,{})]}),e.jsx("div",{className:s.navbarWrapper,children:e.jsx(l.Navbar,{})})]})}):e.jsx(l.Provider,{items:a,title:t,user:r,app:n,clientSideRouter:c,clientSideHref:x,headerChildren:o,isCollapsed:_,setIsCollapsed:m,isOpened:h,setIsOpened:v,variant:u,id:M,children:e.jsxs("div",{className:p.clsx(s.baseLayout,d),children:[e.jsx(B,{}),e.jsx(l.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(l.Sidebar,{}),e.jsx(E.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:i})})}),e.jsx(l.Backdrop,{})]})]})})};l.Provider=Be;l.Header=w;l.Sidebar=P;l.SidebarLink=S;l.Navbar=q;l.Backdrop=Pe;exports.Header=w;exports.Layout=l;exports.Navbar=q;exports.Sidebar=P;exports.SidebarLink=S;
|
package/Layout-Hd1e_MEA.js
DELETED
|
@@ -1,481 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as l, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
-
import { G as I } from "./GridItem-YtIpL5V2.js";
|
|
3
|
-
import * as f from "react";
|
|
4
|
-
import { c as h } from "./clsx-jbLnTBqA.js";
|
|
5
|
-
import { B as E } from "./Button-DdXFHfXw.js";
|
|
6
|
-
import { $ as y } from "./Link-l-nMP-Zd.js";
|
|
7
|
-
import { a as O, T as G } from "./Tooltip-CUdmOznK.js";
|
|
8
|
-
import { a as L, B as M } from "./BadgeContainer-DilMiV6u.js";
|
|
9
|
-
import { c as T } from "./createLucideIcon-XRdN60yz.js";
|
|
10
|
-
import { $ as w } from "./usePress-BqQIhkNY.js";
|
|
11
|
-
import { u as C } from "./useLocalizedStringFormatter-aOhh7wdl.js";
|
|
12
|
-
import { L as g } from "./Logo-DLlt576_.js";
|
|
13
|
-
import { X as W } from "./x-C2xUHAEl.js";
|
|
14
|
-
import './assets/Layout.css';/**
|
|
15
|
-
* @license lucide-react v0.525.0 - ISC
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the ISC license.
|
|
18
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/
|
|
20
|
-
const j = [
|
|
21
|
-
["path", { d: "M4 12h16", key: "1lakjw" }],
|
|
22
|
-
["path", { d: "M4 18h16", key: "19g7jn" }],
|
|
23
|
-
["path", { d: "M4 6h16", key: "1o0s65" }]
|
|
24
|
-
], D = T("menu", j);
|
|
25
|
-
/**
|
|
26
|
-
* @license lucide-react v0.525.0 - ISC
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the ISC license.
|
|
29
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/
|
|
31
|
-
const q = [
|
|
32
|
-
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
33
|
-
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
34
|
-
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
35
|
-
], A = T("panel-left-close", q);
|
|
36
|
-
/**
|
|
37
|
-
* @license lucide-react v0.525.0 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/
|
|
42
|
-
const F = [
|
|
43
|
-
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
44
|
-
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
45
|
-
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
46
|
-
], R = T("panel-left-open", F), X = "_baseLayout_7ccl4_1", J = "_mainContent_7ccl4_10", K = "_header_7ccl4_15", Q = "_headerExternal_7ccl4_26", U = "_headerContent_7ccl4_41", V = "_logo_7ccl4_60", Y = "_headerItems_7ccl4_69", Z = "_toggleButton_7ccl4_75", ee = "_sidebar_7ccl4_83", ae = "_main_7ccl4_10", te = "_app_7ccl4_116", ne = "_sidebarOpened_7ccl4_124", se = "_sidebarHeader_7ccl4_128", ie = "_appName_7ccl4_140", re = "_collapseButton_7ccl4_147", oe = "_sidebarCollapsed_7ccl4_156", le = "_userName_7ccl4_166", ce = "_userTitle_7ccl4_184", de = "_title_7ccl4_196", me = "_sidebarNav_7ccl4_207", pe = "_list_7ccl4_213", _e = "_listGroupTitle_7ccl4_219", ue = "_listItem_7ccl4_226", he = "_listItemCollapsed_7ccl4_231", be = "_listLink_7ccl4_235", ve = "_listLinkCollapsed_7ccl4_298", fe = "_active_7ccl4_303", Ne = "_backdrop_7ccl4_330", ke = "_backdropOpened_7ccl4_340", Ce = "_skipToContent_7ccl4_358", xe = "_navbar_7ccl4_372", ge = "_navbarList_7ccl4_384", ye = "_navbarItem_7ccl4_406", Le = "_headerContentExternal_7ccl4_457", Me = "_logoExternalContainer_7ccl4_465", Ee = "_logoExternal_7ccl4_465", Te = "_logoExternalDesktop_7ccl4_477", Se = "_navbarWrapper_7ccl4_486", a = {
|
|
47
|
-
baseLayout: X,
|
|
48
|
-
mainContent: J,
|
|
49
|
-
header: K,
|
|
50
|
-
headerExternal: Q,
|
|
51
|
-
headerContent: U,
|
|
52
|
-
logo: V,
|
|
53
|
-
headerItems: Y,
|
|
54
|
-
toggleButton: Z,
|
|
55
|
-
sidebar: ee,
|
|
56
|
-
main: ae,
|
|
57
|
-
app: te,
|
|
58
|
-
sidebarOpened: ne,
|
|
59
|
-
sidebarHeader: se,
|
|
60
|
-
appName: ie,
|
|
61
|
-
collapseButton: re,
|
|
62
|
-
sidebarCollapsed: oe,
|
|
63
|
-
userName: le,
|
|
64
|
-
userTitle: ce,
|
|
65
|
-
title: de,
|
|
66
|
-
sidebarNav: me,
|
|
67
|
-
list: pe,
|
|
68
|
-
listGroupTitle: _e,
|
|
69
|
-
listItem: ue,
|
|
70
|
-
listItemCollapsed: he,
|
|
71
|
-
listLink: be,
|
|
72
|
-
listLinkCollapsed: ve,
|
|
73
|
-
active: fe,
|
|
74
|
-
backdrop: Ne,
|
|
75
|
-
backdropOpened: ke,
|
|
76
|
-
skipToContent: Ce,
|
|
77
|
-
navbar: xe,
|
|
78
|
-
navbarList: ge,
|
|
79
|
-
navbarItem: ye,
|
|
80
|
-
headerContentExternal: Le,
|
|
81
|
-
logoExternalContainer: Me,
|
|
82
|
-
logoExternal: Ee,
|
|
83
|
-
logoExternalDesktop: Te,
|
|
84
|
-
navbarWrapper: Se
|
|
85
|
-
}, P = f.createContext(
|
|
86
|
-
void 0
|
|
87
|
-
), Ie = ({
|
|
88
|
-
items: s,
|
|
89
|
-
title: n,
|
|
90
|
-
user: i,
|
|
91
|
-
app: t,
|
|
92
|
-
children: r,
|
|
93
|
-
clientSideRouter: c,
|
|
94
|
-
clientSideHref: o,
|
|
95
|
-
headerChildren: u,
|
|
96
|
-
isCollapsed: _,
|
|
97
|
-
setIsCollapsed: m,
|
|
98
|
-
isOpened: b,
|
|
99
|
-
setIsOpened: p,
|
|
100
|
-
variant: v,
|
|
101
|
-
id: N
|
|
102
|
-
}) => /* @__PURE__ */ e(
|
|
103
|
-
P.Provider,
|
|
104
|
-
{
|
|
105
|
-
value: {
|
|
106
|
-
items: s,
|
|
107
|
-
title: n,
|
|
108
|
-
user: i,
|
|
109
|
-
app: t,
|
|
110
|
-
headerChildren: u,
|
|
111
|
-
isCollapsed: _,
|
|
112
|
-
setIsCollapsed: m,
|
|
113
|
-
isOpened: b,
|
|
114
|
-
setIsOpened: p,
|
|
115
|
-
clientSideRouter: c,
|
|
116
|
-
clientSideHref: o,
|
|
117
|
-
variant: v,
|
|
118
|
-
id: N
|
|
119
|
-
},
|
|
120
|
-
children: r
|
|
121
|
-
}
|
|
122
|
-
), k = () => {
|
|
123
|
-
const s = f.useContext(P);
|
|
124
|
-
if (!s)
|
|
125
|
-
throw new Error("useLayoutContext must be used within a LayoutProvider");
|
|
126
|
-
return s;
|
|
127
|
-
}, H = ({
|
|
128
|
-
title: s,
|
|
129
|
-
href: n,
|
|
130
|
-
icon: i,
|
|
131
|
-
active: t,
|
|
132
|
-
hasBadge: r
|
|
133
|
-
}) => {
|
|
134
|
-
const { isCollapsed: c, setIsOpened: o, clientSideHref: u } = k(), _ = u ? u(n) : n, [m, b] = f.useState(!1);
|
|
135
|
-
return f.useEffect(() => {
|
|
136
|
-
typeof window < "u" && b(t ?? window.location.pathname === _);
|
|
137
|
-
}, [t, _]), c ? /* @__PURE__ */ l(O, { children: [
|
|
138
|
-
/* @__PURE__ */ e(
|
|
139
|
-
y,
|
|
140
|
-
{
|
|
141
|
-
href: n,
|
|
142
|
-
"aria-label": s,
|
|
143
|
-
className: h(
|
|
144
|
-
a.listLink,
|
|
145
|
-
a.listLinkCollapsed,
|
|
146
|
-
m && a.active
|
|
147
|
-
),
|
|
148
|
-
onPress: () => o == null ? void 0 : o(!1),
|
|
149
|
-
children: /* @__PURE__ */ l(L, { children: [
|
|
150
|
-
/* @__PURE__ */ e(
|
|
151
|
-
i,
|
|
152
|
-
{
|
|
153
|
-
size: 20,
|
|
154
|
-
"aria-label": s
|
|
155
|
-
}
|
|
156
|
-
),
|
|
157
|
-
r && /* @__PURE__ */ e(M, {})
|
|
158
|
-
] })
|
|
159
|
-
}
|
|
160
|
-
),
|
|
161
|
-
/* @__PURE__ */ e(G, { placement: "right", children: s })
|
|
162
|
-
] }) : /* @__PURE__ */ l(
|
|
163
|
-
y,
|
|
164
|
-
{
|
|
165
|
-
href: n,
|
|
166
|
-
"aria-label": s,
|
|
167
|
-
className: h(a.listLink, m && a.active),
|
|
168
|
-
onPress: () => o == null ? void 0 : o(!1),
|
|
169
|
-
children: [
|
|
170
|
-
/* @__PURE__ */ l(L, { children: [
|
|
171
|
-
/* @__PURE__ */ e(i, { size: 20 }),
|
|
172
|
-
r && /* @__PURE__ */ e(M, {})
|
|
173
|
-
] }),
|
|
174
|
-
s
|
|
175
|
-
]
|
|
176
|
-
}
|
|
177
|
-
);
|
|
178
|
-
}, ze = { closeMenu: "Close menu", openMenu: "Open menu", maximizeMenu: "Maximize menu", minimizeMenu: "Minimize menu", sidebarMenu: "Sidebar menu", bottomMenu: "Bottom menu", skipToContent: "Skip to main content" }, Be = { closeMenu: "Stäng meny", openMenu: "Öppna meny", maximizeMenu: "Maximera meny", minimizeMenu: "Minimera meny", sidebarMenu: "Sidomeny", bottomMenu: "Bottenmeny", skipToContent: "Hoppa till huvudinnehåll" }, x = {
|
|
179
|
-
en: ze,
|
|
180
|
-
sv: Be
|
|
181
|
-
}, we = () => {
|
|
182
|
-
const {
|
|
183
|
-
items: s,
|
|
184
|
-
app: n,
|
|
185
|
-
isOpened: i,
|
|
186
|
-
isCollapsed: t,
|
|
187
|
-
setIsCollapsed: r,
|
|
188
|
-
setIsOpened: c,
|
|
189
|
-
clientSideRouter: o,
|
|
190
|
-
clientSideHref: u,
|
|
191
|
-
id: _
|
|
192
|
-
} = k(), m = C(x), b = ({ group: p }) => /* @__PURE__ */ e("ul", { className: a.list, children: p.items.map((v, N) => /* @__PURE__ */ e(
|
|
193
|
-
"li",
|
|
194
|
-
{
|
|
195
|
-
className: h(
|
|
196
|
-
a.listItem,
|
|
197
|
-
t && a.listItemCollapsed
|
|
198
|
-
),
|
|
199
|
-
children: /* @__PURE__ */ e(H, { ...v })
|
|
200
|
-
},
|
|
201
|
-
"link_" + N
|
|
202
|
-
)) });
|
|
203
|
-
return f.useEffect(() => {
|
|
204
|
-
const p = (v) => {
|
|
205
|
-
v.key === "Escape" && c !== void 0 && c(!1);
|
|
206
|
-
};
|
|
207
|
-
return window.addEventListener("keydown", p), () => {
|
|
208
|
-
window.removeEventListener("keydown", p);
|
|
209
|
-
};
|
|
210
|
-
}, [c]), /* @__PURE__ */ l(
|
|
211
|
-
"aside",
|
|
212
|
-
{
|
|
213
|
-
id: _,
|
|
214
|
-
className: h(
|
|
215
|
-
a.sidebar,
|
|
216
|
-
t && a.sidebarCollapsed,
|
|
217
|
-
i && a.sidebarOpened
|
|
218
|
-
),
|
|
219
|
-
children: [
|
|
220
|
-
/* @__PURE__ */ l("div", { className: a.sidebarHeader, children: [
|
|
221
|
-
!t && /* @__PURE__ */ e("p", { className: a.appName, children: n.name }),
|
|
222
|
-
/* @__PURE__ */ e(
|
|
223
|
-
E,
|
|
224
|
-
{
|
|
225
|
-
variant: "icon",
|
|
226
|
-
"aria-label": t ? m.format("maximizeMenu") : m.format("minimizeMenu"),
|
|
227
|
-
onPress: () => r(!t),
|
|
228
|
-
className: a.collapseButton,
|
|
229
|
-
children: t ? /* @__PURE__ */ e(R, { size: 20 }) : /* @__PURE__ */ e(A, { size: 20 })
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
] }),
|
|
233
|
-
/* @__PURE__ */ e(
|
|
234
|
-
"nav",
|
|
235
|
-
{
|
|
236
|
-
className: a.sidebarNav,
|
|
237
|
-
"aria-label": m.format("sidebarMenu"),
|
|
238
|
-
children: /* @__PURE__ */ e("ul", { className: a.list, children: s.map((p, v) => /* @__PURE__ */ l("li", { children: [
|
|
239
|
-
p.title && !t && /* @__PURE__ */ e("p", { className: a.listGroupTitle, children: p.title }),
|
|
240
|
-
o ? /* @__PURE__ */ e(
|
|
241
|
-
w,
|
|
242
|
-
{
|
|
243
|
-
navigate: o,
|
|
244
|
-
useHref: u,
|
|
245
|
-
children: /* @__PURE__ */ e(b, { group: p })
|
|
246
|
-
}
|
|
247
|
-
) : /* @__PURE__ */ e(b, { group: p })
|
|
248
|
-
] }, "list_" + v)) })
|
|
249
|
-
}
|
|
250
|
-
)
|
|
251
|
-
]
|
|
252
|
-
}
|
|
253
|
-
);
|
|
254
|
-
}, Pe = "light-dark(#b90835, #b90835)", He = () => {
|
|
255
|
-
const {
|
|
256
|
-
title: s,
|
|
257
|
-
user: n,
|
|
258
|
-
app: i,
|
|
259
|
-
isOpened: t,
|
|
260
|
-
setIsOpened: r,
|
|
261
|
-
setIsCollapsed: c,
|
|
262
|
-
headerChildren: o,
|
|
263
|
-
variant: u,
|
|
264
|
-
id: _
|
|
265
|
-
} = k(), m = C(x);
|
|
266
|
-
return u === "external" ? /* @__PURE__ */ e("header", { className: h(a.header, a.headerExternal), children: /* @__PURE__ */ l("div", { className: a.headerContentExternal, children: [
|
|
267
|
-
/* @__PURE__ */ l("div", { className: a.logoExternalContainer, children: [
|
|
268
|
-
/* @__PURE__ */ e(
|
|
269
|
-
g,
|
|
270
|
-
{
|
|
271
|
-
size: "x-small",
|
|
272
|
-
padding: !1,
|
|
273
|
-
className: a.logoExternal
|
|
274
|
-
}
|
|
275
|
-
),
|
|
276
|
-
/* @__PURE__ */ e(
|
|
277
|
-
g,
|
|
278
|
-
{
|
|
279
|
-
size: "small",
|
|
280
|
-
padding: !1,
|
|
281
|
-
className: a.logoExternalDesktop
|
|
282
|
-
}
|
|
283
|
-
),
|
|
284
|
-
/* @__PURE__ */ l("div", { children: [
|
|
285
|
-
/* @__PURE__ */ e("p", { className: a.userName, children: n.name }),
|
|
286
|
-
/* @__PURE__ */ e("p", { className: a.userTitle, children: n.title })
|
|
287
|
-
] })
|
|
288
|
-
] }),
|
|
289
|
-
/* @__PURE__ */ e("div", { className: a.headerItems, children: o })
|
|
290
|
-
] }) }) : /* @__PURE__ */ l(
|
|
291
|
-
"header",
|
|
292
|
-
{
|
|
293
|
-
className: a.header,
|
|
294
|
-
style: {
|
|
295
|
-
borderTop: `solid 4px ${i.color ? i.color : Pe}`
|
|
296
|
-
},
|
|
297
|
-
children: [
|
|
298
|
-
/* @__PURE__ */ l("div", { className: a.headerContent, children: [
|
|
299
|
-
/* @__PURE__ */ e("div", { className: a.logo, children: /* @__PURE__ */ e(
|
|
300
|
-
g,
|
|
301
|
-
{
|
|
302
|
-
size: "small",
|
|
303
|
-
padding: !1
|
|
304
|
-
}
|
|
305
|
-
) }),
|
|
306
|
-
t !== void 0 && /* @__PURE__ */ e(
|
|
307
|
-
E,
|
|
308
|
-
{
|
|
309
|
-
variant: "icon",
|
|
310
|
-
className: a.toggleButton,
|
|
311
|
-
"aria-label": t ? m.format("closeMenu") : m.format("openMenu"),
|
|
312
|
-
"aria-controls": _,
|
|
313
|
-
onPressStart: () => {
|
|
314
|
-
c(!1), r == null || r(!0);
|
|
315
|
-
},
|
|
316
|
-
children: t ? /* @__PURE__ */ e(
|
|
317
|
-
W,
|
|
318
|
-
{
|
|
319
|
-
size: 20,
|
|
320
|
-
"aria-hidden": "true"
|
|
321
|
-
}
|
|
322
|
-
) : /* @__PURE__ */ e(
|
|
323
|
-
D,
|
|
324
|
-
{
|
|
325
|
-
size: 20,
|
|
326
|
-
"aria-hidden": "true"
|
|
327
|
-
}
|
|
328
|
-
)
|
|
329
|
-
}
|
|
330
|
-
),
|
|
331
|
-
/* @__PURE__ */ l("div", { children: [
|
|
332
|
-
/* @__PURE__ */ e("p", { className: a.userName, children: n.name }),
|
|
333
|
-
/* @__PURE__ */ e("p", { className: a.userTitle, children: n.title }),
|
|
334
|
-
/* @__PURE__ */ e("p", { className: a.title, children: s })
|
|
335
|
-
] })
|
|
336
|
-
] }),
|
|
337
|
-
/* @__PURE__ */ e("div", { className: a.headerItems, children: o })
|
|
338
|
-
]
|
|
339
|
-
}
|
|
340
|
-
);
|
|
341
|
-
}, z = ({
|
|
342
|
-
id: s = "main:first-of-type"
|
|
343
|
-
}) => {
|
|
344
|
-
const n = () => {
|
|
345
|
-
const t = document.querySelector(s);
|
|
346
|
-
t && (t.tabIndex = -1, t.focus(), setTimeout(() => t.removeAttribute("tabindex"), 1e3));
|
|
347
|
-
}, i = C(x);
|
|
348
|
-
return /* @__PURE__ */ e(
|
|
349
|
-
E,
|
|
350
|
-
{
|
|
351
|
-
onPress: n,
|
|
352
|
-
className: a.skipToContent,
|
|
353
|
-
children: i.format("skipToContent")
|
|
354
|
-
}
|
|
355
|
-
);
|
|
356
|
-
}, $e = () => {
|
|
357
|
-
const { isOpened: s, setIsOpened: n } = k();
|
|
358
|
-
return s ? /* @__PURE__ */ e(
|
|
359
|
-
"div",
|
|
360
|
-
{
|
|
361
|
-
className: h(a.backdrop, a.backdropOpened),
|
|
362
|
-
onClick: () => {
|
|
363
|
-
n == null || n(!1);
|
|
364
|
-
},
|
|
365
|
-
"aria-hidden": !0
|
|
366
|
-
}
|
|
367
|
-
) : null;
|
|
368
|
-
}, Oe = () => {
|
|
369
|
-
var c;
|
|
370
|
-
const { items: s, clientSideRouter: n, clientSideHref: i } = k(), t = C(x), r = (c = s.at(0)) == null ? void 0 : c.items;
|
|
371
|
-
return /* @__PURE__ */ e(
|
|
372
|
-
"nav",
|
|
373
|
-
{
|
|
374
|
-
className: a.navbar,
|
|
375
|
-
"aria-label": t.format("bottomMenu"),
|
|
376
|
-
children: r && /* @__PURE__ */ e("ul", { className: h(a.navbarList), children: n ? /* @__PURE__ */ e(
|
|
377
|
-
w,
|
|
378
|
-
{
|
|
379
|
-
navigate: n,
|
|
380
|
-
useHref: i,
|
|
381
|
-
children: /* @__PURE__ */ e(B, { items: r })
|
|
382
|
-
}
|
|
383
|
-
) : /* @__PURE__ */ e(B, { items: r }) })
|
|
384
|
-
}
|
|
385
|
-
);
|
|
386
|
-
}, B = ({
|
|
387
|
-
items: s
|
|
388
|
-
}) => /* @__PURE__ */ e($, { children: s.map(({ href: n, active: i, icon: t, title: r, hasBadge: c }, o) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ l(
|
|
389
|
-
y,
|
|
390
|
-
{
|
|
391
|
-
href: n,
|
|
392
|
-
className: h(a.navbarItem),
|
|
393
|
-
"data-active": i,
|
|
394
|
-
"aria-current": i && "page",
|
|
395
|
-
children: [
|
|
396
|
-
/* @__PURE__ */ l(L, { children: [
|
|
397
|
-
/* @__PURE__ */ e(t, { size: 20 }),
|
|
398
|
-
c && /* @__PURE__ */ e(M, {})
|
|
399
|
-
] }),
|
|
400
|
-
r
|
|
401
|
-
]
|
|
402
|
-
}
|
|
403
|
-
) }, o)) }), d = ({
|
|
404
|
-
items: s,
|
|
405
|
-
title: n,
|
|
406
|
-
user: i,
|
|
407
|
-
app: t,
|
|
408
|
-
children: r,
|
|
409
|
-
headerChildren: c,
|
|
410
|
-
clientSideRouter: o,
|
|
411
|
-
clientSideHref: u,
|
|
412
|
-
variant: _,
|
|
413
|
-
className: m
|
|
414
|
-
}) => {
|
|
415
|
-
const [b, p] = f.useState(!1), [v, N] = f.useState(!1), S = f.useId();
|
|
416
|
-
return _ === "external" ? /* @__PURE__ */ e(
|
|
417
|
-
d.Provider,
|
|
418
|
-
{
|
|
419
|
-
items: s,
|
|
420
|
-
title: n,
|
|
421
|
-
user: i,
|
|
422
|
-
app: t,
|
|
423
|
-
clientSideRouter: o,
|
|
424
|
-
clientSideHref: u,
|
|
425
|
-
headerChildren: c,
|
|
426
|
-
isCollapsed: b,
|
|
427
|
-
setIsCollapsed: p,
|
|
428
|
-
variant: _,
|
|
429
|
-
id: S,
|
|
430
|
-
children: /* @__PURE__ */ l("div", { className: h(a.baseLayout, m), children: [
|
|
431
|
-
/* @__PURE__ */ e(z, {}),
|
|
432
|
-
/* @__PURE__ */ e(d.Header, {}),
|
|
433
|
-
/* @__PURE__ */ l("div", { className: a.mainContent, children: [
|
|
434
|
-
/* @__PURE__ */ e(d.Sidebar, {}),
|
|
435
|
-
/* @__PURE__ */ e(I, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: r }) }) }),
|
|
436
|
-
/* @__PURE__ */ e(d.Backdrop, {})
|
|
437
|
-
] }),
|
|
438
|
-
/* @__PURE__ */ e("div", { className: a.navbarWrapper, children: /* @__PURE__ */ e(d.Navbar, {}) })
|
|
439
|
-
] })
|
|
440
|
-
}
|
|
441
|
-
) : /* @__PURE__ */ e(
|
|
442
|
-
d.Provider,
|
|
443
|
-
{
|
|
444
|
-
items: s,
|
|
445
|
-
title: n,
|
|
446
|
-
user: i,
|
|
447
|
-
app: t,
|
|
448
|
-
clientSideRouter: o,
|
|
449
|
-
clientSideHref: u,
|
|
450
|
-
headerChildren: c,
|
|
451
|
-
isCollapsed: b,
|
|
452
|
-
setIsCollapsed: p,
|
|
453
|
-
isOpened: v,
|
|
454
|
-
setIsOpened: N,
|
|
455
|
-
variant: _,
|
|
456
|
-
id: S,
|
|
457
|
-
children: /* @__PURE__ */ l("div", { className: h(a.baseLayout, m), children: [
|
|
458
|
-
/* @__PURE__ */ e(z, {}),
|
|
459
|
-
/* @__PURE__ */ e(d.Header, {}),
|
|
460
|
-
/* @__PURE__ */ l("div", { className: a.mainContent, children: [
|
|
461
|
-
/* @__PURE__ */ e(d.Sidebar, {}),
|
|
462
|
-
/* @__PURE__ */ e(I, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: r }) }) }),
|
|
463
|
-
/* @__PURE__ */ e(d.Backdrop, {})
|
|
464
|
-
] })
|
|
465
|
-
] })
|
|
466
|
-
}
|
|
467
|
-
);
|
|
468
|
-
};
|
|
469
|
-
d.Provider = Ie;
|
|
470
|
-
d.Header = He;
|
|
471
|
-
d.Sidebar = we;
|
|
472
|
-
d.SidebarLink = H;
|
|
473
|
-
d.Navbar = Oe;
|
|
474
|
-
d.Backdrop = $e;
|
|
475
|
-
export {
|
|
476
|
-
He as H,
|
|
477
|
-
d as L,
|
|
478
|
-
Oe as N,
|
|
479
|
-
we as S,
|
|
480
|
-
H as a
|
|
481
|
-
};
|
package/Link-BvUSTIip.cjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/Link.css');const n=require("react/jsx-runtime"),x=require("./Link-DRU6Qzia.cjs"),k=require("./clsx-DKOfLqne.cjs"),j=require("./createLucideIcon-CTVXwe6i.cjs"),w=require("./square-arrow-out-up-right-xCFdJTzY.cjs"),f=require("./arrow-right-BGd86zzR.cjs");/**
|
|
2
|
-
* @license lucide-react v0.525.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const g=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],q=j.createLucideIcon("arrow-down-to-line",g),p="_link_u43gv_1",L="_icon_u43gv_51",m="_standalone_u43gv_55",R="_stretched_u43gv_72",t={link:p,icon:L,standalone:m,stretched:R},v=({children:o,standalone:r,target:c,stretched:i,download:u,icon:s,className:a,as:d,...l})=>{const _=d||x.$4f118338184dc1d9$export$a6c7ac8248d6e38a,h=({...e})=>s?n.jsx(s,{...e}):u?n.jsx(q,{...e}):c==="_blank"?n.jsx(w.SquareArrowOutUpRight,{...e}):r?n.jsx(f.ArrowRight,{...e}):null;return n.jsx(_,{className:k.clsx(t.link,r&&t.standalone,i&&t.stretched,a),...l,target:c,children:n.jsxs(n.Fragment,{children:[o,n.jsx(h,{size:16,className:t.icon})]})})};exports.Link=v;
|
package/LinkButton-DGdnbTgR.cjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/LinkButton.css');const n=require("react/jsx-runtime"),f=require("./Link-DRU6Qzia.cjs"),m=require("./clsx-DKOfLqne.cjs"),y=require("./square-arrow-out-up-right-xCFdJTzY.cjs"),x=require("./createLucideIcon-CTVXwe6i.cjs"),g=require("./arrow-right-BGd86zzR.cjs");/**
|
|
2
|
-
* @license lucide-react v0.525.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/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;
|
package/ListBox-FD30iELk.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const x=require("./Collection-vGO6v3_U.cjs"),v=require("./utils-CtICjCYt.cjs"),E=require("./DragAndDrop-Cs-V-9ak.cjs"),N=require("./Separator-DCi4bnBr.cjs"),te=require("./RSPContexts-XUvspq3j.cjs"),K=require("./SelectionIndicator-ClG0GpJu.cjs"),re=require("./Text-0wXj3J8E.cjs"),g=require("./mergeProps-Du5A8xi8.cjs"),I=require("./filterDOMProps-RRlKPKX0.cjs"),ae=require("./inertValue-BWmZ1afe.cjs"),r=require("react"),de=require("./usePress-DmU79HEg.cjs"),H=require("./useHover-DULSfLuK.cjs"),ie=require("./SelectionManager-CNJmHeCF.cjs"),le=require("./useFocusWithin-GBjoTL5o.cjs"),ne=require("./Button-1sEX8jKn.cjs"),Q=require("./useListState-DZFWpD-x.cjs"),ce=require("./context-UOrD6Zxk.cjs"),J=require("./ListKeyboardDelegate-8zuIfwQ7.cjs"),se=require("./useFocusRing-C-XVcAE5.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==null?void 0:a.shouldSelectOnPressUp;var D;let h=(D=t.shouldFocusOnHover)!==null&&D!==void 0?D:a==null?void 0:a.shouldFocusOnHover;var P;let p=(P=t.shouldUseVirtualFocus)!==null&&P!==void 0?P:a==null?void 0:a.shouldUseVirtualFocus;var y;let M=(y=t.isVirtualized)!==null&&y!==void 0?y:a==null?void 0: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==null?void 0:f.index);B["aria-posinset"]=Number.isNaN(m)?void 0:m+1,B["aria-setsize"]=N.$453cc9f0df89c0a5$export$77d5aafae4e095b2(e.collection)}let T=a!=null&&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==null?void 0:a.linkBehavior,UNSTABLE_itemBehavior:a==null?void 0: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==null?void 0:f.props);delete A.id;let q=de.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(f==null?void 0: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!=null&&o.useDraggableCollectionState),b=!!(o!=null&&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==null?void 0: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==null?void 0: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==null?void 0: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==null?void 0:P.dragProps,p==null?void 0: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==null?void 0: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==null?void 0:i.collection,sentinelRef:u,scrollOffset:n}),[a,n,i==null?void 0: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;
|
package/ListBox-Rke-lL0z.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/ListBox.css');const M=require("react/jsx-runtime"),J=require("./ListBox-FD30iELk.cjs"),q=require("./Collection-vGO6v3_U.cjs"),c=require("react"),_=require("./mergeProps-Du5A8xi8.cjs"),K=require("./context-UOrD6Zxk.cjs"),E=require("react-dom"),Q=require("./OverlayArrow-bcrb_syE.cjs"),Z=require("./useEvent-C125NAue.cjs"),ee=require("./clsx-DKOfLqne.cjs"),V=require("./SelectionManager-CNJmHeCF.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 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,n=Math.max(this.maxY,e.maxY)-i;return new g(t,i,l,n)}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 ${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 g}}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 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 n=new g(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 g(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 g,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 g(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 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,n,o,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!==((n=t==null?void 0:t.loaderHeight)!==null&&n!==void 0?n:this.loaderHeight)||this.gap!==((o=t==null?void 0:t.gap)!==null&&o!==void 0?o: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 n;this.estimatedRowHeight=(n=i==null?void 0:i.estimatedRowHeight)!==null&&n!==void 0?n:this.estimatedRowHeight;var o;this.headingHeight=(o=i==null?void 0:i.headingHeight)!==null&&o!==void 0?o: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"),n=[],o=(t==null?void 0: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 y=i.indexOf(v);e+=(y-f-1)*d;let p=this.buildChild(v,this.padding,e,null);n.push(p),e=p.layoutInfo.rect.maxY,f=y}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 g(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 g(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 y=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:R)+this.gap;if(i+y<this.requestedRect.y&&!this.isValid(e,i)){i+=y,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))*y;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==null?void 0: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 g(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 g(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 g(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),y=Math.min(f,v);y<a&&(a=y,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 g(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 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 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 g,this.requestedRect=new g,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 g(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 y=c.useRef(!1),p=_.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||y.current)return;y.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,k=z&&!C?1/0:N,L=z&&!G?1/0:T;(r.width!==k||r.height!==L)&&(r.width=k,r.height=L,w(()=>{i(new g(r.scrollLeft,r.scrollTop,k,L))}),(!z&&N!==m.clientWidth||T!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new g(r.scrollLeft,r.scrollTop,r.width,r.height))}))),y.current=!1}),H=c.useRef(null),[j,F]=c.useState({});_.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!y.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}),_.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{p(w=>w())},[j]);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 ge(s){let{layoutInfo:e,virtualizer:t,ref:i}=s,l=e==null?void 0:e.key,n=c.useCallback(()=>{if(l!=null&&i.current){let o=ye(i.current);t.updateItemSize(l,o)}},[t,l,i]);return _.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&n()}),{updateSize:n}}function ye(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 ge({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),D=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(D.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(D),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==null?void 0: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},X(null,h.visibleViews,i)))}function me({parent:s,renderDropIndicator:e}){let i=c.useContext(W).virtualizer.getVisibleView(s.key);return X(i,Array.from(i.children),e)}function X(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==null?void 0:s.layoutInfo},e.rendered),{collection:l,layout:n}=e.virtualizer,o=e.content;return(o==null?void 0: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==null?void 0:s.layoutInfo},l)}return l}class xe extends de{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 Ie="_listBox_6ghec_4",Re="_listBoxPopover_6ghec_16",Se="_listBoxSectionHeading_6ghec_31",$e="_listBoxButton_6ghec_43",ze="_listBoxItem_6ghec_55",He="_textContent_6ghec_68",Ce="_listBoxLoadMoreItem_6ghec_178",A={listBox:Ie,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:$e,listBoxItem:ze,textContent:He,listBoxLoadMoreItem:Ce},_e=({className:s,children:e,...t})=>M.jsx(pe,{layout:xe,layoutOptions:{headingHeight:38},children:M.jsx(J.$eed445e0843c11d0$export$41f133550aa26f48,{className:ee.clsx(A.listBox,s),...t,children:e})});exports.ListBox=_e;exports.styles=A;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),x=require("./ListBox-FD30iELk.cjs"),c=require("./clsx-DKOfLqne.cjs"),i=require("./ListBox-Rke-lL0z.cjs"),d=require("./Dialog-DycTLpdr.cjs"),B=require("./Separator-DCi4bnBr.cjs"),$=({children:e,className:s,hideSelectionIndicator:o,textValue:a,...n})=>t.jsx(x.$eed445e0843c11d0$export$a11e76429ed99b4,{className:c.clsx(i.styles.listBoxItem,s),"data-show-selection":!o||void 0,textValue:a||(typeof e=="string"?e:void 0),...n,children:l=>t.jsx("div",{className:i.styles.textContent,children:typeof e=="function"?e(l):e})}),b=({className:e,children:s,...o})=>t.jsx(d.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:c.clsx(e,i.styles.listBoxPopover),offset:0,...o,children:s}),r=({className:e,...s})=>t.jsx(B.$72a5793c14baf454$export$8b251419efc915eb,{className:c.clsx(i.styles.listBoxSectionHeading,e),...s}),f=({children:e,name:s,...o})=>t.jsxs(x.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...o,children:[s&&t.jsx(r,{children:s}),e]});exports.ListBoxHeader=r;exports.ListBoxItem=$;exports.ListBoxPopover=b;exports.ListBoxSection=f;
|