@zvoove/unity-ui 2.32.2 → 2.33.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/llms.txt CHANGED
@@ -465,9 +465,10 @@ import { Switch } from '@zvoove/unity-ui';
465
465
  ```
466
466
 
467
467
  ### DatePicker
468
- Date input with calendar popup.
468
+ Date input with calendar popup. Set `mode="week"` to select a whole ISO 8601 week instead of a single day.
469
469
  ```tsx
470
470
  import { DatePicker } from '@zvoove/unity-ui';
471
+ import type { IsoWeek } from '@zvoove/unity-ui';
471
472
 
472
473
  <DatePicker
473
474
  label="Start date" // string (required)
@@ -484,9 +485,24 @@ import { DatePicker } from '@zvoove/unity-ui';
484
485
  errorMessage="Invalid date" // string
485
486
  disabled={false} // boolean
486
487
  buttonsTranslations={{ cancel: 'Cancel', clear: 'Clear', ok: 'OK' }}
488
+ // ── ISO calendar week (KW) ──
489
+ showCalendarWeek={false} // boolean — adds a read-only KW (ISO week) column to the day grid; still picks a single day
490
+ mode="date" // 'date' | 'week' (default 'date'); 'week' selects a whole ISO week
491
+ onWeekChange={(week: IsoWeek) => {}} // (week: { week: number; year: number }) => void — fires in week mode
492
+ weekView="calendar" // 'calendar' | 'list' | 'strip' — week-mode presentation (default 'calendar')
493
+ weekPlaceholder="KW auswählen" // string — placeholder shown in week mode (locale-aware default)
487
494
  />
488
495
  ```
489
496
 
497
+ In `mode="week"` the text field is read-only (the week is chosen only in the popup), the selected week is highlighted as a full row, and `onWeekChange` returns an `IsoWeek` (`{ week, year }`) — import the `IsoWeek` type from `@zvoove/unity-ui`.
498
+
499
+ | Variant | Props |
500
+ | --------------------- | -------------------------------------------------------------- |
501
+ | Calendar week column | `showCalendarWeek` (date mode — KW reference column) |
502
+ | Week selection | `mode="week"` + `weekView="calendar"` + `onWeekChange` |
503
+ | Week list (popup) | `mode="week"` + `weekView="list"` + `onWeekChange` |
504
+ | Horizontal week strip | `mode="week"` + `weekView="strip"` + `onWeekChange` (no input) |
505
+
490
506
  ### Uploader
491
507
  File upload component with drag-and-drop.
492
508
  ```tsx
package/dist/theme.css CHANGED
@@ -336,6 +336,13 @@
336
336
  --color-on-error: var(--color-error-100);
337
337
  --color-error-container: var(--color-error-90);
338
338
  --color-on-error-container: var(--color-error-10);
339
+ --color-warning: var(--color-yellow-40);
340
+ --color-warning-hover: var(--color-yellow-50);
341
+ --color-on-warning: var(--color-yellow-95);
342
+ --color-dark-warning: var(--color-yellow-40);
343
+ --color-on-dark-warning: var(--color-neutral-100);
344
+ --color-warning-container: var(--color-yellow-90);
345
+ --color-on-warning-container: var(--color-yellow-10);
339
346
  --color-inverse-surface: var(--color-neutral-variant-30);
340
347
  --color-inverse-on-surface: var(--color-neutral-100);
341
348
  --color-inverse-primary: var(--color-primary-80);
@@ -570,6 +577,13 @@
570
577
  --color-on-error: var(--color-error-20);
571
578
  --color-error-container: var(--color-error-30);
572
579
  --color-on-error-container: var(--color-error-90);
580
+ --color-warning: var(--color-yellow-70);
581
+ --color-warning-hover: var(--color-yellow-60);
582
+ --color-on-warning: var(--color-yellow-10);
583
+ --color-dark-warning: var(--color-yellow-80);
584
+ --color-on-dark-warning: var(--color-yellow-20);
585
+ --color-warning-container: var(--color-yellow-30);
586
+ --color-on-warning-container: var(--color-yellow-90);
573
587
  --color-inverse-surface: var(--color-neutral-95);
574
588
  --color-inverse-on-surface: var(--color-neutral-0);
575
589
  --color-inverse-primary: var(--color-primary-40);