@frollo/frollo-web-ui 0.1.0 → 0.2.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 +571 -402
- package/esm/{add-to-unscopables-874257d1.js → add-to-unscopables-81c17489.js} +139 -99
- package/esm/{es.array.includes-ef2f18f4.js → es.array.includes-debcb50f.js} +9 -3
- package/esm/{es.function.name-43e1ffbd.js → es.function.name-e746680f.js} +1 -1
- package/esm/{function-name-a620492a.js → function-name-f0c1223e.js} +52 -61
- package/esm/{fw-button-93be6218.js → fw-button-ab906734.js} +12 -4
- package/esm/fw-button.js +4 -4
- package/esm/fw-card.js +6 -3
- package/esm/fw-checkbox.js +13 -8
- package/esm/fw-form.js +1 -1
- package/esm/fw-input.js +21 -11
- package/esm/fw-modal.js +7 -475
- package/esm/fw-navigation-menu.js +17 -17
- package/esm/fw-tabs.js +3 -3
- package/esm/{index-5430e7a3.js → index-0e14da44.js} +18 -22
- package/esm/index-963039a3.js +475 -0
- package/esm/index.js +124 -45
- package/esm/{vee-validate.esm-028c6424.js → vee-validate.esm-b64acab1.js} +62 -9
- package/frollo-web-ui.esm.js +592 -399
- package/index.d.ts +29 -24
- package/package.json +20 -17
- package/tailwind.config.js +8 -8
- package/types/components/fw-button/fw-button.vue.d.ts +1 -0
- package/types/components/fw-button/index.types.d.ts +1 -9
- package/types/components/fw-card/fw-card.vue.d.ts +1 -0
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +5 -4
- package/types/components/fw-checkbox/index.types.d.ts +1 -1
- package/types/components/fw-input/fw-input.vue.d.ts +17 -4
- package/types/components/fw-input/index.types.d.ts +2 -5
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +1 -0
- package/types/services/modal.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -2,17 +2,14 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { PropType, Plugin } from 'vue';
|
|
3
3
|
export { Form as FwForm } from 'vee-validate';
|
|
4
4
|
|
|
5
|
-
declare
|
|
6
|
-
text = "text",
|
|
7
|
-
password = "password"
|
|
8
|
-
}
|
|
5
|
+
declare type FwInputType = 'text' | 'password';
|
|
9
6
|
declare interface FwInputProps {
|
|
10
7
|
value: string;
|
|
11
8
|
name: string;
|
|
12
9
|
type?: FwInputType;
|
|
13
10
|
label?: string;
|
|
14
11
|
placeholder?: string;
|
|
15
|
-
rules?: string |
|
|
12
|
+
rules?: string | Record<string, unknown> | (() => boolean);
|
|
16
13
|
readonly?: boolean;
|
|
17
14
|
hint?: string;
|
|
18
15
|
}
|
|
@@ -54,10 +51,10 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
54
51
|
default: string;
|
|
55
52
|
};
|
|
56
53
|
/**
|
|
57
|
-
* Validation rules. Accepts
|
|
54
|
+
* Validation rules. Accepts an object, string schema or validation function.
|
|
58
55
|
*/
|
|
59
56
|
rules: {
|
|
60
|
-
type:
|
|
57
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
61
58
|
};
|
|
62
59
|
/**
|
|
63
60
|
* Converts the input into a readonly disabled field
|
|
@@ -72,7 +69,14 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
72
69
|
hint: {
|
|
73
70
|
type: StringConstructor;
|
|
74
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* The autocomplete input attribute
|
|
74
|
+
*/
|
|
75
|
+
autocomplete: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
};
|
|
75
78
|
}, {
|
|
79
|
+
inputBaseClass: vue.Ref<string>;
|
|
76
80
|
inputValue: vue.WritableComputedRef<string>;
|
|
77
81
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
78
82
|
/**
|
|
@@ -111,10 +115,10 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
111
115
|
default: string;
|
|
112
116
|
};
|
|
113
117
|
/**
|
|
114
|
-
* Validation rules. Accepts
|
|
118
|
+
* Validation rules. Accepts an object, string schema or validation function.
|
|
115
119
|
*/
|
|
116
120
|
rules: {
|
|
117
|
-
type:
|
|
121
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
118
122
|
};
|
|
119
123
|
/**
|
|
120
124
|
* Converts the input into a readonly disabled field
|
|
@@ -129,6 +133,12 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
129
133
|
hint: {
|
|
130
134
|
type: StringConstructor;
|
|
131
135
|
};
|
|
136
|
+
/**
|
|
137
|
+
* The autocomplete input attribute
|
|
138
|
+
*/
|
|
139
|
+
autocomplete: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
};
|
|
132
142
|
}>> & {
|
|
133
143
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
134
144
|
}, {
|
|
@@ -153,10 +163,10 @@ declare const _default$6: vue.DefineComponent<{
|
|
|
153
163
|
type: StringConstructor;
|
|
154
164
|
};
|
|
155
165
|
/**
|
|
156
|
-
* Validation rules. Accepts
|
|
166
|
+
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
157
167
|
*/
|
|
158
168
|
rules: {
|
|
159
|
-
type:
|
|
169
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
160
170
|
};
|
|
161
171
|
/**
|
|
162
172
|
* The hint text shown below the input
|
|
@@ -179,10 +189,10 @@ declare const _default$6: vue.DefineComponent<{
|
|
|
179
189
|
type: StringConstructor;
|
|
180
190
|
};
|
|
181
191
|
/**
|
|
182
|
-
* Validation rules. Accepts
|
|
192
|
+
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
183
193
|
*/
|
|
184
194
|
rules: {
|
|
185
|
-
type:
|
|
195
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
186
196
|
};
|
|
187
197
|
/**
|
|
188
198
|
* The hint text shown below the input
|
|
@@ -217,6 +227,7 @@ declare const _default$5: vue.DefineComponent<{
|
|
|
217
227
|
href: StringConstructor;
|
|
218
228
|
}, {
|
|
219
229
|
componentName: vue.ComputedRef<"router-link" | "a" | "div">;
|
|
230
|
+
linkClass: vue.Ref<string>;
|
|
220
231
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
221
232
|
/**
|
|
222
233
|
* The header title of the card
|
|
@@ -242,15 +253,7 @@ declare const _default$5: vue.DefineComponent<{
|
|
|
242
253
|
href: StringConstructor;
|
|
243
254
|
}>>, {}>;
|
|
244
255
|
|
|
245
|
-
declare
|
|
246
|
-
primary = "primary",
|
|
247
|
-
secondary = "secondary",
|
|
248
|
-
tertiary = "tertiary",
|
|
249
|
-
error = "error",
|
|
250
|
-
success = "success",
|
|
251
|
-
text = "text",
|
|
252
|
-
link = "link"
|
|
253
|
-
}
|
|
256
|
+
declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text';
|
|
254
257
|
declare interface ButtonDefinition {
|
|
255
258
|
text: string;
|
|
256
259
|
background: string;
|
|
@@ -309,6 +312,7 @@ declare const _default$4: vue.DefineComponent<{
|
|
|
309
312
|
validator: (value: string) => boolean;
|
|
310
313
|
};
|
|
311
314
|
}, {
|
|
315
|
+
baseClass: vue.Ref<string>;
|
|
312
316
|
textColorClass: vue.ComputedRef<string>;
|
|
313
317
|
bgColorClass: vue.ComputedRef<string>;
|
|
314
318
|
sizeClass: vue.ComputedRef<string>;
|
|
@@ -389,6 +393,7 @@ declare const _default$3: vue.DefineComponent<{
|
|
|
389
393
|
type: StringConstructor;
|
|
390
394
|
};
|
|
391
395
|
}, {
|
|
396
|
+
mobileMenuClass: vue.Ref<string>;
|
|
392
397
|
isMobileMenuOpen: vue.Ref<boolean>;
|
|
393
398
|
toggleMobileMenu: () => boolean;
|
|
394
399
|
actionClicked: () => void;
|
|
@@ -615,7 +620,7 @@ declare interface ModalServiceProps extends FwModalProps {
|
|
|
615
620
|
onConfirm?: () => void;
|
|
616
621
|
onCancel?: () => void;
|
|
617
622
|
}
|
|
618
|
-
declare const modalService: (options?: ModalServiceProps
|
|
623
|
+
declare const modalService: (options?: ModalServiceProps, element?: HTMLDivElement) => {
|
|
619
624
|
open: () => void;
|
|
620
625
|
close: () => void;
|
|
621
626
|
};
|
|
@@ -632,7 +637,7 @@ declare interface FwCardProps {
|
|
|
632
637
|
declare interface FwCheckboxProps {
|
|
633
638
|
name: string;
|
|
634
639
|
label?: string;
|
|
635
|
-
rules?: string |
|
|
640
|
+
rules?: string | Record<string, unknown> | (() => boolean);
|
|
636
641
|
hint?: string;
|
|
637
642
|
}
|
|
638
643
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frollo/frollo-web-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Frollo's UI library for components, utilities and configs",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./icons": "./icons/index.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"build-storybook": "build-storybook"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vue": "^3.2.
|
|
32
|
+
"vue": "^3.2.37"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@babel/core": "^7.17.5",
|
|
@@ -40,32 +40,35 @@
|
|
|
40
40
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
41
41
|
"@rollup/plugin-replace": "^3.1.0",
|
|
42
42
|
"@rollup/plugin-url": "^6.1.0",
|
|
43
|
-
"@storybook/addon-a11y": "
|
|
44
|
-
"@storybook/addon-actions": "
|
|
45
|
-
"@storybook/addon-essentials": "
|
|
46
|
-
"@storybook/addon-links": "
|
|
43
|
+
"@storybook/addon-a11y": "~6.4.22",
|
|
44
|
+
"@storybook/addon-actions": "~6.4.22",
|
|
45
|
+
"@storybook/addon-essentials": "~6.4.22",
|
|
46
|
+
"@storybook/addon-links": "~6.4.22",
|
|
47
47
|
"@storybook/addon-postcss": "^2.0.0",
|
|
48
|
-
"@storybook/addon-storysource": "
|
|
49
|
-
"@storybook/builder-webpack5": "
|
|
50
|
-
"@storybook/manager-webpack5": "
|
|
51
|
-
"@storybook/vue3": "
|
|
48
|
+
"@storybook/addon-storysource": "~6.4.22",
|
|
49
|
+
"@storybook/builder-webpack5": "~6.4.22",
|
|
50
|
+
"@storybook/manager-webpack5": "~6.4.22",
|
|
51
|
+
"@storybook/vue3": "~6.4.22",
|
|
52
52
|
"@types/jest": "^27.4.0",
|
|
53
53
|
"@types/lodash-es": "^4.17.6",
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "^5.12.0",
|
|
55
55
|
"@vue/cli-plugin-babel": "^5.0.1",
|
|
56
|
+
"@vue/eslint-config-prettier": "^7.0.0",
|
|
56
57
|
"@vue/eslint-config-typescript": "^10.0.0",
|
|
57
58
|
"@vue/test-utils": "^2.0.0-rc.17",
|
|
58
|
-
"@vue/vue3-jest": "^
|
|
59
|
-
"autoprefixer": "^10.4.
|
|
59
|
+
"@vue/vue3-jest": "^28.0.0",
|
|
60
|
+
"autoprefixer": "^10.4.7",
|
|
60
61
|
"babel-core": "^7.0.0-bridge.0",
|
|
61
|
-
"babel-jest": "^
|
|
62
|
-
"babel-loader": "^8.2.
|
|
62
|
+
"babel-jest": "^28.1.1",
|
|
63
|
+
"babel-loader": "^8.2.5",
|
|
63
64
|
"cross-env": "^7.0.3",
|
|
64
65
|
"css-loader": "^6.6.0",
|
|
65
66
|
"eslint": "^8.9.0",
|
|
66
67
|
"eslint-plugin-vue": "^8.4.1",
|
|
67
|
-
"jest": "^
|
|
68
|
+
"jest": "^28.1.1",
|
|
69
|
+
"jest-environment-jsdom": "^28.1.1",
|
|
68
70
|
"lodash-es": "^4.17.21",
|
|
71
|
+
"prettier": "^2.7.1",
|
|
69
72
|
"rimraf": "^3.0.2",
|
|
70
73
|
"rollup": "^2.67.2",
|
|
71
74
|
"rollup-plugin-dts": "^4.1.0",
|
|
@@ -76,8 +79,8 @@
|
|
|
76
79
|
"sass-loader": "^12.6.0",
|
|
77
80
|
"tailwind-config-viewer": "^1.7.1",
|
|
78
81
|
"tailwindcss": "^3.0.23",
|
|
79
|
-
"ts-jest": "^
|
|
80
|
-
"typescript": "^4.
|
|
82
|
+
"ts-jest": "^28.0.5",
|
|
83
|
+
"typescript": "^4.7.4",
|
|
81
84
|
"vee-validate": "^4.5.9",
|
|
82
85
|
"vue-loader": "^16.8.3",
|
|
83
86
|
"vue-style-loader": "^4.1.3",
|
package/tailwind.config.js
CHANGED
|
@@ -12,8 +12,8 @@ module.exports = {
|
|
|
12
12
|
base: '#4b4b4b',
|
|
13
13
|
light: '#bcbcbc',
|
|
14
14
|
lightest: '#f5f5f5',
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
10: '#f8f8f8',
|
|
16
|
+
20: '#f2f2f2'
|
|
17
17
|
},
|
|
18
18
|
error: '#eb5757',
|
|
19
19
|
success: '#00c48c',
|
|
@@ -30,19 +30,19 @@ module.exports = {
|
|
|
30
30
|
},
|
|
31
31
|
screens: {
|
|
32
32
|
// @media (min-width: 640px) { ... }
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
sm: '640px',
|
|
34
|
+
md: '768px',
|
|
35
|
+
lg: '1024px',
|
|
36
|
+
xl: '1280px',
|
|
37
37
|
'2xl': '1536px'
|
|
38
38
|
},
|
|
39
39
|
// Extends tailwind's properties
|
|
40
40
|
extend: {
|
|
41
41
|
minWidth: {
|
|
42
|
-
|
|
42
|
+
banner: '420px'
|
|
43
43
|
},
|
|
44
44
|
boxShadow: {
|
|
45
|
-
|
|
45
|
+
card: '0px 1px 7px rgba(0, 0, 0, 0.1714)'
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -37,6 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
validator: (value: string) => boolean;
|
|
38
38
|
};
|
|
39
39
|
}, {
|
|
40
|
+
baseClass: import("vue").Ref<string>;
|
|
40
41
|
textColorClass: import("vue").ComputedRef<string>;
|
|
41
42
|
bgColorClass: import("vue").ComputedRef<string>;
|
|
42
43
|
sizeClass: import("vue").ComputedRef<string>;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
primary = "primary",
|
|
3
|
-
secondary = "secondary",
|
|
4
|
-
tertiary = "tertiary",
|
|
5
|
-
error = "error",
|
|
6
|
-
success = "success",
|
|
7
|
-
text = "text",
|
|
8
|
-
link = "link"
|
|
9
|
-
}
|
|
1
|
+
export declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text';
|
|
10
2
|
export declare interface ButtonDefinition {
|
|
11
3
|
text: string;
|
|
12
4
|
background: string;
|
|
@@ -23,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
href: StringConstructor;
|
|
24
24
|
}, {
|
|
25
25
|
componentName: import("vue").ComputedRef<"router-link" | "a" | "div">;
|
|
26
|
+
linkClass: import("vue").Ref<string>;
|
|
26
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
28
|
/**
|
|
28
29
|
* The header title of the card
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
|
2
3
|
/**
|
|
3
4
|
* The name of the input field. Must be unique per form.
|
|
@@ -13,10 +14,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
14
|
type: StringConstructor;
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
|
-
* Validation rules. Accepts
|
|
17
|
+
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
17
18
|
*/
|
|
18
19
|
rules: {
|
|
19
|
-
type:
|
|
20
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
20
21
|
};
|
|
21
22
|
/**
|
|
22
23
|
* The hint text shown below the input
|
|
@@ -39,10 +40,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
40
|
type: StringConstructor;
|
|
40
41
|
};
|
|
41
42
|
/**
|
|
42
|
-
* Validation rules. Accepts
|
|
43
|
+
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
43
44
|
*/
|
|
44
45
|
rules: {
|
|
45
|
-
type:
|
|
46
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
46
47
|
};
|
|
47
48
|
/**
|
|
48
49
|
* The hint text shown below the input
|
|
@@ -37,10 +37,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
default: string;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
|
-
* Validation rules. Accepts
|
|
40
|
+
* Validation rules. Accepts an object, string schema or validation function.
|
|
41
41
|
*/
|
|
42
42
|
rules: {
|
|
43
|
-
type:
|
|
43
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
46
|
* Converts the input into a readonly disabled field
|
|
@@ -55,7 +55,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
hint: {
|
|
56
56
|
type: StringConstructor;
|
|
57
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* The autocomplete input attribute
|
|
60
|
+
*/
|
|
61
|
+
autocomplete: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
};
|
|
58
64
|
}, {
|
|
65
|
+
inputBaseClass: import("vue").Ref<string>;
|
|
59
66
|
inputValue: import("vue").WritableComputedRef<string>;
|
|
60
67
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
68
|
/**
|
|
@@ -94,10 +101,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
101
|
default: string;
|
|
95
102
|
};
|
|
96
103
|
/**
|
|
97
|
-
* Validation rules. Accepts
|
|
104
|
+
* Validation rules. Accepts an object, string schema or validation function.
|
|
98
105
|
*/
|
|
99
106
|
rules: {
|
|
100
|
-
type:
|
|
107
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
101
108
|
};
|
|
102
109
|
/**
|
|
103
110
|
* Converts the input into a readonly disabled field
|
|
@@ -112,6 +119,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
112
119
|
hint: {
|
|
113
120
|
type: StringConstructor;
|
|
114
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* The autocomplete input attribute
|
|
124
|
+
*/
|
|
125
|
+
autocomplete: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
};
|
|
115
128
|
}>> & {
|
|
116
129
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
117
130
|
}, {
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
text = "text",
|
|
3
|
-
password = "password"
|
|
4
|
-
}
|
|
1
|
+
export declare type FwInputType = 'text' | 'password';
|
|
5
2
|
export declare interface FwInputProps {
|
|
6
3
|
value: string;
|
|
7
4
|
name: string;
|
|
8
5
|
type?: FwInputType;
|
|
9
6
|
label?: string;
|
|
10
7
|
placeholder?: string;
|
|
11
|
-
rules?: string |
|
|
8
|
+
rules?: string | Record<string, unknown> | (() => boolean);
|
|
12
9
|
readonly?: boolean;
|
|
13
10
|
hint?: string;
|
|
14
11
|
}
|
|
@@ -3,7 +3,7 @@ export declare interface ModalServiceProps extends FwModalProps {
|
|
|
3
3
|
onConfirm?: () => void;
|
|
4
4
|
onCancel?: () => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const modalService: (options?: ModalServiceProps
|
|
6
|
+
export declare const modalService: (options?: ModalServiceProps, element?: HTMLDivElement) => {
|
|
7
7
|
open: () => void;
|
|
8
8
|
close: () => void;
|
|
9
9
|
};
|