@adyen/bento-vue2 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components/checkbox/checkbox.vue.d.ts +2 -2
- package/dist/@types/components/country/country.types.d.ts +2 -1
- package/dist/@types/components/country/country.vue.d.ts +10 -1
- package/dist/@types/components/country/index.d.ts +1 -0
- package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -0
- package/dist/@types/components/data-grid/data-grid.types.d.ts +1 -0
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +13 -1
- package/dist/@types/components/date/date.types.d.ts +4 -4
- package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +19 -1
- package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +19 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +13 -13
- package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types.d.ts +5 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +114 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.d.ts +5 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +7 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +123 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +6 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +109 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +6 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +109 -0
- package/dist/@types/components/dropdown/dropdown.vue.d.ts +13 -12
- package/dist/@types/components/dropdown/index.d.ts +4 -1
- package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +33 -10
- package/dist/@types/components/filter-bar/components/base-filter/composables/use-base-filter.d.ts +6 -0
- package/dist/@types/components/filter-bar/components/base-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/listbox-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/listbox-filter/listbox-filter.vue.d.ts +53 -0
- package/dist/@types/components/filter-bar/components/text-filter/text-filter.vue.d.ts +4 -5
- package/dist/@types/components/filter-bar/filter-bar.types.d.ts +12 -4
- package/dist/@types/components/filter-bar/filter-bar.vue.d.ts +14 -3
- package/dist/@types/components/info-icon/index.d.ts +1 -0
- package/dist/@types/components/info-icon/info-icon.vue.d.ts +12 -0
- package/dist/@types/components/internal/index.d.ts +1 -0
- package/dist/@types/components/internal/listbox/components/listbox-multi-select/index.d.ts +1 -0
- package/dist/@types/components/{dropdown/components/dropdown-options-container/components/dropdown-multi-select/dropdown-multi-select.vue.d.ts → internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts} +13 -13
- package/dist/@types/components/internal/listbox/components/listbox-option/index.d.ts +1 -0
- package/dist/@types/components/{dropdown/components/dropdown-options-container/components/dropdown-option/dropdown-option.vue.d.ts → internal/listbox/components/listbox-option/listbox-option.vue.d.ts} +2 -2
- package/dist/@types/components/internal/listbox/components/listbox-option-currency/index.d.ts +1 -0
- package/dist/@types/components/internal/listbox/components/listbox-option-currency/listbox-option-currency.vue.d.ts +17 -0
- package/dist/@types/components/internal/listbox/components/listbox-single-select-option/index.d.ts +1 -0
- package/dist/@types/components/{dropdown/components/dropdown-options-container/components/dropdown-single-select-option/dropdown-single-select-option.vue.d.ts → internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts} +5 -22
- package/dist/@types/components/internal/listbox/index.d.ts +2 -0
- package/dist/@types/components/internal/listbox/listbox.vue.d.ts +61 -0
- package/dist/@types/components/page-header/components/title-item/title-item.vue.d.ts +11 -1
- package/dist/@types/components/page-header/page-header.vue.d.ts +11 -1
- package/dist/@types/components/pagination/components/pagination-context/pagination-context.vue.d.ts +2 -2
- package/dist/@types/components/payment-method/composables/index.d.ts +1 -0
- package/dist/@types/components/payment-method/composables/usePaymentIcon.d.ts +3 -0
- package/dist/@types/components/payment-method/index.d.ts +2 -0
- package/dist/@types/components/payment-method/payment-method.types.d.ts +1079 -0
- package/dist/@types/components/payment-method/payment-method.vue.d.ts +28 -0
- package/dist/@types/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/components/radio-group/components/radio-button/radio-button.vue.d.ts +2 -3
- package/dist/@types/components/search-bar/search-bar.vue.d.ts +2 -2
- package/dist/@types/components/toast/components/toast-item/index.d.ts +2 -0
- package/dist/@types/components/toast/components/toast-item/toast-item.types.d.ts +9 -0
- package/dist/@types/components/toast/components/toast-item/toast-item.vue.d.ts +32 -0
- package/dist/@types/components/toast/index.d.ts +2 -0
- package/dist/@types/components/toast/toast.vue.d.ts +13 -0
- package/dist/@types/components/toggle/toggle.vue.d.ts +2 -2
- package/dist/@types/components.d.ts +14 -0
- package/dist/@types/composables/index.d.ts +1 -0
- package/dist/@types/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +2 -2
- package/dist/@types/composables/use-default-slot-validator.d.ts +1 -0
- package/dist/@types/composables/useDynamicImport.d.ts +2 -0
- package/dist/@types/index.d.ts +3 -0
- package/dist/@types/install.d.ts +1 -0
- package/dist/@types/plugins/toastController.d.ts +12 -0
- package/dist/@types/types/index.d.ts +2 -0
- package/dist/@types/types/listbox.d.ts +11 -0
- package/dist/@types/types/omit-strict.d.ts +1 -0
- package/dist/@types/utils/ts/toastController.d.ts +3 -0
- package/dist/@types/utils/ts/use-slot-text.d.ts +2 -0
- package/dist/index.js +5510 -4752
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-multi-select/index.d.ts +0 -1
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-option/index.d.ts +0 -1
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-single-select-option/index.d.ts +0 -1
- package/dist/@types/components/dropdown/dropdown.types.d.ts +0 -10
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoTypographyElement } from '../typography';
|
|
3
|
+
import { BentoPaymentMethodType } from './payment-method.types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
type: {
|
|
6
|
+
type: PropType<BentoPaymentMethodType>;
|
|
7
|
+
default: BentoPaymentMethodType;
|
|
8
|
+
};
|
|
9
|
+
label: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
paymentMethodIconSrc: import("vue").Ref<string>;
|
|
15
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
16
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
type: {
|
|
18
|
+
type: PropType<BentoPaymentMethodType>;
|
|
19
|
+
default: BentoPaymentMethodType;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
type: BentoPaymentMethodType;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
@@ -132,8 +132,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
132
|
modifiers: unknown[];
|
|
133
133
|
large: boolean;
|
|
134
134
|
actions: BentoButtonActionsList;
|
|
135
|
-
fixedPositioning: boolean;
|
|
136
135
|
actionsLayout: BentoButtonActionsLayout;
|
|
136
|
+
fixedPositioning: boolean;
|
|
137
137
|
divider: boolean;
|
|
138
138
|
disableFocusTrap: boolean;
|
|
139
139
|
dismissible: boolean;
|
|
@@ -16,9 +16,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
}, {
|
|
17
17
|
ariaLabel: ComputedRef<string>;
|
|
18
18
|
isChecked: ComputedRef<boolean>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
shouldShowSubLabel: ComputedRef<string>;
|
|
19
|
+
defaultSlotValue: string;
|
|
20
|
+
subLabelSlotValue: string;
|
|
22
21
|
conditionalClass: ComputedRef<{
|
|
23
22
|
'b-radio-button--disabled': boolean;
|
|
24
23
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BentoInputFieldType } from '@/components/input-field';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
|
|
3
|
+
inputFieldAriaLabel: {
|
|
4
4
|
type: StringConstructor;
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
@@ -190,7 +190,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
190
190
|
onInputEvent: () => void;
|
|
191
191
|
BentoInputFieldType: typeof BentoInputFieldType;
|
|
192
192
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("input" | "clear" | "escape-pressed")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
193
|
-
|
|
193
|
+
inputFieldAriaLabel: {
|
|
194
194
|
type: StringConstructor;
|
|
195
195
|
required: true;
|
|
196
196
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoToastItemAction } from './toast-item.types';
|
|
3
|
+
import { BentoButtonVariant } from '@/components/button';
|
|
4
|
+
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
text: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
action: {
|
|
11
|
+
type: PropType<BentoToastItemAction>;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
BentoButtonVariant: typeof BentoButtonVariant;
|
|
16
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
17
|
+
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
18
|
+
dismissButtonClicked: () => void;
|
|
19
|
+
hasSlot: (name: string) => boolean;
|
|
20
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("click" | "dismiss")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
text: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
action: {
|
|
26
|
+
type: PropType<BentoToastItemAction>;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
action: BentoToastItemAction;
|
|
31
|
+
}>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
computedPositioning: import("vue").ComputedRef<{
|
|
3
|
+
top: string;
|
|
4
|
+
width: string;
|
|
5
|
+
}[]>;
|
|
6
|
+
computedHeight: import("vue").ComputedRef<{
|
|
7
|
+
bottom: string;
|
|
8
|
+
height: string;
|
|
9
|
+
}>;
|
|
10
|
+
toastsToShow: import("vue").ComputedRef<import("./components/toast-item").BentoToastItem[]>;
|
|
11
|
+
toast: any;
|
|
12
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
13
|
+
export default _default;
|
|
@@ -25,8 +25,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
26
26
|
computedAriaLabel: import("vue").ComputedRef<string>;
|
|
27
27
|
computedDescription: import("vue").ComputedRef<string>;
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
defaultSlotValue: string;
|
|
29
|
+
subLabelSlotValue: string;
|
|
30
30
|
conditionalClasses: import("vue").ComputedRef<{
|
|
31
31
|
[key: string]: boolean;
|
|
32
32
|
}>;
|
|
@@ -25,16 +25,23 @@ import {
|
|
|
25
25
|
BentoDataGrid,
|
|
26
26
|
BentoDate,
|
|
27
27
|
BentoDropdown,
|
|
28
|
+
BentoDropdownAvatar,
|
|
29
|
+
BentoDropdownCountry,
|
|
30
|
+
BentoDropdownCurrency,
|
|
31
|
+
BentoDropdownPaymentMethod,
|
|
32
|
+
BentoInfoIcon,
|
|
28
33
|
BentoInputField,
|
|
29
34
|
BentoLink,
|
|
30
35
|
BentoLoadingButton,
|
|
31
36
|
BentoLoadingIndicator,
|
|
32
37
|
BentoPagination,
|
|
38
|
+
BentoPaymentMethod,
|
|
33
39
|
BentoPopover,
|
|
34
40
|
BentoRadioGroup,
|
|
35
41
|
BentoSearchBar,
|
|
36
42
|
BentoStatus,
|
|
37
43
|
BentoTag,
|
|
44
|
+
BentoToast,
|
|
38
45
|
BentoToggle,
|
|
39
46
|
BentoTypography,
|
|
40
47
|
} from './index';
|
|
@@ -67,16 +74,23 @@ declare module 'vue' {
|
|
|
67
74
|
BentoDataGrid: typeof BentoDataGrid;
|
|
68
75
|
BentoDate: typeof BentoDate;
|
|
69
76
|
BentoDropdown: typeof BentoDropdown;
|
|
77
|
+
BentoDropdownAvatar: typeof BentoDropdownAvatar;
|
|
78
|
+
BentoDropdownCountry: typeof BentoDropdownCountry;
|
|
79
|
+
BentoInfoIcon: typeof BentoInfoIcon;
|
|
80
|
+
BentoDropdownCurrency: typeof BentoDropdownCurrency;
|
|
81
|
+
BentoDropdownPaymentMethod: typeof BentoDropdownPaymentMethod;
|
|
70
82
|
BentoInputField: typeof BentoInputField;
|
|
71
83
|
BentoLink: typeof BentoLink;
|
|
72
84
|
BentoLoadingButton: typeof BentoLoadingButton;
|
|
73
85
|
BentoLoadingIndicator: typeof BentoLoadingIndicator;
|
|
74
86
|
BentoPagination: typeof BentoPagination;
|
|
87
|
+
BentoPaymentMethod: typeof BentoPaymentMethod;
|
|
75
88
|
BentoPopover: typeof BentoPopover;
|
|
76
89
|
BentoRadioGroup: typeof BentoRadioGroup;
|
|
77
90
|
BentoSearchBar: typeof BentoSearchBar;
|
|
78
91
|
BentoStatus: typeof BentoStatus;
|
|
79
92
|
BentoTag: typeof BentoTag;
|
|
93
|
+
BentoToast: typeof BentoToast;
|
|
80
94
|
BentoToggle: typeof BentoToggle;
|
|
81
95
|
BentoTypography: typeof BentoTypography;
|
|
82
96
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import type { Fn } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
export declare const useCheckboxSelectAll: (selectedItemsList: Ref<
|
|
3
|
+
import { BentoListboxMultiSelectValue, BentoListboxOptions } from '../../types';
|
|
4
|
+
export declare const useCheckboxSelectAll: (selectedItemsList: Ref<BentoListboxMultiSelectValue>, items: ComputedRef<BentoListboxOptions>, selectAll: Fn, unselectAll: Fn) => {
|
|
5
5
|
isAllSelected: ComputedRef<boolean>;
|
|
6
6
|
isIndeterminate: ComputedRef<boolean>;
|
|
7
7
|
toggleSelectAll: (selectedValue: boolean) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDefaultSlotValidator: (componentName: string, defaultSlotValue: string, ...optionalSlotsValue: string[]) => void;
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -11,15 +11,18 @@ export * from './components/country';
|
|
|
11
11
|
export * from './components/currency';
|
|
12
12
|
export * from './components/date';
|
|
13
13
|
export * from './components/filter-bar';
|
|
14
|
+
export * from './components/info-icon';
|
|
14
15
|
export * from './components/input-field';
|
|
15
16
|
export * from './components/loading-indicator';
|
|
16
17
|
export * from './components/link';
|
|
17
18
|
export * from './components/pagination';
|
|
19
|
+
export * from './components/payment-method';
|
|
18
20
|
export * from './components/popover';
|
|
19
21
|
export * from './components/radio-group';
|
|
20
22
|
export * from './components/search-bar';
|
|
21
23
|
export * from './components/status';
|
|
22
24
|
export * from './components/tag';
|
|
25
|
+
export * from './components/toast';
|
|
23
26
|
export * from './components/toggle';
|
|
24
27
|
export * from './components/typography';
|
|
25
28
|
export * from './types';
|
package/dist/@types/install.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BentoToastItem } from '../components/toast/components/toast-item';
|
|
2
|
+
export default class ToastController {
|
|
3
|
+
get state(): {
|
|
4
|
+
queue: Array<BentoToastItem>;
|
|
5
|
+
};
|
|
6
|
+
private _state;
|
|
7
|
+
constructor();
|
|
8
|
+
private dismissToast;
|
|
9
|
+
addToast(params: BentoToastItem): {
|
|
10
|
+
dismiss: () => void;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BentoSearchBarItem } from '../components/search-bar';
|
|
2
|
+
export type BentoListboxValue = string | number;
|
|
3
|
+
export type BentoListboxMultiSelectValue = BentoListboxValue[];
|
|
4
|
+
export interface BentoListboxOptionItem extends BentoSearchBarItem {
|
|
5
|
+
data?: unknown;
|
|
6
|
+
description?: string;
|
|
7
|
+
value: BentoListboxValue;
|
|
8
|
+
}
|
|
9
|
+
export type BentoListboxSelectedValue = BentoListboxValue | BentoListboxMultiSelectValue;
|
|
10
|
+
export type BentoListboxOptions = Array<BentoListboxOptionItem>;
|
|
11
|
+
export type BentoListboxIsOptionDisabled = (optionValue: BentoListboxOptionItem) => boolean | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type OmitStrict<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|