@frollo/frollo-web-ui 4.0.1 → 5.0.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 (46) hide show
  1. package/cjs/index.js +1906 -1538
  2. package/esm/fw-accordion.js +61 -28
  3. package/esm/fw-animations.js +2 -2
  4. package/esm/fw-bar-chart.js +2 -1
  5. package/esm/{fw-button-7902ae9e.js → fw-button-8d131219.js} +1 -1
  6. package/esm/fw-button.js +3 -3
  7. package/esm/fw-checkbox.js +25 -9
  8. package/esm/fw-drawer.js +225 -0
  9. package/esm/fw-dropdown.js +1 -1
  10. package/esm/{fw-image-c829ed20.js → fw-image-4787a8bd.js} +65 -59
  11. package/esm/fw-image.js +4 -4
  12. package/esm/fw-input.js +32 -27
  13. package/esm/{fw-loading-spinner-7462e0b2.js → fw-loading-spinner-c394fafc.js} +1 -1
  14. package/esm/fw-modal.js +3 -3
  15. package/esm/fw-navigation-menu.js +3 -3
  16. package/esm/fw-sidebar-menu.js +3 -3
  17. package/esm/fw-table.js +9 -9
  18. package/esm/fw-tag.js +93 -18
  19. package/esm/fw-toast.js +1 -1
  20. package/esm/fw-transactions-card.js +4 -4
  21. package/esm/get-root-colours-e2a1cb28.js +21 -0
  22. package/esm/{index-f0510452.js → index-2766bfe4.js} +12 -11
  23. package/esm/{index-dbe0534d.js → index-e4a2f8b0.js} +126 -98
  24. package/esm/index.js +40 -36
  25. package/frollo-web-ui.esm.js +2475 -2092
  26. package/icons/index.ts +5 -1
  27. package/icons/pen.svg +3 -0
  28. package/icons/xmark.svg +3 -0
  29. package/index.d.ts +406 -143
  30. package/package.json +1 -1
  31. package/types/components/fw-accordion/fw-accordion.vue.d.ts +22 -4
  32. package/types/components/fw-accordion/index.types.d.ts +1 -0
  33. package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +35 -3
  34. package/types/components/fw-checkbox/index.types.d.ts +2 -0
  35. package/types/components/fw-drawer/fw-drawer.vue.d.ts +165 -0
  36. package/types/components/fw-drawer/index.d.ts +2 -0
  37. package/types/components/fw-drawer/index.types.d.ts +14 -0
  38. package/types/components/fw-input/fw-input.vue.d.ts +14 -5
  39. package/types/components/fw-input/index.types.d.ts +1 -0
  40. package/types/components/fw-tag/fw-tag.vue.d.ts +30 -8
  41. package/types/components/fw-tag/index.types.d.ts +4 -2
  42. package/types/components/index.d.ts +1 -0
  43. package/types/components/index.types.d.ts +1 -0
  44. package/types/helpers/get-root-colours.d.ts +9 -0
  45. package/types/icons/index.d.ts +3 -1
  46. package/web-components/index.js +1770 -1387
package/index.d.ts CHANGED
@@ -20,9 +20,10 @@ declare interface FwInputProps {
20
20
  tabindex?: string;
21
21
  rounded?: boolean;
22
22
  enableErrors?: boolean;
23
+ maxLength?: number;
23
24
  }
24
25
 
25
- declare const _default$m: vue.DefineComponent<{
26
+ declare const _default$l: vue.DefineComponent<{
26
27
  /**
27
28
  * The input v-model
28
29
  */
@@ -56,7 +57,6 @@ declare const _default$m: vue.DefineComponent<{
56
57
  */
57
58
  placeholder: {
58
59
  type: StringConstructor;
59
- default: string;
60
60
  };
61
61
  /**
62
62
  * Validation rules. Accepts an object, string schema or validation function.
@@ -85,7 +85,7 @@ declare const _default$m: vue.DefineComponent<{
85
85
  };
86
86
  /**
87
87
  * The logical tab order of the input.
88
- * Defaults to 1
88
+ * Defaults to 0
89
89
  */
90
90
  tabindex: {
91
91
  type: StringConstructor;
@@ -107,6 +107,12 @@ declare const _default$m: vue.DefineComponent<{
107
107
  type: BooleanConstructor;
108
108
  default: boolean;
109
109
  };
110
+ /**
111
+ * The inputs `maxlength` attribute.
112
+ */
113
+ maxLength: {
114
+ type: NumberConstructor;
115
+ };
110
116
  }, {
111
117
  uuid: string;
112
118
  inputBaseClass: vue.Ref<string>;
@@ -145,7 +151,6 @@ declare const _default$m: vue.DefineComponent<{
145
151
  */
146
152
  placeholder: {
147
153
  type: StringConstructor;
148
- default: string;
149
154
  };
150
155
  /**
151
156
  * Validation rules. Accepts an object, string schema or validation function.
@@ -174,7 +179,7 @@ declare const _default$m: vue.DefineComponent<{
174
179
  };
175
180
  /**
176
181
  * The logical tab order of the input.
177
- * Defaults to 1
182
+ * Defaults to 0
178
183
  */
179
184
  tabindex: {
180
185
  type: StringConstructor;
@@ -196,26 +201,39 @@ declare const _default$m: vue.DefineComponent<{
196
201
  type: BooleanConstructor;
197
202
  default: boolean;
198
203
  };
204
+ /**
205
+ * The inputs `maxlength` attribute.
206
+ */
207
+ maxLength: {
208
+ type: NumberConstructor;
209
+ };
199
210
  }>> & {
200
211
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
201
212
  }, {
202
213
  modelValue: string;
203
214
  type: FwInputType;
204
- placeholder: string;
205
215
  readonly: boolean;
206
216
  tabindex: string;
207
217
  rounded: boolean;
208
218
  enableErrors: boolean;
209
219
  }>;
210
220
 
211
- declare const _default$l: vue.DefineComponent<{
221
+ declare const _default$k: vue.DefineComponent<{
212
222
  /**
213
- * The name of the input field. Must be unique per form.
223
+ * The name of the checkbox input field.
224
+ * Multiple checkboxes can use the same name with a unique value.
214
225
  */
215
226
  name: {
216
227
  type: StringConstructor;
217
228
  required: true;
218
229
  };
230
+ /**
231
+ * The value of the input field. Must be unique per name.
232
+ */
233
+ value: {
234
+ type: StringConstructor;
235
+ required: false;
236
+ };
219
237
  /**
220
238
  * Label for the input. Also renders to an aria-label attribute
221
239
  */
@@ -234,16 +252,31 @@ declare const _default$l: vue.DefineComponent<{
234
252
  hint: {
235
253
  type: StringConstructor;
236
254
  };
255
+ /**
256
+ * Enable or disable the error hidden element
257
+ */
258
+ enableErrors: {
259
+ type: BooleanConstructor;
260
+ default: boolean;
261
+ };
237
262
  }, {
238
263
  uuid: string;
239
264
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
240
265
  /**
241
- * The name of the input field. Must be unique per form.
266
+ * The name of the checkbox input field.
267
+ * Multiple checkboxes can use the same name with a unique value.
242
268
  */
243
269
  name: {
244
270
  type: StringConstructor;
245
271
  required: true;
246
272
  };
273
+ /**
274
+ * The value of the input field. Must be unique per name.
275
+ */
276
+ value: {
277
+ type: StringConstructor;
278
+ required: false;
279
+ };
247
280
  /**
248
281
  * Label for the input. Also renders to an aria-label attribute
249
282
  */
@@ -262,7 +295,16 @@ declare const _default$l: vue.DefineComponent<{
262
295
  hint: {
263
296
  type: StringConstructor;
264
297
  };
265
- }>>, {}>;
298
+ /**
299
+ * Enable or disable the error hidden element
300
+ */
301
+ enableErrors: {
302
+ type: BooleanConstructor;
303
+ default: boolean;
304
+ };
305
+ }>>, {
306
+ enableErrors: boolean;
307
+ }>;
266
308
 
267
309
  declare interface FwDropdownOption {
268
310
  label: string;
@@ -277,7 +319,7 @@ declare interface FwDropdownProps {
277
319
  placeholder?: string;
278
320
  }
279
321
 
280
- declare const _default$k: vue.DefineComponent<{
322
+ declare const _default$j: vue.DefineComponent<{
281
323
  /**
282
324
  * The select v-model
283
325
  */
@@ -388,7 +430,7 @@ declare const _default$k: vue.DefineComponent<{
388
430
  placeholder: string;
389
431
  }>;
390
432
 
391
- declare const _default$j: vue.DefineComponent<{
433
+ declare const _default$i: vue.DefineComponent<{
392
434
  /**
393
435
  * The header title of the card
394
436
  */
@@ -497,7 +539,7 @@ declare interface FwButtonProps {
497
539
  external?: boolean;
498
540
  }
499
541
 
500
- declare const _default$i: vue.DefineComponent<{
542
+ declare const _default$h: vue.DefineComponent<{
501
543
  /**
502
544
  * A `router-link` path or object
503
545
  */
@@ -678,7 +720,7 @@ declare interface NavMenuItem {
678
720
  external?: boolean;
679
721
  }
680
722
 
681
- declare const _default$h: vue.DefineComponent<{
723
+ declare const _default$g: vue.DefineComponent<{
682
724
  /**
683
725
  * An array of menu items
684
726
  * `{ to?: string | object; href?: string; label: string; }`
@@ -733,7 +775,7 @@ declare const _default$h: vue.DefineComponent<{
733
775
  containerClass: string;
734
776
  }>;
735
777
 
736
- declare const _default$g: vue.DefineComponent<{
778
+ declare const _default$f: vue.DefineComponent<{
737
779
  /**
738
780
  * The active tab v-model
739
781
  */
@@ -757,7 +799,7 @@ declare const _default$g: vue.DefineComponent<{
757
799
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
758
800
  }, {}>;
759
801
 
760
- declare const _default$f: vue.DefineComponent<{
802
+ declare const _default$e: vue.DefineComponent<{
761
803
  /**
762
804
  * The label of the tab component used as the button panel label
763
805
  */
@@ -789,7 +831,7 @@ declare const _default$f: vue.DefineComponent<{
789
831
  };
790
832
  }>>, {}>;
791
833
 
792
- declare const _default$e: vue.DefineComponent<{
834
+ declare const _default$d: vue.DefineComponent<{
793
835
  /**
794
836
  * The modal's v-model. Controls the visibility of the modal.
795
837
  */
@@ -968,7 +1010,7 @@ declare interface ProgressBarStep {
968
1010
  subSteps: number;
969
1011
  }
970
1012
 
971
- declare const _default$d: vue.DefineComponent<{
1013
+ declare const _default$c: vue.DefineComponent<{
972
1014
  /**
973
1015
  * An array of menu progress steps.
974
1016
  * `{ label: string; position: number; subSteps: number; }`
@@ -1018,15 +1060,48 @@ declare const _default$d: vue.DefineComponent<{
1018
1060
  };
1019
1061
  }>>, {}>;
1020
1062
 
1021
- declare type TagVariantName = 'primary' | 'alert' | 'error' | 'success';
1063
+ declare interface FwCardProps {
1064
+ title?: string;
1065
+ prefixTitle?: string;
1066
+ to?: string | object;
1067
+ href?: string;
1068
+ slotPadding?: boolean;
1069
+ isBordered?: boolean;
1070
+ }
1071
+
1072
+ declare interface FwCheckboxProps {
1073
+ name: string;
1074
+ value?: string;
1075
+ label?: string;
1076
+ rules?: string | Record<string, unknown> | (() => boolean);
1077
+ hint?: string;
1078
+ enableErrors?: boolean;
1079
+ }
1080
+
1081
+ declare interface FwModalProps {
1082
+ modelValue: boolean;
1083
+ header?: string;
1084
+ element?: string;
1085
+ body?: string;
1086
+ role?: string;
1087
+ showCancel?: boolean;
1088
+ showConfirm?: boolean;
1089
+ cancelButtonText?: string;
1090
+ cancelButtonType?: ButtonVariantName;
1091
+ confirmButtonText?: string;
1092
+ confirmButtonType?: ButtonVariantName;
1093
+ }
1094
+
1095
+ declare type TagVariantName = 'primary' | 'secondary' | 'alert' | 'error' | 'success';
1022
1096
  declare interface TagDefinition {
1023
1097
  text: string;
1024
1098
  background: string;
1099
+ iconType: FwButtonProps['variant'];
1025
1100
  }
1026
1101
  declare type TagDefinitionList = {
1027
1102
  [key in TagVariantName]: TagDefinition;
1028
1103
  };
1029
- declare type TagSize = 'xs' | 'sm';
1104
+ declare type TagSize = 'xs' | 'sm' | 'md';
1030
1105
  declare type TagSizes = {
1031
1106
  [key in TagSize]: string;
1032
1107
  };
@@ -1035,9 +1110,97 @@ declare interface FwTagProps {
1035
1110
  variant?: TagVariantName;
1036
1111
  }
1037
1112
 
1038
- declare const _default$c: vue.DefineComponent<{
1113
+ declare type FwTableItem = Record<string, string | number>;
1114
+ declare type FwTableFormatFunction = (value: string | number | object) => string;
1115
+ declare type FwTableSort = 'asc' | 'desc';
1116
+ declare type FwTableItemOptions = Record<string, {
1117
+ formatter?: FwTableFormatFunction;
1118
+ isSortable?: boolean;
1119
+ disabled?: boolean;
1120
+ initSortOrder?: FwTableSort;
1121
+ }>;
1122
+ declare interface FwTableProps {
1123
+ items: FwTableItem[];
1124
+ options?: FwTableItemOptions;
1125
+ loading?: boolean;
1126
+ clickableRows?: boolean;
1127
+ autoSortColumn?: number;
1128
+ }
1129
+
1130
+ declare interface FwAccordionProps {
1131
+ title?: string;
1132
+ suffixTitle?: string;
1133
+ isOpened?: boolean;
1134
+ iconPositionStart?: boolean;
1135
+ }
1136
+
1137
+ declare interface FwImageProps {
1138
+ src?: string;
1139
+ alt?: string;
1140
+ type?: 'native' | 'background';
1141
+ rounded?: boolean;
1142
+ imageClass?: string;
1143
+ threshold?: number;
1144
+ }
1145
+
1146
+ declare type ToastType = 'success' | 'error' | 'warning';
1147
+ declare type ToastTypes = {
1148
+ [key in ToastType]: string;
1149
+ };
1150
+ declare type ToastPosition = 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
1151
+ declare interface FwToastProps {
1152
+ modelValue: boolean;
1153
+ type?: ToastType;
1154
+ position?: ToastPosition;
1155
+ content?: string;
1156
+ element?: string;
1157
+ timeout?: number;
1158
+ }
1159
+
1160
+ declare interface FwTransactionsCardProps {
1161
+ title: string;
1162
+ subTitle?: string;
1163
+ imageUrl?: string;
1164
+ amount?: string;
1165
+ }
1166
+
1167
+ declare interface FwBarGraphData {
1168
+ name: string;
1169
+ value: string | number;
1170
+ }
1171
+ declare interface FwBarChartProps {
1172
+ title?: string;
1173
+ yMarker?: string;
1174
+ x?: string[] | string;
1175
+ y?: (string | number)[] | string;
1176
+ graphData?: FwBarGraphData[] | string;
1177
+ }
1178
+
1179
+ declare interface FwSidebarMenuItem {
1180
+ to?: string | object;
1181
+ href?: string;
1182
+ label: string;
1183
+ external?: boolean;
1184
+ disabled?: boolean;
1185
+ }
1186
+
1187
+ declare interface FwDrawerProps {
1188
+ modelValue: boolean;
1189
+ header?: string;
1190
+ element?: string;
1191
+ body?: string;
1192
+ role?: string;
1193
+ showCancel?: boolean;
1194
+ showConfirm?: boolean;
1195
+ cancelButtonText?: string;
1196
+ cancelButtonType?: ButtonVariantName;
1197
+ confirmButtonText?: string;
1198
+ confirmButtonType?: ButtonVariantName;
1199
+ }
1200
+
1201
+ declare const __default__$4: vue.DefineComponent<{
1039
1202
  /**
1040
- * The size of the tag. Accepts: 'xs' & 'sm'
1203
+ * The size of the tag. Accepts: 'xs', 'sm' & 'md'
1041
1204
  */
1042
1205
  size: {
1043
1206
  type: PropType<TagSize>;
@@ -1046,21 +1209,32 @@ declare const _default$c: vue.DefineComponent<{
1046
1209
  };
1047
1210
  /**
1048
1211
  * The colour variant of the tag.
1049
- * Accepts 'primary', 'alert', 'error', 'success'
1212
+ * Accepts 'primary', 'secondary', 'alert', 'error', 'success'
1050
1213
  */
1051
1214
  variant: {
1052
1215
  type: PropType<TagVariantName>;
1053
1216
  default: string;
1054
1217
  validator: (value: string) => boolean;
1055
1218
  };
1219
+ /**
1220
+ * Whether the tag can be dismissed or closed.
1221
+ * Emits the @dismissed event
1222
+ */
1223
+ dismissable: {
1224
+ type: BooleanConstructor;
1225
+ default: boolean;
1226
+ };
1056
1227
  }, {
1057
1228
  baseClass: vue.Ref<string>;
1058
1229
  textColorClass: vue.ComputedRef<string>;
1059
1230
  bgColorClass: vue.ComputedRef<string>;
1060
1231
  sizeClass: vue.ComputedRef<string>;
1061
- }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1232
+ iconSizeClass: vue.ComputedRef<string>;
1233
+ iconButtonType: vue.ComputedRef<ButtonVariantName | undefined>;
1234
+ primaryFade5: string;
1235
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "dismissed"[], "dismissed", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1062
1236
  /**
1063
- * The size of the tag. Accepts: 'xs' & 'sm'
1237
+ * The size of the tag. Accepts: 'xs', 'sm' & 'md'
1064
1238
  */
1065
1239
  size: {
1066
1240
  type: PropType<TagSize>;
@@ -1069,36 +1243,30 @@ declare const _default$c: vue.DefineComponent<{
1069
1243
  };
1070
1244
  /**
1071
1245
  * The colour variant of the tag.
1072
- * Accepts 'primary', 'alert', 'error', 'success'
1246
+ * Accepts 'primary', 'secondary', 'alert', 'error', 'success'
1073
1247
  */
1074
1248
  variant: {
1075
1249
  type: PropType<TagVariantName>;
1076
1250
  default: string;
1077
1251
  validator: (value: string) => boolean;
1078
1252
  };
1079
- }>>, {
1253
+ /**
1254
+ * Whether the tag can be dismissed or closed.
1255
+ * Emits the @dismissed event
1256
+ */
1257
+ dismissable: {
1258
+ type: BooleanConstructor;
1259
+ default: boolean;
1260
+ };
1261
+ }>> & {
1262
+ onDismissed?: ((...args: any[]) => any) | undefined;
1263
+ }, {
1080
1264
  size: TagSize;
1081
1265
  variant: TagVariantName;
1266
+ dismissable: boolean;
1082
1267
  }>;
1083
1268
 
1084
- declare type FwTableItem = Record<string, string | number>;
1085
- declare type FwTableFormatFunction = (value: string | number | object) => string;
1086
- declare type FwTableSort = 'asc' | 'desc';
1087
- declare type FwTableItemOptions = Record<string, {
1088
- formatter?: FwTableFormatFunction;
1089
- isSortable?: boolean;
1090
- disabled?: boolean;
1091
- initSortOrder?: FwTableSort;
1092
- }>;
1093
- declare interface FwTableProps {
1094
- items: FwTableItem[];
1095
- options?: FwTableItemOptions;
1096
- loading?: boolean;
1097
- clickableRows?: boolean;
1098
- autoSortColumn?: number;
1099
- }
1100
-
1101
- declare const __default__$2: vue.DefineComponent<{
1269
+ declare const __default__$3: vue.DefineComponent<{
1102
1270
  items: {
1103
1271
  type: PropType<FwTableItem[]>;
1104
1272
  required: true;
@@ -1170,7 +1338,7 @@ declare const _default$b: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentO
1170
1338
 
1171
1339
  declare const _default$a: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1172
1340
 
1173
- declare const _default$9: vue.DefineComponent<{
1341
+ declare const __default__$2: vue.DefineComponent<{
1174
1342
  /**
1175
1343
  * The header title of the accordion
1176
1344
  */
@@ -1190,10 +1358,20 @@ declare const _default$9: vue.DefineComponent<{
1190
1358
  type: BooleanConstructor;
1191
1359
  default: boolean;
1192
1360
  };
1361
+ /**
1362
+ * Whether the accordion open icon should be at the start or end
1363
+ */
1364
+ iconPositionStart: {
1365
+ type: BooleanConstructor;
1366
+ default: boolean;
1367
+ };
1193
1368
  }, {
1194
1369
  isOpen: vue.Ref<boolean>;
1195
- transitionEnter: (el: HTMLElement) => void;
1196
- transitionLeave: (el: HTMLElement) => void;
1370
+ beforeEnter: (el: Element) => void;
1371
+ enter: (el: Element) => void;
1372
+ beforeLeave: (el: Element) => void;
1373
+ leave: (el: Element) => void;
1374
+ bgHoverColor: string;
1197
1375
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1198
1376
  /**
1199
1377
  * The header title of the accordion
@@ -1214,11 +1392,19 @@ declare const _default$9: vue.DefineComponent<{
1214
1392
  type: BooleanConstructor;
1215
1393
  default: boolean;
1216
1394
  };
1395
+ /**
1396
+ * Whether the accordion open icon should be at the start or end
1397
+ */
1398
+ iconPositionStart: {
1399
+ type: BooleanConstructor;
1400
+ default: boolean;
1401
+ };
1217
1402
  }>>, {
1218
1403
  isOpened: boolean;
1404
+ iconPositionStart: boolean;
1219
1405
  }>;
1220
1406
 
1221
- declare const _default$8: vue.DefineComponent<{
1407
+ declare const _default$9: vue.DefineComponent<{
1222
1408
  /**
1223
1409
  * The src attribute of the image
1224
1410
  */
@@ -1301,11 +1487,11 @@ declare const _default$8: vue.DefineComponent<{
1301
1487
  threshold: number;
1302
1488
  }>;
1303
1489
 
1304
- declare const _default$7: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1490
+ declare const _default$8: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1305
1491
 
1306
- declare const _default$6: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1492
+ declare const _default$7: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1307
1493
 
1308
- declare const _default$5: vue.DefineComponent<{
1494
+ declare const _default$6: vue.DefineComponent<{
1309
1495
  columns: {
1310
1496
  type: NumberConstructor;
1311
1497
  default: number;
@@ -1330,21 +1516,7 @@ declare const _default$5: vue.DefineComponent<{
1330
1516
  rows: number;
1331
1517
  }>;
1332
1518
 
1333
- declare type ToastType = 'success' | 'error' | 'warning';
1334
- declare type ToastTypes = {
1335
- [key in ToastType]: string;
1336
- };
1337
- declare type ToastPosition = 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
1338
- declare interface FwToastProps {
1339
- modelValue: boolean;
1340
- type?: ToastType;
1341
- position?: ToastPosition;
1342
- content?: string;
1343
- element?: string;
1344
- timeout?: number;
1345
- }
1346
-
1347
- declare const _default$4: vue.DefineComponent<{
1519
+ declare const _default$5: vue.DefineComponent<{
1348
1520
  /**
1349
1521
  * The toast's v-model. Controls the visibility of the toast.
1350
1522
  */
@@ -1463,7 +1635,7 @@ declare const _default$4: vue.DefineComponent<{
1463
1635
  timeout: number;
1464
1636
  }>;
1465
1637
 
1466
- declare const _default$3: vue.DefineComponent<{
1638
+ declare const _default$4: vue.DefineComponent<{
1467
1639
  /**
1468
1640
  * The transaction title of the card
1469
1641
  */
@@ -1521,19 +1693,7 @@ declare const _default$3: vue.DefineComponent<{
1521
1693
  };
1522
1694
  }>>, {}>;
1523
1695
 
1524
- declare interface FwBarGraphData {
1525
- name: string;
1526
- value: string | number;
1527
- }
1528
- declare interface FwBarChartProps {
1529
- title?: string;
1530
- yMarker?: string;
1531
- x?: string[] | string;
1532
- y?: (string | number)[] | string;
1533
- graphData?: FwBarGraphData[] | string;
1534
- }
1535
-
1536
- declare const _default$2: vue.DefineComponent<{
1696
+ declare const _default$3: vue.DefineComponent<{
1537
1697
  /**
1538
1698
  * The transaction title of the chart
1539
1699
  */
@@ -1614,15 +1774,7 @@ declare const _default$2: vue.DefineComponent<{
1614
1774
  };
1615
1775
  }>>, {}>;
1616
1776
 
1617
- declare interface FwSidebarMenuItem {
1618
- to?: string | object;
1619
- href?: string;
1620
- label: string;
1621
- external?: boolean;
1622
- disabled?: boolean;
1623
- }
1624
-
1625
- declare const _default$1: vue.DefineComponent<{
1777
+ declare const _default$2: vue.DefineComponent<{
1626
1778
  /**
1627
1779
  * An array of menu items
1628
1780
  * `{ to?: string | object; href?: string; label: string; }`
@@ -1692,6 +1844,169 @@ declare const _default$1: vue.DefineComponent<{
1692
1844
  closedWidth: string;
1693
1845
  }>;
1694
1846
 
1847
+ declare const _default$1: vue.DefineComponent<{
1848
+ /**
1849
+ * The drawer's v-model. Controls the visibility of the drawer.
1850
+ */
1851
+ modelValue: {
1852
+ type: BooleanConstructor;
1853
+ };
1854
+ /**
1855
+ * The header title of the drawer
1856
+ */
1857
+ header: {
1858
+ type: StringConstructor;
1859
+ };
1860
+ /**
1861
+ * The body description of the drawer
1862
+ */
1863
+ body: {
1864
+ type: StringConstructor;
1865
+ };
1866
+ /**
1867
+ * The aria role of the drawer container. Defaults to `dialog`
1868
+ */
1869
+ role: {
1870
+ type: StringConstructor;
1871
+ default: string;
1872
+ };
1873
+ /**
1874
+ * Whether to show the cancel button
1875
+ */
1876
+ showCancel: {
1877
+ type: BooleanConstructor;
1878
+ default: boolean;
1879
+ };
1880
+ /**
1881
+ * Whether to show the confirm button
1882
+ */
1883
+ showConfirm: {
1884
+ type: BooleanConstructor;
1885
+ default: boolean;
1886
+ };
1887
+ /**
1888
+ * Custom text for the cancel button
1889
+ */
1890
+ cancelButtonText: {
1891
+ type: StringConstructor;
1892
+ default: string;
1893
+ };
1894
+ /**
1895
+ * Button variant for the cancel button
1896
+ */
1897
+ cancelButtonType: {
1898
+ type: PropType<ButtonVariantName>;
1899
+ default: string;
1900
+ validator: (value: string) => boolean;
1901
+ };
1902
+ /**
1903
+ * Custom text for the confirm button
1904
+ */
1905
+ confirmButtonText: {
1906
+ type: StringConstructor;
1907
+ default: string;
1908
+ };
1909
+ /**
1910
+ * Button variant for the confirm button
1911
+ */
1912
+ confirmButtonType: {
1913
+ type: PropType<ButtonVariantName>;
1914
+ default: string;
1915
+ validator: (value: string) => boolean;
1916
+ };
1917
+ }, {
1918
+ baseDrawerClass: string;
1919
+ drawerFooterClass: string;
1920
+ isOpen: vue.WritableComputedRef<boolean>;
1921
+ uuid: string;
1922
+ isMounted: vue.Ref<boolean>;
1923
+ onConfirmed: () => void;
1924
+ onCancelled: () => void;
1925
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("update:modelValue" | "cancel" | "confirm")[], "update:modelValue" | "cancel" | "confirm", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1926
+ /**
1927
+ * The drawer's v-model. Controls the visibility of the drawer.
1928
+ */
1929
+ modelValue: {
1930
+ type: BooleanConstructor;
1931
+ };
1932
+ /**
1933
+ * The header title of the drawer
1934
+ */
1935
+ header: {
1936
+ type: StringConstructor;
1937
+ };
1938
+ /**
1939
+ * The body description of the drawer
1940
+ */
1941
+ body: {
1942
+ type: StringConstructor;
1943
+ };
1944
+ /**
1945
+ * The aria role of the drawer container. Defaults to `dialog`
1946
+ */
1947
+ role: {
1948
+ type: StringConstructor;
1949
+ default: string;
1950
+ };
1951
+ /**
1952
+ * Whether to show the cancel button
1953
+ */
1954
+ showCancel: {
1955
+ type: BooleanConstructor;
1956
+ default: boolean;
1957
+ };
1958
+ /**
1959
+ * Whether to show the confirm button
1960
+ */
1961
+ showConfirm: {
1962
+ type: BooleanConstructor;
1963
+ default: boolean;
1964
+ };
1965
+ /**
1966
+ * Custom text for the cancel button
1967
+ */
1968
+ cancelButtonText: {
1969
+ type: StringConstructor;
1970
+ default: string;
1971
+ };
1972
+ /**
1973
+ * Button variant for the cancel button
1974
+ */
1975
+ cancelButtonType: {
1976
+ type: PropType<ButtonVariantName>;
1977
+ default: string;
1978
+ validator: (value: string) => boolean;
1979
+ };
1980
+ /**
1981
+ * Custom text for the confirm button
1982
+ */
1983
+ confirmButtonText: {
1984
+ type: StringConstructor;
1985
+ default: string;
1986
+ };
1987
+ /**
1988
+ * Button variant for the confirm button
1989
+ */
1990
+ confirmButtonType: {
1991
+ type: PropType<ButtonVariantName>;
1992
+ default: string;
1993
+ validator: (value: string) => boolean;
1994
+ };
1995
+ }>> & {
1996
+ onCancel?: ((...args: any[]) => any) | undefined;
1997
+ onConfirm?: ((...args: any[]) => any) | undefined;
1998
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1999
+ }, {
2000
+ modelValue: boolean;
2001
+ role: string;
2002
+ showCancel: boolean;
2003
+ showConfirm: boolean;
2004
+ cancelButtonText: string;
2005
+ cancelButtonType: ButtonVariantName;
2006
+ confirmButtonText: string;
2007
+ confirmButtonType: ButtonVariantName;
2008
+ }>;
2009
+
1695
2010
  declare const __default__$1: vue.DefineComponent<{
1696
2011
  /**
1697
2012
  * The animation-iteration-count CSS property of the pulse animation.
@@ -1742,20 +2057,6 @@ declare const __default__: vue.DefineComponent<{
1742
2057
 
1743
2058
  declare const _default: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1744
2059
 
1745
- declare interface FwModalProps {
1746
- modelValue: boolean;
1747
- header?: string;
1748
- element?: string;
1749
- body?: string;
1750
- role?: string;
1751
- showCancel?: boolean;
1752
- showConfirm?: boolean;
1753
- cancelButtonText?: string;
1754
- cancelButtonType?: ButtonVariantName;
1755
- confirmButtonText?: string;
1756
- confirmButtonType?: ButtonVariantName;
1757
- }
1758
-
1759
2060
  declare interface ModalServiceProps extends Omit<FwModalProps, 'modelValue'> {
1760
2061
  onConfirm?: () => void;
1761
2062
  onCancel?: () => void;
@@ -1776,44 +2077,6 @@ declare const toastService: () => {
1776
2077
 
1777
2078
  declare const install: Exclude<Plugin['install'], undefined>;
1778
2079
 
1779
- declare interface FwCardProps {
1780
- title?: string;
1781
- prefixTitle?: string;
1782
- to?: string | object;
1783
- href?: string;
1784
- slotPadding?: boolean;
1785
- isBordered?: boolean;
1786
- }
1787
-
1788
- declare interface FwCheckboxProps {
1789
- name: string;
1790
- label?: string;
1791
- rules?: string | Record<string, unknown> | (() => boolean);
1792
- hint?: string;
1793
- }
1794
-
1795
- declare interface FwAccordionProps {
1796
- title?: string;
1797
- suffixTitle?: string;
1798
- isOpened?: boolean;
1799
- }
1800
-
1801
- declare interface FwImageProps {
1802
- src?: string;
1803
- alt?: string;
1804
- type?: 'native' | 'background';
1805
- rounded?: boolean;
1806
- imageClass?: string;
1807
- threshold?: number;
1808
- }
1809
-
1810
- declare interface FwTransactionsCardProps {
1811
- title: string;
1812
- subTitle?: string;
1813
- imageUrl?: string;
1814
- amount?: string;
1815
- }
1816
-
1817
2080
  declare module '@frollo/frollo-web-ui/icons' { }
1818
2081
 
1819
- export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$9 as FwAccordion, FwAccordionProps, _default$2 as FwBarChart, FwBarChartProps, FwBarGraphData, _default$i as FwButton, FwButtonProps, _default$j as FwCard, FwCardProps, _default$l as FwCheckbox, FwCheckboxProps, _default$k as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$8 as FwImage, FwImageProps, _default$m as FwInput, FwInputProps, FwInputType, _default$7 as FwLoadingBar, _default$6 as FwLoadingCard, _default as FwLoadingSpinner, _default$5 as FwLoadingTable, _default$e as FwModal, FwModalProps, _default$h as FwNavigationMenu, _default$d as FwProgressBar, _default$1 as FwSidebarMenu, FwSidebarMenuItem, __default__ as FwSuccessPulse, _default$f as FwTab, __default__$2 as FwTable, FwTableFormatFunction, _default$b as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$a as FwTableRow, FwTableSort, _default$g as FwTabs, _default$c as FwTag, FwTagProps, _default$4 as FwToast, FwToastProps, _default$3 as FwTransactionsCard, FwTransactionsCardProps, ModalServiceProps, NavMenuItem, ProgressBarStep, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, ToastPosition, ToastServiceProps, ToastType, ToastTypes, install as default, modalService, toastService };
2082
+ export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, __default__$2 as FwAccordion, FwAccordionProps, _default$3 as FwBarChart, FwBarChartProps, FwBarGraphData, _default$h as FwButton, FwButtonProps, _default$i as FwCard, FwCardProps, _default$k as FwCheckbox, FwCheckboxProps, _default$1 as FwDrawer, FwDrawerProps, _default$j as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$9 as FwImage, FwImageProps, _default$l as FwInput, FwInputProps, FwInputType, _default$8 as FwLoadingBar, _default$7 as FwLoadingCard, _default as FwLoadingSpinner, _default$6 as FwLoadingTable, _default$d as FwModal, FwModalProps, _default$g as FwNavigationMenu, _default$c as FwProgressBar, _default$2 as FwSidebarMenu, FwSidebarMenuItem, __default__ as FwSuccessPulse, _default$e as FwTab, __default__$3 as FwTable, FwTableFormatFunction, _default$b as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$a as FwTableRow, FwTableSort, _default$f as FwTabs, __default__$4 as FwTag, FwTagProps, _default$5 as FwToast, FwToastProps, _default$4 as FwTransactionsCard, FwTransactionsCardProps, ModalServiceProps, NavMenuItem, ProgressBarStep, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, ToastPosition, ToastServiceProps, ToastType, ToastTypes, install as default, modalService, toastService };