@sitecore/sc-contenthub-blok 0.0.36 → 0.0.38
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/BlokTheme.js +24 -0
- package/dist/BlokTheme.js.map +1 -1
- package/dist/Components/BlokButton/BlokButton.d.ts +9 -1
- package/dist/Components/BlokButton/BlokButton.js +11 -1
- package/dist/Components/BlokButton/BlokButton.js.map +1 -1
- package/dist/Components/BlokButton/BlokButton.stories.js +1 -0
- package/dist/Components/BlokButton/BlokButton.stories.js.map +1 -1
- package/dist/Components/BlokIconButton/BlokIconButton.stories.js +1 -0
- package/dist/Components/BlokIconButton/BlokIconButton.stories.js.map +1 -1
- package/esm/BlokTheme.js +24 -0
- package/esm/BlokTheme.js.map +1 -1
- package/esm/Components/BlokButton/BlokButton.js +11 -1
- package/esm/Components/BlokButton/BlokButton.js.map +1 -1
- package/node_modules/@mui/core-downloads-tracker/package.json +1 -1
- package/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +4 -3
- package/node_modules/@mui/material/Alert/Alert.d.ts +69 -0
- package/node_modules/@mui/material/Alert/Alert.js +53 -21
- package/node_modules/@mui/material/AppBar/AppBar.d.ts +1 -1
- package/node_modules/@mui/material/AppBar/AppBar.js +1 -1
- package/node_modules/@mui/material/Autocomplete/Autocomplete.d.ts +1 -1
- package/node_modules/@mui/material/Autocomplete/Autocomplete.js +42 -55
- package/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +5 -4
- package/node_modules/@mui/material/Backdrop/Backdrop.js +1 -9
- package/node_modules/@mui/material/Box/Box.d.ts +3 -1
- package/node_modules/@mui/material/Button/Button.d.ts +18 -0
- package/node_modules/@mui/material/Button/Button.js +233 -15
- package/node_modules/@mui/material/Button/buttonClasses.d.ts +14 -0
- package/node_modules/@mui/material/Button/buttonClasses.js +1 -1
- package/node_modules/@mui/material/ButtonBase/ButtonBase.d.ts +2 -0
- package/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.js +2 -0
- package/node_modules/@mui/material/ButtonGroup/ButtonGroupContext.js +2 -0
- package/node_modules/@mui/material/CHANGELOG.md +240 -2
- package/node_modules/@mui/material/CardHeader/CardHeader.d.ts +114 -1
- package/node_modules/@mui/material/CardHeader/CardHeader.js +106 -37
- package/node_modules/@mui/material/CircularProgress/CircularProgress.js +2 -2
- package/node_modules/@mui/material/Collapse/Collapse.js +5 -4
- package/node_modules/@mui/material/Dialog/Dialog.d.ts +85 -1
- package/node_modules/@mui/material/Dialog/Dialog.js +91 -20
- package/node_modules/@mui/material/Dialog/DialogContext.js +2 -0
- package/node_modules/@mui/material/Drawer/Drawer.js +1 -1
- package/node_modules/@mui/material/Drawer/drawerClasses.d.ts +32 -8
- package/node_modules/@mui/material/Drawer/drawerClasses.js +1 -1
- package/node_modules/@mui/material/Fade/Fade.js +5 -2
- package/node_modules/@mui/material/FilledInput/FilledInput.js +1 -3
- package/node_modules/@mui/material/FormControl/FormControl.js +14 -15
- package/node_modules/@mui/material/FormControl/FormControlContext.js +2 -0
- package/node_modules/@mui/material/FormLabel/FormLabel.js +5 -8
- package/node_modules/@mui/material/Grid/Grid.js +2 -2
- package/node_modules/@mui/material/Grow/Grow.js +5 -2
- package/node_modules/@mui/material/Hidden/withWidth.js +2 -0
- package/node_modules/@mui/material/Icon/Icon.js +1 -3
- package/node_modules/@mui/material/IconButton/IconButton.d.ts +13 -0
- package/node_modules/@mui/material/IconButton/IconButton.js +80 -7
- package/node_modules/@mui/material/IconButton/iconButtonClasses.d.ts +6 -0
- package/node_modules/@mui/material/IconButton/iconButtonClasses.js +1 -1
- package/node_modules/@mui/material/Input/Input.js +1 -3
- package/node_modules/@mui/material/LinearProgress/LinearProgress.js +4 -4
- package/node_modules/@mui/material/LinearProgress/linearProgressClasses.d.ts +31 -9
- package/node_modules/@mui/material/LinearProgress/linearProgressClasses.js +1 -1
- package/node_modules/@mui/material/Link/getTextDecoration.js +3 -2
- package/node_modules/@mui/material/ListItemText/ListItemText.d.ts +36 -1
- package/node_modules/@mui/material/ListItemText/ListItemText.js +46 -7
- package/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -3
- package/node_modules/@mui/material/PigmentGrid/PigmentGrid.js +1 -1
- package/node_modules/@mui/material/RadioGroup/RadioGroupContext.js +2 -0
- package/node_modules/@mui/material/Select/Select.js +10 -1
- package/node_modules/@mui/material/Select/SelectInput.js +9 -1
- package/node_modules/@mui/material/Select/selectClasses.d.ts +9 -3
- package/node_modules/@mui/material/Slide/Slide.js +5 -2
- package/node_modules/@mui/material/Slider/useSlider.js +69 -12
- package/node_modules/@mui/material/Step/StepContext.js +2 -0
- package/node_modules/@mui/material/StepContent/StepContent.d.ts +31 -2
- package/node_modules/@mui/material/StepContent/StepContent.js +39 -7
- package/node_modules/@mui/material/StepLabel/StepLabel.d.ts +1 -1
- package/node_modules/@mui/material/StepLabel/StepLabel.js +1 -3
- package/node_modules/@mui/material/Stepper/StepperContext.js +2 -0
- package/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -3
- package/node_modules/@mui/material/Table/Tablelvl2Context.js +2 -0
- package/node_modules/@mui/material/TablePagination/TablePagination.d.ts +134 -18
- package/node_modules/@mui/material/TablePagination/TablePagination.js +89 -33
- package/node_modules/@mui/material/TableSortLabel/TableSortLabel.d.ts +43 -1
- package/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +40 -7
- package/node_modules/@mui/material/TextField/TextField.d.ts +1 -0
- package/node_modules/@mui/material/TextField/TextField.js +1 -0
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +2 -0
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.js +2 -0
- package/node_modules/@mui/material/Tooltip/Tooltip.d.ts +1 -1
- package/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
- package/node_modules/@mui/material/Zoom/Zoom.js +5 -2
- package/node_modules/@mui/material/index.js +1 -1
- package/node_modules/@mui/material/modern/AccordionSummary/AccordionSummary.js +4 -3
- package/node_modules/@mui/material/modern/Alert/Alert.js +53 -21
- package/node_modules/@mui/material/modern/AppBar/AppBar.js +1 -1
- package/node_modules/@mui/material/modern/Autocomplete/Autocomplete.js +42 -55
- package/node_modules/@mui/material/modern/AvatarGroup/AvatarGroup.js +5 -4
- package/node_modules/@mui/material/modern/Backdrop/Backdrop.js +1 -9
- package/node_modules/@mui/material/modern/Button/Button.js +233 -15
- package/node_modules/@mui/material/modern/Button/buttonClasses.js +1 -1
- package/node_modules/@mui/material/modern/ButtonGroup/ButtonGroupButtonContext.js +2 -0
- package/node_modules/@mui/material/modern/ButtonGroup/ButtonGroupContext.js +2 -0
- package/node_modules/@mui/material/modern/CardHeader/CardHeader.js +106 -37
- package/node_modules/@mui/material/modern/CircularProgress/CircularProgress.js +2 -2
- package/node_modules/@mui/material/modern/Collapse/Collapse.js +5 -4
- package/node_modules/@mui/material/modern/Dialog/Dialog.js +91 -20
- package/node_modules/@mui/material/modern/Dialog/DialogContext.js +2 -0
- package/node_modules/@mui/material/modern/Drawer/Drawer.js +1 -1
- package/node_modules/@mui/material/modern/Drawer/drawerClasses.js +1 -1
- package/node_modules/@mui/material/modern/Fade/Fade.js +5 -2
- package/node_modules/@mui/material/modern/FilledInput/FilledInput.js +1 -3
- package/node_modules/@mui/material/modern/FormControl/FormControl.js +14 -15
- package/node_modules/@mui/material/modern/FormControl/FormControlContext.js +2 -0
- package/node_modules/@mui/material/modern/FormLabel/FormLabel.js +5 -8
- package/node_modules/@mui/material/modern/Grid/Grid.js +2 -2
- package/node_modules/@mui/material/modern/Grow/Grow.js +5 -2
- package/node_modules/@mui/material/modern/Hidden/withWidth.js +2 -0
- package/node_modules/@mui/material/modern/Icon/Icon.js +1 -3
- package/node_modules/@mui/material/modern/IconButton/IconButton.js +80 -7
- package/node_modules/@mui/material/modern/IconButton/iconButtonClasses.js +1 -1
- package/node_modules/@mui/material/modern/Input/Input.js +1 -3
- package/node_modules/@mui/material/modern/LinearProgress/LinearProgress.js +4 -4
- package/node_modules/@mui/material/modern/LinearProgress/linearProgressClasses.js +1 -1
- package/node_modules/@mui/material/modern/Link/getTextDecoration.js +3 -2
- package/node_modules/@mui/material/modern/ListItemText/ListItemText.js +46 -7
- package/node_modules/@mui/material/modern/OutlinedInput/OutlinedInput.js +1 -3
- package/node_modules/@mui/material/modern/PigmentGrid/PigmentGrid.js +1 -1
- package/node_modules/@mui/material/modern/RadioGroup/RadioGroupContext.js +2 -0
- package/node_modules/@mui/material/modern/Select/Select.js +10 -1
- package/node_modules/@mui/material/modern/Select/SelectInput.js +9 -1
- package/node_modules/@mui/material/modern/Slide/Slide.js +5 -2
- package/node_modules/@mui/material/modern/Slider/useSlider.js +69 -12
- package/node_modules/@mui/material/modern/Step/StepContext.js +2 -0
- package/node_modules/@mui/material/modern/StepContent/StepContent.js +39 -7
- package/node_modules/@mui/material/modern/StepLabel/StepLabel.js +1 -3
- package/node_modules/@mui/material/modern/Stepper/StepperContext.js +2 -0
- package/node_modules/@mui/material/modern/SvgIcon/SvgIcon.js +1 -3
- package/node_modules/@mui/material/modern/Table/Tablelvl2Context.js +2 -0
- package/node_modules/@mui/material/modern/TablePagination/TablePagination.js +89 -33
- package/node_modules/@mui/material/modern/TableSortLabel/TableSortLabel.js +40 -7
- package/node_modules/@mui/material/modern/TextField/TextField.js +1 -0
- package/node_modules/@mui/material/modern/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +2 -0
- package/node_modules/@mui/material/modern/ToggleButtonGroup/ToggleButtonGroupContext.js +2 -0
- package/node_modules/@mui/material/modern/Tooltip/Tooltip.js +1 -1
- package/node_modules/@mui/material/modern/Zoom/Zoom.js +5 -2
- package/node_modules/@mui/material/modern/index.js +1 -1
- package/node_modules/@mui/material/modern/usePagination/usePagination.js +1 -1
- package/node_modules/@mui/material/modern/utils/index.js +1 -0
- package/node_modules/@mui/material/modern/utils/mergeSlotProps.js +43 -0
- package/node_modules/@mui/material/modern/utils/useSlot.js +5 -1
- package/node_modules/@mui/material/modern/version/index.js +3 -3
- package/node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js +4 -3
- package/node_modules/@mui/material/node/Alert/Alert.js +53 -21
- package/node_modules/@mui/material/node/AppBar/AppBar.js +1 -1
- package/node_modules/@mui/material/node/Autocomplete/Autocomplete.js +42 -55
- package/node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js +5 -4
- package/node_modules/@mui/material/node/Backdrop/Backdrop.js +1 -9
- package/node_modules/@mui/material/node/Button/Button.js +233 -15
- package/node_modules/@mui/material/node/Button/buttonClasses.js +1 -1
- package/node_modules/@mui/material/node/ButtonGroup/ButtonGroupButtonContext.js +1 -0
- package/node_modules/@mui/material/node/ButtonGroup/ButtonGroupContext.js +1 -0
- package/node_modules/@mui/material/node/CardHeader/CardHeader.js +106 -37
- package/node_modules/@mui/material/node/CircularProgress/CircularProgress.js +2 -2
- package/node_modules/@mui/material/node/Collapse/Collapse.js +5 -4
- package/node_modules/@mui/material/node/Dialog/Dialog.js +91 -20
- package/node_modules/@mui/material/node/Dialog/DialogContext.js +1 -0
- package/node_modules/@mui/material/node/Drawer/Drawer.js +1 -1
- package/node_modules/@mui/material/node/Drawer/drawerClasses.js +1 -1
- package/node_modules/@mui/material/node/Fade/Fade.js +5 -2
- package/node_modules/@mui/material/node/FilledInput/FilledInput.js +1 -3
- package/node_modules/@mui/material/node/FormControl/FormControl.js +14 -15
- package/node_modules/@mui/material/node/FormControl/FormControlContext.js +1 -0
- package/node_modules/@mui/material/node/FormLabel/FormLabel.js +5 -8
- package/node_modules/@mui/material/node/Grid/Grid.js +2 -2
- package/node_modules/@mui/material/node/Grow/Grow.js +5 -2
- package/node_modules/@mui/material/node/Hidden/withWidth.js +1 -0
- package/node_modules/@mui/material/node/Icon/Icon.js +1 -3
- package/node_modules/@mui/material/node/IconButton/IconButton.js +79 -6
- package/node_modules/@mui/material/node/IconButton/iconButtonClasses.js +1 -1
- package/node_modules/@mui/material/node/Input/Input.js +1 -3
- package/node_modules/@mui/material/node/LinearProgress/LinearProgress.js +4 -4
- package/node_modules/@mui/material/node/LinearProgress/linearProgressClasses.js +1 -1
- package/node_modules/@mui/material/node/Link/getTextDecoration.js +3 -2
- package/node_modules/@mui/material/node/ListItemText/ListItemText.js +46 -7
- package/node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js +1 -3
- package/node_modules/@mui/material/node/PigmentGrid/PigmentGrid.js +2 -2
- package/node_modules/@mui/material/node/RadioGroup/RadioGroupContext.js +1 -0
- package/node_modules/@mui/material/node/Select/Select.js +10 -1
- package/node_modules/@mui/material/node/Select/SelectInput.js +9 -1
- package/node_modules/@mui/material/node/Slide/Slide.js +5 -2
- package/node_modules/@mui/material/node/Slider/useSlider.js +69 -12
- package/node_modules/@mui/material/node/Step/StepContext.js +1 -0
- package/node_modules/@mui/material/node/StepContent/StepContent.js +39 -7
- package/node_modules/@mui/material/node/StepLabel/StepLabel.js +1 -3
- package/node_modules/@mui/material/node/Stepper/StepperContext.js +1 -0
- package/node_modules/@mui/material/node/SvgIcon/SvgIcon.js +1 -3
- package/node_modules/@mui/material/node/Table/Tablelvl2Context.js +1 -0
- package/node_modules/@mui/material/node/TablePagination/TablePagination.js +89 -33
- package/node_modules/@mui/material/node/TableSortLabel/TableSortLabel.js +40 -7
- package/node_modules/@mui/material/node/TextField/TextField.js +1 -0
- package/node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -0
- package/node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -0
- package/node_modules/@mui/material/node/Tooltip/Tooltip.js +1 -1
- package/node_modules/@mui/material/node/Zoom/Zoom.js +5 -2
- package/node_modules/@mui/material/node/index.js +1 -1
- package/node_modules/@mui/material/node/usePagination/usePagination.js +1 -1
- package/node_modules/@mui/material/node/utils/index.js +7 -0
- package/node_modules/@mui/material/node/utils/mergeSlotProps.js +50 -0
- package/node_modules/@mui/material/node/utils/useSlot.js +5 -1
- package/node_modules/@mui/material/node/version/index.js +3 -3
- package/node_modules/{react-is → @mui/material/node_modules/react-is}/LICENSE +1 -1
- package/node_modules/{react-is → @mui/material/node_modules/react-is}/README.md +0 -1
- package/node_modules/@mui/material/node_modules/react-is/cjs/react-is.development.js +133 -0
- package/node_modules/@mui/material/node_modules/react-is/cjs/react-is.production.js +130 -0
- package/node_modules/{react-is → @mui/material/node_modules/react-is}/index.js +1 -1
- package/node_modules/{react-is → @mui/material/node_modules/react-is}/package.json +4 -4
- package/node_modules/@mui/material/package.json +8 -8
- package/node_modules/@mui/material/styles/useThemeProps.d.ts +27 -0
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.ts +20 -5
- package/node_modules/@mui/material/useLazyRipple/useLazyRipple.d.ts +1 -1
- package/node_modules/@mui/material/usePagination/usePagination.js +1 -1
- package/node_modules/@mui/material/utils/index.d.ts +1 -0
- package/node_modules/@mui/material/utils/index.js +1 -0
- package/node_modules/@mui/material/utils/memoTheme.d.ts +1 -1
- package/node_modules/@mui/material/utils/mergeSlotProps.d.ts +2 -0
- package/node_modules/@mui/material/utils/mergeSlotProps.js +43 -0
- package/node_modules/@mui/material/utils/useSlot.d.ts +8 -0
- package/node_modules/@mui/material/utils/useSlot.js +5 -1
- package/node_modules/@mui/material/version/index.js +3 -3
- package/node_modules/@mui/private-theming/CHANGELOG.md +240 -2
- package/node_modules/@mui/private-theming/index.js +1 -1
- package/node_modules/@mui/private-theming/modern/index.js +1 -1
- package/node_modules/@mui/private-theming/modern/useTheme/ThemeContext.js +2 -0
- package/node_modules/@mui/private-theming/node/index.js +1 -1
- package/node_modules/@mui/private-theming/node/useTheme/ThemeContext.js +1 -0
- package/node_modules/@mui/private-theming/package.json +2 -2
- package/node_modules/@mui/private-theming/useTheme/ThemeContext.js +2 -0
- package/node_modules/@mui/styled-engine/CHANGELOG.md +198 -2
- package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +29 -19
- package/node_modules/@mui/styled-engine/index.js +1 -1
- package/node_modules/@mui/styled-engine/modern/StyledEngineProvider/StyledEngineProvider.js +29 -19
- package/node_modules/@mui/styled-engine/modern/index.js +1 -1
- package/node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js +29 -19
- package/node_modules/@mui/styled-engine/node/index.js +1 -1
- package/node_modules/@mui/styled-engine/package.json +1 -1
- package/node_modules/@mui/system/CHANGELOG.md +240 -2
- package/node_modules/@mui/system/Grid/index.d.ts +1 -0
- package/node_modules/@mui/system/Grid/index.js +24 -2
- package/node_modules/@mui/system/RtlProvider/index.js +1 -0
- package/node_modules/@mui/system/colorManipulator/colorManipulator.js +5 -0
- package/node_modules/@mui/system/createTheme/applyStyles.d.ts +7 -3
- package/node_modules/@mui/system/createTheme/applyStyles.js +7 -3
- package/node_modules/@mui/system/cssVars/createCssVarsProvider.js +3 -1
- package/node_modules/@mui/system/esm/Grid/index.js +2 -1
- package/node_modules/@mui/system/esm/RtlProvider/index.js +2 -0
- package/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +5 -0
- package/node_modules/@mui/system/esm/createTheme/applyStyles.js +7 -3
- package/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +4 -1
- package/node_modules/@mui/system/esm/version/index.js +3 -3
- package/node_modules/@mui/system/index.js +1 -1
- package/node_modules/@mui/system/memoTheme.d.ts +1 -1
- package/node_modules/@mui/system/modern/Grid/index.js +2 -1
- package/node_modules/@mui/system/modern/RtlProvider/index.js +2 -0
- package/node_modules/@mui/system/modern/colorManipulator/colorManipulator.js +5 -0
- package/node_modules/@mui/system/modern/createTheme/applyStyles.js +7 -3
- package/node_modules/@mui/system/modern/cssVars/createCssVarsProvider.js +4 -1
- package/node_modules/@mui/system/modern/index.js +1 -1
- package/node_modules/@mui/system/modern/version/index.js +3 -3
- package/node_modules/@mui/system/package.json +5 -5
- package/node_modules/@mui/system/version/index.js +3 -3
- package/node_modules/@mui/types/package.json +1 -1
- package/node_modules/@mui/utils/CHANGELOG.md +240 -2
- package/node_modules/@mui/utils/composeClasses/composeClasses.d.ts +28 -0
- package/node_modules/@mui/utils/composeClasses/composeClasses.js +28 -0
- package/node_modules/@mui/utils/deepmerge/deepmerge.d.ts +18 -0
- package/node_modules/@mui/utils/deepmerge/deepmerge.js +22 -2
- package/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +28 -0
- package/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +22 -2
- package/node_modules/@mui/utils/index.js +1 -1
- package/node_modules/@mui/utils/modern/composeClasses/composeClasses.js +28 -0
- package/node_modules/@mui/utils/modern/deepmerge/deepmerge.js +22 -2
- package/node_modules/@mui/utils/modern/index.js +1 -1
- package/node_modules/@mui/utils/node_modules/react-is/LICENSE +21 -0
- package/node_modules/@mui/utils/node_modules/react-is/README.md +103 -0
- package/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +133 -0
- package/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.js +130 -0
- package/node_modules/@mui/utils/node_modules/react-is/index.js +7 -0
- package/node_modules/@mui/utils/node_modules/react-is/package.json +26 -0
- package/node_modules/@mui/utils/package.json +4 -4
- package/node_modules/@mui/utils/useLazyRef/useLazyRef.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/CHANGELOG.md +487 -0
- package/node_modules/@mui/x-date-pickers/DateCalendar/PickersFadeTransitionGroup.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/DateCalendar/PickersSlideTransition.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/DateField/useDateField.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/DateTimeField/useDateTimeField.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -0
- package/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader.js +2 -0
- package/node_modules/@mui/x-date-pickers/README.md +1 -1
- package/node_modules/@mui/x-date-pickers/TimeClock/Clock.d.ts +4 -0
- package/node_modules/@mui/x-date-pickers/TimeClock/Clock.js +10 -6
- package/node_modules/@mui/x-date-pickers/TimeClock/TimeClock.js +21 -4
- package/node_modules/@mui/x-date-pickers/TimeField/useTimeField.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/index.js +1 -1
- package/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.js +5 -0
- package/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV6TextField.js +5 -2
- package/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV7TextField.js +3 -0
- package/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerViews.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/internals/hooks/useStaticPicker/useStaticPicker.js +0 -1
- package/node_modules/@mui/x-date-pickers/internals/hooks/useUtils.js +1 -1
- package/node_modules/@mui/x-date-pickers/locales/index.d.ts +1 -0
- package/node_modules/@mui/x-date-pickers/locales/index.js +1 -0
- package/node_modules/@mui/x-date-pickers/locales/nbNO.js +15 -19
- package/node_modules/@mui/x-date-pickers/locales/roRO.js +15 -18
- package/node_modules/@mui/x-date-pickers/locales/zhTW.d.ts +80 -0
- package/node_modules/@mui/x-date-pickers/locales/zhTW.js +73 -0
- package/node_modules/@mui/x-date-pickers/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -0
- package/node_modules/@mui/x-date-pickers/modern/PickersCalendarHeader/PickersCalendarHeader.js +2 -0
- package/node_modules/@mui/x-date-pickers/modern/TimeClock/Clock.js +10 -6
- package/node_modules/@mui/x-date-pickers/modern/TimeClock/TimeClock.js +21 -4
- package/node_modules/@mui/x-date-pickers/modern/index.js +1 -1
- package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useField/useField.js +5 -0
- package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useField/useFieldV6TextField.js +5 -2
- package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useField/useFieldV7TextField.js +3 -0
- package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useStaticPicker/useStaticPicker.js +0 -1
- package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useUtils.js +1 -1
- package/node_modules/@mui/x-date-pickers/modern/locales/index.js +1 -0
- package/node_modules/@mui/x-date-pickers/modern/locales/nbNO.js +15 -19
- package/node_modules/@mui/x-date-pickers/modern/locales/roRO.js +15 -18
- package/node_modules/@mui/x-date-pickers/modern/locales/zhTW.js +73 -0
- package/node_modules/@mui/x-date-pickers/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -0
- package/node_modules/@mui/x-date-pickers/node/PickersCalendarHeader/PickersCalendarHeader.js +2 -0
- package/node_modules/@mui/x-date-pickers/node/TimeClock/Clock.js +10 -6
- package/node_modules/@mui/x-date-pickers/node/TimeClock/TimeClock.js +21 -4
- package/node_modules/@mui/x-date-pickers/node/index.js +1 -1
- package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useField.js +5 -0
- package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useFieldV6TextField.js +5 -2
- package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useFieldV7TextField.js +3 -0
- package/node_modules/@mui/x-date-pickers/node/internals/hooks/useStaticPicker/useStaticPicker.js +0 -1
- package/node_modules/@mui/x-date-pickers/node/internals/hooks/useUtils.js +1 -1
- package/node_modules/@mui/x-date-pickers/node/locales/index.js +11 -0
- package/node_modules/@mui/x-date-pickers/node/locales/nbNO.js +15 -19
- package/node_modules/@mui/x-date-pickers/node/locales/roRO.js +15 -18
- package/node_modules/@mui/x-date-pickers/node/locales/zhTW.js +79 -0
- package/node_modules/@mui/x-date-pickers/package.json +3 -3
- package/node_modules/@mui/x-internals/CHANGELOG.md +487 -0
- package/node_modules/@mui/x-internals/esm/forwardRef/forwardRef.js +15 -0
- package/node_modules/@mui/x-internals/esm/forwardRef/index.js +1 -0
- package/node_modules/@mui/x-internals/esm/types/RefObject.js +1 -0
- package/node_modules/@mui/x-internals/esm/types/index.js +1 -0
- package/node_modules/@mui/x-internals/forwardRef/forwardRef.d.ts +4 -0
- package/node_modules/@mui/x-internals/forwardRef/forwardRef.js +23 -0
- package/node_modules/@mui/x-internals/forwardRef/index.d.ts +1 -0
- package/node_modules/@mui/x-internals/forwardRef/index.js +16 -0
- package/node_modules/@mui/x-internals/forwardRef/package.json +6 -0
- package/node_modules/@mui/x-internals/modern/forwardRef/forwardRef.js +15 -0
- package/node_modules/@mui/x-internals/modern/forwardRef/index.js +1 -0
- package/node_modules/@mui/x-internals/modern/types/RefObject.js +1 -0
- package/node_modules/@mui/x-internals/modern/types/index.js +1 -0
- package/node_modules/@mui/x-internals/package.json +1 -1
- package/node_modules/@mui/x-internals/types/RefObject.d.ts +8 -0
- package/node_modules/@mui/x-internals/types/RefObject.js +5 -0
- package/node_modules/@mui/x-internals/types/index.d.ts +1 -0
- package/node_modules/@mui/x-internals/types/index.js +16 -0
- package/node_modules/@mui/x-internals/types/package.json +6 -0
- package/node_modules/@mui/x-internals/useResizeObserver/useResizeObserver.d.ts +1 -1
- package/node_modules/@types/prop-types/README.md +1 -1
- package/node_modules/@types/prop-types/index.d.ts +21 -4
- package/node_modules/@types/prop-types/package.json +4 -3
- package/node_modules/@types/react-transition-group/README.md +3 -2
- package/node_modules/@types/react-transition-group/package.json +5 -4
- package/package.json +4 -4
- package/node_modules/@types/react/LICENSE +0 -21
- package/node_modules/@types/react/README.md +0 -15
- package/node_modules/@types/react/canary.d.ts +0 -166
- package/node_modules/@types/react/experimental.d.ts +0 -132
- package/node_modules/@types/react/global.d.ts +0 -160
- package/node_modules/@types/react/index.d.ts +0 -4543
- package/node_modules/@types/react/jsx-dev-runtime.d.ts +0 -45
- package/node_modules/@types/react/jsx-runtime.d.ts +0 -36
- package/node_modules/@types/react/package.json +0 -206
- package/node_modules/@types/react/ts5.0/canary.d.ts +0 -166
- package/node_modules/@types/react/ts5.0/experimental.d.ts +0 -132
- package/node_modules/@types/react/ts5.0/global.d.ts +0 -160
- package/node_modules/@types/react/ts5.0/index.d.ts +0 -4530
- package/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +0 -44
- package/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +0 -35
- package/node_modules/react-is/cjs/react-is.development.js +0 -221
- package/node_modules/react-is/cjs/react-is.production.min.js +0 -14
- package/node_modules/react-is/umd/react-is.development.js +0 -220
- package/node_modules/react-is/umd/react-is.production.min.js +0 -15
|
@@ -16,11 +16,10 @@ const nbNOPickers = {
|
|
|
16
16
|
// DateRange labels
|
|
17
17
|
start: 'Start',
|
|
18
18
|
end: 'Slutt',
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
startDate: 'Startdato',
|
|
20
|
+
startTime: 'Starttid',
|
|
21
|
+
endDate: 'Sluttdato',
|
|
22
|
+
endTime: 'Slutttid',
|
|
24
23
|
// Action bar
|
|
25
24
|
cancelButtonLabel: 'Avbryt',
|
|
26
25
|
clearButtonLabel: 'Fjern',
|
|
@@ -46,8 +45,7 @@ const nbNOPickers = {
|
|
|
46
45
|
// Open picker labels
|
|
47
46
|
openDatePickerDialogue: (value, utils, formattedDate) => formattedDate || value !== null && utils.isValid(value) ? `Velg dato, valgt dato er ${formattedDate ?? utils.format(value, 'fullDate')}` : 'Velg dato',
|
|
48
47
|
openTimePickerDialogue: (value, utils, formattedTime) => formattedTime || value !== null && utils.isValid(value) ? `Velg tid, valgt tid er ${formattedTime ?? utils.format(value, 'fullTime')}` : 'Velg tid',
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
fieldClearLabel: 'Slett',
|
|
51
49
|
// Table labels
|
|
52
50
|
timeTableLabel: 'velg tid',
|
|
53
51
|
dateTableLabel: 'velg dato',
|
|
@@ -59,19 +57,17 @@ const nbNOPickers = {
|
|
|
59
57
|
fieldHoursPlaceholder: () => 'tt',
|
|
60
58
|
fieldMinutesPlaceholder: () => 'mm',
|
|
61
59
|
fieldSecondsPlaceholder: () => 'ss',
|
|
62
|
-
fieldMeridiemPlaceholder: () => 'aa'
|
|
63
|
-
|
|
60
|
+
fieldMeridiemPlaceholder: () => 'aa',
|
|
64
61
|
// View names
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
62
|
+
year: 'År',
|
|
63
|
+
month: 'Måned',
|
|
64
|
+
day: 'Dag',
|
|
65
|
+
weekDay: 'Ukedag',
|
|
66
|
+
hours: 'Timer',
|
|
67
|
+
minutes: 'Minutter',
|
|
68
|
+
seconds: 'Sekunder',
|
|
69
|
+
meridiem: 'Meridiem',
|
|
74
70
|
// Common
|
|
75
|
-
|
|
71
|
+
empty: 'Tøm'
|
|
76
72
|
};
|
|
77
73
|
export const nbNO = getPickersLocalization(nbNOPickers);
|
|
@@ -17,11 +17,10 @@ const roROPickers = {
|
|
|
17
17
|
// DateRange labels
|
|
18
18
|
start: 'Început',
|
|
19
19
|
end: 'Sfârșit',
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
startDate: 'Data de început',
|
|
21
|
+
startTime: 'Ora de început',
|
|
22
|
+
endDate: 'Data de sfârșit',
|
|
23
|
+
endTime: 'Ora de sfârșit',
|
|
25
24
|
// Action bar
|
|
26
25
|
cancelButtonLabel: 'Anulare',
|
|
27
26
|
clearButtonLabel: 'Ștergere',
|
|
@@ -55,23 +54,21 @@ const roROPickers = {
|
|
|
55
54
|
fieldYearPlaceholder: params => 'A'.repeat(params.digitAmount),
|
|
56
55
|
fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'LLLL' : 'LL',
|
|
57
56
|
fieldDayPlaceholder: () => 'ZZ',
|
|
58
|
-
|
|
57
|
+
fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'ZZZZ' : 'ZZ',
|
|
59
58
|
fieldHoursPlaceholder: () => 'hh',
|
|
60
59
|
fieldMinutesPlaceholder: () => 'mm',
|
|
61
60
|
fieldSecondsPlaceholder: () => 'ss',
|
|
62
|
-
fieldMeridiemPlaceholder: () => 'aa'
|
|
63
|
-
|
|
61
|
+
fieldMeridiemPlaceholder: () => 'aa',
|
|
64
62
|
// View names
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
63
|
+
year: 'An',
|
|
64
|
+
month: 'Luna',
|
|
65
|
+
day: 'Ziua',
|
|
66
|
+
weekDay: 'Ziua saptămânii',
|
|
67
|
+
hours: 'Ore',
|
|
68
|
+
minutes: 'Minute',
|
|
69
|
+
seconds: 'Secunde',
|
|
70
|
+
meridiem: 'Meridiem',
|
|
74
71
|
// Common
|
|
75
|
-
|
|
72
|
+
empty: 'Gol'
|
|
76
73
|
};
|
|
77
74
|
export const roRO = getPickersLocalization(roROPickers);
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { getPickersLocalization } from "./utils/getPickersLocalization.js";
|
|
2
|
+
const views = {
|
|
3
|
+
hours: '小時',
|
|
4
|
+
minutes: '分鐘',
|
|
5
|
+
seconds: '秒',
|
|
6
|
+
meridiem: '十二小時制'
|
|
7
|
+
};
|
|
8
|
+
const zhTWPickers = {
|
|
9
|
+
// Calendar navigation
|
|
10
|
+
previousMonth: '上個月',
|
|
11
|
+
nextMonth: '下個月',
|
|
12
|
+
// View navigation
|
|
13
|
+
openPreviousView: '前一個視圖',
|
|
14
|
+
openNextView: '下一個視圖',
|
|
15
|
+
calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? '年視圖已打開,切換為日曆視圖' : '日曆視圖已打開,切換為年視圖',
|
|
16
|
+
// DateRange labels
|
|
17
|
+
start: '開始',
|
|
18
|
+
end: '結束',
|
|
19
|
+
startDate: '開始日期',
|
|
20
|
+
startTime: '開始時間',
|
|
21
|
+
endDate: '結束日期',
|
|
22
|
+
endTime: '結束時間',
|
|
23
|
+
// Action bar
|
|
24
|
+
cancelButtonLabel: '取消',
|
|
25
|
+
clearButtonLabel: '清除',
|
|
26
|
+
okButtonLabel: '確認',
|
|
27
|
+
todayButtonLabel: '今天',
|
|
28
|
+
// Toolbar titles
|
|
29
|
+
datePickerToolbarTitle: '選擇日期',
|
|
30
|
+
dateTimePickerToolbarTitle: '選擇日期和時間',
|
|
31
|
+
timePickerToolbarTitle: '選擇時間',
|
|
32
|
+
dateRangePickerToolbarTitle: '選擇時間範圍',
|
|
33
|
+
// Clock labels
|
|
34
|
+
clockLabelText: (view, time, utils, formattedTime) => `選擇 ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? '未選擇時間' : `已選擇${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
35
|
+
hoursClockNumberText: hours => `${hours}小時`,
|
|
36
|
+
minutesClockNumberText: minutes => `${minutes}分鐘`,
|
|
37
|
+
secondsClockNumberText: seconds => `${seconds}秒`,
|
|
38
|
+
// Digital clock labels
|
|
39
|
+
selectViewText: view => `選擇 ${views[view]}`,
|
|
40
|
+
// Calendar labels
|
|
41
|
+
calendarWeekNumberHeaderLabel: '週數',
|
|
42
|
+
calendarWeekNumberHeaderText: '#',
|
|
43
|
+
calendarWeekNumberAriaLabelText: weekNumber => `第${weekNumber}週`,
|
|
44
|
+
calendarWeekNumberText: weekNumber => `${weekNumber}`,
|
|
45
|
+
// Open picker labels
|
|
46
|
+
openDatePickerDialogue: (value, utils, formattedDate) => formattedDate || value !== null && utils.isValid(value) ? `選擇日期,已選擇${formattedDate ?? utils.format(value, 'fullDate')}` : '選擇日期',
|
|
47
|
+
openTimePickerDialogue: (value, utils, formattedTime) => formattedTime || value !== null && utils.isValid(value) ? `選擇時間,已選擇${formattedTime ?? utils.format(value, 'fullTime')}` : '選擇時間',
|
|
48
|
+
fieldClearLabel: '清除',
|
|
49
|
+
// Table labels
|
|
50
|
+
timeTableLabel: '選擇時間',
|
|
51
|
+
dateTableLabel: '選擇日期',
|
|
52
|
+
// Field section placeholders
|
|
53
|
+
fieldYearPlaceholder: params => 'Y'.repeat(params.digitAmount),
|
|
54
|
+
fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM',
|
|
55
|
+
fieldDayPlaceholder: () => 'DD',
|
|
56
|
+
fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
|
|
57
|
+
fieldHoursPlaceholder: () => 'hh',
|
|
58
|
+
fieldMinutesPlaceholder: () => 'mm',
|
|
59
|
+
fieldSecondsPlaceholder: () => 'ss',
|
|
60
|
+
fieldMeridiemPlaceholder: () => 'aa',
|
|
61
|
+
// View names
|
|
62
|
+
year: '年份',
|
|
63
|
+
month: '月份',
|
|
64
|
+
day: '日期',
|
|
65
|
+
weekDay: '星期',
|
|
66
|
+
hours: '時',
|
|
67
|
+
minutes: '分',
|
|
68
|
+
seconds: '秒',
|
|
69
|
+
meridiem: '十二小時制',
|
|
70
|
+
// Common
|
|
71
|
+
empty: '空'
|
|
72
|
+
};
|
|
73
|
+
export const zhTW = getPickersLocalization(zhTWPickers);
|
package/node_modules/@mui/x-date-pickers/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js
CHANGED
|
@@ -197,6 +197,9 @@ const MultiSectionDigitalClock = exports.MultiSectionDigitalClock = /*#__PURE__*
|
|
|
197
197
|
{
|
|
198
198
|
const valueWithMeridiem = (0, _timeUtils.convertValueToMeridiem)(rawValue, meridiemMode, ampm);
|
|
199
199
|
const dateWithNewHours = utils.setHours(valueOrReferenceDate, valueWithMeridiem);
|
|
200
|
+
if (utils.getHours(dateWithNewHours) !== valueWithMeridiem) {
|
|
201
|
+
return true;
|
|
202
|
+
}
|
|
200
203
|
const start = utils.setSeconds(utils.setMinutes(dateWithNewHours, 0), 0);
|
|
201
204
|
const end = utils.setSeconds(utils.setMinutes(dateWithNewHours, 59), 59);
|
|
202
205
|
return !containsValidTime({
|
package/node_modules/@mui/x-date-pickers/node/PickersCalendarHeader/PickersCalendarHeader.js
CHANGED
|
@@ -221,6 +221,8 @@ const PickersCalendarHeader = exports.PickersCalendarHeader = /*#__PURE__*/React
|
|
|
221
221
|
}))]
|
|
222
222
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Fade.default, {
|
|
223
223
|
in: view === 'day',
|
|
224
|
+
appear: !reduceAnimations,
|
|
225
|
+
enter: !reduceAnimations,
|
|
224
226
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersArrowSwitcher.PickersArrowSwitcher, {
|
|
225
227
|
slots: slots,
|
|
226
228
|
slotProps: slotProps,
|
|
@@ -188,6 +188,7 @@ function Clock(inProps) {
|
|
|
188
188
|
selectedId,
|
|
189
189
|
type,
|
|
190
190
|
viewValue,
|
|
191
|
+
viewRange: [minViewValue, maxViewValue],
|
|
191
192
|
disabled = false,
|
|
192
193
|
readOnly,
|
|
193
194
|
className
|
|
@@ -230,6 +231,7 @@ function Clock(inProps) {
|
|
|
230
231
|
setTime(event, 'finish');
|
|
231
232
|
isMoving.current = false;
|
|
232
233
|
}
|
|
234
|
+
event.preventDefault();
|
|
233
235
|
};
|
|
234
236
|
const handleMouseMove = event => {
|
|
235
237
|
// event.buttons & PRIMARY_MOUSE_BUTTON
|
|
@@ -259,6 +261,8 @@ function Clock(inProps) {
|
|
|
259
261
|
listboxRef.current.focus();
|
|
260
262
|
}
|
|
261
263
|
}, [autoFocus]);
|
|
264
|
+
const clampValue = newValue => Math.max(minViewValue, Math.min(maxViewValue, newValue));
|
|
265
|
+
const circleValue = newValue => (newValue + (maxViewValue + 1)) % (maxViewValue + 1);
|
|
262
266
|
const handleKeyDown = event => {
|
|
263
267
|
// TODO: Why this early exit?
|
|
264
268
|
if (isMoving.current) {
|
|
@@ -267,27 +271,27 @@ function Clock(inProps) {
|
|
|
267
271
|
switch (event.key) {
|
|
268
272
|
case 'Home':
|
|
269
273
|
// reset both hours and minutes
|
|
270
|
-
handleValueChange(
|
|
274
|
+
handleValueChange(minViewValue, 'partial');
|
|
271
275
|
event.preventDefault();
|
|
272
276
|
break;
|
|
273
277
|
case 'End':
|
|
274
|
-
handleValueChange(
|
|
278
|
+
handleValueChange(maxViewValue, 'partial');
|
|
275
279
|
event.preventDefault();
|
|
276
280
|
break;
|
|
277
281
|
case 'ArrowUp':
|
|
278
|
-
handleValueChange(viewValue + keyboardControlStep, 'partial');
|
|
282
|
+
handleValueChange(circleValue(viewValue + keyboardControlStep), 'partial');
|
|
279
283
|
event.preventDefault();
|
|
280
284
|
break;
|
|
281
285
|
case 'ArrowDown':
|
|
282
|
-
handleValueChange(viewValue - keyboardControlStep, 'partial');
|
|
286
|
+
handleValueChange(circleValue(viewValue - keyboardControlStep), 'partial');
|
|
283
287
|
event.preventDefault();
|
|
284
288
|
break;
|
|
285
289
|
case 'PageUp':
|
|
286
|
-
handleValueChange(viewValue + 5, 'partial');
|
|
290
|
+
handleValueChange(clampValue(viewValue + 5), 'partial');
|
|
287
291
|
event.preventDefault();
|
|
288
292
|
break;
|
|
289
293
|
case 'PageDown':
|
|
290
|
-
handleValueChange(viewValue - 5, 'partial');
|
|
294
|
+
handleValueChange(clampValue(viewValue - 5), 'partial');
|
|
291
295
|
event.preventDefault();
|
|
292
296
|
break;
|
|
293
297
|
case 'Enter':
|
|
@@ -190,6 +190,9 @@ const TimeClock = exports.TimeClock = /*#__PURE__*/React.forwardRef(function Tim
|
|
|
190
190
|
{
|
|
191
191
|
const valueWithMeridiem = (0, _timeUtils.convertValueToMeridiem)(rawValue, meridiemMode, ampm);
|
|
192
192
|
const dateWithNewHours = utils.setHours(valueOrReferenceDate, valueWithMeridiem);
|
|
193
|
+
if (utils.getHours(dateWithNewHours) !== valueWithMeridiem) {
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
193
196
|
const start = utils.setSeconds(utils.setMinutes(dateWithNewHours, 0), 0);
|
|
194
197
|
const end = utils.setSeconds(utils.setMinutes(dateWithNewHours, 59), 59);
|
|
195
198
|
return !containsValidTime({
|
|
@@ -230,9 +233,20 @@ const TimeClock = exports.TimeClock = /*#__PURE__*/React.forwardRef(function Tim
|
|
|
230
233
|
const valueWithMeridiem = (0, _timeUtils.convertValueToMeridiem)(hourValue, meridiemMode, ampm);
|
|
231
234
|
setValueAndGoToNextView(utils.setHours(valueOrReferenceDate, valueWithMeridiem), isFinish, 'hours');
|
|
232
235
|
};
|
|
236
|
+
const viewValue = utils.getHours(valueOrReferenceDate);
|
|
237
|
+
let viewRange;
|
|
238
|
+
if (ampm) {
|
|
239
|
+
if (viewValue > 12) {
|
|
240
|
+
viewRange = [12, 23];
|
|
241
|
+
} else {
|
|
242
|
+
viewRange = [0, 11];
|
|
243
|
+
}
|
|
244
|
+
} else {
|
|
245
|
+
viewRange = [0, 23];
|
|
246
|
+
}
|
|
233
247
|
return {
|
|
234
248
|
onChange: handleHoursChange,
|
|
235
|
-
viewValue
|
|
249
|
+
viewValue,
|
|
236
250
|
children: (0, _ClockNumbers.getHourNumbers)({
|
|
237
251
|
value,
|
|
238
252
|
utils,
|
|
@@ -241,7 +255,8 @@ const TimeClock = exports.TimeClock = /*#__PURE__*/React.forwardRef(function Tim
|
|
|
241
255
|
getClockNumberText: translations.hoursClockNumberText,
|
|
242
256
|
isDisabled: hourValue => disabled || isTimeDisabled(hourValue, 'hours'),
|
|
243
257
|
selectedId
|
|
244
|
-
})
|
|
258
|
+
}),
|
|
259
|
+
viewRange
|
|
245
260
|
};
|
|
246
261
|
}
|
|
247
262
|
case 'minutes':
|
|
@@ -260,7 +275,8 @@ const TimeClock = exports.TimeClock = /*#__PURE__*/React.forwardRef(function Tim
|
|
|
260
275
|
getClockNumberText: translations.minutesClockNumberText,
|
|
261
276
|
isDisabled: minuteValue => disabled || isTimeDisabled(minuteValue, 'minutes'),
|
|
262
277
|
selectedId
|
|
263
|
-
})
|
|
278
|
+
}),
|
|
279
|
+
viewRange: [0, 59]
|
|
264
280
|
};
|
|
265
281
|
}
|
|
266
282
|
case 'seconds':
|
|
@@ -279,7 +295,8 @@ const TimeClock = exports.TimeClock = /*#__PURE__*/React.forwardRef(function Tim
|
|
|
279
295
|
getClockNumberText: translations.secondsClockNumberText,
|
|
280
296
|
isDisabled: secondValue => disabled || isTimeDisabled(secondValue, 'seconds'),
|
|
281
297
|
selectedId
|
|
282
|
-
})
|
|
298
|
+
}),
|
|
299
|
+
viewRange: [0, 59]
|
|
283
300
|
};
|
|
284
301
|
}
|
|
285
302
|
default:
|
|
@@ -149,6 +149,11 @@ const useField = params => {
|
|
|
149
149
|
if (readOnly || activeSectionIndex == null) {
|
|
150
150
|
break;
|
|
151
151
|
}
|
|
152
|
+
|
|
153
|
+
// if all sections are selected, mark the currently editing one as selected
|
|
154
|
+
if (parsedSelectedSections === 'all') {
|
|
155
|
+
setSelectedSections(activeSectionIndex);
|
|
156
|
+
}
|
|
152
157
|
const activeSection = state.sections[activeSectionIndex];
|
|
153
158
|
const activeDateManager = fieldValueManager.getActiveDateManager(utils, state, activeSection);
|
|
154
159
|
const newSectionValue = (0, _useField.adjustSectionValue)(utils, timezone, activeSection, event.key, sectionsValueBoundaries, localizedDigits, activeDateManager.date, {
|
package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useFieldV6TextField.js
CHANGED
|
@@ -44,8 +44,8 @@ const addPositionPropertiesToSections = (sections, localizedDigits, isRtl) => {
|
|
|
44
44
|
exports.addPositionPropertiesToSections = addPositionPropertiesToSections;
|
|
45
45
|
const useFieldV6TextField = params => {
|
|
46
46
|
const isRtl = (0, _RtlProvider.useRtl)();
|
|
47
|
-
const focusTimeoutRef = React.useRef();
|
|
48
|
-
const selectionSyncTimeoutRef = React.useRef();
|
|
47
|
+
const focusTimeoutRef = React.useRef(undefined);
|
|
48
|
+
const selectionSyncTimeoutRef = React.useRef(undefined);
|
|
49
49
|
const {
|
|
50
50
|
forwardedProps: {
|
|
51
51
|
onFocus,
|
|
@@ -246,6 +246,9 @@ const useFieldV6TextField = params => {
|
|
|
246
246
|
const shouldUseEventData = eventData && eventData.length > 1;
|
|
247
247
|
const valueStr = shouldUseEventData ? eventData : targetValue;
|
|
248
248
|
const cleanValueStr = cleanString(valueStr);
|
|
249
|
+
if (parsedSelectedSections === 'all') {
|
|
250
|
+
setSelectedSections(activeSectionIndex);
|
|
251
|
+
}
|
|
249
252
|
|
|
250
253
|
// If no section is selected or eventData should be used, we just try to parse the new value
|
|
251
254
|
// This line is mostly triggered by imperative code / application tests.
|
package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useFieldV7TextField.js
CHANGED
|
@@ -184,6 +184,9 @@ const useFieldV7TextField = params => {
|
|
|
184
184
|
} else if (keyPressed.length > 1) {
|
|
185
185
|
updateValueFromValueStr(keyPressed);
|
|
186
186
|
} else {
|
|
187
|
+
if (parsedSelectedSections === 'all') {
|
|
188
|
+
setSelectedSections(0);
|
|
189
|
+
}
|
|
187
190
|
applyCharacterEditing({
|
|
188
191
|
keyPressed,
|
|
189
192
|
sectionIndex: 0
|
|
@@ -30,7 +30,7 @@ const useDefaultDates = () => useLocalizationContext().defaultDates;
|
|
|
30
30
|
exports.useDefaultDates = useDefaultDates;
|
|
31
31
|
const useNow = timezone => {
|
|
32
32
|
const utils = useUtils();
|
|
33
|
-
const now = React.useRef();
|
|
33
|
+
const now = React.useRef(undefined);
|
|
34
34
|
if (now.current === undefined) {
|
|
35
35
|
now.current = utils.date(undefined, timezone);
|
|
36
36
|
}
|
|
@@ -421,6 +421,17 @@ Object.keys(_zhHK).forEach(function (key) {
|
|
|
421
421
|
}
|
|
422
422
|
});
|
|
423
423
|
});
|
|
424
|
+
var _zhTW = require("./zhTW");
|
|
425
|
+
Object.keys(_zhTW).forEach(function (key) {
|
|
426
|
+
if (key === "default" || key === "__esModule") return;
|
|
427
|
+
if (key in exports && exports[key] === _zhTW[key]) return;
|
|
428
|
+
Object.defineProperty(exports, key, {
|
|
429
|
+
enumerable: true,
|
|
430
|
+
get: function () {
|
|
431
|
+
return _zhTW[key];
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
});
|
|
424
435
|
var _pickersLocaleTextApi = require("./utils/pickersLocaleTextApi");
|
|
425
436
|
Object.keys(_pickersLocaleTextApi).forEach(function (key) {
|
|
426
437
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -22,11 +22,10 @@ const nbNOPickers = {
|
|
|
22
22
|
// DateRange labels
|
|
23
23
|
start: 'Start',
|
|
24
24
|
end: 'Slutt',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
startDate: 'Startdato',
|
|
26
|
+
startTime: 'Starttid',
|
|
27
|
+
endDate: 'Sluttdato',
|
|
28
|
+
endTime: 'Slutttid',
|
|
30
29
|
// Action bar
|
|
31
30
|
cancelButtonLabel: 'Avbryt',
|
|
32
31
|
clearButtonLabel: 'Fjern',
|
|
@@ -52,8 +51,7 @@ const nbNOPickers = {
|
|
|
52
51
|
// Open picker labels
|
|
53
52
|
openDatePickerDialogue: (value, utils, formattedDate) => formattedDate || value !== null && utils.isValid(value) ? `Velg dato, valgt dato er ${formattedDate ?? utils.format(value, 'fullDate')}` : 'Velg dato',
|
|
54
53
|
openTimePickerDialogue: (value, utils, formattedTime) => formattedTime || value !== null && utils.isValid(value) ? `Velg tid, valgt tid er ${formattedTime ?? utils.format(value, 'fullTime')}` : 'Velg tid',
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
fieldClearLabel: 'Slett',
|
|
57
55
|
// Table labels
|
|
58
56
|
timeTableLabel: 'velg tid',
|
|
59
57
|
dateTableLabel: 'velg dato',
|
|
@@ -65,19 +63,17 @@ const nbNOPickers = {
|
|
|
65
63
|
fieldHoursPlaceholder: () => 'tt',
|
|
66
64
|
fieldMinutesPlaceholder: () => 'mm',
|
|
67
65
|
fieldSecondsPlaceholder: () => 'ss',
|
|
68
|
-
fieldMeridiemPlaceholder: () => 'aa'
|
|
69
|
-
|
|
66
|
+
fieldMeridiemPlaceholder: () => 'aa',
|
|
70
67
|
// View names
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
68
|
+
year: 'År',
|
|
69
|
+
month: 'Måned',
|
|
70
|
+
day: 'Dag',
|
|
71
|
+
weekDay: 'Ukedag',
|
|
72
|
+
hours: 'Timer',
|
|
73
|
+
minutes: 'Minutter',
|
|
74
|
+
seconds: 'Sekunder',
|
|
75
|
+
meridiem: 'Meridiem',
|
|
80
76
|
// Common
|
|
81
|
-
|
|
77
|
+
empty: 'Tøm'
|
|
82
78
|
};
|
|
83
79
|
const nbNO = exports.nbNO = (0, _getPickersLocalization.getPickersLocalization)(nbNOPickers);
|
|
@@ -23,11 +23,10 @@ const roROPickers = {
|
|
|
23
23
|
// DateRange labels
|
|
24
24
|
start: 'Început',
|
|
25
25
|
end: 'Sfârșit',
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
startDate: 'Data de început',
|
|
27
|
+
startTime: 'Ora de început',
|
|
28
|
+
endDate: 'Data de sfârșit',
|
|
29
|
+
endTime: 'Ora de sfârșit',
|
|
31
30
|
// Action bar
|
|
32
31
|
cancelButtonLabel: 'Anulare',
|
|
33
32
|
clearButtonLabel: 'Ștergere',
|
|
@@ -61,23 +60,21 @@ const roROPickers = {
|
|
|
61
60
|
fieldYearPlaceholder: params => 'A'.repeat(params.digitAmount),
|
|
62
61
|
fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'LLLL' : 'LL',
|
|
63
62
|
fieldDayPlaceholder: () => 'ZZ',
|
|
64
|
-
|
|
63
|
+
fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'ZZZZ' : 'ZZ',
|
|
65
64
|
fieldHoursPlaceholder: () => 'hh',
|
|
66
65
|
fieldMinutesPlaceholder: () => 'mm',
|
|
67
66
|
fieldSecondsPlaceholder: () => 'ss',
|
|
68
|
-
fieldMeridiemPlaceholder: () => 'aa'
|
|
69
|
-
|
|
67
|
+
fieldMeridiemPlaceholder: () => 'aa',
|
|
70
68
|
// View names
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
year: 'An',
|
|
70
|
+
month: 'Luna',
|
|
71
|
+
day: 'Ziua',
|
|
72
|
+
weekDay: 'Ziua saptămânii',
|
|
73
|
+
hours: 'Ore',
|
|
74
|
+
minutes: 'Minute',
|
|
75
|
+
seconds: 'Secunde',
|
|
76
|
+
meridiem: 'Meridiem',
|
|
80
77
|
// Common
|
|
81
|
-
|
|
78
|
+
empty: 'Gol'
|
|
82
79
|
};
|
|
83
80
|
const roRO = exports.roRO = (0, _getPickersLocalization.getPickersLocalization)(roROPickers);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.zhTW = void 0;
|
|
7
|
+
var _getPickersLocalization = require("./utils/getPickersLocalization");
|
|
8
|
+
const views = {
|
|
9
|
+
hours: '小時',
|
|
10
|
+
minutes: '分鐘',
|
|
11
|
+
seconds: '秒',
|
|
12
|
+
meridiem: '十二小時制'
|
|
13
|
+
};
|
|
14
|
+
const zhTWPickers = {
|
|
15
|
+
// Calendar navigation
|
|
16
|
+
previousMonth: '上個月',
|
|
17
|
+
nextMonth: '下個月',
|
|
18
|
+
// View navigation
|
|
19
|
+
openPreviousView: '前一個視圖',
|
|
20
|
+
openNextView: '下一個視圖',
|
|
21
|
+
calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? '年視圖已打開,切換為日曆視圖' : '日曆視圖已打開,切換為年視圖',
|
|
22
|
+
// DateRange labels
|
|
23
|
+
start: '開始',
|
|
24
|
+
end: '結束',
|
|
25
|
+
startDate: '開始日期',
|
|
26
|
+
startTime: '開始時間',
|
|
27
|
+
endDate: '結束日期',
|
|
28
|
+
endTime: '結束時間',
|
|
29
|
+
// Action bar
|
|
30
|
+
cancelButtonLabel: '取消',
|
|
31
|
+
clearButtonLabel: '清除',
|
|
32
|
+
okButtonLabel: '確認',
|
|
33
|
+
todayButtonLabel: '今天',
|
|
34
|
+
// Toolbar titles
|
|
35
|
+
datePickerToolbarTitle: '選擇日期',
|
|
36
|
+
dateTimePickerToolbarTitle: '選擇日期和時間',
|
|
37
|
+
timePickerToolbarTitle: '選擇時間',
|
|
38
|
+
dateRangePickerToolbarTitle: '選擇時間範圍',
|
|
39
|
+
// Clock labels
|
|
40
|
+
clockLabelText: (view, time, utils, formattedTime) => `選擇 ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? '未選擇時間' : `已選擇${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
41
|
+
hoursClockNumberText: hours => `${hours}小時`,
|
|
42
|
+
minutesClockNumberText: minutes => `${minutes}分鐘`,
|
|
43
|
+
secondsClockNumberText: seconds => `${seconds}秒`,
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: view => `選擇 ${views[view]}`,
|
|
46
|
+
// Calendar labels
|
|
47
|
+
calendarWeekNumberHeaderLabel: '週數',
|
|
48
|
+
calendarWeekNumberHeaderText: '#',
|
|
49
|
+
calendarWeekNumberAriaLabelText: weekNumber => `第${weekNumber}週`,
|
|
50
|
+
calendarWeekNumberText: weekNumber => `${weekNumber}`,
|
|
51
|
+
// Open picker labels
|
|
52
|
+
openDatePickerDialogue: (value, utils, formattedDate) => formattedDate || value !== null && utils.isValid(value) ? `選擇日期,已選擇${formattedDate ?? utils.format(value, 'fullDate')}` : '選擇日期',
|
|
53
|
+
openTimePickerDialogue: (value, utils, formattedTime) => formattedTime || value !== null && utils.isValid(value) ? `選擇時間,已選擇${formattedTime ?? utils.format(value, 'fullTime')}` : '選擇時間',
|
|
54
|
+
fieldClearLabel: '清除',
|
|
55
|
+
// Table labels
|
|
56
|
+
timeTableLabel: '選擇時間',
|
|
57
|
+
dateTableLabel: '選擇日期',
|
|
58
|
+
// Field section placeholders
|
|
59
|
+
fieldYearPlaceholder: params => 'Y'.repeat(params.digitAmount),
|
|
60
|
+
fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM',
|
|
61
|
+
fieldDayPlaceholder: () => 'DD',
|
|
62
|
+
fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
|
|
63
|
+
fieldHoursPlaceholder: () => 'hh',
|
|
64
|
+
fieldMinutesPlaceholder: () => 'mm',
|
|
65
|
+
fieldSecondsPlaceholder: () => 'ss',
|
|
66
|
+
fieldMeridiemPlaceholder: () => 'aa',
|
|
67
|
+
// View names
|
|
68
|
+
year: '年份',
|
|
69
|
+
month: '月份',
|
|
70
|
+
day: '日期',
|
|
71
|
+
weekDay: '星期',
|
|
72
|
+
hours: '時',
|
|
73
|
+
minutes: '分',
|
|
74
|
+
seconds: '秒',
|
|
75
|
+
meridiem: '十二小時制',
|
|
76
|
+
// Common
|
|
77
|
+
empty: '空'
|
|
78
|
+
};
|
|
79
|
+
const zhTW = exports.zhTW = (0, _getPickersLocalization.getPickersLocalization)(zhTWPickers);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.24.1",
|
|
4
4
|
"description": "The community edition of the Date and Time Picker components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"clsx": "^2.1.1",
|
|
42
42
|
"prop-types": "^15.8.1",
|
|
43
43
|
"react-transition-group": "^4.4.5",
|
|
44
|
-
"@mui/x-internals": "7.
|
|
44
|
+
"@mui/x-internals": "7.24.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@emotion/react": "^11.9.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@mui/material": "^5.15.14 || ^6.0.0",
|
|
50
50
|
"@mui/system": "^5.15.14 || ^6.0.0",
|
|
51
51
|
"date-fns": "^2.25.0 || ^3.2.0 || ^4.0.0",
|
|
52
|
-
"date-fns-jalali": "^2.13.0-0 || ^3.2.0-0",
|
|
52
|
+
"date-fns-jalali": "^2.13.0-0 || ^3.2.0-0 || ^4.0.0-0",
|
|
53
53
|
"dayjs": "^1.10.7",
|
|
54
54
|
"luxon": "^3.0.2",
|
|
55
55
|
"moment": "^2.29.4",
|