@useblu/ocean-react 1.36.0 → 1.36.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
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.36.1](https://github.com/ocean-ds/ocean-web/compare/v1.36.0...v1.36.1) (2022-10-11)
7
+
8
+ ### Bug Fixes
9
+
10
+ - datepicker ([#1023](https://github.com/ocean-ds/ocean-web/issues/1023)) ([1f01013](https://github.com/ocean-ds/ocean-web/commit/1f010133d95da42e169908c7a3cd5e2add889d59))
11
+
6
12
  # [1.36.0](https://github.com/ocean-ds/ocean-web/compare/v1.35.2...v1.36.0) (2022-10-06)
7
13
 
8
14
  ### Features
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../src/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAU,MAAM,UAAU,CAAC;AAgB1C,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,oBAAY,eAAe,GAAG;IAI5B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAM1B,MAAM,EAAE,gBAAgB,CAAC;IAMzB,QAAQ,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAM5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAMnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAMnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAMpB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,UAAU;;YAnDN,gBAAgB;sBAMN,gBAAgB,KAAK,IAAI;;;;;;;;kLA+N5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../src/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAU,MAAM,UAAU,CAAC;AAgB1C,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,oBAAY,eAAe,GAAG;IAI5B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAM1B,MAAM,EAAE,gBAAgB,CAAC;IAMzB,QAAQ,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAM5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAMnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAMnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAMpB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,UAAU;;YAnDN,gBAAgB;sBAMN,gBAAgB,KAAK,IAAI;;;;;;;;kLAmO5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
package/index.es.js CHANGED
@@ -34085,14 +34085,14 @@ var DatePicker = e.forwardRef(function DatePicker(_a, ref) {
34085
34085
  var DatePickerHeader = function (props) {
34086
34086
  var _a = useNavigation(), goToMonth = _a.goToMonth, nextMonth = _a.nextMonth, previousMonth = _a.previousMonth;
34087
34087
  return (e.createElement("div", { className: "ods-datepicker__caption" },
34088
- e.createElement(IconButton, { "data-testid": "calendar-left-arrow", size: "sm", className: classNames('ods-datepicker__navButtons', 'ods-datepicker__navButtonPrev'), disabled: !previousMonth, onClick: function () { return previousMonth && goToMonth(previousMonth); } },
34088
+ e.createElement(IconButton, { type: "button", "data-testid": "calendar-left-arrow", size: "sm", className: classNames('ods-datepicker__navButtons', 'ods-datepicker__navButtonPrev'), disabled: !previousMonth, onClick: function () { return previousMonth && goToMonth(previousMonth); } },
34089
34089
  e.createElement($, { size: 20 })),
34090
34090
  e.createElement("h2", { "data-testid": "calendar-caption-month" }, format(props.displayMonth, 'MMMM yyyy', { locale: localeOption })),
34091
- e.createElement(IconButton, { "data-testid": "calendar-right-arrow", size: "sm", className: classNames('ods-datepicker__navButtons', 'ods-datepicker__navButtonNext'), disabled: !nextMonth, onClick: function () { return nextMonth && goToMonth(nextMonth); } },
34091
+ e.createElement(IconButton, { type: "button", "data-testid": "calendar-right-arrow", size: "sm", className: classNames('ods-datepicker__navButtons', 'ods-datepicker__navButtonNext'), disabled: !nextMonth, onClick: function () { return nextMonth && goToMonth(nextMonth); } },
34092
34092
  e.createElement(ee, { size: 20 }))));
34093
34093
  };
34094
34094
  return (e.createElement("div", null,
34095
- e.createElement("div", { className: "ods-datepicker-background", "data-testid": "date-picker-outside", onClick: handleCloseByOutside }),
34095
+ showDayPicker && (e.createElement("div", { className: "ods-datepicker-background", "data-testid": "date-picker-outside", onClick: handleCloseByOutside })),
34096
34096
  e.createElement("div", __assign$1({ className: classNames('ods-datepicker', className), ref: ref }, rest),
34097
34097
  e.createElement("div", { className: "ods-datepicker__form-row" },
34098
34098
  e.createElement("div", { className: "ods-datepicker__form-controls", "data-testid": "date-picker-first-field-wrapper", onClick: function () { return createHandleToggleClick('start-date'); } },