@adyen/bento-vue2 0.0.9 → 0.1.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 (53) hide show
  1. package/dist/@types/components/accordion/accordion.vue.d.ts +1 -1
  2. package/dist/@types/components/avatar/avatar.types.d.ts +10 -0
  3. package/dist/@types/components/avatar/avatar.vue.d.ts +55 -0
  4. package/dist/@types/components/avatar/index.d.ts +2 -0
  5. package/dist/@types/components/button/button.vue.d.ts +2 -2
  6. package/dist/@types/components/country/composables/index.d.ts +4 -0
  7. package/dist/@types/components/country/composables/useCountryCapital/useCountryCapital.d.ts +4 -0
  8. package/dist/@types/components/country/composables/useCountryFlag.d.ts +2 -0
  9. package/dist/@types/components/country/composables/useCountryName/useCountryName.d.ts +2 -0
  10. package/dist/@types/components/country/composables/useCountryPhoneCode/useCountryPhoneCode.d.ts +3 -0
  11. package/dist/@types/components/country/country.types.d.ts +259 -0
  12. package/dist/@types/components/country/country.vue.d.ts +33 -0
  13. package/dist/@types/components/country/index.d.ts +2 -0
  14. package/dist/@types/components/currency/currency.types.d.ts +170 -0
  15. package/dist/@types/components/currency/currency.vue.d.ts +32 -0
  16. package/dist/@types/components/currency/index.d.ts +2 -0
  17. package/dist/@types/components/data-grid/components/{data-grid-columns.vue.d.ts → data-grid-columns/data-grid-columns.vue.d.ts} +1 -1
  18. package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +43 -0
  19. package/dist/@types/components/data-grid/components/index.d.ts +2 -1
  20. package/dist/@types/components/data-grid/composables/index.d.ts +1 -0
  21. package/dist/@types/components/data-grid/composables/useConfigSettings.d.ts +5 -0
  22. package/dist/@types/components/data-grid/data-grid.vue.d.ts +2 -0
  23. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +100 -0
  24. package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +91 -0
  25. package/dist/@types/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +81 -0
  26. package/dist/@types/components/dropdown/dropdown.types.d.ts +2 -2
  27. package/dist/@types/components/filter-bar/components/base-filter/components/filter-button/filter-button.vue.d.ts +32 -0
  28. package/dist/@types/components/input-field/index.d.ts +1 -0
  29. package/dist/@types/components/input-field/input-field.types.d.ts +4 -0
  30. package/dist/@types/components/input-field/input-field.vue.d.ts +28 -1
  31. package/dist/@types/components/search-bar/index.d.ts +3 -0
  32. package/dist/@types/components/search-bar/search-bar.types.d.ts +4 -0
  33. package/dist/@types/components/search-bar/search-bar.vue.d.ts +37 -0
  34. package/dist/@types/components/search-bar/useSearchBarDataFilter.d.ts +3 -0
  35. package/dist/@types/components/typography/typography.vue.d.ts +1 -1
  36. package/dist/@types/components/user-profile/index.d.ts +1 -0
  37. package/dist/@types/components/user-profile/user-profile.vue.d.ts +40 -0
  38. package/dist/@types/components.d.ts +8 -2
  39. package/dist/@types/composables/index.d.ts +1 -0
  40. package/dist/@types/composables/initials.d.ts +3 -0
  41. package/dist/@types/index.d.ts +4 -0
  42. package/dist/@types/utils/ts/currency/countries-list.d.ts +4 -0
  43. package/dist/@types/utils/ts/currency/currency.d.ts +6 -0
  44. package/dist/@types/utils/ts/currency/currency.types.d.ts +24 -0
  45. package/dist/@types/utils/ts/deep-merge/deep-merge.d.ts +1 -0
  46. package/dist/@types/utils/ts/deep-merge/index.d.ts +1 -0
  47. package/dist/@types/utils/ts/i18n.d.ts +5 -1
  48. package/dist/index.js +8285 -1862
  49. package/dist/index.js.map +1 -1
  50. package/package.json +5 -4
  51. package/dist/@types/components/profile-picture/index.d.ts +0 -2
  52. package/dist/@types/components/profile-picture/profile-picture.types.d.ts +0 -4
  53. package/dist/@types/components/profile-picture/profile-picture.vue.d.ts +0 -42
@@ -2,3 +2,4 @@ export { default as useResizer } from './useResizer';
2
2
  export { default as useCalculateColumnWidth, DATAGRID_SELECT_FIELD_NAME, } from './useCalculateColumnWidth/useCalculateColumnWidth';
3
3
  export { useSorter } from './useSorter';
4
4
  export { useSelector } from './useSelector';
5
+ export { useConfigSettings } from './useConfigSettings';
@@ -0,0 +1,5 @@
1
+ import { MaybeRef } from '../../../types';
2
+ export declare const useConfigSettings: (condensed: MaybeRef<boolean>) => {
3
+ compactView: import("vue").Ref<boolean>;
4
+ onConfigSettingsUpdate: (isCompactView: boolean) => boolean;
5
+ };
@@ -169,6 +169,8 @@ declare const _default: import("vue").DefineComponent<{
169
169
  onAllRowSelect: (allItemsSelected: boolean) => void;
170
170
  onRowSelect: () => void;
171
171
  DATAGRID_SELECT_FIELD_NAME: string;
172
+ compactView: import("vue").Ref<boolean>;
173
+ onConfigSettingsUpdate: (isCompactView: boolean) => boolean;
172
174
  BentoDatagridSortDirection: typeof BentoDatagridSortDirection;
173
175
  BentoTypographyElement: typeof BentoTypographyElement;
174
176
  BentoTypographyVariant: typeof BentoTypographyVariant;
@@ -0,0 +1,100 @@
1
+ import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ autoComplete: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ ariaControls: {
8
+ type: StringConstructor;
9
+ required: true;
10
+ };
11
+ ariaExpanded: {
12
+ type: StringConstructor;
13
+ required: true;
14
+ };
15
+ ariaLabelledby: {
16
+ type: StringConstructor;
17
+ default: any;
18
+ };
19
+ disabled: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ isInvalid: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ displayValue: {
28
+ type: StringConstructor;
29
+ default: any;
30
+ };
31
+ open: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ placeholder: {
36
+ type: StringConstructor;
37
+ default: any;
38
+ };
39
+ }, {
40
+ BentoTypographyElement: typeof BentoTypographyElement;
41
+ BentoTypographyVariant: typeof BentoTypographyVariant;
42
+ conditionalClasses: import("vue").ComputedRef<{
43
+ 'b-dropdown-base-textbox--disabled': boolean;
44
+ }>;
45
+ computedDisplayValue: import("vue").ComputedRef<string>;
46
+ computedDropdownTextbox: import("vue").ComputedRef<"div" | "input">;
47
+ isInputField: import("vue").ComputedRef<boolean>;
48
+ shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
49
+ textboxId: string;
50
+ textbox: any;
51
+ onCloseDropdown: () => void;
52
+ onToggleDropdown: () => void;
53
+ hasSlot: (name: string) => boolean;
54
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("open" | "close")[], string, Readonly<import("vue").ExtractPropTypes<{
55
+ autoComplete: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ ariaControls: {
60
+ type: StringConstructor;
61
+ required: true;
62
+ };
63
+ ariaExpanded: {
64
+ type: StringConstructor;
65
+ required: true;
66
+ };
67
+ ariaLabelledby: {
68
+ type: StringConstructor;
69
+ default: any;
70
+ };
71
+ disabled: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ isInvalid: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ displayValue: {
80
+ type: StringConstructor;
81
+ default: any;
82
+ };
83
+ open: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ placeholder: {
88
+ type: StringConstructor;
89
+ default: any;
90
+ };
91
+ }>>, {
92
+ open: boolean;
93
+ disabled: boolean;
94
+ placeholder: string;
95
+ displayValue: string;
96
+ autoComplete: boolean;
97
+ ariaLabelledby: string;
98
+ isInvalid: boolean;
99
+ }>;
100
+ export default _default;
@@ -0,0 +1,91 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ autoComplete: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ ariaControls: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ ariaExpanded: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ ariaLabelledby: {
15
+ type: StringConstructor;
16
+ default: any;
17
+ };
18
+ disabled: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ isInvalid: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ displayValue: {
27
+ type: StringConstructor;
28
+ default: any;
29
+ };
30
+ open: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ placeholder: {
35
+ type: StringConstructor;
36
+ default: any;
37
+ };
38
+ }, {
39
+ conditionalClasses: import("vue").ComputedRef<{
40
+ 'b-dropdown-default-textbox--error': boolean;
41
+ 'b-dropdown-default-textbox--disabled': boolean;
42
+ 'b-dropdown-default-textbox--opened': boolean;
43
+ }>;
44
+ isDropdownOpen: import("vue").ComputedRef<boolean>;
45
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
46
+ autoComplete: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ ariaControls: {
51
+ type: StringConstructor;
52
+ required: true;
53
+ };
54
+ ariaExpanded: {
55
+ type: StringConstructor;
56
+ required: true;
57
+ };
58
+ ariaLabelledby: {
59
+ type: StringConstructor;
60
+ default: any;
61
+ };
62
+ disabled: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ isInvalid: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ displayValue: {
71
+ type: StringConstructor;
72
+ default: any;
73
+ };
74
+ open: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ placeholder: {
79
+ type: StringConstructor;
80
+ default: any;
81
+ };
82
+ }>>, {
83
+ open: boolean;
84
+ disabled: boolean;
85
+ placeholder: string;
86
+ displayValue: string;
87
+ autoComplete: boolean;
88
+ ariaLabelledby: string;
89
+ isInvalid: boolean;
90
+ }>;
91
+ export default _default;
@@ -0,0 +1,81 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ autoComplete: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ ariaControls: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ ariaExpanded: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ ariaLabelledby: {
15
+ type: StringConstructor;
16
+ default: any;
17
+ };
18
+ disabled: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ displayValue: {
23
+ type: StringConstructor;
24
+ default: any;
25
+ };
26
+ open: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ placeholder: {
31
+ type: StringConstructor;
32
+ default: any;
33
+ };
34
+ }, {
35
+ conditionalClasses: import("vue").ComputedRef<{
36
+ 'b-dropdown-small-textbox--disabled': boolean;
37
+ 'b-dropdown-small-textbox--opened': boolean;
38
+ }>;
39
+ isDropdownOpen: import("vue").ComputedRef<boolean>;
40
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
41
+ autoComplete: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ ariaControls: {
46
+ type: StringConstructor;
47
+ required: true;
48
+ };
49
+ ariaExpanded: {
50
+ type: StringConstructor;
51
+ required: true;
52
+ };
53
+ ariaLabelledby: {
54
+ type: StringConstructor;
55
+ default: any;
56
+ };
57
+ disabled: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ displayValue: {
62
+ type: StringConstructor;
63
+ default: any;
64
+ };
65
+ open: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ placeholder: {
70
+ type: StringConstructor;
71
+ default: any;
72
+ };
73
+ }>>, {
74
+ open: boolean;
75
+ disabled: boolean;
76
+ placeholder: string;
77
+ displayValue: string;
78
+ autoComplete: boolean;
79
+ ariaLabelledby: string;
80
+ }>;
81
+ export default _default;
@@ -1,6 +1,6 @@
1
+ import { BentoSearchBarItem } from '../search-bar';
1
2
  export type AdlDropdownValue = string | number;
2
- export interface AdlDropdownOptionItem {
3
- label: string;
3
+ export interface AdlDropdownOptionItem extends BentoSearchBarItem {
4
4
  value: AdlDropdownValue;
5
5
  }
6
6
  export type AdlDropdownSelectedValue = AdlDropdownValue;
@@ -0,0 +1,32 @@
1
+ import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ amountAppliedValues: {
4
+ type: NumberConstructor;
5
+ default: any;
6
+ };
7
+ disabled: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }, {
12
+ BentoTypographyElement: typeof BentoTypographyElement;
13
+ BentoTypographyVariant: typeof BentoTypographyVariant;
14
+ computedAriaLabel: import("vue").ComputedRef<string>;
15
+ conditionalClasses: import("vue").ComputedRef<{
16
+ "b-filter-button--with-counter": number;
17
+ }>;
18
+ onClickButton: () => void;
19
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "click"[], string, Readonly<import("vue").ExtractPropTypes<{
20
+ amountAppliedValues: {
21
+ type: NumberConstructor;
22
+ default: any;
23
+ };
24
+ disabled: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ }>>, {
29
+ disabled: boolean;
30
+ amountAppliedValues: number;
31
+ }>;
32
+ export default _default;
@@ -1 +1,2 @@
1
1
  export { default as BentoInputField } from './input-field.vue';
2
+ export * from './input-field.types';
@@ -11,3 +11,7 @@ export declare enum BentoInputFieldStateClass {
11
11
  DISABLED = "disabled",
12
12
  ERROR = "error"
13
13
  }
14
+ export declare enum BentoInputFieldType {
15
+ SEARCH = "search",
16
+ TEXT = "text"
17
+ }
@@ -1,7 +1,15 @@
1
1
  import { PropType } from 'vue';
2
- import { BentoInputFieldStaticValuePosition, BentoInputFieldVariant } from '@/components/input-field/input-field.types';
2
+ import { BentoInputFieldStaticValuePosition, BentoInputFieldType, BentoInputFieldVariant } from '@/components/input-field/input-field.types';
3
3
  import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
4
4
  declare const _default: import("vue").DefineComponent<{
5
+ ariaHidden: {
6
+ type: BooleanConstructor;
7
+ default: boolean;
8
+ };
9
+ ariaLabel: {
10
+ type: StringConstructor;
11
+ default: any;
12
+ };
5
13
  disabled: {
6
14
  type: BooleanConstructor;
7
15
  default: boolean;
@@ -18,6 +26,10 @@ declare const _default: import("vue").DefineComponent<{
18
26
  type: PropType<BentoInputFieldStaticValuePosition>;
19
27
  default: BentoInputFieldStaticValuePosition;
20
28
  };
29
+ type: {
30
+ type: PropType<BentoInputFieldType>;
31
+ default: BentoInputFieldType;
32
+ };
21
33
  value: {
22
34
  type: StringConstructor;
23
35
  default: string;
@@ -39,6 +51,14 @@ declare const _default: import("vue").DefineComponent<{
39
51
  shouldDisplayStaticValueAtStart: import("vue").ComputedRef<boolean>;
40
52
  shouldDisplayStaticValueAtEnd: import("vue").ComputedRef<boolean>;
41
53
  }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
54
+ ariaHidden: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ ariaLabel: {
59
+ type: StringConstructor;
60
+ default: any;
61
+ };
42
62
  disabled: {
43
63
  type: BooleanConstructor;
44
64
  default: boolean;
@@ -55,6 +75,10 @@ declare const _default: import("vue").DefineComponent<{
55
75
  type: PropType<BentoInputFieldStaticValuePosition>;
56
76
  default: BentoInputFieldStaticValuePosition;
57
77
  };
78
+ type: {
79
+ type: PropType<BentoInputFieldType>;
80
+ default: BentoInputFieldType;
81
+ };
58
82
  value: {
59
83
  type: StringConstructor;
60
84
  default: string;
@@ -64,8 +88,11 @@ declare const _default: import("vue").DefineComponent<{
64
88
  default: BentoInputFieldVariant;
65
89
  };
66
90
  }>>, {
91
+ type: BentoInputFieldType;
67
92
  error: boolean;
68
93
  value: string;
94
+ ariaHidden: boolean;
95
+ ariaLabel: string;
69
96
  disabled: boolean;
70
97
  variant: BentoInputFieldVariant;
71
98
  staticValue: string;
@@ -0,0 +1,3 @@
1
+ export { default as BentoSearchBar } from './search-bar.vue';
2
+ export * from './useSearchBarDataFilter';
3
+ export * from './search-bar.types';
@@ -0,0 +1,4 @@
1
+ export interface BentoSearchBarItem {
2
+ label: string;
3
+ }
4
+ export type BentoSearchBarData = Array<BentoSearchBarItem>;
@@ -0,0 +1,37 @@
1
+ import { BentoInputFieldType } from '@/components/input-field';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ ariaLabel: {
4
+ type: StringConstructor;
5
+ required: true;
6
+ };
7
+ debounceTime: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
11
+ value: {
12
+ type: StringConstructor;
13
+ default: any;
14
+ };
15
+ }, {
16
+ searchTerm: import("vue").Ref<string>;
17
+ onClearSearch: () => void;
18
+ onInputEvent: (...args: void[]) => void;
19
+ BentoInputFieldType: typeof BentoInputFieldType;
20
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("input" | "clear")[], string, Readonly<import("vue").ExtractPropTypes<{
21
+ ariaLabel: {
22
+ type: StringConstructor;
23
+ required: true;
24
+ };
25
+ debounceTime: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ value: {
30
+ type: StringConstructor;
31
+ default: any;
32
+ };
33
+ }>>, {
34
+ value: string;
35
+ debounceTime: number;
36
+ }>;
37
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Ref } from 'vue';
2
+ import { BentoSearchBarData } from './search-bar.types';
3
+ export declare const useSearchBarFilter: (searchTerm: Ref<string>, data: Ref<BentoSearchBarData>) => import("vue").ComputedRef<import("./search-bar.types").BentoSearchBarItem[]>;
@@ -70,9 +70,9 @@ declare const _default: import("vue").DefineComponent<{
70
70
  medium: boolean;
71
71
  el: BentoTypographyElement;
72
72
  large: boolean;
73
+ wide: boolean;
73
74
  stronger: boolean;
74
75
  strongest: boolean;
75
76
  variant: BentoTypographyVariant;
76
- wide: boolean;
77
77
  }>;
78
78
  export default _default;
@@ -0,0 +1 @@
1
+ export { default as BentoUserProfile } from './user-profile.vue';
@@ -0,0 +1,40 @@
1
+ import { BentoAvatarColor, BentoAvatarVariant } from '@/components/avatar';
2
+ import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ iconOnly: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ username: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ src: {
13
+ type: StringConstructor;
14
+ default: any;
15
+ };
16
+ }, {
17
+ BentoAvatarVariant: typeof BentoAvatarVariant;
18
+ BentoTypographyElement: typeof BentoTypographyElement;
19
+ BentoTypographyVariant: typeof BentoTypographyVariant;
20
+ computedAriaLabel: import("vue").ComputedRef<string>;
21
+ computedUsername: import("vue").ComputedRef<string>;
22
+ avatarColor: import("vue").ComputedRef<BentoAvatarColor>;
23
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
24
+ iconOnly: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ username: {
29
+ type: StringConstructor;
30
+ required: true;
31
+ };
32
+ src: {
33
+ type: StringConstructor;
34
+ default: any;
35
+ };
36
+ }>>, {
37
+ src: string;
38
+ iconOnly: boolean;
39
+ }>;
40
+ export default _default;
@@ -7,7 +7,6 @@ import {
7
7
  // AdlCardImage,
8
8
  // AdlDropdown,
9
9
  // AdlPageHeader,
10
- // AdlProfilePicture,
11
10
  // AdlSegmentedControl,
12
11
  // AdlSegmentedOption,
13
12
  // AdlTab,
@@ -22,6 +21,8 @@ import {
22
21
  BentoCheckbox,
23
22
  BentoCheckboxGroup,
24
23
  BentoClickOutside,
24
+ BentoCountry,
25
+ BentoCurrency,
25
26
  BentoDataGrid,
26
27
  BentoInputField,
27
28
  BentoLink,
@@ -30,10 +31,12 @@ import {
30
31
  BentoPagination,
31
32
  BentoPopover,
32
33
  BentoRadioGroup,
34
+ BentoSearchBar,
33
35
  BentoStatus,
34
36
  BentoTag,
35
37
  BentoToggle,
36
38
  BentoTypography,
39
+ BentoUserProfile,
37
40
  } from './index';
38
41
 
39
42
  declare module 'vue' {
@@ -45,7 +48,6 @@ declare module 'vue' {
45
48
  // AdlCard: typeof AdlCard;
46
49
  // AdlCardImage: typeof AdlCardImage;
47
50
  // AdlDropdown: typeof AdlDropdown;
48
- // AdlProfilePicture: typeof AdlProfilePicture;
49
51
  // AdlPageHeader: typeof AdlPageHeader;
50
52
  // AdlSegmentedControl: typeof AdlSegmentedControl;
51
53
  // AdlSegmentedOption: typeof AdlSegmentedOption;
@@ -61,6 +63,8 @@ declare module 'vue' {
61
63
  BentoCheckbox: typeof BentoCheckbox;
62
64
  BentoCheckboxGroup: typeof BentoCheckboxGroup;
63
65
  BentoClickOutside: typeof BentoClickOutside;
66
+ BentoCountry: typeof BentoCountry;
67
+ BentoCurrency: typeof BentoCurrency;
64
68
  BentoDataGrid: typeof BentoDataGrid;
65
69
  BentoInputField: typeof BentoInputField;
66
70
  BentoLink: typeof BentoLink;
@@ -69,9 +73,11 @@ declare module 'vue' {
69
73
  BentoPagination: typeof BentoPagination;
70
74
  BentoPopover: typeof BentoPopover;
71
75
  BentoRadioGroup: typeof BentoRadioGroup;
76
+ BentoSearchBar: typeof BentoSearchBar;
72
77
  BentoStatus: typeof BentoStatus;
73
78
  BentoTag: typeof BentoTag;
74
79
  BentoToggle: typeof BentoToggle;
75
80
  BentoTypography: typeof BentoTypography;
81
+ BentoUserProfile: typeof BentoUserProfile;
76
82
  }
77
83
  }
@@ -0,0 +1 @@
1
+ export * from './initials';
@@ -0,0 +1,3 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { MaybeRef } from '../types';
3
+ export declare const useInitials: (username: MaybeRef<string | null>) => ComputedRef<string | null>;
@@ -4,6 +4,8 @@ export * from './components/button';
4
4
  export * from './components/data-grid';
5
5
  export * from './components/checkbox';
6
6
  export * from './components/click-outside';
7
+ export * from './components/country';
8
+ export * from './components/currency';
7
9
  export * from './components/filter-bar';
8
10
  export * from './components/input-field';
9
11
  export * from './components/loading-indicator';
@@ -11,10 +13,12 @@ export * from './components/link';
11
13
  export * from './components/pagination';
12
14
  export * from './components/popover';
13
15
  export * from './components/radio-group';
16
+ export * from './components/search-bar';
14
17
  export * from './components/status';
15
18
  export * from './components/tag';
16
19
  export * from './components/toggle';
17
20
  export * from './components/typography';
21
+ export * from './components/user-profile';
18
22
  export * from './types';
19
23
  export * from './directives';
20
24
  export default BentoVue;
@@ -0,0 +1,4 @@
1
+ export declare const currencyExponentMap: {
2
+ exponent: number;
3
+ currencies: string[];
4
+ }[];
@@ -0,0 +1,6 @@
1
+ import { CurrencyAmount, CurrencyOptions, NumberFormatOptionsResult } from './currency.types';
2
+ export declare const getExponent: (currencyCode: string) => number;
3
+ export declare const getMinorUnitsAmount: (amount: CurrencyAmount) => number;
4
+ export declare const getNormalizedAmount: (amount: CurrencyAmount, exponent: number) => number;
5
+ export declare function getNumberFormatOptions(amount: CurrencyAmount, options?: CurrencyOptions): NumberFormatOptionsResult;
6
+ export declare const getLocalizedCurrencyValue: (amountValue: string, currency: string, isShort?: boolean) => string;
@@ -0,0 +1,24 @@
1
+ export interface CurrencyAmount {
2
+ value: number;
3
+ currency: string;
4
+ }
5
+ export interface CurrencyOptions {
6
+ style?: string;
7
+ exponent?: number;
8
+ optionalFractions?: boolean;
9
+ highPrecision?: boolean;
10
+ }
11
+ export interface CurrencyFormatOptions {
12
+ amount: CurrencyAmount;
13
+ options?: CurrencyOptions;
14
+ }
15
+ export interface NumberFormatOptionsResult {
16
+ value: number;
17
+ format: {
18
+ currency: string;
19
+ currencyDisplay: string;
20
+ maximumFractionDigits: number;
21
+ minimumFractionDigits: number;
22
+ style: string;
23
+ };
24
+ }
@@ -0,0 +1 @@
1
+ export declare function deepMerge(target: object, source: object): object;
@@ -0,0 +1 @@
1
+ export * from './deep-merge';
@@ -5,7 +5,11 @@ export declare const defaultI18nOptions: {
5
5
  fallbackLocale: string;
6
6
  fallbackRoot: boolean;
7
7
  };
8
- export declare function createI18n(options?: VueI18n.I18nOptions): VueI18n;
8
+ export declare function createI18n(options?: {
9
+ locale: string;
10
+ fallbackLocale: string;
11
+ fallbackRoot: boolean;
12
+ }): VueI18n;
9
13
  export interface Composer {
10
14
  locale: WritableComputedRef<string>;
11
15
  t: typeof VueI18n.prototype.t;