@stenajs-webui/calendar 15.2.0 → 15.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v15.3.1 (Wed Mar 30 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Render only one March month [#444](https://github.com/StenaIT/stenajs-webui/pull/444) ([@lindskogen](https://github.com/lindskogen))
6
+
7
+ #### Authors: 1
8
+
9
+ - Johan Lindskogen ([@lindskogen](https://github.com/lindskogen))
10
+
11
+ ---
12
+
13
+ # v15.2.1 (Tue Mar 01 2022)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - Disable calendar widget for https://stenait.github.io/stenajs-webui/?path=/story/calendar-input-datetextinput--disabled (fixes AB#86042) [#438](https://github.com/StenaIT/stenajs-webui/pull/438) ([@lindskogen](https://github.com/lindskogen))
18
+
19
+ #### Authors: 1
20
+
21
+ - Johan Lindskogen ([@lindskogen](https://github.com/lindskogen))
22
+
23
+ ---
24
+
1
25
  # v15.0.1 (Thu Feb 17 2022)
2
26
 
3
27
  #### 🐛 Bug Fix
package/dist/index.es.js CHANGED
@@ -621,8 +621,7 @@ var WithMonthSwitcherBelow = function (_a) {
621
621
  var MonthPickerCell = function (_a) {
622
622
  var value = _a.value, onValueChange = _a.onValueChange, month = _a.month;
623
623
  var label = useMemo(function () {
624
- var now = new Date();
625
- now.setMonth(month);
624
+ var now = new Date(2000, month, 1);
626
625
  return format(now, "MMM");
627
626
  }, [month]);
628
627
  return (React.createElement(Row, { width: "64px", justifyContent: "center", spacing: 0.5, indent: 0.5 }, value === month ? (React.createElement(PrimaryButton, { label: label, onClick: function () { return onValueChange && onValueChange(month); } })) : (React.createElement(FlatButton, { label: label, onClick: function () { return onValueChange && onValueChange(month); } }))));
@@ -1279,7 +1278,7 @@ var DateTextInput = function (_a) {
1279
1278
  ? parse(value, dateFormat, new Date())
1280
1279
  : undefined, minDate: minDate, maxDate: maxDate, theme: calendarTheme })) },
1281
1280
  React.createElement(TextInput, __assign({}, props, { variant: invalid ? "error" : "standard", disableContentPaddingRight: true, contentRight: !hideCalenderIcon ? (React.createElement(Row, { alignItems: "center", indent: 0.5 },
1282
- React.createElement(FlatButton, { size: "small", leftIcon: faCalendarAlt$1, onClick: toggleCalendar }))) : undefined, onValueChange: onValueChangeHandler, placeholder: placeholder, value: value || "", min: minDate, max: maxDate, size: 10 })))));
1281
+ React.createElement(FlatButton, { size: "small", disabled: props.disabled, leftIcon: faCalendarAlt$1, onClick: toggleCalendar }))) : undefined, onValueChange: onValueChangeHandler, placeholder: placeholder, value: value || "", min: minDate, max: maxDate, size: 10 })))));
1283
1282
  };
1284
1283
 
1285
1284
  var formatHours = function (hours) {