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,1327 +0,0 @@
|
|
|
1
|
-
import { j as $t } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
-
import { a as c, _ as Et } from "./extends-135d7828.js";
|
|
3
|
-
import * as T from "react";
|
|
4
|
-
import { g as Rt, j as N, P as t, c as U, l as _t, d as Vt, a as rt } from "./identifier-03e07987.js";
|
|
5
|
-
import { g as jt, c as ce, s as ee, i as ct, u as wt, a as At } from "./useThemeProps-d77fc01d.js";
|
|
6
|
-
import { u as It } from "./useTheme-02c27d78.js";
|
|
7
|
-
import { i as Re, u as B } from "./useSlotProps-c2f5d9e5.js";
|
|
8
|
-
import { u as Mt } from "./useControlled-cc2d41cb.js";
|
|
9
|
-
import { u as zt } from "./useIsFocusVisible-4693b580.js";
|
|
10
|
-
import { u as at } from "./useForkRef-0781dda0.js";
|
|
11
|
-
import { u as Dt, a as Ke } from "./useEventCallback-83a2883c.js";
|
|
12
|
-
import { o as _e } from "./ownerDocument-5430cd5b.js";
|
|
13
|
-
import { c as nt } from "./chainPropTypes-004bf492.js";
|
|
14
|
-
const Ft = {
|
|
15
|
-
border: 0,
|
|
16
|
-
clip: "rect(0 0 0 0)",
|
|
17
|
-
height: "1px",
|
|
18
|
-
margin: -1,
|
|
19
|
-
overflow: "hidden",
|
|
20
|
-
padding: 0,
|
|
21
|
-
position: "absolute",
|
|
22
|
-
whiteSpace: "nowrap",
|
|
23
|
-
width: "1px"
|
|
24
|
-
}, Ht = Ft;
|
|
25
|
-
function Yt(e, o, a = (s, d) => s === d) {
|
|
26
|
-
return e.length === o.length && e.every((s, d) => a(s, o[d]));
|
|
27
|
-
}
|
|
28
|
-
const Bt = 2;
|
|
29
|
-
function ut(e, o) {
|
|
30
|
-
return e - o;
|
|
31
|
-
}
|
|
32
|
-
function he(e, o, a) {
|
|
33
|
-
return e == null ? o : Math.min(Math.max(o, e), a);
|
|
34
|
-
}
|
|
35
|
-
function lt(e, o) {
|
|
36
|
-
var a;
|
|
37
|
-
const {
|
|
38
|
-
index: s
|
|
39
|
-
} = (a = e.reduce((d, L, $) => {
|
|
40
|
-
const f = Math.abs(o - L);
|
|
41
|
-
return d === null || f < d.distance || f === d.distance ? {
|
|
42
|
-
distance: f,
|
|
43
|
-
index: $
|
|
44
|
-
} : d;
|
|
45
|
-
}, null)) != null ? a : {};
|
|
46
|
-
return s;
|
|
47
|
-
}
|
|
48
|
-
function Ce(e, o) {
|
|
49
|
-
if (o.current !== void 0 && e.changedTouches) {
|
|
50
|
-
const a = e;
|
|
51
|
-
for (let s = 0; s < a.changedTouches.length; s += 1) {
|
|
52
|
-
const d = a.changedTouches[s];
|
|
53
|
-
if (d.identifier === o.current)
|
|
54
|
-
return {
|
|
55
|
-
x: d.clientX,
|
|
56
|
-
y: d.clientY
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
return !1;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
x: e.clientX,
|
|
63
|
-
y: e.clientY
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function Ve(e, o, a) {
|
|
67
|
-
return (e - o) * 100 / (a - o);
|
|
68
|
-
}
|
|
69
|
-
function Ut(e, o, a) {
|
|
70
|
-
return (a - o) * e + o;
|
|
71
|
-
}
|
|
72
|
-
function qt(e) {
|
|
73
|
-
if (Math.abs(e) < 1) {
|
|
74
|
-
const a = e.toExponential().split("e-"), s = a[0].split(".")[1];
|
|
75
|
-
return (s ? s.length : 0) + parseInt(a[1], 10);
|
|
76
|
-
}
|
|
77
|
-
const o = e.toString().split(".")[1];
|
|
78
|
-
return o ? o.length : 0;
|
|
79
|
-
}
|
|
80
|
-
function Xt(e, o, a) {
|
|
81
|
-
const s = Math.round((e - a) / o) * o + a;
|
|
82
|
-
return Number(s.toFixed(qt(o)));
|
|
83
|
-
}
|
|
84
|
-
function st({
|
|
85
|
-
values: e,
|
|
86
|
-
newValue: o,
|
|
87
|
-
index: a
|
|
88
|
-
}) {
|
|
89
|
-
const s = e.slice();
|
|
90
|
-
return s[a] = o, s.sort(ut);
|
|
91
|
-
}
|
|
92
|
-
function Ne({
|
|
93
|
-
sliderRef: e,
|
|
94
|
-
activeIndex: o,
|
|
95
|
-
setActive: a
|
|
96
|
-
}) {
|
|
97
|
-
var s, d;
|
|
98
|
-
const L = _e(e.current);
|
|
99
|
-
if (!((s = e.current) != null && s.contains(L.activeElement)) || Number(L == null || (d = L.activeElement) == null ? void 0 : d.getAttribute("data-index")) !== o) {
|
|
100
|
-
var $;
|
|
101
|
-
($ = e.current) == null || $.querySelector(`[type="range"][data-index="${o}"]`).focus();
|
|
102
|
-
}
|
|
103
|
-
a && a(o);
|
|
104
|
-
}
|
|
105
|
-
function $e(e, o) {
|
|
106
|
-
return typeof e == "number" && typeof o == "number" ? e === o : typeof e == "object" && typeof o == "object" ? Yt(e, o) : !1;
|
|
107
|
-
}
|
|
108
|
-
const Kt = {
|
|
109
|
-
horizontal: {
|
|
110
|
-
offset: (e) => ({
|
|
111
|
-
left: `${e}%`
|
|
112
|
-
}),
|
|
113
|
-
leap: (e) => ({
|
|
114
|
-
width: `${e}%`
|
|
115
|
-
})
|
|
116
|
-
},
|
|
117
|
-
"horizontal-reverse": {
|
|
118
|
-
offset: (e) => ({
|
|
119
|
-
right: `${e}%`
|
|
120
|
-
}),
|
|
121
|
-
leap: (e) => ({
|
|
122
|
-
width: `${e}%`
|
|
123
|
-
})
|
|
124
|
-
},
|
|
125
|
-
vertical: {
|
|
126
|
-
offset: (e) => ({
|
|
127
|
-
bottom: `${e}%`
|
|
128
|
-
}),
|
|
129
|
-
leap: (e) => ({
|
|
130
|
-
height: `${e}%`
|
|
131
|
-
})
|
|
132
|
-
}
|
|
133
|
-
}, Wt = (e) => e;
|
|
134
|
-
let Ee;
|
|
135
|
-
function We() {
|
|
136
|
-
return Ee === void 0 && (typeof CSS < "u" && typeof CSS.supports == "function" ? Ee = CSS.supports("touch-action", "none") : Ee = !0), Ee;
|
|
137
|
-
}
|
|
138
|
-
function Gt(e) {
|
|
139
|
-
const {
|
|
140
|
-
"aria-labelledby": o,
|
|
141
|
-
defaultValue: a,
|
|
142
|
-
disabled: s = !1,
|
|
143
|
-
disableSwap: d = !1,
|
|
144
|
-
isRtl: L = !1,
|
|
145
|
-
marks: $ = !1,
|
|
146
|
-
max: f = 100,
|
|
147
|
-
min: b = 0,
|
|
148
|
-
name: q,
|
|
149
|
-
onChange: ue,
|
|
150
|
-
onChangeCommitted: X,
|
|
151
|
-
orientation: te = "horizontal",
|
|
152
|
-
rootRef: ge,
|
|
153
|
-
scale: de = Wt,
|
|
154
|
-
step: _ = 1,
|
|
155
|
-
tabIndex: ye,
|
|
156
|
-
value: ke
|
|
157
|
-
} = e, M = T.useRef(), [pe, F] = T.useState(-1), [xe, H] = T.useState(-1), [me, fe] = T.useState(!1), K = T.useRef(0), [V, Y] = Mt({
|
|
158
|
-
controlled: ke,
|
|
159
|
-
default: a ?? b,
|
|
160
|
-
name: "Slider"
|
|
161
|
-
}), z = ue && ((r, n, l) => {
|
|
162
|
-
const i = r.nativeEvent || r, y = new i.constructor(i.type, i);
|
|
163
|
-
Object.defineProperty(y, "target", {
|
|
164
|
-
writable: !0,
|
|
165
|
-
value: {
|
|
166
|
-
value: n,
|
|
167
|
-
name: q
|
|
168
|
-
}
|
|
169
|
-
}), ue(y, n, l);
|
|
170
|
-
}), W = Array.isArray(V);
|
|
171
|
-
let g = W ? V.slice().sort(ut) : [V];
|
|
172
|
-
g = g.map((r) => he(r, b, f));
|
|
173
|
-
const oe = $ === !0 && _ !== null ? [...Array(Math.floor((f - b) / _) + 1)].map((r, n) => ({
|
|
174
|
-
value: b + _ * n
|
|
175
|
-
})) : $ || [], j = oe.map((r) => r.value), {
|
|
176
|
-
isFocusVisibleRef: Te,
|
|
177
|
-
onBlur: w,
|
|
178
|
-
onFocus: A,
|
|
179
|
-
ref: je
|
|
180
|
-
} = zt(), [Le, re] = T.useState(-1), S = T.useRef(), Se = at(je, S), be = at(ge, Se), Pe = (r) => (n) => {
|
|
181
|
-
var l;
|
|
182
|
-
const i = Number(n.currentTarget.getAttribute("data-index"));
|
|
183
|
-
A(n), Te.current === !0 && re(i), H(i), r == null || (l = r.onFocus) == null || l.call(r, n);
|
|
184
|
-
}, we = (r) => (n) => {
|
|
185
|
-
var l;
|
|
186
|
-
w(n), Te.current === !1 && re(-1), H(-1), r == null || (l = r.onBlur) == null || l.call(r, n);
|
|
187
|
-
};
|
|
188
|
-
Dt(() => {
|
|
189
|
-
if (s && S.current.contains(document.activeElement)) {
|
|
190
|
-
var r;
|
|
191
|
-
(r = document.activeElement) == null || r.blur();
|
|
192
|
-
}
|
|
193
|
-
}, [s]), s && pe !== -1 && F(-1), s && Le !== -1 && re(-1);
|
|
194
|
-
const ae = (r) => (n) => {
|
|
195
|
-
var l;
|
|
196
|
-
(l = r.onChange) == null || l.call(r, n);
|
|
197
|
-
const i = Number(n.currentTarget.getAttribute("data-index")), y = g[i], P = j.indexOf(y);
|
|
198
|
-
let p = n.target.valueAsNumber;
|
|
199
|
-
if (oe && _ == null && (p = p < y ? j[P - 1] : j[P + 1]), p = he(p, b, f), oe && _ == null) {
|
|
200
|
-
const O = j.indexOf(g[i]);
|
|
201
|
-
p = p < g[i] ? j[O - 1] : j[O + 1];
|
|
202
|
-
}
|
|
203
|
-
if (W) {
|
|
204
|
-
d && (p = he(p, g[i - 1] || -1 / 0, g[i + 1] || 1 / 0));
|
|
205
|
-
const O = p;
|
|
206
|
-
p = st({
|
|
207
|
-
values: g,
|
|
208
|
-
newValue: p,
|
|
209
|
-
index: i
|
|
210
|
-
});
|
|
211
|
-
let u = i;
|
|
212
|
-
d || (u = p.indexOf(O)), Ne({
|
|
213
|
-
sliderRef: S,
|
|
214
|
-
activeIndex: u
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
Y(p), re(i), z && !$e(p, V) && z(n, p, i), X && X(n, p);
|
|
218
|
-
}, G = T.useRef();
|
|
219
|
-
let ne = te;
|
|
220
|
-
L && te === "horizontal" && (ne += "-reverse");
|
|
221
|
-
const le = ({
|
|
222
|
-
finger: r,
|
|
223
|
-
move: n = !1
|
|
224
|
-
}) => {
|
|
225
|
-
const {
|
|
226
|
-
current: l
|
|
227
|
-
} = S, {
|
|
228
|
-
width: i,
|
|
229
|
-
height: y,
|
|
230
|
-
bottom: P,
|
|
231
|
-
left: p
|
|
232
|
-
} = l.getBoundingClientRect();
|
|
233
|
-
let O;
|
|
234
|
-
ne.indexOf("vertical") === 0 ? O = (P - r.y) / y : O = (r.x - p) / i, ne.indexOf("-reverse") !== -1 && (O = 1 - O);
|
|
235
|
-
let u;
|
|
236
|
-
if (u = Ut(O, b, f), _)
|
|
237
|
-
u = Xt(u, _, b);
|
|
238
|
-
else {
|
|
239
|
-
const ve = lt(j, u);
|
|
240
|
-
u = j[ve];
|
|
241
|
-
}
|
|
242
|
-
u = he(u, b, f);
|
|
243
|
-
let I = 0;
|
|
244
|
-
if (W) {
|
|
245
|
-
n ? I = G.current : I = lt(g, u), d && (u = he(u, g[I - 1] || -1 / 0, g[I + 1] || 1 / 0));
|
|
246
|
-
const ve = u;
|
|
247
|
-
u = st({
|
|
248
|
-
values: g,
|
|
249
|
-
newValue: u,
|
|
250
|
-
index: I
|
|
251
|
-
}), d && n || (I = u.indexOf(ve), G.current = I);
|
|
252
|
-
}
|
|
253
|
-
return {
|
|
254
|
-
newValue: u,
|
|
255
|
-
activeIndex: I
|
|
256
|
-
};
|
|
257
|
-
}, J = Ke((r) => {
|
|
258
|
-
const n = Ce(r, M);
|
|
259
|
-
if (!n)
|
|
260
|
-
return;
|
|
261
|
-
if (K.current += 1, r.type === "mousemove" && r.buttons === 0) {
|
|
262
|
-
E(r);
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
const {
|
|
266
|
-
newValue: l,
|
|
267
|
-
activeIndex: i
|
|
268
|
-
} = le({
|
|
269
|
-
finger: n,
|
|
270
|
-
move: !0
|
|
271
|
-
});
|
|
272
|
-
Ne({
|
|
273
|
-
sliderRef: S,
|
|
274
|
-
activeIndex: i,
|
|
275
|
-
setActive: F
|
|
276
|
-
}), Y(l), !me && K.current > Bt && fe(!0), z && !$e(l, V) && z(r, l, i);
|
|
277
|
-
}), E = Ke((r) => {
|
|
278
|
-
const n = Ce(r, M);
|
|
279
|
-
if (fe(!1), !n)
|
|
280
|
-
return;
|
|
281
|
-
const {
|
|
282
|
-
newValue: l
|
|
283
|
-
} = le({
|
|
284
|
-
finger: n,
|
|
285
|
-
move: !0
|
|
286
|
-
});
|
|
287
|
-
F(-1), r.type === "touchend" && H(-1), X && X(r, l), M.current = void 0, m();
|
|
288
|
-
}), v = Ke((r) => {
|
|
289
|
-
if (s)
|
|
290
|
-
return;
|
|
291
|
-
We() || r.preventDefault();
|
|
292
|
-
const n = r.changedTouches[0];
|
|
293
|
-
n != null && (M.current = n.identifier);
|
|
294
|
-
const l = Ce(r, M);
|
|
295
|
-
if (l !== !1) {
|
|
296
|
-
const {
|
|
297
|
-
newValue: y,
|
|
298
|
-
activeIndex: P
|
|
299
|
-
} = le({
|
|
300
|
-
finger: l
|
|
301
|
-
});
|
|
302
|
-
Ne({
|
|
303
|
-
sliderRef: S,
|
|
304
|
-
activeIndex: P,
|
|
305
|
-
setActive: F
|
|
306
|
-
}), Y(y), z && !$e(y, V) && z(r, y, P);
|
|
307
|
-
}
|
|
308
|
-
K.current = 0;
|
|
309
|
-
const i = _e(S.current);
|
|
310
|
-
i.addEventListener("touchmove", J), i.addEventListener("touchend", E);
|
|
311
|
-
}), m = T.useCallback(() => {
|
|
312
|
-
const r = _e(S.current);
|
|
313
|
-
r.removeEventListener("mousemove", J), r.removeEventListener("mouseup", E), r.removeEventListener("touchmove", J), r.removeEventListener("touchend", E);
|
|
314
|
-
}, [E, J]);
|
|
315
|
-
T.useEffect(() => {
|
|
316
|
-
const {
|
|
317
|
-
current: r
|
|
318
|
-
} = S;
|
|
319
|
-
return r.addEventListener("touchstart", v, {
|
|
320
|
-
passive: We()
|
|
321
|
-
}), () => {
|
|
322
|
-
r.removeEventListener("touchstart", v, {
|
|
323
|
-
passive: We()
|
|
324
|
-
}), m();
|
|
325
|
-
};
|
|
326
|
-
}, [m, v]), T.useEffect(() => {
|
|
327
|
-
s && m();
|
|
328
|
-
}, [s, m]);
|
|
329
|
-
const se = (r) => (n) => {
|
|
330
|
-
var l;
|
|
331
|
-
if ((l = r.onMouseDown) == null || l.call(r, n), s || n.defaultPrevented || n.button !== 0)
|
|
332
|
-
return;
|
|
333
|
-
n.preventDefault();
|
|
334
|
-
const i = Ce(n, M);
|
|
335
|
-
if (i !== !1) {
|
|
336
|
-
const {
|
|
337
|
-
newValue: P,
|
|
338
|
-
activeIndex: p
|
|
339
|
-
} = le({
|
|
340
|
-
finger: i
|
|
341
|
-
});
|
|
342
|
-
Ne({
|
|
343
|
-
sliderRef: S,
|
|
344
|
-
activeIndex: p,
|
|
345
|
-
setActive: F
|
|
346
|
-
}), Y(P), z && !$e(P, V) && z(n, P, p);
|
|
347
|
-
}
|
|
348
|
-
K.current = 0;
|
|
349
|
-
const y = _e(S.current);
|
|
350
|
-
y.addEventListener("mousemove", J), y.addEventListener("mouseup", E);
|
|
351
|
-
}, Q = Ve(W ? g[0] : b, b, f), Z = Ve(g[g.length - 1], b, f) - Q, Ae = (r = {}) => {
|
|
352
|
-
const n = {
|
|
353
|
-
onMouseDown: se(r || {})
|
|
354
|
-
}, l = c({}, r, n);
|
|
355
|
-
return c({
|
|
356
|
-
ref: be
|
|
357
|
-
}, l);
|
|
358
|
-
}, x = (r) => (n) => {
|
|
359
|
-
var l;
|
|
360
|
-
(l = r.onMouseOver) == null || l.call(r, n);
|
|
361
|
-
const i = Number(n.currentTarget.getAttribute("data-index"));
|
|
362
|
-
H(i);
|
|
363
|
-
}, ie = (r) => (n) => {
|
|
364
|
-
var l;
|
|
365
|
-
(l = r.onMouseLeave) == null || l.call(r, n), H(-1);
|
|
366
|
-
};
|
|
367
|
-
return {
|
|
368
|
-
active: pe,
|
|
369
|
-
axis: ne,
|
|
370
|
-
axisProps: Kt,
|
|
371
|
-
dragging: me,
|
|
372
|
-
focusedThumbIndex: Le,
|
|
373
|
-
getHiddenInputProps: (r = {}) => {
|
|
374
|
-
var n;
|
|
375
|
-
const l = {
|
|
376
|
-
onChange: ae(r || {}),
|
|
377
|
-
onFocus: Pe(r || {}),
|
|
378
|
-
onBlur: we(r || {})
|
|
379
|
-
}, i = c({}, r, l);
|
|
380
|
-
return c({
|
|
381
|
-
tabIndex: ye,
|
|
382
|
-
"aria-labelledby": o,
|
|
383
|
-
"aria-orientation": te,
|
|
384
|
-
"aria-valuemax": de(f),
|
|
385
|
-
"aria-valuemin": de(b),
|
|
386
|
-
name: q,
|
|
387
|
-
type: "range",
|
|
388
|
-
min: e.min,
|
|
389
|
-
max: e.max,
|
|
390
|
-
step: (n = e.step) != null ? n : void 0,
|
|
391
|
-
disabled: s
|
|
392
|
-
}, i, {
|
|
393
|
-
style: c({}, Ht, {
|
|
394
|
-
direction: L ? "rtl" : "ltr",
|
|
395
|
-
// So that VoiceOver's focus indicator matches the thumb's dimensions
|
|
396
|
-
width: "100%",
|
|
397
|
-
height: "100%"
|
|
398
|
-
})
|
|
399
|
-
});
|
|
400
|
-
},
|
|
401
|
-
getRootProps: Ae,
|
|
402
|
-
getThumbProps: (r = {}) => {
|
|
403
|
-
const n = {
|
|
404
|
-
onMouseOver: x(r || {}),
|
|
405
|
-
onMouseLeave: ie(r || {})
|
|
406
|
-
};
|
|
407
|
-
return c({}, r, n);
|
|
408
|
-
},
|
|
409
|
-
marks: oe,
|
|
410
|
-
open: xe,
|
|
411
|
-
range: W,
|
|
412
|
-
rootRef: be,
|
|
413
|
-
trackLeap: Z,
|
|
414
|
-
trackOffset: Q,
|
|
415
|
-
values: g
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
const Jt = (e) => !e || !Re(e), Qt = Jt;
|
|
419
|
-
function Zt(e) {
|
|
420
|
-
return Rt("MuiSlider", e);
|
|
421
|
-
}
|
|
422
|
-
const eo = jt("MuiSlider", ["root", "active", "colorPrimary", "colorSecondary", "disabled", "dragging", "focusVisible", "mark", "markActive", "marked", "markLabel", "markLabelActive", "rail", "sizeSmall", "thumb", "thumbColorPrimary", "thumbColorSecondary", "track", "trackInverted", "trackFalse", "thumbSizeSmall", "valueLabel", "valueLabelOpen", "valueLabelCircle", "valueLabelLabel", "vertical"]), R = eo, to = (e) => {
|
|
423
|
-
const {
|
|
424
|
-
open: o
|
|
425
|
-
} = e;
|
|
426
|
-
return {
|
|
427
|
-
offset: ce(o && R.valueLabelOpen),
|
|
428
|
-
circle: R.valueLabelCircle,
|
|
429
|
-
label: R.valueLabelLabel
|
|
430
|
-
};
|
|
431
|
-
};
|
|
432
|
-
function dt(e) {
|
|
433
|
-
const {
|
|
434
|
-
children: o,
|
|
435
|
-
className: a,
|
|
436
|
-
value: s
|
|
437
|
-
} = e, d = to(e);
|
|
438
|
-
return o ? /* @__PURE__ */ T.cloneElement(o, {
|
|
439
|
-
className: ce(o.props.className)
|
|
440
|
-
}, /* @__PURE__ */ N.jsxs(T.Fragment, {
|
|
441
|
-
children: [o.props.children, /* @__PURE__ */ N.jsx("span", {
|
|
442
|
-
className: ce(d.offset, a),
|
|
443
|
-
"aria-hidden": !0,
|
|
444
|
-
children: /* @__PURE__ */ N.jsx("span", {
|
|
445
|
-
className: d.circle,
|
|
446
|
-
children: /* @__PURE__ */ N.jsx("span", {
|
|
447
|
-
className: d.label,
|
|
448
|
-
children: s
|
|
449
|
-
})
|
|
450
|
-
})
|
|
451
|
-
})]
|
|
452
|
-
})) : null;
|
|
453
|
-
}
|
|
454
|
-
process.env.NODE_ENV !== "production" && (dt.propTypes = {
|
|
455
|
-
children: t.element.isRequired,
|
|
456
|
-
className: t.string,
|
|
457
|
-
value: t.node
|
|
458
|
-
});
|
|
459
|
-
const oo = ["aria-label", "aria-valuetext", "aria-labelledby", "component", "components", "componentsProps", "color", "classes", "className", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "orientation", "size", "step", "scale", "slotProps", "slots", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat"];
|
|
460
|
-
function it(e) {
|
|
461
|
-
return e;
|
|
462
|
-
}
|
|
463
|
-
const pt = ee("span", {
|
|
464
|
-
name: "MuiSlider",
|
|
465
|
-
slot: "Root",
|
|
466
|
-
overridesResolver: (e, o) => {
|
|
467
|
-
const {
|
|
468
|
-
ownerState: a
|
|
469
|
-
} = e;
|
|
470
|
-
return [o.root, o[`color${U(a.color)}`], a.size !== "medium" && o[`size${U(a.size)}`], a.marked && o.marked, a.orientation === "vertical" && o.vertical, a.track === "inverted" && o.trackInverted, a.track === !1 && o.trackFalse];
|
|
471
|
-
}
|
|
472
|
-
})(({
|
|
473
|
-
theme: e,
|
|
474
|
-
ownerState: o
|
|
475
|
-
}) => c({
|
|
476
|
-
borderRadius: 12,
|
|
477
|
-
boxSizing: "content-box",
|
|
478
|
-
display: "inline-block",
|
|
479
|
-
position: "relative",
|
|
480
|
-
cursor: "pointer",
|
|
481
|
-
touchAction: "none",
|
|
482
|
-
color: (e.vars || e).palette[o.color].main,
|
|
483
|
-
WebkitTapHighlightColor: "transparent"
|
|
484
|
-
}, o.orientation === "horizontal" && c({
|
|
485
|
-
height: 4,
|
|
486
|
-
width: "100%",
|
|
487
|
-
padding: "13px 0",
|
|
488
|
-
// The primary input mechanism of the device includes a pointing device of limited accuracy.
|
|
489
|
-
"@media (pointer: coarse)": {
|
|
490
|
-
// Reach 42px touch target, about ~8mm on screen.
|
|
491
|
-
padding: "20px 0"
|
|
492
|
-
}
|
|
493
|
-
}, o.size === "small" && {
|
|
494
|
-
height: 2
|
|
495
|
-
}, o.marked && {
|
|
496
|
-
marginBottom: 20
|
|
497
|
-
}), o.orientation === "vertical" && c({
|
|
498
|
-
height: "100%",
|
|
499
|
-
width: 4,
|
|
500
|
-
padding: "0 13px",
|
|
501
|
-
// The primary input mechanism of the device includes a pointing device of limited accuracy.
|
|
502
|
-
"@media (pointer: coarse)": {
|
|
503
|
-
// Reach 42px touch target, about ~8mm on screen.
|
|
504
|
-
padding: "0 20px"
|
|
505
|
-
}
|
|
506
|
-
}, o.size === "small" && {
|
|
507
|
-
width: 2
|
|
508
|
-
}, o.marked && {
|
|
509
|
-
marginRight: 44
|
|
510
|
-
}), {
|
|
511
|
-
"@media print": {
|
|
512
|
-
colorAdjust: "exact"
|
|
513
|
-
},
|
|
514
|
-
[`&.${R.disabled}`]: {
|
|
515
|
-
pointerEvents: "none",
|
|
516
|
-
cursor: "default",
|
|
517
|
-
color: (e.vars || e).palette.grey[400]
|
|
518
|
-
},
|
|
519
|
-
[`&.${R.dragging}`]: {
|
|
520
|
-
[`& .${R.thumb}, & .${R.track}`]: {
|
|
521
|
-
transition: "none"
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}));
|
|
525
|
-
process.env.NODE_ENV !== "production" && (pt.propTypes = {
|
|
526
|
-
// ----------------------------- Warning --------------------------------
|
|
527
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
528
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
529
|
-
// ----------------------------------------------------------------------
|
|
530
|
-
/**
|
|
531
|
-
* @ignore
|
|
532
|
-
*/
|
|
533
|
-
children: t.node
|
|
534
|
-
});
|
|
535
|
-
const mt = ee("span", {
|
|
536
|
-
name: "MuiSlider",
|
|
537
|
-
slot: "Rail",
|
|
538
|
-
overridesResolver: (e, o) => o.rail
|
|
539
|
-
})(({
|
|
540
|
-
ownerState: e
|
|
541
|
-
}) => c({
|
|
542
|
-
display: "block",
|
|
543
|
-
position: "absolute",
|
|
544
|
-
borderRadius: "inherit",
|
|
545
|
-
backgroundColor: "currentColor",
|
|
546
|
-
opacity: 0.38
|
|
547
|
-
}, e.orientation === "horizontal" && {
|
|
548
|
-
width: "100%",
|
|
549
|
-
height: "inherit",
|
|
550
|
-
top: "50%",
|
|
551
|
-
transform: "translateY(-50%)"
|
|
552
|
-
}, e.orientation === "vertical" && {
|
|
553
|
-
height: "100%",
|
|
554
|
-
width: "inherit",
|
|
555
|
-
left: "50%",
|
|
556
|
-
transform: "translateX(-50%)"
|
|
557
|
-
}, e.track === "inverted" && {
|
|
558
|
-
opacity: 1
|
|
559
|
-
}));
|
|
560
|
-
process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
561
|
-
// ----------------------------- Warning --------------------------------
|
|
562
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
563
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
564
|
-
// ----------------------------------------------------------------------
|
|
565
|
-
/**
|
|
566
|
-
* @ignore
|
|
567
|
-
*/
|
|
568
|
-
children: t.node
|
|
569
|
-
});
|
|
570
|
-
const ft = ee("span", {
|
|
571
|
-
name: "MuiSlider",
|
|
572
|
-
slot: "Track",
|
|
573
|
-
overridesResolver: (e, o) => o.track
|
|
574
|
-
})(({
|
|
575
|
-
theme: e,
|
|
576
|
-
ownerState: o
|
|
577
|
-
}) => {
|
|
578
|
-
const a = (
|
|
579
|
-
// Same logic as the LinearProgress track color
|
|
580
|
-
e.palette.mode === "light" ? _t(e.palette[o.color].main, 0.62) : Vt(e.palette[o.color].main, 0.5)
|
|
581
|
-
);
|
|
582
|
-
return c({
|
|
583
|
-
display: "block",
|
|
584
|
-
position: "absolute",
|
|
585
|
-
borderRadius: "inherit",
|
|
586
|
-
border: "1px solid currentColor",
|
|
587
|
-
backgroundColor: "currentColor",
|
|
588
|
-
transition: e.transitions.create(["left", "width", "bottom", "height"], {
|
|
589
|
-
duration: e.transitions.duration.shortest
|
|
590
|
-
})
|
|
591
|
-
}, o.size === "small" && {
|
|
592
|
-
border: "none"
|
|
593
|
-
}, o.orientation === "horizontal" && {
|
|
594
|
-
height: "inherit",
|
|
595
|
-
top: "50%",
|
|
596
|
-
transform: "translateY(-50%)"
|
|
597
|
-
}, o.orientation === "vertical" && {
|
|
598
|
-
width: "inherit",
|
|
599
|
-
left: "50%",
|
|
600
|
-
transform: "translateX(-50%)"
|
|
601
|
-
}, o.track === !1 && {
|
|
602
|
-
display: "none"
|
|
603
|
-
}, o.track === "inverted" && {
|
|
604
|
-
backgroundColor: e.vars ? e.vars.palette.Slider[`${o.color}Track`] : a,
|
|
605
|
-
borderColor: e.vars ? e.vars.palette.Slider[`${o.color}Track`] : a
|
|
606
|
-
});
|
|
607
|
-
});
|
|
608
|
-
process.env.NODE_ENV !== "production" && (ft.propTypes = {
|
|
609
|
-
// ----------------------------- Warning --------------------------------
|
|
610
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
611
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
612
|
-
// ----------------------------------------------------------------------
|
|
613
|
-
/**
|
|
614
|
-
* @ignore
|
|
615
|
-
*/
|
|
616
|
-
children: t.node
|
|
617
|
-
});
|
|
618
|
-
const bt = ee("span", {
|
|
619
|
-
name: "MuiSlider",
|
|
620
|
-
slot: "Thumb",
|
|
621
|
-
overridesResolver: (e, o) => {
|
|
622
|
-
const {
|
|
623
|
-
ownerState: a
|
|
624
|
-
} = e;
|
|
625
|
-
return [o.thumb, o[`thumbColor${U(a.color)}`], a.size !== "medium" && o[`thumbSize${U(a.size)}`]];
|
|
626
|
-
}
|
|
627
|
-
})(({
|
|
628
|
-
theme: e,
|
|
629
|
-
ownerState: o
|
|
630
|
-
}) => c({
|
|
631
|
-
position: "absolute",
|
|
632
|
-
width: 20,
|
|
633
|
-
height: 20,
|
|
634
|
-
boxSizing: "border-box",
|
|
635
|
-
borderRadius: "50%",
|
|
636
|
-
outline: 0,
|
|
637
|
-
backgroundColor: "currentColor",
|
|
638
|
-
display: "flex",
|
|
639
|
-
alignItems: "center",
|
|
640
|
-
justifyContent: "center",
|
|
641
|
-
transition: e.transitions.create(["box-shadow", "left", "bottom"], {
|
|
642
|
-
duration: e.transitions.duration.shortest
|
|
643
|
-
})
|
|
644
|
-
}, o.size === "small" && {
|
|
645
|
-
width: 12,
|
|
646
|
-
height: 12
|
|
647
|
-
}, o.orientation === "horizontal" && {
|
|
648
|
-
top: "50%",
|
|
649
|
-
transform: "translate(-50%, -50%)"
|
|
650
|
-
}, o.orientation === "vertical" && {
|
|
651
|
-
left: "50%",
|
|
652
|
-
transform: "translate(-50%, 50%)"
|
|
653
|
-
}, {
|
|
654
|
-
"&:before": c({
|
|
655
|
-
position: "absolute",
|
|
656
|
-
content: '""',
|
|
657
|
-
borderRadius: "inherit",
|
|
658
|
-
width: "100%",
|
|
659
|
-
height: "100%",
|
|
660
|
-
boxShadow: (e.vars || e).shadows[2]
|
|
661
|
-
}, o.size === "small" && {
|
|
662
|
-
boxShadow: "none"
|
|
663
|
-
}),
|
|
664
|
-
"&::after": {
|
|
665
|
-
position: "absolute",
|
|
666
|
-
content: '""',
|
|
667
|
-
borderRadius: "50%",
|
|
668
|
-
// 42px is the hit target
|
|
669
|
-
width: 42,
|
|
670
|
-
height: 42,
|
|
671
|
-
top: "50%",
|
|
672
|
-
left: "50%",
|
|
673
|
-
transform: "translate(-50%, -50%)"
|
|
674
|
-
},
|
|
675
|
-
[`&:hover, &.${R.focusVisible}`]: {
|
|
676
|
-
boxShadow: `0px 0px 0px 8px ${e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / 0.16)` : rt(e.palette[o.color].main, 0.16)}`,
|
|
677
|
-
"@media (hover: none)": {
|
|
678
|
-
boxShadow: "none"
|
|
679
|
-
}
|
|
680
|
-
},
|
|
681
|
-
[`&.${R.active}`]: {
|
|
682
|
-
boxShadow: `0px 0px 0px 14px ${e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / 0.16)` : rt(e.palette[o.color].main, 0.16)}`
|
|
683
|
-
},
|
|
684
|
-
[`&.${R.disabled}`]: {
|
|
685
|
-
"&:hover": {
|
|
686
|
-
boxShadow: "none"
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}));
|
|
690
|
-
process.env.NODE_ENV !== "production" && (bt.propTypes = {
|
|
691
|
-
// ----------------------------- Warning --------------------------------
|
|
692
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
693
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
694
|
-
// ----------------------------------------------------------------------
|
|
695
|
-
/**
|
|
696
|
-
* @ignore
|
|
697
|
-
*/
|
|
698
|
-
children: t.node
|
|
699
|
-
});
|
|
700
|
-
const vt = ee(dt, {
|
|
701
|
-
name: "MuiSlider",
|
|
702
|
-
slot: "ValueLabel",
|
|
703
|
-
overridesResolver: (e, o) => o.valueLabel
|
|
704
|
-
})(({
|
|
705
|
-
theme: e,
|
|
706
|
-
ownerState: o
|
|
707
|
-
}) => c({
|
|
708
|
-
[`&.${R.valueLabelOpen}`]: {
|
|
709
|
-
transform: `${o.orientation === "vertical" ? "translateY(-50%)" : "translateY(-100%)"} scale(1)`
|
|
710
|
-
},
|
|
711
|
-
zIndex: 1,
|
|
712
|
-
whiteSpace: "nowrap"
|
|
713
|
-
}, e.typography.body2, {
|
|
714
|
-
fontWeight: 500,
|
|
715
|
-
transition: e.transitions.create(["transform"], {
|
|
716
|
-
duration: e.transitions.duration.shortest
|
|
717
|
-
}),
|
|
718
|
-
transform: `${o.orientation === "vertical" ? "translateY(-50%)" : "translateY(-100%)"} scale(0)`,
|
|
719
|
-
position: "absolute",
|
|
720
|
-
backgroundColor: (e.vars || e).palette.grey[600],
|
|
721
|
-
borderRadius: 2,
|
|
722
|
-
color: (e.vars || e).palette.common.white,
|
|
723
|
-
display: "flex",
|
|
724
|
-
alignItems: "center",
|
|
725
|
-
justifyContent: "center",
|
|
726
|
-
padding: "0.25rem 0.75rem"
|
|
727
|
-
}, o.orientation === "horizontal" && {
|
|
728
|
-
top: "-10px",
|
|
729
|
-
transformOrigin: "bottom center",
|
|
730
|
-
"&:before": {
|
|
731
|
-
position: "absolute",
|
|
732
|
-
content: '""',
|
|
733
|
-
width: 8,
|
|
734
|
-
height: 8,
|
|
735
|
-
transform: "translate(-50%, 50%) rotate(45deg)",
|
|
736
|
-
backgroundColor: "inherit",
|
|
737
|
-
bottom: 0,
|
|
738
|
-
left: "50%"
|
|
739
|
-
}
|
|
740
|
-
}, o.orientation === "vertical" && {
|
|
741
|
-
right: o.size === "small" ? "20px" : "30px",
|
|
742
|
-
top: "50%",
|
|
743
|
-
transformOrigin: "right center",
|
|
744
|
-
"&:before": {
|
|
745
|
-
position: "absolute",
|
|
746
|
-
content: '""',
|
|
747
|
-
width: 8,
|
|
748
|
-
height: 8,
|
|
749
|
-
transform: "translate(-50%, -50%) rotate(45deg)",
|
|
750
|
-
backgroundColor: "inherit",
|
|
751
|
-
right: "-20%",
|
|
752
|
-
top: "50%"
|
|
753
|
-
}
|
|
754
|
-
}, o.size === "small" && {
|
|
755
|
-
fontSize: e.typography.pxToRem(12),
|
|
756
|
-
padding: "0.25rem 0.5rem"
|
|
757
|
-
}));
|
|
758
|
-
process.env.NODE_ENV !== "production" && (vt.propTypes = {
|
|
759
|
-
// ----------------------------- Warning --------------------------------
|
|
760
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
761
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
762
|
-
// ----------------------------------------------------------------------
|
|
763
|
-
/**
|
|
764
|
-
* @ignore
|
|
765
|
-
*/
|
|
766
|
-
children: t.node
|
|
767
|
-
});
|
|
768
|
-
const ht = ee("span", {
|
|
769
|
-
name: "MuiSlider",
|
|
770
|
-
slot: "Mark",
|
|
771
|
-
shouldForwardProp: (e) => ct(e) && e !== "markActive",
|
|
772
|
-
overridesResolver: (e, o) => {
|
|
773
|
-
const {
|
|
774
|
-
markActive: a
|
|
775
|
-
} = e;
|
|
776
|
-
return [o.mark, a && o.markActive];
|
|
777
|
-
}
|
|
778
|
-
})(({
|
|
779
|
-
theme: e,
|
|
780
|
-
ownerState: o,
|
|
781
|
-
markActive: a
|
|
782
|
-
}) => c({
|
|
783
|
-
position: "absolute",
|
|
784
|
-
width: 2,
|
|
785
|
-
height: 2,
|
|
786
|
-
borderRadius: 1,
|
|
787
|
-
backgroundColor: "currentColor"
|
|
788
|
-
}, o.orientation === "horizontal" && {
|
|
789
|
-
top: "50%",
|
|
790
|
-
transform: "translate(-1px, -50%)"
|
|
791
|
-
}, o.orientation === "vertical" && {
|
|
792
|
-
left: "50%",
|
|
793
|
-
transform: "translate(-50%, 1px)"
|
|
794
|
-
}, a && {
|
|
795
|
-
backgroundColor: (e.vars || e).palette.background.paper,
|
|
796
|
-
opacity: 0.8
|
|
797
|
-
}));
|
|
798
|
-
process.env.NODE_ENV !== "production" && (ht.propTypes = {
|
|
799
|
-
// ----------------------------- Warning --------------------------------
|
|
800
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
801
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
802
|
-
// ----------------------------------------------------------------------
|
|
803
|
-
/**
|
|
804
|
-
* @ignore
|
|
805
|
-
*/
|
|
806
|
-
children: t.node
|
|
807
|
-
});
|
|
808
|
-
const gt = ee("span", {
|
|
809
|
-
name: "MuiSlider",
|
|
810
|
-
slot: "MarkLabel",
|
|
811
|
-
shouldForwardProp: (e) => ct(e) && e !== "markLabelActive",
|
|
812
|
-
overridesResolver: (e, o) => o.markLabel
|
|
813
|
-
})(({
|
|
814
|
-
theme: e,
|
|
815
|
-
ownerState: o,
|
|
816
|
-
markLabelActive: a
|
|
817
|
-
}) => c({}, e.typography.body2, {
|
|
818
|
-
color: (e.vars || e).palette.text.secondary,
|
|
819
|
-
position: "absolute",
|
|
820
|
-
whiteSpace: "nowrap"
|
|
821
|
-
}, o.orientation === "horizontal" && {
|
|
822
|
-
top: 30,
|
|
823
|
-
transform: "translateX(-50%)",
|
|
824
|
-
"@media (pointer: coarse)": {
|
|
825
|
-
top: 40
|
|
826
|
-
}
|
|
827
|
-
}, o.orientation === "vertical" && {
|
|
828
|
-
left: 36,
|
|
829
|
-
transform: "translateY(50%)",
|
|
830
|
-
"@media (pointer: coarse)": {
|
|
831
|
-
left: 44
|
|
832
|
-
}
|
|
833
|
-
}, a && {
|
|
834
|
-
color: (e.vars || e).palette.text.primary
|
|
835
|
-
}));
|
|
836
|
-
process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
837
|
-
// ----------------------------- Warning --------------------------------
|
|
838
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
839
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
840
|
-
// ----------------------------------------------------------------------
|
|
841
|
-
/**
|
|
842
|
-
* @ignore
|
|
843
|
-
*/
|
|
844
|
-
children: t.node
|
|
845
|
-
});
|
|
846
|
-
const ro = (e) => {
|
|
847
|
-
const {
|
|
848
|
-
disabled: o,
|
|
849
|
-
dragging: a,
|
|
850
|
-
marked: s,
|
|
851
|
-
orientation: d,
|
|
852
|
-
track: L,
|
|
853
|
-
classes: $,
|
|
854
|
-
color: f,
|
|
855
|
-
size: b
|
|
856
|
-
} = e, q = {
|
|
857
|
-
root: ["root", o && "disabled", a && "dragging", s && "marked", d === "vertical" && "vertical", L === "inverted" && "trackInverted", L === !1 && "trackFalse", f && `color${U(f)}`, b && `size${U(b)}`],
|
|
858
|
-
rail: ["rail"],
|
|
859
|
-
track: ["track"],
|
|
860
|
-
mark: ["mark"],
|
|
861
|
-
markActive: ["markActive"],
|
|
862
|
-
markLabel: ["markLabel"],
|
|
863
|
-
markLabelActive: ["markLabelActive"],
|
|
864
|
-
valueLabel: ["valueLabel"],
|
|
865
|
-
thumb: ["thumb", o && "disabled", b && `thumbSize${U(b)}`, f && `thumbColor${U(f)}`],
|
|
866
|
-
active: ["active"],
|
|
867
|
-
disabled: ["disabled"],
|
|
868
|
-
focusVisible: ["focusVisible"]
|
|
869
|
-
};
|
|
870
|
-
return At(q, Zt, $);
|
|
871
|
-
}, ao = ({
|
|
872
|
-
children: e
|
|
873
|
-
}) => e, yt = /* @__PURE__ */ T.forwardRef(function(o, a) {
|
|
874
|
-
var s, d, L, $, f, b, q, ue, X, te, ge, de, _, ye, ke, M, pe, F, xe, H, me, fe, K, V;
|
|
875
|
-
const Y = wt({
|
|
876
|
-
props: o,
|
|
877
|
-
name: "MuiSlider"
|
|
878
|
-
}), W = It().direction === "rtl", {
|
|
879
|
-
"aria-label": g,
|
|
880
|
-
"aria-valuetext": oe,
|
|
881
|
-
"aria-labelledby": j,
|
|
882
|
-
// eslint-disable-next-line react/prop-types
|
|
883
|
-
component: Te = "span",
|
|
884
|
-
components: w = {},
|
|
885
|
-
componentsProps: A = {},
|
|
886
|
-
color: je = "primary",
|
|
887
|
-
classes: Le,
|
|
888
|
-
className: re,
|
|
889
|
-
disableSwap: S = !1,
|
|
890
|
-
disabled: Se = !1,
|
|
891
|
-
getAriaLabel: be,
|
|
892
|
-
getAriaValueText: Pe,
|
|
893
|
-
marks: we = !1,
|
|
894
|
-
max: ae = 100,
|
|
895
|
-
min: G = 0,
|
|
896
|
-
orientation: ne = "horizontal",
|
|
897
|
-
size: le = "medium",
|
|
898
|
-
step: J = 1,
|
|
899
|
-
scale: E = it,
|
|
900
|
-
slotProps: v,
|
|
901
|
-
slots: m,
|
|
902
|
-
track: se = "normal",
|
|
903
|
-
valueLabelDisplay: Q = "off",
|
|
904
|
-
valueLabelFormat: Z = it
|
|
905
|
-
} = Y, Ae = Et(Y, oo), x = c({}, Y, {
|
|
906
|
-
isRtl: W,
|
|
907
|
-
max: ae,
|
|
908
|
-
min: G,
|
|
909
|
-
classes: Le,
|
|
910
|
-
disabled: Se,
|
|
911
|
-
disableSwap: S,
|
|
912
|
-
orientation: ne,
|
|
913
|
-
marks: we,
|
|
914
|
-
color: je,
|
|
915
|
-
size: le,
|
|
916
|
-
step: J,
|
|
917
|
-
scale: E,
|
|
918
|
-
track: se,
|
|
919
|
-
valueLabelDisplay: Q,
|
|
920
|
-
valueLabelFormat: Z
|
|
921
|
-
}), {
|
|
922
|
-
axisProps: ie,
|
|
923
|
-
getRootProps: Ge,
|
|
924
|
-
getHiddenInputProps: Je,
|
|
925
|
-
getThumbProps: r,
|
|
926
|
-
open: n,
|
|
927
|
-
active: l,
|
|
928
|
-
axis: i,
|
|
929
|
-
focusedThumbIndex: y,
|
|
930
|
-
range: P,
|
|
931
|
-
dragging: p,
|
|
932
|
-
marks: O,
|
|
933
|
-
values: u,
|
|
934
|
-
trackOffset: I,
|
|
935
|
-
trackLeap: ve
|
|
936
|
-
} = Gt(c({}, x, {
|
|
937
|
-
rootRef: a
|
|
938
|
-
}));
|
|
939
|
-
x.marked = O.length > 0 && O.some((h) => h.label), x.dragging = p, x.focusedThumbIndex = y;
|
|
940
|
-
const C = ro(x), Ie = (s = (d = m == null ? void 0 : m.root) != null ? d : w.Root) != null ? s : pt, Qe = (L = ($ = m == null ? void 0 : m.rail) != null ? $ : w.Rail) != null ? L : mt, Ze = (f = (b = m == null ? void 0 : m.track) != null ? b : w.Track) != null ? f : ft, et = (q = (ue = m == null ? void 0 : m.thumb) != null ? ue : w.Thumb) != null ? q : bt, tt = (X = (te = m == null ? void 0 : m.valueLabel) != null ? te : w.ValueLabel) != null ? X : vt, Me = (ge = (de = m == null ? void 0 : m.mark) != null ? de : w.Mark) != null ? ge : ht, ze = (_ = (ye = m == null ? void 0 : m.markLabel) != null ? ye : w.MarkLabel) != null ? _ : gt, ot = (ke = (M = m == null ? void 0 : m.input) != null ? M : w.Input) != null ? ke : "input", De = (pe = v == null ? void 0 : v.root) != null ? pe : A.root, kt = (F = v == null ? void 0 : v.rail) != null ? F : A.rail, Fe = (xe = v == null ? void 0 : v.track) != null ? xe : A.track, He = (H = v == null ? void 0 : v.thumb) != null ? H : A.thumb, Ye = (me = v == null ? void 0 : v.valueLabel) != null ? me : A.valueLabel, xt = (fe = v == null ? void 0 : v.mark) != null ? fe : A.mark, Tt = (K = v == null ? void 0 : v.markLabel) != null ? K : A.markLabel, Lt = (V = v == null ? void 0 : v.input) != null ? V : A.input, St = B({
|
|
941
|
-
elementType: Ie,
|
|
942
|
-
getSlotProps: Ge,
|
|
943
|
-
externalSlotProps: De,
|
|
944
|
-
externalForwardedProps: Ae,
|
|
945
|
-
additionalProps: c({}, Qt(Ie) && {
|
|
946
|
-
as: Te
|
|
947
|
-
}),
|
|
948
|
-
ownerState: c({}, x, De == null ? void 0 : De.ownerState),
|
|
949
|
-
className: [C.root, re]
|
|
950
|
-
}), Pt = B({
|
|
951
|
-
elementType: Qe,
|
|
952
|
-
externalSlotProps: kt,
|
|
953
|
-
ownerState: x,
|
|
954
|
-
className: C.rail
|
|
955
|
-
}), Ot = B({
|
|
956
|
-
elementType: Ze,
|
|
957
|
-
externalSlotProps: Fe,
|
|
958
|
-
additionalProps: {
|
|
959
|
-
style: c({}, ie[i].offset(I), ie[i].leap(ve))
|
|
960
|
-
},
|
|
961
|
-
ownerState: c({}, x, Fe == null ? void 0 : Fe.ownerState),
|
|
962
|
-
className: C.track
|
|
963
|
-
}), Be = B({
|
|
964
|
-
elementType: et,
|
|
965
|
-
getSlotProps: r,
|
|
966
|
-
externalSlotProps: He,
|
|
967
|
-
ownerState: c({}, x, He == null ? void 0 : He.ownerState),
|
|
968
|
-
className: C.thumb
|
|
969
|
-
}), Ct = B({
|
|
970
|
-
elementType: tt,
|
|
971
|
-
externalSlotProps: Ye,
|
|
972
|
-
ownerState: c({}, x, Ye == null ? void 0 : Ye.ownerState),
|
|
973
|
-
className: C.valueLabel
|
|
974
|
-
}), Ue = B({
|
|
975
|
-
elementType: Me,
|
|
976
|
-
externalSlotProps: xt,
|
|
977
|
-
ownerState: x,
|
|
978
|
-
className: C.mark
|
|
979
|
-
}), qe = B({
|
|
980
|
-
elementType: ze,
|
|
981
|
-
externalSlotProps: Tt,
|
|
982
|
-
ownerState: x,
|
|
983
|
-
className: C.markLabel
|
|
984
|
-
}), Nt = B({
|
|
985
|
-
elementType: ot,
|
|
986
|
-
getSlotProps: Je,
|
|
987
|
-
externalSlotProps: Lt,
|
|
988
|
-
ownerState: x
|
|
989
|
-
});
|
|
990
|
-
return /* @__PURE__ */ N.jsxs(Ie, c({}, St, {
|
|
991
|
-
children: [/* @__PURE__ */ N.jsx(Qe, c({}, Pt)), /* @__PURE__ */ N.jsx(Ze, c({}, Ot)), O.filter((h) => h.value >= G && h.value <= ae).map((h, k) => {
|
|
992
|
-
const Xe = Ve(h.value, G, ae), Oe = ie[i].offset(Xe);
|
|
993
|
-
let D;
|
|
994
|
-
return se === !1 ? D = u.indexOf(h.value) !== -1 : D = se === "normal" && (P ? h.value >= u[0] && h.value <= u[u.length - 1] : h.value <= u[0]) || se === "inverted" && (P ? h.value <= u[0] || h.value >= u[u.length - 1] : h.value >= u[0]), /* @__PURE__ */ N.jsxs(T.Fragment, {
|
|
995
|
-
children: [/* @__PURE__ */ N.jsx(Me, c({
|
|
996
|
-
"data-index": k
|
|
997
|
-
}, Ue, !Re(Me) && {
|
|
998
|
-
markActive: D
|
|
999
|
-
}, {
|
|
1000
|
-
style: c({}, Oe, Ue.style),
|
|
1001
|
-
className: ce(Ue.className, D && C.markActive)
|
|
1002
|
-
})), h.label != null ? /* @__PURE__ */ N.jsx(ze, c({
|
|
1003
|
-
"aria-hidden": !0,
|
|
1004
|
-
"data-index": k
|
|
1005
|
-
}, qe, !Re(ze) && {
|
|
1006
|
-
markLabelActive: D
|
|
1007
|
-
}, {
|
|
1008
|
-
style: c({}, Oe, qe.style),
|
|
1009
|
-
className: ce(C.markLabel, qe.className, D && C.markLabelActive),
|
|
1010
|
-
children: h.label
|
|
1011
|
-
})) : null]
|
|
1012
|
-
}, k);
|
|
1013
|
-
}), u.map((h, k) => {
|
|
1014
|
-
const Xe = Ve(h, G, ae), Oe = ie[i].offset(Xe), D = Q === "off" ? ao : tt;
|
|
1015
|
-
return (
|
|
1016
|
-
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
1017
|
-
/* @__PURE__ */ N.jsx(D, c({}, !Re(D) && {
|
|
1018
|
-
valueLabelFormat: Z,
|
|
1019
|
-
valueLabelDisplay: Q,
|
|
1020
|
-
value: typeof Z == "function" ? Z(E(h), k) : Z,
|
|
1021
|
-
index: k,
|
|
1022
|
-
open: n === k || l === k || Q === "on",
|
|
1023
|
-
disabled: Se
|
|
1024
|
-
}, Ct, {
|
|
1025
|
-
children: /* @__PURE__ */ N.jsx(et, c({
|
|
1026
|
-
"data-index": k
|
|
1027
|
-
}, Be, {
|
|
1028
|
-
className: ce(C.thumb, Be.className, l === k && C.active, y === k && C.focusVisible),
|
|
1029
|
-
style: c({}, Oe, {
|
|
1030
|
-
pointerEvents: S && l !== k ? "none" : void 0
|
|
1031
|
-
}, Be.style),
|
|
1032
|
-
children: /* @__PURE__ */ N.jsx(ot, c({
|
|
1033
|
-
"data-index": k,
|
|
1034
|
-
"aria-label": be ? be(k) : g,
|
|
1035
|
-
"aria-valuenow": E(h),
|
|
1036
|
-
"aria-labelledby": j,
|
|
1037
|
-
"aria-valuetext": Pe ? Pe(E(h), k) : oe,
|
|
1038
|
-
value: u[k]
|
|
1039
|
-
}, Nt))
|
|
1040
|
-
}))
|
|
1041
|
-
}), k)
|
|
1042
|
-
);
|
|
1043
|
-
})]
|
|
1044
|
-
}));
|
|
1045
|
-
});
|
|
1046
|
-
process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
1047
|
-
// ----------------------------- Warning --------------------------------
|
|
1048
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1049
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1050
|
-
// ----------------------------------------------------------------------
|
|
1051
|
-
/**
|
|
1052
|
-
* The label of the slider.
|
|
1053
|
-
*/
|
|
1054
|
-
"aria-label": nt(t.string, (e) => Array.isArray(e.value || e.defaultValue) && e["aria-label"] != null ? new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider.") : null),
|
|
1055
|
-
/**
|
|
1056
|
-
* The id of the element containing a label for the slider.
|
|
1057
|
-
*/
|
|
1058
|
-
"aria-labelledby": t.string,
|
|
1059
|
-
/**
|
|
1060
|
-
* A string value that provides a user-friendly name for the current value of the slider.
|
|
1061
|
-
*/
|
|
1062
|
-
"aria-valuetext": nt(t.string, (e) => Array.isArray(e.value || e.defaultValue) && e["aria-valuetext"] != null ? new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider.") : null),
|
|
1063
|
-
/**
|
|
1064
|
-
* @ignore
|
|
1065
|
-
*/
|
|
1066
|
-
children: t.node,
|
|
1067
|
-
/**
|
|
1068
|
-
* Override or extend the styles applied to the component.
|
|
1069
|
-
*/
|
|
1070
|
-
classes: t.object,
|
|
1071
|
-
/**
|
|
1072
|
-
* @ignore
|
|
1073
|
-
*/
|
|
1074
|
-
className: t.string,
|
|
1075
|
-
/**
|
|
1076
|
-
* The color of the component.
|
|
1077
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1078
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1079
|
-
* @default 'primary'
|
|
1080
|
-
*/
|
|
1081
|
-
color: t.oneOfType([t.oneOf(["primary", "secondary"]), t.string]),
|
|
1082
|
-
/**
|
|
1083
|
-
* The components used for each slot inside.
|
|
1084
|
-
*
|
|
1085
|
-
* This prop is an alias for the `slots` prop.
|
|
1086
|
-
* It's recommended to use the `slots` prop instead.
|
|
1087
|
-
*
|
|
1088
|
-
* @default {}
|
|
1089
|
-
*/
|
|
1090
|
-
components: t.shape({
|
|
1091
|
-
Input: t.elementType,
|
|
1092
|
-
Mark: t.elementType,
|
|
1093
|
-
MarkLabel: t.elementType,
|
|
1094
|
-
Rail: t.elementType,
|
|
1095
|
-
Root: t.elementType,
|
|
1096
|
-
Thumb: t.elementType,
|
|
1097
|
-
Track: t.elementType,
|
|
1098
|
-
ValueLabel: t.elementType
|
|
1099
|
-
}),
|
|
1100
|
-
/**
|
|
1101
|
-
* The extra props for the slot components.
|
|
1102
|
-
* You can override the existing props or add new ones.
|
|
1103
|
-
*
|
|
1104
|
-
* This prop is an alias for the `slotProps` prop.
|
|
1105
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
1106
|
-
*
|
|
1107
|
-
* @default {}
|
|
1108
|
-
*/
|
|
1109
|
-
componentsProps: t.shape({
|
|
1110
|
-
input: t.oneOfType([t.func, t.object]),
|
|
1111
|
-
mark: t.oneOfType([t.func, t.object]),
|
|
1112
|
-
markLabel: t.oneOfType([t.func, t.object]),
|
|
1113
|
-
rail: t.oneOfType([t.func, t.object]),
|
|
1114
|
-
root: t.oneOfType([t.func, t.object]),
|
|
1115
|
-
thumb: t.oneOfType([t.func, t.object]),
|
|
1116
|
-
track: t.oneOfType([t.func, t.object]),
|
|
1117
|
-
valueLabel: t.oneOfType([t.func, t.shape({
|
|
1118
|
-
children: t.element,
|
|
1119
|
-
className: t.string,
|
|
1120
|
-
open: t.bool,
|
|
1121
|
-
style: t.object,
|
|
1122
|
-
value: t.number,
|
|
1123
|
-
valueLabelDisplay: t.oneOf(["auto", "off", "on"])
|
|
1124
|
-
})])
|
|
1125
|
-
}),
|
|
1126
|
-
/**
|
|
1127
|
-
* The default value. Use when the component is not controlled.
|
|
1128
|
-
*/
|
|
1129
|
-
defaultValue: t.oneOfType([t.arrayOf(t.number), t.number]),
|
|
1130
|
-
/**
|
|
1131
|
-
* If `true`, the component is disabled.
|
|
1132
|
-
* @default false
|
|
1133
|
-
*/
|
|
1134
|
-
disabled: t.bool,
|
|
1135
|
-
/**
|
|
1136
|
-
* If `true`, the active thumb doesn't swap when moving pointer over a thumb while dragging another thumb.
|
|
1137
|
-
* @default false
|
|
1138
|
-
*/
|
|
1139
|
-
disableSwap: t.bool,
|
|
1140
|
-
/**
|
|
1141
|
-
* Accepts a function which returns a string value that provides a user-friendly name for the thumb labels of the slider.
|
|
1142
|
-
* This is important for screen reader users.
|
|
1143
|
-
* @param {number} index The thumb label's index to format.
|
|
1144
|
-
* @returns {string}
|
|
1145
|
-
*/
|
|
1146
|
-
getAriaLabel: t.func,
|
|
1147
|
-
/**
|
|
1148
|
-
* Accepts a function which returns a string value that provides a user-friendly name for the current value of the slider.
|
|
1149
|
-
* This is important for screen reader users.
|
|
1150
|
-
* @param {number} value The thumb label's value to format.
|
|
1151
|
-
* @param {number} index The thumb label's index to format.
|
|
1152
|
-
* @returns {string}
|
|
1153
|
-
*/
|
|
1154
|
-
getAriaValueText: t.func,
|
|
1155
|
-
/**
|
|
1156
|
-
* Marks indicate predetermined values to which the user can move the slider.
|
|
1157
|
-
* If `true` the marks are spaced according the value of the `step` prop.
|
|
1158
|
-
* If an array, it should contain objects with `value` and an optional `label` keys.
|
|
1159
|
-
* @default false
|
|
1160
|
-
*/
|
|
1161
|
-
marks: t.oneOfType([t.arrayOf(t.shape({
|
|
1162
|
-
label: t.node,
|
|
1163
|
-
value: t.number.isRequired
|
|
1164
|
-
})), t.bool]),
|
|
1165
|
-
/**
|
|
1166
|
-
* The maximum allowed value of the slider.
|
|
1167
|
-
* Should not be equal to min.
|
|
1168
|
-
* @default 100
|
|
1169
|
-
*/
|
|
1170
|
-
max: t.number,
|
|
1171
|
-
/**
|
|
1172
|
-
* The minimum allowed value of the slider.
|
|
1173
|
-
* Should not be equal to max.
|
|
1174
|
-
* @default 0
|
|
1175
|
-
*/
|
|
1176
|
-
min: t.number,
|
|
1177
|
-
/**
|
|
1178
|
-
* Name attribute of the hidden `input` element.
|
|
1179
|
-
*/
|
|
1180
|
-
name: t.string,
|
|
1181
|
-
/**
|
|
1182
|
-
* Callback function that is fired when the slider's value changed.
|
|
1183
|
-
*
|
|
1184
|
-
* @param {Event} event The event source of the callback.
|
|
1185
|
-
* You can pull out the new value by accessing `event.target.value` (any).
|
|
1186
|
-
* **Warning**: This is a generic event not a change event.
|
|
1187
|
-
* @param {number | number[]} value The new value.
|
|
1188
|
-
* @param {number} activeThumb Index of the currently moved thumb.
|
|
1189
|
-
*/
|
|
1190
|
-
onChange: t.func,
|
|
1191
|
-
/**
|
|
1192
|
-
* Callback function that is fired when the `mouseup` is triggered.
|
|
1193
|
-
*
|
|
1194
|
-
* @param {React.SyntheticEvent | Event} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
1195
|
-
* @param {number | number[]} value The new value.
|
|
1196
|
-
*/
|
|
1197
|
-
onChangeCommitted: t.func,
|
|
1198
|
-
/**
|
|
1199
|
-
* The component orientation.
|
|
1200
|
-
* @default 'horizontal'
|
|
1201
|
-
*/
|
|
1202
|
-
orientation: t.oneOf(["horizontal", "vertical"]),
|
|
1203
|
-
/**
|
|
1204
|
-
* A transformation function, to change the scale of the slider.
|
|
1205
|
-
* @param {any} x
|
|
1206
|
-
* @returns {any}
|
|
1207
|
-
* @default function Identity(x) {
|
|
1208
|
-
* return x;
|
|
1209
|
-
* }
|
|
1210
|
-
*/
|
|
1211
|
-
scale: t.func,
|
|
1212
|
-
/**
|
|
1213
|
-
* The size of the slider.
|
|
1214
|
-
* @default 'medium'
|
|
1215
|
-
*/
|
|
1216
|
-
size: t.oneOfType([t.oneOf(["small", "medium"]), t.string]),
|
|
1217
|
-
/**
|
|
1218
|
-
* The props used for each slot inside the Slider.
|
|
1219
|
-
* @default {}
|
|
1220
|
-
*/
|
|
1221
|
-
slotProps: t.shape({
|
|
1222
|
-
input: t.oneOfType([t.func, t.object]),
|
|
1223
|
-
mark: t.oneOfType([t.func, t.object]),
|
|
1224
|
-
markLabel: t.oneOfType([t.func, t.object]),
|
|
1225
|
-
rail: t.oneOfType([t.func, t.object]),
|
|
1226
|
-
root: t.oneOfType([t.func, t.object]),
|
|
1227
|
-
thumb: t.oneOfType([t.func, t.object]),
|
|
1228
|
-
track: t.oneOfType([t.func, t.object]),
|
|
1229
|
-
valueLabel: t.oneOfType([t.func, t.shape({
|
|
1230
|
-
children: t.element,
|
|
1231
|
-
className: t.string,
|
|
1232
|
-
open: t.bool,
|
|
1233
|
-
style: t.object,
|
|
1234
|
-
value: t.number,
|
|
1235
|
-
valueLabelDisplay: t.oneOf(["auto", "off", "on"])
|
|
1236
|
-
})])
|
|
1237
|
-
}),
|
|
1238
|
-
/**
|
|
1239
|
-
* The components used for each slot inside the Slider.
|
|
1240
|
-
* Either a string to use a HTML element or a component.
|
|
1241
|
-
* @default {}
|
|
1242
|
-
*/
|
|
1243
|
-
slots: t.shape({
|
|
1244
|
-
input: t.elementType,
|
|
1245
|
-
mark: t.elementType,
|
|
1246
|
-
markLabel: t.elementType,
|
|
1247
|
-
rail: t.elementType,
|
|
1248
|
-
root: t.elementType,
|
|
1249
|
-
thumb: t.elementType,
|
|
1250
|
-
track: t.elementType,
|
|
1251
|
-
valueLabel: t.elementType
|
|
1252
|
-
}),
|
|
1253
|
-
/**
|
|
1254
|
-
* The granularity with which the slider can step through values. (A "discrete" slider.)
|
|
1255
|
-
* The `min` prop serves as the origin for the valid values.
|
|
1256
|
-
* We recommend (max - min) to be evenly divisible by the step.
|
|
1257
|
-
*
|
|
1258
|
-
* When step is `null`, the thumb can only be slid onto marks provided with the `marks` prop.
|
|
1259
|
-
* @default 1
|
|
1260
|
-
*/
|
|
1261
|
-
step: t.number,
|
|
1262
|
-
/**
|
|
1263
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1264
|
-
*/
|
|
1265
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
1266
|
-
/**
|
|
1267
|
-
* Tab index attribute of the hidden `input` element.
|
|
1268
|
-
*/
|
|
1269
|
-
tabIndex: t.number,
|
|
1270
|
-
/**
|
|
1271
|
-
* The track presentation:
|
|
1272
|
-
*
|
|
1273
|
-
* - `normal` the track will render a bar representing the slider value.
|
|
1274
|
-
* - `inverted` the track will render a bar representing the remaining slider value.
|
|
1275
|
-
* - `false` the track will render without a bar.
|
|
1276
|
-
* @default 'normal'
|
|
1277
|
-
*/
|
|
1278
|
-
track: t.oneOf(["inverted", "normal", !1]),
|
|
1279
|
-
/**
|
|
1280
|
-
* The value of the slider.
|
|
1281
|
-
* For ranged sliders, provide an array with two values.
|
|
1282
|
-
*/
|
|
1283
|
-
value: t.oneOfType([t.arrayOf(t.number), t.number]),
|
|
1284
|
-
/**
|
|
1285
|
-
* Controls when the value label is displayed:
|
|
1286
|
-
*
|
|
1287
|
-
* - `auto` the value label will display when the thumb is hovered or focused.
|
|
1288
|
-
* - `on` will display persistently.
|
|
1289
|
-
* - `off` will never display.
|
|
1290
|
-
* @default 'off'
|
|
1291
|
-
*/
|
|
1292
|
-
valueLabelDisplay: t.oneOf(["auto", "off", "on"]),
|
|
1293
|
-
/**
|
|
1294
|
-
* The format function the value label's value.
|
|
1295
|
-
*
|
|
1296
|
-
* When a function is provided, it should have the following signature:
|
|
1297
|
-
*
|
|
1298
|
-
* - {number} value The value label's value to format
|
|
1299
|
-
* - {number} index The value label's index to format
|
|
1300
|
-
* @param {any} x
|
|
1301
|
-
* @returns {any}
|
|
1302
|
-
* @default function Identity(x) {
|
|
1303
|
-
* return x;
|
|
1304
|
-
* }
|
|
1305
|
-
*/
|
|
1306
|
-
valueLabelFormat: t.oneOfType([t.func, t.string])
|
|
1307
|
-
});
|
|
1308
|
-
const no = yt;
|
|
1309
|
-
const yo = ({ ...e }) => /* @__PURE__ */ $t.jsxDEV(
|
|
1310
|
-
no,
|
|
1311
|
-
{
|
|
1312
|
-
className: "kdpa-slider",
|
|
1313
|
-
"aria-labelledby": "discrete-slider",
|
|
1314
|
-
...e
|
|
1315
|
-
},
|
|
1316
|
-
void 0,
|
|
1317
|
-
!1,
|
|
1318
|
-
{
|
|
1319
|
-
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Slider/KdpaSlider.tsx",
|
|
1320
|
-
lineNumber: 8,
|
|
1321
|
-
columnNumber: 5
|
|
1322
|
-
},
|
|
1323
|
-
globalThis
|
|
1324
|
-
);
|
|
1325
|
-
export {
|
|
1326
|
-
yo as K
|
|
1327
|
-
};
|