@adyen/bento-vue2 0.6.0 → 0.7.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.
Files changed (34) hide show
  1. package/dist/@types/components/button/components/button-actions/button-actions.types.d.ts +3 -0
  2. package/dist/@types/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +17 -0
  3. package/dist/@types/components/date-picker/date-picker.vue.d.ts +1 -0
  4. package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +9 -0
  5. package/dist/@types/components/filter-bar/components/base-filter/components/filter-button/filter-button.vue.d.ts +23 -1
  6. package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -0
  7. package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +1 -0
  8. package/dist/@types/components/filter-bar/filter-bar.types.d.ts +1 -0
  9. package/dist/@types/components/header/header.vue.d.ts +3 -3
  10. package/dist/@types/components/link/link.vue.d.ts +2 -2
  11. package/dist/@types/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +4 -1
  12. package/dist/@types/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +16 -2
  13. package/dist/@types/components/menu/menu.vue.d.ts +24 -3
  14. package/dist/@types/components/modal/components/base-modal/base-modal.vue.d.ts +89 -0
  15. package/dist/@types/components/modal/components/index.d.ts +3 -0
  16. package/dist/@types/components/modal/components/modal-default/modal-default.vue.d.ts +110 -0
  17. package/dist/@types/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +81 -0
  18. package/dist/@types/components/modal/index.d.ts +2 -0
  19. package/dist/@types/components/modal/modal.types.d.ts +22 -0
  20. package/dist/@types/components/modal/modal.vue.d.ts +129 -0
  21. package/dist/@types/components/radio-group/components/radio-button/radio-button.vue.d.ts +1 -0
  22. package/dist/@types/components/summary-grid/components/grid-layout/grid-layout.types.d.ts +8 -0
  23. package/dist/@types/components/summary-grid/components/grid-layout/grid-layout.vue.d.ts +16 -0
  24. package/dist/@types/components/toggle/toggle.vue.d.ts +1 -0
  25. package/dist/@types/components.d.ts +4 -2
  26. package/dist/@types/directives/index.d.ts +1 -0
  27. package/dist/@types/directives/keyboard-navigation/index.d.ts +2 -0
  28. package/dist/@types/directives/keyboard-navigation/keyboard-navigation.d.ts +2 -0
  29. package/dist/@types/directives/keyboard-navigation/keyboard-navigation.types.d.ts +7 -0
  30. package/dist/@types/index.d.ts +2 -0
  31. package/dist/index.js +4405 -3466
  32. package/dist/index.js.map +1 -1
  33. package/dist/web-types.json +445 -9
  34. package/package.json +3 -3
@@ -0,0 +1,129 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoModalDialogType, BentoModalEvent, BentoModalSize, BentoModalVariant } from '@/components/modal/modal.types';
3
+ import { BentoButtonActionsList } from '@/components/button';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ variant: {
6
+ type: PropType<BentoModalVariant>;
7
+ default: BentoModalVariant;
8
+ };
9
+ isDismissible: {
10
+ type: BooleanConstructor;
11
+ default: any;
12
+ };
13
+ isOpen: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ actions: {
18
+ type: PropType<BentoButtonActionsList>;
19
+ default: any;
20
+ };
21
+ hideCloseButton: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ size: {
26
+ type: PropType<BentoModalSize>;
27
+ default: BentoModalSize;
28
+ };
29
+ customPadding: {
30
+ type: StringConstructor;
31
+ default: any;
32
+ };
33
+ actionsLabel: {
34
+ type: StringConstructor;
35
+ default: any;
36
+ };
37
+ destructiveActions: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ dialogType: {
42
+ type: PropType<BentoModalDialogType>;
43
+ default: BentoModalDialogType;
44
+ };
45
+ content: {
46
+ type: StringConstructor;
47
+ default: any;
48
+ };
49
+ }, {
50
+ onCloseModal: () => void;
51
+ customProps: import("vue").ComputedRef<{
52
+ hideCloseButton: boolean;
53
+ size: BentoModalSize;
54
+ customPadding: string;
55
+ actionsLabel: string;
56
+ destructiveActions: boolean;
57
+ isDismissible: boolean;
58
+ dialogType?: undefined;
59
+ content?: undefined;
60
+ } | {
61
+ dialogType: BentoModalDialogType;
62
+ content: string;
63
+ isDismissible: boolean;
64
+ hideCloseButton?: undefined;
65
+ size?: undefined;
66
+ customPadding?: undefined;
67
+ actionsLabel?: undefined;
68
+ destructiveActions?: undefined;
69
+ }>;
70
+ hasSlot: (name: string) => boolean;
71
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, BentoModalEvent[], string, Readonly<import("vue").ExtractPropTypes<{
72
+ variant: {
73
+ type: PropType<BentoModalVariant>;
74
+ default: BentoModalVariant;
75
+ };
76
+ isDismissible: {
77
+ type: BooleanConstructor;
78
+ default: any;
79
+ };
80
+ isOpen: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ actions: {
85
+ type: PropType<BentoButtonActionsList>;
86
+ default: any;
87
+ };
88
+ hideCloseButton: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ size: {
93
+ type: PropType<BentoModalSize>;
94
+ default: BentoModalSize;
95
+ };
96
+ customPadding: {
97
+ type: StringConstructor;
98
+ default: any;
99
+ };
100
+ actionsLabel: {
101
+ type: StringConstructor;
102
+ default: any;
103
+ };
104
+ destructiveActions: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
108
+ dialogType: {
109
+ type: PropType<BentoModalDialogType>;
110
+ default: BentoModalDialogType;
111
+ };
112
+ content: {
113
+ type: StringConstructor;
114
+ default: any;
115
+ };
116
+ }>>, {
117
+ content: string;
118
+ size: BentoModalSize;
119
+ variant: BentoModalVariant;
120
+ actions: BentoButtonActionsList;
121
+ isDismissible: boolean;
122
+ hideCloseButton: boolean;
123
+ customPadding: string;
124
+ isOpen: boolean;
125
+ actionsLabel: string;
126
+ destructiveActions: boolean;
127
+ dialogType: BentoModalDialogType;
128
+ }>;
129
+ export default _default;
@@ -18,6 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  isChecked: ComputedRef<boolean>;
19
19
  defaultSlotValue: string;
20
20
  subLabelSlotValue: string;
21
+ descriptionSlotValue: string;
21
22
  conditionalClass: ComputedRef<{
22
23
  'b-radio-button--disabled': boolean;
23
24
  }>;
@@ -0,0 +1,8 @@
1
+ export interface GridLayoutItem {
2
+ data: object;
3
+ columnWidth?: {
4
+ small: number;
5
+ medium: number;
6
+ large: number;
7
+ };
8
+ }
@@ -0,0 +1,16 @@
1
+ import { PropType } from 'vue';
2
+ import { GridLayoutItem } from './grid-layout.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ items: {
5
+ type: PropType<GridLayoutItem[]>;
6
+ required: true;
7
+ validator: (array: PropType<GridLayoutItem[]>) => boolean;
8
+ };
9
+ }, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
10
+ items: {
11
+ type: PropType<GridLayoutItem[]>;
12
+ required: true;
13
+ validator: (array: PropType<GridLayoutItem[]>) => boolean;
14
+ };
15
+ }>>, {}>;
16
+ export default _default;
@@ -27,6 +27,7 @@ declare const _default: import("vue").DefineComponent<{
27
27
  computedDescription: import("vue").ComputedRef<string>;
28
28
  defaultSlotValue: string;
29
29
  subLabelSlotValue: string;
30
+ descriptionSlotValue: string;
30
31
  conditionalClasses: import("vue").ComputedRef<{
31
32
  [key: string]: boolean;
32
33
  }>;
@@ -28,13 +28,14 @@ import {
28
28
  BentoDropdownCountry,
29
29
  BentoDropdownCurrency,
30
30
  BentoDropdownPaymentMethod,
31
- // BentoHeader,
31
+ BentoHeader,
32
32
  BentoInfoIcon,
33
33
  BentoInputField,
34
34
  BentoLink,
35
35
  BentoLoadingButton,
36
36
  BentoLoadingIndicator,
37
37
  BentoMenu,
38
+ BentoModal,
38
39
  BentoPagination,
39
40
  BentoPaymentMethod,
40
41
  BentoPopover,
@@ -77,7 +78,7 @@ declare module 'vue' {
77
78
  BentoDropdown: typeof BentoDropdown;
78
79
  BentoDropdownAvatar: typeof BentoDropdownAvatar;
79
80
  BentoDropdownCountry: typeof BentoDropdownCountry;
80
- // BentoHeader: typeof BentoHeader;
81
+ BentoHeader: typeof BentoHeader;
81
82
  BentoInfoIcon: typeof BentoInfoIcon;
82
83
  BentoDropdownCurrency: typeof BentoDropdownCurrency;
83
84
  BentoDropdownPaymentMethod: typeof BentoDropdownPaymentMethod;
@@ -86,6 +87,7 @@ declare module 'vue' {
86
87
  BentoLoadingButton: typeof BentoLoadingButton;
87
88
  BentoLoadingIndicator: typeof BentoLoadingIndicator;
88
89
  BentoMenu: typeof BentoMenu;
90
+ BentoModal: typeof BentoModal;
89
91
  BentoPagination: typeof BentoPagination;
90
92
  BentoPaymentMethod: typeof BentoPaymentMethod;
91
93
  BentoPopover: typeof BentoPopover;
@@ -1,2 +1,3 @@
1
1
  export * from './click-outside';
2
2
  export * from './tooltip';
3
+ export * from './keyboard-navigation';
@@ -0,0 +1,2 @@
1
+ export * from './keyboard-navigation';
2
+ export * from './keyboard-navigation.types';
@@ -0,0 +1,2 @@
1
+ import { ObjectDirective } from 'vue';
2
+ export declare const BentoKeyboardNavigationDirective: ObjectDirective<Element>;
@@ -0,0 +1,7 @@
1
+ import { DirectiveBinding } from 'vue';
2
+ type ListenerCleanup = () => void;
3
+ interface KeyboardNavigation {
4
+ keyDownListener?: ListenerCleanup;
5
+ }
6
+ export type Binding<V> = DirectiveBinding<V> & KeyboardNavigation;
7
+ export {};
@@ -16,6 +16,8 @@ export * from './components/input-field';
16
16
  export * from './components/loading-indicator';
17
17
  export * from './components/link';
18
18
  export * from './components/menu';
19
+ export * from './components/modal';
20
+ export * from './components/header';
19
21
  export * from './components/pagination';
20
22
  export * from './components/payment-method';
21
23
  export * from './components/popover';