@zvoove/unity-ui 2.36.0 → 2.37.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/bin/cli.mjs +3692 -3800
- package/dist/unity-ui.cjs.js +1 -1
- package/dist/unity-ui.css +1 -1
- package/dist/unity-ui.d.ts +33 -2
- package/dist/unity-ui.es.js +144 -140
- package/package.json +10 -10
package/dist/unity-ui.d.ts
CHANGED
|
@@ -1077,15 +1077,31 @@ export declare interface DatePickerProps extends Omit<TextFieldProps, 'onChange'
|
|
|
1077
1077
|
* - `week` — a whole ISO 8601 calendar week. The input becomes read-only (the
|
|
1078
1078
|
* week can only be chosen from the popup), clicking any day selects its week,
|
|
1079
1079
|
* and the selected week is highlighted as a full row.
|
|
1080
|
+
* - `month` — a single month/year pair. The input becomes read-only, and the
|
|
1081
|
+
* popup shows only a month picker (list or card, per `monthView`) with its
|
|
1082
|
+
* own year navigation.
|
|
1080
1083
|
*
|
|
1081
1084
|
* @default 'date'
|
|
1082
1085
|
*/
|
|
1083
|
-
mode?: 'date' | 'week';
|
|
1086
|
+
mode?: 'date' | 'week' | 'month';
|
|
1084
1087
|
/**
|
|
1085
1088
|
* The placeholder shown when `mode="week"` and no week is selected. <br/>
|
|
1086
1089
|
* If not provided, a locale-aware default is used (e.g. 'KW auswählen' for 'de-DE').
|
|
1087
1090
|
*/
|
|
1088
1091
|
weekPlaceholder?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* The placeholder shown when `mode="month"` and no month is selected. <br/>
|
|
1094
|
+
* If not provided, a locale-aware default is used (e.g. 'Monat auswählen' for 'de-DE').
|
|
1095
|
+
*/
|
|
1096
|
+
monthPlaceholder?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* When provided, selecting a month in `mode="month"` calls this callback
|
|
1099
|
+
* with the chosen month/year, as `{ month, year }` where `month` is
|
|
1100
|
+
* 0-indexed (0 = January, 11 = December), matching `Date#getMonth()`.
|
|
1101
|
+
* The dialog closes after selection.
|
|
1102
|
+
* Called with `null` when the selection is cleared via Backspace/Delete.
|
|
1103
|
+
*/
|
|
1104
|
+
onMonthChange?: (value: MonthYear | null) => void;
|
|
1089
1105
|
/**
|
|
1090
1106
|
* When true, a "KW" column is prepended to the calendar grid showing ISO 8601
|
|
1091
1107
|
* week numbers. The grid switches from 7 to 8 columns.
|
|
@@ -1095,8 +1111,9 @@ export declare interface DatePickerProps extends Omit<TextFieldProps, 'onChange'
|
|
|
1095
1111
|
* When provided, clicking any day in a calendar row (or the KW cell) calls this
|
|
1096
1112
|
* callback with the ISO 8601 week of that row instead of the normal day selection.
|
|
1097
1113
|
* The dialog closes after selection.
|
|
1114
|
+
* Called with `null` when the selection is cleared via Backspace/Delete.
|
|
1098
1115
|
*/
|
|
1099
|
-
onWeekChange?: (week: IsoWeek) => void;
|
|
1116
|
+
onWeekChange?: (week: IsoWeek | null) => void;
|
|
1100
1117
|
/**
|
|
1101
1118
|
* Forces the calendar dialog to open above or below the input.
|
|
1102
1119
|
* When not set, the dialog auto-detects based on available viewport space.
|
|
@@ -1112,6 +1129,15 @@ export declare interface DatePickerProps extends Omit<TextFieldProps, 'onChange'
|
|
|
1112
1129
|
* @default 'calendar'
|
|
1113
1130
|
*/
|
|
1114
1131
|
weekView?: 'calendar' | 'list' | 'strip';
|
|
1132
|
+
/**
|
|
1133
|
+
* Controls how the month picker is presented
|
|
1134
|
+
*
|
|
1135
|
+
* - `list` — scrollable list of month names (default).
|
|
1136
|
+
* - `card` — grid of clickable month options.
|
|
1137
|
+
*
|
|
1138
|
+
* @default 'list'
|
|
1139
|
+
*/
|
|
1140
|
+
monthView?: 'list' | 'card';
|
|
1115
1141
|
}
|
|
1116
1142
|
|
|
1117
1143
|
export declare const DEFAULT_ANNOUNCEMENTS: {
|
|
@@ -2574,6 +2600,11 @@ export declare type MidSectionMenusProps<T extends ElementType = 'a'> = {
|
|
|
2574
2600
|
onItemClick?: (item: ListMenuItem<T>) => void;
|
|
2575
2601
|
};
|
|
2576
2602
|
|
|
2603
|
+
declare type MonthYear = {
|
|
2604
|
+
month: number;
|
|
2605
|
+
year: number;
|
|
2606
|
+
};
|
|
2607
|
+
|
|
2577
2608
|
declare type NonNullable_2<T> = Exclude<T, null | undefined>;
|
|
2578
2609
|
export { NonNullable_2 as NonNullable }
|
|
2579
2610
|
|