@kenlo/kdls-design-system 2.30.2 → 2.32.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/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Header/Header.d.ts +10 -1
- package/dist/components/Modal/useExitTransition.d.ts +5 -0
- package/dist/components/Modal/useScrollLock.d.ts +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +2050 -2011
- package/kdls-manifest.json +2 -2
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { TooltipPosition } from '../Tooltip';
|
|
|
4
4
|
import './Drawer.css';
|
|
5
5
|
import '../../foundations/Scrollbar/Scrollbar.css';
|
|
6
6
|
export interface DrawerProps {
|
|
7
|
-
/** Controls visibility. When false, the drawer is unmounted from the DOM */
|
|
7
|
+
/** Controls visibility. When false, the drawer slides out and is then unmounted from the DOM */
|
|
8
8
|
isOpen: boolean;
|
|
9
9
|
/** Called when the overlay or the close button is clicked */
|
|
10
10
|
onClose: () => void;
|
|
@@ -7,18 +7,27 @@ export interface HeaderNavItem {
|
|
|
7
7
|
label: string;
|
|
8
8
|
href?: string;
|
|
9
9
|
isNew?: boolean;
|
|
10
|
+
/** `keywords`: other words the dropdown search finds this child by (e.g. Portuguese names
|
|
11
|
+
* of an English label). Only read when the item is `searchable`; never drawn. */
|
|
10
12
|
children?: {
|
|
11
13
|
label: string;
|
|
12
14
|
href?: string;
|
|
13
15
|
onClick?: () => void;
|
|
16
|
+
keywords?: string[];
|
|
14
17
|
}[];
|
|
15
|
-
/** Adds a search field to this item's dropdown and filters its children by it
|
|
18
|
+
/** Adds a search field to this item's dropdown and filters its children by it, ignoring
|
|
19
|
+
* accents, case and spaces, by label and keywords.
|
|
16
20
|
* Use when the list is long enough that scanning it beats reading it. */
|
|
17
21
|
searchable?: boolean;
|
|
18
22
|
/** Floating label of that search field. Default: 'Buscar' */
|
|
19
23
|
searchLabel?: string;
|
|
20
24
|
onClick?: () => void;
|
|
21
25
|
}
|
|
26
|
+
/** True when the query is part of the label or of one of the keywords. */
|
|
27
|
+
export declare function navChildMatches(child: {
|
|
28
|
+
label: string;
|
|
29
|
+
keywords?: string[];
|
|
30
|
+
}, query: string): boolean;
|
|
22
31
|
export interface HeaderNotification {
|
|
23
32
|
id: string;
|
|
24
33
|
title: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useScrollLock(active: boolean): void;
|