@adyen/bento-vue2 0.2.0 → 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.
Files changed (45) hide show
  1. package/dist/@types/components/button/button.vue.d.ts +4 -1
  2. package/dist/@types/components/data-grid/data-grid.types.d.ts +14 -0
  3. package/dist/@types/components/data-grid/data-grid.vue.d.ts +14 -2
  4. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +4 -0
  5. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +15 -5
  6. package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +12 -3
  7. package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
  8. package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
  9. package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
  10. package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
  11. package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +6 -0
  12. package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +123 -0
  13. package/dist/@types/components/dropdown/dropdown.vue.d.ts +12 -3
  14. package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +33 -7
  15. package/dist/@types/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +43 -0
  16. package/dist/@types/components/filter-bar/components/boolean-filter/index.d.ts +1 -0
  17. package/dist/@types/components/filter-bar/components/range-filter/range-filter.vue.d.ts +42 -0
  18. package/dist/@types/components/filter-bar/components/select-filter/index.d.ts +1 -0
  19. package/dist/@types/components/filter-bar/components/{listbox-filter/listbox-filter.vue.d.ts → select-filter/select-filter.vue.d.ts} +9 -7
  20. package/dist/@types/components/filter-bar/filter-bar.types.d.ts +8 -5
  21. package/dist/@types/components/input-field/input-field.types.d.ts +2 -1
  22. package/dist/@types/components/input-field/input-field.vue.d.ts +1 -0
  23. package/dist/@types/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
  24. package/dist/@types/components/internal/listbox/components/listbox-option-tag/index.d.ts +1 -0
  25. package/dist/@types/components/internal/listbox/components/{listbox-option-currency/listbox-option-currency.vue.d.ts → listbox-option-tag/listbox-option-tag.vue.d.ts} +2 -0
  26. package/dist/@types/components/internal/listbox/index.d.ts +1 -1
  27. package/dist/@types/components/internal/listbox/listbox.vue.d.ts +9 -0
  28. package/dist/@types/components/radio-group/radio-group.vue.d.ts +9 -0
  29. package/dist/@types/components/search-bar/search-bar.vue.d.ts +1 -0
  30. package/dist/@types/components/tabs/components/tab.types.d.ts +5 -0
  31. package/dist/@types/components/tabs/components/tab.vue.d.ts +3 -37
  32. package/dist/@types/components/tabs/index.d.ts +2 -3
  33. package/dist/@types/components/tabs/tabs.keys.d.ts +2 -1
  34. package/dist/@types/components/tabs/tabs.types.d.ts +4 -9
  35. package/dist/@types/components/tabs/tabs.utils.d.ts +3 -0
  36. package/dist/@types/components/tabs/tabs.vue.d.ts +13 -16
  37. package/dist/@types/components/toast/components/toast-item/toast-item.vue.d.ts +1 -0
  38. package/dist/@types/components/toast/index.d.ts +1 -1
  39. package/dist/@types/components.d.ts +2 -0
  40. package/dist/@types/index.d.ts +1 -0
  41. package/dist/index.js +3382 -3028
  42. package/dist/index.js.map +1 -1
  43. package/package.json +3 -3
  44. package/dist/@types/components/filter-bar/components/listbox-filter/index.d.ts +0 -1
  45. package/dist/@types/components/internal/listbox/components/listbox-option-currency/index.d.ts +0 -1
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
- import { BentoListboxSelectedValue } from '@/types';
3
- import { BentoListboxFilterOptions } from '../../filter-bar.types';
2
+ import { BentoListboxOptionItem, BentoListboxSelectedValue } from '@/types';
3
+ import { BentoSelectFilterOptions } from '../../filter-bar.types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  field: {
6
6
  type: StringConstructor;
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
11
11
  required: true;
12
12
  };
13
13
  options: {
14
- type: PropType<BentoListboxFilterOptions>;
14
+ type: PropType<BentoSelectFilterOptions>;
15
15
  default: any;
16
16
  };
17
17
  value: {
@@ -20,16 +20,18 @@ declare const _default: import("vue").DefineComponent<{
20
20
  };
21
21
  }, {
22
22
  appliedFiltersCount: import("vue").ComputedRef<number>;
23
- filteredItems: import("vue").ComputedRef<import("@/types").BentoListboxOptions>;
23
+ filteredItems: import("vue").ComputedRef<BentoListboxOptionItem[]>;
24
24
  internalFilterValue: import("vue").Ref<import("@/types").BentoListboxValue | import("@/types").BentoListboxValue[]>;
25
25
  isApplyButtonDisabled: import("vue").ComputedRef<boolean>;
26
26
  isClearButtonDisabled: import("vue").ComputedRef<boolean>;
27
27
  listboxFilterId: import("vue").ComputedRef<string>;
28
+ searchTerm: import("vue").Ref<string>;
28
29
  clearFilter: () => void;
30
+ closeFilter: () => void;
29
31
  onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
30
32
  openFilter: () => void;
31
33
  updateFilter: () => void;
32
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
34
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
33
35
  field: {
34
36
  type: StringConstructor;
35
37
  required: true;
@@ -39,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
39
41
  required: true;
40
42
  };
41
43
  options: {
42
- type: PropType<BentoListboxFilterOptions>;
44
+ type: PropType<BentoSelectFilterOptions>;
43
45
  default: any;
44
46
  };
45
47
  value: {
@@ -48,6 +50,6 @@ declare const _default: import("vue").DefineComponent<{
48
50
  };
49
51
  }>>, {
50
52
  value: BentoListboxSelectedValue;
51
- options: BentoListboxFilterOptions;
53
+ options: BentoSelectFilterOptions;
52
54
  }>;
53
55
  export default _default;
@@ -1,16 +1,19 @@
1
1
  import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '../../types';
2
- export interface BentoListboxFilterOptions {
2
+ export interface BentoSelectFilterOptions {
3
3
  listboxItems: BentoListboxOptions;
4
4
  multiple?: boolean;
5
5
  isOptionDisabled?: BentoListboxIsOptionDisabled;
6
6
  }
7
7
  export type BentoTextFilterValue = string | null;
8
- export type BentoListboxFilterValue = BentoListboxSelectedValue;
9
- export type BentoFilterBarValue = BentoTextFilterValue | BentoListboxFilterValue;
10
- export type BentoFilterOptions = BentoListboxFilterOptions | undefined;
8
+ export type BentoSelectFilterValue = BentoListboxSelectedValue;
9
+ export type BentoBooleanFilterValue = string | null;
10
+ export type BentoFilterBarValue = BentoTextFilterValue | BentoSelectFilterValue | BentoBooleanFilterValue;
11
+ export type BentoFilterOptions = BentoSelectFilterOptions | undefined;
11
12
  export declare enum BentoFilterItemType {
12
13
  TEXT = "BentoTextFilter",
13
- LISTBOX = "BentoListboxFilter"
14
+ SELECT = "BentoSelectFilter",
15
+ BOOLEAN = "BentoBooleanFilter",
16
+ RANGE = "BentoRangeFilter"
14
17
  }
15
18
  export interface BentoFilterModel {
16
19
  field: string;
@@ -13,5 +13,6 @@ export declare enum BentoInputFieldStateClass {
13
13
  }
14
14
  export declare enum BentoInputFieldType {
15
15
  SEARCH = "search",
16
- TEXT = "text"
16
+ TEXT = "text",
17
+ NUMBER = "number"
17
18
  }
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
49
49
  [x: string]: boolean;
50
50
  }>;
51
51
  inputFieldElement: any;
52
+ inputFieldId: string;
52
53
  shouldDisplayStaticValueAtStart: import("vue").ComputedRef<boolean>;
53
54
  shouldDisplayStaticValueAtEnd: import("vue").ComputedRef<boolean>;
54
55
  }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("input" | "escape-pressed")[], string, Readonly<import("vue").ExtractPropTypes<{
@@ -10,6 +10,10 @@ declare const _default: import("vue").DefineComponent<{
10
10
  type: PropType<BentoListboxOptions>;
11
11
  required: true;
12
12
  };
13
+ searching: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
13
17
  selectedValues: {
14
18
  type: PropType<BentoListboxSelectedValue>;
15
19
  default: () => BentoListboxSelectedValue;
@@ -31,12 +35,17 @@ declare const _default: import("vue").DefineComponent<{
31
35
  type: PropType<BentoListboxOptions>;
32
36
  required: true;
33
37
  };
38
+ searching: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
34
42
  selectedValues: {
35
43
  type: PropType<BentoListboxSelectedValue>;
36
44
  default: () => BentoListboxSelectedValue;
37
45
  };
38
46
  }>>, {
39
47
  isOptionDisabled: BentoListboxIsOptionDisabled;
48
+ searching: boolean;
40
49
  selectedValues: BentoListboxSelectedValue;
41
50
  }>;
42
51
  export default _default;
@@ -0,0 +1 @@
1
+ export { default as ListboxOptionTag } from './listbox-option-tag.vue';
@@ -1,5 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import type { BentoListboxOptionItem } from '@/types';
3
+ import { BentoTagVariant } from '../../../../tag';
3
4
  import { BentoTypographyElement } from '../../../../typography';
4
5
  declare const _default: import("vue").DefineComponent<{
5
6
  option: {
@@ -7,6 +8,7 @@ declare const _default: import("vue").DefineComponent<{
7
8
  required: true;
8
9
  };
9
10
  }, {
11
+ variant: import("vue").ComputedRef<BentoTagVariant>;
10
12
  BentoTypographyElement: typeof BentoTypographyElement;
11
13
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
12
14
  option: {
@@ -1,2 +1,2 @@
1
1
  export { default as BentoListbox } from './listbox.vue';
2
- export { ListboxOptionCurrency } from './components/listbox-option-currency';
2
+ export { ListboxOptionTag } from './components/listbox-option-tag';
@@ -21,6 +21,10 @@ declare const _default: import("vue").DefineComponent<{
21
21
  type: BooleanConstructor;
22
22
  default: boolean;
23
23
  };
24
+ searching: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
24
28
  selectedValue: {
25
29
  type: PropType<BentoListboxSelectedValue>;
26
30
  default: any;
@@ -48,6 +52,10 @@ declare const _default: import("vue").DefineComponent<{
48
52
  type: BooleanConstructor;
49
53
  default: boolean;
50
54
  };
55
+ searching: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
51
59
  selectedValue: {
52
60
  type: PropType<BentoListboxSelectedValue>;
53
61
  default: any;
@@ -56,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
56
64
  ariaLabel: string;
57
65
  multiple: boolean;
58
66
  isOptionDisabled: BentoListboxIsOptionDisabled;
67
+ searching: boolean;
59
68
  selectedValue: BentoListboxSelectedValue;
60
69
  }>;
61
70
  export default _default;
@@ -22,6 +22,10 @@ declare const _default: import("vue").DefineComponent<{
22
22
  type: StringConstructor;
23
23
  required: true;
24
24
  };
25
+ selectedValue: {
26
+ type: (StringConstructor | NumberConstructor)[];
27
+ default: any;
28
+ };
25
29
  }, {
26
30
  conditionalClasses: import("vue").ComputedRef<{
27
31
  'b-radio-group--horizontal': boolean;
@@ -50,9 +54,14 @@ declare const _default: import("vue").DefineComponent<{
50
54
  type: StringConstructor;
51
55
  required: true;
52
56
  };
57
+ selectedValue: {
58
+ type: (StringConstructor | NumberConstructor)[];
59
+ default: any;
60
+ };
53
61
  }>>, {
54
62
  disabled: boolean;
55
63
  variant: BentoRadioGroupVariant;
56
64
  formId: string;
65
+ selectedValue: string | number;
57
66
  }>;
58
67
  export default _default;
@@ -146,6 +146,7 @@ declare const _default: import("vue").DefineComponent<{
146
146
  [x: string]: boolean;
147
147
  }>;
148
148
  inputFieldElement: any;
149
+ inputFieldId: string;
149
150
  shouldDisplayStaticValueAtStart: import("vue").ComputedRef<boolean>;
150
151
  shouldDisplayStaticValueAtEnd: import("vue").ComputedRef<boolean>;
151
152
  }> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue").ComponentCustomProperties & Readonly<import("vue").ExtractPropTypes<{
@@ -0,0 +1,5 @@
1
+ export interface BentoTab {
2
+ disabled: boolean;
3
+ id: string;
4
+ title: string;
5
+ }
@@ -1,10 +1,4 @@
1
- import { PropType } from 'vue';
2
- import { AdlTabApi } from '../tabs.types';
3
1
  declare const _default: import("vue").DefineComponent<{
4
- name: {
5
- type: StringConstructor;
6
- required: true;
7
- };
8
2
  title: {
9
3
  type: StringConstructor;
10
4
  required: true;
@@ -13,28 +7,10 @@ declare const _default: import("vue").DefineComponent<{
13
7
  type: BooleanConstructor;
14
8
  default: boolean;
15
9
  };
16
- testId: {
17
- type: StringConstructor;
18
- default: string;
19
- };
20
- tabs: {
21
- type: PropType<AdlTabApi>;
22
- default: any;
23
- };
24
- }, {}, {}, {
25
- isActive(): boolean;
26
- contentName(): string;
27
- conditionalClasses(): {
28
- [className: string]: boolean;
29
- };
30
- adlTabApi(): AdlTabApi;
31
10
  }, {
32
- activate(): void;
33
- }, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
34
- name: {
35
- type: StringConstructor;
36
- required: true;
37
- };
11
+ activeTabId: unknown;
12
+ id: string;
13
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
38
14
  title: {
39
15
  type: StringConstructor;
40
16
  required: true;
@@ -43,17 +19,7 @@ declare const _default: import("vue").DefineComponent<{
43
19
  type: BooleanConstructor;
44
20
  default: boolean;
45
21
  };
46
- testId: {
47
- type: StringConstructor;
48
- default: string;
49
- };
50
- tabs: {
51
- type: PropType<AdlTabApi>;
52
- default: any;
53
- };
54
22
  }>>, {
55
23
  disabled: boolean;
56
- testId: string;
57
- tabs: AdlTabApi;
58
24
  }>;
59
25
  export default _default;
@@ -1,3 +1,2 @@
1
- export { default as AdlTab } from './components/tab.vue';
2
- export { default as AdlTabs } from './tabs.vue';
3
- export * from './tabs.types';
1
+ export { default as BentoTab } from './components/tab.vue';
2
+ export { default as BentoTabs } from './tabs.vue';
@@ -1 +1,2 @@
1
- export declare const TABS_INJECTION_KEY: unique symbol;
1
+ export declare const TABS_REGISTER_TAB_INJECTION_KEY: unique symbol;
2
+ export declare const TABS_ACTIVE_TAB_ID_KEY: unique symbol;
@@ -1,9 +1,4 @@
1
- export declare enum AdlTabsHandleState {
2
- ACTIVE = "active",
3
- DISABLED = "disabled"
4
- }
5
- export interface AdlTabApi {
6
- getActiveTab: () => string;
7
- setActiveTab: (name: string) => void;
8
- getTabsId: () => string;
9
- }
1
+ export type RegisterBentoTab = (props: {
2
+ disabled: boolean;
3
+ title: string;
4
+ }) => string;
@@ -0,0 +1,3 @@
1
+ import { BentoTab } from './components/tab.types';
2
+ export declare const getPreviousTabIndex: (activeTabIndex: number, tabsValue: BentoTab[]) => any;
3
+ export declare const getNextTabIndex: (activeTabIndex: number, tabsValue: BentoTab[]) => any;
@@ -1,17 +1,14 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- initialTab: {
3
- type: StringConstructor;
4
- required: true;
5
- };
6
- }, {}, {
7
- activeTab: string;
8
- tabsId: string;
9
- }, {
10
- activeTabContentName(): string;
11
- }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
12
- initialTab: {
13
- type: StringConstructor;
14
- required: true;
15
- };
16
- }>>, {}>;
1
+ import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
2
+ declare const _default: import("vue").DefineComponent<{}, {
3
+ BentoTypographyElement: typeof BentoTypographyElement;
4
+ BentoTypographyVariant: typeof BentoTypographyVariant;
5
+ tabs: import("vue").Ref<{
6
+ disabled: boolean;
7
+ id: string;
8
+ title: string;
9
+ }[]>;
10
+ tablist: any;
11
+ activeTabId: import("vue").Ref<string>;
12
+ onKeydownTabsNavigation: (e: KeyboardEvent) => void;
13
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
17
14
  export default _default;
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
17
17
  BentoTypographyVariant: typeof BentoTypographyVariant;
18
18
  dismissButtonClicked: () => void;
19
19
  hasSlot: (name: string) => boolean;
20
+ onActionClicked: () => void;
20
21
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("click" | "dismiss")[], string, Readonly<import("vue").ExtractPropTypes<{
21
22
  text: {
22
23
  type: StringConstructor;
@@ -1,2 +1,2 @@
1
1
  export { default as BentoToast } from './toast.vue';
2
- export { useBentoToastController } from '@/utils/ts/toastController';
2
+ export { useBentoToastController } from '../../utils/ts/toastController';
@@ -40,6 +40,7 @@ import {
40
40
  BentoRadioGroup,
41
41
  BentoSearchBar,
42
42
  BentoStatus,
43
+ BentoTabs,
43
44
  BentoTag,
44
45
  BentoToast,
45
46
  BentoToggle,
@@ -89,6 +90,7 @@ declare module 'vue' {
89
90
  BentoRadioGroup: typeof BentoRadioGroup;
90
91
  BentoSearchBar: typeof BentoSearchBar;
91
92
  BentoStatus: typeof BentoStatus;
93
+ BentoTabs: typeof BentoTabs;
92
94
  BentoTag: typeof BentoTag;
93
95
  BentoToast: typeof BentoToast;
94
96
  BentoToggle: typeof BentoToggle;
@@ -21,6 +21,7 @@ export * from './components/popover';
21
21
  export * from './components/radio-group';
22
22
  export * from './components/search-bar';
23
23
  export * from './components/status';
24
+ export * from './components/tabs';
24
25
  export * from './components/tag';
25
26
  export * from './components/toast';
26
27
  export * from './components/toggle';