ingred-ui 14.10.0 → 14.11.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.
@@ -37,11 +37,6 @@ export type NewDatePickerProps = {
37
37
  * カレンダーに表示する年月のフォーマット
38
38
  */
39
39
  monthFormat?: string;
40
- /**
41
- * カレンダーに表示する曜日のリスト
42
- * @memo dayjs().format("ddd") で対応したいが、階層が深くなったりするので一旦静的な値で対処
43
- */
44
- weekList?: string[];
45
40
  /**
46
41
  * 選択可能なカレンダーの領域を制限する
47
42
  * true が返る場合は、選択不可となる
@@ -41,11 +41,6 @@ export type NewDateRangePickerProps = {
41
41
  * カレンダーに表示する年月のフォーマット
42
42
  */
43
43
  monthFormat?: string;
44
- /**
45
- * カレンダーに表示する曜日のリスト
46
- * @memo dayjs().format("ddd") で対応したいが、階層が深くなったりするので一旦静的な値で対処
47
- */
48
- weekList?: string[];
49
44
  /**
50
45
  * 選択可能なカレンダーの領域を制限する
51
46
  * true が返る場合は、選択不可となる
@@ -1,3 +1,2 @@
1
- export declare const weekList: readonly ["日", "月", "火", "水", "木", "金", "土"];
2
1
  export declare const timeList: number[];
3
2
  export declare const defaultHoverWeekTime: string[][];
@@ -43,10 +43,19 @@ export interface Localization {
43
43
  defaultProps: Pick<DateRangePickerProps, "displayFormat" | "monthFormat">;
44
44
  };
45
45
  NewDatePicker?: {
46
- defaultProps: Pick<NewDatePickerProps, "monthFormat" | "weekList">;
46
+ defaultProps: Pick<NewDatePickerProps, "monthFormat"> & {
47
+ weekList: string[];
48
+ };
47
49
  };
48
50
  NewDateRangePicker?: {
49
- defaultProps: Pick<NewDatePickerProps, "monthFormat" | "weekList">;
51
+ defaultProps: Pick<NewDatePickerProps, "monthFormat"> & {
52
+ weekList: string[];
53
+ };
54
+ };
55
+ WeekTimeSelector?: {
56
+ defaultProps: {
57
+ weekList: string[];
58
+ };
50
59
  };
51
60
  };
52
61
  }
@@ -6,6 +6,8 @@ import { LocalizationComponentName } from "../constants/locale";
6
6
  * @returns localized Props.
7
7
  */
8
8
  export declare function useLocaleProps<T>(params: {
9
- props: React.PropsWithChildren<T>;
9
+ props: React.PropsWithChildren<T> & Record<string, any>;
10
10
  name: LocalizationComponentName;
11
- }): React.PropsWithChildren<T>;
11
+ }): T & {
12
+ children?: React.ReactNode;
13
+ } & Record<string, any>;