@adyen/bento-vue3 0.9.3 → 0.10.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 (25) hide show
  1. package/dist/@types/components/currency/currency.vue.d.ts +9 -0
  2. package/dist/@types/components/data-grid/data-grid.types.d.ts +8 -7
  3. package/dist/@types/components/data-grid/data-grid.vue.d.ts +4 -4
  4. package/dist/@types/components/date/date.vue.d.ts +9 -0
  5. package/dist/@types/components/modal/components/base-modal/base-modal.vue.d.ts +10 -0
  6. package/dist/@types/components/modal/components/modal-default/modal-default.vue.d.ts +9 -0
  7. package/dist/@types/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +9 -0
  8. package/dist/@types/components/modal/modal.vue.d.ts +11 -0
  9. package/dist/@types/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +60 -0
  10. package/dist/@types/components/segmented-control/index.d.ts +1 -2
  11. package/dist/@types/components/segmented-control/segmented-control.types.d.ts +6 -13
  12. package/dist/@types/components/segmented-control/segmented-control.vue.d.ts +37 -26
  13. package/dist/@types/components.d.ts +2 -4
  14. package/dist/@types/index.d.ts +1 -0
  15. package/dist/index.js +12261 -12301
  16. package/dist/index.js.map +1 -1
  17. package/dist/variables-0e825aeb.mjs +6 -0
  18. package/dist/variables-0e825aeb.mjs.map +1 -0
  19. package/dist/variables-legacy-b816e511.mjs +6 -0
  20. package/dist/variables-legacy-b816e511.mjs.map +1 -0
  21. package/dist/web-types.json +1 -1
  22. package/package.json +2 -2
  23. package/dist/@types/components/segmented-control/components/segmented-option.vue.d.ts +0 -59
  24. package/dist/@types/components/segmented-control/segmented-control.keys.d.ts +0 -1
  25. package/dist/@types/utils/ts/inject-css.d.ts +0 -2
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: BooleanConstructor;
12
12
  default: boolean;
13
13
  };
14
+ disableTypography: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
14
18
  }, {
15
19
  formattedCurrency: import("vue").ComputedRef<string>;
16
20
  BentoTypographyVariant: typeof BentoTypographyVariant;
@@ -25,8 +29,13 @@ declare const _default: import("vue").DefineComponent<{
25
29
  type: BooleanConstructor;
26
30
  default: boolean;
27
31
  };
32
+ disableTypography: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
28
36
  }>>, {
29
37
  currency: BentoCurrencyISOCode;
30
38
  majorUnits: boolean;
39
+ disableTypography: boolean;
31
40
  }>;
32
41
  export default _default;
@@ -52,17 +52,18 @@ export interface BentoDatagridAllItemsSelectedState {
52
52
  isIndeterminate: boolean;
53
53
  }
54
54
  export declare enum BentoDatagridEvent {
55
+ COLUMNS = "columns",
55
56
  COLUMN_RESIZE = "column-resize",
56
- SORT = "sort",
57
- SELECT = "select",
58
- NAVIGATE = "navigate",
59
- UPDATE_FILERS = "update:filters",
60
57
  ITEMS_PAGE = "items-page",
61
- UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term",
58
+ NAVIGATE = "navigate",
62
59
  FILTER_SEARCH_INPUT = "filter-search-input",
63
60
  FILTER_SEARCH_CLEAR = "filter-search-clear",
64
- COLUMNS = "columns",
65
61
  UPDATE_COLUMNS = "update:columns",
62
+ UPDATE_CONDENSED = "update:condensed",
63
+ UPDATE_FILTERS = "update:filters",
64
+ UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term",
65
+ UPDATE_SORT_BY = "update:sort-by",
66
66
  ROW_CLICK = "row-click",
67
- UPDATE_CONDENSED = "update:condensed"
67
+ SELECT = "select",
68
+ SORT = "sort"
68
69
  }
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
27
27
  required: true;
28
28
  };
29
29
  filters: {
30
- type: PropType<import("@/components/filter-bar").BentoFilterBarModel>;
30
+ type: PropType<import("../filter-bar").BentoFilterBarModel>;
31
31
  default: any;
32
32
  };
33
33
  filterSearchTerm: {
@@ -322,7 +322,7 @@ declare const _default: import("vue").DefineComponent<{
322
322
  dragover: (e: DragEvent) => void;
323
323
  }>;
324
324
  computedColumnPanelAlignment: import("vue").ComputedRef<number>;
325
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, (BentoDatagridEvent.COLUMN_RESIZE | BentoDatagridEvent.SORT | BentoDatagridEvent.SELECT | BentoDatagridEvent.NAVIGATE | BentoDatagridEvent.UPDATE_FILERS | BentoDatagridEvent.ITEMS_PAGE | BentoDatagridEvent.UPDATE_FILTER_SEARCH_TERM | BentoDatagridEvent.FILTER_SEARCH_INPUT | BentoDatagridEvent.FILTER_SEARCH_CLEAR | BentoDatagridEvent.COLUMNS | BentoDatagridEvent.UPDATE_COLUMNS | BentoDatagridEvent.ROW_CLICK)[], string, Readonly<import("vue").ExtractPropTypes<{
325
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, (BentoDatagridEvent.COLUMNS | BentoDatagridEvent.COLUMN_RESIZE | BentoDatagridEvent.ITEMS_PAGE | BentoDatagridEvent.NAVIGATE | BentoDatagridEvent.FILTER_SEARCH_INPUT | BentoDatagridEvent.FILTER_SEARCH_CLEAR | BentoDatagridEvent.UPDATE_COLUMNS | BentoDatagridEvent.UPDATE_FILTERS | BentoDatagridEvent.UPDATE_FILTER_SEARCH_TERM | BentoDatagridEvent.UPDATE_SORT_BY | BentoDatagridEvent.ROW_CLICK | BentoDatagridEvent.SELECT | BentoDatagridEvent.SORT)[], string, Readonly<import("vue").ExtractPropTypes<{
326
326
  allowRowClicks: {
327
327
  type: BooleanConstructor;
328
328
  default: boolean;
@@ -348,7 +348,7 @@ declare const _default: import("vue").DefineComponent<{
348
348
  required: true;
349
349
  };
350
350
  filters: {
351
- type: PropType<import("@/components/filter-bar").BentoFilterBarModel>;
351
+ type: PropType<import("../filter-bar").BentoFilterBarModel>;
352
352
  default: any;
353
353
  };
354
354
  filterSearchTerm: {
@@ -457,7 +457,7 @@ declare const _default: import("vue").DefineComponent<{
457
457
  default: () => any[];
458
458
  };
459
459
  }>>, {
460
- filters: import("@/components/filter-bar").BentoFilterBarModel;
460
+ filters: import("../filter-bar").BentoFilterBarModel;
461
461
  condensed: boolean;
462
462
  outline: boolean;
463
463
  loading: boolean;
@@ -10,6 +10,10 @@ declare const _default: import("vue").DefineComponent<{
10
10
  type: PropType<BentoDateFormat>;
11
11
  default: BentoDateFormat;
12
12
  };
13
+ disableTypography: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
13
17
  }, {
14
18
  formattedDate: import("vue").ComputedRef<string>;
15
19
  BentoTypographyVariant: typeof BentoTypographyVariant;
@@ -23,7 +27,12 @@ declare const _default: import("vue").DefineComponent<{
23
27
  type: PropType<BentoDateFormat>;
24
28
  default: BentoDateFormat;
25
29
  };
30
+ disableTypography: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
26
34
  }>>, {
35
+ disableTypography: boolean;
27
36
  date: string | number | Date;
28
37
  format: BentoDateFormat;
29
38
  }>;
@@ -40,6 +40,10 @@ declare const _default: import("vue").DefineComponent<{
40
40
  type: BooleanConstructor;
41
41
  default: boolean;
42
42
  };
43
+ overflowVisible: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
43
47
  }, {
44
48
  modal: any;
45
49
  computedAriaLabel: import("vue").ComputedRef<string>;
@@ -54,6 +58,7 @@ declare const _default: import("vue").DefineComponent<{
54
58
  modalConditionalClasses: import("vue").ComputedRef<{
55
59
  [x: string]: boolean | BentoModalSize;
56
60
  "b-modal-base__container--visible": boolean;
61
+ "b-modal-base__container--overflow-visible": boolean;
57
62
  }>;
58
63
  modalContentConditionalClasses: import("vue").ComputedRef<{
59
64
  'b-modal-base__content--column-layout': boolean;
@@ -117,6 +122,10 @@ declare const _default: import("vue").DefineComponent<{
117
122
  type: BooleanConstructor;
118
123
  default: boolean;
119
124
  };
125
+ overflowVisible: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
120
129
  }>>, {
121
130
  size: BentoModalSize;
122
131
  modalRole: string;
@@ -124,5 +133,6 @@ declare const _default: import("vue").DefineComponent<{
124
133
  withColumnLayout: boolean;
125
134
  columnsSize: BentoModalColumnLayoutVariant;
126
135
  initiallyOpen: boolean;
136
+ overflowVisible: boolean;
127
137
  }>;
128
138
  export default _default;
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: BooleanConstructor;
12
12
  required: true;
13
13
  };
14
+ overflowVisible: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
14
18
  hideCloseButton: {
15
19
  type: BooleanConstructor;
16
20
  default: boolean;
@@ -79,6 +83,10 @@ declare const _default: import("vue").DefineComponent<{
79
83
  type: BooleanConstructor;
80
84
  required: true;
81
85
  };
86
+ overflowVisible: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
82
90
  hideCloseButton: {
83
91
  type: BooleanConstructor;
84
92
  default: boolean;
@@ -122,6 +130,7 @@ declare const _default: import("vue").DefineComponent<{
122
130
  withColumnLayout: boolean;
123
131
  columnsSize: BentoModalColumnLayoutVariant;
124
132
  initiallyOpen: boolean;
133
+ overflowVisible: boolean;
125
134
  actionsLabel: string;
126
135
  destructiveActions: boolean;
127
136
  }>;
@@ -10,6 +10,10 @@ declare const _default: import("vue").DefineComponent<{
10
10
  type: BooleanConstructor;
11
11
  required: true;
12
12
  };
13
+ overflowVisible: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
13
17
  dialogType: {
14
18
  type: PropType<BentoModalDialogType>;
15
19
  required: true;
@@ -58,6 +62,10 @@ declare const _default: import("vue").DefineComponent<{
58
62
  type: BooleanConstructor;
59
63
  required: true;
60
64
  };
65
+ overflowVisible: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
61
69
  dialogType: {
62
70
  type: PropType<BentoModalDialogType>;
63
71
  required: true;
@@ -77,5 +85,6 @@ declare const _default: import("vue").DefineComponent<{
77
85
  }>>, {
78
86
  actions: BentoButtonActionsList;
79
87
  initiallyOpen: boolean;
88
+ overflowVisible: boolean;
80
89
  }>;
81
90
  export default _default;
@@ -10,6 +10,10 @@ declare const _default: import("vue").DefineComponent<{
10
10
  type: BooleanConstructor;
11
11
  default: any;
12
12
  };
13
+ overflowVisible: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
13
17
  isOpen: {
14
18
  type: BooleanConstructor;
15
19
  default: boolean;
@@ -63,6 +67,7 @@ declare const _default: import("vue").DefineComponent<{
63
67
  actionsLabel: string;
64
68
  destructiveActions: boolean;
65
69
  isDismissible: boolean;
70
+ overflowVisible: boolean;
66
71
  withColumnLayout: boolean;
67
72
  dialogType?: undefined;
68
73
  content?: undefined;
@@ -70,6 +75,7 @@ declare const _default: import("vue").DefineComponent<{
70
75
  dialogType: BentoModalDialogType;
71
76
  content: string;
72
77
  isDismissible: boolean;
78
+ overflowVisible: boolean;
73
79
  hideCloseButton?: undefined;
74
80
  size?: undefined;
75
81
  customPadding?: undefined;
@@ -87,6 +93,10 @@ declare const _default: import("vue").DefineComponent<{
87
93
  type: BooleanConstructor;
88
94
  default: any;
89
95
  };
96
+ overflowVisible: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
90
100
  isOpen: {
91
101
  type: BooleanConstructor;
92
102
  default: boolean;
@@ -142,6 +152,7 @@ declare const _default: import("vue").DefineComponent<{
142
152
  withColumnLayout: boolean;
143
153
  columnsSize: BentoModalColumnLayoutVariant;
144
154
  isOpen: boolean;
155
+ overflowVisible: boolean;
145
156
  actionsLabel: string;
146
157
  destructiveActions: boolean;
147
158
  dialogType: BentoModalDialogType;
@@ -0,0 +1,60 @@
1
+ import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
2
+ import { ComputedRef } from 'vue';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ label: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ value: {
9
+ type: (StringConstructor | NumberConstructor)[];
10
+ required: true;
11
+ };
12
+ modelValue: {
13
+ type: (StringConstructor | NumberConstructor)[];
14
+ default: any;
15
+ };
16
+ disabled: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ fullWidth: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ }, {
25
+ BentoTypographyElement: typeof BentoTypographyElement;
26
+ BentoTypographyVariant: typeof BentoTypographyVariant;
27
+ segmentedControlButtonId: string;
28
+ isChecked: ComputedRef<boolean>;
29
+ conditionalClasses: ComputedRef<{
30
+ 'b-segmented-control-button--hug-content': boolean;
31
+ 'b-segmented-control-button--full-width': boolean;
32
+ }>;
33
+ onClick: () => void;
34
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "update:modelValue"[], string, Readonly<import("vue").ExtractPropTypes<{
35
+ label: {
36
+ type: StringConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: (StringConstructor | NumberConstructor)[];
41
+ required: true;
42
+ };
43
+ modelValue: {
44
+ type: (StringConstructor | NumberConstructor)[];
45
+ default: any;
46
+ };
47
+ disabled: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ fullWidth: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ }>>, {
56
+ disabled: boolean;
57
+ modelValue: string | number;
58
+ fullWidth: boolean;
59
+ }>;
60
+ export default _default;
@@ -1,3 +1,2 @@
1
- export { default as AdlSegmentedOption } from './components/segmented-option.vue';
2
- export { default as AdlSegmentedControl } from './segmented-control.vue';
1
+ export { default as BentoSegmentedControl } from './segmented-control.vue';
3
2
  export * from './segmented-control.types';
@@ -1,15 +1,8 @@
1
- export interface AdlSegmentedControlApi {
2
- state: {
3
- name: string;
4
- disabled: boolean;
5
- selectedValue: unknown;
6
- };
7
- changeValue: (newValue: unknown) => void;
1
+ export interface BentoSegmentedControlItem {
2
+ label: string;
3
+ value: string | number;
4
+ disabled?: boolean;
8
5
  }
9
- export declare enum AdlSegmentedControlState {
10
- DISABLED = "disabled"
11
- }
12
- export declare enum AdlSegmentedOptionState {
13
- DISABLED = "disabled",
14
- SELECTED = "selected"
6
+ export declare enum BentoSegmentedControlEvent {
7
+ UPDATE = "update:modelValue"
15
8
  }
@@ -1,42 +1,53 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoSegmentedControlEvent, BentoSegmentedControlItem } from './segmented-control.types';
1
3
  declare const _default: import("vue").DefineComponent<{
2
- disabled: {
3
- type: BooleanConstructor;
4
- default: boolean;
4
+ items: {
5
+ type: PropType<BentoSegmentedControlItem[]>;
6
+ required: true;
7
+ validator: (arr: Array<BentoSegmentedControlItem[]>) => boolean;
5
8
  };
6
- value: {
7
- type: any;
8
- default: any;
9
+ modelValue: {
10
+ type: (StringConstructor | NumberConstructor)[];
11
+ required: true;
9
12
  };
10
- name: {
13
+ ariaLabel: {
11
14
  type: StringConstructor;
12
15
  required: true;
13
16
  };
14
- }, {}, {
15
- state: {
16
- disabled: boolean;
17
- selectedValue: any;
18
- name: string;
19
- };
20
- ariaLabel: any;
21
- }, {
22
- conditionalClasses(): {
23
- [className: string]: boolean;
24
- };
25
- }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
26
- disabled: {
17
+ fullWidth: {
27
18
  type: BooleanConstructor;
28
19
  default: boolean;
29
20
  };
30
- value: {
31
- type: any;
32
- default: any;
21
+ }, {
22
+ inputValue: import("vue").Ref<string | number>;
23
+ dropdownId: string;
24
+ segmentedControlRef: any;
25
+ conditionalClasses: import("vue").ComputedRef<{
26
+ 'b-segmented-control--hidden': boolean;
27
+ 'b-segmented-control--full-width': boolean;
28
+ }>;
29
+ isSegmentedControlVisible: import("vue").Ref<boolean>;
30
+ isSegmentedControlHidden: import("vue").ComputedRef<boolean>;
31
+ onInput: (value: any) => void;
32
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, BentoSegmentedControlEvent[], string, Readonly<import("vue").ExtractPropTypes<{
33
+ items: {
34
+ type: PropType<BentoSegmentedControlItem[]>;
35
+ required: true;
36
+ validator: (arr: Array<BentoSegmentedControlItem[]>) => boolean;
37
+ };
38
+ modelValue: {
39
+ type: (StringConstructor | NumberConstructor)[];
40
+ required: true;
33
41
  };
34
- name: {
42
+ ariaLabel: {
35
43
  type: StringConstructor;
36
44
  required: true;
37
45
  };
46
+ fullWidth: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
38
50
  }>>, {
39
- value: any;
40
- disabled: boolean;
51
+ fullWidth: boolean;
41
52
  }>;
42
53
  export default _default;
@@ -3,8 +3,6 @@ import {
3
3
  // AdlAccordion,
4
4
  // AdlAccordionItem,
5
5
  // AdlBadge,
6
- // AdlSegmentedControl,
7
- // AdlSegmentedOption,
8
6
  // AdlTab,
9
7
  // AdlTabs,
10
8
  // AdlTextarea,
@@ -42,6 +40,7 @@ import {
42
40
  BentoPopover,
43
41
  BentoRadioGroup,
44
42
  BentoSearchBar,
43
+ BentoSegmentedControl,
45
44
  BentoStatus,
46
45
  BentoStructuredList,
47
46
  BentoSummaryGrid,
@@ -63,8 +62,6 @@ declare module 'vue' {
63
62
  // AdlAccordion: typeof AdlAccordion;
64
63
  // AdlAccordionItem: typeof AdlAccordionItem;
65
64
  // AdlBadge: typeof AdlBadge;
66
- // AdlSegmentedControl: typeof AdlSegmentedControl;
67
- // AdlSegmentedOption: typeof AdlSegmentedOption;
68
65
  // AdlTabs: typeof AdlTabs;
69
66
  // AdlTab: typeof AdlTab;
70
67
  // AdlTextarea: typeof AdlTextarea;
@@ -102,6 +99,7 @@ declare module 'vue' {
102
99
  BentoPopover: typeof BentoPopover;
103
100
  BentoRadioGroup: typeof BentoRadioGroup;
104
101
  BentoSearchBar: typeof BentoSearchBar;
102
+ BentoSegmentedControl: typeof BentoSegmentedControl;
105
103
  BentoStatus: typeof BentoStatus;
106
104
  BentoStructuredList: typeof BentoStructuredList;
107
105
  BentoSummaryGrid: typeof BentoSummaryGrid;
@@ -24,6 +24,7 @@ export * from './components/payment-method';
24
24
  export * from './components/popover';
25
25
  export * from './components/radio-group';
26
26
  export * from './components/search-bar';
27
+ export * from './components/segmented-control';
27
28
  export * from './components/status';
28
29
  export * from './components/structured-list';
29
30
  export * from './components/summary-grid';