@transferwise/components 0.0.0-experimental-0cf5b04 → 0.0.0-experimental-1a50591
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/README.md +1 -1
- package/build/index.esm.js +6 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +6 -2
- package/build/index.js.map +1 -1
- package/build/mocks.esm.js +33 -27
- package/build/mocks.esm.js.map +1 -1
- package/build/mocks.js +33 -27
- package/build/mocks.js.map +1 -1
- package/build/types/dateInput/DateInput.d.ts.map +1 -1
- package/package.json +17 -1
- package/src/dateInput/DateInput.tsx +6 -2
- package/build/mocks.d.ts +0 -9
- package/build/mocks.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ Please follow [rules for JS components](https://github.com/transferwise/neptune-
|
|
|
53
53
|
We expose reusable mocks for Jest and Vitest under an isolated entry point. They can be applied by passing the testing framework as the parameter:
|
|
54
54
|
|
|
55
55
|
```ts
|
|
56
|
-
import { mockMatchMedia, mockResizeObserver } from '@transferwise/components/
|
|
56
|
+
import { mockMatchMedia, mockResizeObserver } from '@transferwise/components/mocks';
|
|
57
57
|
import { jest } from '@jest/globals';
|
|
58
58
|
import { vi } from 'vitest';
|
|
59
59
|
|
package/build/index.esm.js
CHANGED
|
@@ -2934,7 +2934,9 @@ const DateInput = ({
|
|
|
2934
2934
|
}), /*#__PURE__*/jsx("div", {
|
|
2935
2935
|
className: `input-group input-group-${size}`,
|
|
2936
2936
|
children: /*#__PURE__*/jsx(Input, {
|
|
2937
|
-
type: "
|
|
2937
|
+
type: "text",
|
|
2938
|
+
inputMode: "numeric",
|
|
2939
|
+
pattern: "[0-9]*",
|
|
2938
2940
|
name: "day",
|
|
2939
2941
|
autoComplete: dayAutoComplete,
|
|
2940
2942
|
value: day || '',
|
|
@@ -2957,7 +2959,9 @@ const DateInput = ({
|
|
|
2957
2959
|
}), /*#__PURE__*/jsx("div", {
|
|
2958
2960
|
className: `input-group input-group-${size}`,
|
|
2959
2961
|
children: /*#__PURE__*/jsx(Input, {
|
|
2960
|
-
type: "
|
|
2962
|
+
type: "text",
|
|
2963
|
+
inputMode: "numeric",
|
|
2964
|
+
pattern: "[0-9]*",
|
|
2961
2965
|
name: "year",
|
|
2962
2966
|
autoComplete: yearAutoComplete,
|
|
2963
2967
|
placeholder: placeholders.year,
|