@useblu/ocean-react 1.36.0 → 1.36.3

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,18 @@
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.3](https://github.com/ocean-ds/ocean-web/compare/v1.36.2...v1.36.3) (2022-10-11)
7
+
8
+ ### Bug Fixes
9
+
10
+ - datepicker (remove input patterns) ([#1027](https://github.com/ocean-ds/ocean-web/issues/1027)) ([0d89c08](https://github.com/ocean-ds/ocean-web/commit/0d89c080f7a8f93531d458ac266b51cc1ebe8631))
11
+
12
+ ## [1.36.1](https://github.com/ocean-ds/ocean-web/compare/v1.36.0...v1.36.1) (2022-10-11)
13
+
14
+ ### Bug Fixes
15
+
16
+ - datepicker ([#1023](https://github.com/ocean-ds/ocean-web/issues/1023)) ([1f01013](https://github.com/ocean-ds/ocean-web/commit/1f010133d95da42e169908c7a3cd5e2add889d59))
17
+
6
18
  # [1.36.0](https://github.com/ocean-ds/ocean-web/compare/v1.35.2...v1.36.0) (2022-10-06)
7
19
 
8
20
  ### 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,CA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AgB,KAAK,IAAI;;;;;;;;kLAiO5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
package/index.es.js CHANGED
@@ -34085,27 +34085,27 @@ 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'); } },
34099
34099
  labels && labels.from && (e.createElement("label", { htmlFor: "start-date" }, labels.from)),
34100
34100
  e.createElement(Input, { ref: input1Ref, "data-testid": "datepicker-input-1", id: "start-date", type: "text", className: classNames({
34101
34101
  'date-field-focussed': currentField === 'start-date'
34102
- }), name: "start-date", value: values.from, onChange: (editable && inputChange) || undefined, placeholder: getInputPlaceholder(), adornment: e.createElement(wn, { size: 20, stroke: "#B6B9CC" }), autoComplete: "off", readOnly: !editable, disabled: disabled, error: !disabled && error, pattern: "[0-9]*", inputMode: "numeric", helperText: (!disabled && !showDayPicker && error && helperText) ||
34102
+ }), name: "start-date", value: values.from, onChange: (editable && inputChange) || undefined, placeholder: getInputPlaceholder(), adornment: e.createElement(wn, { size: 20, stroke: "#B6B9CC" }), autoComplete: "off", readOnly: !editable, disabled: disabled, error: !disabled && error, inputMode: "numeric", helperText: (!disabled && !showDayPicker && error && helperText) ||
34103
34103
  undefined, maxLength: 10 })),
34104
34104
  e.createElement("div", { className: "ods-datepicker__form-controls", "data-testid": "date-picker-second-field-wrapper", onClick: function () { return createHandleToggleClick('end-date'); } },
34105
34105
  labels && labels.to && (e.createElement("label", { htmlFor: "end-date" }, labels.to)),
34106
34106
  e.createElement(Input, { ref: input2Ref, "data-testid": "datepicker-input-2", id: "end-date", type: "text", className: classNames({
34107
34107
  'date-field-focussed': currentField === 'end-date'
34108
- }), name: "end-date", value: values.to, onChange: (editable && inputChange) || undefined, placeholder: getInputPlaceholder(), adornment: e.createElement(wn, { size: 20, stroke: "#B6B9CC" }), autoComplete: "off", readOnly: !editable, disabled: disabled, error: !disabled && error, pattern: "[0-9]*", inputMode: "numeric", helperText: (!disabled && !showDayPicker && error && helperText) ||
34108
+ }), name: "end-date", value: values.to, onChange: (editable && inputChange) || undefined, placeholder: getInputPlaceholder(), adornment: e.createElement(wn, { size: 20, stroke: "#B6B9CC" }), autoComplete: "off", readOnly: !editable, disabled: disabled, error: !disabled && error, inputMode: "numeric", helperText: (!disabled && !showDayPicker && error && helperText) ||
34109
34109
  undefined, maxLength: 10 })),
34110
34110
  !disabled && showDayPicker && (e.createElement("div", { "data-testid": "datepicker-calendar" },
34111
34111
  e.createElement(DayPicker, { mode: "range", locale: localeOption, weekStartsOn: 0, classNames: CustomStyles, className: className, onDayClick: function (day) { return handleDayClick(day); }, onDayMouseEnter: function (day) { return handleDayMouseEnter(day); }, formatters: { formatDay: formatDay }, selected: selectedDays, disabled: disabledDays, components: {