@vchasno/ui-kit 0.1.6 → 0.1.7
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 +10 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/types/components/Datepicker/DatePicker.d.ts +4 -0
- package/package.json +3 -3
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
+
import { MaskedInputProps } from 'react-text-mask';
|
|
3
4
|
import type { ErrorFeedback, LoadingFeedback, WithHint } from '../types';
|
|
4
5
|
import './DatePicker.global.css';
|
|
5
6
|
export interface DatePickerProps extends ReactDatePickerProps, Partial<LoadingFeedback & WithHint & ErrorFeedback> {
|
|
6
7
|
label?: string;
|
|
7
8
|
className?: string;
|
|
9
|
+
showMask?: boolean;
|
|
10
|
+
mask?: MaskedInputProps['mask'];
|
|
11
|
+
onChange: ReactDatePickerProps['onChange'];
|
|
8
12
|
}
|
|
9
13
|
/** Компонент вводу дати/часу */
|
|
10
14
|
declare const DatePicker: React.FC<DatePickerProps>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vchasno/ui-kit",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "React UI components for
|
|
3
|
+
"version": "0.1.7",
|
|
4
|
+
"description": "React UI components for Vchasno applications",
|
|
5
5
|
"main": "dist/index.min.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"components",
|
|
28
28
|
"ui",
|
|
29
29
|
"kit",
|
|
30
|
-
"
|
|
30
|
+
"vchasno"
|
|
31
31
|
],
|
|
32
32
|
"resolutions": {
|
|
33
33
|
"jackspeak": "2.1.1"
|