kdpa-components 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +15 -0
- package/dist/index.js +281 -175
- package/dist/index.js.map +1 -0
- package/dist/types/App.d.ts +3 -0
- package/dist/types/App.d.ts.map +1 -0
- package/dist/types/components/Accordion/KdpaAccordions.d.ts +11 -0
- package/dist/types/components/Accordion/KdpaAccordions.d.ts.map +1 -0
- package/dist/types/components/Accordion/KdpaAccordions.stories.d.ts +7 -0
- package/dist/types/components/Accordion/KdpaAccordions.stories.d.ts.map +1 -0
- package/dist/types/components/Alert/KdpaAlert.d.ts +6 -0
- package/dist/types/components/Alert/KdpaAlert.d.ts.map +1 -0
- package/dist/types/components/Alert/KdpaAlert.stories.d.ts +8 -0
- package/dist/types/components/Alert/KdpaAlert.stories.d.ts.map +1 -0
- package/dist/types/components/Alert/KdpaAlertTitle.d.ts +5 -0
- package/dist/types/components/Alert/KdpaAlertTitle.d.ts.map +1 -0
- package/dist/types/components/Avatar/KdpaAvatar.d.ts +5 -0
- package/dist/types/components/Avatar/KdpaAvatar.d.ts.map +1 -0
- package/dist/types/components/Avatar/KdpaAvatar.stories.d.ts +8 -0
- package/dist/types/components/Avatar/KdpaAvatar.stories.d.ts.map +1 -0
- package/dist/types/components/Badge/KdpaBadge/KdpaBadge.d.ts +12 -0
- package/dist/types/components/Badge/KdpaBadge/KdpaBadge.d.ts.map +1 -0
- package/dist/types/components/Badge/KdpaBadge/KdpaBadge.stories.d.ts +8 -0
- package/dist/types/components/Badge/KdpaBadge/KdpaBadge.stories.d.ts.map +1 -0
- package/dist/types/components/Badge/KdpaGridBadge/KdpaGridBadge.d.ts +13 -0
- package/dist/types/components/Badge/KdpaGridBadge/KdpaGridBadge.d.ts.map +1 -0
- package/dist/types/components/Badge/KdpaMuiBadge/KdpaMuiBadge.d.ts +5 -0
- package/dist/types/components/Badge/KdpaMuiBadge/KdpaMuiBadge.d.ts.map +1 -0
- package/dist/types/components/Buttons/KdpaButton/KdpaButton.d.ts +9 -0
- package/dist/types/components/Buttons/KdpaButton/KdpaButton.d.ts.map +1 -0
- package/dist/types/components/Buttons/KdpaIconButton/KdpaIconButton.d.ts +12 -0
- package/dist/types/components/Buttons/KdpaIconButton/KdpaIconButton.d.ts.map +1 -0
- package/dist/types/components/Buttons/KdpaPrimaryButton/KdpaPrimaryButton.stories.d.ts +8 -0
- package/dist/types/components/Buttons/KdpaPrimaryButton/KdpaPrimaryButton.stories.d.ts.map +1 -0
- package/dist/types/components/Buttons/KdpaPrimaryButton/KpdaPrimaryButton.d.ts +12 -0
- package/dist/types/components/Buttons/KdpaPrimaryButton/KpdaPrimaryButton.d.ts.map +1 -0
- package/dist/types/components/Buttons/KdpaSecondaryButton/KdpaSecondaryButton.d.ts +12 -0
- package/dist/types/components/Buttons/KdpaSecondaryButton/KdpaSecondaryButton.d.ts.map +1 -0
- package/dist/types/components/Cards/KdpaCardContent.d.ts +5 -0
- package/dist/types/components/Cards/KdpaCardContent.d.ts.map +1 -0
- package/dist/types/components/Cards/KdpaCardContent.stories.d.ts +7 -0
- package/dist/types/components/Cards/KdpaCardContent.stories.d.ts.map +1 -0
- package/dist/types/components/CheckBox/KdpaCheckBox.d.ts +6 -0
- package/dist/types/components/CheckBox/KdpaCheckBox.d.ts.map +1 -0
- package/dist/types/components/CheckBox/KdpaCheckBox.stories.d.ts +8 -0
- package/dist/types/components/CheckBox/KdpaCheckBox.stories.d.ts.map +1 -0
- package/dist/types/components/Chip/KdpaChip.d.ts +14 -0
- package/dist/types/components/Chip/KdpaChip.d.ts.map +1 -0
- package/dist/types/components/Chip/KdpaChip.stories.d.ts +8 -0
- package/dist/types/components/Chip/KdpaChip.stories.d.ts.map +1 -0
- package/dist/types/components/Collapse/KdpaCollapse.d.ts +5 -0
- package/dist/types/components/Collapse/KdpaCollapse.d.ts.map +1 -0
- package/dist/types/components/Collapse/KdpaCollapse.stories.d.ts +7 -0
- package/dist/types/components/Collapse/KdpaCollapse.stories.d.ts.map +1 -0
- package/dist/types/components/CopyToClipboard/KdpaCopyToClipboard.d.ts +9 -0
- package/dist/types/components/CopyToClipboard/KdpaCopyToClipboard.d.ts.map +1 -0
- package/dist/types/components/CopyToClipboard/KdpaCopyToClipboard.stories.d.ts +8 -0
- package/dist/types/components/CopyToClipboard/KdpaCopyToClipboard.stories.d.ts.map +1 -0
- package/dist/types/components/Divider/KdpaDivider.d.ts +8 -0
- package/dist/types/components/Divider/KdpaDivider.d.ts.map +1 -0
- package/dist/types/components/Divider/KdpaDivider.stories.d.ts +8 -0
- package/dist/types/components/Divider/KdpaDivider.stories.d.ts.map +1 -0
- package/dist/types/components/DropZone/DroppedFiles.d.ts +7 -0
- package/dist/types/components/DropZone/DroppedFiles.d.ts.map +1 -0
- package/dist/types/components/DropZone/KdpaDropZone.d.ts +3 -0
- package/dist/types/components/DropZone/KdpaDropZone.d.ts.map +1 -0
- package/dist/types/components/DropZone/KdpaDropZone.stories.d.ts +7 -0
- package/dist/types/components/DropZone/KdpaDropZone.stories.d.ts.map +1 -0
- package/dist/types/components/FormControl/KdpaFormControl/KdpaFormControl.d.ts +5 -0
- package/dist/types/components/FormControl/KdpaFormControl/KdpaFormControl.d.ts.map +1 -0
- package/dist/types/components/FormControl/KdpaFormControlLabel/KdpaFormControlLabel.d.ts +5 -0
- package/dist/types/components/FormControl/KdpaFormControlLabel/KdpaFormControlLabel.d.ts.map +1 -0
- package/dist/types/components/FullScreenDialog/KdpaFullScreenDialog.d.ts +5 -0
- package/dist/types/components/FullScreenDialog/KdpaFullScreenDialog.d.ts.map +1 -0
- package/dist/types/components/Grid/KdpaGrid.d.ts +5 -0
- package/dist/types/components/Grid/KdpaGrid.d.ts.map +1 -0
- package/dist/types/components/Input/KdpaInput/KdpaInput.d.ts +6 -0
- package/dist/types/components/Input/KdpaInput/KdpaInput.d.ts.map +1 -0
- package/dist/types/components/Input/KdpaInput/KdpaInput.stories.d.ts +8 -0
- package/dist/types/components/Input/KdpaInput/KdpaInput.stories.d.ts.map +1 -0
- package/dist/types/components/Input/KdpaInputLabel/KdpaInputLabel.d.ts +5 -0
- package/dist/types/components/Input/KdpaInputLabel/KdpaInputLabel.d.ts.map +1 -0
- package/dist/types/components/Input/KdpaInputMultiline/KdpaInputMultiline.d.ts +6 -0
- package/dist/types/components/Input/KdpaInputMultiline/KdpaInputMultiline.d.ts.map +1 -0
- package/dist/types/components/LazyDrop/KdpaLazyDrop.d.ts +16 -0
- package/dist/types/components/LazyDrop/KdpaLazyDrop.d.ts.map +1 -0
- package/dist/types/components/LazyDrop/KdpaLazyDrop.stories.d.ts +7 -0
- package/dist/types/components/LazyDrop/KdpaLazyDrop.stories.d.ts.map +1 -0
- package/dist/types/components/Loading/KdpaInlineSpinner/KdpaInlineSpinner.d.ts +11 -0
- package/dist/types/components/Loading/KdpaInlineSpinner/KdpaInlineSpinner.d.ts.map +1 -0
- package/dist/types/components/Loading/KdpaInlineSpinner/KdpaInlineSpinner.stories.d.ts +7 -0
- package/dist/types/components/Loading/KdpaInlineSpinner/KdpaInlineSpinner.stories.d.ts.map +1 -0
- package/dist/types/components/Loading/KdpaLoading/KdpaLoading.d.ts +14 -0
- package/dist/types/components/Loading/KdpaLoading/KdpaLoading.d.ts.map +1 -0
- package/dist/types/components/Loading/KdpaLoading/KdpaLoading.stories.d.ts +7 -0
- package/dist/types/components/Loading/KdpaLoading/KdpaLoading.stories.d.ts.map +1 -0
- package/dist/types/components/Loading/KdpaProgress/KdpaCircularProgress.d.ts +7 -0
- package/dist/types/components/Loading/KdpaProgress/KdpaCircularProgress.d.ts.map +1 -0
- package/dist/types/components/Loading/KdpaProgress/KdpaCircularProgress.stories.d.ts +7 -0
- package/dist/types/components/Loading/KdpaProgress/KdpaCircularProgress.stories.d.ts.map +1 -0
- package/dist/types/components/Loading/KdpaSkeleton/KdpaSkeleton.d.ts +5 -0
- package/dist/types/components/Loading/KdpaSkeleton/KdpaSkeleton.d.ts.map +1 -0
- package/dist/types/components/Loading/KdpaSkeleton/KdpaSkeleton.stories.d.ts +7 -0
- package/dist/types/components/Loading/KdpaSkeleton/KdpaSkeleton.stories.d.ts.map +1 -0
- package/dist/types/components/Loading/kdpaLoading.stories.d.ts +8 -0
- package/dist/types/components/Loading/kdpaLoading.stories.d.ts.map +1 -0
- package/dist/types/components/Modal/KdpaModal/KdpaModal.d.ts +14 -0
- package/dist/types/components/Modal/KdpaModal/KdpaModal.d.ts.map +1 -0
- package/dist/types/components/Modal/KdpaModal/KdpaModal.stories.d.ts +7 -0
- package/dist/types/components/Modal/KdpaModal/KdpaModal.stories.d.ts.map +1 -0
- package/dist/types/components/Modal/KdpaModalImage/KdpaModalImage.d.ts +3 -0
- package/dist/types/components/Modal/KdpaModalImage/KdpaModalImage.d.ts.map +1 -0
- package/dist/types/components/Modal/KdpaModalImage/KdpaModalImage.stories.d.ts +7 -0
- package/dist/types/components/Modal/KdpaModalImage/KdpaModalImage.stories.d.ts.map +1 -0
- package/dist/types/components/PaginationGrid/KdpaPaginationGrid.d.ts +17 -0
- package/dist/types/components/PaginationGrid/KdpaPaginationGrid.d.ts.map +1 -0
- package/dist/types/components/PaginationGrid/KdpaPaginationGrid.stories.d.ts +8 -0
- package/dist/types/components/PaginationGrid/KdpaPaginationGrid.stories.d.ts.map +1 -0
- package/dist/types/components/Pickers/KdpaDatePicker/KdpaDatePicker.d.ts +5 -0
- package/dist/types/components/Pickers/KdpaDatePicker/KdpaDatePicker.d.ts.map +1 -0
- package/dist/types/components/Pickers/KdpaDatePicker/KdpaDatePicker.stories.d.ts +8 -0
- package/dist/types/components/Pickers/KdpaDatePicker/KdpaDatePicker.stories.d.ts.map +1 -0
- package/dist/types/components/Pickers/KdpaDateTimePicker/KdpaDateTimePicker.d.ts +5 -0
- package/dist/types/components/Pickers/KdpaDateTimePicker/KdpaDateTimePicker.d.ts.map +1 -0
- package/dist/types/components/Pickers/KdpaDateTimePicker/KdpaDateTimePicker.stories.d.ts +8 -0
- package/dist/types/components/Pickers/KdpaDateTimePicker/KdpaDateTimePicker.stories.d.ts.map +1 -0
- package/dist/types/components/Pickers/KdpaTimePicker/KdpaTimePicker.d.ts +5 -0
- package/dist/types/components/Pickers/KdpaTimePicker/KdpaTimePicker.d.ts.map +1 -0
- package/dist/types/components/Pickers/KdpaTimePicker/KdpaTimePicker.stories.d.ts +8 -0
- package/dist/types/components/Pickers/KdpaTimePicker/KdpaTimePicker.stories.d.ts.map +1 -0
- package/dist/types/components/Radio/KdpaRadio/KdpaRadio.d.ts +6 -0
- package/dist/types/components/Radio/KdpaRadio/KdpaRadio.d.ts.map +1 -0
- package/dist/types/components/Radio/KdpaRadio/KdpaRadio.stories.d.ts +8 -0
- package/dist/types/components/Radio/KdpaRadio/KdpaRadio.stories.d.ts.map +1 -0
- package/dist/types/components/Radio/KdpaRadioGroup/KdpaRadioGroup.d.ts +5 -0
- package/dist/types/components/Radio/KdpaRadioGroup/KdpaRadioGroup.d.ts.map +1 -0
- package/dist/types/components/Segment/KdpaSegment.d.ts +12 -0
- package/dist/types/components/Segment/KdpaSegment.d.ts.map +1 -0
- package/dist/types/components/Segment/KdpaSegment.stories.d.ts +8 -0
- package/dist/types/components/Segment/KdpaSegment.stories.d.ts.map +1 -0
- package/dist/types/components/Selects/KdpaAutoComplete/KdpaAutoComplete.d.ts +5 -0
- package/dist/types/components/Selects/KdpaAutoComplete/KdpaAutoComplete.d.ts.map +1 -0
- package/dist/types/components/Selects/KdpaAutoComplete/KdpaAutoComplete.stories.d.ts +8 -0
- package/dist/types/components/Selects/KdpaAutoComplete/KdpaAutoComplete.stories.d.ts.map +1 -0
- package/dist/types/components/Selects/KdpaMenuItem/KdpaMenuItem.d.ts +5 -0
- package/dist/types/components/Selects/KdpaMenuItem/KdpaMenuItem.d.ts.map +1 -0
- package/dist/types/components/Selects/KdpaSelect/KdpaSelect.d.ts +6 -0
- package/dist/types/components/Selects/KdpaSelect/KdpaSelect.d.ts.map +1 -0
- package/dist/types/components/Selects/KdpaSelect/KdpaSelect.stories.d.ts +8 -0
- package/dist/types/components/Selects/KdpaSelect/KdpaSelect.stories.d.ts.map +1 -0
- package/dist/types/components/Slider/KdpaSlider.d.ts +6 -0
- package/dist/types/components/Slider/KdpaSlider.d.ts.map +1 -0
- package/dist/types/components/Slider/KdpaSlider.stories.d.ts +8 -0
- package/dist/types/components/Slider/KdpaSlider.stories.d.ts.map +1 -0
- package/dist/types/components/SweetAlerts/KdpaSweetAlertConfirm/KdpaSweetAlertConfirm.d.ts +40 -0
- package/dist/types/components/SweetAlerts/KdpaSweetAlertConfirm/KdpaSweetAlertConfirm.d.ts.map +1 -0
- package/dist/types/components/SweetAlerts/KdpaSweetAlertDelete/KdpaSweetAlertDelete.d.ts +7 -0
- package/dist/types/components/SweetAlerts/KdpaSweetAlertDelete/KdpaSweetAlertDelete.d.ts.map +1 -0
- package/dist/types/components/SweetAlerts/KdpaSweetAlertOK/KdpaSweetAlertOK.d.ts +8 -0
- package/dist/types/components/SweetAlerts/KdpaSweetAlertOK/KdpaSweetAlertOK.d.ts.map +1 -0
- package/dist/types/components/Switch/KdpaSwitch.d.ts +6 -0
- package/dist/types/components/Switch/KdpaSwitch.d.ts.map +1 -0
- package/dist/types/components/Switch/KdpaSwitch.stories.d.ts +8 -0
- package/dist/types/components/Switch/KdpaSwitch.stories.d.ts.map +1 -0
- package/dist/types/components/Tabs/KdpaTab/KdpaTab.d.ts +6 -0
- package/dist/types/components/Tabs/KdpaTab/KdpaTab.d.ts.map +1 -0
- package/dist/types/components/Tabs/KdpaTabs/KdpaTabs.d.ts +5 -0
- package/dist/types/components/Tabs/KdpaTabs/KdpaTabs.d.ts.map +1 -0
- package/dist/types/components/Tabs/KdpaTabs/KdpaTabs.stories.d.ts +8 -0
- package/dist/types/components/Tabs/KdpaTabs/KdpaTabs.stories.d.ts.map +1 -0
- package/dist/types/components/ThemeProvider/KdpaRtlProvider.d.ts +7 -0
- package/dist/types/components/ThemeProvider/KdpaRtlProvider.d.ts.map +1 -0
- package/dist/types/components/ThemeProvider/KdpaThemeProvider.d.ts +8 -0
- package/dist/types/components/ThemeProvider/KdpaThemeProvider.d.ts.map +1 -0
- package/dist/types/components/Tooltips/KdpaTooltip.d.ts +5 -0
- package/dist/types/components/Tooltips/KdpaTooltip.d.ts.map +1 -0
- package/dist/types/components/Tooltips/KdpaTooltip.stories.d.ts +7 -0
- package/dist/types/components/Tooltips/KdpaTooltip.stories.d.ts.map +1 -0
- package/dist/types/components/Transitions/KdpaCollapse/KdpaCollapse.d.ts +5 -0
- package/dist/types/components/Transitions/KdpaCollapse/KdpaCollapse.d.ts.map +1 -0
- package/dist/types/components/Transitions/KdpaFade/KdpaFade.d.ts +6 -0
- package/dist/types/components/Transitions/KdpaFade/KdpaFade.d.ts.map +1 -0
- package/dist/types/components/Transitions/KdpaGrow/KdpaGrow.d.ts +5 -0
- package/dist/types/components/Transitions/KdpaGrow/KdpaGrow.d.ts.map +1 -0
- package/dist/types/components/Transitions/KdpaSlide/KdpaSlide.d.ts +5 -0
- package/dist/types/components/Transitions/KdpaSlide/KdpaSlide.d.ts.map +1 -0
- package/dist/types/components/Transitions/KdpaZoom/KdpaZoom.d.ts +5 -0
- package/dist/types/components/Transitions/KdpaZoom/KdpaZoom.d.ts.map +1 -0
- package/dist/types/components/Tree/KdpaTree.d.ts +7 -0
- package/dist/types/components/Tree/KdpaTree.d.ts.map +1 -0
- package/dist/types/components/Tree/KdpaTree.stories.d.ts +7 -0
- package/dist/types/components/Tree/KdpaTree.stories.d.ts.map +1 -0
- package/dist/types/components/TreeSelect/KdpaTreeSelect.d.ts +6 -0
- package/dist/types/components/TreeSelect/KdpaTreeSelect.d.ts.map +1 -0
- package/dist/types/components/Typography/KdpaTypography.d.ts +5 -0
- package/dist/types/components/Typography/KdpaTypography.d.ts.map +1 -0
- package/dist/types/components/Typography/KdpaTypography.stories.d.ts +7 -0
- package/dist/types/components/Typography/KdpaTypography.stories.d.ts.map +1 -0
- package/dist/types/components/Uploader/KdpaFileUploader/KdpaFileUploader.d.ts +10 -0
- package/dist/types/components/Uploader/KdpaFileUploader/KdpaFileUploader.d.ts.map +1 -0
- package/dist/types/config/Theme.d.ts +41 -0
- package/dist/types/config/Theme.d.ts.map +1 -0
- package/dist/types/main.d.ts +2 -0
- package/dist/types/main.d.ts.map +1 -0
- package/package.json +15 -6
- package/dist/Accordion/index.js +0 -30
- package/dist/Alert/index.js +0 -30
- package/dist/ArrowDropDown-dc6755c2.js +0 -34
- package/dist/Avatar/index.js +0 -11
- package/dist/Badge/index.js +0 -41
- package/dist/Box-3802fce2.js +0 -57
- package/dist/Button-6f4a3755.js +0 -354
- package/dist/ButtonBase-5c28f01f.js +0 -654
- package/dist/Buttons/index.js +0 -45
- package/dist/CSSTransition-33c53ca5.js +0 -215
- package/dist/Cards/index.js +0 -150
- package/dist/CheckBox/index.js +0 -26
- package/dist/Chip/index.js +0 -34
- package/dist/Chip-9e065b58.js +0 -443
- package/dist/CircularProgress-af64fdbf.js +0 -216
- package/dist/Close-b6f5c836.js +0 -9
- package/dist/Collapse/index.js +0 -19
- package/dist/Collapse-92cc94cb.js +0 -298
- package/dist/CopyToClipboard/index.js +0 -43
- package/dist/Dialog-b725c26b.js +0 -355
- package/dist/Divider/index.js +0 -11
- package/dist/DropZone/index.js +0 -55
- package/dist/Fade-1c357758.js +0 -162
- package/dist/FormControl/index.js +0 -19
- package/dist/FormControl-97957e4f.js +0 -231
- package/dist/FullScreenDialog/index.js +0 -32
- package/dist/Grid/index.js +0 -13
- package/dist/Grid-850ef4f2.js +0 -483
- package/dist/Grow-24c548e6.js +0 -192
- package/dist/HTMLElementType-ff213f3c.js +0 -9
- package/dist/IconButton-fba0ed7c.js +0 -183
- package/dist/Input/index.js +0 -45
- package/dist/KdpaAccordions-4e2588f4.js +0 -476
- package/dist/KdpaAlertTitle-109f041b.js +0 -401
- package/dist/KdpaAutoComplete-8a0b5819.js +0 -1676
- package/dist/KdpaAvatar-1e69ee8a.js +0 -211
- package/dist/KdpaCheckBox-8126f41c.js +0 -206
- package/dist/KdpaChip-08b073e4.js +0 -51
- package/dist/KdpaCircularProgress-0994a51b.js +0 -76
- package/dist/KdpaCollapse-1192ec9d.js +0 -23
- package/dist/KdpaCollapse-64ab606b.js +0 -12
- package/dist/KdpaCopyToClipboard-5a7cda0f.js +0 -591
- package/dist/KdpaDateTimePicker-1d8b4ddf.js +0 -14329
- package/dist/KdpaDivider-efb3409f.js +0 -261
- package/dist/KdpaDropZone-66785757.js +0 -1549
- package/dist/KdpaFileUploader-76386b1b.js +0 -71
- package/dist/KdpaFormControl-a029e3f5.js +0 -10
- package/dist/KdpaFormControlLabel-bda90e8b.js +0 -221
- package/dist/KdpaFullScreenDialog-fc278bee.js +0 -24
- package/dist/KdpaGrid-f4c1f6c9.js +0 -12
- package/dist/KdpaGridBadge-5add47e7.js +0 -441
- package/dist/KdpaIconButton-cbc0c62f.js +0 -35
- package/dist/KdpaInputMultiline-53388d0f.js +0 -69
- package/dist/KdpaLazyDrop-8db698c8.js +0 -838
- package/dist/KdpaMenuItem-dccdad8f.js +0 -56
- package/dist/KdpaModalImage-eb732bf0.js +0 -759
- package/dist/KdpaPaginationGrid-5c10bac2.js +0 -807
- package/dist/KdpaRadioGroup-aca6fb7e.js +0 -425
- package/dist/KdpaRtlProvider-19d72cf3.js +0 -512
- package/dist/KdpaSecondaryButton-9f8aaf52.js +0 -37
- package/dist/KdpaSegment-021e3f97.js +0 -107
- package/dist/KdpaSkeleton-adcb9090.js +0 -580
- package/dist/KdpaSlider-88d89d28.js +0 -1327
- package/dist/KdpaSweetAlertOK-b598a493.js +0 -1540
- package/dist/KdpaSwitch-6961d764.js +0 -320
- package/dist/KdpaTabs-406b84af.js +0 -50
- package/dist/KdpaTooltip-32bcbd3a.js +0 -604
- package/dist/KdpaTree-2e1df83d.js +0 -1490
- package/dist/KdpaTreeSelect-0152302e.js +0 -6925
- package/dist/KdpaTypography-41260145.js +0 -10
- package/dist/KdpaZoom-f9e2421d.js +0 -22
- package/dist/KpdaPrimaryButton-4d1a2a01.js +0 -66
- package/dist/LazyDrop/index.js +0 -44
- package/dist/ListContext-de5072f9.js +0 -7
- package/dist/ListItem-1702df53.js +0 -425
- package/dist/Loading/KdpaProgress/index.js +0 -17
- package/dist/Loading/index.js +0 -23
- package/dist/MenuItem-273cef83.js +0 -235
- package/dist/Modal/index.js +0 -6
- package/dist/Modal-c24d4251.js +0 -983
- package/dist/PaginationGrid/index.js +0 -57
- package/dist/Paper-05bfa47c.js +0 -162
- package/dist/Pickers/index.js +0 -65
- package/dist/Popper-f770b94a.js +0 -489
- package/dist/Portal-dd8fc02d.js +0 -76
- package/dist/Radio/index.js +0 -30
- package/dist/Segment/index.js +0 -24
- package/dist/Selects/index.js +0 -62
- package/dist/Slide-3ab9ed7e.js +0 -226
- package/dist/Slider/index.js +0 -18
- package/dist/SweetAlerts/index.js +0 -9
- package/dist/Switch/index.js +0 -25
- package/dist/SwitchBase-6f1db066.js +0 -230
- package/dist/Tabs/index.js +0 -30
- package/dist/Tabs-27c129bc.js +0 -1086
- package/dist/TextField-235476b8.js +0 -4435
- package/dist/ThemeProvider/index.js +0 -11
- package/dist/Tooltips/index.js +0 -32
- package/dist/TransitionGroup-4455ec58.js +0 -185
- package/dist/TransitionGroupContext-7435e195.js +0 -10
- package/dist/Transitions/index.js +0 -32
- package/dist/Tree/index.js +0 -9
- package/dist/TreeSelect/index.js +0 -12
- package/dist/Typography/index.js +0 -12
- package/dist/Typography-61b5fcc6.js +0 -175
- package/dist/Uploader/index.js +0 -41
- package/dist/Zoom-04b360c3.js +0 -162
- package/dist/_commonjsHelpers-e7ea1525.js +0 -36
- package/dist/assertThisInitialized-05701a63.js +0 -8
- package/dist/chainPropTypes-004bf492.js +0 -8
- package/dist/createChainedFunction-68e2a88d.js +0 -9
- package/dist/createSvgIcon-c9758670.js +0 -181
- package/dist/dividerClasses-3e4bf0c4.js +0 -10
- package/dist/elementAcceptingRef-57c4a2aa.js +0 -26
- package/dist/elementTypeAcceptingRef-4123bc65.js +0 -23
- package/dist/emotion-react.browser.esm-f699ec83.js +0 -425
- package/dist/exactProp-86f148d5.js +0 -13
- package/dist/extendSxProp-7224bd4f.js +0 -30
- package/dist/extends-135d7828.js +0 -22
- package/dist/formControlState-9148c46f.js +0 -10
- package/dist/iconBase-800b43ff.js +0 -63
- package/dist/identifier-03e07987.js +0 -3775
- package/dist/index-1d8c2939.js +0 -43
- package/dist/index-8546b614.js +0 -12011
- package/dist/index.esm-b78383d3.js +0 -35
- package/dist/isMuiElement-b88a921a.js +0 -7
- package/dist/jsx-dev-runtime-48fdc504.js +0 -615
- package/dist/kdpaSelect-4ed993c7.js +0 -1
- package/dist/listItemTextClasses-cec9a79d.js +0 -10
- package/dist/ownerDocument-5430cd5b.js +0 -6
- package/dist/ownerWindow-e6cc3097.js +0 -20
- package/dist/popper-78c6b162.js +0 -1006
- package/dist/refType-7413f8aa.js +0 -5
- package/dist/setPrototypeOf-98a00546.js +0 -8
- package/dist/style.css +0 -1
- package/dist/unsupportedProp-3dbf01f6.js +0 -9
- package/dist/useControlled-cc2d41cb.js +0 -31
- package/dist/useEventCallback-83a2883c.js +0 -16
- package/dist/useForkRef-0781dda0.js +0 -15
- package/dist/useFormControl-af690c26.js +0 -11
- package/dist/useId-a21bd5c3.js +0 -19
- package/dist/useIsFocusVisible-4693b580.js +0 -68
- package/dist/usePreviousProps-c1ae4548.js +0 -10
- package/dist/useSlotProps-c2f5d9e5.js +0 -74
- package/dist/useTheme-02c27d78.js +0 -10
- package/dist/useThemeProps-d77fc01d.js +0 -694
- package/dist/utils-edf3c680.js +0 -370
- /package/dist/{Accordion → types/components/Accordion}/index.d.ts +0 -0
- /package/dist/{Accordion → types/components/Accordion}/index.d.ts.map +0 -0
- /package/dist/{Alert → types/components/Alert}/index.d.ts +0 -0
- /package/dist/{Alert → types/components/Alert}/index.d.ts.map +0 -0
- /package/dist/{Avatar → types/components/Avatar}/index.d.ts +0 -0
- /package/dist/{Avatar → types/components/Avatar}/index.d.ts.map +0 -0
- /package/dist/{Badge → types/components/Badge}/index.d.ts +0 -0
- /package/dist/{Badge → types/components/Badge}/index.d.ts.map +0 -0
- /package/dist/{Buttons → types/components/Buttons}/index.d.ts +0 -0
- /package/dist/{Buttons → types/components/Buttons}/index.d.ts.map +0 -0
- /package/dist/{Cards → types/components/Cards}/index.d.ts +0 -0
- /package/dist/{Cards → types/components/Cards}/index.d.ts.map +0 -0
- /package/dist/{CheckBox → types/components/CheckBox}/index.d.ts +0 -0
- /package/dist/{CheckBox → types/components/CheckBox}/index.d.ts.map +0 -0
- /package/dist/{Chip → types/components/Chip}/index.d.ts +0 -0
- /package/dist/{Chip → types/components/Chip}/index.d.ts.map +0 -0
- /package/dist/{Collapse → types/components/Collapse}/index.d.ts +0 -0
- /package/dist/{Collapse → types/components/Collapse}/index.d.ts.map +0 -0
- /package/dist/{CopyToClipboard → types/components/CopyToClipboard}/index.d.ts +0 -0
- /package/dist/{CopyToClipboard → types/components/CopyToClipboard}/index.d.ts.map +0 -0
- /package/dist/{Divider → types/components/Divider}/index.d.ts +0 -0
- /package/dist/{Divider → types/components/Divider}/index.d.ts.map +0 -0
- /package/dist/{DropZone → types/components/DropZone}/index.d.ts +0 -0
- /package/dist/{DropZone → types/components/DropZone}/index.d.ts.map +0 -0
- /package/dist/{FormControl → types/components/FormControl}/index.d.ts +0 -0
- /package/dist/{FormControl → types/components/FormControl}/index.d.ts.map +0 -0
- /package/dist/{FullScreenDialog → types/components/FullScreenDialog}/index.d.ts +0 -0
- /package/dist/{FullScreenDialog → types/components/FullScreenDialog}/index.d.ts.map +0 -0
- /package/dist/{Grid → types/components/Grid}/index.d.ts +0 -0
- /package/dist/{Grid → types/components/Grid}/index.d.ts.map +0 -0
- /package/dist/{Input → types/components/Input}/index.d.ts +0 -0
- /package/dist/{Input → types/components/Input}/index.d.ts.map +0 -0
- /package/dist/{LazyDrop → types/components/LazyDrop}/index.d.ts +0 -0
- /package/dist/{LazyDrop → types/components/LazyDrop}/index.d.ts.map +0 -0
- /package/dist/{Loading → types/components/Loading}/KdpaProgress/index.d.ts +0 -0
- /package/dist/{Loading → types/components/Loading}/KdpaProgress/index.d.ts.map +0 -0
- /package/dist/{Loading → types/components/Loading}/index.d.ts +0 -0
- /package/dist/{Loading → types/components/Loading}/index.d.ts.map +0 -0
- /package/dist/{Modal → types/components/Modal}/index.d.ts +0 -0
- /package/dist/{Modal → types/components/Modal}/index.d.ts.map +0 -0
- /package/dist/{PaginationGrid → types/components/PaginationGrid}/index.d.ts +0 -0
- /package/dist/{PaginationGrid → types/components/PaginationGrid}/index.d.ts.map +0 -0
- /package/dist/{Pickers → types/components/Pickers}/index.d.ts +0 -0
- /package/dist/{Pickers → types/components/Pickers}/index.d.ts.map +0 -0
- /package/dist/{Radio → types/components/Radio}/index.d.ts +0 -0
- /package/dist/{Radio → types/components/Radio}/index.d.ts.map +0 -0
- /package/dist/{Segment → types/components/Segment}/index.d.ts +0 -0
- /package/dist/{Segment → types/components/Segment}/index.d.ts.map +0 -0
- /package/dist/{Selects → types/components/Selects}/index.d.ts +0 -0
- /package/dist/{Selects → types/components/Selects}/index.d.ts.map +0 -0
- /package/dist/{Slider → types/components/Slider}/index.d.ts +0 -0
- /package/dist/{Slider → types/components/Slider}/index.d.ts.map +0 -0
- /package/dist/{SweetAlerts → types/components/SweetAlerts}/index.d.ts +0 -0
- /package/dist/{SweetAlerts → types/components/SweetAlerts}/index.d.ts.map +0 -0
- /package/dist/{Switch → types/components/Switch}/index.d.ts +0 -0
- /package/dist/{Switch → types/components/Switch}/index.d.ts.map +0 -0
- /package/dist/{Tabs → types/components/Tabs}/index.d.ts +0 -0
- /package/dist/{Tabs → types/components/Tabs}/index.d.ts.map +0 -0
- /package/dist/{ThemeProvider → types/components/ThemeProvider}/index.d.ts +0 -0
- /package/dist/{ThemeProvider → types/components/ThemeProvider}/index.d.ts.map +0 -0
- /package/dist/{Tooltips → types/components/Tooltips}/index.d.ts +0 -0
- /package/dist/{Tooltips → types/components/Tooltips}/index.d.ts.map +0 -0
- /package/dist/{Transitions → types/components/Transitions}/index.d.ts +0 -0
- /package/dist/{Transitions → types/components/Transitions}/index.d.ts.map +0 -0
- /package/dist/{Tree → types/components/Tree}/index.d.ts +0 -0
- /package/dist/{Tree → types/components/Tree}/index.d.ts.map +0 -0
- /package/dist/{TreeSelect → types/components/TreeSelect}/index.d.ts +0 -0
- /package/dist/{TreeSelect → types/components/TreeSelect}/index.d.ts.map +0 -0
- /package/dist/{Typography → types/components/Typography}/index.d.ts +0 -0
- /package/dist/{Typography → types/components/Typography}/index.d.ts.map +0 -0
- /package/dist/{Uploader → types/components/Uploader}/index.d.ts +0 -0
- /package/dist/{Uploader → types/components/Uploader}/index.d.ts.map +0 -0
- /package/dist/{index.d.ts → types/components/index.d.ts} +0 -0
- /package/dist/{index.d.ts.map → types/components/index.d.ts.map} +0 -0
package/dist/Tabs-27c129bc.js
DELETED
|
@@ -1,1086 +0,0 @@
|
|
|
1
|
-
import { a as f, _ as so } from "./extends-135d7828.js";
|
|
2
|
-
import * as u from "react";
|
|
3
|
-
import { g as So, c as jo, j as S, P as e } from "./identifier-03e07987.js";
|
|
4
|
-
import { g as vo, s as F, u as yo, c as O, a as xo, r as te } from "./useThemeProps-d77fc01d.js";
|
|
5
|
-
import { B as zo } from "./ButtonBase-5c28f01f.js";
|
|
6
|
-
import { u as le } from "./unsupportedProp-3dbf01f6.js";
|
|
7
|
-
import { u as Lo } from "./useTheme-02c27d78.js";
|
|
8
|
-
import { u as re, a as bo } from "./useEventCallback-83a2883c.js";
|
|
9
|
-
import { d as mo, o as $o } from "./ownerWindow-e6cc3097.js";
|
|
10
|
-
import { r as ne } from "./refType-7413f8aa.js";
|
|
11
|
-
import { c as ko } from "./createSvgIcon-c9758670.js";
|
|
12
|
-
import { u as no } from "./useSlotProps-c2f5d9e5.js";
|
|
13
|
-
import { o as se } from "./ownerDocument-5430cd5b.js";
|
|
14
|
-
let U;
|
|
15
|
-
function Fo() {
|
|
16
|
-
if (U)
|
|
17
|
-
return U;
|
|
18
|
-
const o = document.createElement("div"), t = document.createElement("div");
|
|
19
|
-
return t.style.width = "10px", t.style.height = "1px", o.appendChild(t), o.dir = "rtl", o.style.fontSize = "14px", o.style.width = "4px", o.style.height = "1px", o.style.position = "absolute", o.style.top = "-1000px", o.style.overflow = "scroll", document.body.appendChild(o), U = "reverse", o.scrollLeft > 0 ? U = "default" : (o.scrollLeft = 1, o.scrollLeft === 0 && (U = "negative")), document.body.removeChild(o), U;
|
|
20
|
-
}
|
|
21
|
-
function No(o, t) {
|
|
22
|
-
const n = o.scrollLeft;
|
|
23
|
-
if (t !== "rtl")
|
|
24
|
-
return n;
|
|
25
|
-
switch (Fo()) {
|
|
26
|
-
case "negative":
|
|
27
|
-
return o.scrollWidth - o.clientWidth + n;
|
|
28
|
-
case "reverse":
|
|
29
|
-
return o.scrollWidth - o.clientWidth - n;
|
|
30
|
-
default:
|
|
31
|
-
return n;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
function ae(o) {
|
|
35
|
-
return So("MuiTab", o);
|
|
36
|
-
}
|
|
37
|
-
const ie = vo("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]), k = ie, ce = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"], de = (o) => {
|
|
38
|
-
const {
|
|
39
|
-
classes: t,
|
|
40
|
-
textColor: n,
|
|
41
|
-
fullWidth: c,
|
|
42
|
-
wrapped: a,
|
|
43
|
-
icon: d,
|
|
44
|
-
label: m,
|
|
45
|
-
selected: b,
|
|
46
|
-
disabled: p
|
|
47
|
-
} = o, v = {
|
|
48
|
-
root: ["root", d && m && "labelIcon", `textColor${jo(n)}`, c && "fullWidth", a && "wrapped", b && "selected", p && "disabled"],
|
|
49
|
-
iconWrapper: ["iconWrapper"]
|
|
50
|
-
};
|
|
51
|
-
return xo(v, ae, t);
|
|
52
|
-
}, ue = F(zo, {
|
|
53
|
-
name: "MuiTab",
|
|
54
|
-
slot: "Root",
|
|
55
|
-
overridesResolver: (o, t) => {
|
|
56
|
-
const {
|
|
57
|
-
ownerState: n
|
|
58
|
-
} = o;
|
|
59
|
-
return [t.root, n.label && n.icon && t.labelIcon, t[`textColor${jo(n.textColor)}`], n.fullWidth && t.fullWidth, n.wrapped && t.wrapped];
|
|
60
|
-
}
|
|
61
|
-
})(({
|
|
62
|
-
theme: o,
|
|
63
|
-
ownerState: t
|
|
64
|
-
}) => f({}, o.typography.button, {
|
|
65
|
-
maxWidth: 360,
|
|
66
|
-
minWidth: 90,
|
|
67
|
-
position: "relative",
|
|
68
|
-
minHeight: 48,
|
|
69
|
-
flexShrink: 0,
|
|
70
|
-
padding: "12px 16px",
|
|
71
|
-
overflow: "hidden",
|
|
72
|
-
whiteSpace: "normal",
|
|
73
|
-
textAlign: "center"
|
|
74
|
-
}, t.label && {
|
|
75
|
-
flexDirection: t.iconPosition === "top" || t.iconPosition === "bottom" ? "column" : "row"
|
|
76
|
-
}, {
|
|
77
|
-
lineHeight: 1.25
|
|
78
|
-
}, t.icon && t.label && {
|
|
79
|
-
minHeight: 72,
|
|
80
|
-
paddingTop: 9,
|
|
81
|
-
paddingBottom: 9,
|
|
82
|
-
[`& > .${k.iconWrapper}`]: f({}, t.iconPosition === "top" && {
|
|
83
|
-
marginBottom: 6
|
|
84
|
-
}, t.iconPosition === "bottom" && {
|
|
85
|
-
marginTop: 6
|
|
86
|
-
}, t.iconPosition === "start" && {
|
|
87
|
-
marginRight: o.spacing(1)
|
|
88
|
-
}, t.iconPosition === "end" && {
|
|
89
|
-
marginLeft: o.spacing(1)
|
|
90
|
-
})
|
|
91
|
-
}, t.textColor === "inherit" && {
|
|
92
|
-
color: "inherit",
|
|
93
|
-
opacity: 0.6,
|
|
94
|
-
// same opacity as theme.palette.text.secondary
|
|
95
|
-
[`&.${k.selected}`]: {
|
|
96
|
-
opacity: 1
|
|
97
|
-
},
|
|
98
|
-
[`&.${k.disabled}`]: {
|
|
99
|
-
opacity: (o.vars || o).palette.action.disabledOpacity
|
|
100
|
-
}
|
|
101
|
-
}, t.textColor === "primary" && {
|
|
102
|
-
color: (o.vars || o).palette.text.secondary,
|
|
103
|
-
[`&.${k.selected}`]: {
|
|
104
|
-
color: (o.vars || o).palette.primary.main
|
|
105
|
-
},
|
|
106
|
-
[`&.${k.disabled}`]: {
|
|
107
|
-
color: (o.vars || o).palette.text.disabled
|
|
108
|
-
}
|
|
109
|
-
}, t.textColor === "secondary" && {
|
|
110
|
-
color: (o.vars || o).palette.text.secondary,
|
|
111
|
-
[`&.${k.selected}`]: {
|
|
112
|
-
color: (o.vars || o).palette.secondary.main
|
|
113
|
-
},
|
|
114
|
-
[`&.${k.disabled}`]: {
|
|
115
|
-
color: (o.vars || o).palette.text.disabled
|
|
116
|
-
}
|
|
117
|
-
}, t.fullWidth && {
|
|
118
|
-
flexShrink: 1,
|
|
119
|
-
flexGrow: 1,
|
|
120
|
-
flexBasis: 0,
|
|
121
|
-
maxWidth: "none"
|
|
122
|
-
}, t.wrapped && {
|
|
123
|
-
fontSize: o.typography.pxToRem(12)
|
|
124
|
-
})), Ao = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
125
|
-
const c = yo({
|
|
126
|
-
props: t,
|
|
127
|
-
name: "MuiTab"
|
|
128
|
-
}), {
|
|
129
|
-
className: a,
|
|
130
|
-
disabled: d = !1,
|
|
131
|
-
disableFocusRipple: m = !1,
|
|
132
|
-
// eslint-disable-next-line react/prop-types
|
|
133
|
-
fullWidth: b,
|
|
134
|
-
icon: p,
|
|
135
|
-
iconPosition: v = "top",
|
|
136
|
-
// eslint-disable-next-line react/prop-types
|
|
137
|
-
indicator: R,
|
|
138
|
-
label: C,
|
|
139
|
-
onChange: g,
|
|
140
|
-
onClick: y,
|
|
141
|
-
onFocus: A,
|
|
142
|
-
// eslint-disable-next-line react/prop-types
|
|
143
|
-
selected: w,
|
|
144
|
-
// eslint-disable-next-line react/prop-types
|
|
145
|
-
selectionFollowsFocus: x,
|
|
146
|
-
// eslint-disable-next-line react/prop-types
|
|
147
|
-
textColor: D = "inherit",
|
|
148
|
-
value: I,
|
|
149
|
-
wrapped: ao = !1
|
|
150
|
-
} = c, H = so(c, ce), Y = f({}, c, {
|
|
151
|
-
disabled: d,
|
|
152
|
-
disableFocusRipple: m,
|
|
153
|
-
selected: w,
|
|
154
|
-
icon: !!p,
|
|
155
|
-
iconPosition: v,
|
|
156
|
-
label: !!C,
|
|
157
|
-
fullWidth: b,
|
|
158
|
-
textColor: D,
|
|
159
|
-
wrapped: ao
|
|
160
|
-
}), _ = de(Y), j = p && C && /* @__PURE__ */ u.isValidElement(p) ? /* @__PURE__ */ u.cloneElement(p, {
|
|
161
|
-
className: O(_.iconWrapper, p.props.className)
|
|
162
|
-
}) : p, Q = (M) => {
|
|
163
|
-
!w && g && g(M, I), y && y(M);
|
|
164
|
-
}, P = (M) => {
|
|
165
|
-
x && !w && g && g(M, I), A && A(M);
|
|
166
|
-
};
|
|
167
|
-
return /* @__PURE__ */ S.jsxs(ue, f({
|
|
168
|
-
focusRipple: !m,
|
|
169
|
-
className: O(_.root, a),
|
|
170
|
-
ref: n,
|
|
171
|
-
role: "tab",
|
|
172
|
-
"aria-selected": w,
|
|
173
|
-
disabled: d,
|
|
174
|
-
onClick: Q,
|
|
175
|
-
onFocus: P,
|
|
176
|
-
ownerState: Y,
|
|
177
|
-
tabIndex: w ? 0 : -1
|
|
178
|
-
}, H, {
|
|
179
|
-
children: [v === "top" || v === "start" ? /* @__PURE__ */ S.jsxs(u.Fragment, {
|
|
180
|
-
children: [j, C]
|
|
181
|
-
}) : /* @__PURE__ */ S.jsxs(u.Fragment, {
|
|
182
|
-
children: [C, j]
|
|
183
|
-
}), R]
|
|
184
|
-
}));
|
|
185
|
-
});
|
|
186
|
-
process.env.NODE_ENV !== "production" && (Ao.propTypes = {
|
|
187
|
-
// ----------------------------- Warning --------------------------------
|
|
188
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
189
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
190
|
-
// ----------------------------------------------------------------------
|
|
191
|
-
/**
|
|
192
|
-
* This prop isn't supported.
|
|
193
|
-
* Use the `component` prop if you need to change the children structure.
|
|
194
|
-
*/
|
|
195
|
-
children: le,
|
|
196
|
-
/**
|
|
197
|
-
* Override or extend the styles applied to the component.
|
|
198
|
-
*/
|
|
199
|
-
classes: e.object,
|
|
200
|
-
/**
|
|
201
|
-
* @ignore
|
|
202
|
-
*/
|
|
203
|
-
className: e.string,
|
|
204
|
-
/**
|
|
205
|
-
* If `true`, the component is disabled.
|
|
206
|
-
* @default false
|
|
207
|
-
*/
|
|
208
|
-
disabled: e.bool,
|
|
209
|
-
/**
|
|
210
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
211
|
-
* @default false
|
|
212
|
-
*/
|
|
213
|
-
disableFocusRipple: e.bool,
|
|
214
|
-
/**
|
|
215
|
-
* If `true`, the ripple effect is disabled.
|
|
216
|
-
*
|
|
217
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
218
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
219
|
-
* @default false
|
|
220
|
-
*/
|
|
221
|
-
disableRipple: e.bool,
|
|
222
|
-
/**
|
|
223
|
-
* The icon to display.
|
|
224
|
-
*/
|
|
225
|
-
icon: e.oneOfType([e.element, e.string]),
|
|
226
|
-
/**
|
|
227
|
-
* The position of the icon relative to the label.
|
|
228
|
-
* @default 'top'
|
|
229
|
-
*/
|
|
230
|
-
iconPosition: e.oneOf(["bottom", "end", "start", "top"]),
|
|
231
|
-
/**
|
|
232
|
-
* The label element.
|
|
233
|
-
*/
|
|
234
|
-
label: e.node,
|
|
235
|
-
/**
|
|
236
|
-
* @ignore
|
|
237
|
-
*/
|
|
238
|
-
onChange: e.func,
|
|
239
|
-
/**
|
|
240
|
-
* @ignore
|
|
241
|
-
*/
|
|
242
|
-
onClick: e.func,
|
|
243
|
-
/**
|
|
244
|
-
* @ignore
|
|
245
|
-
*/
|
|
246
|
-
onFocus: e.func,
|
|
247
|
-
/**
|
|
248
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
249
|
-
*/
|
|
250
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
251
|
-
/**
|
|
252
|
-
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
253
|
-
*/
|
|
254
|
-
value: e.any,
|
|
255
|
-
/**
|
|
256
|
-
* Tab labels appear in a single row.
|
|
257
|
-
* They can use a second line if needed.
|
|
258
|
-
* @default false
|
|
259
|
-
*/
|
|
260
|
-
wrapped: e.bool
|
|
261
|
-
});
|
|
262
|
-
const Ue = Ao, pe = ko(/* @__PURE__ */ S.jsx("path", {
|
|
263
|
-
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
264
|
-
}), "KeyboardArrowLeft"), fe = ko(/* @__PURE__ */ S.jsx("path", {
|
|
265
|
-
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
266
|
-
}), "KeyboardArrowRight");
|
|
267
|
-
function be(o) {
|
|
268
|
-
return (1 + Math.sin(Math.PI * o - Math.PI / 2)) / 2;
|
|
269
|
-
}
|
|
270
|
-
function he(o, t, n, c = {}, a = () => {
|
|
271
|
-
}) {
|
|
272
|
-
const {
|
|
273
|
-
ease: d = be,
|
|
274
|
-
duration: m = 300
|
|
275
|
-
// standard
|
|
276
|
-
} = c;
|
|
277
|
-
let b = null;
|
|
278
|
-
const p = t[o];
|
|
279
|
-
let v = !1;
|
|
280
|
-
const R = () => {
|
|
281
|
-
v = !0;
|
|
282
|
-
}, C = (g) => {
|
|
283
|
-
if (v) {
|
|
284
|
-
a(new Error("Animation cancelled"));
|
|
285
|
-
return;
|
|
286
|
-
}
|
|
287
|
-
b === null && (b = g);
|
|
288
|
-
const y = Math.min(1, (g - b) / m);
|
|
289
|
-
if (t[o] = d(y) * (n - p) + p, y >= 1) {
|
|
290
|
-
requestAnimationFrame(() => {
|
|
291
|
-
a(null);
|
|
292
|
-
});
|
|
293
|
-
return;
|
|
294
|
-
}
|
|
295
|
-
requestAnimationFrame(C);
|
|
296
|
-
};
|
|
297
|
-
return p === n ? (a(new Error("Element already at target position")), R) : (requestAnimationFrame(C), R);
|
|
298
|
-
}
|
|
299
|
-
const me = ["onChange"], Se = {
|
|
300
|
-
width: 99,
|
|
301
|
-
height: 99,
|
|
302
|
-
position: "absolute",
|
|
303
|
-
top: -9999,
|
|
304
|
-
overflow: "scroll"
|
|
305
|
-
};
|
|
306
|
-
function Do(o) {
|
|
307
|
-
const {
|
|
308
|
-
onChange: t
|
|
309
|
-
} = o, n = so(o, me), c = u.useRef(), a = u.useRef(null), d = () => {
|
|
310
|
-
c.current = a.current.offsetHeight - a.current.clientHeight;
|
|
311
|
-
};
|
|
312
|
-
return re(() => {
|
|
313
|
-
const m = mo(() => {
|
|
314
|
-
const p = c.current;
|
|
315
|
-
d(), p !== c.current && t(c.current);
|
|
316
|
-
}), b = $o(a.current);
|
|
317
|
-
return b.addEventListener("resize", m), () => {
|
|
318
|
-
m.clear(), b.removeEventListener("resize", m);
|
|
319
|
-
};
|
|
320
|
-
}, [t]), u.useEffect(() => {
|
|
321
|
-
d(), t(c.current);
|
|
322
|
-
}, [t]), /* @__PURE__ */ S.jsx("div", f({
|
|
323
|
-
style: Se,
|
|
324
|
-
ref: a
|
|
325
|
-
}, n));
|
|
326
|
-
}
|
|
327
|
-
process.env.NODE_ENV !== "production" && (Do.propTypes = {
|
|
328
|
-
onChange: e.func.isRequired
|
|
329
|
-
});
|
|
330
|
-
function ve(o) {
|
|
331
|
-
return So("MuiTabScrollButton", o);
|
|
332
|
-
}
|
|
333
|
-
const ye = vo("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), xe = ye, ge = ["className", "slots", "slotProps", "direction", "orientation", "disabled"], Te = (o) => {
|
|
334
|
-
const {
|
|
335
|
-
classes: t,
|
|
336
|
-
orientation: n,
|
|
337
|
-
disabled: c
|
|
338
|
-
} = o;
|
|
339
|
-
return xo({
|
|
340
|
-
root: ["root", n, c && "disabled"]
|
|
341
|
-
}, ve, t);
|
|
342
|
-
}, Be = F(zo, {
|
|
343
|
-
name: "MuiTabScrollButton",
|
|
344
|
-
slot: "Root",
|
|
345
|
-
overridesResolver: (o, t) => {
|
|
346
|
-
const {
|
|
347
|
-
ownerState: n
|
|
348
|
-
} = o;
|
|
349
|
-
return [t.root, n.orientation && t[n.orientation]];
|
|
350
|
-
}
|
|
351
|
-
})(({
|
|
352
|
-
ownerState: o
|
|
353
|
-
}) => f({
|
|
354
|
-
width: 40,
|
|
355
|
-
flexShrink: 0,
|
|
356
|
-
opacity: 0.8,
|
|
357
|
-
[`&.${xe.disabled}`]: {
|
|
358
|
-
opacity: 0
|
|
359
|
-
}
|
|
360
|
-
}, o.orientation === "vertical" && {
|
|
361
|
-
width: "100%",
|
|
362
|
-
height: 40,
|
|
363
|
-
"& svg": {
|
|
364
|
-
transform: `rotate(${o.isRtl ? -90 : 90}deg)`
|
|
365
|
-
}
|
|
366
|
-
})), Ho = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
367
|
-
var c, a;
|
|
368
|
-
const d = yo({
|
|
369
|
-
props: t,
|
|
370
|
-
name: "MuiTabScrollButton"
|
|
371
|
-
}), {
|
|
372
|
-
className: m,
|
|
373
|
-
slots: b = {},
|
|
374
|
-
slotProps: p = {},
|
|
375
|
-
direction: v
|
|
376
|
-
} = d, R = so(d, ge), g = Lo().direction === "rtl", y = f({
|
|
377
|
-
isRtl: g
|
|
378
|
-
}, d), A = Te(y), w = (c = b.StartScrollButtonIcon) != null ? c : pe, x = (a = b.EndScrollButtonIcon) != null ? a : fe, D = no({
|
|
379
|
-
elementType: w,
|
|
380
|
-
externalSlotProps: p.startScrollButtonIcon,
|
|
381
|
-
additionalProps: {
|
|
382
|
-
fontSize: "small"
|
|
383
|
-
},
|
|
384
|
-
ownerState: y
|
|
385
|
-
}), I = no({
|
|
386
|
-
elementType: x,
|
|
387
|
-
externalSlotProps: p.endScrollButtonIcon,
|
|
388
|
-
additionalProps: {
|
|
389
|
-
fontSize: "small"
|
|
390
|
-
},
|
|
391
|
-
ownerState: y
|
|
392
|
-
});
|
|
393
|
-
return /* @__PURE__ */ S.jsx(Be, f({
|
|
394
|
-
component: "div",
|
|
395
|
-
className: O(A.root, m),
|
|
396
|
-
ref: n,
|
|
397
|
-
role: null,
|
|
398
|
-
ownerState: y,
|
|
399
|
-
tabIndex: null
|
|
400
|
-
}, R, {
|
|
401
|
-
children: v === "left" ? /* @__PURE__ */ S.jsx(w, f({}, D)) : /* @__PURE__ */ S.jsx(x, f({}, I))
|
|
402
|
-
}));
|
|
403
|
-
});
|
|
404
|
-
process.env.NODE_ENV !== "production" && (Ho.propTypes = {
|
|
405
|
-
// ----------------------------- Warning --------------------------------
|
|
406
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
407
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
408
|
-
// ----------------------------------------------------------------------
|
|
409
|
-
/**
|
|
410
|
-
* The content of the component.
|
|
411
|
-
*/
|
|
412
|
-
children: e.node,
|
|
413
|
-
/**
|
|
414
|
-
* Override or extend the styles applied to the component.
|
|
415
|
-
*/
|
|
416
|
-
classes: e.object,
|
|
417
|
-
/**
|
|
418
|
-
* @ignore
|
|
419
|
-
*/
|
|
420
|
-
className: e.string,
|
|
421
|
-
/**
|
|
422
|
-
* The direction the button should indicate.
|
|
423
|
-
*/
|
|
424
|
-
direction: e.oneOf(["left", "right"]).isRequired,
|
|
425
|
-
/**
|
|
426
|
-
* If `true`, the component is disabled.
|
|
427
|
-
* @default false
|
|
428
|
-
*/
|
|
429
|
-
disabled: e.bool,
|
|
430
|
-
/**
|
|
431
|
-
* The component orientation (layout flow direction).
|
|
432
|
-
*/
|
|
433
|
-
orientation: e.oneOf(["horizontal", "vertical"]).isRequired,
|
|
434
|
-
/**
|
|
435
|
-
* The extra props for the slot components.
|
|
436
|
-
* You can override the existing props or add new ones.
|
|
437
|
-
* @default {}
|
|
438
|
-
*/
|
|
439
|
-
slotProps: e.shape({
|
|
440
|
-
endScrollButtonIcon: e.oneOfType([e.func, e.object]),
|
|
441
|
-
startScrollButtonIcon: e.oneOfType([e.func, e.object])
|
|
442
|
-
}),
|
|
443
|
-
/**
|
|
444
|
-
* The components used for each slot inside.
|
|
445
|
-
* @default {}
|
|
446
|
-
*/
|
|
447
|
-
slots: e.shape({
|
|
448
|
-
EndScrollButtonIcon: e.elementType,
|
|
449
|
-
StartScrollButtonIcon: e.elementType
|
|
450
|
-
}),
|
|
451
|
-
/**
|
|
452
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
453
|
-
*/
|
|
454
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
455
|
-
});
|
|
456
|
-
const Ce = Ho;
|
|
457
|
-
function we(o) {
|
|
458
|
-
return So("MuiTabs", o);
|
|
459
|
-
}
|
|
460
|
-
const Ee = vo("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), ho = Ee, Ie = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"], Ro = (o, t) => o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : o.firstChild, Po = (o, t) => o === t ? o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : o.lastChild, ro = (o, t, n) => {
|
|
461
|
-
let c = !1, a = n(o, t);
|
|
462
|
-
for (; a; ) {
|
|
463
|
-
if (a === o.firstChild) {
|
|
464
|
-
if (c)
|
|
465
|
-
return;
|
|
466
|
-
c = !0;
|
|
467
|
-
}
|
|
468
|
-
const d = a.disabled || a.getAttribute("aria-disabled") === "true";
|
|
469
|
-
if (!a.hasAttribute("tabindex") || d)
|
|
470
|
-
a = n(o, a);
|
|
471
|
-
else {
|
|
472
|
-
a.focus();
|
|
473
|
-
return;
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}, Me = (o) => {
|
|
477
|
-
const {
|
|
478
|
-
vertical: t,
|
|
479
|
-
fixed: n,
|
|
480
|
-
hideScrollbar: c,
|
|
481
|
-
scrollableX: a,
|
|
482
|
-
scrollableY: d,
|
|
483
|
-
centered: m,
|
|
484
|
-
scrollButtonsHideMobile: b,
|
|
485
|
-
classes: p
|
|
486
|
-
} = o;
|
|
487
|
-
return xo({
|
|
488
|
-
root: ["root", t && "vertical"],
|
|
489
|
-
scroller: ["scroller", n && "fixed", c && "hideScrollbar", a && "scrollableX", d && "scrollableY"],
|
|
490
|
-
flexContainer: ["flexContainer", t && "flexContainerVertical", m && "centered"],
|
|
491
|
-
indicator: ["indicator"],
|
|
492
|
-
scrollButtons: ["scrollButtons", b && "scrollButtonsHideMobile"],
|
|
493
|
-
scrollableX: [a && "scrollableX"],
|
|
494
|
-
hideScrollbar: [c && "hideScrollbar"]
|
|
495
|
-
}, we, p);
|
|
496
|
-
}, Ne = F("div", {
|
|
497
|
-
name: "MuiTabs",
|
|
498
|
-
slot: "Root",
|
|
499
|
-
overridesResolver: (o, t) => {
|
|
500
|
-
const {
|
|
501
|
-
ownerState: n
|
|
502
|
-
} = o;
|
|
503
|
-
return [{
|
|
504
|
-
[`& .${ho.scrollButtons}`]: t.scrollButtons
|
|
505
|
-
}, {
|
|
506
|
-
[`& .${ho.scrollButtons}`]: n.scrollButtonsHideMobile && t.scrollButtonsHideMobile
|
|
507
|
-
}, t.root, n.vertical && t.vertical];
|
|
508
|
-
}
|
|
509
|
-
})(({
|
|
510
|
-
ownerState: o,
|
|
511
|
-
theme: t
|
|
512
|
-
}) => f({
|
|
513
|
-
overflow: "hidden",
|
|
514
|
-
minHeight: 48,
|
|
515
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
516
|
-
WebkitOverflowScrolling: "touch",
|
|
517
|
-
display: "flex"
|
|
518
|
-
}, o.vertical && {
|
|
519
|
-
flexDirection: "column"
|
|
520
|
-
}, o.scrollButtonsHideMobile && {
|
|
521
|
-
[`& .${ho.scrollButtons}`]: {
|
|
522
|
-
[t.breakpoints.down("sm")]: {
|
|
523
|
-
display: "none"
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
})), Re = F("div", {
|
|
527
|
-
name: "MuiTabs",
|
|
528
|
-
slot: "Scroller",
|
|
529
|
-
overridesResolver: (o, t) => {
|
|
530
|
-
const {
|
|
531
|
-
ownerState: n
|
|
532
|
-
} = o;
|
|
533
|
-
return [t.scroller, n.fixed && t.fixed, n.hideScrollbar && t.hideScrollbar, n.scrollableX && t.scrollableX, n.scrollableY && t.scrollableY];
|
|
534
|
-
}
|
|
535
|
-
})(({
|
|
536
|
-
ownerState: o
|
|
537
|
-
}) => f({
|
|
538
|
-
position: "relative",
|
|
539
|
-
display: "inline-block",
|
|
540
|
-
flex: "1 1 auto",
|
|
541
|
-
whiteSpace: "nowrap"
|
|
542
|
-
}, o.fixed && {
|
|
543
|
-
overflowX: "hidden",
|
|
544
|
-
width: "100%"
|
|
545
|
-
}, o.hideScrollbar && {
|
|
546
|
-
// Hide dimensionless scrollbar on macOS
|
|
547
|
-
scrollbarWidth: "none",
|
|
548
|
-
// Firefox
|
|
549
|
-
"&::-webkit-scrollbar": {
|
|
550
|
-
display: "none"
|
|
551
|
-
// Safari + Chrome
|
|
552
|
-
}
|
|
553
|
-
}, o.scrollableX && {
|
|
554
|
-
overflowX: "auto",
|
|
555
|
-
overflowY: "hidden"
|
|
556
|
-
}, o.scrollableY && {
|
|
557
|
-
overflowY: "auto",
|
|
558
|
-
overflowX: "hidden"
|
|
559
|
-
})), Pe = F("div", {
|
|
560
|
-
name: "MuiTabs",
|
|
561
|
-
slot: "FlexContainer",
|
|
562
|
-
overridesResolver: (o, t) => {
|
|
563
|
-
const {
|
|
564
|
-
ownerState: n
|
|
565
|
-
} = o;
|
|
566
|
-
return [t.flexContainer, n.vertical && t.flexContainerVertical, n.centered && t.centered];
|
|
567
|
-
}
|
|
568
|
-
})(({
|
|
569
|
-
ownerState: o
|
|
570
|
-
}) => f({
|
|
571
|
-
display: "flex"
|
|
572
|
-
}, o.vertical && {
|
|
573
|
-
flexDirection: "column"
|
|
574
|
-
}, o.centered && {
|
|
575
|
-
justifyContent: "center"
|
|
576
|
-
})), We = F("span", {
|
|
577
|
-
name: "MuiTabs",
|
|
578
|
-
slot: "Indicator",
|
|
579
|
-
overridesResolver: (o, t) => t.indicator
|
|
580
|
-
})(({
|
|
581
|
-
ownerState: o,
|
|
582
|
-
theme: t
|
|
583
|
-
}) => f({
|
|
584
|
-
position: "absolute",
|
|
585
|
-
height: 2,
|
|
586
|
-
bottom: 0,
|
|
587
|
-
width: "100%",
|
|
588
|
-
transition: t.transitions.create()
|
|
589
|
-
}, o.indicatorColor === "primary" && {
|
|
590
|
-
backgroundColor: (t.vars || t).palette.primary.main
|
|
591
|
-
}, o.indicatorColor === "secondary" && {
|
|
592
|
-
backgroundColor: (t.vars || t).palette.secondary.main
|
|
593
|
-
}, o.vertical && {
|
|
594
|
-
height: "100%",
|
|
595
|
-
width: 2,
|
|
596
|
-
right: 0
|
|
597
|
-
})), Oe = F(Do, {
|
|
598
|
-
name: "MuiTabs",
|
|
599
|
-
slot: "ScrollbarSize"
|
|
600
|
-
})({
|
|
601
|
-
overflowX: "auto",
|
|
602
|
-
overflowY: "hidden",
|
|
603
|
-
// Hide dimensionless scrollbar on macOS
|
|
604
|
-
scrollbarWidth: "none",
|
|
605
|
-
// Firefox
|
|
606
|
-
"&::-webkit-scrollbar": {
|
|
607
|
-
display: "none"
|
|
608
|
-
// Safari + Chrome
|
|
609
|
-
}
|
|
610
|
-
}), Wo = {};
|
|
611
|
-
let Oo = !1;
|
|
612
|
-
const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
613
|
-
const c = yo({
|
|
614
|
-
props: t,
|
|
615
|
-
name: "MuiTabs"
|
|
616
|
-
}), a = Lo(), d = a.direction === "rtl", {
|
|
617
|
-
"aria-label": m,
|
|
618
|
-
"aria-labelledby": b,
|
|
619
|
-
action: p,
|
|
620
|
-
centered: v = !1,
|
|
621
|
-
children: R,
|
|
622
|
-
className: C,
|
|
623
|
-
component: g = "div",
|
|
624
|
-
allowScrollButtonsMobile: y = !1,
|
|
625
|
-
indicatorColor: A = "primary",
|
|
626
|
-
onChange: w,
|
|
627
|
-
orientation: x = "horizontal",
|
|
628
|
-
ScrollButtonComponent: D = Ce,
|
|
629
|
-
scrollButtons: I = "auto",
|
|
630
|
-
selectionFollowsFocus: ao,
|
|
631
|
-
slots: H = {},
|
|
632
|
-
slotProps: Y = {},
|
|
633
|
-
TabIndicatorProps: _ = {},
|
|
634
|
-
TabScrollButtonProps: j = {},
|
|
635
|
-
textColor: Q = "primary",
|
|
636
|
-
value: P,
|
|
637
|
-
variant: M = "standard",
|
|
638
|
-
visibleScrollbar: io = !1
|
|
639
|
-
} = c, Vo = so(c, Ie), N = M === "scrollable", T = x === "vertical", K = T ? "scrollTop" : "scrollLeft", Z = T ? "top" : "left", oo = T ? "bottom" : "right", co = T ? "clientHeight" : "clientWidth", q = T ? "height" : "width", z = f({}, c, {
|
|
640
|
-
component: g,
|
|
641
|
-
allowScrollButtonsMobile: y,
|
|
642
|
-
indicatorColor: A,
|
|
643
|
-
orientation: x,
|
|
644
|
-
vertical: T,
|
|
645
|
-
scrollButtons: I,
|
|
646
|
-
textColor: Q,
|
|
647
|
-
variant: M,
|
|
648
|
-
visibleScrollbar: io,
|
|
649
|
-
fixed: !N,
|
|
650
|
-
hideScrollbar: N && !io,
|
|
651
|
-
scrollableX: N && !T,
|
|
652
|
-
scrollableY: N && T,
|
|
653
|
-
centered: v && !N,
|
|
654
|
-
scrollButtonsHideMobile: !y
|
|
655
|
-
}), W = Me(z), Xo = no({
|
|
656
|
-
elementType: H.StartScrollButtonIcon,
|
|
657
|
-
externalSlotProps: Y.startScrollButtonIcon,
|
|
658
|
-
ownerState: z
|
|
659
|
-
}), Uo = no({
|
|
660
|
-
elementType: H.EndScrollButtonIcon,
|
|
661
|
-
externalSlotProps: Y.endScrollButtonIcon,
|
|
662
|
-
ownerState: z
|
|
663
|
-
});
|
|
664
|
-
process.env.NODE_ENV !== "production" && v && N && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
|
|
665
|
-
const [go, Yo] = u.useState(!1), [L, To] = u.useState(Wo), [V, Ko] = u.useState({
|
|
666
|
-
start: !1,
|
|
667
|
-
end: !1
|
|
668
|
-
}), [Bo, qo] = u.useState({
|
|
669
|
-
overflow: "hidden",
|
|
670
|
-
scrollbarWidth: 0
|
|
671
|
-
}), eo = /* @__PURE__ */ new Map(), E = u.useRef(null), G = u.useRef(null), Co = () => {
|
|
672
|
-
const l = E.current;
|
|
673
|
-
let r;
|
|
674
|
-
if (l) {
|
|
675
|
-
const i = l.getBoundingClientRect();
|
|
676
|
-
r = {
|
|
677
|
-
clientWidth: l.clientWidth,
|
|
678
|
-
scrollLeft: l.scrollLeft,
|
|
679
|
-
scrollTop: l.scrollTop,
|
|
680
|
-
scrollLeftNormalized: No(l, a.direction),
|
|
681
|
-
scrollWidth: l.scrollWidth,
|
|
682
|
-
top: i.top,
|
|
683
|
-
bottom: i.bottom,
|
|
684
|
-
left: i.left,
|
|
685
|
-
right: i.right
|
|
686
|
-
};
|
|
687
|
-
}
|
|
688
|
-
let s;
|
|
689
|
-
if (l && P !== !1) {
|
|
690
|
-
const i = G.current.children;
|
|
691
|
-
if (i.length > 0) {
|
|
692
|
-
const h = i[eo.get(P)];
|
|
693
|
-
process.env.NODE_ENV !== "production" && (h || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${P}".`, eo.keys ? `You can provide one of the following values: ${Array.from(eo.keys()).join(", ")}.` : null].join(`
|
|
694
|
-
`))), s = h ? h.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Oo && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
695
|
-
r.clientWidth !== 0 && (r = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${P}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
696
|
-
`)), Oo = !0);
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
return {
|
|
700
|
-
tabsMeta: r,
|
|
701
|
-
tabMeta: s
|
|
702
|
-
};
|
|
703
|
-
}, J = bo(() => {
|
|
704
|
-
const {
|
|
705
|
-
tabsMeta: l,
|
|
706
|
-
tabMeta: r
|
|
707
|
-
} = Co();
|
|
708
|
-
let s = 0, i;
|
|
709
|
-
if (T)
|
|
710
|
-
i = "top", r && l && (s = r.top - l.top + l.scrollTop);
|
|
711
|
-
else if (i = d ? "right" : "left", r && l) {
|
|
712
|
-
const B = d ? l.scrollLeftNormalized + l.clientWidth - l.scrollWidth : l.scrollLeft;
|
|
713
|
-
s = (d ? -1 : 1) * (r[i] - l[i] + B);
|
|
714
|
-
}
|
|
715
|
-
const h = {
|
|
716
|
-
[i]: s,
|
|
717
|
-
// May be wrong until the font is loaded.
|
|
718
|
-
[q]: r ? r[q] : 0
|
|
719
|
-
};
|
|
720
|
-
if (isNaN(L[i]) || isNaN(L[q]))
|
|
721
|
-
To(h);
|
|
722
|
-
else {
|
|
723
|
-
const B = Math.abs(L[i] - h[i]), X = Math.abs(L[q] - h[q]);
|
|
724
|
-
(B >= 1 || X >= 1) && To(h);
|
|
725
|
-
}
|
|
726
|
-
}), uo = (l, {
|
|
727
|
-
animation: r = !0
|
|
728
|
-
} = {}) => {
|
|
729
|
-
r ? he(K, E.current, l, {
|
|
730
|
-
duration: a.transitions.duration.standard
|
|
731
|
-
}) : E.current[K] = l;
|
|
732
|
-
}, wo = (l) => {
|
|
733
|
-
let r = E.current[K];
|
|
734
|
-
T ? r += l : (r += l * (d ? -1 : 1), r *= d && Fo() === "reverse" ? -1 : 1), uo(r);
|
|
735
|
-
}, Eo = () => {
|
|
736
|
-
const l = E.current[co];
|
|
737
|
-
let r = 0;
|
|
738
|
-
const s = Array.from(G.current.children);
|
|
739
|
-
for (let i = 0; i < s.length; i += 1) {
|
|
740
|
-
const h = s[i];
|
|
741
|
-
if (r + h[co] > l) {
|
|
742
|
-
i === 0 && (r = l);
|
|
743
|
-
break;
|
|
744
|
-
}
|
|
745
|
-
r += h[co];
|
|
746
|
-
}
|
|
747
|
-
return r;
|
|
748
|
-
}, Go = () => {
|
|
749
|
-
wo(-1 * Eo());
|
|
750
|
-
}, Jo = () => {
|
|
751
|
-
wo(Eo());
|
|
752
|
-
}, Qo = u.useCallback((l) => {
|
|
753
|
-
qo({
|
|
754
|
-
overflow: null,
|
|
755
|
-
scrollbarWidth: l
|
|
756
|
-
});
|
|
757
|
-
}, []), Zo = () => {
|
|
758
|
-
const l = {};
|
|
759
|
-
l.scrollbarSizeListener = N ? /* @__PURE__ */ S.jsx(Oe, {
|
|
760
|
-
onChange: Qo,
|
|
761
|
-
className: O(W.scrollableX, W.hideScrollbar)
|
|
762
|
-
}) : null;
|
|
763
|
-
const r = V.start || V.end, s = N && (I === "auto" && r || I === !0);
|
|
764
|
-
return l.scrollButtonStart = s ? /* @__PURE__ */ S.jsx(D, f({
|
|
765
|
-
slots: {
|
|
766
|
-
StartScrollButtonIcon: H.StartScrollButtonIcon
|
|
767
|
-
},
|
|
768
|
-
slotProps: {
|
|
769
|
-
startScrollButtonIcon: Xo
|
|
770
|
-
},
|
|
771
|
-
orientation: x,
|
|
772
|
-
direction: d ? "right" : "left",
|
|
773
|
-
onClick: Go,
|
|
774
|
-
disabled: !V.start
|
|
775
|
-
}, j, {
|
|
776
|
-
className: O(W.scrollButtons, j.className)
|
|
777
|
-
})) : null, l.scrollButtonEnd = s ? /* @__PURE__ */ S.jsx(D, f({
|
|
778
|
-
slots: {
|
|
779
|
-
EndScrollButtonIcon: H.EndScrollButtonIcon
|
|
780
|
-
},
|
|
781
|
-
slotProps: {
|
|
782
|
-
endScrollButtonIcon: Uo
|
|
783
|
-
},
|
|
784
|
-
orientation: x,
|
|
785
|
-
direction: d ? "left" : "right",
|
|
786
|
-
onClick: Jo,
|
|
787
|
-
disabled: !V.end
|
|
788
|
-
}, j, {
|
|
789
|
-
className: O(W.scrollButtons, j.className)
|
|
790
|
-
})) : null, l;
|
|
791
|
-
}, Io = bo((l) => {
|
|
792
|
-
const {
|
|
793
|
-
tabsMeta: r,
|
|
794
|
-
tabMeta: s
|
|
795
|
-
} = Co();
|
|
796
|
-
if (!(!s || !r)) {
|
|
797
|
-
if (s[Z] < r[Z]) {
|
|
798
|
-
const i = r[K] + (s[Z] - r[Z]);
|
|
799
|
-
uo(i, {
|
|
800
|
-
animation: l
|
|
801
|
-
});
|
|
802
|
-
} else if (s[oo] > r[oo]) {
|
|
803
|
-
const i = r[K] + (s[oo] - r[oo]);
|
|
804
|
-
uo(i, {
|
|
805
|
-
animation: l
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
}), $ = bo(() => {
|
|
810
|
-
if (N && I !== !1) {
|
|
811
|
-
const {
|
|
812
|
-
scrollTop: l,
|
|
813
|
-
scrollHeight: r,
|
|
814
|
-
clientHeight: s,
|
|
815
|
-
scrollWidth: i,
|
|
816
|
-
clientWidth: h
|
|
817
|
-
} = E.current;
|
|
818
|
-
let B, X;
|
|
819
|
-
if (T)
|
|
820
|
-
B = l > 1, X = l < r - s - 1;
|
|
821
|
-
else {
|
|
822
|
-
const lo = No(E.current, a.direction);
|
|
823
|
-
B = d ? lo < i - h - 1 : lo > 1, X = d ? lo > 1 : lo < i - h - 1;
|
|
824
|
-
}
|
|
825
|
-
(B !== V.start || X !== V.end) && Ko({
|
|
826
|
-
start: B,
|
|
827
|
-
end: X
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
});
|
|
831
|
-
u.useEffect(() => {
|
|
832
|
-
const l = mo(() => {
|
|
833
|
-
E.current && (J(), $());
|
|
834
|
-
}), r = $o(E.current);
|
|
835
|
-
r.addEventListener("resize", l);
|
|
836
|
-
let s;
|
|
837
|
-
return typeof ResizeObserver < "u" && (s = new ResizeObserver(l), Array.from(G.current.children).forEach((i) => {
|
|
838
|
-
s.observe(i);
|
|
839
|
-
})), () => {
|
|
840
|
-
l.clear(), r.removeEventListener("resize", l), s && s.disconnect();
|
|
841
|
-
};
|
|
842
|
-
}, [J, $]);
|
|
843
|
-
const po = u.useMemo(() => mo(() => {
|
|
844
|
-
$();
|
|
845
|
-
}), [$]);
|
|
846
|
-
u.useEffect(() => () => {
|
|
847
|
-
po.clear();
|
|
848
|
-
}, [po]), u.useEffect(() => {
|
|
849
|
-
Yo(!0);
|
|
850
|
-
}, []), u.useEffect(() => {
|
|
851
|
-
J(), $();
|
|
852
|
-
}), u.useEffect(() => {
|
|
853
|
-
Io(Wo !== L);
|
|
854
|
-
}, [Io, L]), u.useImperativeHandle(p, () => ({
|
|
855
|
-
updateIndicator: J,
|
|
856
|
-
updateScrollButtons: $
|
|
857
|
-
}), [J, $]);
|
|
858
|
-
const Mo = /* @__PURE__ */ S.jsx(We, f({}, _, {
|
|
859
|
-
className: O(W.indicator, _.className),
|
|
860
|
-
ownerState: z,
|
|
861
|
-
style: f({}, L, _.style)
|
|
862
|
-
}));
|
|
863
|
-
let to = 0;
|
|
864
|
-
const oe = u.Children.map(R, (l) => {
|
|
865
|
-
if (!/* @__PURE__ */ u.isValidElement(l))
|
|
866
|
-
return null;
|
|
867
|
-
process.env.NODE_ENV !== "production" && te.isFragment(l) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
868
|
-
`));
|
|
869
|
-
const r = l.props.value === void 0 ? to : l.props.value;
|
|
870
|
-
eo.set(r, to);
|
|
871
|
-
const s = r === P;
|
|
872
|
-
return to += 1, /* @__PURE__ */ u.cloneElement(l, f({
|
|
873
|
-
fullWidth: M === "fullWidth",
|
|
874
|
-
indicator: s && !go && Mo,
|
|
875
|
-
selected: s,
|
|
876
|
-
selectionFollowsFocus: ao,
|
|
877
|
-
onChange: w,
|
|
878
|
-
textColor: Q,
|
|
879
|
-
value: r
|
|
880
|
-
}, to === 1 && P === !1 && !l.props.tabIndex ? {
|
|
881
|
-
tabIndex: 0
|
|
882
|
-
} : {}));
|
|
883
|
-
}), ee = (l) => {
|
|
884
|
-
const r = G.current, s = se(r).activeElement;
|
|
885
|
-
if (s.getAttribute("role") !== "tab")
|
|
886
|
-
return;
|
|
887
|
-
let h = x === "horizontal" ? "ArrowLeft" : "ArrowUp", B = x === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
888
|
-
switch (x === "horizontal" && d && (h = "ArrowRight", B = "ArrowLeft"), l.key) {
|
|
889
|
-
case h:
|
|
890
|
-
l.preventDefault(), ro(r, s, Po);
|
|
891
|
-
break;
|
|
892
|
-
case B:
|
|
893
|
-
l.preventDefault(), ro(r, s, Ro);
|
|
894
|
-
break;
|
|
895
|
-
case "Home":
|
|
896
|
-
l.preventDefault(), ro(r, null, Ro);
|
|
897
|
-
break;
|
|
898
|
-
case "End":
|
|
899
|
-
l.preventDefault(), ro(r, null, Po);
|
|
900
|
-
break;
|
|
901
|
-
}
|
|
902
|
-
}, fo = Zo();
|
|
903
|
-
return /* @__PURE__ */ S.jsxs(Ne, f({
|
|
904
|
-
className: O(W.root, C),
|
|
905
|
-
ownerState: z,
|
|
906
|
-
ref: n,
|
|
907
|
-
as: g
|
|
908
|
-
}, Vo, {
|
|
909
|
-
children: [fo.scrollButtonStart, fo.scrollbarSizeListener, /* @__PURE__ */ S.jsxs(Re, {
|
|
910
|
-
className: W.scroller,
|
|
911
|
-
ownerState: z,
|
|
912
|
-
style: {
|
|
913
|
-
overflow: Bo.overflow,
|
|
914
|
-
[T ? `margin${d ? "Left" : "Right"}` : "marginBottom"]: io ? void 0 : -Bo.scrollbarWidth
|
|
915
|
-
},
|
|
916
|
-
ref: E,
|
|
917
|
-
onScroll: po,
|
|
918
|
-
children: [/* @__PURE__ */ S.jsx(Pe, {
|
|
919
|
-
"aria-label": m,
|
|
920
|
-
"aria-labelledby": b,
|
|
921
|
-
"aria-orientation": x === "vertical" ? "vertical" : null,
|
|
922
|
-
className: W.flexContainer,
|
|
923
|
-
ownerState: z,
|
|
924
|
-
onKeyDown: ee,
|
|
925
|
-
ref: G,
|
|
926
|
-
role: "tablist",
|
|
927
|
-
children: oe
|
|
928
|
-
}), go && Mo]
|
|
929
|
-
}), fo.scrollButtonEnd]
|
|
930
|
-
}));
|
|
931
|
-
});
|
|
932
|
-
process.env.NODE_ENV !== "production" && (_o.propTypes = {
|
|
933
|
-
// ----------------------------- Warning --------------------------------
|
|
934
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
935
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
936
|
-
// ----------------------------------------------------------------------
|
|
937
|
-
/**
|
|
938
|
-
* Callback fired when the component mounts.
|
|
939
|
-
* This is useful when you want to trigger an action programmatically.
|
|
940
|
-
* It supports two actions: `updateIndicator()` and `updateScrollButtons()`
|
|
941
|
-
*
|
|
942
|
-
* @param {object} actions This object contains all possible actions
|
|
943
|
-
* that can be triggered programmatically.
|
|
944
|
-
*/
|
|
945
|
-
action: ne,
|
|
946
|
-
/**
|
|
947
|
-
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
948
|
-
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
949
|
-
* @default false
|
|
950
|
-
*/
|
|
951
|
-
allowScrollButtonsMobile: e.bool,
|
|
952
|
-
/**
|
|
953
|
-
* The label for the Tabs as a string.
|
|
954
|
-
*/
|
|
955
|
-
"aria-label": e.string,
|
|
956
|
-
/**
|
|
957
|
-
* An id or list of ids separated by a space that label the Tabs.
|
|
958
|
-
*/
|
|
959
|
-
"aria-labelledby": e.string,
|
|
960
|
-
/**
|
|
961
|
-
* If `true`, the tabs are centered.
|
|
962
|
-
* This prop is intended for large views.
|
|
963
|
-
* @default false
|
|
964
|
-
*/
|
|
965
|
-
centered: e.bool,
|
|
966
|
-
/**
|
|
967
|
-
* The content of the component.
|
|
968
|
-
*/
|
|
969
|
-
children: e.node,
|
|
970
|
-
/**
|
|
971
|
-
* Override or extend the styles applied to the component.
|
|
972
|
-
*/
|
|
973
|
-
classes: e.object,
|
|
974
|
-
/**
|
|
975
|
-
* @ignore
|
|
976
|
-
*/
|
|
977
|
-
className: e.string,
|
|
978
|
-
/**
|
|
979
|
-
* The component used for the root node.
|
|
980
|
-
* Either a string to use a HTML element or a component.
|
|
981
|
-
*/
|
|
982
|
-
component: e.elementType,
|
|
983
|
-
/**
|
|
984
|
-
* Determines the color of the indicator.
|
|
985
|
-
* @default 'primary'
|
|
986
|
-
*/
|
|
987
|
-
indicatorColor: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
988
|
-
/**
|
|
989
|
-
* Callback fired when the value changes.
|
|
990
|
-
*
|
|
991
|
-
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
992
|
-
* @param {any} value We default to the index of the child (number)
|
|
993
|
-
*/
|
|
994
|
-
onChange: e.func,
|
|
995
|
-
/**
|
|
996
|
-
* The component orientation (layout flow direction).
|
|
997
|
-
* @default 'horizontal'
|
|
998
|
-
*/
|
|
999
|
-
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
1000
|
-
/**
|
|
1001
|
-
* The component used to render the scroll buttons.
|
|
1002
|
-
* @default TabScrollButton
|
|
1003
|
-
*/
|
|
1004
|
-
ScrollButtonComponent: e.elementType,
|
|
1005
|
-
/**
|
|
1006
|
-
* Determine behavior of scroll buttons when tabs are set to scroll:
|
|
1007
|
-
*
|
|
1008
|
-
* - `auto` will only present them when not all the items are visible.
|
|
1009
|
-
* - `true` will always present them.
|
|
1010
|
-
* - `false` will never present them.
|
|
1011
|
-
*
|
|
1012
|
-
* By default the scroll buttons are hidden on mobile.
|
|
1013
|
-
* This behavior can be disabled with `allowScrollButtonsMobile`.
|
|
1014
|
-
* @default 'auto'
|
|
1015
|
-
*/
|
|
1016
|
-
scrollButtons: e.oneOf(["auto", !1, !0]),
|
|
1017
|
-
/**
|
|
1018
|
-
* If `true` the selected tab changes on focus. Otherwise it only
|
|
1019
|
-
* changes on activation.
|
|
1020
|
-
*/
|
|
1021
|
-
selectionFollowsFocus: e.bool,
|
|
1022
|
-
/**
|
|
1023
|
-
* The extra props for the slot components.
|
|
1024
|
-
* You can override the existing props or add new ones.
|
|
1025
|
-
* @default {}
|
|
1026
|
-
*/
|
|
1027
|
-
slotProps: e.shape({
|
|
1028
|
-
endScrollButtonIcon: e.oneOfType([e.func, e.object]),
|
|
1029
|
-
startScrollButtonIcon: e.oneOfType([e.func, e.object])
|
|
1030
|
-
}),
|
|
1031
|
-
/**
|
|
1032
|
-
* The components used for each slot inside.
|
|
1033
|
-
* @default {}
|
|
1034
|
-
*/
|
|
1035
|
-
slots: e.shape({
|
|
1036
|
-
EndScrollButtonIcon: e.elementType,
|
|
1037
|
-
StartScrollButtonIcon: e.elementType
|
|
1038
|
-
}),
|
|
1039
|
-
/**
|
|
1040
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1041
|
-
*/
|
|
1042
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1043
|
-
/**
|
|
1044
|
-
* Props applied to the tab indicator element.
|
|
1045
|
-
* @default {}
|
|
1046
|
-
*/
|
|
1047
|
-
TabIndicatorProps: e.object,
|
|
1048
|
-
/**
|
|
1049
|
-
* Props applied to the [`TabScrollButton`](/material-ui/api/tab-scroll-button/) element.
|
|
1050
|
-
* @default {}
|
|
1051
|
-
*/
|
|
1052
|
-
TabScrollButtonProps: e.object,
|
|
1053
|
-
/**
|
|
1054
|
-
* Determines the color of the `Tab`.
|
|
1055
|
-
* @default 'primary'
|
|
1056
|
-
*/
|
|
1057
|
-
textColor: e.oneOf(["inherit", "primary", "secondary"]),
|
|
1058
|
-
/**
|
|
1059
|
-
* The value of the currently selected `Tab`.
|
|
1060
|
-
* If you don't want any selected `Tab`, you can set this prop to `false`.
|
|
1061
|
-
*/
|
|
1062
|
-
value: e.any,
|
|
1063
|
-
/**
|
|
1064
|
-
* Determines additional display behavior of the tabs:
|
|
1065
|
-
*
|
|
1066
|
-
* - `scrollable` will invoke scrolling properties and allow for horizontally
|
|
1067
|
-
* scrolling (or swiping) of the tab bar.
|
|
1068
|
-
* -`fullWidth` will make the tabs grow to use all the available space,
|
|
1069
|
-
* which should be used for small views, like on mobile.
|
|
1070
|
-
* - `standard` will render the default state.
|
|
1071
|
-
* @default 'standard'
|
|
1072
|
-
*/
|
|
1073
|
-
variant: e.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
1074
|
-
/**
|
|
1075
|
-
* If `true`, the scrollbar is visible. It can be useful when displaying
|
|
1076
|
-
* a long vertical list of tabs.
|
|
1077
|
-
* @default false
|
|
1078
|
-
*/
|
|
1079
|
-
visibleScrollbar: e.bool
|
|
1080
|
-
});
|
|
1081
|
-
const Ye = _o;
|
|
1082
|
-
export {
|
|
1083
|
-
Ye as T,
|
|
1084
|
-
Ue as a,
|
|
1085
|
-
ho as t
|
|
1086
|
-
};
|