@skedulo/sked-ui 21.9.3 → 21.10.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/dist/components/datepicker/Datepicker.d.ts +6 -1
- package/dist/index.js +426 -381
- package/dist/utils/config-utils.d.ts +13 -0
- package/package.json +1 -1
- package/yarn.lock +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
+
import { DateFormats } from '../../utils/config-utils';
|
|
3
4
|
import { RangeType } from '../calendar-controls/elements/RangePicker';
|
|
4
5
|
export type LocaleType = 'AU' | 'US' | 'UK';
|
|
5
6
|
type CustomInputType = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
@@ -50,9 +51,13 @@ export interface DatepickerProps {
|
|
|
50
51
|
*/
|
|
51
52
|
placeholderText?: string;
|
|
52
53
|
/**
|
|
53
|
-
* The format of the date to display
|
|
54
|
+
* The format of the date to display. Custom date-fns format string
|
|
54
55
|
*/
|
|
55
56
|
dateFormat?: string;
|
|
57
|
+
/**
|
|
58
|
+
* If provided, the 'dateFormat' prop will be ignored and the format from 'dateFormatPreference' will be used instead.
|
|
59
|
+
*/
|
|
60
|
+
dateFormatPreference?: DateFormats;
|
|
56
61
|
/**
|
|
57
62
|
* Any additional styling to add to the datepicker
|
|
58
63
|
*/
|