@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,121 @@
1
+ import { PropType } from 'vue';
2
+ import { ToastType, ToastPosition } from './index.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * The toast's v-model. Controls the visibility of the toast.
6
+ */
7
+ modelValue: {
8
+ type: BooleanConstructor;
9
+ };
10
+ /**
11
+ * The type of the toast.
12
+ * Accepts: 'success', 'error', 'warning'
13
+ */
14
+ type: {
15
+ type: PropType<ToastType>;
16
+ default: string;
17
+ validator: (value: string) => boolean;
18
+ };
19
+ /**
20
+ * The position of the toast on the screen.
21
+ * Accepts: 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'
22
+ */
23
+ position: {
24
+ type: PropType<ToastPosition>;
25
+ default: string;
26
+ validator: (value: string) => boolean;
27
+ };
28
+ /**
29
+ * The content of the toast.
30
+ */
31
+ content: {
32
+ type: StringConstructor;
33
+ };
34
+ /**
35
+ * The base container to attach to. Defaults to `#app` element.
36
+ */
37
+ element: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ /**
42
+ * The duration timeout before the toast is dismissed.
43
+ */
44
+ timeout: {
45
+ type: NumberConstructor;
46
+ default: number;
47
+ };
48
+ }, {
49
+ containerEl: import("vue").ComputedRef<string>;
50
+ baseClass: string;
51
+ typeClasses: import("vue").Ref<{
52
+ success: string;
53
+ error: string;
54
+ warning: string;
55
+ }>;
56
+ svgComponent: import("vue").Ref<{
57
+ success: string;
58
+ error: string;
59
+ warning: string;
60
+ }>;
61
+ isOpen: import("vue").WritableComputedRef<import("vue").Ref<boolean>>;
62
+ uuid: string;
63
+ isMounted: import("vue").Ref<boolean>;
64
+ mountContainer: import("vue").Ref<boolean>;
65
+ isLeftRightorCenter: import("vue").ComputedRef<"Right" | "Left" | "Center">;
66
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "dismissed")[], "update:modelValue" | "dismissed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
67
+ /**
68
+ * The toast's v-model. Controls the visibility of the toast.
69
+ */
70
+ modelValue: {
71
+ type: BooleanConstructor;
72
+ };
73
+ /**
74
+ * The type of the toast.
75
+ * Accepts: 'success', 'error', 'warning'
76
+ */
77
+ type: {
78
+ type: PropType<ToastType>;
79
+ default: string;
80
+ validator: (value: string) => boolean;
81
+ };
82
+ /**
83
+ * The position of the toast on the screen.
84
+ * Accepts: 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'
85
+ */
86
+ position: {
87
+ type: PropType<ToastPosition>;
88
+ default: string;
89
+ validator: (value: string) => boolean;
90
+ };
91
+ /**
92
+ * The content of the toast.
93
+ */
94
+ content: {
95
+ type: StringConstructor;
96
+ };
97
+ /**
98
+ * The base container to attach to. Defaults to `#app` element.
99
+ */
100
+ element: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ /**
105
+ * The duration timeout before the toast is dismissed.
106
+ */
107
+ timeout: {
108
+ type: NumberConstructor;
109
+ default: number;
110
+ };
111
+ }>> & {
112
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
113
+ onDismissed?: ((...args: any[]) => any) | undefined;
114
+ }, {
115
+ modelValue: boolean;
116
+ type: ToastType;
117
+ position: ToastPosition;
118
+ element: string;
119
+ timeout: number;
120
+ }>;
121
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import FwToast from './fw-toast.vue';
2
+ export { FwToast };
@@ -0,0 +1,13 @@
1
+ export declare type ToastType = 'success' | 'error' | 'warning';
2
+ export declare type ToastTypes = {
3
+ [key in ToastType]: string;
4
+ };
5
+ export declare type ToastPosition = 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
6
+ export declare interface FwToastProps {
7
+ modelValue: boolean;
8
+ type?: ToastType;
9
+ position?: ToastPosition;
10
+ content?: string;
11
+ element?: string;
12
+ timeout?: number;
13
+ }
@@ -0,0 +1,58 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ /**
3
+ * The transaction title of the card
4
+ */
5
+ title: {
6
+ type: StringConstructor;
7
+ };
8
+ /**
9
+ * The transaction sub-title of the card
10
+ */
11
+ subTitle: {
12
+ type: StringConstructor;
13
+ required: false;
14
+ };
15
+ /**
16
+ * The transaction amount.
17
+ */
18
+ amount: {
19
+ type: StringConstructor;
20
+ required: false;
21
+ };
22
+ /**
23
+ * The src url for the image.
24
+ */
25
+ imageUrl: {
26
+ type: StringConstructor;
27
+ required: false;
28
+ };
29
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ /**
31
+ * The transaction title of the card
32
+ */
33
+ title: {
34
+ type: StringConstructor;
35
+ };
36
+ /**
37
+ * The transaction sub-title of the card
38
+ */
39
+ subTitle: {
40
+ type: StringConstructor;
41
+ required: false;
42
+ };
43
+ /**
44
+ * The transaction amount.
45
+ */
46
+ amount: {
47
+ type: StringConstructor;
48
+ required: false;
49
+ };
50
+ /**
51
+ * The src url for the image.
52
+ */
53
+ imageUrl: {
54
+ type: StringConstructor;
55
+ required: false;
56
+ };
57
+ }>>, {}>;
58
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import FwTransactionsCard from './fw-transactions-card.vue';
2
+ export { FwTransactionsCard };
@@ -0,0 +1,6 @@
1
+ export declare interface FwTransactionsCardProps {
2
+ title: string;
3
+ subTitle?: string;
4
+ imageUrl?: string;
5
+ amount?: string;
6
+ }
@@ -13,4 +13,6 @@ export * from './fw-table';
13
13
  export * from './fw-accordion';
14
14
  export * from './fw-image';
15
15
  export * from './fw-loading';
16
+ export * from './fw-toast';
17
+ export * from './fw-transactions-card';
16
18
  export * from './fw-animations';
@@ -10,3 +10,5 @@ export * from '../components/fw-table/index.types';
10
10
  export * from '../components/fw-dropdown/index.types';
11
11
  export * from '../components/fw-accordion/index.types';
12
12
  export * from '../components/fw-image/index.types';
13
+ export * from '../components/fw-toast/index.types';
14
+ export * from '../components/fw-transactions-card/index.types';
@@ -25,4 +25,7 @@ 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
- export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg };
28
+ import BullseyeSvg from './bullseye.svg';
29
+ import SolidCheckSvg from './solid-check.svg';
30
+ import SolidXMarkSvg from './solid-xmark.svg';
31
+ export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg, BullseyeSvg, SolidCheckSvg, SolidXMarkSvg };
@@ -0,0 +1 @@
1
+ import '../src/styles/web-components.scss';
@@ -1 +1,2 @@
1
1
  export * from './modal';
2
+ export * from './toast';
@@ -1,9 +1,9 @@
1
1
  import { FwModalProps } from '../components/fw-modal/index.types';
2
- export declare interface ModalServiceProps extends FwModalProps {
2
+ export declare interface ModalServiceProps extends Omit<FwModalProps, 'modelValue'> {
3
3
  onConfirm?: () => void;
4
4
  onCancel?: () => void;
5
5
  }
6
- export declare const modalService: (options?: ModalServiceProps, element?: HTMLDivElement) => {
6
+ export declare const modalService: (options?: ModalServiceProps) => {
7
7
  open: () => void;
8
8
  close: () => void;
9
9
  };
@@ -0,0 +1,9 @@
1
+ import { FwToastProps } from '../components/fw-toast/index.types';
2
+ export declare interface ToastServiceProps extends Omit<FwToastProps, 'modelValue' | 'type'> {
3
+ onDismissed?: () => void;
4
+ }
5
+ export declare const toastService: () => {
6
+ success: (options?: ToastServiceProps) => void;
7
+ error: (options?: ToastServiceProps) => void;
8
+ warning: (options?: ToastServiceProps) => void;
9
+ };