@adyen/bento-vue2 0.2.0 → 0.4.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 (90) hide show
  1. package/dist/@types/components/alert/alert.vue.d.ts +1 -1
  2. package/dist/@types/components/button/button.vue.d.ts +4 -1
  3. package/dist/@types/components/button/components/button-actions/button-actions.types.d.ts +1 -1
  4. package/dist/@types/components/card/card.vue.d.ts +20 -1
  5. package/dist/@types/components/country/composables/useCountryCapital/useCountryCapital.d.ts +1 -1
  6. package/dist/@types/components/country/composables/useCountryName/useCountryName.d.ts +1 -1
  7. package/dist/@types/components/country/composables/useCountryPhoneCode/useCountryPhoneCode.d.ts +1 -1
  8. package/dist/@types/components/country/country.vue.d.ts +1 -1
  9. package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +3 -3
  10. package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -1
  11. package/dist/@types/components/data-grid/composables/useConfigSettings.d.ts +4 -4
  12. package/dist/@types/components/data-grid/data-grid.types.d.ts +16 -1
  13. package/dist/@types/components/data-grid/data-grid.vue.d.ts +18 -7
  14. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +5 -1
  15. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +15 -5
  16. package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +14 -5
  17. package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +9 -0
  18. package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types.d.ts +1 -1
  19. package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +14 -5
  20. package/dist/@types/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.d.ts +2 -2
  21. package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +2 -2
  22. package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +15 -6
  23. package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +13 -4
  24. package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +2 -2
  25. package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +13 -4
  26. package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +6 -0
  27. package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +123 -0
  28. package/dist/@types/components/dropdown/dropdown.vue.d.ts +14 -4
  29. package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +33 -7
  30. package/dist/@types/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +43 -0
  31. package/dist/@types/components/filter-bar/components/boolean-filter/index.d.ts +1 -0
  32. package/dist/@types/components/filter-bar/components/input-filter/index.d.ts +1 -0
  33. package/dist/@types/components/filter-bar/components/range-filter/range-filter.vue.d.ts +42 -0
  34. package/dist/@types/components/filter-bar/components/select-filter/index.d.ts +1 -0
  35. package/dist/@types/components/filter-bar/components/{listbox-filter/listbox-filter.vue.d.ts → select-filter/select-filter.vue.d.ts} +9 -7
  36. package/dist/@types/components/filter-bar/components/select-filter/variants/select-avatar-filter/index.d.ts +1 -0
  37. package/dist/@types/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +44 -0
  38. package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/index.d.ts +1 -0
  39. package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +52 -0
  40. package/dist/@types/components/filter-bar/components/select-filter/variants/select-currency-filter/index.d.ts +1 -0
  41. package/dist/@types/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +44 -0
  42. package/dist/@types/components/filter-bar/components/select-filter/variants/select-payment-method-filter/index.d.ts +1 -0
  43. package/dist/@types/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +44 -0
  44. package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/index.d.ts +1 -0
  45. package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +55 -0
  46. package/dist/@types/components/filter-bar/filter-bar.types.d.ts +38 -8
  47. package/dist/@types/components/input-field/input-field.types.d.ts +2 -1
  48. package/dist/@types/components/input-field/input-field.vue.d.ts +1 -0
  49. package/dist/@types/components/internal/index.d.ts +1 -0
  50. package/dist/@types/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options.vue.d.ts +37 -0
  51. package/dist/@types/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +13 -1
  52. package/dist/@types/components/internal/listbox/components/listbox-option-tag/index.d.ts +1 -0
  53. 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} +4 -2
  54. package/dist/@types/components/internal/listbox/index.d.ts +1 -1
  55. package/dist/@types/components/internal/listbox/listbox.vue.d.ts +12 -0
  56. package/dist/@types/components/payment-method/payment-method.vue.d.ts +1 -1
  57. package/dist/@types/components/popper-container/popper-container.utils.d.ts +1 -1
  58. package/dist/@types/components/radio-group/radio-group.vue.d.ts +9 -0
  59. package/dist/@types/components/search-bar/search-bar.vue.d.ts +1 -0
  60. package/dist/@types/components/tabs/components/tab.types.d.ts +5 -0
  61. package/dist/@types/components/tabs/components/tab.vue.d.ts +3 -37
  62. package/dist/@types/components/tabs/index.d.ts +2 -3
  63. package/dist/@types/components/tabs/tabs.keys.d.ts +2 -1
  64. package/dist/@types/components/tabs/tabs.types.d.ts +4 -9
  65. package/dist/@types/components/tabs/tabs.utils.d.ts +3 -0
  66. package/dist/@types/components/tabs/tabs.vue.d.ts +13 -16
  67. package/dist/@types/components/toast/components/toast-item/toast-item.vue.d.ts +1 -0
  68. package/dist/@types/components/toast/index.d.ts +1 -1
  69. package/dist/@types/components.d.ts +2 -2
  70. package/dist/@types/composables/initials.d.ts +1 -1
  71. package/dist/@types/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +2 -2
  72. package/dist/@types/composables/useDynamicImport.d.ts +1 -1
  73. package/dist/@types/directives/click-outside/on-click-outside.d.ts +1 -1
  74. package/dist/@types/directives/click-outside/useEventListener/index.d.ts +1 -1
  75. package/dist/@types/directives/click-outside/utils.d.ts +1 -1
  76. package/dist/@types/directives/tooltip/tooltip.types.d.ts +1 -1
  77. package/dist/@types/index.d.ts +1 -1
  78. package/dist/@types/plugins/toastController.d.ts +1 -1
  79. package/dist/@types/types/listbox.d.ts +1 -1
  80. package/dist/@types/utils/ts/aria-label.d.ts +1 -1
  81. package/dist/@types/utils/ts/events.d.ts +1 -1
  82. package/dist/index.js +4302 -3581
  83. package/dist/index.js.map +1 -1
  84. package/package.json +5 -5
  85. package/dist/@types/components/filter-bar/components/listbox-filter/index.d.ts +0 -1
  86. package/dist/@types/components/filter-bar/components/text-filter/index.d.ts +0 -1
  87. package/dist/@types/components/internal/listbox/components/listbox-option-currency/index.d.ts +0 -1
  88. /package/dist/@types/components/filter-bar/components/{text-filter/text-filter.vue.d.ts → input-filter/input-filter.vue.d.ts} +0 -0
  89. /package/dist/@types/components/{avatar → internal/avatar}/avatar.vue.d.ts +0 -0
  90. /package/dist/@types/components/{avatar → internal/avatar}/index.d.ts +0 -0
@@ -0,0 +1,55 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoCountryVariant } from '@/components/country';
3
+ import { BentoListboxSelectedValue } from '@/types';
4
+ import { BentoSelectTagFilterOptions } from '@/components/filter-bar';
5
+ declare const _default: import("vue").DefineComponent<{
6
+ options: {
7
+ type: PropType<BentoSelectTagFilterOptions>;
8
+ default: any;
9
+ };
10
+ field: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ label: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ value: {
19
+ type: PropType<BentoListboxSelectedValue>;
20
+ default: any;
21
+ };
22
+ }, {
23
+ countryOptions: import("vue").ComputedRef<{
24
+ listboxItems: {
25
+ label: string;
26
+ value: import("@/types").BentoListboxValue;
27
+ data: import("../../../../../tag").BentoTagVariant;
28
+ }[];
29
+ multiple?: boolean;
30
+ isOptionDisabled?: import("@/types").BentoListboxIsOptionDisabled;
31
+ }>;
32
+ onUpdate: (selectedValue: BentoListboxSelectedValue) => void;
33
+ BentoCountryVariant: typeof BentoCountryVariant;
34
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
35
+ options: {
36
+ type: PropType<BentoSelectTagFilterOptions>;
37
+ default: any;
38
+ };
39
+ field: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ label: {
44
+ type: StringConstructor;
45
+ required: true;
46
+ };
47
+ value: {
48
+ type: PropType<BentoListboxSelectedValue>;
49
+ default: any;
50
+ };
51
+ }>>, {
52
+ value: BentoListboxSelectedValue;
53
+ options: BentoSelectTagFilterOptions;
54
+ }>;
55
+ export default _default;
@@ -1,16 +1,46 @@
1
- import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '../../types';
2
- export interface BentoListboxFilterOptions {
1
+ import { BentoAvatarListboxOptions } from '@/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types';
2
+ import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue, OmitStrict } from '@/types';
3
+ import { BentoCountryListboxOptions } from '@/components/dropdown/components/variants/dropdown-country/dropdown-country.types';
4
+ import { BentoTagListboxOptions } from '@/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types';
5
+ import { BentoCountryVariant } from '@/components/country';
6
+ import { BentoCurrencyListboxOptions } from '@/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types';
7
+ import { BentoPaymentMethodListboxOptions } from '@/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types';
8
+ export interface BentoSelectFilterOptions {
3
9
  listboxItems: BentoListboxOptions;
4
10
  multiple?: boolean;
5
11
  isOptionDisabled?: BentoListboxIsOptionDisabled;
6
12
  }
7
- export type BentoTextFilterValue = string | null;
8
- export type BentoListboxFilterValue = BentoListboxSelectedValue;
9
- export type BentoFilterBarValue = BentoTextFilterValue | BentoListboxFilterValue;
10
- export type BentoFilterOptions = BentoListboxFilterOptions | undefined;
13
+ export type BentoSelectAvatarFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
14
+ listboxItems: BentoAvatarListboxOptions;
15
+ };
16
+ export type BentoSelectCountryFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
17
+ listboxItems: BentoCountryListboxOptions;
18
+ variant: BentoCountryVariant;
19
+ };
20
+ export type BentoSelectCurrencyFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
21
+ listboxItems: BentoCurrencyListboxOptions;
22
+ };
23
+ export type BentoSelectTagFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
24
+ listboxItems: BentoTagListboxOptions;
25
+ };
26
+ export type BentoSelectPaymentMethodFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
27
+ listboxItems: BentoPaymentMethodListboxOptions;
28
+ };
29
+ export type BentoInputFilterValue = string | null;
30
+ export type BentoSelectFilterValue = BentoListboxSelectedValue;
31
+ export type BentoBooleanFilterValue = string | null;
32
+ export type BentoFilterBarValue = BentoInputFilterValue | BentoSelectFilterValue | BentoBooleanFilterValue;
33
+ export type BentoFilterOptions = BentoSelectFilterOptions | BentoSelectAvatarFilterOptions | BentoSelectCountryFilterOptions | BentoSelectCurrencyFilterOptions | BentoSelectPaymentMethodFilterOptions | BentoSelectTagFilterOptions | undefined;
11
34
  export declare enum BentoFilterItemType {
12
- TEXT = "BentoTextFilter",
13
- LISTBOX = "BentoListboxFilter"
35
+ INPUT = "BentoInputFilter",
36
+ BOOLEAN = "BentoBooleanFilter",
37
+ RANGE = "BentoRangeFilter",
38
+ SELECT = "BentoSelectFilter",
39
+ SELECT_AVATAR = "BentoSelectAvatarFilter",
40
+ SELECT_COUNTRY = "BentoSelectCountryFilter",
41
+ SELECT_CURRENCY = "BentoSelectCurrencyFilter",
42
+ SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter",
43
+ SELECT_TAG = "BentoSelectTagFilter"
14
44
  }
15
45
  export interface BentoFilterModel {
16
46
  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<{
@@ -1 +1,2 @@
1
+ export * from './avatar';
1
2
  export * from './listbox';
@@ -0,0 +1,37 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoTypographyElement } from '@/components/typography';
3
+ import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxValue } from '@/types';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ isOptionDisabled: {
6
+ type: PropType<BentoListboxIsOptionDisabled>;
7
+ default: () => false;
8
+ };
9
+ items: {
10
+ type: PropType<BentoListboxOptions>;
11
+ required: true;
12
+ };
13
+ selectedItemsList: {
14
+ type: PropType<BentoListboxValue[]>;
15
+ default: () => any[];
16
+ };
17
+ }, {
18
+ toggleCheckboxSelection: (value: BentoListboxValue) => void;
19
+ BentoTypographyElement: typeof BentoTypographyElement;
20
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("select" | "toggle-checkbox-selection")[], string, Readonly<import("vue").ExtractPropTypes<{
21
+ isOptionDisabled: {
22
+ type: PropType<BentoListboxIsOptionDisabled>;
23
+ default: () => false;
24
+ };
25
+ items: {
26
+ type: PropType<BentoListboxOptions>;
27
+ required: true;
28
+ };
29
+ selectedItemsList: {
30
+ type: PropType<BentoListboxValue[]>;
31
+ default: () => any[];
32
+ };
33
+ }>>, {
34
+ isOptionDisabled: BentoListboxIsOptionDisabled;
35
+ selectedItemsList: BentoListboxValue[];
36
+ }>;
37
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { BentoTypographyElement } from '@/components/typography';
3
- import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue, BentoListboxValue } from '@/types';
3
+ import { BentoListboxIsOptionDisabled, BentoListboxOptionItem, BentoListboxOptions, BentoListboxSelectedValue, BentoListboxValue } from '@/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  isOptionDisabled: {
6
6
  type: PropType<BentoListboxIsOptionDisabled>;
@@ -10,15 +10,22 @@ 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;
16
20
  };
17
21
  }, {
18
22
  isAllSelected: import("vue").ComputedRef<boolean>;
23
+ isAllItemsIncludingDisabled: import("vue").ComputedRef<boolean>;
24
+ isAnOptionSelected: import("vue").ComputedRef<boolean>;
19
25
  isIndeterminate: import("vue").ComputedRef<boolean>;
20
26
  selectedItemsList: import("vue").Ref<BentoListboxValue[]>;
21
27
  selectAllCheckboxText: import("vue").ComputedRef<import("vue-i18n").default.TranslateResult>;
28
+ selectedOptions: import("vue").ComputedRef<BentoListboxOptionItem[]>;
22
29
  BentoTypographyElement: typeof BentoTypographyElement;
23
30
  toggleCheckboxSelection: (value: BentoListboxValue) => void;
24
31
  toggleSelectAll: (selectedValue: boolean) => void;
@@ -31,12 +38,17 @@ declare const _default: import("vue").DefineComponent<{
31
38
  type: PropType<BentoListboxOptions>;
32
39
  required: true;
33
40
  };
41
+ searching: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
34
45
  selectedValues: {
35
46
  type: PropType<BentoListboxSelectedValue>;
36
47
  default: () => BentoListboxSelectedValue;
37
48
  };
38
49
  }>>, {
39
50
  isOptionDisabled: BentoListboxIsOptionDisabled;
51
+ searching: boolean;
40
52
  selectedValues: BentoListboxSelectedValue;
41
53
  }>;
42
54
  export default _default;
@@ -0,0 +1 @@
1
+ export { default as ListboxOptionTag } from './listbox-option-tag.vue';
@@ -1,14 +1,16 @@
1
1
  import { PropType } from 'vue';
2
2
  import type { BentoListboxOptionItem } from '@/types';
3
- import { BentoTypographyElement } from '../../../../typography';
3
+ import { BentoTagVariant } from '@/components/tag';
4
+ import { BentoTypographyElement } from '@/components/typography';
4
5
  declare const _default: import("vue").DefineComponent<{
5
6
  option: {
6
7
  type: PropType<BentoListboxOptionItem>;
7
8
  required: true;
8
9
  };
9
10
  }, {
11
+ variant: import("vue").ComputedRef<BentoTagVariant>;
10
12
  BentoTypographyElement: typeof BentoTypographyElement;
11
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
13
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
12
14
  option: {
13
15
  type: PropType<BentoListboxOptionItem>;
14
16
  required: true;
@@ -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';
@@ -1,5 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '@/types';
3
+ import { BentoTypographyElement } from '@/components/typography';
3
4
  declare const _default: import("vue").DefineComponent<{
4
5
  ariaLabel: {
5
6
  type: StringConstructor;
@@ -21,12 +22,18 @@ declare const _default: import("vue").DefineComponent<{
21
22
  type: BooleanConstructor;
22
23
  default: boolean;
23
24
  };
25
+ searching: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
24
29
  selectedValue: {
25
30
  type: PropType<BentoListboxSelectedValue>;
26
31
  default: any;
27
32
  };
28
33
  }, {
34
+ isSearchResultEmpty: import("vue").ComputedRef<boolean>;
29
35
  onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
36
+ BentoTypographyElement: typeof BentoTypographyElement;
30
37
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
31
38
  ariaLabel: {
32
39
  type: StringConstructor;
@@ -48,6 +55,10 @@ declare const _default: import("vue").DefineComponent<{
48
55
  type: BooleanConstructor;
49
56
  default: boolean;
50
57
  };
58
+ searching: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
51
62
  selectedValue: {
52
63
  type: PropType<BentoListboxSelectedValue>;
53
64
  default: any;
@@ -56,6 +67,7 @@ declare const _default: import("vue").DefineComponent<{
56
67
  ariaLabel: string;
57
68
  multiple: boolean;
58
69
  isOptionDisabled: BentoListboxIsOptionDisabled;
70
+ searching: boolean;
59
71
  selectedValue: BentoListboxSelectedValue;
60
72
  }>;
61
73
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { BentoTypographyElement } from '../typography';
2
+ import { BentoTypographyElement } from '@/components/typography';
3
3
  import { BentoPaymentMethodType } from './payment-method.types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  type: {
@@ -1,4 +1,4 @@
1
- import type { VueNodeElement } from '../../types';
1
+ import type { VueNodeElement } from '@/types';
2
2
  import { ExtendedModifiers, FallbackPositionProp, PopperContainerArrowProp } from './popper-container.types';
3
3
  export declare const getArrowModifier: (arrow: VueNodeElement, arrowProps: PopperContainerArrowProp) => {
4
4
  name: string;
@@ -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';
@@ -12,7 +12,6 @@ import {
12
12
 
13
13
  // Bento
14
14
  BentoAlert,
15
- BentoAvatar,
16
15
  BentoButton,
17
16
  BentoButtonActions,
18
17
  BentoButtonGroup,
@@ -40,6 +39,7 @@ import {
40
39
  BentoRadioGroup,
41
40
  BentoSearchBar,
42
41
  BentoStatus,
42
+ BentoTabs,
43
43
  BentoTag,
44
44
  BentoToast,
45
45
  BentoToggle,
@@ -61,7 +61,6 @@ declare module 'vue' {
61
61
 
62
62
  // Bento
63
63
  BentoAlert: typeof BentoAlert;
64
- BentoAvatar: typeof BentoAvatar;
65
64
  BentoButton: typeof BentoButton;
66
65
  BentoButtonGroup: typeof BentoButtonGroup;
67
66
  BentoButtonActions: typeof BentoButtonActions;
@@ -89,6 +88,7 @@ declare module 'vue' {
89
88
  BentoRadioGroup: typeof BentoRadioGroup;
90
89
  BentoSearchBar: typeof BentoSearchBar;
91
90
  BentoStatus: typeof BentoStatus;
91
+ BentoTabs: typeof BentoTabs;
92
92
  BentoTag: typeof BentoTag;
93
93
  BentoToast: typeof BentoToast;
94
94
  BentoToggle: typeof BentoToggle;
@@ -1,3 +1,3 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { MaybeRef } from '../types';
2
+ import { MaybeRef } from '@/types';
3
3
  export declare const useInitials: (username: MaybeRef<string | null>) => ComputedRef<string | null>;
@@ -1,6 +1,6 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
- import type { Fn } from '../../types';
3
- import { BentoListboxMultiSelectValue, BentoListboxOptions } from '../../types';
2
+ import type { Fn } from '@/types';
3
+ import { BentoListboxMultiSelectValue, BentoListboxOptions } from '@/types';
4
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>;
@@ -1,2 +1,2 @@
1
- import { MaybeRef } from '../types';
1
+ import { MaybeRef } from '@/types';
2
2
  export declare const useDynamicIconImport: (packageName: string, suffixSvgSrc: MaybeRef<string>, fallBackSrc: string) => import("vue").Ref<string>;
@@ -1,3 +1,3 @@
1
- import type { MaybeElementRef } from '../../types';
1
+ import type { MaybeElementRef } from '@/types';
2
2
  import type { OnClickOutsideHandler, OnClickOutsideOptions } from './types';
3
3
  export declare function onClickOutside<T extends OnClickOutsideOptions>(target: MaybeElementRef, handler: OnClickOutsideHandler, options?: T): () => void;
@@ -1,4 +1,4 @@
1
- import type { Fn, MaybeComputedRef } from '../../../types';
1
+ import type { Fn, MaybeComputedRef } from '@/types';
2
2
  import type { Arrayable, GeneralEventListener } from './types';
3
3
  export declare function useEventListener<E extends keyof WindowEventMap>(event: Arrayable<E>, listener: Arrayable<(this: Window, ev: WindowEventMap[E]) => unknown>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
4
4
  export declare function useEventListener<E extends keyof WindowEventMap>(target: Window, event: Arrayable<E>, listener: Arrayable<(this: Window, ev: WindowEventMap[E]) => unknown>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
@@ -1,4 +1,4 @@
1
- import type { MaybeComputedElementRef, MaybeElement } from '../../types';
1
+ import type { MaybeComputedElementRef, MaybeElement } from '@/types';
2
2
  export declare const defaultWindow: Window & typeof globalThis;
3
3
  export declare const isIOS: boolean;
4
4
  export declare function resolveUnref<T>(r: any): T;
@@ -1,4 +1,4 @@
1
- import { PopperContainerPositionBasic } from '../../components/popper-container';
1
+ import { PopperContainerPositionBasic } from '@/components/popper-container';
2
2
  export declare const BentoTooltipPosition: {
3
3
  TOP: PopperContainerPositionBasic.TOP;
4
4
  RIGHT: PopperContainerPositionBasic.RIGHT;
@@ -1,6 +1,5 @@
1
1
  import BentoVue from './install';
2
2
  export * from './components/alert';
3
- export * from './components/avatar';
4
3
  export * from './components/button';
5
4
  export * from './components/data-grid';
6
5
  export * from './components/card';
@@ -21,6 +20,7 @@ export * from './components/popover';
21
20
  export * from './components/radio-group';
22
21
  export * from './components/search-bar';
23
22
  export * from './components/status';
23
+ export * from './components/tabs';
24
24
  export * from './components/tag';
25
25
  export * from './components/toast';
26
26
  export * from './components/toggle';
@@ -1,4 +1,4 @@
1
- import { BentoToastItem } from '../components/toast/components/toast-item';
1
+ import { BentoToastItem } from '@/components/toast/components/toast-item';
2
2
  export default class ToastController {
3
3
  get state(): {
4
4
  queue: Array<BentoToastItem>;
@@ -1,4 +1,4 @@
1
- import { BentoSearchBarItem } from '../components/search-bar';
1
+ import { BentoSearchBarItem } from '@/components/search-bar';
2
2
  export type BentoListboxValue = string | number;
3
3
  export type BentoListboxMultiSelectValue = BentoListboxValue[];
4
4
  export interface BentoListboxOptionItem extends BentoSearchBarItem {
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { MaybeRef } from '../../types/maybe-ref';
2
+ import { MaybeRef } from '@/types/maybe-ref';
3
3
  interface ariaLabelOptions {
4
4
  ariaLabel?: MaybeRef<string | null>;
5
5
  label?: MaybeRef<string | null>;
@@ -1,2 +1,2 @@
1
- import { ListenOptions } from '../../types/utils-events';
1
+ import { ListenOptions } from '@/types/utils-events';
2
2
  export declare function listen(target: EventTarget, type: string, listener: EventListener, options?: ListenOptions): any;