@simplybusiness/mobius-datepicker 10.0.13 → 10.0.14

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.
@@ -1,4 +1,4 @@
1
1
  export declare const DEFAULT_INVALID_DATE_MESSAGE = "Please enter a valid date";
2
2
  export declare const DEFAULT_BEFORE_MIN = "The date you selected is before the earliest allowed date";
3
3
  export declare const DEFAULT_AFTER_MAX = "The date you selected is after the latest allowed date";
4
- export declare const formatErrorMessageText: (actual: string, min?: string, max?: string) => "Please enter a valid date" | "The date you selected is before the earliest allowed date" | "The date you selected is after the latest allowed date";
4
+ export declare const formatErrorMessageText: (actual: string, min?: string, max?: string) => "Please enter a valid date" | "The date you selected is after the latest allowed date" | "The date you selected is before the earliest allowed date";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplybusiness/mobius-datepicker",
3
3
  "license": "UNLICENSED",
4
- "version": "10.0.13",
4
+ "version": "10.0.14",
5
5
  "description": "Mobius date picker component",
6
6
  "repository": {
7
7
  "type": "git",
@@ -46,12 +46,12 @@
46
46
  "turbo:build": "yarn build:esm && yarn build:cjs && yarn build:types",
47
47
  "build:esm": "build-package esm",
48
48
  "build:cjs": "build-package cjs",
49
- "build:types": "tsc --emitDeclarationOnly --project tsconfig.build.json",
49
+ "build:types": "tsgo --emitDeclarationOnly --project tsconfig.build.json",
50
50
  "lint": "eslint",
51
51
  "lint:fix": "eslint --fix",
52
52
  "test": "vitest run",
53
53
  "test:coverage": "vitest run --coverage",
54
- "check-types": "tsc --noEmit --pretty",
54
+ "check-types": "tsgo --pretty",
55
55
  "lint:css": "lint-css",
56
56
  "lint:css:fix": "lint-css --fix"
57
57
  },
@@ -64,15 +64,16 @@
64
64
  "@eslint/eslintrc": "^3.3.4",
65
65
  "@eslint/js": "^9.39.3",
66
66
  "@simplybusiness/build-scripts": "^3.0.0",
67
- "@simplybusiness/eslint-config": "^2.0.5",
67
+ "@simplybusiness/eslint-config": "^2.0.6",
68
68
  "@testing-library/dom": "^10.4.1",
69
69
  "@testing-library/jest-dom": "6.9.1",
70
70
  "@testing-library/react": "^16.3.2",
71
71
  "@testing-library/user-event": "^14.6.1",
72
72
  "@types/react": "^19.2.14",
73
73
  "@types/react-dom": "^19.2.3",
74
- "@typescript-eslint/eslint-plugin": "^8.56.1",
75
- "@typescript-eslint/parser": "^8.56.1",
74
+ "@typescript-eslint/eslint-plugin": "^8.59.0",
75
+ "@typescript-eslint/parser": "^8.59.0",
76
+ "@typescript/native-preview": "7.0.0-dev.20260421.2",
76
77
  "@vitest/coverage-v8": "^4.0.18",
77
78
  "eslint": "^9.39.3",
78
79
  "eslint-config-prettier": "^10.1.8",
@@ -88,7 +89,7 @@
88
89
  "react": "^19.2.4",
89
90
  "react-dom": "^19.2.4",
90
91
  "tslib": "^2.8.1",
91
- "typescript": "^5.9.3",
92
+ "typescript": "^6.0.3",
92
93
  "vitest": "^4.0.18"
93
94
  },
94
95
  "peerDependencies": {
@@ -96,9 +97,9 @@
96
97
  "react-dom": "^19.2.0"
97
98
  },
98
99
  "dependencies": {
99
- "@simplybusiness/icons": "^5.1.0",
100
- "@simplybusiness/mobius": "^10.4.3",
101
- "@simplybusiness/mobius-hooks": "^0.2.0",
100
+ "@simplybusiness/icons": "^5.1.1",
101
+ "@simplybusiness/mobius": "^10.4.4",
102
+ "@simplybusiness/mobius-hooks": "^0.2.1",
102
103
  "classnames": "^2.5.1",
103
104
  "date-fns": "^4.1.0",
104
105
  "react-day-picker": "^9.14.0"
@@ -147,7 +147,7 @@ export const DatePicker = (props: DatePickerProps) => {
147
147
  if (
148
148
  isOpen &&
149
149
  event.relatedTarget &&
150
- containerRef.current?.contains(event.relatedTarget as HTMLElement)
150
+ containerRef.current?.contains(event.relatedTarget)
151
151
  ) {
152
152
  return;
153
153
  }
package/src/styles.d.ts CHANGED
@@ -1 +1,6 @@
1
+ declare module "*.css" {
2
+ const classes: { [className: string]: string };
3
+ export default classes;
4
+ }
5
+
1
6
  declare module "*.module.css";