@semcore/date-picker 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/cjs/components/Calendar.js +16 -16
- package/lib/cjs/components/InputTrigger.js +19 -19
- package/lib/cjs/components/PickerAbstract.js +19 -19
- package/lib/cjs/components/RangePickerAbstract.js +19 -19
- package/lib/cjs/style/calendar.shadow.css +25 -14
- package/lib/es6/components/Calendar.js +16 -16
- package/lib/es6/components/InputTrigger.js +19 -19
- package/lib/es6/components/PickerAbstract.js +19 -19
- package/lib/es6/components/RangePickerAbstract.js +19 -19
- package/lib/es6/style/calendar.shadow.css +25 -14
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [4.1.1] - 2023-08-01
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Different calendar cells color for selected and highlighted states.
|
|
10
|
+
|
|
5
11
|
## [4.1.0] - 2023-07-27
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
@@ -28,22 +28,22 @@ var _includesDate = _interopRequireDefault(require("../utils/includesDate"));
|
|
|
28
28
|
var _formatDate = require("../utils/formatDate");
|
|
29
29
|
var _excluded = ["date"];
|
|
30
30
|
/*__reshadow-styles__:"../style/calendar.shadow.css"*/
|
|
31
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
32
|
-
"__SCalendar": "
|
|
33
|
-
"__SGridDays": "
|
|
34
|
-
"__SGridMonths": "
|
|
35
|
-
"__SWeekDays": "
|
|
36
|
-
"__SWeekDay": "
|
|
37
|
-
"__SCalendarUnit": "
|
|
38
|
-
"_today": "
|
|
39
|
-
"_startSelected": "
|
|
40
|
-
"_endSelected": "
|
|
41
|
-
"_selected": "
|
|
42
|
-
"_highlighted": "
|
|
43
|
-
"_startHighlighted": "
|
|
44
|
-
"_endHighlighted": "
|
|
45
|
-
"_outdated": "
|
|
46
|
-
"_disabled": "
|
|
31
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SCalendar_ojrqh_gg_{display:flex;flex-direction:column}.___SGridDays_ojrqh_gg_{display:grid;grid-template-columns:repeat(7,minmax(32px,auto));grid-template-rows:repeat(auto-fit,minmax(32px,auto))}.___SGridMonths_ojrqh_gg_{display:grid;grid-row-gap:var(--intergalactic-spacing-2x, 8px);grid-template-columns:repeat(3,minmax(60px,auto));grid-template-rows:repeat(4,minmax(32px,auto))}.___SWeekDays_ojrqh_gg_{display:grid;grid-template-columns:repeat(7,minmax(32px,auto))}.___SCalendarUnit_ojrqh_gg_,.___SWeekDay_ojrqh_gg_{align-items:center;display:flex;font-size:var(--intergalactic-fs-200, 14px);justify-content:center;min-height:32px;min-width:32px}.___SWeekDay_ojrqh_gg_{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:var(--intergalactic-regular, 400);overflow:hidden}.___SCalendarUnit_ojrqh_gg_{font-family:inherit;font-weight:400;line-height:normal;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;color:var(--intergalactic-text-primary, #191b23);box-shadow:none;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:var(--intergalactic-date-picker-cell, #ffffff);border-radius:var(--intergalactic-control-rounded, 6px);box-sizing:border-box;cursor:pointer;position:relative;transition:color .15s,background .15s,border-radius .15s .15s;outline:0;margin:0}@media (hover:hover){.___SCalendarUnit_ojrqh_gg_:hover{color:var(--intergalactic-text-primary, #191b23);background:var(--intergalactic-date-picker-cell-hover, #e0e1e9)}}.___SCalendarUnit_ojrqh_gg_.focus-visible{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SCalendarUnit_ojrqh_gg_:focus-visible{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SCalendarUnit_ojrqh_gg_.__today_ojrqh_gg_:before{content:\"\";position:absolute;display:block;top:1px;left:1px;border-radius:var(--intergalactic-control-rounded, 6px);width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:border-box;border:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SCalendarUnit_ojrqh_gg_.__today_ojrqh_gg_.___SCalendarUnit_ojrqh_gg_.__endSelected_ojrqh_gg_:before,.___SCalendarUnit_ojrqh_gg_.__today_ojrqh_gg_.___SCalendarUnit_ojrqh_gg_.__startSelected_ojrqh_gg_:before{border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SCalendarUnit_ojrqh_gg_.__highlighted_ojrqh_gg_,.___SCalendarUnit_ojrqh_gg_.__selected_ojrqh_gg_{border-radius:0;transition:color .15s,background .15s,border-radius 0s 0s;color:var(--intergalactic-text-primary, #191b23)}.___SCalendarUnit_ojrqh_gg_.__selected_ojrqh_gg_{background:var(--intergalactic-date-picker-cell-range, #c4e5fe)}@media (hover:hover){.___SCalendarUnit_ojrqh_gg_.__selected_ojrqh_gg_:hover{background:var(--intergalactic-date-picker-cell-active-hover, #008ff8)}}.___SCalendarUnit_ojrqh_gg_.__highlighted_ojrqh_gg_{background:var(--intergalactic-date-picker-cell-range-hover, #8ecdff)}@media (hover:hover){.___SCalendarUnit_ojrqh_gg_.__highlighted_ojrqh_gg_:hover{background:var(--intergalactic-date-picker-cell-range-hover, #8ecdff)}}.___SCalendarUnit_ojrqh_gg_.__startSelected_ojrqh_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SCalendarUnit_ojrqh_gg_.__startSelected_ojrqh_gg_:not(.__highlighted_ojrqh_gg_){border-bottom-left-radius:var(--intergalactic-control-rounded, 6px);border-bottom-right-radius:0;border-top-left-radius:var(--intergalactic-control-rounded, 6px);border-top-right-radius:0}@media (hover:hover){.___SCalendarUnit_ojrqh_gg_.__startSelected_ojrqh_gg_:hover{color:var(--intergalactic-text-primary-invert, #ffffff);background:var(--intergalactic-date-picker-cell-active-hover, #008ff8)}}.___SCalendarUnit_ojrqh_gg_.__endSelected_ojrqh_gg_{background:var(--intergalactic-date-picker-cell-active, #2bb3ff);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SCalendarUnit_ojrqh_gg_.__endSelected_ojrqh_gg_:not(.__highlighted_ojrqh_gg_){border-bottom-left-radius:0;border-bottom-right-radius:var(--intergalactic-control-rounded, 6px);border-top-left-radius:0;border-top-right-radius:var(--intergalactic-control-rounded, 6px)}@media (hover:hover){.___SCalendarUnit_ojrqh_gg_.__endSelected_ojrqh_gg_:hover{color:var(--intergalactic-text-primary-invert, #ffffff);background:var(--intergalactic-date-picker-cell-active-hover, #008ff8)}}.___SCalendarUnit_ojrqh_gg_.__startHighlighted_ojrqh_gg_:not(.__selected_ojrqh_gg_){border-bottom-left-radius:var(--intergalactic-control-rounded, 6px);border-bottom-right-radius:0;border-top-left-radius:var(--intergalactic-control-rounded, 6px);border-top-right-radius:0}.___SCalendarUnit_ojrqh_gg_.__endHighlighted_ojrqh_gg_:not(.__selected_ojrqh_gg_){border-bottom-left-radius:0;border-bottom-right-radius:var(--intergalactic-control-rounded, 6px);border-top-left-radius:0;border-top-right-radius:var(--intergalactic-control-rounded, 6px)}.___SCalendarUnit_ojrqh_gg_.__startHighlighted_ojrqh_gg_.___SCalendarUnit_ojrqh_gg_.__endHighlighted_ojrqh_gg_,.___SCalendarUnit_ojrqh_gg_.__startSelected_ojrqh_gg_.___SCalendarUnit_ojrqh_gg_.__endSelected_ojrqh_gg_{border-bottom-left-radius:var(--intergalactic-control-rounded, 6px);border-bottom-right-radius:var(--intergalactic-control-rounded, 6px);border-top-left-radius:var(--intergalactic-control-rounded, 6px);border-top-right-radius:var(--intergalactic-control-rounded, 6px)}.___SCalendarUnit_ojrqh_gg_.__outdated_ojrqh_gg_{opacity:.2}.___SCalendarUnit_ojrqh_gg_.__disabled_ojrqh_gg_{opacity:.4;cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SCalendarUnit_ojrqh_gg_,.___SCalendarUnit_ojrqh_gg_.__highlighted_ojrqh_gg_,.___SCalendarUnit_ojrqh_gg_.__selected_ojrqh_gg_{transition:none}}" /*__inner_css_end__*/, "ojrqh_gg_") /*__reshadow_css_end__*/, {
|
|
32
|
+
"__SCalendar": "___SCalendar_ojrqh_gg_",
|
|
33
|
+
"__SGridDays": "___SGridDays_ojrqh_gg_",
|
|
34
|
+
"__SGridMonths": "___SGridMonths_ojrqh_gg_",
|
|
35
|
+
"__SWeekDays": "___SWeekDays_ojrqh_gg_",
|
|
36
|
+
"__SWeekDay": "___SWeekDay_ojrqh_gg_",
|
|
37
|
+
"__SCalendarUnit": "___SCalendarUnit_ojrqh_gg_",
|
|
38
|
+
"_today": "__today_ojrqh_gg_",
|
|
39
|
+
"_startSelected": "__startSelected_ojrqh_gg_",
|
|
40
|
+
"_endSelected": "__endSelected_ojrqh_gg_",
|
|
41
|
+
"_selected": "__selected_ojrqh_gg_",
|
|
42
|
+
"_highlighted": "__highlighted_ojrqh_gg_",
|
|
43
|
+
"_startHighlighted": "__startHighlighted_ojrqh_gg_",
|
|
44
|
+
"_endHighlighted": "__endHighlighted_ojrqh_gg_",
|
|
45
|
+
"_outdated": "__outdated_ojrqh_gg_",
|
|
46
|
+
"_disabled": "__disabled_ojrqh_gg_"
|
|
47
47
|
});
|
|
48
48
|
_dayjs["default"].extend(_isBetween["default"]);
|
|
49
49
|
var range = function range(N, cb) {
|
|
@@ -34,25 +34,25 @@ var _excluded = ["children", "id", "role", "aria-haspopup", "aria-label", "style
|
|
|
34
34
|
_excluded5 = ["value", "locale", "onDisplayedPeriodChange"],
|
|
35
35
|
_excluded6 = ["date", "onDateChange", "onDisplayedPeriodChange", "locale", "styles", "parts", "disabledDates", "forwardRef", "placeholders", "labelPrefix", "__excludeProps", "Root"];
|
|
36
36
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
|
37
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
38
|
-
"__SPopper": "
|
|
39
|
-
"__SHeader": "
|
|
40
|
-
"__STitle": "
|
|
41
|
-
"__SToday": "
|
|
42
|
-
"__SPeriod": "
|
|
43
|
-
"__SButton": "
|
|
44
|
-
"__SInner": "
|
|
45
|
-
"__SInputMask": "
|
|
46
|
-
"__SIndicator": "
|
|
47
|
-
"__SHumanizedDate": "
|
|
48
|
-
"__SSingleDateInput": "
|
|
49
|
-
"__SValue": "
|
|
50
|
-
"__SDateRange": "
|
|
51
|
-
"__SMask": "
|
|
52
|
-
"_focus-within": "__focus-
|
|
53
|
-
"_noHumanizedDate": "
|
|
54
|
-
"__SRangeSep": "
|
|
55
|
-
"_fulfilled": "
|
|
37
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPopper_hdghq_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_hdghq_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_hdghq_gg_:active,.___SPopper_hdghq_gg_:focus{outline:0;text-decoration:none}@media (hover:hover){.___SPopper_hdghq_gg_:hover{outline:0;text-decoration:none}}.___SPopper_hdghq_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_hdghq_gg_,.___STitle_hdghq_gg_{display:flex;align-items:center}.___STitle_hdghq_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_hdghq_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_hdghq_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_hdghq_gg_ .___SInner_hdghq_gg_{justify-content:flex-start}.___SInputMask_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SIndicator_hdghq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SHumanizedDate_hdghq_gg_{position:absolute;pointer-events:none}.___SDateRange_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_ .___SValue_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SValue_hdghq_gg_{opacity:0}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SSingleDateInput_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SMask_hdghq_gg_,.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_:focus-within .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SDateRange_hdghq_gg_:focus-within .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}" /*__inner_css_end__*/, "hdghq_gg_") /*__reshadow_css_end__*/, {
|
|
38
|
+
"__SPopper": "___SPopper_hdghq_gg_",
|
|
39
|
+
"__SHeader": "___SHeader_hdghq_gg_",
|
|
40
|
+
"__STitle": "___STitle_hdghq_gg_",
|
|
41
|
+
"__SToday": "___SToday_hdghq_gg_",
|
|
42
|
+
"__SPeriod": "___SPeriod_hdghq_gg_",
|
|
43
|
+
"__SButton": "___SButton_hdghq_gg_",
|
|
44
|
+
"__SInner": "___SInner_hdghq_gg_",
|
|
45
|
+
"__SInputMask": "___SInputMask_hdghq_gg_",
|
|
46
|
+
"__SIndicator": "___SIndicator_hdghq_gg_",
|
|
47
|
+
"__SHumanizedDate": "___SHumanizedDate_hdghq_gg_",
|
|
48
|
+
"__SSingleDateInput": "___SSingleDateInput_hdghq_gg_",
|
|
49
|
+
"__SValue": "___SValue_hdghq_gg_",
|
|
50
|
+
"__SDateRange": "___SDateRange_hdghq_gg_",
|
|
51
|
+
"__SMask": "___SMask_hdghq_gg_",
|
|
52
|
+
"_focus-within": "__focus-within_hdghq_gg_",
|
|
53
|
+
"_noHumanizedDate": "__noHumanizedDate_hdghq_gg_",
|
|
54
|
+
"__SRangeSep": "___SRangeSep_hdghq_gg_",
|
|
55
|
+
"_fulfilled": "__fulfilled_hdghq_gg_"
|
|
56
56
|
});
|
|
57
57
|
var defaultAllowedParts = {
|
|
58
58
|
year: true,
|
|
@@ -19,25 +19,25 @@ var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i
|
|
|
19
19
|
var _intergalacticDynamicLocales = require("../translations/__intergalactic-dynamic-locales");
|
|
20
20
|
var _includesDate = _interopRequireDefault(require("../utils/includesDate"));
|
|
21
21
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
|
22
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
23
|
-
"__SPopper": "
|
|
24
|
-
"__SHeader": "
|
|
25
|
-
"__STitle": "
|
|
26
|
-
"__SToday": "
|
|
27
|
-
"__SPeriod": "
|
|
28
|
-
"__SButton": "
|
|
29
|
-
"__SInner": "
|
|
30
|
-
"__SInputMask": "
|
|
31
|
-
"__SIndicator": "
|
|
32
|
-
"__SHumanizedDate": "
|
|
33
|
-
"__SSingleDateInput": "
|
|
34
|
-
"__SValue": "
|
|
35
|
-
"__SDateRange": "
|
|
36
|
-
"__SMask": "
|
|
37
|
-
"_focus-within": "__focus-
|
|
38
|
-
"_noHumanizedDate": "
|
|
39
|
-
"__SRangeSep": "
|
|
40
|
-
"_fulfilled": "
|
|
22
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPopper_hdghq_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_hdghq_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_hdghq_gg_:active,.___SPopper_hdghq_gg_:focus{outline:0;text-decoration:none}@media (hover:hover){.___SPopper_hdghq_gg_:hover{outline:0;text-decoration:none}}.___SPopper_hdghq_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_hdghq_gg_,.___STitle_hdghq_gg_{display:flex;align-items:center}.___STitle_hdghq_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_hdghq_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_hdghq_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_hdghq_gg_ .___SInner_hdghq_gg_{justify-content:flex-start}.___SInputMask_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SIndicator_hdghq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SHumanizedDate_hdghq_gg_{position:absolute;pointer-events:none}.___SDateRange_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_ .___SValue_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SValue_hdghq_gg_{opacity:0}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SSingleDateInput_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SMask_hdghq_gg_,.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_:focus-within .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SDateRange_hdghq_gg_:focus-within .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}" /*__inner_css_end__*/, "hdghq_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
+
"__SPopper": "___SPopper_hdghq_gg_",
|
|
24
|
+
"__SHeader": "___SHeader_hdghq_gg_",
|
|
25
|
+
"__STitle": "___STitle_hdghq_gg_",
|
|
26
|
+
"__SToday": "___SToday_hdghq_gg_",
|
|
27
|
+
"__SPeriod": "___SPeriod_hdghq_gg_",
|
|
28
|
+
"__SButton": "___SButton_hdghq_gg_",
|
|
29
|
+
"__SInner": "___SInner_hdghq_gg_",
|
|
30
|
+
"__SInputMask": "___SInputMask_hdghq_gg_",
|
|
31
|
+
"__SIndicator": "___SIndicator_hdghq_gg_",
|
|
32
|
+
"__SHumanizedDate": "___SHumanizedDate_hdghq_gg_",
|
|
33
|
+
"__SSingleDateInput": "___SSingleDateInput_hdghq_gg_",
|
|
34
|
+
"__SValue": "___SValue_hdghq_gg_",
|
|
35
|
+
"__SDateRange": "___SDateRange_hdghq_gg_",
|
|
36
|
+
"__SMask": "___SMask_hdghq_gg_",
|
|
37
|
+
"_focus-within": "__focus-within_hdghq_gg_",
|
|
38
|
+
"_noHumanizedDate": "__noHumanizedDate_hdghq_gg_",
|
|
39
|
+
"__SRangeSep": "___SRangeSep_hdghq_gg_",
|
|
40
|
+
"_fulfilled": "__fulfilled_hdghq_gg_"
|
|
41
41
|
});
|
|
42
42
|
var INTERACTION_TAGS = ['INPUT'];
|
|
43
43
|
var defaultDisplayedPeriod = new Date(new Date().setHours(0, 0, 0, 0));
|
|
@@ -24,25 +24,25 @@ var _dropdown = _interopRequireDefault(require("@semcore/dropdown"));
|
|
|
24
24
|
var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
|
|
25
25
|
var _intergalacticDynamicLocales = require("../translations/__intergalactic-dynamic-locales");
|
|
26
26
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
|
27
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
28
|
-
"__SPopper": "
|
|
29
|
-
"__SHeader": "
|
|
30
|
-
"__STitle": "
|
|
31
|
-
"__SToday": "
|
|
32
|
-
"__SPeriod": "
|
|
33
|
-
"__SButton": "
|
|
34
|
-
"__SInner": "
|
|
35
|
-
"__SInputMask": "
|
|
36
|
-
"__SIndicator": "
|
|
37
|
-
"__SHumanizedDate": "
|
|
38
|
-
"__SSingleDateInput": "
|
|
39
|
-
"__SValue": "
|
|
40
|
-
"__SDateRange": "
|
|
41
|
-
"__SMask": "
|
|
42
|
-
"_focus-within": "__focus-
|
|
43
|
-
"_noHumanizedDate": "
|
|
44
|
-
"__SRangeSep": "
|
|
45
|
-
"_fulfilled": "
|
|
27
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPopper_hdghq_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_hdghq_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_hdghq_gg_:active,.___SPopper_hdghq_gg_:focus{outline:0;text-decoration:none}@media (hover:hover){.___SPopper_hdghq_gg_:hover{outline:0;text-decoration:none}}.___SPopper_hdghq_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_hdghq_gg_,.___STitle_hdghq_gg_{display:flex;align-items:center}.___STitle_hdghq_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_hdghq_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_hdghq_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_hdghq_gg_ .___SInner_hdghq_gg_{justify-content:flex-start}.___SInputMask_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SIndicator_hdghq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SHumanizedDate_hdghq_gg_{position:absolute;pointer-events:none}.___SDateRange_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_ .___SValue_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SValue_hdghq_gg_{opacity:0}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SSingleDateInput_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SMask_hdghq_gg_,.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_:focus-within .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SDateRange_hdghq_gg_:focus-within .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}" /*__inner_css_end__*/, "hdghq_gg_") /*__reshadow_css_end__*/, {
|
|
28
|
+
"__SPopper": "___SPopper_hdghq_gg_",
|
|
29
|
+
"__SHeader": "___SHeader_hdghq_gg_",
|
|
30
|
+
"__STitle": "___STitle_hdghq_gg_",
|
|
31
|
+
"__SToday": "___SToday_hdghq_gg_",
|
|
32
|
+
"__SPeriod": "___SPeriod_hdghq_gg_",
|
|
33
|
+
"__SButton": "___SButton_hdghq_gg_",
|
|
34
|
+
"__SInner": "___SInner_hdghq_gg_",
|
|
35
|
+
"__SInputMask": "___SInputMask_hdghq_gg_",
|
|
36
|
+
"__SIndicator": "___SIndicator_hdghq_gg_",
|
|
37
|
+
"__SHumanizedDate": "___SHumanizedDate_hdghq_gg_",
|
|
38
|
+
"__SSingleDateInput": "___SSingleDateInput_hdghq_gg_",
|
|
39
|
+
"__SValue": "___SValue_hdghq_gg_",
|
|
40
|
+
"__SDateRange": "___SDateRange_hdghq_gg_",
|
|
41
|
+
"__SMask": "___SMask_hdghq_gg_",
|
|
42
|
+
"_focus-within": "__focus-within_hdghq_gg_",
|
|
43
|
+
"_noHumanizedDate": "__noHumanizedDate_hdghq_gg_",
|
|
44
|
+
"__SRangeSep": "___SRangeSep_hdghq_gg_",
|
|
45
|
+
"_fulfilled": "__fulfilled_hdghq_gg_"
|
|
46
46
|
});
|
|
47
47
|
var INTERACTION_TAGS = ['INPUT'];
|
|
48
48
|
var defaultDisplayedPeriod = new Date(new Date().setHours(0, 0, 0, 0));
|
|
@@ -59,7 +59,7 @@ SCalendarUnit {
|
|
|
59
59
|
min-height: 32px;
|
|
60
60
|
min-width: 32px;
|
|
61
61
|
position: relative;
|
|
62
|
-
transition: color 0.15s, background 0.15s;
|
|
62
|
+
transition: color 0.15s, background 0.15s, border-radius 0.15s 0.15s;
|
|
63
63
|
outline: none;
|
|
64
64
|
margin: 0;
|
|
65
65
|
|
|
@@ -98,6 +98,7 @@ SCalendarUnit[today]SCalendarUnit[endSelected] {
|
|
|
98
98
|
SCalendarUnit[selected] {
|
|
99
99
|
background: var(--intergalactic-date-picker-cell-range, #c4e5fe);
|
|
100
100
|
border-radius: 0;
|
|
101
|
+
transition: color 0.15s, background 0.15s, border-radius 0s 0s;
|
|
101
102
|
color: var(--intergalactic-text-primary, #191b23);
|
|
102
103
|
|
|
103
104
|
&:hover {
|
|
@@ -106,8 +107,9 @@ SCalendarUnit[selected] {
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
SCalendarUnit[highlighted] {
|
|
109
|
-
background: var(--intergalactic-date-picker-cell-range, #
|
|
110
|
+
background: var(--intergalactic-date-picker-cell-range-hover, #8ecdff);
|
|
110
111
|
border-radius: 0;
|
|
112
|
+
transition: color 0.15s, background 0.15s, border-radius 0s 0s;
|
|
111
113
|
color: var(--intergalactic-text-primary, #191b23);
|
|
112
114
|
|
|
113
115
|
&:hover {
|
|
@@ -116,13 +118,16 @@ SCalendarUnit[highlighted] {
|
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
SCalendarUnit[startSelected] {
|
|
119
|
-
border-bottom-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
120
|
-
border-bottom-right-radius: 0;
|
|
121
|
-
border-top-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
122
|
-
border-top-right-radius: 0;
|
|
123
121
|
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
124
122
|
background: var(--intergalactic-date-picker-cell-active, #2bb3ff);
|
|
125
123
|
|
|
124
|
+
&:not([highlighted]) {
|
|
125
|
+
border-bottom-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
126
|
+
border-bottom-right-radius: 0;
|
|
127
|
+
border-top-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
128
|
+
border-top-right-radius: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
126
131
|
&:hover {
|
|
127
132
|
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
128
133
|
background: var(--intergalactic-date-picker-cell-active-hover, #008ff8);
|
|
@@ -131,26 +136,29 @@ SCalendarUnit[startSelected] {
|
|
|
131
136
|
|
|
132
137
|
SCalendarUnit[endSelected] {
|
|
133
138
|
background: var(--intergalactic-date-picker-cell-active, #2bb3ff);
|
|
134
|
-
border-bottom-left-radius: 0;
|
|
135
|
-
border-bottom-right-radius: var(--intergalactic-control-rounded, 6px);
|
|
136
|
-
border-top-left-radius: 0;
|
|
137
|
-
border-top-right-radius: var(--intergalactic-control-rounded, 6px);
|
|
138
139
|
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
139
140
|
|
|
141
|
+
&:not([highlighted]) {
|
|
142
|
+
border-bottom-left-radius: 0;
|
|
143
|
+
border-bottom-right-radius: var(--intergalactic-control-rounded, 6px);
|
|
144
|
+
border-top-left-radius: 0;
|
|
145
|
+
border-top-right-radius: var(--intergalactic-control-rounded, 6px);
|
|
146
|
+
}
|
|
147
|
+
|
|
140
148
|
&:hover {
|
|
141
149
|
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
142
150
|
background: var(--intergalactic-date-picker-cell-active-hover, #008ff8);
|
|
143
151
|
}
|
|
144
152
|
}
|
|
145
153
|
|
|
146
|
-
SCalendarUnit[startHighlighted] {
|
|
154
|
+
SCalendarUnit[startHighlighted]:not([selected]) {
|
|
147
155
|
border-bottom-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
148
156
|
border-bottom-right-radius: 0;
|
|
149
157
|
border-top-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
150
158
|
border-top-right-radius: 0;
|
|
151
159
|
}
|
|
152
160
|
|
|
153
|
-
SCalendarUnit[endHighlighted] {
|
|
161
|
+
SCalendarUnit[endHighlighted]:not([selected]) {
|
|
154
162
|
border-bottom-left-radius: 0;
|
|
155
163
|
border-bottom-right-radius: var(--intergalactic-control-rounded, 6px);
|
|
156
164
|
border-top-left-radius: 0;
|
|
@@ -182,7 +190,10 @@ SCalendarUnit[disabled] {
|
|
|
182
190
|
}
|
|
183
191
|
|
|
184
192
|
@media (prefers-reduced-motion) {
|
|
185
|
-
|
|
193
|
+
|
|
194
|
+
SCalendarUnit,
|
|
195
|
+
SCalendarUnit[selected],
|
|
196
|
+
SCalendarUnit[highlighted] {
|
|
186
197
|
transition: none;
|
|
187
198
|
}
|
|
188
|
-
}
|
|
199
|
+
}
|
|
@@ -24,22 +24,22 @@ import fire from '@semcore/utils/lib/fire';
|
|
|
24
24
|
import includesDate from '../utils/includesDate';
|
|
25
25
|
import { getLocaleDate } from '../utils/formatDate';
|
|
26
26
|
/*__reshadow-styles__:"../style/calendar.shadow.css"*/
|
|
27
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
28
|
-
"__SCalendar": "
|
|
29
|
-
"__SGridDays": "
|
|
30
|
-
"__SGridMonths": "
|
|
31
|
-
"__SWeekDays": "
|
|
32
|
-
"__SWeekDay": "
|
|
33
|
-
"__SCalendarUnit": "
|
|
34
|
-
"_today": "
|
|
35
|
-
"_startSelected": "
|
|
36
|
-
"_endSelected": "
|
|
37
|
-
"_selected": "
|
|
38
|
-
"_highlighted": "
|
|
39
|
-
"_startHighlighted": "
|
|
40
|
-
"_endHighlighted": "
|
|
41
|
-
"_outdated": "
|
|
42
|
-
"_disabled": "
|
|
27
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCalendar_ojrqh_gg_{display:flex;flex-direction:column}.___SGridDays_ojrqh_gg_{display:grid;grid-template-columns:repeat(7,minmax(32px,auto));grid-template-rows:repeat(auto-fit,minmax(32px,auto))}.___SGridMonths_ojrqh_gg_{display:grid;grid-row-gap:var(--intergalactic-spacing-2x, 8px);grid-template-columns:repeat(3,minmax(60px,auto));grid-template-rows:repeat(4,minmax(32px,auto))}.___SWeekDays_ojrqh_gg_{display:grid;grid-template-columns:repeat(7,minmax(32px,auto))}.___SCalendarUnit_ojrqh_gg_,.___SWeekDay_ojrqh_gg_{align-items:center;display:flex;font-size:var(--intergalactic-fs-200, 14px);justify-content:center;min-height:32px;min-width:32px}.___SWeekDay_ojrqh_gg_{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:var(--intergalactic-regular, 400);overflow:hidden}.___SCalendarUnit_ojrqh_gg_{font-family:inherit;font-weight:400;line-height:normal;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;color:var(--intergalactic-text-primary, #191b23);box-shadow:none;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:var(--intergalactic-date-picker-cell, #ffffff);border-radius:var(--intergalactic-control-rounded, 6px);box-sizing:border-box;cursor:pointer;position:relative;transition:color .15s,background .15s,border-radius .15s .15s;outline:0;margin:0}@media (hover:hover){.___SCalendarUnit_ojrqh_gg_:hover{color:var(--intergalactic-text-primary, #191b23);background:var(--intergalactic-date-picker-cell-hover, #e0e1e9)}}.___SCalendarUnit_ojrqh_gg_.focus-visible{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SCalendarUnit_ojrqh_gg_:focus-visible{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SCalendarUnit_ojrqh_gg_.__today_ojrqh_gg_:before{content:\"\";position:absolute;display:block;top:1px;left:1px;border-radius:var(--intergalactic-control-rounded, 6px);width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:border-box;border:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SCalendarUnit_ojrqh_gg_.__today_ojrqh_gg_.___SCalendarUnit_ojrqh_gg_.__endSelected_ojrqh_gg_:before,.___SCalendarUnit_ojrqh_gg_.__today_ojrqh_gg_.___SCalendarUnit_ojrqh_gg_.__startSelected_ojrqh_gg_:before{border-color:var(--intergalactic-border-secondary, #e0e1e9)}.___SCalendarUnit_ojrqh_gg_.__highlighted_ojrqh_gg_,.___SCalendarUnit_ojrqh_gg_.__selected_ojrqh_gg_{border-radius:0;transition:color .15s,background .15s,border-radius 0s 0s;color:var(--intergalactic-text-primary, #191b23)}.___SCalendarUnit_ojrqh_gg_.__selected_ojrqh_gg_{background:var(--intergalactic-date-picker-cell-range, #c4e5fe)}@media (hover:hover){.___SCalendarUnit_ojrqh_gg_.__selected_ojrqh_gg_:hover{background:var(--intergalactic-date-picker-cell-active-hover, #008ff8)}}.___SCalendarUnit_ojrqh_gg_.__highlighted_ojrqh_gg_{background:var(--intergalactic-date-picker-cell-range-hover, #8ecdff)}@media (hover:hover){.___SCalendarUnit_ojrqh_gg_.__highlighted_ojrqh_gg_:hover{background:var(--intergalactic-date-picker-cell-range-hover, #8ecdff)}}.___SCalendarUnit_ojrqh_gg_.__startSelected_ojrqh_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SCalendarUnit_ojrqh_gg_.__startSelected_ojrqh_gg_:not(.__highlighted_ojrqh_gg_){border-bottom-left-radius:var(--intergalactic-control-rounded, 6px);border-bottom-right-radius:0;border-top-left-radius:var(--intergalactic-control-rounded, 6px);border-top-right-radius:0}@media (hover:hover){.___SCalendarUnit_ojrqh_gg_.__startSelected_ojrqh_gg_:hover{color:var(--intergalactic-text-primary-invert, #ffffff);background:var(--intergalactic-date-picker-cell-active-hover, #008ff8)}}.___SCalendarUnit_ojrqh_gg_.__endSelected_ojrqh_gg_{background:var(--intergalactic-date-picker-cell-active, #2bb3ff);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SCalendarUnit_ojrqh_gg_.__endSelected_ojrqh_gg_:not(.__highlighted_ojrqh_gg_){border-bottom-left-radius:0;border-bottom-right-radius:var(--intergalactic-control-rounded, 6px);border-top-left-radius:0;border-top-right-radius:var(--intergalactic-control-rounded, 6px)}@media (hover:hover){.___SCalendarUnit_ojrqh_gg_.__endSelected_ojrqh_gg_:hover{color:var(--intergalactic-text-primary-invert, #ffffff);background:var(--intergalactic-date-picker-cell-active-hover, #008ff8)}}.___SCalendarUnit_ojrqh_gg_.__startHighlighted_ojrqh_gg_:not(.__selected_ojrqh_gg_){border-bottom-left-radius:var(--intergalactic-control-rounded, 6px);border-bottom-right-radius:0;border-top-left-radius:var(--intergalactic-control-rounded, 6px);border-top-right-radius:0}.___SCalendarUnit_ojrqh_gg_.__endHighlighted_ojrqh_gg_:not(.__selected_ojrqh_gg_){border-bottom-left-radius:0;border-bottom-right-radius:var(--intergalactic-control-rounded, 6px);border-top-left-radius:0;border-top-right-radius:var(--intergalactic-control-rounded, 6px)}.___SCalendarUnit_ojrqh_gg_.__startHighlighted_ojrqh_gg_.___SCalendarUnit_ojrqh_gg_.__endHighlighted_ojrqh_gg_,.___SCalendarUnit_ojrqh_gg_.__startSelected_ojrqh_gg_.___SCalendarUnit_ojrqh_gg_.__endSelected_ojrqh_gg_{border-bottom-left-radius:var(--intergalactic-control-rounded, 6px);border-bottom-right-radius:var(--intergalactic-control-rounded, 6px);border-top-left-radius:var(--intergalactic-control-rounded, 6px);border-top-right-radius:var(--intergalactic-control-rounded, 6px)}.___SCalendarUnit_ojrqh_gg_.__outdated_ojrqh_gg_{opacity:.2}.___SCalendarUnit_ojrqh_gg_.__disabled_ojrqh_gg_{opacity:.4;cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SCalendarUnit_ojrqh_gg_,.___SCalendarUnit_ojrqh_gg_.__highlighted_ojrqh_gg_,.___SCalendarUnit_ojrqh_gg_.__selected_ojrqh_gg_{transition:none}}" /*__inner_css_end__*/, "ojrqh_gg_") /*__reshadow_css_end__*/, {
|
|
28
|
+
"__SCalendar": "___SCalendar_ojrqh_gg_",
|
|
29
|
+
"__SGridDays": "___SGridDays_ojrqh_gg_",
|
|
30
|
+
"__SGridMonths": "___SGridMonths_ojrqh_gg_",
|
|
31
|
+
"__SWeekDays": "___SWeekDays_ojrqh_gg_",
|
|
32
|
+
"__SWeekDay": "___SWeekDay_ojrqh_gg_",
|
|
33
|
+
"__SCalendarUnit": "___SCalendarUnit_ojrqh_gg_",
|
|
34
|
+
"_today": "__today_ojrqh_gg_",
|
|
35
|
+
"_startSelected": "__startSelected_ojrqh_gg_",
|
|
36
|
+
"_endSelected": "__endSelected_ojrqh_gg_",
|
|
37
|
+
"_selected": "__selected_ojrqh_gg_",
|
|
38
|
+
"_highlighted": "__highlighted_ojrqh_gg_",
|
|
39
|
+
"_startHighlighted": "__startHighlighted_ojrqh_gg_",
|
|
40
|
+
"_endHighlighted": "__endHighlighted_ojrqh_gg_",
|
|
41
|
+
"_outdated": "__outdated_ojrqh_gg_",
|
|
42
|
+
"_disabled": "__disabled_ojrqh_gg_"
|
|
43
43
|
});
|
|
44
44
|
dayjs.extend(isBetween);
|
|
45
45
|
var range = function range(N, cb) {
|
|
@@ -33,25 +33,25 @@ import NeighborLocation from '@semcore/neighbor-location';
|
|
|
33
33
|
import includesDate from '../utils/includesDate';
|
|
34
34
|
import dayjs from 'dayjs';
|
|
35
35
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
|
36
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
37
|
-
"__SPopper": "
|
|
38
|
-
"__SHeader": "
|
|
39
|
-
"__STitle": "
|
|
40
|
-
"__SToday": "
|
|
41
|
-
"__SPeriod": "
|
|
42
|
-
"__SButton": "
|
|
43
|
-
"__SInner": "
|
|
44
|
-
"__SInputMask": "
|
|
45
|
-
"__SIndicator": "
|
|
46
|
-
"__SHumanizedDate": "
|
|
47
|
-
"__SSingleDateInput": "
|
|
48
|
-
"__SValue": "
|
|
49
|
-
"__SDateRange": "
|
|
50
|
-
"__SMask": "
|
|
51
|
-
"_focus-within": "__focus-
|
|
52
|
-
"_noHumanizedDate": "
|
|
53
|
-
"__SRangeSep": "
|
|
54
|
-
"_fulfilled": "
|
|
36
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_hdghq_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_hdghq_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_hdghq_gg_:active,.___SPopper_hdghq_gg_:focus{outline:0;text-decoration:none}@media (hover:hover){.___SPopper_hdghq_gg_:hover{outline:0;text-decoration:none}}.___SPopper_hdghq_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_hdghq_gg_,.___STitle_hdghq_gg_{display:flex;align-items:center}.___STitle_hdghq_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_hdghq_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_hdghq_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_hdghq_gg_ .___SInner_hdghq_gg_{justify-content:flex-start}.___SInputMask_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SIndicator_hdghq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SHumanizedDate_hdghq_gg_{position:absolute;pointer-events:none}.___SDateRange_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_ .___SValue_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SValue_hdghq_gg_{opacity:0}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SSingleDateInput_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SMask_hdghq_gg_,.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_:focus-within .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SDateRange_hdghq_gg_:focus-within .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}" /*__inner_css_end__*/, "hdghq_gg_") /*__reshadow_css_end__*/, {
|
|
37
|
+
"__SPopper": "___SPopper_hdghq_gg_",
|
|
38
|
+
"__SHeader": "___SHeader_hdghq_gg_",
|
|
39
|
+
"__STitle": "___STitle_hdghq_gg_",
|
|
40
|
+
"__SToday": "___SToday_hdghq_gg_",
|
|
41
|
+
"__SPeriod": "___SPeriod_hdghq_gg_",
|
|
42
|
+
"__SButton": "___SButton_hdghq_gg_",
|
|
43
|
+
"__SInner": "___SInner_hdghq_gg_",
|
|
44
|
+
"__SInputMask": "___SInputMask_hdghq_gg_",
|
|
45
|
+
"__SIndicator": "___SIndicator_hdghq_gg_",
|
|
46
|
+
"__SHumanizedDate": "___SHumanizedDate_hdghq_gg_",
|
|
47
|
+
"__SSingleDateInput": "___SSingleDateInput_hdghq_gg_",
|
|
48
|
+
"__SValue": "___SValue_hdghq_gg_",
|
|
49
|
+
"__SDateRange": "___SDateRange_hdghq_gg_",
|
|
50
|
+
"__SMask": "___SMask_hdghq_gg_",
|
|
51
|
+
"_focus-within": "__focus-within_hdghq_gg_",
|
|
52
|
+
"_noHumanizedDate": "__noHumanizedDate_hdghq_gg_",
|
|
53
|
+
"__SRangeSep": "___SRangeSep_hdghq_gg_",
|
|
54
|
+
"_fulfilled": "__fulfilled_hdghq_gg_"
|
|
55
55
|
});
|
|
56
56
|
import assignProps from '@semcore/utils/lib/assignProps';
|
|
57
57
|
var defaultAllowedParts = {
|
|
@@ -13,25 +13,25 @@ import Dropdown from '@semcore/dropdown';
|
|
|
13
13
|
import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
14
14
|
import { localizedMessages } from '../translations/__intergalactic-dynamic-locales';
|
|
15
15
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
|
16
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
17
|
-
"__SPopper": "
|
|
18
|
-
"__SHeader": "
|
|
19
|
-
"__STitle": "
|
|
20
|
-
"__SToday": "
|
|
21
|
-
"__SPeriod": "
|
|
22
|
-
"__SButton": "
|
|
23
|
-
"__SInner": "
|
|
24
|
-
"__SInputMask": "
|
|
25
|
-
"__SIndicator": "
|
|
26
|
-
"__SHumanizedDate": "
|
|
27
|
-
"__SSingleDateInput": "
|
|
28
|
-
"__SValue": "
|
|
29
|
-
"__SDateRange": "
|
|
30
|
-
"__SMask": "
|
|
31
|
-
"_focus-within": "__focus-
|
|
32
|
-
"_noHumanizedDate": "
|
|
33
|
-
"__SRangeSep": "
|
|
34
|
-
"_fulfilled": "
|
|
16
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_hdghq_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_hdghq_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_hdghq_gg_:active,.___SPopper_hdghq_gg_:focus{outline:0;text-decoration:none}@media (hover:hover){.___SPopper_hdghq_gg_:hover{outline:0;text-decoration:none}}.___SPopper_hdghq_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_hdghq_gg_,.___STitle_hdghq_gg_{display:flex;align-items:center}.___STitle_hdghq_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_hdghq_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_hdghq_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_hdghq_gg_ .___SInner_hdghq_gg_{justify-content:flex-start}.___SInputMask_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SIndicator_hdghq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SHumanizedDate_hdghq_gg_{position:absolute;pointer-events:none}.___SDateRange_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_ .___SValue_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SValue_hdghq_gg_{opacity:0}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SSingleDateInput_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SMask_hdghq_gg_,.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_:focus-within .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SDateRange_hdghq_gg_:focus-within .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}" /*__inner_css_end__*/, "hdghq_gg_") /*__reshadow_css_end__*/, {
|
|
17
|
+
"__SPopper": "___SPopper_hdghq_gg_",
|
|
18
|
+
"__SHeader": "___SHeader_hdghq_gg_",
|
|
19
|
+
"__STitle": "___STitle_hdghq_gg_",
|
|
20
|
+
"__SToday": "___SToday_hdghq_gg_",
|
|
21
|
+
"__SPeriod": "___SPeriod_hdghq_gg_",
|
|
22
|
+
"__SButton": "___SButton_hdghq_gg_",
|
|
23
|
+
"__SInner": "___SInner_hdghq_gg_",
|
|
24
|
+
"__SInputMask": "___SInputMask_hdghq_gg_",
|
|
25
|
+
"__SIndicator": "___SIndicator_hdghq_gg_",
|
|
26
|
+
"__SHumanizedDate": "___SHumanizedDate_hdghq_gg_",
|
|
27
|
+
"__SSingleDateInput": "___SSingleDateInput_hdghq_gg_",
|
|
28
|
+
"__SValue": "___SValue_hdghq_gg_",
|
|
29
|
+
"__SDateRange": "___SDateRange_hdghq_gg_",
|
|
30
|
+
"__SMask": "___SMask_hdghq_gg_",
|
|
31
|
+
"_focus-within": "__focus-within_hdghq_gg_",
|
|
32
|
+
"_noHumanizedDate": "__noHumanizedDate_hdghq_gg_",
|
|
33
|
+
"__SRangeSep": "___SRangeSep_hdghq_gg_",
|
|
34
|
+
"_fulfilled": "__fulfilled_hdghq_gg_"
|
|
35
35
|
});
|
|
36
36
|
import includesDate from '../utils/includesDate';
|
|
37
37
|
var INTERACTION_TAGS = ['INPUT'];
|
|
@@ -19,25 +19,25 @@ import Dropdown from '@semcore/dropdown';
|
|
|
19
19
|
import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
20
20
|
import { localizedMessages } from '../translations/__intergalactic-dynamic-locales';
|
|
21
21
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
|
22
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
23
|
-
"__SPopper": "
|
|
24
|
-
"__SHeader": "
|
|
25
|
-
"__STitle": "
|
|
26
|
-
"__SToday": "
|
|
27
|
-
"__SPeriod": "
|
|
28
|
-
"__SButton": "
|
|
29
|
-
"__SInner": "
|
|
30
|
-
"__SInputMask": "
|
|
31
|
-
"__SIndicator": "
|
|
32
|
-
"__SHumanizedDate": "
|
|
33
|
-
"__SSingleDateInput": "
|
|
34
|
-
"__SValue": "
|
|
35
|
-
"__SDateRange": "
|
|
36
|
-
"__SMask": "
|
|
37
|
-
"_focus-within": "__focus-
|
|
38
|
-
"_noHumanizedDate": "
|
|
39
|
-
"__SRangeSep": "
|
|
40
|
-
"_fulfilled": "
|
|
22
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_hdghq_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_hdghq_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_hdghq_gg_:active,.___SPopper_hdghq_gg_:focus{outline:0;text-decoration:none}@media (hover:hover){.___SPopper_hdghq_gg_:hover{outline:0;text-decoration:none}}.___SPopper_hdghq_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_hdghq_gg_,.___STitle_hdghq_gg_{display:flex;align-items:center}.___STitle_hdghq_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_hdghq_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_hdghq_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_hdghq_gg_ .___SInner_hdghq_gg_{justify-content:flex-start}.___SInputMask_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SIndicator_hdghq_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SHumanizedDate_hdghq_gg_{position:absolute;pointer-events:none}.___SDateRange_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_ .___SValue_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_ .___SValue_hdghq_gg_{opacity:0}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SSingleDateInput_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SSingleDateInput_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_:focus-within .___SHumanizedDate_hdghq_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_:focus-within .___SMask_hdghq_gg_,.___SDateRange_hdghq_gg_:focus-within .___SValue_hdghq_gg_{opacity:1}.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SMask_hdghq_gg_,.___SInputMask_hdghq_gg_.__noHumanizedDate_hdghq_gg_ .___SValue_hdghq_gg_{opacity:1}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_.__focus-within_hdghq_gg_ .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_ .___SInputMask_hdghq_gg_:focus-within .___SMask_hdghq_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_hdghq_gg_.__focus-within_hdghq_gg_ .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SDateRange_hdghq_gg_:focus-within .___SRangeSep_hdghq_gg_,.___SRangeSep_hdghq_gg_.__fulfilled_hdghq_gg_{color:var(--intergalactic-text-primary, #191b23)}" /*__inner_css_end__*/, "hdghq_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
+
"__SPopper": "___SPopper_hdghq_gg_",
|
|
24
|
+
"__SHeader": "___SHeader_hdghq_gg_",
|
|
25
|
+
"__STitle": "___STitle_hdghq_gg_",
|
|
26
|
+
"__SToday": "___SToday_hdghq_gg_",
|
|
27
|
+
"__SPeriod": "___SPeriod_hdghq_gg_",
|
|
28
|
+
"__SButton": "___SButton_hdghq_gg_",
|
|
29
|
+
"__SInner": "___SInner_hdghq_gg_",
|
|
30
|
+
"__SInputMask": "___SInputMask_hdghq_gg_",
|
|
31
|
+
"__SIndicator": "___SIndicator_hdghq_gg_",
|
|
32
|
+
"__SHumanizedDate": "___SHumanizedDate_hdghq_gg_",
|
|
33
|
+
"__SSingleDateInput": "___SSingleDateInput_hdghq_gg_",
|
|
34
|
+
"__SValue": "___SValue_hdghq_gg_",
|
|
35
|
+
"__SDateRange": "___SDateRange_hdghq_gg_",
|
|
36
|
+
"__SMask": "___SMask_hdghq_gg_",
|
|
37
|
+
"_focus-within": "__focus-within_hdghq_gg_",
|
|
38
|
+
"_noHumanizedDate": "__noHumanizedDate_hdghq_gg_",
|
|
39
|
+
"__SRangeSep": "___SRangeSep_hdghq_gg_",
|
|
40
|
+
"_fulfilled": "__fulfilled_hdghq_gg_"
|
|
41
41
|
});
|
|
42
42
|
var INTERACTION_TAGS = ['INPUT'];
|
|
43
43
|
var defaultDisplayedPeriod = new Date(new Date().setHours(0, 0, 0, 0));
|
|
@@ -59,7 +59,7 @@ SCalendarUnit {
|
|
|
59
59
|
min-height: 32px;
|
|
60
60
|
min-width: 32px;
|
|
61
61
|
position: relative;
|
|
62
|
-
transition: color 0.15s, background 0.15s;
|
|
62
|
+
transition: color 0.15s, background 0.15s, border-radius 0.15s 0.15s;
|
|
63
63
|
outline: none;
|
|
64
64
|
margin: 0;
|
|
65
65
|
|
|
@@ -98,6 +98,7 @@ SCalendarUnit[today]SCalendarUnit[endSelected] {
|
|
|
98
98
|
SCalendarUnit[selected] {
|
|
99
99
|
background: var(--intergalactic-date-picker-cell-range, #c4e5fe);
|
|
100
100
|
border-radius: 0;
|
|
101
|
+
transition: color 0.15s, background 0.15s, border-radius 0s 0s;
|
|
101
102
|
color: var(--intergalactic-text-primary, #191b23);
|
|
102
103
|
|
|
103
104
|
&:hover {
|
|
@@ -106,8 +107,9 @@ SCalendarUnit[selected] {
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
SCalendarUnit[highlighted] {
|
|
109
|
-
background: var(--intergalactic-date-picker-cell-range, #
|
|
110
|
+
background: var(--intergalactic-date-picker-cell-range-hover, #8ecdff);
|
|
110
111
|
border-radius: 0;
|
|
112
|
+
transition: color 0.15s, background 0.15s, border-radius 0s 0s;
|
|
111
113
|
color: var(--intergalactic-text-primary, #191b23);
|
|
112
114
|
|
|
113
115
|
&:hover {
|
|
@@ -116,13 +118,16 @@ SCalendarUnit[highlighted] {
|
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
SCalendarUnit[startSelected] {
|
|
119
|
-
border-bottom-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
120
|
-
border-bottom-right-radius: 0;
|
|
121
|
-
border-top-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
122
|
-
border-top-right-radius: 0;
|
|
123
121
|
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
124
122
|
background: var(--intergalactic-date-picker-cell-active, #2bb3ff);
|
|
125
123
|
|
|
124
|
+
&:not([highlighted]) {
|
|
125
|
+
border-bottom-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
126
|
+
border-bottom-right-radius: 0;
|
|
127
|
+
border-top-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
128
|
+
border-top-right-radius: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
126
131
|
&:hover {
|
|
127
132
|
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
128
133
|
background: var(--intergalactic-date-picker-cell-active-hover, #008ff8);
|
|
@@ -131,26 +136,29 @@ SCalendarUnit[startSelected] {
|
|
|
131
136
|
|
|
132
137
|
SCalendarUnit[endSelected] {
|
|
133
138
|
background: var(--intergalactic-date-picker-cell-active, #2bb3ff);
|
|
134
|
-
border-bottom-left-radius: 0;
|
|
135
|
-
border-bottom-right-radius: var(--intergalactic-control-rounded, 6px);
|
|
136
|
-
border-top-left-radius: 0;
|
|
137
|
-
border-top-right-radius: var(--intergalactic-control-rounded, 6px);
|
|
138
139
|
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
139
140
|
|
|
141
|
+
&:not([highlighted]) {
|
|
142
|
+
border-bottom-left-radius: 0;
|
|
143
|
+
border-bottom-right-radius: var(--intergalactic-control-rounded, 6px);
|
|
144
|
+
border-top-left-radius: 0;
|
|
145
|
+
border-top-right-radius: var(--intergalactic-control-rounded, 6px);
|
|
146
|
+
}
|
|
147
|
+
|
|
140
148
|
&:hover {
|
|
141
149
|
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
142
150
|
background: var(--intergalactic-date-picker-cell-active-hover, #008ff8);
|
|
143
151
|
}
|
|
144
152
|
}
|
|
145
153
|
|
|
146
|
-
SCalendarUnit[startHighlighted] {
|
|
154
|
+
SCalendarUnit[startHighlighted]:not([selected]) {
|
|
147
155
|
border-bottom-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
148
156
|
border-bottom-right-radius: 0;
|
|
149
157
|
border-top-left-radius: var(--intergalactic-control-rounded, 6px);
|
|
150
158
|
border-top-right-radius: 0;
|
|
151
159
|
}
|
|
152
160
|
|
|
153
|
-
SCalendarUnit[endHighlighted] {
|
|
161
|
+
SCalendarUnit[endHighlighted]:not([selected]) {
|
|
154
162
|
border-bottom-left-radius: 0;
|
|
155
163
|
border-bottom-right-radius: var(--intergalactic-control-rounded, 6px);
|
|
156
164
|
border-top-left-radius: 0;
|
|
@@ -182,7 +190,10 @@ SCalendarUnit[disabled] {
|
|
|
182
190
|
}
|
|
183
191
|
|
|
184
192
|
@media (prefers-reduced-motion) {
|
|
185
|
-
|
|
193
|
+
|
|
194
|
+
SCalendarUnit,
|
|
195
|
+
SCalendarUnit[selected],
|
|
196
|
+
SCalendarUnit[highlighted] {
|
|
186
197
|
transition: none;
|
|
187
198
|
}
|
|
188
|
-
}
|
|
199
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/date-picker",
|
|
3
3
|
"description": "Semrush DatePicker Component",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@semcore/utils": "4.0.0",
|
|
13
|
-
"@semcore/base-trigger": "4.
|
|
14
|
-
"@semcore/button": "5.0
|
|
15
|
-
"@semcore/divider": "4.
|
|
16
|
-
"@semcore/dropdown": "4.
|
|
17
|
-
"@semcore/flex-box": "5.
|
|
18
|
-
"@semcore/icon": "4.
|
|
19
|
-
"@semcore/input": "4.
|
|
20
|
-
"@semcore/input-mask": "5.
|
|
13
|
+
"@semcore/base-trigger": "4.2.0",
|
|
14
|
+
"@semcore/button": "5.1.0",
|
|
15
|
+
"@semcore/divider": "4.1.0",
|
|
16
|
+
"@semcore/dropdown": "4.1.0",
|
|
17
|
+
"@semcore/flex-box": "5.1.0",
|
|
18
|
+
"@semcore/icon": "4.2.0",
|
|
19
|
+
"@semcore/input": "4.2.0",
|
|
20
|
+
"@semcore/input-mask": "5.2.0",
|
|
21
21
|
"@semcore/neighbor-location": "4.0.1",
|
|
22
|
-
"@semcore/typography": "5.
|
|
22
|
+
"@semcore/typography": "5.2.0",
|
|
23
23
|
"dayjs": "1.8.36"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|