@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.35.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 75d0785: DatePicker, DateRangePicker locale provider 처리 적용 추가
8
+
3
9
  ## 0.35.0
4
10
 
5
11
  ### Minor Changes
@@ -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 {};