@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
package/README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Bento Vue2 component library
|
|
2
|
+
|
|
3
|
+
Welcome to the Bento Vue2 component library!
|
|
4
|
+
|
|
5
|
+
The aim of this library is to centralize all general reusable components you will find across the Adyen Front-end
|
|
6
|
+
architecture.
|
|
7
|
+
|
|
8
|
+
Bento Vue contains foundational Vue 2.x UI components for shipping new features faster.
|
|
9
|
+
|
|
10
|
+
## Getting started
|
|
11
|
+
|
|
12
|
+
### Installation
|
|
13
|
+
|
|
14
|
+
Bento Vue is available as an npm package
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install @adyen/bento-vue2
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Adyen Design System Vue ecosystem
|
|
21
|
+
|
|
22
|
+
| Project | Optional | Description |
|
|
23
|
+
| ---------------------------- | -------- | ------------------------------------------------------------------------------ |
|
|
24
|
+
| `@adyen/bento-vue2` | ❌ | A collection of Vue 2.x UI components |
|
|
25
|
+
| `@adyen/bento-design-tokens` | ✅ | List of Design Tokens used to define styles of the components and their themes |
|
|
26
|
+
|
|
27
|
+
### Usage
|
|
28
|
+
|
|
29
|
+
In order to use the compoent via the `BentoVue` plugin, the following steps must be reproduced:
|
|
30
|
+
|
|
31
|
+
1. Load the plugin globally in **Vue**
|
|
32
|
+
2. Use the library defined components in your application
|
|
33
|
+
|
|
34
|
+
#### Load plugin and register components
|
|
35
|
+
|
|
36
|
+
Import the Bento Vue plugin to inject the theme by default to Vue in order to allow the components to use the Design
|
|
37
|
+
Token CSS variables:
|
|
38
|
+
|
|
39
|
+
```javascript
|
|
40
|
+
import BentoVue from '@adyen/bento-vue2';
|
|
41
|
+
|
|
42
|
+
Vue.use(BentoVue);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Use the components
|
|
46
|
+
|
|
47
|
+
Inside the `.vue` components of your application, you can simply use the available components:
|
|
48
|
+
|
|
49
|
+
```javascript
|
|
50
|
+
<template>
|
|
51
|
+
<b-button @click="onClickHandler">
|
|
52
|
+
{{ buttonLabel }}
|
|
53
|
+
</b-button>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<script>
|
|
57
|
+
import { BButton } from '@adyen/bento-vue2'
|
|
58
|
+
|
|
59
|
+
export default {
|
|
60
|
+
components: { BButton },
|
|
61
|
+
data: () => ({
|
|
62
|
+
buttonLabel: 'Button text'
|
|
63
|
+
}),
|
|
64
|
+
methods: {
|
|
65
|
+
onClickHandler() {
|
|
66
|
+
// click event handler logic
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
</script>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Alternate Theme (ADL 1.0)
|
|
74
|
+
|
|
75
|
+
#### Set **legacy ADL** theme as default
|
|
76
|
+
|
|
77
|
+
The Design System requires the Design token CSS variables to be set in order to apply the correspoding CSS styles. The
|
|
78
|
+
only alternative style provided for now is the Legacy ADL theme (a.k.a. ADL 1.0). The **legacy ADL** theme variables
|
|
79
|
+
must be present for the whole app.
|
|
80
|
+
|
|
81
|
+
```javascript
|
|
82
|
+
import BentoVue, { BentoTheme } from '@adyen/bento-vue2';
|
|
83
|
+
|
|
84
|
+
Vue.use(BentoVue. { theme: BentoTheme.LEGACY });
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Setting themes without the Bento Plugin
|
|
88
|
+
|
|
89
|
+
Currently supported classes are:
|
|
90
|
+
|
|
91
|
+
- Default: _no class needed_
|
|
92
|
+
- ADL 1.0: `.b-legacy-theme`.
|
|
93
|
+
|
|
94
|
+
The theme class overrides the default Design Token CSS variables.
|
|
95
|
+
|
|
96
|
+
To use an alternative theme, set the respective theme class in the main container inside the `App.vue` component.
|
|
97
|
+
|
|
98
|
+
```javascript
|
|
99
|
+
<template>
|
|
100
|
+
<transition name="navigation-fading" mode="out-in" appear>
|
|
101
|
+
<navigation-loading-indicator v-if="initialNavigation" />
|
|
102
|
+
|
|
103
|
+
<div v-else class="app b-legacy-theme">
|
|
104
|
+
<!-- Here goes your App code -->
|
|
105
|
+
</div>
|
|
106
|
+
</transition>
|
|
107
|
+
</template>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Notice the class being added to the first `div` inside the `App.vue` component.
|
|
111
|
+
|
|
112
|
+
## Support
|
|
113
|
+
|
|
114
|
+
If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions,
|
|
115
|
+
contact our [support team](https://www.adyen.help/hc/en-us/requests/new).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ACCORDION_INJECTION_KEY: unique symbol;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum AdlAccordionVariant {
|
|
2
|
+
PRIMARY = "primary",
|
|
3
|
+
GHOST = "ghost"
|
|
4
|
+
}
|
|
5
|
+
export declare enum AdlAccordionPropClass {
|
|
6
|
+
GROUPED = "grouped",
|
|
7
|
+
SEPARATE = "separate"
|
|
8
|
+
}
|
|
9
|
+
export declare enum AdlAccordionCaretPosition {
|
|
10
|
+
LEFT = "left"
|
|
11
|
+
}
|
|
12
|
+
export interface AdlAccordionItem {
|
|
13
|
+
id: string;
|
|
14
|
+
opened: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface AdlAccordion {
|
|
17
|
+
caretRight: boolean;
|
|
18
|
+
grouped: boolean;
|
|
19
|
+
variant: AdlAccordionVariant;
|
|
20
|
+
registerItem: (opened?: boolean) => AdlAccordionItem;
|
|
21
|
+
getItem: (itemId: string) => AdlAccordionItem;
|
|
22
|
+
open: (itemId: string) => void;
|
|
23
|
+
close: (itemId: string) => void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AdlAccordionVariant } from './accordion.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
simultaneouslyExpandAllTabs: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
grouped: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
caretRight: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
variant: {
|
|
17
|
+
type: PropType<AdlAccordionVariant>;
|
|
18
|
+
default: AdlAccordionVariant;
|
|
19
|
+
validator: (value: AdlAccordionVariant) => boolean;
|
|
20
|
+
};
|
|
21
|
+
}, {}, {
|
|
22
|
+
accordion: {
|
|
23
|
+
items: any[];
|
|
24
|
+
simultaneouslyExpandAllTabs: boolean;
|
|
25
|
+
variant: AdlAccordionVariant;
|
|
26
|
+
grouped: boolean;
|
|
27
|
+
caretRight: boolean;
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
conditionalClasses(): {
|
|
31
|
+
[x: string]: boolean;
|
|
32
|
+
};
|
|
33
|
+
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
simultaneouslyExpandAllTabs: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
grouped: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
caretRight: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
variant: {
|
|
47
|
+
type: PropType<AdlAccordionVariant>;
|
|
48
|
+
default: AdlAccordionVariant;
|
|
49
|
+
validator: (value: AdlAccordionVariant) => boolean;
|
|
50
|
+
};
|
|
51
|
+
}>>, {
|
|
52
|
+
variant: AdlAccordionVariant;
|
|
53
|
+
simultaneouslyExpandAllTabs: boolean;
|
|
54
|
+
grouped: boolean;
|
|
55
|
+
caretRight: boolean;
|
|
56
|
+
}>;
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AdlAccordion } from '../accordion.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
accordion: {
|
|
5
|
+
type: PropType<AdlAccordion>;
|
|
6
|
+
default: any;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {
|
|
9
|
+
item: {
|
|
10
|
+
id: any;
|
|
11
|
+
opened: boolean;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
accordionProvider(): AdlAccordion;
|
|
15
|
+
showContent(): boolean;
|
|
16
|
+
conditionalClasses(): {
|
|
17
|
+
[key: string]: boolean;
|
|
18
|
+
};
|
|
19
|
+
shouldShowIcon(): boolean;
|
|
20
|
+
shouldShowTitle(): boolean;
|
|
21
|
+
shouldShowSubtitle(): boolean;
|
|
22
|
+
shouldShowPicture(): boolean;
|
|
23
|
+
}, {
|
|
24
|
+
toggle(): void;
|
|
25
|
+
start(el: any): void;
|
|
26
|
+
end(el: any): void;
|
|
27
|
+
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
accordion: {
|
|
29
|
+
type: PropType<AdlAccordion>;
|
|
30
|
+
default: any;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
accordion: AdlAccordion;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AdlAlertSeverityOption } from '@/components/alert/alert.types';
|
|
3
|
+
import { BentoButtonVariant } from '@/components/button/button.types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
severity: {
|
|
6
|
+
type: PropType<AdlAlertSeverityOption>;
|
|
7
|
+
default: AdlAlertSeverityOption;
|
|
8
|
+
};
|
|
9
|
+
closeButton: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
alertConditionalClasses: import("vue").ComputedRef<{
|
|
15
|
+
[x: string]: AdlAlertSeverityOption;
|
|
16
|
+
}>;
|
|
17
|
+
computedRole: import("vue").ComputedRef<"alert" | "status">;
|
|
18
|
+
onCloseButtonClick: () => void;
|
|
19
|
+
BentoButtonVariant: typeof BentoButtonVariant;
|
|
20
|
+
AdlAlertSeverityOption: typeof AdlAlertSeverityOption;
|
|
21
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "close-alert"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
severity: {
|
|
23
|
+
type: PropType<AdlAlertSeverityOption>;
|
|
24
|
+
default: AdlAlertSeverityOption;
|
|
25
|
+
};
|
|
26
|
+
closeButton: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>>, {
|
|
31
|
+
severity: AdlAlertSeverityOption;
|
|
32
|
+
closeButton: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AdlBadgeVariant } from './badge.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
variant: {
|
|
5
|
+
type: PropType<AdlBadgeVariant>;
|
|
6
|
+
default: AdlBadgeVariant;
|
|
7
|
+
validator: (value: AdlBadgeVariant) => boolean;
|
|
8
|
+
};
|
|
9
|
+
testId: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}, {}, {}, {
|
|
14
|
+
ariaLabel(): string;
|
|
15
|
+
conditionalClasses(): {
|
|
16
|
+
[x: string]: boolean;
|
|
17
|
+
};
|
|
18
|
+
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
variant: {
|
|
20
|
+
type: PropType<AdlBadgeVariant>;
|
|
21
|
+
default: AdlBadgeVariant;
|
|
22
|
+
validator: (value: AdlBadgeVariant) => boolean;
|
|
23
|
+
};
|
|
24
|
+
testId: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
}>>, {
|
|
29
|
+
variant: AdlBadgeVariant;
|
|
30
|
+
testId: string;
|
|
31
|
+
}>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum BentoButtonVariant {
|
|
2
|
+
PRIMARY = "primary",
|
|
3
|
+
SECONDARY = "secondary",
|
|
4
|
+
TERTIARY = "tertiary"
|
|
5
|
+
}
|
|
6
|
+
export declare enum BentoButtonPropClass {
|
|
7
|
+
CONDENSED = "condensed",
|
|
8
|
+
GROUPED = "grouped",
|
|
9
|
+
DESTRUCTIVE = "critical",
|
|
10
|
+
ICON_ONLY = "icon-only"
|
|
11
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoButtonVariant } from './button.types';
|
|
3
|
+
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
disabled: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
critical: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
type: {
|
|
14
|
+
type: PropType<"button" | "reset" | "submit">;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
condensed: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
variant: {
|
|
22
|
+
type: PropType<BentoButtonVariant>;
|
|
23
|
+
default: BentoButtonVariant;
|
|
24
|
+
validator: (value: BentoButtonVariant) => boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {}, {
|
|
27
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
28
|
+
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
29
|
+
}, {
|
|
30
|
+
ariaLabel(): string | undefined;
|
|
31
|
+
conditionalClasses(): {
|
|
32
|
+
[x: string]: boolean;
|
|
33
|
+
};
|
|
34
|
+
variantClass(): {
|
|
35
|
+
[x: string]: boolean;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
onClickButton(): void;
|
|
39
|
+
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
disabled: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
critical: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
type: {
|
|
49
|
+
type: PropType<"button" | "reset" | "submit">;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
condensed: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
variant: {
|
|
57
|
+
type: PropType<BentoButtonVariant>;
|
|
58
|
+
default: BentoButtonVariant;
|
|
59
|
+
validator: (value: BentoButtonVariant) => boolean;
|
|
60
|
+
};
|
|
61
|
+
}>>, {
|
|
62
|
+
type: "button" | "reset" | "submit";
|
|
63
|
+
disabled: boolean;
|
|
64
|
+
condensed: boolean;
|
|
65
|
+
variant: BentoButtonVariant;
|
|
66
|
+
critical: boolean;
|
|
67
|
+
}>;
|
|
68
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VueNodeElement } from '../../../../types/vue-node-element';
|
|
2
|
+
export interface BentoButtonActionObject {
|
|
3
|
+
title: string;
|
|
4
|
+
event: (event: Event) => void;
|
|
5
|
+
icon?: VueNodeElement;
|
|
6
|
+
}
|
|
7
|
+
export type BentoButtonActionsList = Array<BentoButtonActionObject>;
|
|
8
|
+
export declare enum BentoButtonActionsLayout {
|
|
9
|
+
BUTTONS_END = "buttons-end",
|
|
10
|
+
FILL_CONTAINER = "fill-container",
|
|
11
|
+
SPACE_BETWEEN = "space-between",
|
|
12
|
+
VERTICAL_STACK = "vertical-stack"
|
|
13
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoButtonVariant } from '@/components/button';
|
|
3
|
+
import { BentoButtonActionsLayout, BentoButtonActionsList } from './button-actions.types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
actions: {
|
|
6
|
+
type: PropType<BentoButtonActionsList>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
layout: {
|
|
10
|
+
type: PropType<BentoButtonActionsLayout>;
|
|
11
|
+
default: BentoButtonActionsLayout;
|
|
12
|
+
validator: (layout: BentoButtonActionsLayout) => boolean;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
16
|
+
[x: string]: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
reversedActionsList: import("vue").ComputedRef<import("@/components/button").BentoButtonActionObject[]>;
|
|
19
|
+
generateButtonVariantByIndex: (actionIndex: any) => BentoButtonVariant.PRIMARY | BentoButtonVariant.SECONDARY;
|
|
20
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
actions: {
|
|
22
|
+
type: PropType<BentoButtonActionsList>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
layout: {
|
|
26
|
+
type: PropType<BentoButtonActionsLayout>;
|
|
27
|
+
default: BentoButtonActionsLayout;
|
|
28
|
+
validator: (layout: BentoButtonActionsLayout) => boolean;
|
|
29
|
+
};
|
|
30
|
+
}>>, {
|
|
31
|
+
layout: BentoButtonActionsLayout;
|
|
32
|
+
}>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
default: (_: {}) => any;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
+
new (): {
|
|
7
|
+
$slots: S;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoButtonVariant } from '@/components/button';
|
|
3
|
+
import { BentoLoadingButtonState } from './loading-button.types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
condensed: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
disabled: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
state: {
|
|
14
|
+
type: PropType<BentoLoadingButtonState>;
|
|
15
|
+
default: BentoLoadingButtonState;
|
|
16
|
+
validator: (value: BentoLoadingButtonState) => boolean;
|
|
17
|
+
};
|
|
18
|
+
variant: {
|
|
19
|
+
type: PropType<BentoButtonVariant>;
|
|
20
|
+
default: BentoButtonVariant;
|
|
21
|
+
validator: (value: BentoButtonVariant) => boolean;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
BentoLoadingButtonState: typeof BentoLoadingButtonState;
|
|
25
|
+
onClick: () => void;
|
|
26
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
27
|
+
[x: string]: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
isInverseLoadingIndicator: import("vue").ComputedRef<boolean>;
|
|
30
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
condensed: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
state: {
|
|
40
|
+
type: PropType<BentoLoadingButtonState>;
|
|
41
|
+
default: BentoLoadingButtonState;
|
|
42
|
+
validator: (value: BentoLoadingButtonState) => boolean;
|
|
43
|
+
};
|
|
44
|
+
variant: {
|
|
45
|
+
type: PropType<BentoButtonVariant>;
|
|
46
|
+
default: BentoButtonVariant;
|
|
47
|
+
validator: (value: BentoButtonVariant) => boolean;
|
|
48
|
+
};
|
|
49
|
+
}>>, {
|
|
50
|
+
state: BentoLoadingButtonState;
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
condensed: boolean;
|
|
53
|
+
variant: BentoButtonVariant;
|
|
54
|
+
}>;
|
|
55
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AdlCardImagePosition } from './card.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
title: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
subTitle: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
imagePosition: {
|
|
13
|
+
type: PropType<AdlCardImagePosition>;
|
|
14
|
+
default: AdlCardImagePosition;
|
|
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
|
+
}, {
|
|
26
|
+
onClickCard(): void;
|
|
27
|
+
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
title: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
subTitle: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
36
|
+
imagePosition: {
|
|
37
|
+
type: PropType<AdlCardImagePosition>;
|
|
38
|
+
default: AdlCardImagePosition;
|
|
39
|
+
};
|
|
40
|
+
}>>, {
|
|
41
|
+
subTitle: string;
|
|
42
|
+
imagePosition: AdlCardImagePosition;
|
|
43
|
+
}>;
|
|
44
|
+
export default _default;
|
|
@@ -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;
|