@availity/mui-datepicker 0.2.0 → 0.3.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 +8 -2
- package/dist/index.d.ts +2 -1
- package/package.json +2 -2
- package/src/lib/Datepicker.tsx +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
-
## [0.
|
|
5
|
+
## [0.3.0](https://github.com/Availity/element/compare/@availity/mui-datepicker@0.2.0...@availity/mui-datepicker@0.3.0) (2023-12-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add form story ([11d1f6c](https://github.com/Availity/element/commit/11d1f6c6191540bf02ff42d4056ac553eecc8c73))
|
|
6
11
|
|
|
12
|
+
## [0.2.0](https://github.com/Availity/element/compare/@availity/mui-datepicker@0.1.0...@availity/mui-datepicker@0.2.0) (2023-11-28)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
9
15
|
|
|
10
|
-
|
|
16
|
+
- **mui-datepicker:** make props match autocomplete pattern ([93696f3](https://github.com/Availity/element/commit/93696f3a24828ed2ea3a313a3531b8c7bf195599))
|
|
11
17
|
|
|
12
18
|
## 0.1.0 (2023-11-08)
|
|
13
19
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
|
|
|
3
3
|
import { Dayjs } from 'dayjs';
|
|
4
4
|
|
|
5
5
|
type DatepickerProps = {
|
|
6
|
+
value: Dayjs | string | null;
|
|
6
7
|
/** Props applied to the `TextField` component */
|
|
7
8
|
FieldProps?: TextFieldProps;
|
|
8
|
-
} & Omit<DatePickerProps<Dayjs, Dayjs>, 'components' | 'componentsProps' | 'desktopModeMediaQuery' | 'DialogProps' | 'OpenPickerButtonProps' | 'openTo' | 'orientation' | 'PaperProps' | 'PopperProps' | 'reduceAnimations' | 'renderInput' | 'rifmFormatter' | 'showToolbar' | 'ToolbarComponent' | 'toolbarFormat' | 'toolbarPlaceholder' | 'toolbarTitle' | 'TransitionComponent'>;
|
|
9
|
+
} & Omit<DatePickerProps<Dayjs, Dayjs>, 'components' | 'componentsProps' | 'desktopModeMediaQuery' | 'DialogProps' | 'OpenPickerButtonProps' | 'openTo' | 'orientation' | 'PaperProps' | 'PopperProps' | 'reduceAnimations' | 'renderInput' | 'rifmFormatter' | 'showToolbar' | 'ToolbarComponent' | 'toolbarFormat' | 'toolbarPlaceholder' | 'toolbarTitle' | 'TransitionComponent' | 'value'>;
|
|
9
10
|
declare const Datepicker: ({ FieldProps, ...props }: DatepickerProps) => JSX.Element;
|
|
10
11
|
|
|
11
12
|
export { Datepicker, DatepickerProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-datepicker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Availity MUI Datepicker Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@availity/mui-textfield": "0.
|
|
35
|
+
"@availity/mui-textfield": "0.5.0",
|
|
36
36
|
"@mui/x-date-pickers": "^5.0.15",
|
|
37
37
|
"dayjs": "^1.11.9"
|
|
38
38
|
},
|
package/src/lib/Datepicker.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { DatePicker as MuiDatePicker, DatePickerProps as MuiDatePickerProps } fr
|
|
|
3
3
|
import type { Dayjs } from 'dayjs';
|
|
4
4
|
|
|
5
5
|
export type DatepickerProps = {
|
|
6
|
+
value: Dayjs | string | null;
|
|
6
7
|
/** Props applied to the `TextField` component */
|
|
7
8
|
FieldProps?: TextFieldProps;
|
|
8
9
|
} & Omit<
|
|
@@ -25,6 +26,7 @@ export type DatepickerProps = {
|
|
|
25
26
|
| 'toolbarPlaceholder'
|
|
26
27
|
| 'toolbarTitle'
|
|
27
28
|
| 'TransitionComponent'
|
|
29
|
+
| 'value'
|
|
28
30
|
>;
|
|
29
31
|
|
|
30
32
|
export const Datepicker = ({ FieldProps, ...props }: DatepickerProps): JSX.Element => {
|