@adyen/bento-vue2 0.1.5 → 0.3.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/button/button.vue.d.ts +4 -1
- 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 +15 -0
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +26 -2
- package/dist/@types/components/date/date.types.d.ts +4 -4
- package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +4 -0
- package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +31 -3
- package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +28 -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 +123 -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 +132 -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 +118 -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 +118 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +6 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +123 -0
- package/dist/@types/components/dropdown/dropdown.vue.d.ts +22 -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 +64 -15
- 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/boolean-filter/boolean-filter.vue.d.ts +43 -0
- package/dist/@types/components/filter-bar/components/boolean-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/range-filter/range-filter.vue.d.ts +42 -0
- package/dist/@types/components/filter-bar/components/select-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/select-filter.vue.d.ts +55 -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 +15 -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/input-field/input-field.types.d.ts +2 -1
- package/dist/@types/components/input-field/input-field.vue.d.ts +1 -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} +22 -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-tag/index.d.ts +1 -0
- package/dist/@types/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +19 -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 +70 -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/radio-group/radio-group.vue.d.ts +9 -0
- package/dist/@types/components/search-bar/search-bar.vue.d.ts +3 -2
- package/dist/@types/components/tabs/components/tab.types.d.ts +5 -0
- package/dist/@types/components/tabs/components/tab.vue.d.ts +3 -37
- package/dist/@types/components/tabs/index.d.ts +2 -3
- package/dist/@types/components/tabs/tabs.keys.d.ts +2 -1
- package/dist/@types/components/tabs/tabs.types.d.ts +4 -9
- package/dist/@types/components/tabs/tabs.utils.d.ts +3 -0
- package/dist/@types/components/tabs/tabs.vue.d.ts +13 -16
- 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 +33 -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 +16 -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 +4 -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 +5940 -4828
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- 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,132 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoCountryListboxOptions } from './dropdown-country.types';
|
|
3
|
+
import { BentoListboxSelectedValue } from '../../../../../types';
|
|
4
|
+
import { BentoCountryVariant } from '../../../../country';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
items: {
|
|
7
|
+
type: PropType<BentoCountryListboxOptions>;
|
|
8
|
+
default: () => any[];
|
|
9
|
+
};
|
|
10
|
+
variant: {
|
|
11
|
+
type: PropType<BentoCountryVariant>;
|
|
12
|
+
default: BentoCountryVariant;
|
|
13
|
+
validator: (value: BentoCountryVariant) => boolean;
|
|
14
|
+
};
|
|
15
|
+
ariaLabel: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: any;
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
dynamicFiltering: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
label: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: any;
|
|
30
|
+
};
|
|
31
|
+
description: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: any;
|
|
34
|
+
};
|
|
35
|
+
isOptionDisabled: {
|
|
36
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
37
|
+
default: any;
|
|
38
|
+
};
|
|
39
|
+
multiple: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
optional: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
required: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
showSlotContentInMultiple: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
value: {
|
|
56
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
57
|
+
default: any;
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
countryItems: import("vue").ComputedRef<import("../../../../../types").BentoListboxOptions>;
|
|
61
|
+
onInput: (selectedValue: BentoListboxSelectedValue) => void;
|
|
62
|
+
BentoCountryVariant: typeof BentoCountryVariant;
|
|
63
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
items: {
|
|
65
|
+
type: PropType<BentoCountryListboxOptions>;
|
|
66
|
+
default: () => any[];
|
|
67
|
+
};
|
|
68
|
+
variant: {
|
|
69
|
+
type: PropType<BentoCountryVariant>;
|
|
70
|
+
default: BentoCountryVariant;
|
|
71
|
+
validator: (value: BentoCountryVariant) => boolean;
|
|
72
|
+
};
|
|
73
|
+
ariaLabel: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: any;
|
|
76
|
+
};
|
|
77
|
+
disabled: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
dynamicFiltering: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
label: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: any;
|
|
88
|
+
};
|
|
89
|
+
description: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: any;
|
|
92
|
+
};
|
|
93
|
+
isOptionDisabled: {
|
|
94
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
95
|
+
default: any;
|
|
96
|
+
};
|
|
97
|
+
multiple: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
optional: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
required: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
showSlotContentInMultiple: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
value: {
|
|
114
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
115
|
+
default: any;
|
|
116
|
+
};
|
|
117
|
+
}>>, {
|
|
118
|
+
required: boolean;
|
|
119
|
+
optional: boolean;
|
|
120
|
+
value: BentoListboxSelectedValue;
|
|
121
|
+
label: string;
|
|
122
|
+
ariaLabel: string;
|
|
123
|
+
disabled: boolean;
|
|
124
|
+
multiple: boolean;
|
|
125
|
+
description: string;
|
|
126
|
+
variant: BentoCountryVariant;
|
|
127
|
+
items: BentoCountryListboxOptions;
|
|
128
|
+
isOptionDisabled: import("../../../../../types").BentoListboxIsOptionDisabled;
|
|
129
|
+
dynamicFiltering: boolean;
|
|
130
|
+
showSlotContentInMultiple: boolean;
|
|
131
|
+
}>;
|
|
132
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BentoListboxOptionItem, OmitStrict } from '@/types';
|
|
2
|
+
import { BentoCurrencyISOCode } from '@/components/currency';
|
|
3
|
+
export type BentoCurrencyListboxOptionItem = OmitStrict<BentoListboxOptionItem, 'value'> & {
|
|
4
|
+
value: BentoCurrencyISOCode;
|
|
5
|
+
};
|
|
6
|
+
export type BentoCurrencyListboxOptions = BentoCurrencyListboxOptionItem[];
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { BentoCurrencyListboxOptions } from './dropdown-currency.types';
|
|
3
|
+
import type { BentoListboxSelectedValue } from '../../../../../types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
items: {
|
|
6
|
+
type: PropType<BentoCurrencyListboxOptions>;
|
|
7
|
+
default: () => any[];
|
|
8
|
+
};
|
|
9
|
+
ariaLabel: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
dynamicFiltering: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
description: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
isOptionDisabled: {
|
|
30
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
31
|
+
default: any;
|
|
32
|
+
};
|
|
33
|
+
multiple: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
optional: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
required: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
showSlotContentInMultiple: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
value: {
|
|
50
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
51
|
+
default: any;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
onInput: (selectedValue: BentoListboxSelectedValue) => void;
|
|
55
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
items: {
|
|
57
|
+
type: PropType<BentoCurrencyListboxOptions>;
|
|
58
|
+
default: () => any[];
|
|
59
|
+
};
|
|
60
|
+
ariaLabel: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: any;
|
|
63
|
+
};
|
|
64
|
+
disabled: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
dynamicFiltering: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
label: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: any;
|
|
75
|
+
};
|
|
76
|
+
description: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: any;
|
|
79
|
+
};
|
|
80
|
+
isOptionDisabled: {
|
|
81
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
82
|
+
default: any;
|
|
83
|
+
};
|
|
84
|
+
multiple: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
optional: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
required: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
showSlotContentInMultiple: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
value: {
|
|
101
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
102
|
+
default: any;
|
|
103
|
+
};
|
|
104
|
+
}>>, {
|
|
105
|
+
required: boolean;
|
|
106
|
+
optional: boolean;
|
|
107
|
+
value: BentoListboxSelectedValue;
|
|
108
|
+
label: string;
|
|
109
|
+
ariaLabel: string;
|
|
110
|
+
disabled: boolean;
|
|
111
|
+
multiple: boolean;
|
|
112
|
+
description: string;
|
|
113
|
+
items: BentoCurrencyListboxOptions;
|
|
114
|
+
isOptionDisabled: import("../../../../../types").BentoListboxIsOptionDisabled;
|
|
115
|
+
dynamicFiltering: boolean;
|
|
116
|
+
showSlotContentInMultiple: boolean;
|
|
117
|
+
}>;
|
|
118
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BentoListboxOptionItem, OmitStrict } from '../../../../../types';
|
|
2
|
+
import { BentoPaymentMethodType } from '../../../../payment-method';
|
|
3
|
+
export type BentoPaymentMethodListboxOptionItem = OmitStrict<BentoListboxOptionItem, 'value'> & {
|
|
4
|
+
value: BentoPaymentMethodType;
|
|
5
|
+
};
|
|
6
|
+
export type BentoPaymentMethodListboxOptions = BentoPaymentMethodListboxOptionItem[];
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoPaymentMethodListboxOptions } from './dropdown-payment-method.types';
|
|
3
|
+
import { BentoListboxSelectedValue } from '../../../../../types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
items: {
|
|
6
|
+
type: PropType<BentoPaymentMethodListboxOptions>;
|
|
7
|
+
default: () => any[];
|
|
8
|
+
};
|
|
9
|
+
ariaLabel: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
dynamicFiltering: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
description: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
isOptionDisabled: {
|
|
30
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
31
|
+
default: any;
|
|
32
|
+
};
|
|
33
|
+
multiple: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
optional: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
required: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
showSlotContentInMultiple: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
value: {
|
|
50
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
51
|
+
default: any;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
onInput: (selectedValue: BentoListboxSelectedValue) => void;
|
|
55
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
items: {
|
|
57
|
+
type: PropType<BentoPaymentMethodListboxOptions>;
|
|
58
|
+
default: () => any[];
|
|
59
|
+
};
|
|
60
|
+
ariaLabel: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: any;
|
|
63
|
+
};
|
|
64
|
+
disabled: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
dynamicFiltering: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
label: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: any;
|
|
75
|
+
};
|
|
76
|
+
description: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: any;
|
|
79
|
+
};
|
|
80
|
+
isOptionDisabled: {
|
|
81
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
82
|
+
default: any;
|
|
83
|
+
};
|
|
84
|
+
multiple: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
optional: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
required: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
showSlotContentInMultiple: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
value: {
|
|
101
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
102
|
+
default: any;
|
|
103
|
+
};
|
|
104
|
+
}>>, {
|
|
105
|
+
required: boolean;
|
|
106
|
+
optional: boolean;
|
|
107
|
+
value: BentoListboxSelectedValue;
|
|
108
|
+
label: string;
|
|
109
|
+
ariaLabel: string;
|
|
110
|
+
disabled: boolean;
|
|
111
|
+
multiple: boolean;
|
|
112
|
+
description: string;
|
|
113
|
+
items: BentoPaymentMethodListboxOptions;
|
|
114
|
+
isOptionDisabled: import("../../../../../types").BentoListboxIsOptionDisabled;
|
|
115
|
+
dynamicFiltering: boolean;
|
|
116
|
+
showSlotContentInMultiple: boolean;
|
|
117
|
+
}>;
|
|
118
|
+
export default _default;
|
package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BentoListboxOptionItem, OmitStrict } from '@/types';
|
|
2
|
+
import { BentoTagVariant } from '../../../../tag';
|
|
3
|
+
export type BentoTagListboxOptionItem = OmitStrict<BentoListboxOptionItem, 'data'> & {
|
|
4
|
+
variant: BentoTagVariant;
|
|
5
|
+
};
|
|
6
|
+
export type BentoTagListboxOptions = BentoTagListboxOptionItem[];
|
package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { BentoTagListboxOptions } from './dropdown-tag.types';
|
|
3
|
+
import type { BentoListboxSelectedValue } from '../../../../../types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
items: {
|
|
6
|
+
type: PropType<BentoTagListboxOptions>;
|
|
7
|
+
default: () => any[];
|
|
8
|
+
};
|
|
9
|
+
ariaLabel: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
dynamicFiltering: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
description: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
isOptionDisabled: {
|
|
30
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
31
|
+
default: any;
|
|
32
|
+
};
|
|
33
|
+
multiple: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
optional: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
required: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
showSlotContentInMultiple: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
value: {
|
|
50
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
51
|
+
default: any;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
tagItems: import("vue").ComputedRef<{
|
|
55
|
+
label: string;
|
|
56
|
+
value: import("../../../../../types").BentoListboxValue;
|
|
57
|
+
data: import("../../../../tag").BentoTagVariant;
|
|
58
|
+
}[]>;
|
|
59
|
+
onInput: (selectedValue: BentoListboxSelectedValue) => void;
|
|
60
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
+
items: {
|
|
62
|
+
type: PropType<BentoTagListboxOptions>;
|
|
63
|
+
default: () => any[];
|
|
64
|
+
};
|
|
65
|
+
ariaLabel: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: any;
|
|
68
|
+
};
|
|
69
|
+
disabled: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
dynamicFiltering: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
label: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: any;
|
|
80
|
+
};
|
|
81
|
+
description: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: any;
|
|
84
|
+
};
|
|
85
|
+
isOptionDisabled: {
|
|
86
|
+
type: PropType<import("../../../../../types").BentoListboxIsOptionDisabled>;
|
|
87
|
+
default: any;
|
|
88
|
+
};
|
|
89
|
+
multiple: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
optional: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
required: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
showSlotContentInMultiple: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
value: {
|
|
106
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
107
|
+
default: any;
|
|
108
|
+
};
|
|
109
|
+
}>>, {
|
|
110
|
+
required: boolean;
|
|
111
|
+
optional: boolean;
|
|
112
|
+
value: BentoListboxSelectedValue;
|
|
113
|
+
label: string;
|
|
114
|
+
ariaLabel: string;
|
|
115
|
+
disabled: boolean;
|
|
116
|
+
multiple: boolean;
|
|
117
|
+
description: string;
|
|
118
|
+
items: BentoTagListboxOptions;
|
|
119
|
+
isOptionDisabled: import("../../../../../types").BentoListboxIsOptionDisabled;
|
|
120
|
+
dynamicFiltering: boolean;
|
|
121
|
+
showSlotContentInMultiple: boolean;
|
|
122
|
+
}>;
|
|
123
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '@/types';
|
|
3
3
|
import { BentoTypographyElement } from '../typography';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
ariaLabel: {
|
|
@@ -23,11 +23,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
default: any;
|
|
24
24
|
};
|
|
25
25
|
isOptionDisabled: {
|
|
26
|
-
type: PropType<
|
|
26
|
+
type: PropType<BentoListboxIsOptionDisabled>;
|
|
27
27
|
default: any;
|
|
28
28
|
};
|
|
29
29
|
items: {
|
|
30
|
-
type: PropType<
|
|
30
|
+
type: PropType<BentoListboxOptions>;
|
|
31
31
|
default: () => any[];
|
|
32
32
|
};
|
|
33
33
|
multiple: {
|
|
@@ -42,8 +42,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
42
|
type: BooleanConstructor;
|
|
43
43
|
default: boolean;
|
|
44
44
|
};
|
|
45
|
+
showSlotContentInMultiple: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
45
49
|
value: {
|
|
46
|
-
type: PropType<
|
|
50
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
47
51
|
default: any;
|
|
48
52
|
};
|
|
49
53
|
}, {
|
|
@@ -51,13 +55,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
55
|
isDropdownOpen: import("vue").Ref<boolean>;
|
|
52
56
|
displayValue: import("vue").ComputedRef<string>;
|
|
53
57
|
dropdownOptionsContainerId: string;
|
|
54
|
-
filteredItems: import("vue").ComputedRef<
|
|
58
|
+
filteredItems: import("vue").ComputedRef<import("@/types").BentoListboxOptionItem[]>;
|
|
55
59
|
searchTerm: import("vue").Ref<string>;
|
|
56
60
|
labelId: string;
|
|
61
|
+
selectedValueItem: import("vue").ComputedRef<import("@/types").BentoListboxOptionItem | import("@/types").BentoListboxOptionItem[]>;
|
|
57
62
|
inputContainerRef: any;
|
|
58
63
|
closeOpenedDropdown: () => void;
|
|
59
64
|
toggleDropdown: () => void;
|
|
60
|
-
onOptionSelected: (selectedValue:
|
|
65
|
+
onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
|
|
61
66
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
62
67
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
63
68
|
ariaLabel: {
|
|
@@ -81,11 +86,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
86
|
default: any;
|
|
82
87
|
};
|
|
83
88
|
isOptionDisabled: {
|
|
84
|
-
type: PropType<
|
|
89
|
+
type: PropType<BentoListboxIsOptionDisabled>;
|
|
85
90
|
default: any;
|
|
86
91
|
};
|
|
87
92
|
items: {
|
|
88
|
-
type: PropType<
|
|
93
|
+
type: PropType<BentoListboxOptions>;
|
|
89
94
|
default: () => any[];
|
|
90
95
|
};
|
|
91
96
|
multiple: {
|
|
@@ -100,21 +105,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
105
|
type: BooleanConstructor;
|
|
101
106
|
default: boolean;
|
|
102
107
|
};
|
|
108
|
+
showSlotContentInMultiple: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
103
112
|
value: {
|
|
104
|
-
type: PropType<
|
|
113
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
105
114
|
default: any;
|
|
106
115
|
};
|
|
107
116
|
}>>, {
|
|
108
117
|
required: boolean;
|
|
109
118
|
optional: boolean;
|
|
110
|
-
value:
|
|
119
|
+
value: BentoListboxSelectedValue;
|
|
111
120
|
label: string;
|
|
112
121
|
ariaLabel: string;
|
|
113
122
|
disabled: boolean;
|
|
114
123
|
multiple: boolean;
|
|
115
124
|
description: string;
|
|
116
|
-
items:
|
|
117
|
-
isOptionDisabled:
|
|
125
|
+
items: BentoListboxOptions;
|
|
126
|
+
isOptionDisabled: BentoListboxIsOptionDisabled;
|
|
118
127
|
dynamicFiltering: boolean;
|
|
128
|
+
showSlotContentInMultiple: boolean;
|
|
119
129
|
}>;
|
|
120
130
|
export default _default;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export { default as BentoDropdown } from './dropdown.vue';
|
|
2
|
-
export
|
|
2
|
+
export { default as BentoDropdownAvatar } from './components/variants/dropdown-avatar/dropdown-avatar.vue';
|
|
3
|
+
export { default as BentoDropdownCountry } from './components/variants/dropdown-country/dropdown-country.vue';
|
|
4
|
+
export { default as BentoDropdownCurrency } from './components/variants/dropdown-currency/dropdown-currency.vue';
|
|
5
|
+
export { default as BentoDropdownPaymentMethod } from './components/variants/dropdown-payment-method/dropdown-payment-method.vue';
|