@semcore/date-picker 3.4.12 → 3.4.14
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 +8 -2
- package/lib/cjs/components/Calendar.js +17 -17
- package/lib/cjs/components/InputTrigger.js +18 -18
- package/lib/cjs/components/PickerAbstract.js +18 -18
- package/lib/cjs/components/RangePickerAbstract.js +18 -18
- package/lib/cjs/components/index.js +3 -3
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/es6/components/Calendar.js +17 -17
- package/lib/es6/components/InputTrigger.js +18 -18
- package/lib/es6/components/PickerAbstract.js +18 -18
- package/lib/es6/components/RangePickerAbstract.js +18 -18
- package/lib/es6/components/index.js +3 -3
- package/lib/es6/index.d.js.map +1 -1
- package/lib/types/index.d.ts +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [3.4.
|
|
5
|
+
## [3.4.14] - 2022-11-29
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Fixed InputTrigger subcomponent types.
|
|
10
|
+
|
|
11
|
+
## [3.4.13] - 2022-11-28
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
8
14
|
|
|
9
|
-
- Version patch update due to children dependencies update (`@semcore/
|
|
15
|
+
- Version patch update due to children dependencies update (`@semcore/base-trigger` [3.2.8 ~> 3.2.9]).
|
|
10
16
|
|
|
11
17
|
## [3.4.8] - 2022-11-05
|
|
12
18
|
|
|
@@ -66,26 +66,26 @@ var style = (
|
|
|
66
66
|
/*__reshadow_css_start__*/
|
|
67
67
|
_core.sstyled.insert(
|
|
68
68
|
/*__inner_css_start__*/
|
|
69
|
-
".
|
|
69
|
+
".___SCalendar_ff1yi_gg_{display:flex;flex-direction:column}.___SGridDays_ff1yi_gg_{display:grid;grid-template-columns:repeat(7,minmax(32px,auto));grid-template-rows:repeat(auto-fit,minmax(32px,auto))}.___SGridMonths_ff1yi_gg_{display:grid;grid-row-gap:8px;grid-template-columns:repeat(3,minmax(60px,auto));grid-template-rows:repeat(4,minmax(32px,auto))}.___SWeekDays_ff1yi_gg_{display:grid;grid-template-columns:repeat(7,minmax(32px,auto))}.___SWeekDay_ff1yi_gg_{min-width:32px;min-height:32px;display:flex;align-items:center;justify-content:center;color:#6c6e79;font-size:14px;font-weight:400;overflow:hidden}.___SCalendarUnit_ff1yi_gg_{font-family:inherit;font-weight:400;line-height:normal;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;color:#191b23;outline:0;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:transparent;align-items:center;border-radius:6px;box-sizing:border-box;cursor:pointer;display:flex;font-size:14px;justify-content:center;min-height:32px;min-width:32px;position:relative;transition:color .15s,background .15s;outline:none;margin:0}.___SCalendarUnit_ff1yi_gg_:hover{color:#191b23;background:#e0e1e9}.___SCalendarUnit_ff1yi_gg_.focus-visible{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SCalendarUnit_ff1yi_gg_:focus-visible{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SCalendarUnit_ff1yi_gg_.__today_ff1yi_gg_:before{content:\"\";position:absolute;display:block;top:1px;left:1px;border-radius:6px;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:border-box;border:1px solid #c4c7cf}.___SCalendarUnit_ff1yi_gg_.__today_ff1yi_gg_.___SCalendarUnit_ff1yi_gg_.__endSelected_ff1yi_gg_:before,.___SCalendarUnit_ff1yi_gg_.__today_ff1yi_gg_.___SCalendarUnit_ff1yi_gg_.__startSelected_ff1yi_gg_:before{border-color:hsla(0,0%,100%,.5)}.___SCalendarUnit_ff1yi_gg_.__selected_ff1yi_gg_{background:#c4e5fe;border-radius:0;color:#191b23}.___SCalendarUnit_ff1yi_gg_.__selected_ff1yi_gg_:hover{background:#008ff8}.___SCalendarUnit_ff1yi_gg_.__highlighted_ff1yi_gg_{background:rgba(0,143,248,.2);border-radius:0;color:#191b23}.___SCalendarUnit_ff1yi_gg_.__highlighted_ff1yi_gg_:hover{background:rgba(0,143,248,.3)}.___SCalendarUnit_ff1yi_gg_.__startSelected_ff1yi_gg_{border-bottom-left-radius:6px;border-bottom-right-radius:0;border-top-left-radius:6px;border-top-right-radius:0;color:#fff;background:#2bb3ff}.___SCalendarUnit_ff1yi_gg_.__startSelected_ff1yi_gg_:hover{color:#fff;background:#008ff8}.___SCalendarUnit_ff1yi_gg_.__endSelected_ff1yi_gg_{background:#2bb3ff;border-bottom-left-radius:0;border-bottom-right-radius:6px;border-top-left-radius:0;border-top-right-radius:6px;color:#fff}.___SCalendarUnit_ff1yi_gg_.__endSelected_ff1yi_gg_:hover{color:#fff;background:#008ff8}.___SCalendarUnit_ff1yi_gg_.__startHighlighted_ff1yi_gg_{border-bottom-left-radius:6px;border-bottom-right-radius:0;border-top-left-radius:6px;border-top-right-radius:0}.___SCalendarUnit_ff1yi_gg_.__endHighlighted_ff1yi_gg_{border-bottom-left-radius:0;border-bottom-right-radius:6px;border-top-left-radius:0;border-top-right-radius:6px}.___SCalendarUnit_ff1yi_gg_.__startHighlighted_ff1yi_gg_.___SCalendarUnit_ff1yi_gg_.__endHighlighted_ff1yi_gg_{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top-left-radius:6px;border-top-right-radius:6px}.___SCalendarUnit_ff1yi_gg_.__startSelected_ff1yi_gg_.___SCalendarUnit_ff1yi_gg_.__endSelected_ff1yi_gg_{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top-left-radius:6px;border-top-right-radius:6px}.___SCalendarUnit_ff1yi_gg_.__outdated_ff1yi_gg_{opacity:.2}.___SCalendarUnit_ff1yi_gg_.__disabled_ff1yi_gg_{opacity:.4;cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SCalendarUnit_ff1yi_gg_{transition:none}}"
|
|
70
70
|
/*__inner_css_end__*/
|
|
71
|
-
, "
|
|
71
|
+
, "ff1yi_gg_")
|
|
72
72
|
/*__reshadow_css_end__*/
|
|
73
73
|
, {
|
|
74
|
-
"__SCalendar": "
|
|
75
|
-
"__SGridDays": "
|
|
76
|
-
"__SGridMonths": "
|
|
77
|
-
"__SWeekDays": "
|
|
78
|
-
"__SWeekDay": "
|
|
79
|
-
"__SCalendarUnit": "
|
|
80
|
-
"_today": "
|
|
81
|
-
"_endSelected": "
|
|
82
|
-
"_startSelected": "
|
|
83
|
-
"_selected": "
|
|
84
|
-
"_highlighted": "
|
|
85
|
-
"_startHighlighted": "
|
|
86
|
-
"_endHighlighted": "
|
|
87
|
-
"_outdated": "
|
|
88
|
-
"_disabled": "
|
|
74
|
+
"__SCalendar": "___SCalendar_ff1yi_gg_",
|
|
75
|
+
"__SGridDays": "___SGridDays_ff1yi_gg_",
|
|
76
|
+
"__SGridMonths": "___SGridMonths_ff1yi_gg_",
|
|
77
|
+
"__SWeekDays": "___SWeekDays_ff1yi_gg_",
|
|
78
|
+
"__SWeekDay": "___SWeekDay_ff1yi_gg_",
|
|
79
|
+
"__SCalendarUnit": "___SCalendarUnit_ff1yi_gg_",
|
|
80
|
+
"_today": "__today_ff1yi_gg_",
|
|
81
|
+
"_endSelected": "__endSelected_ff1yi_gg_",
|
|
82
|
+
"_startSelected": "__startSelected_ff1yi_gg_",
|
|
83
|
+
"_selected": "__selected_ff1yi_gg_",
|
|
84
|
+
"_highlighted": "__highlighted_ff1yi_gg_",
|
|
85
|
+
"_startHighlighted": "__startHighlighted_ff1yi_gg_",
|
|
86
|
+
"_endHighlighted": "__endHighlighted_ff1yi_gg_",
|
|
87
|
+
"_outdated": "__outdated_ff1yi_gg_",
|
|
88
|
+
"_disabled": "__disabled_ff1yi_gg_"
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
_dayjs["default"].extend(_isBetween["default"]);
|
|
@@ -79,27 +79,27 @@ var style = (
|
|
|
79
79
|
/*__reshadow_css_start__*/
|
|
80
80
|
_core.sstyled.insert(
|
|
81
81
|
/*__inner_css_start__*/
|
|
82
|
-
".
|
|
82
|
+
".___SPopper_vtfme_gg_{padding:16px;outline:0}.___SPopper_vtfme_gg_::-moz-focus-inner{border:none;padding:0}.___SPopper_vtfme_gg_:active,.___SPopper_vtfme_gg_:focus,.___SPopper_vtfme_gg_:hover{outline:0;text-decoration:none}.___SPopper_vtfme_gg_:focus{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SHeader_vtfme_gg_{display:flex;align-items:center}.___STitle_vtfme_gg_{font-size:14px;color:#191b23;height:32px;width:100%;display:flex;justify-content:center;align-items:center}.___SToday_vtfme_gg_{display:flex;margin-top:12px;justify-content:center}.___SPeriod_vtfme_gg_{display:flex;flex-direction:column;margin-bottom:8px}.___SIndicator_vtfme_gg_{color:#6c6e79}.___SHumanizedDate_vtfme_gg_{position:absolute;pointer-events:none}.___SDateRange_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SSingleDateInput_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SMask_vtfme_gg_,.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_:focus-within .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}.___SDateRange_vtfme_gg_:focus-within .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}"
|
|
83
83
|
/*__inner_css_end__*/
|
|
84
|
-
, "
|
|
84
|
+
, "vtfme_gg_")
|
|
85
85
|
/*__reshadow_css_end__*/
|
|
86
86
|
, {
|
|
87
|
-
"__SPopper": "
|
|
88
|
-
"__SHeader": "
|
|
89
|
-
"__STitle": "
|
|
90
|
-
"__SToday": "
|
|
91
|
-
"__SPeriod": "
|
|
92
|
-
"__SIndicator": "
|
|
93
|
-
"__SHumanizedDate": "
|
|
94
|
-
"__SDateRange": "
|
|
95
|
-
"__SMask": "
|
|
96
|
-
"__SValue": "
|
|
97
|
-
"__SSingleDateInput": "
|
|
98
|
-
"_focus-within": "__focus-
|
|
99
|
-
"__SInputMask": "
|
|
100
|
-
"_noHumanizedDate": "
|
|
101
|
-
"__SRangeSep": "
|
|
102
|
-
"_fulfilled": "
|
|
87
|
+
"__SPopper": "___SPopper_vtfme_gg_",
|
|
88
|
+
"__SHeader": "___SHeader_vtfme_gg_",
|
|
89
|
+
"__STitle": "___STitle_vtfme_gg_",
|
|
90
|
+
"__SToday": "___SToday_vtfme_gg_",
|
|
91
|
+
"__SPeriod": "___SPeriod_vtfme_gg_",
|
|
92
|
+
"__SIndicator": "___SIndicator_vtfme_gg_",
|
|
93
|
+
"__SHumanizedDate": "___SHumanizedDate_vtfme_gg_",
|
|
94
|
+
"__SDateRange": "___SDateRange_vtfme_gg_",
|
|
95
|
+
"__SMask": "___SMask_vtfme_gg_",
|
|
96
|
+
"__SValue": "___SValue_vtfme_gg_",
|
|
97
|
+
"__SSingleDateInput": "___SSingleDateInput_vtfme_gg_",
|
|
98
|
+
"_focus-within": "__focus-within_vtfme_gg_",
|
|
99
|
+
"__SInputMask": "___SInputMask_vtfme_gg_",
|
|
100
|
+
"_noHumanizedDate": "__noHumanizedDate_vtfme_gg_",
|
|
101
|
+
"__SRangeSep": "___SRangeSep_vtfme_gg_",
|
|
102
|
+
"_fulfilled": "__fulfilled_vtfme_gg_"
|
|
103
103
|
});
|
|
104
104
|
var defaultAllowedParts = {
|
|
105
105
|
year: true,
|
|
@@ -64,27 +64,27 @@ var style = (
|
|
|
64
64
|
/*__reshadow_css_start__*/
|
|
65
65
|
_core.sstyled.insert(
|
|
66
66
|
/*__inner_css_start__*/
|
|
67
|
-
".
|
|
67
|
+
".___SPopper_vtfme_gg_{padding:16px;outline:0}.___SPopper_vtfme_gg_::-moz-focus-inner{border:none;padding:0}.___SPopper_vtfme_gg_:active,.___SPopper_vtfme_gg_:focus,.___SPopper_vtfme_gg_:hover{outline:0;text-decoration:none}.___SPopper_vtfme_gg_:focus{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SHeader_vtfme_gg_{display:flex;align-items:center}.___STitle_vtfme_gg_{font-size:14px;color:#191b23;height:32px;width:100%;display:flex;justify-content:center;align-items:center}.___SToday_vtfme_gg_{display:flex;margin-top:12px;justify-content:center}.___SPeriod_vtfme_gg_{display:flex;flex-direction:column;margin-bottom:8px}.___SIndicator_vtfme_gg_{color:#6c6e79}.___SHumanizedDate_vtfme_gg_{position:absolute;pointer-events:none}.___SDateRange_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SSingleDateInput_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SMask_vtfme_gg_,.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_:focus-within .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}.___SDateRange_vtfme_gg_:focus-within .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}"
|
|
68
68
|
/*__inner_css_end__*/
|
|
69
|
-
, "
|
|
69
|
+
, "vtfme_gg_")
|
|
70
70
|
/*__reshadow_css_end__*/
|
|
71
71
|
, {
|
|
72
|
-
"__SPopper": "
|
|
73
|
-
"__SHeader": "
|
|
74
|
-
"__STitle": "
|
|
75
|
-
"__SToday": "
|
|
76
|
-
"__SPeriod": "
|
|
77
|
-
"__SIndicator": "
|
|
78
|
-
"__SHumanizedDate": "
|
|
79
|
-
"__SDateRange": "
|
|
80
|
-
"__SMask": "
|
|
81
|
-
"__SValue": "
|
|
82
|
-
"__SSingleDateInput": "
|
|
83
|
-
"_focus-within": "__focus-
|
|
84
|
-
"__SInputMask": "
|
|
85
|
-
"_noHumanizedDate": "
|
|
86
|
-
"__SRangeSep": "
|
|
87
|
-
"_fulfilled": "
|
|
72
|
+
"__SPopper": "___SPopper_vtfme_gg_",
|
|
73
|
+
"__SHeader": "___SHeader_vtfme_gg_",
|
|
74
|
+
"__STitle": "___STitle_vtfme_gg_",
|
|
75
|
+
"__SToday": "___SToday_vtfme_gg_",
|
|
76
|
+
"__SPeriod": "___SPeriod_vtfme_gg_",
|
|
77
|
+
"__SIndicator": "___SIndicator_vtfme_gg_",
|
|
78
|
+
"__SHumanizedDate": "___SHumanizedDate_vtfme_gg_",
|
|
79
|
+
"__SDateRange": "___SDateRange_vtfme_gg_",
|
|
80
|
+
"__SMask": "___SMask_vtfme_gg_",
|
|
81
|
+
"__SValue": "___SValue_vtfme_gg_",
|
|
82
|
+
"__SSingleDateInput": "___SSingleDateInput_vtfme_gg_",
|
|
83
|
+
"_focus-within": "__focus-within_vtfme_gg_",
|
|
84
|
+
"__SInputMask": "___SInputMask_vtfme_gg_",
|
|
85
|
+
"_noHumanizedDate": "__noHumanizedDate_vtfme_gg_",
|
|
86
|
+
"__SRangeSep": "___SRangeSep_vtfme_gg_",
|
|
87
|
+
"_fulfilled": "__fulfilled_vtfme_gg_"
|
|
88
88
|
});
|
|
89
89
|
var i18n = {
|
|
90
90
|
de: _de["default"],
|
|
@@ -74,27 +74,27 @@ var style = (
|
|
|
74
74
|
/*__reshadow_css_start__*/
|
|
75
75
|
_core.sstyled.insert(
|
|
76
76
|
/*__inner_css_start__*/
|
|
77
|
-
".
|
|
77
|
+
".___SPopper_vtfme_gg_{padding:16px;outline:0}.___SPopper_vtfme_gg_::-moz-focus-inner{border:none;padding:0}.___SPopper_vtfme_gg_:active,.___SPopper_vtfme_gg_:focus,.___SPopper_vtfme_gg_:hover{outline:0;text-decoration:none}.___SPopper_vtfme_gg_:focus{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SHeader_vtfme_gg_{display:flex;align-items:center}.___STitle_vtfme_gg_{font-size:14px;color:#191b23;height:32px;width:100%;display:flex;justify-content:center;align-items:center}.___SToday_vtfme_gg_{display:flex;margin-top:12px;justify-content:center}.___SPeriod_vtfme_gg_{display:flex;flex-direction:column;margin-bottom:8px}.___SIndicator_vtfme_gg_{color:#6c6e79}.___SHumanizedDate_vtfme_gg_{position:absolute;pointer-events:none}.___SDateRange_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SSingleDateInput_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SMask_vtfme_gg_,.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_:focus-within .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}.___SDateRange_vtfme_gg_:focus-within .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}"
|
|
78
78
|
/*__inner_css_end__*/
|
|
79
|
-
, "
|
|
79
|
+
, "vtfme_gg_")
|
|
80
80
|
/*__reshadow_css_end__*/
|
|
81
81
|
, {
|
|
82
|
-
"__SPopper": "
|
|
83
|
-
"__SHeader": "
|
|
84
|
-
"__STitle": "
|
|
85
|
-
"__SToday": "
|
|
86
|
-
"__SPeriod": "
|
|
87
|
-
"__SIndicator": "
|
|
88
|
-
"__SHumanizedDate": "
|
|
89
|
-
"__SDateRange": "
|
|
90
|
-
"__SMask": "
|
|
91
|
-
"__SValue": "
|
|
92
|
-
"__SSingleDateInput": "
|
|
93
|
-
"_focus-within": "__focus-
|
|
94
|
-
"__SInputMask": "
|
|
95
|
-
"_noHumanizedDate": "
|
|
96
|
-
"__SRangeSep": "
|
|
97
|
-
"_fulfilled": "
|
|
82
|
+
"__SPopper": "___SPopper_vtfme_gg_",
|
|
83
|
+
"__SHeader": "___SHeader_vtfme_gg_",
|
|
84
|
+
"__STitle": "___STitle_vtfme_gg_",
|
|
85
|
+
"__SToday": "___SToday_vtfme_gg_",
|
|
86
|
+
"__SPeriod": "___SPeriod_vtfme_gg_",
|
|
87
|
+
"__SIndicator": "___SIndicator_vtfme_gg_",
|
|
88
|
+
"__SHumanizedDate": "___SHumanizedDate_vtfme_gg_",
|
|
89
|
+
"__SDateRange": "___SDateRange_vtfme_gg_",
|
|
90
|
+
"__SMask": "___SMask_vtfme_gg_",
|
|
91
|
+
"__SValue": "___SValue_vtfme_gg_",
|
|
92
|
+
"__SSingleDateInput": "___SSingleDateInput_vtfme_gg_",
|
|
93
|
+
"_focus-within": "__focus-within_vtfme_gg_",
|
|
94
|
+
"__SInputMask": "___SInputMask_vtfme_gg_",
|
|
95
|
+
"_noHumanizedDate": "__noHumanizedDate_vtfme_gg_",
|
|
96
|
+
"__SRangeSep": "___SRangeSep_vtfme_gg_",
|
|
97
|
+
"_fulfilled": "__fulfilled_vtfme_gg_"
|
|
98
98
|
});
|
|
99
99
|
var i18n = {
|
|
100
100
|
de: _de["default"],
|
|
@@ -152,12 +152,12 @@ var stylesBtn = (
|
|
|
152
152
|
/*__reshadow_css_start__*/
|
|
153
153
|
_core.sstyled.insert(
|
|
154
154
|
/*__inner_css_start__*/
|
|
155
|
-
".
|
|
155
|
+
".___SInner_14rx4_gg_{justify-content:flex-start}"
|
|
156
156
|
/*__inner_css_end__*/
|
|
157
|
-
, "
|
|
157
|
+
, "14rx4_gg_")
|
|
158
158
|
/*__reshadow_css_end__*/
|
|
159
159
|
, {
|
|
160
|
-
"__SInner": "
|
|
160
|
+
"__SInner": "___SInner_14rx4_gg_"
|
|
161
161
|
});
|
|
162
162
|
|
|
163
163
|
var Period = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React, { ChangeEvent, ComponentProps } from 'react';\nimport dayjs from 'dayjs';\nimport { Box, IBoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { CProps, Merge, PropGetterFn, ReturnEl } from '@semcore/core';\nimport Dropdown, { IDropdownProps } from '@semcore/dropdown';\nimport { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\nimport BaseTrigger from '@semcore/base-trigger';\nimport Input from '@semcore/input';\nimport InputMask from '@semcore/input-mask';\n\nexport type DateConstructorParams = string | number | Date;\n\nexport interface ICalendarProps extends IBoxProps {\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Array of dates blocked for selection\n * Accepts the date or the range of dates for specifying infinity ([Date | false, Date | false]), crontab(6,7)\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * @ignore\n * */\n highlighted?: DateConstructorParams[];\n /**\n * @ignore\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: Date;\n}\n\nexport interface ICalendarDaysContext {\n days: ICalendarUnitProps[];\n}\n\nexport interface ICalendarMonthsContext {\n months: ICalendarUnitProps[];\n}\n\nexport interface ICalendarUnitProps extends IBoxProps {\n selected?: boolean;\n outdated?: boolean;\n disabled?: boolean;\n today?: boolean;\n startSelected?: boolean;\n endSelected?: boolean;\n highlighted?: boolean;\n startHighlighted?: boolean;\n endHighlighted?: boolean;\n children?: React.ReactNode;\n}\n\nexport interface ICalendarContext {\n getUnitProps: PropGetterFn;\n}\n\ndeclare const Calendar: (<T>(\n props: CProps<ICalendarProps & T, ICalendarContext, IAbstractDatePickerHandlers>,\n) => ReturnEl) & {\n Unit: <T>(props: ICalendarUnitProps & T) => ReturnEl;\n};\n\nexport interface IDatePickerProps extends IDropdownProps, IWithI18nEnhanceProps {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams;\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams;\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n}\n\nexport interface IDateRangePickerProps extends IDropdownProps, IWithI18nEnhanceProps {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams[];\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l' | 'xl';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ComponentProps<typeof Button> & { value: Date[] })[];\n}\n\nexport interface IDateRangePickerPeriodProps extends IBoxProps {\n /**\n * Current selected period\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated by clicking the button for switching the selected period.\n * */\n onChange?: (date: Date[]) => void;\n /**\n * To be activated by hovering a cursor over the button for changing the current displayed month.\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * To be activated by hovering a cursor over the button for selecting the dates.\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ComponentProps<typeof Button> & { value: Date[] })[];\n}\n\nexport interface IDatePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getTodayProps: PropGetterFn;\n}\n\nexport interface IAbstractDatePickerHandlers {\n displayedPeriod: (value: DateConstructorParams) => void;\n visible: (index: boolean) => void;\n highlighted: (list: DateConstructorParams[]) => void;\n value: (index: DateConstructorParams) => void;\n}\n\nexport interface IDatePickerHandlers {\n visible: (index: boolean) => void;\n}\n\nexport interface IInputTriggerProps {\n value: Date;\n /**\n * Date input placeholder characters\n * @default { year: 'Y'; month: 'M'; day: 'D' }\n */\n placeholders: { year: string; month: string; day: string };\n onChange: (date: Date, event: ChangeEvent) => void;\n locale: string;\n onDisplayedPeriodChange: (date: Date) => void;\n}\n\nexport interface ISingleDateInputProps extends IInputTriggerProps {}\n\nexport interface IDateRangeProps extends IInputTriggerProps {}\n\nexport interface IDatePickerMaskedInputProps {\n date: Date;\n onDateChange: (date: Date, event: ChangeEvent) => void;\n onDisplayedPeriodChange: (date: Date) => void;\n locale: string;\n parts: { year: Boolean; month: Boolean; day: Boolean };\n disabledDates: (Date | (Date | false)[] | string)[];\n}\n\ndeclare const InputTrigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, IInputTriggerProps> & T,\n) => ReturnEl) & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n SingleDateInput: (<T>(\n props: Merge<ComponentProps<typeof InputMask>, ISingleDateInputProps> & T,\n ) => ReturnEl) & {\n Indicator: typeof Input.Addon;\n MaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n };\n DateRange: (<T>(\n props: Merge<ComponentProps<typeof InputMask>, IDateRangeProps> & T,\n ) => ReturnEl) & {\n Indicator: typeof Input.Addon;\n RangeSep: typeof Input.Addon;\n FromMaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n ToMaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n };\n};\n\ndeclare const DatePicker: ((\n props: CProps<IDatePickerProps, IDatePickerContext & ICalendarDaysContext, IDatePickerHandlers>,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IDatePickerContext>) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Today: typeof Box;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IDateRangePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n}\n\ndeclare const DateRangePicker: ((\n props: CProps<\n IDateRangePickerProps,\n IDateRangePickerContext & ICalendarDaysContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: InputTrigger;\n Popper: <T>(props: ComponentProps<typeof Dropdown.Popper> & T) => ReturnEl;\n Header: typeof Box;\n Title: <T>(\n props: CProps<IDateRangePickerProps & IBoxProps & T, IDateRangePickerContext>,\n ) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: <T>(props: IDateRangePickerPeriodProps & T) => ReturnEl;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IMonthPickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n}\n\ndeclare const MonthPicker: ((\n props: CProps<\n IDatePickerProps,\n IMonthPickerContext & ICalendarMonthsContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IMonthPickerContext>) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IMonthRangePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n}\n\ndeclare const MonthRangePicker: ((\n props: CProps<\n IDateRangePickerProps,\n IMonthRangePickerContext & ICalendarMonthsContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(\n props: CProps<IDateRangePickerProps & IBoxProps & T, IMonthRangePickerContext>,\n ) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: <T>(props: IDateRangePickerPeriodProps & T) => ReturnEl;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport { DatePicker, DateRangePicker, MonthPicker, MonthRangePicker };\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React, { ChangeEvent, ComponentProps } from 'react';\nimport dayjs from 'dayjs';\nimport { Box, IBoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { CProps, Merge, PropGetterFn, ReturnEl } from '@semcore/core';\nimport Dropdown, { IDropdownProps } from '@semcore/dropdown';\nimport { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\nimport BaseTrigger from '@semcore/base-trigger';\nimport Input from '@semcore/input';\nimport InputMask from '@semcore/input-mask';\n\nexport type DateConstructorParams = string | number | Date;\n\nexport interface ICalendarProps extends IBoxProps {\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Array of dates blocked for selection\n * Accepts the date or the range of dates for specifying infinity ([Date | false, Date | false]), crontab(6,7)\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * @ignore\n * */\n highlighted?: DateConstructorParams[];\n /**\n * @ignore\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: Date;\n}\n\nexport interface ICalendarDaysContext {\n days: ICalendarUnitProps[];\n}\n\nexport interface ICalendarMonthsContext {\n months: ICalendarUnitProps[];\n}\n\nexport interface ICalendarUnitProps extends IBoxProps {\n selected?: boolean;\n outdated?: boolean;\n disabled?: boolean;\n today?: boolean;\n startSelected?: boolean;\n endSelected?: boolean;\n highlighted?: boolean;\n startHighlighted?: boolean;\n endHighlighted?: boolean;\n children?: React.ReactNode;\n}\n\nexport interface ICalendarContext {\n getUnitProps: PropGetterFn;\n}\n\ndeclare const Calendar: (<T>(\n props: CProps<ICalendarProps & T, ICalendarContext, IAbstractDatePickerHandlers>,\n) => ReturnEl) & {\n Unit: <T>(props: ICalendarUnitProps & T) => ReturnEl;\n};\n\nexport interface IDatePickerProps extends IDropdownProps, IWithI18nEnhanceProps {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams;\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams;\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n}\n\nexport interface IDateRangePickerProps extends IDropdownProps, IWithI18nEnhanceProps {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams[];\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l' | 'xl';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ComponentProps<typeof Button> & { value: Date[] })[];\n}\n\nexport interface IDateRangePickerPeriodProps extends IBoxProps {\n /**\n * Current selected period\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated by clicking the button for switching the selected period.\n * */\n onChange?: (date: Date[]) => void;\n /**\n * To be activated by hovering a cursor over the button for changing the current displayed month.\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * To be activated by hovering a cursor over the button for selecting the dates.\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ComponentProps<typeof Button> & { value: Date[] })[];\n}\n\nexport interface IDatePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getTodayProps: PropGetterFn;\n}\n\nexport interface IAbstractDatePickerHandlers {\n displayedPeriod: (value: DateConstructorParams) => void;\n visible: (index: boolean) => void;\n highlighted: (list: DateConstructorParams[]) => void;\n value: (index: DateConstructorParams) => void;\n}\n\nexport interface IDatePickerHandlers {\n visible: (index: boolean) => void;\n}\n\nexport interface IInputTriggerProps {\n value: Date;\n /**\n * Date input placeholder characters\n * @default { year: 'Y'; month: 'M'; day: 'D' }\n */\n placeholders: { year: string; month: string; day: string };\n onChange: (date: Date, event: ChangeEvent) => void;\n locale: string;\n onDisplayedPeriodChange: (date: Date) => void;\n}\n\nexport interface ISingleDateInputProps extends IInputTriggerProps {}\n\nexport interface IDateRangeProps extends IInputTriggerProps {}\n\nexport interface IDatePickerMaskedInputProps {\n date: Date;\n onDateChange: (date: Date, event: ChangeEvent) => void;\n onDisplayedPeriodChange: (date: Date) => void;\n locale: string;\n parts: { year: Boolean; month: Boolean; day: Boolean };\n disabledDates: (Date | (Date | false)[] | string)[];\n}\n\ndeclare const InputTrigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, IInputTriggerProps> & T,\n) => ReturnEl) & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n SingleDateInput: (<T>(\n props: Merge<ComponentProps<typeof InputMask>, ISingleDateInputProps> & T,\n ) => ReturnEl) & {\n Indicator: typeof Input.Addon;\n MaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n };\n DateRange: (<T>(\n props: Merge<ComponentProps<typeof InputMask>, IDateRangeProps> & T,\n ) => ReturnEl) & {\n Indicator: typeof Input.Addon;\n RangeSep: typeof Input.Addon;\n FromMaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n ToMaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n };\n};\n\ndeclare const DatePicker: ((\n props: CProps<IDatePickerProps, IDatePickerContext & ICalendarDaysContext, IDatePickerHandlers>,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: typeof InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IDatePickerContext>) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Today: typeof Box;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IDateRangePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n}\n\ndeclare const DateRangePicker: ((\n props: CProps<\n IDateRangePickerProps,\n IDateRangePickerContext & ICalendarDaysContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: typeof InputTrigger;\n Popper: <T>(props: ComponentProps<typeof Dropdown.Popper> & T) => ReturnEl;\n Header: typeof Box;\n Title: <T>(\n props: CProps<IDateRangePickerProps & IBoxProps & T, IDateRangePickerContext>,\n ) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: <T>(props: IDateRangePickerPeriodProps & T) => ReturnEl;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IMonthPickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n}\n\ndeclare const MonthPicker: ((\n props: CProps<\n IDatePickerProps,\n IMonthPickerContext & ICalendarMonthsContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: typeof InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IMonthPickerContext>) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IMonthRangePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n}\n\ndeclare const MonthRangePicker: ((\n props: CProps<\n IDateRangePickerProps,\n IMonthRangePickerContext & ICalendarMonthsContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: typeof InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(\n props: CProps<IDateRangePickerProps & IBoxProps & T, IMonthRangePickerContext>,\n ) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: <T>(props: IDateRangePickerPeriodProps & T) => ReturnEl;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport { DatePicker, DateRangePicker, MonthPicker, MonthRangePicker };\n"],"mappings":""}
|
|
@@ -38,26 +38,26 @@ var style = (
|
|
|
38
38
|
/*__reshadow_css_start__*/
|
|
39
39
|
_sstyled.insert(
|
|
40
40
|
/*__inner_css_start__*/
|
|
41
|
-
".
|
|
41
|
+
".___SCalendar_ff1yi_gg_{display:flex;flex-direction:column}.___SGridDays_ff1yi_gg_{display:grid;grid-template-columns:repeat(7,minmax(32px,auto));grid-template-rows:repeat(auto-fit,minmax(32px,auto))}.___SGridMonths_ff1yi_gg_{display:grid;grid-row-gap:8px;grid-template-columns:repeat(3,minmax(60px,auto));grid-template-rows:repeat(4,minmax(32px,auto))}.___SWeekDays_ff1yi_gg_{display:grid;grid-template-columns:repeat(7,minmax(32px,auto))}.___SWeekDay_ff1yi_gg_{min-width:32px;min-height:32px;display:flex;align-items:center;justify-content:center;color:#6c6e79;font-size:14px;font-weight:400;overflow:hidden}.___SCalendarUnit_ff1yi_gg_{font-family:inherit;font-weight:400;line-height:normal;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;color:#191b23;outline:0;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:transparent;align-items:center;border-radius:6px;box-sizing:border-box;cursor:pointer;display:flex;font-size:14px;justify-content:center;min-height:32px;min-width:32px;position:relative;transition:color .15s,background .15s;outline:none;margin:0}.___SCalendarUnit_ff1yi_gg_:hover{color:#191b23;background:#e0e1e9}.___SCalendarUnit_ff1yi_gg_.focus-visible{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SCalendarUnit_ff1yi_gg_:focus-visible{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SCalendarUnit_ff1yi_gg_.__today_ff1yi_gg_:before{content:\"\";position:absolute;display:block;top:1px;left:1px;border-radius:6px;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:border-box;border:1px solid #c4c7cf}.___SCalendarUnit_ff1yi_gg_.__today_ff1yi_gg_.___SCalendarUnit_ff1yi_gg_.__endSelected_ff1yi_gg_:before,.___SCalendarUnit_ff1yi_gg_.__today_ff1yi_gg_.___SCalendarUnit_ff1yi_gg_.__startSelected_ff1yi_gg_:before{border-color:hsla(0,0%,100%,.5)}.___SCalendarUnit_ff1yi_gg_.__selected_ff1yi_gg_{background:#c4e5fe;border-radius:0;color:#191b23}.___SCalendarUnit_ff1yi_gg_.__selected_ff1yi_gg_:hover{background:#008ff8}.___SCalendarUnit_ff1yi_gg_.__highlighted_ff1yi_gg_{background:rgba(0,143,248,.2);border-radius:0;color:#191b23}.___SCalendarUnit_ff1yi_gg_.__highlighted_ff1yi_gg_:hover{background:rgba(0,143,248,.3)}.___SCalendarUnit_ff1yi_gg_.__startSelected_ff1yi_gg_{border-bottom-left-radius:6px;border-bottom-right-radius:0;border-top-left-radius:6px;border-top-right-radius:0;color:#fff;background:#2bb3ff}.___SCalendarUnit_ff1yi_gg_.__startSelected_ff1yi_gg_:hover{color:#fff;background:#008ff8}.___SCalendarUnit_ff1yi_gg_.__endSelected_ff1yi_gg_{background:#2bb3ff;border-bottom-left-radius:0;border-bottom-right-radius:6px;border-top-left-radius:0;border-top-right-radius:6px;color:#fff}.___SCalendarUnit_ff1yi_gg_.__endSelected_ff1yi_gg_:hover{color:#fff;background:#008ff8}.___SCalendarUnit_ff1yi_gg_.__startHighlighted_ff1yi_gg_{border-bottom-left-radius:6px;border-bottom-right-radius:0;border-top-left-radius:6px;border-top-right-radius:0}.___SCalendarUnit_ff1yi_gg_.__endHighlighted_ff1yi_gg_{border-bottom-left-radius:0;border-bottom-right-radius:6px;border-top-left-radius:0;border-top-right-radius:6px}.___SCalendarUnit_ff1yi_gg_.__startHighlighted_ff1yi_gg_.___SCalendarUnit_ff1yi_gg_.__endHighlighted_ff1yi_gg_{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top-left-radius:6px;border-top-right-radius:6px}.___SCalendarUnit_ff1yi_gg_.__startSelected_ff1yi_gg_.___SCalendarUnit_ff1yi_gg_.__endSelected_ff1yi_gg_{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top-left-radius:6px;border-top-right-radius:6px}.___SCalendarUnit_ff1yi_gg_.__outdated_ff1yi_gg_{opacity:.2}.___SCalendarUnit_ff1yi_gg_.__disabled_ff1yi_gg_{opacity:.4;cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SCalendarUnit_ff1yi_gg_{transition:none}}"
|
|
42
42
|
/*__inner_css_end__*/
|
|
43
|
-
, "
|
|
43
|
+
, "ff1yi_gg_")
|
|
44
44
|
/*__reshadow_css_end__*/
|
|
45
45
|
, {
|
|
46
|
-
"__SCalendar": "
|
|
47
|
-
"__SGridDays": "
|
|
48
|
-
"__SGridMonths": "
|
|
49
|
-
"__SWeekDays": "
|
|
50
|
-
"__SWeekDay": "
|
|
51
|
-
"__SCalendarUnit": "
|
|
52
|
-
"_today": "
|
|
53
|
-
"_endSelected": "
|
|
54
|
-
"_startSelected": "
|
|
55
|
-
"_selected": "
|
|
56
|
-
"_highlighted": "
|
|
57
|
-
"_startHighlighted": "
|
|
58
|
-
"_endHighlighted": "
|
|
59
|
-
"_outdated": "
|
|
60
|
-
"_disabled": "
|
|
46
|
+
"__SCalendar": "___SCalendar_ff1yi_gg_",
|
|
47
|
+
"__SGridDays": "___SGridDays_ff1yi_gg_",
|
|
48
|
+
"__SGridMonths": "___SGridMonths_ff1yi_gg_",
|
|
49
|
+
"__SWeekDays": "___SWeekDays_ff1yi_gg_",
|
|
50
|
+
"__SWeekDay": "___SWeekDay_ff1yi_gg_",
|
|
51
|
+
"__SCalendarUnit": "___SCalendarUnit_ff1yi_gg_",
|
|
52
|
+
"_today": "__today_ff1yi_gg_",
|
|
53
|
+
"_endSelected": "__endSelected_ff1yi_gg_",
|
|
54
|
+
"_startSelected": "__startSelected_ff1yi_gg_",
|
|
55
|
+
"_selected": "__selected_ff1yi_gg_",
|
|
56
|
+
"_highlighted": "__highlighted_ff1yi_gg_",
|
|
57
|
+
"_startHighlighted": "__startHighlighted_ff1yi_gg_",
|
|
58
|
+
"_endHighlighted": "__endHighlighted_ff1yi_gg_",
|
|
59
|
+
"_outdated": "__outdated_ff1yi_gg_",
|
|
60
|
+
"_disabled": "__disabled_ff1yi_gg_"
|
|
61
61
|
});
|
|
62
62
|
dayjs.extend(isBetween);
|
|
63
63
|
|
|
@@ -52,27 +52,27 @@ var style = (
|
|
|
52
52
|
/*__reshadow_css_start__*/
|
|
53
53
|
_sstyled.insert(
|
|
54
54
|
/*__inner_css_start__*/
|
|
55
|
-
".
|
|
55
|
+
".___SPopper_vtfme_gg_{padding:16px;outline:0}.___SPopper_vtfme_gg_::-moz-focus-inner{border:none;padding:0}.___SPopper_vtfme_gg_:active,.___SPopper_vtfme_gg_:focus,.___SPopper_vtfme_gg_:hover{outline:0;text-decoration:none}.___SPopper_vtfme_gg_:focus{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SHeader_vtfme_gg_{display:flex;align-items:center}.___STitle_vtfme_gg_{font-size:14px;color:#191b23;height:32px;width:100%;display:flex;justify-content:center;align-items:center}.___SToday_vtfme_gg_{display:flex;margin-top:12px;justify-content:center}.___SPeriod_vtfme_gg_{display:flex;flex-direction:column;margin-bottom:8px}.___SIndicator_vtfme_gg_{color:#6c6e79}.___SHumanizedDate_vtfme_gg_{position:absolute;pointer-events:none}.___SDateRange_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SSingleDateInput_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SMask_vtfme_gg_,.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_:focus-within .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}.___SDateRange_vtfme_gg_:focus-within .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}"
|
|
56
56
|
/*__inner_css_end__*/
|
|
57
|
-
, "
|
|
57
|
+
, "vtfme_gg_")
|
|
58
58
|
/*__reshadow_css_end__*/
|
|
59
59
|
, {
|
|
60
|
-
"__SPopper": "
|
|
61
|
-
"__SHeader": "
|
|
62
|
-
"__STitle": "
|
|
63
|
-
"__SToday": "
|
|
64
|
-
"__SPeriod": "
|
|
65
|
-
"__SIndicator": "
|
|
66
|
-
"__SHumanizedDate": "
|
|
67
|
-
"__SDateRange": "
|
|
68
|
-
"__SMask": "
|
|
69
|
-
"__SValue": "
|
|
70
|
-
"__SSingleDateInput": "
|
|
71
|
-
"_focus-within": "__focus-
|
|
72
|
-
"__SInputMask": "
|
|
73
|
-
"_noHumanizedDate": "
|
|
74
|
-
"__SRangeSep": "
|
|
75
|
-
"_fulfilled": "
|
|
60
|
+
"__SPopper": "___SPopper_vtfme_gg_",
|
|
61
|
+
"__SHeader": "___SHeader_vtfme_gg_",
|
|
62
|
+
"__STitle": "___STitle_vtfme_gg_",
|
|
63
|
+
"__SToday": "___SToday_vtfme_gg_",
|
|
64
|
+
"__SPeriod": "___SPeriod_vtfme_gg_",
|
|
65
|
+
"__SIndicator": "___SIndicator_vtfme_gg_",
|
|
66
|
+
"__SHumanizedDate": "___SHumanizedDate_vtfme_gg_",
|
|
67
|
+
"__SDateRange": "___SDateRange_vtfme_gg_",
|
|
68
|
+
"__SMask": "___SMask_vtfme_gg_",
|
|
69
|
+
"__SValue": "___SValue_vtfme_gg_",
|
|
70
|
+
"__SSingleDateInput": "___SSingleDateInput_vtfme_gg_",
|
|
71
|
+
"_focus-within": "__focus-within_vtfme_gg_",
|
|
72
|
+
"__SInputMask": "___SInputMask_vtfme_gg_",
|
|
73
|
+
"_noHumanizedDate": "__noHumanizedDate_vtfme_gg_",
|
|
74
|
+
"__SRangeSep": "___SRangeSep_vtfme_gg_",
|
|
75
|
+
"_fulfilled": "__fulfilled_vtfme_gg_"
|
|
76
76
|
});
|
|
77
77
|
import assignProps from '@semcore/utils/lib/assignProps';
|
|
78
78
|
var defaultAllowedParts = {
|
|
@@ -34,27 +34,27 @@ var style = (
|
|
|
34
34
|
/*__reshadow_css_start__*/
|
|
35
35
|
_sstyled.insert(
|
|
36
36
|
/*__inner_css_start__*/
|
|
37
|
-
".
|
|
37
|
+
".___SPopper_vtfme_gg_{padding:16px;outline:0}.___SPopper_vtfme_gg_::-moz-focus-inner{border:none;padding:0}.___SPopper_vtfme_gg_:active,.___SPopper_vtfme_gg_:focus,.___SPopper_vtfme_gg_:hover{outline:0;text-decoration:none}.___SPopper_vtfme_gg_:focus{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SHeader_vtfme_gg_{display:flex;align-items:center}.___STitle_vtfme_gg_{font-size:14px;color:#191b23;height:32px;width:100%;display:flex;justify-content:center;align-items:center}.___SToday_vtfme_gg_{display:flex;margin-top:12px;justify-content:center}.___SPeriod_vtfme_gg_{display:flex;flex-direction:column;margin-bottom:8px}.___SIndicator_vtfme_gg_{color:#6c6e79}.___SHumanizedDate_vtfme_gg_{position:absolute;pointer-events:none}.___SDateRange_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SSingleDateInput_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SMask_vtfme_gg_,.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_:focus-within .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}.___SDateRange_vtfme_gg_:focus-within .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}"
|
|
38
38
|
/*__inner_css_end__*/
|
|
39
|
-
, "
|
|
39
|
+
, "vtfme_gg_")
|
|
40
40
|
/*__reshadow_css_end__*/
|
|
41
41
|
, {
|
|
42
|
-
"__SPopper": "
|
|
43
|
-
"__SHeader": "
|
|
44
|
-
"__STitle": "
|
|
45
|
-
"__SToday": "
|
|
46
|
-
"__SPeriod": "
|
|
47
|
-
"__SIndicator": "
|
|
48
|
-
"__SHumanizedDate": "
|
|
49
|
-
"__SDateRange": "
|
|
50
|
-
"__SMask": "
|
|
51
|
-
"__SValue": "
|
|
52
|
-
"__SSingleDateInput": "
|
|
53
|
-
"_focus-within": "__focus-
|
|
54
|
-
"__SInputMask": "
|
|
55
|
-
"_noHumanizedDate": "
|
|
56
|
-
"__SRangeSep": "
|
|
57
|
-
"_fulfilled": "
|
|
42
|
+
"__SPopper": "___SPopper_vtfme_gg_",
|
|
43
|
+
"__SHeader": "___SHeader_vtfme_gg_",
|
|
44
|
+
"__STitle": "___STitle_vtfme_gg_",
|
|
45
|
+
"__SToday": "___SToday_vtfme_gg_",
|
|
46
|
+
"__SPeriod": "___SPeriod_vtfme_gg_",
|
|
47
|
+
"__SIndicator": "___SIndicator_vtfme_gg_",
|
|
48
|
+
"__SHumanizedDate": "___SHumanizedDate_vtfme_gg_",
|
|
49
|
+
"__SDateRange": "___SDateRange_vtfme_gg_",
|
|
50
|
+
"__SMask": "___SMask_vtfme_gg_",
|
|
51
|
+
"__SValue": "___SValue_vtfme_gg_",
|
|
52
|
+
"__SSingleDateInput": "___SSingleDateInput_vtfme_gg_",
|
|
53
|
+
"_focus-within": "__focus-within_vtfme_gg_",
|
|
54
|
+
"__SInputMask": "___SInputMask_vtfme_gg_",
|
|
55
|
+
"_noHumanizedDate": "__noHumanizedDate_vtfme_gg_",
|
|
56
|
+
"__SRangeSep": "___SRangeSep_vtfme_gg_",
|
|
57
|
+
"_fulfilled": "__fulfilled_vtfme_gg_"
|
|
58
58
|
});
|
|
59
59
|
import includesDate from '../utils/includesDate';
|
|
60
60
|
var i18n = {
|
|
@@ -41,27 +41,27 @@ var style = (
|
|
|
41
41
|
/*__reshadow_css_start__*/
|
|
42
42
|
_sstyled.insert(
|
|
43
43
|
/*__inner_css_start__*/
|
|
44
|
-
".
|
|
44
|
+
".___SPopper_vtfme_gg_{padding:16px;outline:0}.___SPopper_vtfme_gg_::-moz-focus-inner{border:none;padding:0}.___SPopper_vtfme_gg_:active,.___SPopper_vtfme_gg_:focus,.___SPopper_vtfme_gg_:hover{outline:0;text-decoration:none}.___SPopper_vtfme_gg_:focus{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SHeader_vtfme_gg_{display:flex;align-items:center}.___STitle_vtfme_gg_{font-size:14px;color:#191b23;height:32px;width:100%;display:flex;justify-content:center;align-items:center}.___SToday_vtfme_gg_{display:flex;margin-top:12px;justify-content:center}.___SPeriod_vtfme_gg_{display:flex;flex-direction:column;margin-bottom:8px}.___SIndicator_vtfme_gg_{color:#6c6e79}.___SHumanizedDate_vtfme_gg_{position:absolute;pointer-events:none}.___SDateRange_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SSingleDateInput_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SSingleDateInput_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SValue_vtfme_gg_{opacity:0}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_:focus-within .___SHumanizedDate_vtfme_gg_{opacity:0;z-index:-1000}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_:focus-within .___SMask_vtfme_gg_,.___SDateRange_vtfme_gg_:focus-within .___SValue_vtfme_gg_{opacity:1}.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SMask_vtfme_gg_,.___SInputMask_vtfme_gg_.__noHumanizedDate_vtfme_gg_ .___SValue_vtfme_gg_{opacity:1}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_.__focus-within_vtfme_gg_ .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_ .___SInputMask_vtfme_gg_:focus-within .___SMask_vtfme_gg_{background-color:rgba(0,143,248,.2)}.___SDateRange_vtfme_gg_.__focus-within_vtfme_gg_ .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}.___SDateRange_vtfme_gg_:focus-within .___SRangeSep_vtfme_gg_,.___SRangeSep_vtfme_gg_.__fulfilled_vtfme_gg_{color:#191b23}"
|
|
45
45
|
/*__inner_css_end__*/
|
|
46
|
-
, "
|
|
46
|
+
, "vtfme_gg_")
|
|
47
47
|
/*__reshadow_css_end__*/
|
|
48
48
|
, {
|
|
49
|
-
"__SPopper": "
|
|
50
|
-
"__SHeader": "
|
|
51
|
-
"__STitle": "
|
|
52
|
-
"__SToday": "
|
|
53
|
-
"__SPeriod": "
|
|
54
|
-
"__SIndicator": "
|
|
55
|
-
"__SHumanizedDate": "
|
|
56
|
-
"__SDateRange": "
|
|
57
|
-
"__SMask": "
|
|
58
|
-
"__SValue": "
|
|
59
|
-
"__SSingleDateInput": "
|
|
60
|
-
"_focus-within": "__focus-
|
|
61
|
-
"__SInputMask": "
|
|
62
|
-
"_noHumanizedDate": "
|
|
63
|
-
"__SRangeSep": "
|
|
64
|
-
"_fulfilled": "
|
|
49
|
+
"__SPopper": "___SPopper_vtfme_gg_",
|
|
50
|
+
"__SHeader": "___SHeader_vtfme_gg_",
|
|
51
|
+
"__STitle": "___STitle_vtfme_gg_",
|
|
52
|
+
"__SToday": "___SToday_vtfme_gg_",
|
|
53
|
+
"__SPeriod": "___SPeriod_vtfme_gg_",
|
|
54
|
+
"__SIndicator": "___SIndicator_vtfme_gg_",
|
|
55
|
+
"__SHumanizedDate": "___SHumanizedDate_vtfme_gg_",
|
|
56
|
+
"__SDateRange": "___SDateRange_vtfme_gg_",
|
|
57
|
+
"__SMask": "___SMask_vtfme_gg_",
|
|
58
|
+
"__SValue": "___SValue_vtfme_gg_",
|
|
59
|
+
"__SSingleDateInput": "___SSingleDateInput_vtfme_gg_",
|
|
60
|
+
"_focus-within": "__focus-within_vtfme_gg_",
|
|
61
|
+
"__SInputMask": "___SInputMask_vtfme_gg_",
|
|
62
|
+
"_noHumanizedDate": "__noHumanizedDate_vtfme_gg_",
|
|
63
|
+
"__SRangeSep": "___SRangeSep_vtfme_gg_",
|
|
64
|
+
"_fulfilled": "__fulfilled_vtfme_gg_"
|
|
65
65
|
});
|
|
66
66
|
var i18n = {
|
|
67
67
|
de: de,
|
|
@@ -114,12 +114,12 @@ var stylesBtn = (
|
|
|
114
114
|
/*__reshadow_css_start__*/
|
|
115
115
|
sstyled.insert(
|
|
116
116
|
/*__inner_css_start__*/
|
|
117
|
-
".
|
|
117
|
+
".___SInner_14rx4_gg_{justify-content:flex-start}"
|
|
118
118
|
/*__inner_css_end__*/
|
|
119
|
-
, "
|
|
119
|
+
, "14rx4_gg_")
|
|
120
120
|
/*__reshadow_css_end__*/
|
|
121
121
|
, {
|
|
122
|
-
"__SInner": "
|
|
122
|
+
"__SInner": "___SInner_14rx4_gg_"
|
|
123
123
|
});
|
|
124
124
|
export var Period = /*#__PURE__*/function (_Component) {
|
|
125
125
|
_inherits(Period, _Component);
|
package/lib/es6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React, { ChangeEvent, ComponentProps } from 'react';\nimport dayjs from 'dayjs';\nimport { Box, IBoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { CProps, Merge, PropGetterFn, ReturnEl } from '@semcore/core';\nimport Dropdown, { IDropdownProps } from '@semcore/dropdown';\nimport { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\nimport BaseTrigger from '@semcore/base-trigger';\nimport Input from '@semcore/input';\nimport InputMask from '@semcore/input-mask';\n\nexport type DateConstructorParams = string | number | Date;\n\nexport interface ICalendarProps extends IBoxProps {\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Array of dates blocked for selection\n * Accepts the date or the range of dates for specifying infinity ([Date | false, Date | false]), crontab(6,7)\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * @ignore\n * */\n highlighted?: DateConstructorParams[];\n /**\n * @ignore\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: Date;\n}\n\nexport interface ICalendarDaysContext {\n days: ICalendarUnitProps[];\n}\n\nexport interface ICalendarMonthsContext {\n months: ICalendarUnitProps[];\n}\n\nexport interface ICalendarUnitProps extends IBoxProps {\n selected?: boolean;\n outdated?: boolean;\n disabled?: boolean;\n today?: boolean;\n startSelected?: boolean;\n endSelected?: boolean;\n highlighted?: boolean;\n startHighlighted?: boolean;\n endHighlighted?: boolean;\n children?: React.ReactNode;\n}\n\nexport interface ICalendarContext {\n getUnitProps: PropGetterFn;\n}\n\ndeclare const Calendar: (<T>(\n props: CProps<ICalendarProps & T, ICalendarContext, IAbstractDatePickerHandlers>,\n) => ReturnEl) & {\n Unit: <T>(props: ICalendarUnitProps & T) => ReturnEl;\n};\n\nexport interface IDatePickerProps extends IDropdownProps, IWithI18nEnhanceProps {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams;\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams;\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n}\n\nexport interface IDateRangePickerProps extends IDropdownProps, IWithI18nEnhanceProps {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams[];\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l' | 'xl';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ComponentProps<typeof Button> & { value: Date[] })[];\n}\n\nexport interface IDateRangePickerPeriodProps extends IBoxProps {\n /**\n * Current selected period\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated by clicking the button for switching the selected period.\n * */\n onChange?: (date: Date[]) => void;\n /**\n * To be activated by hovering a cursor over the button for changing the current displayed month.\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * To be activated by hovering a cursor over the button for selecting the dates.\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ComponentProps<typeof Button> & { value: Date[] })[];\n}\n\nexport interface IDatePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getTodayProps: PropGetterFn;\n}\n\nexport interface IAbstractDatePickerHandlers {\n displayedPeriod: (value: DateConstructorParams) => void;\n visible: (index: boolean) => void;\n highlighted: (list: DateConstructorParams[]) => void;\n value: (index: DateConstructorParams) => void;\n}\n\nexport interface IDatePickerHandlers {\n visible: (index: boolean) => void;\n}\n\nexport interface IInputTriggerProps {\n value: Date;\n /**\n * Date input placeholder characters\n * @default { year: 'Y'; month: 'M'; day: 'D' }\n */\n placeholders: { year: string; month: string; day: string };\n onChange: (date: Date, event: ChangeEvent) => void;\n locale: string;\n onDisplayedPeriodChange: (date: Date) => void;\n}\n\nexport interface ISingleDateInputProps extends IInputTriggerProps {}\n\nexport interface IDateRangeProps extends IInputTriggerProps {}\n\nexport interface IDatePickerMaskedInputProps {\n date: Date;\n onDateChange: (date: Date, event: ChangeEvent) => void;\n onDisplayedPeriodChange: (date: Date) => void;\n locale: string;\n parts: { year: Boolean; month: Boolean; day: Boolean };\n disabledDates: (Date | (Date | false)[] | string)[];\n}\n\ndeclare const InputTrigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, IInputTriggerProps> & T,\n) => ReturnEl) & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n SingleDateInput: (<T>(\n props: Merge<ComponentProps<typeof InputMask>, ISingleDateInputProps> & T,\n ) => ReturnEl) & {\n Indicator: typeof Input.Addon;\n MaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n };\n DateRange: (<T>(\n props: Merge<ComponentProps<typeof InputMask>, IDateRangeProps> & T,\n ) => ReturnEl) & {\n Indicator: typeof Input.Addon;\n RangeSep: typeof Input.Addon;\n FromMaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n ToMaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n };\n};\n\ndeclare const DatePicker: ((\n props: CProps<IDatePickerProps, IDatePickerContext & ICalendarDaysContext, IDatePickerHandlers>,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IDatePickerContext>) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Today: typeof Box;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IDateRangePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n}\n\ndeclare const DateRangePicker: ((\n props: CProps<\n IDateRangePickerProps,\n IDateRangePickerContext & ICalendarDaysContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: InputTrigger;\n Popper: <T>(props: ComponentProps<typeof Dropdown.Popper> & T) => ReturnEl;\n Header: typeof Box;\n Title: <T>(\n props: CProps<IDateRangePickerProps & IBoxProps & T, IDateRangePickerContext>,\n ) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: <T>(props: IDateRangePickerPeriodProps & T) => ReturnEl;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IMonthPickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n}\n\ndeclare const MonthPicker: ((\n props: CProps<\n IDatePickerProps,\n IMonthPickerContext & ICalendarMonthsContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IMonthPickerContext>) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IMonthRangePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n}\n\ndeclare const MonthRangePicker: ((\n props: CProps<\n IDateRangePickerProps,\n IMonthRangePickerContext & ICalendarMonthsContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(\n props: CProps<IDateRangePickerProps & IBoxProps & T, IMonthRangePickerContext>,\n ) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: <T>(props: IDateRangePickerPeriodProps & T) => ReturnEl;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport { DatePicker, DateRangePicker, MonthPicker, MonthRangePicker };\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React, { ChangeEvent, ComponentProps } from 'react';\nimport dayjs from 'dayjs';\nimport { Box, IBoxProps } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport { CProps, Merge, PropGetterFn, ReturnEl } from '@semcore/core';\nimport Dropdown, { IDropdownProps } from '@semcore/dropdown';\nimport { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\nimport BaseTrigger from '@semcore/base-trigger';\nimport Input from '@semcore/input';\nimport InputMask from '@semcore/input-mask';\n\nexport type DateConstructorParams = string | number | Date;\n\nexport interface ICalendarProps extends IBoxProps {\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Array of dates blocked for selection\n * Accepts the date or the range of dates for specifying infinity ([Date | false, Date | false]), crontab(6,7)\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * @ignore\n * */\n highlighted?: DateConstructorParams[];\n /**\n * @ignore\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: Date;\n}\n\nexport interface ICalendarDaysContext {\n days: ICalendarUnitProps[];\n}\n\nexport interface ICalendarMonthsContext {\n months: ICalendarUnitProps[];\n}\n\nexport interface ICalendarUnitProps extends IBoxProps {\n selected?: boolean;\n outdated?: boolean;\n disabled?: boolean;\n today?: boolean;\n startSelected?: boolean;\n endSelected?: boolean;\n highlighted?: boolean;\n startHighlighted?: boolean;\n endHighlighted?: boolean;\n children?: React.ReactNode;\n}\n\nexport interface ICalendarContext {\n getUnitProps: PropGetterFn;\n}\n\ndeclare const Calendar: (<T>(\n props: CProps<ICalendarProps & T, ICalendarContext, IAbstractDatePickerHandlers>,\n) => ReturnEl) & {\n Unit: <T>(props: ICalendarUnitProps & T) => ReturnEl;\n};\n\nexport interface IDatePickerProps extends IDropdownProps, IWithI18nEnhanceProps {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams;\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams;\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n}\n\nexport interface IDateRangePickerProps extends IDropdownProps, IWithI18nEnhanceProps {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams[];\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (Date | (Date | false)[] | string)[];\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l' | 'xl';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ComponentProps<typeof Button> & { value: Date[] })[];\n}\n\nexport interface IDateRangePickerPeriodProps extends IBoxProps {\n /**\n * Current selected period\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated by clicking the button for switching the selected period.\n * */\n onChange?: (date: Date[]) => void;\n /**\n * To be activated by hovering a cursor over the button for changing the current displayed month.\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * To be activated by hovering a cursor over the button for selecting the dates.\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ComponentProps<typeof Button> & { value: Date[] })[];\n}\n\nexport interface IDatePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getTodayProps: PropGetterFn;\n}\n\nexport interface IAbstractDatePickerHandlers {\n displayedPeriod: (value: DateConstructorParams) => void;\n visible: (index: boolean) => void;\n highlighted: (list: DateConstructorParams[]) => void;\n value: (index: DateConstructorParams) => void;\n}\n\nexport interface IDatePickerHandlers {\n visible: (index: boolean) => void;\n}\n\nexport interface IInputTriggerProps {\n value: Date;\n /**\n * Date input placeholder characters\n * @default { year: 'Y'; month: 'M'; day: 'D' }\n */\n placeholders: { year: string; month: string; day: string };\n onChange: (date: Date, event: ChangeEvent) => void;\n locale: string;\n onDisplayedPeriodChange: (date: Date) => void;\n}\n\nexport interface ISingleDateInputProps extends IInputTriggerProps {}\n\nexport interface IDateRangeProps extends IInputTriggerProps {}\n\nexport interface IDatePickerMaskedInputProps {\n date: Date;\n onDateChange: (date: Date, event: ChangeEvent) => void;\n onDisplayedPeriodChange: (date: Date) => void;\n locale: string;\n parts: { year: Boolean; month: Boolean; day: Boolean };\n disabledDates: (Date | (Date | false)[] | string)[];\n}\n\ndeclare const InputTrigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, IInputTriggerProps> & T,\n) => ReturnEl) & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n SingleDateInput: (<T>(\n props: Merge<ComponentProps<typeof InputMask>, ISingleDateInputProps> & T,\n ) => ReturnEl) & {\n Indicator: typeof Input.Addon;\n MaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n };\n DateRange: (<T>(\n props: Merge<ComponentProps<typeof InputMask>, IDateRangeProps> & T,\n ) => ReturnEl) & {\n Indicator: typeof Input.Addon;\n RangeSep: typeof Input.Addon;\n FromMaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n ToMaskedInput: <T>(\n props: Merge<ComponentProps<typeof InputMask.Value>, IDatePickerMaskedInputProps> & T,\n ) => ReturnEl;\n };\n};\n\ndeclare const DatePicker: ((\n props: CProps<IDatePickerProps, IDatePickerContext & ICalendarDaysContext, IDatePickerHandlers>,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: typeof InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IDatePickerContext>) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Today: typeof Box;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IDateRangePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n}\n\ndeclare const DateRangePicker: ((\n props: CProps<\n IDateRangePickerProps,\n IDateRangePickerContext & ICalendarDaysContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: typeof InputTrigger;\n Popper: <T>(props: ComponentProps<typeof Dropdown.Popper> & T) => ReturnEl;\n Header: typeof Box;\n Title: <T>(\n props: CProps<IDateRangePickerProps & IBoxProps & T, IDateRangePickerContext>,\n ) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: <T>(props: IDateRangePickerPeriodProps & T) => ReturnEl;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IMonthPickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n}\n\ndeclare const MonthPicker: ((\n props: CProps<\n IDatePickerProps,\n IMonthPickerContext & ICalendarMonthsContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: typeof InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IMonthPickerContext>) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport interface IMonthRangePickerContext {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n}\n\ndeclare const MonthRangePicker: ((\n props: CProps<\n IDateRangePickerProps,\n IMonthRangePickerContext & ICalendarMonthsContext,\n IDatePickerHandlers\n >,\n) => ReturnEl) & {\n /** @deprecated `DatePicker.Trigger` is deprecated, consider migrating to `DatePicker.InputTrigger` instead */\n Trigger: (<T>(\n props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,\n ) => ReturnEl) & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n InputTrigger: typeof InputTrigger;\n Popper: typeof Dropdown.Popper;\n Header: typeof Box;\n Title: <T>(\n props: CProps<IDateRangePickerProps & IBoxProps & T, IMonthRangePickerContext>,\n ) => ReturnEl;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: <T>(props: IDateRangePickerPeriodProps & T) => ReturnEl;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport { DatePicker, DateRangePicker, MonthPicker, MonthRangePicker };\n"],"mappings":""}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -289,7 +289,7 @@ declare const DatePicker: ((
|
|
|
289
289
|
Addon: typeof BaseTrigger.Addon;
|
|
290
290
|
Text: typeof BaseTrigger.Text;
|
|
291
291
|
};
|
|
292
|
-
InputTrigger: InputTrigger;
|
|
292
|
+
InputTrigger: typeof InputTrigger;
|
|
293
293
|
Popper: typeof Dropdown.Popper;
|
|
294
294
|
Header: typeof Box;
|
|
295
295
|
Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IDatePickerContext>) => ReturnEl;
|
|
@@ -326,7 +326,7 @@ declare const DateRangePicker: ((
|
|
|
326
326
|
Addon: typeof BaseTrigger.Addon;
|
|
327
327
|
Text: typeof BaseTrigger.Text;
|
|
328
328
|
};
|
|
329
|
-
InputTrigger: InputTrigger;
|
|
329
|
+
InputTrigger: typeof InputTrigger;
|
|
330
330
|
Popper: <T>(props: ComponentProps<typeof Dropdown.Popper> & T) => ReturnEl;
|
|
331
331
|
Header: typeof Box;
|
|
332
332
|
Title: <T>(
|
|
@@ -366,7 +366,7 @@ declare const MonthPicker: ((
|
|
|
366
366
|
Addon: typeof BaseTrigger.Addon;
|
|
367
367
|
Text: typeof BaseTrigger.Text;
|
|
368
368
|
};
|
|
369
|
-
InputTrigger: InputTrigger;
|
|
369
|
+
InputTrigger: typeof InputTrigger;
|
|
370
370
|
Popper: typeof Dropdown.Popper;
|
|
371
371
|
Header: typeof Box;
|
|
372
372
|
Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IMonthPickerContext>) => ReturnEl;
|
|
@@ -402,7 +402,7 @@ declare const MonthRangePicker: ((
|
|
|
402
402
|
Addon: typeof BaseTrigger.Addon;
|
|
403
403
|
Text: typeof BaseTrigger.Text;
|
|
404
404
|
};
|
|
405
|
-
InputTrigger: InputTrigger;
|
|
405
|
+
InputTrigger: typeof InputTrigger;
|
|
406
406
|
Popper: typeof Dropdown.Popper;
|
|
407
407
|
Header: typeof Box;
|
|
408
408
|
Title: <T>(
|