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
|
@@ -1,1676 +0,0 @@
|
|
|
1
|
-
import { j as At } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
-
import { a as d, _ as Ot } from "./extends-135d7828.js";
|
|
3
|
-
import * as C from "react";
|
|
4
|
-
import { g as It, c as He, j as v, P as n, a as nt } from "./identifier-03e07987.js";
|
|
5
|
-
import { g as yt, s as B, u as vt, c as he, a as Ct } from "./useThemeProps-d77fc01d.js";
|
|
6
|
-
import { i as rt, a as pe, o as ft, f as be, A as wt } from "./ArrowDropDown-dc6755c2.js";
|
|
7
|
-
import { C as Lt } from "./Close-b6f5c836.js";
|
|
8
|
-
import { I as $t } from "./IconButton-fba0ed7c.js";
|
|
9
|
-
import { M as Pt } from "./Popper-f770b94a.js";
|
|
10
|
-
import { M as St, i as kt } from "./Paper-05bfa47c.js";
|
|
11
|
-
import { u as Nt } from "./useId-a21bd5c3.js";
|
|
12
|
-
import { u as at } from "./useControlled-cc2d41cb.js";
|
|
13
|
-
import { u as Rt } from "./usePreviousProps-c1ae4548.js";
|
|
14
|
-
import { a as Fe } from "./useEventCallback-83a2883c.js";
|
|
15
|
-
import { s as Et } from "./useForkRef-0781dda0.js";
|
|
16
|
-
import { C as Dt } from "./Chip-9e065b58.js";
|
|
17
|
-
import { c as gt } from "./chainPropTypes-004bf492.js";
|
|
18
|
-
function mt(t) {
|
|
19
|
-
return typeof t.normalize < "u" ? t.normalize("NFD").replace(/[\u0300-\u036f]/g, "") : t;
|
|
20
|
-
}
|
|
21
|
-
function Mt(t = {}) {
|
|
22
|
-
const {
|
|
23
|
-
ignoreAccents: a = !0,
|
|
24
|
-
ignoreCase: u = !0,
|
|
25
|
-
limit: O,
|
|
26
|
-
matchFrom: k = "any",
|
|
27
|
-
stringify: S,
|
|
28
|
-
trim: P = !1
|
|
29
|
-
} = t;
|
|
30
|
-
return (h, {
|
|
31
|
-
inputValue: K,
|
|
32
|
-
getOptionLabel: $
|
|
33
|
-
}) => {
|
|
34
|
-
let N = P ? K.trim() : K;
|
|
35
|
-
u && (N = N.toLowerCase()), a && (N = mt(N));
|
|
36
|
-
const W = N ? h.filter((le) => {
|
|
37
|
-
let U = (S || $)(le);
|
|
38
|
-
return u && (U = U.toLowerCase()), a && (U = mt(U)), k === "start" ? U.indexOf(N) === 0 : U.indexOf(N) > -1;
|
|
39
|
-
}) : h;
|
|
40
|
-
return typeof O == "number" ? W.slice(0, O) : W;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function lt(t, a) {
|
|
44
|
-
for (let u = 0; u < t.length; u += 1)
|
|
45
|
-
if (a(t[u]))
|
|
46
|
-
return u;
|
|
47
|
-
return -1;
|
|
48
|
-
}
|
|
49
|
-
const jt = Mt(), bt = 5, Vt = (t) => {
|
|
50
|
-
var a;
|
|
51
|
-
return t.current !== null && ((a = t.current.parentElement) == null ? void 0 : a.contains(document.activeElement));
|
|
52
|
-
};
|
|
53
|
-
function Ft(t) {
|
|
54
|
-
const {
|
|
55
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
56
|
-
unstable_isActiveElementInListbox: a = Vt,
|
|
57
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
58
|
-
unstable_classNamePrefix: u = "Mui",
|
|
59
|
-
autoComplete: O = !1,
|
|
60
|
-
autoHighlight: k = !1,
|
|
61
|
-
autoSelect: S = !1,
|
|
62
|
-
blurOnSelect: P = !1,
|
|
63
|
-
clearOnBlur: h = !t.freeSolo,
|
|
64
|
-
clearOnEscape: K = !1,
|
|
65
|
-
componentName: $ = "useAutocomplete",
|
|
66
|
-
defaultValue: N = t.multiple ? [] : null,
|
|
67
|
-
disableClearable: W = !1,
|
|
68
|
-
disableCloseOnSelect: le = !1,
|
|
69
|
-
disabled: U,
|
|
70
|
-
disabledItemsFocusable: ze = !1,
|
|
71
|
-
disableListWrap: Be = !1,
|
|
72
|
-
filterOptions: it = jt,
|
|
73
|
-
filterSelectedOptions: xe = !1,
|
|
74
|
-
freeSolo: J = !1,
|
|
75
|
-
getOptionDisabled: Y,
|
|
76
|
-
getOptionLabel: Ue = (o) => {
|
|
77
|
-
var e;
|
|
78
|
-
return (e = o.label) != null ? e : o;
|
|
79
|
-
},
|
|
80
|
-
groupBy: ue,
|
|
81
|
-
handleHomeEndKeys: We = !t.freeSolo,
|
|
82
|
-
id: se,
|
|
83
|
-
includeInputInList: _e = !1,
|
|
84
|
-
inputValue: pt,
|
|
85
|
-
isOptionEqualToValue: _ = (o, e) => o === e,
|
|
86
|
-
multiple: f = !1,
|
|
87
|
-
onChange: Oe,
|
|
88
|
-
onClose: Ie,
|
|
89
|
-
onHighlightChange: we,
|
|
90
|
-
onInputChange: X,
|
|
91
|
-
onOpen: ye,
|
|
92
|
-
open: Ge,
|
|
93
|
-
openOnFocus: ut = !1,
|
|
94
|
-
options: Le,
|
|
95
|
-
readOnly: Q = !1,
|
|
96
|
-
selectOnFocus: qe = !t.freeSolo,
|
|
97
|
-
value: Ke
|
|
98
|
-
} = t, R = Nt(se);
|
|
99
|
-
let T = Ue;
|
|
100
|
-
T = (o) => {
|
|
101
|
-
const e = Ue(o);
|
|
102
|
-
if (typeof e != "string") {
|
|
103
|
-
if (process.env.NODE_ENV !== "production") {
|
|
104
|
-
const r = e === void 0 ? "undefined" : `${typeof e} (${e})`;
|
|
105
|
-
console.error(`MUI: The \`getOptionLabel\` method of ${$} returned ${r} instead of a string for ${JSON.stringify(o)}.`);
|
|
106
|
-
}
|
|
107
|
-
return String(e);
|
|
108
|
-
}
|
|
109
|
-
return e;
|
|
110
|
-
};
|
|
111
|
-
const ve = C.useRef(!1), Ce = C.useRef(!0), b = C.useRef(null), j = C.useRef(null), [ce, Je] = C.useState(null), [D, de] = C.useState(-1), ke = k ? 0 : -1, A = C.useRef(ke), [s, Ne] = at({
|
|
112
|
-
controlled: Ke,
|
|
113
|
-
default: N,
|
|
114
|
-
name: $
|
|
115
|
-
}), [g, oe] = at({
|
|
116
|
-
controlled: pt,
|
|
117
|
-
default: "",
|
|
118
|
-
name: $,
|
|
119
|
-
state: "inputValue"
|
|
120
|
-
}), [Z, Re] = C.useState(!1), fe = C.useCallback((o, e) => {
|
|
121
|
-
if (!(f ? s.length < e.length : e !== null) && !h)
|
|
122
|
-
return;
|
|
123
|
-
let l;
|
|
124
|
-
if (f)
|
|
125
|
-
l = "";
|
|
126
|
-
else if (e == null)
|
|
127
|
-
l = "";
|
|
128
|
-
else {
|
|
129
|
-
const c = T(e);
|
|
130
|
-
l = typeof c == "string" ? c : "";
|
|
131
|
-
}
|
|
132
|
-
g !== l && (oe(l), X && X(o, l, "reset"));
|
|
133
|
-
}, [T, g, f, X, oe, h, s]), [ee, Ee] = at({
|
|
134
|
-
controlled: Ge,
|
|
135
|
-
default: !1,
|
|
136
|
-
name: $,
|
|
137
|
-
state: "open"
|
|
138
|
-
}), [Ye, De] = C.useState(!0), Me = !f && s != null && g === T(s), E = ee && !Q, x = E ? it(
|
|
139
|
-
Le.filter((o) => !(xe && (f ? s : [s]).some((e) => e !== null && _(o, e)))),
|
|
140
|
-
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
141
|
-
// i.e. the filter predicate always returns true
|
|
142
|
-
{
|
|
143
|
-
inputValue: Me && Ye ? "" : g,
|
|
144
|
-
getOptionLabel: T
|
|
145
|
-
}
|
|
146
|
-
) : [], V = Rt({
|
|
147
|
-
filteredOptions: x,
|
|
148
|
-
value: s
|
|
149
|
-
});
|
|
150
|
-
C.useEffect(() => {
|
|
151
|
-
const o = s !== V.value;
|
|
152
|
-
Z && !o || J && !o || fe(null, s);
|
|
153
|
-
}, [s, fe, Z, V.value, J]);
|
|
154
|
-
const $e = ee && x.length > 0 && !Q;
|
|
155
|
-
if (process.env.NODE_ENV !== "production" && s !== null && !J && Le.length > 0) {
|
|
156
|
-
const o = (f ? s : [s]).filter((e) => !Le.some((r) => _(r, e)));
|
|
157
|
-
o.length > 0 && console.warn([`MUI: The value provided to ${$} is invalid.`, `None of the options match with \`${o.length > 1 ? JSON.stringify(o) : JSON.stringify(o[0])}\`.`, "You can use the `isOptionEqualToValue` prop to customize the equality test."].join(`
|
|
158
|
-
`));
|
|
159
|
-
}
|
|
160
|
-
const ge = Fe((o) => {
|
|
161
|
-
o === -1 ? b.current.focus() : ce.querySelector(`[data-tag-index="${o}"]`).focus();
|
|
162
|
-
});
|
|
163
|
-
C.useEffect(() => {
|
|
164
|
-
f && D > s.length - 1 && (de(-1), ge(-1));
|
|
165
|
-
}, [s, f, D, ge]);
|
|
166
|
-
function Xe(o, e) {
|
|
167
|
-
if (!j.current || o === -1)
|
|
168
|
-
return -1;
|
|
169
|
-
let r = o;
|
|
170
|
-
for (; ; ) {
|
|
171
|
-
if (e === "next" && r === x.length || e === "previous" && r === -1)
|
|
172
|
-
return -1;
|
|
173
|
-
const l = j.current.querySelector(`[data-option-index="${r}"]`), c = ze ? !1 : !l || l.disabled || l.getAttribute("aria-disabled") === "true";
|
|
174
|
-
if (l && !l.hasAttribute("tabindex") || c)
|
|
175
|
-
r += e === "next" ? 1 : -1;
|
|
176
|
-
else
|
|
177
|
-
return r;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
const F = Fe(({
|
|
181
|
-
event: o,
|
|
182
|
-
index: e,
|
|
183
|
-
reason: r = "auto"
|
|
184
|
-
}) => {
|
|
185
|
-
if (A.current = e, e === -1 ? b.current.removeAttribute("aria-activedescendant") : b.current.setAttribute("aria-activedescendant", `${R}-option-${e}`), we && we(o, e === -1 ? null : x[e], r), !j.current)
|
|
186
|
-
return;
|
|
187
|
-
const l = j.current.querySelector(`[role="option"].${u}-focused`);
|
|
188
|
-
l && (l.classList.remove(`${u}-focused`), l.classList.remove(`${u}-focusVisible`));
|
|
189
|
-
const c = j.current.parentElement.querySelector('[role="listbox"]');
|
|
190
|
-
if (!c)
|
|
191
|
-
return;
|
|
192
|
-
if (e === -1) {
|
|
193
|
-
c.scrollTop = 0;
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
const m = j.current.querySelector(`[data-option-index="${e}"]`);
|
|
197
|
-
if (m && (m.classList.add(`${u}-focused`), r === "keyboard" && m.classList.add(`${u}-focusVisible`), c.scrollHeight > c.clientHeight && r !== "mouse")) {
|
|
198
|
-
const y = m, M = c.clientHeight + c.scrollTop, Ve = y.offsetTop + y.offsetHeight;
|
|
199
|
-
Ve > M ? c.scrollTop = Ve - c.clientHeight : y.offsetTop - y.offsetHeight * (ue ? 1.3 : 0) < c.scrollTop && (c.scrollTop = y.offsetTop - y.offsetHeight * (ue ? 1.3 : 0));
|
|
200
|
-
}
|
|
201
|
-
}), H = Fe(({
|
|
202
|
-
event: o,
|
|
203
|
-
diff: e,
|
|
204
|
-
direction: r = "next",
|
|
205
|
-
reason: l = "auto"
|
|
206
|
-
}) => {
|
|
207
|
-
if (!E)
|
|
208
|
-
return;
|
|
209
|
-
const m = Xe((() => {
|
|
210
|
-
const y = x.length - 1;
|
|
211
|
-
if (e === "reset")
|
|
212
|
-
return ke;
|
|
213
|
-
if (e === "start")
|
|
214
|
-
return 0;
|
|
215
|
-
if (e === "end")
|
|
216
|
-
return y;
|
|
217
|
-
const M = A.current + e;
|
|
218
|
-
return M < 0 ? M === -1 && _e ? -1 : Be && A.current !== -1 || Math.abs(e) > 1 ? 0 : y : M > y ? M === y + 1 && _e ? -1 : Be || Math.abs(e) > 1 ? y : 0 : M;
|
|
219
|
-
})(), r);
|
|
220
|
-
if (F({
|
|
221
|
-
index: m,
|
|
222
|
-
reason: l,
|
|
223
|
-
event: o
|
|
224
|
-
}), O && e !== "reset")
|
|
225
|
-
if (m === -1)
|
|
226
|
-
b.current.value = g;
|
|
227
|
-
else {
|
|
228
|
-
const y = T(x[m]);
|
|
229
|
-
b.current.value = y, y.toLowerCase().indexOf(g.toLowerCase()) === 0 && g.length > 0 && b.current.setSelectionRange(g.length, y.length);
|
|
230
|
-
}
|
|
231
|
-
}), Qe = () => {
|
|
232
|
-
const o = (e, r) => {
|
|
233
|
-
const l = e ? T(e) : "", c = r ? T(r) : "";
|
|
234
|
-
return l === c;
|
|
235
|
-
};
|
|
236
|
-
if (A.current !== -1 && V.filteredOptions && V.filteredOptions.length !== x.length && (f ? s.length === V.value.length && V.value.every((e, r) => T(s[r]) === T(e)) : o(V.value, s))) {
|
|
237
|
-
const e = V.filteredOptions[A.current];
|
|
238
|
-
if (e && x.some((l) => T(l) === T(e)))
|
|
239
|
-
return !0;
|
|
240
|
-
}
|
|
241
|
-
return !1;
|
|
242
|
-
}, ne = C.useCallback(() => {
|
|
243
|
-
if (!E || Qe())
|
|
244
|
-
return;
|
|
245
|
-
const o = f ? s[0] : s;
|
|
246
|
-
if (x.length === 0 || o == null) {
|
|
247
|
-
H({
|
|
248
|
-
diff: "reset"
|
|
249
|
-
});
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
if (j.current) {
|
|
253
|
-
if (o != null) {
|
|
254
|
-
const e = x[A.current];
|
|
255
|
-
if (f && e && lt(s, (l) => _(e, l)) !== -1)
|
|
256
|
-
return;
|
|
257
|
-
const r = lt(x, (l) => _(l, o));
|
|
258
|
-
r === -1 ? H({
|
|
259
|
-
diff: "reset"
|
|
260
|
-
}) : F({
|
|
261
|
-
index: r
|
|
262
|
-
});
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
if (A.current >= x.length - 1) {
|
|
266
|
-
F({
|
|
267
|
-
index: x.length - 1
|
|
268
|
-
});
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
F({
|
|
272
|
-
index: A.current
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
}, [
|
|
276
|
-
// Only sync the highlighted index when the option switch between empty and not
|
|
277
|
-
x.length,
|
|
278
|
-
// Don't sync the highlighted index with the value when multiple
|
|
279
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
280
|
-
f ? !1 : s,
|
|
281
|
-
xe,
|
|
282
|
-
H,
|
|
283
|
-
F,
|
|
284
|
-
E,
|
|
285
|
-
g,
|
|
286
|
-
f
|
|
287
|
-
]), Ze = Fe((o) => {
|
|
288
|
-
Et(j, o), o && ne();
|
|
289
|
-
});
|
|
290
|
-
process.env.NODE_ENV !== "production" && C.useEffect(() => {
|
|
291
|
-
(!b.current || b.current.nodeName !== "INPUT") && (b.current && b.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${$} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (e.g. enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
292
|
-
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${b.current} while an HTMLInputElement was expected.`, `Instead, ${$} expects an input element.`, "", $ === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
|
|
293
|
-
`)));
|
|
294
|
-
}, [$]), C.useEffect(() => {
|
|
295
|
-
ne();
|
|
296
|
-
}, [ne]);
|
|
297
|
-
const te = (o) => {
|
|
298
|
-
ee || (Ee(!0), De(!0), ye && ye(o));
|
|
299
|
-
}, G = (o, e) => {
|
|
300
|
-
ee && (Ee(!1), Ie && Ie(o, e));
|
|
301
|
-
}, q = (o, e, r, l) => {
|
|
302
|
-
if (f) {
|
|
303
|
-
if (s.length === e.length && s.every((c, m) => c === e[m]))
|
|
304
|
-
return;
|
|
305
|
-
} else if (s === e)
|
|
306
|
-
return;
|
|
307
|
-
Oe && Oe(o, e, r, l), Ne(e);
|
|
308
|
-
}, re = C.useRef(!1), ie = (o, e, r = "selectOption", l = "options") => {
|
|
309
|
-
let c = r, m = e;
|
|
310
|
-
if (f) {
|
|
311
|
-
if (m = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
|
|
312
|
-
const M = m.filter((Ve) => _(e, Ve));
|
|
313
|
-
M.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${$} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${M.length} matches.`].join(`
|
|
314
|
-
`));
|
|
315
|
-
}
|
|
316
|
-
const y = lt(m, (M) => _(e, M));
|
|
317
|
-
y === -1 ? m.push(e) : l !== "freeSolo" && (m.splice(y, 1), c = "removeOption");
|
|
318
|
-
}
|
|
319
|
-
fe(o, m), q(o, m, c, {
|
|
320
|
-
option: e
|
|
321
|
-
}), !le && (!o || !o.ctrlKey && !o.metaKey) && G(o, c), (P === !0 || P === "touch" && re.current || P === "mouse" && !re.current) && b.current.blur();
|
|
322
|
-
};
|
|
323
|
-
function w(o, e) {
|
|
324
|
-
if (o === -1)
|
|
325
|
-
return -1;
|
|
326
|
-
let r = o;
|
|
327
|
-
for (; ; ) {
|
|
328
|
-
if (e === "next" && r === s.length || e === "previous" && r === -1)
|
|
329
|
-
return -1;
|
|
330
|
-
const l = ce.querySelector(`[data-tag-index="${r}"]`);
|
|
331
|
-
if (!l || !l.hasAttribute("tabindex") || l.disabled || l.getAttribute("aria-disabled") === "true")
|
|
332
|
-
r += e === "next" ? 1 : -1;
|
|
333
|
-
else
|
|
334
|
-
return r;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
const I = (o, e) => {
|
|
338
|
-
if (!f)
|
|
339
|
-
return;
|
|
340
|
-
g === "" && G(o, "toggleInput");
|
|
341
|
-
let r = D;
|
|
342
|
-
D === -1 ? g === "" && e === "previous" && (r = s.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === s.length && (r = -1)), r = w(r, e), de(r), ge(r);
|
|
343
|
-
}, z = (o) => {
|
|
344
|
-
ve.current = !0, oe(""), X && X(o, "", "clear"), q(o, f ? [] : null, "clear");
|
|
345
|
-
}, ct = (o) => (e) => {
|
|
346
|
-
if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (D !== -1 && ["ArrowLeft", "ArrowRight"].indexOf(e.key) === -1 && (de(-1), ge(-1)), e.which !== 229))
|
|
347
|
-
switch (e.key) {
|
|
348
|
-
case "Home":
|
|
349
|
-
E && We && (e.preventDefault(), H({
|
|
350
|
-
diff: "start",
|
|
351
|
-
direction: "next",
|
|
352
|
-
reason: "keyboard",
|
|
353
|
-
event: e
|
|
354
|
-
}));
|
|
355
|
-
break;
|
|
356
|
-
case "End":
|
|
357
|
-
E && We && (e.preventDefault(), H({
|
|
358
|
-
diff: "end",
|
|
359
|
-
direction: "previous",
|
|
360
|
-
reason: "keyboard",
|
|
361
|
-
event: e
|
|
362
|
-
}));
|
|
363
|
-
break;
|
|
364
|
-
case "PageUp":
|
|
365
|
-
e.preventDefault(), H({
|
|
366
|
-
diff: -bt,
|
|
367
|
-
direction: "previous",
|
|
368
|
-
reason: "keyboard",
|
|
369
|
-
event: e
|
|
370
|
-
}), te(e);
|
|
371
|
-
break;
|
|
372
|
-
case "PageDown":
|
|
373
|
-
e.preventDefault(), H({
|
|
374
|
-
diff: bt,
|
|
375
|
-
direction: "next",
|
|
376
|
-
reason: "keyboard",
|
|
377
|
-
event: e
|
|
378
|
-
}), te(e);
|
|
379
|
-
break;
|
|
380
|
-
case "ArrowDown":
|
|
381
|
-
e.preventDefault(), H({
|
|
382
|
-
diff: 1,
|
|
383
|
-
direction: "next",
|
|
384
|
-
reason: "keyboard",
|
|
385
|
-
event: e
|
|
386
|
-
}), te(e);
|
|
387
|
-
break;
|
|
388
|
-
case "ArrowUp":
|
|
389
|
-
e.preventDefault(), H({
|
|
390
|
-
diff: -1,
|
|
391
|
-
direction: "previous",
|
|
392
|
-
reason: "keyboard",
|
|
393
|
-
event: e
|
|
394
|
-
}), te(e);
|
|
395
|
-
break;
|
|
396
|
-
case "ArrowLeft":
|
|
397
|
-
I(e, "previous");
|
|
398
|
-
break;
|
|
399
|
-
case "ArrowRight":
|
|
400
|
-
I(e, "next");
|
|
401
|
-
break;
|
|
402
|
-
case "Enter":
|
|
403
|
-
if (A.current !== -1 && E) {
|
|
404
|
-
const r = x[A.current], l = Y ? Y(r) : !1;
|
|
405
|
-
if (e.preventDefault(), l)
|
|
406
|
-
return;
|
|
407
|
-
ie(e, r, "selectOption"), O && b.current.setSelectionRange(b.current.value.length, b.current.value.length);
|
|
408
|
-
} else
|
|
409
|
-
J && g !== "" && Me === !1 && (f && e.preventDefault(), ie(e, g, "createOption", "freeSolo"));
|
|
410
|
-
break;
|
|
411
|
-
case "Escape":
|
|
412
|
-
E ? (e.preventDefault(), e.stopPropagation(), G(e, "escape")) : K && (g !== "" || f && s.length > 0) && (e.preventDefault(), e.stopPropagation(), z(e));
|
|
413
|
-
break;
|
|
414
|
-
case "Backspace":
|
|
415
|
-
if (f && !Q && g === "" && s.length > 0) {
|
|
416
|
-
const r = D === -1 ? s.length - 1 : D, l = s.slice();
|
|
417
|
-
l.splice(r, 1), q(e, l, "removeOption", {
|
|
418
|
-
option: s[r]
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
break;
|
|
422
|
-
case "Delete":
|
|
423
|
-
if (f && !Q && g === "" && s.length > 0 && D !== -1) {
|
|
424
|
-
const r = D, l = s.slice();
|
|
425
|
-
l.splice(r, 1), q(e, l, "removeOption", {
|
|
426
|
-
option: s[r]
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
break;
|
|
430
|
-
}
|
|
431
|
-
}, et = (o) => {
|
|
432
|
-
Re(!0), ut && !ve.current && te(o);
|
|
433
|
-
}, tt = (o) => {
|
|
434
|
-
if (a(j)) {
|
|
435
|
-
b.current.focus();
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
Re(!1), Ce.current = !0, ve.current = !1, S && A.current !== -1 && E ? ie(o, x[A.current], "blur") : S && J && g !== "" ? ie(o, g, "blur", "freeSolo") : h && fe(o, s), G(o, "blur");
|
|
439
|
-
}, ot = (o) => {
|
|
440
|
-
const e = o.target.value;
|
|
441
|
-
g !== e && (oe(e), De(!1), X && X(o, e, "input")), e === "" ? !W && !f && q(o, null, "clear") : te(o);
|
|
442
|
-
}, je = (o) => {
|
|
443
|
-
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
444
|
-
A.current !== e && F({
|
|
445
|
-
event: o,
|
|
446
|
-
index: e,
|
|
447
|
-
reason: "mouse"
|
|
448
|
-
});
|
|
449
|
-
}, Pe = (o) => {
|
|
450
|
-
F({
|
|
451
|
-
event: o,
|
|
452
|
-
index: Number(o.currentTarget.getAttribute("data-option-index")),
|
|
453
|
-
reason: "touch"
|
|
454
|
-
}), re.current = !0;
|
|
455
|
-
}, Se = (o) => {
|
|
456
|
-
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
457
|
-
ie(o, x[e], "selectOption"), re.current = !1;
|
|
458
|
-
}, Te = (o) => (e) => {
|
|
459
|
-
const r = s.slice();
|
|
460
|
-
r.splice(o, 1), q(e, r, "removeOption", {
|
|
461
|
-
option: s[o]
|
|
462
|
-
});
|
|
463
|
-
}, me = (o) => {
|
|
464
|
-
ee ? G(o, "toggleInput") : te(o);
|
|
465
|
-
}, p = (o) => {
|
|
466
|
-
o.target.getAttribute("id") !== R && o.preventDefault();
|
|
467
|
-
}, L = () => {
|
|
468
|
-
b.current.focus(), qe && Ce.current && b.current.selectionEnd - b.current.selectionStart === 0 && b.current.select(), Ce.current = !1;
|
|
469
|
-
}, ae = (o) => {
|
|
470
|
-
(g === "" || !ee) && me(o);
|
|
471
|
-
};
|
|
472
|
-
let Ae = J && g.length > 0;
|
|
473
|
-
Ae = Ae || (f ? s.length > 0 : s !== null);
|
|
474
|
-
let dt = x;
|
|
475
|
-
if (ue) {
|
|
476
|
-
const o = /* @__PURE__ */ new Map();
|
|
477
|
-
let e = !1;
|
|
478
|
-
dt = x.reduce((r, l, c) => {
|
|
479
|
-
const m = ue(l);
|
|
480
|
-
return r.length > 0 && r[r.length - 1].group === m ? r[r.length - 1].options.push(l) : (process.env.NODE_ENV !== "production" && (o.get(m) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${$} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), o.set(m, !0)), r.push({
|
|
481
|
-
key: c,
|
|
482
|
-
index: c,
|
|
483
|
-
group: m,
|
|
484
|
-
options: [l]
|
|
485
|
-
})), r;
|
|
486
|
-
}, []);
|
|
487
|
-
}
|
|
488
|
-
return U && Z && tt(), {
|
|
489
|
-
getRootProps: (o = {}) => d({
|
|
490
|
-
"aria-owns": $e ? `${R}-listbox` : null
|
|
491
|
-
}, o, {
|
|
492
|
-
onKeyDown: ct(o),
|
|
493
|
-
onMouseDown: p,
|
|
494
|
-
onClick: L
|
|
495
|
-
}),
|
|
496
|
-
getInputLabelProps: () => ({
|
|
497
|
-
id: `${R}-label`,
|
|
498
|
-
htmlFor: R
|
|
499
|
-
}),
|
|
500
|
-
getInputProps: () => ({
|
|
501
|
-
id: R,
|
|
502
|
-
value: g,
|
|
503
|
-
onBlur: tt,
|
|
504
|
-
onFocus: et,
|
|
505
|
-
onChange: ot,
|
|
506
|
-
onMouseDown: ae,
|
|
507
|
-
// if open then this is handled imperatively so don't let react override
|
|
508
|
-
// only have an opinion about this when closed
|
|
509
|
-
"aria-activedescendant": E ? "" : null,
|
|
510
|
-
"aria-autocomplete": O ? "both" : "list",
|
|
511
|
-
"aria-controls": $e ? `${R}-listbox` : void 0,
|
|
512
|
-
"aria-expanded": $e,
|
|
513
|
-
// Disable browser's suggestion that might overlap with the popup.
|
|
514
|
-
// Handle autocomplete but not autofill.
|
|
515
|
-
autoComplete: "off",
|
|
516
|
-
ref: b,
|
|
517
|
-
autoCapitalize: "none",
|
|
518
|
-
spellCheck: "false",
|
|
519
|
-
role: "combobox",
|
|
520
|
-
disabled: U
|
|
521
|
-
}),
|
|
522
|
-
getClearProps: () => ({
|
|
523
|
-
tabIndex: -1,
|
|
524
|
-
onClick: z
|
|
525
|
-
}),
|
|
526
|
-
getPopupIndicatorProps: () => ({
|
|
527
|
-
tabIndex: -1,
|
|
528
|
-
onClick: me
|
|
529
|
-
}),
|
|
530
|
-
getTagProps: ({
|
|
531
|
-
index: o
|
|
532
|
-
}) => d({
|
|
533
|
-
key: o,
|
|
534
|
-
"data-tag-index": o,
|
|
535
|
-
tabIndex: -1
|
|
536
|
-
}, !Q && {
|
|
537
|
-
onDelete: Te(o)
|
|
538
|
-
}),
|
|
539
|
-
getListboxProps: () => ({
|
|
540
|
-
role: "listbox",
|
|
541
|
-
id: `${R}-listbox`,
|
|
542
|
-
"aria-labelledby": `${R}-label`,
|
|
543
|
-
ref: Ze,
|
|
544
|
-
onMouseDown: (o) => {
|
|
545
|
-
o.preventDefault();
|
|
546
|
-
}
|
|
547
|
-
}),
|
|
548
|
-
getOptionProps: ({
|
|
549
|
-
index: o,
|
|
550
|
-
option: e
|
|
551
|
-
}) => {
|
|
552
|
-
const r = (f ? s : [s]).some((c) => c != null && _(e, c)), l = Y ? Y(e) : !1;
|
|
553
|
-
return {
|
|
554
|
-
key: T(e),
|
|
555
|
-
tabIndex: -1,
|
|
556
|
-
role: "option",
|
|
557
|
-
id: `${R}-option-${o}`,
|
|
558
|
-
onMouseMove: je,
|
|
559
|
-
onClick: Se,
|
|
560
|
-
onTouchStart: Pe,
|
|
561
|
-
"data-option-index": o,
|
|
562
|
-
"aria-disabled": l,
|
|
563
|
-
"aria-selected": r
|
|
564
|
-
};
|
|
565
|
-
},
|
|
566
|
-
id: R,
|
|
567
|
-
inputValue: g,
|
|
568
|
-
value: s,
|
|
569
|
-
dirty: Ae,
|
|
570
|
-
expanded: E && ce,
|
|
571
|
-
popupOpen: E,
|
|
572
|
-
focused: Z || D !== -1,
|
|
573
|
-
anchorEl: ce,
|
|
574
|
-
setAnchorEl: Je,
|
|
575
|
-
focusedTag: D,
|
|
576
|
-
groupedOptions: dt
|
|
577
|
-
};
|
|
578
|
-
}
|
|
579
|
-
function Ht(t) {
|
|
580
|
-
return It("MuiListSubheader", t);
|
|
581
|
-
}
|
|
582
|
-
yt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
|
|
583
|
-
const zt = ["className", "color", "component", "disableGutters", "disableSticky", "inset"], Bt = (t) => {
|
|
584
|
-
const {
|
|
585
|
-
classes: a,
|
|
586
|
-
color: u,
|
|
587
|
-
disableGutters: O,
|
|
588
|
-
inset: k,
|
|
589
|
-
disableSticky: S
|
|
590
|
-
} = t, P = {
|
|
591
|
-
root: ["root", u !== "default" && `color${He(u)}`, !O && "gutters", k && "inset", !S && "sticky"]
|
|
592
|
-
};
|
|
593
|
-
return Ct(P, Ht, a);
|
|
594
|
-
}, Ut = B("li", {
|
|
595
|
-
name: "MuiListSubheader",
|
|
596
|
-
slot: "Root",
|
|
597
|
-
overridesResolver: (t, a) => {
|
|
598
|
-
const {
|
|
599
|
-
ownerState: u
|
|
600
|
-
} = t;
|
|
601
|
-
return [a.root, u.color !== "default" && a[`color${He(u.color)}`], !u.disableGutters && a.gutters, u.inset && a.inset, !u.disableSticky && a.sticky];
|
|
602
|
-
}
|
|
603
|
-
})(({
|
|
604
|
-
theme: t,
|
|
605
|
-
ownerState: a
|
|
606
|
-
}) => d({
|
|
607
|
-
boxSizing: "border-box",
|
|
608
|
-
lineHeight: "48px",
|
|
609
|
-
listStyle: "none",
|
|
610
|
-
color: (t.vars || t).palette.text.secondary,
|
|
611
|
-
fontFamily: t.typography.fontFamily,
|
|
612
|
-
fontWeight: t.typography.fontWeightMedium,
|
|
613
|
-
fontSize: t.typography.pxToRem(14)
|
|
614
|
-
}, a.color === "primary" && {
|
|
615
|
-
color: (t.vars || t).palette.primary.main
|
|
616
|
-
}, a.color === "inherit" && {
|
|
617
|
-
color: "inherit"
|
|
618
|
-
}, !a.disableGutters && {
|
|
619
|
-
paddingLeft: 16,
|
|
620
|
-
paddingRight: 16
|
|
621
|
-
}, a.inset && {
|
|
622
|
-
paddingLeft: 72
|
|
623
|
-
}, !a.disableSticky && {
|
|
624
|
-
position: "sticky",
|
|
625
|
-
top: 0,
|
|
626
|
-
zIndex: 1,
|
|
627
|
-
backgroundColor: (t.vars || t).palette.background.paper
|
|
628
|
-
})), st = /* @__PURE__ */ C.forwardRef(function(a, u) {
|
|
629
|
-
const O = vt({
|
|
630
|
-
props: a,
|
|
631
|
-
name: "MuiListSubheader"
|
|
632
|
-
}), {
|
|
633
|
-
className: k,
|
|
634
|
-
color: S = "default",
|
|
635
|
-
component: P = "li",
|
|
636
|
-
disableGutters: h = !1,
|
|
637
|
-
disableSticky: K = !1,
|
|
638
|
-
inset: $ = !1
|
|
639
|
-
} = O, N = Ot(O, zt), W = d({}, O, {
|
|
640
|
-
color: S,
|
|
641
|
-
component: P,
|
|
642
|
-
disableGutters: h,
|
|
643
|
-
disableSticky: K,
|
|
644
|
-
inset: $
|
|
645
|
-
}), le = Bt(W);
|
|
646
|
-
return /* @__PURE__ */ v.jsx(Ut, d({
|
|
647
|
-
as: P,
|
|
648
|
-
className: he(le.root, k),
|
|
649
|
-
ref: u,
|
|
650
|
-
ownerState: W
|
|
651
|
-
}, N));
|
|
652
|
-
});
|
|
653
|
-
st.muiSkipListHighlight = !0;
|
|
654
|
-
process.env.NODE_ENV !== "production" && (st.propTypes = {
|
|
655
|
-
// ----------------------------- Warning --------------------------------
|
|
656
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
657
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
658
|
-
// ----------------------------------------------------------------------
|
|
659
|
-
/**
|
|
660
|
-
* The content of the component.
|
|
661
|
-
*/
|
|
662
|
-
children: n.node,
|
|
663
|
-
/**
|
|
664
|
-
* Override or extend the styles applied to the component.
|
|
665
|
-
*/
|
|
666
|
-
classes: n.object,
|
|
667
|
-
/**
|
|
668
|
-
* @ignore
|
|
669
|
-
*/
|
|
670
|
-
className: n.string,
|
|
671
|
-
/**
|
|
672
|
-
* The color of the component. It supports those theme colors that make sense for this component.
|
|
673
|
-
* @default 'default'
|
|
674
|
-
*/
|
|
675
|
-
color: n.oneOf(["default", "inherit", "primary"]),
|
|
676
|
-
/**
|
|
677
|
-
* The component used for the root node.
|
|
678
|
-
* Either a string to use a HTML element or a component.
|
|
679
|
-
*/
|
|
680
|
-
component: n.elementType,
|
|
681
|
-
/**
|
|
682
|
-
* If `true`, the List Subheader will not have gutters.
|
|
683
|
-
* @default false
|
|
684
|
-
*/
|
|
685
|
-
disableGutters: n.bool,
|
|
686
|
-
/**
|
|
687
|
-
* If `true`, the List Subheader will not stick to the top during scroll.
|
|
688
|
-
* @default false
|
|
689
|
-
*/
|
|
690
|
-
disableSticky: n.bool,
|
|
691
|
-
/**
|
|
692
|
-
* If `true`, the List Subheader is indented.
|
|
693
|
-
* @default false
|
|
694
|
-
*/
|
|
695
|
-
inset: n.bool,
|
|
696
|
-
/**
|
|
697
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
698
|
-
*/
|
|
699
|
-
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
700
|
-
});
|
|
701
|
-
const Wt = st;
|
|
702
|
-
function _t(t) {
|
|
703
|
-
return It("MuiAutocomplete", t);
|
|
704
|
-
}
|
|
705
|
-
const Gt = yt("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]), i = Gt;
|
|
706
|
-
var ht, xt;
|
|
707
|
-
const qt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"], Kt = (t) => {
|
|
708
|
-
const {
|
|
709
|
-
classes: a,
|
|
710
|
-
disablePortal: u,
|
|
711
|
-
expanded: O,
|
|
712
|
-
focused: k,
|
|
713
|
-
fullWidth: S,
|
|
714
|
-
hasClearIcon: P,
|
|
715
|
-
hasPopupIcon: h,
|
|
716
|
-
inputFocused: K,
|
|
717
|
-
popupOpen: $,
|
|
718
|
-
size: N
|
|
719
|
-
} = t, W = {
|
|
720
|
-
root: ["root", O && "expanded", k && "focused", S && "fullWidth", P && "hasClearIcon", h && "hasPopupIcon"],
|
|
721
|
-
inputRoot: ["inputRoot"],
|
|
722
|
-
input: ["input", K && "inputFocused"],
|
|
723
|
-
tag: ["tag", `tagSize${He(N)}`],
|
|
724
|
-
endAdornment: ["endAdornment"],
|
|
725
|
-
clearIndicator: ["clearIndicator"],
|
|
726
|
-
popupIndicator: ["popupIndicator", $ && "popupIndicatorOpen"],
|
|
727
|
-
popper: ["popper", u && "popperDisablePortal"],
|
|
728
|
-
paper: ["paper"],
|
|
729
|
-
listbox: ["listbox"],
|
|
730
|
-
loading: ["loading"],
|
|
731
|
-
noOptions: ["noOptions"],
|
|
732
|
-
option: ["option"],
|
|
733
|
-
groupLabel: ["groupLabel"],
|
|
734
|
-
groupUl: ["groupUl"]
|
|
735
|
-
};
|
|
736
|
-
return Ct(W, _t, a);
|
|
737
|
-
}, Jt = B("div", {
|
|
738
|
-
name: "MuiAutocomplete",
|
|
739
|
-
slot: "Root",
|
|
740
|
-
overridesResolver: (t, a) => {
|
|
741
|
-
const {
|
|
742
|
-
ownerState: u
|
|
743
|
-
} = t, {
|
|
744
|
-
fullWidth: O,
|
|
745
|
-
hasClearIcon: k,
|
|
746
|
-
hasPopupIcon: S,
|
|
747
|
-
inputFocused: P,
|
|
748
|
-
size: h
|
|
749
|
-
} = u;
|
|
750
|
-
return [{
|
|
751
|
-
[`& .${i.tag}`]: a.tag
|
|
752
|
-
}, {
|
|
753
|
-
[`& .${i.tag}`]: a[`tagSize${He(h)}`]
|
|
754
|
-
}, {
|
|
755
|
-
[`& .${i.inputRoot}`]: a.inputRoot
|
|
756
|
-
}, {
|
|
757
|
-
[`& .${i.input}`]: a.input
|
|
758
|
-
}, {
|
|
759
|
-
[`& .${i.input}`]: P && a.inputFocused
|
|
760
|
-
}, a.root, O && a.fullWidth, S && a.hasPopupIcon, k && a.hasClearIcon];
|
|
761
|
-
}
|
|
762
|
-
})(({
|
|
763
|
-
ownerState: t
|
|
764
|
-
}) => d({
|
|
765
|
-
[`&.${i.focused} .${i.clearIndicator}`]: {
|
|
766
|
-
visibility: "visible"
|
|
767
|
-
},
|
|
768
|
-
/* Avoid double tap issue on iOS */
|
|
769
|
-
"@media (pointer: fine)": {
|
|
770
|
-
[`&:hover .${i.clearIndicator}`]: {
|
|
771
|
-
visibility: "visible"
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
}, t.fullWidth && {
|
|
775
|
-
width: "100%"
|
|
776
|
-
}, {
|
|
777
|
-
[`& .${i.tag}`]: d({
|
|
778
|
-
margin: 3,
|
|
779
|
-
maxWidth: "calc(100% - 6px)"
|
|
780
|
-
}, t.size === "small" && {
|
|
781
|
-
margin: 2,
|
|
782
|
-
maxWidth: "calc(100% - 4px)"
|
|
783
|
-
}),
|
|
784
|
-
[`& .${i.inputRoot}`]: {
|
|
785
|
-
flexWrap: "wrap",
|
|
786
|
-
[`.${i.hasPopupIcon}&, .${i.hasClearIcon}&`]: {
|
|
787
|
-
paddingRight: 26 + 4
|
|
788
|
-
},
|
|
789
|
-
[`.${i.hasPopupIcon}.${i.hasClearIcon}&`]: {
|
|
790
|
-
paddingRight: 52 + 4
|
|
791
|
-
},
|
|
792
|
-
[`& .${i.input}`]: {
|
|
793
|
-
width: 0,
|
|
794
|
-
minWidth: 30
|
|
795
|
-
}
|
|
796
|
-
},
|
|
797
|
-
[`& .${rt.root}`]: {
|
|
798
|
-
paddingBottom: 1,
|
|
799
|
-
"& .MuiInput-input": {
|
|
800
|
-
padding: "4px 4px 4px 0px"
|
|
801
|
-
}
|
|
802
|
-
},
|
|
803
|
-
[`& .${rt.root}.${pe.sizeSmall}`]: {
|
|
804
|
-
[`& .${rt.input}`]: {
|
|
805
|
-
padding: "2px 4px 3px 0"
|
|
806
|
-
}
|
|
807
|
-
},
|
|
808
|
-
[`& .${ft.root}`]: {
|
|
809
|
-
padding: 9,
|
|
810
|
-
[`.${i.hasPopupIcon}&, .${i.hasClearIcon}&`]: {
|
|
811
|
-
paddingRight: 26 + 4 + 9
|
|
812
|
-
},
|
|
813
|
-
[`.${i.hasPopupIcon}.${i.hasClearIcon}&`]: {
|
|
814
|
-
paddingRight: 52 + 4 + 9
|
|
815
|
-
},
|
|
816
|
-
[`& .${i.input}`]: {
|
|
817
|
-
padding: "7.5px 4px 7.5px 5px"
|
|
818
|
-
},
|
|
819
|
-
[`& .${i.endAdornment}`]: {
|
|
820
|
-
right: 9
|
|
821
|
-
}
|
|
822
|
-
},
|
|
823
|
-
[`& .${ft.root}.${pe.sizeSmall}`]: {
|
|
824
|
-
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
825
|
-
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
826
|
-
paddingTop: 6,
|
|
827
|
-
paddingBottom: 6,
|
|
828
|
-
paddingLeft: 6,
|
|
829
|
-
[`& .${i.input}`]: {
|
|
830
|
-
padding: "2.5px 4px 2.5px 8px"
|
|
831
|
-
}
|
|
832
|
-
},
|
|
833
|
-
[`& .${be.root}`]: {
|
|
834
|
-
paddingTop: 19,
|
|
835
|
-
paddingLeft: 8,
|
|
836
|
-
[`.${i.hasPopupIcon}&, .${i.hasClearIcon}&`]: {
|
|
837
|
-
paddingRight: 26 + 4 + 9
|
|
838
|
-
},
|
|
839
|
-
[`.${i.hasPopupIcon}.${i.hasClearIcon}&`]: {
|
|
840
|
-
paddingRight: 52 + 4 + 9
|
|
841
|
-
},
|
|
842
|
-
[`& .${be.input}`]: {
|
|
843
|
-
padding: "7px 4px"
|
|
844
|
-
},
|
|
845
|
-
[`& .${i.endAdornment}`]: {
|
|
846
|
-
right: 9
|
|
847
|
-
}
|
|
848
|
-
},
|
|
849
|
-
[`& .${be.root}.${pe.sizeSmall}`]: {
|
|
850
|
-
paddingBottom: 1,
|
|
851
|
-
[`& .${be.input}`]: {
|
|
852
|
-
padding: "2.5px 4px"
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
[`& .${pe.hiddenLabel}`]: {
|
|
856
|
-
paddingTop: 8
|
|
857
|
-
},
|
|
858
|
-
[`& .${be.root}.${pe.hiddenLabel}`]: {
|
|
859
|
-
paddingTop: 0,
|
|
860
|
-
paddingBottom: 0,
|
|
861
|
-
[`& .${i.input}`]: {
|
|
862
|
-
paddingTop: 16,
|
|
863
|
-
paddingBottom: 17
|
|
864
|
-
}
|
|
865
|
-
},
|
|
866
|
-
[`& .${be.root}.${pe.hiddenLabel}.${pe.sizeSmall}`]: {
|
|
867
|
-
[`& .${i.input}`]: {
|
|
868
|
-
paddingTop: 8,
|
|
869
|
-
paddingBottom: 9
|
|
870
|
-
}
|
|
871
|
-
},
|
|
872
|
-
[`& .${i.input}`]: d({
|
|
873
|
-
flexGrow: 1,
|
|
874
|
-
textOverflow: "ellipsis",
|
|
875
|
-
opacity: 0
|
|
876
|
-
}, t.inputFocused && {
|
|
877
|
-
opacity: 1
|
|
878
|
-
})
|
|
879
|
-
})), Yt = B("div", {
|
|
880
|
-
name: "MuiAutocomplete",
|
|
881
|
-
slot: "EndAdornment",
|
|
882
|
-
overridesResolver: (t, a) => a.endAdornment
|
|
883
|
-
})({
|
|
884
|
-
// We use a position absolute to support wrapping tags.
|
|
885
|
-
position: "absolute",
|
|
886
|
-
right: 0,
|
|
887
|
-
top: "calc(50% - 14px)"
|
|
888
|
-
// Center vertically
|
|
889
|
-
}), Xt = B($t, {
|
|
890
|
-
name: "MuiAutocomplete",
|
|
891
|
-
slot: "ClearIndicator",
|
|
892
|
-
overridesResolver: (t, a) => a.clearIndicator
|
|
893
|
-
})({
|
|
894
|
-
marginRight: -2,
|
|
895
|
-
padding: 4,
|
|
896
|
-
visibility: "hidden"
|
|
897
|
-
}), Qt = B($t, {
|
|
898
|
-
name: "MuiAutocomplete",
|
|
899
|
-
slot: "PopupIndicator",
|
|
900
|
-
overridesResolver: ({
|
|
901
|
-
ownerState: t
|
|
902
|
-
}, a) => d({}, a.popupIndicator, t.popupOpen && a.popupIndicatorOpen)
|
|
903
|
-
})(({
|
|
904
|
-
ownerState: t
|
|
905
|
-
}) => d({
|
|
906
|
-
padding: 2,
|
|
907
|
-
marginRight: -2
|
|
908
|
-
}, t.popupOpen && {
|
|
909
|
-
transform: "rotate(180deg)"
|
|
910
|
-
})), Zt = B(Pt, {
|
|
911
|
-
name: "MuiAutocomplete",
|
|
912
|
-
slot: "Popper",
|
|
913
|
-
overridesResolver: (t, a) => {
|
|
914
|
-
const {
|
|
915
|
-
ownerState: u
|
|
916
|
-
} = t;
|
|
917
|
-
return [{
|
|
918
|
-
[`& .${i.option}`]: a.option
|
|
919
|
-
}, a.popper, u.disablePortal && a.popperDisablePortal];
|
|
920
|
-
}
|
|
921
|
-
})(({
|
|
922
|
-
theme: t,
|
|
923
|
-
ownerState: a
|
|
924
|
-
}) => d({
|
|
925
|
-
zIndex: (t.vars || t).zIndex.modal
|
|
926
|
-
}, a.disablePortal && {
|
|
927
|
-
position: "absolute"
|
|
928
|
-
})), eo = B(St, {
|
|
929
|
-
name: "MuiAutocomplete",
|
|
930
|
-
slot: "Paper",
|
|
931
|
-
overridesResolver: (t, a) => a.paper
|
|
932
|
-
})(({
|
|
933
|
-
theme: t
|
|
934
|
-
}) => d({}, t.typography.body1, {
|
|
935
|
-
overflow: "auto"
|
|
936
|
-
})), to = B("div", {
|
|
937
|
-
name: "MuiAutocomplete",
|
|
938
|
-
slot: "Loading",
|
|
939
|
-
overridesResolver: (t, a) => a.loading
|
|
940
|
-
})(({
|
|
941
|
-
theme: t
|
|
942
|
-
}) => ({
|
|
943
|
-
color: (t.vars || t).palette.text.secondary,
|
|
944
|
-
padding: "14px 16px"
|
|
945
|
-
})), oo = B("div", {
|
|
946
|
-
name: "MuiAutocomplete",
|
|
947
|
-
slot: "NoOptions",
|
|
948
|
-
overridesResolver: (t, a) => a.noOptions
|
|
949
|
-
})(({
|
|
950
|
-
theme: t
|
|
951
|
-
}) => ({
|
|
952
|
-
color: (t.vars || t).palette.text.secondary,
|
|
953
|
-
padding: "14px 16px"
|
|
954
|
-
})), no = B("div", {
|
|
955
|
-
name: "MuiAutocomplete",
|
|
956
|
-
slot: "Listbox",
|
|
957
|
-
overridesResolver: (t, a) => a.listbox
|
|
958
|
-
})(({
|
|
959
|
-
theme: t
|
|
960
|
-
}) => ({
|
|
961
|
-
listStyle: "none",
|
|
962
|
-
margin: 0,
|
|
963
|
-
padding: "8px 0",
|
|
964
|
-
maxHeight: "40vh",
|
|
965
|
-
overflow: "auto",
|
|
966
|
-
position: "relative",
|
|
967
|
-
[`& .${i.option}`]: {
|
|
968
|
-
minHeight: 48,
|
|
969
|
-
display: "flex",
|
|
970
|
-
overflow: "hidden",
|
|
971
|
-
justifyContent: "flex-start",
|
|
972
|
-
alignItems: "center",
|
|
973
|
-
cursor: "pointer",
|
|
974
|
-
paddingTop: 6,
|
|
975
|
-
boxSizing: "border-box",
|
|
976
|
-
outline: "0",
|
|
977
|
-
WebkitTapHighlightColor: "transparent",
|
|
978
|
-
paddingBottom: 6,
|
|
979
|
-
paddingLeft: 16,
|
|
980
|
-
paddingRight: 16,
|
|
981
|
-
[t.breakpoints.up("sm")]: {
|
|
982
|
-
minHeight: "auto"
|
|
983
|
-
},
|
|
984
|
-
[`&.${i.focused}`]: {
|
|
985
|
-
backgroundColor: (t.vars || t).palette.action.hover,
|
|
986
|
-
// Reset on touch devices, it doesn't add specificity
|
|
987
|
-
"@media (hover: none)": {
|
|
988
|
-
backgroundColor: "transparent"
|
|
989
|
-
}
|
|
990
|
-
},
|
|
991
|
-
'&[aria-disabled="true"]': {
|
|
992
|
-
opacity: (t.vars || t).palette.action.disabledOpacity,
|
|
993
|
-
pointerEvents: "none"
|
|
994
|
-
},
|
|
995
|
-
[`&.${i.focusVisible}`]: {
|
|
996
|
-
backgroundColor: (t.vars || t).palette.action.focus
|
|
997
|
-
},
|
|
998
|
-
'&[aria-selected="true"]': {
|
|
999
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : nt(t.palette.primary.main, t.palette.action.selectedOpacity),
|
|
1000
|
-
[`&.${i.focused}`]: {
|
|
1001
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : nt(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
|
|
1002
|
-
// Reset on touch devices, it doesn't add specificity
|
|
1003
|
-
"@media (hover: none)": {
|
|
1004
|
-
backgroundColor: (t.vars || t).palette.action.selected
|
|
1005
|
-
}
|
|
1006
|
-
},
|
|
1007
|
-
[`&.${i.focusVisible}`]: {
|
|
1008
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : nt(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
})), ro = B(Wt, {
|
|
1013
|
-
name: "MuiAutocomplete",
|
|
1014
|
-
slot: "GroupLabel",
|
|
1015
|
-
overridesResolver: (t, a) => a.groupLabel
|
|
1016
|
-
})(({
|
|
1017
|
-
theme: t
|
|
1018
|
-
}) => ({
|
|
1019
|
-
backgroundColor: (t.vars || t).palette.background.paper,
|
|
1020
|
-
top: -8
|
|
1021
|
-
})), ao = B("ul", {
|
|
1022
|
-
name: "MuiAutocomplete",
|
|
1023
|
-
slot: "GroupUl",
|
|
1024
|
-
overridesResolver: (t, a) => a.groupUl
|
|
1025
|
-
})({
|
|
1026
|
-
padding: 0,
|
|
1027
|
-
[`& .${i.option}`]: {
|
|
1028
|
-
paddingLeft: 24
|
|
1029
|
-
}
|
|
1030
|
-
}), Tt = /* @__PURE__ */ C.forwardRef(function(a, u) {
|
|
1031
|
-
var O, k, S, P;
|
|
1032
|
-
const h = vt({
|
|
1033
|
-
props: a,
|
|
1034
|
-
name: "MuiAutocomplete"
|
|
1035
|
-
}), {
|
|
1036
|
-
autoComplete: K = !1,
|
|
1037
|
-
autoHighlight: $ = !1,
|
|
1038
|
-
autoSelect: N = !1,
|
|
1039
|
-
blurOnSelect: W = !1,
|
|
1040
|
-
ChipProps: le,
|
|
1041
|
-
className: U,
|
|
1042
|
-
clearIcon: ze = ht || (ht = /* @__PURE__ */ v.jsx(Lt, {
|
|
1043
|
-
fontSize: "small"
|
|
1044
|
-
})),
|
|
1045
|
-
clearOnBlur: Be = !h.freeSolo,
|
|
1046
|
-
clearOnEscape: it = !1,
|
|
1047
|
-
clearText: xe = "Clear",
|
|
1048
|
-
closeText: J = "Close",
|
|
1049
|
-
componentsProps: Y = {},
|
|
1050
|
-
defaultValue: Ue = h.multiple ? [] : null,
|
|
1051
|
-
disableClearable: ue = !1,
|
|
1052
|
-
disableCloseOnSelect: We = !1,
|
|
1053
|
-
disabled: se = !1,
|
|
1054
|
-
disabledItemsFocusable: _e = !1,
|
|
1055
|
-
disableListWrap: pt = !1,
|
|
1056
|
-
disablePortal: _ = !1,
|
|
1057
|
-
filterSelectedOptions: f = !1,
|
|
1058
|
-
forcePopupIcon: Oe = "auto",
|
|
1059
|
-
freeSolo: Ie = !1,
|
|
1060
|
-
fullWidth: we = !1,
|
|
1061
|
-
getLimitTagsText: X = (p) => `+${p}`,
|
|
1062
|
-
getOptionLabel: ye = (p) => {
|
|
1063
|
-
var L;
|
|
1064
|
-
return (L = p.label) != null ? L : p;
|
|
1065
|
-
},
|
|
1066
|
-
groupBy: Ge,
|
|
1067
|
-
handleHomeEndKeys: ut = !h.freeSolo,
|
|
1068
|
-
includeInputInList: Le = !1,
|
|
1069
|
-
limitTags: Q = -1,
|
|
1070
|
-
ListboxComponent: qe = "ul",
|
|
1071
|
-
ListboxProps: Ke,
|
|
1072
|
-
loading: R = !1,
|
|
1073
|
-
loadingText: T = "Loading…",
|
|
1074
|
-
multiple: ve = !1,
|
|
1075
|
-
noOptionsText: Ce = "No options",
|
|
1076
|
-
openOnFocus: b = !1,
|
|
1077
|
-
openText: j = "Open",
|
|
1078
|
-
PaperComponent: ce = St,
|
|
1079
|
-
PopperComponent: Je = Pt,
|
|
1080
|
-
popupIcon: D = xt || (xt = /* @__PURE__ */ v.jsx(wt, {})),
|
|
1081
|
-
readOnly: de = !1,
|
|
1082
|
-
renderGroup: ke,
|
|
1083
|
-
renderInput: A,
|
|
1084
|
-
renderOption: s,
|
|
1085
|
-
renderTags: Ne,
|
|
1086
|
-
selectOnFocus: g = !h.freeSolo,
|
|
1087
|
-
size: oe = "medium",
|
|
1088
|
-
slotProps: Z = {}
|
|
1089
|
-
} = h, Re = Ot(h, qt), {
|
|
1090
|
-
getRootProps: fe,
|
|
1091
|
-
getInputProps: ee,
|
|
1092
|
-
getInputLabelProps: Ee,
|
|
1093
|
-
getPopupIndicatorProps: Ye,
|
|
1094
|
-
getClearProps: De,
|
|
1095
|
-
getTagProps: Me,
|
|
1096
|
-
getListboxProps: E,
|
|
1097
|
-
getOptionProps: x,
|
|
1098
|
-
value: V,
|
|
1099
|
-
dirty: $e,
|
|
1100
|
-
expanded: ge,
|
|
1101
|
-
id: Xe,
|
|
1102
|
-
popupOpen: F,
|
|
1103
|
-
focused: H,
|
|
1104
|
-
focusedTag: Qe,
|
|
1105
|
-
anchorEl: ne,
|
|
1106
|
-
setAnchorEl: Ze,
|
|
1107
|
-
inputValue: te,
|
|
1108
|
-
groupedOptions: G
|
|
1109
|
-
} = Ft(d({}, h, {
|
|
1110
|
-
componentName: "Autocomplete"
|
|
1111
|
-
})), q = !ue && !se && $e && !de, re = (!Ie || Oe === !0) && Oe !== !1, {
|
|
1112
|
-
onMouseDown: ie
|
|
1113
|
-
} = ee(), w = d({}, h, {
|
|
1114
|
-
disablePortal: _,
|
|
1115
|
-
expanded: ge,
|
|
1116
|
-
focused: H,
|
|
1117
|
-
fullWidth: we,
|
|
1118
|
-
hasClearIcon: q,
|
|
1119
|
-
hasPopupIcon: re,
|
|
1120
|
-
inputFocused: Qe === -1,
|
|
1121
|
-
popupOpen: F,
|
|
1122
|
-
size: oe
|
|
1123
|
-
}), I = Kt(w);
|
|
1124
|
-
let z;
|
|
1125
|
-
if (ve && V.length > 0) {
|
|
1126
|
-
const p = (L) => d({
|
|
1127
|
-
className: I.tag,
|
|
1128
|
-
disabled: se
|
|
1129
|
-
}, Me(L));
|
|
1130
|
-
Ne ? z = Ne(V, p, w) : z = V.map((L, ae) => /* @__PURE__ */ v.jsx(Dt, d({
|
|
1131
|
-
label: ye(L),
|
|
1132
|
-
size: oe
|
|
1133
|
-
}, p({
|
|
1134
|
-
index: ae
|
|
1135
|
-
}), le)));
|
|
1136
|
-
}
|
|
1137
|
-
if (Q > -1 && Array.isArray(z)) {
|
|
1138
|
-
const p = z.length - Q;
|
|
1139
|
-
!H && p > 0 && (z = z.splice(0, Q), z.push(/* @__PURE__ */ v.jsx("span", {
|
|
1140
|
-
className: I.tag,
|
|
1141
|
-
children: X(p)
|
|
1142
|
-
}, z.length)));
|
|
1143
|
-
}
|
|
1144
|
-
const et = ke || ((p) => /* @__PURE__ */ v.jsxs("li", {
|
|
1145
|
-
children: [/* @__PURE__ */ v.jsx(ro, {
|
|
1146
|
-
className: I.groupLabel,
|
|
1147
|
-
ownerState: w,
|
|
1148
|
-
component: "div",
|
|
1149
|
-
children: p.group
|
|
1150
|
-
}), /* @__PURE__ */ v.jsx(ao, {
|
|
1151
|
-
className: I.groupUl,
|
|
1152
|
-
ownerState: w,
|
|
1153
|
-
children: p.children
|
|
1154
|
-
})]
|
|
1155
|
-
}, p.key)), ot = s || ((p, L) => /* @__PURE__ */ v.jsx("li", d({}, p, {
|
|
1156
|
-
children: ye(L)
|
|
1157
|
-
}))), je = (p, L) => {
|
|
1158
|
-
const ae = x({
|
|
1159
|
-
option: p,
|
|
1160
|
-
index: L
|
|
1161
|
-
});
|
|
1162
|
-
return ot(d({}, ae, {
|
|
1163
|
-
className: I.option
|
|
1164
|
-
}), p, {
|
|
1165
|
-
selected: ae["aria-selected"],
|
|
1166
|
-
index: L,
|
|
1167
|
-
inputValue: te
|
|
1168
|
-
});
|
|
1169
|
-
}, Pe = (O = Z.clearIndicator) != null ? O : Y.clearIndicator, Se = (k = Z.paper) != null ? k : Y.paper, Te = (S = Z.popper) != null ? S : Y.popper, me = (P = Z.popupIndicator) != null ? P : Y.popupIndicator;
|
|
1170
|
-
return /* @__PURE__ */ v.jsxs(C.Fragment, {
|
|
1171
|
-
children: [/* @__PURE__ */ v.jsx(Jt, d({
|
|
1172
|
-
ref: u,
|
|
1173
|
-
className: he(I.root, U),
|
|
1174
|
-
ownerState: w
|
|
1175
|
-
}, fe(Re), {
|
|
1176
|
-
children: A({
|
|
1177
|
-
id: Xe,
|
|
1178
|
-
disabled: se,
|
|
1179
|
-
fullWidth: !0,
|
|
1180
|
-
size: oe === "small" ? "small" : void 0,
|
|
1181
|
-
InputLabelProps: Ee(),
|
|
1182
|
-
InputProps: d({
|
|
1183
|
-
ref: Ze,
|
|
1184
|
-
className: I.inputRoot,
|
|
1185
|
-
startAdornment: z,
|
|
1186
|
-
onClick: (p) => {
|
|
1187
|
-
p.target === p.currentTarget && ie(p);
|
|
1188
|
-
}
|
|
1189
|
-
}, (q || re) && {
|
|
1190
|
-
endAdornment: /* @__PURE__ */ v.jsxs(Yt, {
|
|
1191
|
-
className: I.endAdornment,
|
|
1192
|
-
ownerState: w,
|
|
1193
|
-
children: [q ? /* @__PURE__ */ v.jsx(Xt, d({}, De(), {
|
|
1194
|
-
"aria-label": xe,
|
|
1195
|
-
title: xe,
|
|
1196
|
-
ownerState: w
|
|
1197
|
-
}, Pe, {
|
|
1198
|
-
className: he(I.clearIndicator, Pe == null ? void 0 : Pe.className),
|
|
1199
|
-
children: ze
|
|
1200
|
-
})) : null, re ? /* @__PURE__ */ v.jsx(Qt, d({}, Ye(), {
|
|
1201
|
-
disabled: se,
|
|
1202
|
-
"aria-label": F ? J : j,
|
|
1203
|
-
title: F ? J : j,
|
|
1204
|
-
ownerState: w
|
|
1205
|
-
}, me, {
|
|
1206
|
-
className: he(I.popupIndicator, me == null ? void 0 : me.className),
|
|
1207
|
-
children: D
|
|
1208
|
-
})) : null]
|
|
1209
|
-
})
|
|
1210
|
-
}),
|
|
1211
|
-
inputProps: d({
|
|
1212
|
-
className: I.input,
|
|
1213
|
-
disabled: se,
|
|
1214
|
-
readOnly: de
|
|
1215
|
-
}, ee())
|
|
1216
|
-
})
|
|
1217
|
-
})), ne ? /* @__PURE__ */ v.jsx(Zt, d({
|
|
1218
|
-
as: Je,
|
|
1219
|
-
disablePortal: _,
|
|
1220
|
-
style: {
|
|
1221
|
-
width: ne ? ne.clientWidth : null
|
|
1222
|
-
},
|
|
1223
|
-
ownerState: w,
|
|
1224
|
-
role: "presentation",
|
|
1225
|
-
anchorEl: ne,
|
|
1226
|
-
open: F
|
|
1227
|
-
}, Te, {
|
|
1228
|
-
className: he(I.popper, Te == null ? void 0 : Te.className),
|
|
1229
|
-
children: /* @__PURE__ */ v.jsxs(eo, d({
|
|
1230
|
-
ownerState: w,
|
|
1231
|
-
as: ce
|
|
1232
|
-
}, Se, {
|
|
1233
|
-
className: he(I.paper, Se == null ? void 0 : Se.className),
|
|
1234
|
-
children: [R && G.length === 0 ? /* @__PURE__ */ v.jsx(to, {
|
|
1235
|
-
className: I.loading,
|
|
1236
|
-
ownerState: w,
|
|
1237
|
-
children: T
|
|
1238
|
-
}) : null, G.length === 0 && !Ie && !R ? /* @__PURE__ */ v.jsx(oo, {
|
|
1239
|
-
className: I.noOptions,
|
|
1240
|
-
ownerState: w,
|
|
1241
|
-
role: "presentation",
|
|
1242
|
-
onMouseDown: (p) => {
|
|
1243
|
-
p.preventDefault();
|
|
1244
|
-
},
|
|
1245
|
-
children: Ce
|
|
1246
|
-
}) : null, G.length > 0 ? /* @__PURE__ */ v.jsx(no, d({
|
|
1247
|
-
as: qe,
|
|
1248
|
-
className: I.listbox,
|
|
1249
|
-
ownerState: w
|
|
1250
|
-
}, E(), Ke, {
|
|
1251
|
-
children: G.map((p, L) => Ge ? et({
|
|
1252
|
-
key: p.key,
|
|
1253
|
-
group: p.group,
|
|
1254
|
-
children: p.options.map((ae, Ae) => je(ae, p.index + Ae))
|
|
1255
|
-
}) : je(p, L))
|
|
1256
|
-
})) : null]
|
|
1257
|
-
}))
|
|
1258
|
-
})) : null]
|
|
1259
|
-
});
|
|
1260
|
-
});
|
|
1261
|
-
process.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
|
1262
|
-
// ----------------------------- Warning --------------------------------
|
|
1263
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1264
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1265
|
-
// ----------------------------------------------------------------------
|
|
1266
|
-
/**
|
|
1267
|
-
* If `true`, the portion of the selected suggestion that has not been typed by the user,
|
|
1268
|
-
* known as the completion string, appears inline after the input cursor in the textbox.
|
|
1269
|
-
* The inline completion string is visually highlighted and has a selected state.
|
|
1270
|
-
* @default false
|
|
1271
|
-
*/
|
|
1272
|
-
autoComplete: n.bool,
|
|
1273
|
-
/**
|
|
1274
|
-
* If `true`, the first option is automatically highlighted.
|
|
1275
|
-
* @default false
|
|
1276
|
-
*/
|
|
1277
|
-
autoHighlight: n.bool,
|
|
1278
|
-
/**
|
|
1279
|
-
* If `true`, the selected option becomes the value of the input
|
|
1280
|
-
* when the Autocomplete loses focus unless the user chooses
|
|
1281
|
-
* a different option or changes the character string in the input.
|
|
1282
|
-
*
|
|
1283
|
-
* When using `freeSolo` mode, the typed value will be the input value
|
|
1284
|
-
* if the Autocomplete loses focus without highlighting an option.
|
|
1285
|
-
* @default false
|
|
1286
|
-
*/
|
|
1287
|
-
autoSelect: n.bool,
|
|
1288
|
-
/**
|
|
1289
|
-
* Control if the input should be blurred when an option is selected:
|
|
1290
|
-
*
|
|
1291
|
-
* - `false` the input is not blurred.
|
|
1292
|
-
* - `true` the input is always blurred.
|
|
1293
|
-
* - `touch` the input is blurred after a touch event.
|
|
1294
|
-
* - `mouse` the input is blurred after a mouse event.
|
|
1295
|
-
* @default false
|
|
1296
|
-
*/
|
|
1297
|
-
blurOnSelect: n.oneOfType([n.oneOf(["mouse", "touch"]), n.bool]),
|
|
1298
|
-
/**
|
|
1299
|
-
* Props applied to the [`Chip`](/material-ui/api/chip/) element.
|
|
1300
|
-
*/
|
|
1301
|
-
ChipProps: n.object,
|
|
1302
|
-
/**
|
|
1303
|
-
* Override or extend the styles applied to the component.
|
|
1304
|
-
*/
|
|
1305
|
-
classes: n.object,
|
|
1306
|
-
/**
|
|
1307
|
-
* @ignore
|
|
1308
|
-
*/
|
|
1309
|
-
className: n.string,
|
|
1310
|
-
/**
|
|
1311
|
-
* The icon to display in place of the default clear icon.
|
|
1312
|
-
* @default <ClearIcon fontSize="small" />
|
|
1313
|
-
*/
|
|
1314
|
-
clearIcon: n.node,
|
|
1315
|
-
/**
|
|
1316
|
-
* If `true`, the input's text is cleared on blur if no value is selected.
|
|
1317
|
-
*
|
|
1318
|
-
* Set to `true` if you want to help the user enter a new value.
|
|
1319
|
-
* Set to `false` if you want to help the user resume their search.
|
|
1320
|
-
* @default !props.freeSolo
|
|
1321
|
-
*/
|
|
1322
|
-
clearOnBlur: n.bool,
|
|
1323
|
-
/**
|
|
1324
|
-
* If `true`, clear all values when the user presses escape and the popup is closed.
|
|
1325
|
-
* @default false
|
|
1326
|
-
*/
|
|
1327
|
-
clearOnEscape: n.bool,
|
|
1328
|
-
/**
|
|
1329
|
-
* Override the default text for the *clear* icon button.
|
|
1330
|
-
*
|
|
1331
|
-
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
1332
|
-
* @default 'Clear'
|
|
1333
|
-
*/
|
|
1334
|
-
clearText: n.string,
|
|
1335
|
-
/**
|
|
1336
|
-
* Override the default text for the *close popup* icon button.
|
|
1337
|
-
*
|
|
1338
|
-
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
1339
|
-
* @default 'Close'
|
|
1340
|
-
*/
|
|
1341
|
-
closeText: n.string,
|
|
1342
|
-
/**
|
|
1343
|
-
* The props used for each slot inside.
|
|
1344
|
-
* @default {}
|
|
1345
|
-
*/
|
|
1346
|
-
componentsProps: n.shape({
|
|
1347
|
-
clearIndicator: n.object,
|
|
1348
|
-
paper: n.object,
|
|
1349
|
-
popper: n.object,
|
|
1350
|
-
popupIndicator: n.object
|
|
1351
|
-
}),
|
|
1352
|
-
/**
|
|
1353
|
-
* The default value. Use when the component is not controlled.
|
|
1354
|
-
* @default props.multiple ? [] : null
|
|
1355
|
-
*/
|
|
1356
|
-
defaultValue: gt(n.any, (t) => t.multiple && t.defaultValue !== void 0 && !Array.isArray(t.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${t.defaultValue} was provided.`].join(`
|
|
1357
|
-
`)) : null),
|
|
1358
|
-
/**
|
|
1359
|
-
* If `true`, the input can't be cleared.
|
|
1360
|
-
* @default false
|
|
1361
|
-
*/
|
|
1362
|
-
disableClearable: n.bool,
|
|
1363
|
-
/**
|
|
1364
|
-
* If `true`, the popup won't close when a value is selected.
|
|
1365
|
-
* @default false
|
|
1366
|
-
*/
|
|
1367
|
-
disableCloseOnSelect: n.bool,
|
|
1368
|
-
/**
|
|
1369
|
-
* If `true`, the component is disabled.
|
|
1370
|
-
* @default false
|
|
1371
|
-
*/
|
|
1372
|
-
disabled: n.bool,
|
|
1373
|
-
/**
|
|
1374
|
-
* If `true`, will allow focus on disabled items.
|
|
1375
|
-
* @default false
|
|
1376
|
-
*/
|
|
1377
|
-
disabledItemsFocusable: n.bool,
|
|
1378
|
-
/**
|
|
1379
|
-
* If `true`, the list box in the popup will not wrap focus.
|
|
1380
|
-
* @default false
|
|
1381
|
-
*/
|
|
1382
|
-
disableListWrap: n.bool,
|
|
1383
|
-
/**
|
|
1384
|
-
* If `true`, the `Popper` content will be under the DOM hierarchy of the parent component.
|
|
1385
|
-
* @default false
|
|
1386
|
-
*/
|
|
1387
|
-
disablePortal: n.bool,
|
|
1388
|
-
/**
|
|
1389
|
-
* A function that determines the filtered options to be rendered on search.
|
|
1390
|
-
*
|
|
1391
|
-
* @param {T[]} options The options to render.
|
|
1392
|
-
* @param {object} state The state of the component.
|
|
1393
|
-
* @returns {T[]}
|
|
1394
|
-
*/
|
|
1395
|
-
filterOptions: n.func,
|
|
1396
|
-
/**
|
|
1397
|
-
* If `true`, hide the selected options from the list box.
|
|
1398
|
-
* @default false
|
|
1399
|
-
*/
|
|
1400
|
-
filterSelectedOptions: n.bool,
|
|
1401
|
-
/**
|
|
1402
|
-
* Force the visibility display of the popup icon.
|
|
1403
|
-
* @default 'auto'
|
|
1404
|
-
*/
|
|
1405
|
-
forcePopupIcon: n.oneOfType([n.oneOf(["auto"]), n.bool]),
|
|
1406
|
-
/**
|
|
1407
|
-
* If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
|
|
1408
|
-
* @default false
|
|
1409
|
-
*/
|
|
1410
|
-
freeSolo: n.bool,
|
|
1411
|
-
/**
|
|
1412
|
-
* If `true`, the input will take up the full width of its container.
|
|
1413
|
-
* @default false
|
|
1414
|
-
*/
|
|
1415
|
-
fullWidth: n.bool,
|
|
1416
|
-
/**
|
|
1417
|
-
* The label to display when the tags are truncated (`limitTags`).
|
|
1418
|
-
*
|
|
1419
|
-
* @param {number} more The number of truncated tags.
|
|
1420
|
-
* @returns {ReactNode}
|
|
1421
|
-
* @default (more) => `+${more}`
|
|
1422
|
-
*/
|
|
1423
|
-
getLimitTagsText: n.func,
|
|
1424
|
-
/**
|
|
1425
|
-
* Used to determine the disabled state for a given option.
|
|
1426
|
-
*
|
|
1427
|
-
* @param {T} option The option to test.
|
|
1428
|
-
* @returns {boolean}
|
|
1429
|
-
*/
|
|
1430
|
-
getOptionDisabled: n.func,
|
|
1431
|
-
/**
|
|
1432
|
-
* Used to determine the string value for a given option.
|
|
1433
|
-
* It's used to fill the input (and the list box options if `renderOption` is not provided).
|
|
1434
|
-
*
|
|
1435
|
-
* If used in free solo mode, it must accept both the type of the options and a string.
|
|
1436
|
-
*
|
|
1437
|
-
* @param {T} option
|
|
1438
|
-
* @returns {string}
|
|
1439
|
-
* @default (option) => option.label ?? option
|
|
1440
|
-
*/
|
|
1441
|
-
getOptionLabel: n.func,
|
|
1442
|
-
/**
|
|
1443
|
-
* If provided, the options will be grouped under the returned string.
|
|
1444
|
-
* The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
|
|
1445
|
-
*
|
|
1446
|
-
* @param {T} options The options to group.
|
|
1447
|
-
* @returns {string}
|
|
1448
|
-
*/
|
|
1449
|
-
groupBy: n.func,
|
|
1450
|
-
/**
|
|
1451
|
-
* If `true`, the component handles the "Home" and "End" keys when the popup is open.
|
|
1452
|
-
* It should move focus to the first option and last option, respectively.
|
|
1453
|
-
* @default !props.freeSolo
|
|
1454
|
-
*/
|
|
1455
|
-
handleHomeEndKeys: n.bool,
|
|
1456
|
-
/**
|
|
1457
|
-
* This prop is used to help implement the accessibility logic.
|
|
1458
|
-
* If you don't provide an id it will fall back to a randomly generated one.
|
|
1459
|
-
*/
|
|
1460
|
-
id: n.string,
|
|
1461
|
-
/**
|
|
1462
|
-
* If `true`, the highlight can move to the input.
|
|
1463
|
-
* @default false
|
|
1464
|
-
*/
|
|
1465
|
-
includeInputInList: n.bool,
|
|
1466
|
-
/**
|
|
1467
|
-
* The input value.
|
|
1468
|
-
*/
|
|
1469
|
-
inputValue: n.string,
|
|
1470
|
-
/**
|
|
1471
|
-
* Used to determine if the option represents the given value.
|
|
1472
|
-
* Uses strict equality by default.
|
|
1473
|
-
* ⚠️ Both arguments need to be handled, an option can only match with one value.
|
|
1474
|
-
*
|
|
1475
|
-
* @param {T} option The option to test.
|
|
1476
|
-
* @param {T} value The value to test against.
|
|
1477
|
-
* @returns {boolean}
|
|
1478
|
-
*/
|
|
1479
|
-
isOptionEqualToValue: n.func,
|
|
1480
|
-
/**
|
|
1481
|
-
* The maximum number of tags that will be visible when not focused.
|
|
1482
|
-
* Set `-1` to disable the limit.
|
|
1483
|
-
* @default -1
|
|
1484
|
-
*/
|
|
1485
|
-
limitTags: kt,
|
|
1486
|
-
/**
|
|
1487
|
-
* The component used to render the listbox.
|
|
1488
|
-
* @default 'ul'
|
|
1489
|
-
*/
|
|
1490
|
-
ListboxComponent: n.elementType,
|
|
1491
|
-
/**
|
|
1492
|
-
* Props applied to the Listbox element.
|
|
1493
|
-
*/
|
|
1494
|
-
ListboxProps: n.object,
|
|
1495
|
-
/**
|
|
1496
|
-
* If `true`, the component is in a loading state.
|
|
1497
|
-
* This shows the `loadingText` in place of suggestions (only if there are no suggestions to show, e.g. `options` are empty).
|
|
1498
|
-
* @default false
|
|
1499
|
-
*/
|
|
1500
|
-
loading: n.bool,
|
|
1501
|
-
/**
|
|
1502
|
-
* Text to display when in a loading state.
|
|
1503
|
-
*
|
|
1504
|
-
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
1505
|
-
* @default 'Loading…'
|
|
1506
|
-
*/
|
|
1507
|
-
loadingText: n.node,
|
|
1508
|
-
/**
|
|
1509
|
-
* If `true`, `value` must be an array and the menu will support multiple selections.
|
|
1510
|
-
* @default false
|
|
1511
|
-
*/
|
|
1512
|
-
multiple: n.bool,
|
|
1513
|
-
/**
|
|
1514
|
-
* Text to display when there are no options.
|
|
1515
|
-
*
|
|
1516
|
-
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
1517
|
-
* @default 'No options'
|
|
1518
|
-
*/
|
|
1519
|
-
noOptionsText: n.node,
|
|
1520
|
-
/**
|
|
1521
|
-
* Callback fired when the value changes.
|
|
1522
|
-
*
|
|
1523
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
1524
|
-
* @param {T|T[]} value The new value of the component.
|
|
1525
|
-
* @param {string} reason One of "createOption", "selectOption", "removeOption", "blur" or "clear".
|
|
1526
|
-
* @param {string} [details]
|
|
1527
|
-
*/
|
|
1528
|
-
onChange: n.func,
|
|
1529
|
-
/**
|
|
1530
|
-
* Callback fired when the popup requests to be closed.
|
|
1531
|
-
* Use in controlled mode (see open).
|
|
1532
|
-
*
|
|
1533
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
1534
|
-
* @param {string} reason Can be: `"toggleInput"`, `"escape"`, `"selectOption"`, `"removeOption"`, `"blur"`.
|
|
1535
|
-
*/
|
|
1536
|
-
onClose: n.func,
|
|
1537
|
-
/**
|
|
1538
|
-
* Callback fired when the highlight option changes.
|
|
1539
|
-
*
|
|
1540
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
1541
|
-
* @param {T} option The highlighted option.
|
|
1542
|
-
* @param {string} reason Can be: `"keyboard"`, `"auto"`, `"mouse"`, `"touch"`.
|
|
1543
|
-
*/
|
|
1544
|
-
onHighlightChange: n.func,
|
|
1545
|
-
/**
|
|
1546
|
-
* Callback fired when the input value changes.
|
|
1547
|
-
*
|
|
1548
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
1549
|
-
* @param {string} value The new value of the text input.
|
|
1550
|
-
* @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`.
|
|
1551
|
-
*/
|
|
1552
|
-
onInputChange: n.func,
|
|
1553
|
-
/**
|
|
1554
|
-
* Callback fired when the popup requests to be opened.
|
|
1555
|
-
* Use in controlled mode (see open).
|
|
1556
|
-
*
|
|
1557
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
1558
|
-
*/
|
|
1559
|
-
onOpen: n.func,
|
|
1560
|
-
/**
|
|
1561
|
-
* If `true`, the component is shown.
|
|
1562
|
-
*/
|
|
1563
|
-
open: n.bool,
|
|
1564
|
-
/**
|
|
1565
|
-
* If `true`, the popup will open on input focus.
|
|
1566
|
-
* @default false
|
|
1567
|
-
*/
|
|
1568
|
-
openOnFocus: n.bool,
|
|
1569
|
-
/**
|
|
1570
|
-
* Override the default text for the *open popup* icon button.
|
|
1571
|
-
*
|
|
1572
|
-
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
1573
|
-
* @default 'Open'
|
|
1574
|
-
*/
|
|
1575
|
-
openText: n.string,
|
|
1576
|
-
/**
|
|
1577
|
-
* Array of options.
|
|
1578
|
-
*/
|
|
1579
|
-
options: n.array.isRequired,
|
|
1580
|
-
/**
|
|
1581
|
-
* The component used to render the body of the popup.
|
|
1582
|
-
* @default Paper
|
|
1583
|
-
*/
|
|
1584
|
-
PaperComponent: n.elementType,
|
|
1585
|
-
/**
|
|
1586
|
-
* The component used to position the popup.
|
|
1587
|
-
* @default Popper
|
|
1588
|
-
*/
|
|
1589
|
-
PopperComponent: n.elementType,
|
|
1590
|
-
/**
|
|
1591
|
-
* The icon to display in place of the default popup icon.
|
|
1592
|
-
* @default <ArrowDropDownIcon />
|
|
1593
|
-
*/
|
|
1594
|
-
popupIcon: n.node,
|
|
1595
|
-
/**
|
|
1596
|
-
* If `true`, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.
|
|
1597
|
-
* @default false
|
|
1598
|
-
*/
|
|
1599
|
-
readOnly: n.bool,
|
|
1600
|
-
/**
|
|
1601
|
-
* Render the group.
|
|
1602
|
-
*
|
|
1603
|
-
* @param {AutocompleteRenderGroupParams} params The group to render.
|
|
1604
|
-
* @returns {ReactNode}
|
|
1605
|
-
*/
|
|
1606
|
-
renderGroup: n.func,
|
|
1607
|
-
/**
|
|
1608
|
-
* Render the input.
|
|
1609
|
-
*
|
|
1610
|
-
* @param {object} params
|
|
1611
|
-
* @returns {ReactNode}
|
|
1612
|
-
*/
|
|
1613
|
-
renderInput: n.func.isRequired,
|
|
1614
|
-
/**
|
|
1615
|
-
* Render the option, use `getOptionLabel` by default.
|
|
1616
|
-
*
|
|
1617
|
-
* @param {object} props The props to apply on the li element.
|
|
1618
|
-
* @param {T} option The option to render.
|
|
1619
|
-
* @param {object} state The state of the component.
|
|
1620
|
-
* @returns {ReactNode}
|
|
1621
|
-
*/
|
|
1622
|
-
renderOption: n.func,
|
|
1623
|
-
/**
|
|
1624
|
-
* Render the selected value.
|
|
1625
|
-
*
|
|
1626
|
-
* @param {T[]} value The `value` provided to the component.
|
|
1627
|
-
* @param {function} getTagProps A tag props getter.
|
|
1628
|
-
* @param {object} ownerState The state of the Autocomplete component.
|
|
1629
|
-
* @returns {ReactNode}
|
|
1630
|
-
*/
|
|
1631
|
-
renderTags: n.func,
|
|
1632
|
-
/**
|
|
1633
|
-
* If `true`, the input's text is selected on focus.
|
|
1634
|
-
* It helps the user clear the selected value.
|
|
1635
|
-
* @default !props.freeSolo
|
|
1636
|
-
*/
|
|
1637
|
-
selectOnFocus: n.bool,
|
|
1638
|
-
/**
|
|
1639
|
-
* The size of the component.
|
|
1640
|
-
* @default 'medium'
|
|
1641
|
-
*/
|
|
1642
|
-
size: n.oneOfType([n.oneOf(["small", "medium"]), n.string]),
|
|
1643
|
-
/**
|
|
1644
|
-
* The props used for each slot inside.
|
|
1645
|
-
* @default {}
|
|
1646
|
-
*/
|
|
1647
|
-
slotProps: n.shape({
|
|
1648
|
-
clearIndicator: n.object,
|
|
1649
|
-
paper: n.object,
|
|
1650
|
-
popper: n.object,
|
|
1651
|
-
popupIndicator: n.object
|
|
1652
|
-
}),
|
|
1653
|
-
/**
|
|
1654
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1655
|
-
*/
|
|
1656
|
-
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
1657
|
-
/**
|
|
1658
|
-
* The value of the autocomplete.
|
|
1659
|
-
*
|
|
1660
|
-
* The value must have reference equality with the option in order to be selected.
|
|
1661
|
-
* You can customize the equality behavior with the `isOptionEqualToValue` prop.
|
|
1662
|
-
*/
|
|
1663
|
-
value: gt(n.any, (t) => t.multiple && t.value !== void 0 && !Array.isArray(t.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${t.value} was provided.`].join(`
|
|
1664
|
-
`)) : null)
|
|
1665
|
-
});
|
|
1666
|
-
const lo = Tt;
|
|
1667
|
-
function $o(t) {
|
|
1668
|
-
return /* @__PURE__ */ At.jsxDEV(lo, { ...t }, void 0, !1, {
|
|
1669
|
-
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Selects/KdpaAutoComplete/KdpaAutoComplete.tsx",
|
|
1670
|
-
lineNumber: 7,
|
|
1671
|
-
columnNumber: 10
|
|
1672
|
-
}, this);
|
|
1673
|
-
}
|
|
1674
|
-
export {
|
|
1675
|
-
$o as K
|
|
1676
|
-
};
|