@frollo/frollo-web-ui 1.2.9 → 3.0.0

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 (67) hide show
  1. package/cjs/index.js +1116 -618
  2. package/esm/{add-to-unscopables-a5032b1d.js → add-to-unscopables-3f461c07.js} +3 -3
  3. package/esm/array-iteration-98e2cf9a.js +93 -0
  4. package/esm/array-method-is-strict-544b103f.js +14 -0
  5. package/esm/array-species-create-5fc23c89.js +98 -0
  6. package/esm/{classof-088c9833.js → classof-a45668b6.js} +2 -2
  7. package/esm/create-property-558a3c24.js +15 -0
  8. package/esm/{es.array.find-54b8f84b.js → es.array.find-36d8f2f0.js} +6 -6
  9. package/esm/{es.array.includes-9a6e4066.js → es.array.includes-df8e6e35.js} +4 -4
  10. package/esm/{es.function.name-2fa3a718.js → es.function.name-b642b74f.js} +1 -1
  11. package/esm/{es.number.constructor-b7faae1f.js → es.number.constructor-f279ce82.js} +3 -3
  12. package/esm/{function-name-c49146fc.js → function-name-e2f6ea36.js} +1 -1
  13. package/esm/fw-animations.js +7 -7
  14. package/esm/{fw-button-6aa9b68f.js → fw-button-df5c923f.js} +2 -2
  15. package/esm/fw-button.js +8 -8
  16. package/esm/fw-card-8d3f4ab5.js +95 -0
  17. package/esm/fw-card.js +2 -95
  18. package/esm/fw-checkbox.js +2 -2
  19. package/esm/fw-dropdown.js +10 -9
  20. package/esm/fw-image-ec7b02c5.js +770 -0
  21. package/esm/fw-image.js +19 -847
  22. package/esm/fw-input.js +6 -6
  23. package/esm/{fw-loading-spinner-649aa589.js → fw-loading-spinner-9b7c6855.js} +1 -1
  24. package/esm/fw-loading.js +5 -5
  25. package/esm/fw-modal.js +228 -11
  26. package/esm/fw-navigation-menu.js +8 -8
  27. package/esm/fw-progress-bar.js +5 -5
  28. package/esm/fw-table.js +8 -7
  29. package/esm/fw-tabs.js +9 -8
  30. package/esm/fw-tag.js +5 -5
  31. package/esm/fw-toast.js +372 -0
  32. package/esm/fw-transactions-card.js +118 -0
  33. package/esm/{index-403af654.js → index-4605e00e.js} +130 -88
  34. package/esm/index.js +82 -47
  35. package/esm/{is-forced-fd46b5f2.js → is-forced-ddf227e6.js} +2 -2
  36. package/esm/{object-keys-3c73c404.js → object-keys-6a890c6f.js} +2 -2
  37. package/esm/{to-string-c2bd1f4d.js → to-string-685748aa.js} +2 -2
  38. package/esm/uniqueId-fe08534a.js +279 -0
  39. package/esm/web.timers-4a6aaab8.js +82 -0
  40. package/frollo-web-ui.esm.js +1208 -668
  41. package/icons/bullseye.svg +3 -0
  42. package/icons/icons.stories.ts +3 -3
  43. package/icons/index.ts +7 -1
  44. package/icons/solid-check.svg +3 -0
  45. package/icons/solid-xmark.svg +3 -0
  46. package/index.d.ts +261 -22
  47. package/package.json +2 -1
  48. package/styles/web-components.scss +8 -0
  49. package/types/components/fw-modal/fw-modal.vue.d.ts +30 -0
  50. package/types/components/fw-modal/index.types.d.ts +2 -0
  51. package/types/components/fw-toast/fw-toast.vue.d.ts +121 -0
  52. package/types/components/fw-toast/index.d.ts +2 -0
  53. package/types/components/fw-toast/index.types.d.ts +13 -0
  54. package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +58 -0
  55. package/types/components/fw-transactions-card/index.d.ts +2 -0
  56. package/types/components/fw-transactions-card/index.types.d.ts +6 -0
  57. package/types/components/index.d.ts +2 -0
  58. package/types/components/index.types.d.ts +2 -0
  59. package/types/icons/index.d.ts +4 -1
  60. package/types/index.browser-umd.d.ts +1 -0
  61. package/types/services/index.d.ts +1 -0
  62. package/types/services/modal.d.ts +2 -2
  63. package/types/services/toast.d.ts +9 -0
  64. package/web-components/index.js +21435 -0
  65. package/esm/array-iteration-4f83e223.js +0 -186
  66. package/esm/create-property-da6d232b.js +0 -26
  67. package/esm/index-61020c18.js +0 -475
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 26 27" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M15.045 2.129C14.99 2.182 14.93 2.2365 14.875 2.292C14.205 2.166 13.51 2.1 12.8 2.1C6.615 2.1 1.6 7.115 1.6 13.3C1.6 19.485 6.615 24.5 12.8 24.5C18.985 24.5 24 19.485 24 13.3C24 12.59 23.935 11.895 23.81 11.225C23.865 11.17 23.92 11.11 23.97 11.055L25.11 9.785C25.43 10.9 25.6 12.08 25.6 13.3C25.6 20.37 19.87 26.1 12.8 26.1C5.73 26.1 0 20.37 0 13.3C0 6.23 5.73 0.5 12.8 0.5C14.02 0.5 15.155 0.6703 16.315 0.9884L15.045 2.129ZM13.775 5.76L13.985 7.01C13.6 6.94 13.205 6.855 12.755 6.855C9.265 6.855 6.355 9.765 6.355 13.255C6.355 16.835 9.265 19.7 12.755 19.7C16.335 19.7 19.2 16.835 19.2 13.255C19.2 12.895 19.16 12.455 19.09 12.115L20.34 12.325C20.475 12.345 20.61 12.36 20.745 12.37C20.78 12.675 20.8 12.985 20.8 13.255C20.8 17.72 17.22 21.3 12.8 21.3C8.38 21.3 4.8 17.72 4.8 13.255C4.8 8.88 8.38 5.255 12.8 5.255C13.115 5.255 13.425 5.318 13.73 5.3535C13.74 5.489 13.755 5.625 13.775 5.76ZM17.075 10.155L13.365 13.865C13.055 14.18 12.545 14.18 12.235 13.865C11.92 13.555 11.92 13.045 12.235 12.735L15.945 9.025L15.355 5.505C15.22 4.6895 15.51 3.863 16.13 3.315L18.555 1.1185C19.255 0.53592 20.295 0.83055 20.545 1.671L21.44 4.6575L24.43 5.555C25.27 5.805 25.565 6.845 24.98 7.5L22.785 9.97C22.235 10.59 21.41 10.88 20.595 10.745L17.075 10.155ZM18.465 8.765L20.86 9.165C21.13 9.21 21.405 9.115 21.59 8.91L23.37 6.905L21.03 6.205L18.465 8.765ZM19.895 5.072L19.195 2.731L17.19 4.511C16.985 4.6935 16.89 4.969 16.935 5.24L17.335 7.635L19.895 5.072Z" />
3
+ </svg>
@@ -10,12 +10,12 @@ const Template = () => ({
10
10
  components: { FwCard },
11
11
  template: `
12
12
  <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 w-full items-center">
13
- <FwCard v-for="icon, i in icons" :key="i">
13
+ <div class="p-6 border-grey-20 border" v-for="icon, i in icons" :key="i">
14
14
  <div class="flex flex-col items-center justify-center space-y-3">
15
- <component :is="icon" class="w-16 h-16 text-primary" />
15
+ <component :is="icon" class="w-10 h-10 text-body" />
16
16
  <span class="text-sm capitalize font-medium">{{ extractFilename(icon.__file) }}</span>
17
17
  </div>
18
- </FwCard>
18
+ </div>
19
19
  </div>`,
20
20
  setup() {
21
21
  const extractFilename = (path: string) => {
package/icons/index.ts CHANGED
@@ -25,6 +25,9 @@ import SortLightSvg from './sort-light.svg';
25
25
  import PlusSvg from './plus.svg';
26
26
  import UserSvg from './user.svg';
27
27
  import LoadingSvg from './loading.svg';
28
+ import BullseyeSvg from './bullseye.svg';
29
+ import SolidCheckSvg from './solid-check.svg';
30
+ import SolidXMarkSvg from './solid-xmark.svg';
28
31
 
29
32
  export {
30
33
  ViewSvg,
@@ -53,5 +56,8 @@ export {
53
56
  SortLightSvg,
54
57
  PlusSvg,
55
58
  UserSvg,
56
- LoadingSvg
59
+ LoadingSvg,
60
+ BullseyeSvg,
61
+ SolidCheckSvg,
62
+ SolidXMarkSvg
57
63
  };
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0 12C0 5.37188 5.37188 0 12 0C18.6281 0 24 5.37188 24 12C24 18.6281 18.6281 24 12 24C5.37188 24 0 18.6281 0 12ZM17.4281 9.92813C17.9391 9.41719 17.9391 8.58281 17.4281 8.07187C16.9172 7.56094 16.0828 7.56094 15.5719 8.07187L10.5 13.1437L8.42813 11.0719C7.91719 10.5609 7.08281 10.5609 6.57187 11.0719C6.06094 11.5828 6.06094 12.4172 6.57187 12.9281L9.57187 15.9281C10.0828 16.4391 10.9172 16.4391 11.4281 15.9281L17.4281 9.92813Z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0 12C0 5.37188 5.37188 0 12 0C18.6281 0 24 5.37188 24 12C24 18.6281 18.6281 24 12 24C5.37188 24 0 18.6281 0 12ZM8.20312 9.75469L10.4109 11.9578L8.20312 14.2031C7.76719 14.6438 7.76719 15.3563 8.20312 15.7547C8.64375 16.2328 9.35625 16.2328 9.75469 15.7547L11.9578 13.5891L14.2031 15.7547C14.6438 16.2328 15.3563 16.2328 15.7547 15.7547C16.2328 15.3563 16.2328 14.6438 15.7547 14.2031L13.5891 11.9578L15.7547 9.75469C16.2328 9.35625 16.2328 8.64375 15.7547 8.20312C15.3563 7.76719 14.6438 7.76719 14.2031 8.20312L11.9578 10.4109L9.75469 8.20312C9.35625 7.76719 8.64375 7.76719 8.20312 8.20312C7.76719 8.64375 7.76719 9.35625 8.20312 9.75469Z" />
3
+ </svg>
package/index.d.ts CHANGED
@@ -18,7 +18,7 @@ declare interface FwInputProps {
18
18
  tabindex?: string;
19
19
  }
20
20
 
21
- declare const _default$j: vue.DefineComponent<{
21
+ declare const _default$l: vue.DefineComponent<{
22
22
  /**
23
23
  * The input v-model
24
24
  */
@@ -169,7 +169,7 @@ declare const _default$j: vue.DefineComponent<{
169
169
  tabindex: string;
170
170
  }>;
171
171
 
172
- declare const _default$i: vue.DefineComponent<{
172
+ declare const _default$k: vue.DefineComponent<{
173
173
  /**
174
174
  * The name of the input field. Must be unique per form.
175
175
  */
@@ -236,7 +236,7 @@ declare interface FwDropdownProps {
236
236
  placeholder?: string;
237
237
  }
238
238
 
239
- declare const _default$h: vue.DefineComponent<{
239
+ declare const _default$j: vue.DefineComponent<{
240
240
  /**
241
241
  * The select v-model
242
242
  */
@@ -347,7 +347,7 @@ declare const _default$h: vue.DefineComponent<{
347
347
  placeholder: string;
348
348
  }>;
349
349
 
350
- declare const _default$g: vue.DefineComponent<{
350
+ declare const _default$i: vue.DefineComponent<{
351
351
  /**
352
352
  * The header title of the card
353
353
  */
@@ -456,7 +456,7 @@ declare interface FwButtonProps {
456
456
  external?: boolean;
457
457
  }
458
458
 
459
- declare const _default$f: vue.DefineComponent<{
459
+ declare const _default$h: vue.DefineComponent<{
460
460
  /**
461
461
  * A `router-link` path or object
462
462
  */
@@ -637,7 +637,7 @@ declare interface NavMenuItem {
637
637
  external?: boolean;
638
638
  }
639
639
 
640
- declare const _default$e: vue.DefineComponent<{
640
+ declare const _default$g: vue.DefineComponent<{
641
641
  /**
642
642
  * An array of menu items
643
643
  * `{ to?: string | object; href?: string; label: string; }`
@@ -692,7 +692,7 @@ declare const _default$e: vue.DefineComponent<{
692
692
  containerClass: string;
693
693
  }>;
694
694
 
695
- declare const _default$d: vue.DefineComponent<{
695
+ declare const _default$f: vue.DefineComponent<{
696
696
  /**
697
697
  * The active tab v-model
698
698
  */
@@ -716,7 +716,7 @@ declare const _default$d: vue.DefineComponent<{
716
716
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
717
717
  }, {}>;
718
718
 
719
- declare const _default$c: vue.DefineComponent<{
719
+ declare const _default$e: vue.DefineComponent<{
720
720
  /**
721
721
  * The label of the tab component used as the button panel label
722
722
  */
@@ -748,13 +748,26 @@ declare const _default$c: vue.DefineComponent<{
748
748
  };
749
749
  }>>, {}>;
750
750
 
751
- declare const _default$b: vue.DefineComponent<{
751
+ declare const _default$d: vue.DefineComponent<{
752
+ /**
753
+ * The modal's v-model. Controls the visibility of the modal.
754
+ */
755
+ modelValue: {
756
+ type: BooleanConstructor;
757
+ };
752
758
  /**
753
759
  * The header title of the modal
754
760
  */
755
761
  header: {
756
762
  type: StringConstructor;
757
763
  };
764
+ /**
765
+ * The element to attach the modal too. Defaults to `#app` element.
766
+ */
767
+ element: {
768
+ type: StringConstructor;
769
+ default: string;
770
+ };
758
771
  /**
759
772
  * The body description of the modal
760
773
  */
@@ -813,14 +826,29 @@ declare const _default$b: vue.DefineComponent<{
813
826
  validator: (value: string) => boolean;
814
827
  };
815
828
  }, {
829
+ isOpen: vue.ComputedRef<boolean>;
816
830
  uuid: string;
831
+ isMounted: vue.Ref<boolean>;
817
832
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
833
+ /**
834
+ * The modal's v-model. Controls the visibility of the modal.
835
+ */
836
+ modelValue: {
837
+ type: BooleanConstructor;
838
+ };
818
839
  /**
819
840
  * The header title of the modal
820
841
  */
821
842
  header: {
822
843
  type: StringConstructor;
823
844
  };
845
+ /**
846
+ * The element to attach the modal too. Defaults to `#app` element.
847
+ */
848
+ element: {
849
+ type: StringConstructor;
850
+ default: string;
851
+ };
824
852
  /**
825
853
  * The body description of the modal
826
854
  */
@@ -882,6 +910,8 @@ declare const _default$b: vue.DefineComponent<{
882
910
  onCancel?: ((...args: any[]) => any) | undefined;
883
911
  onConfirm?: ((...args: any[]) => any) | undefined;
884
912
  }, {
913
+ modelValue: boolean;
914
+ element: string;
885
915
  role: string;
886
916
  showCancel: boolean;
887
917
  showConfirm: boolean;
@@ -897,7 +927,7 @@ declare interface ProgressBarStep {
897
927
  subSteps: number;
898
928
  }
899
929
 
900
- declare const _default$a: vue.DefineComponent<{
930
+ declare const _default$c: vue.DefineComponent<{
901
931
  /**
902
932
  * An array of menu progress steps.
903
933
  * `{ label: string; position: number; subSteps: number; }`
@@ -964,7 +994,7 @@ declare interface FwTagProps {
964
994
  variant?: TagVariantName;
965
995
  }
966
996
 
967
- declare const _default$9: vue.DefineComponent<{
997
+ declare const _default$b: vue.DefineComponent<{
968
998
  /**
969
999
  * The size of the tag. Accepts: 'xs' & 'sm'
970
1000
  */
@@ -1024,7 +1054,7 @@ declare interface FwTableProps {
1024
1054
  loading?: boolean;
1025
1055
  }
1026
1056
 
1027
- declare const _default$8: vue.DefineComponent<{
1057
+ declare const _default$a: vue.DefineComponent<{
1028
1058
  items: {
1029
1059
  type: PropType<FwTableItem[]>;
1030
1060
  required: true;
@@ -1065,11 +1095,11 @@ declare const _default$8: vue.DefineComponent<{
1065
1095
  loading: boolean;
1066
1096
  }>;
1067
1097
 
1068
- declare const _default$7: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1098
+ declare const _default$9: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1069
1099
 
1070
- declare const _default$6: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1100
+ declare const _default$8: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1071
1101
 
1072
- declare const _default$5: vue.DefineComponent<{
1102
+ declare const _default$7: vue.DefineComponent<{
1073
1103
  /**
1074
1104
  * The header title of the accordion
1075
1105
  */
@@ -1117,7 +1147,7 @@ declare const _default$5: vue.DefineComponent<{
1117
1147
  isOpened: boolean;
1118
1148
  }>;
1119
1149
 
1120
- declare const _default$4: vue.DefineComponent<{
1150
+ declare const _default$6: vue.DefineComponent<{
1121
1151
  /**
1122
1152
  * The src attribute of the image
1123
1153
  */
@@ -1200,11 +1230,11 @@ declare const _default$4: vue.DefineComponent<{
1200
1230
  threshold: number;
1201
1231
  }>;
1202
1232
 
1203
- declare const _default$3: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1233
+ declare const _default$5: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1204
1234
 
1205
- declare const _default$2: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1235
+ declare const _default$4: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1206
1236
 
1207
- declare const _default$1: vue.DefineComponent<{
1237
+ declare const _default$3: vue.DefineComponent<{
1208
1238
  columns: {
1209
1239
  type: NumberConstructor;
1210
1240
  default: number;
@@ -1229,6 +1259,197 @@ declare const _default$1: vue.DefineComponent<{
1229
1259
  rows: number;
1230
1260
  }>;
1231
1261
 
1262
+ declare type ToastType = 'success' | 'error' | 'warning';
1263
+ declare type ToastTypes = {
1264
+ [key in ToastType]: string;
1265
+ };
1266
+ declare type ToastPosition = 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
1267
+ declare interface FwToastProps {
1268
+ modelValue: boolean;
1269
+ type?: ToastType;
1270
+ position?: ToastPosition;
1271
+ content?: string;
1272
+ element?: string;
1273
+ timeout?: number;
1274
+ }
1275
+
1276
+ declare const _default$2: vue.DefineComponent<{
1277
+ /**
1278
+ * The toast's v-model. Controls the visibility of the toast.
1279
+ */
1280
+ modelValue: {
1281
+ type: BooleanConstructor;
1282
+ };
1283
+ /**
1284
+ * The type of the toast.
1285
+ * Accepts: 'success', 'error', 'warning'
1286
+ */
1287
+ type: {
1288
+ type: PropType<ToastType>;
1289
+ default: string;
1290
+ validator: (value: string) => boolean;
1291
+ };
1292
+ /**
1293
+ * The position of the toast on the screen.
1294
+ * Accepts: 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'
1295
+ */
1296
+ position: {
1297
+ type: PropType<ToastPosition>;
1298
+ default: string;
1299
+ validator: (value: string) => boolean;
1300
+ };
1301
+ /**
1302
+ * The content of the toast.
1303
+ */
1304
+ content: {
1305
+ type: StringConstructor;
1306
+ };
1307
+ /**
1308
+ * The base container to attach to. Defaults to `#app` element.
1309
+ */
1310
+ element: {
1311
+ type: StringConstructor;
1312
+ default: string;
1313
+ };
1314
+ /**
1315
+ * The duration timeout before the toast is dismissed.
1316
+ */
1317
+ timeout: {
1318
+ type: NumberConstructor;
1319
+ default: number;
1320
+ };
1321
+ }, {
1322
+ containerEl: vue.ComputedRef<string>;
1323
+ baseClass: string;
1324
+ typeClasses: vue.Ref<{
1325
+ success: string;
1326
+ error: string;
1327
+ warning: string;
1328
+ }>;
1329
+ svgComponent: vue.Ref<{
1330
+ success: string;
1331
+ error: string;
1332
+ warning: string;
1333
+ }>;
1334
+ isOpen: vue.WritableComputedRef<vue.Ref<boolean>>;
1335
+ uuid: string;
1336
+ isMounted: vue.Ref<boolean>;
1337
+ mountContainer: vue.Ref<boolean>;
1338
+ isLeftRightorCenter: vue.ComputedRef<"Right" | "Left" | "Center">;
1339
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("update:modelValue" | "dismissed")[], "update:modelValue" | "dismissed", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1340
+ /**
1341
+ * The toast's v-model. Controls the visibility of the toast.
1342
+ */
1343
+ modelValue: {
1344
+ type: BooleanConstructor;
1345
+ };
1346
+ /**
1347
+ * The type of the toast.
1348
+ * Accepts: 'success', 'error', 'warning'
1349
+ */
1350
+ type: {
1351
+ type: PropType<ToastType>;
1352
+ default: string;
1353
+ validator: (value: string) => boolean;
1354
+ };
1355
+ /**
1356
+ * The position of the toast on the screen.
1357
+ * Accepts: 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'
1358
+ */
1359
+ position: {
1360
+ type: PropType<ToastPosition>;
1361
+ default: string;
1362
+ validator: (value: string) => boolean;
1363
+ };
1364
+ /**
1365
+ * The content of the toast.
1366
+ */
1367
+ content: {
1368
+ type: StringConstructor;
1369
+ };
1370
+ /**
1371
+ * The base container to attach to. Defaults to `#app` element.
1372
+ */
1373
+ element: {
1374
+ type: StringConstructor;
1375
+ default: string;
1376
+ };
1377
+ /**
1378
+ * The duration timeout before the toast is dismissed.
1379
+ */
1380
+ timeout: {
1381
+ type: NumberConstructor;
1382
+ default: number;
1383
+ };
1384
+ }>> & {
1385
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1386
+ onDismissed?: ((...args: any[]) => any) | undefined;
1387
+ }, {
1388
+ modelValue: boolean;
1389
+ type: ToastType;
1390
+ position: ToastPosition;
1391
+ element: string;
1392
+ timeout: number;
1393
+ }>;
1394
+
1395
+ declare const _default$1: vue.DefineComponent<{
1396
+ /**
1397
+ * The transaction title of the card
1398
+ */
1399
+ title: {
1400
+ type: StringConstructor;
1401
+ };
1402
+ /**
1403
+ * The transaction sub-title of the card
1404
+ */
1405
+ subTitle: {
1406
+ type: StringConstructor;
1407
+ required: false;
1408
+ };
1409
+ /**
1410
+ * The transaction amount.
1411
+ */
1412
+ amount: {
1413
+ type: StringConstructor;
1414
+ required: false;
1415
+ };
1416
+ /**
1417
+ * The src url for the image.
1418
+ */
1419
+ imageUrl: {
1420
+ type: StringConstructor;
1421
+ required: false;
1422
+ };
1423
+ }, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1424
+ /**
1425
+ * The transaction title of the card
1426
+ */
1427
+ title: {
1428
+ type: StringConstructor;
1429
+ };
1430
+ /**
1431
+ * The transaction sub-title of the card
1432
+ */
1433
+ subTitle: {
1434
+ type: StringConstructor;
1435
+ required: false;
1436
+ };
1437
+ /**
1438
+ * The transaction amount.
1439
+ */
1440
+ amount: {
1441
+ type: StringConstructor;
1442
+ required: false;
1443
+ };
1444
+ /**
1445
+ * The src url for the image.
1446
+ */
1447
+ imageUrl: {
1448
+ type: StringConstructor;
1449
+ required: false;
1450
+ };
1451
+ }>>, {}>;
1452
+
1232
1453
  declare const __default__$1: vue.DefineComponent<{
1233
1454
  /**
1234
1455
  * The animation-iteration-count CSS property of the pulse animation.
@@ -1280,7 +1501,9 @@ declare const __default__: vue.DefineComponent<{
1280
1501
  declare const _default: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1281
1502
 
1282
1503
  declare interface FwModalProps {
1504
+ modelValue: boolean;
1283
1505
  header?: string;
1506
+ element?: string;
1284
1507
  body?: string;
1285
1508
  role?: string;
1286
1509
  showCancel?: boolean;
@@ -1291,15 +1514,24 @@ declare interface FwModalProps {
1291
1514
  confirmButtonType?: ButtonVariantName;
1292
1515
  }
1293
1516
 
1294
- declare interface ModalServiceProps extends FwModalProps {
1517
+ declare interface ModalServiceProps extends Omit<FwModalProps, 'modelValue'> {
1295
1518
  onConfirm?: () => void;
1296
1519
  onCancel?: () => void;
1297
1520
  }
1298
- declare const modalService: (options?: ModalServiceProps, element?: HTMLDivElement) => {
1521
+ declare const modalService: (options?: ModalServiceProps) => {
1299
1522
  open: () => void;
1300
1523
  close: () => void;
1301
1524
  };
1302
1525
 
1526
+ declare interface ToastServiceProps extends Omit<FwToastProps, 'modelValue' | 'type'> {
1527
+ onDismissed?: () => void;
1528
+ }
1529
+ declare const toastService: () => {
1530
+ success: (options?: ToastServiceProps) => void;
1531
+ error: (options?: ToastServiceProps) => void;
1532
+ warning: (options?: ToastServiceProps) => void;
1533
+ };
1534
+
1303
1535
  declare const install: Exclude<Plugin['install'], undefined>;
1304
1536
 
1305
1537
  declare interface FwCardProps {
@@ -1333,6 +1565,13 @@ declare interface FwImageProps {
1333
1565
  threshold?: number;
1334
1566
  }
1335
1567
 
1568
+ declare interface FwTransactionsCardProps {
1569
+ title: string;
1570
+ subTitle?: string;
1571
+ imageUrl?: string;
1572
+ amount?: string;
1573
+ }
1574
+
1336
1575
  declare module '@frollo/frollo-web-ui/icons' { }
1337
1576
 
1338
- export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$5 as FwAccordion, FwAccordionProps, _default$f as FwButton, FwButtonProps, _default$g as FwCard, FwCardProps, _default$i as FwCheckbox, FwCheckboxProps, _default$h as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$4 as FwImage, FwImageProps, _default$j as FwInput, FwInputProps, FwInputType, _default$3 as FwLoadingBar, _default$2 as FwLoadingCard, _default as FwLoadingSpinner, _default$1 as FwLoadingTable, _default$b as FwModal, FwModalProps, _default$e as FwNavigationMenu, _default$a as FwProgressBar, __default__ as FwSuccessPulse, _default$c as FwTab, _default$8 as FwTable, FwTableFormatFunction, _default$7 as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$6 as FwTableRow, FwTableSort, _default$d as FwTabs, _default$9 as FwTag, FwTagProps, ModalServiceProps, NavMenuItem, ProgressBarStep, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, install as default, modalService };
1577
+ export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$7 as FwAccordion, FwAccordionProps, _default$h as FwButton, FwButtonProps, _default$i as FwCard, FwCardProps, _default$k as FwCheckbox, FwCheckboxProps, _default$j as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$6 as FwImage, FwImageProps, _default$l as FwInput, FwInputProps, FwInputType, _default$5 as FwLoadingBar, _default$4 as FwLoadingCard, _default as FwLoadingSpinner, _default$3 as FwLoadingTable, _default$d as FwModal, FwModalProps, _default$g as FwNavigationMenu, _default$c as FwProgressBar, __default__ as FwSuccessPulse, _default$e as FwTab, _default$a as FwTable, FwTableFormatFunction, _default$9 as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$8 as FwTableRow, FwTableSort, _default$f as FwTabs, _default$b as FwTag, FwTagProps, _default$2 as FwToast, FwToastProps, _default$1 as FwTransactionsCard, FwTransactionsCardProps, ModalServiceProps, NavMenuItem, ProgressBarStep, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, ToastPosition, ToastServiceProps, ToastType, ToastTypes, install as default, modalService, toastService };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "1.2.9",
3
+ "version": "3.0.0",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -86,6 +86,7 @@
86
86
  "vue-loader": "^16.8.3",
87
87
  "vue-style-loader": "^4.1.3",
88
88
  "vue-svg-loader": "^0.17.0-beta.2",
89
+ "vue3-webcomponent-wrapper": "^0.2.0",
89
90
  "yup": "^0.32.11"
90
91
  },
91
92
  "homepage": "https://github.com/frollous/frollo-web-ui#readme",
@@ -0,0 +1,8 @@
1
+ @import './tailwind.scss';
2
+
3
+ body {
4
+ font-family: var(--fontFamily);
5
+ @apply text-base text-body;
6
+ -webkit-font-smoothing: antialiased;
7
+ -moz-osx-font-smoothing: grayscale;
8
+ }
@@ -1,12 +1,25 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ButtonVariantName } from '../fw-button/index.types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * The modal's v-model. Controls the visibility of the modal.
6
+ */
7
+ modelValue: {
8
+ type: BooleanConstructor;
9
+ };
4
10
  /**
5
11
  * The header title of the modal
6
12
  */
7
13
  header: {
8
14
  type: StringConstructor;
9
15
  };
16
+ /**
17
+ * The element to attach the modal too. Defaults to `#app` element.
18
+ */
19
+ element: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
10
23
  /**
11
24
  * The body description of the modal
12
25
  */
@@ -65,14 +78,29 @@ declare const _default: import("vue").DefineComponent<{
65
78
  validator: (value: string) => boolean;
66
79
  };
67
80
  }, {
81
+ isOpen: import("vue").ComputedRef<boolean>;
68
82
  uuid: string;
83
+ isMounted: import("vue").Ref<boolean>;
69
84
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
85
+ /**
86
+ * The modal's v-model. Controls the visibility of the modal.
87
+ */
88
+ modelValue: {
89
+ type: BooleanConstructor;
90
+ };
70
91
  /**
71
92
  * The header title of the modal
72
93
  */
73
94
  header: {
74
95
  type: StringConstructor;
75
96
  };
97
+ /**
98
+ * The element to attach the modal too. Defaults to `#app` element.
99
+ */
100
+ element: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
76
104
  /**
77
105
  * The body description of the modal
78
106
  */
@@ -134,6 +162,8 @@ declare const _default: import("vue").DefineComponent<{
134
162
  onCancel?: ((...args: any[]) => any) | undefined;
135
163
  onConfirm?: ((...args: any[]) => any) | undefined;
136
164
  }, {
165
+ modelValue: boolean;
166
+ element: string;
137
167
  role: string;
138
168
  showCancel: boolean;
139
169
  showConfirm: boolean;
@@ -1,6 +1,8 @@
1
1
  import { ButtonVariantName } from '../fw-button/index.types';
2
2
  export declare interface FwModalProps {
3
+ modelValue: boolean;
3
4
  header?: string;
5
+ element?: string;
4
6
  body?: string;
5
7
  role?: string;
6
8
  showCancel?: boolean;