@simplybusiness/mobius-datepicker 6.5.26 → 6.6.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
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bacd6a0: chore: upgrade mobius-datepicker to eslint v9
8
+
9
+ ### Patch Changes
10
+
11
+ - 27dd76d: chore: upgrade dependencies
12
+ - Updated dependencies [27dd76d]
13
+ - @simplybusiness/mobius@5.29.2
14
+
15
+ ## 6.5.27
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [abcd676]
20
+ - @simplybusiness/icons@4.26.0
21
+ - @simplybusiness/mobius@5.29.1
22
+
3
23
  ## 6.5.26
4
24
 
5
25
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -233,7 +233,10 @@ var init_DatePickerModal = __esm({
233
233
  }
234
234
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_mobius.Icon, { icon: import_icons.chevronRight });
235
235
  };
236
- startWeekday = getStartWeekday(navigator?.language);
236
+ startWeekday = getStartWeekday(
237
+ // eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
238
+ typeof navigator !== "undefined" ? navigator?.language : void 0
239
+ );
237
240
  DatePickerModal = ({
238
241
  date,
239
242
  isOpen,
@@ -386,10 +389,7 @@ var DatePicker = (props) => {
386
389
  validationState,
387
390
  isInvalid: isValid === false || isInvalid
388
391
  });
389
- const errorMessageText = isInvalidProp ? (
390
- // eslint-disable-next-line react/destructuring-assignment
391
- formatErrorMessageText(textFieldVal, props.min, props.max)
392
- ) : errorMessage;
392
+ const errorMessageText = isInvalidProp ? formatErrorMessageText(textFieldVal, props.min, props.max) : errorMessage;
393
393
  const touchDevice = isTouchDevice();
394
394
  const validationClasses = (0, import_mobius2.useValidationClasses)({
395
395
  validationState,
@@ -103,7 +103,10 @@ var ChevronComponent = ({
103
103
  }
104
104
  return /* @__PURE__ */ jsx2(Icon, { icon: chevronRight });
105
105
  };
106
- var startWeekday = getStartWeekday(navigator?.language);
106
+ var startWeekday = getStartWeekday(
107
+ // eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope
108
+ typeof navigator !== "undefined" ? navigator?.language : void 0
109
+ );
107
110
  var DatePickerModal = ({
108
111
  date,
109
112
  isOpen,
package/dist/esm/index.js CHANGED
@@ -59,7 +59,7 @@ var validateDateFormat = (date) => {
59
59
 
60
60
  // src/components/DatePicker/DatePicker.tsx
61
61
  import { jsx, jsxs } from "react/jsx-runtime";
62
- var DatePickerModal = lazy(() => import("./DatePickerModal-UP7ZJNEY.js"));
62
+ var DatePickerModal = lazy(() => import("./DatePickerModal-AC36MP2W.js"));
63
63
  var getValidationState = (props) => {
64
64
  const { validationState, isInvalid } = props;
65
65
  if (isInvalid || validationState === "invalid") {
@@ -92,10 +92,7 @@ var DatePicker = (props) => {
92
92
  validationState,
93
93
  isInvalid: isValid === false || isInvalid
94
94
  });
95
- const errorMessageText = isInvalidProp ? (
96
- // eslint-disable-next-line react/destructuring-assignment
97
- formatErrorMessageText(textFieldVal, props.min, props.max)
98
- ) : errorMessage;
95
+ const errorMessageText = isInvalidProp ? formatErrorMessageText(textFieldVal, props.min, props.max) : errorMessage;
99
96
  const touchDevice = isTouchDevice();
100
97
  const validationClasses = useValidationClasses({
101
98
  validationState,