@teammodlr/ui-kit 2.3.23 → 3.0.0-beta.2
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/lib/components/avatar/Avatar.vue.d.ts +2 -2
- package/lib/components/badge/style/Badge.css.d.ts +2 -2
- package/lib/components/button/Button.vue.d.ts +7 -4
- package/lib/components/button/style/Button.css.d.ts +3 -3
- package/lib/components/cardcontextmenu/CardContextMenu.vue.d.ts +5 -8
- package/lib/components/cardcontextmenu/CardContextMenuItem.vue.d.ts +11 -2
- package/lib/components/cardcontextmenu/CardContextMenuTriggerProvider.vue.d.ts +2 -0
- package/lib/components/cardcontextmenu/style/Dropdown.css.d.ts +2 -1
- package/lib/components/cardcontextmenu/symbol.d.ts +1 -0
- package/lib/components/checkbox/Checkbox.vue.d.ts +15 -4
- package/lib/components/collapse/CollapseItem.vue.d.ts +3 -2
- package/lib/components/colorpicker/ColorPicker.vue.d.ts +8 -9
- package/lib/components/confirm/Confirm.vue.d.ts +9 -0
- package/lib/components/confirm/props.d.ts +4 -0
- package/lib/components/dialog/Dialog.vue.d.ts +9 -4
- package/lib/components/dialogprovider/DialogProvider.vue.d.ts +1 -0
- package/lib/components/dialogprovider/types.d.ts +1 -0
- package/lib/components/dropdown/Dropdown.vue.d.ts +3 -1
- package/lib/components/dropdown/DropdownItem.vue.d.ts +11 -1
- package/lib/components/dropdown/DropdownSeperator.vue.d.ts +1 -0
- package/lib/components/dropdown/DropdownTriggerProvider.vue.d.ts +2 -0
- package/lib/components/dropdown/style/Dropdown.css.d.ts +2 -1
- package/lib/components/dropdown/symbol.d.ts +2 -0
- package/lib/components/image/Image.vue.d.ts +1 -1
- package/lib/components/messageprovider/Message.vue.d.ts +1 -1
- package/lib/components/messageprovider/MessageProvider.vue.d.ts +22 -24
- package/lib/components/messageprovider/style/Message.css.d.ts +1 -1
- package/lib/components/messageprovider/types.d.ts +5 -0
- package/lib/components/modal/Modal.vue.d.ts +18 -6
- package/lib/components/radio/Radio.vue.d.ts +2 -0
- package/lib/components/radiobuttongroup/RadioButtonGroup.vue.d.ts +1 -0
- package/lib/components/select/Select.vue.d.ts +20 -11
- package/lib/components/switch/Switch.vue.d.ts +2 -0
- package/lib/components/tab/Tab.vue.d.ts +5 -2
- package/lib/components/tab/TabGroup.vue.d.ts +8 -3
- package/lib/components/textarea/Textarea.vue.d.ts +2 -1
- package/lib/components/tooltip/Tooltip.vue.d.ts +5 -20
- package/lib/components/tooltip/TooltipTrigger.vue.d.ts +1 -10
- package/lib/components/tree/Tree.vue.d.ts +3 -3
- package/lib/components/tree/TreeNode.vue.d.ts +26 -12
- package/lib/components/tree/types.d.ts +5 -5
- package/lib/index.cjs.js +5 -14
- package/lib/index.es.js +15429 -10907
- package/lib/style.css +1 -1
- package/package.json +12 -6
- package/src/components/avatar/Avatar.vue +32 -24
- package/src/components/button/Button.vue +24 -5
- package/src/components/cardcontextmenu/CardContextMenu.vue +68 -95
- package/src/components/cardcontextmenu/CardContextMenuItem.vue +40 -50
- package/src/components/cardcontextmenu/CardContextMenuSeperator.vue +9 -7
- package/src/components/cardcontextmenu/CardContextMenuTriggerProvider.vue +15 -0
- package/src/components/cardcontextmenu/style/Dropdown.css.ts +155 -2
- package/src/components/cardcontextmenu/symbol.ts +3 -0
- package/src/components/checkbox/Checkbox.vue +37 -12
- package/src/components/checkbox/style/Checkbox.css.ts +6 -6
- package/src/components/collapse/CollapseItem.vue +46 -21
- package/src/components/collapse/style/Collapse.css.ts +5 -1
- package/src/components/colorpicker/ColorPicker.vue +76 -45
- package/src/components/confirm/Confirm.vue +15 -8
- package/src/components/confirm/props.ts +4 -0
- package/src/components/dialog/Dialog.vue +169 -36
- package/src/components/dialogprovider/types.ts +1 -0
- package/src/components/dropdown/Dropdown.vue +46 -3
- package/src/components/dropdown/DropdownItem.vue +55 -25
- package/src/components/dropdown/DropdownSeperator.vue +19 -11
- package/src/components/dropdown/DropdownTriggerProvider.vue +15 -0
- package/src/components/dropdown/examples/context.vue +2 -2
- package/src/components/dropdown/style/Dropdown.css.ts +157 -4
- package/src/components/dropdown/symbol.ts +4 -0
- package/src/components/form/examples/basic.vue +19 -8
- package/src/components/messageprovider/MessageProvider.vue +136 -90
- package/src/components/messageprovider/examples/basic.vue +3 -1
- package/src/components/messageprovider/examples/index.stories.ts +37 -1
- package/src/components/messageprovider/types.ts +10 -0
- package/src/components/modal/Modal.vue +142 -67
- package/src/components/radio/Radio.vue +31 -17
- package/src/components/radiobutton/RadioButton.vue +15 -2
- package/src/components/radiobuttongroup/RadioButtonGroup.vue +11 -4
- package/src/components/select/Select.vue +301 -153
- package/src/components/select/examples/basic.vue +1 -1
- package/src/components/slider/Slider.vue +1 -1
- package/src/components/switch/Switch.vue +30 -10
- package/src/components/switch/style/Switch.css.ts +3 -5
- package/src/components/tab/Tab.vue +29 -20
- package/src/components/tab/TabGroup.vue +29 -38
- package/src/components/textarea/Textarea.vue +8 -4
- package/src/components/tooltip/Tooltip.vue +52 -141
- package/src/components/tooltip/TooltipTrigger.vue +14 -17
- package/src/components/tooltip/style/Tooltip.css.ts +148 -29
- package/src/components/tree/Tree.vue +138 -100
- package/src/components/tree/TreeNode.vue +105 -98
- package/src/components/tree/types.ts +4 -4
- package/src/styles/transitions.css.ts +36 -16
|
@@ -23,9 +23,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
classes: import("vue").ComputedRef<(string | string[] | {
|
|
24
24
|
[x: string]: boolean;
|
|
25
25
|
})[]>;
|
|
26
|
-
|
|
26
|
+
showFallback: import("vue").ComputedRef<boolean>;
|
|
27
27
|
imageClass: string;
|
|
28
|
-
|
|
28
|
+
handleImageStatusChange: (status: "idle" | "loading" | "loaded" | "error") => void;
|
|
29
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
30
|
error: (e: Event) => true;
|
|
31
31
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const base: string;
|
|
2
2
|
export declare const text: string;
|
|
3
|
-
export declare const variant: Record<"default" | "dark" | "primary" | "
|
|
4
|
-
export declare const secondary: Record<"default" | "dark" | "primary" | "
|
|
3
|
+
export declare const variant: Record<"default" | "dark" | "primary" | "tertiary" | "success" | "warning" | "error", string>;
|
|
4
|
+
export declare const secondary: Record<"default" | "dark" | "primary" | "tertiary" | "success" | "warning" | "error", string>;
|
|
@@ -50,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
52
52
|
onClick: {
|
|
53
|
-
type: PropType<(e: MouseEvent) => void
|
|
53
|
+
type: PropType<((e: MouseEvent) => void) | Array<(e: MouseEvent) => void>>;
|
|
54
54
|
default: () => void;
|
|
55
55
|
};
|
|
56
56
|
}, {
|
|
@@ -67,6 +67,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
hasIconLeft: import("vue").ComputedRef<boolean>;
|
|
68
68
|
hasIconRight: import("vue").ComputedRef<boolean>;
|
|
69
69
|
handleClick: (e: MouseEvent) => void;
|
|
70
|
+
buttonType: import("vue").ComputedRef<string | undefined>;
|
|
71
|
+
isDisabled: import("vue").ComputedRef<boolean>;
|
|
72
|
+
isLoading: import("vue").ComputedRef<boolean>;
|
|
70
73
|
waveTimerId: import("vue").Ref<number | null>;
|
|
71
74
|
iconLeft: string;
|
|
72
75
|
iconRight: string;
|
|
@@ -120,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
123
|
default: boolean;
|
|
121
124
|
};
|
|
122
125
|
onClick: {
|
|
123
|
-
type: PropType<(e: MouseEvent) => void
|
|
126
|
+
type: PropType<((e: MouseEvent) => void) | Array<(e: MouseEvent) => void>>;
|
|
124
127
|
default: () => void;
|
|
125
128
|
};
|
|
126
129
|
}>>, {
|
|
@@ -131,11 +134,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
134
|
icon: boolean;
|
|
132
135
|
disabled: boolean;
|
|
133
136
|
rounded: boolean;
|
|
134
|
-
onClick: (e: MouseEvent) => void;
|
|
137
|
+
onClick: ((e: MouseEvent) => void) | ((e: MouseEvent) => void)[];
|
|
138
|
+
loading: boolean;
|
|
135
139
|
variant: Variant;
|
|
136
140
|
secondary: boolean;
|
|
137
141
|
to: string | Record<string, any>;
|
|
138
|
-
loading: boolean;
|
|
139
142
|
href: string;
|
|
140
143
|
}, {}>;
|
|
141
144
|
export default _default;
|
|
@@ -8,9 +8,9 @@ export declare const vars: {
|
|
|
8
8
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
9
9
|
};
|
|
10
10
|
export declare const base: string;
|
|
11
|
-
export declare const variant: Record<"default" | "dark" | "primary" | "
|
|
12
|
-
export declare const secondary: Record<"default" | "dark" | "primary" | "
|
|
13
|
-
export declare const link: Record<"default" | "dark" | "primary" | "
|
|
11
|
+
export declare const variant: Record<"default" | "dark" | "primary" | "tertiary" | "success" | "warning" | "error", string>;
|
|
12
|
+
export declare const secondary: Record<"default" | "dark" | "primary" | "tertiary" | "success" | "warning" | "error", string>;
|
|
13
|
+
export declare const link: Record<"default" | "dark" | "primary" | "tertiary" | "success" | "warning" | "error", string>;
|
|
14
14
|
export declare const size: Record<"sm" | "md" | "lg" | "xs" | "xl", string>;
|
|
15
15
|
export declare const border: string;
|
|
16
16
|
export declare const borderState: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Placement } from '@popperjs/core';
|
|
1
|
+
import type { Placement, VirtualElement } from '@popperjs/core';
|
|
2
2
|
import { type PropType } from 'vue';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
open: {
|
|
@@ -45,21 +45,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
type: NumberConstructor;
|
|
46
46
|
};
|
|
47
47
|
}, {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
popper: import("vue").Ref<HTMLElement | null | undefined>;
|
|
51
|
-
transferTo: import("vue").Ref<string>;
|
|
48
|
+
referenceRef: import("vue").Ref<HTMLElement | null>;
|
|
49
|
+
reference: import("vue").ComputedRef<HTMLElement | VirtualElement | null>;
|
|
52
50
|
isOpen: import("vue").Ref<boolean>;
|
|
53
51
|
isNested: boolean;
|
|
54
|
-
|
|
52
|
+
handleOpenChange: (value: boolean) => void;
|
|
55
53
|
menuClasses: import("vue").ComputedRef<string[]>;
|
|
56
54
|
computedWrapperClasses: import("vue").ComputedRef<(string | {
|
|
57
55
|
'm-dropdown--open': boolean;
|
|
58
56
|
'm-dropdown--nested': boolean;
|
|
59
57
|
})[]>;
|
|
60
|
-
computedReferenceClasses: import("vue").ComputedRef<
|
|
58
|
+
computedReferenceClasses: import("vue").ComputedRef<undefined>;
|
|
61
59
|
transitionName: import("vue").ComputedRef<string>;
|
|
62
|
-
toggleDropdown: () => void;
|
|
63
60
|
zIndex: import("vue").Ref<number>;
|
|
64
61
|
scale: {
|
|
65
62
|
enterActive: string;
|
|
@@ -35,13 +35,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
37
|
}, {
|
|
38
|
-
wrapper: import("vue").Ref<null>;
|
|
38
|
+
wrapper: import("vue").Ref<HTMLElement | null>;
|
|
39
|
+
itemComponent: import("vue").ComputedRef<any>;
|
|
40
|
+
componentProps: import("vue").ComputedRef<{
|
|
41
|
+
as?: undefined;
|
|
42
|
+
href?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
as: string;
|
|
45
|
+
href: string;
|
|
46
|
+
}>;
|
|
47
|
+
isSubmenuTrigger: boolean;
|
|
39
48
|
hasIconLeft: import("vue").ComputedRef<boolean>;
|
|
40
49
|
hasIconRight: import("vue").ComputedRef<boolean>;
|
|
41
50
|
handleSelect: () => void;
|
|
42
51
|
computedWrapperClasses: import("vue").ComputedRef<string[]>;
|
|
43
52
|
style: typeof style;
|
|
44
|
-
computedType: import("vue").ComputedRef<"a" | "
|
|
53
|
+
computedType: import("vue").ComputedRef<"a" | "div">;
|
|
45
54
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
55
|
label: {
|
|
47
56
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare const menu: string;
|
|
2
2
|
export declare const menuItems: string;
|
|
3
3
|
export declare const menuItem: string;
|
|
4
|
-
export declare const variant: Record<"default" | "dark" | "primary" | "
|
|
4
|
+
export declare const variant: Record<"default" | "dark" | "primary" | "tertiary" | "success" | "warning" | "error", string>;
|
|
5
5
|
export declare const menuItemTextContainer: string;
|
|
6
6
|
export declare const menuItemText: string;
|
|
7
7
|
export declare const menuItemIcon: string;
|
|
8
|
+
export declare const menuItemIconRight: string;
|
|
8
9
|
export declare const menuSeperator: string;
|
|
9
10
|
export declare const heading: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
+
import { type AcceptableValue } from 'reka-ui';
|
|
2
3
|
import type { Size } from '../../types/props';
|
|
3
4
|
import * as style from './style';
|
|
4
5
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -25,7 +26,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
26
|
type: BooleanConstructor;
|
|
26
27
|
default: boolean;
|
|
27
28
|
};
|
|
28
|
-
value: {
|
|
29
|
+
value: {
|
|
30
|
+
type: PropType<any>;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
29
33
|
modelValue: PropType<string | number | boolean | object | any[] | any[] | undefined>;
|
|
30
34
|
name: StringConstructor;
|
|
31
35
|
readonly: BooleanConstructor;
|
|
@@ -42,12 +46,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
46
|
reset: () => void;
|
|
43
47
|
validate: (value: any) => boolean;
|
|
44
48
|
setError: (value: string) => void;
|
|
45
|
-
onChange: (
|
|
49
|
+
onChange: (value: unknown) => void;
|
|
50
|
+
onFocus: (event: FocusEvent) => void;
|
|
51
|
+
onBlur: (event: FocusEvent) => void;
|
|
46
52
|
disabled: import("vue").ComputedRef<any>;
|
|
47
53
|
name: import("vue").Ref<string | undefined>;
|
|
48
54
|
checkboxRef: import("vue").Ref<HTMLElement | null>;
|
|
55
|
+
checkboxValue: import("vue").ComputedRef<AcceptableValue | undefined>;
|
|
49
56
|
inputError: import("vue").ComputedRef<any>;
|
|
50
|
-
toggle: import("vue").WritableComputedRef<string | number | boolean | object
|
|
57
|
+
toggle: import("vue").WritableComputedRef<string | number | boolean | object>;
|
|
51
58
|
style: typeof style;
|
|
52
59
|
classes: import("vue").ComputedRef<(string | string[] | {
|
|
53
60
|
[x: string]: any;
|
|
@@ -81,7 +88,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
88
|
type: BooleanConstructor;
|
|
82
89
|
default: boolean;
|
|
83
90
|
};
|
|
84
|
-
value: {
|
|
91
|
+
value: {
|
|
92
|
+
type: PropType<any>;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
85
95
|
modelValue: PropType<string | number | boolean | object | any[] | any[] | undefined>;
|
|
86
96
|
name: StringConstructor;
|
|
87
97
|
readonly: BooleanConstructor;
|
|
@@ -97,6 +107,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
107
|
size: Size;
|
|
98
108
|
disabled: boolean;
|
|
99
109
|
readonly: boolean;
|
|
110
|
+
value: any;
|
|
100
111
|
required: boolean;
|
|
101
112
|
loading: boolean;
|
|
102
113
|
checked: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractPublicPropTypes, PropType } from 'vue';
|
|
1
|
+
import type { CSSProperties, ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
2
|
export declare const collapseItemProps: {
|
|
3
3
|
readonly title: StringConstructor;
|
|
4
4
|
readonly name: PropType<string | number>;
|
|
@@ -32,7 +32,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
collapsed: import("vue").ComputedRef<boolean>;
|
|
33
33
|
mergedDisplayDirective: import("vue").ComputedRef<"show" | "if">;
|
|
34
34
|
arrowPlacement: import("vue").ComputedRef<"left" | "right">;
|
|
35
|
-
|
|
35
|
+
handleOpenChange(open: boolean): void;
|
|
36
|
+
computedHeaderMainStyles: import("vue").ComputedRef<CSSProperties | undefined>;
|
|
36
37
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
38
|
readonly title: StringConstructor;
|
|
38
39
|
readonly name: PropType<string | number>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropType } from "vue";
|
|
2
2
|
import * as style from './style';
|
|
3
|
-
import type
|
|
3
|
+
import { type Placement } from '../../composables/usePopper';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
color: {
|
|
6
6
|
type: StringConstructor;
|
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
placement: {
|
|
22
22
|
type: PropType<Placement>;
|
|
23
23
|
default: string;
|
|
24
|
+
validator: (value: Placement) => boolean;
|
|
24
25
|
};
|
|
25
26
|
zIndex: {
|
|
26
27
|
type: NumberConstructor;
|
|
@@ -31,8 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
32
|
};
|
|
32
33
|
}, {
|
|
33
34
|
isOpen: import("vue").Ref<boolean>;
|
|
34
|
-
popper: import("vue").Ref<HTMLElement |
|
|
35
|
-
transferTo: import("vue").Ref<string>;
|
|
35
|
+
popper: import("vue").Ref<HTMLElement | undefined>;
|
|
36
36
|
wrapper: import("vue").Ref<HTMLElement | undefined>;
|
|
37
37
|
referenceRef: import("vue").Ref<HTMLElement | undefined>;
|
|
38
38
|
updateFromRGB: () => void;
|
|
@@ -61,14 +61,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
style: typeof style;
|
|
62
62
|
mainColor: import("vue").ComputedRef<import("./utils").Color>;
|
|
63
63
|
zIndex: import("vue").Ref<number>;
|
|
64
|
+
resolvedSide: import("vue").ComputedRef<"bottom" | "left" | "right" | "top" | undefined>;
|
|
65
|
+
resolvedAlign: import("vue").ComputedRef<"center" | "end" | "start" | undefined>;
|
|
66
|
+
transfer: import("vue").Ref<boolean>;
|
|
64
67
|
canPickColor: import("vue").ComputedRef<boolean>;
|
|
65
68
|
openEyeDropper: () => void;
|
|
66
|
-
|
|
67
|
-
enterActive: string;
|
|
68
|
-
leaveActive: string;
|
|
69
|
-
enterFrom: string;
|
|
70
|
-
leaveTo: string;
|
|
71
|
-
};
|
|
69
|
+
handleOpenChange: (value: boolean) => void;
|
|
72
70
|
onSliderChangeComplete: () => void;
|
|
73
71
|
hexInputUser: import("vue").Ref<string>;
|
|
74
72
|
toggleInherit: () => void;
|
|
@@ -93,6 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
91
|
placement: {
|
|
94
92
|
type: PropType<Placement>;
|
|
95
93
|
default: string;
|
|
94
|
+
validator: (value: Placement) => boolean;
|
|
96
95
|
};
|
|
97
96
|
zIndex: {
|
|
98
97
|
type: NumberConstructor;
|
|
@@ -20,6 +20,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
readonly type: BooleanConstructor;
|
|
21
21
|
readonly default: false;
|
|
22
22
|
};
|
|
23
|
+
readonly focusTrap: {
|
|
24
|
+
readonly type: BooleanConstructor;
|
|
25
|
+
readonly default: true;
|
|
26
|
+
};
|
|
23
27
|
}, {
|
|
24
28
|
modal: import("vue").Ref<any>;
|
|
25
29
|
actionButton: import("vue").Ref<any>;
|
|
@@ -48,9 +52,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
52
|
readonly type: BooleanConstructor;
|
|
49
53
|
readonly default: false;
|
|
50
54
|
};
|
|
55
|
+
readonly focusTrap: {
|
|
56
|
+
readonly type: BooleanConstructor;
|
|
57
|
+
readonly default: true;
|
|
58
|
+
};
|
|
51
59
|
}>>, {
|
|
52
60
|
readonly loading: boolean;
|
|
53
61
|
readonly closable: boolean;
|
|
62
|
+
readonly focusTrap: boolean;
|
|
54
63
|
readonly okVariant: import("../../types/props").Variant;
|
|
55
64
|
readonly focusAction: boolean;
|
|
56
65
|
}, {}>;
|
|
@@ -22,5 +22,9 @@ export declare const confirmProps: {
|
|
|
22
22
|
readonly type: BooleanConstructor;
|
|
23
23
|
readonly default: false;
|
|
24
24
|
};
|
|
25
|
+
readonly focusTrap: {
|
|
26
|
+
readonly type: BooleanConstructor;
|
|
27
|
+
readonly default: true;
|
|
28
|
+
};
|
|
25
29
|
};
|
|
26
30
|
export type ConfirmProps = ExtractPropTypes<typeof confirmProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CSSProperties, type PropType, type Ref } from 'vue';
|
|
1
|
+
import { type CSSProperties, type ComponentPublicInstance, type PropType, type Ref } from 'vue';
|
|
2
2
|
import type { ComputedRef } from 'vue';
|
|
3
3
|
import * as style from './style';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -35,8 +35,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
};
|
|
36
36
|
}, {
|
|
37
37
|
wrapper: Ref<HTMLElement | null>;
|
|
38
|
-
dialog:
|
|
38
|
+
dialog: import("vue").ShallowRef<HTMLElement | ComponentPublicInstance | null>;
|
|
39
39
|
handle: Ref<HTMLElement | null>;
|
|
40
|
+
closeButton: Ref<HTMLElement | null>;
|
|
40
41
|
zIndex: Ref<number>;
|
|
41
42
|
fade: {
|
|
42
43
|
enterActive: string;
|
|
@@ -62,9 +63,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
63
|
wrapperClasses: ComputedRef<{
|
|
63
64
|
[x: string]: boolean;
|
|
64
65
|
}>;
|
|
66
|
+
wrapperStyle: ComputedRef<CSSProperties>;
|
|
65
67
|
close: () => void;
|
|
66
68
|
onEnter: () => void;
|
|
67
|
-
|
|
69
|
+
handleOpenChange: (value: boolean) => void;
|
|
70
|
+
handleOpenAutoFocus: (event: Event) => void;
|
|
71
|
+
handleFocusOutside: (event: Event) => void;
|
|
72
|
+
isOpen: ComputedRef<boolean>;
|
|
68
73
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "update:open" | "onClose" | "onOpen")[], "open" | "update:open" | "onClose" | "onOpen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
74
|
title: {
|
|
70
75
|
type: PropType<string | Ref<string>>;
|
|
@@ -108,7 +113,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
108
113
|
title: string | Ref<string>;
|
|
109
114
|
modal: boolean;
|
|
110
115
|
onClose: Function;
|
|
111
|
-
draggable: boolean;
|
|
112
116
|
focusTrap: boolean;
|
|
117
|
+
draggable: boolean;
|
|
113
118
|
}, {}>;
|
|
114
119
|
export default _default;
|
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
12
12
|
open?: boolean;
|
|
13
13
|
draggable?: boolean;
|
|
14
14
|
modal?: boolean;
|
|
15
|
+
focusTrap?: boolean;
|
|
15
16
|
};
|
|
16
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
17
18
|
export default _default;
|
|
@@ -59,6 +59,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
computedReferenceClasses: import("vue").ComputedRef<void>;
|
|
60
60
|
transitionName: import("vue").ComputedRef<string>;
|
|
61
61
|
toggleDropdown: () => void;
|
|
62
|
+
isContextMenu: import("vue").ComputedRef<boolean>;
|
|
63
|
+
isSubmenu: import("vue").ComputedRef<boolean>;
|
|
62
64
|
zIndex: import("vue").Ref<number>;
|
|
63
65
|
scale: {
|
|
64
66
|
enterActive: string;
|
|
@@ -122,9 +124,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
124
|
open: boolean;
|
|
123
125
|
label: null;
|
|
124
126
|
onSelect: (labels: any) => void;
|
|
125
|
-
modal: boolean;
|
|
126
127
|
placement: "center" | "end" | "start";
|
|
127
128
|
transfer: boolean;
|
|
129
|
+
modal: boolean;
|
|
128
130
|
trigger: "click" | "hover";
|
|
129
131
|
contextMenu: boolean;
|
|
130
132
|
transitionName: string;
|
|
@@ -35,10 +35,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
37
|
}, {
|
|
38
|
-
wrapper: import("vue").Ref<null>;
|
|
38
|
+
wrapper: import("vue").Ref<HTMLElement | null>;
|
|
39
|
+
itemComponent: import("vue").ComputedRef<any>;
|
|
40
|
+
isSubmenuTrigger: boolean;
|
|
39
41
|
hasIconLeft: import("vue").ComputedRef<boolean>;
|
|
40
42
|
hasIconRight: import("vue").ComputedRef<boolean>;
|
|
41
43
|
computedWrapperClasses: import("vue").ComputedRef<string[]>;
|
|
44
|
+
componentProps: import("vue").ComputedRef<{
|
|
45
|
+
as?: undefined;
|
|
46
|
+
href?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
as: string;
|
|
49
|
+
href: string;
|
|
50
|
+
}>;
|
|
51
|
+
handleSelect: () => void;
|
|
42
52
|
style: typeof style;
|
|
43
53
|
computedType: import("vue").ComputedRef<"a" | "div">;
|
|
44
54
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
computedClasses: import("vue").ComputedRef<string[]>;
|
|
3
|
+
separatorComponent: import("vue").ComputedRef<any>;
|
|
3
4
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
5
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare const menu: string;
|
|
2
2
|
export declare const menuItems: string;
|
|
3
3
|
export declare const menuItem: string;
|
|
4
|
-
export declare const variant: Record<"default" | "dark" | "primary" | "
|
|
4
|
+
export declare const variant: Record<"default" | "dark" | "primary" | "tertiary" | "success" | "warning" | "error", string>;
|
|
5
5
|
export declare const menuItemTextContainer: string;
|
|
6
6
|
export declare const menuItemText: string;
|
|
7
7
|
export declare const menuItemIcon: string;
|
|
8
|
+
export declare const menuItemIconRight: string;
|
|
8
9
|
export declare const menuSeperator: string;
|
|
9
10
|
export declare const heading: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { InjectionKey } from 'vue';
|
|
2
2
|
export interface DropdownState {
|
|
3
|
+
contextMenu: boolean;
|
|
3
4
|
handleSelect: (labels: string[]) => void;
|
|
4
5
|
isOpen: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare const DROPDOWN_STATE: InjectionKey<DropdownState>;
|
|
8
|
+
export declare const DROPDOWN_TRIGGER_STATE: InjectionKey<boolean>;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'vue-sonner/style.css';
|
|
2
|
+
import type { MessageCloseButtonPosition, MessagePlacement } from './types';
|
|
2
3
|
import type { PropType } from 'vue';
|
|
3
|
-
interface PrivateMessageRef extends MessageReactive {
|
|
4
|
-
key: string;
|
|
5
|
-
hide: () => void;
|
|
6
|
-
}
|
|
7
4
|
declare const _default: import("vue").DefineComponent<{
|
|
8
5
|
placement: {
|
|
9
6
|
type: PropType<MessagePlacement>;
|
|
@@ -13,26 +10,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
10
|
type: NumberConstructor;
|
|
14
11
|
default: number;
|
|
15
12
|
};
|
|
13
|
+
max: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
closeButtonPosition: {
|
|
18
|
+
type: PropType<MessageCloseButtonPosition>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
16
21
|
}, {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
key: string;
|
|
20
|
-
content: ContentType;
|
|
21
|
-
timeout?: number;
|
|
22
|
-
closable?: boolean;
|
|
23
|
-
type: MessageType;
|
|
24
|
-
onClose?: () => void;
|
|
25
|
-
destroy: () => void;
|
|
26
|
-
}[]>;
|
|
27
|
-
onInternalAfterLeave: (key: string) => void;
|
|
28
|
-
classes: import("vue").ComputedRef<(string | any[])[]>;
|
|
29
|
-
modalScale: {
|
|
30
|
-
enterActive: string;
|
|
31
|
-
leaveActive: string;
|
|
32
|
-
enterFrom: string;
|
|
33
|
-
leaveTo: string;
|
|
34
|
-
};
|
|
35
|
-
} & MessageApiInjection, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
sonnerPosition: import("vue").ComputedRef<("top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center") | undefined>;
|
|
23
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
24
|
placement: {
|
|
37
25
|
type: PropType<MessagePlacement>;
|
|
38
26
|
default: string;
|
|
@@ -41,8 +29,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
29
|
type: NumberConstructor;
|
|
42
30
|
default: number;
|
|
43
31
|
};
|
|
32
|
+
max: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
closeButtonPosition: {
|
|
37
|
+
type: PropType<MessageCloseButtonPosition>;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
44
40
|
}>>, {
|
|
41
|
+
max: number;
|
|
45
42
|
placement: MessagePlacement;
|
|
43
|
+
closeButtonPosition: MessageCloseButtonPosition;
|
|
46
44
|
timeout: number;
|
|
47
45
|
}, {}>;
|
|
48
46
|
export default _default;
|
|
@@ -9,4 +9,4 @@ export declare const base: string;
|
|
|
9
9
|
export declare const placement: Record<"top" | "top-left" | "top-right", string>;
|
|
10
10
|
export declare const icon: string;
|
|
11
11
|
export declare const message: string;
|
|
12
|
-
export declare const variant: Record<"default" | "
|
|
12
|
+
export declare const variant: Record<"default" | "success" | "warning" | "error" | "loading" | "info", string>;
|
|
@@ -2,18 +2,23 @@ import type { VNodeChild } from 'vue';
|
|
|
2
2
|
export type ContentType = string;
|
|
3
3
|
export type MessageType = 'info' | 'success' | 'warning' | 'error' | 'default' | 'loading';
|
|
4
4
|
export type MessagePlacement = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right';
|
|
5
|
+
export type MessageCloseButtonPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
5
6
|
export type MessageRenderMessage = (props: any) => VNodeChild;
|
|
6
7
|
export interface MessageOptions {
|
|
7
8
|
type?: MessageType;
|
|
8
9
|
render?: MessageRenderMessage;
|
|
9
10
|
timeout?: number;
|
|
10
11
|
closable?: boolean;
|
|
12
|
+
closeButton?: boolean;
|
|
13
|
+
richColors?: boolean;
|
|
11
14
|
onClose?: () => void;
|
|
12
15
|
}
|
|
13
16
|
export interface MessageReactive {
|
|
14
17
|
content: ContentType;
|
|
15
18
|
timeout?: number;
|
|
16
19
|
closable?: boolean;
|
|
20
|
+
closeButton?: boolean;
|
|
21
|
+
richColors?: boolean;
|
|
17
22
|
type: MessageType;
|
|
18
23
|
onClose?: () => void;
|
|
19
24
|
destroy: () => void;
|
|
@@ -45,14 +45,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
type: BooleanConstructor;
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
|
+
focusTrap: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
48
52
|
}, {
|
|
49
53
|
close: (e: MouseEvent | KeyboardEvent | undefined) => void;
|
|
50
|
-
onOutsideClick: (e: MouseEvent) => null | undefined;
|
|
51
54
|
open: () => void;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
onEscapeKeyDown: (e: KeyboardEvent) => void;
|
|
56
|
+
onPointerDownOutside: (e: Event) => void;
|
|
57
|
+
onInteractOutside: (e: Event) => void;
|
|
58
|
+
handleOpenChange: (value: boolean) => void;
|
|
59
|
+
handleOpenAutoFocus: (event: Event) => void;
|
|
55
60
|
target: import("vue").Ref<any>;
|
|
61
|
+
bodyRef: import("vue").Ref<HTMLElement | null>;
|
|
56
62
|
style: typeof style;
|
|
57
63
|
isOpen: import("vue").WritableComputedRef<boolean>;
|
|
58
64
|
computedWrapperStyles: import("vue").ComputedRef<{
|
|
@@ -85,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
91
|
hasSidebar: import("vue").ComputedRef<boolean>;
|
|
86
92
|
hasFooter: import("vue").ComputedRef<boolean>;
|
|
87
93
|
nextZIndex: () => number;
|
|
88
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "update:open")[], "open" | "update:open", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
94
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "update:open" | "close")[], "open" | "update:open" | "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
89
95
|
open: {
|
|
90
96
|
type: BooleanConstructor;
|
|
91
97
|
default: undefined;
|
|
@@ -130,19 +136,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
136
|
type: BooleanConstructor;
|
|
131
137
|
default: boolean;
|
|
132
138
|
};
|
|
139
|
+
focusTrap: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
133
143
|
}>> & {
|
|
134
144
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
145
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
135
146
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
136
147
|
}, {
|
|
137
148
|
width: string | number;
|
|
138
149
|
open: boolean;
|
|
139
150
|
title: string;
|
|
140
151
|
loading: boolean;
|
|
141
|
-
showClose: boolean;
|
|
142
152
|
onClose: (e: MouseEvent | KeyboardEvent | undefined) => void;
|
|
143
153
|
wrapClassName: string;
|
|
144
154
|
canClickOutside: boolean;
|
|
145
155
|
outsideClose: boolean;
|
|
156
|
+
showClose: boolean;
|
|
146
157
|
centered: boolean;
|
|
158
|
+
focusTrap: boolean;
|
|
147
159
|
}, {}>;
|
|
148
160
|
export default _default;
|