@ozen-ui/kit 0.52.0 → 0.54.0
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/TagNext/package.json +5 -0
- package/__inner__/cjs/components/Autocomplete/helper.d.ts +2 -0
- package/__inner__/cjs/components/Autocomplete/types.d.ts +1 -1
- package/__inner__/cjs/components/Calendar/Calendar.css +3 -0
- package/__inner__/cjs/components/Calendar/Calendar.d.ts +2 -3
- package/__inner__/cjs/components/Calendar/Calendar.js +13 -77
- package/__inner__/cjs/components/Calendar/CalendarContext.d.ts +7 -7
- package/__inner__/cjs/components/Calendar/CalendarContext.js +5 -5
- package/__inner__/cjs/components/Calendar/components/CalendarGrid/CalendarGrid.d.ts +5 -1
- package/__inner__/cjs/components/Calendar/components/CalendarGrid/CalendarGrid.js +13 -11
- package/__inner__/cjs/components/Calendar/components/{CalendarItem/CalendatItem.css → CalendarGridItem/CalendarGridItem.css} +17 -13
- package/__inner__/cjs/components/Calendar/components/CalendarGridItem/CalendarGridItem.d.ts +15 -0
- package/__inner__/cjs/components/Calendar/components/CalendarGridItem/CalendarGridItem.js +20 -0
- package/__inner__/cjs/components/Calendar/components/CalendarGridItem/index.d.ts +1 -0
- package/__inner__/cjs/components/{DatePicker/utils/matchCalendarSizeToFormElement → Calendar/components/CalendarGridItem}/index.js +1 -1
- package/__inner__/cjs/components/Calendar/components/CalendarItem/CalendarItem.d.ts +10 -12
- package/__inner__/cjs/components/Calendar/components/CalendarItem/CalendarItem.js +42 -12
- package/__inner__/cjs/components/Calendar/components/CalendarItem/CalendarItemContext.d.ts +10 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/CalendarItemContext.js +10 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/components/CalendarItemNextMonth/CalendarItemNextMonth.d.ts +2 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/components/CalendarItemNextMonth/CalendarItemNextMonth.js +16 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/components/CalendarItemNextMonth/index.d.ts +1 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/components/CalendarItemNextMonth/index.js +4 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/components/CalendarItemPreviousMonth/CalendarItemPreviousMonth.d.ts +2 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/components/CalendarItemPreviousMonth/CalendarItemPreviousMonth.js +16 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/components/CalendarItemPreviousMonth/index.d.ts +1 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/components/CalendarItemPreviousMonth/index.js +4 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/components/index.d.ts +2 -0
- package/__inner__/cjs/components/Calendar/components/CalendarItem/components/index.js +5 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/CalendarModeRange.d.ts +2 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/CalendarModeRange.js +79 -0
- package/__inner__/{esm/components/Calendar → cjs/components/Calendar/components/CalendarModeRange}/components/CalendarAdditionalControls/CalendarAdditionalControls.d.ts +2 -2
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/components/CalendarAdditionalControls/CalendarAdditionalControls.js +25 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/components/CalendarConsumer/CalendarConsumer.d.ts +2 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/components/CalendarConsumer/CalendarConsumer.js +45 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/components/CalendarConsumer/index.d.ts +1 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/components/CalendarConsumer/index.js +4 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/components/index.d.ts +2 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/components/index.js +5 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/index.d.ts +1 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeRange/index.js +4 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/CalendarModeSingle.d.ts +2 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/CalendarModeSingle.js +74 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/components/CalendarAdditionalControls/CalendarAdditionalControls.d.ts +9 -0
- package/__inner__/cjs/components/Calendar/components/{CalendarAdditionalControls → CalendarModeSingle/components/CalendarAdditionalControls}/CalendarAdditionalControls.js +3 -3
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/components/CalendarAdditionalControls/index.js +4 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/components/CalendarConsumer/CalendarConsumer.d.ts +2 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/components/CalendarConsumer/CalendarConsumer.js +39 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/components/CalendarConsumer/index.d.ts +1 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/components/CalendarConsumer/index.js +4 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/components/index.d.ts +2 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/components/index.js +5 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/index.d.ts +1 -0
- package/__inner__/cjs/components/Calendar/components/CalendarModeSingle/index.js +4 -0
- package/__inner__/cjs/components/Calendar/components/CalendarSwitcher/CalendarSwitcher.css +5 -7
- package/__inner__/cjs/components/Calendar/components/CalendarSwitcher/CalendarSwitcher.d.ts +3 -3
- package/__inner__/cjs/components/Calendar/components/CalendarSwitcher/CalendarSwitcher.js +10 -10
- package/__inner__/cjs/components/Calendar/components/index.d.ts +4 -2
- package/__inner__/cjs/components/Calendar/components/index.js +4 -2
- package/__inner__/cjs/components/Calendar/constants.d.ts +1 -1
- package/__inner__/cjs/components/Calendar/constants.js +2 -2
- package/__inner__/cjs/components/Calendar/types.d.ts +19 -16
- package/__inner__/cjs/components/Calendar/types.js +2 -1
- package/__inner__/cjs/components/Calendar/utils.d.ts +3 -0
- package/__inner__/cjs/components/Calendar/{components/CalendarSwitcher/utils.js → utils.js} +3 -1
- package/__inner__/cjs/components/DatePicker/DatePicker.d.ts +7 -7
- package/__inner__/cjs/components/DatePicker/DatePicker.js +1 -1
- package/__inner__/cjs/components/DatePicker/types.d.ts +4 -4
- package/__inner__/cjs/components/DatePicker/utils/getCalendarSizeToFormElement/getCalendarSizeToFormElement.d.ts +2 -0
- package/__inner__/cjs/components/DatePicker/utils/getCalendarSizeToFormElement/getCalendarSizeToFormElement.js +15 -0
- package/__inner__/cjs/components/DatePicker/utils/getCalendarSizeToFormElement/index.d.ts +1 -0
- package/__inner__/cjs/components/DatePicker/utils/getCalendarSizeToFormElement/index.js +4 -0
- package/__inner__/cjs/components/DatePicker/utils/index.d.ts +1 -1
- package/__inner__/cjs/components/DatePicker/utils/index.js +1 -1
- package/__inner__/cjs/components/FieldControl/FieldControl.css +7 -1
- package/__inner__/cjs/components/FieldControl/FieldControl.js +7 -1
- package/__inner__/cjs/components/FieldControl/FieldControlContext.d.ts +1 -0
- package/__inner__/cjs/components/FilePicker/FilePicker.d.ts +2 -1
- package/__inner__/cjs/components/FilePicker/types.d.ts +2 -0
- package/__inner__/cjs/components/Input/types.d.ts +2 -0
- package/__inner__/cjs/components/InputNumber/types.d.ts +2 -0
- package/__inner__/cjs/components/Loader/Loader.css +12 -12
- package/__inner__/cjs/components/Loader/Loader.d.ts +11 -11
- package/__inner__/cjs/components/Loader/Loader.js +3 -2
- package/__inner__/cjs/components/Select/Select.css +0 -1
- package/__inner__/cjs/components/Select/Select.js +6 -6
- package/__inner__/cjs/components/Select/components/SelectInput/types.d.ts +2 -0
- package/__inner__/cjs/components/Select/types.d.ts +1 -1
- package/__inner__/cjs/components/Snackbar/components/Snackbar/Snackbar.css +6 -5
- package/__inner__/cjs/components/Tag/Tag.css +5 -0
- package/__inner__/cjs/components/Tag/Tag.js +4 -0
- package/__inner__/cjs/components/TagNext/Tag.css +244 -0
- package/__inner__/cjs/components/TagNext/Tag.d.ts +33 -0
- package/__inner__/cjs/components/TagNext/Tag.js +39 -0
- package/__inner__/cjs/components/TagNext/constants.d.ts +4 -0
- package/__inner__/cjs/components/TagNext/constants.js +7 -0
- package/__inner__/cjs/components/TagNext/index.d.ts +1 -0
- package/__inner__/cjs/components/TagNext/index.js +4 -0
- package/__inner__/cjs/components/Textarea/types.d.ts +2 -0
- package/__inner__/cjs/components/ThemeProvider/_color/Theme_color_vipDark.css +172 -0
- package/__inner__/cjs/components/ThemeProvider/_color/Theme_color_vipDefault.css +172 -0
- package/__inner__/cjs/components/ThemeProvider/_typography/Theme_typography_ozenDefault.css +1 -0
- package/__inner__/cjs/components/ThemeProvider/themes/helper.d.ts +1 -1
- package/__inner__/cjs/components/ThemeProvider/themes/helper.js +1 -0
- package/__inner__/cjs/components/ThemeProvider/types.d.ts +2 -0
- package/__inner__/cjs/components/Typography/Typography.css +8 -0
- package/__inner__/cjs/components/Typography/Typography.d.ts +1 -1
- package/__inner__/cjs/components/Typography/Typography.js +1 -0
- package/__inner__/cjs/components/Typography/utils.js +1 -0
- package/__inner__/cjs/locale/locale.js +24 -30
- package/__inner__/cjs/utils/date/index.d.ts +1 -0
- package/__inner__/cjs/utils/date/index.js +4 -0
- package/__inner__/cjs/utils/date/monthDiff/index.d.ts +1 -0
- package/__inner__/cjs/utils/date/monthDiff/index.js +4 -0
- package/__inner__/cjs/utils/date/monthDiff/monthDiff.d.ts +1 -0
- package/__inner__/cjs/utils/date/monthDiff/monthDiff.js +11 -0
- package/__inner__/cjs/utils/getByMap/getByMap.d.ts +1 -0
- package/__inner__/cjs/utils/getByMap/getByMap.js +7 -0
- package/__inner__/cjs/utils/getByMap/index.d.ts +1 -0
- package/__inner__/cjs/utils/getByMap/index.js +4 -0
- package/__inner__/cjs/utils/getIconSizeToFormElement.js +7 -4
- package/__inner__/cjs/utils/getPaperSizeToFormElement.d.ts +1 -2
- package/__inner__/cjs/utils/getPaperSizeToFormElement.js +7 -4
- package/__inner__/esm/components/Autocomplete/helper.d.ts +2 -0
- package/__inner__/esm/components/Autocomplete/types.d.ts +1 -1
- package/__inner__/esm/components/Calendar/Calendar.css +3 -0
- package/__inner__/esm/components/Calendar/Calendar.d.ts +2 -3
- package/__inner__/esm/components/Calendar/Calendar.js +16 -80
- package/__inner__/esm/components/Calendar/CalendarContext.d.ts +7 -7
- package/__inner__/esm/components/Calendar/CalendarContext.js +3 -4
- package/__inner__/esm/components/Calendar/components/CalendarGrid/CalendarGrid.d.ts +5 -1
- package/__inner__/esm/components/Calendar/components/CalendarGrid/CalendarGrid.js +15 -12
- package/__inner__/esm/components/Calendar/components/{CalendarItem/CalendatItem.css → CalendarGridItem/CalendarGridItem.css} +17 -13
- package/__inner__/esm/components/Calendar/components/CalendarGridItem/CalendarGridItem.d.ts +15 -0
- package/__inner__/esm/components/Calendar/components/CalendarGridItem/CalendarGridItem.js +17 -0
- package/__inner__/esm/components/Calendar/components/CalendarGridItem/index.d.ts +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarGridItem/index.js +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/CalendarItem.d.ts +10 -12
- package/__inner__/esm/components/Calendar/components/CalendarItem/CalendarItem.js +43 -13
- package/__inner__/esm/components/Calendar/components/CalendarItem/CalendarItemContext.d.ts +10 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/CalendarItemContext.js +5 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/components/CalendarItemNextMonth/CalendarItemNextMonth.d.ts +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/components/CalendarItemNextMonth/CalendarItemNextMonth.js +12 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/components/CalendarItemNextMonth/index.d.ts +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/components/CalendarItemNextMonth/index.js +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/components/CalendarItemPreviousMonth/CalendarItemPreviousMonth.d.ts +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/components/CalendarItemPreviousMonth/CalendarItemPreviousMonth.js +12 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/components/CalendarItemPreviousMonth/index.d.ts +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/components/CalendarItemPreviousMonth/index.js +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/components/index.d.ts +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarItem/components/index.js +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/CalendarModeRange.d.ts +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/CalendarModeRange.js +76 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/components/CalendarAdditionalControls/CalendarAdditionalControls.css +3 -0
- package/__inner__/{cjs/components/Calendar → esm/components/Calendar/components/CalendarModeRange}/components/CalendarAdditionalControls/CalendarAdditionalControls.d.ts +2 -2
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/components/CalendarAdditionalControls/CalendarAdditionalControls.js +20 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/components/CalendarAdditionalControls/index.js +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/components/CalendarConsumer/CalendarConsumer.d.ts +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/components/CalendarConsumer/CalendarConsumer.js +41 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/components/CalendarConsumer/index.d.ts +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/components/CalendarConsumer/index.js +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/components/index.d.ts +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/components/index.js +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/index.d.ts +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeRange/index.js +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/CalendarModeSingle.d.ts +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/CalendarModeSingle.js +71 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/components/CalendarAdditionalControls/CalendarAdditionalControls.css +3 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/components/CalendarAdditionalControls/CalendarAdditionalControls.d.ts +9 -0
- package/__inner__/esm/components/Calendar/components/{CalendarAdditionalControls → CalendarModeSingle/components/CalendarAdditionalControls}/CalendarAdditionalControls.js +3 -3
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/components/CalendarAdditionalControls/index.d.ts +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/components/CalendarAdditionalControls/index.js +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/components/CalendarConsumer/CalendarConsumer.d.ts +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/components/CalendarConsumer/CalendarConsumer.js +35 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/components/CalendarConsumer/index.d.ts +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/components/CalendarConsumer/index.js +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/components/index.d.ts +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/components/index.js +2 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/index.d.ts +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarModeSingle/index.js +1 -0
- package/__inner__/esm/components/Calendar/components/CalendarSwitcher/CalendarSwitcher.css +5 -7
- package/__inner__/esm/components/Calendar/components/CalendarSwitcher/CalendarSwitcher.d.ts +3 -3
- package/__inner__/esm/components/Calendar/components/CalendarSwitcher/CalendarSwitcher.js +12 -12
- package/__inner__/esm/components/Calendar/components/index.d.ts +4 -2
- package/__inner__/esm/components/Calendar/components/index.js +4 -2
- package/__inner__/esm/components/Calendar/constants.d.ts +1 -1
- package/__inner__/esm/components/Calendar/constants.js +1 -1
- package/__inner__/esm/components/Calendar/types.d.ts +19 -16
- package/__inner__/esm/components/Calendar/types.js +1 -0
- package/__inner__/esm/components/Calendar/utils.d.ts +3 -0
- package/__inner__/esm/components/Calendar/{components/CalendarSwitcher/utils.js → utils.js} +2 -0
- package/__inner__/esm/components/DatePicker/DatePicker.d.ts +7 -7
- package/__inner__/esm/components/DatePicker/DatePicker.js +2 -2
- package/__inner__/esm/components/DatePicker/types.d.ts +4 -4
- package/__inner__/esm/components/DatePicker/utils/getCalendarSizeToFormElement/getCalendarSizeToFormElement.d.ts +2 -0
- package/__inner__/esm/components/DatePicker/utils/getCalendarSizeToFormElement/getCalendarSizeToFormElement.js +11 -0
- package/__inner__/esm/components/DatePicker/utils/getCalendarSizeToFormElement/index.d.ts +1 -0
- package/__inner__/esm/components/DatePicker/utils/getCalendarSizeToFormElement/index.js +1 -0
- package/__inner__/esm/components/DatePicker/utils/index.d.ts +1 -1
- package/__inner__/esm/components/DatePicker/utils/index.js +1 -1
- package/__inner__/esm/components/FieldControl/FieldControl.css +7 -1
- package/__inner__/esm/components/FieldControl/FieldControl.js +7 -1
- package/__inner__/esm/components/FieldControl/FieldControlContext.d.ts +1 -0
- package/__inner__/esm/components/FilePicker/FilePicker.d.ts +2 -1
- package/__inner__/esm/components/FilePicker/types.d.ts +2 -0
- package/__inner__/esm/components/Input/types.d.ts +2 -0
- package/__inner__/esm/components/InputNumber/types.d.ts +2 -0
- package/__inner__/esm/components/Loader/Loader.css +12 -12
- package/__inner__/esm/components/Loader/Loader.d.ts +11 -11
- package/__inner__/esm/components/Loader/Loader.js +3 -2
- package/__inner__/esm/components/Select/Select.css +0 -1
- package/__inner__/esm/components/Select/Select.js +6 -6
- package/__inner__/esm/components/Select/components/SelectInput/types.d.ts +2 -0
- package/__inner__/esm/components/Select/types.d.ts +1 -1
- package/__inner__/esm/components/Snackbar/components/Snackbar/Snackbar.css +6 -5
- package/__inner__/esm/components/Tag/Tag.css +5 -0
- package/__inner__/esm/components/Tag/Tag.js +4 -0
- package/__inner__/esm/components/TagNext/Tag.css +244 -0
- package/__inner__/esm/components/TagNext/Tag.d.ts +33 -0
- package/__inner__/esm/components/TagNext/Tag.js +36 -0
- package/__inner__/esm/components/TagNext/constants.d.ts +4 -0
- package/__inner__/esm/components/TagNext/constants.js +4 -0
- package/__inner__/esm/components/TagNext/index.d.ts +1 -0
- package/__inner__/esm/components/TagNext/index.js +1 -0
- package/__inner__/esm/components/Textarea/types.d.ts +2 -0
- package/__inner__/esm/components/ThemeProvider/_color/Theme_color_vipDark.css +172 -0
- package/__inner__/esm/components/ThemeProvider/_color/Theme_color_vipDefault.css +172 -0
- package/__inner__/esm/components/ThemeProvider/_typography/Theme_typography_ozenDefault.css +1 -0
- package/__inner__/esm/components/ThemeProvider/themes/helper.d.ts +1 -1
- package/__inner__/esm/components/ThemeProvider/themes/helper.js +1 -0
- package/__inner__/esm/components/ThemeProvider/types.d.ts +2 -0
- package/__inner__/esm/components/Typography/Typography.css +8 -0
- package/__inner__/esm/components/Typography/Typography.d.ts +1 -1
- package/__inner__/esm/components/Typography/Typography.js +1 -0
- package/__inner__/esm/components/Typography/utils.js +1 -0
- package/__inner__/esm/locale/locale.js +24 -30
- package/__inner__/esm/utils/date/index.d.ts +1 -0
- package/__inner__/esm/utils/date/index.js +1 -0
- package/__inner__/esm/utils/date/monthDiff/index.d.ts +1 -0
- package/__inner__/esm/utils/date/monthDiff/index.js +1 -0
- package/__inner__/esm/utils/date/monthDiff/monthDiff.d.ts +1 -0
- package/__inner__/esm/utils/date/monthDiff/monthDiff.js +7 -0
- package/__inner__/esm/utils/getByMap/getByMap.d.ts +1 -0
- package/__inner__/esm/utils/getByMap/getByMap.js +3 -0
- package/__inner__/esm/utils/getByMap/index.d.ts +1 -0
- package/__inner__/esm/utils/getByMap/index.js +1 -0
- package/__inner__/esm/utils/getIconSizeToFormElement.js +7 -4
- package/__inner__/esm/utils/getPaperSizeToFormElement.d.ts +1 -2
- package/__inner__/esm/utils/getPaperSizeToFormElement.js +7 -4
- package/package.json +4 -5
- package/__inner__/cjs/components/Calendar/components/CalendarSwitcher/utils.d.ts +0 -2
- package/__inner__/cjs/components/DatePicker/utils/matchCalendarSizeToFormElement/index.d.ts +0 -1
- package/__inner__/cjs/components/DatePicker/utils/matchCalendarSizeToFormElement/matchCalendarSizeToFormElement.d.ts +0 -5
- package/__inner__/cjs/components/DatePicker/utils/matchCalendarSizeToFormElement/matchCalendarSizeToFormElement.js +0 -10
- package/__inner__/esm/components/Calendar/components/CalendarSwitcher/utils.d.ts +0 -2
- package/__inner__/esm/components/DatePicker/utils/matchCalendarSizeToFormElement/index.d.ts +0 -1
- package/__inner__/esm/components/DatePicker/utils/matchCalendarSizeToFormElement/index.js +0 -1
- package/__inner__/esm/components/DatePicker/utils/matchCalendarSizeToFormElement/matchCalendarSizeToFormElement.d.ts +0 -5
- package/__inner__/esm/components/DatePicker/utils/matchCalendarSizeToFormElement/matchCalendarSizeToFormElement.js +0 -7
- /package/__inner__/cjs/components/Calendar/components/{CalendarAdditionalControls → CalendarModeRange/components/CalendarAdditionalControls}/CalendarAdditionalControls.css +0 -0
- /package/__inner__/cjs/components/Calendar/components/{CalendarAdditionalControls → CalendarModeRange/components/CalendarAdditionalControls}/index.d.ts +0 -0
- /package/__inner__/cjs/components/Calendar/components/{CalendarAdditionalControls → CalendarModeRange/components/CalendarAdditionalControls}/index.js +0 -0
- /package/__inner__/{esm/components/Calendar → cjs/components/Calendar/components/CalendarModeSingle}/components/CalendarAdditionalControls/CalendarAdditionalControls.css +0 -0
- /package/__inner__/{esm/components/Calendar → cjs/components/Calendar/components/CalendarModeSingle}/components/CalendarAdditionalControls/index.d.ts +0 -0
- /package/__inner__/esm/components/Calendar/components/{CalendarAdditionalControls/index.js → CalendarModeRange/components/CalendarAdditionalControls/index.d.ts} +0 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
.Theme_color_vipDefault {
|
|
2
|
+
--color-content-primary: #17161a;
|
|
3
|
+
--color-content-secondary: #636574;
|
|
4
|
+
--color-content-tertiary: #7e8194;
|
|
5
|
+
--color-content-disabled: #9a9eb5;
|
|
6
|
+
--color-content-ghost-disabled: rgb(255 255 255 / 40%);
|
|
7
|
+
--color-content-action: #d4aa6b;
|
|
8
|
+
--color-content-action-hover: #ad8b59;
|
|
9
|
+
--color-content-action-pressed: #866c47;
|
|
10
|
+
--color-content-action-dark: #5f4d36;
|
|
11
|
+
--color-content-action-secondary: #2c2c33;
|
|
12
|
+
--color-content-action-secondary-hover: #1e1d22;
|
|
13
|
+
--color-content-action-secondary-pressed: #17161a;
|
|
14
|
+
--color-content-action-secondary-dark: #17161a;
|
|
15
|
+
--color-content-action-on: #fff;
|
|
16
|
+
--color-content-error: #f664af;
|
|
17
|
+
--color-content-error-hover: #c85390;
|
|
18
|
+
--color-content-error-pressed: #9a4270;
|
|
19
|
+
--color-content-error-dark: #6c3151;
|
|
20
|
+
--color-content-warning: #ff7f50;
|
|
21
|
+
--color-content-warning-hover: #cf6944;
|
|
22
|
+
--color-content-warning-pressed: #9f5237;
|
|
23
|
+
--color-content-warning-dark: #703c2b;
|
|
24
|
+
--color-content-success: #0b0;
|
|
25
|
+
--color-content-success-hover: #039904;
|
|
26
|
+
--color-content-success-pressed: #067607;
|
|
27
|
+
--color-content-success-dark: #0a540b;
|
|
28
|
+
--color-content-info: #023dff;
|
|
29
|
+
--color-content-info-hover: #0534d0;
|
|
30
|
+
--color-content-info-pressed: #082ba0;
|
|
31
|
+
--color-content-info-dark: #0a2171;
|
|
32
|
+
--color-content-primary-inverse: #fff;
|
|
33
|
+
--color-content-accent-secondary: #989aa5;
|
|
34
|
+
--color-accent-main: #14151b;
|
|
35
|
+
--color-content-accent-primary: #c7c8ce;
|
|
36
|
+
--color-accent-primary: #1b1c24;
|
|
37
|
+
--color-content-accent-disabled: #7b7e8c;
|
|
38
|
+
--color-background-main: #fff;
|
|
39
|
+
--color-background-main-hover: #f5f5f8;
|
|
40
|
+
--color-background-main-pressed: #ebecf0;
|
|
41
|
+
--color-background-primary: #f5f5f8;
|
|
42
|
+
--color-background-primary-hover: #ebecf0;
|
|
43
|
+
--color-background-primary-pressed: #d7d8e1;
|
|
44
|
+
--color-background-secondary: #ebecf0;
|
|
45
|
+
--color-background-secondary-hover: #d7d8e1;
|
|
46
|
+
--color-background-secondary-pressed: #c2c5d3;
|
|
47
|
+
--color-background-tertiary: #d7d8e1;
|
|
48
|
+
--color-background-tertiary-hover: #c2c5d3;
|
|
49
|
+
--color-background-tertiary-pressed: #aeb1c4;
|
|
50
|
+
--color-background-disabled: #ebecf0;
|
|
51
|
+
--color-background-action: #d4aa6b;
|
|
52
|
+
--color-background-action-hover: #ad8b59;
|
|
53
|
+
--color-background-action-pressed: #866c47;
|
|
54
|
+
--color-background-action-active-disabled: #eeddc4;
|
|
55
|
+
--color-background-action-light: #f9f3e9;
|
|
56
|
+
--color-background-action-light-hover: #f6eee1;
|
|
57
|
+
--color-background-action-light-pressed: #eeddc4;
|
|
58
|
+
--color-background-accent-action-light: #866c47;
|
|
59
|
+
--color-background-accent-action-light-hover: #5f4d36;
|
|
60
|
+
--color-background-accent-action-light-pressed: #372e24;
|
|
61
|
+
--color-background-action-secondary: #2c2c33;
|
|
62
|
+
--color-background-action-secondary-hover: #1e1d22;
|
|
63
|
+
--color-background-action-secondary-pressed: #17161a;
|
|
64
|
+
--color-background-action-secondary-active-disabled: #c2c5d3;
|
|
65
|
+
--color-background-action-secondary-light: #ebecf0;
|
|
66
|
+
--color-background-action-secondary-light-hover: #d7d8e1;
|
|
67
|
+
--color-background-action-secondary-light-pressed: #c2c5d3;
|
|
68
|
+
--color-background-accent-action-secondary-light: #636574;
|
|
69
|
+
--color-background-accent-action-secondary-light-hover: #474853;
|
|
70
|
+
--color-background-accent-action-secondary-light-pressed: #2c2c33;
|
|
71
|
+
--color-background-error: #f664af;
|
|
72
|
+
--color-background-error-hover: #c85390;
|
|
73
|
+
--color-background-error-pressed: #9a4270;
|
|
74
|
+
--color-background-error-light: #fee8f3;
|
|
75
|
+
--color-background-error-light-hover: #fde0ef;
|
|
76
|
+
--color-background-error-light-pressed: #fbc1df;
|
|
77
|
+
--color-background-accent-error-light: #9a4270;
|
|
78
|
+
--color-background-accent-error-light-hover: #6c3151;
|
|
79
|
+
--color-background-accent-error-light-pressed: #3e2031;
|
|
80
|
+
--color-background-warning: #ff7f50;
|
|
81
|
+
--color-background-warning-hover: #cf6944;
|
|
82
|
+
--color-background-warning-pressed: #9f5237;
|
|
83
|
+
--color-background-warning-light: #ffece5;
|
|
84
|
+
--color-background-warning-light-hover: #ffe5dc;
|
|
85
|
+
--color-background-warning-light-pressed: #ffccb9;
|
|
86
|
+
--color-background-accent-warning-light: #9f5237;
|
|
87
|
+
--color-background-accent-warning-light-hover: #703c2b;
|
|
88
|
+
--color-background-accent-warning-light-pressed: #40251e;
|
|
89
|
+
--color-background-success: #0b0;
|
|
90
|
+
--color-background-success-hover: #039904;
|
|
91
|
+
--color-background-success-pressed: #067607;
|
|
92
|
+
--color-background-success-light: #d9f5d9;
|
|
93
|
+
--color-background-success-light-hover: #ccf1cc;
|
|
94
|
+
--color-background-success-light-pressed: #99e499;
|
|
95
|
+
--color-background-accent-success-light: #067607;
|
|
96
|
+
--color-background-accent-success-light-hover: #0a540b;
|
|
97
|
+
--color-background-accent-success-light-pressed: #0d310e;
|
|
98
|
+
--color-background-info: #023dff;
|
|
99
|
+
--color-background-info-hover: #0534d0;
|
|
100
|
+
--color-background-info-pressed: #082ba0;
|
|
101
|
+
--color-background-info-light: #d9e2ff;
|
|
102
|
+
--color-background-info-light-hover: #ccd8ff;
|
|
103
|
+
--color-background-info-light-pressed: #9ab1ff;
|
|
104
|
+
--color-background-accent-info-light: #082ba0;
|
|
105
|
+
--color-background-accent-info-light-hover: #0a2171;
|
|
106
|
+
--color-background-accent-info-light-pressed: #0d1841;
|
|
107
|
+
--color-background-main-inverse: #0d0e12;
|
|
108
|
+
--color-background-overlay: rgb(0 0 0 / 50%);
|
|
109
|
+
--color-background-ghost: rgb(255 255 255 / 10%);
|
|
110
|
+
--color-background-ghost-hover: rgb(255 255 255 / 20%);
|
|
111
|
+
--color-background-ghost-pressed: rgb(255 255 255 / 30%);
|
|
112
|
+
--color-background-ghost-disabled: rgb(255 255 255 / 40%);
|
|
113
|
+
--color-border-main: #c2c5d3;
|
|
114
|
+
--color-border-main-hover: #aeb1c4;
|
|
115
|
+
--color-border-main-pressed: #9a9eb5;
|
|
116
|
+
--color-border-secondary: #d7d8e1;
|
|
117
|
+
--color-border-secondary-hover: #c2c5d3;
|
|
118
|
+
--color-border-secondary-pressed: #aeb1c4;
|
|
119
|
+
--color-border-disabled: #c2c5d3;
|
|
120
|
+
--color-border-ghost-disabled: rgb(255 255 255 / 40%);
|
|
121
|
+
--color-border-focused: #eeddc4;
|
|
122
|
+
--color-border-action: #d4aa6b;
|
|
123
|
+
--color-border-action-hover: #ad8b59;
|
|
124
|
+
--color-border-action-pressed: #866c47;
|
|
125
|
+
--color-border-action-secondary: #2c2c33;
|
|
126
|
+
--color-border-action-secondary-hover: #1e1d22;
|
|
127
|
+
--color-border-action-secondary-pressed: #17161a;
|
|
128
|
+
--color-border-error: #f664af;
|
|
129
|
+
--color-border-warning: #ff7f50;
|
|
130
|
+
--color-border-success: #0b0;
|
|
131
|
+
--color-border-info: #023dff;
|
|
132
|
+
--color-border-main-on: #fff;
|
|
133
|
+
--color-border-accent-main: #989aa5;
|
|
134
|
+
--color-border-accent-disabled: #5f6374;
|
|
135
|
+
--color-border-accent-focused: #2d261f;
|
|
136
|
+
--color-accent-main-hover: #1b1c24;
|
|
137
|
+
--color-accent-main-pressed: #252732;
|
|
138
|
+
--color-accent-primary-hover: #252732;
|
|
139
|
+
--color-accent-primary-pressed: #2f3240;
|
|
140
|
+
--color-accent-secondary: #252732;
|
|
141
|
+
--color-accent-secondary-hover: #2f3240;
|
|
142
|
+
--color-accent-secondary-pressed: #393c4d;
|
|
143
|
+
--color-accent-tertiary: #2f3240;
|
|
144
|
+
--color-accent-tertiary-hover: #393c4d;
|
|
145
|
+
--color-accent-tertiary-pressed: #43475b;
|
|
146
|
+
--color-accent-disabled: #2f3240;
|
|
147
|
+
--color-accent-main-inverse: #c7c8ce;
|
|
148
|
+
--color-additional-a1: #067607;
|
|
149
|
+
--color-additional-a2: #0b0;
|
|
150
|
+
--color-additional-a3: #99e499;
|
|
151
|
+
--color-additional-b1: #763986;
|
|
152
|
+
--color-additional-b2: #ba55d3;
|
|
153
|
+
--color-additional-b3: #e3bbed;
|
|
154
|
+
--color-additional-c1: #638125;
|
|
155
|
+
--color-additional-c2: #9acd32;
|
|
156
|
+
--color-additional-c3: #d7ebad;
|
|
157
|
+
--color-additional-d1: #23867f;
|
|
158
|
+
--color-additional-d2: #30d5c8;
|
|
159
|
+
--color-additional-d3: #aceee9;
|
|
160
|
+
--color-additional-e1: #9f6d24;
|
|
161
|
+
--color-additional-e2: #ffac30;
|
|
162
|
+
--color-additional-e3: #ffdeac;
|
|
163
|
+
--color-additional-f1: #1966a0;
|
|
164
|
+
--color-additional-f2: #1fa1ff;
|
|
165
|
+
--color-additional-f3: #a5d9ff;
|
|
166
|
+
--color-additional-g1: #9f3b3d;
|
|
167
|
+
--color-additional-g2: #ff5959;
|
|
168
|
+
--color-additional-g3: #ffbdbd;
|
|
169
|
+
--color-additional-h1: #9f891a;
|
|
170
|
+
--color-additional-h2: #ffda1f;
|
|
171
|
+
--color-additional-h3: #fff0a5;
|
|
172
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
--typography-heading-xl-font: 700 24px/32px 'Roboto', sans-serif;
|
|
13
13
|
--typography-text-xl-font: 400 24px/32px 'Roboto', sans-serif;
|
|
14
14
|
--typography-text-l-font: 400 18px/28px 'Roboto', sans-serif;
|
|
15
|
+
--typography-heading-l-font: 700 20px/28px 'Roboto', sans-serif;
|
|
15
16
|
--typography-text-l_1-font: 500 18px/28px 'Roboto', sans-serif;
|
|
16
17
|
--typography-text-m-font: 400 16px/24px 'Roboto', sans-serif;
|
|
17
18
|
--typography-text-m_1-font: 500 16px/24px 'Roboto', sans-serif;
|
|
@@ -7,5 +7,5 @@ export declare const zIndex: readonly ["--z-index-default", "--z-index-absolute"
|
|
|
7
7
|
export declare const space: readonly ["--space-8xl", "--space-7xl", "--space-6xl", "--space-5xl", "--space-4xl", "--space-3xl", "--space-2xl", "--space-xl", "--space-l", "--space-m", "--space-s", "--space-xs"];
|
|
8
8
|
export declare const spacing: readonly ["--spacing-4xs", "--spacing-3xs", "--spacing-2xs", "--spacing-xs", "--spacing-s", "--spacing-m", "--spacing-l", "--spacing-xl", "--spacing-2xl", "--spacing-3xl", "--spacing-4xl"];
|
|
9
9
|
export declare const control: readonly ["--control-padding-4xs", "--control-padding-3xs", "--control-padding-2xs", "--control-padding-xs", "--control-padding-s", "--control-padding-m", "--control-padding-l", "--control-height-4xs", "--control-height-3xs", "--control-height-2xs", "--control-height-xs", "--control-height-s", "--control-height-m", "--control-height-l"];
|
|
10
|
-
export declare const typography: readonly ["--typography-text-xl_1-font", "--typography-text-4xl_1-font", "--typography-text-3xl_1-font", "--typography-text-2xl_1-font", "--typography-heading-4xl-font", "--typography-text-4xl-font", "--typography-heading-3xl-font", "--typography-text-3xl-font", "--typography-heading-2xl-font", "--typography-text-2xl-font", "--typography-heading-xl-font", "--typography-text-xl-font", "--typography-text-l-font", "--typography-text-l_1-font", "--typography-text-m-font", "--typography-text-m_1-font", "--typography-text-s-font", "--typography-text-s_1-font", "--typography-text-xs-font", "--typography-text-xs_1-font", "--typography-text-2xs-font", "--typography-text-2xs_1-font", "--typography-text-3xs-font", "--typography-caption-3xs-font", "--typography-caption-3xs-text_transform", "--typography-caption-3xs-letter_spacing", "--typography-text-3xs_1-font", "--typography-caption-3xs_1-font", "--typography-caption-3xs_1-text_transform", "--typography-caption-3xs_1-letter_spacing"];
|
|
10
|
+
export declare const typography: readonly ["--typography-text-xl_1-font", "--typography-text-4xl_1-font", "--typography-text-3xl_1-font", "--typography-text-2xl_1-font", "--typography-heading-4xl-font", "--typography-text-4xl-font", "--typography-heading-3xl-font", "--typography-text-3xl-font", "--typography-heading-2xl-font", "--typography-text-2xl-font", "--typography-heading-xl-font", "--typography-text-xl-font", "--typography-text-l-font", "--typography-heading-l-font", "--typography-text-l_1-font", "--typography-text-m-font", "--typography-text-m_1-font", "--typography-text-s-font", "--typography-text-s_1-font", "--typography-text-xs-font", "--typography-text-xs_1-font", "--typography-text-2xs-font", "--typography-text-2xs_1-font", "--typography-text-3xs-font", "--typography-caption-3xs-font", "--typography-caption-3xs-text_transform", "--typography-caption-3xs-letter_spacing", "--typography-text-3xs_1-font", "--typography-caption-3xs_1-font", "--typography-caption-3xs_1-text_transform", "--typography-caption-3xs_1-letter_spacing"];
|
|
11
11
|
export declare const transition: readonly ["--transition-default", "--transition-slow"];
|
|
@@ -257,6 +257,7 @@ exports.typography = [
|
|
|
257
257
|
'--typography-heading-xl-font',
|
|
258
258
|
'--typography-text-xl-font',
|
|
259
259
|
'--typography-text-l-font',
|
|
260
|
+
'--typography-heading-l-font',
|
|
260
261
|
'--typography-text-l_1-font',
|
|
261
262
|
'--typography-text-m-font',
|
|
262
263
|
'--typography-text-m_1-font',
|
|
@@ -49,6 +49,7 @@ import type { SnackbarProviderProps } from '../Snackbar';
|
|
|
49
49
|
import type { StackProps } from '../Stack';
|
|
50
50
|
import type { TableContainerProps, TableProps, TableCaptionProps, TableCellProps } from '../Table';
|
|
51
51
|
import type { TagProps } from '../Tag';
|
|
52
|
+
import type { TagProps as TagPropsNext } from '../TagNext';
|
|
52
53
|
import type { TextareaProps } from '../Textarea';
|
|
53
54
|
import type { ToggleProps } from '../Toggle';
|
|
54
55
|
import type { TooltipProps } from '../Tooltip';
|
|
@@ -128,6 +129,7 @@ export type Theme = {
|
|
|
128
129
|
TableCell?: Partial<TableCellProps>;
|
|
129
130
|
TableContainer?: Partial<TableContainerProps>;
|
|
130
131
|
Tag?: Partial<TagProps>;
|
|
132
|
+
TagNext?: Partial<TagPropsNext>;
|
|
131
133
|
Textarea?: Partial<TextareaProps>;
|
|
132
134
|
Toggle?: Partial<ToggleProps>;
|
|
133
135
|
Tooltip?: Partial<TooltipProps>;
|
|
@@ -157,6 +157,14 @@
|
|
|
157
157
|
.Typography_variant_heading-xl.Typography_defaultMargin {
|
|
158
158
|
margin-block-end: var(--spacing-l);
|
|
159
159
|
}
|
|
160
|
+
.Typography_variant_heading-l {
|
|
161
|
+
font: var(--typography-heading-l-font);
|
|
162
|
+
letter-spacing: var(--typography-heading-l-letter_spacing, 0);
|
|
163
|
+
text-transform: var(--typography-heading-l-text_transform, none);
|
|
164
|
+
}
|
|
165
|
+
.Typography_variant_heading-l.Typography_defaultMargin {
|
|
166
|
+
margin-block-end: var(--spacing-m);
|
|
167
|
+
}
|
|
160
168
|
.Typography_variant_text-4xl {
|
|
161
169
|
font: var(--typography-text-4xl-font);
|
|
162
170
|
letter-spacing: var(--typography-text-4xl-letter_spacing, 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './Typography.css';
|
|
2
2
|
import type { ElementType, ReactNode } from 'react';
|
|
3
3
|
import type { PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphicComponentWithRef';
|
|
4
|
-
export declare const typographyVariant: readonly ["heading-4xl", "heading-3xl", "heading-2xl", "heading-xl", "text-4xl", "text-4xl_1", "text-3xl", "text-3xl_1", "text-2xl", "text-2xl_1", "text-xl", "text-xl_1", "text-l", "text-l_1", "text-m", "text-m_1", "text-s", "text-s_1", "text-xs", "text-xs_1", "text-2xs", "text-2xs_1", "text-3xs", "text-3xs_1", "caption-3xs", "caption-3xs_1", "inherit"];
|
|
4
|
+
export declare const typographyVariant: readonly ["heading-4xl", "heading-3xl", "heading-2xl", "heading-xl", "heading-l", "text-4xl", "text-4xl_1", "text-3xl", "text-3xl_1", "text-2xl", "text-2xl_1", "text-xl", "text-xl_1", "text-l", "text-l_1", "text-m", "text-m_1", "text-s", "text-s_1", "text-xs", "text-xs_1", "text-2xs", "text-2xs_1", "text-3xs", "text-3xs_1", "caption-3xs", "caption-3xs_1", "inherit"];
|
|
5
5
|
export type TypographyVariant = (typeof typographyVariant)[number];
|
|
6
6
|
export declare const typographyDisplayVariant: readonly ["block", "inline", "inlineBlock"];
|
|
7
7
|
export type TypographyDisplayVariant = (typeof typographyDisplayVariant)[number];
|
|
@@ -56,16 +56,14 @@ exports.ruRU = {
|
|
|
56
56
|
},
|
|
57
57
|
Calendar: {
|
|
58
58
|
locale: 'ru-RU',
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return ['Предыдущий период', 'Следующий период'];
|
|
68
|
-
},
|
|
59
|
+
getPeriodSwitchAriaLabel: function (step) {
|
|
60
|
+
if (step === 'days') {
|
|
61
|
+
return ['Предыдущий месяц', 'Следующий месяц'];
|
|
62
|
+
}
|
|
63
|
+
if (step === 'months') {
|
|
64
|
+
return ['Предыдущий год', 'Следующий год'];
|
|
65
|
+
}
|
|
66
|
+
return ['Предыдущий период', 'Следующий период'];
|
|
69
67
|
},
|
|
70
68
|
},
|
|
71
69
|
DatePicker: {
|
|
@@ -128,16 +126,14 @@ exports.kkKZ = {
|
|
|
128
126
|
},
|
|
129
127
|
Calendar: {
|
|
130
128
|
locale: 'kk-KZ',
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return ['Алдыңғы кезең', 'Келесі кезең'];
|
|
140
|
-
},
|
|
129
|
+
getPeriodSwitchAriaLabel: function (step) {
|
|
130
|
+
if (step === 'days') {
|
|
131
|
+
return ['Алдыңғы ай', 'Келесі ай'];
|
|
132
|
+
}
|
|
133
|
+
if (step === 'months') {
|
|
134
|
+
return ['Өткен жыл', 'Келесі жыл'];
|
|
135
|
+
}
|
|
136
|
+
return ['Алдыңғы кезең', 'Келесі кезең'];
|
|
141
137
|
},
|
|
142
138
|
},
|
|
143
139
|
DatePicker: {
|
|
@@ -201,16 +197,14 @@ exports.enUS = {
|
|
|
201
197
|
Calendar: {
|
|
202
198
|
locale: 'en-US',
|
|
203
199
|
startDay: 0,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
return ['Previous period', 'Next period'];
|
|
213
|
-
},
|
|
200
|
+
getPeriodSwitchAriaLabel: function (step) {
|
|
201
|
+
if (step === 'days') {
|
|
202
|
+
return ['Previous month', 'Next month'];
|
|
203
|
+
}
|
|
204
|
+
if (step === 'months') {
|
|
205
|
+
return ['Previous year', 'Next year'];
|
|
206
|
+
}
|
|
207
|
+
return ['Previous period', 'Next period'];
|
|
214
208
|
},
|
|
215
209
|
},
|
|
216
210
|
DatePicker: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './monthDiff';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './monthDiff';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const monthDiff: (d1: Date, d2: Date) => number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.monthDiff = void 0;
|
|
4
|
+
var monthDiff = function (d1, d2) {
|
|
5
|
+
var months;
|
|
6
|
+
months = (d2.getFullYear() - d1.getFullYear()) * 12;
|
|
7
|
+
months -= d1.getMonth();
|
|
8
|
+
months += d2.getMonth();
|
|
9
|
+
return months <= 0 ? 0 : months;
|
|
10
|
+
};
|
|
11
|
+
exports.monthDiff = monthDiff;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getByMap<KEY extends string | number, VALUE>(map: Record<KEY, VALUE>, key: KEY): VALUE;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getByMap';
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getIconSizeToFormElement = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
xs: 's',
|
|
4
|
+
var getByMap_1 = require("./getByMap");
|
|
5
|
+
var typeMap = {
|
|
7
6
|
s: 's',
|
|
8
7
|
m: 'm',
|
|
9
8
|
l: 'm',
|
|
9
|
+
xs: 's',
|
|
10
|
+
'2xs': 's',
|
|
11
|
+
};
|
|
12
|
+
var getIconSizeToFormElement = function (size) {
|
|
13
|
+
return (0, getByMap_1.getByMap)(typeMap, size);
|
|
10
14
|
};
|
|
11
|
-
var getIconSizeToFormElement = function (size) { return matchIconSizeToFormElement === null || matchIconSizeToFormElement === void 0 ? void 0 : matchIconSizeToFormElement[size]; };
|
|
12
15
|
exports.getIconSizeToFormElement = getIconSizeToFormElement;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { PaperProps } from '../components/Paper';
|
|
2
1
|
import type { FormElementSizeVariant } from '../types/FormElementSizeVariant';
|
|
3
|
-
export declare const getPaperSizeToFormElement: (size: FormElementSizeVariant) =>
|
|
2
|
+
export declare const getPaperSizeToFormElement: (size: FormElementSizeVariant) => "s" | "l" | "xl" | "xs" | "2xl";
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPaperSizeToFormElement = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
xs: 's',
|
|
4
|
+
var getByMap_1 = require("./getByMap");
|
|
5
|
+
var typeMap = {
|
|
7
6
|
s: 'l',
|
|
8
7
|
m: 'l',
|
|
9
8
|
l: 'l',
|
|
9
|
+
xs: 's',
|
|
10
|
+
'2xs': 's',
|
|
11
|
+
};
|
|
12
|
+
var getPaperSizeToFormElement = function (size) {
|
|
13
|
+
return (0, getByMap_1.getByMap)(typeMap, size);
|
|
10
14
|
};
|
|
11
|
-
var getPaperSizeToFormElement = function (size) { return matchPaperSizeToFormElement === null || matchPaperSizeToFormElement === void 0 ? void 0 : matchPaperSizeToFormElement[size]; };
|
|
12
15
|
exports.getPaperSizeToFormElement = getPaperSizeToFormElement;
|
|
@@ -42,6 +42,7 @@ export declare function withDefaultGetters<OPTION>(props: AutocompleteProps<OPTI
|
|
|
42
42
|
placeholder?: string | undefined;
|
|
43
43
|
required?: boolean | undefined;
|
|
44
44
|
fullWidth?: boolean | undefined;
|
|
45
|
+
disableStroke?: boolean | undefined;
|
|
45
46
|
hint?: string | null | undefined;
|
|
46
47
|
renderLeft?: string | number | import("react").FC<import("react").SVGProps<SVGSVGElement> & {
|
|
47
48
|
color?: string | undefined;
|
|
@@ -142,6 +143,7 @@ export declare function withDefaultGetters<OPTION>(props: AutocompleteProps<OPTI
|
|
|
142
143
|
placeholder?: string | undefined;
|
|
143
144
|
required?: boolean | undefined;
|
|
144
145
|
fullWidth?: boolean | undefined;
|
|
146
|
+
disableStroke?: boolean | undefined;
|
|
145
147
|
hint?: string | null | undefined;
|
|
146
148
|
renderLeft?: string | number | import("react").FC<import("react").SVGProps<SVGSVGElement> & {
|
|
147
149
|
color?: string | undefined;
|
|
@@ -31,7 +31,7 @@ type AutocompleteOpenUncontrolledProps = {
|
|
|
31
31
|
/** Состояние открытие по умолчанию (неконтролируемый компонент) */
|
|
32
32
|
defaultOpen?: boolean;
|
|
33
33
|
};
|
|
34
|
-
type AutocompleteInputProps = Pick<InputProps, 'placeholder' | 'autoFocus' | 'fullWidth' | 'disabled' | 'label' | 'required' | 'style' | 'error' | 'hint' | 'renderLeft' | 'renderRight' | 'className' | 'inputProps' | 'hintProps' | 'bodyProps' | 'onKeyDown'>;
|
|
34
|
+
type AutocompleteInputProps = Pick<InputProps, 'placeholder' | 'autoFocus' | 'fullWidth' | 'disabled' | 'label' | 'required' | 'disableStroke' | 'style' | 'error' | 'hint' | 'renderLeft' | 'renderRight' | 'className' | 'inputProps' | 'hintProps' | 'bodyProps' | 'onKeyDown'>;
|
|
35
35
|
type AutocompleteDataListProps = Partial<Omit<DataListProps, 'onClose' | 'open' | 'anchorRef' | 'multiple' | 'selected' | 'onSelect'>>;
|
|
36
36
|
export type AutocompleteProps<OPTION = AutocompleteDefaultOption> = {
|
|
37
37
|
/** Список вариантов выбора (опции) */
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
}
|
|
8
8
|
.Calendar_size_s {
|
|
9
|
+
--calendar-width: 252px;
|
|
9
10
|
--calendar-grid-size: 236px;
|
|
10
11
|
--calendar-switcher-height: var(--control-height-s);
|
|
11
12
|
--calendar-switcher-margin: 0 var(--spacing-xs);
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
text-transform: var(--typography-text-s-text_transform, none);
|
|
19
20
|
}
|
|
20
21
|
.Calendar_size_m {
|
|
22
|
+
--calendar-width: 308px;
|
|
21
23
|
--calendar-grid-size: 292px;
|
|
22
24
|
--calendar-switcher-height: var(--control-height-m);
|
|
23
25
|
--calendar-switcher-margin: 0 var(--spacing-xs);
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
text-transform: var(--typography-text-m-text_transform, none);
|
|
31
33
|
}
|
|
32
34
|
.Calendar_size_l {
|
|
35
|
+
--calendar-width: 364px;
|
|
33
36
|
--calendar-grid-size: 348px;
|
|
34
37
|
--calendar-switcher-height: var(--control-height-l);
|
|
35
38
|
--calendar-switcher-margin: 0 var(--spacing-xs);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import './Calendar.css';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const Calendar: import("../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<CalendarBaseProps, "div">;
|
|
2
|
+
import type { CalendarComponent } from './types';
|
|
3
|
+
export declare const Calendar: CalendarComponent;
|
|
@@ -1,87 +1,23 @@
|
|
|
1
|
-
import { __assign,
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
2
|
import './Calendar.css';
|
|
3
|
-
import React, {
|
|
4
|
-
import { DatePickerProvider } from '@rehookify/datepicker';
|
|
5
|
-
import { useControlled } from '../../hooks/useControlled';
|
|
3
|
+
import React, { forwardRef } from 'react';
|
|
6
4
|
import { useThemeProps } from '../../hooks/useThemeProps';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
import { getByMap } from '../../utils/getByMap';
|
|
6
|
+
import { CalendarModeRange, CalendarModeSingle } from './components';
|
|
7
|
+
import { CALENDAR_DEFAULT_MODE, CALENDAR_DEFAULT_SIZE, CALENDAR_DEFAULT_START_DAY, } from './constants';
|
|
8
|
+
import { getPeriodSwitchAriaLabel as createPeriodSwitchAriaLabel } from './utils';
|
|
9
|
+
var typeMap = {
|
|
10
|
+
range: CalendarModeRange,
|
|
11
|
+
single: CalendarModeSingle,
|
|
12
|
+
};
|
|
13
|
+
// eslint-disable-next-line react/display-name
|
|
14
|
+
export var Calendar = forwardRef(function (inProps, ref) {
|
|
15
15
|
var props = useThemeProps({
|
|
16
16
|
props: inProps,
|
|
17
17
|
name: 'Calendar',
|
|
18
18
|
});
|
|
19
|
-
var _a = props.size, size = _a === void 0 ? CALENDAR_DEFAULT_SIZE : _a, _b = props.
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
defaultValue: defaultValue,
|
|
24
|
-
name: 'Calendar',
|
|
25
|
-
state: 'value',
|
|
26
|
-
}), 2), value = _e[0], setValue = _e[1];
|
|
27
|
-
var _f = __read(useControlled({
|
|
28
|
-
value: offsetDateProp,
|
|
29
|
-
defaultValue: defaultOffsetDate,
|
|
30
|
-
name: 'Calendar',
|
|
31
|
-
state: 'offsetDate',
|
|
32
|
-
}), 2), offsetDate = _f[0], setOffsetDateState = _f[1];
|
|
33
|
-
var onDatesChange = function (data) {
|
|
34
|
-
var value = data[0];
|
|
35
|
-
if (value) {
|
|
36
|
-
setValue(value);
|
|
37
|
-
onChangeProp === null || onChangeProp === void 0 ? void 0 : onChangeProp(value);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var onOffsetChange = function (date) {
|
|
41
|
-
setOffsetDateState(date);
|
|
42
|
-
onOffsetDateChangeProp === null || onOffsetDateChangeProp === void 0 ? void 0 : onOffsetDateChangeProp(date);
|
|
43
|
-
};
|
|
44
|
-
useEffect(function () {
|
|
45
|
-
if (value)
|
|
46
|
-
onOffsetChange(value);
|
|
47
|
-
}, [value]);
|
|
48
|
-
var config = {
|
|
49
|
-
calendar: {
|
|
50
|
-
startDay: startDay,
|
|
51
|
-
},
|
|
52
|
-
locale: {
|
|
53
|
-
locale: locale,
|
|
54
|
-
day: 'numeric',
|
|
55
|
-
weekday: 'short',
|
|
56
|
-
},
|
|
57
|
-
exclude: exclude,
|
|
58
|
-
offsetDate: offsetDate,
|
|
59
|
-
onDatesChange: onDatesChange,
|
|
60
|
-
onOffsetChange: onOffsetChange,
|
|
61
|
-
dates: { minDate: minDate, maxDate: maxDate },
|
|
62
|
-
years: { numberOfYears: 15 },
|
|
63
|
-
selectedDates: value ? [value] : [],
|
|
64
|
-
};
|
|
65
|
-
// Управление представлениями календаря
|
|
66
|
-
var goStep = function (step) {
|
|
67
|
-
setStep(step);
|
|
68
|
-
};
|
|
69
|
-
return (React.createElement(DatePickerProvider, { config: config },
|
|
70
|
-
React.createElement(CalendarContext.Provider, { value: {
|
|
71
|
-
size: size,
|
|
72
|
-
step: step,
|
|
73
|
-
goStep: goStep,
|
|
74
|
-
minDate: minDate,
|
|
75
|
-
maxDate: maxDate,
|
|
76
|
-
onMonthClick: onMonthClick,
|
|
77
|
-
onDayClick: onDayClick,
|
|
78
|
-
onYearClick: onYearClick,
|
|
79
|
-
onOffsetChange: setOffsetDateState,
|
|
80
|
-
} },
|
|
81
|
-
React.createElement(Tag, __assign({ className: cnCalendar({ size: size }, [className]) }, other, { ref: ref }),
|
|
82
|
-
React.createElement(CalendarSwitcher, __assign({}, calendarSwitcherProps)),
|
|
83
|
-
React.createElement(Divider, { color: "secondary" }),
|
|
84
|
-
React.createElement(CalendarGrid, null),
|
|
85
|
-
React.createElement(CalendarAdditionalControls, { renderAdditionalControls: renderAdditionalControls })))));
|
|
19
|
+
var _a = props.size, size = _a === void 0 ? CALENDAR_DEFAULT_SIZE : _a, _b = props.mode, mode = _b === void 0 ? CALENDAR_DEFAULT_MODE : _b, _c = props.startDay, startDay = _c === void 0 ? CALENDAR_DEFAULT_START_DAY : _c, getPeriodSwitchAriaLabelProp = props.getPeriodSwitchAriaLabel, other = __rest(props, ["size", "mode", "startDay", "getPeriodSwitchAriaLabel"]);
|
|
20
|
+
var getPeriodSwitchAriaLabel = getPeriodSwitchAriaLabelProp || createPeriodSwitchAriaLabel;
|
|
21
|
+
var Component = getByMap(typeMap, mode);
|
|
22
|
+
return (React.createElement(Component, __assign({ size: size, startDay: startDay, getPeriodSwitchAriaLabel: getPeriodSwitchAriaLabel }, other, { ref: ref })));
|
|
86
23
|
});
|
|
87
|
-
Calendar.displayName = 'Calendar';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { CalendarSizeVariant, CalendarProps } from './types';
|
|
3
3
|
export interface CalendarContextValue {
|
|
4
|
-
size?: CalendarSizeVariant;
|
|
5
|
-
step: CalendarStepVariant;
|
|
6
|
-
goStep?: (step: CalendarStepVariant) => void;
|
|
7
|
-
onMonthClick?: CalendarBaseProps['onMonthClick'];
|
|
8
|
-
onDayClick?: CalendarBaseProps['onDayClick'];
|
|
9
|
-
onYearClick?: CalendarBaseProps['onYearClick'];
|
|
10
4
|
minDate?: Date;
|
|
11
5
|
maxDate?: Date;
|
|
6
|
+
size?: CalendarSizeVariant;
|
|
12
7
|
onOffsetChange?(d: Date): void;
|
|
8
|
+
onDayClick?: CalendarProps['onDayClick'];
|
|
9
|
+
onYearClick?: CalendarProps['onYearClick'];
|
|
10
|
+
onMonthClick?: CalendarProps['onMonthClick'];
|
|
11
|
+
getPeriodSwitchAriaLabel?: CalendarProps['getPeriodSwitchAriaLabel'];
|
|
13
12
|
}
|
|
14
13
|
export declare const CalendarContext: React.Context<CalendarContextValue>;
|
|
14
|
+
export declare const useCalendar: () => CalendarContextValue;
|