@adyen/bento-vue2 0.8.2 → 0.9.0-2
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/currency/currency.vue.d.ts +0 -9
- package/dist/@types/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +46 -0
- package/dist/@types/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +55 -0
- package/dist/@types/components/filter-bar/components/base-filter/components/index.d.ts +1 -1
- package/dist/@types/components/filter-bar/components/{base-filter/components/filter-button/filter-button.vue.d.ts → base-filter-button/base-filter-button.vue.d.ts} +2 -3
- package/dist/@types/components/input-field/input-field.types.d.ts +2 -1
- package/dist/@types/components/menu/menu.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/toggle/toggle.vue.d.ts +2 -3
- package/dist/@types/components/tooltip/tooltip.vue.d.ts +2 -2
- package/dist/@types/composables/index.d.ts +1 -1
- package/dist/@types/composables/use-default-slot-validator/use-default-slot-validator.d.ts +1 -0
- package/dist/@types/utils/ts/currency/currency.d.ts +1 -1
- package/dist/index.js +3164 -3123
- package/dist/index.js.map +1 -1
- package/dist/web-types.json +191 -89
- package/package.json +2 -2
- package/dist/@types/composables/use-default-slot-validator.d.ts +0 -1
- package/dist/@types/utils/ts/use-slot-text.d.ts +0 -2
|
@@ -31,8 +31,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
conditionalClassOutline: import("vue").ComputedRef<{
|
|
32
32
|
'b-checkbox__outline--unchecked': boolean;
|
|
33
33
|
}>;
|
|
34
|
-
defaultSlotValue:
|
|
35
|
-
descriptionSlotValue:
|
|
34
|
+
defaultSlotValue: boolean;
|
|
35
|
+
descriptionSlotValue: boolean;
|
|
36
36
|
isCheckboxGroup: import("vue").ComputedRef<boolean>;
|
|
37
37
|
isChecked: import("vue").ComputedRef<boolean>;
|
|
38
38
|
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
default: BentoCurrencyISOCode;
|
|
8
8
|
validator: (value: BentoCurrencyISOCode) => boolean;
|
|
9
9
|
};
|
|
10
|
-
shorthand: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
10
|
majorUnits: {
|
|
15
11
|
type: BooleanConstructor;
|
|
16
12
|
default: boolean;
|
|
@@ -25,17 +21,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
21
|
default: BentoCurrencyISOCode;
|
|
26
22
|
validator: (value: BentoCurrencyISOCode) => boolean;
|
|
27
23
|
};
|
|
28
|
-
shorthand: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
24
|
majorUnits: {
|
|
33
25
|
type: BooleanConstructor;
|
|
34
26
|
default: boolean;
|
|
35
27
|
};
|
|
36
28
|
}>>, {
|
|
37
29
|
currency: BentoCurrencyISOCode;
|
|
38
|
-
shorthand: boolean;
|
|
39
30
|
majorUnits: boolean;
|
|
40
31
|
}>;
|
|
41
32
|
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
appliedFiltersCount: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
isFilterOpen: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
20
|
+
"b-all-filters-modal-button--with-counter": number;
|
|
21
|
+
"b-all-filters-modal-button--filter-open": boolean;
|
|
22
|
+
}>;
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "click"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
label: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
appliedFiltersCount: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: any;
|
|
32
|
+
};
|
|
33
|
+
isFilterOpen: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}>>, {
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
isFilterOpen: boolean;
|
|
44
|
+
appliedFiltersCount: number;
|
|
45
|
+
}>;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
appliedFiltersCount: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
hasChevron: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
isFilterOpen: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
24
|
+
"b-filter-bar-filter-button--with-counter": number;
|
|
25
|
+
"b-filter-bar-filter-button--filter-open": boolean;
|
|
26
|
+
}>;
|
|
27
|
+
onClick: () => void;
|
|
28
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "click"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
label: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
appliedFiltersCount: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: any;
|
|
36
|
+
};
|
|
37
|
+
hasChevron: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
isFilterOpen: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
disabled: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
}>>, {
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
isFilterOpen: boolean;
|
|
52
|
+
hasChevron: boolean;
|
|
53
|
+
appliedFiltersCount: number;
|
|
54
|
+
}>;
|
|
55
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as FilterBarFilterButton } from './filter-bar-filter-button/filter-bar-filter-button.vue';
|
|
@@ -22,9 +22,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
23
23
|
computedAriaLabel: import("vue").ComputedRef<string>;
|
|
24
24
|
conditionalClasses: import("vue").ComputedRef<{
|
|
25
|
-
"b-filter-button--with-
|
|
26
|
-
"b-filter-button--
|
|
27
|
-
"b-filter-button--filter-open": boolean;
|
|
25
|
+
"b-base-filter-button--with-chevron": boolean;
|
|
26
|
+
"b-base-filter-button--filter-open": boolean;
|
|
28
27
|
}>;
|
|
29
28
|
onClickButton: () => void;
|
|
30
29
|
hasSlot: (name: string) => boolean;
|
|
@@ -28,6 +28,7 @@ export type BentoInputDropdownProps = {
|
|
|
28
28
|
export declare enum BentoInputFieldEvent {
|
|
29
29
|
INPUT = "input",
|
|
30
30
|
ESCAPE_PRESSED = "escape-pressed",
|
|
31
|
-
|
|
31
|
+
UPDATE_DROPDOWN = "update:dropdown",
|
|
32
|
+
DROPDOWN_INPUT = "dropdown-input"
|
|
32
33
|
}
|
|
33
34
|
export {};
|
|
@@ -56,7 +56,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
onKeyDown: () => void;
|
|
57
57
|
onKeyUp: () => void;
|
|
58
58
|
closeMenu: () => void;
|
|
59
|
-
toggleShowMenu: () => void;
|
|
59
|
+
toggleShowMenu: (e: MouseEvent) => void;
|
|
60
60
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
61
61
|
data: {
|
|
62
62
|
type: PropType<BentoMenuItem[]>;
|
|
@@ -16,9 +16,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
}, {
|
|
17
17
|
ariaLabel: ComputedRef<string>;
|
|
18
18
|
isChecked: ComputedRef<boolean>;
|
|
19
|
-
defaultSlotValue:
|
|
20
|
-
|
|
21
|
-
descriptionSlotValue: string;
|
|
19
|
+
defaultSlotValue: boolean;
|
|
20
|
+
descriptionSlotValue: boolean;
|
|
22
21
|
conditionalClass: ComputedRef<{
|
|
23
22
|
'b-radio-button--disabled': boolean;
|
|
24
23
|
}>;
|
|
@@ -25,9 +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
|
-
defaultSlotValue:
|
|
29
|
-
|
|
30
|
-
descriptionSlotValue: string;
|
|
28
|
+
defaultSlotValue: boolean;
|
|
29
|
+
descriptionSlotValue: boolean;
|
|
31
30
|
conditionalClasses: import("vue").ComputedRef<{
|
|
32
31
|
[key: string]: boolean;
|
|
33
32
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { PopperContainerAriaRole, PopperContainerPositionExtended } from '@/components/popper-container';
|
|
3
3
|
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
4
|
-
import { VueNodeElement } from '
|
|
4
|
+
import { VueNodeElement } from '@/types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
id: {
|
|
7
7
|
type: StringConstructor;
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
[x: string]: boolean;
|
|
38
38
|
}>;
|
|
39
39
|
tabIndex: import("vue").ComputedRef<number>;
|
|
40
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
41
41
|
id: {
|
|
42
42
|
type: StringConstructor;
|
|
43
43
|
default: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDefaultSlotValidator: (componentName: string, hasDefaultSlot: boolean, ...hasOptionalSlots: boolean[]) => void;
|
|
@@ -3,4 +3,4 @@ export declare const getExponent: (currencyCode: string) => number;
|
|
|
3
3
|
export declare const getMinorUnitsAmount: (amount: CurrencyAmount) => number;
|
|
4
4
|
export declare const getNormalizedAmount: (amount: CurrencyAmount, exponent: number) => number;
|
|
5
5
|
export declare function getNumberFormatOptions(amount: CurrencyAmount, options?: CurrencyOptions, majorUnits?: boolean): NumberFormatOptionsResult;
|
|
6
|
-
export declare const getLocalizedCurrencyValue: (amountValue: string, currency: string,
|
|
6
|
+
export declare const getLocalizedCurrencyValue: (amountValue: string, currency: string, majorUnits?: boolean) => string;
|