@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.
- package/cjs/index.js +1116 -618
- package/esm/{add-to-unscopables-a5032b1d.js → add-to-unscopables-3f461c07.js} +3 -3
- package/esm/array-iteration-98e2cf9a.js +93 -0
- package/esm/array-method-is-strict-544b103f.js +14 -0
- package/esm/array-species-create-5fc23c89.js +98 -0
- package/esm/{classof-088c9833.js → classof-a45668b6.js} +2 -2
- package/esm/create-property-558a3c24.js +15 -0
- package/esm/{es.array.find-54b8f84b.js → es.array.find-36d8f2f0.js} +6 -6
- package/esm/{es.array.includes-9a6e4066.js → es.array.includes-df8e6e35.js} +4 -4
- package/esm/{es.function.name-2fa3a718.js → es.function.name-b642b74f.js} +1 -1
- package/esm/{es.number.constructor-b7faae1f.js → es.number.constructor-f279ce82.js} +3 -3
- package/esm/{function-name-c49146fc.js → function-name-e2f6ea36.js} +1 -1
- package/esm/fw-animations.js +7 -7
- package/esm/{fw-button-6aa9b68f.js → fw-button-df5c923f.js} +2 -2
- package/esm/fw-button.js +8 -8
- package/esm/fw-card-8d3f4ab5.js +95 -0
- package/esm/fw-card.js +2 -95
- package/esm/fw-checkbox.js +2 -2
- package/esm/fw-dropdown.js +10 -9
- package/esm/fw-image-ec7b02c5.js +770 -0
- package/esm/fw-image.js +19 -847
- package/esm/fw-input.js +6 -6
- package/esm/{fw-loading-spinner-649aa589.js → fw-loading-spinner-9b7c6855.js} +1 -1
- package/esm/fw-loading.js +5 -5
- package/esm/fw-modal.js +228 -11
- package/esm/fw-navigation-menu.js +8 -8
- package/esm/fw-progress-bar.js +5 -5
- package/esm/fw-table.js +8 -7
- package/esm/fw-tabs.js +9 -8
- package/esm/fw-tag.js +5 -5
- package/esm/fw-toast.js +372 -0
- package/esm/fw-transactions-card.js +118 -0
- package/esm/{index-403af654.js → index-4605e00e.js} +130 -88
- package/esm/index.js +82 -47
- package/esm/{is-forced-fd46b5f2.js → is-forced-ddf227e6.js} +2 -2
- package/esm/{object-keys-3c73c404.js → object-keys-6a890c6f.js} +2 -2
- package/esm/{to-string-c2bd1f4d.js → to-string-685748aa.js} +2 -2
- package/esm/uniqueId-fe08534a.js +279 -0
- package/esm/web.timers-4a6aaab8.js +82 -0
- package/frollo-web-ui.esm.js +1208 -668
- package/icons/bullseye.svg +3 -0
- package/icons/icons.stories.ts +3 -3
- package/icons/index.ts +7 -1
- package/icons/solid-check.svg +3 -0
- package/icons/solid-xmark.svg +3 -0
- package/index.d.ts +261 -22
- package/package.json +2 -1
- package/styles/web-components.scss +8 -0
- package/types/components/fw-modal/fw-modal.vue.d.ts +30 -0
- package/types/components/fw-modal/index.types.d.ts +2 -0
- package/types/components/fw-toast/fw-toast.vue.d.ts +121 -0
- package/types/components/fw-toast/index.d.ts +2 -0
- package/types/components/fw-toast/index.types.d.ts +13 -0
- package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +58 -0
- package/types/components/fw-transactions-card/index.d.ts +2 -0
- package/types/components/fw-transactions-card/index.types.d.ts +6 -0
- package/types/components/index.d.ts +2 -0
- package/types/components/index.types.d.ts +2 -0
- package/types/icons/index.d.ts +4 -1
- package/types/index.browser-umd.d.ts +1 -0
- package/types/services/index.d.ts +1 -0
- package/types/services/modal.d.ts +2 -2
- package/types/services/toast.d.ts +9 -0
- package/web-components/index.js +21435 -0
- package/esm/array-iteration-4f83e223.js +0 -186
- package/esm/create-property-da6d232b.js +0 -26
- 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,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;
|
|
@@ -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';
|
package/types/icons/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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,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
|
|
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
|
+
};
|