@adyen/bento-vue2 0.0.5 → 0.0.6
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/@types/components/button/button.vue.d.ts +0 -3
- package/dist/@types/components/button/components/button-actions/button-actions.types.d.ts +1 -1
- package/dist/@types/components/button/components/button-group.vue.d.ts +2 -2
- package/dist/@types/components/button/components/loading-button/loading-button.types.d.ts +1 -1
- package/dist/@types/components/card/card.vue.d.ts +9 -11
- package/dist/@types/components/card/components/card-image/card-image.vue.d.ts +1 -1
- package/dist/@types/components/checkbox/checkbox.types.d.ts +2 -2
- package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts +1 -1
- package/dist/@types/components/data-grid/data-grid.types.d.ts +5 -5
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +1 -1
- package/dist/@types/components/dropdown/components/dropdown-input-container/dropdown-input-container.vue.d.ts +1 -1
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-option/dropdown-option.vue.d.ts +1 -1
- package/dist/@types/components/dropdown/dropdown.types.d.ts +3 -3
- package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -1
- package/dist/@types/components/filter-bar/filter-bar.types.d.ts +1 -1
- package/dist/@types/components/input-field/input-field.vue.d.ts +1 -1
- package/dist/@types/components/link/link.vue.d.ts +4 -4
- package/dist/@types/components/page-header/components/title-item/title-item.vue.d.ts +1 -1
- package/dist/@types/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +1 -1
- package/dist/@types/components/popover/components/popover-image/popover-image.vue.d.ts +1 -1
- package/dist/@types/components/popover/components/popover-title/popover-title.vue.d.ts +1 -1
- package/dist/@types/components/popover/popover.types.d.ts +1 -1
- package/dist/@types/components/popper-container/popper-container.types.d.ts +8 -8
- package/dist/@types/components/profile-picture/profile-picture.vue.d.ts +7 -7
- package/dist/@types/components/radio-button/radio-button.vue.d.ts +1 -1
- package/dist/@types/components/textarea/textarea.vue.d.ts +2 -2
- package/dist/@types/components/tooltip/index.d.ts +1 -2
- package/dist/@types/components/tooltip/tooltip.vue.d.ts +49 -15
- package/dist/@types/components.d.ts +0 -2
- package/dist/@types/directives/click-outside/directive.d.ts +1 -1
- package/dist/@types/directives/click-outside/types.d.ts +1 -1
- package/dist/@types/directives/click-outside/useEventListener/types.d.ts +3 -3
- package/dist/@types/directives/index.d.ts +2 -1
- package/dist/@types/directives/tooltip/index.d.ts +2 -0
- package/dist/@types/directives/tooltip/tooltip.d.ts +2 -0
- package/dist/@types/{components → directives}/tooltip/tooltip.types.d.ts +2 -2
- package/dist/@types/index.d.ts +0 -1
- package/dist/@types/types/elements.d.ts +5 -5
- package/dist/@types/types/functions.d.ts +2 -2
- package/dist/@types/types/maybe-ref.d.ts +1 -1
- package/dist/@types/types/refs.d.ts +3 -3
- package/dist/index.js +388 -398
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/@types/components/tooltip/components/tooltip-container.vue.d.ts +0 -70
- package/dist/@types/directives/tooltip.d.ts +0 -3
- package/dist/web-types.json +0 -2842
|
@@ -31,9 +31,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
[x: string]: boolean;
|
|
32
32
|
}>;
|
|
33
33
|
onClickButton: () => void;
|
|
34
|
-
onFocusButton: () => void;
|
|
35
|
-
onBlurButton: () => void;
|
|
36
|
-
onKeydownEscButton: () => void;
|
|
37
34
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("blur" | "click" | "focus" | "keydown.esc")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
38
35
|
disabled: {
|
|
39
36
|
type: BooleanConstructor;
|
|
@@ -4,7 +4,7 @@ export interface BentoButtonActionObject {
|
|
|
4
4
|
event: (event: Event) => void;
|
|
5
5
|
icon?: VueNodeElement;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type BentoButtonActionsList = Array<BentoButtonActionObject>;
|
|
8
8
|
export declare enum BentoButtonActionsLayout {
|
|
9
9
|
BUTTONS_END = "buttons-end",
|
|
10
10
|
FILL_CONTAINER = "fill-container",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
|
|
2
2
|
default: (_: {}) => any;
|
|
3
3
|
}>;
|
|
4
4
|
export default _default;
|
|
5
|
-
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
6
|
new (): {
|
|
7
7
|
$slots: S;
|
|
8
8
|
};
|
|
@@ -13,18 +13,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
type: PropType<AdlCardImagePosition>;
|
|
14
14
|
default: AdlCardImagePosition;
|
|
15
15
|
};
|
|
16
|
-
}, {}, {}, {
|
|
17
|
-
conditionalClasses(): {
|
|
18
|
-
[key: string]: boolean;
|
|
19
|
-
};
|
|
20
|
-
isClickable(): boolean;
|
|
21
|
-
showBody(): boolean;
|
|
22
|
-
showFooter(): boolean;
|
|
23
|
-
showHeaderActions(): boolean;
|
|
24
|
-
showImage(): boolean;
|
|
25
16
|
}, {
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
18
|
+
[x: string]: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
showBody: import("vue").ComputedRef<boolean>;
|
|
21
|
+
showHeaderActions: import("vue").ComputedRef<boolean>;
|
|
22
|
+
showImage: import("vue").ComputedRef<boolean>;
|
|
23
|
+
showFooter: import("vue").ComputedRef<boolean>;
|
|
24
|
+
onClickCard: () => void;
|
|
25
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
28
26
|
title: {
|
|
29
27
|
type: StringConstructor;
|
|
30
28
|
required: true;
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
-
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
src: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
required: true;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type BentoMultiCheckboxType = Array<string | number>;
|
|
2
|
+
export type BentoCheckboxType = boolean | BentoMultiCheckboxType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { BentoColumn } from '../../data-grid.types';
|
|
3
|
-
export
|
|
3
|
+
export type FlexColumnLookup = Record<BentoColumn['field'], {
|
|
4
4
|
flex: number;
|
|
5
5
|
computedWidth: number;
|
|
6
6
|
frozen: boolean;
|
|
@@ -31,8 +31,8 @@ export interface BentoDatagridDataItem {
|
|
|
31
31
|
id?: string;
|
|
32
32
|
[fieldName: string]: unknown;
|
|
33
33
|
}
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
34
|
+
export type BentoDatagridData = BentoDatagridDataItem[];
|
|
35
|
+
export type BentoDatagridDataItemId = string | number;
|
|
36
|
+
export type BentoDatagridGetDataItemIdFn = (item: BentoDatagridDataItem) => BentoDatagridDataItemId;
|
|
37
|
+
export type BentoDatagridIsDataItemDisabledFn = (item: BentoDatagridDataItem) => boolean;
|
|
38
|
+
export type BentoDatagridPaginationProps = InstanceType<typeof BentoPagination>['$props'];
|
|
@@ -186,7 +186,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
186
186
|
paginationNavigate: (page: number) => void;
|
|
187
187
|
onItemsPerPageChange: (itemsPerPage: number) => void;
|
|
188
188
|
body: any;
|
|
189
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("navigate" | "select" | "items-page" | "column-resize" | "
|
|
189
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("sort" | "navigate" | "select" | "items-page" | "column-resize" | "update:filters")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
190
190
|
condensed: {
|
|
191
191
|
type: BooleanConstructor;
|
|
192
192
|
default: boolean;
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
33
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
34
34
|
onCloseDropdown: () => void;
|
|
35
35
|
onToggleDropdown: () => void;
|
|
36
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
37
37
|
ariaLabel: {
|
|
38
38
|
type: StringConstructor;
|
|
39
39
|
default: any;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
}>;
|
|
20
20
|
ariaSelected: import("vue").ComputedRef<boolean>;
|
|
21
21
|
onOptionSelected: () => void;
|
|
22
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
23
23
|
label: {
|
|
24
24
|
type: StringConstructor;
|
|
25
25
|
required: true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type AdlDropdownValue = string | number;
|
|
2
2
|
export interface AdlDropdownOptionItem {
|
|
3
3
|
label: string;
|
|
4
4
|
value: AdlDropdownValue;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type AdlDropdownSelectedValue = AdlDropdownValue;
|
|
7
|
+
export type AdlDropdownOptions = Array<AdlDropdownOptionItem>;
|
|
@@ -62,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
62
|
onClickOutside: () => void;
|
|
63
63
|
filterButtonRef: any;
|
|
64
64
|
BentoButtonVariant: typeof BentoButtonVariant;
|
|
65
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("open" | "
|
|
65
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("open" | "clear" | "close" | "dismiss" | "apply")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
66
66
|
alwaysShowNameInLabel: {
|
|
67
67
|
type: BooleanConstructor;
|
|
68
68
|
default: boolean;
|
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
38
|
inputFieldElement: any;
|
|
39
39
|
shouldDisplayStaticValueAtStart: import("vue").ComputedRef<boolean>;
|
|
40
40
|
shouldDisplayStaticValueAtEnd: import("vue").ComputedRef<boolean>;
|
|
41
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
42
42
|
disabled: {
|
|
43
43
|
type: BooleanConstructor;
|
|
44
44
|
default: boolean;
|
|
@@ -18,8 +18,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
18
|
default: (_: import("vue-router/types/router").RouterLinkSlotArgument) => any;
|
|
19
19
|
}>;
|
|
20
20
|
export default _default;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
23
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
24
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
25
|
} : {
|
|
@@ -27,12 +27,12 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
27
27
|
required: true;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
31
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
32
32
|
default: D[K];
|
|
33
33
|
} : P[K];
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
36
|
new (): {
|
|
37
37
|
$slots: S;
|
|
38
38
|
};
|
|
@@ -3,7 +3,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
-
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
title: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
required: true;
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
'b-popover-dismiss-button--on-image': boolean;
|
|
10
10
|
}>;
|
|
11
11
|
BentoButtonVariant: typeof BentoButtonVariant;
|
|
12
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
13
13
|
onImage: {
|
|
14
14
|
type: BooleanConstructor;
|
|
15
15
|
default: boolean;
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
-
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
src: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
required: true;
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
isStrongest: import("vue").ComputedRef<boolean>;
|
|
13
13
|
titleVariant: import("vue").ComputedRef<BentoTypographyVariant.BODY | BentoTypographyVariant.SUBTITLE>;
|
|
14
14
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
15
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
isImageTitle: {
|
|
17
17
|
type: BooleanConstructor;
|
|
18
18
|
default: boolean;
|
|
@@ -16,4 +16,4 @@ export declare const BentoPopoverPositions: {
|
|
|
16
16
|
BOTTOM: import("../popper-container").PopperContainerPositionBasic.BOTTOM;
|
|
17
17
|
LEFT: import("../popper-container").PopperContainerPositionBasic.LEFT;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type BentoPopoverPositions = PopperContainerPosition;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Modifier, StrictModifiers } from '@popperjs/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
2
|
+
type ArrowModifier = Modifier<'arrow', unknown>;
|
|
3
|
+
type ApplyArrowHideModifier = Modifier<'applyArrowHide', unknown>;
|
|
4
|
+
type SameWidthModifier = Modifier<'sameWidth', unknown>;
|
|
5
|
+
type TrackPositionModifer = Modifier<'trackPosition', unknown>;
|
|
6
|
+
type FlipModifer = Modifier<'flip', unknown>;
|
|
7
|
+
export type ExtendedModifiers = StrictModifiers | ArrowModifier | ApplyArrowHideModifier | SameWidthModifier | TrackPositionModifer | FlipModifer;
|
|
8
8
|
export interface PopperContainerArrowProp {
|
|
9
9
|
classes?: string[];
|
|
10
10
|
padding?: string;
|
|
@@ -49,6 +49,6 @@ export declare const PopperContainerPosition: {
|
|
|
49
49
|
BOTTOM: PopperContainerPositionBasic.BOTTOM;
|
|
50
50
|
LEFT: PopperContainerPositionBasic.LEFT;
|
|
51
51
|
};
|
|
52
|
-
export
|
|
53
|
-
export
|
|
52
|
+
export type PopperContainerPosition = PopperContainerPositionBasic | PopperContainerPositionExtended;
|
|
53
|
+
export type FallbackPositionProp = PopperContainerPosition[] | PopperContainerPosition;
|
|
54
54
|
export {};
|
|
@@ -14,13 +14,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
default: AdlProfilePictureVariant;
|
|
15
15
|
validator: (value: AdlProfilePictureVariant) => boolean;
|
|
16
16
|
};
|
|
17
|
-
}, {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
}, {
|
|
18
|
+
ariaLabel: import("vue").Ref<string>;
|
|
19
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
20
|
+
[x: string]: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
initials: import("vue").ComputedRef<string>;
|
|
23
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
24
24
|
src: {
|
|
25
25
|
type: StringConstructor;
|
|
26
26
|
default: any;
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
onClick: () => void;
|
|
26
26
|
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
27
27
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
28
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
disabled: {
|
|
30
30
|
type: BooleanConstructor;
|
|
31
31
|
default: boolean;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
};
|
|
18
18
|
}, {}, {}, {}, {
|
|
19
19
|
onInput(event: Event): void;
|
|
20
|
-
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
label: {
|
|
22
22
|
type: StringConstructor;
|
|
23
23
|
default: string;
|
|
@@ -35,9 +35,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
37
|
}>>, {
|
|
38
|
-
description: string;
|
|
39
38
|
value: string;
|
|
40
39
|
label: string;
|
|
40
|
+
description: string;
|
|
41
41
|
placeholder: string;
|
|
42
42
|
}>;
|
|
43
43
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { BentoTooltipPosition, BentoTooltipState } from './tooltip.types';
|
|
1
|
+
export { Tooltip } from './tooltip.vue';
|
|
@@ -1,39 +1,73 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { PopperContainerAriaRole, PopperContainerPositionExtended } from '@/components/popper-container';
|
|
3
|
+
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
2
4
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
|
|
4
|
-
type:
|
|
5
|
+
id: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
targetElement: {
|
|
10
|
+
type: PropType<import("../../index.js").VueNodeElement>;
|
|
5
11
|
required: true;
|
|
6
12
|
};
|
|
7
13
|
position: {
|
|
8
|
-
type: PropType<import("
|
|
9
|
-
default: import("
|
|
14
|
+
type: PropType<import("@/components/popper-container").PopperContainerPositionBasic>;
|
|
15
|
+
default: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
10
16
|
validator: (value: unknown) => boolean;
|
|
11
17
|
};
|
|
18
|
+
offset: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
12
22
|
content: {
|
|
13
23
|
type: StringConstructor;
|
|
14
24
|
required: true;
|
|
15
25
|
};
|
|
26
|
+
isShown: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
16
30
|
}, {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
32
|
+
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
33
|
+
PopperContainerAriaRole: typeof PopperContainerAriaRole;
|
|
34
|
+
PopperContainerPositionExtended: typeof PopperContainerPositionExtended;
|
|
35
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
36
|
+
[x: string]: boolean;
|
|
37
|
+
}>;
|
|
38
|
+
tabIndex: import("vue").ComputedRef<number>;
|
|
39
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
id: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: any;
|
|
43
|
+
};
|
|
44
|
+
targetElement: {
|
|
45
|
+
type: PropType<import("../../index.js").VueNodeElement>;
|
|
25
46
|
required: true;
|
|
26
47
|
};
|
|
27
48
|
position: {
|
|
28
|
-
type: PropType<import("
|
|
29
|
-
default: import("
|
|
49
|
+
type: PropType<import("@/components/popper-container").PopperContainerPositionBasic>;
|
|
50
|
+
default: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
30
51
|
validator: (value: unknown) => boolean;
|
|
31
52
|
};
|
|
53
|
+
offset: {
|
|
54
|
+
type: NumberConstructor;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
32
57
|
content: {
|
|
33
58
|
type: StringConstructor;
|
|
34
59
|
required: true;
|
|
35
60
|
};
|
|
61
|
+
isShown: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
36
65
|
}>>, {
|
|
37
|
-
|
|
66
|
+
offset: number;
|
|
67
|
+
id: string;
|
|
68
|
+
position: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
69
|
+
isShown: boolean;
|
|
38
70
|
}>;
|
|
39
71
|
export default _default;
|
|
72
|
+
export declare class Tooltip {
|
|
73
|
+
}
|
|
@@ -32,7 +32,6 @@ import {
|
|
|
32
32
|
BentoStatus,
|
|
33
33
|
BentoTag,
|
|
34
34
|
BentoToggle,
|
|
35
|
-
BentoTooltip,
|
|
36
35
|
BentoTypography,
|
|
37
36
|
} from './index';
|
|
38
37
|
|
|
@@ -71,7 +70,6 @@ declare module 'vue' {
|
|
|
71
70
|
BentoStatus: typeof BentoStatus;
|
|
72
71
|
BentoTag: typeof BentoTag;
|
|
73
72
|
BentoToggle: typeof BentoToggle;
|
|
74
|
-
BentoTooltip: typeof BentoTooltip;
|
|
75
73
|
BentoTypography: typeof BentoTypography;
|
|
76
74
|
}
|
|
77
75
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type Arrayable<T> = T[] | T;
|
|
2
|
+
export type WindowEventName = keyof WindowEventMap;
|
|
3
|
+
export type DocumentEventName = keyof DocumentEventMap;
|
|
4
4
|
export interface GeneralEventListener<E = Event> {
|
|
5
5
|
(evt: E): void;
|
|
6
6
|
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './click-outside';
|
|
2
|
+
export * from './tooltip';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PopperContainerPositionBasic } from '
|
|
1
|
+
import { PopperContainerPositionBasic } from '../../components/popper-container';
|
|
2
2
|
export declare const BentoTooltipPosition: {
|
|
3
3
|
TOP: PopperContainerPositionBasic.TOP;
|
|
4
4
|
RIGHT: PopperContainerPositionBasic.RIGHT;
|
|
5
5
|
BOTTOM: PopperContainerPositionBasic.BOTTOM;
|
|
6
6
|
LEFT: PopperContainerPositionBasic.LEFT;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type BentoTooltipPosition = PopperContainerPositionBasic;
|
|
9
9
|
export declare enum BentoTooltipState {
|
|
10
10
|
HIDDEN = "hidden"
|
|
11
11
|
}
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export * from './components/radio-button';
|
|
|
13
13
|
export * from './components/status';
|
|
14
14
|
export * from './components/tag';
|
|
15
15
|
export * from './components/toggle';
|
|
16
|
-
export * from './components/tooltip';
|
|
17
16
|
export * from './components/typography';
|
|
18
17
|
export * from './types';
|
|
19
18
|
export * from './directives';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
2
|
import type { ComponentPublicInstance } from 'vue';
|
|
3
3
|
import { MaybeComputedRef, MaybeRef } from './refs';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
4
|
+
export type VueInstance = ComponentPublicInstance;
|
|
5
|
+
export type VueNodeElement = Vue | Element | (Vue | Element)[] | undefined;
|
|
6
|
+
export type MaybeElement = HTMLElement | SVGElement | VueInstance | undefined | null;
|
|
7
|
+
export type MaybeElementRef<T extends MaybeElement = MaybeElement> = MaybeRef<T>;
|
|
8
|
+
export type MaybeComputedElementRef<T extends MaybeElement = MaybeElement> = MaybeComputedRef<T>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Fn = () => void;
|
|
2
|
+
export type AnyFn<T> = (...args: T[]) => T;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
export
|
|
2
|
+
export type MaybeRef<T> = T | Ref<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type MaybeRef<T> = T | Ref<T>;
|
|
3
|
+
export type MaybeReadonlyRef<T> = (() => T) | ComputedRef<T>;
|
|
4
|
+
export type MaybeComputedRef<T> = MaybeReadonlyRef<T> | MaybeRef<T>;
|