@vellira-ui/types 2.41.0 → 2.43.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/dropdown.d.ts +0 -39
- package/dist/dropdown.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/dropdown.d.ts
CHANGED
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
import type { TextWrap } from './common';
|
|
2
1
|
export type DropdownSize = 'sm' | 'md' | 'lg';
|
|
3
|
-
export interface BaseDropdownMenuItem {
|
|
4
|
-
type?: 'item';
|
|
5
|
-
value: string;
|
|
6
|
-
label: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
danger?: boolean;
|
|
9
|
-
textWrap?: TextWrap;
|
|
10
|
-
}
|
|
11
|
-
export interface BaseDropdownGroup {
|
|
12
|
-
type: 'group';
|
|
13
|
-
label: string;
|
|
14
|
-
}
|
|
15
|
-
export interface BaseDropdownSeparator {
|
|
16
|
-
type: 'separator';
|
|
17
|
-
}
|
|
18
|
-
export type BaseDropdownItem = BaseDropdownMenuItem | BaseDropdownGroup | BaseDropdownSeparator;
|
|
19
|
-
export interface BaseDropdownProps {
|
|
20
|
-
items: BaseDropdownItem[];
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
size?: DropdownSize;
|
|
23
|
-
open?: boolean;
|
|
24
|
-
defaultOpen?: boolean;
|
|
25
|
-
onOpenChange?: (open: boolean) => void;
|
|
26
|
-
onSelect?: (value: string) => void;
|
|
27
|
-
}
|
|
28
|
-
export interface BaseDropdownTriggerProps {
|
|
29
|
-
isOpen: boolean;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
size?: DropdownSize;
|
|
32
|
-
}
|
|
33
|
-
export interface BaseDropdownContentProps {
|
|
34
|
-
isOpen: boolean;
|
|
35
|
-
items: BaseDropdownItem[];
|
|
36
|
-
}
|
|
37
|
-
export type BaseDropdownGroupProps = BaseDropdownGroup;
|
|
38
|
-
export type BaseDropdownItemProps = BaseDropdownMenuItem & {
|
|
39
|
-
active?: boolean;
|
|
40
|
-
};
|
|
41
2
|
//# sourceMappingURL=dropdown.d.ts.map
|
package/dist/dropdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../src/dropdown.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../src/dropdown.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC"}
|