@adyen/bento-vue2 0.1.4 → 0.1.5

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.
@@ -3,6 +3,7 @@ export interface BentoButtonActionObject {
3
3
  title: string;
4
4
  event: (event: Event) => void;
5
5
  icon?: VueNodeElement;
6
+ disabled?: boolean;
6
7
  }
7
8
  export type BentoButtonActionsList = Array<BentoButtonActionObject>;
8
9
  export declare enum BentoButtonActionsLayoutBasic {
@@ -0,0 +1,17 @@
1
+ export declare enum BentoDateFormat {
2
+ LONG_WEEKDAY = "EEEE",
3
+ SHORT_TIME_WITH_PERIOD = "h:mm aa",
4
+ SHORT_TIME_WITHOUT_PERIOD = "H:mm",
5
+ EXACT_TIME_WITH_PERIOD = "h:mm:ss aa",
6
+ EXACT_TIME_WITHOUT_PERIOD = "H:mm:ss",
7
+ LONG_DATE = "LLLL dd, yyyy",
8
+ SHORT_DATE = "LLL dd, yyyy",
9
+ FULL_DATE_EXACT_TIME_WITH_PERIOD = "LLLL dd, yyyy, h:mm:ss aa",
10
+ FULL_DATE_EXACT_TIME_WITHOUT_PERIOD = "LLLL dd, yyyy, H:mm:ss",
11
+ FULL_DATE_EXACT_TIME_WITH_TIMEZONE_AND_PERIOD = "LLLL dd, yyyy, h:mm:ss aa O",
12
+ FULL_DATE_EXACT_TIME_WITH_TIMEZONE_AND_WITHOUT_PERIOD = "LLLL dd, yyyy, H:mm:ss O",
13
+ FULL_DATE_TIME_WITH_PERIOD = "LLL dd, yyyy, h:mm aa",
14
+ FULL_DATE_TIME_WITH_TIMEZONE_AND_PERIOD = "LLL dd, yyyy, h:mm aa O",
15
+ FULL_DATE_TIME_WITHOUT_PERIOD = "LLL dd, yyyy, H:mm",
16
+ FULL_DATE_TIME_WITH_TIMEZONE_AND_WITHOUT_PERIOD = "LLL dd, yyyy, H:mm O"
17
+ }
@@ -0,0 +1,30 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoDateFormat } from '@/components/date/date.types';
3
+ import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ date: {
6
+ type: DateConstructor;
7
+ default: any;
8
+ };
9
+ format: {
10
+ type: PropType<BentoDateFormat>;
11
+ default: BentoDateFormat;
12
+ };
13
+ }, {
14
+ formattedDate: import("vue").ComputedRef<string>;
15
+ BentoTypographyVariant: typeof BentoTypographyVariant;
16
+ BentoTypographyElement: typeof BentoTypographyElement;
17
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
18
+ date: {
19
+ type: DateConstructor;
20
+ default: any;
21
+ };
22
+ format: {
23
+ type: PropType<BentoDateFormat>;
24
+ default: BentoDateFormat;
25
+ };
26
+ }>>, {
27
+ date: Date;
28
+ format: BentoDateFormat;
29
+ }>;
30
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as BentoDate } from './date.vue';
2
+ export * from './date.types';
@@ -1,17 +1,21 @@
1
1
  import { PropType } from 'vue';
2
2
  import { BentoFilterBarModel, BentoFilterModel } from './filter-bar.types';
3
+ import { BentoButtonVariant } from '@/components/button';
3
4
  declare const _default: import("vue").DefineComponent<{
4
5
  value: {
5
6
  type: PropType<BentoFilterBarModel>;
6
- default: any;
7
+ default: () => any[];
7
8
  };
8
9
  }, {
10
+ isClearAllDisabled: import("vue").ComputedRef<boolean>;
11
+ BentoButtonVariant: typeof BentoButtonVariant;
9
12
  dismissFilterHandler: (dismissedFilter: BentoFilterModel) => void;
10
13
  updateFilterHandler: (updatedFilter: BentoFilterModel) => void;
14
+ clearAllFilters: () => void;
11
15
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
12
16
  value: {
13
17
  type: PropType<BentoFilterBarModel>;
14
- default: any;
18
+ default: () => any[];
15
19
  };
16
20
  }>>, {
17
21
  value: BentoFilterBarModel;
@@ -23,6 +23,7 @@ import {
23
23
  BentoCountry,
24
24
  BentoCurrency,
25
25
  BentoDataGrid,
26
+ BentoDate,
26
27
  BentoDropdown,
27
28
  BentoInputField,
28
29
  BentoLink,
@@ -64,6 +65,7 @@ declare module 'vue' {
64
65
  BentoCountry: typeof BentoCountry;
65
66
  BentoCurrency: typeof BentoCurrency;
66
67
  BentoDataGrid: typeof BentoDataGrid;
68
+ BentoDate: typeof BentoDate;
67
69
  BentoDropdown: typeof BentoDropdown;
68
70
  BentoInputField: typeof BentoInputField;
69
71
  BentoLink: typeof BentoLink;
@@ -9,6 +9,7 @@ export * from './components/checkbox';
9
9
  export * from './components/click-outside';
10
10
  export * from './components/country';
11
11
  export * from './components/currency';
12
+ export * from './components/date';
12
13
  export * from './components/filter-bar';
13
14
  export * from './components/input-field';
14
15
  export * from './components/loading-indicator';