@semcore/date-picker 16.2.0-prerelease.5 → 16.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [16.2.0] - 2025-08-13
5
+ ## [16.2.0] - 2025-10-03
6
6
 
7
7
  ### Changed
8
8
 
@@ -18,7 +18,7 @@ import PickerAbstract from "./components/PickerAbstract.mjs";
18
18
  import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
19
19
  import { formatDDMMYY } from "./utils/formatDate.mjs";
20
20
  import { includesDate } from "./utils/includesDate.mjs";
21
- var DatePickerRoot = /* @__PURE__ */ function(_PickerAbstract) {
21
+ var DatePickerRoot = /* @__PURE__ */ (function(_PickerAbstract) {
22
22
  function DatePickerRoot2() {
23
23
  var _this;
24
24
  _classCallCheck(this, DatePickerRoot2);
@@ -102,14 +102,14 @@ var DatePickerRoot = /* @__PURE__ */ function(_PickerAbstract) {
102
102
  };
103
103
  }
104
104
  }]);
105
- }(PickerAbstract);
105
+ })(PickerAbstract);
106
106
  _defineProperty(DatePickerRoot, "displayName", "DatePicker");
107
107
  _defineProperty(DatePickerRoot, "defaultProps", function(props) {
108
108
  return _objectSpread(_objectSpread({}, PickerAbstract.defaultProps(props)), {}, {
109
109
  children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(DatePicker.Trigger, null), /* @__PURE__ */ React.createElement(DatePicker.Popper, null))
110
110
  });
111
111
  });
112
- var Today = /* @__PURE__ */ function(_Component) {
112
+ var Today = /* @__PURE__ */ (function(_Component) {
113
113
  function Today2() {
114
114
  _classCallCheck(this, Today2);
115
115
  return _callSuper(this, Today2, arguments);
@@ -131,7 +131,7 @@ var Today = /* @__PURE__ */ function(_Component) {
131
131
  })));
132
132
  }
133
133
  }]);
134
- }(Component);
134
+ })(Component);
135
135
  _defineProperty(Today, "enhance", [i18nEnhance(localizedMessages)]);
136
136
  var DatePicker = createComponent(DatePickerRoot, {
137
137
  Trigger: InputTrigger,
@@ -38,7 +38,7 @@ RangeInput.SingleDateInput = InputTrigger.SingleDateInput;
38
38
  RangeInput.DateRange = InputTrigger.DateRange;
39
39
  RangeInput.DateRangeFromInput = InputTrigger.DateRangeFromInput;
40
40
  RangeInput.DateRangeToInput = InputTrigger.DateRangeToInput;
41
- var DateRangeComparatorRoot = /* @__PURE__ */ function(_RangeComparatorAbstr) {
41
+ var DateRangeComparatorRoot = /* @__PURE__ */ (function(_RangeComparatorAbstr) {
42
42
  function DateRangeComparatorRoot2() {
43
43
  var _this;
44
44
  _classCallCheck(this, DateRangeComparatorRoot2);
@@ -120,7 +120,7 @@ var DateRangeComparatorRoot = /* @__PURE__ */ function(_RangeComparatorAbstr) {
120
120
  };
121
121
  }
122
122
  }]);
123
- }(DateRangeComparatorAbstract);
123
+ })(DateRangeComparatorAbstract);
124
124
  _defineProperty(DateRangeComparatorRoot, "displayName", "DateRangeComparator");
125
125
  _defineProperty(DateRangeComparatorRoot, "defaultProps", function(props) {
126
126
  return _objectSpread(_objectSpread({}, DateRangeComparatorAbstract.defaultProps(props)), {}, {
@@ -12,7 +12,7 @@ import { Period, Next, Prev, Title, Header, Popper, Trigger, InputTrigger } from
12
12
  import { CalendarDays } from "./components/Calendar.mjs";
13
13
  import RangePickerAbstract, { Reset, Apply } from "./components/RangePickerAbstract.mjs";
14
14
  import shortDateRangeFormat from "./utils/shortDateRangeFormat.mjs";
15
- var DateRangePickerRoot = /* @__PURE__ */ function(_RangePickerAbstract) {
15
+ var DateRangePickerRoot = /* @__PURE__ */ (function(_RangePickerAbstract) {
16
16
  function DateRangePickerRoot2() {
17
17
  var _this;
18
18
  _classCallCheck(this, DateRangePickerRoot2);
@@ -88,7 +88,7 @@ var DateRangePickerRoot = /* @__PURE__ */ function(_RangePickerAbstract) {
88
88
  });
89
89
  }
90
90
  }]);
91
- }(RangePickerAbstract);
91
+ })(RangePickerAbstract);
92
92
  _defineProperty(DateRangePickerRoot, "displayName", "DateRangePicker");
93
93
  _defineProperty(DateRangePickerRoot, "defaultProps", function(props) {
94
94
  return _objectSpread(_objectSpread({}, RangePickerAbstract.defaultProps(props)), {}, {
@@ -45,7 +45,7 @@ RangeInput.SingleDateInput = InputTrigger.SingleDateInput;
45
45
  RangeInput.DateRange = InputTrigger.DateRange;
46
46
  RangeInput.DateRangeFromInput = InputTrigger.DateRangeFromInput;
47
47
  RangeInput.DateRangeToInput = InputTrigger.DateRangeToInput;
48
- var MonthDateRangeComparatorRoot = /* @__PURE__ */ function(_RangeComparatorAbstr) {
48
+ var MonthDateRangeComparatorRoot = /* @__PURE__ */ (function(_RangeComparatorAbstr) {
49
49
  function MonthDateRangeComparatorRoot2() {
50
50
  var _this;
51
51
  _classCallCheck(this, MonthDateRangeComparatorRoot2);
@@ -157,7 +157,7 @@ var MonthDateRangeComparatorRoot = /* @__PURE__ */ function(_RangeComparatorAbst
157
157
  };
158
158
  }
159
159
  }]);
160
- }(DateRangeComparatorAbstract);
160
+ })(DateRangeComparatorAbstract);
161
161
  _defineProperty(MonthDateRangeComparatorRoot, "displayName", "MonthDateRangeComparator");
162
162
  _defineProperty(MonthDateRangeComparatorRoot, "defaultProps", function(props) {
163
163
  return _objectSpread(_objectSpread({}, DateRangeComparatorAbstract.defaultProps(props)), {}, {
@@ -16,7 +16,7 @@ var dateParts = {
16
16
  month: true,
17
17
  year: true
18
18
  };
19
- var MonthPickerRoot = /* @__PURE__ */ function(_PickerAbstract) {
19
+ var MonthPickerRoot = /* @__PURE__ */ (function(_PickerAbstract) {
20
20
  function MonthPickerRoot2() {
21
21
  var _this;
22
22
  _classCallCheck(this, MonthPickerRoot2);
@@ -78,7 +78,7 @@ var MonthPickerRoot = /* @__PURE__ */ function(_PickerAbstract) {
78
78
  });
79
79
  }
80
80
  }]);
81
- }(PickerAbstract);
81
+ })(PickerAbstract);
82
82
  _defineProperty(MonthPickerRoot, "displayName", "MonthPicker");
83
83
  _defineProperty(MonthPickerRoot, "defaultProps", function(props) {
84
84
  return _objectSpread(_objectSpread({}, PickerAbstract.defaultProps(props)), {}, {
@@ -17,7 +17,7 @@ var dateParts = {
17
17
  month: true,
18
18
  year: true
19
19
  };
20
- var MonthRangePickerRoot = /* @__PURE__ */ function(_RangePickerAbstract) {
20
+ var MonthRangePickerRoot = /* @__PURE__ */ (function(_RangePickerAbstract) {
21
21
  function MonthRangePickerRoot2() {
22
22
  var _this;
23
23
  _classCallCheck(this, MonthRangePickerRoot2);
@@ -100,7 +100,7 @@ var MonthRangePickerRoot = /* @__PURE__ */ function(_RangePickerAbstract) {
100
100
  });
101
101
  }
102
102
  }]);
103
- }(RangePickerAbstract);
103
+ })(RangePickerAbstract);
104
104
  _defineProperty(MonthRangePickerRoot, "displayName", "MonthRangePicker");
105
105
  _defineProperty(MonthRangePickerRoot, "defaultProps", function(props) {
106
106
  return _objectSpread(_objectSpread({}, RangePickerAbstract.defaultProps(props)), {}, {
@@ -67,7 +67,7 @@ function getDayJSLocaleParams(locale) {
67
67
  weekStart: 1
68
68
  }, dayjs.Ls[locale]);
69
69
  }
70
- var CalendarWeekDaysRoot = /* @__PURE__ */ function(_Component) {
70
+ var CalendarWeekDaysRoot = /* @__PURE__ */ (function(_Component) {
71
71
  function CalendarWeekDaysRoot2() {
72
72
  _classCallCheck(this, CalendarWeekDaysRoot2);
73
73
  return _callSuper(this, CalendarWeekDaysRoot2, arguments);
@@ -108,7 +108,7 @@ var CalendarWeekDaysRoot = /* @__PURE__ */ function(_Component) {
108
108
  return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SWeekDays, _ref6.cn("SWeekDays", _objectSpread({}, assignProps({}, _ref))), /* @__PURE__ */ React.createElement(Children, _ref6.cn("Children", {})));
109
109
  }
110
110
  }]);
111
- }(Component);
111
+ })(Component);
112
112
  _defineProperty(CalendarWeekDaysRoot, "displayName", "CalendarWeekDays");
113
113
  _defineProperty(CalendarWeekDaysRoot, "style", style);
114
114
  _defineProperty(CalendarWeekDaysRoot, "defaultProps", {
@@ -171,7 +171,7 @@ function resolveSelecting(date, unit, value) {
171
171
  endSelected
172
172
  };
173
173
  }
174
- var CalendarAbstract = /* @__PURE__ */ function(_Component2) {
174
+ var CalendarAbstract = /* @__PURE__ */ (function(_Component2) {
175
175
  function CalendarAbstract2() {
176
176
  var _this;
177
177
  _classCallCheck(this, CalendarAbstract2);
@@ -316,7 +316,7 @@ var CalendarAbstract = /* @__PURE__ */ function(_Component2) {
316
316
  return description;
317
317
  }
318
318
  }]);
319
- }(Component);
319
+ })(Component);
320
320
  _defineProperty(CalendarAbstract, "style", style);
321
321
  function CalendarUnit(_ref14) {
322
322
  var _ref3 = arguments[0], _ref8;
@@ -330,7 +330,7 @@ function CalendarUnit(_ref14) {
330
330
  }, _ref3))));
331
331
  }
332
332
  CalendarUnit.enhance = [keyboardFocusEnhance()];
333
- var CalendarDaysRoot = /* @__PURE__ */ function(_CalendarAbstract2) {
333
+ var CalendarDaysRoot = /* @__PURE__ */ (function(_CalendarAbstract2) {
334
334
  function CalendarDaysRoot2() {
335
335
  _classCallCheck(this, CalendarDaysRoot2);
336
336
  return _callSuper(this, CalendarDaysRoot2, arguments);
@@ -414,7 +414,7 @@ var CalendarDaysRoot = /* @__PURE__ */ function(_CalendarAbstract2) {
414
414
  }), description)));
415
415
  }
416
416
  }]);
417
- }(CalendarAbstract);
417
+ })(CalendarAbstract);
418
418
  _defineProperty(CalendarDaysRoot, "displayName", "CalendarDays");
419
419
  _defineProperty(CalendarDaysRoot, "defaultProps", {
420
420
  displayedPeriod: new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)),
@@ -430,7 +430,7 @@ _defineProperty(CalendarDaysRoot, "defaultProps", {
430
430
  });
431
431
  }
432
432
  });
433
- var CalendarMonthsRoot = /* @__PURE__ */ function(_CalendarAbstract3) {
433
+ var CalendarMonthsRoot = /* @__PURE__ */ (function(_CalendarAbstract3) {
434
434
  function CalendarMonthsRoot2() {
435
435
  var _this5;
436
436
  _classCallCheck(this, CalendarMonthsRoot2);
@@ -489,7 +489,7 @@ var CalendarMonthsRoot = /* @__PURE__ */ function(_CalendarAbstract3) {
489
489
  }), description)));
490
490
  }
491
491
  }]);
492
- }(CalendarAbstract);
492
+ })(CalendarAbstract);
493
493
  _defineProperty(CalendarMonthsRoot, "displayName", "CalendarMonths");
494
494
  _defineProperty(CalendarMonthsRoot, "defaultProps", {
495
495
  locale: "en",
@@ -75,7 +75,7 @@ var getLatestDate = function getLatestDate2() {
75
75
  var latestDate = allDates[0];
76
76
  return latestDate;
77
77
  };
78
- var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
78
+ var DateRangeComparatorAbstract = /* @__PURE__ */ (function(_Component) {
79
79
  function DateRangeComparatorAbstract2() {
80
80
  var _this;
81
81
  _classCallCheck(this, DateRangeComparatorAbstract2);
@@ -545,7 +545,7 @@ var DateRangeComparatorAbstract = /* @__PURE__ */ function(_Component) {
545
545
  };
546
546
  }
547
547
  }]);
548
- }(Component);
548
+ })(Component);
549
549
  _defineProperty(DateRangeComparatorAbstract, "displayName", "DateRangeComparator");
550
550
  _defineProperty(DateRangeComparatorAbstract, "style", style);
551
551
  _defineProperty(DateRangeComparatorAbstract, "enhance", [i18nEnhance(localizedMessages)]);
@@ -68,7 +68,7 @@ var defaultAllowedParts = {
68
68
  day: true
69
69
  };
70
70
  var exampleDate = new Date(2e3, 4, 29);
71
- var InputTriggerRoot = /* @__PURE__ */ function(_Component) {
71
+ var InputTriggerRoot = /* @__PURE__ */ (function(_Component) {
72
72
  function InputTriggerRoot2() {
73
73
  _classCallCheck(this, InputTriggerRoot2);
74
74
  return _callSuper(this, InputTriggerRoot2, arguments);
@@ -118,14 +118,14 @@ var InputTriggerRoot = /* @__PURE__ */ function(_Component) {
118
118
  }, _ref))), /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {})));
119
119
  }
120
120
  }]);
121
- }(Component);
121
+ })(Component);
122
122
  _defineProperty(InputTriggerRoot, "displayName", "InputTrigger");
123
123
  _defineProperty(InputTriggerRoot, "style", style);
124
124
  _defineProperty(InputTriggerRoot, "defaultProps", {
125
125
  duration: 300,
126
126
  popoverVisible: true
127
127
  });
128
- var SingleDateInputRoot = /* @__PURE__ */ function(_Component2) {
128
+ var SingleDateInputRoot = /* @__PURE__ */ (function(_Component2) {
129
129
  function SingleDateInputRoot2() {
130
130
  var _this;
131
131
  _classCallCheck(this, SingleDateInputRoot2);
@@ -223,7 +223,7 @@ var SingleDateInputRoot = /* @__PURE__ */ function(_Component2) {
223
223
  }, _ref2))), /* @__PURE__ */ React.createElement(NeighborLocation, _ref9.cn("NeighborLocation", {}), /* @__PURE__ */ React.createElement(Children, _ref9.cn("Children", {}))));
224
224
  }
225
225
  }]);
226
- }(Component);
226
+ })(Component);
227
227
  _defineProperty(SingleDateInputRoot, "displayName", "SingleDateInput");
228
228
  _defineProperty(SingleDateInputRoot, "style", style);
229
229
  _defineProperty(SingleDateInputRoot, "defaultProps", {
@@ -233,7 +233,7 @@ _defineProperty(SingleDateInputRoot, "defaultProps", {
233
233
  defaultDisabledDateInputAttempt: false,
234
234
  showError: true
235
235
  });
236
- var DateRangeRoot = /* @__PURE__ */ function(_Component3) {
236
+ var DateRangeRoot = /* @__PURE__ */ (function(_Component3) {
237
237
  function DateRangeRoot2() {
238
238
  var _this3;
239
239
  _classCallCheck(this, DateRangeRoot2);
@@ -457,7 +457,7 @@ var DateRangeRoot = /* @__PURE__ */ function(_Component3) {
457
457
  }, _ref3))), /* @__PURE__ */ React.createElement(Children, _ref0.cn("Children", {})));
458
458
  }
459
459
  }]);
460
- }(Component);
460
+ })(Component);
461
461
  _defineProperty(DateRangeRoot, "displayName", "DateRange");
462
462
  _defineProperty(DateRangeRoot, "style", style);
463
463
  _defineProperty(DateRangeRoot, "defaultProps", {
@@ -54,7 +54,7 @@ var style = (
54
54
  var INTERACTION_TAGS = ["INPUT"];
55
55
  var INTERACTION_KEYS = ["ArrowDown", "Enter", " "];
56
56
  var defaultDisplayedPeriod = new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0));
57
- var PickerAbstract = /* @__PURE__ */ function(_Component) {
57
+ var PickerAbstract = /* @__PURE__ */ (function(_Component) {
58
58
  function PickerAbstract2() {
59
59
  var _this;
60
60
  _classCallCheck(this, PickerAbstract2);
@@ -259,7 +259,7 @@ var PickerAbstract = /* @__PURE__ */ function(_Component) {
259
259
  };
260
260
  }
261
261
  }]);
262
- }(Component);
262
+ })(Component);
263
263
  _defineProperty(PickerAbstract, "displayName", "DatePicker");
264
264
  _defineProperty(PickerAbstract, "style", style);
265
265
  _defineProperty(PickerAbstract, "enhance", [i18nEnhance(localizedMessages)]);
@@ -63,7 +63,7 @@ function getEndDate(value) {
63
63
  var _value = _slicedToArray(value, 2), startDate = _value[0], _value$ = _value[1], endDate = _value$ === void 0 ? startDate : _value$;
64
64
  return endDate;
65
65
  }
66
- var RangePickerAbstract = /* @__PURE__ */ function(_Component) {
66
+ var RangePickerAbstract = /* @__PURE__ */ (function(_Component) {
67
67
  function RangePickerAbstract2() {
68
68
  var _this;
69
69
  _classCallCheck(this, RangePickerAbstract2);
@@ -403,7 +403,7 @@ var RangePickerAbstract = /* @__PURE__ */ function(_Component) {
403
403
  };
404
404
  }
405
405
  }]);
406
- }(Component);
406
+ })(Component);
407
407
  _defineProperty(RangePickerAbstract, "displayName", "DatePicker");
408
408
  _defineProperty(RangePickerAbstract, "style", style);
409
409
  _defineProperty(RangePickerAbstract, "enhance", [i18nEnhance(localizedMessages)]);
@@ -76,7 +76,7 @@ function Next(_ref13) {
76
76
  "size": "l"
77
77
  }, _ref7), children ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(Button.Addon, null, /* @__PURE__ */ React.createElement(ChevronRight, null)));
78
78
  }
79
- var Period = /* @__PURE__ */ function(_Component) {
79
+ var Period = /* @__PURE__ */ (function(_Component) {
80
80
  function Period2() {
81
81
  var _this;
82
82
  _classCallCheck(this, Period2);
@@ -130,7 +130,7 @@ var Period = /* @__PURE__ */ function(_Component) {
130
130
  }));
131
131
  }
132
132
  }]);
133
- }(Component);
133
+ })(Component);
134
134
  export {
135
135
  Header,
136
136
  InputTrigger,
@@ -1,4 +1,4 @@
1
- const isBetween = function(_o, c, d) {
1
+ const isBetween = (function(_o, c, d) {
2
2
  c.prototype.isBetween = function(a, b, u, i) {
3
3
  var dA = d(a);
4
4
  var dB = d(b);
@@ -7,7 +7,7 @@ const isBetween = function(_o, c, d) {
7
7
  var dBi = i[1] === ")";
8
8
  return (dAi ? this.isAfter(dA, u) : !this.isBefore(dA, u)) && (dBi ? this.isBefore(dB, u) : !this.isAfter(dB, u)) || (dAi ? this.isBefore(dA, u) : !this.isAfter(dA, u)) && (dBi ? this.isAfter(dB, u) : !this.isBefore(dB, u));
9
9
  };
10
- };
10
+ });
11
11
  export {
12
12
  isBetween as default
13
13
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/date-picker",
3
3
  "description": "Semrush DatePicker Component",
4
- "version": "16.2.0-prerelease.5",
4
+ "version": "16.2.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,23 +14,23 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/base-trigger": "16.4.2-prerelease.5",
18
- "@semcore/button": "16.0.10-prerelease.5",
19
- "@semcore/divider": "16.0.10-prerelease.5",
20
- "@semcore/popper": "16.0.10-prerelease.5",
21
- "@semcore/dropdown": "16.1.0-prerelease.5",
22
- "@semcore/icon": "16.5.1-prerelease.5",
23
- "@semcore/input": "16.1.0-prerelease.5",
24
- "@semcore/input-mask": "16.0.10-prerelease.5",
25
- "@semcore/typography": "16.3.0-prerelease.5",
26
- "@semcore/checkbox": "16.2.0-prerelease.5",
27
- "@semcore/tooltip": "16.0.10-prerelease.5",
28
- "@semcore/flex-box": "16.0.10-prerelease.5",
29
- "@semcore/neighbor-location": "16.0.10-prerelease.5",
17
+ "@semcore/base-trigger": "16.4.2",
18
+ "@semcore/button": "16.0.10",
19
+ "@semcore/divider": "16.0.10",
20
+ "@semcore/popper": "16.0.10",
21
+ "@semcore/dropdown": "16.1.0",
22
+ "@semcore/icon": "16.5.1",
23
+ "@semcore/input": "16.1.0",
24
+ "@semcore/input-mask": "16.0.10",
25
+ "@semcore/typography": "16.3.0",
26
+ "@semcore/checkbox": "16.2.0",
27
+ "@semcore/tooltip": "16.0.10",
28
+ "@semcore/flex-box": "16.0.10",
29
+ "@semcore/neighbor-location": "16.0.10",
30
30
  "dayjs": "1.8.36"
31
31
  },
32
32
  "peerDependencies": {
33
- "@semcore/base-components": "^16.4.0-prerelease.5"
33
+ "@semcore/base-components": "^16.0.0"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
@@ -38,8 +38,8 @@
38
38
  "directory": "semcore/date-picker"
39
39
  },
40
40
  "devDependencies": {
41
- "@semcore/core": "16.5.0-prerelease.5",
42
- "@semcore/testing-utils": "1.0.0"
41
+ "@semcore/testing-utils": "1.0.0",
42
+ "@semcore/core": "16.5.0"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "pnpm semcore-builder --source=js && pnpm vite build"