@frollo/frollo-web-ui 0.0.22 → 0.1.2
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 +635 -421
- package/esm/{add-to-unscopables-c6a09beb.js → add-to-unscopables-81c17489.js} +139 -99
- package/esm/{es.array.includes-1b7043c3.js → es.array.includes-debcb50f.js} +9 -3
- package/esm/{es.function.name-f416c9da.js → es.function.name-e746680f.js} +1 -1
- package/esm/{function-name-982253be.js → function-name-f0c1223e.js} +52 -61
- package/esm/{fw-button-0826e6fc.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 +80 -24
- package/esm/fw-tabs.js +4 -3
- package/esm/{index-9de6159f.js → index-5ee56f7d.js} +24 -75
- package/esm/index-963039a3.js +475 -0
- package/esm/index.js +128 -40
- package/esm/to-string-139f1ee8.js +52 -0
- package/esm/{vee-validate.esm-028c6424.js → vee-validate.esm-b64acab1.js} +62 -9
- package/frollo-web-ui.esm.js +669 -421
- package/index.d.ts +28 -11
- 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-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 +1 -1
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +3 -0
- package/types/index.esm.d.ts +1 -1
- package/types/services/modal.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare interface FwInputProps {
|
|
|
12
12
|
type?: FwInputType;
|
|
13
13
|
label?: string;
|
|
14
14
|
placeholder?: string;
|
|
15
|
-
rules?: string |
|
|
15
|
+
rules?: string | Record<string, unknown> | (() => boolean);
|
|
16
16
|
readonly?: boolean;
|
|
17
17
|
hint?: string;
|
|
18
18
|
}
|
|
@@ -54,10 +54,10 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
54
54
|
default: string;
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
57
|
-
* Validation rules. Accepts
|
|
57
|
+
* Validation rules. Accepts an object, string schema or validation function.
|
|
58
58
|
*/
|
|
59
59
|
rules: {
|
|
60
|
-
type:
|
|
60
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
63
63
|
* Converts the input into a readonly disabled field
|
|
@@ -72,7 +72,14 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
72
72
|
hint: {
|
|
73
73
|
type: StringConstructor;
|
|
74
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* The autocomplete input attribute
|
|
77
|
+
*/
|
|
78
|
+
autocomplete: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
};
|
|
75
81
|
}, {
|
|
82
|
+
inputBaseClass: vue.Ref<string>;
|
|
76
83
|
inputValue: vue.WritableComputedRef<string>;
|
|
77
84
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
78
85
|
/**
|
|
@@ -111,10 +118,10 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
111
118
|
default: string;
|
|
112
119
|
};
|
|
113
120
|
/**
|
|
114
|
-
* Validation rules. Accepts
|
|
121
|
+
* Validation rules. Accepts an object, string schema or validation function.
|
|
115
122
|
*/
|
|
116
123
|
rules: {
|
|
117
|
-
type:
|
|
124
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
118
125
|
};
|
|
119
126
|
/**
|
|
120
127
|
* Converts the input into a readonly disabled field
|
|
@@ -129,6 +136,12 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
129
136
|
hint: {
|
|
130
137
|
type: StringConstructor;
|
|
131
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* The autocomplete input attribute
|
|
141
|
+
*/
|
|
142
|
+
autocomplete: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
};
|
|
132
145
|
}>> & {
|
|
133
146
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
134
147
|
}, {
|
|
@@ -153,10 +166,10 @@ declare const _default$6: vue.DefineComponent<{
|
|
|
153
166
|
type: StringConstructor;
|
|
154
167
|
};
|
|
155
168
|
/**
|
|
156
|
-
* Validation rules. Accepts
|
|
169
|
+
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
157
170
|
*/
|
|
158
171
|
rules: {
|
|
159
|
-
type:
|
|
172
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
160
173
|
};
|
|
161
174
|
/**
|
|
162
175
|
* The hint text shown below the input
|
|
@@ -179,10 +192,10 @@ declare const _default$6: vue.DefineComponent<{
|
|
|
179
192
|
type: StringConstructor;
|
|
180
193
|
};
|
|
181
194
|
/**
|
|
182
|
-
* Validation rules. Accepts
|
|
195
|
+
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
183
196
|
*/
|
|
184
197
|
rules: {
|
|
185
|
-
type:
|
|
198
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
186
199
|
};
|
|
187
200
|
/**
|
|
188
201
|
* The hint text shown below the input
|
|
@@ -217,6 +230,7 @@ declare const _default$5: vue.DefineComponent<{
|
|
|
217
230
|
href: StringConstructor;
|
|
218
231
|
}, {
|
|
219
232
|
componentName: vue.ComputedRef<"router-link" | "a" | "div">;
|
|
233
|
+
linkClass: vue.Ref<string>;
|
|
220
234
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
221
235
|
/**
|
|
222
236
|
* The header title of the card
|
|
@@ -309,6 +323,7 @@ declare const _default$4: vue.DefineComponent<{
|
|
|
309
323
|
validator: (value: string) => boolean;
|
|
310
324
|
};
|
|
311
325
|
}, {
|
|
326
|
+
baseClass: vue.Ref<string>;
|
|
312
327
|
textColorClass: vue.ComputedRef<string>;
|
|
313
328
|
bgColorClass: vue.ComputedRef<string>;
|
|
314
329
|
sizeClass: vue.ComputedRef<string>;
|
|
@@ -389,9 +404,11 @@ declare const _default$3: vue.DefineComponent<{
|
|
|
389
404
|
type: StringConstructor;
|
|
390
405
|
};
|
|
391
406
|
}, {
|
|
407
|
+
mobileMenuClass: vue.Ref<string>;
|
|
392
408
|
isMobileMenuOpen: vue.Ref<boolean>;
|
|
393
409
|
toggleMobileMenu: () => boolean;
|
|
394
410
|
actionClicked: () => void;
|
|
411
|
+
ButtonVariantName: typeof ButtonVariantName;
|
|
395
412
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "action"[], "action", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
396
413
|
/**
|
|
397
414
|
* An array of menu items
|
|
@@ -615,7 +632,7 @@ declare interface ModalServiceProps extends FwModalProps {
|
|
|
615
632
|
onConfirm?: () => void;
|
|
616
633
|
onCancel?: () => void;
|
|
617
634
|
}
|
|
618
|
-
declare const modalService: (options?: ModalServiceProps
|
|
635
|
+
declare const modalService: (options?: ModalServiceProps, element?: HTMLDivElement) => {
|
|
619
636
|
open: () => void;
|
|
620
637
|
close: () => void;
|
|
621
638
|
};
|
|
@@ -632,7 +649,7 @@ declare interface FwCardProps {
|
|
|
632
649
|
declare interface FwCheckboxProps {
|
|
633
650
|
name: string;
|
|
634
651
|
label?: string;
|
|
635
|
-
rules?: string |
|
|
652
|
+
rules?: string | Record<string, unknown> | (() => boolean);
|
|
636
653
|
hint?: string;
|
|
637
654
|
}
|
|
638
655
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frollo/frollo-web-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.2",
|
|
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>;
|
|
@@ -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,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { NavMenuItem } from './index.types';
|
|
3
|
+
import { ButtonVariantName } from '../fw-button/index.types';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
/**
|
|
5
6
|
* An array of menu items
|
|
@@ -16,9 +17,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
17
|
type: StringConstructor;
|
|
17
18
|
};
|
|
18
19
|
}, {
|
|
20
|
+
mobileMenuClass: import("vue").Ref<string>;
|
|
19
21
|
isMobileMenuOpen: import("vue").Ref<boolean>;
|
|
20
22
|
toggleMobileMenu: () => boolean;
|
|
21
23
|
actionClicked: () => void;
|
|
24
|
+
ButtonVariantName: typeof ButtonVariantName;
|
|
22
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "action"[], "action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
26
|
/**
|
|
24
27
|
* An array of menu items
|
package/types/index.esm.d.ts
CHANGED
|
@@ -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
|
};
|