@adyen/bento-vue2 0.0.5 → 0.0.7
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/README.md +13 -1
- 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/controls-group/controls-group.vue.d.ts +49 -0
- package/dist/@types/components/controls-group/index.d.ts +1 -0
- 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/focus-trap/focus-trap.types.d.ts +4 -4
- package/dist/@types/components/focus-trap/focus-trap.utils.d.ts +2 -2
- package/dist/@types/components/focus-trap/focus-trap.vue.d.ts +5 -5
- package/dist/@types/components/focus-trap/index.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/popper-container/popper-container.vue.d.ts +9 -0
- 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 +4 -4
- 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 +1377 -954
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- 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
package/README.md
CHANGED
|
@@ -29,7 +29,8 @@ npm install @adyen/bento-vue2
|
|
|
29
29
|
In order to use the compoent via the `BentoVue` plugin, the following steps must be reproduced:
|
|
30
30
|
|
|
31
31
|
1. Load the plugin globally in **Vue**
|
|
32
|
-
2.
|
|
32
|
+
2. Import the `font.css` file.
|
|
33
|
+
3. Use the library defined components in your application
|
|
33
34
|
|
|
34
35
|
#### Load plugin and register components
|
|
35
36
|
|
|
@@ -42,6 +43,17 @@ import BentoVue from '@adyen/bento-vue2';
|
|
|
42
43
|
Vue.use(BentoVue);
|
|
43
44
|
```
|
|
44
45
|
|
|
46
|
+
#### Import the fonts
|
|
47
|
+
|
|
48
|
+
When using the default theme, you will need to include the required `Inter` font in your project application. This can
|
|
49
|
+
easily be done by simply importing the `font.css` file.
|
|
50
|
+
|
|
51
|
+
NOTE: make sure the builder your are using (e.g. `webpack` , `vite`, etc...) is able to process font files.
|
|
52
|
+
|
|
53
|
+
```javascript
|
|
54
|
+
import '@adyen/bento-vue2/fonts.css';
|
|
55
|
+
```
|
|
56
|
+
|
|
45
57
|
#### Use the components
|
|
46
58
|
|
|
47
59
|
Inside the `.vue` components of your application, you can simply use the available components:
|
|
@@ -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, "click"[], 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;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
label: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
showLabel: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
form: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: any;
|
|
14
|
+
};
|
|
15
|
+
disabled: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
21
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
22
|
+
'b-controls-group--disabled': boolean;
|
|
23
|
+
}>;
|
|
24
|
+
legendConditionalClasses: import("vue").ComputedRef<{
|
|
25
|
+
'b-controls-group__label--hidden': boolean;
|
|
26
|
+
}>;
|
|
27
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
label: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
showLabel: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
form: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
disabled: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}>>, {
|
|
45
|
+
form: string;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
showLabel: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ControlsGroup } from './controls-group.vue';
|
|
@@ -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;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum BentoFocusTrapArrowNavigationDirection {
|
|
2
2
|
VERTICAL = "vertical",
|
|
3
3
|
HORIZONTAL = "horizontal"
|
|
4
4
|
}
|
|
5
|
-
export declare enum
|
|
5
|
+
export declare enum BentoFocusTrapVerticalNavigationEvent {
|
|
6
6
|
ARROW_UP = "arrowup",
|
|
7
7
|
ARROW_DOWN = "arrowdown"
|
|
8
8
|
}
|
|
9
|
-
export declare enum
|
|
9
|
+
export declare enum BentoFocusTrapHorizontalNavigationEvent {
|
|
10
10
|
ARROW_LEFT = "arrowleft",
|
|
11
11
|
ARROW_RIGHT = "arrowright"
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
13
|
+
export interface BentoFocusTrapFocusableIn {
|
|
14
14
|
node: HTMLElement;
|
|
15
15
|
index: number;
|
|
16
16
|
lockItem: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BentoFocusTrapHorizontalNavigationEvent, BentoFocusTrapVerticalNavigationEvent } from './focus-trap.types';
|
|
2
2
|
export declare const deferAction: (callback: FrameRequestCallback) => number;
|
|
3
3
|
export declare const getNextFocusableElement: (factor: any, element: any) => HTMLElement;
|
|
4
|
-
export declare const getArrowType: (event: KeyboardEvent, arrowOrder:
|
|
4
|
+
export declare const getArrowType: (event: KeyboardEvent, arrowOrder: BentoFocusTrapVerticalNavigationEvent[] | BentoFocusTrapHorizontalNavigationEvent[]) => {
|
|
5
5
|
isArrowNext: boolean;
|
|
6
6
|
isArrowPrev: boolean;
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { BentoFocusTrapArrowNavigationDirection, BentoFocusTrapHorizontalNavigationEvent, BentoFocusTrapVerticalNavigationEvent } from './focus-trap.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
arrowNavigation: {
|
|
5
|
-
type: PropType<
|
|
5
|
+
type: PropType<BentoFocusTrapArrowNavigationDirection>;
|
|
6
6
|
default: any;
|
|
7
7
|
validator: (value: unknown) => boolean;
|
|
8
8
|
};
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
}, {
|
|
16
16
|
isHorizontalArrowNavigation(): boolean;
|
|
17
17
|
isVerticalArrowNavigation(): boolean;
|
|
18
|
-
arrowOrder():
|
|
18
|
+
arrowOrder(): BentoFocusTrapVerticalNavigationEvent[] | BentoFocusTrapHorizontalNavigationEvent[];
|
|
19
19
|
}, {
|
|
20
20
|
setFocusInside(): Promise<void>;
|
|
21
21
|
onBlur(): void;
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
disable(): void;
|
|
25
25
|
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
26
26
|
arrowNavigation: {
|
|
27
|
-
type: PropType<
|
|
27
|
+
type: PropType<BentoFocusTrapArrowNavigationDirection>;
|
|
28
28
|
default: any;
|
|
29
29
|
validator: (value: unknown) => boolean;
|
|
30
30
|
};
|
|
@@ -34,6 +34,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
};
|
|
35
35
|
}>>, {
|
|
36
36
|
disabled: boolean;
|
|
37
|
-
arrowNavigation:
|
|
37
|
+
arrowNavigation: BentoFocusTrapArrowNavigationDirection;
|
|
38
38
|
}>;
|
|
39
39
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as BentoFocusTrap } from './focus-trap.vue';
|
|
@@ -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 {};
|
|
@@ -37,6 +37,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
type: BooleanConstructor;
|
|
38
38
|
default: boolean;
|
|
39
39
|
};
|
|
40
|
+
disabledFocusTrap: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
40
44
|
modifiers: {
|
|
41
45
|
type: ArrayConstructor;
|
|
42
46
|
default: any;
|
|
@@ -97,6 +101,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
101
|
type: BooleanConstructor;
|
|
98
102
|
default: boolean;
|
|
99
103
|
};
|
|
104
|
+
disabledFocusTrap: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
100
108
|
modifiers: {
|
|
101
109
|
type: ArrayConstructor;
|
|
102
110
|
default: any;
|
|
@@ -119,6 +127,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
119
127
|
arrow: any;
|
|
120
128
|
matchWidth: boolean;
|
|
121
129
|
fixedPositioning: boolean;
|
|
130
|
+
disabledFocusTrap: boolean;
|
|
122
131
|
fallbackPosition: FallbackPositionProp;
|
|
123
132
|
ariaRole: PopperContainerAriaRole;
|
|
124
133
|
}>;
|
|
@@ -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;
|
|
@@ -15,9 +15,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
type: StringConstructor;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
|
-
}, {
|
|
19
|
-
onInput(event: Event)
|
|
20
|
-
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin,
|
|
18
|
+
}, {
|
|
19
|
+
onInput: (event: Event) => void;
|
|
20
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "input"[], 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
|
+
}
|