bonkers-ui 1.0.63 → 1.0.64
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/_types/sizing.js.map +1 -1
- package/bonkers-ui.umd.js +2 -2
- package/bonkers-ui.umd.js.map +1 -1
- package/components/ui-alert/index.d.ts +23 -56
- package/components/ui-badge/index.d.ts +33 -68
- package/components/ui-button/index.d.ts +51 -86
- package/components/ui-card-cta/index.d.ts +39 -75
- package/components/ui-card-result/index.d.ts +39 -75
- package/components/ui-card-simple/index.d.ts +9 -39
- package/components/ui-checkbox/index.d.ts +47 -84
- package/components/ui-dropdown/index.d.ts +47 -90
- package/components/ui-dropdown/ui-dropdown.vue.d.ts +0 -3
- package/components/ui-dropdown/ui-dropdown.vue.js +19 -20
- package/components/ui-dropdown/ui-dropdown.vue.js.map +1 -1
- package/components/ui-icon-wrapper/index.d.ts +31 -64
- package/components/ui-input/_typings.d.ts +2 -2
- package/components/ui-input/index.d.ts +148 -193
- package/components/ui-list-item/index.d.ts +74 -111
- package/components/ui-modal/index.d.ts +31 -64
- package/components/ui-modal/ui-backdrop/index.d.ts +9 -39
- package/components/ui-notification-badge/index.d.ts +22 -54
- package/components/ui-order-card/index.d.ts +29 -62
- package/components/ui-plain-radio/index.d.ts +60 -98
- package/components/ui-radio/index.d.ts +60 -98
- package/components/ui-radio-compact/index.d.ts +45 -81
- package/components/ui-radio-fancy/index.d.ts +70 -108
- package/components/ui-result-card-range/index.d.ts +33 -68
- package/components/ui-ripple/index.d.ts +9 -39
- package/components/ui-select/index.d.ts +41 -77
- package/components/ui-snackbar/index.d.ts +29 -62
- package/components/ui-table/index.d.ts +22 -54
- package/components/ui-table/ui-table-cell/index.d.ts +21 -54
- package/components/ui-table/ui-table-row/index.d.ts +16 -48
- package/components/ui-toggle/index.d.ts +62 -101
- package/components/ui-typography/index.d.ts +61 -100
- package/components/ui-typography/ui-typography.vue.js +2 -2
- package/components/ui-verification-input/index.d.ts +29 -63
- package/package.json +35 -35
|
@@ -1,86 +1,50 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
2
2
|
import UiCardResult from "./ui-card-result.vue";
|
|
3
3
|
export { UiCardResult };
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
6
6
|
*/
|
|
7
7
|
declare const deprecatedDefault: {
|
|
8
|
-
new (...args: any[]): {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
18
|
-
header: {
|
|
19
|
-
type: PropType<string>;
|
|
20
|
-
};
|
|
21
|
-
exclusiveText: {
|
|
22
|
-
type: PropType<string>;
|
|
23
|
-
};
|
|
24
|
-
exclusiveTextBottom: {
|
|
25
|
-
type: PropType<string>;
|
|
26
|
-
};
|
|
27
|
-
exclusiveClickAction: {
|
|
28
|
-
type: PropType<() => void>;
|
|
29
|
-
};
|
|
30
|
-
exclusiveBottomClickAction: {
|
|
31
|
-
type: PropType<() => void>;
|
|
32
|
-
};
|
|
33
|
-
}>>, never>;
|
|
34
|
-
$attrs: {
|
|
35
|
-
[x: string]: unknown;
|
|
8
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
|
|
9
|
+
header: {
|
|
10
|
+
type: PropType<string>;
|
|
11
|
+
};
|
|
12
|
+
exclusiveText: {
|
|
13
|
+
type: PropType<string>;
|
|
14
|
+
};
|
|
15
|
+
exclusiveTextBottom: {
|
|
16
|
+
type: PropType<string>;
|
|
36
17
|
};
|
|
37
|
-
|
|
38
|
-
|
|
18
|
+
exclusiveClickAction: {
|
|
19
|
+
type: PropType<() => void>;
|
|
39
20
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
type: PropType<() => void>;
|
|
59
|
-
};
|
|
60
|
-
exclusiveBottomClickAction: {
|
|
61
|
-
type: PropType<() => void>;
|
|
62
|
-
};
|
|
63
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
|
|
64
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
75
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
76
|
-
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
77
|
-
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
78
|
-
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
21
|
+
exclusiveBottomClickAction: {
|
|
22
|
+
type: PropType<() => void>;
|
|
23
|
+
};
|
|
24
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
25
|
+
header: {
|
|
26
|
+
type: PropType<string>;
|
|
27
|
+
};
|
|
28
|
+
exclusiveText: {
|
|
29
|
+
type: PropType<string>;
|
|
30
|
+
};
|
|
31
|
+
exclusiveTextBottom: {
|
|
32
|
+
type: PropType<string>;
|
|
33
|
+
};
|
|
34
|
+
exclusiveClickAction: {
|
|
35
|
+
type: PropType<() => void>;
|
|
36
|
+
};
|
|
37
|
+
exclusiveBottomClickAction: {
|
|
38
|
+
type: PropType<() => void>;
|
|
79
39
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
40
|
+
}>>, {}, true, {}, {}, {
|
|
41
|
+
P: {};
|
|
42
|
+
B: {};
|
|
43
|
+
D: {};
|
|
44
|
+
C: {};
|
|
45
|
+
M: {};
|
|
46
|
+
Defaults: {};
|
|
47
|
+
}, Readonly<ExtractPropTypes<{
|
|
84
48
|
header: {
|
|
85
49
|
type: PropType<string>;
|
|
86
50
|
};
|
|
@@ -96,7 +60,7 @@ declare const deprecatedDefault: {
|
|
|
96
60
|
exclusiveBottomClickAction: {
|
|
97
61
|
type: PropType<() => void>;
|
|
98
62
|
};
|
|
99
|
-
}
|
|
63
|
+
}>>, {}, {}, {}, {}, {}>;
|
|
100
64
|
__isFragment?: undefined;
|
|
101
65
|
__isTeleport?: undefined;
|
|
102
66
|
__isSuspense?: undefined;
|
|
@@ -1,48 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
2
2
|
import UiCardSimple from "./ui-card-simple.vue";
|
|
3
3
|
export { UiCardSimple };
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
6
6
|
*/
|
|
7
7
|
declare const deprecatedDefault: {
|
|
8
|
-
new (...args: any[]): {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
};
|
|
18
|
-
$slots: Readonly<{
|
|
19
|
-
[name: string]: Slot<any> | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
22
|
-
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
23
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
24
|
-
$el: any;
|
|
25
|
-
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
|
|
26
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
-
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
39
|
-
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
40
|
-
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
41
|
-
};
|
|
42
|
-
$forceUpdate: () => void;
|
|
43
|
-
$nextTick: typeof nextTick;
|
|
44
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
45
|
-
} & Readonly<ExtractPropTypes<{}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
8
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{}>>, {}, true, {}, {}, {
|
|
9
|
+
P: {};
|
|
10
|
+
B: {};
|
|
11
|
+
D: {};
|
|
12
|
+
C: {};
|
|
13
|
+
M: {};
|
|
14
|
+
Defaults: {};
|
|
15
|
+
}, Readonly<ExtractPropTypes<{}>>, {}, {}, {}, {}, {}>;
|
|
46
16
|
__isFragment?: undefined;
|
|
47
17
|
__isTeleport?: undefined;
|
|
48
18
|
__isSuspense?: undefined;
|
|
@@ -1,96 +1,59 @@
|
|
|
1
1
|
import { EJustify } from '../../types';
|
|
2
|
-
import {
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
3
3
|
import UiCheckbox from "./ui-checkbox.vue";
|
|
4
4
|
export { UiCheckbox };
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
7
7
|
*/
|
|
8
8
|
declare const deprecatedDefault: {
|
|
9
|
-
new (...args: any[]): {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
readonly modelValue: boolean | unknown[];
|
|
14
|
-
readonly disabled?: boolean | undefined;
|
|
15
|
-
readonly invertOrder?: boolean | undefined;
|
|
16
|
-
readonly justify?: EJustify | undefined;
|
|
17
|
-
readonly value?: string | undefined;
|
|
18
|
-
"onUpdate:modelValue"?: ((state: boolean | unknown[]) => any) | undefined;
|
|
19
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
20
|
-
modelValue: {
|
|
21
|
-
type: PropType<boolean | unknown[]>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
justify: {
|
|
25
|
-
type: PropType<EJustify>;
|
|
26
|
-
};
|
|
27
|
-
invertOrder: {
|
|
28
|
-
type: PropType<boolean>;
|
|
29
|
-
};
|
|
30
|
-
disabled: {
|
|
31
|
-
type: PropType<boolean>;
|
|
32
|
-
};
|
|
33
|
-
value: {
|
|
34
|
-
type: PropType<string>;
|
|
35
|
-
};
|
|
36
|
-
}>> & {
|
|
37
|
-
"onUpdate:modelValue"?: ((state: boolean | unknown[]) => any) | undefined;
|
|
38
|
-
}, never>;
|
|
39
|
-
$attrs: {
|
|
40
|
-
[x: string]: unknown;
|
|
9
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: PropType<boolean | unknown[]>;
|
|
12
|
+
required: true;
|
|
41
13
|
};
|
|
42
|
-
|
|
43
|
-
|
|
14
|
+
justify: {
|
|
15
|
+
type: PropType<EJustify>;
|
|
44
16
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}>;
|
|
48
|
-
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
49
|
-
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
50
|
-
$emit: (event: "update:modelValue", state: boolean | unknown[]) => void;
|
|
51
|
-
$el: any;
|
|
52
|
-
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
53
|
-
modelValue: {
|
|
54
|
-
type: PropType<boolean | unknown[]>;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
justify: {
|
|
58
|
-
type: PropType<EJustify>;
|
|
59
|
-
};
|
|
60
|
-
invertOrder: {
|
|
61
|
-
type: PropType<boolean>;
|
|
62
|
-
};
|
|
63
|
-
disabled: {
|
|
64
|
-
type: PropType<boolean>;
|
|
65
|
-
};
|
|
66
|
-
value: {
|
|
67
|
-
type: PropType<string>;
|
|
68
|
-
};
|
|
69
|
-
}>> & {
|
|
70
|
-
"onUpdate:modelValue"?: ((state: boolean | unknown[]) => any) | undefined;
|
|
71
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
72
|
-
"update:modelValue": (state: boolean | unknown[]) => void;
|
|
73
|
-
}, string, {}, {}, string, {}> & {
|
|
74
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
75
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
76
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
77
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
78
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
79
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
-
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
87
|
-
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
88
|
-
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
17
|
+
invertOrder: {
|
|
18
|
+
type: PropType<boolean>;
|
|
89
19
|
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
20
|
+
disabled: {
|
|
21
|
+
type: PropType<boolean>;
|
|
22
|
+
};
|
|
23
|
+
value: {
|
|
24
|
+
type: PropType<string>;
|
|
25
|
+
};
|
|
26
|
+
}>> & {
|
|
27
|
+
"onUpdate:modelValue"?: ((state: boolean | unknown[]) => any) | undefined;
|
|
28
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
29
|
+
"update:modelValue": (state: boolean | unknown[]) => void;
|
|
30
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
31
|
+
modelValue: {
|
|
32
|
+
type: PropType<boolean | unknown[]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
justify: {
|
|
36
|
+
type: PropType<EJustify>;
|
|
37
|
+
};
|
|
38
|
+
invertOrder: {
|
|
39
|
+
type: PropType<boolean>;
|
|
40
|
+
};
|
|
41
|
+
disabled: {
|
|
42
|
+
type: PropType<boolean>;
|
|
43
|
+
};
|
|
44
|
+
value: {
|
|
45
|
+
type: PropType<string>;
|
|
46
|
+
};
|
|
47
|
+
}>> & {
|
|
48
|
+
"onUpdate:modelValue"?: ((state: boolean | unknown[]) => any) | undefined;
|
|
49
|
+
}, {}, true, {}, {}, {
|
|
50
|
+
P: {};
|
|
51
|
+
B: {};
|
|
52
|
+
D: {};
|
|
53
|
+
C: {};
|
|
54
|
+
M: {};
|
|
55
|
+
Defaults: {};
|
|
56
|
+
}, Readonly<ExtractPropTypes<{
|
|
94
57
|
modelValue: {
|
|
95
58
|
type: PropType<boolean | unknown[]>;
|
|
96
59
|
required: true;
|
|
@@ -109,7 +72,7 @@ declare const deprecatedDefault: {
|
|
|
109
72
|
};
|
|
110
73
|
}>> & {
|
|
111
74
|
"onUpdate:modelValue"?: ((state: boolean | unknown[]) => any) | undefined;
|
|
112
|
-
}
|
|
75
|
+
}, {}, {}, {}, {}, {}>;
|
|
113
76
|
__isFragment?: undefined;
|
|
114
77
|
__isTeleport?: undefined;
|
|
115
78
|
__isSuspense?: undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TIconName } from '../ui-icon/_typings.ts';
|
|
2
2
|
import { EDropdownKinds } from './_typings.ts';
|
|
3
|
-
import {
|
|
3
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
4
4
|
import UiDropdown from "./ui-dropdown.vue";
|
|
5
5
|
export { UiDropdown };
|
|
6
6
|
export { EDropdownKinds } from "./_typings.ts";
|
|
@@ -8,94 +8,52 @@ export { EDropdownKinds } from "./_typings.ts";
|
|
|
8
8
|
* @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
|
|
9
9
|
*/
|
|
10
10
|
declare const deprecatedDefault: {
|
|
11
|
-
new (...args: any[]): {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
type: PropType<string>;
|
|
26
|
-
};
|
|
27
|
-
kind: {
|
|
28
|
-
type: PropType<EDropdownKinds>;
|
|
29
|
-
default: EDropdownKinds;
|
|
30
|
-
};
|
|
31
|
-
iconName: {
|
|
32
|
-
type: PropType<TIconName>;
|
|
33
|
-
required: true;
|
|
34
|
-
};
|
|
35
|
-
subText: {
|
|
36
|
-
type: PropType<string>;
|
|
37
|
-
};
|
|
38
|
-
active: {
|
|
39
|
-
type: PropType<boolean>;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
|
-
}>>, "kind" | "active">;
|
|
43
|
-
$attrs: {
|
|
44
|
-
[x: string]: unknown;
|
|
11
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
|
|
12
|
+
header: {
|
|
13
|
+
type: PropType<string>;
|
|
14
|
+
};
|
|
15
|
+
kind: {
|
|
16
|
+
type: PropType<EDropdownKinds>;
|
|
17
|
+
default: EDropdownKinds;
|
|
18
|
+
};
|
|
19
|
+
iconName: {
|
|
20
|
+
type: PropType<TIconName>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
subText: {
|
|
24
|
+
type: PropType<string>;
|
|
45
25
|
};
|
|
46
|
-
|
|
47
|
-
|
|
26
|
+
active: {
|
|
27
|
+
type: PropType<boolean>;
|
|
48
28
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
subText: {
|
|
69
|
-
type: PropType<string>;
|
|
70
|
-
};
|
|
71
|
-
active: {
|
|
72
|
-
type: PropType<boolean>;
|
|
73
|
-
default: boolean;
|
|
74
|
-
};
|
|
75
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
76
|
-
kind: EDropdownKinds;
|
|
77
|
-
active: boolean;
|
|
78
|
-
}, {}, string, {}> & {
|
|
79
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
90
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
-
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
92
|
-
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
93
|
-
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
29
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
30
|
+
header: {
|
|
31
|
+
type: PropType<string>;
|
|
32
|
+
};
|
|
33
|
+
kind: {
|
|
34
|
+
type: PropType<EDropdownKinds>;
|
|
35
|
+
default: EDropdownKinds;
|
|
36
|
+
};
|
|
37
|
+
iconName: {
|
|
38
|
+
type: PropType<TIconName>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
subText: {
|
|
42
|
+
type: PropType<string>;
|
|
43
|
+
};
|
|
44
|
+
active: {
|
|
45
|
+
type: PropType<boolean>;
|
|
94
46
|
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
47
|
+
}>>, {
|
|
48
|
+
kind: EDropdownKinds;
|
|
49
|
+
}, true, {}, {}, {
|
|
50
|
+
P: {};
|
|
51
|
+
B: {};
|
|
52
|
+
D: {};
|
|
53
|
+
C: {};
|
|
54
|
+
M: {};
|
|
55
|
+
Defaults: {};
|
|
56
|
+
}, Readonly<ExtractPropTypes<{
|
|
99
57
|
header: {
|
|
100
58
|
type: PropType<string>;
|
|
101
59
|
};
|
|
@@ -112,9 +70,10 @@ declare const deprecatedDefault: {
|
|
|
112
70
|
};
|
|
113
71
|
active: {
|
|
114
72
|
type: PropType<boolean>;
|
|
115
|
-
default: boolean;
|
|
116
73
|
};
|
|
117
|
-
}
|
|
74
|
+
}>>, {}, {}, {}, {}, {
|
|
75
|
+
kind: EDropdownKinds;
|
|
76
|
+
}>;
|
|
118
77
|
__isFragment?: undefined;
|
|
119
78
|
__isTeleport?: undefined;
|
|
120
79
|
__isSuspense?: undefined;
|
|
@@ -135,11 +94,9 @@ declare const deprecatedDefault: {
|
|
|
135
94
|
};
|
|
136
95
|
active: {
|
|
137
96
|
type: PropType<boolean>;
|
|
138
|
-
default: boolean;
|
|
139
97
|
};
|
|
140
98
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
141
99
|
kind: EDropdownKinds;
|
|
142
|
-
active: boolean;
|
|
143
100
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
144
101
|
$slots: {
|
|
145
102
|
default?(_: {}): any;
|
|
@@ -9,7 +9,6 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
9
9
|
active?: boolean | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
kind: EDropdownKinds;
|
|
12
|
-
active: boolean;
|
|
13
12
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
13
|
header?: string | undefined;
|
|
15
14
|
iconName: TIconName;
|
|
@@ -18,10 +17,8 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
18
17
|
active?: boolean | undefined;
|
|
19
18
|
}>, {
|
|
20
19
|
kind: EDropdownKinds;
|
|
21
|
-
active: boolean;
|
|
22
20
|
}>>>, {
|
|
23
21
|
kind: EDropdownKinds;
|
|
24
|
-
active: boolean;
|
|
25
22
|
}, {}>, {
|
|
26
23
|
default?(_: {}): any;
|
|
27
24
|
}>;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as f, ref as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as f, ref as a, onMounted as v, openBlock as h, createElementBlock as g, normalizeClass as r, unref as o, createElementVNode as d, createVNode as p, withCtx as y, createTextVNode as u, toDisplayString as c, normalizeStyle as b, renderSlot as E } from "vue";
|
|
2
|
+
import D from "../ui-typography/index.js";
|
|
3
3
|
import k from "../ui-icon/index.js";
|
|
4
4
|
import { EDropdownKinds as n } from "./_typings.js";
|
|
5
5
|
import { ETypographySizes as T, ETextWeight as w } from "../ui-typography/_typings.js";
|
|
6
6
|
import { ESize as z } from "../../_types/sizing.js";
|
|
7
|
-
const
|
|
7
|
+
const U = /* @__PURE__ */ f({
|
|
8
8
|
__name: "ui-dropdown",
|
|
9
9
|
props: {
|
|
10
10
|
header: {},
|
|
11
11
|
iconName: {},
|
|
12
12
|
subText: {},
|
|
13
13
|
kind: { default: n.DEFAULT },
|
|
14
|
-
active: { type: Boolean
|
|
14
|
+
active: { type: Boolean }
|
|
15
15
|
},
|
|
16
16
|
setup(m) {
|
|
17
|
-
const
|
|
17
|
+
const i = a(null), l = a(0), t = a(m.active);
|
|
18
18
|
return v(() => {
|
|
19
|
-
if (
|
|
20
|
-
const { height: e } =
|
|
19
|
+
if (i.value) {
|
|
20
|
+
const { height: e } = i.value.getBoundingClientRect();
|
|
21
21
|
l.value = e;
|
|
22
22
|
}
|
|
23
23
|
}), (e, s) => (h(), g("div", {
|
|
@@ -26,28 +26,28 @@ const S = ["active"], U = /* @__PURE__ */ f({
|
|
|
26
26
|
}])
|
|
27
27
|
}, [
|
|
28
28
|
d("div", {
|
|
29
|
-
class: r(["flex justify-between px-md py-sm", {
|
|
29
|
+
class: r(["flex items-center justify-between px-md py-sm", {
|
|
30
30
|
"rounded-lg border border-secondary": e.kind === o(n).SECONDARY
|
|
31
31
|
}]),
|
|
32
|
-
onClick: s[0] || (s[0] = (
|
|
32
|
+
onClick: s[0] || (s[0] = (C) => t.value = !t.value)
|
|
33
33
|
}, [
|
|
34
|
-
|
|
34
|
+
p(o(D), {
|
|
35
35
|
"line-height": "",
|
|
36
|
-
size: o(T).
|
|
36
|
+
size: o(T).LG,
|
|
37
37
|
weight: o(w).SEMI_BOLD
|
|
38
38
|
}, {
|
|
39
39
|
default: y(() => [
|
|
40
|
-
c(
|
|
40
|
+
u(c(e.header), 1)
|
|
41
41
|
]),
|
|
42
42
|
_: 1
|
|
43
43
|
}, 8, ["size", "weight"]),
|
|
44
|
-
|
|
44
|
+
p(o(k), {
|
|
45
45
|
class: r(["item-icon duration-200", {
|
|
46
46
|
"rotate-180": t.value,
|
|
47
47
|
"rotate-0": !t.value
|
|
48
48
|
}]),
|
|
49
49
|
"icon-name": e.iconName,
|
|
50
|
-
size: o(z).
|
|
50
|
+
size: o(z).SM
|
|
51
51
|
}, null, 8, ["class", "icon-name", "size"])
|
|
52
52
|
], 2),
|
|
53
53
|
d("div", {
|
|
@@ -58,21 +58,20 @@ const S = ["active"], U = /* @__PURE__ */ f({
|
|
|
58
58
|
}]),
|
|
59
59
|
style: b({
|
|
60
60
|
height: l.value + "px"
|
|
61
|
-
})
|
|
62
|
-
active: e.active
|
|
61
|
+
})
|
|
63
62
|
}, [
|
|
64
63
|
d("div", {
|
|
65
64
|
ref_key: "contentRef",
|
|
66
|
-
ref:
|
|
65
|
+
ref: i,
|
|
67
66
|
class: r(["box-border pt-sm", {
|
|
68
67
|
"p-sm": e.kind === o(n).DEFAULT
|
|
69
68
|
}])
|
|
70
69
|
}, [
|
|
71
|
-
|
|
72
|
-
c(
|
|
70
|
+
E(e.$slots, "default", {}, () => [
|
|
71
|
+
u(c(e.subText), 1)
|
|
73
72
|
])
|
|
74
73
|
], 2)
|
|
75
|
-
],
|
|
74
|
+
], 6)
|
|
76
75
|
], 2));
|
|
77
76
|
}
|
|
78
77
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-dropdown.vue.js","sources":["../../../src/components/ui-dropdown/ui-dropdown.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"bg-white\"\n\t\t:class=\"{\n\t\t\t'rounded-lg border border-secondary-alt-300': kind === EDropdownKinds.DEFAULT\n\t\t}\"\n\t>\n\t\t<div\n\t\t\tclass=\"flex justify-between px-md py-sm\"\n\t\t\t:class=\"{\n\t\t\t\t'rounded-lg border border-secondary': kind === EDropdownKinds.SECONDARY\n\t\t\t}\"\n\t\t\t@click=\"isOpen = !isOpen\"\n\t\t>\n\t\t\t<ui-typography\n\t\t\t\tline-height\n\t\t\t\t:size=\"ETypographySizes.
|
|
1
|
+
{"version":3,"file":"ui-dropdown.vue.js","sources":["../../../src/components/ui-dropdown/ui-dropdown.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"bg-white\"\n\t\t:class=\"{\n\t\t\t'rounded-lg border border-secondary-alt-300': kind === EDropdownKinds.DEFAULT\n\t\t}\"\n\t>\n\t\t<div\n\t\t\tclass=\"flex items-center justify-between px-md py-sm\"\n\t\t\t:class=\"{\n\t\t\t\t'rounded-lg border border-secondary': kind === EDropdownKinds.SECONDARY\n\t\t\t}\"\n\t\t\t@click=\"isOpen = !isOpen\"\n\t\t>\n\t\t\t<ui-typography\n\t\t\t\tline-height\n\t\t\t\t:size=\"ETypographySizes.LG\"\n\t\t\t\t:weight=\"ETextWeight.SEMI_BOLD \"\n\t\t\t>\n\t\t\t\t{{ header }}\n\t\t\t</ui-typography>\n\n\t\t\t<ui-icon\n\t\t\t\tclass=\"item-icon duration-200\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'rotate-180': isOpen,\n\t\t\t\t\t'rotate-0': !isOpen\n\t\t\t\t}\"\n\t\t\t\t:icon-name=\"iconName\"\n\t\t\t\t:size=\"ESize.SM\"\n\t\t\t/>\n\t\t</div>\n\n\t\t<div\n\t\t\tclass=\"overflow-hidden duration-300\"\n\t\t\t:style=\"{\n\t\t\t\theight: accordionHeight + 'px'\n\t\t\t}\"\n\t\t\t:class=\"{\n\t\t\t\t'border border-transparent border-t-secondary-alt-300':\n\t\t\t\t\tkind === EDropdownKinds.DEFAULT,\n\t\t\t\t'!h-0 opacity-0': !isOpen,\n\t\t\t\t'h-auto opacity-100': isOpen\n\n\t\t\t}\"\n\t\t>\n\t\t\t<div\n\t\t\t\tref=\"contentRef\"\n\t\t\t\tclass=\"box-border pt-sm\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'p-sm': kind === EDropdownKinds.DEFAULT\n\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t<slot>\n\t\t\t\t\t{{ subText }}\n\t\t\t\t</slot>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { onMounted, ref } from \"vue\";\n\timport UiTypography, { ETypographySizes, ETextWeight } from \"../ui-typography\";\n\timport UiIcon, { type TIconName, ESize } from \"../ui-icon\";\n\timport { EDropdownKinds } from \"./_typings\";\n\n\tconst contentRef = ref<null | HTMLDivElement>(null);\n\tconst accordionHeight = ref<number>(0);\n\n\tconst props = withDefaults(defineProps<{\n\t\theader?: string;\n\t\ticonName: TIconName;\n\t\tsubText?: string;\n\t\tkind?: EDropdownKinds;\n\t\tactive?: boolean;\n\n\t}>(), {\n\t\tkind: EDropdownKinds.DEFAULT,\n\t});\n\n\tconst isOpen = ref(props.active);\n\n\tonMounted(()=>{\n\t\tif (contentRef.value) {\n\t\t\tconst { height } = contentRef.value.getBoundingClientRect();\n\t\t\taccordionHeight.value = height;\n\t\t}\n\t});\n\n</script>\n"],"names":["contentRef","ref","accordionHeight","isOpen","__props","onMounted","height"],"mappings":";;;;;;;;;;;;;;;;AAoEO,UAAAA,IAAaC,EAA2B,IAAI,GAC5CC,IAAkBD,EAAY,CAAC,GAa/BE,IAASF,EAXDG,EAWW,MAAM;AAE/B,WAAAC,EAAU,MAAI;AACb,UAAIL,EAAW,OAAO;AACrB,cAAM,EAAE,QAAAM,EAAW,IAAAN,EAAW,MAAM,sBAAsB;AAC1D,QAAAE,EAAgB,QAAQI;AAAA,MACzB;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|