@salutejs/plasma-new-hope 0.88.0-canary.1223.9398061354.0 → 0.88.0-canary.1224.9413433725.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Calendar/Calendar.tokens.js +64 -28
- package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
- package/cjs/components/Calendar/Calendar.types.js.map +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.css +57 -29
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js +6 -0
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
- package/cjs/components/Calendar/CalendarBase/{CalendarBase.styles_rv9ax9.css → CalendarBase.styles_1m6uih1.css} +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.css +58 -30
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
- package/cjs/components/Calendar/CalendarDouble/{CalendarDouble.styles_1rc2ejs.css → CalendarDouble.styles_e9ada0.css} +2 -2
- package/cjs/components/Calendar/hoc/withRange.js.map +1 -1
- package/cjs/components/Calendar/hooks/useDays.js +1 -1
- package/cjs/components/Calendar/hooks/useDays.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
- package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
- package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_wuxgzs.css +4 -0
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
- package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarDays/{CalendarDays.styles_bnrjbd.css → CalendarDays.styles_1oq8sud.css} +1 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.css +36 -8
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +26 -17
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +27 -12
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1b92i4d.css +8 -0
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7kz2z4.css +4 -0
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_hbv1kh.css +4 -0
- package/cjs/components/Calendar/utils/index.js.map +1 -1
- package/cjs/components/Combobox/Combobox.js +2 -2
- package/cjs/components/Combobox/Combobox.js.map +1 -1
- package/cjs/components/DatePicker/DatePicker.tokens.js +186 -0
- package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -0
- package/cjs/components/DatePicker/DatePickerBase.styles.js +30 -0
- package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -0
- package/cjs/components/DatePicker/DatePickerBase.styles_1u3oyx8.css +1 -0
- package/cjs/components/DatePicker/RangeDate/DatePicker.css +150 -0
- package/cjs/components/DatePicker/RangeDate/DatePicker.js +341 -0
- package/cjs/components/DatePicker/RangeDate/DatePicker.js.map +1 -0
- package/cjs/components/DatePicker/RangeDate/DatePicker.styles.js +39 -0
- package/cjs/components/DatePicker/RangeDate/DatePicker.styles.js.map +1 -0
- package/cjs/components/DatePicker/RangeDate/DatePicker.styles_1aihs63.css +3 -0
- package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.css +142 -0
- package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js +52 -0
- package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js.map +1 -0
- package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js +32 -0
- package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js.map +1 -0
- package/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles_x3to15.css +1 -0
- package/cjs/components/{Accordion/variations/_view → DatePicker/RangeDate/variations/_disabled}/base.js +2 -2
- package/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js.map +1 -0
- package/cjs/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +1 -0
- package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js +9 -0
- package/cjs/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -0
- package/cjs/components/DatePicker/RangeDate/variations/_readonly/base_1851hxh.css +1 -0
- package/cjs/components/DatePicker/RangeDate/variations/_size/base.js +9 -0
- package/cjs/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -0
- package/cjs/components/DatePicker/RangeDate/variations/_size/base_1yswrwb.css +1 -0
- package/cjs/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_view}/base.js +1 -1
- package/cjs/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -0
- package/cjs/components/DatePicker/SingleDate/DatePicker.css +134 -0
- package/cjs/components/DatePicker/SingleDate/DatePicker.js +183 -0
- package/cjs/components/DatePicker/SingleDate/DatePicker.js.map +1 -0
- package/cjs/components/DatePicker/SingleDate/DatePicker.styles.js +51 -0
- package/cjs/components/DatePicker/SingleDate/DatePicker.styles.js.map +1 -0
- package/cjs/components/DatePicker/SingleDate/DatePicker.styles_1udo3ch.css +5 -0
- package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +9 -0
- package/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js.map +1 -0
- package/cjs/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +1 -0
- package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +9 -0
- package/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js.map +1 -0
- package/cjs/components/DatePicker/SingleDate/variations/_readonly/base_ayigv4.css +1 -0
- package/cjs/components/DatePicker/SingleDate/variations/_size/base.js +9 -0
- package/cjs/components/DatePicker/SingleDate/variations/_size/base.js.map +1 -0
- package/cjs/components/DatePicker/SingleDate/variations/_size/base_jrds3p.css +1 -0
- package/cjs/components/DatePicker/SingleDate/variations/_view/base.js +9 -0
- package/cjs/components/DatePicker/SingleDate/variations/_view/base.js.map +1 -0
- package/cjs/components/DatePicker/SingleDate/variations/_view/base_163gwfv.css +1 -0
- package/cjs/components/DatePicker/hooks/useDatePicker.js +79 -0
- package/cjs/components/DatePicker/hooks/useDatePicker.js.map +1 -0
- package/cjs/components/DatePicker/utils/dateHelper.js +84 -0
- package/cjs/components/DatePicker/utils/dateHelper.js.map +1 -0
- package/cjs/components/Dropdown/Dropdown.js +2 -1
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Dropdown/utils/index.js +0 -17
- package/cjs/components/Dropdown/utils/index.js.map +1 -1
- package/cjs/components/Range/Range.css +14 -8
- package/cjs/components/Range/Range.js +79 -32
- package/cjs/components/Range/Range.js.map +1 -1
- package/cjs/components/Range/Range.styles.js +23 -11
- package/cjs/components/Range/Range.styles.js.map +1 -1
- package/cjs/components/Range/Range.styles_nik84l.css +9 -0
- package/cjs/components/Range/variations/_readonly/base.js +1 -1
- package/cjs/components/Range/variations/_readonly/base_yv1z2h.css +1 -0
- package/cjs/components/Range/variations/_size/base.js +1 -1
- package/cjs/components/Range/variations/_size/{base_16xiubi.css → base_gbgxzj.css} +1 -1
- package/cjs/components/Range/variations/_view/base.js +1 -1
- package/cjs/components/Range/variations/_view/base_87gpil.css +1 -0
- package/cjs/components/Select/Select.js +2 -2
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Slider/Slider.css +3 -3
- package/cjs/components/Slider/components/Double/Double.css +3 -3
- package/cjs/components/TextField/TextField.tokens.js +1 -1
- package/cjs/components/TextField/TextField.tokens.js.map +1 -1
- package/cjs/components/TextField/variations/_read-only/base.js +1 -1
- package/cjs/components/TextField/variations/_read-only/base_1vu13zn.css +1 -0
- package/cjs/components/TextField/variations/_size/base.js +1 -1
- package/cjs/components/TextField/variations/_size/base.js.map +1 -1
- package/cjs/components/TextField/variations/_size/base_orwx1f.css +1 -0
- package/cjs/components/TextField/variations/_view/base.js +1 -1
- package/cjs/components/TextField/variations/_view/base_18ea6z7.css +1 -0
- package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js +23 -0
- package/cjs/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -0
- package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
- package/cjs/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
- package/cjs/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
- package/cjs/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +5 -5
- package/cjs/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -0
- package/cjs/index.css +68 -41
- package/cjs/index.js +12 -8
- package/cjs/index.js.map +1 -1
- package/cjs/utils/datejs.js +12 -0
- package/cjs/utils/datejs.js.map +1 -0
- package/cjs/utils/getPopoverPlacement.js +23 -0
- package/cjs/utils/getPopoverPlacement.js.map +1 -0
- package/cjs/utils/index.js.map +1 -1
- package/es/components/Calendar/Calendar.tokens.js +64 -28
- package/es/components/Calendar/Calendar.tokens.js.map +1 -1
- package/es/components/Calendar/Calendar.types.js.map +1 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.css +57 -29
- package/es/components/Calendar/CalendarBase/CalendarBase.js +7 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.styles.js +1 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.styles.js.map +1 -1
- package/es/components/Calendar/CalendarBase/{CalendarBase.styles_rv9ax9.css → CalendarBase.styles_1m6uih1.css} +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.css +58 -30
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js.map +1 -1
- package/es/components/Calendar/CalendarDouble/{CalendarDouble.styles_1rc2ejs.css → CalendarDouble.styles_e9ada0.css} +2 -2
- package/es/components/Calendar/hoc/withRange.js.map +1 -1
- package/es/components/Calendar/hooks/useDays.js +1 -1
- package/es/components/Calendar/hooks/useDays.js.map +1 -1
- package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.css +4 -4
- package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +9 -9
- package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js.map +1 -1
- package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_wuxgzs.css +4 -0
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.css +7 -7
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +1 -1
- package/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js.map +1 -1
- package/es/components/Calendar/ui/CalendarDays/{CalendarDays.styles_bnrjbd.css → CalendarDays.styles_1oq8sud.css} +1 -1
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.css +36 -8
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +27 -18
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +26 -13
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js.map +1 -1
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1b92i4d.css +8 -0
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.css +4 -4
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js.map +1 -1
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_7kz2z4.css +4 -0
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.css +4 -4
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +1 -1
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js.map +1 -1
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_hbv1kh.css +4 -0
- package/es/components/Calendar/utils/index.js.map +1 -1
- package/es/components/Combobox/Combobox.js +1 -1
- package/es/components/Combobox/Combobox.js.map +1 -1
- package/es/components/DatePicker/DatePicker.tokens.js +181 -0
- package/es/components/DatePicker/DatePicker.tokens.js.map +1 -0
- package/es/components/DatePicker/DatePickerBase.styles.js +26 -0
- package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -0
- package/es/components/DatePicker/DatePickerBase.styles_1u3oyx8.css +1 -0
- package/es/components/DatePicker/RangeDate/DatePicker.css +150 -0
- package/es/components/DatePicker/RangeDate/DatePicker.js +336 -0
- package/es/components/DatePicker/RangeDate/DatePicker.js.map +1 -0
- package/es/components/DatePicker/RangeDate/DatePicker.styles.js +33 -0
- package/es/components/DatePicker/RangeDate/DatePicker.styles.js.map +1 -0
- package/es/components/DatePicker/RangeDate/DatePicker.styles_1aihs63.css +3 -0
- package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.css +142 -0
- package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js +48 -0
- package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js.map +1 -0
- package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js +28 -0
- package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js.map +1 -0
- package/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles_x3to15.css +1 -0
- package/es/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_disabled}/base.js +2 -2
- package/es/components/DatePicker/RangeDate/variations/_disabled/base.js.map +1 -0
- package/es/components/DatePicker/RangeDate/variations/_disabled/base_tl4jc7.css +1 -0
- package/es/components/DatePicker/RangeDate/variations/_readonly/base.js +5 -0
- package/es/components/DatePicker/RangeDate/variations/_readonly/base.js.map +1 -0
- package/es/components/DatePicker/RangeDate/variations/_readonly/base_1851hxh.css +1 -0
- package/es/components/DatePicker/RangeDate/variations/_size/base.js +5 -0
- package/es/components/DatePicker/RangeDate/variations/_size/base.js.map +1 -0
- package/es/components/DatePicker/RangeDate/variations/_size/base_1yswrwb.css +1 -0
- package/es/components/{Accordion → DatePicker/RangeDate}/variations/_view/base.js +1 -1
- package/es/components/DatePicker/RangeDate/variations/_view/base.js.map +1 -0
- package/es/components/DatePicker/SingleDate/DatePicker.css +134 -0
- package/es/components/DatePicker/SingleDate/DatePicker.js +178 -0
- package/es/components/DatePicker/SingleDate/DatePicker.js.map +1 -0
- package/es/components/DatePicker/SingleDate/DatePicker.styles.js +43 -0
- package/es/components/DatePicker/SingleDate/DatePicker.styles.js.map +1 -0
- package/es/components/DatePicker/SingleDate/DatePicker.styles_1udo3ch.css +5 -0
- package/es/components/DatePicker/SingleDate/variations/_disabled/base.js +5 -0
- package/es/components/DatePicker/SingleDate/variations/_disabled/base.js.map +1 -0
- package/es/components/DatePicker/SingleDate/variations/_disabled/base_1rfgfsz.css +1 -0
- package/es/components/DatePicker/SingleDate/variations/_readonly/base.js +5 -0
- package/es/components/DatePicker/SingleDate/variations/_readonly/base.js.map +1 -0
- package/es/components/DatePicker/SingleDate/variations/_readonly/base_ayigv4.css +1 -0
- package/es/components/DatePicker/SingleDate/variations/_size/base.js +5 -0
- package/es/components/DatePicker/SingleDate/variations/_size/base.js.map +1 -0
- package/es/components/DatePicker/SingleDate/variations/_size/base_jrds3p.css +1 -0
- package/es/components/DatePicker/SingleDate/variations/_view/base.js +5 -0
- package/es/components/DatePicker/SingleDate/variations/_view/base.js.map +1 -0
- package/es/components/DatePicker/SingleDate/variations/_view/base_163gwfv.css +1 -0
- package/es/components/DatePicker/hooks/useDatePicker.js +75 -0
- package/es/components/DatePicker/hooks/useDatePicker.js.map +1 -0
- package/es/components/DatePicker/utils/dateHelper.js +76 -0
- package/es/components/DatePicker/utils/dateHelper.js.map +1 -0
- package/es/components/Dropdown/Dropdown.js +2 -1
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Dropdown/utils/index.js +1 -16
- package/es/components/Dropdown/utils/index.js.map +1 -1
- package/es/components/Range/Range.css +14 -8
- package/es/components/Range/Range.js +81 -34
- package/es/components/Range/Range.js.map +1 -1
- package/es/components/Range/Range.styles.js +23 -12
- package/es/components/Range/Range.styles.js.map +1 -1
- package/es/components/Range/Range.styles_nik84l.css +9 -0
- package/es/components/Range/variations/_readonly/base.js +1 -1
- package/es/components/Range/variations/_readonly/base_yv1z2h.css +1 -0
- package/es/components/Range/variations/_size/base.js +1 -1
- package/es/components/Range/variations/_size/{base_16xiubi.css → base_gbgxzj.css} +1 -1
- package/es/components/Range/variations/_view/base.js +1 -1
- package/es/components/Range/variations/_view/base_87gpil.css +1 -0
- package/es/components/Select/Select.js +1 -1
- package/es/components/Select/Select.js.map +1 -1
- package/es/components/Slider/Slider.css +3 -3
- package/es/components/Slider/components/Double/Double.css +3 -3
- package/es/components/TextField/TextField.tokens.js +1 -1
- package/es/components/TextField/TextField.tokens.js.map +1 -1
- package/es/components/TextField/variations/_read-only/base.js +1 -1
- package/es/components/TextField/variations/_read-only/base_1vu13zn.css +1 -0
- package/es/components/TextField/variations/_size/base.js +1 -1
- package/es/components/TextField/variations/_size/base.js.map +1 -1
- package/es/components/TextField/variations/_size/base_orwx1f.css +1 -0
- package/es/components/TextField/variations/_view/base.js +1 -1
- package/es/components/TextField/variations/_view/base_18ea6z7.css +1 -0
- package/es/components/_Icon/Icon.assets/DisclosureDownFill.js +19 -0
- package/es/components/_Icon/Icon.assets/DisclosureDownFill.js.map +1 -0
- package/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
- package/es/components/_Icon/Icon.assets/DisclosureLeft.js.map +1 -1
- package/es/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
- package/es/components/_Icon/Icon.assets/DisclosureRight.js.map +1 -1
- package/es/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +5 -5
- package/es/components/_Icon/Icons/IconDisclosureDownFill.js.map +1 -0
- package/es/index.css +68 -41
- package/es/index.js +4 -3
- package/es/index.js.map +1 -1
- package/es/utils/datejs.js +8 -0
- package/es/utils/datejs.js.map +1 -0
- package/es/utils/getPopoverPlacement.js +18 -0
- package/es/utils/getPopoverPlacement.js.map +1 -0
- package/es/utils/index.js.map +1 -1
- package/package.json +3 -2
- package/styled-components/cjs/components/Calendar/Calendar.tokens.js +64 -28
- package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +6 -0
- package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -1
- package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
- package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
- package/styled-components/cjs/components/Calendar/hooks/useDays.js +1 -1
- package/styled-components/cjs/components/Calendar/mixins/active.js +12 -0
- package/styled-components/cjs/components/Calendar/mixins/flex.js +8 -0
- package/styled-components/cjs/components/Calendar/mixins/index.js +30 -29
- package/styled-components/cjs/components/Calendar/mixins/selected.js +29 -0
- package/styled-components/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +26 -14
- package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +2 -1
- package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +25 -16
- package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +29 -11
- package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
- package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +26 -12
- package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
- package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +26 -14
- package/styled-components/cjs/components/Combobox/Combobox.js +6 -7
- package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +184 -0
- package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +19 -0
- package/styled-components/cjs/components/DatePicker/RangeDate/DatePicker.js +349 -0
- package/styled-components/cjs/components/DatePicker/RangeDate/DatePicker.styles.js +27 -0
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js +50 -0
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js +20 -0
- package/styled-components/cjs/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.types.js +5 -0
- package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/base.js +9 -0
- package/styled-components/cjs/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
- package/styled-components/cjs/components/{Accordion/variations/_view → DatePicker/RangeDate/variations/_readonly}/base.js +2 -1
- package/styled-components/cjs/components/DatePicker/RangeDate/variations/_readonly/tokens.json +4 -0
- package/styled-components/cjs/components/{Accordion/variations/_stretching → DatePicker/RangeDate/variations/_size}/base.js +2 -1
- package/styled-components/cjs/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
- package/styled-components/cjs/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/DatePicker.js +190 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/DatePicker.styles.js +33 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/DatePicker.types.js +5 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/base.js +9 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/variations/_disabled/tokens.json +4 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/base.js +10 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/variations/_readonly/tokens.json +4 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/base.js +10 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/variations/_size/tokens.json +16 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/base.js +10 -0
- package/styled-components/cjs/components/DatePicker/SingleDate/variations/_view/tokens.json +1 -0
- package/styled-components/cjs/components/DatePicker/hooks/useDatePicker.js +77 -0
- package/styled-components/cjs/components/DatePicker/index.js +44 -0
- package/styled-components/cjs/components/DatePicker/utils/dateHelper.js +78 -0
- package/styled-components/cjs/components/Dropdown/Dropdown.js +1 -1
- package/styled-components/cjs/components/Dropdown/utils/index.js +1 -16
- package/styled-components/cjs/components/Range/Range.js +78 -32
- package/styled-components/cjs/components/Range/Range.styles.js +16 -10
- package/styled-components/cjs/components/Select/Select.js +7 -8
- package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -1
- package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
- package/styled-components/cjs/components/_Icon/Icon.assets/{Minus.js → DisclosureDownFill.js} +5 -4
- package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
- package/styled-components/cjs/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
- package/styled-components/cjs/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +4 -4
- package/styled-components/cjs/components/_Icon/index.js +8 -15
- package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +24 -6
- package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +4 -1
- package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +31 -0
- package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.js +13 -0
- package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +302 -0
- package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +24 -6
- package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -2
- package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +4 -1
- package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.config.js +31 -0
- package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.js +13 -0
- package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +302 -0
- package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +24 -6
- package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -2
- package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +4 -1
- package/styled-components/cjs/index.js +4 -4
- package/styled-components/cjs/utils/datejs.js +11 -0
- package/styled-components/cjs/utils/getPopoverPlacement.js +21 -0
- package/styled-components/cjs/utils/index.js +22 -0
- package/styled-components/es/components/Calendar/Calendar.tokens.js +64 -28
- package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +7 -1
- package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.styles.js +2 -1
- package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -0
- package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.styles.js +2 -2
- package/styled-components/es/components/Calendar/hooks/useDays.js +1 -1
- package/styled-components/es/components/Calendar/mixins/active.js +6 -0
- package/styled-components/es/components/Calendar/mixins/flex.js +2 -0
- package/styled-components/es/components/Calendar/mixins/index.js +3 -27
- package/styled-components/es/components/Calendar/mixins/selected.js +23 -0
- package/styled-components/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.js +24 -12
- package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.styles.js +2 -1
- package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +27 -18
- package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.js +29 -11
- package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +1 -1
- package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.js +24 -10
- package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +1 -1
- package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.styles.js +24 -12
- package/styled-components/es/components/Combobox/Combobox.js +1 -2
- package/styled-components/es/components/DatePicker/DatePicker.tokens.js +178 -0
- package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +12 -0
- package/styled-components/es/components/DatePicker/RangeDate/DatePicker.js +340 -0
- package/styled-components/es/components/DatePicker/RangeDate/DatePicker.styles.js +19 -0
- package/styled-components/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.js +43 -0
- package/styled-components/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.js +13 -0
- package/styled-components/es/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.types.js +1 -0
- package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/base.js +3 -0
- package/styled-components/es/components/DatePicker/RangeDate/variations/_disabled/tokens.json +0 -0
- package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/base.js +3 -0
- package/styled-components/es/components/DatePicker/RangeDate/variations/_readonly/tokens.json +4 -0
- package/styled-components/es/components/DatePicker/RangeDate/variations/_size/base.js +3 -0
- package/styled-components/es/components/DatePicker/RangeDate/variations/_size/tokens.json +0 -0
- package/styled-components/es/components/DatePicker/RangeDate/variations/_view/tokens.json +0 -0
- package/styled-components/es/components/DatePicker/SingleDate/DatePicker.js +181 -0
- package/styled-components/es/components/DatePicker/SingleDate/DatePicker.styles.js +25 -0
- package/styled-components/es/components/DatePicker/SingleDate/DatePicker.types.js +1 -0
- package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/base.js +3 -0
- package/styled-components/es/components/DatePicker/SingleDate/variations/_disabled/tokens.json +4 -0
- package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/base.js +4 -0
- package/styled-components/es/components/DatePicker/SingleDate/variations/_readonly/tokens.json +4 -0
- package/styled-components/es/components/DatePicker/SingleDate/variations/_size/base.js +4 -0
- package/styled-components/es/components/DatePicker/SingleDate/variations/_size/tokens.json +16 -0
- package/styled-components/es/components/DatePicker/SingleDate/variations/_view/base.js +4 -0
- package/styled-components/es/components/DatePicker/SingleDate/variations/_view/tokens.json +1 -0
- package/styled-components/es/components/DatePicker/hooks/useDatePicker.js +71 -0
- package/styled-components/es/components/DatePicker/index.js +3 -0
- package/styled-components/es/components/DatePicker/utils/dateHelper.js +72 -0
- package/styled-components/es/components/Dropdown/Dropdown.js +2 -2
- package/styled-components/es/components/Dropdown/utils/index.js +0 -15
- package/styled-components/es/components/Range/Range.js +81 -35
- package/styled-components/es/components/Range/Range.styles.js +15 -9
- package/styled-components/es/components/Select/Select.js +1 -2
- package/styled-components/es/components/TextField/TextField.tokens.js +1 -1
- package/styled-components/es/components/TextField/variations/_size/base.js +1 -1
- package/styled-components/es/components/_Icon/Icon.assets/{Minus.js → DisclosureDownFill.js} +4 -3
- package/styled-components/es/components/_Icon/Icon.assets/DisclosureLeft.js +1 -1
- package/styled-components/es/components/_Icon/Icon.assets/DisclosureRight.js +5 -15
- package/styled-components/es/components/_Icon/Icons/{IconMinus.js → IconDisclosureDownFill.js} +3 -3
- package/styled-components/es/components/_Icon/index.js +2 -3
- package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +24 -6
- package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +5 -2
- package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +4 -1
- package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.config.js +25 -0
- package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.js +7 -0
- package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +302 -0
- package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +24 -6
- package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +5 -2
- package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +4 -1
- package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.config.js +25 -0
- package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.js +7 -0
- package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +302 -0
- package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +24 -6
- package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +5 -2
- package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +4 -1
- package/styled-components/es/index.js +1 -1
- package/styled-components/es/utils/datejs.js +4 -0
- package/styled-components/es/utils/getPopoverPlacement.js +15 -0
- package/styled-components/es/utils/index.js +1 -0
- package/types/components/Calendar/Calendar.tokens.d.ts +57 -26
- package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
- package/types/components/Calendar/Calendar.types.d.ts +1 -1
- package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
- package/types/components/Calendar/CalendarBase/CalendarBase.d.ts +27 -3
- package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
- package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
- package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts +30 -3
- package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
- package/types/components/Calendar/hooks/useDays.d.ts.map +1 -1
- package/types/components/Calendar/mixins/active.d.ts +17 -0
- package/types/components/Calendar/mixins/active.d.ts.map +1 -0
- package/types/components/Calendar/mixins/flex.d.ts +3 -0
- package/types/components/Calendar/mixins/flex.d.ts.map +1 -0
- package/types/components/Calendar/mixins/index.d.ts +3 -8
- package/types/components/Calendar/mixins/index.d.ts.map +1 -1
- package/types/components/Calendar/mixins/selected.d.ts +60 -0
- package/types/components/Calendar/mixins/selected.d.ts.map +1 -0
- package/types/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarDays/CalendarDays.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +47 -7
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts +1 -0
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.types.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
- package/types/components/Calendar/utils/index.d.ts +1 -1
- package/types/components/Calendar/utils/index.d.ts.map +1 -1
- package/types/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/components/DatePicker/DatePicker.tokens.d.ts +179 -0
- package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -0
- package/types/components/DatePicker/DatePickerBase.styles.d.ts +8 -0
- package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -0
- package/types/components/DatePicker/DatePickerBase.types.d.ts +37 -0
- package/types/components/DatePicker/DatePickerBase.types.d.ts.map +1 -0
- package/types/components/DatePicker/RangeDate/DatePicker.d.ts +32 -0
- package/types/components/DatePicker/RangeDate/DatePicker.d.ts.map +1 -0
- package/types/components/DatePicker/RangeDate/DatePicker.styles.d.ts +140 -0
- package/types/components/DatePicker/RangeDate/DatePicker.styles.d.ts.map +1 -0
- package/types/components/DatePicker/RangeDate/DatePicker.types.d.ts +128 -0
- package/types/components/DatePicker/RangeDate/DatePicker.types.d.ts.map +1 -0
- package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.d.ts +4 -0
- package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.d.ts.map +1 -0
- package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.d.ts +4 -0
- package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.styles.d.ts.map +1 -0
- package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.types.d.ts +21 -0
- package/types/components/DatePicker/RangeDate/RangeDoubleDate/RangeDoubleDate.types.d.ts.map +1 -0
- package/types/components/DatePicker/RangeDate/variations/_disabled/base.d.ts.map +1 -0
- package/types/components/DatePicker/RangeDate/variations/_readonly/base.d.ts.map +1 -0
- package/types/components/DatePicker/RangeDate/variations/_size/base.d.ts.map +1 -0
- package/types/components/{Accordion/Accordion.styles.d.ts → DatePicker/RangeDate/variations/_view/base.d.ts} +1 -1
- package/types/components/DatePicker/RangeDate/variations/_view/base.d.ts.map +1 -0
- package/types/components/DatePicker/SingleDate/DatePicker.d.ts +31 -0
- package/types/components/DatePicker/SingleDate/DatePicker.d.ts.map +1 -0
- package/types/components/DatePicker/SingleDate/DatePicker.styles.d.ts +45 -0
- package/types/components/DatePicker/SingleDate/DatePicker.styles.d.ts.map +1 -0
- package/types/components/DatePicker/SingleDate/DatePicker.types.d.ts +115 -0
- package/types/components/DatePicker/SingleDate/DatePicker.types.d.ts.map +1 -0
- package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts +2 -0
- package/types/components/DatePicker/SingleDate/variations/_disabled/base.d.ts.map +1 -0
- package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts +2 -0
- package/types/components/DatePicker/SingleDate/variations/_readonly/base.d.ts.map +1 -0
- package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts +2 -0
- package/types/components/DatePicker/SingleDate/variations/_size/base.d.ts.map +1 -0
- package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts +2 -0
- package/types/components/DatePicker/SingleDate/variations/_view/base.d.ts.map +1 -0
- package/types/components/DatePicker/hooks/useDatePicker.d.ts +10 -0
- package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +1 -0
- package/types/components/DatePicker/index.d.ts +6 -0
- package/types/components/DatePicker/index.d.ts.map +1 -0
- package/types/components/DatePicker/utils/dateHelper.d.ts +10 -0
- package/types/components/DatePicker/utils/dateHelper.d.ts.map +1 -0
- package/types/components/Dropdown/utils/index.d.ts +1 -3
- package/types/components/Dropdown/utils/index.d.ts.map +1 -1
- package/types/components/Range/Range.d.ts +3 -3
- package/types/components/Range/Range.d.ts.map +1 -1
- package/types/components/Range/Range.styles.d.ts +1 -0
- package/types/components/Range/Range.styles.d.ts.map +1 -1
- package/types/components/Range/Range.types.d.ts +46 -1
- package/types/components/Range/Range.types.d.ts.map +1 -1
- package/types/components/Select/Select.d.ts.map +1 -1
- package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
- package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/DisclosureDownFill.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/DisclosureRight.d.ts.map +1 -1
- package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts +4 -0
- package/types/components/_Icon/Icons/IconDisclosureDownFill.d.ts.map +1 -0
- package/types/components/_Icon/index.d.ts +1 -2
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +15 -4
- package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/{Accordion/Accordion.config.d.ts → DatePicker/DatePicker.config.d.ts} +7 -2
- package/types/examples/plasma_b2c/components/DatePicker/DatePicker.config.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +668 -0
- package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Range/Range.d.ts +30 -3
- package/types/examples/plasma_b2c/components/Range/Range.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +15 -4
- package/types/examples/plasma_web/components/Calendar/Calendar.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts +3 -0
- package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts +3 -0
- package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/{Accordion/Accordion.config.d.ts → DatePicker/DatePicker.config.d.ts} +6 -5
- package/types/examples/plasma_web/components/DatePicker/DatePicker.config.d.ts.map +1 -0
- package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +668 -0
- package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Range/Range.d.ts +30 -3
- package/types/examples/plasma_web/components/Range/Range.d.ts.map +1 -1
- package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +15 -4
- package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -1
- package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +3 -0
- package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -1
- package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +3 -0
- package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/utils/datejs.d.ts +3 -0
- package/types/utils/datejs.d.ts.map +1 -0
- package/types/utils/getPopoverPlacement.d.ts +5 -0
- package/types/utils/getPopoverPlacement.d.ts.map +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/index.d.ts.map +1 -1
- package/cjs/components/Accordion/Accordion.css +0 -1
- package/cjs/components/Accordion/Accordion.js +0 -68
- package/cjs/components/Accordion/Accordion.js.map +0 -1
- package/cjs/components/Accordion/Accordion.styles.js +0 -9
- package/cjs/components/Accordion/Accordion.styles.js.map +0 -1
- package/cjs/components/Accordion/Accordion.styles_rsiff6.css +0 -1
- package/cjs/components/Accordion/Accordion.tokens.js +0 -45
- package/cjs/components/Accordion/Accordion.tokens.js.map +0 -1
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -103
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js.map +0 -1
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -63
- package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +0 -1
- package/cjs/components/Accordion/utils/index.js +0 -27
- package/cjs/components/Accordion/utils/index.js.map +0 -1
- package/cjs/components/Accordion/variations/_size/base.js.map +0 -1
- package/cjs/components/Accordion/variations/_view/base.js.map +0 -1
- package/cjs/components/Calendar/mixins/index.js +0 -18
- package/cjs/components/Calendar/mixins/index.js.map +0 -1
- package/cjs/components/Calendar/mixins/index_o3bz9l.css +0 -1
- package/cjs/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +0 -4
- package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +0 -6
- package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +0 -4
- package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +0 -4
- package/cjs/components/Range/Range.styles_mc4w65.css +0 -8
- package/cjs/components/Range/variations/_readonly/base_tzdxy8.css +0 -1
- package/cjs/components/Range/variations/_view/base_5iz3nr.css +0 -1
- package/cjs/components/TextField/variations/_read-only/base_134hshp.css +0 -1
- package/cjs/components/TextField/variations/_size/base_ntoddv.css +0 -1
- package/cjs/components/TextField/variations/_view/base_19gxyva.css +0 -1
- package/cjs/components/_Icon/Icon.assets/ChevronDownFill.js +0 -24
- package/cjs/components/_Icon/Icon.assets/ChevronDownFill.js.map +0 -1
- package/cjs/components/_Icon/Icon.assets/Minus.js +0 -22
- package/cjs/components/_Icon/Icon.assets/Minus.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconChevronDownFill.js +0 -23
- package/cjs/components/_Icon/Icons/IconChevronDownFill.js.map +0 -1
- package/cjs/components/_Icon/Icons/IconMinus.js.map +0 -1
- package/es/components/Accordion/Accordion.css +0 -1
- package/es/components/Accordion/Accordion.js +0 -63
- package/es/components/Accordion/Accordion.js.map +0 -1
- package/es/components/Accordion/Accordion.styles.js +0 -5
- package/es/components/Accordion/Accordion.styles.js.map +0 -1
- package/es/components/Accordion/Accordion.styles_rsiff6.css +0 -1
- package/es/components/Accordion/Accordion.tokens.js +0 -40
- package/es/components/Accordion/Accordion.tokens.js.map +0 -1
- package/es/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -99
- package/es/components/Accordion/ui/AccordionItem/AccordionItem.js.map +0 -1
- package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -49
- package/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js.map +0 -1
- package/es/components/Accordion/utils/index.js +0 -22
- package/es/components/Accordion/utils/index.js.map +0 -1
- package/es/components/Accordion/variations/_size/base.js.map +0 -1
- package/es/components/Accordion/variations/_size/base_x642ct.css +0 -1
- package/es/components/Accordion/variations/_view/base.js.map +0 -1
- package/es/components/Accordion/variations/_view/base_x642ct.css +0 -1
- package/es/components/Calendar/mixins/index.js +0 -14
- package/es/components/Calendar/mixins/index.js.map +0 -1
- package/es/components/Calendar/mixins/index_o3bz9l.css +0 -1
- package/es/components/Calendar/ui/CalendarDayItem/CalendarDayItem.styles_xf9c5e.css +0 -4
- package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.styles_1c4p417.css +0 -6
- package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.styles_1jnzviu.css +0 -4
- package/es/components/Calendar/ui/CalendarYears/CalendarYears.styles_1lubnwe.css +0 -4
- package/es/components/Range/Range.styles_mc4w65.css +0 -8
- package/es/components/Range/variations/_readonly/base_tzdxy8.css +0 -1
- package/es/components/Range/variations/_view/base_5iz3nr.css +0 -1
- package/es/components/TextField/variations/_read-only/base_134hshp.css +0 -1
- package/es/components/TextField/variations/_size/base_ntoddv.css +0 -1
- package/es/components/TextField/variations/_view/base_19gxyva.css +0 -1
- package/es/components/_Icon/Icon.assets/ChevronDownFill.js +0 -20
- package/es/components/_Icon/Icon.assets/ChevronDownFill.js.map +0 -1
- package/es/components/_Icon/Icon.assets/Minus.js +0 -18
- package/es/components/_Icon/Icon.assets/Minus.js.map +0 -1
- package/es/components/_Icon/Icons/IconChevronDownFill.js +0 -19
- package/es/components/_Icon/Icons/IconChevronDownFill.js.map +0 -1
- package/es/components/_Icon/Icons/IconMinus.js.map +0 -1
- package/styled-components/cjs/components/Accordion/Accordion.js +0 -73
- package/styled-components/cjs/components/Accordion/Accordion.styles.js +0 -9
- package/styled-components/cjs/components/Accordion/Accordion.tokens.js +0 -43
- package/styled-components/cjs/components/Accordion/index.js +0 -38
- package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -109
- package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -49
- package/styled-components/cjs/components/Accordion/utils/index.js +0 -24
- package/styled-components/cjs/components/Accordion/variations/_size/tokens.json +0 -6
- package/styled-components/cjs/components/Accordion/variations/_stretching/tokens.json +0 -1
- package/styled-components/cjs/components/Accordion/variations/_view/tokens.json +0 -8
- package/styled-components/cjs/components/_Icon/Icon.assets/ChevronDownFill.js +0 -23
- package/styled-components/cjs/components/_Icon/Icons/IconChevronDownFill.js +0 -22
- package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.config.js +0 -26
- package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.js +0 -17
- package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +0 -66
- package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.config.js +0 -30
- package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.js +0 -17
- package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +0 -65
- package/styled-components/es/components/Accordion/Accordion.js +0 -64
- package/styled-components/es/components/Accordion/Accordion.styles.js +0 -3
- package/styled-components/es/components/Accordion/Accordion.tokens.js +0 -37
- package/styled-components/es/components/Accordion/index.js +0 -3
- package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -100
- package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -42
- package/styled-components/es/components/Accordion/utils/index.js +0 -18
- package/styled-components/es/components/Accordion/variations/_size/tokens.json +0 -6
- package/styled-components/es/components/Accordion/variations/_stretching/base.js +0 -2
- package/styled-components/es/components/Accordion/variations/_stretching/tokens.json +0 -1
- package/styled-components/es/components/Accordion/variations/_view/base.js +0 -2
- package/styled-components/es/components/Accordion/variations/_view/tokens.json +0 -8
- package/styled-components/es/components/_Icon/Icon.assets/ChevronDownFill.js +0 -16
- package/styled-components/es/components/_Icon/Icons/IconChevronDownFill.js +0 -15
- package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.config.js +0 -20
- package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.js +0 -6
- package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +0 -66
- package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.config.js +0 -24
- package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.js +0 -6
- package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +0 -65
- package/types/components/Accordion/Accordion.d.ts +0 -43
- package/types/components/Accordion/Accordion.d.ts.map +0 -1
- package/types/components/Accordion/Accordion.styles.d.ts.map +0 -1
- package/types/components/Accordion/Accordion.tokens.d.ts +0 -38
- package/types/components/Accordion/Accordion.tokens.d.ts.map +0 -1
- package/types/components/Accordion/Accordion.types.d.ts +0 -36
- package/types/components/Accordion/Accordion.types.d.ts.map +0 -1
- package/types/components/Accordion/index.d.ts +0 -5
- package/types/components/Accordion/index.d.ts.map +0 -1
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts +0 -4
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts.map +0 -1
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts +0 -13
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts.map +0 -1
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts +0 -47
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts.map +0 -1
- package/types/components/Accordion/utils/index.d.ts +0 -16
- package/types/components/Accordion/utils/index.d.ts.map +0 -1
- package/types/components/Accordion/variations/_size/base.d.ts.map +0 -1
- package/types/components/Accordion/variations/_stretching/base.d.ts.map +0 -1
- package/types/components/Accordion/variations/_view/base.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/ChevronDownFill.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/ChevronDownFill.d.ts.map +0 -1
- package/types/components/_Icon/Icon.assets/Minus.d.ts +0 -4
- package/types/components/_Icon/Icon.assets/Minus.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconChevronDownFill.d.ts +0 -4
- package/types/components/_Icon/Icons/IconChevronDownFill.d.ts.map +0 -1
- package/types/components/_Icon/Icons/IconMinus.d.ts +0 -4
- package/types/components/_Icon/Icons/IconMinus.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Accordion/Accordion.config.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Accordion/Accordion.d.ts +0 -26
- package/types/examples/plasma_b2c/components/Accordion/Accordion.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Accordion/Accordion.config.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Accordion/Accordion.d.ts +0 -30
- package/types/examples/plasma_web/components/Accordion/Accordion.d.ts.map +0 -1
- /package/cjs/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_view}/base_x642ct.css +0 -0
- /package/cjs/components/{Accordion/ui/AccordionItem/AccordionItem.css → _Icon/Icons/IconClose.css} +0 -0
- /package/{cjs/components/Accordion → es/components/DatePicker/RangeDate}/variations/_view/base_x642ct.css +0 -0
- /package/es/components/{Accordion/ui/AccordionItem/AccordionItem.css → _Icon/Icons/IconClose.css} +0 -0
- /package/styled-components/cjs/components/{Accordion/Accordion.types.js → DatePicker/DatePickerBase.types.js} +0 -0
- /package/styled-components/cjs/components/{Accordion/ui/AccordionItem/AccordionItem.types.js → DatePicker/RangeDate/DatePicker.types.js} +0 -0
- /package/styled-components/cjs/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_view}/base.js +0 -0
- /package/styled-components/es/components/{Accordion/Accordion.types.js → DatePicker/DatePickerBase.types.js} +0 -0
- /package/styled-components/es/components/{Accordion/ui/AccordionItem/AccordionItem.types.js → DatePicker/RangeDate/DatePicker.types.js} +0 -0
- /package/styled-components/es/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_view}/base.js +0 -0
- /package/types/components/{Accordion/variations/_size → DatePicker/RangeDate/variations/_disabled}/base.d.ts +0 -0
- /package/types/components/{Accordion/variations/_stretching → DatePicker/RangeDate/variations/_readonly}/base.d.ts +0 -0
- /package/types/components/{Accordion/variations/_view → DatePicker/RangeDate/variations/_size}/base.d.ts +0 -0
@@ -1,24 +1,36 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import { flexCenter, selectedMixin } from '../../mixins';
|
3
2
|
import { tokens } from '../../Calendar.tokens';
|
4
3
|
import { addFocus } from '../../../../mixins';
|
4
|
+
import { addSelected, flexCenter } from '../../mixins';
|
5
5
|
export var StyledCalendarYears = /*#__PURE__*/styled.div.withConfig({
|
6
6
|
componentId: "plasma-new-hope__sc-153qwc7-0"
|
7
|
-
})(["padding:
|
7
|
+
})(["padding:var(", ");box-sizing:border-box;"], tokens.calendarYearsPadding);
|
8
8
|
export var StyledFlex = /*#__PURE__*/styled.div.withConfig({
|
9
9
|
componentId: "plasma-new-hope__sc-153qwc7-1"
|
10
10
|
})(["", ";"], /*#__PURE__*/String(flexCenter));
|
11
11
|
export var StyledYear = /*#__PURE__*/styled.div.withConfig({
|
12
12
|
componentId: "plasma-new-hope__sc-153qwc7-2"
|
13
|
-
})(["border-radius:0.
|
14
|
-
var selectable = function selectable() {
|
15
|
-
return "\n ".concat(addFocus({
|
16
|
-
outlineSize: '0.063rem',
|
17
|
-
outlineOffset: '-0.063rem',
|
18
|
-
outlineColor: "var(".concat(tokens.calendarOutlineFocusColor, ")"),
|
19
|
-
outlineRadius: '0.563rem'
|
20
|
-
}), ";\n\n --calendar_private-selected-min-width: 5.25rem;\n --calendar_private-selected-min-height: 3.25rem;\n --calendar_private-selected-background: var(").concat(tokens.calendarSelectedItemBackground, ");\n --calendar_private-selected-color: var(").concat(tokens.calendarSelectedItemColor, ");\n --calendar_private-selectable-background-hover: var(").concat(tokens.calendarSelectableItemBackgroundHover, ");\n --calendar_private-current-border-color: var(").concat(tokens.calendarCurrentItemBorderColor, ");\n --calendar_private-current-background-hover: var(").concat(tokens.calendarCurrentItemBackgroundHover, ");\n --calendar_private-current-color-hover: var(").concat(tokens.calendarCurrentItemColorHover, ");\n --calendar_private-current-child-background-hover: var(").concat(tokens.calendarCurrentItemChildBackgroundHover, ");\n --calendar_private-active-background: var(").concat(tokens.calendarActiveItemBackground, ");\n --calendar_private-active-color: var(").concat(tokens.calendarActiveItemColor, ");\n --calendar_private-hovered-background: var(").concat(tokens.calendarHoveredItemBackground, ");\n --calendar_private-hovered-color: var(").concat(tokens.calendarHoveredItemColor, ");\n \n ").concat(String(selectedMixin), ";\n");
|
21
|
-
};
|
13
|
+
})(["border-radius:calc(var(", ") - 0.125rem);", ";"], tokens.calendarYearItemBorderRadius, /*#__PURE__*/String(flexCenter));
|
22
14
|
export var StyledYearRoot = /*#__PURE__*/styled.div.withConfig({
|
23
15
|
componentId: "plasma-new-hope__sc-153qwc7-3"
|
24
|
-
})(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");position:relative;box-sizing:border-box;min-height:
|
16
|
+
})(["font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");position:relative;box-sizing:border-box;min-height:var(", ");min-width:var(", ");border-radius:var(", ");", ";", ";", ";"], tokens.calendarYearFontFamily, tokens.calendarYearFontSize, tokens.calendarYearFontStyle, tokens.calendarYearFontWeight, tokens.calendarYearFontLetterSpacing, tokens.calendarYearFontLineHeight, tokens.calendarYearItemHeight, tokens.calendarYearItemWidth, tokens.calendarYearItemBorderRadius, /*#__PURE__*/String(flexCenter), /*#__PURE__*/addSelected({
|
17
|
+
minWidth: /*#__PURE__*/"calc(var(".concat(tokens.calendarYearItemWidth, ") - 0.25rem)"),
|
18
|
+
minHeight: /*#__PURE__*/"calc(var(".concat(tokens.calendarYearItemHeight, ") - 0.25rem)"),
|
19
|
+
selectedFontWeight: /*#__PURE__*/"var(".concat(tokens.calendarYearSelectedFontWeight, ")"),
|
20
|
+
selectedBackground: /*#__PURE__*/"var(".concat(tokens.calendarSelectedItemBackground, ")"),
|
21
|
+
selectedColor: /*#__PURE__*/"var(".concat(tokens.calendarSelectedItemColor, ")"),
|
22
|
+
selectableBackgroundHover: /*#__PURE__*/"var(".concat(tokens.calendarSelectableItemBackgroundHover, ")"),
|
23
|
+
currentBorderColor: /*#__PURE__*/"var(".concat(tokens.calendarCurrentItemBorderColor, ")"),
|
24
|
+
currentBackgroundHover: /*#__PURE__*/"var(".concat(tokens.calendarCurrentItemBackgroundHover, ")"),
|
25
|
+
currentColorHover: /*#__PURE__*/"var(".concat(tokens.calendarCurrentItemColorHover, ")"),
|
26
|
+
currentChildBackgroundHover: /*#__PURE__*/"var(".concat(tokens.calendarCurrentItemChildBackgroundHover, ")"),
|
27
|
+
hoveredBackground: /*#__PURE__*/"var(".concat(tokens.calendarHoveredItemBackground, ")"),
|
28
|
+
hoveredColor: /*#__PURE__*/"var(".concat(tokens.calendarHoveredItemColor, ")"),
|
29
|
+
activeBackground: /*#__PURE__*/"var(".concat(tokens.calendarActiveItemBackground, ")"),
|
30
|
+
activeColor: /*#__PURE__*/"var(".concat(tokens.calendarActiveItemColor, ")")
|
31
|
+
}), /*#__PURE__*/addFocus({
|
32
|
+
outlineSize: '0.063rem',
|
33
|
+
outlineOffset: '-0.063rem',
|
34
|
+
outlineColor: /*#__PURE__*/"var(".concat(tokens.calendarOutlineFocusColor, ")"),
|
35
|
+
outlineRadius: /*#__PURE__*/"calc(var(".concat(tokens.calendarMonthItemBorderRadius, ") - 0.125rem)")
|
36
|
+
}));
|
@@ -10,8 +10,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
11
11
|
import React, { Children, forwardRef, useEffect, useRef, useState } from 'react';
|
12
12
|
import { safeUseId, useForkRef } from '@salutejs/plasma-core';
|
13
|
-
import { cx } from '../../utils';
|
14
|
-
import { getPlacements } from '../Dropdown/utils';
|
13
|
+
import { cx, getPlacements } from '../../utils';
|
15
14
|
import { getChildren, getNewSelected, getValues } from '../Select/utils';
|
16
15
|
import { useKeyNavigation } from '../Select/hooks';
|
17
16
|
import { useDidMountEffect, useForceUpdate } from '../../hooks';
|
@@ -0,0 +1,178 @@
|
|
1
|
+
export var classes = {
|
2
|
+
datePickerError: 'date-picker-error',
|
3
|
+
datePickerSuccess: 'date-picker-success',
|
4
|
+
datePickerRoot: 'date-picker-root'
|
5
|
+
};
|
6
|
+
export var tokens = {
|
7
|
+
width: '--plasma-date-picker-width',
|
8
|
+
/** Токены полей ввода в рендже */
|
9
|
+
background: '--plasma-date-picker_range-background',
|
10
|
+
backgroundError: '--plasma-date-picker_range-background-error',
|
11
|
+
backgroundSuccess: '--plasma-date-picker_range-background-success',
|
12
|
+
backgroundReadOnly: '--plasma-date-picker_range-background-readonly',
|
13
|
+
borderRadius: '--plasma-date-picker_range-border-radius',
|
14
|
+
borderWidth: '--plasma-date-picker_range-border-width',
|
15
|
+
borderColor: '--plasma-date-picker_range-border-color',
|
16
|
+
borderColorHover: '--plasma-date-picker_range-border-color-hover',
|
17
|
+
borderColorFocus: '--plasma-date-picker_range-border-color-focus',
|
18
|
+
borderColorError: '--plasma-date-picker_range-border-color-error',
|
19
|
+
borderColorSuccess: '--plasma-date-picker_range-border-color-success',
|
20
|
+
borderColorReadOnly: '--plasma-date-picker_range-border-color-readonly',
|
21
|
+
/** Токены разделителя */
|
22
|
+
dividerColor: '--plasma-date-picker_range__divider-color',
|
23
|
+
dividerColorReadOnly: '--plasma-date-picker_range__divider-color-readonly',
|
24
|
+
dividerPadding: '--plasma-date-picker_range__divider-padding',
|
25
|
+
dividerFontFamily: '--plasma-date-picker_range__divider-font-family',
|
26
|
+
dividerFontStyle: '--plasma-date-picker_range__divider-font-style',
|
27
|
+
dividerFontSize: '--plasma-date-picker_range__divider-font-size',
|
28
|
+
dividerFontWeight: '--plasma-date-picker_range__divider-font-weight',
|
29
|
+
dividerLetterSpacing: '--plasma-date-picker_range__divider-letter-spacing',
|
30
|
+
dividerLineHeight: '--plasma-date-picker_range__divider-line-height',
|
31
|
+
/** Токены слотов для контента в рендже */
|
32
|
+
leftContentMargin: '--plasma-date-picker_range__left-content-margin',
|
33
|
+
rightContentMargin: '--plasma-date-picker_range__right-content-margin',
|
34
|
+
/** Токены лейбла */
|
35
|
+
labelColor: '--plasma-date-picker__label-color',
|
36
|
+
labelColorReadOnly: '--plasma-date-picker__label-color-readonly',
|
37
|
+
labelOffset: '--plasma-date-picker__label-offset',
|
38
|
+
labelFontFamily: '--plasma-date-picker__label-font-family',
|
39
|
+
labelFontStyle: '--plasma-date-picker__label-font-style',
|
40
|
+
labelFontSize: '--plasma-date-picker__label-font-size',
|
41
|
+
labelFontWeight: '--plasma-date-picker__label-font-weight',
|
42
|
+
labelLetterSpacing: '--plasma-date-picker__label-letter-spacing',
|
43
|
+
labelLineHeight: '--plasma-date-picker__label-line-height',
|
44
|
+
/** Токены вспомогательного текста */
|
45
|
+
leftHelperColor: '--plasma-date-picker__left-helper-color',
|
46
|
+
leftHelperColorReadOnly: '--plasma-date-picker__left-helper-color-readonly',
|
47
|
+
leftHelperOffset: '--plasma-date-picker__left-helper-offset',
|
48
|
+
leftHelperFontFamily: '--plasma-date-picker__left-helper-font-family',
|
49
|
+
leftHelperFontStyle: '--plasma-date-picker__left-helper-font-style',
|
50
|
+
leftHelperFontSize: '--plasma-date-picker__left-helper-font-size',
|
51
|
+
leftHelperFontWeight: '--plasma-date-picker__left-helper-font-weight',
|
52
|
+
leftHelperLetterSpacing: '--plasma-date-picker__left-helper-letter-spacing',
|
53
|
+
leftHelperLineHeight: '--plasma-date-picker__left-helper-line-height',
|
54
|
+
/** Прозрачность для всего компонента в состоянии disabled */
|
55
|
+
disabledOpacity: '--plasma-date-picker-disabled-opacity',
|
56
|
+
/** Цвет обводки поля ввода при фокусе */
|
57
|
+
focusColor: '--plasma-date-picker-focus-color',
|
58
|
+
/** Токены полей ввода */
|
59
|
+
textFieldColor: '--plasma-date-picker-textfield-color',
|
60
|
+
textFieldFocusColor: '--plasma-date-picker-textfield-focus-color',
|
61
|
+
textFieldPlaceholderColor: '--plasma-date-picker-textfield-placeholder-color',
|
62
|
+
textFieldCaretColor: '--plasma-date-picker-textfield-caret-color',
|
63
|
+
textFieldBackgroundColor: '--plasma-date-picker-textfield-background-color',
|
64
|
+
textFieldBackgroundColorHover: '--plasma-date-picker-textfield-background-color-hover',
|
65
|
+
textFieldBackgroundColorFocus: '--plasma-date-picker-textfield-background-color-focus',
|
66
|
+
textFieldBackgroundErrorColor: '--plasma-date-picker-textfield-background-color-error',
|
67
|
+
textFieldBackgroundErrorColorHover: '--plasma-date-picker-textfield-background-color-error-hover',
|
68
|
+
textFieldBackgroundErrorColorFocus: '--plasma-date-picker-textfield-background-color-error-focus',
|
69
|
+
textFieldBackgroundSuccessColor: '--plasma-date-picker-textfield-background-color-success',
|
70
|
+
textFieldBackgroundSuccessColorHover: '--plasma-date-picker-textfield-background-color-success-hover',
|
71
|
+
textFieldBackgroundSuccessColorFocus: '--plasma-date-picker-textfield-background-color-success-focus',
|
72
|
+
textFieldBorderColor: '--plasma-date-picker-textfield-border-color',
|
73
|
+
textFieldBorderColorHover: '--plasma-date-picker-textfield-border-color-hover',
|
74
|
+
textFieldBorderColorFocus: '--plasma-date-picker-textfield-border-color-focus',
|
75
|
+
textFieldBorderColorError: '--plasma-date-picker-textfield-border-color-error',
|
76
|
+
textFieldBorderColorErrorHover: '--plasma-date-picker-textfield-border-color-error-hover',
|
77
|
+
textFieldBorderColorErrorFocus: '--plasma-date-picker-textfield-border-color-error-focus',
|
78
|
+
textFieldBorderColorSuccess: '--plasma-date-picker-textfield-border-color-success',
|
79
|
+
textFieldBorderColorSuccessHover: '--plasma-date-picker-textfield-border-color-success-hover',
|
80
|
+
textFieldBorderColorSuccessFocus: '--plasma-date-picker-textfield-border-color-success-focus',
|
81
|
+
textFieldColorReadOnly: '--plasma-date-picker-textfield-color-readonly',
|
82
|
+
textFieldBackgroundColorReadOnly: '--plasma-date-picker-textfield-background-color-readonly',
|
83
|
+
textFieldBorderColorReadOnly: '--plasma-date-picker-textfield-border-color-readonly',
|
84
|
+
textFieldPlaceholderColorReadOnly: '--plasma-date-picker-textfield-placeholder-color-readonly',
|
85
|
+
textFieldHeight: '--plasma-date-picker-textfield-height',
|
86
|
+
textFieldBorderWidth: '--plasma-date-picker-textfield-border-width',
|
87
|
+
textFieldBorderRadius: '--plasma-date-picker-textfield-border-radius',
|
88
|
+
textFieldPadding: '--plasma-date-picker-textfield-padding',
|
89
|
+
textFieldLeftContentMargin: '--plasma-date-picker-textfield__left-content-margin',
|
90
|
+
textFieldRightContentMargin: '--plasma-date-picker-textfield__right-content-margin',
|
91
|
+
textFieldFontFamily: '--plasma-date-picker-textfield-font-family',
|
92
|
+
textFieldFontStyle: '--plasma-date-picker-textfield-font-style',
|
93
|
+
textFieldFontSize: '--plasma-date-picker-textfield-font-size',
|
94
|
+
textFieldFontWeight: '--plasma-date-picker-textfield-font-weight',
|
95
|
+
textFieldLetterSpacing: '--plasma-date-picker-textfield-letter-spacing',
|
96
|
+
textFieldLineHeight: '--plasma-date-picker-textfield-line-height',
|
97
|
+
textFieldTextBeforeColor: '--plasma-date-picker-textfield__before-text-color',
|
98
|
+
textFieldTextAfterColor: '--plasma-date-picker-textfield__after-text-color',
|
99
|
+
textFieldTextBeforeMargin: '--plasma-date-picker-textfield__before-text-margin',
|
100
|
+
textFieldTextAfterMargin: '--plasma-date-picker-textfield__after-text-margin',
|
101
|
+
/** Токены календаря */
|
102
|
+
calendarPaddingTop: '--plasma-date-picker-calendar-padding-top',
|
103
|
+
calendarShadow: '--plasma-date-picker-calendar-shadow',
|
104
|
+
calendarBorderRadius: '--plasma-date-picker-calendar-border-radius',
|
105
|
+
calendarWidth: '--plasma-date-picker-calendar-width',
|
106
|
+
calendarHeight: '--plasma-date-picker-calendar-height',
|
107
|
+
calendarYearsPadding: '--plasma-date-picker-calendar__years-padding',
|
108
|
+
calendarYearItemBorderRadius: '--plasma-date-picker-calendar__year-item-border-radius',
|
109
|
+
calendarYearItemWidth: '--plasma-date-picker-calendar__year-item-width',
|
110
|
+
calendarYearItemHeight: '--plasma-date-picker-calendar__year-item-height',
|
111
|
+
calendarYearFontFamily: '--plasma-date-picker-calendar__year-font-family',
|
112
|
+
calendarYearFontSize: '--plasma-date-picker-calendar__year-font-size',
|
113
|
+
calendarYearFontStyle: '--plasma-date-picker-calendar__year-font-style',
|
114
|
+
calendarYearFontLetterSpacing: '--plasma-date-picker-calendar__year-letter-spacing',
|
115
|
+
calendarYearFontLineHeight: '--plasma-date-picker-calendar__year-line-height',
|
116
|
+
calendarYearFontWeight: '--plasma-date-picker-calendar__year-font-weight',
|
117
|
+
calendarYearSelectedFontWeight: '--plasma-date-picker-calendar__year-selected-font-weight',
|
118
|
+
calendarMonthsPadding: '--plasma-date-picker-calendar__months-padding',
|
119
|
+
calendarMonthItemBorderRadius: '--plasma-date-picker-calendar__month-item-border-radius',
|
120
|
+
calendarMonthItemWidth: '--plasma-date-picker-calendar__month-item-width',
|
121
|
+
calendarMonthItemHeight: '--plasma-date-picker-calendar__month-item-height',
|
122
|
+
calendarMonthFontFamily: '--plasma-date-picker-calendar__month-font-family',
|
123
|
+
calendarMonthFontSize: '--plasma-date-picker-calendar__month-font-size',
|
124
|
+
calendarMonthFontStyle: '--plasma-date-picker-calendar__month-font-style',
|
125
|
+
calendarMonthFontLetterSpacing: '--plasma-date-picker-calendar__month-letter-spacing',
|
126
|
+
calendarMonthFontLineHeight: '--plasma-date-picker-calendar__month-line-height',
|
127
|
+
calendarMonthFontWeight: '--plasma-date-picker-calendar__month-font-weight',
|
128
|
+
calendarMonthSelectedFontWeight: '--plasma-date-picker-calendar__month-selected-font-weight',
|
129
|
+
calendarDaysPadding: '--plasma-date-picker-calendar__days-padding',
|
130
|
+
calendarDayItemBorderRadius: '--plasma-date-picker-calendar__day-item-border-radius',
|
131
|
+
calendarDayItemWidth: '--plasma-date-picker-calendar__day-item-width',
|
132
|
+
calendarDayItemHeight: '--plasma-date-picker-calendar__day-item-height',
|
133
|
+
calendarDayFontFamily: '--plasma-date-picker-calendar__day-font-family',
|
134
|
+
calendarDayFontSize: '--plasma-date-picker-calendar__day-font-size',
|
135
|
+
calendarDayFontStyle: '--plasma-date-picker-calendar__day-font-style',
|
136
|
+
calendarDayFontLetterSpacing: '--plasma-date-picker-calendar__day-letter-spacing',
|
137
|
+
calendarDayFontLineHeight: '--plasma-date-picker-calendar__day-line-height',
|
138
|
+
calendarDayFontWeight: '--plasma-date-picker-calendar__day-font-weight',
|
139
|
+
calendarDaySelectedFontWeight: '--plasma-date-picker-calendar__day-selected-font-weight',
|
140
|
+
calendarDayOfWeekColor: '--plasma-date-picker-calendar__day-of-week-color',
|
141
|
+
calendarHeaderArrowGap: '--plasma-date-picker-calendar__header-arrow-gap',
|
142
|
+
calendarHeaderPadding: '--plasma-date-picker-calendar__header-padding',
|
143
|
+
calendarHeaderDateGap: '--plasma-date-picker-calendar__header-date-gap',
|
144
|
+
calendarHeaderFontFamily: '--plasma-date-picker-calendar__header-font-family',
|
145
|
+
calendarHeaderFontSize: '--plasma-date-picker-calendar__header-font-size',
|
146
|
+
calendarHeaderFontStyle: '--plasma-date-picker-calendar__header-font-style',
|
147
|
+
calendarHeaderFontLetterSpacing: '--plasma-date-picker-calendar__header-letter-spacing',
|
148
|
+
calendarHeaderFontLineHeight: '--plasma-date-picker-calendar__header-line-height',
|
149
|
+
calendarHeaderFontWeight: '--plasma-date-picker-calendar__header-font-weight',
|
150
|
+
calendarHeaderFontWeightBold: '--plasma-date-picker-calendar__header-font-weight-bold',
|
151
|
+
iconButtonColor: '--plasma-date-picker-icon-button__color',
|
152
|
+
iconButtonBackgroundColor: '--plasma-date-picker-icon-button__background-color',
|
153
|
+
iconButtonColorHover: '--plasma-date-picker-icon-button__color-hover',
|
154
|
+
iconButtonBackgroundColorHover: '--plasma-date-picker-icon-button__background-color-hover',
|
155
|
+
iconButtonColorActive: '--plasma-date-picker-icon-button__color-active',
|
156
|
+
iconButtonBackgroundColorActive: '--plasma-date-picker-icon-button__background-color-active',
|
157
|
+
iconButtonHeight: '--plasma-date-picker-icon-button__height',
|
158
|
+
iconButtonWidth: '--plasma-date-picker-icon-button__width',
|
159
|
+
iconButtonPadding: '--plasma-date-picker-icon-button__padding',
|
160
|
+
iconButtonRadius: '--plasma-date-picker-icon-button__radius',
|
161
|
+
calendarBackgroundColor: '--plasma-date-picker-calendar__background-color',
|
162
|
+
calendarSelectedItemBackground: '--plasma-date-picker-calendar__selected-item-background',
|
163
|
+
calendarSelectedItemColor: '--plasma-date-picker-calendar__selected-item-color',
|
164
|
+
calendarSelectableItemBackgroundHover: '--plasma-date-picker-calendar__selectable-item-background-hover',
|
165
|
+
calendarCurrentItemBorderColor: '--plasma-date-picker-calendar__current-item-border-color',
|
166
|
+
calendarCurrentItemBackgroundHover: '--plasma-date-picker-calendar__current-item-background-hover',
|
167
|
+
calendarCurrentItemColorHover: '--plasma-date-picker-calendar__current-item-color-hover',
|
168
|
+
calendarCurrentItemChildBackgroundHover: '--plasma-date-picker-calendar__current-item-child-background-hover',
|
169
|
+
calendarActiveItemBackground: '--plasma-date-picker-calendar__active-item-background',
|
170
|
+
calendarActiveItemColor: '--plasma-date-picker-calendar__active-item-color',
|
171
|
+
calendarHoveredItemBackground: '--plasma-date-picker-calendar__hovered-item-background',
|
172
|
+
calendarHoveredItemColor: '--plasma-date-picker-calendar__hovered-item-color',
|
173
|
+
calendarSeparatorBackground: '--plasma-date-picker-calendar__separator-background',
|
174
|
+
calendarRangeBackground: '--plasma-date-picker-calendar__range-background',
|
175
|
+
calendarOutlineFocusColor: '--plasma-date-picker-calendar__outline-focus-color',
|
176
|
+
calendarContentPrimaryColor: '--plasma-date-picker-calendar__content-primary-color',
|
177
|
+
calendarContentSecondaryColor: '--plasma-date-picker-calendar__content-secondary-color'
|
178
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import styled from 'styled-components';
|
2
|
+
import { calendarBaseConfig, calendarBaseTokens } from '../Calendar';
|
3
|
+
import { component, mergeConfig } from '../../engines';
|
4
|
+
import { tokens } from './DatePicker.tokens';
|
5
|
+
var mergedCalendarConfig = /*#__PURE__*/mergeConfig(calendarBaseConfig);
|
6
|
+
var Calendar = /*#__PURE__*/component(mergedCalendarConfig);
|
7
|
+
export var baseCalendarTokens = /*#__PURE__*/"\n padding-top: var(".concat(tokens.calendarPaddingTop, ");\n box-shadow: var(").concat(tokens.calendarShadow, ");\n border-radius: var(").concat(tokens.calendarBorderRadius, ");\n\n ").concat(calendarBaseTokens.calendarBackgroundColor, ": var(").concat(tokens.calendarBackgroundColor, ");\n ").concat(calendarBaseTokens.calendarSelectedItemBackground, ": var(").concat(tokens.calendarSelectedItemBackground, ");\n ").concat(calendarBaseTokens.calendarSelectedItemColor, ": var(").concat(tokens.calendarSelectedItemColor, ");\n ").concat(calendarBaseTokens.calendarSelectableItemBackgroundHover, ": var(").concat(tokens.calendarSelectableItemBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemBorderColor, ": var(").concat(tokens.calendarCurrentItemBorderColor, ");\n ").concat(calendarBaseTokens.calendarCurrentItemBackgroundHover, ": var(").concat(tokens.calendarCurrentItemBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemColorHover, ": var(").concat(tokens.calendarCurrentItemColorHover, ");\n ").concat(calendarBaseTokens.calendarCurrentItemChildBackgroundHover, ": var(").concat(tokens.calendarCurrentItemChildBackgroundHover, ");\n ").concat(calendarBaseTokens.calendarActiveItemBackground, ": var(").concat(tokens.calendarActiveItemBackground, ");\n ").concat(calendarBaseTokens.calendarActiveItemColor, ": var(").concat(tokens.calendarActiveItemColor, ");\n ").concat(calendarBaseTokens.calendarHoveredItemBackground, ": var(").concat(tokens.calendarHoveredItemBackground, ");\n ").concat(calendarBaseTokens.calendarHoveredItemColor, ": var(").concat(tokens.calendarHoveredItemColor, ");\n ").concat(calendarBaseTokens.calendarRangeBackground, ": var(").concat(tokens.calendarRangeBackground, ");\n ").concat(calendarBaseTokens.calendarOutlineFocusColor, ": var(").concat(tokens.calendarOutlineFocusColor, ");\n ").concat(calendarBaseTokens.calendarContentPrimaryColor, ": var(").concat(tokens.calendarContentPrimaryColor, ");\n ").concat(calendarBaseTokens.calendarContentSecondaryColor, ": var(").concat(tokens.calendarContentSecondaryColor, ");\n\n ").concat(calendarBaseTokens.iconButtonColor, ": var(").concat(tokens.iconButtonColor, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColor, ": var(").concat(tokens.iconButtonBackgroundColor, ");\n ").concat(calendarBaseTokens.iconButtonColorHover, ": var(").concat(tokens.iconButtonColorHover, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColorHover, ": var(").concat(tokens.iconButtonBackgroundColorHover, ");\n ").concat(calendarBaseTokens.iconButtonColorActive, ": var(").concat(tokens.iconButtonColorActive, ");\n ").concat(calendarBaseTokens.iconButtonBackgroundColorActive, ": var(").concat(tokens.iconButtonBackgroundColorActive, ");\n\n ").concat(calendarBaseTokens.calendarWidth, ": var(").concat(tokens.calendarWidth, ");\n ").concat(calendarBaseTokens.calendarHeight, ": var(").concat(tokens.calendarHeight, ");\n ").concat(calendarBaseTokens.calendarYearsPadding, ": var(").concat(tokens.calendarYearsPadding, ");\n ").concat(calendarBaseTokens.calendarYearItemBorderRadius, ": var(").concat(tokens.calendarYearItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarYearItemWidth, ": var(").concat(tokens.calendarYearItemWidth, ");\n ").concat(calendarBaseTokens.calendarYearItemHeight, ": var(").concat(tokens.calendarYearItemHeight, ");\n ").concat(calendarBaseTokens.calendarYearFontFamily, ": var(").concat(tokens.calendarYearFontFamily, ");\n ").concat(calendarBaseTokens.calendarYearFontSize, ": var(").concat(tokens.calendarYearFontSize, ");\n ").concat(calendarBaseTokens.calendarYearFontStyle, ": var(").concat(tokens.calendarYearFontStyle, ");\n ").concat(calendarBaseTokens.calendarYearFontLetterSpacing, ": var(").concat(tokens.calendarYearFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarYearFontLineHeight, ": var(").concat(tokens.calendarYearFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarYearFontWeight, ": var(").concat(tokens.calendarYearFontWeight, ");\n ").concat(calendarBaseTokens.calendarYearSelectedFontWeight, ": var(").concat(tokens.calendarYearSelectedFontWeight, ");\n ").concat(calendarBaseTokens.calendarMonthsPadding, ": var(").concat(tokens.calendarMonthsPadding, ");\n ").concat(calendarBaseTokens.calendarMonthItemBorderRadius, ": var(").concat(tokens.calendarMonthItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarMonthItemWidth, ": var(").concat(tokens.calendarMonthItemWidth, ");\n ").concat(calendarBaseTokens.calendarMonthItemHeight, ": var(").concat(tokens.calendarMonthItemHeight, ");\n ").concat(calendarBaseTokens.calendarMonthFontFamily, ": var(").concat(tokens.calendarMonthFontFamily, ");\n ").concat(calendarBaseTokens.calendarMonthFontSize, ": var(").concat(tokens.calendarMonthFontSize, ");\n ").concat(calendarBaseTokens.calendarMonthFontStyle, ": var(").concat(tokens.calendarMonthFontStyle, ");\n ").concat(calendarBaseTokens.calendarMonthFontLetterSpacing, ": var(").concat(tokens.calendarMonthFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarMonthFontLineHeight, ": var(").concat(tokens.calendarMonthFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarMonthFontWeight, ": var(").concat(tokens.calendarMonthFontWeight, ");\n ").concat(calendarBaseTokens.calendarMonthSelectedFontWeight, ": var(").concat(tokens.calendarMonthSelectedFontWeight, ");\n ").concat(calendarBaseTokens.calendarDaysPadding, ": var(").concat(tokens.calendarDaysPadding, ");\n ").concat(calendarBaseTokens.calendarDayItemBorderRadius, ": var(").concat(tokens.calendarDayItemBorderRadius, ");\n ").concat(calendarBaseTokens.calendarDayItemWidth, ": var(").concat(tokens.calendarDayItemWidth, ");\n ").concat(calendarBaseTokens.calendarDayItemHeight, ": var(").concat(tokens.calendarDayItemHeight, ");\n ").concat(calendarBaseTokens.calendarDayFontFamily, ": var(").concat(tokens.calendarDayFontFamily, ");\n ").concat(calendarBaseTokens.calendarDayFontSize, ": var(").concat(tokens.calendarDayFontSize, ");\n ").concat(calendarBaseTokens.calendarDayFontStyle, ": var(").concat(tokens.calendarDayFontStyle, ");\n ").concat(calendarBaseTokens.calendarDayFontLetterSpacing, ": var(").concat(tokens.calendarDayFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarDayFontLineHeight, ": var(").concat(tokens.calendarDayFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarDayFontWeight, ": var(").concat(tokens.calendarDayFontWeight, ");\n ").concat(calendarBaseTokens.calendarDaySelectedFontWeight, ": var(").concat(tokens.calendarDaySelectedFontWeight, ");\n ").concat(calendarBaseTokens.calendarHeaderArrowGap, ": var(").concat(tokens.calendarHeaderArrowGap, ");\n ").concat(calendarBaseTokens.calendarHeaderPadding, ": var(").concat(tokens.calendarHeaderPadding, ");\n ").concat(calendarBaseTokens.calendarHeaderDateGap, ": var(").concat(tokens.calendarHeaderDateGap, ");\n ").concat(calendarBaseTokens.calendarHeaderFontFamily, ": var(").concat(tokens.calendarHeaderFontFamily, ");\n ").concat(calendarBaseTokens.calendarHeaderFontSize, ": var(").concat(tokens.calendarHeaderFontSize, ");\n ").concat(calendarBaseTokens.calendarHeaderFontStyle, ": var(").concat(tokens.calendarHeaderFontStyle, ");\n ").concat(calendarBaseTokens.calendarHeaderFontLetterSpacing, ": var(").concat(tokens.calendarHeaderFontLetterSpacing, ");\n ").concat(calendarBaseTokens.calendarHeaderFontLineHeight, ": var(").concat(tokens.calendarHeaderFontLineHeight, ");\n ").concat(calendarBaseTokens.calendarHeaderFontWeight, ": var(").concat(tokens.calendarHeaderFontWeight, ");\n ").concat(calendarBaseTokens.calendarHeaderFontWeightBold, ": var(").concat(tokens.calendarHeaderFontWeightBold, ");\n ").concat(calendarBaseTokens.iconButtonHeight, ": var(").concat(tokens.iconButtonHeight, ");\n ").concat(calendarBaseTokens.iconButtonWidth, ": var(").concat(tokens.iconButtonWidth, ");\n ").concat(calendarBaseTokens.iconButtonPadding, ": var(").concat(tokens.iconButtonPadding, ");\n ").concat(calendarBaseTokens.iconButtonRadius, ": var(").concat(tokens.iconButtonRadius, ");\n");
|
8
|
+
|
9
|
+
// NOTE: переопределение токенов Calendar
|
10
|
+
export var StyledCalendar = /*#__PURE__*/styled(Calendar).withConfig({
|
11
|
+
componentId: "plasma-new-hope__sc-1i6o09y-0"
|
12
|
+
})(["", ""], baseCalendarTokens);
|
@@ -0,0 +1,340 @@
|
|
1
|
+
var _excluded = ["className", "isOpenFirst", "isOpenSecond", "isDoubleCalendar", "isOpenDouble", "label", "leftHelper", "contentLeft", "contentRight", "view", "size", "readOnly", "disabled", "dividerVariant", "dividerIcon", "defaultFirstDate", "defaultSecondDate", "firstValueError", "secondValueError", "firstValueSuccess", "secondValueSuccess", "firstPlaceholder", "secondPlaceholder", "firstTextfieldContentLeft", "firstTextfieldContentRight", "secondTextfieldContentLeft", "secondTextfieldContentRight", "firstTextfieldTextBefore", "secondTextfieldTextBefore", "firstTextfieldTextAfter", "secondTextfieldTextAfter", "format", "maskWithFormat", "min", "max", "includeEdgeDates", "eventList", "disabledList", "type", "placement", "closeOnOverlayClick", "offset", "onToggleDouble", "onToggleFirst", "onToggleSecond", "onChangeFirstValue", "onChangeSecondValue", "onCommitFirstDate", "onCommitSecondDate", "onFocusFirstTextfield", "onFocusSecondTextfield", "onBlurFirstTextfield", "onBlurSecondTextfield"];
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
3
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
7
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
10
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
11
|
+
import React, { createRef, forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
12
|
+
import { cx } from '../../../utils';
|
13
|
+
import { formatCalendarValue, formatInputValue, getDateFormatDelimiter } from '../utils/dateHelper';
|
14
|
+
import { useDatePicker } from '../hooks/useDatePicker';
|
15
|
+
import { classes } from '../DatePicker.tokens';
|
16
|
+
import { StyledCalendar } from '../DatePickerBase.styles';
|
17
|
+
import { base as sizeCSS } from './variations/_size/base';
|
18
|
+
import { base as viewCSS } from './variations/_view/base';
|
19
|
+
import { base as disabledCSS } from './variations/_disabled/base';
|
20
|
+
import { base as readOnlyCSS } from './variations/_readonly/base';
|
21
|
+
import { StyledRange, base } from './DatePicker.styles';
|
22
|
+
import { RangeDoubleDate } from './RangeDoubleDate/RangeDoubleDate';
|
23
|
+
export var datePickerRangeRoot = function datePickerRangeRoot(Root) {
|
24
|
+
return /*#__PURE__*/forwardRef(function (_ref, ref) {
|
25
|
+
var _rangeRef$current, _rangeRef$current2;
|
26
|
+
var className = _ref.className,
|
27
|
+
_ref$isOpenFirst = _ref.isOpenFirst,
|
28
|
+
isOpenFirst = _ref$isOpenFirst === void 0 ? false : _ref$isOpenFirst,
|
29
|
+
_ref$isOpenSecond = _ref.isOpenSecond,
|
30
|
+
isOpenSecond = _ref$isOpenSecond === void 0 ? false : _ref$isOpenSecond,
|
31
|
+
_ref$isDoubleCalendar = _ref.isDoubleCalendar,
|
32
|
+
isDoubleCalendar = _ref$isDoubleCalendar === void 0 ? false : _ref$isDoubleCalendar,
|
33
|
+
isOpenDouble = _ref.isOpenDouble,
|
34
|
+
label = _ref.label,
|
35
|
+
leftHelper = _ref.leftHelper,
|
36
|
+
contentLeft = _ref.contentLeft,
|
37
|
+
contentRight = _ref.contentRight,
|
38
|
+
view = _ref.view,
|
39
|
+
size = _ref.size,
|
40
|
+
_ref$readOnly = _ref.readOnly,
|
41
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
42
|
+
_ref$disabled = _ref.disabled,
|
43
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
44
|
+
_ref$dividerVariant = _ref.dividerVariant,
|
45
|
+
dividerVariant = _ref$dividerVariant === void 0 ? 'dash' : _ref$dividerVariant,
|
46
|
+
dividerIcon = _ref.dividerIcon,
|
47
|
+
_ref$defaultFirstDate = _ref.defaultFirstDate,
|
48
|
+
defaultFirstDate = _ref$defaultFirstDate === void 0 ? '' : _ref$defaultFirstDate,
|
49
|
+
_ref$defaultSecondDat = _ref.defaultSecondDate,
|
50
|
+
defaultSecondDate = _ref$defaultSecondDat === void 0 ? '' : _ref$defaultSecondDat,
|
51
|
+
firstValueError = _ref.firstValueError,
|
52
|
+
secondValueError = _ref.secondValueError,
|
53
|
+
firstValueSuccess = _ref.firstValueSuccess,
|
54
|
+
secondValueSuccess = _ref.secondValueSuccess,
|
55
|
+
firstPlaceholder = _ref.firstPlaceholder,
|
56
|
+
secondPlaceholder = _ref.secondPlaceholder,
|
57
|
+
firstTextfieldContentLeft = _ref.firstTextfieldContentLeft,
|
58
|
+
firstTextfieldContentRight = _ref.firstTextfieldContentRight,
|
59
|
+
secondTextfieldContentLeft = _ref.secondTextfieldContentLeft,
|
60
|
+
secondTextfieldContentRight = _ref.secondTextfieldContentRight,
|
61
|
+
firstTextfieldTextBefore = _ref.firstTextfieldTextBefore,
|
62
|
+
secondTextfieldTextBefore = _ref.secondTextfieldTextBefore,
|
63
|
+
firstTextfieldTextAfter = _ref.firstTextfieldTextAfter,
|
64
|
+
secondTextfieldTextAfter = _ref.secondTextfieldTextAfter,
|
65
|
+
_ref$format = _ref.format,
|
66
|
+
format = _ref$format === void 0 ? 'DD.MM.YYYY' : _ref$format,
|
67
|
+
maskWithFormat = _ref.maskWithFormat,
|
68
|
+
min = _ref.min,
|
69
|
+
max = _ref.max,
|
70
|
+
_ref$includeEdgeDates = _ref.includeEdgeDates,
|
71
|
+
includeEdgeDates = _ref$includeEdgeDates === void 0 ? false : _ref$includeEdgeDates,
|
72
|
+
eventList = _ref.eventList,
|
73
|
+
disabledList = _ref.disabledList,
|
74
|
+
_ref$type = _ref.type,
|
75
|
+
type = _ref$type === void 0 ? 'Days' : _ref$type,
|
76
|
+
_ref$placement = _ref.placement,
|
77
|
+
placement = _ref$placement === void 0 ? ['top', 'bottom'] : _ref$placement,
|
78
|
+
_ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
|
79
|
+
closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
|
80
|
+
offset = _ref.offset,
|
81
|
+
onToggleDouble = _ref.onToggleDouble,
|
82
|
+
onToggleFirst = _ref.onToggleFirst,
|
83
|
+
onToggleSecond = _ref.onToggleSecond,
|
84
|
+
onChangeFirstValue = _ref.onChangeFirstValue,
|
85
|
+
onChangeSecondValue = _ref.onChangeSecondValue,
|
86
|
+
onCommitFirstDate = _ref.onCommitFirstDate,
|
87
|
+
onCommitSecondDate = _ref.onCommitSecondDate,
|
88
|
+
onFocusFirstTextfield = _ref.onFocusFirstTextfield,
|
89
|
+
onFocusSecondTextfield = _ref.onFocusSecondTextfield,
|
90
|
+
onBlurFirstTextfield = _ref.onBlurFirstTextfield,
|
91
|
+
onBlurSecondTextfield = _ref.onBlurSecondTextfield,
|
92
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
93
|
+
var rangeRef = ref && 'current' in ref ? ref : /*#__PURE__*/createRef();
|
94
|
+
var rootRef = useRef(null);
|
95
|
+
var _useState = useState(rangeRef === null || rangeRef === void 0 || (_rangeRef$current = rangeRef.current) === null || _rangeRef$current === void 0 ? void 0 : _rangeRef$current.firstTextField()),
|
96
|
+
_useState2 = _slicedToArray(_useState, 2),
|
97
|
+
firstInputRef = _useState2[0],
|
98
|
+
setFirstInputRef = _useState2[1];
|
99
|
+
var _useState3 = useState(rangeRef === null || rangeRef === void 0 || (_rangeRef$current2 = rangeRef.current) === null || _rangeRef$current2 === void 0 ? void 0 : _rangeRef$current2.secondTextField()),
|
100
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
101
|
+
secondInputRef = _useState4[0],
|
102
|
+
setSecondInputRef = _useState4[1];
|
103
|
+
var _useState5 = useState(isOpenFirst),
|
104
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
105
|
+
isInnerOpenFirst = _useState6[0],
|
106
|
+
setIsInnerOpenFirst = _useState6[1];
|
107
|
+
var _useState7 = useState(isOpenSecond),
|
108
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
109
|
+
isInnerOpenSecond = _useState8[0],
|
110
|
+
setIsInnerOpenSecond = _useState8[1];
|
111
|
+
var _useState9 = useState(isOpenDouble),
|
112
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
113
|
+
isInnerOpenDouble = _useState10[0],
|
114
|
+
setIsInnerOpenDouble = _useState10[1];
|
115
|
+
var _useState11 = useState(formatCalendarValue(defaultFirstDate, format)),
|
116
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
117
|
+
calendarFirstValue = _useState12[0],
|
118
|
+
setCalendarFirstValue = _useState12[1];
|
119
|
+
var _useState13 = useState(formatInputValue(defaultFirstDate, format)),
|
120
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
121
|
+
inputFirstValue = _useState14[0],
|
122
|
+
setInputFirstValue = _useState14[1];
|
123
|
+
var _useState15 = useState(formatCalendarValue(defaultSecondDate, format)),
|
124
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
125
|
+
calendarSecondValue = _useState16[0],
|
126
|
+
setCalendarSecondValue = _useState16[1];
|
127
|
+
var _useState17 = useState(formatInputValue(defaultSecondDate, format)),
|
128
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
129
|
+
inputSecondValue = _useState18[0],
|
130
|
+
setInputSecondValue = _useState18[1];
|
131
|
+
var dateFormatDelimiter = useCallback(function () {
|
132
|
+
return getDateFormatDelimiter(format);
|
133
|
+
}, [format]);
|
134
|
+
var _useDatePicker = useDatePicker({
|
135
|
+
currentValue: inputFirstValue,
|
136
|
+
setInputValue: setInputFirstValue,
|
137
|
+
setCalendarValue: setCalendarFirstValue,
|
138
|
+
setIsInnerOpen: setIsInnerOpenFirst,
|
139
|
+
dateFormatDelimiter: dateFormatDelimiter,
|
140
|
+
format: format,
|
141
|
+
disabled: disabled,
|
142
|
+
readOnly: readOnly,
|
143
|
+
maskWithFormat: maskWithFormat,
|
144
|
+
valueError: firstValueError,
|
145
|
+
valueSuccess: firstValueSuccess,
|
146
|
+
inputRef: firstInputRef,
|
147
|
+
onToggle: onToggleFirst,
|
148
|
+
onChangeValue: onChangeFirstValue,
|
149
|
+
onCommitDate: onCommitFirstDate
|
150
|
+
}),
|
151
|
+
handleToggleFirst = _useDatePicker.handleToggle,
|
152
|
+
handleChangeFirstValue = _useDatePicker.handleChangeValue,
|
153
|
+
handleCommitFirstDate = _useDatePicker.handleCommitDate;
|
154
|
+
var _useDatePicker2 = useDatePicker({
|
155
|
+
currentValue: inputSecondValue,
|
156
|
+
setInputValue: setInputSecondValue,
|
157
|
+
setCalendarValue: setCalendarSecondValue,
|
158
|
+
setIsInnerOpen: setIsInnerOpenSecond,
|
159
|
+
dateFormatDelimiter: dateFormatDelimiter,
|
160
|
+
format: format,
|
161
|
+
disabled: disabled,
|
162
|
+
readOnly: readOnly,
|
163
|
+
maskWithFormat: maskWithFormat,
|
164
|
+
valueError: secondValueError,
|
165
|
+
valueSuccess: secondValueSuccess,
|
166
|
+
inputRef: secondInputRef,
|
167
|
+
onToggle: onToggleSecond,
|
168
|
+
onChangeValue: onChangeSecondValue,
|
169
|
+
onCommitDate: onCommitSecondDate
|
170
|
+
}),
|
171
|
+
handleToggleSecond = _useDatePicker2.handleToggle,
|
172
|
+
handleChangeSecondValue = _useDatePicker2.handleChangeValue,
|
173
|
+
handleCommitSecondDate = _useDatePicker2.handleCommitDate;
|
174
|
+
var handleToggleDouble = function handleToggleDouble(opened, event) {
|
175
|
+
var _firstInputRef$curren, _secondInputRef$curre;
|
176
|
+
if (disabled || readOnly) {
|
177
|
+
return;
|
178
|
+
}
|
179
|
+
var isCalendarOpen = firstInputRef !== null && firstInputRef !== void 0 && (_firstInputRef$curren = firstInputRef.current) !== null && _firstInputRef$curren !== void 0 && _firstInputRef$curren.contains(event.target || null) || secondInputRef !== null && secondInputRef !== void 0 && (_secondInputRef$curre = secondInputRef.current) !== null && _secondInputRef$curre !== void 0 && _secondInputRef$curre.contains(event.target || null) ? true : opened;
|
180
|
+
if (onToggleDouble) {
|
181
|
+
return onToggleDouble(isCalendarOpen, event);
|
182
|
+
}
|
183
|
+
setIsInnerOpenDouble(isCalendarOpen);
|
184
|
+
};
|
185
|
+
var FirstCalendar = /*#__PURE__*/React.createElement(StyledCalendar, {
|
186
|
+
value: calendarFirstValue,
|
187
|
+
type: type,
|
188
|
+
eventList: eventList,
|
189
|
+
disabledList: disabledList,
|
190
|
+
min: min,
|
191
|
+
max: calendarSecondValue || max,
|
192
|
+
includeEdgeDates: includeEdgeDates,
|
193
|
+
isRange: false,
|
194
|
+
onChangeValue: function onChangeValue(date) {
|
195
|
+
handleCommitFirstDate(date, false, true);
|
196
|
+
setIsInnerOpenFirst(false);
|
197
|
+
if (!calendarSecondValue || secondValueError) {
|
198
|
+
var _rangeRef$current3;
|
199
|
+
rangeRef === null || rangeRef === void 0 || (_rangeRef$current3 = rangeRef.current) === null || _rangeRef$current3 === void 0 || (_rangeRef$current3 = _rangeRef$current3.secondTextField()) === null || _rangeRef$current3 === void 0 || (_rangeRef$current3 = _rangeRef$current3.current) === null || _rangeRef$current3 === void 0 || _rangeRef$current3.focus();
|
200
|
+
setIsInnerOpenSecond(true);
|
201
|
+
}
|
202
|
+
}
|
203
|
+
});
|
204
|
+
var SecondCalendar = /*#__PURE__*/React.createElement(StyledCalendar, {
|
205
|
+
value: calendarSecondValue,
|
206
|
+
type: type,
|
207
|
+
eventList: eventList,
|
208
|
+
disabledList: disabledList,
|
209
|
+
min: calendarFirstValue || min,
|
210
|
+
max: max,
|
211
|
+
includeEdgeDates: includeEdgeDates,
|
212
|
+
isRange: false,
|
213
|
+
onChangeValue: function onChangeValue(date) {
|
214
|
+
handleCommitSecondDate(date, false, true);
|
215
|
+
setIsInnerOpenSecond(false);
|
216
|
+
if (!calendarFirstValue || firstValueError) {
|
217
|
+
var _rangeRef$current4;
|
218
|
+
rangeRef === null || rangeRef === void 0 || (_rangeRef$current4 = rangeRef.current) === null || _rangeRef$current4 === void 0 || (_rangeRef$current4 = _rangeRef$current4.firstTextField()) === null || _rangeRef$current4 === void 0 || (_rangeRef$current4 = _rangeRef$current4.current) === null || _rangeRef$current4 === void 0 || _rangeRef$current4.focus();
|
219
|
+
setIsInnerOpenFirst(true);
|
220
|
+
}
|
221
|
+
}
|
222
|
+
});
|
223
|
+
var RangeComponent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledRange, _extends({
|
224
|
+
ref: rangeRef,
|
225
|
+
dividerIcon: dividerIcon,
|
226
|
+
dividerVariant: dividerVariant,
|
227
|
+
disabled: disabled,
|
228
|
+
readOnly: !disabled && readOnly,
|
229
|
+
firstPlaceholder: firstPlaceholder,
|
230
|
+
secondPlaceholder: secondPlaceholder,
|
231
|
+
label: label,
|
232
|
+
leftHelper: leftHelper,
|
233
|
+
contentLeft: contentLeft,
|
234
|
+
contentRight: contentRight,
|
235
|
+
firstTextfieldTextBefore: firstTextfieldTextBefore,
|
236
|
+
secondTextfieldTextBefore: secondTextfieldTextBefore,
|
237
|
+
firstTextfieldTextAfter: firstTextfieldTextAfter,
|
238
|
+
secondTextfieldTextAfter: secondTextfieldTextAfter,
|
239
|
+
firstTextfieldContentLeft: firstTextfieldContentLeft,
|
240
|
+
firstTextfieldContentRight: firstTextfieldContentRight,
|
241
|
+
secondTextfieldContentLeft: secondTextfieldContentLeft,
|
242
|
+
secondTextfieldContentRight: secondTextfieldContentRight,
|
243
|
+
firstValue: inputFirstValue,
|
244
|
+
secondValue: inputSecondValue,
|
245
|
+
firstValueError: firstValueError,
|
246
|
+
secondValueError: secondValueError,
|
247
|
+
firstValueSuccess: firstValueSuccess,
|
248
|
+
secondValueSuccess: secondValueSuccess,
|
249
|
+
onChangeFirstValue: handleChangeFirstValue,
|
250
|
+
onChangeSecondValue: handleChangeSecondValue,
|
251
|
+
onSearchFirstValue: function onSearchFirstValue(_, date) {
|
252
|
+
return handleCommitFirstDate(String(date), true, false);
|
253
|
+
},
|
254
|
+
onSearchSecondValue: function onSearchSecondValue(_, date) {
|
255
|
+
return handleCommitSecondDate(String(date), true, false);
|
256
|
+
},
|
257
|
+
onFocusFirstTextfield: onFocusFirstTextfield,
|
258
|
+
onFocusSecondTextfield: onFocusSecondTextfield,
|
259
|
+
onBlurFirstTextfield: onBlurFirstTextfield,
|
260
|
+
onBlurSecondTextfield: onBlurSecondTextfield
|
261
|
+
}, !isDoubleCalendar && {
|
262
|
+
isOpenFirst: isOpenFirst || isInnerOpenFirst,
|
263
|
+
isOpenSecond: isOpenSecond || isInnerOpenSecond,
|
264
|
+
onToggleFirst: handleToggleFirst,
|
265
|
+
onToggleSecond: handleToggleSecond,
|
266
|
+
firstInputPopoverContent: FirstCalendar,
|
267
|
+
secondInputPopoverContent: SecondCalendar,
|
268
|
+
offset: offset,
|
269
|
+
placement: placement,
|
270
|
+
closeOnOverlayClick: closeOnOverlayClick
|
271
|
+
})));
|
272
|
+
useEffect(function () {
|
273
|
+
var _rangeRef$current5, _rangeRef$current6;
|
274
|
+
setFirstInputRef((_rangeRef$current5 = rangeRef.current) === null || _rangeRef$current5 === void 0 ? void 0 : _rangeRef$current5.firstTextField());
|
275
|
+
setSecondInputRef((_rangeRef$current6 = rangeRef.current) === null || _rangeRef$current6 === void 0 ? void 0 : _rangeRef$current6.secondTextField());
|
276
|
+
}, [rangeRef.current]);
|
277
|
+
if (isDoubleCalendar) {
|
278
|
+
return /*#__PURE__*/React.createElement(Root, _extends({
|
279
|
+
ref: rootRef,
|
280
|
+
view: view,
|
281
|
+
size: size,
|
282
|
+
className: cx(classes.datePickerRoot, className),
|
283
|
+
disabled: disabled,
|
284
|
+
readOnly: !disabled && readOnly
|
285
|
+
}, rest), /*#__PURE__*/React.createElement(RangeDoubleDate, {
|
286
|
+
calendarValue: [calendarFirstValue, calendarSecondValue],
|
287
|
+
target: RangeComponent,
|
288
|
+
isOpen: isOpenDouble || isInnerOpenDouble,
|
289
|
+
onToggle: handleToggleDouble,
|
290
|
+
onChangeStartOfRange: function onChangeStartOfRange(firstDate) {
|
291
|
+
handleCommitFirstDate(firstDate, false, true);
|
292
|
+
handleCommitSecondDate('');
|
293
|
+
},
|
294
|
+
onChangeValue: function onChangeValue(_ref2) {
|
295
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
296
|
+
firstDate = _ref3[0],
|
297
|
+
secondDate = _ref3[1];
|
298
|
+
firstDate && handleCommitFirstDate(firstDate, false, true);
|
299
|
+
secondDate && handleCommitSecondDate(secondDate, false, true);
|
300
|
+
if (firstDate && secondDate && !firstValueError && !secondValueError) {
|
301
|
+
setIsInnerOpenDouble(false);
|
302
|
+
}
|
303
|
+
}
|
304
|
+
}));
|
305
|
+
}
|
306
|
+
return /*#__PURE__*/React.createElement(Root, _extends({
|
307
|
+
view: view,
|
308
|
+
size: size,
|
309
|
+
className: cx(classes.datePickerRoot, className),
|
310
|
+
disabled: disabled,
|
311
|
+
readOnly: !disabled && readOnly
|
312
|
+
}, rest), RangeComponent);
|
313
|
+
});
|
314
|
+
};
|
315
|
+
export var datePickerRangeConfig = {
|
316
|
+
name: 'DatePickerRange',
|
317
|
+
tag: 'div',
|
318
|
+
layout: datePickerRangeRoot,
|
319
|
+
base: base,
|
320
|
+
variations: {
|
321
|
+
view: {
|
322
|
+
css: viewCSS
|
323
|
+
},
|
324
|
+
size: {
|
325
|
+
css: sizeCSS
|
326
|
+
},
|
327
|
+
disabled: {
|
328
|
+
css: disabledCSS,
|
329
|
+
attrs: true
|
330
|
+
},
|
331
|
+
readOnly: {
|
332
|
+
css: readOnlyCSS,
|
333
|
+
attrs: true
|
334
|
+
}
|
335
|
+
},
|
336
|
+
defaults: {
|
337
|
+
size: 'm',
|
338
|
+
view: 'default'
|
339
|
+
}
|
340
|
+
};
|