@zvoove/unity-ui 2.32.2 → 2.33.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.
@@ -192,7 +192,7 @@ export declare type AvatarSize = (typeof AVATAR_SIZES)[keyof typeof AVATAR_SIZES
192
192
 
193
193
  declare type AxisVariant = 'X' | 'Y';
194
194
 
195
- export declare type BackgroundColors = 'background' | 'outline' | 'outline-variant' | 'outline-low' | 'primary' | 'primary-hover' | 'primary-active' | 'secondary' | 'tertiary' | 'primary-container' | 'secondary-container' | 'tertiary-container' | 'tertiary-container-hover' | 'tertiary-container-active' | 'primary-fixed' | 'primary-fixed-dim' | 'secondary-fixed' | 'secondary-fixed-dim' | 'tertiary-fixed' | 'tertiary-fixed-dim' | 'surface' | 'surface-bright' | 'surface-dim' | 'surface-variant' | 'surface-container-lowest' | 'surface-container-low' | 'surface-container' | 'surface-container-high' | 'surface-container-highest' | 'error' | 'error-container' | 'inverse-surface' | 'inverse-on-surface' | 'inverse-primary' | 'scrim' | 'yellow' | 'dark-yellow' | 'yellow-container' | 'green' | 'dark-green' | 'green-container' | 'pink' | 'dark-pink' | 'pink-container' | 'steel-blue' | 'dark-steel-blue' | 'steel-blue-container' | 'container-neutral' | 'container-neutral-hover' | 'code-surface' | 'code-surface-variant';
195
+ export declare type BackgroundColors = 'background' | 'outline' | 'outline-variant' | 'outline-low' | 'primary' | 'primary-hover' | 'primary-active' | 'secondary' | 'tertiary' | 'primary-container' | 'secondary-container' | 'tertiary-container' | 'tertiary-container-hover' | 'tertiary-container-active' | 'primary-fixed' | 'primary-fixed-dim' | 'secondary-fixed' | 'secondary-fixed-dim' | 'tertiary-fixed' | 'tertiary-fixed-dim' | 'surface' | 'surface-bright' | 'surface-dim' | 'surface-variant' | 'surface-container-lowest' | 'surface-container-low' | 'surface-container' | 'surface-container-high' | 'surface-container-highest' | 'error' | 'error-container' | 'warning' | 'dark-warning' | 'warning-container' | 'inverse-surface' | 'inverse-on-surface' | 'inverse-primary' | 'scrim' | 'yellow' | 'dark-yellow' | 'yellow-container' | 'green' | 'dark-green' | 'green-container' | 'pink' | 'dark-pink' | 'pink-container' | 'steel-blue' | 'dark-steel-blue' | 'steel-blue-container' | 'container-neutral' | 'container-neutral-hover' | 'code-surface' | 'code-surface-variant';
196
196
 
197
197
  export declare const Badge: ({ children, variant, content, dot, }: BadgeProps) => JSX.Element;
198
198
 
@@ -1042,6 +1042,49 @@ export declare interface DatePickerProps extends Omit<TextFieldProps, 'onChange'
1042
1042
  * If not provided, the placeholder will be based on the locale (e.g. 'TT.MM.JJJJ' for 'de-DE').
1043
1043
  */
1044
1044
  placeholder?: string;
1045
+ /**
1046
+ * Controls what the user selects.
1047
+ *
1048
+ * - `date` — a single calendar day (default). `showCalendarWeek` can still be
1049
+ * enabled to display the KW column for reference.
1050
+ * - `week` — a whole ISO 8601 calendar week. The input becomes read-only (the
1051
+ * week can only be chosen from the popup), clicking any day selects its week,
1052
+ * and the selected week is highlighted as a full row.
1053
+ *
1054
+ * @default 'date'
1055
+ */
1056
+ mode?: 'date' | 'week';
1057
+ /**
1058
+ * The placeholder shown when `mode="week"` and no week is selected. <br/>
1059
+ * If not provided, a locale-aware default is used (e.g. 'KW auswählen' for 'de-DE').
1060
+ */
1061
+ weekPlaceholder?: string;
1062
+ /**
1063
+ * When true, a "KW" column is prepended to the calendar grid showing ISO 8601
1064
+ * week numbers. The grid switches from 7 to 8 columns.
1065
+ */
1066
+ showCalendarWeek?: boolean;
1067
+ /**
1068
+ * When provided, clicking any day in a calendar row (or the KW cell) calls this
1069
+ * callback with the ISO 8601 week of that row instead of the normal day selection.
1070
+ * The dialog closes after selection.
1071
+ */
1072
+ onWeekChange?: (week: IsoWeek) => void;
1073
+ /**
1074
+ * Forces the calendar dialog to open above or below the input.
1075
+ * When not set, the dialog auto-detects based on available viewport space.
1076
+ */
1077
+ placement?: 'top' | 'bottom';
1078
+ /**
1079
+ * Controls how ISO calendar weeks are presented when `onWeekChange` is used.
1080
+ *
1081
+ * - `calendar` — month grid (optionally with `showCalendarWeek` KW column)
1082
+ * - `list` — scrollable year week list in the popup
1083
+ * - `strip` — inline horizontal week cards (no date input / popup)
1084
+ *
1085
+ * @default 'calendar'
1086
+ */
1087
+ weekView?: 'calendar' | 'list' | 'strip';
1045
1088
  }
1046
1089
 
1047
1090
  export declare const DEFAULT_ANNOUNCEMENTS: {
@@ -1506,7 +1549,7 @@ export declare interface FloatSearchTranslations {
1506
1549
  close?: string;
1507
1550
  }
1508
1551
 
1509
- export declare type ForegroundColors = 'primary' | 'secondary' | 'tertiary' | 'yellow' | 'green' | 'pink' | 'steel-blue' | 'dark-yellow' | 'dark-green' | 'dark-pink' | 'dark-steel-blue' | 'inverse-on-surface' | 'on-primary' | 'on-secondary' | 'on-tertiary' | 'on-primary-container' | 'on-secondary-container' | 'on-tertiary-container' | 'on-primary-fixed' | 'on-primary-fixed-variant' | 'on-secondary-fixed' | 'on-secondary-fixed-variant' | 'on-tertiary-fixed' | 'on-tertiary-fixed-variant' | 'on-surface' | 'on-surface-variant' | 'on-surface-variant-lowest' | 'on-error' | 'on-error-container' | 'on-yellow' | 'on-dark-yellow' | 'on-yellow-container' | 'on-green' | 'on-dark-green' | 'on-green-container' | 'on-pink' | 'on-dark-pink' | 'on-pink-container' | 'on-steel-blue' | 'on-dark-steel-blue' | 'on-steel-blue-container' | 'error' | 'on-scrim' | 'on-container-neutral' | 'code-on-surface';
1552
+ export declare type ForegroundColors = 'primary' | 'secondary' | 'tertiary' | 'yellow' | 'green' | 'pink' | 'steel-blue' | 'dark-yellow' | 'dark-green' | 'dark-pink' | 'dark-steel-blue' | 'inverse-on-surface' | 'on-primary' | 'on-secondary' | 'on-tertiary' | 'on-primary-container' | 'on-secondary-container' | 'on-tertiary-container' | 'on-primary-fixed' | 'on-primary-fixed-variant' | 'on-secondary-fixed' | 'on-secondary-fixed-variant' | 'on-tertiary-fixed' | 'on-tertiary-fixed-variant' | 'on-surface' | 'on-surface-variant' | 'on-surface-variant-lowest' | 'on-error' | 'on-error-container' | 'on-warning' | 'on-dark-warning' | 'on-warning-container' | 'on-yellow' | 'on-dark-yellow' | 'on-yellow-container' | 'on-green' | 'on-dark-green' | 'on-green-container' | 'on-pink' | 'on-dark-pink' | 'on-pink-container' | 'on-steel-blue' | 'on-dark-steel-blue' | 'on-steel-blue-container' | 'error' | 'warning' | 'on-warning' | 'on-scrim' | 'on-container-neutral' | 'code-on-surface';
1510
1553
 
1511
1554
  export declare const FormLabel: ({ value, required, htmlFor, ...props }: FormLabelProps) => JSX.Element;
1512
1555
 
@@ -2145,6 +2188,11 @@ export declare type InfoBoxVariant = 'default' | 'positive' | 'warning' | 'error
2145
2188
  */
2146
2189
  export declare function isListMenuSections<T extends ElementType = 'a'>(items: ListMenuItem<T>[] | ListMenuSection<T>[]): items is ListMenuSection<T>[];
2147
2190
 
2191
+ export declare type IsoWeek = {
2192
+ week: number;
2193
+ year: number;
2194
+ };
2195
+
2148
2196
  export declare type JustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
2149
2197
 
2150
2198
  declare type LabelStates = {
@@ -3906,6 +3954,16 @@ export declare interface TextFieldProps extends React.InputHTMLAttributes<HTMLIn
3906
3954
  * It is only displayed when the error prop is true.
3907
3955
  */
3908
3956
  errorMessage?: string;
3957
+ /**
3958
+ * When true, the input applies the warning style. <br />
3959
+ * Will also display the warning message if any is provided.
3960
+ */
3961
+ warning?: boolean;
3962
+ /**
3963
+ * The warning message that will be displayed below the input. <br />
3964
+ * It is only displayed when the warning prop is true.
3965
+ */
3966
+ warningMessage?: string;
3909
3967
  /**
3910
3968
  * The value of the input. <br />
3911
3969
  */