@frollo/frollo-web-ui 5.0.2 → 5.0.4

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 (78) hide show
  1. package/cjs/index.js +11887 -1279
  2. package/esm/{add-to-unscopables-2400f45b.js → add-to-unscopables-31609885.js} +2 -2
  3. package/esm/{array-iteration-107f927f.js → array-iteration-ec356eb3.js} +2 -2
  4. package/esm/{array-method-has-species-support-3d413468.js → array-method-has-species-support-8a4b1310.js} +1 -1
  5. package/esm/{array-method-is-strict-055b1830.js → array-method-is-strict-fc2e0d8d.js} +1 -1
  6. package/esm/{array-species-create-a5f5503b.js → array-species-create-b125f4a4.js} +2 -2
  7. package/esm/{classof-39c30bd5.js → classof-ee4b3b5b.js} +1 -1
  8. package/esm/{create-property-534611fd.js → create-property-c70ecc08.js} +1 -1
  9. package/esm/{delete-property-or-throw-8032646c.js → delete-property-or-throw-cd4c57d6.js} +3 -3
  10. package/esm/{does-not-exceed-safe-integer-31d08811.js → does-not-exceed-safe-integer-8e0042ec.js} +1 -1
  11. package/esm/{es.array.concat-987938be.js → es.array.concat-fe990345.js} +6 -6
  12. package/esm/{es.array.find-dfa1f42f.js → es.array.find-67b3b514.js} +5 -5
  13. package/esm/{es.array.includes-91be7771.js → es.array.includes-a06445a5.js} +3 -3
  14. package/esm/es.array.map-ae6c9437.js +43 -0
  15. package/esm/es.date.to-string-1ffba857.js +23 -0
  16. package/esm/{es.function.name-557cb1f9.js → es.function.name-6daefaeb.js} +1 -1
  17. package/esm/{es.number.constructor-d6ff8874.js → es.number.constructor-98bae04f.js} +2 -2
  18. package/esm/es.string.includes-ade04f96.js +66 -0
  19. package/esm/{es.string.iterator-590198a8.js → es.string.iterator-0992bb28.js} +8 -8
  20. package/esm/{export-a37ba078.js → export-8a363004.js} +1 -1
  21. package/esm/{function-apply-ce251590.js → function-apply-b908d7e6.js} +1 -1
  22. package/esm/fw-accordion.js +1 -1
  23. package/esm/fw-animations.js +5 -5
  24. package/esm/fw-bar-chart.js +18 -17
  25. package/esm/{fw-button-8d131219.js → fw-button-99dba2bc.js} +2 -2
  26. package/esm/fw-button.js +9 -9
  27. package/esm/fw-checkbox.js +9 -9
  28. package/esm/fw-date-picker.js +10336 -0
  29. package/esm/fw-drawer.js +9 -9
  30. package/esm/fw-dropdown-b476e015.js +223 -0
  31. package/esm/fw-dropdown.js +15 -222
  32. package/esm/{fw-image-4787a8bd.js → fw-image-ae643123.js} +10 -10
  33. package/esm/fw-image.js +18 -18
  34. package/esm/fw-input-fdc8fe1b.js +235 -0
  35. package/esm/fw-input.js +20 -245
  36. package/esm/{fw-loading-spinner-c394fafc.js → fw-loading-spinner-cc1ca2fa.js} +1 -1
  37. package/esm/fw-loading.js +3 -3
  38. package/esm/fw-modal.js +9 -9
  39. package/esm/fw-navigation-menu.js +9 -9
  40. package/esm/fw-progress-bar.js +3 -3
  41. package/esm/fw-provider-list.js +37 -0
  42. package/esm/fw-sidebar-menu.js +9 -9
  43. package/esm/fw-table-row-e8520a1d.js +492 -0
  44. package/esm/fw-table.js +14 -494
  45. package/esm/fw-tabs.js +10 -10
  46. package/esm/fw-tag-a8a83c0a.js +157 -0
  47. package/esm/fw-tag.js +13 -162
  48. package/esm/fw-toast.js +24 -85
  49. package/esm/fw-transactions-card.js +18 -18
  50. package/esm/get-root-colours-865a52ba.js +37 -0
  51. package/esm/{index-e4a2f8b0.js → index-0a63f2c3.js} +130 -102
  52. package/esm/index-6423a6ab.js +422 -0
  53. package/esm/{index-2766bfe4.js → index-be5b4afa.js} +20 -61
  54. package/esm/index.js +93 -101
  55. package/esm/{is-forced-752b5893.js → is-forced-fc680e39.js} +1 -1
  56. package/esm/{object-create-f6f3a673.js → object-create-bc771493.js} +2 -2
  57. package/esm/{object-keys-4f5bf4e7.js → object-keys-17f3b440.js} +1 -1
  58. package/esm/{web.timers-0f117224.js → web.timers-c5316125.js} +3 -3
  59. package/frollo-web-ui.esm.js +12181 -1412
  60. package/icons/calendar-day.svg +3 -0
  61. package/icons/calendar.svg +3 -0
  62. package/icons/index.ts +5 -1
  63. package/index.d.ts +313 -25
  64. package/package.json +3 -1
  65. package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +177 -0
  66. package/types/components/fw-date-picker/index.d.ts +2 -0
  67. package/types/components/fw-date-picker/index.types.d.ts +16 -0
  68. package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +17 -0
  69. package/types/components/fw-dropdown/index.types.d.ts +1 -0
  70. package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +68 -0
  71. package/types/components/fw-provider-list/index.d.ts +2 -0
  72. package/types/components/fw-provider-list/index.types.d.ts +11 -0
  73. package/types/components/index.d.ts +2 -0
  74. package/types/components/index.types.d.ts +2 -0
  75. package/types/helpers/get-root-colours.d.ts +8 -0
  76. package/types/icons/index.d.ts +3 -1
  77. package/web-components/index.js +12300 -1512
  78. package/esm/get-root-colours-e2a1cb28.js +0 -21
@@ -0,0 +1,177 @@
1
+ import { PropType } from 'vue';
2
+ import 'v-calendar/style.css';
3
+ declare const __default__: import("vue").DefineComponent<{
4
+ /**
5
+ * The date-picker v-model
6
+ */
7
+ modelValue: {
8
+ type: PropType<string | Date | {
9
+ start: string;
10
+ end: string;
11
+ }>;
12
+ };
13
+ /**
14
+ * The name of the input field. Must be unique per form.
15
+ */
16
+ name: {
17
+ type: StringConstructor;
18
+ required: true;
19
+ };
20
+ /**
21
+ * Label for the input. Also renders to an aria-label attribute
22
+ */
23
+ label: {
24
+ type: StringConstructor;
25
+ };
26
+ /**
27
+ * The placeholder text of the input
28
+ */
29
+ placeholder: {
30
+ type: StringConstructor;
31
+ };
32
+ /**
33
+ * The placeholder text of the starting range input
34
+ */
35
+ startPlaceholder: {
36
+ type: StringConstructor;
37
+ };
38
+ /**
39
+ * The placeholder text of the ending range input
40
+ */
41
+ endPlaceholder: {
42
+ type: StringConstructor;
43
+ };
44
+ /**
45
+ * Whether to enable the date range inputs
46
+ */
47
+ isRange: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ /**
52
+ * Start input label when is-range
53
+ */
54
+ startLabel: {
55
+ type: StringConstructor;
56
+ };
57
+ /**
58
+ * End input label when is-range
59
+ */
60
+ endLabel: {
61
+ type: StringConstructor;
62
+ };
63
+ /**
64
+ * The logical tab order of the input.
65
+ * Defaults to 0
66
+ */
67
+ tabindex: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ /**
72
+ * Whether the input is rounded.
73
+ * Defaults to false
74
+ */
75
+ rounded: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ }, {
80
+ uuid: string;
81
+ inputBaseClass: import("vue").Ref<string>;
82
+ dateModel: import("vue").WritableComputedRef<string | Date | {
83
+ start: string;
84
+ end: string;
85
+ } | undefined>;
86
+ primaryFade5: string;
87
+ primaryFade10: string;
88
+ primaryFade20: string;
89
+ primaryFade30: string;
90
+ primaryFade40: string;
91
+ primaryFade50: string;
92
+ primaryFade70: string;
93
+ primaryFade80: string;
94
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
95
+ /**
96
+ * The date-picker v-model
97
+ */
98
+ modelValue: {
99
+ type: PropType<string | Date | {
100
+ start: string;
101
+ end: string;
102
+ }>;
103
+ };
104
+ /**
105
+ * The name of the input field. Must be unique per form.
106
+ */
107
+ name: {
108
+ type: StringConstructor;
109
+ required: true;
110
+ };
111
+ /**
112
+ * Label for the input. Also renders to an aria-label attribute
113
+ */
114
+ label: {
115
+ type: StringConstructor;
116
+ };
117
+ /**
118
+ * The placeholder text of the input
119
+ */
120
+ placeholder: {
121
+ type: StringConstructor;
122
+ };
123
+ /**
124
+ * The placeholder text of the starting range input
125
+ */
126
+ startPlaceholder: {
127
+ type: StringConstructor;
128
+ };
129
+ /**
130
+ * The placeholder text of the ending range input
131
+ */
132
+ endPlaceholder: {
133
+ type: StringConstructor;
134
+ };
135
+ /**
136
+ * Whether to enable the date range inputs
137
+ */
138
+ isRange: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
142
+ /**
143
+ * Start input label when is-range
144
+ */
145
+ startLabel: {
146
+ type: StringConstructor;
147
+ };
148
+ /**
149
+ * End input label when is-range
150
+ */
151
+ endLabel: {
152
+ type: StringConstructor;
153
+ };
154
+ /**
155
+ * The logical tab order of the input.
156
+ * Defaults to 0
157
+ */
158
+ tabindex: {
159
+ type: StringConstructor;
160
+ default: string;
161
+ };
162
+ /**
163
+ * Whether the input is rounded.
164
+ * Defaults to false
165
+ */
166
+ rounded: {
167
+ type: BooleanConstructor;
168
+ default: boolean;
169
+ };
170
+ }>> & {
171
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
172
+ }, {
173
+ isRange: boolean;
174
+ tabindex: string;
175
+ rounded: boolean;
176
+ }>;
177
+ export default __default__;
@@ -0,0 +1,2 @@
1
+ import FwDatePicker from './fw-date-picker.vue';
2
+ export { FwDatePicker };
@@ -0,0 +1,16 @@
1
+ export declare interface FwDatePickerProps {
2
+ modelValue: string | {
3
+ start: string;
4
+ end: string;
5
+ } | Date;
6
+ name: string;
7
+ label?: string;
8
+ placeholder?: string;
9
+ isRange?: boolean;
10
+ startLabel?: string;
11
+ endLabel?: string;
12
+ startPlaceholder?: string;
13
+ endPlaceholder?: string;
14
+ tabindex?: string;
15
+ rounded?: boolean;
16
+ }
@@ -47,6 +47,14 @@ declare const _default: import("vue").DefineComponent<{
47
47
  required: false;
48
48
  default: string;
49
49
  };
50
+ /**
51
+ * Enable the error section UI.
52
+ * Defaults to true
53
+ */
54
+ enableErrors: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
50
58
  }, {
51
59
  menuButtonClass: string;
52
60
  menuClass: string;
@@ -107,7 +115,16 @@ declare const _default: import("vue").DefineComponent<{
107
115
  required: false;
108
116
  default: string;
109
117
  };
118
+ /**
119
+ * Enable the error section UI.
120
+ * Defaults to true
121
+ */
122
+ enableErrors: {
123
+ type: BooleanConstructor;
124
+ default: boolean;
125
+ };
110
126
  }>>, {
111
127
  placeholder: string;
128
+ enableErrors: boolean;
112
129
  }>;
113
130
  export default _default;
@@ -9,4 +9,5 @@ export declare interface FwDropdownProps {
9
9
  options: FwDropdownOption[];
10
10
  hint?: string;
11
11
  placeholder?: string;
12
+ enableErrors?: boolean;
12
13
  }
@@ -0,0 +1,68 @@
1
+ import { PropType } from 'vue';
2
+ import FwProviderListItem from './index.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * The header heading of the list.
6
+ */
7
+ heading: {
8
+ type: StringConstructor;
9
+ };
10
+ /**
11
+ * The list items of the table items.
12
+ */
13
+ items: {
14
+ type: PropType<FwProviderListItem[]>;
15
+ required: true;
16
+ };
17
+ /**
18
+ * The placeholder text for the sarch input.
19
+ */
20
+ searchPlaceholder: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ /**
25
+ * The table header title.
26
+ */
27
+ tableHeaderName: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ }, {
32
+ options: import("../fw-table/index.types").FwTableItemOptions;
33
+ sortedTableItems: import("vue").ComputedRef<import("../fw-table/index.types").FwTableItem[]>;
34
+ searchFilterModel: import("vue").Ref<string>;
35
+ statusFilterModel: import("vue").Ref<string>;
36
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
+ /**
38
+ * The header heading of the list.
39
+ */
40
+ heading: {
41
+ type: StringConstructor;
42
+ };
43
+ /**
44
+ * The list items of the table items.
45
+ */
46
+ items: {
47
+ type: PropType<FwProviderListItem[]>;
48
+ required: true;
49
+ };
50
+ /**
51
+ * The placeholder text for the sarch input.
52
+ */
53
+ searchPlaceholder: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ /**
58
+ * The table header title.
59
+ */
60
+ tableHeaderName: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ }>>, {
65
+ searchPlaceholder: string;
66
+ tableHeaderName: string;
67
+ }>;
68
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import FwProviderList from './fw-provider-list.vue';
2
+ export { FwProviderList };
@@ -0,0 +1,11 @@
1
+ export default interface FwProviderListItem {
2
+ status: 'supported' | 'outage';
3
+ name: string;
4
+ image_url: string;
5
+ }
6
+ export declare interface FwProviderListProps {
7
+ heading: string;
8
+ items: FwProviderListItem[];
9
+ searchPlaceholder?: string;
10
+ tableHeaderName?: string;
11
+ }
@@ -18,4 +18,6 @@ export * from './fw-transactions-card';
18
18
  export * from './fw-bar-chart';
19
19
  export * from './fw-sidebar-menu';
20
20
  export * from './fw-drawer';
21
+ export * from './fw-provider-list';
22
+ export * from './fw-date-picker';
21
23
  export * from './fw-animations';
@@ -15,3 +15,5 @@ export * from '../components/fw-transactions-card/index.types';
15
15
  export * from '../components/fw-bar-chart/index.types';
16
16
  export * from '../components/fw-sidebar-menu/index.types';
17
17
  export * from '../components/fw-drawer/index.types';
18
+ export * from '../components/fw-provider-list/index.types';
19
+ export * from '../components/fw-date-picker/index.types';
@@ -5,5 +5,13 @@ export declare const useColours: () => {
5
5
  fontFamily: string;
6
6
  colorBody: string;
7
7
  primaryFade5: string;
8
+ primaryFade10: string;
9
+ primaryFade20: string;
10
+ primaryFade30: string;
8
11
  primaryFade40: string;
12
+ primaryFade50: string;
13
+ primaryFade60: string;
14
+ primaryFade70: string;
15
+ primaryFade80: string;
16
+ primaryFade90: string;
9
17
  };
@@ -35,4 +35,6 @@ import ArrowDownSvg from './arrow-down.svg';
35
35
  import SearchSvg from './search.svg';
36
36
  import XMarkSvg from './xmark.svg';
37
37
  import PenSvg from './pen.svg';
38
- export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ChevronRightSvg, ChevronLeftSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg, BullseyeSvg, SolidCheckSvg, SolidXMarkSvg, ArrowSortSvg, ArrowDownSvg, SearchSvg, XMarkSvg, PenSvg };
38
+ import CalendarSvg from './calendar.svg';
39
+ import CalendarDaySvg from './calendar-day.svg';
40
+ export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ChevronRightSvg, ChevronLeftSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg, BullseyeSvg, SolidCheckSvg, SolidXMarkSvg, ArrowSortSvg, ArrowDownSvg, SearchSvg, XMarkSvg, PenSvg, CalendarSvg, CalendarDaySvg };