@simplybusiness/mobius-datepicker 10.0.13 → 10.0.15
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 +18 -0
- package/dist/cjs/components/DatePicker/DatePicker.js.map +2 -2
- package/dist/cjs/components/DatePicker/index.js.map +2 -2
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/meta.json +4 -4
- package/dist/esm/{chunk-TAURHEHL.js → chunk-Y5XZS64K.js} +1 -1
- package/dist/esm/{chunk-TAURHEHL.js.map → chunk-Y5XZS64K.js.map} +2 -2
- package/dist/esm/components/DatePicker/DatePicker.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/meta.json +7 -7
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/DatePicker/utils/formatErrorMessageText.d.ts +1 -1
- package/package.json +22 -21
- package/src/components/DatePicker/DatePicker.tsx +1 -1
- package/src/styles.d.ts +5 -0
|
@@ -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
|
|
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.
|
|
4
|
+
"version": "10.0.15",
|
|
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": "
|
|
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": "
|
|
54
|
+
"check-types": "tsgo --pretty",
|
|
55
55
|
"lint:css": "lint-css",
|
|
56
56
|
"lint:css:fix": "lint-css --fix"
|
|
57
57
|
},
|
|
@@ -60,45 +60,46 @@
|
|
|
60
60
|
"dist/**/*.css"
|
|
61
61
|
],
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@eslint/compat": "^2.0.
|
|
64
|
-
"@eslint/eslintrc": "^3.3.
|
|
65
|
-
"@eslint/js": "^9.39.
|
|
63
|
+
"@eslint/compat": "^2.0.5",
|
|
64
|
+
"@eslint/eslintrc": "^3.3.5",
|
|
65
|
+
"@eslint/js": "^9.39.4",
|
|
66
66
|
"@simplybusiness/build-scripts": "^3.0.0",
|
|
67
|
-
"@simplybusiness/eslint-config": "^2.0.
|
|
67
|
+
"@simplybusiness/eslint-config": "^2.0.7",
|
|
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.
|
|
75
|
-
"@typescript-eslint/parser": "^8.
|
|
76
|
-
"@
|
|
77
|
-
"
|
|
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",
|
|
77
|
+
"@vitest/coverage-v8": "^4.1.4",
|
|
78
|
+
"eslint": "^9.39.4",
|
|
78
79
|
"eslint-config-prettier": "^10.1.8",
|
|
79
80
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
80
81
|
"eslint-plugin-import": "^2.32.0",
|
|
81
82
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
82
83
|
"eslint-plugin-prettier": "^5.5.5",
|
|
83
84
|
"eslint-plugin-react": "^7.37.5",
|
|
84
|
-
"eslint-plugin-react-hooks": "^7.0
|
|
85
|
+
"eslint-plugin-react-hooks": "^7.1.0",
|
|
85
86
|
"eslint-plugin-ssr-friendly": "^1.3.0",
|
|
86
|
-
"eslint-plugin-testing-library": "^7.16.
|
|
87
|
-
"prettier": "^3.8.
|
|
88
|
-
"react": "^19.2.
|
|
89
|
-
"react-dom": "^19.2.
|
|
87
|
+
"eslint-plugin-testing-library": "^7.16.2",
|
|
88
|
+
"prettier": "^3.8.3",
|
|
89
|
+
"react": "^19.2.5",
|
|
90
|
+
"react-dom": "^19.2.5",
|
|
90
91
|
"tslib": "^2.8.1",
|
|
91
|
-
"typescript": "^
|
|
92
|
-
"vitest": "^4.
|
|
92
|
+
"typescript": "^6.0.3",
|
|
93
|
+
"vitest": "^4.1.4"
|
|
93
94
|
},
|
|
94
95
|
"peerDependencies": {
|
|
95
96
|
"react": "^19.2.0",
|
|
96
97
|
"react-dom": "^19.2.0"
|
|
97
98
|
},
|
|
98
99
|
"dependencies": {
|
|
99
|
-
"@simplybusiness/icons": "^5.1.
|
|
100
|
-
"@simplybusiness/mobius": "^10.
|
|
101
|
-
"@simplybusiness/mobius-hooks": "^0.2.
|
|
100
|
+
"@simplybusiness/icons": "^5.1.1",
|
|
101
|
+
"@simplybusiness/mobius": "^10.5.0",
|
|
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
|
|
150
|
+
containerRef.current?.contains(event.relatedTarget)
|
|
151
151
|
) {
|
|
152
152
|
return;
|
|
153
153
|
}
|