@ck-ui/component-library 0.2.0 → 1.0.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/dist/DropdownFooter-CYkg2g5d.js +89 -0
- package/dist/Grow-D08Iq1uH.js +794 -0
- package/dist/IconSlot-CFKmSU2_.js +33 -0
- package/dist/OptionList-DN1xZbnV.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-DjdPf69A.css +1 -0
- package/dist/assets/IconSlot-CLpdZgmb.css +1 -0
- package/dist/assets/ReactToastify-tlSLHgLC.css +1 -0
- package/dist/assets/{ToastContent-DpF5zCks.css → ToastContent-PGkBxPUW.css} +1 -1
- package/dist/assets/index-B81zpOpq.css +1 -0
- package/dist/assets/index-BLz-9Nuk.css +1 -0
- package/dist/assets/index-BkNXS5fR.css +1 -0
- package/dist/assets/index-BmQOtMhS.css +1 -0
- package/dist/assets/index-BoQKDmZt.css +1 -0
- package/dist/assets/index-Cdmws__2.css +1 -0
- package/dist/assets/index-CiQd_iRw.css +1 -0
- package/dist/assets/index-CtR-jzNi.css +1 -0
- package/dist/assets/index-DNhNBxL9.css +1 -0
- package/dist/assets/index-DvlnFLG-.css +1 -0
- package/dist/assets/index-PKpDB4Cl.css +1 -0
- package/dist/assets/index-YHUWVH17.css +1 -0
- package/dist/assets/index-_Kh8p9R0.css +1 -0
- package/dist/assets/index-i-aBFBOq.css +1 -0
- package/dist/assets/index-nXJu3Pq0.css +1 -0
- package/dist/assets/index-rrYSS2rl.css +1 -0
- package/dist/assets/{main-3OqLSdPm.css → main-Dv8QUU_o.css} +1 -1
- package/dist/assets/styles-BTZL03H2.css +1 -0
- package/dist/assets/styles-Be-tqCP9.css +1 -0
- package/dist/assets/styles-Bqfs9eXV.css +1 -0
- package/dist/assets/styles-CYxKrBqL.css +1 -0
- package/dist/assets/styles-CZCmGNUn.css +1 -0
- package/dist/assets/{styles-C5uYY4fL.css → styles-Chhklrps.css} +1 -1
- package/dist/assets/styles-D8sahtFb.css +1 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.js +53 -47
- package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
- package/dist/components/CKButton/_helper/IconSlot.js +1 -1
- package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
- package/dist/components/CKButton/_types/button.types.d.ts +2 -0
- package/dist/components/CKButton/_types/button.types.d.ts.map +1 -1
- package/dist/components/CKButton/index.d.ts.map +1 -1
- package/dist/components/CKButton/index.js +32 -30
- package/dist/components/CKCheckbox/_types/type.d.ts +4 -0
- package/dist/components/CKCheckbox/_types/type.d.ts.map +1 -1
- package/dist/components/CKCheckbox/index.d.ts +1 -1
- package/dist/components/CKCheckbox/index.d.ts.map +1 -1
- package/dist/components/CKCheckbox/index.js +40 -24
- package/dist/components/CKTag/_types/type.d.ts +1 -1
- package/dist/components/CKTag/_types/type.d.ts.map +1 -1
- package/dist/components/CKTag/index.d.ts +1 -1
- package/dist/components/CKTag/index.d.ts.map +1 -1
- package/dist/components/CKTag/index.js +33 -24
- package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts +38 -0
- package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts.map +1 -0
- package/dist/components/CostComparatorTable/_helpers/CostCell.js +54 -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 +90 -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 +185 -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 +6061 -0
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts +51 -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/index.d.ts.map +1 -1
- package/dist/components/DeviationTag/index.js +42 -29
- package/dist/components/EmptyState/index.js +7 -7
- 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 +70 -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 +1059 -0
- package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/DropdownFooter.js +20 -11
- 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 +2 -9
- package/dist/components/GroupedMultiSelect/_helpers/MenuList.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/MenuList.js +5 -14
- package/dist/components/GroupedMultiSelect/_helpers/OptionRow.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/OptionRow.js +21 -14
- package/dist/components/GroupedMultiSelect/_helpers/OptionsList.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/OptionsList.js +46 -26
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/SearchResult.js +20 -12
- package/dist/components/GroupedMultiSelect/_helpers/TagContent.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/TagContent.js +33 -30
- package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_helpers/TriggerButton.js +41 -32
- package/dist/components/GroupedMultiSelect/_types/type.d.ts +23 -16
- package/dist/components/GroupedMultiSelect/_types/type.d.ts.map +1 -1
- 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 +1 -1
- package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_utils/filterSeachedGroups.js +2 -2
- package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_utils/getDefaultSelected.js +1 -1
- package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/_utils/getResponsePayload.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/_utils/selectAllOptions.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/index.d.ts +1 -1
- package/dist/components/GroupedMultiSelect/index.d.ts.map +1 -1
- package/dist/components/GroupedMultiSelect/index.js +122 -112
- package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/DropdownFooter.js +28 -19
- package/dist/components/GroupedSingleSelect/_helpers/OptionRow.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/OptionRow.js +22 -12
- package/dist/components/GroupedSingleSelect/_helpers/OptionsList.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/OptionsList.js +35 -24
- package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/_helpers/TriggerButton.js +42 -24
- package/dist/components/GroupedSingleSelect/index.d.ts.map +1 -1
- package/dist/components/GroupedSingleSelect/index.js +61 -51
- package/dist/components/Loader/_types/loader.types.d.ts +10 -0
- package/dist/components/Loader/_types/loader.types.d.ts.map +1 -0
- package/dist/components/Loader/_types/loader.types.js +1 -0
- package/dist/components/Loader/index.d.ts +6 -0
- package/dist/components/Loader/index.d.ts.map +1 -0
- package/dist/components/Loader/index.js +37 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.d.ts +27 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.d.ts.map +1 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.js +1 -0
- package/dist/components/MAVDropdown/index.d.ts +6 -0
- package/dist/components/MAVDropdown/index.d.ts.map +1 -0
- package/dist/components/MAVDropdown/index.js +162 -0
- package/dist/components/MenuOptions/_types/menuOptions.types.d.ts +1 -7
- package/dist/components/MenuOptions/_types/menuOptions.types.d.ts.map +1 -1
- package/dist/components/MenuOptions/_utils/computeMenuPosition.js +1 -1
- package/dist/components/MenuOptions/_utils/computeSubmenuPosition.js +1 -1
- package/dist/components/MenuOptions/index.d.ts +1 -1
- package/dist/components/MenuOptions/index.d.ts.map +1 -1
- package/dist/components/MenuOptions/index.js +41 -35
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +43 -43
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts +22 -0
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts.map +1 -0
- package/dist/components/MultiSelect/SimpleMultiSelect.js +221 -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 +48 -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 +82 -0
- package/dist/components/MultiSelect/_types/type.d.ts +106 -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 +234 -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/components/DialogContent.js +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogFooter.js +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogHeader.js +1 -1
- package/dist/components/PopupAndDialogBox/index.js +1 -1
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.d.ts +28 -0
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.js +13 -0
- package/dist/components/ProfileDropdown/constants.d.ts +3 -0
- package/dist/components/ProfileDropdown/constants.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/constants.js +8 -0
- package/dist/components/ProfileDropdown/index.d.ts +6 -0
- package/dist/components/ProfileDropdown/index.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/index.js +154 -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/index.js +24 -24
- 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/index.d.ts.map +1 -1
- package/dist/components/Search/index.js +72 -62
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts +2 -1
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +15 -4
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts +2 -2
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/index.d.ts +1 -1
- package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/index.js +81 -70
- package/dist/components/Switch/index.js +3 -3
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts +5 -0
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -0
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +84 -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 +2456 -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 +54 -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 +193 -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 +408 -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 +286 -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 +10 -0
- package/dist/components/Table/_utils/table.utils.d.ts.map +1 -0
- package/dist/components/Table/_utils/table.utils.js +87 -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 +543 -0
- package/dist/components/TextField/index.js +685 -6956
- package/dist/components/Toast/_helper/ToastContent.js +25 -25
- package/dist/components/Toast/_helper/ToastProvider.js +9 -9
- package/dist/components/Toast/_hooks/useToast.js +1 -1
- package/dist/components/Tooltip/index.js +699 -781
- 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/contains-kLLEGdNH.js +41 -0
- package/dist/index-C8cPPHJD.js +1196 -0
- package/dist/index-f7TB87Mf.js +1846 -0
- package/dist/isFocusVisible-BzX3wEi7.js +12 -0
- package/dist/main.d.ts +17 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +128 -96
- package/dist/reset-icon-YxMt3Ozp.js +5 -0
- package/dist/search-B_cup-NN.js +5 -0
- package/dist/styles.module-BXby6f8d.js +16 -0
- package/dist/styles.module-BZaUJMlf.js +14 -0
- package/dist/styles.module-Dojg5FTS.js +41 -0
- package/dist/styles.module-ZyeVE7KZ.js +39 -0
- package/dist/table-filter-C0zetUfo.js +6 -0
- package/dist/useSlot-ylt7_lTY.js +4698 -0
- package/package.json +17 -3
- package/dist/DropdownFooter-De6BYlLK.js +0 -77
- package/dist/Grow-Bsrwqfek.js +0 -5468
- package/dist/IconSlot-CbpGCbaA.js +0 -32
- package/dist/assets/DropdownFooter-C7Cml53c.css +0 -1
- package/dist/assets/IconSlot-Ct_SZh2X.css +0 -1
- package/dist/assets/ReactToastify-GNLSjkBZ.css +0 -1
- package/dist/assets/index-0R9p-l95.css +0 -1
- package/dist/assets/index-BbJZjGLb.css +0 -1
- package/dist/assets/index-Bu-eyi44.css +0 -1
- package/dist/assets/index-DAtOlGx5.css +0 -1
- package/dist/assets/index-Dudb2XKF.css +0 -1
- package/dist/assets/index-fvceox3b.css +0 -1
- package/dist/assets/index-w7AdSPwF.css +0 -1
- package/dist/assets/styles-CGTFG68B.css +0 -1
- package/dist/index-BR6M9zUI.js +0 -382
- package/dist/styles.module-BpAF4ufQ.js +0 -38
- package/dist/styles.module-yNDMDNO-.js +0 -14
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import P from "react";
|
|
3
|
+
import { a as lt, j as ft, T as pt, n as dt, P as n, F as Et, z as mt, U as H, c as ht, Q as G, e as Q } from "./useSlot-ylt7_lTY.js";
|
|
4
|
+
import * as xt from "react-dom";
|
|
5
|
+
import L from "react-dom";
|
|
6
|
+
import { jsx as gt } from "react/jsx-runtime";
|
|
7
|
+
function yt(e) {
|
|
8
|
+
return Object.keys(e).length === 0;
|
|
9
|
+
}
|
|
10
|
+
function vt(e = null) {
|
|
11
|
+
const r = f.useContext(lt);
|
|
12
|
+
return !r || yt(r) ? e : r;
|
|
13
|
+
}
|
|
14
|
+
const Tt = ft();
|
|
15
|
+
function bt(e = Tt) {
|
|
16
|
+
return vt(e);
|
|
17
|
+
}
|
|
18
|
+
const Ot = "exact-prop: ";
|
|
19
|
+
function Nt(e) {
|
|
20
|
+
return process.env.NODE_ENV === "production" ? e : {
|
|
21
|
+
...e,
|
|
22
|
+
[Ot]: (r) => {
|
|
23
|
+
const s = Object.keys(r).filter((o) => !e.hasOwnProperty(o));
|
|
24
|
+
return s.length > 0 ? new Error(`The following props are not supported: ${s.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
let q = 0;
|
|
29
|
+
function Dt(e) {
|
|
30
|
+
const [r, s] = f.useState(e), o = e || r;
|
|
31
|
+
return f.useEffect(() => {
|
|
32
|
+
r == null && (q += 1, s(`mui-${q}`));
|
|
33
|
+
}, [r]), o;
|
|
34
|
+
}
|
|
35
|
+
const Rt = {
|
|
36
|
+
...f
|
|
37
|
+
}, F = Rt.useId;
|
|
38
|
+
function Bt(e) {
|
|
39
|
+
if (F !== void 0) {
|
|
40
|
+
const r = F();
|
|
41
|
+
return e ?? r;
|
|
42
|
+
}
|
|
43
|
+
return Dt(e);
|
|
44
|
+
}
|
|
45
|
+
function St() {
|
|
46
|
+
const e = bt(dt);
|
|
47
|
+
return process.env.NODE_ENV !== "production" && f.useDebugValue(e), e[pt] || e;
|
|
48
|
+
}
|
|
49
|
+
function X(e, r) {
|
|
50
|
+
typeof e == "function" ? e(r) : e && (e.current = r);
|
|
51
|
+
}
|
|
52
|
+
function Pt(e, r) {
|
|
53
|
+
if (e == null) return {};
|
|
54
|
+
var s = {};
|
|
55
|
+
for (var o in e) if ({}.hasOwnProperty.call(e, o)) {
|
|
56
|
+
if (r.indexOf(o) !== -1) continue;
|
|
57
|
+
s[o] = e[o];
|
|
58
|
+
}
|
|
59
|
+
return s;
|
|
60
|
+
}
|
|
61
|
+
function j(e, r) {
|
|
62
|
+
return j = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(s, o) {
|
|
63
|
+
return s.__proto__ = o, s;
|
|
64
|
+
}, j(e, r);
|
|
65
|
+
}
|
|
66
|
+
function Ct(e, r) {
|
|
67
|
+
e.prototype = Object.create(r.prototype), e.prototype.constructor = e, j(e, r);
|
|
68
|
+
}
|
|
69
|
+
const z = {
|
|
70
|
+
disabled: !1
|
|
71
|
+
};
|
|
72
|
+
var It = process.env.NODE_ENV !== "production" ? n.oneOfType([n.number, n.shape({
|
|
73
|
+
enter: n.number,
|
|
74
|
+
exit: n.number,
|
|
75
|
+
appear: n.number
|
|
76
|
+
}).isRequired]) : null;
|
|
77
|
+
process.env.NODE_ENV !== "production" && n.oneOfType([n.string, n.shape({
|
|
78
|
+
enter: n.string,
|
|
79
|
+
exit: n.string,
|
|
80
|
+
active: n.string
|
|
81
|
+
}), n.shape({
|
|
82
|
+
enter: n.string,
|
|
83
|
+
enterDone: n.string,
|
|
84
|
+
enterActive: n.string,
|
|
85
|
+
exit: n.string,
|
|
86
|
+
exitDone: n.string,
|
|
87
|
+
exitActive: n.string
|
|
88
|
+
})]);
|
|
89
|
+
const Y = P.createContext(null);
|
|
90
|
+
var wt = function(r) {
|
|
91
|
+
return r.scrollTop;
|
|
92
|
+
}, C = "unmounted", g = "exited", y = "entering", D = "entered", V = "exiting", E = /* @__PURE__ */ (function(e) {
|
|
93
|
+
Ct(r, e);
|
|
94
|
+
function r(o, i) {
|
|
95
|
+
var t;
|
|
96
|
+
t = e.call(this, o, i) || this;
|
|
97
|
+
var a = i, u = a && !a.isMounting ? o.enter : o.appear, c;
|
|
98
|
+
return t.appearStatus = null, o.in ? u ? (c = g, t.appearStatus = y) : c = D : o.unmountOnExit || o.mountOnEnter ? c = C : c = g, t.state = {
|
|
99
|
+
status: c
|
|
100
|
+
}, t.nextCallback = null, t;
|
|
101
|
+
}
|
|
102
|
+
r.getDerivedStateFromProps = function(i, t) {
|
|
103
|
+
var a = i.in;
|
|
104
|
+
return a && t.status === C ? {
|
|
105
|
+
status: g
|
|
106
|
+
} : null;
|
|
107
|
+
};
|
|
108
|
+
var s = r.prototype;
|
|
109
|
+
return s.componentDidMount = function() {
|
|
110
|
+
this.updateStatus(!0, this.appearStatus);
|
|
111
|
+
}, s.componentDidUpdate = function(i) {
|
|
112
|
+
var t = null;
|
|
113
|
+
if (i !== this.props) {
|
|
114
|
+
var a = this.state.status;
|
|
115
|
+
this.props.in ? a !== y && a !== D && (t = y) : (a === y || a === D) && (t = V);
|
|
116
|
+
}
|
|
117
|
+
this.updateStatus(!1, t);
|
|
118
|
+
}, s.componentWillUnmount = function() {
|
|
119
|
+
this.cancelNextCallback();
|
|
120
|
+
}, s.getTimeouts = function() {
|
|
121
|
+
var i = this.props.timeout, t, a, u;
|
|
122
|
+
return t = a = u = i, i != null && typeof i != "number" && (t = i.exit, a = i.enter, u = i.appear !== void 0 ? i.appear : a), {
|
|
123
|
+
exit: t,
|
|
124
|
+
enter: a,
|
|
125
|
+
appear: u
|
|
126
|
+
};
|
|
127
|
+
}, s.updateStatus = function(i, t) {
|
|
128
|
+
if (i === void 0 && (i = !1), t !== null)
|
|
129
|
+
if (this.cancelNextCallback(), t === y) {
|
|
130
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
131
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : L.findDOMNode(this);
|
|
132
|
+
a && wt(a);
|
|
133
|
+
}
|
|
134
|
+
this.performEnter(i);
|
|
135
|
+
} else
|
|
136
|
+
this.performExit();
|
|
137
|
+
else this.props.unmountOnExit && this.state.status === g && this.setState({
|
|
138
|
+
status: C
|
|
139
|
+
});
|
|
140
|
+
}, s.performEnter = function(i) {
|
|
141
|
+
var t = this, a = this.props.enter, u = this.context ? this.context.isMounting : i, c = this.props.nodeRef ? [u] : [L.findDOMNode(this), u], p = c[0], m = c[1], R = this.getTimeouts(), w = u ? R.appear : R.enter;
|
|
142
|
+
if (!i && !a || z.disabled) {
|
|
143
|
+
this.safeSetState({
|
|
144
|
+
status: D
|
|
145
|
+
}, function() {
|
|
146
|
+
t.props.onEntered(p);
|
|
147
|
+
});
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
this.props.onEnter(p, m), this.safeSetState({
|
|
151
|
+
status: y
|
|
152
|
+
}, function() {
|
|
153
|
+
t.props.onEntering(p, m), t.onTransitionEnd(w, function() {
|
|
154
|
+
t.safeSetState({
|
|
155
|
+
status: D
|
|
156
|
+
}, function() {
|
|
157
|
+
t.props.onEntered(p, m);
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
}, s.performExit = function() {
|
|
162
|
+
var i = this, t = this.props.exit, a = this.getTimeouts(), u = this.props.nodeRef ? void 0 : L.findDOMNode(this);
|
|
163
|
+
if (!t || z.disabled) {
|
|
164
|
+
this.safeSetState({
|
|
165
|
+
status: g
|
|
166
|
+
}, function() {
|
|
167
|
+
i.props.onExited(u);
|
|
168
|
+
});
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
this.props.onExit(u), this.safeSetState({
|
|
172
|
+
status: V
|
|
173
|
+
}, function() {
|
|
174
|
+
i.props.onExiting(u), i.onTransitionEnd(a.exit, function() {
|
|
175
|
+
i.safeSetState({
|
|
176
|
+
status: g
|
|
177
|
+
}, function() {
|
|
178
|
+
i.props.onExited(u);
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
}, s.cancelNextCallback = function() {
|
|
183
|
+
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
184
|
+
}, s.safeSetState = function(i, t) {
|
|
185
|
+
t = this.setNextCallback(t), this.setState(i, t);
|
|
186
|
+
}, s.setNextCallback = function(i) {
|
|
187
|
+
var t = this, a = !0;
|
|
188
|
+
return this.nextCallback = function(u) {
|
|
189
|
+
a && (a = !1, t.nextCallback = null, i(u));
|
|
190
|
+
}, this.nextCallback.cancel = function() {
|
|
191
|
+
a = !1;
|
|
192
|
+
}, this.nextCallback;
|
|
193
|
+
}, s.onTransitionEnd = function(i, t) {
|
|
194
|
+
this.setNextCallback(t);
|
|
195
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : L.findDOMNode(this), u = i == null && !this.props.addEndListener;
|
|
196
|
+
if (!a || u) {
|
|
197
|
+
setTimeout(this.nextCallback, 0);
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
if (this.props.addEndListener) {
|
|
201
|
+
var c = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], p = c[0], m = c[1];
|
|
202
|
+
this.props.addEndListener(p, m);
|
|
203
|
+
}
|
|
204
|
+
i != null && setTimeout(this.nextCallback, i);
|
|
205
|
+
}, s.render = function() {
|
|
206
|
+
var i = this.state.status;
|
|
207
|
+
if (i === C)
|
|
208
|
+
return null;
|
|
209
|
+
var t = this.props, a = t.children;
|
|
210
|
+
t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
|
|
211
|
+
var u = Pt(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
212
|
+
return (
|
|
213
|
+
// allows for nested Transitions
|
|
214
|
+
/* @__PURE__ */ P.createElement(Y.Provider, {
|
|
215
|
+
value: null
|
|
216
|
+
}, typeof a == "function" ? a(i, u) : P.cloneElement(P.Children.only(a), u))
|
|
217
|
+
);
|
|
218
|
+
}, r;
|
|
219
|
+
})(P.Component);
|
|
220
|
+
E.contextType = Y;
|
|
221
|
+
E.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
222
|
+
/**
|
|
223
|
+
* A React reference to DOM element that need to transition:
|
|
224
|
+
* https://stackoverflow.com/a/51127130/4671932
|
|
225
|
+
*
|
|
226
|
+
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
227
|
+
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
228
|
+
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
229
|
+
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
230
|
+
* (see
|
|
231
|
+
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
232
|
+
*/
|
|
233
|
+
nodeRef: n.shape({
|
|
234
|
+
current: typeof Element > "u" ? n.any : function(e, r, s, o, i, t) {
|
|
235
|
+
var a = e[r];
|
|
236
|
+
return n.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(e, r, s, o, i, t);
|
|
237
|
+
}
|
|
238
|
+
}),
|
|
239
|
+
/**
|
|
240
|
+
* A `function` child can be used instead of a React element. This function is
|
|
241
|
+
* called with the current transition status (`'entering'`, `'entered'`,
|
|
242
|
+
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
243
|
+
* specific props to a component.
|
|
244
|
+
*
|
|
245
|
+
* ```jsx
|
|
246
|
+
* <Transition in={this.state.in} timeout={150}>
|
|
247
|
+
* {state => (
|
|
248
|
+
* <MyComponent className={`fade fade-${state}`} />
|
|
249
|
+
* )}
|
|
250
|
+
* </Transition>
|
|
251
|
+
* ```
|
|
252
|
+
*/
|
|
253
|
+
children: n.oneOfType([n.func.isRequired, n.element.isRequired]).isRequired,
|
|
254
|
+
/**
|
|
255
|
+
* Show the component; triggers the enter or exit states
|
|
256
|
+
*/
|
|
257
|
+
in: n.bool,
|
|
258
|
+
/**
|
|
259
|
+
* By default the child component is mounted immediately along with
|
|
260
|
+
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
261
|
+
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
262
|
+
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
263
|
+
*/
|
|
264
|
+
mountOnEnter: n.bool,
|
|
265
|
+
/**
|
|
266
|
+
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
267
|
+
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
268
|
+
*/
|
|
269
|
+
unmountOnExit: n.bool,
|
|
270
|
+
/**
|
|
271
|
+
* By default the child component does not perform the enter transition when
|
|
272
|
+
* it first mounts, regardless of the value of `in`. If you want this
|
|
273
|
+
* behavior, set both `appear` and `in` to `true`.
|
|
274
|
+
*
|
|
275
|
+
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
276
|
+
* > only adds an additional enter transition. However, in the
|
|
277
|
+
* > `<CSSTransition>` component that first enter transition does result in
|
|
278
|
+
* > additional `.appear-*` classes, that way you can choose to style it
|
|
279
|
+
* > differently.
|
|
280
|
+
*/
|
|
281
|
+
appear: n.bool,
|
|
282
|
+
/**
|
|
283
|
+
* Enable or disable enter transitions.
|
|
284
|
+
*/
|
|
285
|
+
enter: n.bool,
|
|
286
|
+
/**
|
|
287
|
+
* Enable or disable exit transitions.
|
|
288
|
+
*/
|
|
289
|
+
exit: n.bool,
|
|
290
|
+
/**
|
|
291
|
+
* The duration of the transition, in milliseconds.
|
|
292
|
+
* Required unless `addEndListener` is provided.
|
|
293
|
+
*
|
|
294
|
+
* You may specify a single timeout for all transitions:
|
|
295
|
+
*
|
|
296
|
+
* ```jsx
|
|
297
|
+
* timeout={500}
|
|
298
|
+
* ```
|
|
299
|
+
*
|
|
300
|
+
* or individually:
|
|
301
|
+
*
|
|
302
|
+
* ```jsx
|
|
303
|
+
* timeout={{
|
|
304
|
+
* appear: 500,
|
|
305
|
+
* enter: 300,
|
|
306
|
+
* exit: 500,
|
|
307
|
+
* }}
|
|
308
|
+
* ```
|
|
309
|
+
*
|
|
310
|
+
* - `appear` defaults to the value of `enter`
|
|
311
|
+
* - `enter` defaults to `0`
|
|
312
|
+
* - `exit` defaults to `0`
|
|
313
|
+
*
|
|
314
|
+
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
315
|
+
*/
|
|
316
|
+
timeout: function(r) {
|
|
317
|
+
var s = It;
|
|
318
|
+
r.addEndListener || (s = s.isRequired);
|
|
319
|
+
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), t = 1; t < o; t++)
|
|
320
|
+
i[t - 1] = arguments[t];
|
|
321
|
+
return s.apply(void 0, [r].concat(i));
|
|
322
|
+
},
|
|
323
|
+
/**
|
|
324
|
+
* Add a custom transition end trigger. Called with the transitioning
|
|
325
|
+
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
326
|
+
* logic. Timeouts are still used as a fallback if provided.
|
|
327
|
+
*
|
|
328
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
329
|
+
*
|
|
330
|
+
* ```jsx
|
|
331
|
+
* addEndListener={(node, done) => {
|
|
332
|
+
* // use the css transitionend event to mark the finish of a transition
|
|
333
|
+
* node.addEventListener('transitionend', done, false);
|
|
334
|
+
* }}
|
|
335
|
+
* ```
|
|
336
|
+
*/
|
|
337
|
+
addEndListener: n.func,
|
|
338
|
+
/**
|
|
339
|
+
* Callback fired before the "entering" status is applied. An extra parameter
|
|
340
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
341
|
+
*
|
|
342
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
343
|
+
*
|
|
344
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
345
|
+
*/
|
|
346
|
+
onEnter: n.func,
|
|
347
|
+
/**
|
|
348
|
+
* Callback fired after the "entering" status is applied. An extra parameter
|
|
349
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
350
|
+
*
|
|
351
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
352
|
+
*
|
|
353
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
354
|
+
*/
|
|
355
|
+
onEntering: n.func,
|
|
356
|
+
/**
|
|
357
|
+
* Callback fired after the "entered" status is applied. An extra parameter
|
|
358
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
359
|
+
*
|
|
360
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
361
|
+
*
|
|
362
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
363
|
+
*/
|
|
364
|
+
onEntered: n.func,
|
|
365
|
+
/**
|
|
366
|
+
* Callback fired before the "exiting" status is applied.
|
|
367
|
+
*
|
|
368
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
369
|
+
*
|
|
370
|
+
* @type Function(node: HtmlElement) -> void
|
|
371
|
+
*/
|
|
372
|
+
onExit: n.func,
|
|
373
|
+
/**
|
|
374
|
+
* Callback fired after the "exiting" status is applied.
|
|
375
|
+
*
|
|
376
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
377
|
+
*
|
|
378
|
+
* @type Function(node: HtmlElement) -> void
|
|
379
|
+
*/
|
|
380
|
+
onExiting: n.func,
|
|
381
|
+
/**
|
|
382
|
+
* Callback fired after the "exited" status is applied.
|
|
383
|
+
*
|
|
384
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
385
|
+
*
|
|
386
|
+
* @type Function(node: HtmlElement) -> void
|
|
387
|
+
*/
|
|
388
|
+
onExited: n.func
|
|
389
|
+
} : {};
|
|
390
|
+
function O() {
|
|
391
|
+
}
|
|
392
|
+
E.defaultProps = {
|
|
393
|
+
in: !1,
|
|
394
|
+
mountOnEnter: !1,
|
|
395
|
+
unmountOnExit: !1,
|
|
396
|
+
appear: !1,
|
|
397
|
+
enter: !0,
|
|
398
|
+
exit: !0,
|
|
399
|
+
onEnter: O,
|
|
400
|
+
onEntering: O,
|
|
401
|
+
onEntered: O,
|
|
402
|
+
onExit: O,
|
|
403
|
+
onExiting: O,
|
|
404
|
+
onExited: O
|
|
405
|
+
};
|
|
406
|
+
E.UNMOUNTED = C;
|
|
407
|
+
E.EXITED = g;
|
|
408
|
+
E.ENTERING = y;
|
|
409
|
+
E.ENTERED = D;
|
|
410
|
+
E.EXITING = V;
|
|
411
|
+
const W = {};
|
|
412
|
+
function _t(e, r) {
|
|
413
|
+
const s = f.useRef(W);
|
|
414
|
+
return s.current === W && (s.current = e(r)), s;
|
|
415
|
+
}
|
|
416
|
+
const Lt = [];
|
|
417
|
+
function Mt(e) {
|
|
418
|
+
f.useEffect(e, Lt);
|
|
419
|
+
}
|
|
420
|
+
class U {
|
|
421
|
+
static create() {
|
|
422
|
+
return new U();
|
|
423
|
+
}
|
|
424
|
+
currentId = null;
|
|
425
|
+
/**
|
|
426
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
427
|
+
*/
|
|
428
|
+
start(r, s) {
|
|
429
|
+
this.clear(), this.currentId = setTimeout(() => {
|
|
430
|
+
this.currentId = null, s();
|
|
431
|
+
}, r);
|
|
432
|
+
}
|
|
433
|
+
clear = () => {
|
|
434
|
+
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
435
|
+
};
|
|
436
|
+
disposeEffect = () => this.clear;
|
|
437
|
+
}
|
|
438
|
+
function kt() {
|
|
439
|
+
const e = _t(U.create).current;
|
|
440
|
+
return Mt(e.disposeEffect), e;
|
|
441
|
+
}
|
|
442
|
+
const jt = (e) => e.scrollTop;
|
|
443
|
+
function N(e, r) {
|
|
444
|
+
return (s) => {
|
|
445
|
+
if (r) {
|
|
446
|
+
const o = e.current;
|
|
447
|
+
s === void 0 ? r(o) : r(o, s);
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
function Vt(e, r, s, o, i, t) {
|
|
452
|
+
const a = e === "exited" && !r ? o : s[e] || s.exited;
|
|
453
|
+
return i || t ? {
|
|
454
|
+
...a,
|
|
455
|
+
...i,
|
|
456
|
+
...t
|
|
457
|
+
} : a;
|
|
458
|
+
}
|
|
459
|
+
function B(e, r) {
|
|
460
|
+
const {
|
|
461
|
+
timeout: s,
|
|
462
|
+
easing: o,
|
|
463
|
+
style: i = {}
|
|
464
|
+
} = e;
|
|
465
|
+
return {
|
|
466
|
+
duration: i.transitionDuration ?? (typeof s == "number" ? s : s[r.mode] || 0),
|
|
467
|
+
easing: i.transitionTimingFunction ?? (typeof o == "object" ? o[r.mode] : o),
|
|
468
|
+
delay: i.transitionDelay
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
const Qt = n.oneOfType([n.func, n.object]);
|
|
472
|
+
function $t(e, r, s, o, i) {
|
|
473
|
+
if (process.env.NODE_ENV === "production")
|
|
474
|
+
return null;
|
|
475
|
+
const t = e[r], a = i || r;
|
|
476
|
+
return t == null ? null : t && t.nodeType !== 1 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${s}\`. Expected an HTMLElement.`) : null;
|
|
477
|
+
}
|
|
478
|
+
function Yt(e) {
|
|
479
|
+
const {
|
|
480
|
+
elementType: r,
|
|
481
|
+
externalSlotProps: s,
|
|
482
|
+
ownerState: o,
|
|
483
|
+
skipResolvingSlotProps: i = !1,
|
|
484
|
+
...t
|
|
485
|
+
} = e, a = i ? {} : Et(s, o), {
|
|
486
|
+
props: u,
|
|
487
|
+
internalRef: c
|
|
488
|
+
} = mt({
|
|
489
|
+
...t,
|
|
490
|
+
externalSlotProps: a
|
|
491
|
+
}), p = H(c, a?.ref, e.additionalProps?.ref);
|
|
492
|
+
return ht(r, {
|
|
493
|
+
...u,
|
|
494
|
+
ref: p
|
|
495
|
+
}, o);
|
|
496
|
+
}
|
|
497
|
+
function Zt() {
|
|
498
|
+
return !(/jsdom|HappyDOM/.test(window.navigator.userAgent) || // TODO(v9): Remove the test environment check
|
|
499
|
+
// eslint-disable-next-line mui/consistent-production-guard
|
|
500
|
+
process.env.NODE_ENV === "test");
|
|
501
|
+
}
|
|
502
|
+
function Z(e) {
|
|
503
|
+
return parseInt(f.version, 10) >= 19 ? e?.props?.ref || null : e?.ref || null;
|
|
504
|
+
}
|
|
505
|
+
function At(e) {
|
|
506
|
+
return typeof e == "function" ? e() : e;
|
|
507
|
+
}
|
|
508
|
+
const $ = /* @__PURE__ */ f.forwardRef(function(r, s) {
|
|
509
|
+
const {
|
|
510
|
+
children: o,
|
|
511
|
+
container: i,
|
|
512
|
+
disablePortal: t = !1
|
|
513
|
+
} = r, [a, u] = f.useState(null), c = H(/* @__PURE__ */ f.isValidElement(o) ? Z(o) : null, s);
|
|
514
|
+
if (G(() => {
|
|
515
|
+
t || u(At(i) || document.body);
|
|
516
|
+
}, [i, t]), G(() => {
|
|
517
|
+
if (a && !t)
|
|
518
|
+
return X(s, a), () => {
|
|
519
|
+
X(s, null);
|
|
520
|
+
};
|
|
521
|
+
}, [s, a, t]), t) {
|
|
522
|
+
if (/* @__PURE__ */ f.isValidElement(o)) {
|
|
523
|
+
const p = {
|
|
524
|
+
ref: c
|
|
525
|
+
};
|
|
526
|
+
return /* @__PURE__ */ f.cloneElement(o, p);
|
|
527
|
+
}
|
|
528
|
+
return o;
|
|
529
|
+
}
|
|
530
|
+
return a && /* @__PURE__ */ xt.createPortal(o, a);
|
|
531
|
+
});
|
|
532
|
+
process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
533
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
534
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
535
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
536
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
537
|
+
/**
|
|
538
|
+
* The children to render into the `container`.
|
|
539
|
+
*/
|
|
540
|
+
children: n.node,
|
|
541
|
+
/**
|
|
542
|
+
* An HTML element or function that returns one.
|
|
543
|
+
* The `container` will have the portal children appended to it.
|
|
544
|
+
*
|
|
545
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
546
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
547
|
+
*
|
|
548
|
+
* By default, it uses the body of the top-level document object,
|
|
549
|
+
* so it's simply `document.body` most of the time.
|
|
550
|
+
*/
|
|
551
|
+
container: n.oneOfType([$t, n.func]),
|
|
552
|
+
/**
|
|
553
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
554
|
+
* @default false
|
|
555
|
+
*/
|
|
556
|
+
disablePortal: n.bool
|
|
557
|
+
});
|
|
558
|
+
process.env.NODE_ENV !== "production" && ($.propTypes = Nt($.propTypes));
|
|
559
|
+
function Ht(e) {
|
|
560
|
+
const {
|
|
561
|
+
prototype: r = {}
|
|
562
|
+
} = e;
|
|
563
|
+
return !!r.isReactComponent;
|
|
564
|
+
}
|
|
565
|
+
function J(e, r, s, o, i) {
|
|
566
|
+
const t = e[r], a = i || r;
|
|
567
|
+
if (t == null || // When server-side rendering React doesn't warn either.
|
|
568
|
+
// This is not an accurate check for SSR.
|
|
569
|
+
// This is only in place for Emotion compat.
|
|
570
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
571
|
+
typeof window > "u")
|
|
572
|
+
return null;
|
|
573
|
+
let u;
|
|
574
|
+
const c = t.type;
|
|
575
|
+
return typeof c == "function" && !Ht(c) && (u = "Did you accidentally use a plain function component for an element instead?"), u !== void 0 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${s}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
576
|
+
}
|
|
577
|
+
const K = Q(n.element, J);
|
|
578
|
+
K.isRequired = Q(n.element.isRequired, J);
|
|
579
|
+
function I(e) {
|
|
580
|
+
return `scale(${e}, ${e ** 2})`;
|
|
581
|
+
}
|
|
582
|
+
const Ut = {
|
|
583
|
+
entering: {
|
|
584
|
+
opacity: 1,
|
|
585
|
+
transform: I(1)
|
|
586
|
+
},
|
|
587
|
+
entered: {
|
|
588
|
+
opacity: 1,
|
|
589
|
+
transform: "none"
|
|
590
|
+
},
|
|
591
|
+
exiting: {
|
|
592
|
+
opacity: 0,
|
|
593
|
+
transform: I(0.75)
|
|
594
|
+
},
|
|
595
|
+
exited: {
|
|
596
|
+
opacity: 0,
|
|
597
|
+
transform: I(0.75)
|
|
598
|
+
}
|
|
599
|
+
}, Gt = {
|
|
600
|
+
opacity: 0,
|
|
601
|
+
transform: I(0.75),
|
|
602
|
+
visibility: "hidden"
|
|
603
|
+
}, A = /* @__PURE__ */ f.forwardRef(function(r, s) {
|
|
604
|
+
const {
|
|
605
|
+
addEndListener: o,
|
|
606
|
+
appear: i = !0,
|
|
607
|
+
children: t,
|
|
608
|
+
easing: a,
|
|
609
|
+
in: u,
|
|
610
|
+
onEnter: c,
|
|
611
|
+
onEntered: p,
|
|
612
|
+
onEntering: m,
|
|
613
|
+
onExit: R,
|
|
614
|
+
onExited: w,
|
|
615
|
+
onExiting: tt,
|
|
616
|
+
style: M,
|
|
617
|
+
timeout: x = "auto",
|
|
618
|
+
...et
|
|
619
|
+
} = r, nt = kt(), k = f.useRef(), v = St(), d = f.useRef(null), ot = H(d, Z(t), s), rt = N(d, m), it = N(d, (l, _) => {
|
|
620
|
+
jt(l);
|
|
621
|
+
const {
|
|
622
|
+
duration: T,
|
|
623
|
+
delay: b,
|
|
624
|
+
easing: h
|
|
625
|
+
} = B({
|
|
626
|
+
style: M,
|
|
627
|
+
timeout: x,
|
|
628
|
+
easing: a
|
|
629
|
+
}, {
|
|
630
|
+
mode: "enter"
|
|
631
|
+
});
|
|
632
|
+
let S;
|
|
633
|
+
x === "auto" ? (S = v.transitions.getAutoHeightDuration(l.clientHeight), k.current = S) : S = T, l.style.transition = [v.transitions.create("opacity", {
|
|
634
|
+
duration: S,
|
|
635
|
+
delay: b
|
|
636
|
+
}), v.transitions.create("transform", {
|
|
637
|
+
duration: S * 0.666,
|
|
638
|
+
delay: b,
|
|
639
|
+
easing: h
|
|
640
|
+
})].join(","), c && c(l, _);
|
|
641
|
+
}), st = N(d, p), at = N(d, tt), ut = N(d, (l) => {
|
|
642
|
+
const {
|
|
643
|
+
duration: _,
|
|
644
|
+
delay: T,
|
|
645
|
+
easing: b
|
|
646
|
+
} = B({
|
|
647
|
+
style: M,
|
|
648
|
+
timeout: x,
|
|
649
|
+
easing: a
|
|
650
|
+
}, {
|
|
651
|
+
mode: "exit"
|
|
652
|
+
});
|
|
653
|
+
let h;
|
|
654
|
+
x === "auto" ? (h = v.transitions.getAutoHeightDuration(l.clientHeight), k.current = h) : h = _, l.style.transition = [v.transitions.create("opacity", {
|
|
655
|
+
duration: h,
|
|
656
|
+
delay: T
|
|
657
|
+
}), v.transitions.create("transform", {
|
|
658
|
+
duration: h * 0.666,
|
|
659
|
+
delay: T || h * 0.333,
|
|
660
|
+
easing: b
|
|
661
|
+
})].join(","), l.style.opacity = 0, l.style.transform = I(0.75), R && R(l);
|
|
662
|
+
}), ct = N(d, (l) => {
|
|
663
|
+
l.style.transition = "", w && w(l);
|
|
664
|
+
});
|
|
665
|
+
return /* @__PURE__ */ gt(E, {
|
|
666
|
+
appear: i,
|
|
667
|
+
in: u,
|
|
668
|
+
nodeRef: d,
|
|
669
|
+
onEnter: it,
|
|
670
|
+
onEntered: st,
|
|
671
|
+
onEntering: rt,
|
|
672
|
+
onExit: ut,
|
|
673
|
+
onExited: ct,
|
|
674
|
+
onExiting: at,
|
|
675
|
+
addEndListener: (l) => {
|
|
676
|
+
x === "auto" && nt.start(k.current || 0, l), o && o(d.current, l);
|
|
677
|
+
},
|
|
678
|
+
timeout: x === "auto" ? null : x,
|
|
679
|
+
...et,
|
|
680
|
+
children: (l, {
|
|
681
|
+
ownerState: _,
|
|
682
|
+
...T
|
|
683
|
+
}) => {
|
|
684
|
+
const b = Vt(l, u, Ut, Gt, M, t.props.style);
|
|
685
|
+
return /* @__PURE__ */ f.cloneElement(t, {
|
|
686
|
+
style: b,
|
|
687
|
+
ref: ot,
|
|
688
|
+
...T
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
});
|
|
693
|
+
process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
694
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
695
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
696
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
697
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
698
|
+
/**
|
|
699
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
700
|
+
* node and a done callback. Allows for more fine grained transition end
|
|
701
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
702
|
+
*/
|
|
703
|
+
addEndListener: n.func,
|
|
704
|
+
/**
|
|
705
|
+
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
706
|
+
* Set this to `false` to disable this behavior.
|
|
707
|
+
* @default true
|
|
708
|
+
*/
|
|
709
|
+
appear: n.bool,
|
|
710
|
+
/**
|
|
711
|
+
* A single child content element.
|
|
712
|
+
*/
|
|
713
|
+
children: K.isRequired,
|
|
714
|
+
/**
|
|
715
|
+
* The transition timing function.
|
|
716
|
+
* You may specify a single easing or a object containing enter and exit values.
|
|
717
|
+
*/
|
|
718
|
+
easing: n.oneOfType([n.shape({
|
|
719
|
+
enter: n.string,
|
|
720
|
+
exit: n.string
|
|
721
|
+
}), n.string]),
|
|
722
|
+
/**
|
|
723
|
+
* If `true`, the component will transition in.
|
|
724
|
+
*/
|
|
725
|
+
in: n.bool,
|
|
726
|
+
/**
|
|
727
|
+
* @ignore
|
|
728
|
+
*/
|
|
729
|
+
onEnter: n.func,
|
|
730
|
+
/**
|
|
731
|
+
* @ignore
|
|
732
|
+
*/
|
|
733
|
+
onEntered: n.func,
|
|
734
|
+
/**
|
|
735
|
+
* @ignore
|
|
736
|
+
*/
|
|
737
|
+
onEntering: n.func,
|
|
738
|
+
/**
|
|
739
|
+
* @ignore
|
|
740
|
+
*/
|
|
741
|
+
onExit: n.func,
|
|
742
|
+
/**
|
|
743
|
+
* @ignore
|
|
744
|
+
*/
|
|
745
|
+
onExited: n.func,
|
|
746
|
+
/**
|
|
747
|
+
* @ignore
|
|
748
|
+
*/
|
|
749
|
+
onExiting: n.func,
|
|
750
|
+
/**
|
|
751
|
+
* @ignore
|
|
752
|
+
*/
|
|
753
|
+
style: n.object,
|
|
754
|
+
/**
|
|
755
|
+
* The duration for the transition, in milliseconds.
|
|
756
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
757
|
+
*
|
|
758
|
+
* Set to 'auto' to automatically calculate transition time based on height.
|
|
759
|
+
* @default 'auto'
|
|
760
|
+
*/
|
|
761
|
+
timeout: n.oneOfType([n.oneOf(["auto"]), n.number, n.shape({
|
|
762
|
+
appear: n.number,
|
|
763
|
+
enter: n.number,
|
|
764
|
+
exit: n.number
|
|
765
|
+
})])
|
|
766
|
+
});
|
|
767
|
+
A && (A.muiSupportAuto = !0);
|
|
768
|
+
export {
|
|
769
|
+
A as G,
|
|
770
|
+
$t as H,
|
|
771
|
+
$ as P,
|
|
772
|
+
U as T,
|
|
773
|
+
Ct as _,
|
|
774
|
+
E as a,
|
|
775
|
+
Y as b,
|
|
776
|
+
Pt as c,
|
|
777
|
+
Nt as d,
|
|
778
|
+
K as e,
|
|
779
|
+
Vt as f,
|
|
780
|
+
Z as g,
|
|
781
|
+
B as h,
|
|
782
|
+
Zt as i,
|
|
783
|
+
jt as j,
|
|
784
|
+
_t as k,
|
|
785
|
+
Yt as l,
|
|
786
|
+
St as m,
|
|
787
|
+
N as n,
|
|
788
|
+
bt as o,
|
|
789
|
+
vt as p,
|
|
790
|
+
kt as q,
|
|
791
|
+
Qt as r,
|
|
792
|
+
X as s,
|
|
793
|
+
Bt as u
|
|
794
|
+
};
|