@adyen/bento-vue2 0.0.2 → 0.0.3

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.
@@ -10,12 +10,12 @@ declare const _default: import("vue").DefineComponent<{
10
10
  type: StringConstructor;
11
11
  default: string;
12
12
  };
13
- }, {}, {}, {
14
- ariaLabel(): string;
15
- conditionalClasses(): {
13
+ }, {
14
+ ariaLabel: import("vue").ComputedRef<string>;
15
+ conditionalClasses: import("vue").ComputedRef<{
16
16
  [x: string]: boolean;
17
- };
18
- }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
17
+ }>;
18
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
19
19
  variant: {
20
20
  type: PropType<AdlBadgeVariant>;
21
21
  default: AdlBadgeVariant;
@@ -23,20 +23,15 @@ declare const _default: import("vue").DefineComponent<{
23
23
  default: BentoButtonVariant;
24
24
  validator: (value: BentoButtonVariant) => boolean;
25
25
  };
26
- }, {}, {
26
+ }, {
27
27
  BentoTypographyElement: typeof BentoTypographyElement;
28
28
  BentoTypographyVariant: typeof BentoTypographyVariant;
29
- }, {
30
- ariaLabel(): string | undefined;
31
- conditionalClasses(): {
32
- [x: string]: boolean;
33
- };
34
- variantClass(): {
29
+ ariaLabel: import("vue").ComputedRef<string>;
30
+ conditionalClasses: import("vue").ComputedRef<{
35
31
  [x: string]: boolean;
36
- };
37
- }, {
38
- onClickButton(): void;
39
- }, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
32
+ }>;
33
+ onClickButton: () => void;
34
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "click"[], string, Readonly<import("vue").ExtractPropTypes<{
40
35
  disabled: {
41
36
  type: BooleanConstructor;
42
37
  default: boolean;
@@ -18,8 +18,12 @@ declare const _default: import("vue").DefineComponent<{
18
18
  type: BooleanConstructor;
19
19
  default: boolean;
20
20
  };
21
+ ariaLabel: {
22
+ type: StringConstructor;
23
+ default: any;
24
+ };
21
25
  }, {
22
- ariaLabel: import("vue").ComputedRef<string>;
26
+ computedAriaLabel: import("vue").ComputedRef<string>;
23
27
  ariaChecked: import("vue").ComputedRef<"mixed" | (boolean | "false" | "true")>;
24
28
  isCheckboxGroup: import("vue").ComputedRef<boolean>;
25
29
  isChecked: import("vue").ComputedRef<boolean>;
@@ -50,8 +54,13 @@ declare const _default: import("vue").DefineComponent<{
50
54
  type: BooleanConstructor;
51
55
  default: boolean;
52
56
  };
57
+ ariaLabel: {
58
+ type: StringConstructor;
59
+ default: any;
60
+ };
53
61
  }>>, {
54
62
  value: string | number;
63
+ ariaLabel: string;
55
64
  disabled: boolean;
56
65
  indeterminate: boolean;
57
66
  modelValue: BentoCheckboxType;
@@ -1,4 +1,8 @@
1
1
  import { BentoPagination } from '../pagination';
2
+ export declare enum BentoColumnOverflow {
3
+ WRAP = "wrap",
4
+ ELLIPSIS = "ellipsis"
5
+ }
2
6
  export interface BentoColumn {
3
7
  field: string;
4
8
  label: string;
@@ -10,6 +14,7 @@ export interface BentoColumn {
10
14
  left?: boolean;
11
15
  right?: boolean;
12
16
  };
17
+ overflow?: BentoColumnOverflow;
13
18
  }
14
19
  export declare enum BentoDatagridStyleState {
15
20
  OUTLINE = "outline"
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { BentoColumn, BentoDatagridData, BentoDatagridDataItem, BentoDatagridDataItemId, BentoDatagridGetDataItemIdFn, BentoDatagridIsDataItemDisabledFn, BentoDatagridSortByColumn, BentoDatagridSortDirection } from './data-grid.types';
2
+ import { BentoColumn, BentoColumnOverflow, BentoDatagridData, BentoDatagridDataItem, BentoDatagridDataItemId, BentoDatagridGetDataItemIdFn, BentoDatagridIsDataItemDisabledFn, BentoDatagridSortByColumn, BentoDatagridSortDirection } from './data-grid.types';
3
3
  import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  condensed: {
@@ -41,6 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  page: number;
42
42
  totalCount: number;
43
43
  hasNext: boolean;
44
+ hidePageSize: boolean;
44
45
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
45
46
  ariaLabel: {
46
47
  type: StringConstructor;
@@ -50,6 +51,10 @@ declare const _default: import("vue").DefineComponent<{
50
51
  type: BooleanConstructor;
51
52
  default: any;
52
53
  };
54
+ hidePageSize: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
53
58
  page: {
54
59
  type: NumberConstructor;
55
60
  default: number;
@@ -73,6 +78,10 @@ declare const _default: import("vue").DefineComponent<{
73
78
  type: BooleanConstructor;
74
79
  default: any;
75
80
  };
81
+ hidePageSize: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
76
85
  page: {
77
86
  type: NumberConstructor;
78
87
  default: number;
@@ -114,8 +123,10 @@ declare const _default: import("vue").DefineComponent<{
114
123
  left?: boolean;
115
124
  right?: boolean;
116
125
  };
126
+ overflow?: BentoColumnOverflow;
117
127
  }[]>;
118
128
  ariaGridHeaderText: import("vue").ComputedRef<string>;
129
+ conditionalTitleAttribute: (column: BentoColumn, content: unknown) => string;
119
130
  gridColumnWidthStyle: import("vue").ComputedRef<{
120
131
  gridTemplateColumns: string;
121
132
  gridColumnEnd: number;
@@ -133,6 +144,7 @@ declare const _default: import("vue").DefineComponent<{
133
144
  'b-data-grid__row--disabled': boolean;
134
145
  };
135
146
  conditionalRowCellClasses: (column: BentoColumn) => {
147
+ [x: string]: boolean;
136
148
  'b-data-grid__cell--padding-left-unset': boolean;
137
149
  'b-data-grid__cell--padding-right-unset': boolean;
138
150
  'b-data-grid__cell--condensed': boolean;
@@ -214,6 +226,7 @@ declare const _default: import("vue").DefineComponent<{
214
226
  page: number;
215
227
  totalCount: number;
216
228
  hasNext: boolean;
229
+ hidePageSize: boolean;
217
230
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
218
231
  ariaLabel: {
219
232
  type: StringConstructor;
@@ -223,6 +236,10 @@ declare const _default: import("vue").DefineComponent<{
223
236
  type: BooleanConstructor;
224
237
  default: any;
225
238
  };
239
+ hidePageSize: {
240
+ type: BooleanConstructor;
241
+ default: boolean;
242
+ };
226
243
  page: {
227
244
  type: NumberConstructor;
228
245
  default: number;
@@ -246,6 +263,10 @@ declare const _default: import("vue").DefineComponent<{
246
263
  type: BooleanConstructor;
247
264
  default: any;
248
265
  };
266
+ hidePageSize: {
267
+ type: BooleanConstructor;
268
+ default: boolean;
269
+ };
249
270
  page: {
250
271
  type: NumberConstructor;
251
272
  default: number;
@@ -1 +1,2 @@
1
1
  export { default as BentoLink } from './link.vue';
2
+ export * from './link.types';
@@ -0,0 +1,4 @@
1
+ export declare enum BentoLinkVariant {
2
+ DEFAULT = "default",
3
+ QUIET = "quiet"
4
+ }
@@ -1,11 +1,20 @@
1
- export interface Props extends RouterLinkProps {
1
+ export interface Props extends RouterLinkProps, AnchorHTMLAttributes {
2
2
  args?: {
3
3
  props: RouterLinkProps;
4
4
  };
5
5
  external?: boolean;
6
+ variant?: BentoLinkVariant;
6
7
  }
8
+ import { BentoLinkVariant } from './link.types';
7
9
  import type { RouterLinkProps } from 'vue-router/types/router';
8
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}>, {
10
+ import type { AnchorHTMLAttributes } from 'vue/types/jsx';
11
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
+ variant: BentoLinkVariant;
13
+ }>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ variant: BentoLinkVariant;
15
+ }>>>, {
16
+ variant: BentoLinkVariant;
17
+ }>, {
9
18
  default: (_: import("vue-router/types/router").RouterLinkSlotArgument) => any;
10
19
  }>;
11
20
  export default _default;
@@ -18,6 +27,11 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
18
27
  required: true;
19
28
  };
20
29
  };
30
+ declare type __VLS_WithDefaults<P, D> = {
31
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
32
+ default: D[K];
33
+ } : P[K];
34
+ };
21
35
  declare type __VLS_WithTemplateSlots<T, S> = T & {
22
36
  new (): {
23
37
  $slots: S;
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: BooleanConstructor;
8
8
  default: any;
9
9
  };
10
+ hidePageSize: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
10
14
  page: {
11
15
  type: NumberConstructor;
12
16
  default: number;
@@ -23,6 +27,9 @@ declare const _default: import("vue").DefineComponent<{
23
27
  };
24
28
  }, {
25
29
  totalPages: import("vue").ComputedRef<number>;
30
+ navigationConditionalClasses: import("vue").ComputedRef<{
31
+ 'b-pagination__navigation--no-results-per-page': boolean;
32
+ }>;
26
33
  navigate: (pageArg: number) => void;
27
34
  onItemsPerPageChange: (elements: number) => void;
28
35
  onPageSelected: (pageNumber: number) => void;
@@ -35,6 +42,10 @@ declare const _default: import("vue").DefineComponent<{
35
42
  type: BooleanConstructor;
36
43
  default: any;
37
44
  };
45
+ hidePageSize: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
38
49
  page: {
39
50
  type: NumberConstructor;
40
51
  default: number;
@@ -55,5 +66,6 @@ declare const _default: import("vue").DefineComponent<{
55
66
  page: number;
56
67
  totalCount: number;
57
68
  hasNext: boolean;
69
+ hidePageSize: boolean;
58
70
  }>;
59
71
  export default _default;
@@ -59,6 +59,9 @@ declare const _default: import("vue").DefineComponent<{
59
59
  'b-popover--small': boolean;
60
60
  'b-popover--large': boolean;
61
61
  }>;
62
+ contentConditionalClasses: import("vue").ComputedRef<{
63
+ 'b-popover__content--with-title': boolean;
64
+ }>;
62
65
  computedAriaLabel: import("vue").ComputedRef<string>;
63
66
  BentoTypographyElement: typeof BentoTypographyElement;
64
67
  BentoTypographyVariant: typeof BentoTypographyVariant;
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
20
20
  shouldShowLabel: ComputedRef<boolean>;
21
21
  shouldShowSubLabel: ComputedRef<boolean>;
22
22
  conditionalClass: ComputedRef<{
23
- 'b-radio-button--disabled': boolean;
23
+ 'b-input-radio--disabled': boolean;
24
24
  }>;
25
25
  onClick: () => void;
26
26
  BentoTypographyVariant: typeof BentoTypographyVariant;
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<{
17
17
  selectedValue: any;
18
18
  name: string;
19
19
  };
20
+ ariaLabel: any;
20
21
  }, {
21
- ariaLabel(): string;
22
22
  conditionalClasses(): {
23
23
  [className: string]: boolean;
24
24
  };
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
12
12
  default: any;
13
13
  };
14
14
  }, {
15
+ computedAriaLabel: import("vue").ComputedRef<string>;
15
16
  textFromSlot: string;
16
17
  formattedText: import("vue").ComputedRef<string>;
17
18
  tagConditionalClasses: import("vue").ComputedRef<{
@@ -0,0 +1,9 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { MaybeRef } from '../../types/maybe-ref';
3
+ interface ariaLabelOptions {
4
+ ariaLabel?: MaybeRef<string | null>;
5
+ label?: MaybeRef<string | null>;
6
+ defaultFallback?: MaybeRef<string | null>;
7
+ }
8
+ export declare const useAriaLabel: ({ ariaLabel, label, defaultFallback, }: ariaLabelOptions) => ComputedRef<string>;
9
+ export {};