@adyen/bento-vue2 0.0.1
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 +115 -0
- package/dist/@types/components/accordion/accordion.keys.d.ts +1 -0
- package/dist/@types/components/accordion/accordion.types.d.ts +24 -0
- package/dist/@types/components/accordion/accordion.vue.d.ts +57 -0
- package/dist/@types/components/accordion/components/accordion-item.vue.d.ts +35 -0
- package/dist/@types/components/accordion/index.d.ts +3 -0
- package/dist/@types/components/alert/alert.types.d.ts +6 -0
- package/dist/@types/components/alert/alert.vue.d.ts +34 -0
- package/dist/@types/components/alert/index.d.ts +2 -0
- package/dist/@types/components/badge/badge.types.d.ts +7 -0
- package/dist/@types/components/badge/badge.vue.d.ts +32 -0
- package/dist/@types/components/badge/index.d.ts +2 -0
- package/dist/@types/components/button/button.types.d.ts +11 -0
- package/dist/@types/components/button/button.vue.d.ts +68 -0
- package/dist/@types/components/button/components/button-actions/button-actions.types.d.ts +13 -0
- package/dist/@types/components/button/components/button-actions/button-actions.vue.d.ts +33 -0
- package/dist/@types/components/button/components/button-actions/index.d.ts +2 -0
- package/dist/@types/components/button/components/button-group.vue.d.ts +9 -0
- package/dist/@types/components/button/components/loading-button/index.d.ts +2 -0
- package/dist/@types/components/button/components/loading-button/loading-button.types.d.ts +9 -0
- package/dist/@types/components/button/components/loading-button/loading-button.vue.d.ts +55 -0
- package/dist/@types/components/button/index.d.ts +5 -0
- package/dist/@types/components/card/card.types.d.ts +10 -0
- package/dist/@types/components/card/card.vue.d.ts +44 -0
- package/dist/@types/components/card/components/card-image/card-image.vue.d.ts +20 -0
- package/dist/@types/components/card/index.d.ts +3 -0
- package/dist/@types/components/checkbox/checkbox.types.d.ts +2 -0
- package/dist/@types/components/checkbox/checkbox.vue.d.ts +59 -0
- package/dist/@types/components/checkbox/index.d.ts +2 -0
- package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +10 -0
- package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts +10 -0
- package/dist/@types/components/data-grid/composables/useResizer.d.ts +17 -0
- package/dist/@types/components/data-grid/composables/useSelector.d.ts +11 -0
- package/dist/@types/components/data-grid/composables/useSorter.d.ts +8 -0
- package/dist/@types/components/data-grid/data-grid.types.d.ts +33 -0
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +290 -0
- package/dist/@types/components/data-grid/index.d.ts +2 -0
- package/dist/@types/components/dropdown/components/dropdown-input-container/dropdown-input-container.vue.d.ts +68 -0
- package/dist/@types/components/dropdown/components/dropdown-input-container/index.d.ts +1 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-option/dropdown-option.vue.d.ts +38 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-option/index.d.ts +1 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +86 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/index.d.ts +1 -0
- package/dist/@types/components/dropdown/dropdown.types.d.ts +7 -0
- package/dist/@types/components/dropdown/dropdown.vue.d.ts +59 -0
- package/dist/@types/components/dropdown/index.d.ts +2 -0
- package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +94 -0
- package/dist/@types/components/filter-bar/components/base-filter/composables/index.d.ts +9 -0
- package/dist/@types/components/filter-bar/components/base-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/text-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/text-filter/text-filter.vue.d.ts +49 -0
- package/dist/@types/components/filter-bar/filter-bar.types.d.ts +15 -0
- package/dist/@types/components/filter-bar/filter-bar.vue.d.ts +19 -0
- package/dist/@types/components/filter-bar/index.d.ts +2 -0
- package/dist/@types/components/focus-trap/focus-trap.types.d.ts +18 -0
- package/dist/@types/components/focus-trap/focus-trap.utils.d.ts +8 -0
- package/dist/@types/components/focus-trap/focus-trap.vue.d.ts +39 -0
- package/dist/@types/components/focus-trap/index.d.ts +1 -0
- package/dist/@types/components/input-field/index.d.ts +1 -0
- package/dist/@types/components/input-field/input-field.types.d.ts +13 -0
- package/dist/@types/components/input-field/input-field.vue.d.ts +74 -0
- package/dist/@types/components/input-radio/index.d.ts +1 -0
- package/dist/@types/components/input-radio/input-radio.vue.d.ts +45 -0
- package/dist/@types/components/link/index.d.ts +1 -0
- package/dist/@types/components/link/link.vue.d.ts +25 -0
- package/dist/@types/components/loading-indicator/index.d.ts +2 -0
- package/dist/@types/components/loading-indicator/loading-indicator.types.d.ts +4 -0
- package/dist/@types/components/loading-indicator/loading-indicator.vue.d.ts +39 -0
- package/dist/@types/components/page-header/components/title-item/title-item.vue.d.ts +12 -0
- package/dist/@types/components/page-header/index.d.ts +1 -0
- package/dist/@types/components/page-header/page-header.vue.d.ts +12 -0
- package/dist/@types/components/pagination/components/pagination-context/pagination-context.vue.d.ts +32 -0
- package/dist/@types/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +39 -0
- package/dist/@types/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +35 -0
- package/dist/@types/components/pagination/index.d.ts +1 -0
- package/dist/@types/components/pagination/pagination.vue.d.ts +59 -0
- package/dist/@types/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +20 -0
- package/dist/@types/components/popover/components/popover-image/index.d.ts +1 -0
- package/dist/@types/components/popover/components/popover-image/popover-image.vue.d.ts +20 -0
- package/dist/@types/components/popover/index.d.ts +2 -0
- package/dist/@types/components/popover/popover.types.d.ts +19 -0
- package/dist/@types/components/popover/popover.vue.d.ts +131 -0
- package/dist/@types/components/popper-container/index.d.ts +2 -0
- package/dist/@types/components/popper-container/popper-container.types.d.ts +54 -0
- package/dist/@types/components/popper-container/popper-container.utils.d.ts +23 -0
- package/dist/@types/components/popper-container/popper-container.vue.d.ts +116 -0
- package/dist/@types/components/profile-picture/index.d.ts +2 -0
- package/dist/@types/components/profile-picture/profile-picture.types.d.ts +4 -0
- package/dist/@types/components/profile-picture/profile-picture.vue.d.ts +42 -0
- package/dist/@types/components/segmented-control/components/segmented-option.vue.d.ts +59 -0
- package/dist/@types/components/segmented-control/index.d.ts +3 -0
- package/dist/@types/components/segmented-control/segmented-control.keys.d.ts +1 -0
- package/dist/@types/components/segmented-control/segmented-control.types.d.ts +15 -0
- package/dist/@types/components/segmented-control/segmented-control.vue.d.ts +42 -0
- package/dist/@types/components/status/index.d.ts +2 -0
- package/dist/@types/components/status/status.types.d.ts +8 -0
- package/dist/@types/components/status/status.vue.d.ts +23 -0
- package/dist/@types/components/tabs/components/tab.vue.d.ts +59 -0
- package/dist/@types/components/tabs/index.d.ts +3 -0
- package/dist/@types/components/tabs/tabs.keys.d.ts +1 -0
- package/dist/@types/components/tabs/tabs.types.d.ts +9 -0
- package/dist/@types/components/tabs/tabs.vue.d.ts +17 -0
- package/dist/@types/components/tag/index.d.ts +2 -0
- package/dist/@types/components/tag/tag.types.d.ts +7 -0
- package/dist/@types/components/tag/tag.vue.d.ts +37 -0
- package/dist/@types/components/textarea/index.d.ts +1 -0
- package/dist/@types/components/textarea/textarea.vue.d.ts +43 -0
- package/dist/@types/components/toggle/index.d.ts +2 -0
- package/dist/@types/components/toggle/toggle.types.d.ts +3 -0
- package/dist/@types/components/toggle/toggle.vue.d.ts +60 -0
- package/dist/@types/components/tooltip/index.d.ts +2 -0
- package/dist/@types/components/tooltip/tooltip.types.d.ts +17 -0
- package/dist/@types/components/tooltip/tooltip.vue.d.ts +62 -0
- package/dist/@types/components/typography/index.d.ts +2 -0
- package/dist/@types/components/typography/typography.types.d.ts +27 -0
- package/dist/@types/components/typography/typography.vue.d.ts +78 -0
- package/dist/@types/components.d.ts +75 -0
- package/dist/@types/directives/index.d.ts +1 -0
- package/dist/@types/directives/tooltip.d.ts +3 -0
- package/dist/@types/i18n/index.d.ts +8 -0
- package/dist/@types/index.d.ts +20 -0
- package/dist/@types/install.d.ts +10 -0
- package/dist/@types/types/index.d.ts +1 -0
- package/dist/@types/types/label-position.d.ts +4 -0
- package/dist/@types/types/maybe-ref.d.ts +2 -0
- package/dist/@types/types/utils-events.d.ts +9 -0
- package/dist/@types/types/vue-node-element.d.ts +2 -0
- package/dist/@types/utils/ts/events.d.ts +2 -0
- package/dist/@types/utils/ts/i18n.d.ts +12 -0
- package/dist/@types/utils/ts/inject-css.d.ts +2 -0
- package/dist/@types/utils/ts/resize.d.ts +1 -0
- package/dist/@types/utils/ts/storybook.d.ts +8 -0
- package/dist/@types/utils/ts/unique-id.d.ts +1 -0
- package/dist/fonts/Inter-Bold.otf +0 -0
- package/dist/fonts/Inter-Bold.ttf +0 -0
- package/dist/fonts/Inter-Bold.woff +0 -0
- package/dist/fonts/Inter-Bold.woff2 +0 -0
- package/dist/fonts/Inter-ExtraBold.otf +0 -0
- package/dist/fonts/Inter-ExtraBold.ttf +0 -0
- package/dist/fonts/Inter-ExtraBold.woff +0 -0
- package/dist/fonts/Inter-ExtraBold.woff2 +0 -0
- package/dist/fonts/Inter-ExtraLight.otf +0 -0
- package/dist/fonts/Inter-ExtraLight.ttf +0 -0
- package/dist/fonts/Inter-ExtraLight.woff +0 -0
- package/dist/fonts/Inter-ExtraLight.woff2 +0 -0
- package/dist/fonts/Inter-Italic.woff +0 -0
- package/dist/fonts/Inter-Italic.woff2 +0 -0
- package/dist/fonts/Inter-Light.otf +0 -0
- package/dist/fonts/Inter-Light.ttf +0 -0
- package/dist/fonts/Inter-Light.woff +0 -0
- package/dist/fonts/Inter-Light.woff2 +0 -0
- package/dist/fonts/Inter-Medium.otf +0 -0
- package/dist/fonts/Inter-Medium.ttf +0 -0
- package/dist/fonts/Inter-Medium.woff +0 -0
- package/dist/fonts/Inter-Medium.woff2 +0 -0
- package/dist/fonts/Inter-Regular.otf +0 -0
- package/dist/fonts/Inter-Regular.ttf +0 -0
- package/dist/fonts/Inter-Regular.woff +0 -0
- package/dist/fonts/Inter-Regular.woff2 +0 -0
- package/dist/fonts/Inter-SemiBold.otf +0 -0
- package/dist/fonts/Inter-SemiBold.ttf +0 -0
- package/dist/fonts/Inter-SemiBold.woff +0 -0
- package/dist/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/fonts/Inter-Thin.otf +0 -0
- package/dist/fonts/Inter-Thin.ttf +0 -0
- package/dist/fonts/Inter-Thin.woff +0 -0
- package/dist/fonts/Inter-Thin.woff2 +0 -0
- package/dist/fonts/fonts.css +71 -0
- package/dist/index.js +3189 -0
- package/dist/index.js.map +1 -0
- package/dist/web-types.json +2703 -0
- package/package.json +101 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
itemsPerPage: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: number;
|
|
6
|
+
validator: (itemsPerPageValue: number) => boolean;
|
|
7
|
+
};
|
|
8
|
+
totalCount: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
dropdownId: string;
|
|
14
|
+
dropdownOptions: import("vue").Ref<{
|
|
15
|
+
label: string;
|
|
16
|
+
value: number;
|
|
17
|
+
}[]>;
|
|
18
|
+
translationPathKey: import("vue").ComputedRef<"showingItems" | "showingItemsWithTotal">;
|
|
19
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
20
|
+
onSelectChange: (selectedNumberOfResults: number) => void;
|
|
21
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
itemsPerPage: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
validator: (itemsPerPageValue: number) => boolean;
|
|
26
|
+
};
|
|
27
|
+
totalCount: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: any;
|
|
30
|
+
};
|
|
31
|
+
}>>, {
|
|
32
|
+
itemsPerPage: number;
|
|
33
|
+
totalCount: number;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoPagination } from './pagination.vue';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
ariaLabel: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: any;
|
|
5
|
+
};
|
|
6
|
+
hasNext: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
page: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
validator: (value: number) => boolean;
|
|
14
|
+
};
|
|
15
|
+
size: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
validator: (itemsPerPageValue: number) => boolean;
|
|
19
|
+
};
|
|
20
|
+
totalCount: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: any;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
totalPages: import("vue").ComputedRef<number>;
|
|
26
|
+
navigate: (pageArg: number) => void;
|
|
27
|
+
onItemsPerPageChange: (elements: number) => void;
|
|
28
|
+
onPageSelected: (pageNumber: number) => void;
|
|
29
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("navigate" | "items-page" | "update:page" | "update:size")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
ariaLabel: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
hasNext: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: any;
|
|
37
|
+
};
|
|
38
|
+
page: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
validator: (value: number) => boolean;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
default: number;
|
|
46
|
+
validator: (itemsPerPageValue: number) => boolean;
|
|
47
|
+
};
|
|
48
|
+
totalCount: {
|
|
49
|
+
type: NumberConstructor;
|
|
50
|
+
default: any;
|
|
51
|
+
};
|
|
52
|
+
}>>, {
|
|
53
|
+
ariaLabel: string;
|
|
54
|
+
size: number;
|
|
55
|
+
page: number;
|
|
56
|
+
totalCount: number;
|
|
57
|
+
hasNext: boolean;
|
|
58
|
+
}>;
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BentoButtonVariant } from '@/components/button';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
onImage: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
conditionalClass: import("vue").ComputedRef<{
|
|
9
|
+
'b-popover-dismiss-button--on-image': boolean;
|
|
10
|
+
}>;
|
|
11
|
+
BentoButtonVariant: typeof BentoButtonVariant;
|
|
12
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
onImage: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}>>, {
|
|
18
|
+
onImage: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoPopoverImage } from './popover-image.vue';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
src: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
alt: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
src: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
alt: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>>, {}>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PopperContainerPosition } from '../popper-container';
|
|
2
|
+
export declare const BentoPopoverPositions: {
|
|
3
|
+
AUTO: import("../popper-container").PopperContainerPositionExtended.AUTO;
|
|
4
|
+
AUTO_START: import("../popper-container").PopperContainerPositionExtended.AUTO_START;
|
|
5
|
+
AUTO_END: import("../popper-container").PopperContainerPositionExtended.AUTO_END;
|
|
6
|
+
TOP_START: import("../popper-container").PopperContainerPositionExtended.TOP_START;
|
|
7
|
+
TOP_END: import("../popper-container").PopperContainerPositionExtended.TOP_END;
|
|
8
|
+
RIGHT_START: import("../popper-container").PopperContainerPositionExtended.RIGHT_START;
|
|
9
|
+
RIGHT_END: import("../popper-container").PopperContainerPositionExtended.RIGHT_END;
|
|
10
|
+
BOTTOM_START: import("../popper-container").PopperContainerPositionExtended.BOTTOM_START;
|
|
11
|
+
BOTTOM_END: import("../popper-container").PopperContainerPositionExtended.BOTTOM_END;
|
|
12
|
+
LEFT_START: import("../popper-container").PopperContainerPositionExtended.LEFT_START;
|
|
13
|
+
LEFT_END: import("../popper-container").PopperContainerPositionExtended.LEFT_END;
|
|
14
|
+
TOP: import("../popper-container").PopperContainerPositionBasic.TOP;
|
|
15
|
+
RIGHT: import("../popper-container").PopperContainerPositionBasic.RIGHT;
|
|
16
|
+
BOTTOM: import("../popper-container").PopperContainerPositionBasic.BOTTOM;
|
|
17
|
+
LEFT: import("../popper-container").PopperContainerPositionBasic.LEFT;
|
|
18
|
+
};
|
|
19
|
+
export type BentoPopoverPositions = PopperContainerPosition;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { PopperContainerAriaRole } from '@/components/popper-container';
|
|
3
|
+
import { BentoPopoverPositions } from './popover.types';
|
|
4
|
+
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
5
|
+
import { BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
actions: {
|
|
8
|
+
type: PropType<BentoButtonActionsList>;
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
11
|
+
actionsLayout: {
|
|
12
|
+
type: PropType<BentoButtonActionsLayout>;
|
|
13
|
+
default: BentoButtonActionsLayout;
|
|
14
|
+
validator: (value: BentoButtonActionsLayout) => boolean;
|
|
15
|
+
};
|
|
16
|
+
ariaLabel: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: any;
|
|
19
|
+
};
|
|
20
|
+
disableFocusTrap: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
dismissible: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
fixedPositioning: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
large: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
modifiers: {
|
|
37
|
+
type: ArrayConstructor;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
position: {
|
|
41
|
+
type: PropType<import("@/components/popper-container").PopperContainerPosition>;
|
|
42
|
+
default: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
43
|
+
validator: (value: BentoPopoverPositions) => boolean;
|
|
44
|
+
};
|
|
45
|
+
small: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
title: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: any;
|
|
52
|
+
};
|
|
53
|
+
targetElement: {
|
|
54
|
+
type: PropType<import("../../types/vue-node-element").VueNodeElement>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
59
|
+
'b-popover--small': boolean;
|
|
60
|
+
'b-popover--large': boolean;
|
|
61
|
+
}>;
|
|
62
|
+
computedAriaLabel: import("vue").ComputedRef<string>;
|
|
63
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
64
|
+
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
65
|
+
PopperContainerAriaRole: typeof PopperContainerAriaRole;
|
|
66
|
+
dismissPopover: () => void;
|
|
67
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "dismiss"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
68
|
+
actions: {
|
|
69
|
+
type: PropType<BentoButtonActionsList>;
|
|
70
|
+
default: any;
|
|
71
|
+
};
|
|
72
|
+
actionsLayout: {
|
|
73
|
+
type: PropType<BentoButtonActionsLayout>;
|
|
74
|
+
default: BentoButtonActionsLayout;
|
|
75
|
+
validator: (value: BentoButtonActionsLayout) => boolean;
|
|
76
|
+
};
|
|
77
|
+
ariaLabel: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: any;
|
|
80
|
+
};
|
|
81
|
+
disableFocusTrap: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
dismissible: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
fixedPositioning: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
large: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
modifiers: {
|
|
98
|
+
type: ArrayConstructor;
|
|
99
|
+
default: any;
|
|
100
|
+
};
|
|
101
|
+
position: {
|
|
102
|
+
type: PropType<import("@/components/popper-container").PopperContainerPosition>;
|
|
103
|
+
default: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
104
|
+
validator: (value: BentoPopoverPositions) => boolean;
|
|
105
|
+
};
|
|
106
|
+
small: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
title: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: any;
|
|
113
|
+
};
|
|
114
|
+
targetElement: {
|
|
115
|
+
type: PropType<import("../../types/vue-node-element").VueNodeElement>;
|
|
116
|
+
required: true;
|
|
117
|
+
};
|
|
118
|
+
}>>, {
|
|
119
|
+
small: boolean;
|
|
120
|
+
position: import("@/components/popper-container").PopperContainerPosition;
|
|
121
|
+
title: string;
|
|
122
|
+
ariaLabel: string;
|
|
123
|
+
modifiers: unknown[];
|
|
124
|
+
large: boolean;
|
|
125
|
+
actions: BentoButtonActionsList;
|
|
126
|
+
fixedPositioning: boolean;
|
|
127
|
+
actionsLayout: BentoButtonActionsLayout;
|
|
128
|
+
disableFocusTrap: boolean;
|
|
129
|
+
dismissible: boolean;
|
|
130
|
+
}>;
|
|
131
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { Modifier, StrictModifiers } from '@popperjs/core';
|
|
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
|
+
export interface PopperContainerArrowProp {
|
|
9
|
+
classes?: string[];
|
|
10
|
+
padding?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare enum PopperContainerPositionBasic {
|
|
13
|
+
TOP = "top",
|
|
14
|
+
RIGHT = "right",
|
|
15
|
+
BOTTOM = "bottom",
|
|
16
|
+
LEFT = "left"
|
|
17
|
+
}
|
|
18
|
+
export declare enum PopperContainerPositionExtended {
|
|
19
|
+
AUTO = "auto",
|
|
20
|
+
AUTO_START = "auto-start",
|
|
21
|
+
AUTO_END = "auto-end",
|
|
22
|
+
TOP_START = "top-start",
|
|
23
|
+
TOP_END = "top-end",
|
|
24
|
+
RIGHT_START = "right-start",
|
|
25
|
+
RIGHT_END = "right-end",
|
|
26
|
+
BOTTOM_START = "bottom-start",
|
|
27
|
+
BOTTOM_END = "bottom-end",
|
|
28
|
+
LEFT_START = "left-start",
|
|
29
|
+
LEFT_END = "left-end"
|
|
30
|
+
}
|
|
31
|
+
export declare enum PopperContainerAriaRole {
|
|
32
|
+
TOOLTIP = "tooltip",
|
|
33
|
+
POPOVER = "dialog"
|
|
34
|
+
}
|
|
35
|
+
export declare const PopperContainerPosition: {
|
|
36
|
+
AUTO: PopperContainerPositionExtended.AUTO;
|
|
37
|
+
AUTO_START: PopperContainerPositionExtended.AUTO_START;
|
|
38
|
+
AUTO_END: PopperContainerPositionExtended.AUTO_END;
|
|
39
|
+
TOP_START: PopperContainerPositionExtended.TOP_START;
|
|
40
|
+
TOP_END: PopperContainerPositionExtended.TOP_END;
|
|
41
|
+
RIGHT_START: PopperContainerPositionExtended.RIGHT_START;
|
|
42
|
+
RIGHT_END: PopperContainerPositionExtended.RIGHT_END;
|
|
43
|
+
BOTTOM_START: PopperContainerPositionExtended.BOTTOM_START;
|
|
44
|
+
BOTTOM_END: PopperContainerPositionExtended.BOTTOM_END;
|
|
45
|
+
LEFT_START: PopperContainerPositionExtended.LEFT_START;
|
|
46
|
+
LEFT_END: PopperContainerPositionExtended.LEFT_END;
|
|
47
|
+
TOP: PopperContainerPositionBasic.TOP;
|
|
48
|
+
RIGHT: PopperContainerPositionBasic.RIGHT;
|
|
49
|
+
BOTTOM: PopperContainerPositionBasic.BOTTOM;
|
|
50
|
+
LEFT: PopperContainerPositionBasic.LEFT;
|
|
51
|
+
};
|
|
52
|
+
export type PopperContainerPosition = PopperContainerPositionBasic | PopperContainerPositionExtended;
|
|
53
|
+
export type FallbackPositionProp = PopperContainerPosition[] | PopperContainerPosition;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VueNodeElement } from '../../types/vue-node-element';
|
|
2
|
+
import { ExtendedModifiers, FallbackPositionProp, PopperContainerArrowProp } from './popper-container.types';
|
|
3
|
+
export declare const getArrowModifier: (arrow: VueNodeElement, arrowProps: PopperContainerArrowProp) => {
|
|
4
|
+
name: string;
|
|
5
|
+
options: {
|
|
6
|
+
element: VueNodeElement;
|
|
7
|
+
padding: string | number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const getOffsetModifier: (arrowProps: PopperContainerArrowProp, offset: number[]) => {
|
|
11
|
+
name: string;
|
|
12
|
+
options: {
|
|
13
|
+
offset: number[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const getFlipModifier: (fallbackPosition: FallbackPositionProp) => {
|
|
17
|
+
name: string;
|
|
18
|
+
options: {
|
|
19
|
+
fallbackPlacements: import("./popper-container.types").PopperContainerPosition[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const arrowDataHideAttributeModifier: ExtendedModifiers;
|
|
23
|
+
export declare const sameWidthModifier: ExtendedModifiers;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { PositioningStrategy } from '@popperjs/core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { ExtendedModifiers, FallbackPositionProp, PopperContainerAriaRole, PopperContainerArrowProp, PopperContainerPosition } from './popper-container.types';
|
|
4
|
+
import { VueNodeElement } from '@/types/vue-node-element';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
ariaLabel: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
targetElement: {
|
|
11
|
+
type: PropType<VueNodeElement>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
position: {
|
|
15
|
+
type: PropType<PopperContainerPosition>;
|
|
16
|
+
default: import("./popper-container.types").PopperContainerPositionExtended;
|
|
17
|
+
validator: (value: unknown) => boolean;
|
|
18
|
+
};
|
|
19
|
+
fixedPositioning: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
arrow: {
|
|
24
|
+
type: PropType<boolean | PopperContainerArrowProp>;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
27
|
+
offset: {
|
|
28
|
+
type: PropType<number[]>;
|
|
29
|
+
default: () => number[];
|
|
30
|
+
validator: (value: number[]) => boolean;
|
|
31
|
+
};
|
|
32
|
+
matchWidth: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
modifiers: {
|
|
37
|
+
type: ArrayConstructor;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
fallbackPosition: {
|
|
41
|
+
type: PropType<FallbackPositionProp>;
|
|
42
|
+
default: any;
|
|
43
|
+
};
|
|
44
|
+
ariaRole: {
|
|
45
|
+
type: PropType<PopperContainerAriaRole>;
|
|
46
|
+
default: any;
|
|
47
|
+
validator: (value: unknown) => boolean;
|
|
48
|
+
};
|
|
49
|
+
}, {}, {
|
|
50
|
+
popper: any;
|
|
51
|
+
emittedPosition: any;
|
|
52
|
+
}, {
|
|
53
|
+
strategy(): PositioningStrategy;
|
|
54
|
+
allModifiers(): ExtendedModifiers[];
|
|
55
|
+
arrowClasses(): string[];
|
|
56
|
+
}, {
|
|
57
|
+
initPopper(): void;
|
|
58
|
+
destroyPopper(): void;
|
|
59
|
+
updatePopperOptions(options: any): void;
|
|
60
|
+
updateModifiers(): void;
|
|
61
|
+
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
ariaLabel: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: any;
|
|
65
|
+
};
|
|
66
|
+
targetElement: {
|
|
67
|
+
type: PropType<VueNodeElement>;
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
position: {
|
|
71
|
+
type: PropType<PopperContainerPosition>;
|
|
72
|
+
default: import("./popper-container.types").PopperContainerPositionExtended;
|
|
73
|
+
validator: (value: unknown) => boolean;
|
|
74
|
+
};
|
|
75
|
+
fixedPositioning: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
arrow: {
|
|
80
|
+
type: PropType<boolean | PopperContainerArrowProp>;
|
|
81
|
+
default: any;
|
|
82
|
+
};
|
|
83
|
+
offset: {
|
|
84
|
+
type: PropType<number[]>;
|
|
85
|
+
default: () => number[];
|
|
86
|
+
validator: (value: number[]) => boolean;
|
|
87
|
+
};
|
|
88
|
+
matchWidth: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
modifiers: {
|
|
93
|
+
type: ArrayConstructor;
|
|
94
|
+
default: any;
|
|
95
|
+
};
|
|
96
|
+
fallbackPosition: {
|
|
97
|
+
type: PropType<FallbackPositionProp>;
|
|
98
|
+
default: any;
|
|
99
|
+
};
|
|
100
|
+
ariaRole: {
|
|
101
|
+
type: PropType<PopperContainerAriaRole>;
|
|
102
|
+
default: any;
|
|
103
|
+
validator: (value: unknown) => boolean;
|
|
104
|
+
};
|
|
105
|
+
}>>, {
|
|
106
|
+
offset: number[];
|
|
107
|
+
position: PopperContainerPosition;
|
|
108
|
+
ariaLabel: string;
|
|
109
|
+
modifiers: unknown[];
|
|
110
|
+
arrow: any;
|
|
111
|
+
matchWidth: boolean;
|
|
112
|
+
fixedPositioning: boolean;
|
|
113
|
+
fallbackPosition: FallbackPositionProp;
|
|
114
|
+
ariaRole: PopperContainerAriaRole;
|
|
115
|
+
}>;
|
|
116
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AdlProfilePictureVariant } from './profile-picture.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
src: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
username: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
variant: {
|
|
13
|
+
type: PropType<AdlProfilePictureVariant>;
|
|
14
|
+
default: AdlProfilePictureVariant;
|
|
15
|
+
validator: (value: AdlProfilePictureVariant) => boolean;
|
|
16
|
+
};
|
|
17
|
+
}, {}, {}, {
|
|
18
|
+
conditionalClasses(): {
|
|
19
|
+
[key: string]: boolean;
|
|
20
|
+
};
|
|
21
|
+
initials(): string;
|
|
22
|
+
ariaLabel(): string;
|
|
23
|
+
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
src: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: any;
|
|
27
|
+
};
|
|
28
|
+
username: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: any;
|
|
31
|
+
};
|
|
32
|
+
variant: {
|
|
33
|
+
type: PropType<AdlProfilePictureVariant>;
|
|
34
|
+
default: AdlProfilePictureVariant;
|
|
35
|
+
validator: (value: AdlProfilePictureVariant) => boolean;
|
|
36
|
+
};
|
|
37
|
+
}>>, {
|
|
38
|
+
src: string;
|
|
39
|
+
variant: AdlProfilePictureVariant;
|
|
40
|
+
username: string;
|
|
41
|
+
}>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AdlSegmentedControlApi } from '../segmented-control.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
disabled: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
value: {
|
|
9
|
+
type: any;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
label: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
segmentedControl: {
|
|
17
|
+
type: PropType<AdlSegmentedControlApi>;
|
|
18
|
+
default: any;
|
|
19
|
+
};
|
|
20
|
+
testId: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}, {}, {}, {
|
|
25
|
+
isSelected(): boolean;
|
|
26
|
+
isDisabled(): boolean;
|
|
27
|
+
isChecked(): boolean;
|
|
28
|
+
adlSegmentedControlApi(): AdlSegmentedControlApi;
|
|
29
|
+
conditionalClasses(): {
|
|
30
|
+
[className: string]: boolean;
|
|
31
|
+
};
|
|
32
|
+
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
disabled: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
value: {
|
|
38
|
+
type: any;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
label: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
segmentedControl: {
|
|
46
|
+
type: PropType<AdlSegmentedControlApi>;
|
|
47
|
+
default: any;
|
|
48
|
+
};
|
|
49
|
+
testId: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
}>>, {
|
|
54
|
+
label: string;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
testId: string;
|
|
57
|
+
segmentedControl: AdlSegmentedControlApi;
|
|
58
|
+
}>;
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SEGMENTED_CONTROL_INJ_KEY: unique symbol;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface AdlSegmentedControlApi {
|
|
2
|
+
state: {
|
|
3
|
+
name: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
selectedValue: unknown;
|
|
6
|
+
};
|
|
7
|
+
changeValue: (newValue: unknown) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare enum AdlSegmentedControlState {
|
|
10
|
+
DISABLED = "disabled"
|
|
11
|
+
}
|
|
12
|
+
export declare enum AdlSegmentedOptionState {
|
|
13
|
+
DISABLED = "disabled",
|
|
14
|
+
SELECTED = "selected"
|
|
15
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
disabled: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
value: {
|
|
7
|
+
type: any;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
name: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}, {}, {
|
|
15
|
+
state: {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
selectedValue: any;
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
ariaLabel(): string;
|
|
22
|
+
conditionalClasses(): {
|
|
23
|
+
[className: string]: boolean;
|
|
24
|
+
};
|
|
25
|
+
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
disabled: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
value: {
|
|
31
|
+
type: any;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
name: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
}>>, {
|
|
39
|
+
value: any;
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
export default _default;
|