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,4435 +0,0 @@
|
|
|
1
|
-
import { _ as H, a as s } from "./extends-135d7828.js";
|
|
2
|
-
import * as a from "react";
|
|
3
|
-
import { j as v, P as e, T as Go, c as ue, f as Oo, e as Ze, g as pe } from "./identifier-03e07987.js";
|
|
4
|
-
import { e as Xo, h as Yo, s as $, u as te, c as ee, a as oe, b as Oe, g as fe, r as Je, i as Zo } from "./useThemeProps-d77fc01d.js";
|
|
5
|
-
import { i as Co, F as Jo } from "./FormControl-97957e4f.js";
|
|
6
|
-
import { u as Qo } from "./useId-a21bd5c3.js";
|
|
7
|
-
import { f as Se } from "./formControlState-9148c46f.js";
|
|
8
|
-
import { u as Ee, F as en } from "./useFormControl-af690c26.js";
|
|
9
|
-
import { u as on } from "./useTheme-02c27d78.js";
|
|
10
|
-
import { g as nn, M as tn } from "./Modal-c24d4251.js";
|
|
11
|
-
import { M as To, i as rn } from "./Paper-05bfa47c.js";
|
|
12
|
-
import { r as ge } from "./refType-7413f8aa.js";
|
|
13
|
-
import { c as sn } from "./chainPropTypes-004bf492.js";
|
|
14
|
-
import { H as Xe } from "./HTMLElementType-ff213f3c.js";
|
|
15
|
-
import { e as Ro } from "./elementTypeAcceptingRef-4123bc65.js";
|
|
16
|
-
import { G as ln } from "./Grow-24c548e6.js";
|
|
17
|
-
import { u as Ne } from "./useForkRef-0781dda0.js";
|
|
18
|
-
import { o as Le } from "./ownerDocument-5430cd5b.js";
|
|
19
|
-
import { o as Ae, d as wo } from "./ownerWindow-e6cc3097.js";
|
|
20
|
-
import { L as an } from "./ListContext-de5072f9.js";
|
|
21
|
-
import { u as Qe } from "./useEventCallback-83a2883c.js";
|
|
22
|
-
import { u as ao } from "./useControlled-cc2d41cb.js";
|
|
23
|
-
import { a as Ye, g as cn, f as xe, b as dn, i as Me, c as un, o as he, d as pn, A as fn } from "./ArrowDropDown-dc6755c2.js";
|
|
24
|
-
import * as mn from "react-dom";
|
|
25
|
-
import { i as co } from "./useSlotProps-c2f5d9e5.js";
|
|
26
|
-
import { G as bn } from "./emotion-react.browser.esm-f699ec83.js";
|
|
27
|
-
const hn = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
28
|
-
function ze(o) {
|
|
29
|
-
return parseInt(o, 10) || 0;
|
|
30
|
-
}
|
|
31
|
-
const gn = {
|
|
32
|
-
shadow: {
|
|
33
|
-
// Visibility needed to hide the extra text area on iPads
|
|
34
|
-
visibility: "hidden",
|
|
35
|
-
// Remove from the content flow
|
|
36
|
-
position: "absolute",
|
|
37
|
-
// Ignore the scrollbar width
|
|
38
|
-
overflow: "hidden",
|
|
39
|
-
height: 0,
|
|
40
|
-
top: 0,
|
|
41
|
-
left: 0,
|
|
42
|
-
// Create a new layer, increase the isolation of the computed values
|
|
43
|
-
transform: "translateZ(0)"
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
function uo(o) {
|
|
47
|
-
return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflow;
|
|
48
|
-
}
|
|
49
|
-
const Io = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
50
|
-
const {
|
|
51
|
-
onChange: r,
|
|
52
|
-
maxRows: i,
|
|
53
|
-
minRows: l = 1,
|
|
54
|
-
style: c,
|
|
55
|
-
value: d
|
|
56
|
-
} = n, p = H(n, hn), {
|
|
57
|
-
current: u
|
|
58
|
-
} = a.useRef(d != null), h = a.useRef(null), O = Ne(t, h), R = a.useRef(null), f = a.useRef(0), [w, F] = a.useState({
|
|
59
|
-
outerHeightStyle: 0
|
|
60
|
-
}), E = a.useCallback(() => {
|
|
61
|
-
const m = h.current, x = Ae(m).getComputedStyle(m);
|
|
62
|
-
if (x.width === "0px")
|
|
63
|
-
return {
|
|
64
|
-
outerHeightStyle: 0
|
|
65
|
-
};
|
|
66
|
-
const I = R.current;
|
|
67
|
-
I.style.width = x.width, I.value = m.value || n.placeholder || "x", I.value.slice(-1) === `
|
|
68
|
-
` && (I.value += " ");
|
|
69
|
-
const A = x.boxSizing, k = ze(x.paddingBottom) + ze(x.paddingTop), B = ze(x.borderBottomWidth) + ze(x.borderTopWidth), Y = I.scrollHeight;
|
|
70
|
-
I.value = "x";
|
|
71
|
-
const q = I.scrollHeight;
|
|
72
|
-
let W = Y;
|
|
73
|
-
l && (W = Math.max(Number(l) * q, W)), i && (W = Math.min(Number(i) * q, W)), W = Math.max(W, q);
|
|
74
|
-
const U = W + (A === "border-box" ? k + B : 0), K = Math.abs(W - Y) <= 1;
|
|
75
|
-
return {
|
|
76
|
-
outerHeightStyle: U,
|
|
77
|
-
overflow: K
|
|
78
|
-
};
|
|
79
|
-
}, [i, l, n.placeholder]), S = (m, C) => {
|
|
80
|
-
const {
|
|
81
|
-
outerHeightStyle: x,
|
|
82
|
-
overflow: I
|
|
83
|
-
} = C;
|
|
84
|
-
return f.current < 20 && (x > 0 && Math.abs((m.outerHeightStyle || 0) - x) > 1 || m.overflow !== I) ? (f.current += 1, {
|
|
85
|
-
overflow: I,
|
|
86
|
-
outerHeightStyle: x
|
|
87
|
-
}) : (process.env.NODE_ENV !== "production" && f.current === 20 && console.error(["MUI: Too many re-renders. The layout is unstable.", "TextareaAutosize limits the number of renders to prevent an infinite loop."].join(`
|
|
88
|
-
`)), m);
|
|
89
|
-
}, T = a.useCallback(() => {
|
|
90
|
-
const m = E();
|
|
91
|
-
uo(m) || F((C) => S(C, m));
|
|
92
|
-
}, [E]), b = () => {
|
|
93
|
-
const m = E();
|
|
94
|
-
uo(m) || mn.flushSync(() => {
|
|
95
|
-
F((C) => S(C, m));
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
a.useEffect(() => {
|
|
99
|
-
const m = wo(() => {
|
|
100
|
-
f.current = 0, h.current && b();
|
|
101
|
-
});
|
|
102
|
-
let C;
|
|
103
|
-
const x = h.current, I = Ae(x);
|
|
104
|
-
return I.addEventListener("resize", m), typeof ResizeObserver < "u" && (C = new ResizeObserver(m), C.observe(x)), () => {
|
|
105
|
-
m.clear(), I.removeEventListener("resize", m), C && C.disconnect();
|
|
106
|
-
};
|
|
107
|
-
}), Qe(() => {
|
|
108
|
-
T();
|
|
109
|
-
}), a.useEffect(() => {
|
|
110
|
-
f.current = 0;
|
|
111
|
-
}, [d]);
|
|
112
|
-
const y = (m) => {
|
|
113
|
-
f.current = 0, u || T(), r && r(m);
|
|
114
|
-
};
|
|
115
|
-
return /* @__PURE__ */ v.jsxs(a.Fragment, {
|
|
116
|
-
children: [/* @__PURE__ */ v.jsx("textarea", s({
|
|
117
|
-
value: d,
|
|
118
|
-
onChange: y,
|
|
119
|
-
ref: O,
|
|
120
|
-
rows: l,
|
|
121
|
-
style: s({
|
|
122
|
-
height: w.outerHeightStyle,
|
|
123
|
-
// Need a large enough difference to allow scrolling.
|
|
124
|
-
// This prevents infinite rendering loop.
|
|
125
|
-
overflow: w.overflow ? "hidden" : void 0
|
|
126
|
-
}, c)
|
|
127
|
-
}, p)), /* @__PURE__ */ v.jsx("textarea", {
|
|
128
|
-
"aria-hidden": !0,
|
|
129
|
-
className: n.className,
|
|
130
|
-
readOnly: !0,
|
|
131
|
-
ref: R,
|
|
132
|
-
tabIndex: -1,
|
|
133
|
-
style: s({}, gn.shadow, c, {
|
|
134
|
-
padding: 0
|
|
135
|
-
})
|
|
136
|
-
})]
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
process.env.NODE_ENV !== "production" && (Io.propTypes = {
|
|
140
|
-
// ----------------------------- Warning --------------------------------
|
|
141
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
142
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
143
|
-
// ----------------------------------------------------------------------
|
|
144
|
-
/**
|
|
145
|
-
* @ignore
|
|
146
|
-
*/
|
|
147
|
-
className: e.string,
|
|
148
|
-
/**
|
|
149
|
-
* Maximum number of rows to display.
|
|
150
|
-
*/
|
|
151
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
152
|
-
/**
|
|
153
|
-
* Minimum number of rows to display.
|
|
154
|
-
* @default 1
|
|
155
|
-
*/
|
|
156
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
157
|
-
/**
|
|
158
|
-
* @ignore
|
|
159
|
-
*/
|
|
160
|
-
onChange: e.func,
|
|
161
|
-
/**
|
|
162
|
-
* @ignore
|
|
163
|
-
*/
|
|
164
|
-
placeholder: e.string,
|
|
165
|
-
/**
|
|
166
|
-
* @ignore
|
|
167
|
-
*/
|
|
168
|
-
style: e.object,
|
|
169
|
-
/**
|
|
170
|
-
* @ignore
|
|
171
|
-
*/
|
|
172
|
-
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
173
|
-
});
|
|
174
|
-
const vn = Io;
|
|
175
|
-
function yn(o) {
|
|
176
|
-
return o == null || Object.keys(o).length === 0;
|
|
177
|
-
}
|
|
178
|
-
function Po(o) {
|
|
179
|
-
const {
|
|
180
|
-
styles: n,
|
|
181
|
-
defaultTheme: t = {}
|
|
182
|
-
} = o, r = typeof n == "function" ? (i) => n(yn(i) ? t : i) : n;
|
|
183
|
-
return /* @__PURE__ */ v.jsx(bn, {
|
|
184
|
-
styles: r
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
process.env.NODE_ENV !== "production" && (Po.propTypes = {
|
|
188
|
-
defaultTheme: e.object,
|
|
189
|
-
styles: e.oneOfType([e.array, e.string, e.object, e.func])
|
|
190
|
-
});
|
|
191
|
-
function So({
|
|
192
|
-
styles: o,
|
|
193
|
-
themeId: n,
|
|
194
|
-
defaultTheme: t = {}
|
|
195
|
-
}) {
|
|
196
|
-
const r = Xo(t), i = typeof o == "function" ? o(n && r[n] || r) : o;
|
|
197
|
-
return /* @__PURE__ */ v.jsx(Po, {
|
|
198
|
-
styles: i
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
process.env.NODE_ENV !== "production" && (So.propTypes = {
|
|
202
|
-
// ----------------------------- Warning --------------------------------
|
|
203
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
204
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
205
|
-
// ----------------------------------------------------------------------
|
|
206
|
-
/**
|
|
207
|
-
* @ignore
|
|
208
|
-
*/
|
|
209
|
-
defaultTheme: e.object,
|
|
210
|
-
/**
|
|
211
|
-
* @ignore
|
|
212
|
-
*/
|
|
213
|
-
styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool]),
|
|
214
|
-
/**
|
|
215
|
-
* @ignore
|
|
216
|
-
*/
|
|
217
|
-
themeId: e.string
|
|
218
|
-
});
|
|
219
|
-
function Eo(o) {
|
|
220
|
-
return /* @__PURE__ */ v.jsx(So, s({}, o, {
|
|
221
|
-
defaultTheme: Yo,
|
|
222
|
-
themeId: Go
|
|
223
|
-
}));
|
|
224
|
-
}
|
|
225
|
-
process.env.NODE_ENV !== "production" && (Eo.propTypes = {
|
|
226
|
-
// ----------------------------- Warning --------------------------------
|
|
227
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
228
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
229
|
-
// ----------------------------------------------------------------------
|
|
230
|
-
/**
|
|
231
|
-
* The styles you want to apply globally.
|
|
232
|
-
*/
|
|
233
|
-
styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
|
|
234
|
-
});
|
|
235
|
-
const xn = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"], _e = (o, n) => {
|
|
236
|
-
const {
|
|
237
|
-
ownerState: t
|
|
238
|
-
} = o;
|
|
239
|
-
return [n.root, t.formControl && n.formControl, t.startAdornment && n.adornedStart, t.endAdornment && n.adornedEnd, t.error && n.error, t.size === "small" && n.sizeSmall, t.multiline && n.multiline, t.color && n[`color${ue(t.color)}`], t.fullWidth && n.fullWidth, t.hiddenLabel && n.hiddenLabel];
|
|
240
|
-
}, Be = (o, n) => {
|
|
241
|
-
const {
|
|
242
|
-
ownerState: t
|
|
243
|
-
} = o;
|
|
244
|
-
return [n.input, t.size === "small" && n.inputSizeSmall, t.multiline && n.inputMultiline, t.type === "search" && n.inputTypeSearch, t.startAdornment && n.inputAdornedStart, t.endAdornment && n.inputAdornedEnd, t.hiddenLabel && n.inputHiddenLabel];
|
|
245
|
-
}, On = (o) => {
|
|
246
|
-
const {
|
|
247
|
-
classes: n,
|
|
248
|
-
color: t,
|
|
249
|
-
disabled: r,
|
|
250
|
-
error: i,
|
|
251
|
-
endAdornment: l,
|
|
252
|
-
focused: c,
|
|
253
|
-
formControl: d,
|
|
254
|
-
fullWidth: p,
|
|
255
|
-
hiddenLabel: u,
|
|
256
|
-
multiline: h,
|
|
257
|
-
readOnly: O,
|
|
258
|
-
size: R,
|
|
259
|
-
startAdornment: f,
|
|
260
|
-
type: w
|
|
261
|
-
} = o, F = {
|
|
262
|
-
root: ["root", `color${ue(t)}`, r && "disabled", i && "error", p && "fullWidth", c && "focused", d && "formControl", R === "small" && "sizeSmall", h && "multiline", f && "adornedStart", l && "adornedEnd", u && "hiddenLabel", O && "readOnly"],
|
|
263
|
-
input: ["input", r && "disabled", w === "search" && "inputTypeSearch", h && "inputMultiline", R === "small" && "inputSizeSmall", u && "inputHiddenLabel", f && "inputAdornedStart", l && "inputAdornedEnd", O && "readOnly"]
|
|
264
|
-
};
|
|
265
|
-
return oe(F, cn, n);
|
|
266
|
-
}, Ue = $("div", {
|
|
267
|
-
name: "MuiInputBase",
|
|
268
|
-
slot: "Root",
|
|
269
|
-
overridesResolver: _e
|
|
270
|
-
})(({
|
|
271
|
-
theme: o,
|
|
272
|
-
ownerState: n
|
|
273
|
-
}) => s({}, o.typography.body1, {
|
|
274
|
-
color: (o.vars || o).palette.text.primary,
|
|
275
|
-
lineHeight: "1.4375em",
|
|
276
|
-
// 23px
|
|
277
|
-
boxSizing: "border-box",
|
|
278
|
-
// Prevent padding issue with fullWidth.
|
|
279
|
-
position: "relative",
|
|
280
|
-
cursor: "text",
|
|
281
|
-
display: "inline-flex",
|
|
282
|
-
alignItems: "center",
|
|
283
|
-
[`&.${Ye.disabled}`]: {
|
|
284
|
-
color: (o.vars || o).palette.text.disabled,
|
|
285
|
-
cursor: "default"
|
|
286
|
-
}
|
|
287
|
-
}, n.multiline && s({
|
|
288
|
-
padding: "4px 0 5px"
|
|
289
|
-
}, n.size === "small" && {
|
|
290
|
-
paddingTop: 1
|
|
291
|
-
}), n.fullWidth && {
|
|
292
|
-
width: "100%"
|
|
293
|
-
})), Ve = $("input", {
|
|
294
|
-
name: "MuiInputBase",
|
|
295
|
-
slot: "Input",
|
|
296
|
-
overridesResolver: Be
|
|
297
|
-
})(({
|
|
298
|
-
theme: o,
|
|
299
|
-
ownerState: n
|
|
300
|
-
}) => {
|
|
301
|
-
const t = o.palette.mode === "light", r = s({
|
|
302
|
-
color: "currentColor"
|
|
303
|
-
}, o.vars ? {
|
|
304
|
-
opacity: o.vars.opacity.inputPlaceholder
|
|
305
|
-
} : {
|
|
306
|
-
opacity: t ? 0.42 : 0.5
|
|
307
|
-
}, {
|
|
308
|
-
transition: o.transitions.create("opacity", {
|
|
309
|
-
duration: o.transitions.duration.shorter
|
|
310
|
-
})
|
|
311
|
-
}), i = {
|
|
312
|
-
opacity: "0 !important"
|
|
313
|
-
}, l = o.vars ? {
|
|
314
|
-
opacity: o.vars.opacity.inputPlaceholder
|
|
315
|
-
} : {
|
|
316
|
-
opacity: t ? 0.42 : 0.5
|
|
317
|
-
};
|
|
318
|
-
return s({
|
|
319
|
-
font: "inherit",
|
|
320
|
-
letterSpacing: "inherit",
|
|
321
|
-
color: "currentColor",
|
|
322
|
-
padding: "4px 0 5px",
|
|
323
|
-
border: 0,
|
|
324
|
-
boxSizing: "content-box",
|
|
325
|
-
background: "none",
|
|
326
|
-
height: "1.4375em",
|
|
327
|
-
// Reset 23pxthe native input line-height
|
|
328
|
-
margin: 0,
|
|
329
|
-
// Reset for Safari
|
|
330
|
-
WebkitTapHighlightColor: "transparent",
|
|
331
|
-
display: "block",
|
|
332
|
-
// Make the flex item shrink with Firefox
|
|
333
|
-
minWidth: 0,
|
|
334
|
-
width: "100%",
|
|
335
|
-
// Fix IE11 width issue
|
|
336
|
-
animationName: "mui-auto-fill-cancel",
|
|
337
|
-
animationDuration: "10ms",
|
|
338
|
-
"&::-webkit-input-placeholder": r,
|
|
339
|
-
"&::-moz-placeholder": r,
|
|
340
|
-
// Firefox 19+
|
|
341
|
-
"&:-ms-input-placeholder": r,
|
|
342
|
-
// IE11
|
|
343
|
-
"&::-ms-input-placeholder": r,
|
|
344
|
-
// Edge
|
|
345
|
-
"&:focus": {
|
|
346
|
-
outline: 0
|
|
347
|
-
},
|
|
348
|
-
// Reset Firefox invalid required input style
|
|
349
|
-
"&:invalid": {
|
|
350
|
-
boxShadow: "none"
|
|
351
|
-
},
|
|
352
|
-
"&::-webkit-search-decoration": {
|
|
353
|
-
// Remove the padding when type=search.
|
|
354
|
-
WebkitAppearance: "none"
|
|
355
|
-
},
|
|
356
|
-
// Show and hide the placeholder logic
|
|
357
|
-
[`label[data-shrink=false] + .${Ye.formControl} &`]: {
|
|
358
|
-
"&::-webkit-input-placeholder": i,
|
|
359
|
-
"&::-moz-placeholder": i,
|
|
360
|
-
// Firefox 19+
|
|
361
|
-
"&:-ms-input-placeholder": i,
|
|
362
|
-
// IE11
|
|
363
|
-
"&::-ms-input-placeholder": i,
|
|
364
|
-
// Edge
|
|
365
|
-
"&:focus::-webkit-input-placeholder": l,
|
|
366
|
-
"&:focus::-moz-placeholder": l,
|
|
367
|
-
// Firefox 19+
|
|
368
|
-
"&:focus:-ms-input-placeholder": l,
|
|
369
|
-
// IE11
|
|
370
|
-
"&:focus::-ms-input-placeholder": l
|
|
371
|
-
// Edge
|
|
372
|
-
},
|
|
373
|
-
[`&.${Ye.disabled}`]: {
|
|
374
|
-
opacity: 1,
|
|
375
|
-
// Reset iOS opacity
|
|
376
|
-
WebkitTextFillColor: (o.vars || o).palette.text.disabled
|
|
377
|
-
// Fix opacity Safari bug
|
|
378
|
-
},
|
|
379
|
-
"&:-webkit-autofill": {
|
|
380
|
-
animationDuration: "5000s",
|
|
381
|
-
animationName: "mui-auto-fill"
|
|
382
|
-
}
|
|
383
|
-
}, n.size === "small" && {
|
|
384
|
-
paddingTop: 1
|
|
385
|
-
}, n.multiline && {
|
|
386
|
-
height: "auto",
|
|
387
|
-
resize: "none",
|
|
388
|
-
padding: 0,
|
|
389
|
-
paddingTop: 0
|
|
390
|
-
}, n.type === "search" && {
|
|
391
|
-
// Improve type search style.
|
|
392
|
-
MozAppearance: "textfield"
|
|
393
|
-
});
|
|
394
|
-
}), Cn = /* @__PURE__ */ v.jsx(Eo, {
|
|
395
|
-
styles: {
|
|
396
|
-
"@keyframes mui-auto-fill": {
|
|
397
|
-
from: {
|
|
398
|
-
display: "block"
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
"@keyframes mui-auto-fill-cancel": {
|
|
402
|
-
from: {
|
|
403
|
-
display: "block"
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}), No = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
408
|
-
var r;
|
|
409
|
-
const i = te({
|
|
410
|
-
props: n,
|
|
411
|
-
name: "MuiInputBase"
|
|
412
|
-
}), {
|
|
413
|
-
"aria-describedby": l,
|
|
414
|
-
autoComplete: c,
|
|
415
|
-
autoFocus: d,
|
|
416
|
-
className: p,
|
|
417
|
-
components: u = {},
|
|
418
|
-
componentsProps: h = {},
|
|
419
|
-
defaultValue: O,
|
|
420
|
-
disabled: R,
|
|
421
|
-
disableInjectingGlobalStyles: f,
|
|
422
|
-
endAdornment: w,
|
|
423
|
-
fullWidth: F = !1,
|
|
424
|
-
id: E,
|
|
425
|
-
inputComponent: S = "input",
|
|
426
|
-
inputProps: T = {},
|
|
427
|
-
inputRef: b,
|
|
428
|
-
maxRows: y,
|
|
429
|
-
minRows: m,
|
|
430
|
-
multiline: C = !1,
|
|
431
|
-
name: x,
|
|
432
|
-
onBlur: I,
|
|
433
|
-
onChange: A,
|
|
434
|
-
onClick: k,
|
|
435
|
-
onFocus: B,
|
|
436
|
-
onKeyDown: Y,
|
|
437
|
-
onKeyUp: q,
|
|
438
|
-
placeholder: W,
|
|
439
|
-
readOnly: U,
|
|
440
|
-
renderSuffix: K,
|
|
441
|
-
rows: M,
|
|
442
|
-
slotProps: se = {},
|
|
443
|
-
slots: ie = {},
|
|
444
|
-
startAdornment: N,
|
|
445
|
-
type: L = "text",
|
|
446
|
-
value: z
|
|
447
|
-
} = i, G = H(i, xn), V = T.value != null ? T.value : z, {
|
|
448
|
-
current: _
|
|
449
|
-
} = a.useRef(V != null), Z = a.useRef(), le = a.useCallback((D) => {
|
|
450
|
-
process.env.NODE_ENV !== "production" && D && D.nodeName !== "INPUT" && !D.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
451
|
-
`));
|
|
452
|
-
}, []), me = Ne(Z, b, T.ref, le), [Q, re] = a.useState(!1), P = Ee();
|
|
453
|
-
process.env.NODE_ENV !== "production" && a.useEffect(() => {
|
|
454
|
-
if (P)
|
|
455
|
-
return P.registerEffect();
|
|
456
|
-
}, [P]);
|
|
457
|
-
const J = Se({
|
|
458
|
-
props: i,
|
|
459
|
-
muiFormControl: P,
|
|
460
|
-
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
461
|
-
});
|
|
462
|
-
J.focused = P ? P.focused : Q, a.useEffect(() => {
|
|
463
|
-
!P && R && Q && (re(!1), I && I());
|
|
464
|
-
}, [P, R, Q, I]);
|
|
465
|
-
const Fe = P && P.onFilled, ce = P && P.onEmpty, ve = a.useCallback((D) => {
|
|
466
|
-
Co(D) ? Fe && Fe() : ce && ce();
|
|
467
|
-
}, [Fe, ce]);
|
|
468
|
-
Qe(() => {
|
|
469
|
-
_ && ve({
|
|
470
|
-
value: V
|
|
471
|
-
});
|
|
472
|
-
}, [V, ve, _]);
|
|
473
|
-
const He = (D) => {
|
|
474
|
-
if (J.disabled) {
|
|
475
|
-
D.stopPropagation();
|
|
476
|
-
return;
|
|
477
|
-
}
|
|
478
|
-
B && B(D), T.onFocus && T.onFocus(D), P && P.onFocus ? P.onFocus(D) : re(!0);
|
|
479
|
-
}, qe = (D) => {
|
|
480
|
-
I && I(D), T.onBlur && T.onBlur(D), P && P.onBlur ? P.onBlur(D) : re(!1);
|
|
481
|
-
}, Ce = (D, ...ye) => {
|
|
482
|
-
if (!_) {
|
|
483
|
-
const Pe = D.target || Z.current;
|
|
484
|
-
if (Pe == null)
|
|
485
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Oo(1));
|
|
486
|
-
ve({
|
|
487
|
-
value: Pe.value
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
T.onChange && T.onChange(D, ...ye), A && A(D, ...ye);
|
|
491
|
-
};
|
|
492
|
-
a.useEffect(() => {
|
|
493
|
-
ve(Z.current);
|
|
494
|
-
}, []);
|
|
495
|
-
const Ke = (D) => {
|
|
496
|
-
Z.current && D.currentTarget === D.target && Z.current.focus(), k && !J.disabled && k(D);
|
|
497
|
-
};
|
|
498
|
-
let ae = S, ne = T;
|
|
499
|
-
C && ae === "input" && (M ? (process.env.NODE_ENV !== "production" && (m || y) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), ne = s({
|
|
500
|
-
type: void 0,
|
|
501
|
-
minRows: M,
|
|
502
|
-
maxRows: M
|
|
503
|
-
}, ne)) : ne = s({
|
|
504
|
-
type: void 0,
|
|
505
|
-
maxRows: y,
|
|
506
|
-
minRows: m
|
|
507
|
-
}, ne), ae = vn);
|
|
508
|
-
const Te = (D) => {
|
|
509
|
-
ve(D.animationName === "mui-auto-fill-cancel" ? Z.current : {
|
|
510
|
-
value: "x"
|
|
511
|
-
});
|
|
512
|
-
};
|
|
513
|
-
a.useEffect(() => {
|
|
514
|
-
P && P.setAdornedStart(!!N);
|
|
515
|
-
}, [P, N]);
|
|
516
|
-
const de = s({}, i, {
|
|
517
|
-
color: J.color || "primary",
|
|
518
|
-
disabled: J.disabled,
|
|
519
|
-
endAdornment: w,
|
|
520
|
-
error: J.error,
|
|
521
|
-
focused: J.focused,
|
|
522
|
-
formControl: P,
|
|
523
|
-
fullWidth: F,
|
|
524
|
-
hiddenLabel: J.hiddenLabel,
|
|
525
|
-
multiline: C,
|
|
526
|
-
size: J.size,
|
|
527
|
-
startAdornment: N,
|
|
528
|
-
type: L
|
|
529
|
-
}), Re = On(de), De = ie.root || u.Root || Ue, we = se.root || h.root || {}, Ie = ie.input || u.Input || Ve;
|
|
530
|
-
return ne = s({}, ne, (r = se.input) != null ? r : h.input), /* @__PURE__ */ v.jsxs(a.Fragment, {
|
|
531
|
-
children: [!f && Cn, /* @__PURE__ */ v.jsxs(De, s({}, we, !co(De) && {
|
|
532
|
-
ownerState: s({}, de, we.ownerState)
|
|
533
|
-
}, {
|
|
534
|
-
ref: t,
|
|
535
|
-
onClick: Ke
|
|
536
|
-
}, G, {
|
|
537
|
-
className: ee(Re.root, we.className, p, U && "MuiInputBase-readOnly"),
|
|
538
|
-
children: [N, /* @__PURE__ */ v.jsx(en.Provider, {
|
|
539
|
-
value: null,
|
|
540
|
-
children: /* @__PURE__ */ v.jsx(Ie, s({
|
|
541
|
-
ownerState: de,
|
|
542
|
-
"aria-invalid": J.error,
|
|
543
|
-
"aria-describedby": l,
|
|
544
|
-
autoComplete: c,
|
|
545
|
-
autoFocus: d,
|
|
546
|
-
defaultValue: O,
|
|
547
|
-
disabled: J.disabled,
|
|
548
|
-
id: E,
|
|
549
|
-
onAnimationStart: Te,
|
|
550
|
-
name: x,
|
|
551
|
-
placeholder: W,
|
|
552
|
-
readOnly: U,
|
|
553
|
-
required: J.required,
|
|
554
|
-
rows: M,
|
|
555
|
-
value: V,
|
|
556
|
-
onKeyDown: Y,
|
|
557
|
-
onKeyUp: q,
|
|
558
|
-
type: L
|
|
559
|
-
}, ne, !co(Ie) && {
|
|
560
|
-
as: ae,
|
|
561
|
-
ownerState: s({}, de, ne.ownerState)
|
|
562
|
-
}, {
|
|
563
|
-
ref: me,
|
|
564
|
-
className: ee(Re.input, ne.className, U && "MuiInputBase-readOnly"),
|
|
565
|
-
onBlur: qe,
|
|
566
|
-
onChange: Ce,
|
|
567
|
-
onFocus: He
|
|
568
|
-
}))
|
|
569
|
-
}), w, K ? K(s({}, J, {
|
|
570
|
-
startAdornment: N
|
|
571
|
-
})) : null]
|
|
572
|
-
}))]
|
|
573
|
-
});
|
|
574
|
-
});
|
|
575
|
-
process.env.NODE_ENV !== "production" && (No.propTypes = {
|
|
576
|
-
// ----------------------------- Warning --------------------------------
|
|
577
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
578
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
579
|
-
// ----------------------------------------------------------------------
|
|
580
|
-
/**
|
|
581
|
-
* @ignore
|
|
582
|
-
*/
|
|
583
|
-
"aria-describedby": e.string,
|
|
584
|
-
/**
|
|
585
|
-
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
586
|
-
* The name can be confusing, as it's more like an autofill.
|
|
587
|
-
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
588
|
-
*/
|
|
589
|
-
autoComplete: e.string,
|
|
590
|
-
/**
|
|
591
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
592
|
-
*/
|
|
593
|
-
autoFocus: e.bool,
|
|
594
|
-
/**
|
|
595
|
-
* Override or extend the styles applied to the component.
|
|
596
|
-
*/
|
|
597
|
-
classes: e.object,
|
|
598
|
-
/**
|
|
599
|
-
* @ignore
|
|
600
|
-
*/
|
|
601
|
-
className: e.string,
|
|
602
|
-
/**
|
|
603
|
-
* The color of the component.
|
|
604
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
605
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
606
|
-
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
607
|
-
*/
|
|
608
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
609
|
-
/**
|
|
610
|
-
* The components used for each slot inside.
|
|
611
|
-
*
|
|
612
|
-
* This prop is an alias for the `slots` prop.
|
|
613
|
-
* It's recommended to use the `slots` prop instead.
|
|
614
|
-
*
|
|
615
|
-
* @default {}
|
|
616
|
-
*/
|
|
617
|
-
components: e.shape({
|
|
618
|
-
Input: e.elementType,
|
|
619
|
-
Root: e.elementType
|
|
620
|
-
}),
|
|
621
|
-
/**
|
|
622
|
-
* The extra props for the slot components.
|
|
623
|
-
* You can override the existing props or add new ones.
|
|
624
|
-
*
|
|
625
|
-
* This prop is an alias for the `slotProps` prop.
|
|
626
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
627
|
-
*
|
|
628
|
-
* @default {}
|
|
629
|
-
*/
|
|
630
|
-
componentsProps: e.shape({
|
|
631
|
-
input: e.object,
|
|
632
|
-
root: e.object
|
|
633
|
-
}),
|
|
634
|
-
/**
|
|
635
|
-
* The default value. Use when the component is not controlled.
|
|
636
|
-
*/
|
|
637
|
-
defaultValue: e.any,
|
|
638
|
-
/**
|
|
639
|
-
* If `true`, the component is disabled.
|
|
640
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
641
|
-
*/
|
|
642
|
-
disabled: e.bool,
|
|
643
|
-
/**
|
|
644
|
-
* If `true`, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.
|
|
645
|
-
* This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.
|
|
646
|
-
* @default false
|
|
647
|
-
*/
|
|
648
|
-
disableInjectingGlobalStyles: e.bool,
|
|
649
|
-
/**
|
|
650
|
-
* End `InputAdornment` for this component.
|
|
651
|
-
*/
|
|
652
|
-
endAdornment: e.node,
|
|
653
|
-
/**
|
|
654
|
-
* If `true`, the `input` will indicate an error.
|
|
655
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
656
|
-
*/
|
|
657
|
-
error: e.bool,
|
|
658
|
-
/**
|
|
659
|
-
* If `true`, the `input` will take up the full width of its container.
|
|
660
|
-
* @default false
|
|
661
|
-
*/
|
|
662
|
-
fullWidth: e.bool,
|
|
663
|
-
/**
|
|
664
|
-
* The id of the `input` element.
|
|
665
|
-
*/
|
|
666
|
-
id: e.string,
|
|
667
|
-
/**
|
|
668
|
-
* The component used for the `input` element.
|
|
669
|
-
* Either a string to use a HTML element or a component.
|
|
670
|
-
* @default 'input'
|
|
671
|
-
*/
|
|
672
|
-
inputComponent: Ro,
|
|
673
|
-
/**
|
|
674
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
675
|
-
* @default {}
|
|
676
|
-
*/
|
|
677
|
-
inputProps: e.object,
|
|
678
|
-
/**
|
|
679
|
-
* Pass a ref to the `input` element.
|
|
680
|
-
*/
|
|
681
|
-
inputRef: ge,
|
|
682
|
-
/**
|
|
683
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
684
|
-
* FormControl.
|
|
685
|
-
* The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
|
|
686
|
-
*/
|
|
687
|
-
margin: e.oneOf(["dense", "none"]),
|
|
688
|
-
/**
|
|
689
|
-
* Maximum number of rows to display when multiline option is set to true.
|
|
690
|
-
*/
|
|
691
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
692
|
-
/**
|
|
693
|
-
* Minimum number of rows to display when multiline option is set to true.
|
|
694
|
-
*/
|
|
695
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
696
|
-
/**
|
|
697
|
-
* If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
|
|
698
|
-
* @default false
|
|
699
|
-
*/
|
|
700
|
-
multiline: e.bool,
|
|
701
|
-
/**
|
|
702
|
-
* Name attribute of the `input` element.
|
|
703
|
-
*/
|
|
704
|
-
name: e.string,
|
|
705
|
-
/**
|
|
706
|
-
* Callback fired when the `input` is blurred.
|
|
707
|
-
*
|
|
708
|
-
* Notice that the first argument (event) might be undefined.
|
|
709
|
-
*/
|
|
710
|
-
onBlur: e.func,
|
|
711
|
-
/**
|
|
712
|
-
* Callback fired when the value is changed.
|
|
713
|
-
*
|
|
714
|
-
* @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
|
|
715
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
716
|
-
*/
|
|
717
|
-
onChange: e.func,
|
|
718
|
-
/**
|
|
719
|
-
* @ignore
|
|
720
|
-
*/
|
|
721
|
-
onClick: e.func,
|
|
722
|
-
/**
|
|
723
|
-
* @ignore
|
|
724
|
-
*/
|
|
725
|
-
onFocus: e.func,
|
|
726
|
-
/**
|
|
727
|
-
* Callback fired when the `input` doesn't satisfy its constraints.
|
|
728
|
-
*/
|
|
729
|
-
onInvalid: e.func,
|
|
730
|
-
/**
|
|
731
|
-
* @ignore
|
|
732
|
-
*/
|
|
733
|
-
onKeyDown: e.func,
|
|
734
|
-
/**
|
|
735
|
-
* @ignore
|
|
736
|
-
*/
|
|
737
|
-
onKeyUp: e.func,
|
|
738
|
-
/**
|
|
739
|
-
* The short hint displayed in the `input` before the user enters a value.
|
|
740
|
-
*/
|
|
741
|
-
placeholder: e.string,
|
|
742
|
-
/**
|
|
743
|
-
* It prevents the user from changing the value of the field
|
|
744
|
-
* (not from interacting with the field).
|
|
745
|
-
*/
|
|
746
|
-
readOnly: e.bool,
|
|
747
|
-
/**
|
|
748
|
-
* @ignore
|
|
749
|
-
*/
|
|
750
|
-
renderSuffix: e.func,
|
|
751
|
-
/**
|
|
752
|
-
* If `true`, the `input` element is required.
|
|
753
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
754
|
-
*/
|
|
755
|
-
required: e.bool,
|
|
756
|
-
/**
|
|
757
|
-
* Number of rows to display when multiline option is set to true.
|
|
758
|
-
*/
|
|
759
|
-
rows: e.oneOfType([e.number, e.string]),
|
|
760
|
-
/**
|
|
761
|
-
* The size of the component.
|
|
762
|
-
*/
|
|
763
|
-
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
764
|
-
/**
|
|
765
|
-
* The extra props for the slot components.
|
|
766
|
-
* You can override the existing props or add new ones.
|
|
767
|
-
*
|
|
768
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
769
|
-
*
|
|
770
|
-
* @default {}
|
|
771
|
-
*/
|
|
772
|
-
slotProps: e.shape({
|
|
773
|
-
input: e.object,
|
|
774
|
-
root: e.object
|
|
775
|
-
}),
|
|
776
|
-
/**
|
|
777
|
-
* The components used for each slot inside.
|
|
778
|
-
*
|
|
779
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
780
|
-
*
|
|
781
|
-
* @default {}
|
|
782
|
-
*/
|
|
783
|
-
slots: e.shape({
|
|
784
|
-
input: e.elementType,
|
|
785
|
-
root: e.elementType
|
|
786
|
-
}),
|
|
787
|
-
/**
|
|
788
|
-
* Start `InputAdornment` for this component.
|
|
789
|
-
*/
|
|
790
|
-
startAdornment: e.node,
|
|
791
|
-
/**
|
|
792
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
793
|
-
*/
|
|
794
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
795
|
-
/**
|
|
796
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
797
|
-
* @default 'text'
|
|
798
|
-
*/
|
|
799
|
-
type: e.string,
|
|
800
|
-
/**
|
|
801
|
-
* The value of the `input` element, required for a controlled component.
|
|
802
|
-
*/
|
|
803
|
-
value: e.any
|
|
804
|
-
});
|
|
805
|
-
const eo = No, Tn = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"], Rn = (o) => {
|
|
806
|
-
const {
|
|
807
|
-
classes: n,
|
|
808
|
-
disableUnderline: t
|
|
809
|
-
} = o, i = oe({
|
|
810
|
-
root: ["root", !t && "underline"],
|
|
811
|
-
input: ["input"]
|
|
812
|
-
}, dn, n);
|
|
813
|
-
return s({}, n, i);
|
|
814
|
-
}, wn = $(Ue, {
|
|
815
|
-
shouldForwardProp: (o) => Oe(o) || o === "classes",
|
|
816
|
-
name: "MuiFilledInput",
|
|
817
|
-
slot: "Root",
|
|
818
|
-
overridesResolver: (o, n) => {
|
|
819
|
-
const {
|
|
820
|
-
ownerState: t
|
|
821
|
-
} = o;
|
|
822
|
-
return [..._e(o, n), !t.disableUnderline && n.underline];
|
|
823
|
-
}
|
|
824
|
-
})(({
|
|
825
|
-
theme: o,
|
|
826
|
-
ownerState: n
|
|
827
|
-
}) => {
|
|
828
|
-
var t;
|
|
829
|
-
const r = o.palette.mode === "light", i = r ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", l = r ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", c = r ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", d = r ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
|
|
830
|
-
return s({
|
|
831
|
-
position: "relative",
|
|
832
|
-
backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : l,
|
|
833
|
-
borderTopLeftRadius: (o.vars || o).shape.borderRadius,
|
|
834
|
-
borderTopRightRadius: (o.vars || o).shape.borderRadius,
|
|
835
|
-
transition: o.transitions.create("background-color", {
|
|
836
|
-
duration: o.transitions.duration.shorter,
|
|
837
|
-
easing: o.transitions.easing.easeOut
|
|
838
|
-
}),
|
|
839
|
-
"&:hover": {
|
|
840
|
-
backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : c,
|
|
841
|
-
// Reset on touch devices, it doesn't add specificity
|
|
842
|
-
"@media (hover: none)": {
|
|
843
|
-
backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : l
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
[`&.${xe.focused}`]: {
|
|
847
|
-
backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : l
|
|
848
|
-
},
|
|
849
|
-
[`&.${xe.disabled}`]: {
|
|
850
|
-
backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : d
|
|
851
|
-
}
|
|
852
|
-
}, !n.disableUnderline && {
|
|
853
|
-
"&:after": {
|
|
854
|
-
borderBottom: `2px solid ${(t = (o.vars || o).palette[n.color || "primary"]) == null ? void 0 : t.main}`,
|
|
855
|
-
left: 0,
|
|
856
|
-
bottom: 0,
|
|
857
|
-
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
858
|
-
content: '""',
|
|
859
|
-
position: "absolute",
|
|
860
|
-
right: 0,
|
|
861
|
-
transform: "scaleX(0)",
|
|
862
|
-
transition: o.transitions.create("transform", {
|
|
863
|
-
duration: o.transitions.duration.shorter,
|
|
864
|
-
easing: o.transitions.easing.easeOut
|
|
865
|
-
}),
|
|
866
|
-
pointerEvents: "none"
|
|
867
|
-
// Transparent to the hover style.
|
|
868
|
-
},
|
|
869
|
-
[`&.${xe.focused}:after`]: {
|
|
870
|
-
// translateX(0) is a workaround for Safari transform scale bug
|
|
871
|
-
// See https://github.com/mui/material-ui/issues/31766
|
|
872
|
-
transform: "scaleX(1) translateX(0)"
|
|
873
|
-
},
|
|
874
|
-
[`&.${xe.error}`]: {
|
|
875
|
-
"&:before, &:after": {
|
|
876
|
-
borderBottomColor: (o.vars || o).palette.error.main
|
|
877
|
-
}
|
|
878
|
-
},
|
|
879
|
-
"&:before": {
|
|
880
|
-
borderBottom: `1px solid ${o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})` : i}`,
|
|
881
|
-
left: 0,
|
|
882
|
-
bottom: 0,
|
|
883
|
-
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
884
|
-
content: '"\\00a0"',
|
|
885
|
-
position: "absolute",
|
|
886
|
-
right: 0,
|
|
887
|
-
transition: o.transitions.create("border-bottom-color", {
|
|
888
|
-
duration: o.transitions.duration.shorter
|
|
889
|
-
}),
|
|
890
|
-
pointerEvents: "none"
|
|
891
|
-
// Transparent to the hover style.
|
|
892
|
-
},
|
|
893
|
-
[`&:hover:not(.${xe.disabled}, .${xe.error}):before`]: {
|
|
894
|
-
borderBottom: `1px solid ${(o.vars || o).palette.text.primary}`
|
|
895
|
-
},
|
|
896
|
-
[`&.${xe.disabled}:before`]: {
|
|
897
|
-
borderBottomStyle: "dotted"
|
|
898
|
-
}
|
|
899
|
-
}, n.startAdornment && {
|
|
900
|
-
paddingLeft: 12
|
|
901
|
-
}, n.endAdornment && {
|
|
902
|
-
paddingRight: 12
|
|
903
|
-
}, n.multiline && s({
|
|
904
|
-
padding: "25px 12px 8px"
|
|
905
|
-
}, n.size === "small" && {
|
|
906
|
-
paddingTop: 21,
|
|
907
|
-
paddingBottom: 4
|
|
908
|
-
}, n.hiddenLabel && {
|
|
909
|
-
paddingTop: 16,
|
|
910
|
-
paddingBottom: 17
|
|
911
|
-
}));
|
|
912
|
-
}), In = $(Ve, {
|
|
913
|
-
name: "MuiFilledInput",
|
|
914
|
-
slot: "Input",
|
|
915
|
-
overridesResolver: Be
|
|
916
|
-
})(({
|
|
917
|
-
theme: o,
|
|
918
|
-
ownerState: n
|
|
919
|
-
}) => s({
|
|
920
|
-
paddingTop: 25,
|
|
921
|
-
paddingRight: 12,
|
|
922
|
-
paddingBottom: 8,
|
|
923
|
-
paddingLeft: 12
|
|
924
|
-
}, !o.vars && {
|
|
925
|
-
"&:-webkit-autofill": {
|
|
926
|
-
WebkitBoxShadow: o.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
|
|
927
|
-
WebkitTextFillColor: o.palette.mode === "light" ? null : "#fff",
|
|
928
|
-
caretColor: o.palette.mode === "light" ? null : "#fff",
|
|
929
|
-
borderTopLeftRadius: "inherit",
|
|
930
|
-
borderTopRightRadius: "inherit"
|
|
931
|
-
}
|
|
932
|
-
}, o.vars && {
|
|
933
|
-
"&:-webkit-autofill": {
|
|
934
|
-
borderTopLeftRadius: "inherit",
|
|
935
|
-
borderTopRightRadius: "inherit"
|
|
936
|
-
},
|
|
937
|
-
[o.getColorSchemeSelector("dark")]: {
|
|
938
|
-
"&:-webkit-autofill": {
|
|
939
|
-
WebkitBoxShadow: "0 0 0 100px #266798 inset",
|
|
940
|
-
WebkitTextFillColor: "#fff",
|
|
941
|
-
caretColor: "#fff"
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
}, n.size === "small" && {
|
|
945
|
-
paddingTop: 21,
|
|
946
|
-
paddingBottom: 4
|
|
947
|
-
}, n.hiddenLabel && {
|
|
948
|
-
paddingTop: 16,
|
|
949
|
-
paddingBottom: 17
|
|
950
|
-
}, n.multiline && {
|
|
951
|
-
paddingTop: 0,
|
|
952
|
-
paddingBottom: 0,
|
|
953
|
-
paddingLeft: 0,
|
|
954
|
-
paddingRight: 0
|
|
955
|
-
}, n.startAdornment && {
|
|
956
|
-
paddingLeft: 0
|
|
957
|
-
}, n.endAdornment && {
|
|
958
|
-
paddingRight: 0
|
|
959
|
-
}, n.hiddenLabel && n.size === "small" && {
|
|
960
|
-
paddingTop: 8,
|
|
961
|
-
paddingBottom: 9
|
|
962
|
-
})), oo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
963
|
-
var r, i, l, c;
|
|
964
|
-
const d = te({
|
|
965
|
-
props: n,
|
|
966
|
-
name: "MuiFilledInput"
|
|
967
|
-
}), {
|
|
968
|
-
components: p = {},
|
|
969
|
-
componentsProps: u,
|
|
970
|
-
fullWidth: h = !1,
|
|
971
|
-
// declare here to prevent spreading to DOM
|
|
972
|
-
inputComponent: O = "input",
|
|
973
|
-
multiline: R = !1,
|
|
974
|
-
slotProps: f,
|
|
975
|
-
slots: w = {},
|
|
976
|
-
type: F = "text"
|
|
977
|
-
} = d, E = H(d, Tn), S = s({}, d, {
|
|
978
|
-
fullWidth: h,
|
|
979
|
-
inputComponent: O,
|
|
980
|
-
multiline: R,
|
|
981
|
-
type: F
|
|
982
|
-
}), T = Rn(d), b = {
|
|
983
|
-
root: {
|
|
984
|
-
ownerState: S
|
|
985
|
-
},
|
|
986
|
-
input: {
|
|
987
|
-
ownerState: S
|
|
988
|
-
}
|
|
989
|
-
}, y = f ?? u ? Ze(f ?? u, b) : b, m = (r = (i = w.root) != null ? i : p.Root) != null ? r : wn, C = (l = (c = w.input) != null ? c : p.Input) != null ? l : In;
|
|
990
|
-
return /* @__PURE__ */ v.jsx(eo, s({
|
|
991
|
-
slots: {
|
|
992
|
-
root: m,
|
|
993
|
-
input: C
|
|
994
|
-
},
|
|
995
|
-
componentsProps: y,
|
|
996
|
-
fullWidth: h,
|
|
997
|
-
inputComponent: O,
|
|
998
|
-
multiline: R,
|
|
999
|
-
ref: t,
|
|
1000
|
-
type: F
|
|
1001
|
-
}, E, {
|
|
1002
|
-
classes: T
|
|
1003
|
-
}));
|
|
1004
|
-
});
|
|
1005
|
-
process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
1006
|
-
// ----------------------------- Warning --------------------------------
|
|
1007
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1008
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1009
|
-
// ----------------------------------------------------------------------
|
|
1010
|
-
/**
|
|
1011
|
-
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
1012
|
-
* The name can be confusing, as it's more like an autofill.
|
|
1013
|
-
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
1014
|
-
*/
|
|
1015
|
-
autoComplete: e.string,
|
|
1016
|
-
/**
|
|
1017
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
1018
|
-
*/
|
|
1019
|
-
autoFocus: e.bool,
|
|
1020
|
-
/**
|
|
1021
|
-
* Override or extend the styles applied to the component.
|
|
1022
|
-
*/
|
|
1023
|
-
classes: e.object,
|
|
1024
|
-
/**
|
|
1025
|
-
* The color of the component.
|
|
1026
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1027
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1028
|
-
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
1029
|
-
*/
|
|
1030
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
1031
|
-
/**
|
|
1032
|
-
* The components used for each slot inside.
|
|
1033
|
-
*
|
|
1034
|
-
* This prop is an alias for the `slots` prop.
|
|
1035
|
-
* It's recommended to use the `slots` prop instead.
|
|
1036
|
-
*
|
|
1037
|
-
* @default {}
|
|
1038
|
-
*/
|
|
1039
|
-
components: e.shape({
|
|
1040
|
-
Input: e.elementType,
|
|
1041
|
-
Root: e.elementType
|
|
1042
|
-
}),
|
|
1043
|
-
/**
|
|
1044
|
-
* The extra props for the slot components.
|
|
1045
|
-
* You can override the existing props or add new ones.
|
|
1046
|
-
*
|
|
1047
|
-
* This prop is an alias for the `slotProps` prop.
|
|
1048
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
1049
|
-
*
|
|
1050
|
-
* @default {}
|
|
1051
|
-
*/
|
|
1052
|
-
componentsProps: e.shape({
|
|
1053
|
-
input: e.object,
|
|
1054
|
-
root: e.object
|
|
1055
|
-
}),
|
|
1056
|
-
/**
|
|
1057
|
-
* The default value. Use when the component is not controlled.
|
|
1058
|
-
*/
|
|
1059
|
-
defaultValue: e.any,
|
|
1060
|
-
/**
|
|
1061
|
-
* If `true`, the component is disabled.
|
|
1062
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
1063
|
-
*/
|
|
1064
|
-
disabled: e.bool,
|
|
1065
|
-
/**
|
|
1066
|
-
* If `true`, the input will not have an underline.
|
|
1067
|
-
*/
|
|
1068
|
-
disableUnderline: e.bool,
|
|
1069
|
-
/**
|
|
1070
|
-
* End `InputAdornment` for this component.
|
|
1071
|
-
*/
|
|
1072
|
-
endAdornment: e.node,
|
|
1073
|
-
/**
|
|
1074
|
-
* If `true`, the `input` will indicate an error.
|
|
1075
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
1076
|
-
*/
|
|
1077
|
-
error: e.bool,
|
|
1078
|
-
/**
|
|
1079
|
-
* If `true`, the `input` will take up the full width of its container.
|
|
1080
|
-
* @default false
|
|
1081
|
-
*/
|
|
1082
|
-
fullWidth: e.bool,
|
|
1083
|
-
/**
|
|
1084
|
-
* If `true`, the label is hidden.
|
|
1085
|
-
* This is used to increase density for a `FilledInput`.
|
|
1086
|
-
* Be sure to add `aria-label` to the `input` element.
|
|
1087
|
-
* @default false
|
|
1088
|
-
*/
|
|
1089
|
-
hiddenLabel: e.bool,
|
|
1090
|
-
/**
|
|
1091
|
-
* The id of the `input` element.
|
|
1092
|
-
*/
|
|
1093
|
-
id: e.string,
|
|
1094
|
-
/**
|
|
1095
|
-
* The component used for the `input` element.
|
|
1096
|
-
* Either a string to use a HTML element or a component.
|
|
1097
|
-
* @default 'input'
|
|
1098
|
-
*/
|
|
1099
|
-
inputComponent: e.elementType,
|
|
1100
|
-
/**
|
|
1101
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
1102
|
-
* @default {}
|
|
1103
|
-
*/
|
|
1104
|
-
inputProps: e.object,
|
|
1105
|
-
/**
|
|
1106
|
-
* Pass a ref to the `input` element.
|
|
1107
|
-
*/
|
|
1108
|
-
inputRef: ge,
|
|
1109
|
-
/**
|
|
1110
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
1111
|
-
* FormControl.
|
|
1112
|
-
* The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
|
|
1113
|
-
*/
|
|
1114
|
-
margin: e.oneOf(["dense", "none"]),
|
|
1115
|
-
/**
|
|
1116
|
-
* Maximum number of rows to display when multiline option is set to true.
|
|
1117
|
-
*/
|
|
1118
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
1119
|
-
/**
|
|
1120
|
-
* Minimum number of rows to display when multiline option is set to true.
|
|
1121
|
-
*/
|
|
1122
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
1123
|
-
/**
|
|
1124
|
-
* If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
|
|
1125
|
-
* @default false
|
|
1126
|
-
*/
|
|
1127
|
-
multiline: e.bool,
|
|
1128
|
-
/**
|
|
1129
|
-
* Name attribute of the `input` element.
|
|
1130
|
-
*/
|
|
1131
|
-
name: e.string,
|
|
1132
|
-
/**
|
|
1133
|
-
* Callback fired when the value is changed.
|
|
1134
|
-
*
|
|
1135
|
-
* @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
|
|
1136
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
1137
|
-
*/
|
|
1138
|
-
onChange: e.func,
|
|
1139
|
-
/**
|
|
1140
|
-
* The short hint displayed in the `input` before the user enters a value.
|
|
1141
|
-
*/
|
|
1142
|
-
placeholder: e.string,
|
|
1143
|
-
/**
|
|
1144
|
-
* It prevents the user from changing the value of the field
|
|
1145
|
-
* (not from interacting with the field).
|
|
1146
|
-
*/
|
|
1147
|
-
readOnly: e.bool,
|
|
1148
|
-
/**
|
|
1149
|
-
* If `true`, the `input` element is required.
|
|
1150
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
1151
|
-
*/
|
|
1152
|
-
required: e.bool,
|
|
1153
|
-
/**
|
|
1154
|
-
* Number of rows to display when multiline option is set to true.
|
|
1155
|
-
*/
|
|
1156
|
-
rows: e.oneOfType([e.number, e.string]),
|
|
1157
|
-
/**
|
|
1158
|
-
* The extra props for the slot components.
|
|
1159
|
-
* You can override the existing props or add new ones.
|
|
1160
|
-
*
|
|
1161
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
1162
|
-
*
|
|
1163
|
-
* @default {}
|
|
1164
|
-
*/
|
|
1165
|
-
slotProps: e.shape({
|
|
1166
|
-
input: e.object,
|
|
1167
|
-
root: e.object
|
|
1168
|
-
}),
|
|
1169
|
-
/**
|
|
1170
|
-
* The components used for each slot inside.
|
|
1171
|
-
*
|
|
1172
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
1173
|
-
*
|
|
1174
|
-
* @default {}
|
|
1175
|
-
*/
|
|
1176
|
-
slots: e.shape({
|
|
1177
|
-
input: e.elementType,
|
|
1178
|
-
root: e.elementType
|
|
1179
|
-
}),
|
|
1180
|
-
/**
|
|
1181
|
-
* Start `InputAdornment` for this component.
|
|
1182
|
-
*/
|
|
1183
|
-
startAdornment: e.node,
|
|
1184
|
-
/**
|
|
1185
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1186
|
-
*/
|
|
1187
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1188
|
-
/**
|
|
1189
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
1190
|
-
* @default 'text'
|
|
1191
|
-
*/
|
|
1192
|
-
type: e.string,
|
|
1193
|
-
/**
|
|
1194
|
-
* The value of the `input` element, required for a controlled component.
|
|
1195
|
-
*/
|
|
1196
|
-
value: e.any
|
|
1197
|
-
});
|
|
1198
|
-
oo.muiName = "Input";
|
|
1199
|
-
const Fo = oo;
|
|
1200
|
-
function Pn(o) {
|
|
1201
|
-
return pe("MuiFormHelperText", o);
|
|
1202
|
-
}
|
|
1203
|
-
const Sn = fe("MuiFormHelperText", ["root", "error", "disabled", "sizeSmall", "sizeMedium", "contained", "focused", "filled", "required"]), po = Sn;
|
|
1204
|
-
var fo;
|
|
1205
|
-
const En = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"], Nn = (o) => {
|
|
1206
|
-
const {
|
|
1207
|
-
classes: n,
|
|
1208
|
-
contained: t,
|
|
1209
|
-
size: r,
|
|
1210
|
-
disabled: i,
|
|
1211
|
-
error: l,
|
|
1212
|
-
filled: c,
|
|
1213
|
-
focused: d,
|
|
1214
|
-
required: p
|
|
1215
|
-
} = o, u = {
|
|
1216
|
-
root: ["root", i && "disabled", l && "error", r && `size${ue(r)}`, t && "contained", d && "focused", c && "filled", p && "required"]
|
|
1217
|
-
};
|
|
1218
|
-
return oe(u, Pn, n);
|
|
1219
|
-
}, Fn = $("p", {
|
|
1220
|
-
name: "MuiFormHelperText",
|
|
1221
|
-
slot: "Root",
|
|
1222
|
-
overridesResolver: (o, n) => {
|
|
1223
|
-
const {
|
|
1224
|
-
ownerState: t
|
|
1225
|
-
} = o;
|
|
1226
|
-
return [n.root, t.size && n[`size${ue(t.size)}`], t.contained && n.contained, t.filled && n.filled];
|
|
1227
|
-
}
|
|
1228
|
-
})(({
|
|
1229
|
-
theme: o,
|
|
1230
|
-
ownerState: n
|
|
1231
|
-
}) => s({
|
|
1232
|
-
color: (o.vars || o).palette.text.secondary
|
|
1233
|
-
}, o.typography.caption, {
|
|
1234
|
-
textAlign: "left",
|
|
1235
|
-
marginTop: 3,
|
|
1236
|
-
marginRight: 0,
|
|
1237
|
-
marginBottom: 0,
|
|
1238
|
-
marginLeft: 0,
|
|
1239
|
-
[`&.${po.disabled}`]: {
|
|
1240
|
-
color: (o.vars || o).palette.text.disabled
|
|
1241
|
-
},
|
|
1242
|
-
[`&.${po.error}`]: {
|
|
1243
|
-
color: (o.vars || o).palette.error.main
|
|
1244
|
-
}
|
|
1245
|
-
}, n.size === "small" && {
|
|
1246
|
-
marginTop: 4
|
|
1247
|
-
}, n.contained && {
|
|
1248
|
-
marginLeft: 14,
|
|
1249
|
-
marginRight: 14
|
|
1250
|
-
})), Mo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
1251
|
-
const r = te({
|
|
1252
|
-
props: n,
|
|
1253
|
-
name: "MuiFormHelperText"
|
|
1254
|
-
}), {
|
|
1255
|
-
children: i,
|
|
1256
|
-
className: l,
|
|
1257
|
-
component: c = "p"
|
|
1258
|
-
} = r, d = H(r, En), p = Ee(), u = Se({
|
|
1259
|
-
props: r,
|
|
1260
|
-
muiFormControl: p,
|
|
1261
|
-
states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
|
|
1262
|
-
}), h = s({}, r, {
|
|
1263
|
-
component: c,
|
|
1264
|
-
contained: u.variant === "filled" || u.variant === "outlined",
|
|
1265
|
-
variant: u.variant,
|
|
1266
|
-
size: u.size,
|
|
1267
|
-
disabled: u.disabled,
|
|
1268
|
-
error: u.error,
|
|
1269
|
-
filled: u.filled,
|
|
1270
|
-
focused: u.focused,
|
|
1271
|
-
required: u.required
|
|
1272
|
-
}), O = Nn(h);
|
|
1273
|
-
return /* @__PURE__ */ v.jsx(Fn, s({
|
|
1274
|
-
as: c,
|
|
1275
|
-
ownerState: h,
|
|
1276
|
-
className: ee(O.root, l),
|
|
1277
|
-
ref: t
|
|
1278
|
-
}, d, {
|
|
1279
|
-
children: i === " " ? (
|
|
1280
|
-
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
1281
|
-
fo || (fo = /* @__PURE__ */ v.jsx("span", {
|
|
1282
|
-
className: "notranslate",
|
|
1283
|
-
children: ""
|
|
1284
|
-
}))
|
|
1285
|
-
) : i
|
|
1286
|
-
}));
|
|
1287
|
-
});
|
|
1288
|
-
process.env.NODE_ENV !== "production" && (Mo.propTypes = {
|
|
1289
|
-
// ----------------------------- Warning --------------------------------
|
|
1290
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1291
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1292
|
-
// ----------------------------------------------------------------------
|
|
1293
|
-
/**
|
|
1294
|
-
* The content of the component.
|
|
1295
|
-
*
|
|
1296
|
-
* If `' '` is provided, the component reserves one line height for displaying a future message.
|
|
1297
|
-
*/
|
|
1298
|
-
children: e.node,
|
|
1299
|
-
/**
|
|
1300
|
-
* Override or extend the styles applied to the component.
|
|
1301
|
-
*/
|
|
1302
|
-
classes: e.object,
|
|
1303
|
-
/**
|
|
1304
|
-
* @ignore
|
|
1305
|
-
*/
|
|
1306
|
-
className: e.string,
|
|
1307
|
-
/**
|
|
1308
|
-
* The component used for the root node.
|
|
1309
|
-
* Either a string to use a HTML element or a component.
|
|
1310
|
-
*/
|
|
1311
|
-
component: e.elementType,
|
|
1312
|
-
/**
|
|
1313
|
-
* If `true`, the helper text should be displayed in a disabled state.
|
|
1314
|
-
*/
|
|
1315
|
-
disabled: e.bool,
|
|
1316
|
-
/**
|
|
1317
|
-
* If `true`, helper text should be displayed in an error state.
|
|
1318
|
-
*/
|
|
1319
|
-
error: e.bool,
|
|
1320
|
-
/**
|
|
1321
|
-
* If `true`, the helper text should use filled classes key.
|
|
1322
|
-
*/
|
|
1323
|
-
filled: e.bool,
|
|
1324
|
-
/**
|
|
1325
|
-
* If `true`, the helper text should use focused classes key.
|
|
1326
|
-
*/
|
|
1327
|
-
focused: e.bool,
|
|
1328
|
-
/**
|
|
1329
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
1330
|
-
* FormControl.
|
|
1331
|
-
*/
|
|
1332
|
-
margin: e.oneOf(["dense"]),
|
|
1333
|
-
/**
|
|
1334
|
-
* If `true`, the helper text should use required classes key.
|
|
1335
|
-
*/
|
|
1336
|
-
required: e.bool,
|
|
1337
|
-
/**
|
|
1338
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1339
|
-
*/
|
|
1340
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1341
|
-
/**
|
|
1342
|
-
* The variant to use.
|
|
1343
|
-
*/
|
|
1344
|
-
variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
|
|
1345
|
-
});
|
|
1346
|
-
const Mn = Mo;
|
|
1347
|
-
function jn(o) {
|
|
1348
|
-
return pe("MuiFormLabel", o);
|
|
1349
|
-
}
|
|
1350
|
-
const $n = fe("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), ke = $n, kn = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], Ln = (o) => {
|
|
1351
|
-
const {
|
|
1352
|
-
classes: n,
|
|
1353
|
-
color: t,
|
|
1354
|
-
focused: r,
|
|
1355
|
-
disabled: i,
|
|
1356
|
-
error: l,
|
|
1357
|
-
filled: c,
|
|
1358
|
-
required: d
|
|
1359
|
-
} = o, p = {
|
|
1360
|
-
root: ["root", `color${ue(t)}`, i && "disabled", l && "error", c && "filled", r && "focused", d && "required"],
|
|
1361
|
-
asterisk: ["asterisk", l && "error"]
|
|
1362
|
-
};
|
|
1363
|
-
return oe(p, jn, n);
|
|
1364
|
-
}, Dn = $("label", {
|
|
1365
|
-
name: "MuiFormLabel",
|
|
1366
|
-
slot: "Root",
|
|
1367
|
-
overridesResolver: ({
|
|
1368
|
-
ownerState: o
|
|
1369
|
-
}, n) => s({}, n.root, o.color === "secondary" && n.colorSecondary, o.filled && n.filled)
|
|
1370
|
-
})(({
|
|
1371
|
-
theme: o,
|
|
1372
|
-
ownerState: n
|
|
1373
|
-
}) => s({
|
|
1374
|
-
color: (o.vars || o).palette.text.secondary
|
|
1375
|
-
}, o.typography.body1, {
|
|
1376
|
-
lineHeight: "1.4375em",
|
|
1377
|
-
padding: 0,
|
|
1378
|
-
position: "relative",
|
|
1379
|
-
[`&.${ke.focused}`]: {
|
|
1380
|
-
color: (o.vars || o).palette[n.color].main
|
|
1381
|
-
},
|
|
1382
|
-
[`&.${ke.disabled}`]: {
|
|
1383
|
-
color: (o.vars || o).palette.text.disabled
|
|
1384
|
-
},
|
|
1385
|
-
[`&.${ke.error}`]: {
|
|
1386
|
-
color: (o.vars || o).palette.error.main
|
|
1387
|
-
}
|
|
1388
|
-
})), zn = $("span", {
|
|
1389
|
-
name: "MuiFormLabel",
|
|
1390
|
-
slot: "Asterisk",
|
|
1391
|
-
overridesResolver: (o, n) => n.asterisk
|
|
1392
|
-
})(({
|
|
1393
|
-
theme: o
|
|
1394
|
-
}) => ({
|
|
1395
|
-
[`&.${ke.error}`]: {
|
|
1396
|
-
color: (o.vars || o).palette.error.main
|
|
1397
|
-
}
|
|
1398
|
-
})), jo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
1399
|
-
const r = te({
|
|
1400
|
-
props: n,
|
|
1401
|
-
name: "MuiFormLabel"
|
|
1402
|
-
}), {
|
|
1403
|
-
children: i,
|
|
1404
|
-
className: l,
|
|
1405
|
-
component: c = "label"
|
|
1406
|
-
} = r, d = H(r, kn), p = Ee(), u = Se({
|
|
1407
|
-
props: r,
|
|
1408
|
-
muiFormControl: p,
|
|
1409
|
-
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
1410
|
-
}), h = s({}, r, {
|
|
1411
|
-
color: u.color || "primary",
|
|
1412
|
-
component: c,
|
|
1413
|
-
disabled: u.disabled,
|
|
1414
|
-
error: u.error,
|
|
1415
|
-
filled: u.filled,
|
|
1416
|
-
focused: u.focused,
|
|
1417
|
-
required: u.required
|
|
1418
|
-
}), O = Ln(h);
|
|
1419
|
-
return /* @__PURE__ */ v.jsxs(Dn, s({
|
|
1420
|
-
as: c,
|
|
1421
|
-
ownerState: h,
|
|
1422
|
-
className: ee(O.root, l),
|
|
1423
|
-
ref: t
|
|
1424
|
-
}, d, {
|
|
1425
|
-
children: [i, u.required && /* @__PURE__ */ v.jsxs(zn, {
|
|
1426
|
-
ownerState: h,
|
|
1427
|
-
"aria-hidden": !0,
|
|
1428
|
-
className: O.asterisk,
|
|
1429
|
-
children: [" ", "*"]
|
|
1430
|
-
})]
|
|
1431
|
-
}));
|
|
1432
|
-
});
|
|
1433
|
-
process.env.NODE_ENV !== "production" && (jo.propTypes = {
|
|
1434
|
-
// ----------------------------- Warning --------------------------------
|
|
1435
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1436
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1437
|
-
// ----------------------------------------------------------------------
|
|
1438
|
-
/**
|
|
1439
|
-
* The content of the component.
|
|
1440
|
-
*/
|
|
1441
|
-
children: e.node,
|
|
1442
|
-
/**
|
|
1443
|
-
* Override or extend the styles applied to the component.
|
|
1444
|
-
*/
|
|
1445
|
-
classes: e.object,
|
|
1446
|
-
/**
|
|
1447
|
-
* @ignore
|
|
1448
|
-
*/
|
|
1449
|
-
className: e.string,
|
|
1450
|
-
/**
|
|
1451
|
-
* The color of the component.
|
|
1452
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1453
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1454
|
-
*/
|
|
1455
|
-
color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
|
|
1456
|
-
/**
|
|
1457
|
-
* The component used for the root node.
|
|
1458
|
-
* Either a string to use a HTML element or a component.
|
|
1459
|
-
*/
|
|
1460
|
-
component: e.elementType,
|
|
1461
|
-
/**
|
|
1462
|
-
* If `true`, the label should be displayed in a disabled state.
|
|
1463
|
-
*/
|
|
1464
|
-
disabled: e.bool,
|
|
1465
|
-
/**
|
|
1466
|
-
* If `true`, the label is displayed in an error state.
|
|
1467
|
-
*/
|
|
1468
|
-
error: e.bool,
|
|
1469
|
-
/**
|
|
1470
|
-
* If `true`, the label should use filled classes key.
|
|
1471
|
-
*/
|
|
1472
|
-
filled: e.bool,
|
|
1473
|
-
/**
|
|
1474
|
-
* If `true`, the input of this label is focused (used by `FormGroup` components).
|
|
1475
|
-
*/
|
|
1476
|
-
focused: e.bool,
|
|
1477
|
-
/**
|
|
1478
|
-
* If `true`, the label will indicate that the `input` is required.
|
|
1479
|
-
*/
|
|
1480
|
-
required: e.bool,
|
|
1481
|
-
/**
|
|
1482
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1483
|
-
*/
|
|
1484
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1485
|
-
});
|
|
1486
|
-
const Wn = jo, An = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"], _n = (o) => {
|
|
1487
|
-
const {
|
|
1488
|
-
classes: n,
|
|
1489
|
-
disableUnderline: t
|
|
1490
|
-
} = o, i = oe({
|
|
1491
|
-
root: ["root", !t && "underline"],
|
|
1492
|
-
input: ["input"]
|
|
1493
|
-
}, un, n);
|
|
1494
|
-
return s({}, n, i);
|
|
1495
|
-
}, Bn = $(Ue, {
|
|
1496
|
-
shouldForwardProp: (o) => Oe(o) || o === "classes",
|
|
1497
|
-
name: "MuiInput",
|
|
1498
|
-
slot: "Root",
|
|
1499
|
-
overridesResolver: (o, n) => {
|
|
1500
|
-
const {
|
|
1501
|
-
ownerState: t
|
|
1502
|
-
} = o;
|
|
1503
|
-
return [..._e(o, n), !t.disableUnderline && n.underline];
|
|
1504
|
-
}
|
|
1505
|
-
})(({
|
|
1506
|
-
theme: o,
|
|
1507
|
-
ownerState: n
|
|
1508
|
-
}) => {
|
|
1509
|
-
let r = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
1510
|
-
return o.vars && (r = `rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})`), s({
|
|
1511
|
-
position: "relative"
|
|
1512
|
-
}, n.formControl && {
|
|
1513
|
-
"label + &": {
|
|
1514
|
-
marginTop: 16
|
|
1515
|
-
}
|
|
1516
|
-
}, !n.disableUnderline && {
|
|
1517
|
-
"&:after": {
|
|
1518
|
-
borderBottom: `2px solid ${(o.vars || o).palette[n.color].main}`,
|
|
1519
|
-
left: 0,
|
|
1520
|
-
bottom: 0,
|
|
1521
|
-
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
1522
|
-
content: '""',
|
|
1523
|
-
position: "absolute",
|
|
1524
|
-
right: 0,
|
|
1525
|
-
transform: "scaleX(0)",
|
|
1526
|
-
transition: o.transitions.create("transform", {
|
|
1527
|
-
duration: o.transitions.duration.shorter,
|
|
1528
|
-
easing: o.transitions.easing.easeOut
|
|
1529
|
-
}),
|
|
1530
|
-
pointerEvents: "none"
|
|
1531
|
-
// Transparent to the hover style.
|
|
1532
|
-
},
|
|
1533
|
-
[`&.${Me.focused}:after`]: {
|
|
1534
|
-
// translateX(0) is a workaround for Safari transform scale bug
|
|
1535
|
-
// See https://github.com/mui/material-ui/issues/31766
|
|
1536
|
-
transform: "scaleX(1) translateX(0)"
|
|
1537
|
-
},
|
|
1538
|
-
[`&.${Me.error}`]: {
|
|
1539
|
-
"&:before, &:after": {
|
|
1540
|
-
borderBottomColor: (o.vars || o).palette.error.main
|
|
1541
|
-
}
|
|
1542
|
-
},
|
|
1543
|
-
"&:before": {
|
|
1544
|
-
borderBottom: `1px solid ${r}`,
|
|
1545
|
-
left: 0,
|
|
1546
|
-
bottom: 0,
|
|
1547
|
-
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
1548
|
-
content: '"\\00a0"',
|
|
1549
|
-
position: "absolute",
|
|
1550
|
-
right: 0,
|
|
1551
|
-
transition: o.transitions.create("border-bottom-color", {
|
|
1552
|
-
duration: o.transitions.duration.shorter
|
|
1553
|
-
}),
|
|
1554
|
-
pointerEvents: "none"
|
|
1555
|
-
// Transparent to the hover style.
|
|
1556
|
-
},
|
|
1557
|
-
[`&:hover:not(.${Me.disabled}, .${Me.error}):before`]: {
|
|
1558
|
-
borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
|
|
1559
|
-
// Reset on touch devices, it doesn't add specificity
|
|
1560
|
-
"@media (hover: none)": {
|
|
1561
|
-
borderBottom: `1px solid ${r}`
|
|
1562
|
-
}
|
|
1563
|
-
},
|
|
1564
|
-
[`&.${Me.disabled}:before`]: {
|
|
1565
|
-
borderBottomStyle: "dotted"
|
|
1566
|
-
}
|
|
1567
|
-
});
|
|
1568
|
-
}), Un = $(Ve, {
|
|
1569
|
-
name: "MuiInput",
|
|
1570
|
-
slot: "Input",
|
|
1571
|
-
overridesResolver: Be
|
|
1572
|
-
})({}), no = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
1573
|
-
var r, i, l, c;
|
|
1574
|
-
const d = te({
|
|
1575
|
-
props: n,
|
|
1576
|
-
name: "MuiInput"
|
|
1577
|
-
}), {
|
|
1578
|
-
disableUnderline: p,
|
|
1579
|
-
components: u = {},
|
|
1580
|
-
componentsProps: h,
|
|
1581
|
-
fullWidth: O = !1,
|
|
1582
|
-
inputComponent: R = "input",
|
|
1583
|
-
multiline: f = !1,
|
|
1584
|
-
slotProps: w,
|
|
1585
|
-
slots: F = {},
|
|
1586
|
-
type: E = "text"
|
|
1587
|
-
} = d, S = H(d, An), T = _n(d), y = {
|
|
1588
|
-
root: {
|
|
1589
|
-
ownerState: {
|
|
1590
|
-
disableUnderline: p
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
}, m = w ?? h ? Ze(w ?? h, y) : y, C = (r = (i = F.root) != null ? i : u.Root) != null ? r : Bn, x = (l = (c = F.input) != null ? c : u.Input) != null ? l : Un;
|
|
1594
|
-
return /* @__PURE__ */ v.jsx(eo, s({
|
|
1595
|
-
slots: {
|
|
1596
|
-
root: C,
|
|
1597
|
-
input: x
|
|
1598
|
-
},
|
|
1599
|
-
slotProps: m,
|
|
1600
|
-
fullWidth: O,
|
|
1601
|
-
inputComponent: R,
|
|
1602
|
-
multiline: f,
|
|
1603
|
-
ref: t,
|
|
1604
|
-
type: E
|
|
1605
|
-
}, S, {
|
|
1606
|
-
classes: T
|
|
1607
|
-
}));
|
|
1608
|
-
});
|
|
1609
|
-
process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
1610
|
-
// ----------------------------- Warning --------------------------------
|
|
1611
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1612
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1613
|
-
// ----------------------------------------------------------------------
|
|
1614
|
-
/**
|
|
1615
|
-
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
1616
|
-
* The name can be confusing, as it's more like an autofill.
|
|
1617
|
-
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
1618
|
-
*/
|
|
1619
|
-
autoComplete: e.string,
|
|
1620
|
-
/**
|
|
1621
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
1622
|
-
*/
|
|
1623
|
-
autoFocus: e.bool,
|
|
1624
|
-
/**
|
|
1625
|
-
* Override or extend the styles applied to the component.
|
|
1626
|
-
*/
|
|
1627
|
-
classes: e.object,
|
|
1628
|
-
/**
|
|
1629
|
-
* The color of the component.
|
|
1630
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1631
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1632
|
-
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
1633
|
-
*/
|
|
1634
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
1635
|
-
/**
|
|
1636
|
-
* The components used for each slot inside.
|
|
1637
|
-
*
|
|
1638
|
-
* This prop is an alias for the `slots` prop.
|
|
1639
|
-
* It's recommended to use the `slots` prop instead.
|
|
1640
|
-
*
|
|
1641
|
-
* @default {}
|
|
1642
|
-
*/
|
|
1643
|
-
components: e.shape({
|
|
1644
|
-
Input: e.elementType,
|
|
1645
|
-
Root: e.elementType
|
|
1646
|
-
}),
|
|
1647
|
-
/**
|
|
1648
|
-
* The extra props for the slot components.
|
|
1649
|
-
* You can override the existing props or add new ones.
|
|
1650
|
-
*
|
|
1651
|
-
* This prop is an alias for the `slotProps` prop.
|
|
1652
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
1653
|
-
*
|
|
1654
|
-
* @default {}
|
|
1655
|
-
*/
|
|
1656
|
-
componentsProps: e.shape({
|
|
1657
|
-
input: e.object,
|
|
1658
|
-
root: e.object
|
|
1659
|
-
}),
|
|
1660
|
-
/**
|
|
1661
|
-
* The default value. Use when the component is not controlled.
|
|
1662
|
-
*/
|
|
1663
|
-
defaultValue: e.any,
|
|
1664
|
-
/**
|
|
1665
|
-
* If `true`, the component is disabled.
|
|
1666
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
1667
|
-
*/
|
|
1668
|
-
disabled: e.bool,
|
|
1669
|
-
/**
|
|
1670
|
-
* If `true`, the `input` will not have an underline.
|
|
1671
|
-
*/
|
|
1672
|
-
disableUnderline: e.bool,
|
|
1673
|
-
/**
|
|
1674
|
-
* End `InputAdornment` for this component.
|
|
1675
|
-
*/
|
|
1676
|
-
endAdornment: e.node,
|
|
1677
|
-
/**
|
|
1678
|
-
* If `true`, the `input` will indicate an error.
|
|
1679
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
1680
|
-
*/
|
|
1681
|
-
error: e.bool,
|
|
1682
|
-
/**
|
|
1683
|
-
* If `true`, the `input` will take up the full width of its container.
|
|
1684
|
-
* @default false
|
|
1685
|
-
*/
|
|
1686
|
-
fullWidth: e.bool,
|
|
1687
|
-
/**
|
|
1688
|
-
* The id of the `input` element.
|
|
1689
|
-
*/
|
|
1690
|
-
id: e.string,
|
|
1691
|
-
/**
|
|
1692
|
-
* The component used for the `input` element.
|
|
1693
|
-
* Either a string to use a HTML element or a component.
|
|
1694
|
-
* @default 'input'
|
|
1695
|
-
*/
|
|
1696
|
-
inputComponent: e.elementType,
|
|
1697
|
-
/**
|
|
1698
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
1699
|
-
* @default {}
|
|
1700
|
-
*/
|
|
1701
|
-
inputProps: e.object,
|
|
1702
|
-
/**
|
|
1703
|
-
* Pass a ref to the `input` element.
|
|
1704
|
-
*/
|
|
1705
|
-
inputRef: ge,
|
|
1706
|
-
/**
|
|
1707
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
1708
|
-
* FormControl.
|
|
1709
|
-
* The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
|
|
1710
|
-
*/
|
|
1711
|
-
margin: e.oneOf(["dense", "none"]),
|
|
1712
|
-
/**
|
|
1713
|
-
* Maximum number of rows to display when multiline option is set to true.
|
|
1714
|
-
*/
|
|
1715
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
1716
|
-
/**
|
|
1717
|
-
* Minimum number of rows to display when multiline option is set to true.
|
|
1718
|
-
*/
|
|
1719
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
1720
|
-
/**
|
|
1721
|
-
* If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
|
|
1722
|
-
* @default false
|
|
1723
|
-
*/
|
|
1724
|
-
multiline: e.bool,
|
|
1725
|
-
/**
|
|
1726
|
-
* Name attribute of the `input` element.
|
|
1727
|
-
*/
|
|
1728
|
-
name: e.string,
|
|
1729
|
-
/**
|
|
1730
|
-
* Callback fired when the value is changed.
|
|
1731
|
-
*
|
|
1732
|
-
* @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
|
|
1733
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
1734
|
-
*/
|
|
1735
|
-
onChange: e.func,
|
|
1736
|
-
/**
|
|
1737
|
-
* The short hint displayed in the `input` before the user enters a value.
|
|
1738
|
-
*/
|
|
1739
|
-
placeholder: e.string,
|
|
1740
|
-
/**
|
|
1741
|
-
* It prevents the user from changing the value of the field
|
|
1742
|
-
* (not from interacting with the field).
|
|
1743
|
-
*/
|
|
1744
|
-
readOnly: e.bool,
|
|
1745
|
-
/**
|
|
1746
|
-
* If `true`, the `input` element is required.
|
|
1747
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
1748
|
-
*/
|
|
1749
|
-
required: e.bool,
|
|
1750
|
-
/**
|
|
1751
|
-
* Number of rows to display when multiline option is set to true.
|
|
1752
|
-
*/
|
|
1753
|
-
rows: e.oneOfType([e.number, e.string]),
|
|
1754
|
-
/**
|
|
1755
|
-
* The extra props for the slot components.
|
|
1756
|
-
* You can override the existing props or add new ones.
|
|
1757
|
-
*
|
|
1758
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
1759
|
-
*
|
|
1760
|
-
* @default {}
|
|
1761
|
-
*/
|
|
1762
|
-
slotProps: e.shape({
|
|
1763
|
-
input: e.object,
|
|
1764
|
-
root: e.object
|
|
1765
|
-
}),
|
|
1766
|
-
/**
|
|
1767
|
-
* The components used for each slot inside.
|
|
1768
|
-
*
|
|
1769
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
1770
|
-
*
|
|
1771
|
-
* @default {}
|
|
1772
|
-
*/
|
|
1773
|
-
slots: e.shape({
|
|
1774
|
-
input: e.elementType,
|
|
1775
|
-
root: e.elementType
|
|
1776
|
-
}),
|
|
1777
|
-
/**
|
|
1778
|
-
* Start `InputAdornment` for this component.
|
|
1779
|
-
*/
|
|
1780
|
-
startAdornment: e.node,
|
|
1781
|
-
/**
|
|
1782
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1783
|
-
*/
|
|
1784
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1785
|
-
/**
|
|
1786
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
1787
|
-
* @default 'text'
|
|
1788
|
-
*/
|
|
1789
|
-
type: e.string,
|
|
1790
|
-
/**
|
|
1791
|
-
* The value of the `input` element, required for a controlled component.
|
|
1792
|
-
*/
|
|
1793
|
-
value: e.any
|
|
1794
|
-
});
|
|
1795
|
-
no.muiName = "Input";
|
|
1796
|
-
const $o = no;
|
|
1797
|
-
function Vn(o) {
|
|
1798
|
-
return pe("MuiInputLabel", o);
|
|
1799
|
-
}
|
|
1800
|
-
fe("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
|
|
1801
|
-
const Hn = ["disableAnimation", "margin", "shrink", "variant", "className"], qn = (o) => {
|
|
1802
|
-
const {
|
|
1803
|
-
classes: n,
|
|
1804
|
-
formControl: t,
|
|
1805
|
-
size: r,
|
|
1806
|
-
shrink: i,
|
|
1807
|
-
disableAnimation: l,
|
|
1808
|
-
variant: c,
|
|
1809
|
-
required: d
|
|
1810
|
-
} = o, u = oe({
|
|
1811
|
-
root: ["root", t && "formControl", !l && "animated", i && "shrink", r === "small" && "sizeSmall", c],
|
|
1812
|
-
asterisk: [d && "asterisk"]
|
|
1813
|
-
}, Vn, n);
|
|
1814
|
-
return s({}, n, u);
|
|
1815
|
-
}, Kn = $(Wn, {
|
|
1816
|
-
shouldForwardProp: (o) => Oe(o) || o === "classes",
|
|
1817
|
-
name: "MuiInputLabel",
|
|
1818
|
-
slot: "Root",
|
|
1819
|
-
overridesResolver: (o, n) => {
|
|
1820
|
-
const {
|
|
1821
|
-
ownerState: t
|
|
1822
|
-
} = o;
|
|
1823
|
-
return [{
|
|
1824
|
-
[`& .${ke.asterisk}`]: n.asterisk
|
|
1825
|
-
}, n.root, t.formControl && n.formControl, t.size === "small" && n.sizeSmall, t.shrink && n.shrink, !t.disableAnimation && n.animated, n[t.variant]];
|
|
1826
|
-
}
|
|
1827
|
-
})(({
|
|
1828
|
-
theme: o,
|
|
1829
|
-
ownerState: n
|
|
1830
|
-
}) => s({
|
|
1831
|
-
display: "block",
|
|
1832
|
-
transformOrigin: "top left",
|
|
1833
|
-
whiteSpace: "nowrap",
|
|
1834
|
-
overflow: "hidden",
|
|
1835
|
-
textOverflow: "ellipsis",
|
|
1836
|
-
maxWidth: "100%"
|
|
1837
|
-
}, n.formControl && {
|
|
1838
|
-
position: "absolute",
|
|
1839
|
-
left: 0,
|
|
1840
|
-
top: 0,
|
|
1841
|
-
// slight alteration to spec spacing to match visual spec result
|
|
1842
|
-
transform: "translate(0, 20px) scale(1)"
|
|
1843
|
-
}, n.size === "small" && {
|
|
1844
|
-
// Compensation for the `Input.inputSizeSmall` style.
|
|
1845
|
-
transform: "translate(0, 17px) scale(1)"
|
|
1846
|
-
}, n.shrink && {
|
|
1847
|
-
transform: "translate(0, -1.5px) scale(0.75)",
|
|
1848
|
-
transformOrigin: "top left",
|
|
1849
|
-
maxWidth: "133%"
|
|
1850
|
-
}, !n.disableAnimation && {
|
|
1851
|
-
transition: o.transitions.create(["color", "transform", "max-width"], {
|
|
1852
|
-
duration: o.transitions.duration.shorter,
|
|
1853
|
-
easing: o.transitions.easing.easeOut
|
|
1854
|
-
})
|
|
1855
|
-
}, n.variant === "filled" && s({
|
|
1856
|
-
// Chrome's autofill feature gives the input field a yellow background.
|
|
1857
|
-
// Since the input field is behind the label in the HTML tree,
|
|
1858
|
-
// the input field is drawn last and hides the label with an opaque background color.
|
|
1859
|
-
// zIndex: 1 will raise the label above opaque background-colors of input.
|
|
1860
|
-
zIndex: 1,
|
|
1861
|
-
pointerEvents: "none",
|
|
1862
|
-
transform: "translate(12px, 16px) scale(1)",
|
|
1863
|
-
maxWidth: "calc(100% - 24px)"
|
|
1864
|
-
}, n.size === "small" && {
|
|
1865
|
-
transform: "translate(12px, 13px) scale(1)"
|
|
1866
|
-
}, n.shrink && s({
|
|
1867
|
-
userSelect: "none",
|
|
1868
|
-
pointerEvents: "auto",
|
|
1869
|
-
transform: "translate(12px, 7px) scale(0.75)",
|
|
1870
|
-
maxWidth: "calc(133% - 24px)"
|
|
1871
|
-
}, n.size === "small" && {
|
|
1872
|
-
transform: "translate(12px, 4px) scale(0.75)"
|
|
1873
|
-
})), n.variant === "outlined" && s({
|
|
1874
|
-
// see comment above on filled.zIndex
|
|
1875
|
-
zIndex: 1,
|
|
1876
|
-
pointerEvents: "none",
|
|
1877
|
-
transform: "translate(14px, 16px) scale(1)",
|
|
1878
|
-
maxWidth: "calc(100% - 24px)"
|
|
1879
|
-
}, n.size === "small" && {
|
|
1880
|
-
transform: "translate(14px, 9px) scale(1)"
|
|
1881
|
-
}, n.shrink && {
|
|
1882
|
-
userSelect: "none",
|
|
1883
|
-
pointerEvents: "auto",
|
|
1884
|
-
// Theoretically, we should have (8+5)*2/0.75 = 34px
|
|
1885
|
-
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
1886
|
-
maxWidth: "calc(133% - 32px)",
|
|
1887
|
-
transform: "translate(14px, -9px) scale(0.75)"
|
|
1888
|
-
}))), ko = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
1889
|
-
const r = te({
|
|
1890
|
-
name: "MuiInputLabel",
|
|
1891
|
-
props: n
|
|
1892
|
-
}), {
|
|
1893
|
-
disableAnimation: i = !1,
|
|
1894
|
-
shrink: l,
|
|
1895
|
-
className: c
|
|
1896
|
-
} = r, d = H(r, Hn), p = Ee();
|
|
1897
|
-
let u = l;
|
|
1898
|
-
typeof u > "u" && p && (u = p.filled || p.focused || p.adornedStart);
|
|
1899
|
-
const h = Se({
|
|
1900
|
-
props: r,
|
|
1901
|
-
muiFormControl: p,
|
|
1902
|
-
states: ["size", "variant", "required"]
|
|
1903
|
-
}), O = s({}, r, {
|
|
1904
|
-
disableAnimation: i,
|
|
1905
|
-
formControl: p,
|
|
1906
|
-
shrink: u,
|
|
1907
|
-
size: h.size,
|
|
1908
|
-
variant: h.variant,
|
|
1909
|
-
required: h.required
|
|
1910
|
-
}), R = qn(O);
|
|
1911
|
-
return /* @__PURE__ */ v.jsx(Kn, s({
|
|
1912
|
-
"data-shrink": u,
|
|
1913
|
-
ownerState: O,
|
|
1914
|
-
ref: t,
|
|
1915
|
-
className: ee(R.root, c)
|
|
1916
|
-
}, d, {
|
|
1917
|
-
classes: R
|
|
1918
|
-
}));
|
|
1919
|
-
});
|
|
1920
|
-
process.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
1921
|
-
// ----------------------------- Warning --------------------------------
|
|
1922
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1923
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1924
|
-
// ----------------------------------------------------------------------
|
|
1925
|
-
/**
|
|
1926
|
-
* The content of the component.
|
|
1927
|
-
*/
|
|
1928
|
-
children: e.node,
|
|
1929
|
-
/**
|
|
1930
|
-
* Override or extend the styles applied to the component.
|
|
1931
|
-
*/
|
|
1932
|
-
classes: e.object,
|
|
1933
|
-
/**
|
|
1934
|
-
* @ignore
|
|
1935
|
-
*/
|
|
1936
|
-
className: e.string,
|
|
1937
|
-
/**
|
|
1938
|
-
* The color of the component.
|
|
1939
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1940
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1941
|
-
*/
|
|
1942
|
-
color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
|
|
1943
|
-
/**
|
|
1944
|
-
* If `true`, the transition animation is disabled.
|
|
1945
|
-
* @default false
|
|
1946
|
-
*/
|
|
1947
|
-
disableAnimation: e.bool,
|
|
1948
|
-
/**
|
|
1949
|
-
* If `true`, the component is disabled.
|
|
1950
|
-
*/
|
|
1951
|
-
disabled: e.bool,
|
|
1952
|
-
/**
|
|
1953
|
-
* If `true`, the label is displayed in an error state.
|
|
1954
|
-
*/
|
|
1955
|
-
error: e.bool,
|
|
1956
|
-
/**
|
|
1957
|
-
* If `true`, the `input` of this label is focused.
|
|
1958
|
-
*/
|
|
1959
|
-
focused: e.bool,
|
|
1960
|
-
/**
|
|
1961
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
1962
|
-
* FormControl.
|
|
1963
|
-
*/
|
|
1964
|
-
margin: e.oneOf(["dense"]),
|
|
1965
|
-
/**
|
|
1966
|
-
* if `true`, the label will indicate that the `input` is required.
|
|
1967
|
-
*/
|
|
1968
|
-
required: e.bool,
|
|
1969
|
-
/**
|
|
1970
|
-
* If `true`, the label is shrunk.
|
|
1971
|
-
*/
|
|
1972
|
-
shrink: e.bool,
|
|
1973
|
-
/**
|
|
1974
|
-
* The size of the component.
|
|
1975
|
-
* @default 'normal'
|
|
1976
|
-
*/
|
|
1977
|
-
size: e.oneOfType([e.oneOf(["normal", "small"]), e.string]),
|
|
1978
|
-
/**
|
|
1979
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1980
|
-
*/
|
|
1981
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1982
|
-
/**
|
|
1983
|
-
* The variant to use.
|
|
1984
|
-
*/
|
|
1985
|
-
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
1986
|
-
});
|
|
1987
|
-
const Gn = ko;
|
|
1988
|
-
function Xn(o) {
|
|
1989
|
-
return pe("MuiList", o);
|
|
1990
|
-
}
|
|
1991
|
-
fe("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
1992
|
-
const Yn = ["children", "className", "component", "dense", "disablePadding", "subheader"], Zn = (o) => {
|
|
1993
|
-
const {
|
|
1994
|
-
classes: n,
|
|
1995
|
-
disablePadding: t,
|
|
1996
|
-
dense: r,
|
|
1997
|
-
subheader: i
|
|
1998
|
-
} = o;
|
|
1999
|
-
return oe({
|
|
2000
|
-
root: ["root", !t && "padding", r && "dense", i && "subheader"]
|
|
2001
|
-
}, Xn, n);
|
|
2002
|
-
}, Jn = $("ul", {
|
|
2003
|
-
name: "MuiList",
|
|
2004
|
-
slot: "Root",
|
|
2005
|
-
overridesResolver: (o, n) => {
|
|
2006
|
-
const {
|
|
2007
|
-
ownerState: t
|
|
2008
|
-
} = o;
|
|
2009
|
-
return [n.root, !t.disablePadding && n.padding, t.dense && n.dense, t.subheader && n.subheader];
|
|
2010
|
-
}
|
|
2011
|
-
})(({
|
|
2012
|
-
ownerState: o
|
|
2013
|
-
}) => s({
|
|
2014
|
-
listStyle: "none",
|
|
2015
|
-
margin: 0,
|
|
2016
|
-
padding: 0,
|
|
2017
|
-
position: "relative"
|
|
2018
|
-
}, !o.disablePadding && {
|
|
2019
|
-
paddingTop: 8,
|
|
2020
|
-
paddingBottom: 8
|
|
2021
|
-
}, o.subheader && {
|
|
2022
|
-
paddingTop: 0
|
|
2023
|
-
})), Lo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
2024
|
-
const r = te({
|
|
2025
|
-
props: n,
|
|
2026
|
-
name: "MuiList"
|
|
2027
|
-
}), {
|
|
2028
|
-
children: i,
|
|
2029
|
-
className: l,
|
|
2030
|
-
component: c = "ul",
|
|
2031
|
-
dense: d = !1,
|
|
2032
|
-
disablePadding: p = !1,
|
|
2033
|
-
subheader: u
|
|
2034
|
-
} = r, h = H(r, Yn), O = a.useMemo(() => ({
|
|
2035
|
-
dense: d
|
|
2036
|
-
}), [d]), R = s({}, r, {
|
|
2037
|
-
component: c,
|
|
2038
|
-
dense: d,
|
|
2039
|
-
disablePadding: p
|
|
2040
|
-
}), f = Zn(R);
|
|
2041
|
-
return /* @__PURE__ */ v.jsx(an.Provider, {
|
|
2042
|
-
value: O,
|
|
2043
|
-
children: /* @__PURE__ */ v.jsxs(Jn, s({
|
|
2044
|
-
as: c,
|
|
2045
|
-
className: ee(f.root, l),
|
|
2046
|
-
ref: t,
|
|
2047
|
-
ownerState: R
|
|
2048
|
-
}, h, {
|
|
2049
|
-
children: [u, i]
|
|
2050
|
-
}))
|
|
2051
|
-
});
|
|
2052
|
-
});
|
|
2053
|
-
process.env.NODE_ENV !== "production" && (Lo.propTypes = {
|
|
2054
|
-
// ----------------------------- Warning --------------------------------
|
|
2055
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
2056
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
2057
|
-
// ----------------------------------------------------------------------
|
|
2058
|
-
/**
|
|
2059
|
-
* The content of the component.
|
|
2060
|
-
*/
|
|
2061
|
-
children: e.node,
|
|
2062
|
-
/**
|
|
2063
|
-
* Override or extend the styles applied to the component.
|
|
2064
|
-
*/
|
|
2065
|
-
classes: e.object,
|
|
2066
|
-
/**
|
|
2067
|
-
* @ignore
|
|
2068
|
-
*/
|
|
2069
|
-
className: e.string,
|
|
2070
|
-
/**
|
|
2071
|
-
* The component used for the root node.
|
|
2072
|
-
* Either a string to use a HTML element or a component.
|
|
2073
|
-
*/
|
|
2074
|
-
component: e.elementType,
|
|
2075
|
-
/**
|
|
2076
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used for
|
|
2077
|
-
* the list and list items.
|
|
2078
|
-
* The prop is available to descendant components as the `dense` context.
|
|
2079
|
-
* @default false
|
|
2080
|
-
*/
|
|
2081
|
-
dense: e.bool,
|
|
2082
|
-
/**
|
|
2083
|
-
* If `true`, vertical padding is removed from the list.
|
|
2084
|
-
* @default false
|
|
2085
|
-
*/
|
|
2086
|
-
disablePadding: e.bool,
|
|
2087
|
-
/**
|
|
2088
|
-
* The content of the subheader, normally `ListSubheader`.
|
|
2089
|
-
*/
|
|
2090
|
-
subheader: e.node,
|
|
2091
|
-
/**
|
|
2092
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2093
|
-
*/
|
|
2094
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
2095
|
-
});
|
|
2096
|
-
const Qn = Lo, et = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
|
|
2097
|
-
function Ge(o, n, t) {
|
|
2098
|
-
return o === n ? o.firstChild : n && n.nextElementSibling ? n.nextElementSibling : t ? null : o.firstChild;
|
|
2099
|
-
}
|
|
2100
|
-
function mo(o, n, t) {
|
|
2101
|
-
return o === n ? t ? o.firstChild : o.lastChild : n && n.previousElementSibling ? n.previousElementSibling : t ? null : o.lastChild;
|
|
2102
|
-
}
|
|
2103
|
-
function Do(o, n) {
|
|
2104
|
-
if (n === void 0)
|
|
2105
|
-
return !0;
|
|
2106
|
-
let t = o.innerText;
|
|
2107
|
-
return t === void 0 && (t = o.textContent), t = t.trim().toLowerCase(), t.length === 0 ? !1 : n.repeating ? t[0] === n.keys[0] : t.indexOf(n.keys.join("")) === 0;
|
|
2108
|
-
}
|
|
2109
|
-
function je(o, n, t, r, i, l) {
|
|
2110
|
-
let c = !1, d = i(o, n, n ? t : !1);
|
|
2111
|
-
for (; d; ) {
|
|
2112
|
-
if (d === o.firstChild) {
|
|
2113
|
-
if (c)
|
|
2114
|
-
return !1;
|
|
2115
|
-
c = !0;
|
|
2116
|
-
}
|
|
2117
|
-
const p = r ? !1 : d.disabled || d.getAttribute("aria-disabled") === "true";
|
|
2118
|
-
if (!d.hasAttribute("tabindex") || !Do(d, l) || p)
|
|
2119
|
-
d = i(o, d, t);
|
|
2120
|
-
else
|
|
2121
|
-
return d.focus(), !0;
|
|
2122
|
-
}
|
|
2123
|
-
return !1;
|
|
2124
|
-
}
|
|
2125
|
-
const zo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
2126
|
-
const {
|
|
2127
|
-
// private
|
|
2128
|
-
// eslint-disable-next-line react/prop-types
|
|
2129
|
-
actions: r,
|
|
2130
|
-
autoFocus: i = !1,
|
|
2131
|
-
autoFocusItem: l = !1,
|
|
2132
|
-
children: c,
|
|
2133
|
-
className: d,
|
|
2134
|
-
disabledItemsFocusable: p = !1,
|
|
2135
|
-
disableListWrap: u = !1,
|
|
2136
|
-
onKeyDown: h,
|
|
2137
|
-
variant: O = "selectedMenu"
|
|
2138
|
-
} = n, R = H(n, et), f = a.useRef(null), w = a.useRef({
|
|
2139
|
-
keys: [],
|
|
2140
|
-
repeating: !0,
|
|
2141
|
-
previousKeyMatched: !0,
|
|
2142
|
-
lastTime: null
|
|
2143
|
-
});
|
|
2144
|
-
Qe(() => {
|
|
2145
|
-
i && f.current.focus();
|
|
2146
|
-
}, [i]), a.useImperativeHandle(r, () => ({
|
|
2147
|
-
adjustStyleForScrollbar: (b, y) => {
|
|
2148
|
-
const m = !f.current.style.width;
|
|
2149
|
-
if (b.clientHeight < f.current.clientHeight && m) {
|
|
2150
|
-
const C = `${nn(Le(b))}px`;
|
|
2151
|
-
f.current.style[y.direction === "rtl" ? "paddingLeft" : "paddingRight"] = C, f.current.style.width = `calc(100% + ${C})`;
|
|
2152
|
-
}
|
|
2153
|
-
return f.current;
|
|
2154
|
-
}
|
|
2155
|
-
}), []);
|
|
2156
|
-
const F = (b) => {
|
|
2157
|
-
const y = f.current, m = b.key, C = Le(y).activeElement;
|
|
2158
|
-
if (m === "ArrowDown")
|
|
2159
|
-
b.preventDefault(), je(y, C, u, p, Ge);
|
|
2160
|
-
else if (m === "ArrowUp")
|
|
2161
|
-
b.preventDefault(), je(y, C, u, p, mo);
|
|
2162
|
-
else if (m === "Home")
|
|
2163
|
-
b.preventDefault(), je(y, null, u, p, Ge);
|
|
2164
|
-
else if (m === "End")
|
|
2165
|
-
b.preventDefault(), je(y, null, u, p, mo);
|
|
2166
|
-
else if (m.length === 1) {
|
|
2167
|
-
const x = w.current, I = m.toLowerCase(), A = performance.now();
|
|
2168
|
-
x.keys.length > 0 && (A - x.lastTime > 500 ? (x.keys = [], x.repeating = !0, x.previousKeyMatched = !0) : x.repeating && I !== x.keys[0] && (x.repeating = !1)), x.lastTime = A, x.keys.push(I);
|
|
2169
|
-
const k = C && !x.repeating && Do(C, x);
|
|
2170
|
-
x.previousKeyMatched && (k || je(y, C, !1, p, Ge, x)) ? b.preventDefault() : x.previousKeyMatched = !1;
|
|
2171
|
-
}
|
|
2172
|
-
h && h(b);
|
|
2173
|
-
}, E = Ne(f, t);
|
|
2174
|
-
let S = -1;
|
|
2175
|
-
a.Children.forEach(c, (b, y) => {
|
|
2176
|
-
/* @__PURE__ */ a.isValidElement(b) && (process.env.NODE_ENV !== "production" && Je.isFragment(b) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2177
|
-
`)), b.props.disabled || (O === "selectedMenu" && b.props.selected || S === -1) && (S = y), S === y && (b.props.disabled || b.props.muiSkipListHighlight || b.type.muiSkipListHighlight) && (S += 1, S >= c.length && (S = -1)));
|
|
2178
|
-
});
|
|
2179
|
-
const T = a.Children.map(c, (b, y) => {
|
|
2180
|
-
if (y === S) {
|
|
2181
|
-
const m = {};
|
|
2182
|
-
return l && (m.autoFocus = !0), b.props.tabIndex === void 0 && O === "selectedMenu" && (m.tabIndex = 0), /* @__PURE__ */ a.cloneElement(b, m);
|
|
2183
|
-
}
|
|
2184
|
-
return b;
|
|
2185
|
-
});
|
|
2186
|
-
return /* @__PURE__ */ v.jsx(Qn, s({
|
|
2187
|
-
role: "menu",
|
|
2188
|
-
ref: E,
|
|
2189
|
-
className: d,
|
|
2190
|
-
onKeyDown: F,
|
|
2191
|
-
tabIndex: i ? 0 : -1
|
|
2192
|
-
}, R, {
|
|
2193
|
-
children: T
|
|
2194
|
-
}));
|
|
2195
|
-
});
|
|
2196
|
-
process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
2197
|
-
// ----------------------------- Warning --------------------------------
|
|
2198
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
2199
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
2200
|
-
// ----------------------------------------------------------------------
|
|
2201
|
-
/**
|
|
2202
|
-
* If `true`, will focus the `[role="menu"]` container and move into tab order.
|
|
2203
|
-
* @default false
|
|
2204
|
-
*/
|
|
2205
|
-
autoFocus: e.bool,
|
|
2206
|
-
/**
|
|
2207
|
-
* If `true`, will focus the first menuitem if `variant="menu"` or selected item
|
|
2208
|
-
* if `variant="selectedMenu"`.
|
|
2209
|
-
* @default false
|
|
2210
|
-
*/
|
|
2211
|
-
autoFocusItem: e.bool,
|
|
2212
|
-
/**
|
|
2213
|
-
* MenuList contents, normally `MenuItem`s.
|
|
2214
|
-
*/
|
|
2215
|
-
children: e.node,
|
|
2216
|
-
/**
|
|
2217
|
-
* @ignore
|
|
2218
|
-
*/
|
|
2219
|
-
className: e.string,
|
|
2220
|
-
/**
|
|
2221
|
-
* If `true`, will allow focus on disabled items.
|
|
2222
|
-
* @default false
|
|
2223
|
-
*/
|
|
2224
|
-
disabledItemsFocusable: e.bool,
|
|
2225
|
-
/**
|
|
2226
|
-
* If `true`, the menu items will not wrap focus.
|
|
2227
|
-
* @default false
|
|
2228
|
-
*/
|
|
2229
|
-
disableListWrap: e.bool,
|
|
2230
|
-
/**
|
|
2231
|
-
* @ignore
|
|
2232
|
-
*/
|
|
2233
|
-
onKeyDown: e.func,
|
|
2234
|
-
/**
|
|
2235
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus
|
|
2236
|
-
* and the vertical alignment relative to the anchor element.
|
|
2237
|
-
* @default 'selectedMenu'
|
|
2238
|
-
*/
|
|
2239
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2240
|
-
});
|
|
2241
|
-
const ot = zo;
|
|
2242
|
-
function nt(o) {
|
|
2243
|
-
return pe("MuiPopover", o);
|
|
2244
|
-
}
|
|
2245
|
-
fe("MuiPopover", ["root", "paper"]);
|
|
2246
|
-
const tt = ["onEntering"], rt = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
2247
|
-
function bo(o, n) {
|
|
2248
|
-
let t = 0;
|
|
2249
|
-
return typeof n == "number" ? t = n : n === "center" ? t = o.height / 2 : n === "bottom" && (t = o.height), t;
|
|
2250
|
-
}
|
|
2251
|
-
function ho(o, n) {
|
|
2252
|
-
let t = 0;
|
|
2253
|
-
return typeof n == "number" ? t = n : n === "center" ? t = o.width / 2 : n === "right" && (t = o.width), t;
|
|
2254
|
-
}
|
|
2255
|
-
function go(o) {
|
|
2256
|
-
return [o.horizontal, o.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
|
|
2257
|
-
}
|
|
2258
|
-
function We(o) {
|
|
2259
|
-
return typeof o == "function" ? o() : o;
|
|
2260
|
-
}
|
|
2261
|
-
const st = (o) => {
|
|
2262
|
-
const {
|
|
2263
|
-
classes: n
|
|
2264
|
-
} = o;
|
|
2265
|
-
return oe({
|
|
2266
|
-
root: ["root"],
|
|
2267
|
-
paper: ["paper"]
|
|
2268
|
-
}, nt, n);
|
|
2269
|
-
}, it = $(tn, {
|
|
2270
|
-
name: "MuiPopover",
|
|
2271
|
-
slot: "Root",
|
|
2272
|
-
overridesResolver: (o, n) => n.root
|
|
2273
|
-
})({}), lt = $(To, {
|
|
2274
|
-
name: "MuiPopover",
|
|
2275
|
-
slot: "Paper",
|
|
2276
|
-
overridesResolver: (o, n) => n.paper
|
|
2277
|
-
})({
|
|
2278
|
-
position: "absolute",
|
|
2279
|
-
overflowY: "auto",
|
|
2280
|
-
overflowX: "hidden",
|
|
2281
|
-
// So we see the popover when it's empty.
|
|
2282
|
-
// It's most likely on issue on userland.
|
|
2283
|
-
minWidth: 16,
|
|
2284
|
-
minHeight: 16,
|
|
2285
|
-
maxWidth: "calc(100% - 32px)",
|
|
2286
|
-
maxHeight: "calc(100% - 32px)",
|
|
2287
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
2288
|
-
outline: 0
|
|
2289
|
-
}), Wo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
2290
|
-
const r = te({
|
|
2291
|
-
props: n,
|
|
2292
|
-
name: "MuiPopover"
|
|
2293
|
-
}), {
|
|
2294
|
-
action: i,
|
|
2295
|
-
anchorEl: l,
|
|
2296
|
-
anchorOrigin: c = {
|
|
2297
|
-
vertical: "top",
|
|
2298
|
-
horizontal: "left"
|
|
2299
|
-
},
|
|
2300
|
-
anchorPosition: d,
|
|
2301
|
-
anchorReference: p = "anchorEl",
|
|
2302
|
-
children: u,
|
|
2303
|
-
className: h,
|
|
2304
|
-
container: O,
|
|
2305
|
-
elevation: R = 8,
|
|
2306
|
-
marginThreshold: f = 16,
|
|
2307
|
-
open: w,
|
|
2308
|
-
PaperProps: F = {},
|
|
2309
|
-
transformOrigin: E = {
|
|
2310
|
-
vertical: "top",
|
|
2311
|
-
horizontal: "left"
|
|
2312
|
-
},
|
|
2313
|
-
TransitionComponent: S = ln,
|
|
2314
|
-
transitionDuration: T = "auto",
|
|
2315
|
-
TransitionProps: {
|
|
2316
|
-
onEntering: b
|
|
2317
|
-
} = {}
|
|
2318
|
-
} = r, y = H(r.TransitionProps, tt), m = H(r, rt), C = a.useRef(), x = Ne(C, F.ref), I = s({}, r, {
|
|
2319
|
-
anchorOrigin: c,
|
|
2320
|
-
anchorReference: p,
|
|
2321
|
-
elevation: R,
|
|
2322
|
-
marginThreshold: f,
|
|
2323
|
-
PaperProps: F,
|
|
2324
|
-
transformOrigin: E,
|
|
2325
|
-
TransitionComponent: S,
|
|
2326
|
-
transitionDuration: T,
|
|
2327
|
-
TransitionProps: y
|
|
2328
|
-
}), A = st(I), k = a.useCallback(() => {
|
|
2329
|
-
if (p === "anchorPosition")
|
|
2330
|
-
return process.env.NODE_ENV !== "production" && (d || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), d;
|
|
2331
|
-
const N = We(l), L = N && N.nodeType === 1 ? N : Le(C.current).body, z = L.getBoundingClientRect();
|
|
2332
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2333
|
-
const G = L.getBoundingClientRect();
|
|
2334
|
-
process.env.NODE_ENV !== "test" && G.top === 0 && G.left === 0 && G.right === 0 && G.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
2335
|
-
`));
|
|
2336
|
-
}
|
|
2337
|
-
return {
|
|
2338
|
-
top: z.top + bo(z, c.vertical),
|
|
2339
|
-
left: z.left + ho(z, c.horizontal)
|
|
2340
|
-
};
|
|
2341
|
-
}, [l, c.horizontal, c.vertical, d, p]), B = a.useCallback((N) => ({
|
|
2342
|
-
vertical: bo(N, E.vertical),
|
|
2343
|
-
horizontal: ho(N, E.horizontal)
|
|
2344
|
-
}), [E.horizontal, E.vertical]), Y = a.useCallback((N) => {
|
|
2345
|
-
const L = {
|
|
2346
|
-
width: N.offsetWidth,
|
|
2347
|
-
height: N.offsetHeight
|
|
2348
|
-
}, z = B(L);
|
|
2349
|
-
if (p === "none")
|
|
2350
|
-
return {
|
|
2351
|
-
top: null,
|
|
2352
|
-
left: null,
|
|
2353
|
-
transformOrigin: go(z)
|
|
2354
|
-
};
|
|
2355
|
-
const G = k();
|
|
2356
|
-
let V = G.top - z.vertical, _ = G.left - z.horizontal;
|
|
2357
|
-
const Z = V + L.height, le = _ + L.width, me = Ae(We(l)), Q = me.innerHeight - f, re = me.innerWidth - f;
|
|
2358
|
-
if (V < f) {
|
|
2359
|
-
const P = V - f;
|
|
2360
|
-
V -= P, z.vertical += P;
|
|
2361
|
-
} else if (Z > Q) {
|
|
2362
|
-
const P = Z - Q;
|
|
2363
|
-
V -= P, z.vertical += P;
|
|
2364
|
-
}
|
|
2365
|
-
if (process.env.NODE_ENV !== "production" && L.height > Q && L.height && Q && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${L.height - Q}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
2366
|
-
`)), _ < f) {
|
|
2367
|
-
const P = _ - f;
|
|
2368
|
-
_ -= P, z.horizontal += P;
|
|
2369
|
-
} else if (le > re) {
|
|
2370
|
-
const P = le - re;
|
|
2371
|
-
_ -= P, z.horizontal += P;
|
|
2372
|
-
}
|
|
2373
|
-
return {
|
|
2374
|
-
top: `${Math.round(V)}px`,
|
|
2375
|
-
left: `${Math.round(_)}px`,
|
|
2376
|
-
transformOrigin: go(z)
|
|
2377
|
-
};
|
|
2378
|
-
}, [l, p, k, B, f]), [q, W] = a.useState(w), U = a.useCallback(() => {
|
|
2379
|
-
const N = C.current;
|
|
2380
|
-
if (!N)
|
|
2381
|
-
return;
|
|
2382
|
-
const L = Y(N);
|
|
2383
|
-
L.top !== null && (N.style.top = L.top), L.left !== null && (N.style.left = L.left), N.style.transformOrigin = L.transformOrigin, W(!0);
|
|
2384
|
-
}, [Y]), K = (N, L) => {
|
|
2385
|
-
b && b(N, L), U();
|
|
2386
|
-
}, M = () => {
|
|
2387
|
-
W(!1);
|
|
2388
|
-
};
|
|
2389
|
-
a.useEffect(() => {
|
|
2390
|
-
w && U();
|
|
2391
|
-
}), a.useImperativeHandle(i, () => w ? {
|
|
2392
|
-
updatePosition: () => {
|
|
2393
|
-
U();
|
|
2394
|
-
}
|
|
2395
|
-
} : null, [w, U]), a.useEffect(() => {
|
|
2396
|
-
if (!w)
|
|
2397
|
-
return;
|
|
2398
|
-
const N = wo(() => {
|
|
2399
|
-
U();
|
|
2400
|
-
}), L = Ae(l);
|
|
2401
|
-
return L.addEventListener("resize", N), () => {
|
|
2402
|
-
N.clear(), L.removeEventListener("resize", N);
|
|
2403
|
-
};
|
|
2404
|
-
}, [l, w, U]);
|
|
2405
|
-
let se = T;
|
|
2406
|
-
T === "auto" && !S.muiSupportAuto && (se = void 0);
|
|
2407
|
-
const ie = O || (l ? Le(We(l)).body : void 0);
|
|
2408
|
-
return /* @__PURE__ */ v.jsx(it, s({
|
|
2409
|
-
BackdropProps: {
|
|
2410
|
-
invisible: !0
|
|
2411
|
-
},
|
|
2412
|
-
className: ee(A.root, h),
|
|
2413
|
-
container: ie,
|
|
2414
|
-
open: w,
|
|
2415
|
-
ref: t,
|
|
2416
|
-
ownerState: I
|
|
2417
|
-
}, m, {
|
|
2418
|
-
children: /* @__PURE__ */ v.jsx(S, s({
|
|
2419
|
-
appear: !0,
|
|
2420
|
-
in: w,
|
|
2421
|
-
onEntering: K,
|
|
2422
|
-
onExited: M,
|
|
2423
|
-
timeout: se
|
|
2424
|
-
}, y, {
|
|
2425
|
-
children: /* @__PURE__ */ v.jsx(lt, s({
|
|
2426
|
-
elevation: R
|
|
2427
|
-
}, F, {
|
|
2428
|
-
ref: x,
|
|
2429
|
-
className: ee(A.paper, F.className)
|
|
2430
|
-
}, q ? void 0 : {
|
|
2431
|
-
style: s({}, F.style, {
|
|
2432
|
-
opacity: 0
|
|
2433
|
-
})
|
|
2434
|
-
}, {
|
|
2435
|
-
ownerState: I,
|
|
2436
|
-
children: u
|
|
2437
|
-
}))
|
|
2438
|
-
}))
|
|
2439
|
-
}));
|
|
2440
|
-
});
|
|
2441
|
-
process.env.NODE_ENV !== "production" && (Wo.propTypes = {
|
|
2442
|
-
// ----------------------------- Warning --------------------------------
|
|
2443
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
2444
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
2445
|
-
// ----------------------------------------------------------------------
|
|
2446
|
-
/**
|
|
2447
|
-
* A ref for imperative actions.
|
|
2448
|
-
* It currently only supports updatePosition() action.
|
|
2449
|
-
*/
|
|
2450
|
-
action: ge,
|
|
2451
|
-
/**
|
|
2452
|
-
* An HTML element, or a function that returns one.
|
|
2453
|
-
* It's used to set the position of the popover.
|
|
2454
|
-
*/
|
|
2455
|
-
anchorEl: sn(e.oneOfType([Xe, e.func]), (o) => {
|
|
2456
|
-
if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
|
|
2457
|
-
const n = We(o.anchorEl);
|
|
2458
|
-
if (n && n.nodeType === 1) {
|
|
2459
|
-
const t = n.getBoundingClientRect();
|
|
2460
|
-
if (process.env.NODE_ENV !== "test" && t.top === 0 && t.left === 0 && t.right === 0 && t.bottom === 0)
|
|
2461
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
2462
|
-
`));
|
|
2463
|
-
} else
|
|
2464
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element instance but it's \`${n}\` instead.`].join(`
|
|
2465
|
-
`));
|
|
2466
|
-
}
|
|
2467
|
-
return null;
|
|
2468
|
-
}),
|
|
2469
|
-
/**
|
|
2470
|
-
* This is the point on the anchor where the popover's
|
|
2471
|
-
* `anchorEl` will attach to. This is not used when the
|
|
2472
|
-
* anchorReference is 'anchorPosition'.
|
|
2473
|
-
*
|
|
2474
|
-
* Options:
|
|
2475
|
-
* vertical: [top, center, bottom];
|
|
2476
|
-
* horizontal: [left, center, right].
|
|
2477
|
-
* @default {
|
|
2478
|
-
* vertical: 'top',
|
|
2479
|
-
* horizontal: 'left',
|
|
2480
|
-
* }
|
|
2481
|
-
*/
|
|
2482
|
-
anchorOrigin: e.shape({
|
|
2483
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
2484
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
2485
|
-
}),
|
|
2486
|
-
/**
|
|
2487
|
-
* This is the position that may be used to set the position of the popover.
|
|
2488
|
-
* The coordinates are relative to the application's client area.
|
|
2489
|
-
*/
|
|
2490
|
-
anchorPosition: e.shape({
|
|
2491
|
-
left: e.number.isRequired,
|
|
2492
|
-
top: e.number.isRequired
|
|
2493
|
-
}),
|
|
2494
|
-
/**
|
|
2495
|
-
* This determines which anchor prop to refer to when setting
|
|
2496
|
-
* the position of the popover.
|
|
2497
|
-
* @default 'anchorEl'
|
|
2498
|
-
*/
|
|
2499
|
-
anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
|
|
2500
|
-
/**
|
|
2501
|
-
* The content of the component.
|
|
2502
|
-
*/
|
|
2503
|
-
children: e.node,
|
|
2504
|
-
/**
|
|
2505
|
-
* Override or extend the styles applied to the component.
|
|
2506
|
-
*/
|
|
2507
|
-
classes: e.object,
|
|
2508
|
-
/**
|
|
2509
|
-
* @ignore
|
|
2510
|
-
*/
|
|
2511
|
-
className: e.string,
|
|
2512
|
-
/**
|
|
2513
|
-
* An HTML element, component instance, or function that returns either.
|
|
2514
|
-
* The `container` will passed to the Modal component.
|
|
2515
|
-
*
|
|
2516
|
-
* By default, it uses the body of the anchorEl's top-level document object,
|
|
2517
|
-
* so it's simply `document.body` most of the time.
|
|
2518
|
-
*/
|
|
2519
|
-
container: e.oneOfType([Xe, e.func]),
|
|
2520
|
-
/**
|
|
2521
|
-
* The elevation of the popover.
|
|
2522
|
-
* @default 8
|
|
2523
|
-
*/
|
|
2524
|
-
elevation: rn,
|
|
2525
|
-
/**
|
|
2526
|
-
* Specifies how close to the edge of the window the popover can appear.
|
|
2527
|
-
* @default 16
|
|
2528
|
-
*/
|
|
2529
|
-
marginThreshold: e.number,
|
|
2530
|
-
/**
|
|
2531
|
-
* Callback fired when the component requests to be closed.
|
|
2532
|
-
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
2533
|
-
*/
|
|
2534
|
-
onClose: e.func,
|
|
2535
|
-
/**
|
|
2536
|
-
* If `true`, the component is shown.
|
|
2537
|
-
*/
|
|
2538
|
-
open: e.bool.isRequired,
|
|
2539
|
-
/**
|
|
2540
|
-
* Props applied to the [`Paper`](/material-ui/api/paper/) element.
|
|
2541
|
-
* @default {}
|
|
2542
|
-
*/
|
|
2543
|
-
PaperProps: e.shape({
|
|
2544
|
-
component: Ro
|
|
2545
|
-
}),
|
|
2546
|
-
/**
|
|
2547
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2548
|
-
*/
|
|
2549
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2550
|
-
/**
|
|
2551
|
-
* This is the point on the popover which
|
|
2552
|
-
* will attach to the anchor's origin.
|
|
2553
|
-
*
|
|
2554
|
-
* Options:
|
|
2555
|
-
* vertical: [top, center, bottom, x(px)];
|
|
2556
|
-
* horizontal: [left, center, right, x(px)].
|
|
2557
|
-
* @default {
|
|
2558
|
-
* vertical: 'top',
|
|
2559
|
-
* horizontal: 'left',
|
|
2560
|
-
* }
|
|
2561
|
-
*/
|
|
2562
|
-
transformOrigin: e.shape({
|
|
2563
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
2564
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
2565
|
-
}),
|
|
2566
|
-
/**
|
|
2567
|
-
* The component used for the transition.
|
|
2568
|
-
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
2569
|
-
* @default Grow
|
|
2570
|
-
*/
|
|
2571
|
-
TransitionComponent: e.elementType,
|
|
2572
|
-
/**
|
|
2573
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
2574
|
-
* @default 'auto'
|
|
2575
|
-
*/
|
|
2576
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
2577
|
-
appear: e.number,
|
|
2578
|
-
enter: e.number,
|
|
2579
|
-
exit: e.number
|
|
2580
|
-
})]),
|
|
2581
|
-
/**
|
|
2582
|
-
* Props applied to the transition element.
|
|
2583
|
-
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
2584
|
-
* @default {}
|
|
2585
|
-
*/
|
|
2586
|
-
TransitionProps: e.object
|
|
2587
|
-
});
|
|
2588
|
-
const at = Wo;
|
|
2589
|
-
function ct(o) {
|
|
2590
|
-
return pe("MuiMenu", o);
|
|
2591
|
-
}
|
|
2592
|
-
fe("MuiMenu", ["root", "paper", "list"]);
|
|
2593
|
-
const dt = ["onEntering"], ut = ["autoFocus", "children", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"], pt = {
|
|
2594
|
-
vertical: "top",
|
|
2595
|
-
horizontal: "right"
|
|
2596
|
-
}, ft = {
|
|
2597
|
-
vertical: "top",
|
|
2598
|
-
horizontal: "left"
|
|
2599
|
-
}, mt = (o) => {
|
|
2600
|
-
const {
|
|
2601
|
-
classes: n
|
|
2602
|
-
} = o;
|
|
2603
|
-
return oe({
|
|
2604
|
-
root: ["root"],
|
|
2605
|
-
paper: ["paper"],
|
|
2606
|
-
list: ["list"]
|
|
2607
|
-
}, ct, n);
|
|
2608
|
-
}, bt = $(at, {
|
|
2609
|
-
shouldForwardProp: (o) => Oe(o) || o === "classes",
|
|
2610
|
-
name: "MuiMenu",
|
|
2611
|
-
slot: "Root",
|
|
2612
|
-
overridesResolver: (o, n) => n.root
|
|
2613
|
-
})({}), ht = $(To, {
|
|
2614
|
-
name: "MuiMenu",
|
|
2615
|
-
slot: "Paper",
|
|
2616
|
-
overridesResolver: (o, n) => n.paper
|
|
2617
|
-
})({
|
|
2618
|
-
// specZ: The maximum height of a simple menu should be one or more rows less than the view
|
|
2619
|
-
// height. This ensures a tappable area outside of the simple menu with which to dismiss
|
|
2620
|
-
// the menu.
|
|
2621
|
-
maxHeight: "calc(100% - 96px)",
|
|
2622
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
2623
|
-
WebkitOverflowScrolling: "touch"
|
|
2624
|
-
}), gt = $(ot, {
|
|
2625
|
-
name: "MuiMenu",
|
|
2626
|
-
slot: "List",
|
|
2627
|
-
overridesResolver: (o, n) => n.list
|
|
2628
|
-
})({
|
|
2629
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
2630
|
-
outline: 0
|
|
2631
|
-
}), Ao = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
2632
|
-
const r = te({
|
|
2633
|
-
props: n,
|
|
2634
|
-
name: "MuiMenu"
|
|
2635
|
-
}), {
|
|
2636
|
-
autoFocus: i = !0,
|
|
2637
|
-
children: l,
|
|
2638
|
-
disableAutoFocusItem: c = !1,
|
|
2639
|
-
MenuListProps: d = {},
|
|
2640
|
-
onClose: p,
|
|
2641
|
-
open: u,
|
|
2642
|
-
PaperProps: h = {},
|
|
2643
|
-
PopoverClasses: O,
|
|
2644
|
-
transitionDuration: R = "auto",
|
|
2645
|
-
TransitionProps: {
|
|
2646
|
-
onEntering: f
|
|
2647
|
-
} = {},
|
|
2648
|
-
variant: w = "selectedMenu"
|
|
2649
|
-
} = r, F = H(r.TransitionProps, dt), E = H(r, ut), S = on(), T = S.direction === "rtl", b = s({}, r, {
|
|
2650
|
-
autoFocus: i,
|
|
2651
|
-
disableAutoFocusItem: c,
|
|
2652
|
-
MenuListProps: d,
|
|
2653
|
-
onEntering: f,
|
|
2654
|
-
PaperProps: h,
|
|
2655
|
-
transitionDuration: R,
|
|
2656
|
-
TransitionProps: F,
|
|
2657
|
-
variant: w
|
|
2658
|
-
}), y = mt(b), m = i && !c && u, C = a.useRef(null), x = (k, B) => {
|
|
2659
|
-
C.current && C.current.adjustStyleForScrollbar(k, S), f && f(k, B);
|
|
2660
|
-
}, I = (k) => {
|
|
2661
|
-
k.key === "Tab" && (k.preventDefault(), p && p(k, "tabKeyDown"));
|
|
2662
|
-
};
|
|
2663
|
-
let A = -1;
|
|
2664
|
-
return a.Children.map(l, (k, B) => {
|
|
2665
|
-
/* @__PURE__ */ a.isValidElement(k) && (process.env.NODE_ENV !== "production" && Je.isFragment(k) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2666
|
-
`)), k.props.disabled || (w === "selectedMenu" && k.props.selected || A === -1) && (A = B));
|
|
2667
|
-
}), /* @__PURE__ */ v.jsx(bt, s({
|
|
2668
|
-
onClose: p,
|
|
2669
|
-
anchorOrigin: {
|
|
2670
|
-
vertical: "bottom",
|
|
2671
|
-
horizontal: T ? "right" : "left"
|
|
2672
|
-
},
|
|
2673
|
-
transformOrigin: T ? pt : ft,
|
|
2674
|
-
PaperProps: s({
|
|
2675
|
-
as: ht
|
|
2676
|
-
}, h, {
|
|
2677
|
-
classes: s({}, h.classes, {
|
|
2678
|
-
root: y.paper
|
|
2679
|
-
})
|
|
2680
|
-
}),
|
|
2681
|
-
className: y.root,
|
|
2682
|
-
open: u,
|
|
2683
|
-
ref: t,
|
|
2684
|
-
transitionDuration: R,
|
|
2685
|
-
TransitionProps: s({
|
|
2686
|
-
onEntering: x
|
|
2687
|
-
}, F),
|
|
2688
|
-
ownerState: b
|
|
2689
|
-
}, E, {
|
|
2690
|
-
classes: O,
|
|
2691
|
-
children: /* @__PURE__ */ v.jsx(gt, s({
|
|
2692
|
-
onKeyDown: I,
|
|
2693
|
-
actions: C,
|
|
2694
|
-
autoFocus: i && (A === -1 || c),
|
|
2695
|
-
autoFocusItem: m,
|
|
2696
|
-
variant: w
|
|
2697
|
-
}, d, {
|
|
2698
|
-
className: ee(y.list, d.className),
|
|
2699
|
-
children: l
|
|
2700
|
-
}))
|
|
2701
|
-
}));
|
|
2702
|
-
});
|
|
2703
|
-
process.env.NODE_ENV !== "production" && (Ao.propTypes = {
|
|
2704
|
-
// ----------------------------- Warning --------------------------------
|
|
2705
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
2706
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
2707
|
-
// ----------------------------------------------------------------------
|
|
2708
|
-
/**
|
|
2709
|
-
* An HTML element, or a function that returns one.
|
|
2710
|
-
* It's used to set the position of the menu.
|
|
2711
|
-
*/
|
|
2712
|
-
anchorEl: e.oneOfType([Xe, e.func]),
|
|
2713
|
-
/**
|
|
2714
|
-
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
2715
|
-
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
2716
|
-
* on the parent modal container. This has severe accessibility implications
|
|
2717
|
-
* and should only be considered if you manage focus otherwise.
|
|
2718
|
-
* @default true
|
|
2719
|
-
*/
|
|
2720
|
-
autoFocus: e.bool,
|
|
2721
|
-
/**
|
|
2722
|
-
* Menu contents, normally `MenuItem`s.
|
|
2723
|
-
*/
|
|
2724
|
-
children: e.node,
|
|
2725
|
-
/**
|
|
2726
|
-
* Override or extend the styles applied to the component.
|
|
2727
|
-
*/
|
|
2728
|
-
classes: e.object,
|
|
2729
|
-
/**
|
|
2730
|
-
* When opening the menu will not focus the active item but the `[role="menu"]`
|
|
2731
|
-
* unless `autoFocus` is also set to `false`. Not using the default means not
|
|
2732
|
-
* following WAI-ARIA authoring practices. Please be considerate about possible
|
|
2733
|
-
* accessibility implications.
|
|
2734
|
-
* @default false
|
|
2735
|
-
*/
|
|
2736
|
-
disableAutoFocusItem: e.bool,
|
|
2737
|
-
/**
|
|
2738
|
-
* Props applied to the [`MenuList`](/material-ui/api/menu-list/) element.
|
|
2739
|
-
* @default {}
|
|
2740
|
-
*/
|
|
2741
|
-
MenuListProps: e.object,
|
|
2742
|
-
/**
|
|
2743
|
-
* Callback fired when the component requests to be closed.
|
|
2744
|
-
*
|
|
2745
|
-
* @param {object} event The event source of the callback.
|
|
2746
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
|
|
2747
|
-
*/
|
|
2748
|
-
onClose: e.func,
|
|
2749
|
-
/**
|
|
2750
|
-
* If `true`, the component is shown.
|
|
2751
|
-
*/
|
|
2752
|
-
open: e.bool.isRequired,
|
|
2753
|
-
/**
|
|
2754
|
-
* @ignore
|
|
2755
|
-
*/
|
|
2756
|
-
PaperProps: e.object,
|
|
2757
|
-
/**
|
|
2758
|
-
* `classes` prop applied to the [`Popover`](/material-ui/api/popover/) element.
|
|
2759
|
-
*/
|
|
2760
|
-
PopoverClasses: e.object,
|
|
2761
|
-
/**
|
|
2762
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2763
|
-
*/
|
|
2764
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2765
|
-
/**
|
|
2766
|
-
* The length of the transition in `ms`, or 'auto'
|
|
2767
|
-
* @default 'auto'
|
|
2768
|
-
*/
|
|
2769
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
2770
|
-
appear: e.number,
|
|
2771
|
-
enter: e.number,
|
|
2772
|
-
exit: e.number
|
|
2773
|
-
})]),
|
|
2774
|
-
/**
|
|
2775
|
-
* Props applied to the transition element.
|
|
2776
|
-
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
2777
|
-
* @default {}
|
|
2778
|
-
*/
|
|
2779
|
-
TransitionProps: e.object,
|
|
2780
|
-
/**
|
|
2781
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus.
|
|
2782
|
-
* @default 'selectedMenu'
|
|
2783
|
-
*/
|
|
2784
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2785
|
-
});
|
|
2786
|
-
const vt = Ao;
|
|
2787
|
-
function yt(o) {
|
|
2788
|
-
return pe("MuiNativeSelect", o);
|
|
2789
|
-
}
|
|
2790
|
-
const xt = fe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), to = xt, Ot = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"], Ct = (o) => {
|
|
2791
|
-
const {
|
|
2792
|
-
classes: n,
|
|
2793
|
-
variant: t,
|
|
2794
|
-
disabled: r,
|
|
2795
|
-
multiple: i,
|
|
2796
|
-
open: l,
|
|
2797
|
-
error: c
|
|
2798
|
-
} = o, d = {
|
|
2799
|
-
select: ["select", t, r && "disabled", i && "multiple", c && "error"],
|
|
2800
|
-
icon: ["icon", `icon${ue(t)}`, l && "iconOpen", r && "disabled"]
|
|
2801
|
-
};
|
|
2802
|
-
return oe(d, yt, n);
|
|
2803
|
-
}, _o = ({
|
|
2804
|
-
ownerState: o,
|
|
2805
|
-
theme: n
|
|
2806
|
-
}) => s({
|
|
2807
|
-
MozAppearance: "none",
|
|
2808
|
-
// Reset
|
|
2809
|
-
WebkitAppearance: "none",
|
|
2810
|
-
// Reset
|
|
2811
|
-
// When interacting quickly, the text can end up selected.
|
|
2812
|
-
// Native select can't be selected either.
|
|
2813
|
-
userSelect: "none",
|
|
2814
|
-
borderRadius: 0,
|
|
2815
|
-
// Reset
|
|
2816
|
-
cursor: "pointer",
|
|
2817
|
-
"&:focus": s({}, n.vars ? {
|
|
2818
|
-
backgroundColor: `rgba(${n.vars.palette.common.onBackgroundChannel} / 0.05)`
|
|
2819
|
-
} : {
|
|
2820
|
-
backgroundColor: n.palette.mode === "light" ? "rgba(0, 0, 0, 0.05)" : "rgba(255, 255, 255, 0.05)"
|
|
2821
|
-
}, {
|
|
2822
|
-
borderRadius: 0
|
|
2823
|
-
// Reset Chrome style
|
|
2824
|
-
}),
|
|
2825
|
-
// Remove IE11 arrow
|
|
2826
|
-
"&::-ms-expand": {
|
|
2827
|
-
display: "none"
|
|
2828
|
-
},
|
|
2829
|
-
[`&.${to.disabled}`]: {
|
|
2830
|
-
cursor: "default"
|
|
2831
|
-
},
|
|
2832
|
-
"&[multiple]": {
|
|
2833
|
-
height: "auto"
|
|
2834
|
-
},
|
|
2835
|
-
"&:not([multiple]) option, &:not([multiple]) optgroup": {
|
|
2836
|
-
backgroundColor: (n.vars || n).palette.background.paper
|
|
2837
|
-
},
|
|
2838
|
-
// Bump specificity to allow extending custom inputs
|
|
2839
|
-
"&&&": {
|
|
2840
|
-
paddingRight: 24,
|
|
2841
|
-
minWidth: 16
|
|
2842
|
-
// So it doesn't collapse.
|
|
2843
|
-
}
|
|
2844
|
-
}, o.variant === "filled" && {
|
|
2845
|
-
"&&&": {
|
|
2846
|
-
paddingRight: 32
|
|
2847
|
-
}
|
|
2848
|
-
}, o.variant === "outlined" && {
|
|
2849
|
-
borderRadius: (n.vars || n).shape.borderRadius,
|
|
2850
|
-
"&:focus": {
|
|
2851
|
-
borderRadius: (n.vars || n).shape.borderRadius
|
|
2852
|
-
// Reset the reset for Chrome style
|
|
2853
|
-
},
|
|
2854
|
-
"&&&": {
|
|
2855
|
-
paddingRight: 32
|
|
2856
|
-
}
|
|
2857
|
-
}), Tt = $("select", {
|
|
2858
|
-
name: "MuiNativeSelect",
|
|
2859
|
-
slot: "Select",
|
|
2860
|
-
shouldForwardProp: Oe,
|
|
2861
|
-
overridesResolver: (o, n) => {
|
|
2862
|
-
const {
|
|
2863
|
-
ownerState: t
|
|
2864
|
-
} = o;
|
|
2865
|
-
return [n.select, n[t.variant], t.error && n.error, {
|
|
2866
|
-
[`&.${to.multiple}`]: n.multiple
|
|
2867
|
-
}];
|
|
2868
|
-
}
|
|
2869
|
-
})(_o), Bo = ({
|
|
2870
|
-
ownerState: o,
|
|
2871
|
-
theme: n
|
|
2872
|
-
}) => s({
|
|
2873
|
-
// We use a position absolute over a flexbox in order to forward the pointer events
|
|
2874
|
-
// to the input and to support wrapping tags..
|
|
2875
|
-
position: "absolute",
|
|
2876
|
-
right: 0,
|
|
2877
|
-
top: "calc(50% - .5em)",
|
|
2878
|
-
// Center vertically, height is 1em
|
|
2879
|
-
pointerEvents: "none",
|
|
2880
|
-
// Don't block pointer events on the select under the icon.
|
|
2881
|
-
color: (n.vars || n).palette.action.active,
|
|
2882
|
-
[`&.${to.disabled}`]: {
|
|
2883
|
-
color: (n.vars || n).palette.action.disabled
|
|
2884
|
-
}
|
|
2885
|
-
}, o.open && {
|
|
2886
|
-
transform: "rotate(180deg)"
|
|
2887
|
-
}, o.variant === "filled" && {
|
|
2888
|
-
right: 7
|
|
2889
|
-
}, o.variant === "outlined" && {
|
|
2890
|
-
right: 7
|
|
2891
|
-
}), Rt = $("svg", {
|
|
2892
|
-
name: "MuiNativeSelect",
|
|
2893
|
-
slot: "Icon",
|
|
2894
|
-
overridesResolver: (o, n) => {
|
|
2895
|
-
const {
|
|
2896
|
-
ownerState: t
|
|
2897
|
-
} = o;
|
|
2898
|
-
return [n.icon, t.variant && n[`icon${ue(t.variant)}`], t.open && n.iconOpen];
|
|
2899
|
-
}
|
|
2900
|
-
})(Bo), Uo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
2901
|
-
const {
|
|
2902
|
-
className: r,
|
|
2903
|
-
disabled: i,
|
|
2904
|
-
error: l,
|
|
2905
|
-
IconComponent: c,
|
|
2906
|
-
inputRef: d,
|
|
2907
|
-
variant: p = "standard"
|
|
2908
|
-
} = n, u = H(n, Ot), h = s({}, n, {
|
|
2909
|
-
disabled: i,
|
|
2910
|
-
variant: p,
|
|
2911
|
-
error: l
|
|
2912
|
-
}), O = Ct(h);
|
|
2913
|
-
return /* @__PURE__ */ v.jsxs(a.Fragment, {
|
|
2914
|
-
children: [/* @__PURE__ */ v.jsx(Tt, s({
|
|
2915
|
-
ownerState: h,
|
|
2916
|
-
className: ee(O.select, r),
|
|
2917
|
-
disabled: i,
|
|
2918
|
-
ref: d || t
|
|
2919
|
-
}, u)), n.multiple ? null : /* @__PURE__ */ v.jsx(Rt, {
|
|
2920
|
-
as: c,
|
|
2921
|
-
ownerState: h,
|
|
2922
|
-
className: O.icon
|
|
2923
|
-
})]
|
|
2924
|
-
});
|
|
2925
|
-
});
|
|
2926
|
-
process.env.NODE_ENV !== "production" && (Uo.propTypes = {
|
|
2927
|
-
/**
|
|
2928
|
-
* The option elements to populate the select with.
|
|
2929
|
-
* Can be some `<option>` elements.
|
|
2930
|
-
*/
|
|
2931
|
-
children: e.node,
|
|
2932
|
-
/**
|
|
2933
|
-
* Override or extend the styles applied to the component.
|
|
2934
|
-
* See [CSS API](#css) below for more details.
|
|
2935
|
-
*/
|
|
2936
|
-
classes: e.object,
|
|
2937
|
-
/**
|
|
2938
|
-
* The CSS class name of the select element.
|
|
2939
|
-
*/
|
|
2940
|
-
className: e.string,
|
|
2941
|
-
/**
|
|
2942
|
-
* If `true`, the select is disabled.
|
|
2943
|
-
*/
|
|
2944
|
-
disabled: e.bool,
|
|
2945
|
-
/**
|
|
2946
|
-
* If `true`, the `select input` will indicate an error.
|
|
2947
|
-
*/
|
|
2948
|
-
error: e.bool,
|
|
2949
|
-
/**
|
|
2950
|
-
* The icon that displays the arrow.
|
|
2951
|
-
*/
|
|
2952
|
-
IconComponent: e.elementType.isRequired,
|
|
2953
|
-
/**
|
|
2954
|
-
* Use that prop to pass a ref to the native select element.
|
|
2955
|
-
* @deprecated
|
|
2956
|
-
*/
|
|
2957
|
-
inputRef: ge,
|
|
2958
|
-
/**
|
|
2959
|
-
* @ignore
|
|
2960
|
-
*/
|
|
2961
|
-
multiple: e.bool,
|
|
2962
|
-
/**
|
|
2963
|
-
* Name attribute of the `select` or hidden `input` element.
|
|
2964
|
-
*/
|
|
2965
|
-
name: e.string,
|
|
2966
|
-
/**
|
|
2967
|
-
* Callback fired when a menu item is selected.
|
|
2968
|
-
*
|
|
2969
|
-
* @param {object} event The event source of the callback.
|
|
2970
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
2971
|
-
*/
|
|
2972
|
-
onChange: e.func,
|
|
2973
|
-
/**
|
|
2974
|
-
* The input value.
|
|
2975
|
-
*/
|
|
2976
|
-
value: e.any,
|
|
2977
|
-
/**
|
|
2978
|
-
* The variant to use.
|
|
2979
|
-
*/
|
|
2980
|
-
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
2981
|
-
});
|
|
2982
|
-
const wt = Uo;
|
|
2983
|
-
var vo;
|
|
2984
|
-
const It = ["children", "classes", "className", "label", "notched"], Pt = $("fieldset")({
|
|
2985
|
-
textAlign: "left",
|
|
2986
|
-
position: "absolute",
|
|
2987
|
-
bottom: 0,
|
|
2988
|
-
right: 0,
|
|
2989
|
-
top: -5,
|
|
2990
|
-
left: 0,
|
|
2991
|
-
margin: 0,
|
|
2992
|
-
padding: "0 8px",
|
|
2993
|
-
pointerEvents: "none",
|
|
2994
|
-
borderRadius: "inherit",
|
|
2995
|
-
borderStyle: "solid",
|
|
2996
|
-
borderWidth: 1,
|
|
2997
|
-
overflow: "hidden",
|
|
2998
|
-
minWidth: "0%"
|
|
2999
|
-
}), St = $("legend")(({
|
|
3000
|
-
ownerState: o,
|
|
3001
|
-
theme: n
|
|
3002
|
-
}) => s({
|
|
3003
|
-
float: "unset",
|
|
3004
|
-
// Fix conflict with bootstrap
|
|
3005
|
-
width: "auto",
|
|
3006
|
-
// Fix conflict with bootstrap
|
|
3007
|
-
overflow: "hidden"
|
|
3008
|
-
}, !o.withLabel && {
|
|
3009
|
-
padding: 0,
|
|
3010
|
-
lineHeight: "11px",
|
|
3011
|
-
// sync with `height` in `legend` styles
|
|
3012
|
-
transition: n.transitions.create("width", {
|
|
3013
|
-
duration: 150,
|
|
3014
|
-
easing: n.transitions.easing.easeOut
|
|
3015
|
-
})
|
|
3016
|
-
}, o.withLabel && s({
|
|
3017
|
-
display: "block",
|
|
3018
|
-
// Fix conflict with normalize.css and sanitize.css
|
|
3019
|
-
padding: 0,
|
|
3020
|
-
height: 11,
|
|
3021
|
-
// sync with `lineHeight` in `legend` styles
|
|
3022
|
-
fontSize: "0.75em",
|
|
3023
|
-
visibility: "hidden",
|
|
3024
|
-
maxWidth: 0.01,
|
|
3025
|
-
transition: n.transitions.create("max-width", {
|
|
3026
|
-
duration: 50,
|
|
3027
|
-
easing: n.transitions.easing.easeOut
|
|
3028
|
-
}),
|
|
3029
|
-
whiteSpace: "nowrap",
|
|
3030
|
-
"& > span": {
|
|
3031
|
-
paddingLeft: 5,
|
|
3032
|
-
paddingRight: 5,
|
|
3033
|
-
display: "inline-block",
|
|
3034
|
-
opacity: 0,
|
|
3035
|
-
visibility: "visible"
|
|
3036
|
-
}
|
|
3037
|
-
}, o.notched && {
|
|
3038
|
-
maxWidth: "100%",
|
|
3039
|
-
transition: n.transitions.create("max-width", {
|
|
3040
|
-
duration: 100,
|
|
3041
|
-
easing: n.transitions.easing.easeOut,
|
|
3042
|
-
delay: 50
|
|
3043
|
-
})
|
|
3044
|
-
})));
|
|
3045
|
-
function Vo(o) {
|
|
3046
|
-
const {
|
|
3047
|
-
className: n,
|
|
3048
|
-
label: t,
|
|
3049
|
-
notched: r
|
|
3050
|
-
} = o, i = H(o, It), l = t != null && t !== "", c = s({}, o, {
|
|
3051
|
-
notched: r,
|
|
3052
|
-
withLabel: l
|
|
3053
|
-
});
|
|
3054
|
-
return /* @__PURE__ */ v.jsx(Pt, s({
|
|
3055
|
-
"aria-hidden": !0,
|
|
3056
|
-
className: n,
|
|
3057
|
-
ownerState: c
|
|
3058
|
-
}, i, {
|
|
3059
|
-
children: /* @__PURE__ */ v.jsx(St, {
|
|
3060
|
-
ownerState: c,
|
|
3061
|
-
children: l ? /* @__PURE__ */ v.jsx("span", {
|
|
3062
|
-
children: t
|
|
3063
|
-
}) : (
|
|
3064
|
-
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
3065
|
-
vo || (vo = /* @__PURE__ */ v.jsx("span", {
|
|
3066
|
-
className: "notranslate",
|
|
3067
|
-
children: ""
|
|
3068
|
-
}))
|
|
3069
|
-
)
|
|
3070
|
-
})
|
|
3071
|
-
}));
|
|
3072
|
-
}
|
|
3073
|
-
process.env.NODE_ENV !== "production" && (Vo.propTypes = {
|
|
3074
|
-
/**
|
|
3075
|
-
* The content of the component.
|
|
3076
|
-
*/
|
|
3077
|
-
children: e.node,
|
|
3078
|
-
/**
|
|
3079
|
-
* Override or extend the styles applied to the component.
|
|
3080
|
-
* See [CSS API](#css) below for more details.
|
|
3081
|
-
*/
|
|
3082
|
-
classes: e.object,
|
|
3083
|
-
/**
|
|
3084
|
-
* @ignore
|
|
3085
|
-
*/
|
|
3086
|
-
className: e.string,
|
|
3087
|
-
/**
|
|
3088
|
-
* The label.
|
|
3089
|
-
*/
|
|
3090
|
-
label: e.node,
|
|
3091
|
-
/**
|
|
3092
|
-
* If `true`, the outline is notched to accommodate the label.
|
|
3093
|
-
*/
|
|
3094
|
-
notched: e.bool.isRequired,
|
|
3095
|
-
/**
|
|
3096
|
-
* @ignore
|
|
3097
|
-
*/
|
|
3098
|
-
style: e.object
|
|
3099
|
-
});
|
|
3100
|
-
const Et = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"], Nt = (o) => {
|
|
3101
|
-
const {
|
|
3102
|
-
classes: n
|
|
3103
|
-
} = o, r = oe({
|
|
3104
|
-
root: ["root"],
|
|
3105
|
-
notchedOutline: ["notchedOutline"],
|
|
3106
|
-
input: ["input"]
|
|
3107
|
-
}, pn, n);
|
|
3108
|
-
return s({}, n, r);
|
|
3109
|
-
}, Ft = $(Ue, {
|
|
3110
|
-
shouldForwardProp: (o) => Oe(o) || o === "classes",
|
|
3111
|
-
name: "MuiOutlinedInput",
|
|
3112
|
-
slot: "Root",
|
|
3113
|
-
overridesResolver: _e
|
|
3114
|
-
})(({
|
|
3115
|
-
theme: o,
|
|
3116
|
-
ownerState: n
|
|
3117
|
-
}) => {
|
|
3118
|
-
const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
3119
|
-
return s({
|
|
3120
|
-
position: "relative",
|
|
3121
|
-
borderRadius: (o.vars || o).shape.borderRadius,
|
|
3122
|
-
[`&:hover .${he.notchedOutline}`]: {
|
|
3123
|
-
borderColor: (o.vars || o).palette.text.primary
|
|
3124
|
-
},
|
|
3125
|
-
// Reset on touch devices, it doesn't add specificity
|
|
3126
|
-
"@media (hover: none)": {
|
|
3127
|
-
[`&:hover .${he.notchedOutline}`]: {
|
|
3128
|
-
borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
|
|
3129
|
-
}
|
|
3130
|
-
},
|
|
3131
|
-
[`&.${he.focused} .${he.notchedOutline}`]: {
|
|
3132
|
-
borderColor: (o.vars || o).palette[n.color].main,
|
|
3133
|
-
borderWidth: 2
|
|
3134
|
-
},
|
|
3135
|
-
[`&.${he.error} .${he.notchedOutline}`]: {
|
|
3136
|
-
borderColor: (o.vars || o).palette.error.main
|
|
3137
|
-
},
|
|
3138
|
-
[`&.${he.disabled} .${he.notchedOutline}`]: {
|
|
3139
|
-
borderColor: (o.vars || o).palette.action.disabled
|
|
3140
|
-
}
|
|
3141
|
-
}, n.startAdornment && {
|
|
3142
|
-
paddingLeft: 14
|
|
3143
|
-
}, n.endAdornment && {
|
|
3144
|
-
paddingRight: 14
|
|
3145
|
-
}, n.multiline && s({
|
|
3146
|
-
padding: "16.5px 14px"
|
|
3147
|
-
}, n.size === "small" && {
|
|
3148
|
-
padding: "8.5px 14px"
|
|
3149
|
-
}));
|
|
3150
|
-
}), Mt = $(Vo, {
|
|
3151
|
-
name: "MuiOutlinedInput",
|
|
3152
|
-
slot: "NotchedOutline",
|
|
3153
|
-
overridesResolver: (o, n) => n.notchedOutline
|
|
3154
|
-
})(({
|
|
3155
|
-
theme: o
|
|
3156
|
-
}) => {
|
|
3157
|
-
const n = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
3158
|
-
return {
|
|
3159
|
-
borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : n
|
|
3160
|
-
};
|
|
3161
|
-
}), jt = $(Ve, {
|
|
3162
|
-
name: "MuiOutlinedInput",
|
|
3163
|
-
slot: "Input",
|
|
3164
|
-
overridesResolver: Be
|
|
3165
|
-
})(({
|
|
3166
|
-
theme: o,
|
|
3167
|
-
ownerState: n
|
|
3168
|
-
}) => s({
|
|
3169
|
-
padding: "16.5px 14px"
|
|
3170
|
-
}, !o.vars && {
|
|
3171
|
-
"&:-webkit-autofill": {
|
|
3172
|
-
WebkitBoxShadow: o.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
|
|
3173
|
-
WebkitTextFillColor: o.palette.mode === "light" ? null : "#fff",
|
|
3174
|
-
caretColor: o.palette.mode === "light" ? null : "#fff",
|
|
3175
|
-
borderRadius: "inherit"
|
|
3176
|
-
}
|
|
3177
|
-
}, o.vars && {
|
|
3178
|
-
"&:-webkit-autofill": {
|
|
3179
|
-
borderRadius: "inherit"
|
|
3180
|
-
},
|
|
3181
|
-
[o.getColorSchemeSelector("dark")]: {
|
|
3182
|
-
"&:-webkit-autofill": {
|
|
3183
|
-
WebkitBoxShadow: "0 0 0 100px #266798 inset",
|
|
3184
|
-
WebkitTextFillColor: "#fff",
|
|
3185
|
-
caretColor: "#fff"
|
|
3186
|
-
}
|
|
3187
|
-
}
|
|
3188
|
-
}, n.size === "small" && {
|
|
3189
|
-
padding: "8.5px 14px"
|
|
3190
|
-
}, n.multiline && {
|
|
3191
|
-
padding: 0
|
|
3192
|
-
}, n.startAdornment && {
|
|
3193
|
-
paddingLeft: 0
|
|
3194
|
-
}, n.endAdornment && {
|
|
3195
|
-
paddingRight: 0
|
|
3196
|
-
})), ro = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
3197
|
-
var r, i, l, c, d;
|
|
3198
|
-
const p = te({
|
|
3199
|
-
props: n,
|
|
3200
|
-
name: "MuiOutlinedInput"
|
|
3201
|
-
}), {
|
|
3202
|
-
components: u = {},
|
|
3203
|
-
fullWidth: h = !1,
|
|
3204
|
-
inputComponent: O = "input",
|
|
3205
|
-
label: R,
|
|
3206
|
-
multiline: f = !1,
|
|
3207
|
-
notched: w,
|
|
3208
|
-
slots: F = {},
|
|
3209
|
-
type: E = "text"
|
|
3210
|
-
} = p, S = H(p, Et), T = Nt(p), b = Ee(), y = Se({
|
|
3211
|
-
props: p,
|
|
3212
|
-
muiFormControl: b,
|
|
3213
|
-
states: ["required"]
|
|
3214
|
-
}), m = s({}, p, {
|
|
3215
|
-
color: y.color || "primary",
|
|
3216
|
-
disabled: y.disabled,
|
|
3217
|
-
error: y.error,
|
|
3218
|
-
focused: y.focused,
|
|
3219
|
-
formControl: b,
|
|
3220
|
-
fullWidth: h,
|
|
3221
|
-
hiddenLabel: y.hiddenLabel,
|
|
3222
|
-
multiline: f,
|
|
3223
|
-
size: y.size,
|
|
3224
|
-
type: E
|
|
3225
|
-
}), C = (r = (i = F.root) != null ? i : u.Root) != null ? r : Ft, x = (l = (c = F.input) != null ? c : u.Input) != null ? l : jt;
|
|
3226
|
-
return /* @__PURE__ */ v.jsx(eo, s({
|
|
3227
|
-
slots: {
|
|
3228
|
-
root: C,
|
|
3229
|
-
input: x
|
|
3230
|
-
},
|
|
3231
|
-
renderSuffix: (I) => /* @__PURE__ */ v.jsx(Mt, {
|
|
3232
|
-
ownerState: m,
|
|
3233
|
-
className: T.notchedOutline,
|
|
3234
|
-
label: R != null && R !== "" && y.required ? d || (d = /* @__PURE__ */ v.jsxs(a.Fragment, {
|
|
3235
|
-
children: [R, " ", "*"]
|
|
3236
|
-
})) : R,
|
|
3237
|
-
notched: typeof w < "u" ? w : !!(I.startAdornment || I.filled || I.focused)
|
|
3238
|
-
}),
|
|
3239
|
-
fullWidth: h,
|
|
3240
|
-
inputComponent: O,
|
|
3241
|
-
multiline: f,
|
|
3242
|
-
ref: t,
|
|
3243
|
-
type: E
|
|
3244
|
-
}, S, {
|
|
3245
|
-
classes: s({}, T, {
|
|
3246
|
-
notchedOutline: null
|
|
3247
|
-
})
|
|
3248
|
-
}));
|
|
3249
|
-
});
|
|
3250
|
-
process.env.NODE_ENV !== "production" && (ro.propTypes = {
|
|
3251
|
-
// ----------------------------- Warning --------------------------------
|
|
3252
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
3253
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
3254
|
-
// ----------------------------------------------------------------------
|
|
3255
|
-
/**
|
|
3256
|
-
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
3257
|
-
* The name can be confusing, as it's more like an autofill.
|
|
3258
|
-
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
3259
|
-
*/
|
|
3260
|
-
autoComplete: e.string,
|
|
3261
|
-
/**
|
|
3262
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
3263
|
-
*/
|
|
3264
|
-
autoFocus: e.bool,
|
|
3265
|
-
/**
|
|
3266
|
-
* Override or extend the styles applied to the component.
|
|
3267
|
-
*/
|
|
3268
|
-
classes: e.object,
|
|
3269
|
-
/**
|
|
3270
|
-
* The color of the component.
|
|
3271
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
3272
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
3273
|
-
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
3274
|
-
*/
|
|
3275
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
3276
|
-
/**
|
|
3277
|
-
* The components used for each slot inside.
|
|
3278
|
-
*
|
|
3279
|
-
* This prop is an alias for the `slots` prop.
|
|
3280
|
-
* It's recommended to use the `slots` prop instead.
|
|
3281
|
-
*
|
|
3282
|
-
* @default {}
|
|
3283
|
-
*/
|
|
3284
|
-
components: e.shape({
|
|
3285
|
-
Input: e.elementType,
|
|
3286
|
-
Root: e.elementType
|
|
3287
|
-
}),
|
|
3288
|
-
/**
|
|
3289
|
-
* The default value. Use when the component is not controlled.
|
|
3290
|
-
*/
|
|
3291
|
-
defaultValue: e.any,
|
|
3292
|
-
/**
|
|
3293
|
-
* If `true`, the component is disabled.
|
|
3294
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
3295
|
-
*/
|
|
3296
|
-
disabled: e.bool,
|
|
3297
|
-
/**
|
|
3298
|
-
* End `InputAdornment` for this component.
|
|
3299
|
-
*/
|
|
3300
|
-
endAdornment: e.node,
|
|
3301
|
-
/**
|
|
3302
|
-
* If `true`, the `input` will indicate an error.
|
|
3303
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
3304
|
-
*/
|
|
3305
|
-
error: e.bool,
|
|
3306
|
-
/**
|
|
3307
|
-
* If `true`, the `input` will take up the full width of its container.
|
|
3308
|
-
* @default false
|
|
3309
|
-
*/
|
|
3310
|
-
fullWidth: e.bool,
|
|
3311
|
-
/**
|
|
3312
|
-
* The id of the `input` element.
|
|
3313
|
-
*/
|
|
3314
|
-
id: e.string,
|
|
3315
|
-
/**
|
|
3316
|
-
* The component used for the `input` element.
|
|
3317
|
-
* Either a string to use a HTML element or a component.
|
|
3318
|
-
* @default 'input'
|
|
3319
|
-
*/
|
|
3320
|
-
inputComponent: e.elementType,
|
|
3321
|
-
/**
|
|
3322
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
3323
|
-
* @default {}
|
|
3324
|
-
*/
|
|
3325
|
-
inputProps: e.object,
|
|
3326
|
-
/**
|
|
3327
|
-
* Pass a ref to the `input` element.
|
|
3328
|
-
*/
|
|
3329
|
-
inputRef: ge,
|
|
3330
|
-
/**
|
|
3331
|
-
* The label of the `input`. It is only used for layout. The actual labelling
|
|
3332
|
-
* is handled by `InputLabel`.
|
|
3333
|
-
*/
|
|
3334
|
-
label: e.node,
|
|
3335
|
-
/**
|
|
3336
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
3337
|
-
* FormControl.
|
|
3338
|
-
* The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
|
|
3339
|
-
*/
|
|
3340
|
-
margin: e.oneOf(["dense", "none"]),
|
|
3341
|
-
/**
|
|
3342
|
-
* Maximum number of rows to display when multiline option is set to true.
|
|
3343
|
-
*/
|
|
3344
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
3345
|
-
/**
|
|
3346
|
-
* Minimum number of rows to display when multiline option is set to true.
|
|
3347
|
-
*/
|
|
3348
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
3349
|
-
/**
|
|
3350
|
-
* If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
|
|
3351
|
-
* @default false
|
|
3352
|
-
*/
|
|
3353
|
-
multiline: e.bool,
|
|
3354
|
-
/**
|
|
3355
|
-
* Name attribute of the `input` element.
|
|
3356
|
-
*/
|
|
3357
|
-
name: e.string,
|
|
3358
|
-
/**
|
|
3359
|
-
* If `true`, the outline is notched to accommodate the label.
|
|
3360
|
-
*/
|
|
3361
|
-
notched: e.bool,
|
|
3362
|
-
/**
|
|
3363
|
-
* Callback fired when the value is changed.
|
|
3364
|
-
*
|
|
3365
|
-
* @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
|
|
3366
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
3367
|
-
*/
|
|
3368
|
-
onChange: e.func,
|
|
3369
|
-
/**
|
|
3370
|
-
* The short hint displayed in the `input` before the user enters a value.
|
|
3371
|
-
*/
|
|
3372
|
-
placeholder: e.string,
|
|
3373
|
-
/**
|
|
3374
|
-
* It prevents the user from changing the value of the field
|
|
3375
|
-
* (not from interacting with the field).
|
|
3376
|
-
*/
|
|
3377
|
-
readOnly: e.bool,
|
|
3378
|
-
/**
|
|
3379
|
-
* If `true`, the `input` element is required.
|
|
3380
|
-
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
3381
|
-
*/
|
|
3382
|
-
required: e.bool,
|
|
3383
|
-
/**
|
|
3384
|
-
* Number of rows to display when multiline option is set to true.
|
|
3385
|
-
*/
|
|
3386
|
-
rows: e.oneOfType([e.number, e.string]),
|
|
3387
|
-
/**
|
|
3388
|
-
* The components used for each slot inside.
|
|
3389
|
-
*
|
|
3390
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
3391
|
-
*
|
|
3392
|
-
* @default {}
|
|
3393
|
-
*/
|
|
3394
|
-
slots: e.shape({
|
|
3395
|
-
input: e.elementType,
|
|
3396
|
-
root: e.elementType
|
|
3397
|
-
}),
|
|
3398
|
-
/**
|
|
3399
|
-
* Start `InputAdornment` for this component.
|
|
3400
|
-
*/
|
|
3401
|
-
startAdornment: e.node,
|
|
3402
|
-
/**
|
|
3403
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
3404
|
-
*/
|
|
3405
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
3406
|
-
/**
|
|
3407
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
3408
|
-
* @default 'text'
|
|
3409
|
-
*/
|
|
3410
|
-
type: e.string,
|
|
3411
|
-
/**
|
|
3412
|
-
* The value of the `input` element, required for a controlled component.
|
|
3413
|
-
*/
|
|
3414
|
-
value: e.any
|
|
3415
|
-
});
|
|
3416
|
-
ro.muiName = "Input";
|
|
3417
|
-
const Ho = ro;
|
|
3418
|
-
function $t(o) {
|
|
3419
|
-
return pe("MuiSelect", o);
|
|
3420
|
-
}
|
|
3421
|
-
const kt = fe("MuiSelect", ["select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), $e = kt;
|
|
3422
|
-
var yo;
|
|
3423
|
-
const Lt = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "error", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"], Dt = $("div", {
|
|
3424
|
-
name: "MuiSelect",
|
|
3425
|
-
slot: "Select",
|
|
3426
|
-
overridesResolver: (o, n) => {
|
|
3427
|
-
const {
|
|
3428
|
-
ownerState: t
|
|
3429
|
-
} = o;
|
|
3430
|
-
return [
|
|
3431
|
-
// Win specificity over the input base
|
|
3432
|
-
{
|
|
3433
|
-
[`&.${$e.select}`]: n.select
|
|
3434
|
-
},
|
|
3435
|
-
{
|
|
3436
|
-
[`&.${$e.select}`]: n[t.variant]
|
|
3437
|
-
},
|
|
3438
|
-
{
|
|
3439
|
-
[`&.${$e.error}`]: n.error
|
|
3440
|
-
},
|
|
3441
|
-
{
|
|
3442
|
-
[`&.${$e.multiple}`]: n.multiple
|
|
3443
|
-
}
|
|
3444
|
-
];
|
|
3445
|
-
}
|
|
3446
|
-
})(_o, {
|
|
3447
|
-
// Win specificity over the input base
|
|
3448
|
-
[`&.${$e.select}`]: {
|
|
3449
|
-
height: "auto",
|
|
3450
|
-
// Resets for multiple select with chips
|
|
3451
|
-
minHeight: "1.4375em",
|
|
3452
|
-
// Required for select\text-field height consistency
|
|
3453
|
-
textOverflow: "ellipsis",
|
|
3454
|
-
whiteSpace: "nowrap",
|
|
3455
|
-
overflow: "hidden"
|
|
3456
|
-
}
|
|
3457
|
-
}), zt = $("svg", {
|
|
3458
|
-
name: "MuiSelect",
|
|
3459
|
-
slot: "Icon",
|
|
3460
|
-
overridesResolver: (o, n) => {
|
|
3461
|
-
const {
|
|
3462
|
-
ownerState: t
|
|
3463
|
-
} = o;
|
|
3464
|
-
return [n.icon, t.variant && n[`icon${ue(t.variant)}`], t.open && n.iconOpen];
|
|
3465
|
-
}
|
|
3466
|
-
})(Bo), Wt = $("input", {
|
|
3467
|
-
shouldForwardProp: (o) => Zo(o) && o !== "classes",
|
|
3468
|
-
name: "MuiSelect",
|
|
3469
|
-
slot: "NativeInput",
|
|
3470
|
-
overridesResolver: (o, n) => n.nativeInput
|
|
3471
|
-
})({
|
|
3472
|
-
bottom: 0,
|
|
3473
|
-
left: 0,
|
|
3474
|
-
position: "absolute",
|
|
3475
|
-
opacity: 0,
|
|
3476
|
-
pointerEvents: "none",
|
|
3477
|
-
width: "100%",
|
|
3478
|
-
boxSizing: "border-box"
|
|
3479
|
-
});
|
|
3480
|
-
function xo(o, n) {
|
|
3481
|
-
return typeof n == "object" && n !== null ? o === n : String(o) === String(n);
|
|
3482
|
-
}
|
|
3483
|
-
function At(o) {
|
|
3484
|
-
return o == null || typeof o == "string" && !o.trim();
|
|
3485
|
-
}
|
|
3486
|
-
const _t = (o) => {
|
|
3487
|
-
const {
|
|
3488
|
-
classes: n,
|
|
3489
|
-
variant: t,
|
|
3490
|
-
disabled: r,
|
|
3491
|
-
multiple: i,
|
|
3492
|
-
open: l,
|
|
3493
|
-
error: c
|
|
3494
|
-
} = o, d = {
|
|
3495
|
-
select: ["select", t, r && "disabled", i && "multiple", c && "error"],
|
|
3496
|
-
icon: ["icon", `icon${ue(t)}`, l && "iconOpen", r && "disabled"],
|
|
3497
|
-
nativeInput: ["nativeInput"]
|
|
3498
|
-
};
|
|
3499
|
-
return oe(d, $t, n);
|
|
3500
|
-
}, qo = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
3501
|
-
const {
|
|
3502
|
-
"aria-describedby": r,
|
|
3503
|
-
"aria-label": i,
|
|
3504
|
-
autoFocus: l,
|
|
3505
|
-
autoWidth: c,
|
|
3506
|
-
children: d,
|
|
3507
|
-
className: p,
|
|
3508
|
-
defaultOpen: u,
|
|
3509
|
-
defaultValue: h,
|
|
3510
|
-
disabled: O,
|
|
3511
|
-
displayEmpty: R,
|
|
3512
|
-
error: f = !1,
|
|
3513
|
-
IconComponent: w,
|
|
3514
|
-
inputRef: F,
|
|
3515
|
-
labelId: E,
|
|
3516
|
-
MenuProps: S = {},
|
|
3517
|
-
multiple: T,
|
|
3518
|
-
name: b,
|
|
3519
|
-
onBlur: y,
|
|
3520
|
-
onChange: m,
|
|
3521
|
-
onClose: C,
|
|
3522
|
-
onFocus: x,
|
|
3523
|
-
onOpen: I,
|
|
3524
|
-
open: A,
|
|
3525
|
-
readOnly: k,
|
|
3526
|
-
renderValue: B,
|
|
3527
|
-
SelectDisplayProps: Y = {},
|
|
3528
|
-
tabIndex: q,
|
|
3529
|
-
value: W,
|
|
3530
|
-
variant: U = "standard"
|
|
3531
|
-
} = n, K = H(n, Lt), [M, se] = ao({
|
|
3532
|
-
controlled: W,
|
|
3533
|
-
default: h,
|
|
3534
|
-
name: "Select"
|
|
3535
|
-
}), [ie, N] = ao({
|
|
3536
|
-
controlled: A,
|
|
3537
|
-
default: u,
|
|
3538
|
-
name: "Select"
|
|
3539
|
-
}), L = a.useRef(null), z = a.useRef(null), [G, V] = a.useState(null), {
|
|
3540
|
-
current: _
|
|
3541
|
-
} = a.useRef(A != null), [Z, le] = a.useState(), me = Ne(t, F), Q = a.useCallback((g) => {
|
|
3542
|
-
z.current = g, g && V(g);
|
|
3543
|
-
}, []), re = G == null ? void 0 : G.parentNode;
|
|
3544
|
-
a.useImperativeHandle(me, () => ({
|
|
3545
|
-
focus: () => {
|
|
3546
|
-
z.current.focus();
|
|
3547
|
-
},
|
|
3548
|
-
node: L.current,
|
|
3549
|
-
value: M
|
|
3550
|
-
}), [M]), a.useEffect(() => {
|
|
3551
|
-
u && ie && G && !_ && (le(c ? null : re.clientWidth), z.current.focus());
|
|
3552
|
-
}, [G, c]), a.useEffect(() => {
|
|
3553
|
-
l && z.current.focus();
|
|
3554
|
-
}, [l]), a.useEffect(() => {
|
|
3555
|
-
if (!E)
|
|
3556
|
-
return;
|
|
3557
|
-
const g = Le(z.current).getElementById(E);
|
|
3558
|
-
if (g) {
|
|
3559
|
-
const j = () => {
|
|
3560
|
-
getSelection().isCollapsed && z.current.focus();
|
|
3561
|
-
};
|
|
3562
|
-
return g.addEventListener("click", j), () => {
|
|
3563
|
-
g.removeEventListener("click", j);
|
|
3564
|
-
};
|
|
3565
|
-
}
|
|
3566
|
-
}, [E]);
|
|
3567
|
-
const P = (g, j) => {
|
|
3568
|
-
g ? I && I(j) : C && C(j), _ || (le(c ? null : re.clientWidth), N(g));
|
|
3569
|
-
}, J = (g) => {
|
|
3570
|
-
g.button === 0 && (g.preventDefault(), z.current.focus(), P(!0, g));
|
|
3571
|
-
}, Fe = (g) => {
|
|
3572
|
-
P(!1, g);
|
|
3573
|
-
}, ce = a.Children.toArray(d), ve = (g) => {
|
|
3574
|
-
const j = ce.map((be) => be.props.value).indexOf(g.target.value);
|
|
3575
|
-
if (j === -1)
|
|
3576
|
-
return;
|
|
3577
|
-
const X = ce[j];
|
|
3578
|
-
se(X.props.value), m && m(g, X);
|
|
3579
|
-
}, He = (g) => (j) => {
|
|
3580
|
-
let X;
|
|
3581
|
-
if (j.currentTarget.hasAttribute("tabindex")) {
|
|
3582
|
-
if (T) {
|
|
3583
|
-
X = Array.isArray(M) ? M.slice() : [];
|
|
3584
|
-
const be = M.indexOf(g.props.value);
|
|
3585
|
-
be === -1 ? X.push(g.props.value) : X.splice(be, 1);
|
|
3586
|
-
} else
|
|
3587
|
-
X = g.props.value;
|
|
3588
|
-
if (g.props.onClick && g.props.onClick(j), M !== X && (se(X), m)) {
|
|
3589
|
-
const be = j.nativeEvent || j, lo = new be.constructor(be.type, be);
|
|
3590
|
-
Object.defineProperty(lo, "target", {
|
|
3591
|
-
writable: !0,
|
|
3592
|
-
value: {
|
|
3593
|
-
value: X,
|
|
3594
|
-
name: b
|
|
3595
|
-
}
|
|
3596
|
-
}), m(lo, g);
|
|
3597
|
-
}
|
|
3598
|
-
T || P(!1, j);
|
|
3599
|
-
}
|
|
3600
|
-
}, qe = (g) => {
|
|
3601
|
-
k || [
|
|
3602
|
-
" ",
|
|
3603
|
-
"ArrowUp",
|
|
3604
|
-
"ArrowDown",
|
|
3605
|
-
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
3606
|
-
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
3607
|
-
"Enter"
|
|
3608
|
-
].indexOf(g.key) !== -1 && (g.preventDefault(), P(!0, g));
|
|
3609
|
-
}, Ce = G !== null && ie, Ke = (g) => {
|
|
3610
|
-
!Ce && y && (Object.defineProperty(g, "target", {
|
|
3611
|
-
writable: !0,
|
|
3612
|
-
value: {
|
|
3613
|
-
value: M,
|
|
3614
|
-
name: b
|
|
3615
|
-
}
|
|
3616
|
-
}), y(g));
|
|
3617
|
-
};
|
|
3618
|
-
delete K["aria-invalid"];
|
|
3619
|
-
let ae, ne;
|
|
3620
|
-
const Te = [];
|
|
3621
|
-
let de = !1, Re = !1;
|
|
3622
|
-
(Co({
|
|
3623
|
-
value: M
|
|
3624
|
-
}) || R) && (B ? ae = B(M) : de = !0);
|
|
3625
|
-
const De = ce.map((g) => {
|
|
3626
|
-
if (!/* @__PURE__ */ a.isValidElement(g))
|
|
3627
|
-
return null;
|
|
3628
|
-
process.env.NODE_ENV !== "production" && Je.isFragment(g) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
3629
|
-
`));
|
|
3630
|
-
let j;
|
|
3631
|
-
if (T) {
|
|
3632
|
-
if (!Array.isArray(M))
|
|
3633
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Oo(2));
|
|
3634
|
-
j = M.some((X) => xo(X, g.props.value)), j && de && Te.push(g.props.children);
|
|
3635
|
-
} else
|
|
3636
|
-
j = xo(M, g.props.value), j && de && (ne = g.props.children);
|
|
3637
|
-
return j && (Re = !0), /* @__PURE__ */ a.cloneElement(g, {
|
|
3638
|
-
"aria-selected": j ? "true" : "false",
|
|
3639
|
-
onClick: He(g),
|
|
3640
|
-
onKeyUp: (X) => {
|
|
3641
|
-
X.key === " " && X.preventDefault(), g.props.onKeyUp && g.props.onKeyUp(X);
|
|
3642
|
-
},
|
|
3643
|
-
role: "option",
|
|
3644
|
-
selected: j,
|
|
3645
|
-
value: void 0,
|
|
3646
|
-
// The value is most likely not a valid HTML attribute.
|
|
3647
|
-
"data-value": g.props.value
|
|
3648
|
-
// Instead, we provide it as a data attribute.
|
|
3649
|
-
});
|
|
3650
|
-
});
|
|
3651
|
-
process.env.NODE_ENV !== "production" && a.useEffect(() => {
|
|
3652
|
-
if (!Re && !T && M !== "") {
|
|
3653
|
-
const g = ce.map((j) => j.props.value);
|
|
3654
|
-
console.warn([`MUI: You have provided an out-of-range value \`${M}\` for the select ${b ? `(name="${b}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${g.filter((j) => j != null).map((j) => `\`${j}\``).join(", ") || '""'}.`].join(`
|
|
3655
|
-
`));
|
|
3656
|
-
}
|
|
3657
|
-
}, [Re, ce, T, b, M]), de && (T ? Te.length === 0 ? ae = null : ae = Te.reduce((g, j, X) => (g.push(j), X < Te.length - 1 && g.push(", "), g), []) : ae = ne);
|
|
3658
|
-
let we = Z;
|
|
3659
|
-
!c && _ && G && (we = re.clientWidth);
|
|
3660
|
-
let Ie;
|
|
3661
|
-
typeof q < "u" ? Ie = q : Ie = O ? null : 0;
|
|
3662
|
-
const D = Y.id || (b ? `mui-component-select-${b}` : void 0), ye = s({}, n, {
|
|
3663
|
-
variant: U,
|
|
3664
|
-
value: M,
|
|
3665
|
-
open: Ce,
|
|
3666
|
-
error: f
|
|
3667
|
-
}), Pe = _t(ye);
|
|
3668
|
-
return /* @__PURE__ */ v.jsxs(a.Fragment, {
|
|
3669
|
-
children: [/* @__PURE__ */ v.jsx(Dt, s({
|
|
3670
|
-
ref: Q,
|
|
3671
|
-
tabIndex: Ie,
|
|
3672
|
-
role: "button",
|
|
3673
|
-
"aria-disabled": O ? "true" : void 0,
|
|
3674
|
-
"aria-expanded": Ce ? "true" : "false",
|
|
3675
|
-
"aria-haspopup": "listbox",
|
|
3676
|
-
"aria-label": i,
|
|
3677
|
-
"aria-labelledby": [E, D].filter(Boolean).join(" ") || void 0,
|
|
3678
|
-
"aria-describedby": r,
|
|
3679
|
-
onKeyDown: qe,
|
|
3680
|
-
onMouseDown: O || k ? null : J,
|
|
3681
|
-
onBlur: Ke,
|
|
3682
|
-
onFocus: x
|
|
3683
|
-
}, Y, {
|
|
3684
|
-
ownerState: ye,
|
|
3685
|
-
className: ee(Y.className, Pe.select, p),
|
|
3686
|
-
id: D,
|
|
3687
|
-
children: At(ae) ? (
|
|
3688
|
-
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
3689
|
-
yo || (yo = /* @__PURE__ */ v.jsx("span", {
|
|
3690
|
-
className: "notranslate",
|
|
3691
|
-
children: ""
|
|
3692
|
-
}))
|
|
3693
|
-
) : ae
|
|
3694
|
-
})), /* @__PURE__ */ v.jsx(Wt, s({
|
|
3695
|
-
"aria-invalid": f,
|
|
3696
|
-
value: Array.isArray(M) ? M.join(",") : M,
|
|
3697
|
-
name: b,
|
|
3698
|
-
ref: L,
|
|
3699
|
-
"aria-hidden": !0,
|
|
3700
|
-
onChange: ve,
|
|
3701
|
-
tabIndex: -1,
|
|
3702
|
-
disabled: O,
|
|
3703
|
-
className: Pe.nativeInput,
|
|
3704
|
-
autoFocus: l,
|
|
3705
|
-
ownerState: ye
|
|
3706
|
-
}, K)), /* @__PURE__ */ v.jsx(zt, {
|
|
3707
|
-
as: w,
|
|
3708
|
-
className: Pe.icon,
|
|
3709
|
-
ownerState: ye
|
|
3710
|
-
}), /* @__PURE__ */ v.jsx(vt, s({
|
|
3711
|
-
id: `menu-${b || ""}`,
|
|
3712
|
-
anchorEl: re,
|
|
3713
|
-
open: Ce,
|
|
3714
|
-
onClose: Fe,
|
|
3715
|
-
anchorOrigin: {
|
|
3716
|
-
vertical: "bottom",
|
|
3717
|
-
horizontal: "center"
|
|
3718
|
-
},
|
|
3719
|
-
transformOrigin: {
|
|
3720
|
-
vertical: "top",
|
|
3721
|
-
horizontal: "center"
|
|
3722
|
-
}
|
|
3723
|
-
}, S, {
|
|
3724
|
-
MenuListProps: s({
|
|
3725
|
-
"aria-labelledby": E,
|
|
3726
|
-
role: "listbox",
|
|
3727
|
-
disableListWrap: !0
|
|
3728
|
-
}, S.MenuListProps),
|
|
3729
|
-
PaperProps: s({}, S.PaperProps, {
|
|
3730
|
-
style: s({
|
|
3731
|
-
minWidth: we
|
|
3732
|
-
}, S.PaperProps != null ? S.PaperProps.style : null)
|
|
3733
|
-
}),
|
|
3734
|
-
children: De
|
|
3735
|
-
}))]
|
|
3736
|
-
});
|
|
3737
|
-
});
|
|
3738
|
-
process.env.NODE_ENV !== "production" && (qo.propTypes = {
|
|
3739
|
-
/**
|
|
3740
|
-
* @ignore
|
|
3741
|
-
*/
|
|
3742
|
-
"aria-describedby": e.string,
|
|
3743
|
-
/**
|
|
3744
|
-
* @ignore
|
|
3745
|
-
*/
|
|
3746
|
-
"aria-label": e.string,
|
|
3747
|
-
/**
|
|
3748
|
-
* @ignore
|
|
3749
|
-
*/
|
|
3750
|
-
autoFocus: e.bool,
|
|
3751
|
-
/**
|
|
3752
|
-
* If `true`, the width of the popover will automatically be set according to the items inside the
|
|
3753
|
-
* menu, otherwise it will be at least the width of the select input.
|
|
3754
|
-
*/
|
|
3755
|
-
autoWidth: e.bool,
|
|
3756
|
-
/**
|
|
3757
|
-
* The option elements to populate the select with.
|
|
3758
|
-
* Can be some `<MenuItem>` elements.
|
|
3759
|
-
*/
|
|
3760
|
-
children: e.node,
|
|
3761
|
-
/**
|
|
3762
|
-
* Override or extend the styles applied to the component.
|
|
3763
|
-
* See [CSS API](#css) below for more details.
|
|
3764
|
-
*/
|
|
3765
|
-
classes: e.object,
|
|
3766
|
-
/**
|
|
3767
|
-
* The CSS class name of the select element.
|
|
3768
|
-
*/
|
|
3769
|
-
className: e.string,
|
|
3770
|
-
/**
|
|
3771
|
-
* If `true`, the component is toggled on mount. Use when the component open state is not controlled.
|
|
3772
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
3773
|
-
*/
|
|
3774
|
-
defaultOpen: e.bool,
|
|
3775
|
-
/**
|
|
3776
|
-
* The default value. Use when the component is not controlled.
|
|
3777
|
-
*/
|
|
3778
|
-
defaultValue: e.any,
|
|
3779
|
-
/**
|
|
3780
|
-
* If `true`, the select is disabled.
|
|
3781
|
-
*/
|
|
3782
|
-
disabled: e.bool,
|
|
3783
|
-
/**
|
|
3784
|
-
* If `true`, the selected item is displayed even if its value is empty.
|
|
3785
|
-
*/
|
|
3786
|
-
displayEmpty: e.bool,
|
|
3787
|
-
/**
|
|
3788
|
-
* If `true`, the `select input` will indicate an error.
|
|
3789
|
-
*/
|
|
3790
|
-
error: e.bool,
|
|
3791
|
-
/**
|
|
3792
|
-
* The icon that displays the arrow.
|
|
3793
|
-
*/
|
|
3794
|
-
IconComponent: e.elementType.isRequired,
|
|
3795
|
-
/**
|
|
3796
|
-
* Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
|
|
3797
|
-
* Equivalent to `ref`
|
|
3798
|
-
*/
|
|
3799
|
-
inputRef: ge,
|
|
3800
|
-
/**
|
|
3801
|
-
* The ID of an element that acts as an additional label. The Select will
|
|
3802
|
-
* be labelled by the additional label and the selected value.
|
|
3803
|
-
*/
|
|
3804
|
-
labelId: e.string,
|
|
3805
|
-
/**
|
|
3806
|
-
* Props applied to the [`Menu`](/material-ui/api/menu/) element.
|
|
3807
|
-
*/
|
|
3808
|
-
MenuProps: e.object,
|
|
3809
|
-
/**
|
|
3810
|
-
* If `true`, `value` must be an array and the menu will support multiple selections.
|
|
3811
|
-
*/
|
|
3812
|
-
multiple: e.bool,
|
|
3813
|
-
/**
|
|
3814
|
-
* Name attribute of the `select` or hidden `input` element.
|
|
3815
|
-
*/
|
|
3816
|
-
name: e.string,
|
|
3817
|
-
/**
|
|
3818
|
-
* @ignore
|
|
3819
|
-
*/
|
|
3820
|
-
onBlur: e.func,
|
|
3821
|
-
/**
|
|
3822
|
-
* Callback fired when a menu item is selected.
|
|
3823
|
-
*
|
|
3824
|
-
* @param {object} event The event source of the callback.
|
|
3825
|
-
* You can pull out the new value by accessing `event.target.value` (any).
|
|
3826
|
-
* @param {object} [child] The react element that was selected.
|
|
3827
|
-
*/
|
|
3828
|
-
onChange: e.func,
|
|
3829
|
-
/**
|
|
3830
|
-
* Callback fired when the component requests to be closed.
|
|
3831
|
-
* Use in controlled mode (see open).
|
|
3832
|
-
*
|
|
3833
|
-
* @param {object} event The event source of the callback.
|
|
3834
|
-
*/
|
|
3835
|
-
onClose: e.func,
|
|
3836
|
-
/**
|
|
3837
|
-
* @ignore
|
|
3838
|
-
*/
|
|
3839
|
-
onFocus: e.func,
|
|
3840
|
-
/**
|
|
3841
|
-
* Callback fired when the component requests to be opened.
|
|
3842
|
-
* Use in controlled mode (see open).
|
|
3843
|
-
*
|
|
3844
|
-
* @param {object} event The event source of the callback.
|
|
3845
|
-
*/
|
|
3846
|
-
onOpen: e.func,
|
|
3847
|
-
/**
|
|
3848
|
-
* If `true`, the component is shown.
|
|
3849
|
-
*/
|
|
3850
|
-
open: e.bool,
|
|
3851
|
-
/**
|
|
3852
|
-
* @ignore
|
|
3853
|
-
*/
|
|
3854
|
-
readOnly: e.bool,
|
|
3855
|
-
/**
|
|
3856
|
-
* Render the selected value.
|
|
3857
|
-
*
|
|
3858
|
-
* @param {any} value The `value` provided to the component.
|
|
3859
|
-
* @returns {ReactNode}
|
|
3860
|
-
*/
|
|
3861
|
-
renderValue: e.func,
|
|
3862
|
-
/**
|
|
3863
|
-
* Props applied to the clickable div element.
|
|
3864
|
-
*/
|
|
3865
|
-
SelectDisplayProps: e.object,
|
|
3866
|
-
/**
|
|
3867
|
-
* @ignore
|
|
3868
|
-
*/
|
|
3869
|
-
tabIndex: e.oneOfType([e.number, e.string]),
|
|
3870
|
-
/**
|
|
3871
|
-
* @ignore
|
|
3872
|
-
*/
|
|
3873
|
-
type: e.any,
|
|
3874
|
-
/**
|
|
3875
|
-
* The input value.
|
|
3876
|
-
*/
|
|
3877
|
-
value: e.any,
|
|
3878
|
-
/**
|
|
3879
|
-
* The variant to use.
|
|
3880
|
-
*/
|
|
3881
|
-
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
3882
|
-
});
|
|
3883
|
-
const Bt = qo, Ut = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"], Vt = (o) => {
|
|
3884
|
-
const {
|
|
3885
|
-
classes: n
|
|
3886
|
-
} = o;
|
|
3887
|
-
return n;
|
|
3888
|
-
}, so = {
|
|
3889
|
-
name: "MuiSelect",
|
|
3890
|
-
overridesResolver: (o, n) => n.root,
|
|
3891
|
-
shouldForwardProp: (o) => Oe(o) && o !== "variant",
|
|
3892
|
-
slot: "Root"
|
|
3893
|
-
}, Ht = $($o, so)(""), qt = $(Ho, so)(""), Kt = $(Fo, so)(""), io = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
3894
|
-
const r = te({
|
|
3895
|
-
name: "MuiSelect",
|
|
3896
|
-
props: n
|
|
3897
|
-
}), {
|
|
3898
|
-
autoWidth: i = !1,
|
|
3899
|
-
children: l,
|
|
3900
|
-
classes: c = {},
|
|
3901
|
-
className: d,
|
|
3902
|
-
defaultOpen: p = !1,
|
|
3903
|
-
displayEmpty: u = !1,
|
|
3904
|
-
IconComponent: h = fn,
|
|
3905
|
-
id: O,
|
|
3906
|
-
input: R,
|
|
3907
|
-
inputProps: f,
|
|
3908
|
-
label: w,
|
|
3909
|
-
labelId: F,
|
|
3910
|
-
MenuProps: E,
|
|
3911
|
-
multiple: S = !1,
|
|
3912
|
-
native: T = !1,
|
|
3913
|
-
onClose: b,
|
|
3914
|
-
onOpen: y,
|
|
3915
|
-
open: m,
|
|
3916
|
-
renderValue: C,
|
|
3917
|
-
SelectDisplayProps: x,
|
|
3918
|
-
variant: I = "outlined"
|
|
3919
|
-
} = r, A = H(r, Ut), k = T ? wt : Bt, B = Ee(), Y = Se({
|
|
3920
|
-
props: r,
|
|
3921
|
-
muiFormControl: B,
|
|
3922
|
-
states: ["variant", "error"]
|
|
3923
|
-
}), q = Y.variant || I, W = s({}, r, {
|
|
3924
|
-
variant: q,
|
|
3925
|
-
classes: c
|
|
3926
|
-
}), U = Vt(W), K = R || {
|
|
3927
|
-
standard: /* @__PURE__ */ v.jsx(Ht, {
|
|
3928
|
-
ownerState: W
|
|
3929
|
-
}),
|
|
3930
|
-
outlined: /* @__PURE__ */ v.jsx(qt, {
|
|
3931
|
-
label: w,
|
|
3932
|
-
ownerState: W
|
|
3933
|
-
}),
|
|
3934
|
-
filled: /* @__PURE__ */ v.jsx(Kt, {
|
|
3935
|
-
ownerState: W
|
|
3936
|
-
})
|
|
3937
|
-
}[q], M = Ne(t, K.ref);
|
|
3938
|
-
return /* @__PURE__ */ v.jsx(a.Fragment, {
|
|
3939
|
-
children: /* @__PURE__ */ a.cloneElement(K, s({
|
|
3940
|
-
// Most of the logic is implemented in `SelectInput`.
|
|
3941
|
-
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
3942
|
-
inputComponent: k,
|
|
3943
|
-
inputProps: s({
|
|
3944
|
-
children: l,
|
|
3945
|
-
error: Y.error,
|
|
3946
|
-
IconComponent: h,
|
|
3947
|
-
variant: q,
|
|
3948
|
-
type: void 0,
|
|
3949
|
-
// We render a select. We can ignore the type provided by the `Input`.
|
|
3950
|
-
multiple: S
|
|
3951
|
-
}, T ? {
|
|
3952
|
-
id: O
|
|
3953
|
-
} : {
|
|
3954
|
-
autoWidth: i,
|
|
3955
|
-
defaultOpen: p,
|
|
3956
|
-
displayEmpty: u,
|
|
3957
|
-
labelId: F,
|
|
3958
|
-
MenuProps: E,
|
|
3959
|
-
onClose: b,
|
|
3960
|
-
onOpen: y,
|
|
3961
|
-
open: m,
|
|
3962
|
-
renderValue: C,
|
|
3963
|
-
SelectDisplayProps: s({
|
|
3964
|
-
id: O
|
|
3965
|
-
}, x)
|
|
3966
|
-
}, f, {
|
|
3967
|
-
classes: f ? Ze(U, f.classes) : U
|
|
3968
|
-
}, R ? R.props.inputProps : {})
|
|
3969
|
-
}, S && T && q === "outlined" ? {
|
|
3970
|
-
notched: !0
|
|
3971
|
-
} : {}, {
|
|
3972
|
-
ref: M,
|
|
3973
|
-
className: ee(K.props.className, d)
|
|
3974
|
-
}, !R && {
|
|
3975
|
-
variant: q
|
|
3976
|
-
}, A))
|
|
3977
|
-
});
|
|
3978
|
-
});
|
|
3979
|
-
process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
3980
|
-
// ----------------------------- Warning --------------------------------
|
|
3981
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
3982
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
3983
|
-
// ----------------------------------------------------------------------
|
|
3984
|
-
/**
|
|
3985
|
-
* If `true`, the width of the popover will automatically be set according to the items inside the
|
|
3986
|
-
* menu, otherwise it will be at least the width of the select input.
|
|
3987
|
-
* @default false
|
|
3988
|
-
*/
|
|
3989
|
-
autoWidth: e.bool,
|
|
3990
|
-
/**
|
|
3991
|
-
* The option elements to populate the select with.
|
|
3992
|
-
* Can be some `MenuItem` when `native` is false and `option` when `native` is true.
|
|
3993
|
-
*
|
|
3994
|
-
* ⚠️The `MenuItem` elements **must** be direct descendants when `native` is false.
|
|
3995
|
-
*/
|
|
3996
|
-
children: e.node,
|
|
3997
|
-
/**
|
|
3998
|
-
* Override or extend the styles applied to the component.
|
|
3999
|
-
* @default {}
|
|
4000
|
-
*/
|
|
4001
|
-
classes: e.object,
|
|
4002
|
-
/**
|
|
4003
|
-
* @ignore
|
|
4004
|
-
*/
|
|
4005
|
-
className: e.string,
|
|
4006
|
-
/**
|
|
4007
|
-
* If `true`, the component is initially open. Use when the component open state is not controlled (i.e. the `open` prop is not defined).
|
|
4008
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
4009
|
-
* @default false
|
|
4010
|
-
*/
|
|
4011
|
-
defaultOpen: e.bool,
|
|
4012
|
-
/**
|
|
4013
|
-
* The default value. Use when the component is not controlled.
|
|
4014
|
-
*/
|
|
4015
|
-
defaultValue: e.any,
|
|
4016
|
-
/**
|
|
4017
|
-
* If `true`, a value is displayed even if no items are selected.
|
|
4018
|
-
*
|
|
4019
|
-
* In order to display a meaningful value, a function can be passed to the `renderValue` prop which
|
|
4020
|
-
* returns the value to be displayed when no items are selected.
|
|
4021
|
-
*
|
|
4022
|
-
* ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
|
|
4023
|
-
* The label should either be hidden or forced to a shrunk state.
|
|
4024
|
-
* @default false
|
|
4025
|
-
*/
|
|
4026
|
-
displayEmpty: e.bool,
|
|
4027
|
-
/**
|
|
4028
|
-
* The icon that displays the arrow.
|
|
4029
|
-
* @default ArrowDropDownIcon
|
|
4030
|
-
*/
|
|
4031
|
-
IconComponent: e.elementType,
|
|
4032
|
-
/**
|
|
4033
|
-
* The `id` of the wrapper element or the `select` element when `native`.
|
|
4034
|
-
*/
|
|
4035
|
-
id: e.string,
|
|
4036
|
-
/**
|
|
4037
|
-
* An `Input` element; does not have to be a material-ui specific `Input`.
|
|
4038
|
-
*/
|
|
4039
|
-
input: e.element,
|
|
4040
|
-
/**
|
|
4041
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
4042
|
-
* When `native` is `true`, the attributes are applied on the `select` element.
|
|
4043
|
-
*/
|
|
4044
|
-
inputProps: e.object,
|
|
4045
|
-
/**
|
|
4046
|
-
* See [OutlinedInput#label](/material-ui/api/outlined-input/#props)
|
|
4047
|
-
*/
|
|
4048
|
-
label: e.node,
|
|
4049
|
-
/**
|
|
4050
|
-
* The ID of an element that acts as an additional label. The Select will
|
|
4051
|
-
* be labelled by the additional label and the selected value.
|
|
4052
|
-
*/
|
|
4053
|
-
labelId: e.string,
|
|
4054
|
-
/**
|
|
4055
|
-
* Props applied to the [`Menu`](/material-ui/api/menu/) element.
|
|
4056
|
-
*/
|
|
4057
|
-
MenuProps: e.object,
|
|
4058
|
-
/**
|
|
4059
|
-
* If `true`, `value` must be an array and the menu will support multiple selections.
|
|
4060
|
-
* @default false
|
|
4061
|
-
*/
|
|
4062
|
-
multiple: e.bool,
|
|
4063
|
-
/**
|
|
4064
|
-
* If `true`, the component uses a native `select` element.
|
|
4065
|
-
* @default false
|
|
4066
|
-
*/
|
|
4067
|
-
native: e.bool,
|
|
4068
|
-
/**
|
|
4069
|
-
* Callback fired when a menu item is selected.
|
|
4070
|
-
*
|
|
4071
|
-
* @param {SelectChangeEvent<T>} event The event source of the callback.
|
|
4072
|
-
* You can pull out the new value by accessing `event.target.value` (any).
|
|
4073
|
-
* **Warning**: This is a generic event, not a change event, unless the change event is caused by browser autofill.
|
|
4074
|
-
* @param {object} [child] The react element that was selected when `native` is `false` (default).
|
|
4075
|
-
*/
|
|
4076
|
-
onChange: e.func,
|
|
4077
|
-
/**
|
|
4078
|
-
* Callback fired when the component requests to be closed.
|
|
4079
|
-
* Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select collapses).
|
|
4080
|
-
*
|
|
4081
|
-
* @param {object} event The event source of the callback.
|
|
4082
|
-
*/
|
|
4083
|
-
onClose: e.func,
|
|
4084
|
-
/**
|
|
4085
|
-
* Callback fired when the component requests to be opened.
|
|
4086
|
-
* Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select expands).
|
|
4087
|
-
*
|
|
4088
|
-
* @param {object} event The event source of the callback.
|
|
4089
|
-
*/
|
|
4090
|
-
onOpen: e.func,
|
|
4091
|
-
/**
|
|
4092
|
-
* If `true`, the component is shown.
|
|
4093
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
4094
|
-
*/
|
|
4095
|
-
open: e.bool,
|
|
4096
|
-
/**
|
|
4097
|
-
* Render the selected value.
|
|
4098
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
4099
|
-
*
|
|
4100
|
-
* @param {any} value The `value` provided to the component.
|
|
4101
|
-
* @returns {ReactNode}
|
|
4102
|
-
*/
|
|
4103
|
-
renderValue: e.func,
|
|
4104
|
-
/**
|
|
4105
|
-
* Props applied to the clickable div element.
|
|
4106
|
-
*/
|
|
4107
|
-
SelectDisplayProps: e.object,
|
|
4108
|
-
/**
|
|
4109
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
4110
|
-
*/
|
|
4111
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
4112
|
-
/**
|
|
4113
|
-
* The `input` value. Providing an empty string will select no options.
|
|
4114
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected.
|
|
4115
|
-
*
|
|
4116
|
-
* If the value is an object it must have reference equality with the option in order to be selected.
|
|
4117
|
-
* If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
|
|
4118
|
-
*/
|
|
4119
|
-
value: e.oneOfType([e.oneOf([""]), e.any]),
|
|
4120
|
-
/**
|
|
4121
|
-
* The variant to use.
|
|
4122
|
-
* @default 'outlined'
|
|
4123
|
-
*/
|
|
4124
|
-
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
4125
|
-
});
|
|
4126
|
-
io.muiName = "Select";
|
|
4127
|
-
const Gt = io;
|
|
4128
|
-
function Xt(o) {
|
|
4129
|
-
return pe("MuiTextField", o);
|
|
4130
|
-
}
|
|
4131
|
-
fe("MuiTextField", ["root"]);
|
|
4132
|
-
const Yt = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"], Zt = {
|
|
4133
|
-
standard: $o,
|
|
4134
|
-
filled: Fo,
|
|
4135
|
-
outlined: Ho
|
|
4136
|
-
}, Jt = (o) => {
|
|
4137
|
-
const {
|
|
4138
|
-
classes: n
|
|
4139
|
-
} = o;
|
|
4140
|
-
return oe({
|
|
4141
|
-
root: ["root"]
|
|
4142
|
-
}, Xt, n);
|
|
4143
|
-
}, Qt = $(Jo, {
|
|
4144
|
-
name: "MuiTextField",
|
|
4145
|
-
slot: "Root",
|
|
4146
|
-
overridesResolver: (o, n) => n.root
|
|
4147
|
-
})({}), Ko = /* @__PURE__ */ a.forwardRef(function(n, t) {
|
|
4148
|
-
const r = te({
|
|
4149
|
-
props: n,
|
|
4150
|
-
name: "MuiTextField"
|
|
4151
|
-
}), {
|
|
4152
|
-
autoComplete: i,
|
|
4153
|
-
autoFocus: l = !1,
|
|
4154
|
-
children: c,
|
|
4155
|
-
className: d,
|
|
4156
|
-
color: p = "primary",
|
|
4157
|
-
defaultValue: u,
|
|
4158
|
-
disabled: h = !1,
|
|
4159
|
-
error: O = !1,
|
|
4160
|
-
FormHelperTextProps: R,
|
|
4161
|
-
fullWidth: f = !1,
|
|
4162
|
-
helperText: w,
|
|
4163
|
-
id: F,
|
|
4164
|
-
InputLabelProps: E,
|
|
4165
|
-
inputProps: S,
|
|
4166
|
-
InputProps: T,
|
|
4167
|
-
inputRef: b,
|
|
4168
|
-
label: y,
|
|
4169
|
-
maxRows: m,
|
|
4170
|
-
minRows: C,
|
|
4171
|
-
multiline: x = !1,
|
|
4172
|
-
name: I,
|
|
4173
|
-
onBlur: A,
|
|
4174
|
-
onChange: k,
|
|
4175
|
-
onClick: B,
|
|
4176
|
-
onFocus: Y,
|
|
4177
|
-
placeholder: q,
|
|
4178
|
-
required: W = !1,
|
|
4179
|
-
rows: U,
|
|
4180
|
-
select: K = !1,
|
|
4181
|
-
SelectProps: M,
|
|
4182
|
-
type: se,
|
|
4183
|
-
value: ie,
|
|
4184
|
-
variant: N = "outlined"
|
|
4185
|
-
} = r, L = H(r, Yt), z = s({}, r, {
|
|
4186
|
-
autoFocus: l,
|
|
4187
|
-
color: p,
|
|
4188
|
-
disabled: h,
|
|
4189
|
-
error: O,
|
|
4190
|
-
fullWidth: f,
|
|
4191
|
-
multiline: x,
|
|
4192
|
-
required: W,
|
|
4193
|
-
select: K,
|
|
4194
|
-
variant: N
|
|
4195
|
-
}), G = Jt(z);
|
|
4196
|
-
process.env.NODE_ENV !== "production" && K && !c && console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");
|
|
4197
|
-
const V = {};
|
|
4198
|
-
N === "outlined" && (E && typeof E.shrink < "u" && (V.notched = E.shrink), V.label = y), K && ((!M || !M.native) && (V.id = void 0), V["aria-describedby"] = void 0);
|
|
4199
|
-
const _ = Qo(F), Z = w && _ ? `${_}-helper-text` : void 0, le = y && _ ? `${_}-label` : void 0, me = Zt[N], Q = /* @__PURE__ */ v.jsx(me, s({
|
|
4200
|
-
"aria-describedby": Z,
|
|
4201
|
-
autoComplete: i,
|
|
4202
|
-
autoFocus: l,
|
|
4203
|
-
defaultValue: u,
|
|
4204
|
-
fullWidth: f,
|
|
4205
|
-
multiline: x,
|
|
4206
|
-
name: I,
|
|
4207
|
-
rows: U,
|
|
4208
|
-
maxRows: m,
|
|
4209
|
-
minRows: C,
|
|
4210
|
-
type: se,
|
|
4211
|
-
value: ie,
|
|
4212
|
-
id: _,
|
|
4213
|
-
inputRef: b,
|
|
4214
|
-
onBlur: A,
|
|
4215
|
-
onChange: k,
|
|
4216
|
-
onFocus: Y,
|
|
4217
|
-
onClick: B,
|
|
4218
|
-
placeholder: q,
|
|
4219
|
-
inputProps: S
|
|
4220
|
-
}, V, T));
|
|
4221
|
-
return /* @__PURE__ */ v.jsxs(Qt, s({
|
|
4222
|
-
className: ee(G.root, d),
|
|
4223
|
-
disabled: h,
|
|
4224
|
-
error: O,
|
|
4225
|
-
fullWidth: f,
|
|
4226
|
-
ref: t,
|
|
4227
|
-
required: W,
|
|
4228
|
-
color: p,
|
|
4229
|
-
variant: N,
|
|
4230
|
-
ownerState: z
|
|
4231
|
-
}, L, {
|
|
4232
|
-
children: [y != null && y !== "" && /* @__PURE__ */ v.jsx(Gn, s({
|
|
4233
|
-
htmlFor: _,
|
|
4234
|
-
id: le
|
|
4235
|
-
}, E, {
|
|
4236
|
-
children: y
|
|
4237
|
-
})), K ? /* @__PURE__ */ v.jsx(Gt, s({
|
|
4238
|
-
"aria-describedby": Z,
|
|
4239
|
-
id: _,
|
|
4240
|
-
labelId: le,
|
|
4241
|
-
value: ie,
|
|
4242
|
-
input: Q
|
|
4243
|
-
}, M, {
|
|
4244
|
-
children: c
|
|
4245
|
-
})) : Q, w && /* @__PURE__ */ v.jsx(Mn, s({
|
|
4246
|
-
id: Z
|
|
4247
|
-
}, R, {
|
|
4248
|
-
children: w
|
|
4249
|
-
}))]
|
|
4250
|
-
}));
|
|
4251
|
-
});
|
|
4252
|
-
process.env.NODE_ENV !== "production" && (Ko.propTypes = {
|
|
4253
|
-
// ----------------------------- Warning --------------------------------
|
|
4254
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
4255
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
4256
|
-
// ----------------------------------------------------------------------
|
|
4257
|
-
/**
|
|
4258
|
-
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
4259
|
-
* The name can be confusing, as it's more like an autofill.
|
|
4260
|
-
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
4261
|
-
*/
|
|
4262
|
-
autoComplete: e.string,
|
|
4263
|
-
/**
|
|
4264
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
4265
|
-
* @default false
|
|
4266
|
-
*/
|
|
4267
|
-
autoFocus: e.bool,
|
|
4268
|
-
/**
|
|
4269
|
-
* @ignore
|
|
4270
|
-
*/
|
|
4271
|
-
children: e.node,
|
|
4272
|
-
/**
|
|
4273
|
-
* Override or extend the styles applied to the component.
|
|
4274
|
-
*/
|
|
4275
|
-
classes: e.object,
|
|
4276
|
-
/**
|
|
4277
|
-
* @ignore
|
|
4278
|
-
*/
|
|
4279
|
-
className: e.string,
|
|
4280
|
-
/**
|
|
4281
|
-
* The color of the component.
|
|
4282
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
4283
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
4284
|
-
* @default 'primary'
|
|
4285
|
-
*/
|
|
4286
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
4287
|
-
/**
|
|
4288
|
-
* The default value. Use when the component is not controlled.
|
|
4289
|
-
*/
|
|
4290
|
-
defaultValue: e.any,
|
|
4291
|
-
/**
|
|
4292
|
-
* If `true`, the component is disabled.
|
|
4293
|
-
* @default false
|
|
4294
|
-
*/
|
|
4295
|
-
disabled: e.bool,
|
|
4296
|
-
/**
|
|
4297
|
-
* If `true`, the label is displayed in an error state.
|
|
4298
|
-
* @default false
|
|
4299
|
-
*/
|
|
4300
|
-
error: e.bool,
|
|
4301
|
-
/**
|
|
4302
|
-
* Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
|
|
4303
|
-
*/
|
|
4304
|
-
FormHelperTextProps: e.object,
|
|
4305
|
-
/**
|
|
4306
|
-
* If `true`, the input will take up the full width of its container.
|
|
4307
|
-
* @default false
|
|
4308
|
-
*/
|
|
4309
|
-
fullWidth: e.bool,
|
|
4310
|
-
/**
|
|
4311
|
-
* The helper text content.
|
|
4312
|
-
*/
|
|
4313
|
-
helperText: e.node,
|
|
4314
|
-
/**
|
|
4315
|
-
* The id of the `input` element.
|
|
4316
|
-
* Use this prop to make `label` and `helperText` accessible for screen readers.
|
|
4317
|
-
*/
|
|
4318
|
-
id: e.string,
|
|
4319
|
-
/**
|
|
4320
|
-
* Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
|
|
4321
|
-
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
4322
|
-
*/
|
|
4323
|
-
InputLabelProps: e.object,
|
|
4324
|
-
/**
|
|
4325
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
4326
|
-
*/
|
|
4327
|
-
inputProps: e.object,
|
|
4328
|
-
/**
|
|
4329
|
-
* Props applied to the Input element.
|
|
4330
|
-
* It will be a [`FilledInput`](/material-ui/api/filled-input/),
|
|
4331
|
-
* [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
|
|
4332
|
-
* component depending on the `variant` prop value.
|
|
4333
|
-
*/
|
|
4334
|
-
InputProps: e.object,
|
|
4335
|
-
/**
|
|
4336
|
-
* Pass a ref to the `input` element.
|
|
4337
|
-
*/
|
|
4338
|
-
inputRef: ge,
|
|
4339
|
-
/**
|
|
4340
|
-
* The label content.
|
|
4341
|
-
*/
|
|
4342
|
-
label: e.node,
|
|
4343
|
-
/**
|
|
4344
|
-
* If `dense` or `normal`, will adjust vertical spacing of this and contained components.
|
|
4345
|
-
* @default 'none'
|
|
4346
|
-
*/
|
|
4347
|
-
margin: e.oneOf(["dense", "none", "normal"]),
|
|
4348
|
-
/**
|
|
4349
|
-
* Maximum number of rows to display when multiline option is set to true.
|
|
4350
|
-
*/
|
|
4351
|
-
maxRows: e.oneOfType([e.number, e.string]),
|
|
4352
|
-
/**
|
|
4353
|
-
* Minimum number of rows to display when multiline option is set to true.
|
|
4354
|
-
*/
|
|
4355
|
-
minRows: e.oneOfType([e.number, e.string]),
|
|
4356
|
-
/**
|
|
4357
|
-
* If `true`, a `textarea` element is rendered instead of an input.
|
|
4358
|
-
* @default false
|
|
4359
|
-
*/
|
|
4360
|
-
multiline: e.bool,
|
|
4361
|
-
/**
|
|
4362
|
-
* Name attribute of the `input` element.
|
|
4363
|
-
*/
|
|
4364
|
-
name: e.string,
|
|
4365
|
-
/**
|
|
4366
|
-
* @ignore
|
|
4367
|
-
*/
|
|
4368
|
-
onBlur: e.func,
|
|
4369
|
-
/**
|
|
4370
|
-
* Callback fired when the value is changed.
|
|
4371
|
-
*
|
|
4372
|
-
* @param {object} event The event source of the callback.
|
|
4373
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
4374
|
-
*/
|
|
4375
|
-
onChange: e.func,
|
|
4376
|
-
/**
|
|
4377
|
-
* @ignore
|
|
4378
|
-
*/
|
|
4379
|
-
onClick: e.func,
|
|
4380
|
-
/**
|
|
4381
|
-
* @ignore
|
|
4382
|
-
*/
|
|
4383
|
-
onFocus: e.func,
|
|
4384
|
-
/**
|
|
4385
|
-
* The short hint displayed in the `input` before the user enters a value.
|
|
4386
|
-
*/
|
|
4387
|
-
placeholder: e.string,
|
|
4388
|
-
/**
|
|
4389
|
-
* If `true`, the label is displayed as required and the `input` element is required.
|
|
4390
|
-
* @default false
|
|
4391
|
-
*/
|
|
4392
|
-
required: e.bool,
|
|
4393
|
-
/**
|
|
4394
|
-
* Number of rows to display when multiline option is set to true.
|
|
4395
|
-
*/
|
|
4396
|
-
rows: e.oneOfType([e.number, e.string]),
|
|
4397
|
-
/**
|
|
4398
|
-
* Render a [`Select`](/material-ui/api/select/) element while passing the Input element to `Select` as `input` parameter.
|
|
4399
|
-
* If this option is set you must pass the options of the select as children.
|
|
4400
|
-
* @default false
|
|
4401
|
-
*/
|
|
4402
|
-
select: e.bool,
|
|
4403
|
-
/**
|
|
4404
|
-
* Props applied to the [`Select`](/material-ui/api/select/) element.
|
|
4405
|
-
*/
|
|
4406
|
-
SelectProps: e.object,
|
|
4407
|
-
/**
|
|
4408
|
-
* The size of the component.
|
|
4409
|
-
*/
|
|
4410
|
-
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
4411
|
-
/**
|
|
4412
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
4413
|
-
*/
|
|
4414
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
4415
|
-
/**
|
|
4416
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
4417
|
-
*/
|
|
4418
|
-
type: e.string,
|
|
4419
|
-
/**
|
|
4420
|
-
* The value of the `input` element, required for a controlled component.
|
|
4421
|
-
*/
|
|
4422
|
-
value: e.any,
|
|
4423
|
-
/**
|
|
4424
|
-
* The variant to use.
|
|
4425
|
-
* @default 'outlined'
|
|
4426
|
-
*/
|
|
4427
|
-
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
4428
|
-
});
|
|
4429
|
-
const Rr = Ko;
|
|
4430
|
-
export {
|
|
4431
|
-
Gn as I,
|
|
4432
|
-
Qn as L,
|
|
4433
|
-
ot as M,
|
|
4434
|
-
Rr as T
|
|
4435
|
-
};
|