@croquiscom/pds 0.35.0 → 0.35.1
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 +6 -0
- package/dist/components/date-picker/Caption.d.ts +3 -1
- package/dist/components/date-picker/DatePickerLocale.d.ts +9 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/locales/en.d.ts +10 -0
- package/dist/locales/ja.d.ts +10 -0
- package/dist/locales/ko.d.ts +10 -0
- package/locales/en.esm.js +10 -0
- package/locales/en.esm.js.map +1 -1
- package/locales/en.js +10 -0
- package/locales/en.js.map +1 -1
- package/locales/ja.esm.js +10 -0
- package/locales/ja.esm.js.map +1 -1
- package/locales/ja.js +10 -0
- package/locales/ja.js.map +1 -1
- package/locales/ko.esm.js +10 -0
- package/locales/ko.esm.js.map +1 -1
- package/locales/ko.js +10 -0
- package/locales/ko.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Locale } from 'date-fns';
|
|
2
3
|
import { CaptionProps } from 'react-day-picker';
|
|
3
4
|
export declare const captionColor: (disabled: boolean) => string;
|
|
4
5
|
export declare const CAPTION_SIZE = 24;
|
|
@@ -9,5 +10,6 @@ export interface DatePickerCaptionProps extends CaptionProps {
|
|
|
9
10
|
multipleMonths?: boolean;
|
|
10
11
|
className?: string;
|
|
11
12
|
currentMonth?: Date;
|
|
13
|
+
locale: Locale;
|
|
12
14
|
}
|
|
13
|
-
export declare const Caption: ({ multipleMonths, currentMonth: controlledMonth, className, ...props }: DatePickerCaptionProps) => JSX.Element;
|
|
15
|
+
export declare const Caption: ({ multipleMonths, currentMonth: controlledMonth, className, locale, ...props }: DatePickerCaptionProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Locale } from 'date-fns';
|
|
2
|
+
import { ProviderProps } from '../provider';
|
|
3
|
+
type DatePickerLocale = {
|
|
4
|
+
key: Locale['code'];
|
|
5
|
+
value: Locale;
|
|
6
|
+
};
|
|
7
|
+
export declare const datePickerLocales: DatePickerLocale[];
|
|
8
|
+
export declare function getDatePickerLocale(currentLang?: ProviderProps['locale']['lang']): Locale;
|
|
9
|
+
export {};
|