@mailstep/design-system 0.7.69 → 0.7.70-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.7.69",
3
+ "version": "0.7.70-beta.0",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -54,6 +54,7 @@ var DatePickerRange = function (props) {
54
54
  var firstDate = new Date();
55
55
  firstDate.setHours(0, 0, 0, 0);
56
56
  var secondDate = new Date();
57
+ secondDate.setHours(23, 59, 59, 0);
57
58
  if (initialView === 'future') {
58
59
  secondDate.setMonth(secondDate.getMonth() + 1);
59
60
  }
@@ -56,6 +56,12 @@ export var Timepicker = function (_a) {
56
56
  useEffect(function () {
57
57
  !!value && setTime('minutes', minutes);
58
58
  }, [minutes]);
59
+ useEffect(function () {
60
+ setHours(initialHours);
61
+ }, [initialHours]);
62
+ useEffect(function () {
63
+ setMinutes(initialMinutes);
64
+ }, [initialMinutes]);
59
65
  return (_jsxs(FooterRow, { disabled: disabled, children: [_jsxs("div", { children: [_jsx(Icon, { icon: "clock" }), _jsx(FooterRowLabel, { children: i18n._({ id: 'dataGrid.filterCell.time', message: 'Time' }) })] }), _jsx(x.div, { display: "flex", flexDirection: "column", alignItems: "flex-start", pt: "4px", w: "fit-content", children: _jsxs(x.div, { display: "flex", alignItems: "center", children: [_jsxs(x.div, { display: "flex", flexDirection: "column", children: [_jsx(Btn, { disabled: disabled, onClick: increaseHour, type: "button", children: "\u2039" }), _jsx(Btn, { disabled: disabled, onClick: decreaseHour, type: "button", children: "\u203A" })] }), _jsxs(TimeWrapper, { children: [_jsx(Hours, { value: String(hours).padStart(2, '0'), disabled: disabled, onChange: onHoursChange }), _jsx(x.div, { mx: "1px", children: ":" }), _jsx(Minutes, { value: String(minutes).padStart(2, '0'), disabled: disabled, onChange: onMinutesChange })] }), _jsxs(x.div, { display: "flex", flexDirection: "column", children: [_jsx(Btn, { disabled: disabled, onClick: increaseMinutes, type: "button", children: "\u2039" }), _jsx(Btn, { disabled: disabled, onClick: decreaseMinutes, type: "button", children: "\u203A" })] })] }) })] }));
60
66
  };
61
67
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -32,7 +32,7 @@ var MenuItem = function (_a) {
32
32
  var item = _a.item, ItemComponent = _a.ItemComponent, onClose = _a.onClose;
33
33
  var onClick = item.onClick, link = item.link, hasSeparator = item.hasSeparator, name = item.name, autoClose = item.autoClose;
34
34
  var location = useLocation();
35
- var isActive = link === location.pathname;
35
+ var isActive = link === (location === null || location === void 0 ? void 0 : location.pathname);
36
36
  var onClickCallback = useCallback(function (e) {
37
37
  if (onClick) {
38
38
  e.preventDefault();