@kenlo/kdls-design-system 2.23.0 → 2.24.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.
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { BadgeVariant } from '../Badge/Badge';
2
3
  import { TooltipPosition } from '../Tooltip';
3
4
  import './Drawer.css';
4
5
  import '../../foundations/Scrollbar/Scrollbar.css';
@@ -17,6 +18,12 @@ export interface DrawerProps {
17
18
  placement?: 'right' | 'left';
18
19
  /** When provided, renders a chevron-left button before the title — use for stacked drawers navigation */
19
20
  onBack?: () => void;
21
+ /** Badge in the header, 24px before the close button — e.g. a count such as "2 de 4". When absent, the badge isn't rendered */
22
+ headerBadgeLabel?: string;
23
+ /** Color of the header badge — default 'neutral'. Use 'error' when a limit is reached */
24
+ headerBadgeVariant?: BadgeVariant;
25
+ /** What a screen reader says for the header badge, when the label alone is not enough (e.g. "2 de 4 etiquetas selecionadas") */
26
+ headerBadgeAriaLabel?: string;
20
27
  /** Label of the link-style button rendered in the header, between title and close button. When absent, the button isn't rendered */
21
28
  headerActionLabel?: string;
22
29
  /** Callback for the header action button. When it returns a Promise, the spinner activates automatically until it resolves */