@ck-ui/component-library 0.1.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +152 -0
- package/dist/DropdownFooter-C20yRiDR.js +84 -0
- package/dist/Grow-D08Iq1uH.js +794 -0
- package/dist/IconSlot-CFKmSU2_.js +33 -0
- package/dist/MenuItem-DlaRT10y.js +139 -0
- package/dist/OptionList-BNaH2PnX.js +951 -0
- package/dist/Select-Cw96VEHD.js +6411 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/assets/DateRangePicker-BKND6jiD.css +1 -0
- package/dist/assets/DropdownFooter-C7Cml53c.css +1 -0
- package/dist/assets/IconSlot-CLpdZgmb.css +1 -0
- package/dist/assets/ReactToastify-tlSLHgLC.css +1 -0
- package/dist/assets/ToastContent-PGkBxPUW.css +1 -0
- package/dist/assets/index-BD0OawaZ.css +1 -0
- package/dist/assets/index-BLz-9Nuk.css +1 -0
- package/dist/assets/index-BOXxnraF.css +1 -0
- package/dist/assets/index-BQ0m7FKV.css +1 -0
- package/dist/assets/index-BgFw4AMY.css +1 -0
- package/dist/assets/index-BkNXS5fR.css +1 -0
- package/dist/assets/index-BmQOtMhS.css +1 -0
- package/dist/assets/index-Bo4Tx8px.css +1 -0
- package/dist/assets/index-BpRKr5z7.css +1 -0
- package/dist/assets/index-CNGtOMLm.css +1 -0
- package/dist/assets/index-CaWXKQ7j.css +1 -0
- package/dist/assets/index-CiQd_iRw.css +1 -0
- package/dist/assets/index-D2HelNRV.css +1 -0
- package/dist/assets/index-DDdi2wxl.css +1 -0
- package/dist/assets/index-DNhNBxL9.css +1 -0
- package/dist/assets/index-DewFIgpp.css +1 -0
- package/dist/assets/index-Dudb2XKF.css +1 -0
- package/dist/assets/index-DvlnFLG-.css +1 -0
- package/dist/assets/index-YHUWVH17.css +1 -0
- package/dist/assets/index-_Kh8p9R0.css +1 -0
- package/dist/assets/index-nXJu3Pq0.css +1 -0
- package/dist/assets/index-rrYSS2rl.css +1 -0
- package/dist/assets/index-w7AdSPwF.css +1 -0
- package/dist/assets/main-Dv8QUU_o.css +1 -0
- package/dist/assets/styles-BA66-SUu.css +1 -0
- package/dist/assets/styles-BS1nwHmS.css +1 -0
- package/dist/assets/styles-BTZL03H2.css +1 -0
- package/dist/assets/styles-Be-tqCP9.css +1 -0
- package/dist/assets/styles-CbbBUzsN.css +1 -0
- package/dist/assets/styles-CflOKRvX.css +1 -0
- package/dist/assets/styles-Chhklrps.css +1 -0
- package/dist/assets/styles-CwEfypOd.css +1 -0
- package/dist/assets/styles-D8sahtFb.css +1 -0
- package/dist/assets/styles-DAFhOzfn.css +1 -0
- package/dist/assets/theme-gJHYUL9y.css +1 -0
- package/dist/cancel-BAgTEOGD.js +7 -0
- package/dist/chevron-down-Cm9R64Fe.js +5 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Avatar/_types/avatar.types.d.ts +15 -0
- package/dist/components/Avatar/_types/avatar.types.d.ts.map +1 -0
- package/dist/components/Avatar/_types/avatar.types.js +12 -0
- package/dist/components/Avatar/_utils/avatar.utils.d.ts +4 -0
- package/dist/components/Avatar/_utils/avatar.utils.d.ts.map +1 -0
- package/dist/components/Avatar/_utils/avatar.utils.js +20 -0
- package/dist/components/Avatar/index.d.ts +6 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Avatar/index.js +45 -0
- package/dist/components/Breadcrumb/_helpers/Breadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/_helpers/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Breadcrumb/_helpers/Breadcrumb.js +70 -0
- package/dist/components/Breadcrumb/_helpers/DefaultLink.d.ts +3 -0
- package/dist/components/Breadcrumb/_helpers/DefaultLink.d.ts.map +1 -0
- package/dist/components/Breadcrumb/_helpers/DefaultLink.js +23 -0
- package/dist/components/Breadcrumb/_types/breadcrumb.types.d.ts +47 -0
- package/dist/components/Breadcrumb/_types/breadcrumb.types.d.ts.map +1 -0
- package/dist/components/Breadcrumb/_types/breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/_utils/handleOutsideClick.d.ts +2 -0
- package/dist/components/Breadcrumb/_utils/handleOutsideClick.d.ts.map +1 -0
- package/dist/components/Breadcrumb/_utils/handleOutsideClick.js +11 -0
- package/dist/components/Breadcrumb/_utils/navigateHandler.d.ts +3 -0
- package/dist/components/Breadcrumb/_utils/navigateHandler.d.ts.map +1 -0
- package/dist/components/Breadcrumb/_utils/navigateHandler.js +6 -0
- package/dist/components/Breadcrumb/_utils/truncatedLabel.d.ts +2 -0
- package/dist/components/Breadcrumb/_utils/truncatedLabel.d.ts.map +1 -0
- package/dist/components/Breadcrumb/_utils/truncatedLabel.js +4 -0
- package/dist/components/Breadcrumb/index.d.ts +4 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.js +86 -0
- package/dist/components/Button/index.js +1 -1
- package/dist/components/CKButton/_helper/ComboLayout.d.ts +13 -0
- package/dist/components/CKButton/_helper/ComboLayout.d.ts.map +1 -0
- package/dist/components/CKButton/_helper/ComboLayout.js +30 -0
- package/dist/components/CKButton/_helper/IconSlot.d.ts +7 -0
- package/dist/components/CKButton/_helper/IconSlot.d.ts.map +1 -0
- package/dist/components/CKButton/_helper/IconSlot.js +5 -0
- package/dist/components/CKButton/_helper/StandardLayout.d.ts +9 -0
- package/dist/components/CKButton/_helper/StandardLayout.d.ts.map +1 -0
- package/dist/components/CKButton/_helper/StandardLayout.js +17 -0
- package/dist/components/CKButton/_types/button.types.d.ts +28 -0
- package/dist/components/CKButton/_types/button.types.d.ts.map +1 -0
- package/dist/components/CKButton/_types/button.types.js +1 -0
- package/dist/components/CKButton/constants.d.ts +28 -0
- package/dist/components/CKButton/constants.d.ts.map +1 -0
- package/dist/components/CKButton/constants.js +30 -0
- package/dist/components/CKButton/index.d.ts +3 -0
- package/dist/components/CKButton/index.d.ts.map +1 -0
- package/dist/components/CKButton/index.js +91 -0
- package/dist/components/CKCheckbox/_types/type.d.ts +13 -0
- package/dist/components/CKCheckbox/_types/type.d.ts.map +1 -0
- package/dist/components/CKCheckbox/_types/type.js +1 -0
- package/dist/components/CKCheckbox/index.d.ts +3 -0
- package/dist/components/CKCheckbox/index.d.ts.map +1 -0
- package/dist/components/CKCheckbox/index.js +65 -0
- package/dist/components/CKTag/_types/type.d.ts +15 -0
- package/dist/components/CKTag/_types/type.d.ts.map +1 -0
- package/dist/components/CKTag/_types/type.js +11 -0
- package/dist/components/CKTag/index.d.ts +3 -0
- package/dist/components/CKTag/index.d.ts.map +1 -0
- package/dist/components/CKTag/index.js +50 -0
- package/dist/components/CardBox/_types/cardBox.types.d.ts +10 -0
- package/dist/components/CardBox/_types/cardBox.types.d.ts.map +1 -0
- package/dist/components/CardBox/_types/cardBox.types.js +1 -0
- package/dist/components/CardBox/index.d.ts +3 -0
- package/dist/components/CardBox/index.d.ts.map +1 -0
- package/dist/components/CardBox/index.js +30 -0
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts +36 -0
- package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/_helpers/CostCell.js +52 -0
- package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.d.ts +14 -0
- package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.js +19 -0
- package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts +83 -0
- package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/_types/costComparatorTable.types.js +1 -0
- package/dist/components/CostComparatorTable/_utils/costComparator.utils.d.ts +22 -0
- package/dist/components/CostComparatorTable/_utils/costComparator.utils.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/_utils/costComparator.utils.js +50 -0
- package/dist/components/CostComparatorTable/index.d.ts +23 -0
- package/dist/components/CostComparatorTable/index.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/index.js +177 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +6027 -0
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts +41 -0
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts.map +1 -0
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.js +1 -0
- package/dist/components/DateRangePicker/helper/util.d.ts +26 -0
- package/dist/components/DateRangePicker/helper/util.d.ts.map +1 -0
- package/dist/components/DateRangePicker/helper/util.js +54 -0
- package/dist/components/DeviationTag/_types/type.d.ts +11 -0
- package/dist/components/DeviationTag/_types/type.d.ts.map +1 -0
- package/dist/components/DeviationTag/_types/type.js +1 -0
- package/dist/components/DeviationTag/index.d.ts +3 -0
- package/dist/components/DeviationTag/index.d.ts.map +1 -0
- package/dist/components/DeviationTag/index.js +74 -0
- package/dist/components/EmptyState/_types/emptyState.types.d.ts +17 -0
- package/dist/components/EmptyState/_types/emptyState.types.d.ts.map +1 -0
- package/dist/components/EmptyState/_types/emptyState.types.js +1 -0
- package/dist/components/EmptyState/index.d.ts +3 -0
- package/dist/components/EmptyState/index.d.ts.map +1 -0
- package/dist/components/EmptyState/index.js +26 -0
- package/dist/components/ErrorPage/_types/errorPage.types.d.ts +4 -0
- package/dist/components/ErrorPage/_types/errorPage.types.d.ts.map +1 -0
- package/dist/components/ErrorPage/_types/errorPage.types.js +1 -0
- package/dist/components/ErrorPage/constant/errorConstant.d.ts +12 -0
- package/dist/components/ErrorPage/constant/errorConstant.d.ts.map +1 -0
- package/dist/components/ErrorPage/constant/errorConstant.js +29 -0
- package/dist/components/ErrorPage/index.d.ts +3 -0
- package/dist/components/ErrorPage/index.d.ts.map +1 -0
- package/dist/components/ErrorPage/index.js +29 -0
- package/dist/components/FusionChart/_config/builders.d.ts +10 -0
- package/dist/components/FusionChart/_config/builders.d.ts.map +1 -0
- package/dist/components/FusionChart/_config/builders.js +573 -0
- package/dist/components/FusionChart/_config/events.d.ts +7 -0
- package/dist/components/FusionChart/_config/events.d.ts.map +1 -0
- package/dist/components/FusionChart/_config/events.js +40 -0
- package/dist/components/FusionChart/_config/helpers.d.ts +288 -0
- package/dist/components/FusionChart/_config/helpers.d.ts.map +1 -0
- package/dist/components/FusionChart/_config/helpers.js +452 -0
- package/dist/components/FusionChart/_constant/chartTestData.d.ts +33 -0
- package/dist/components/FusionChart/_constant/chartTestData.d.ts.map +1 -0
- package/dist/components/FusionChart/_constant/chartTestData.js +460 -0
- package/dist/components/FusionChart/_constant/constants.d.ts +16 -0
- package/dist/components/FusionChart/_constant/constants.d.ts.map +1 -0
- package/dist/components/FusionChart/_constant/constants.js +18 -0
- package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts +17 -0
- package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts.map +1 -0
- package/dist/components/FusionChart/_helpers/doughnutHelper.js +57 -0
- package/dist/components/FusionChart/_helpers/multiAxisHelper.d.ts +8 -0
- package/dist/components/FusionChart/_helpers/multiAxisHelper.d.ts.map +1 -0
- package/dist/components/FusionChart/_helpers/multiAxisHelper.js +21 -0
- package/dist/components/FusionChart/_helpers/multiLineHelper.d.ts +8 -0
- package/dist/components/FusionChart/_helpers/multiLineHelper.d.ts.map +1 -0
- package/dist/components/FusionChart/_helpers/multiLineHelper.js +23 -0
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts +128 -0
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -0
- package/dist/components/FusionChart/_types/fusionChart.types.js +1 -0
- package/dist/components/FusionChart/_utils/chartHelpers.d.ts +45 -0
- package/dist/components/FusionChart/_utils/chartHelpers.d.ts.map +1 -0
- package/dist/components/FusionChart/_utils/chartHelpers.js +25 -0
- package/dist/components/FusionChart/index.d.ts +7 -0
- package/dist/components/FusionChart/index.d.ts.map +1 -0
- package/dist/components/FusionChart/index.js +1043 -0
- package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.d.ts +4 -0
- package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.js +62 -0
- package/dist/components/GroupedMultiSelect/_helpers/MenuItem.d.ts +4 -0
- package/dist/components/GroupedMultiSelect/_helpers/MenuItem.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_helpers/MenuItem.js +28 -0
- package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts +4 -0
- package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_helpers/MenuList.js +7 -0
- package/dist/components/GroupedMultiSelect/_helpers/OptionRow.d.ts +4 -0
- package/dist/components/GroupedMultiSelect/_helpers/OptionRow.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_helpers/OptionRow.js +37 -0
- package/dist/components/GroupedMultiSelect/_helpers/OptionsList.d.ts +4 -0
- package/dist/components/GroupedMultiSelect/_helpers/OptionsList.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_helpers/OptionsList.js +81 -0
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts +4 -0
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.js +37 -0
- package/dist/components/GroupedMultiSelect/_helpers/TagContent.d.ts +5 -0
- package/dist/components/GroupedMultiSelect/_helpers/TagContent.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_helpers/TagContent.js +47 -0
- package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts +4 -0
- package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.js +73 -0
- package/dist/components/GroupedMultiSelect/_types/type.d.ts +113 -0
- package/dist/components/GroupedMultiSelect/_types/type.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_types/type.js +1 -0
- package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.d.ts +7 -0
- package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_utils/computeApplyDisabled.js +8 -0
- package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts +3 -0
- package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.js +12 -0
- package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts +6 -0
- package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.js +8 -0
- package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts +6 -0
- package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.js +9 -0
- package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts +6 -0
- package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.js +8 -0
- package/dist/components/GroupedMultiSelect/data.d.ts +16 -0
- package/dist/components/GroupedMultiSelect/data.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/data.js +45 -0
- package/dist/components/GroupedMultiSelect/index.d.ts +4 -0
- package/dist/components/GroupedMultiSelect/index.d.ts.map +1 -0
- package/dist/components/GroupedMultiSelect/index.js +176 -0
- package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.d.ts +4 -0
- package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.d.ts.map +1 -0
- package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.js +62 -0
- package/dist/components/GroupedSingleSelect/_helpers/OptionRow.d.ts +4 -0
- package/dist/components/GroupedSingleSelect/_helpers/OptionRow.d.ts.map +1 -0
- package/dist/components/GroupedSingleSelect/_helpers/OptionRow.js +40 -0
- package/dist/components/GroupedSingleSelect/_helpers/OptionsList.d.ts +4 -0
- package/dist/components/GroupedSingleSelect/_helpers/OptionsList.d.ts.map +1 -0
- package/dist/components/GroupedSingleSelect/_helpers/OptionsList.js +55 -0
- package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.d.ts +4 -0
- package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.d.ts.map +1 -0
- package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.js +77 -0
- package/dist/components/GroupedSingleSelect/_types/type.d.ts +77 -0
- package/dist/components/GroupedSingleSelect/_types/type.d.ts.map +1 -0
- package/dist/components/GroupedSingleSelect/_types/type.js +1 -0
- package/dist/components/GroupedSingleSelect/_utils/filterSeachedGroups.d.ts +3 -0
- package/dist/components/GroupedSingleSelect/_utils/filterSeachedGroups.d.ts.map +1 -0
- package/dist/components/GroupedSingleSelect/_utils/filterSeachedGroups.js +12 -0
- package/dist/components/GroupedSingleSelect/_utils/getDefaultSelected.d.ts +6 -0
- package/dist/components/GroupedSingleSelect/_utils/getDefaultSelected.d.ts.map +1 -0
- package/dist/components/GroupedSingleSelect/_utils/getDefaultSelected.js +11 -0
- package/dist/components/GroupedSingleSelect/data.d.ts +8 -0
- package/dist/components/GroupedSingleSelect/data.d.ts.map +1 -0
- package/dist/components/GroupedSingleSelect/data.js +29 -0
- package/dist/components/GroupedSingleSelect/index.d.ts +4 -0
- package/dist/components/GroupedSingleSelect/index.d.ts.map +1 -0
- package/dist/components/GroupedSingleSelect/index.js +138 -0
- package/dist/components/IconButton/_types/iconButton.type.d.ts +18 -0
- package/dist/components/IconButton/_types/iconButton.type.d.ts.map +1 -0
- package/dist/components/IconButton/_types/iconButton.type.js +1 -0
- package/dist/components/IconButton/index.d.ts +3 -0
- package/dist/components/IconButton/index.d.ts.map +1 -0
- package/dist/components/IconButton/index.js +59 -0
- package/dist/components/Input/index.js +8 -6
- package/dist/components/MenuOptions/MenuOptionsWrapper.d.ts +6 -0
- package/dist/components/MenuOptions/MenuOptionsWrapper.d.ts.map +1 -0
- package/dist/components/MenuOptions/MenuOptionsWrapper.js +19 -0
- package/dist/components/MenuOptions/_helpers/MenuItem.d.ts +3 -0
- package/dist/components/MenuOptions/_helpers/MenuItem.d.ts.map +1 -0
- package/dist/components/MenuOptions/_helpers/MenuItem.js +13 -0
- package/dist/components/MenuOptions/_helpers/RadioMenuItem.d.ts +3 -0
- package/dist/components/MenuOptions/_helpers/RadioMenuItem.d.ts.map +1 -0
- package/dist/components/MenuOptions/_helpers/RadioMenuItem.js +46 -0
- package/dist/components/MenuOptions/_helpers/SubMenu.d.ts +21 -0
- package/dist/components/MenuOptions/_helpers/SubMenu.d.ts.map +1 -0
- package/dist/components/MenuOptions/_helpers/SubMenu.js +6 -0
- package/dist/components/MenuOptions/_types/menuOptions.types.d.ts +49 -0
- package/dist/components/MenuOptions/_types/menuOptions.types.d.ts.map +1 -0
- package/dist/components/MenuOptions/_types/menuOptions.types.js +1 -0
- package/dist/components/MenuOptions/_utils/computeMenuPosition.d.ts +12 -0
- package/dist/components/MenuOptions/_utils/computeMenuPosition.d.ts.map +1 -0
- package/dist/components/MenuOptions/_utils/computeMenuPosition.js +14 -0
- package/dist/components/MenuOptions/_utils/computeSubmenuPosition.d.ts +12 -0
- package/dist/components/MenuOptions/_utils/computeSubmenuPosition.d.ts.map +1 -0
- package/dist/components/MenuOptions/_utils/computeSubmenuPosition.js +8 -0
- package/dist/components/MenuOptions/_utils/filterMenuCategories.d.ts +9 -0
- package/dist/components/MenuOptions/_utils/filterMenuCategories.d.ts.map +1 -0
- package/dist/components/MenuOptions/_utils/filterMenuCategories.js +13 -0
- package/dist/components/MenuOptions/_utils/getIconStrokeColor.d.ts +6 -0
- package/dist/components/MenuOptions/_utils/getIconStrokeColor.d.ts.map +1 -0
- package/dist/components/MenuOptions/_utils/getIconStrokeColor.js +6 -0
- package/dist/components/MenuOptions/_utils/getMenuItemActiveState.d.ts +11 -0
- package/dist/components/MenuOptions/_utils/getMenuItemActiveState.d.ts.map +1 -0
- package/dist/components/MenuOptions/_utils/getMenuItemActiveState.js +6 -0
- package/dist/components/MenuOptions/index.d.ts +5 -0
- package/dist/components/MenuOptions/index.d.ts.map +1 -0
- package/dist/components/MenuOptions/index.js +128 -0
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.d.ts +3 -0
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.d.ts.map +1 -0
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +71 -0
- package/dist/components/MetricCards/Constant/constant.d.ts +13 -0
- package/dist/components/MetricCards/Constant/constant.d.ts.map +1 -0
- package/dist/components/MetricCards/Constant/constant.js +15 -0
- package/dist/components/MetricCards/_types/metricCards.types.d.ts +38 -0
- package/dist/components/MetricCards/_types/metricCards.types.d.ts.map +1 -0
- package/dist/components/MetricCards/_types/metricCards.types.js +1 -0
- package/dist/components/MetricCards/index.d.ts +4 -0
- package/dist/components/MetricCards/index.d.ts.map +1 -0
- package/dist/components/MetricCards/index.js +31 -0
- package/dist/components/MultiSelect/_helpers/DropdownFooter.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/DropdownFooter.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/DropdownFooter.js +72 -0
- package/dist/components/MultiSelect/_helpers/OptionRow.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/OptionRow.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/OptionRow.js +40 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenu.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenu.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenu.js +7 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +30 -0
- package/dist/components/MultiSelect/_helpers/SearchResult.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/SearchResult.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/SearchResult.js +33 -0
- package/dist/components/MultiSelect/_helpers/TagContent.d.ts +5 -0
- package/dist/components/MultiSelect/_helpers/TagContent.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/TagContent.js +47 -0
- package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts +4 -0
- package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts.map +1 -0
- package/dist/components/MultiSelect/_helpers/TriggerButton.js +77 -0
- package/dist/components/MultiSelect/_types/type.d.ts +103 -0
- package/dist/components/MultiSelect/_types/type.d.ts.map +1 -0
- package/dist/components/MultiSelect/_types/type.js +1 -0
- package/dist/components/MultiSelect/_utils/computeApplyDisabled.d.ts +9 -0
- package/dist/components/MultiSelect/_utils/computeApplyDisabled.d.ts.map +1 -0
- package/dist/components/MultiSelect/_utils/computeApplyDisabled.js +9 -0
- package/dist/components/MultiSelect/_utils/filterOptions.d.ts +6 -0
- package/dist/components/MultiSelect/_utils/filterOptions.d.ts.map +1 -0
- package/dist/components/MultiSelect/_utils/filterOptions.js +7 -0
- package/dist/components/MultiSelect/_utils/getInitialSelected.d.ts +6 -0
- package/dist/components/MultiSelect/_utils/getInitialSelected.d.ts.map +1 -0
- package/dist/components/MultiSelect/_utils/getInitialSelected.js +6 -0
- package/dist/components/MultiSelect/index.d.ts +4 -0
- package/dist/components/MultiSelect/index.d.ts.map +1 -0
- package/dist/components/MultiSelect/index.js +232 -0
- package/dist/components/Pagination/_types/pagination.types.d.ts +21 -0
- package/dist/components/Pagination/_types/pagination.types.d.ts.map +1 -0
- package/dist/components/Pagination/_types/pagination.types.js +1 -0
- package/dist/components/Pagination/_utils/computePageSizeOptions.d.ts +5 -0
- package/dist/components/Pagination/_utils/computePageSizeOptions.d.ts.map +1 -0
- package/dist/components/Pagination/_utils/computePageSizeOptions.js +10 -0
- package/dist/components/Pagination/_utils/generatePageNumbers.d.ts +4 -0
- package/dist/components/Pagination/_utils/generatePageNumbers.d.ts.map +1 -0
- package/dist/components/Pagination/_utils/generatePageNumbers.js +18 -0
- package/dist/components/Pagination/index.d.ts +6 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Pagination/index.js +164 -0
- package/dist/components/Popover/_types/popover.types.d.ts +13 -0
- package/dist/components/Popover/_types/popover.types.d.ts.map +1 -0
- package/dist/components/Popover/_types/popover.types.js +1 -0
- package/dist/components/Popover/index.d.ts +4 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Popover/index.js +91 -0
- package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts +31 -0
- package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.d.ts.map +1 -0
- package/dist/components/PopupAndDialogBox/_types/popupAndDialog.types.js +1 -0
- package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts +5 -0
- package/dist/components/PopupAndDialogBox/components/DialogContent.d.ts.map +1 -0
- package/dist/components/PopupAndDialogBox/components/DialogContent.js +9 -0
- package/dist/components/PopupAndDialogBox/components/DialogFooter.d.ts +4 -0
- package/dist/components/PopupAndDialogBox/components/DialogFooter.d.ts.map +1 -0
- package/dist/components/PopupAndDialogBox/components/DialogFooter.js +49 -0
- package/dist/components/PopupAndDialogBox/components/DialogHeader.d.ts +4 -0
- package/dist/components/PopupAndDialogBox/components/DialogHeader.d.ts.map +1 -0
- package/dist/components/PopupAndDialogBox/components/DialogHeader.js +23 -0
- package/dist/components/PopupAndDialogBox/constant/popupAndDialog.d.ts +14 -0
- package/dist/components/PopupAndDialogBox/constant/popupAndDialog.d.ts.map +1 -0
- package/dist/components/PopupAndDialogBox/constant/popupAndDialog.js +17 -0
- package/dist/components/PopupAndDialogBox/index.d.ts +5 -0
- package/dist/components/PopupAndDialogBox/index.d.ts.map +1 -0
- package/dist/components/PopupAndDialogBox/index.js +36 -0
- package/dist/components/ProgressBar/_types/progressBar.types.d.ts +34 -0
- package/dist/components/ProgressBar/_types/progressBar.types.d.ts.map +1 -0
- package/dist/components/ProgressBar/_types/progressBar.types.js +1 -0
- package/dist/components/ProgressBar/index.d.ts +3 -0
- package/dist/components/ProgressBar/index.d.ts.map +1 -0
- package/dist/components/ProgressBar/index.js +48 -0
- package/dist/components/RadioButton/_types/radioButton.types.d.ts +10 -0
- package/dist/components/RadioButton/_types/radioButton.types.d.ts.map +1 -0
- package/dist/components/RadioButton/_types/radioButton.types.js +1 -0
- package/dist/components/RadioButton/index.d.ts +3 -0
- package/dist/components/RadioButton/index.d.ts.map +1 -0
- package/dist/components/RadioButton/index.js +53 -0
- package/dist/components/RadioGroup/_types/radioGroup.types.d.ts +15 -0
- package/dist/components/RadioGroup/_types/radioGroup.types.d.ts.map +1 -0
- package/dist/components/RadioGroup/_types/radioGroup.types.js +1 -0
- package/dist/components/RadioGroup/index.d.ts +3 -0
- package/dist/components/RadioGroup/index.d.ts.map +1 -0
- package/dist/components/RadioGroup/index.js +44 -0
- package/dist/components/Search/_types/search.types.d.ts +19 -0
- package/dist/components/Search/_types/search.types.d.ts.map +1 -0
- package/dist/components/Search/_types/search.types.js +1 -0
- package/dist/components/Search/index.d.ts +3 -0
- package/dist/components/Search/index.d.ts.map +1 -0
- package/dist/components/Search/index.js +105 -0
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts +10 -0
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts.map +1 -0
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +23 -0
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts +20 -0
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts.map +1 -0
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.js +1 -0
- package/dist/components/SingleSelectDropdown/index.d.ts +3 -0
- package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -0
- package/dist/components/SingleSelectDropdown/index.js +151 -0
- package/dist/components/Stepper/_helper/StepIcon.d.ts +6 -0
- package/dist/components/Stepper/_helper/StepIcon.d.ts.map +1 -0
- package/dist/components/Stepper/_helper/StepIcon.js +30 -0
- package/dist/components/Stepper/_helper/StepText.d.ts +3 -0
- package/dist/components/Stepper/_helper/StepText.d.ts.map +1 -0
- package/dist/components/Stepper/_helper/StepText.js +14 -0
- package/dist/components/Stepper/_types/stepper.type.d.ts +16 -0
- package/dist/components/Stepper/_types/stepper.type.d.ts.map +1 -0
- package/dist/components/Stepper/_types/stepper.type.js +1 -0
- package/dist/components/Stepper/_utils/stepper.utils.d.ts +4 -0
- package/dist/components/Stepper/_utils/stepper.utils.d.ts.map +1 -0
- package/dist/components/Stepper/_utils/stepper.utils.js +18 -0
- package/dist/components/Stepper/constants.d.ts +10 -0
- package/dist/components/Stepper/constants.d.ts.map +1 -0
- package/dist/components/Stepper/constants.js +12 -0
- package/dist/components/Stepper/index.d.ts +6 -0
- package/dist/components/Stepper/index.d.ts.map +1 -0
- package/dist/components/Stepper/index.js +47 -0
- package/dist/components/Switch/index.js +3 -3
- package/dist/components/Tab/_types/tab.types.d.ts +23 -0
- package/dist/components/Tab/_types/tab.types.d.ts.map +1 -0
- package/dist/components/Tab/_types/tab.types.js +1 -0
- package/dist/components/Tab/index.d.ts +3 -0
- package/dist/components/Tab/index.d.ts.map +1 -0
- package/dist/components/Tab/index.js +72 -0
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts +4 -0
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -0
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +85 -0
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts +4 -0
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -0
- package/dist/components/Table/_helpers/ColumnManager/index.js +2451 -0
- package/dist/components/Table/_helpers/ExpandableRow/index.d.ts +16 -0
- package/dist/components/Table/_helpers/ExpandableRow/index.d.ts.map +1 -0
- package/dist/components/Table/_helpers/ExpandableRow/index.js +44 -0
- package/dist/components/Table/_helpers/FilterColumnToolbar.d.ts +14 -0
- package/dist/components/Table/_helpers/FilterColumnToolbar.d.ts.map +1 -0
- package/dist/components/Table/_helpers/FilterColumnToolbar.js +121 -0
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +24 -0
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -0
- package/dist/components/Table/_helpers/GroupedHeader/index.js +201 -0
- package/dist/components/Table/_helpers/SelectionCell/index.d.ts +19 -0
- package/dist/components/Table/_helpers/SelectionCell/index.d.ts.map +1 -0
- package/dist/components/Table/_helpers/SelectionCell/index.js +50 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts +3 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +11 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.d.ts +3 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableFilterModal/OptionListItems.js +75 -0
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts +3 -0
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.js +1544 -0
- package/dist/components/Table/_helpers/TableFilterModal/index.d.ts +4 -0
- package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableFilterModal/index.js +115 -0
- package/dist/components/Table/_helpers/TableRows.d.ts +3 -0
- package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -0
- package/dist/components/Table/_helpers/TableRows.js +403 -0
- package/dist/components/Table/_hooks/useExpansion.d.ts +20 -0
- package/dist/components/Table/_hooks/useExpansion.d.ts.map +1 -0
- package/dist/components/Table/_hooks/useExpansion.js +46 -0
- package/dist/components/Table/_hooks/useFilterColumnState.d.ts +17 -0
- package/dist/components/Table/_hooks/useFilterColumnState.d.ts.map +1 -0
- package/dist/components/Table/_hooks/useFilterColumnState.js +94 -0
- package/dist/components/Table/_hooks/useSelection.d.ts +12 -0
- package/dist/components/Table/_hooks/useSelection.d.ts.map +1 -0
- package/dist/components/Table/_hooks/useSelection.js +45 -0
- package/dist/components/Table/_types/table.types.d.ts +280 -0
- package/dist/components/Table/_types/table.types.d.ts.map +1 -0
- package/dist/components/Table/_types/table.types.js +1 -0
- package/dist/components/Table/_utils/formatCellValue.d.ts +13 -0
- package/dist/components/Table/_utils/formatCellValue.d.ts.map +1 -0
- package/dist/components/Table/_utils/formatCellValue.js +17 -0
- package/dist/components/Table/_utils/table.utils.d.ts +7 -0
- package/dist/components/Table/_utils/table.utils.d.ts.map +1 -0
- package/dist/components/Table/_utils/table.utils.js +37 -0
- package/dist/components/Table/constants.d.ts +6 -0
- package/dist/components/Table/constants.d.ts.map +1 -0
- package/dist/components/Table/constants.js +13 -0
- package/dist/components/Table/index.d.ts +4 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/index.js +518 -0
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/TextArea/_types/textArea.types.d.ts +20 -0
- package/dist/components/TextArea/_types/textArea.types.d.ts.map +1 -0
- package/dist/components/TextArea/_types/textArea.types.js +1 -0
- package/dist/components/TextArea/index.d.ts +4 -0
- package/dist/components/TextArea/index.d.ts.map +1 -0
- package/dist/components/TextArea/index.js +135 -0
- package/dist/components/TextField/_types/textField.types.d.ts +67 -0
- package/dist/components/TextField/_types/textField.types.d.ts.map +1 -0
- package/dist/components/TextField/_types/textField.types.js +1 -0
- package/dist/components/TextField/index.d.ts +4 -0
- package/dist/components/TextField/index.d.ts.map +1 -0
- package/dist/components/TextField/index.js +1122 -0
- package/dist/components/Toast/_helper/ToastContent.d.ts +3 -0
- package/dist/components/Toast/_helper/ToastContent.d.ts.map +1 -0
- package/dist/components/Toast/_helper/ToastContent.js +91 -0
- package/dist/components/Toast/_helper/ToastProvider.d.ts +7 -0
- package/dist/components/Toast/_helper/ToastProvider.d.ts.map +1 -0
- package/dist/components/Toast/_helper/ToastProvider.js +28 -0
- package/dist/components/Toast/_hooks/useToast.d.ts +14 -0
- package/dist/components/Toast/_hooks/useToast.d.ts.map +1 -0
- package/dist/components/Toast/_hooks/useToast.js +101 -0
- package/dist/components/Toast/_types/toast.types.d.ts +22 -0
- package/dist/components/Toast/_types/toast.types.d.ts.map +1 -0
- package/dist/components/Toast/_types/toast.types.js +1 -0
- package/dist/components/Toast/index.d.ts +5 -0
- package/dist/components/Toast/index.d.ts.map +1 -0
- package/dist/components/Toast/index.js +8 -0
- package/dist/components/Toggle/_types/toggle.types.d.ts +7 -0
- package/dist/components/Toggle/_types/toggle.types.d.ts.map +1 -0
- package/dist/components/Toggle/_types/toggle.types.js +1 -0
- package/dist/components/Toggle/index.d.ts +3 -0
- package/dist/components/Toggle/index.d.ts.map +1 -0
- package/dist/components/Toggle/index.js +43 -0
- package/dist/components/Tooltip/_types/tooltip.types.d.ts +8 -0
- package/dist/components/Tooltip/_types/tooltip.types.d.ts.map +1 -0
- package/dist/components/Tooltip/_types/tooltip.types.js +1 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/components/Tooltip/index.js +1975 -0
- package/dist/components/Typography/_types/typography.types.d.ts +28 -0
- package/dist/components/Typography/_types/typography.types.d.ts.map +1 -0
- package/dist/components/Typography/_types/typography.types.js +1 -0
- package/dist/components/Typography/index.d.ts +3 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/components/Typography/index.js +45 -0
- package/dist/constants.d.ts +17 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +19 -0
- package/dist/contains-kLLEGdNH.js +41 -0
- package/dist/index-C8cPPHJD.js +1196 -0
- package/dist/index-f7TB87Mf.js +1846 -0
- package/dist/info-icon-ooYw3va_.js +5 -0
- package/dist/isFocusVisible-BzX3wEi7.js +12 -0
- package/dist/main.d.ts +36 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +481 -16
- package/dist/reset-icon-YxMt3Ozp.js +5 -0
- package/dist/search-B_cup-NN.js +5 -0
- package/dist/styles.module-B5fY7mP8.js +20 -0
- package/dist/styles.module-BZaUJMlf.js +14 -0
- package/dist/styles.module-CCyijXTv.js +16 -0
- package/dist/styles.module-CmWIIYpK.js +41 -0
- package/dist/styles.module-DGDgpLAB.js +29 -0
- package/dist/styles.module-ZyeVE7KZ.js +39 -0
- package/dist/styles.module-r_cdKgD9.js +19 -0
- package/dist/table-filter-C0zetUfo.js +6 -0
- package/dist/theme/Theme.js +3 -2
- package/dist/theme/theme.css +1 -1
- package/dist/useSlot-ylt7_lTY.js +4698 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/mergeClasses.d.ts +2 -0
- package/dist/utils/mergeClasses.d.ts.map +1 -0
- package/dist/utils/mergeClasses.js +6 -0
- package/package.json +25 -7
- package/dist/assets/Theme.css +0 -1
- package/dist/assets/index2.css +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -9
- package/dist/components/Button/Button.stories.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -10
- package/dist/components/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/dist/components/Copy/Copy.stories.d.ts +0 -9
- package/dist/components/Copy/Copy.stories.d.ts.map +0 -1
- package/dist/components/Switch/Switch.stories.d.ts +0 -10
- package/dist/components/Switch/Switch.stories.d.ts.map +0 -1
- package/dist/components/Tag/Tag.stories.d.ts +0 -11
- package/dist/components/Tag/Tag.stories.d.ts.map +0 -1
- /package/dist/assets/{index5.css → index-B6Mg98vm.css} +0 -0
- /package/dist/assets/{index3.css → index-C7wPc9Eh.css} +0 -0
- /package/dist/assets/{index4.css → index-DRigR6XT.css} +0 -0
- /package/dist/assets/{index.css → index-t78owPAF.css} +0 -0
|
@@ -0,0 +1,1975 @@
|
|
|
1
|
+
import { jsx as ie, jsxs as vt } from "react/jsx-runtime";
|
|
2
|
+
import * as j from "react";
|
|
3
|
+
import { q as Mt, r as Ct, A as mt, U as ot, Q as ht, g as jt, P as n, e as to, W as oo, O as Dt, L as Qe, N as ro, S as gt, X as He, d as kt, y as at } from "../../useSlot-ylt7_lTY.js";
|
|
4
|
+
import { c as no } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import { P as ao, i as $t, l as io, r as Bt, H as Ye, m as so, q as Ue, u as po, g as lo, G as co, T as fo, e as uo } from "../../Grow-D08Iq1uH.js";
|
|
6
|
+
import { i as bt } from "../../isFocusVisible-BzX3wEi7.js";
|
|
7
|
+
var W = "top", Y = "bottom", G = "right", F = "left", it = "auto", Be = [W, Y, G, F], Oe = "start", ke = "end", vo = "clippingParents", Lt = "viewport", Me = "popper", mo = "reference", yt = /* @__PURE__ */ Be.reduce(function(e, t) {
|
|
8
|
+
return e.concat([t + "-" + Oe, t + "-" + ke]);
|
|
9
|
+
}, []), Nt = /* @__PURE__ */ [].concat(Be, [it]).reduce(function(e, t) {
|
|
10
|
+
return e.concat([t, t + "-" + Oe, t + "-" + ke]);
|
|
11
|
+
}, []), ho = "beforeRead", go = "read", bo = "afterRead", yo = "beforeMain", wo = "main", Oo = "afterMain", xo = "beforeWrite", To = "write", Po = "afterWrite", Eo = [ho, go, bo, yo, wo, Oo, xo, To, Po];
|
|
12
|
+
function oe(e) {
|
|
13
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
14
|
+
}
|
|
15
|
+
function U(e) {
|
|
16
|
+
if (e == null)
|
|
17
|
+
return window;
|
|
18
|
+
if (e.toString() !== "[object Window]") {
|
|
19
|
+
var t = e.ownerDocument;
|
|
20
|
+
return t && t.defaultView || window;
|
|
21
|
+
}
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
function he(e) {
|
|
25
|
+
var t = U(e).Element;
|
|
26
|
+
return e instanceof t || e instanceof Element;
|
|
27
|
+
}
|
|
28
|
+
function X(e) {
|
|
29
|
+
var t = U(e).HTMLElement;
|
|
30
|
+
return e instanceof t || e instanceof HTMLElement;
|
|
31
|
+
}
|
|
32
|
+
function st(e) {
|
|
33
|
+
if (typeof ShadowRoot > "u")
|
|
34
|
+
return !1;
|
|
35
|
+
var t = U(e).ShadowRoot;
|
|
36
|
+
return e instanceof t || e instanceof ShadowRoot;
|
|
37
|
+
}
|
|
38
|
+
function Ro(e) {
|
|
39
|
+
var t = e.state;
|
|
40
|
+
Object.keys(t.elements).forEach(function(o) {
|
|
41
|
+
var r = t.styles[o] || {}, a = t.attributes[o] || {}, i = t.elements[o];
|
|
42
|
+
!X(i) || !oe(i) || (Object.assign(i.style, r), Object.keys(a).forEach(function(c) {
|
|
43
|
+
var s = a[c];
|
|
44
|
+
s === !1 ? i.removeAttribute(c) : i.setAttribute(c, s === !0 ? "" : s);
|
|
45
|
+
}));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function So(e) {
|
|
49
|
+
var t = e.state, o = {
|
|
50
|
+
popper: {
|
|
51
|
+
position: t.options.strategy,
|
|
52
|
+
left: "0",
|
|
53
|
+
top: "0",
|
|
54
|
+
margin: "0"
|
|
55
|
+
},
|
|
56
|
+
arrow: {
|
|
57
|
+
position: "absolute"
|
|
58
|
+
},
|
|
59
|
+
reference: {}
|
|
60
|
+
};
|
|
61
|
+
return Object.assign(t.elements.popper.style, o.popper), t.styles = o, t.elements.arrow && Object.assign(t.elements.arrow.style, o.arrow), function() {
|
|
62
|
+
Object.keys(t.elements).forEach(function(r) {
|
|
63
|
+
var a = t.elements[r], i = t.attributes[r] || {}, c = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : o[r]), s = c.reduce(function(p, f) {
|
|
64
|
+
return p[f] = "", p;
|
|
65
|
+
}, {});
|
|
66
|
+
!X(a) || !oe(a) || (Object.assign(a.style, s), Object.keys(i).forEach(function(p) {
|
|
67
|
+
a.removeAttribute(p);
|
|
68
|
+
}));
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
const Ao = {
|
|
73
|
+
name: "applyStyles",
|
|
74
|
+
enabled: !0,
|
|
75
|
+
phase: "write",
|
|
76
|
+
fn: Ro,
|
|
77
|
+
effect: So,
|
|
78
|
+
requires: ["computeStyles"]
|
|
79
|
+
};
|
|
80
|
+
function te(e) {
|
|
81
|
+
return e.split("-")[0];
|
|
82
|
+
}
|
|
83
|
+
var me = Math.max, Ge = Math.min, xe = Math.round;
|
|
84
|
+
function rt() {
|
|
85
|
+
var e = navigator.userAgentData;
|
|
86
|
+
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
87
|
+
return t.brand + "/" + t.version;
|
|
88
|
+
}).join(" ") : navigator.userAgent;
|
|
89
|
+
}
|
|
90
|
+
function It() {
|
|
91
|
+
return !/^((?!chrome|android).)*safari/i.test(rt());
|
|
92
|
+
}
|
|
93
|
+
function Te(e, t, o) {
|
|
94
|
+
t === void 0 && (t = !1), o === void 0 && (o = !1);
|
|
95
|
+
var r = e.getBoundingClientRect(), a = 1, i = 1;
|
|
96
|
+
t && X(e) && (a = e.offsetWidth > 0 && xe(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && xe(r.height) / e.offsetHeight || 1);
|
|
97
|
+
var c = he(e) ? U(e) : window, s = c.visualViewport, p = !It() && o, f = (r.left + (p && s ? s.offsetLeft : 0)) / a, l = (r.top + (p && s ? s.offsetTop : 0)) / i, g = r.width / a, x = r.height / i;
|
|
98
|
+
return {
|
|
99
|
+
width: g,
|
|
100
|
+
height: x,
|
|
101
|
+
top: l,
|
|
102
|
+
right: f + g,
|
|
103
|
+
bottom: l + x,
|
|
104
|
+
left: f,
|
|
105
|
+
x: f,
|
|
106
|
+
y: l
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function pt(e) {
|
|
110
|
+
var t = Te(e), o = e.offsetWidth, r = e.offsetHeight;
|
|
111
|
+
return Math.abs(t.width - o) <= 1 && (o = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
|
|
112
|
+
x: e.offsetLeft,
|
|
113
|
+
y: e.offsetTop,
|
|
114
|
+
width: o,
|
|
115
|
+
height: r
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function Wt(e, t) {
|
|
119
|
+
var o = t.getRootNode && t.getRootNode();
|
|
120
|
+
if (e.contains(t))
|
|
121
|
+
return !0;
|
|
122
|
+
if (o && st(o)) {
|
|
123
|
+
var r = t;
|
|
124
|
+
do {
|
|
125
|
+
if (r && e.isSameNode(r))
|
|
126
|
+
return !0;
|
|
127
|
+
r = r.parentNode || r.host;
|
|
128
|
+
} while (r);
|
|
129
|
+
}
|
|
130
|
+
return !1;
|
|
131
|
+
}
|
|
132
|
+
function se(e) {
|
|
133
|
+
return U(e).getComputedStyle(e);
|
|
134
|
+
}
|
|
135
|
+
function Mo(e) {
|
|
136
|
+
return ["table", "td", "th"].indexOf(oe(e)) >= 0;
|
|
137
|
+
}
|
|
138
|
+
function de(e) {
|
|
139
|
+
return ((he(e) ? e.ownerDocument : (
|
|
140
|
+
// $FlowFixMe[prop-missing]
|
|
141
|
+
e.document
|
|
142
|
+
)) || window.document).documentElement;
|
|
143
|
+
}
|
|
144
|
+
function Je(e) {
|
|
145
|
+
return oe(e) === "html" ? e : (
|
|
146
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
147
|
+
// $FlowFixMe[incompatible-return]
|
|
148
|
+
// $FlowFixMe[prop-missing]
|
|
149
|
+
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
150
|
+
e.parentNode || // DOM Element detected
|
|
151
|
+
(st(e) ? e.host : null) || // ShadowRoot detected
|
|
152
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
153
|
+
de(e)
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
function wt(e) {
|
|
157
|
+
return !X(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
158
|
+
se(e).position === "fixed" ? null : e.offsetParent;
|
|
159
|
+
}
|
|
160
|
+
function Co(e) {
|
|
161
|
+
var t = /firefox/i.test(rt()), o = /Trident/i.test(rt());
|
|
162
|
+
if (o && X(e)) {
|
|
163
|
+
var r = se(e);
|
|
164
|
+
if (r.position === "fixed")
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
var a = Je(e);
|
|
168
|
+
for (st(a) && (a = a.host); X(a) && ["html", "body"].indexOf(oe(a)) < 0; ) {
|
|
169
|
+
var i = se(a);
|
|
170
|
+
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
|
|
171
|
+
return a;
|
|
172
|
+
a = a.parentNode;
|
|
173
|
+
}
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
function Le(e) {
|
|
177
|
+
for (var t = U(e), o = wt(e); o && Mo(o) && se(o).position === "static"; )
|
|
178
|
+
o = wt(o);
|
|
179
|
+
return o && (oe(o) === "html" || oe(o) === "body" && se(o).position === "static") ? t : o || Co(e) || t;
|
|
180
|
+
}
|
|
181
|
+
function lt(e) {
|
|
182
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
183
|
+
}
|
|
184
|
+
function je(e, t, o) {
|
|
185
|
+
return me(e, Ge(t, o));
|
|
186
|
+
}
|
|
187
|
+
function jo(e, t, o) {
|
|
188
|
+
var r = je(e, t, o);
|
|
189
|
+
return r > o ? o : r;
|
|
190
|
+
}
|
|
191
|
+
function Ft() {
|
|
192
|
+
return {
|
|
193
|
+
top: 0,
|
|
194
|
+
right: 0,
|
|
195
|
+
bottom: 0,
|
|
196
|
+
left: 0
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
function Ht(e) {
|
|
200
|
+
return Object.assign({}, Ft(), e);
|
|
201
|
+
}
|
|
202
|
+
function Ut(e, t) {
|
|
203
|
+
return t.reduce(function(o, r) {
|
|
204
|
+
return o[r] = e, o;
|
|
205
|
+
}, {});
|
|
206
|
+
}
|
|
207
|
+
var Do = function(t, o) {
|
|
208
|
+
return t = typeof t == "function" ? t(Object.assign({}, o.rects, {
|
|
209
|
+
placement: o.placement
|
|
210
|
+
})) : t, Ht(typeof t != "number" ? t : Ut(t, Be));
|
|
211
|
+
};
|
|
212
|
+
function ko(e) {
|
|
213
|
+
var t, o = e.state, r = e.name, a = e.options, i = o.elements.arrow, c = o.modifiersData.popperOffsets, s = te(o.placement), p = lt(s), f = [F, G].indexOf(s) >= 0, l = f ? "height" : "width";
|
|
214
|
+
if (!(!i || !c)) {
|
|
215
|
+
var g = Do(a.padding, o), x = pt(i), u = p === "y" ? W : F, E = p === "y" ? Y : G, v = o.rects.reference[l] + o.rects.reference[p] - c[p] - o.rects.popper[l], h = c[p] - o.rects.reference[p], O = Le(i), A = O ? p === "y" ? O.clientHeight || 0 : O.clientWidth || 0 : 0, T = v / 2 - h / 2, d = g[u], b = A - x[l] - g[E], y = A / 2 - x[l] / 2 + T, P = je(d, y, b), D = p;
|
|
216
|
+
o.modifiersData[r] = (t = {}, t[D] = P, t.centerOffset = P - y, t);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function $o(e) {
|
|
220
|
+
var t = e.state, o = e.options, r = o.element, a = r === void 0 ? "[data-popper-arrow]" : r;
|
|
221
|
+
a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || Wt(t.elements.popper, a) && (t.elements.arrow = a));
|
|
222
|
+
}
|
|
223
|
+
const Bo = {
|
|
224
|
+
name: "arrow",
|
|
225
|
+
enabled: !0,
|
|
226
|
+
phase: "main",
|
|
227
|
+
fn: ko,
|
|
228
|
+
effect: $o,
|
|
229
|
+
requires: ["popperOffsets"],
|
|
230
|
+
requiresIfExists: ["preventOverflow"]
|
|
231
|
+
};
|
|
232
|
+
function Pe(e) {
|
|
233
|
+
return e.split("-")[1];
|
|
234
|
+
}
|
|
235
|
+
var Lo = {
|
|
236
|
+
top: "auto",
|
|
237
|
+
right: "auto",
|
|
238
|
+
bottom: "auto",
|
|
239
|
+
left: "auto"
|
|
240
|
+
};
|
|
241
|
+
function No(e, t) {
|
|
242
|
+
var o = e.x, r = e.y, a = t.devicePixelRatio || 1;
|
|
243
|
+
return {
|
|
244
|
+
x: xe(o * a) / a || 0,
|
|
245
|
+
y: xe(r * a) / a || 0
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
function Ot(e) {
|
|
249
|
+
var t, o = e.popper, r = e.popperRect, a = e.placement, i = e.variation, c = e.offsets, s = e.position, p = e.gpuAcceleration, f = e.adaptive, l = e.roundOffsets, g = e.isFixed, x = c.x, u = x === void 0 ? 0 : x, E = c.y, v = E === void 0 ? 0 : E, h = typeof l == "function" ? l({
|
|
250
|
+
x: u,
|
|
251
|
+
y: v
|
|
252
|
+
}) : {
|
|
253
|
+
x: u,
|
|
254
|
+
y: v
|
|
255
|
+
};
|
|
256
|
+
u = h.x, v = h.y;
|
|
257
|
+
var O = c.hasOwnProperty("x"), A = c.hasOwnProperty("y"), T = F, d = W, b = window;
|
|
258
|
+
if (f) {
|
|
259
|
+
var y = Le(o), P = "clientHeight", D = "clientWidth";
|
|
260
|
+
if (y === U(o) && (y = de(o), se(y).position !== "static" && s === "absolute" && (P = "scrollHeight", D = "scrollWidth")), y = y, a === W || (a === F || a === G) && i === ke) {
|
|
261
|
+
d = Y;
|
|
262
|
+
var w = g && y === b && b.visualViewport ? b.visualViewport.height : (
|
|
263
|
+
// $FlowFixMe[prop-missing]
|
|
264
|
+
y[P]
|
|
265
|
+
);
|
|
266
|
+
v -= w - r.height, v *= p ? 1 : -1;
|
|
267
|
+
}
|
|
268
|
+
if (a === F || (a === W || a === Y) && i === ke) {
|
|
269
|
+
T = G;
|
|
270
|
+
var M = g && y === b && b.visualViewport ? b.visualViewport.width : (
|
|
271
|
+
// $FlowFixMe[prop-missing]
|
|
272
|
+
y[D]
|
|
273
|
+
);
|
|
274
|
+
u -= M - r.width, u *= p ? 1 : -1;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
var S = Object.assign({
|
|
278
|
+
position: s
|
|
279
|
+
}, f && Lo), N = l === !0 ? No({
|
|
280
|
+
x: u,
|
|
281
|
+
y: v
|
|
282
|
+
}, U(o)) : {
|
|
283
|
+
x: u,
|
|
284
|
+
y: v
|
|
285
|
+
};
|
|
286
|
+
if (u = N.x, v = N.y, p) {
|
|
287
|
+
var R;
|
|
288
|
+
return Object.assign({}, S, (R = {}, R[d] = A ? "0" : "", R[T] = O ? "0" : "", R.transform = (b.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + v + "px)" : "translate3d(" + u + "px, " + v + "px, 0)", R));
|
|
289
|
+
}
|
|
290
|
+
return Object.assign({}, S, (t = {}, t[d] = A ? v + "px" : "", t[T] = O ? u + "px" : "", t.transform = "", t));
|
|
291
|
+
}
|
|
292
|
+
function Io(e) {
|
|
293
|
+
var t = e.state, o = e.options, r = o.gpuAcceleration, a = r === void 0 ? !0 : r, i = o.adaptive, c = i === void 0 ? !0 : i, s = o.roundOffsets, p = s === void 0 ? !0 : s, f = {
|
|
294
|
+
placement: te(t.placement),
|
|
295
|
+
variation: Pe(t.placement),
|
|
296
|
+
popper: t.elements.popper,
|
|
297
|
+
popperRect: t.rects.popper,
|
|
298
|
+
gpuAcceleration: a,
|
|
299
|
+
isFixed: t.options.strategy === "fixed"
|
|
300
|
+
};
|
|
301
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ot(Object.assign({}, f, {
|
|
302
|
+
offsets: t.modifiersData.popperOffsets,
|
|
303
|
+
position: t.options.strategy,
|
|
304
|
+
adaptive: c,
|
|
305
|
+
roundOffsets: p
|
|
306
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ot(Object.assign({}, f, {
|
|
307
|
+
offsets: t.modifiersData.arrow,
|
|
308
|
+
position: "absolute",
|
|
309
|
+
adaptive: !1,
|
|
310
|
+
roundOffsets: p
|
|
311
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
312
|
+
"data-popper-placement": t.placement
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
const Wo = {
|
|
316
|
+
name: "computeStyles",
|
|
317
|
+
enabled: !0,
|
|
318
|
+
phase: "beforeWrite",
|
|
319
|
+
fn: Io,
|
|
320
|
+
data: {}
|
|
321
|
+
};
|
|
322
|
+
var Ve = {
|
|
323
|
+
passive: !0
|
|
324
|
+
};
|
|
325
|
+
function Fo(e) {
|
|
326
|
+
var t = e.state, o = e.instance, r = e.options, a = r.scroll, i = a === void 0 ? !0 : a, c = r.resize, s = c === void 0 ? !0 : c, p = U(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
327
|
+
return i && f.forEach(function(l) {
|
|
328
|
+
l.addEventListener("scroll", o.update, Ve);
|
|
329
|
+
}), s && p.addEventListener("resize", o.update, Ve), function() {
|
|
330
|
+
i && f.forEach(function(l) {
|
|
331
|
+
l.removeEventListener("scroll", o.update, Ve);
|
|
332
|
+
}), s && p.removeEventListener("resize", o.update, Ve);
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
const Ho = {
|
|
336
|
+
name: "eventListeners",
|
|
337
|
+
enabled: !0,
|
|
338
|
+
phase: "write",
|
|
339
|
+
fn: function() {
|
|
340
|
+
},
|
|
341
|
+
effect: Fo,
|
|
342
|
+
data: {}
|
|
343
|
+
};
|
|
344
|
+
var Uo = {
|
|
345
|
+
left: "right",
|
|
346
|
+
right: "left",
|
|
347
|
+
bottom: "top",
|
|
348
|
+
top: "bottom"
|
|
349
|
+
};
|
|
350
|
+
function Xe(e) {
|
|
351
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
352
|
+
return Uo[t];
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
var Vo = {
|
|
356
|
+
start: "end",
|
|
357
|
+
end: "start"
|
|
358
|
+
};
|
|
359
|
+
function xt(e) {
|
|
360
|
+
return e.replace(/start|end/g, function(t) {
|
|
361
|
+
return Vo[t];
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
function ct(e) {
|
|
365
|
+
var t = U(e), o = t.pageXOffset, r = t.pageYOffset;
|
|
366
|
+
return {
|
|
367
|
+
scrollLeft: o,
|
|
368
|
+
scrollTop: r
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
function ft(e) {
|
|
372
|
+
return Te(de(e)).left + ct(e).scrollLeft;
|
|
373
|
+
}
|
|
374
|
+
function qo(e, t) {
|
|
375
|
+
var o = U(e), r = de(e), a = o.visualViewport, i = r.clientWidth, c = r.clientHeight, s = 0, p = 0;
|
|
376
|
+
if (a) {
|
|
377
|
+
i = a.width, c = a.height;
|
|
378
|
+
var f = It();
|
|
379
|
+
(f || !f && t === "fixed") && (s = a.offsetLeft, p = a.offsetTop);
|
|
380
|
+
}
|
|
381
|
+
return {
|
|
382
|
+
width: i,
|
|
383
|
+
height: c,
|
|
384
|
+
x: s + ft(e),
|
|
385
|
+
y: p
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
function zo(e) {
|
|
389
|
+
var t, o = de(e), r = ct(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = me(o.scrollWidth, o.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), c = me(o.scrollHeight, o.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -r.scrollLeft + ft(e), p = -r.scrollTop;
|
|
390
|
+
return se(a || o).direction === "rtl" && (s += me(o.clientWidth, a ? a.clientWidth : 0) - i), {
|
|
391
|
+
width: i,
|
|
392
|
+
height: c,
|
|
393
|
+
x: s,
|
|
394
|
+
y: p
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
function ut(e) {
|
|
398
|
+
var t = se(e), o = t.overflow, r = t.overflowX, a = t.overflowY;
|
|
399
|
+
return /auto|scroll|overlay|hidden/.test(o + a + r);
|
|
400
|
+
}
|
|
401
|
+
function Vt(e) {
|
|
402
|
+
return ["html", "body", "#document"].indexOf(oe(e)) >= 0 ? e.ownerDocument.body : X(e) && ut(e) ? e : Vt(Je(e));
|
|
403
|
+
}
|
|
404
|
+
function De(e, t) {
|
|
405
|
+
var o;
|
|
406
|
+
t === void 0 && (t = []);
|
|
407
|
+
var r = Vt(e), a = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = U(r), c = a ? [i].concat(i.visualViewport || [], ut(r) ? r : []) : r, s = t.concat(c);
|
|
408
|
+
return a ? s : (
|
|
409
|
+
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
410
|
+
s.concat(De(Je(c)))
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
function nt(e) {
|
|
414
|
+
return Object.assign({}, e, {
|
|
415
|
+
left: e.x,
|
|
416
|
+
top: e.y,
|
|
417
|
+
right: e.x + e.width,
|
|
418
|
+
bottom: e.y + e.height
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
function Xo(e, t) {
|
|
422
|
+
var o = Te(e, !1, t === "fixed");
|
|
423
|
+
return o.top = o.top + e.clientTop, o.left = o.left + e.clientLeft, o.bottom = o.top + e.clientHeight, o.right = o.left + e.clientWidth, o.width = e.clientWidth, o.height = e.clientHeight, o.x = o.left, o.y = o.top, o;
|
|
424
|
+
}
|
|
425
|
+
function Tt(e, t, o) {
|
|
426
|
+
return t === Lt ? nt(qo(e, o)) : he(t) ? Xo(t, o) : nt(zo(de(e)));
|
|
427
|
+
}
|
|
428
|
+
function Yo(e) {
|
|
429
|
+
var t = De(Je(e)), o = ["absolute", "fixed"].indexOf(se(e).position) >= 0, r = o && X(e) ? Le(e) : e;
|
|
430
|
+
return he(r) ? t.filter(function(a) {
|
|
431
|
+
return he(a) && Wt(a, r) && oe(a) !== "body";
|
|
432
|
+
}) : [];
|
|
433
|
+
}
|
|
434
|
+
function Go(e, t, o, r) {
|
|
435
|
+
var a = t === "clippingParents" ? Yo(e) : [].concat(t), i = [].concat(a, [o]), c = i[0], s = i.reduce(function(p, f) {
|
|
436
|
+
var l = Tt(e, f, r);
|
|
437
|
+
return p.top = me(l.top, p.top), p.right = Ge(l.right, p.right), p.bottom = Ge(l.bottom, p.bottom), p.left = me(l.left, p.left), p;
|
|
438
|
+
}, Tt(e, c, r));
|
|
439
|
+
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
440
|
+
}
|
|
441
|
+
function qt(e) {
|
|
442
|
+
var t = e.reference, o = e.element, r = e.placement, a = r ? te(r) : null, i = r ? Pe(r) : null, c = t.x + t.width / 2 - o.width / 2, s = t.y + t.height / 2 - o.height / 2, p;
|
|
443
|
+
switch (a) {
|
|
444
|
+
case W:
|
|
445
|
+
p = {
|
|
446
|
+
x: c,
|
|
447
|
+
y: t.y - o.height
|
|
448
|
+
};
|
|
449
|
+
break;
|
|
450
|
+
case Y:
|
|
451
|
+
p = {
|
|
452
|
+
x: c,
|
|
453
|
+
y: t.y + t.height
|
|
454
|
+
};
|
|
455
|
+
break;
|
|
456
|
+
case G:
|
|
457
|
+
p = {
|
|
458
|
+
x: t.x + t.width,
|
|
459
|
+
y: s
|
|
460
|
+
};
|
|
461
|
+
break;
|
|
462
|
+
case F:
|
|
463
|
+
p = {
|
|
464
|
+
x: t.x - o.width,
|
|
465
|
+
y: s
|
|
466
|
+
};
|
|
467
|
+
break;
|
|
468
|
+
default:
|
|
469
|
+
p = {
|
|
470
|
+
x: t.x,
|
|
471
|
+
y: t.y
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
var f = a ? lt(a) : null;
|
|
475
|
+
if (f != null) {
|
|
476
|
+
var l = f === "y" ? "height" : "width";
|
|
477
|
+
switch (i) {
|
|
478
|
+
case Oe:
|
|
479
|
+
p[f] = p[f] - (t[l] / 2 - o[l] / 2);
|
|
480
|
+
break;
|
|
481
|
+
case ke:
|
|
482
|
+
p[f] = p[f] + (t[l] / 2 - o[l] / 2);
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
return p;
|
|
487
|
+
}
|
|
488
|
+
function $e(e, t) {
|
|
489
|
+
t === void 0 && (t = {});
|
|
490
|
+
var o = t, r = o.placement, a = r === void 0 ? e.placement : r, i = o.strategy, c = i === void 0 ? e.strategy : i, s = o.boundary, p = s === void 0 ? vo : s, f = o.rootBoundary, l = f === void 0 ? Lt : f, g = o.elementContext, x = g === void 0 ? Me : g, u = o.altBoundary, E = u === void 0 ? !1 : u, v = o.padding, h = v === void 0 ? 0 : v, O = Ht(typeof h != "number" ? h : Ut(h, Be)), A = x === Me ? mo : Me, T = e.rects.popper, d = e.elements[E ? A : x], b = Go(he(d) ? d : d.contextElement || de(e.elements.popper), p, l, c), y = Te(e.elements.reference), P = qt({
|
|
491
|
+
reference: y,
|
|
492
|
+
element: T,
|
|
493
|
+
placement: a
|
|
494
|
+
}), D = nt(Object.assign({}, T, P)), w = x === Me ? D : y, M = {
|
|
495
|
+
top: b.top - w.top + O.top,
|
|
496
|
+
bottom: w.bottom - b.bottom + O.bottom,
|
|
497
|
+
left: b.left - w.left + O.left,
|
|
498
|
+
right: w.right - b.right + O.right
|
|
499
|
+
}, S = e.modifiersData.offset;
|
|
500
|
+
if (x === Me && S) {
|
|
501
|
+
var N = S[a];
|
|
502
|
+
Object.keys(M).forEach(function(R) {
|
|
503
|
+
var V = [G, Y].indexOf(R) >= 0 ? 1 : -1, H = [W, Y].indexOf(R) >= 0 ? "y" : "x";
|
|
504
|
+
M[R] += N[H] * V;
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
return M;
|
|
508
|
+
}
|
|
509
|
+
function Ko(e, t) {
|
|
510
|
+
t === void 0 && (t = {});
|
|
511
|
+
var o = t, r = o.placement, a = o.boundary, i = o.rootBoundary, c = o.padding, s = o.flipVariations, p = o.allowedAutoPlacements, f = p === void 0 ? Nt : p, l = Pe(r), g = l ? s ? yt : yt.filter(function(E) {
|
|
512
|
+
return Pe(E) === l;
|
|
513
|
+
}) : Be, x = g.filter(function(E) {
|
|
514
|
+
return f.indexOf(E) >= 0;
|
|
515
|
+
});
|
|
516
|
+
x.length === 0 && (x = g);
|
|
517
|
+
var u = x.reduce(function(E, v) {
|
|
518
|
+
return E[v] = $e(e, {
|
|
519
|
+
placement: v,
|
|
520
|
+
boundary: a,
|
|
521
|
+
rootBoundary: i,
|
|
522
|
+
padding: c
|
|
523
|
+
})[te(v)], E;
|
|
524
|
+
}, {});
|
|
525
|
+
return Object.keys(u).sort(function(E, v) {
|
|
526
|
+
return u[E] - u[v];
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
function Qo(e) {
|
|
530
|
+
if (te(e) === it)
|
|
531
|
+
return [];
|
|
532
|
+
var t = Xe(e);
|
|
533
|
+
return [xt(e), t, xt(t)];
|
|
534
|
+
}
|
|
535
|
+
function Jo(e) {
|
|
536
|
+
var t = e.state, o = e.options, r = e.name;
|
|
537
|
+
if (!t.modifiersData[r]._skip) {
|
|
538
|
+
for (var a = o.mainAxis, i = a === void 0 ? !0 : a, c = o.altAxis, s = c === void 0 ? !0 : c, p = o.fallbackPlacements, f = o.padding, l = o.boundary, g = o.rootBoundary, x = o.altBoundary, u = o.flipVariations, E = u === void 0 ? !0 : u, v = o.allowedAutoPlacements, h = t.options.placement, O = te(h), A = O === h, T = p || (A || !E ? [Xe(h)] : Qo(h)), d = [h].concat(T).reduce(function(re, B) {
|
|
539
|
+
return re.concat(te(B) === it ? Ko(t, {
|
|
540
|
+
placement: B,
|
|
541
|
+
boundary: l,
|
|
542
|
+
rootBoundary: g,
|
|
543
|
+
padding: f,
|
|
544
|
+
flipVariations: E,
|
|
545
|
+
allowedAutoPlacements: v
|
|
546
|
+
}) : B);
|
|
547
|
+
}, []), b = t.rects.reference, y = t.rects.popper, P = /* @__PURE__ */ new Map(), D = !0, w = d[0], M = 0; M < d.length; M++) {
|
|
548
|
+
var S = d[M], N = te(S), R = Pe(S) === Oe, V = [W, Y].indexOf(N) >= 0, H = V ? "width" : "height", k = $e(t, {
|
|
549
|
+
placement: S,
|
|
550
|
+
boundary: l,
|
|
551
|
+
rootBoundary: g,
|
|
552
|
+
altBoundary: x,
|
|
553
|
+
padding: f
|
|
554
|
+
}), $ = V ? R ? G : F : R ? Y : W;
|
|
555
|
+
b[H] > y[H] && ($ = Xe($));
|
|
556
|
+
var K = Xe($), C = [];
|
|
557
|
+
if (i && C.push(k[N] <= 0), s && C.push(k[$] <= 0, k[K] <= 0), C.every(function(re) {
|
|
558
|
+
return re;
|
|
559
|
+
})) {
|
|
560
|
+
w = S, D = !1;
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
P.set(S, C);
|
|
564
|
+
}
|
|
565
|
+
if (D)
|
|
566
|
+
for (var J = E ? 3 : 1, Z = function(B) {
|
|
567
|
+
var ne = d.find(function(ee) {
|
|
568
|
+
var q = P.get(ee);
|
|
569
|
+
if (q)
|
|
570
|
+
return q.slice(0, B).every(function(ge) {
|
|
571
|
+
return ge;
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
if (ne)
|
|
575
|
+
return w = ne, "break";
|
|
576
|
+
}, _ = J; _ > 0; _--) {
|
|
577
|
+
var pe = Z(_);
|
|
578
|
+
if (pe === "break") break;
|
|
579
|
+
}
|
|
580
|
+
t.placement !== w && (t.modifiersData[r]._skip = !0, t.placement = w, t.reset = !0);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
const Zo = {
|
|
584
|
+
name: "flip",
|
|
585
|
+
enabled: !0,
|
|
586
|
+
phase: "main",
|
|
587
|
+
fn: Jo,
|
|
588
|
+
requiresIfExists: ["offset"],
|
|
589
|
+
data: {
|
|
590
|
+
_skip: !1
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
function Pt(e, t, o) {
|
|
594
|
+
return o === void 0 && (o = {
|
|
595
|
+
x: 0,
|
|
596
|
+
y: 0
|
|
597
|
+
}), {
|
|
598
|
+
top: e.top - t.height - o.y,
|
|
599
|
+
right: e.right - t.width + o.x,
|
|
600
|
+
bottom: e.bottom - t.height + o.y,
|
|
601
|
+
left: e.left - t.width - o.x
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
function Et(e) {
|
|
605
|
+
return [W, G, Y, F].some(function(t) {
|
|
606
|
+
return e[t] >= 0;
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
function _o(e) {
|
|
610
|
+
var t = e.state, o = e.name, r = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, c = $e(t, {
|
|
611
|
+
elementContext: "reference"
|
|
612
|
+
}), s = $e(t, {
|
|
613
|
+
altBoundary: !0
|
|
614
|
+
}), p = Pt(c, r), f = Pt(s, a, i), l = Et(p), g = Et(f);
|
|
615
|
+
t.modifiersData[o] = {
|
|
616
|
+
referenceClippingOffsets: p,
|
|
617
|
+
popperEscapeOffsets: f,
|
|
618
|
+
isReferenceHidden: l,
|
|
619
|
+
hasPopperEscaped: g
|
|
620
|
+
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
621
|
+
"data-popper-reference-hidden": l,
|
|
622
|
+
"data-popper-escaped": g
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
const er = {
|
|
626
|
+
name: "hide",
|
|
627
|
+
enabled: !0,
|
|
628
|
+
phase: "main",
|
|
629
|
+
requiresIfExists: ["preventOverflow"],
|
|
630
|
+
fn: _o
|
|
631
|
+
};
|
|
632
|
+
function tr(e, t, o) {
|
|
633
|
+
var r = te(e), a = [F, W].indexOf(r) >= 0 ? -1 : 1, i = typeof o == "function" ? o(Object.assign({}, t, {
|
|
634
|
+
placement: e
|
|
635
|
+
})) : o, c = i[0], s = i[1];
|
|
636
|
+
return c = c || 0, s = (s || 0) * a, [F, G].indexOf(r) >= 0 ? {
|
|
637
|
+
x: s,
|
|
638
|
+
y: c
|
|
639
|
+
} : {
|
|
640
|
+
x: c,
|
|
641
|
+
y: s
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
function or(e) {
|
|
645
|
+
var t = e.state, o = e.options, r = e.name, a = o.offset, i = a === void 0 ? [0, 0] : a, c = Nt.reduce(function(l, g) {
|
|
646
|
+
return l[g] = tr(g, t.rects, i), l;
|
|
647
|
+
}, {}), s = c[t.placement], p = s.x, f = s.y;
|
|
648
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += p, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] = c;
|
|
649
|
+
}
|
|
650
|
+
const rr = {
|
|
651
|
+
name: "offset",
|
|
652
|
+
enabled: !0,
|
|
653
|
+
phase: "main",
|
|
654
|
+
requires: ["popperOffsets"],
|
|
655
|
+
fn: or
|
|
656
|
+
};
|
|
657
|
+
function nr(e) {
|
|
658
|
+
var t = e.state, o = e.name;
|
|
659
|
+
t.modifiersData[o] = qt({
|
|
660
|
+
reference: t.rects.reference,
|
|
661
|
+
element: t.rects.popper,
|
|
662
|
+
placement: t.placement
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
const ar = {
|
|
666
|
+
name: "popperOffsets",
|
|
667
|
+
enabled: !0,
|
|
668
|
+
phase: "read",
|
|
669
|
+
fn: nr,
|
|
670
|
+
data: {}
|
|
671
|
+
};
|
|
672
|
+
function ir(e) {
|
|
673
|
+
return e === "x" ? "y" : "x";
|
|
674
|
+
}
|
|
675
|
+
function sr(e) {
|
|
676
|
+
var t = e.state, o = e.options, r = e.name, a = o.mainAxis, i = a === void 0 ? !0 : a, c = o.altAxis, s = c === void 0 ? !1 : c, p = o.boundary, f = o.rootBoundary, l = o.altBoundary, g = o.padding, x = o.tether, u = x === void 0 ? !0 : x, E = o.tetherOffset, v = E === void 0 ? 0 : E, h = $e(t, {
|
|
677
|
+
boundary: p,
|
|
678
|
+
rootBoundary: f,
|
|
679
|
+
padding: g,
|
|
680
|
+
altBoundary: l
|
|
681
|
+
}), O = te(t.placement), A = Pe(t.placement), T = !A, d = lt(O), b = ir(d), y = t.modifiersData.popperOffsets, P = t.rects.reference, D = t.rects.popper, w = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
682
|
+
placement: t.placement
|
|
683
|
+
})) : v, M = typeof w == "number" ? {
|
|
684
|
+
mainAxis: w,
|
|
685
|
+
altAxis: w
|
|
686
|
+
} : Object.assign({
|
|
687
|
+
mainAxis: 0,
|
|
688
|
+
altAxis: 0
|
|
689
|
+
}, w), S = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, N = {
|
|
690
|
+
x: 0,
|
|
691
|
+
y: 0
|
|
692
|
+
};
|
|
693
|
+
if (y) {
|
|
694
|
+
if (i) {
|
|
695
|
+
var R, V = d === "y" ? W : F, H = d === "y" ? Y : G, k = d === "y" ? "height" : "width", $ = y[d], K = $ + h[V], C = $ - h[H], J = u ? -D[k] / 2 : 0, Z = A === Oe ? P[k] : D[k], _ = A === Oe ? -D[k] : -P[k], pe = t.elements.arrow, re = u && pe ? pt(pe) : {
|
|
696
|
+
width: 0,
|
|
697
|
+
height: 0
|
|
698
|
+
}, B = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ft(), ne = B[V], ee = B[H], q = je(0, P[k], re[k]), ge = T ? P[k] / 2 - J - q - ne - M.mainAxis : Z - q - ne - M.mainAxis, be = T ? -P[k] / 2 + J + q + ee + M.mainAxis : _ + q + ee + M.mainAxis, le = t.elements.arrow && Le(t.elements.arrow), Ee = le ? d === "y" ? le.clientTop || 0 : le.clientLeft || 0 : 0, Re = (R = S?.[d]) != null ? R : 0, Se = $ + ge - Re - Ee, Ne = $ + be - Re, Ae = je(u ? Ge(K, Se) : K, $, u ? me(C, Ne) : C);
|
|
699
|
+
y[d] = Ae, N[d] = Ae - $;
|
|
700
|
+
}
|
|
701
|
+
if (s) {
|
|
702
|
+
var Ie, _e = d === "x" ? W : F, et = d === "x" ? Y : G, Q = y[b], ye = b === "y" ? "height" : "width", ce = Q + h[_e], we = Q - h[et], I = [W, F].indexOf(O) !== -1, fe = (Ie = S?.[b]) != null ? Ie : 0, ae = I ? ce : Q - P[ye] - D[ye] - fe + M.altAxis, ue = I ? Q + P[ye] + D[ye] - fe - M.altAxis : we, We = u && I ? jo(ae, Q, ue) : je(u ? ae : ce, Q, u ? ue : we);
|
|
703
|
+
y[b] = We, N[b] = We - Q;
|
|
704
|
+
}
|
|
705
|
+
t.modifiersData[r] = N;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
const pr = {
|
|
709
|
+
name: "preventOverflow",
|
|
710
|
+
enabled: !0,
|
|
711
|
+
phase: "main",
|
|
712
|
+
fn: sr,
|
|
713
|
+
requiresIfExists: ["offset"]
|
|
714
|
+
};
|
|
715
|
+
function lr(e) {
|
|
716
|
+
return {
|
|
717
|
+
scrollLeft: e.scrollLeft,
|
|
718
|
+
scrollTop: e.scrollTop
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
function cr(e) {
|
|
722
|
+
return e === U(e) || !X(e) ? ct(e) : lr(e);
|
|
723
|
+
}
|
|
724
|
+
function fr(e) {
|
|
725
|
+
var t = e.getBoundingClientRect(), o = xe(t.width) / e.offsetWidth || 1, r = xe(t.height) / e.offsetHeight || 1;
|
|
726
|
+
return o !== 1 || r !== 1;
|
|
727
|
+
}
|
|
728
|
+
function ur(e, t, o) {
|
|
729
|
+
o === void 0 && (o = !1);
|
|
730
|
+
var r = X(t), a = X(t) && fr(t), i = de(t), c = Te(e, a, o), s = {
|
|
731
|
+
scrollLeft: 0,
|
|
732
|
+
scrollTop: 0
|
|
733
|
+
}, p = {
|
|
734
|
+
x: 0,
|
|
735
|
+
y: 0
|
|
736
|
+
};
|
|
737
|
+
return (r || !r && !o) && ((oe(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
738
|
+
ut(i)) && (s = cr(t)), X(t) ? (p = Te(t, !0), p.x += t.clientLeft, p.y += t.clientTop) : i && (p.x = ft(i))), {
|
|
739
|
+
x: c.left + s.scrollLeft - p.x,
|
|
740
|
+
y: c.top + s.scrollTop - p.y,
|
|
741
|
+
width: c.width,
|
|
742
|
+
height: c.height
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
function dr(e) {
|
|
746
|
+
var t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set(), r = [];
|
|
747
|
+
e.forEach(function(i) {
|
|
748
|
+
t.set(i.name, i);
|
|
749
|
+
});
|
|
750
|
+
function a(i) {
|
|
751
|
+
o.add(i.name);
|
|
752
|
+
var c = [].concat(i.requires || [], i.requiresIfExists || []);
|
|
753
|
+
c.forEach(function(s) {
|
|
754
|
+
if (!o.has(s)) {
|
|
755
|
+
var p = t.get(s);
|
|
756
|
+
p && a(p);
|
|
757
|
+
}
|
|
758
|
+
}), r.push(i);
|
|
759
|
+
}
|
|
760
|
+
return e.forEach(function(i) {
|
|
761
|
+
o.has(i.name) || a(i);
|
|
762
|
+
}), r;
|
|
763
|
+
}
|
|
764
|
+
function vr(e) {
|
|
765
|
+
var t = dr(e);
|
|
766
|
+
return Eo.reduce(function(o, r) {
|
|
767
|
+
return o.concat(t.filter(function(a) {
|
|
768
|
+
return a.phase === r;
|
|
769
|
+
}));
|
|
770
|
+
}, []);
|
|
771
|
+
}
|
|
772
|
+
function mr(e) {
|
|
773
|
+
var t;
|
|
774
|
+
return function() {
|
|
775
|
+
return t || (t = new Promise(function(o) {
|
|
776
|
+
Promise.resolve().then(function() {
|
|
777
|
+
t = void 0, o(e());
|
|
778
|
+
});
|
|
779
|
+
})), t;
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
function hr(e) {
|
|
783
|
+
var t = e.reduce(function(o, r) {
|
|
784
|
+
var a = o[r.name];
|
|
785
|
+
return o[r.name] = a ? Object.assign({}, a, r, {
|
|
786
|
+
options: Object.assign({}, a.options, r.options),
|
|
787
|
+
data: Object.assign({}, a.data, r.data)
|
|
788
|
+
}) : r, o;
|
|
789
|
+
}, {});
|
|
790
|
+
return Object.keys(t).map(function(o) {
|
|
791
|
+
return t[o];
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
var Rt = {
|
|
795
|
+
placement: "bottom",
|
|
796
|
+
modifiers: [],
|
|
797
|
+
strategy: "absolute"
|
|
798
|
+
};
|
|
799
|
+
function St() {
|
|
800
|
+
for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
|
|
801
|
+
t[o] = arguments[o];
|
|
802
|
+
return !t.some(function(r) {
|
|
803
|
+
return !(r && typeof r.getBoundingClientRect == "function");
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
function gr(e) {
|
|
807
|
+
e === void 0 && (e = {});
|
|
808
|
+
var t = e, o = t.defaultModifiers, r = o === void 0 ? [] : o, a = t.defaultOptions, i = a === void 0 ? Rt : a;
|
|
809
|
+
return function(s, p, f) {
|
|
810
|
+
f === void 0 && (f = i);
|
|
811
|
+
var l = {
|
|
812
|
+
placement: "bottom",
|
|
813
|
+
orderedModifiers: [],
|
|
814
|
+
options: Object.assign({}, Rt, i),
|
|
815
|
+
modifiersData: {},
|
|
816
|
+
elements: {
|
|
817
|
+
reference: s,
|
|
818
|
+
popper: p
|
|
819
|
+
},
|
|
820
|
+
attributes: {},
|
|
821
|
+
styles: {}
|
|
822
|
+
}, g = [], x = !1, u = {
|
|
823
|
+
state: l,
|
|
824
|
+
setOptions: function(O) {
|
|
825
|
+
var A = typeof O == "function" ? O(l.options) : O;
|
|
826
|
+
v(), l.options = Object.assign({}, i, l.options, A), l.scrollParents = {
|
|
827
|
+
reference: he(s) ? De(s) : s.contextElement ? De(s.contextElement) : [],
|
|
828
|
+
popper: De(p)
|
|
829
|
+
};
|
|
830
|
+
var T = vr(hr([].concat(r, l.options.modifiers)));
|
|
831
|
+
return l.orderedModifiers = T.filter(function(d) {
|
|
832
|
+
return d.enabled;
|
|
833
|
+
}), E(), u.update();
|
|
834
|
+
},
|
|
835
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
836
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
837
|
+
// logic.
|
|
838
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
839
|
+
// prefer the async Popper#update method
|
|
840
|
+
forceUpdate: function() {
|
|
841
|
+
if (!x) {
|
|
842
|
+
var O = l.elements, A = O.reference, T = O.popper;
|
|
843
|
+
if (St(A, T)) {
|
|
844
|
+
l.rects = {
|
|
845
|
+
reference: ur(A, Le(T), l.options.strategy === "fixed"),
|
|
846
|
+
popper: pt(T)
|
|
847
|
+
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(M) {
|
|
848
|
+
return l.modifiersData[M.name] = Object.assign({}, M.data);
|
|
849
|
+
});
|
|
850
|
+
for (var d = 0; d < l.orderedModifiers.length; d++) {
|
|
851
|
+
if (l.reset === !0) {
|
|
852
|
+
l.reset = !1, d = -1;
|
|
853
|
+
continue;
|
|
854
|
+
}
|
|
855
|
+
var b = l.orderedModifiers[d], y = b.fn, P = b.options, D = P === void 0 ? {} : P, w = b.name;
|
|
856
|
+
typeof y == "function" && (l = y({
|
|
857
|
+
state: l,
|
|
858
|
+
options: D,
|
|
859
|
+
name: w,
|
|
860
|
+
instance: u
|
|
861
|
+
}) || l);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
867
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
868
|
+
update: mr(function() {
|
|
869
|
+
return new Promise(function(h) {
|
|
870
|
+
u.forceUpdate(), h(l);
|
|
871
|
+
});
|
|
872
|
+
}),
|
|
873
|
+
destroy: function() {
|
|
874
|
+
v(), x = !0;
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
if (!St(s, p))
|
|
878
|
+
return u;
|
|
879
|
+
u.setOptions(f).then(function(h) {
|
|
880
|
+
!x && f.onFirstUpdate && f.onFirstUpdate(h);
|
|
881
|
+
});
|
|
882
|
+
function E() {
|
|
883
|
+
l.orderedModifiers.forEach(function(h) {
|
|
884
|
+
var O = h.name, A = h.options, T = A === void 0 ? {} : A, d = h.effect;
|
|
885
|
+
if (typeof d == "function") {
|
|
886
|
+
var b = d({
|
|
887
|
+
state: l,
|
|
888
|
+
name: O,
|
|
889
|
+
instance: u,
|
|
890
|
+
options: T
|
|
891
|
+
}), y = function() {
|
|
892
|
+
};
|
|
893
|
+
g.push(b || y);
|
|
894
|
+
}
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
function v() {
|
|
898
|
+
g.forEach(function(h) {
|
|
899
|
+
return h();
|
|
900
|
+
}), g = [];
|
|
901
|
+
}
|
|
902
|
+
return u;
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
var br = [Ho, ar, Wo, Ao, rr, Zo, pr, Bo, er], yr = /* @__PURE__ */ gr({
|
|
906
|
+
defaultModifiers: br
|
|
907
|
+
});
|
|
908
|
+
function wr(e) {
|
|
909
|
+
return Mt("MuiPopper", e);
|
|
910
|
+
}
|
|
911
|
+
Ct("MuiPopper", ["root"]);
|
|
912
|
+
function Or(e, t) {
|
|
913
|
+
if (t === "ltr")
|
|
914
|
+
return e;
|
|
915
|
+
switch (e) {
|
|
916
|
+
case "bottom-end":
|
|
917
|
+
return "bottom-start";
|
|
918
|
+
case "bottom-start":
|
|
919
|
+
return "bottom-end";
|
|
920
|
+
case "top-end":
|
|
921
|
+
return "top-start";
|
|
922
|
+
case "top-start":
|
|
923
|
+
return "top-end";
|
|
924
|
+
default:
|
|
925
|
+
return e;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
function Ke(e) {
|
|
929
|
+
return typeof e == "function" ? e() : e;
|
|
930
|
+
}
|
|
931
|
+
function Ze(e) {
|
|
932
|
+
return e.nodeType !== void 0;
|
|
933
|
+
}
|
|
934
|
+
function xr(e) {
|
|
935
|
+
return !Ze(e);
|
|
936
|
+
}
|
|
937
|
+
const Tr = (e) => {
|
|
938
|
+
const {
|
|
939
|
+
classes: t
|
|
940
|
+
} = e;
|
|
941
|
+
return jt({
|
|
942
|
+
root: ["root"]
|
|
943
|
+
}, wr, t);
|
|
944
|
+
}, Pr = {}, Er = /* @__PURE__ */ j.forwardRef(function(t, o) {
|
|
945
|
+
const {
|
|
946
|
+
anchorEl: r,
|
|
947
|
+
children: a,
|
|
948
|
+
direction: i,
|
|
949
|
+
disablePortal: c,
|
|
950
|
+
modifiers: s,
|
|
951
|
+
open: p,
|
|
952
|
+
placement: f,
|
|
953
|
+
popperOptions: l,
|
|
954
|
+
popperRef: g,
|
|
955
|
+
slotProps: x = {},
|
|
956
|
+
slots: u = {},
|
|
957
|
+
TransitionProps: E,
|
|
958
|
+
// @ts-ignore internal logic
|
|
959
|
+
ownerState: v,
|
|
960
|
+
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
961
|
+
...h
|
|
962
|
+
} = t, O = j.useRef(null), A = ot(O, o), T = j.useRef(null), d = ot(T, g), b = j.useRef(d);
|
|
963
|
+
ht(() => {
|
|
964
|
+
b.current = d;
|
|
965
|
+
}, [d]), j.useImperativeHandle(g, () => T.current, []);
|
|
966
|
+
const y = Or(f, i), [P, D] = j.useState(y), [w, M] = j.useState(Ke(r));
|
|
967
|
+
j.useEffect(() => {
|
|
968
|
+
T.current && T.current.forceUpdate();
|
|
969
|
+
}), j.useEffect(() => {
|
|
970
|
+
r && M(Ke(r));
|
|
971
|
+
}, [r]), ht(() => {
|
|
972
|
+
if (!w || !p)
|
|
973
|
+
return;
|
|
974
|
+
const H = (C) => {
|
|
975
|
+
D(C.placement);
|
|
976
|
+
};
|
|
977
|
+
if (process.env.NODE_ENV !== "production" && w && Ze(w) && w.nodeType === 1) {
|
|
978
|
+
const C = w.getBoundingClientRect();
|
|
979
|
+
$t() && C.top === 0 && C.left === 0 && C.right === 0 && C.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
980
|
+
`));
|
|
981
|
+
}
|
|
982
|
+
let k = [{
|
|
983
|
+
name: "preventOverflow",
|
|
984
|
+
options: {
|
|
985
|
+
altBoundary: c
|
|
986
|
+
}
|
|
987
|
+
}, {
|
|
988
|
+
name: "flip",
|
|
989
|
+
options: {
|
|
990
|
+
altBoundary: c
|
|
991
|
+
}
|
|
992
|
+
}, {
|
|
993
|
+
name: "onUpdate",
|
|
994
|
+
enabled: !0,
|
|
995
|
+
phase: "afterWrite",
|
|
996
|
+
fn: ({
|
|
997
|
+
state: C
|
|
998
|
+
}) => {
|
|
999
|
+
H(C);
|
|
1000
|
+
}
|
|
1001
|
+
}];
|
|
1002
|
+
s != null && (k = k.concat(s)), l && l.modifiers != null && (k = k.concat(l.modifiers));
|
|
1003
|
+
const $ = yr(w, O.current, {
|
|
1004
|
+
placement: y,
|
|
1005
|
+
...l,
|
|
1006
|
+
modifiers: k
|
|
1007
|
+
});
|
|
1008
|
+
b.current($);
|
|
1009
|
+
const K = O.current;
|
|
1010
|
+
return () => {
|
|
1011
|
+
if (K) {
|
|
1012
|
+
const {
|
|
1013
|
+
style: C
|
|
1014
|
+
} = K, J = C.position, Z = C.top, _ = C.left, pe = C.transform;
|
|
1015
|
+
$.destroy(), C.position = J, C.top = Z, C.left = _, C.transform = pe;
|
|
1016
|
+
} else
|
|
1017
|
+
$.destroy();
|
|
1018
|
+
b.current(null);
|
|
1019
|
+
};
|
|
1020
|
+
}, [w, c, s, p, l, y]);
|
|
1021
|
+
const S = {
|
|
1022
|
+
placement: P
|
|
1023
|
+
};
|
|
1024
|
+
E !== null && (S.TransitionProps = E);
|
|
1025
|
+
const N = Tr(t), R = u.root ?? "div", V = io({
|
|
1026
|
+
elementType: R,
|
|
1027
|
+
externalSlotProps: x.root,
|
|
1028
|
+
externalForwardedProps: h,
|
|
1029
|
+
additionalProps: {
|
|
1030
|
+
role: "tooltip",
|
|
1031
|
+
ref: A
|
|
1032
|
+
},
|
|
1033
|
+
ownerState: t,
|
|
1034
|
+
className: N.root
|
|
1035
|
+
});
|
|
1036
|
+
return /* @__PURE__ */ ie(R, {
|
|
1037
|
+
...V,
|
|
1038
|
+
children: typeof a == "function" ? a(S) : a
|
|
1039
|
+
});
|
|
1040
|
+
}), zt = /* @__PURE__ */ j.forwardRef(function(t, o) {
|
|
1041
|
+
const {
|
|
1042
|
+
anchorEl: r,
|
|
1043
|
+
children: a,
|
|
1044
|
+
container: i,
|
|
1045
|
+
direction: c = "ltr",
|
|
1046
|
+
disablePortal: s = !1,
|
|
1047
|
+
keepMounted: p = !1,
|
|
1048
|
+
modifiers: f,
|
|
1049
|
+
open: l,
|
|
1050
|
+
placement: g = "bottom",
|
|
1051
|
+
popperOptions: x = Pr,
|
|
1052
|
+
popperRef: u,
|
|
1053
|
+
style: E,
|
|
1054
|
+
transition: v = !1,
|
|
1055
|
+
slotProps: h = {},
|
|
1056
|
+
slots: O = {},
|
|
1057
|
+
...A
|
|
1058
|
+
} = t, [T, d] = j.useState(!0), b = () => {
|
|
1059
|
+
d(!1);
|
|
1060
|
+
}, y = () => {
|
|
1061
|
+
d(!0);
|
|
1062
|
+
};
|
|
1063
|
+
if (!p && !l && (!v || T))
|
|
1064
|
+
return null;
|
|
1065
|
+
let P;
|
|
1066
|
+
if (i)
|
|
1067
|
+
P = i;
|
|
1068
|
+
else if (r) {
|
|
1069
|
+
const M = Ke(r);
|
|
1070
|
+
P = M && Ze(M) ? mt(M).body : mt(null).body;
|
|
1071
|
+
}
|
|
1072
|
+
const D = !l && p && (!v || T) ? "none" : void 0, w = v ? {
|
|
1073
|
+
in: l,
|
|
1074
|
+
onEnter: b,
|
|
1075
|
+
onExited: y
|
|
1076
|
+
} : void 0;
|
|
1077
|
+
return /* @__PURE__ */ ie(ao, {
|
|
1078
|
+
disablePortal: s,
|
|
1079
|
+
container: P,
|
|
1080
|
+
children: /* @__PURE__ */ ie(Er, {
|
|
1081
|
+
anchorEl: r,
|
|
1082
|
+
direction: c,
|
|
1083
|
+
disablePortal: s,
|
|
1084
|
+
modifiers: f,
|
|
1085
|
+
ref: o,
|
|
1086
|
+
open: v ? !T : l,
|
|
1087
|
+
placement: g,
|
|
1088
|
+
popperOptions: x,
|
|
1089
|
+
popperRef: u,
|
|
1090
|
+
slotProps: h,
|
|
1091
|
+
slots: O,
|
|
1092
|
+
...A,
|
|
1093
|
+
style: {
|
|
1094
|
+
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
1095
|
+
position: "fixed",
|
|
1096
|
+
// Fix Popper.js display issue
|
|
1097
|
+
top: 0,
|
|
1098
|
+
left: 0,
|
|
1099
|
+
display: D,
|
|
1100
|
+
...E
|
|
1101
|
+
},
|
|
1102
|
+
TransitionProps: w,
|
|
1103
|
+
children: a
|
|
1104
|
+
})
|
|
1105
|
+
});
|
|
1106
|
+
});
|
|
1107
|
+
process.env.NODE_ENV !== "production" && (zt.propTypes = {
|
|
1108
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1109
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1110
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1111
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1112
|
+
/**
|
|
1113
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
1114
|
+
* or a function that returns either.
|
|
1115
|
+
* It's used to set the position of the popper.
|
|
1116
|
+
* The return value will passed as the reference object of the Popper instance.
|
|
1117
|
+
*/
|
|
1118
|
+
anchorEl: to(n.oneOfType([Ye, n.object, n.func]), (e) => {
|
|
1119
|
+
if (e.open) {
|
|
1120
|
+
const t = Ke(e.anchorEl);
|
|
1121
|
+
if (t && Ze(t) && t.nodeType === 1) {
|
|
1122
|
+
const o = t.getBoundingClientRect();
|
|
1123
|
+
if (process.env.NODE_ENV !== "production" && $t() && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
|
|
1124
|
+
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
1125
|
+
`));
|
|
1126
|
+
} else if (!t || typeof t.getBoundingClientRect != "function" || xr(t) && t.contextElement != null && t.contextElement.nodeType !== 1)
|
|
1127
|
+
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
1128
|
+
`));
|
|
1129
|
+
}
|
|
1130
|
+
return null;
|
|
1131
|
+
}),
|
|
1132
|
+
/**
|
|
1133
|
+
* Popper render function or node.
|
|
1134
|
+
*/
|
|
1135
|
+
children: n.oneOfType([n.node, n.func]),
|
|
1136
|
+
/**
|
|
1137
|
+
* An HTML element or function that returns one.
|
|
1138
|
+
* The `container` will have the portal children appended to it.
|
|
1139
|
+
*
|
|
1140
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
1141
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
1142
|
+
*
|
|
1143
|
+
* By default, it uses the body of the top-level document object,
|
|
1144
|
+
* so it's simply `document.body` most of the time.
|
|
1145
|
+
*/
|
|
1146
|
+
container: n.oneOfType([Ye, n.func]),
|
|
1147
|
+
/**
|
|
1148
|
+
* Direction of the text.
|
|
1149
|
+
* @default 'ltr'
|
|
1150
|
+
*/
|
|
1151
|
+
direction: n.oneOf(["ltr", "rtl"]),
|
|
1152
|
+
/**
|
|
1153
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1154
|
+
* @default false
|
|
1155
|
+
*/
|
|
1156
|
+
disablePortal: n.bool,
|
|
1157
|
+
/**
|
|
1158
|
+
* Always keep the children in the DOM.
|
|
1159
|
+
* This prop can be useful in SEO situation or
|
|
1160
|
+
* when you want to maximize the responsiveness of the Popper.
|
|
1161
|
+
* @default false
|
|
1162
|
+
*/
|
|
1163
|
+
keepMounted: n.bool,
|
|
1164
|
+
/**
|
|
1165
|
+
* Popper.js is based on a "plugin-like" architecture,
|
|
1166
|
+
* most of its features are fully encapsulated "modifiers".
|
|
1167
|
+
*
|
|
1168
|
+
* A modifier is a function that is called each time Popper.js needs to
|
|
1169
|
+
* compute the position of the popper.
|
|
1170
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1171
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1172
|
+
*/
|
|
1173
|
+
modifiers: n.arrayOf(n.shape({
|
|
1174
|
+
data: n.object,
|
|
1175
|
+
effect: n.func,
|
|
1176
|
+
enabled: n.bool,
|
|
1177
|
+
fn: n.func,
|
|
1178
|
+
name: n.any,
|
|
1179
|
+
options: n.object,
|
|
1180
|
+
phase: n.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1181
|
+
requires: n.arrayOf(n.string),
|
|
1182
|
+
requiresIfExists: n.arrayOf(n.string)
|
|
1183
|
+
})),
|
|
1184
|
+
/**
|
|
1185
|
+
* If `true`, the component is shown.
|
|
1186
|
+
*/
|
|
1187
|
+
open: n.bool.isRequired,
|
|
1188
|
+
/**
|
|
1189
|
+
* Popper placement.
|
|
1190
|
+
* @default 'bottom'
|
|
1191
|
+
*/
|
|
1192
|
+
placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1193
|
+
/**
|
|
1194
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1195
|
+
* @default {}
|
|
1196
|
+
*/
|
|
1197
|
+
popperOptions: n.shape({
|
|
1198
|
+
modifiers: n.array,
|
|
1199
|
+
onFirstUpdate: n.func,
|
|
1200
|
+
placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1201
|
+
strategy: n.oneOf(["absolute", "fixed"])
|
|
1202
|
+
}),
|
|
1203
|
+
/**
|
|
1204
|
+
* A ref that points to the used popper instance.
|
|
1205
|
+
*/
|
|
1206
|
+
popperRef: Bt,
|
|
1207
|
+
/**
|
|
1208
|
+
* The props used for each slot inside the Popper.
|
|
1209
|
+
* @default {}
|
|
1210
|
+
*/
|
|
1211
|
+
slotProps: n.shape({
|
|
1212
|
+
root: n.oneOfType([n.func, n.object])
|
|
1213
|
+
}),
|
|
1214
|
+
/**
|
|
1215
|
+
* The components used for each slot inside the Popper.
|
|
1216
|
+
* Either a string to use a HTML element or a component.
|
|
1217
|
+
* @default {}
|
|
1218
|
+
*/
|
|
1219
|
+
slots: n.shape({
|
|
1220
|
+
root: n.elementType
|
|
1221
|
+
}),
|
|
1222
|
+
/**
|
|
1223
|
+
* Help supporting a react-transition-group/Transition component.
|
|
1224
|
+
* @default false
|
|
1225
|
+
*/
|
|
1226
|
+
transition: n.bool
|
|
1227
|
+
});
|
|
1228
|
+
const Rr = Qe(zt, {
|
|
1229
|
+
name: "MuiPopper",
|
|
1230
|
+
slot: "Root"
|
|
1231
|
+
})({}), dt = /* @__PURE__ */ j.forwardRef(function(t, o) {
|
|
1232
|
+
const r = oo(), a = Dt({
|
|
1233
|
+
props: t,
|
|
1234
|
+
name: "MuiPopper"
|
|
1235
|
+
}), {
|
|
1236
|
+
anchorEl: i,
|
|
1237
|
+
component: c,
|
|
1238
|
+
container: s,
|
|
1239
|
+
disablePortal: p,
|
|
1240
|
+
keepMounted: f,
|
|
1241
|
+
modifiers: l,
|
|
1242
|
+
open: g,
|
|
1243
|
+
placement: x,
|
|
1244
|
+
popperOptions: u,
|
|
1245
|
+
popperRef: E,
|
|
1246
|
+
transition: v,
|
|
1247
|
+
slots: h,
|
|
1248
|
+
slotProps: O,
|
|
1249
|
+
...A
|
|
1250
|
+
} = a, T = {
|
|
1251
|
+
anchorEl: i,
|
|
1252
|
+
container: s,
|
|
1253
|
+
disablePortal: p,
|
|
1254
|
+
keepMounted: f,
|
|
1255
|
+
modifiers: l,
|
|
1256
|
+
open: g,
|
|
1257
|
+
placement: x,
|
|
1258
|
+
popperOptions: u,
|
|
1259
|
+
popperRef: E,
|
|
1260
|
+
transition: v,
|
|
1261
|
+
...A
|
|
1262
|
+
};
|
|
1263
|
+
return /* @__PURE__ */ ie(Rr, {
|
|
1264
|
+
as: c,
|
|
1265
|
+
direction: r ? "rtl" : "ltr",
|
|
1266
|
+
slots: h,
|
|
1267
|
+
slotProps: O,
|
|
1268
|
+
...T,
|
|
1269
|
+
ref: o
|
|
1270
|
+
});
|
|
1271
|
+
});
|
|
1272
|
+
process.env.NODE_ENV !== "production" && (dt.propTypes = {
|
|
1273
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1274
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1275
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
1276
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1277
|
+
/**
|
|
1278
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
1279
|
+
* or a function that returns either.
|
|
1280
|
+
* It's used to set the position of the popper.
|
|
1281
|
+
* The return value will passed as the reference object of the Popper instance.
|
|
1282
|
+
*/
|
|
1283
|
+
anchorEl: n.oneOfType([Ye, n.object, n.func]),
|
|
1284
|
+
/**
|
|
1285
|
+
* Popper render function or node.
|
|
1286
|
+
*/
|
|
1287
|
+
children: n.oneOfType([n.node, n.func]),
|
|
1288
|
+
/**
|
|
1289
|
+
* The component used for the root node.
|
|
1290
|
+
* Either a string to use a HTML element or a component.
|
|
1291
|
+
*/
|
|
1292
|
+
component: n.elementType,
|
|
1293
|
+
/**
|
|
1294
|
+
* An HTML element or function that returns one.
|
|
1295
|
+
* The `container` will have the portal children appended to it.
|
|
1296
|
+
*
|
|
1297
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
1298
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
1299
|
+
*
|
|
1300
|
+
* By default, it uses the body of the top-level document object,
|
|
1301
|
+
* so it's simply `document.body` most of the time.
|
|
1302
|
+
*/
|
|
1303
|
+
container: n.oneOfType([Ye, n.func]),
|
|
1304
|
+
/**
|
|
1305
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1306
|
+
* @default false
|
|
1307
|
+
*/
|
|
1308
|
+
disablePortal: n.bool,
|
|
1309
|
+
/**
|
|
1310
|
+
* Always keep the children in the DOM.
|
|
1311
|
+
* This prop can be useful in SEO situation or
|
|
1312
|
+
* when you want to maximize the responsiveness of the Popper.
|
|
1313
|
+
* @default false
|
|
1314
|
+
*/
|
|
1315
|
+
keepMounted: n.bool,
|
|
1316
|
+
/**
|
|
1317
|
+
* Popper.js is based on a "plugin-like" architecture,
|
|
1318
|
+
* most of its features are fully encapsulated "modifiers".
|
|
1319
|
+
*
|
|
1320
|
+
* A modifier is a function that is called each time Popper.js needs to
|
|
1321
|
+
* compute the position of the popper.
|
|
1322
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1323
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1324
|
+
*/
|
|
1325
|
+
modifiers: n.arrayOf(n.shape({
|
|
1326
|
+
data: n.object,
|
|
1327
|
+
effect: n.func,
|
|
1328
|
+
enabled: n.bool,
|
|
1329
|
+
fn: n.func,
|
|
1330
|
+
name: n.any,
|
|
1331
|
+
options: n.object,
|
|
1332
|
+
phase: n.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1333
|
+
requires: n.arrayOf(n.string),
|
|
1334
|
+
requiresIfExists: n.arrayOf(n.string)
|
|
1335
|
+
})),
|
|
1336
|
+
/**
|
|
1337
|
+
* If `true`, the component is shown.
|
|
1338
|
+
*/
|
|
1339
|
+
open: n.bool.isRequired,
|
|
1340
|
+
/**
|
|
1341
|
+
* Popper placement.
|
|
1342
|
+
* @default 'bottom'
|
|
1343
|
+
*/
|
|
1344
|
+
placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1345
|
+
/**
|
|
1346
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1347
|
+
* @default {}
|
|
1348
|
+
*/
|
|
1349
|
+
popperOptions: n.shape({
|
|
1350
|
+
modifiers: n.array,
|
|
1351
|
+
onFirstUpdate: n.func,
|
|
1352
|
+
placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1353
|
+
strategy: n.oneOf(["absolute", "fixed"])
|
|
1354
|
+
}),
|
|
1355
|
+
/**
|
|
1356
|
+
* A ref that points to the used popper instance.
|
|
1357
|
+
*/
|
|
1358
|
+
popperRef: Bt,
|
|
1359
|
+
/**
|
|
1360
|
+
* The props used for each slot inside the Popper.
|
|
1361
|
+
* @default {}
|
|
1362
|
+
*/
|
|
1363
|
+
slotProps: n.shape({
|
|
1364
|
+
root: n.oneOfType([n.func, n.object])
|
|
1365
|
+
}),
|
|
1366
|
+
/**
|
|
1367
|
+
* The components used for each slot inside the Popper.
|
|
1368
|
+
* Either a string to use a HTML element or a component.
|
|
1369
|
+
* @default {}
|
|
1370
|
+
*/
|
|
1371
|
+
slots: n.shape({
|
|
1372
|
+
root: n.elementType
|
|
1373
|
+
}),
|
|
1374
|
+
/**
|
|
1375
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1376
|
+
*/
|
|
1377
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
1378
|
+
/**
|
|
1379
|
+
* Help supporting a react-transition-group/Transition component.
|
|
1380
|
+
* @default false
|
|
1381
|
+
*/
|
|
1382
|
+
transition: n.bool
|
|
1383
|
+
});
|
|
1384
|
+
function Sr(e) {
|
|
1385
|
+
return Mt("MuiTooltip", e);
|
|
1386
|
+
}
|
|
1387
|
+
const z = Ct("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
|
|
1388
|
+
function Ar(e) {
|
|
1389
|
+
return Math.round(e * 1e5) / 1e5;
|
|
1390
|
+
}
|
|
1391
|
+
const Mr = (e) => {
|
|
1392
|
+
const {
|
|
1393
|
+
classes: t,
|
|
1394
|
+
disableInteractive: o,
|
|
1395
|
+
arrow: r,
|
|
1396
|
+
touch: a,
|
|
1397
|
+
placement: i
|
|
1398
|
+
} = e, c = {
|
|
1399
|
+
popper: ["popper", !o && "popperInteractive", r && "popperArrow"],
|
|
1400
|
+
tooltip: ["tooltip", r && "tooltipArrow", a && "touch", `tooltipPlacement${kt(i.split("-")[0])}`],
|
|
1401
|
+
arrow: ["arrow"]
|
|
1402
|
+
};
|
|
1403
|
+
return jt(c, Sr, t);
|
|
1404
|
+
}, Cr = Qe(dt, {
|
|
1405
|
+
name: "MuiTooltip",
|
|
1406
|
+
slot: "Popper",
|
|
1407
|
+
overridesResolver: (e, t) => {
|
|
1408
|
+
const {
|
|
1409
|
+
ownerState: o
|
|
1410
|
+
} = e;
|
|
1411
|
+
return [t.popper, !o.disableInteractive && t.popperInteractive, o.arrow && t.popperArrow, !o.open && t.popperClose];
|
|
1412
|
+
}
|
|
1413
|
+
})(at(({
|
|
1414
|
+
theme: e
|
|
1415
|
+
}) => ({
|
|
1416
|
+
zIndex: (e.vars || e).zIndex.tooltip,
|
|
1417
|
+
pointerEvents: "none",
|
|
1418
|
+
variants: [{
|
|
1419
|
+
props: ({
|
|
1420
|
+
ownerState: t,
|
|
1421
|
+
open: o
|
|
1422
|
+
}) => o && !t.disableInteractive,
|
|
1423
|
+
style: {
|
|
1424
|
+
pointerEvents: "auto"
|
|
1425
|
+
}
|
|
1426
|
+
}, {
|
|
1427
|
+
props: ({
|
|
1428
|
+
ownerState: t
|
|
1429
|
+
}) => t.arrow,
|
|
1430
|
+
style: {
|
|
1431
|
+
[`&[data-popper-placement*="bottom"] .${z.arrow}`]: {
|
|
1432
|
+
top: 0,
|
|
1433
|
+
marginTop: "-0.71em",
|
|
1434
|
+
"&::before": {
|
|
1435
|
+
transformOrigin: "0 100%"
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
[`&[data-popper-placement*="top"] .${z.arrow}`]: {
|
|
1439
|
+
bottom: 0,
|
|
1440
|
+
marginBottom: "-0.71em",
|
|
1441
|
+
"&::before": {
|
|
1442
|
+
transformOrigin: "100% 0"
|
|
1443
|
+
}
|
|
1444
|
+
},
|
|
1445
|
+
[`&[data-popper-placement*="right"] .${z.arrow}`]: {
|
|
1446
|
+
height: "1em",
|
|
1447
|
+
width: "0.71em",
|
|
1448
|
+
insetInlineStart: 0,
|
|
1449
|
+
marginInlineStart: "-0.71em",
|
|
1450
|
+
"&::before": {
|
|
1451
|
+
transformOrigin: "100% 100%"
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
[`&[data-popper-placement*="left"] .${z.arrow}`]: {
|
|
1455
|
+
height: "1em",
|
|
1456
|
+
width: "0.71em",
|
|
1457
|
+
insetInlineEnd: 0,
|
|
1458
|
+
marginInlineEnd: "-0.71em",
|
|
1459
|
+
"&::before": {
|
|
1460
|
+
transformOrigin: "0 0"
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
}]
|
|
1465
|
+
}))), jr = Qe("div", {
|
|
1466
|
+
name: "MuiTooltip",
|
|
1467
|
+
slot: "Tooltip",
|
|
1468
|
+
overridesResolver: (e, t) => {
|
|
1469
|
+
const {
|
|
1470
|
+
ownerState: o
|
|
1471
|
+
} = e;
|
|
1472
|
+
return [t.tooltip, o.touch && t.touch, o.arrow && t.tooltipArrow, t[`tooltipPlacement${kt(o.placement.split("-")[0])}`]];
|
|
1473
|
+
}
|
|
1474
|
+
})(at(({
|
|
1475
|
+
theme: e
|
|
1476
|
+
}) => ({
|
|
1477
|
+
backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : e.alpha(e.palette.grey[700], 0.92),
|
|
1478
|
+
borderRadius: (e.vars || e).shape.borderRadius,
|
|
1479
|
+
color: (e.vars || e).palette.common.white,
|
|
1480
|
+
fontFamily: e.typography.fontFamily,
|
|
1481
|
+
padding: "4px 8px",
|
|
1482
|
+
fontSize: e.typography.pxToRem(11),
|
|
1483
|
+
maxWidth: 300,
|
|
1484
|
+
margin: 2,
|
|
1485
|
+
wordWrap: "break-word",
|
|
1486
|
+
fontWeight: e.typography.fontWeightMedium,
|
|
1487
|
+
[`.${z.popper}[data-popper-placement*="left"] &`]: {
|
|
1488
|
+
transformOrigin: "right center",
|
|
1489
|
+
marginInlineEnd: "14px"
|
|
1490
|
+
},
|
|
1491
|
+
[`.${z.popper}[data-popper-placement*="right"] &`]: {
|
|
1492
|
+
transformOrigin: "left center",
|
|
1493
|
+
marginInlineStart: "14px"
|
|
1494
|
+
},
|
|
1495
|
+
[`.${z.popper}[data-popper-placement*="top"] &`]: {
|
|
1496
|
+
transformOrigin: "center bottom",
|
|
1497
|
+
marginBottom: "14px"
|
|
1498
|
+
},
|
|
1499
|
+
[`.${z.popper}[data-popper-placement*="bottom"] &`]: {
|
|
1500
|
+
transformOrigin: "center top",
|
|
1501
|
+
marginTop: "14px"
|
|
1502
|
+
},
|
|
1503
|
+
variants: [{
|
|
1504
|
+
props: ({
|
|
1505
|
+
ownerState: t
|
|
1506
|
+
}) => t.arrow,
|
|
1507
|
+
style: {
|
|
1508
|
+
position: "relative",
|
|
1509
|
+
marginBlock: 0
|
|
1510
|
+
}
|
|
1511
|
+
}, {
|
|
1512
|
+
props: ({
|
|
1513
|
+
ownerState: t
|
|
1514
|
+
}) => t.touch,
|
|
1515
|
+
style: {
|
|
1516
|
+
padding: "8px 16px",
|
|
1517
|
+
fontSize: e.typography.pxToRem(14),
|
|
1518
|
+
lineHeight: `${Ar(16 / 14)}em`,
|
|
1519
|
+
fontWeight: e.typography.fontWeightRegular
|
|
1520
|
+
}
|
|
1521
|
+
}, {
|
|
1522
|
+
props: ({
|
|
1523
|
+
ownerState: t
|
|
1524
|
+
}) => t.touch,
|
|
1525
|
+
style: {
|
|
1526
|
+
[`.${z.popper}[data-popper-placement*="left"] &`]: {
|
|
1527
|
+
marginInlineEnd: "24px"
|
|
1528
|
+
},
|
|
1529
|
+
[`.${z.popper}[data-popper-placement*="right"] &`]: {
|
|
1530
|
+
marginInlineStart: "24px"
|
|
1531
|
+
},
|
|
1532
|
+
[`.${z.popper}[data-popper-placement*="top"] &`]: {
|
|
1533
|
+
marginBottom: "24px"
|
|
1534
|
+
},
|
|
1535
|
+
[`.${z.popper}[data-popper-placement*="bottom"] &`]: {
|
|
1536
|
+
marginTop: "24px"
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}]
|
|
1540
|
+
}))), Dr = Qe("span", {
|
|
1541
|
+
name: "MuiTooltip",
|
|
1542
|
+
slot: "Arrow"
|
|
1543
|
+
})(at(({
|
|
1544
|
+
theme: e
|
|
1545
|
+
}) => ({
|
|
1546
|
+
overflow: "hidden",
|
|
1547
|
+
position: "absolute",
|
|
1548
|
+
width: "1em",
|
|
1549
|
+
height: "0.71em",
|
|
1550
|
+
boxSizing: "border-box",
|
|
1551
|
+
color: e.vars ? e.vars.palette.Tooltip.bg : e.alpha(e.palette.grey[700], 0.9),
|
|
1552
|
+
"&::before": {
|
|
1553
|
+
content: '""',
|
|
1554
|
+
margin: "auto",
|
|
1555
|
+
display: "block",
|
|
1556
|
+
width: "100%",
|
|
1557
|
+
height: "100%",
|
|
1558
|
+
backgroundColor: "currentColor",
|
|
1559
|
+
transform: "rotate(45deg)"
|
|
1560
|
+
}
|
|
1561
|
+
})));
|
|
1562
|
+
let qe = !1;
|
|
1563
|
+
const At = new fo();
|
|
1564
|
+
let Ce = {
|
|
1565
|
+
x: 0,
|
|
1566
|
+
y: 0
|
|
1567
|
+
};
|
|
1568
|
+
function ze(e, t) {
|
|
1569
|
+
return (o, ...r) => {
|
|
1570
|
+
t && t(o, ...r), e(o, ...r);
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
const Xt = /* @__PURE__ */ j.forwardRef(function(t, o) {
|
|
1574
|
+
const r = Dt({
|
|
1575
|
+
props: t,
|
|
1576
|
+
name: "MuiTooltip"
|
|
1577
|
+
}), {
|
|
1578
|
+
arrow: a = !1,
|
|
1579
|
+
children: i,
|
|
1580
|
+
classes: c,
|
|
1581
|
+
describeChild: s = !1,
|
|
1582
|
+
disableFocusListener: p = !1,
|
|
1583
|
+
disableHoverListener: f = !1,
|
|
1584
|
+
disableInteractive: l = !1,
|
|
1585
|
+
disableTouchListener: g = !1,
|
|
1586
|
+
enterDelay: x = 100,
|
|
1587
|
+
enterNextDelay: u = 0,
|
|
1588
|
+
enterTouchDelay: E = 700,
|
|
1589
|
+
followCursor: v = !1,
|
|
1590
|
+
id: h,
|
|
1591
|
+
leaveDelay: O = 0,
|
|
1592
|
+
leaveTouchDelay: A = 1500,
|
|
1593
|
+
onClose: T,
|
|
1594
|
+
onOpen: d,
|
|
1595
|
+
open: b,
|
|
1596
|
+
placement: y = "bottom",
|
|
1597
|
+
slotProps: P = {},
|
|
1598
|
+
slots: D = {},
|
|
1599
|
+
title: w,
|
|
1600
|
+
...M
|
|
1601
|
+
} = r, S = /* @__PURE__ */ j.isValidElement(i) ? i : /* @__PURE__ */ ie("span", {
|
|
1602
|
+
children: i
|
|
1603
|
+
}), N = so(), [R, V] = j.useState(), [H, k] = j.useState(null), $ = j.useRef(!1), K = l || v, C = Ue(), J = Ue(), Z = Ue(), _ = Ue(), [pe, re] = ro({
|
|
1604
|
+
controlled: b,
|
|
1605
|
+
default: !1,
|
|
1606
|
+
name: "Tooltip",
|
|
1607
|
+
state: "open"
|
|
1608
|
+
});
|
|
1609
|
+
let B = pe;
|
|
1610
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1611
|
+
const {
|
|
1612
|
+
current: m
|
|
1613
|
+
} = j.useRef(b !== void 0);
|
|
1614
|
+
j.useEffect(() => {
|
|
1615
|
+
R && R.disabled && !m && w !== "" && R.tagName.toLowerCase() === "button" && console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
|
|
1616
|
+
`));
|
|
1617
|
+
}, [w, R, m]);
|
|
1618
|
+
}
|
|
1619
|
+
const ne = po(h), ee = j.useRef(), q = gt(() => {
|
|
1620
|
+
ee.current !== void 0 && (document.body.style.WebkitUserSelect = ee.current, ee.current = void 0), _.clear();
|
|
1621
|
+
});
|
|
1622
|
+
j.useEffect(() => q, [q]);
|
|
1623
|
+
const ge = (m) => {
|
|
1624
|
+
At.clear(), qe = !0, re(!0), d && !B && d(m);
|
|
1625
|
+
}, be = gt(
|
|
1626
|
+
/**
|
|
1627
|
+
* @param {React.SyntheticEvent | Event} event
|
|
1628
|
+
*/
|
|
1629
|
+
(m) => {
|
|
1630
|
+
At.start(800 + O, () => {
|
|
1631
|
+
qe = !1;
|
|
1632
|
+
}), re(!1), T && B && T(m), C.start(N.transitions.duration.shortest, () => {
|
|
1633
|
+
$.current = !1;
|
|
1634
|
+
});
|
|
1635
|
+
}
|
|
1636
|
+
), le = (m) => {
|
|
1637
|
+
$.current && m.type !== "touchstart" || (R && R.removeAttribute("title"), J.clear(), Z.clear(), x || qe && u ? J.start(qe ? u : x, () => {
|
|
1638
|
+
ge(m);
|
|
1639
|
+
}) : ge(m));
|
|
1640
|
+
}, Ee = (m) => {
|
|
1641
|
+
J.clear(), Z.start(O, () => {
|
|
1642
|
+
be(m);
|
|
1643
|
+
});
|
|
1644
|
+
}, [, Re] = j.useState(!1), Se = (m) => {
|
|
1645
|
+
const L = m?.target ?? R;
|
|
1646
|
+
if (!L || L.disabled || !bt(L)) {
|
|
1647
|
+
Re(!1);
|
|
1648
|
+
const ve = m ?? new Event("blur");
|
|
1649
|
+
!m && L && (Object.defineProperty(ve, "target", {
|
|
1650
|
+
value: L
|
|
1651
|
+
}), Object.defineProperty(ve, "currentTarget", {
|
|
1652
|
+
value: L
|
|
1653
|
+
})), Ee(ve);
|
|
1654
|
+
}
|
|
1655
|
+
}, Ne = (m) => {
|
|
1656
|
+
if (R || V(m.currentTarget), bt(m.target)) {
|
|
1657
|
+
const L = (ve) => {
|
|
1658
|
+
ve.target.disabled && Se(ve), ve.target.removeEventListener("blur", L);
|
|
1659
|
+
};
|
|
1660
|
+
m.target.addEventListener("blur", L), Re(!0), le(m);
|
|
1661
|
+
}
|
|
1662
|
+
}, Ae = (m) => {
|
|
1663
|
+
$.current = !0;
|
|
1664
|
+
const L = S.props;
|
|
1665
|
+
L.onTouchStart && L.onTouchStart(m);
|
|
1666
|
+
}, Ie = (m) => {
|
|
1667
|
+
Ae(m), Z.clear(), C.clear(), q(), ee.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", _.start(E, () => {
|
|
1668
|
+
document.body.style.WebkitUserSelect = ee.current, le(m);
|
|
1669
|
+
});
|
|
1670
|
+
}, _e = (m) => {
|
|
1671
|
+
S.props.onTouchEnd && S.props.onTouchEnd(m), q(), Z.start(A, () => {
|
|
1672
|
+
be(m);
|
|
1673
|
+
});
|
|
1674
|
+
};
|
|
1675
|
+
j.useEffect(() => {
|
|
1676
|
+
if (!B)
|
|
1677
|
+
return;
|
|
1678
|
+
function m(L) {
|
|
1679
|
+
L.key === "Escape" && be(L);
|
|
1680
|
+
}
|
|
1681
|
+
return document.addEventListener("keydown", m), () => {
|
|
1682
|
+
document.removeEventListener("keydown", m);
|
|
1683
|
+
};
|
|
1684
|
+
}, [be, B]);
|
|
1685
|
+
const et = ot(lo(S), V, o);
|
|
1686
|
+
!w && w !== 0 && (B = !1);
|
|
1687
|
+
const Q = j.useRef(), ye = (m) => {
|
|
1688
|
+
const L = S.props;
|
|
1689
|
+
L.onMouseMove && L.onMouseMove(m), Ce = {
|
|
1690
|
+
x: m.clientX,
|
|
1691
|
+
y: m.clientY
|
|
1692
|
+
}, Q.current && Q.current.update();
|
|
1693
|
+
}, ce = {}, we = typeof w == "string";
|
|
1694
|
+
s ? (ce.title = !B && we && !f ? w : null, ce["aria-describedby"] = B ? ne : null) : (ce["aria-label"] = we ? w : null, ce["aria-labelledby"] = B && !we ? ne : null);
|
|
1695
|
+
const I = {
|
|
1696
|
+
...ce,
|
|
1697
|
+
...M,
|
|
1698
|
+
...S.props,
|
|
1699
|
+
className: no(M.className, S.props.className),
|
|
1700
|
+
onTouchStart: Ae,
|
|
1701
|
+
ref: et,
|
|
1702
|
+
...v ? {
|
|
1703
|
+
onMouseMove: ye
|
|
1704
|
+
} : {}
|
|
1705
|
+
};
|
|
1706
|
+
process.env.NODE_ENV !== "production" && (I["data-mui-internal-clone-element"] = !0, j.useEffect(() => {
|
|
1707
|
+
R && !R.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
1708
|
+
`));
|
|
1709
|
+
}, [R]));
|
|
1710
|
+
const fe = {};
|
|
1711
|
+
g || (I.onTouchStart = Ie, I.onTouchEnd = _e), f || (I.onMouseOver = ze(le, I.onMouseOver), I.onMouseLeave = ze(Ee, I.onMouseLeave), K || (fe.onMouseOver = le, fe.onMouseLeave = Ee)), p || (I.onFocus = ze(Ne, I.onFocus), I.onBlur = ze(Se, I.onBlur), K || (fe.onFocus = Ne, fe.onBlur = Se)), process.env.NODE_ENV !== "production" && S.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${S.props.title}\` or the Tooltip component.`].join(`
|
|
1712
|
+
`));
|
|
1713
|
+
const ae = {
|
|
1714
|
+
...r,
|
|
1715
|
+
arrow: a,
|
|
1716
|
+
disableInteractive: K,
|
|
1717
|
+
placement: y,
|
|
1718
|
+
touch: $.current
|
|
1719
|
+
}, ue = typeof P.popper == "function" ? P.popper(ae) : P.popper, We = j.useMemo(() => {
|
|
1720
|
+
let m = [{
|
|
1721
|
+
name: "arrow",
|
|
1722
|
+
enabled: !!H,
|
|
1723
|
+
options: {
|
|
1724
|
+
element: H,
|
|
1725
|
+
padding: 4
|
|
1726
|
+
}
|
|
1727
|
+
}];
|
|
1728
|
+
return ue?.popperOptions?.modifiers && (m = m.concat(ue.popperOptions.modifiers)), {
|
|
1729
|
+
...ue?.popperOptions,
|
|
1730
|
+
modifiers: m
|
|
1731
|
+
};
|
|
1732
|
+
}, [H, ue?.popperOptions]), tt = Mr(ae), Fe = {
|
|
1733
|
+
slots: D,
|
|
1734
|
+
slotProps: {
|
|
1735
|
+
arrow: P.arrow,
|
|
1736
|
+
popper: ue,
|
|
1737
|
+
tooltip: P.tooltip,
|
|
1738
|
+
transition: P.transition
|
|
1739
|
+
}
|
|
1740
|
+
}, [Yt, Gt] = He("popper", {
|
|
1741
|
+
elementType: Cr,
|
|
1742
|
+
externalForwardedProps: Fe,
|
|
1743
|
+
ownerState: ae,
|
|
1744
|
+
className: tt.popper
|
|
1745
|
+
}), [Kt, Qt] = He("transition", {
|
|
1746
|
+
elementType: co,
|
|
1747
|
+
externalForwardedProps: Fe,
|
|
1748
|
+
ownerState: ae
|
|
1749
|
+
}), [Jt, Zt] = He("tooltip", {
|
|
1750
|
+
elementType: jr,
|
|
1751
|
+
className: tt.tooltip,
|
|
1752
|
+
externalForwardedProps: Fe,
|
|
1753
|
+
ownerState: ae
|
|
1754
|
+
}), [_t, eo] = He("arrow", {
|
|
1755
|
+
elementType: Dr,
|
|
1756
|
+
className: tt.arrow,
|
|
1757
|
+
externalForwardedProps: Fe,
|
|
1758
|
+
ownerState: ae,
|
|
1759
|
+
ref: k
|
|
1760
|
+
});
|
|
1761
|
+
return /* @__PURE__ */ vt(j.Fragment, {
|
|
1762
|
+
children: [/* @__PURE__ */ j.cloneElement(S, I), /* @__PURE__ */ ie(Yt, {
|
|
1763
|
+
as: dt,
|
|
1764
|
+
placement: y,
|
|
1765
|
+
anchorEl: v ? {
|
|
1766
|
+
getBoundingClientRect: () => ({
|
|
1767
|
+
top: Ce.y,
|
|
1768
|
+
left: Ce.x,
|
|
1769
|
+
right: Ce.x,
|
|
1770
|
+
bottom: Ce.y,
|
|
1771
|
+
width: 0,
|
|
1772
|
+
height: 0
|
|
1773
|
+
})
|
|
1774
|
+
} : R,
|
|
1775
|
+
popperRef: Q,
|
|
1776
|
+
open: R ? B : !1,
|
|
1777
|
+
id: ne,
|
|
1778
|
+
transition: !0,
|
|
1779
|
+
...fe,
|
|
1780
|
+
...Gt,
|
|
1781
|
+
popperOptions: We,
|
|
1782
|
+
children: ({
|
|
1783
|
+
TransitionProps: m
|
|
1784
|
+
}) => /* @__PURE__ */ ie(Kt, {
|
|
1785
|
+
timeout: N.transitions.duration.shorter,
|
|
1786
|
+
...m,
|
|
1787
|
+
...Qt,
|
|
1788
|
+
children: /* @__PURE__ */ vt(Jt, {
|
|
1789
|
+
...Zt,
|
|
1790
|
+
children: [w, a ? /* @__PURE__ */ ie(_t, {
|
|
1791
|
+
...eo
|
|
1792
|
+
}) : null]
|
|
1793
|
+
})
|
|
1794
|
+
})
|
|
1795
|
+
})]
|
|
1796
|
+
});
|
|
1797
|
+
});
|
|
1798
|
+
process.env.NODE_ENV !== "production" && (Xt.propTypes = {
|
|
1799
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1800
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1801
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1802
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
1803
|
+
/**
|
|
1804
|
+
* If `true`, adds an arrow to the tooltip.
|
|
1805
|
+
* @default false
|
|
1806
|
+
*/
|
|
1807
|
+
arrow: n.bool,
|
|
1808
|
+
/**
|
|
1809
|
+
* Tooltip reference element.
|
|
1810
|
+
*/
|
|
1811
|
+
children: uo.isRequired,
|
|
1812
|
+
/**
|
|
1813
|
+
* Override or extend the styles applied to the component.
|
|
1814
|
+
*/
|
|
1815
|
+
classes: n.object,
|
|
1816
|
+
/**
|
|
1817
|
+
* @ignore
|
|
1818
|
+
*/
|
|
1819
|
+
className: n.string,
|
|
1820
|
+
/**
|
|
1821
|
+
* Set to `true` if the `title` acts as an accessible description.
|
|
1822
|
+
* By default the `title` acts as an accessible label for the child.
|
|
1823
|
+
* @default false
|
|
1824
|
+
*/
|
|
1825
|
+
describeChild: n.bool,
|
|
1826
|
+
/**
|
|
1827
|
+
* Do not respond to focus-visible events.
|
|
1828
|
+
* @default false
|
|
1829
|
+
*/
|
|
1830
|
+
disableFocusListener: n.bool,
|
|
1831
|
+
/**
|
|
1832
|
+
* Do not respond to hover events.
|
|
1833
|
+
* @default false
|
|
1834
|
+
*/
|
|
1835
|
+
disableHoverListener: n.bool,
|
|
1836
|
+
/**
|
|
1837
|
+
* Makes a tooltip not interactive, i.e. it will close when the user
|
|
1838
|
+
* hovers over the tooltip before the `leaveDelay` is expired.
|
|
1839
|
+
* @default false
|
|
1840
|
+
*/
|
|
1841
|
+
disableInteractive: n.bool,
|
|
1842
|
+
/**
|
|
1843
|
+
* Do not respond to long press touch events.
|
|
1844
|
+
* @default false
|
|
1845
|
+
*/
|
|
1846
|
+
disableTouchListener: n.bool,
|
|
1847
|
+
/**
|
|
1848
|
+
* The number of milliseconds to wait before showing the tooltip.
|
|
1849
|
+
* This prop won't impact the enter touch delay (`enterTouchDelay`).
|
|
1850
|
+
* @default 100
|
|
1851
|
+
*/
|
|
1852
|
+
enterDelay: n.number,
|
|
1853
|
+
/**
|
|
1854
|
+
* The number of milliseconds to wait before showing the tooltip when one was already recently opened.
|
|
1855
|
+
* @default 0
|
|
1856
|
+
*/
|
|
1857
|
+
enterNextDelay: n.number,
|
|
1858
|
+
/**
|
|
1859
|
+
* The number of milliseconds a user must touch the element before showing the tooltip.
|
|
1860
|
+
* @default 700
|
|
1861
|
+
*/
|
|
1862
|
+
enterTouchDelay: n.number,
|
|
1863
|
+
/**
|
|
1864
|
+
* If `true`, the tooltip follow the cursor over the wrapped element.
|
|
1865
|
+
* @default false
|
|
1866
|
+
*/
|
|
1867
|
+
followCursor: n.bool,
|
|
1868
|
+
/**
|
|
1869
|
+
* This prop is used to help implement the accessibility logic.
|
|
1870
|
+
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
1871
|
+
*/
|
|
1872
|
+
id: n.string,
|
|
1873
|
+
/**
|
|
1874
|
+
* The number of milliseconds to wait before hiding the tooltip.
|
|
1875
|
+
* This prop won't impact the leave touch delay (`leaveTouchDelay`).
|
|
1876
|
+
* @default 0
|
|
1877
|
+
*/
|
|
1878
|
+
leaveDelay: n.number,
|
|
1879
|
+
/**
|
|
1880
|
+
* The number of milliseconds after the user stops touching an element before hiding the tooltip.
|
|
1881
|
+
* @default 1500
|
|
1882
|
+
*/
|
|
1883
|
+
leaveTouchDelay: n.number,
|
|
1884
|
+
/**
|
|
1885
|
+
* Callback fired when the component requests to be closed.
|
|
1886
|
+
*
|
|
1887
|
+
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
1888
|
+
*/
|
|
1889
|
+
onClose: n.func,
|
|
1890
|
+
/**
|
|
1891
|
+
* Callback fired when the component requests to be open.
|
|
1892
|
+
*
|
|
1893
|
+
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
1894
|
+
*/
|
|
1895
|
+
onOpen: n.func,
|
|
1896
|
+
/**
|
|
1897
|
+
* If `true`, the component is shown.
|
|
1898
|
+
*/
|
|
1899
|
+
open: n.bool,
|
|
1900
|
+
/**
|
|
1901
|
+
* Tooltip placement.
|
|
1902
|
+
* @default 'bottom'
|
|
1903
|
+
*/
|
|
1904
|
+
placement: n.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1905
|
+
/**
|
|
1906
|
+
* The props used for each slot inside.
|
|
1907
|
+
* @default {}
|
|
1908
|
+
*/
|
|
1909
|
+
slotProps: n.shape({
|
|
1910
|
+
arrow: n.oneOfType([n.func, n.object]),
|
|
1911
|
+
popper: n.oneOfType([n.func, n.object]),
|
|
1912
|
+
tooltip: n.oneOfType([n.func, n.object]),
|
|
1913
|
+
transition: n.oneOfType([n.func, n.object])
|
|
1914
|
+
}),
|
|
1915
|
+
/**
|
|
1916
|
+
* The components used for each slot inside.
|
|
1917
|
+
* @default {}
|
|
1918
|
+
*/
|
|
1919
|
+
slots: n.shape({
|
|
1920
|
+
arrow: n.elementType,
|
|
1921
|
+
popper: n.elementType,
|
|
1922
|
+
tooltip: n.elementType,
|
|
1923
|
+
transition: n.elementType
|
|
1924
|
+
}),
|
|
1925
|
+
/**
|
|
1926
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1927
|
+
*/
|
|
1928
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
1929
|
+
/**
|
|
1930
|
+
* Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
|
|
1931
|
+
*/
|
|
1932
|
+
title: n.node
|
|
1933
|
+
});
|
|
1934
|
+
function Ir({
|
|
1935
|
+
children: e,
|
|
1936
|
+
title: t = "",
|
|
1937
|
+
placement: o = "bottom",
|
|
1938
|
+
arrow: r = !0,
|
|
1939
|
+
...a
|
|
1940
|
+
}) {
|
|
1941
|
+
return /* @__PURE__ */ ie(
|
|
1942
|
+
Xt,
|
|
1943
|
+
{
|
|
1944
|
+
title: t,
|
|
1945
|
+
arrow: r,
|
|
1946
|
+
placement: o,
|
|
1947
|
+
slotProps: {
|
|
1948
|
+
tooltip: {
|
|
1949
|
+
sx: {
|
|
1950
|
+
maxWidth: "196px",
|
|
1951
|
+
whiteSpace: "normal",
|
|
1952
|
+
backgroundColor: "var(--ckcl-black-350, #676666)",
|
|
1953
|
+
color: "var(--ckcl-white, #FFFFFF)",
|
|
1954
|
+
fontSize: "var(--ckcl-fs-3xs, 10px)",
|
|
1955
|
+
padding: "var(--ckcl-spacing-sm, 8px) var(--ckcl-spacing-ms, 12px)",
|
|
1956
|
+
borderRadius: "8px",
|
|
1957
|
+
lineHeight: "var(--ckcl-leading-sm, 16px)",
|
|
1958
|
+
borderColor: "var(--ckcl-black-350, #676666)"
|
|
1959
|
+
}
|
|
1960
|
+
},
|
|
1961
|
+
arrow: {
|
|
1962
|
+
sx: {
|
|
1963
|
+
color: "var(--ckcl-black-350, #676666)",
|
|
1964
|
+
fontSize: "17px"
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
},
|
|
1968
|
+
...a,
|
|
1969
|
+
children: e
|
|
1970
|
+
}
|
|
1971
|
+
);
|
|
1972
|
+
}
|
|
1973
|
+
export {
|
|
1974
|
+
Ir as Tooltip
|
|
1975
|
+
};
|