@frollo/frollo-web-ui 0.1.0 → 0.1.1
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 +548 -386
- 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-bba6ac88.js} +11 -3
- package/esm/fw-button.js +4 -4
- package/esm/fw-card.js +6 -3
- package/esm/fw-checkbox.js +11 -6
- package/esm/fw-form.js +1 -1
- package/esm/fw-input.js +10 -8
- package/esm/fw-modal.js +7 -475
- package/esm/fw-navigation-menu.js +13 -11
- package/esm/fw-tabs.js +3 -3
- package/esm/{index-5430e7a3.js → index-0e14da44.js} +18 -22
- package/esm/index-1813012f.js +474 -0
- package/esm/index.js +122 -43
- package/esm/{vee-validate.esm-028c6424.js → vee-validate.esm-b64acab1.js} +62 -9
- package/frollo-web-ui.esm.js +569 -383
- package/index.d.ts +5 -1
- package/package.json +19 -16
- 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-input/fw-input.vue.d.ts +1 -0
- 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
|
@@ -73,6 +73,7 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
73
73
|
type: StringConstructor;
|
|
74
74
|
};
|
|
75
75
|
}, {
|
|
76
|
+
inputBaseClass: vue.Ref<string>;
|
|
76
77
|
inputValue: vue.WritableComputedRef<string>;
|
|
77
78
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
78
79
|
/**
|
|
@@ -217,6 +218,7 @@ declare const _default$5: vue.DefineComponent<{
|
|
|
217
218
|
href: StringConstructor;
|
|
218
219
|
}, {
|
|
219
220
|
componentName: vue.ComputedRef<"router-link" | "a" | "div">;
|
|
221
|
+
linkClass: vue.Ref<string>;
|
|
220
222
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
221
223
|
/**
|
|
222
224
|
* The header title of the card
|
|
@@ -309,6 +311,7 @@ declare const _default$4: vue.DefineComponent<{
|
|
|
309
311
|
validator: (value: string) => boolean;
|
|
310
312
|
};
|
|
311
313
|
}, {
|
|
314
|
+
baseClass: vue.Ref<string>;
|
|
312
315
|
textColorClass: vue.ComputedRef<string>;
|
|
313
316
|
bgColorClass: vue.ComputedRef<string>;
|
|
314
317
|
sizeClass: vue.ComputedRef<string>;
|
|
@@ -389,6 +392,7 @@ declare const _default$3: vue.DefineComponent<{
|
|
|
389
392
|
type: StringConstructor;
|
|
390
393
|
};
|
|
391
394
|
}, {
|
|
395
|
+
mobileMenuClass: vue.Ref<string>;
|
|
392
396
|
isMobileMenuOpen: vue.Ref<boolean>;
|
|
393
397
|
toggleMobileMenu: () => boolean;
|
|
394
398
|
actionClicked: () => void;
|
|
@@ -615,7 +619,7 @@ declare interface ModalServiceProps extends FwModalProps {
|
|
|
615
619
|
onConfirm?: () => void;
|
|
616
620
|
onCancel?: () => void;
|
|
617
621
|
}
|
|
618
|
-
declare const modalService: (options?: ModalServiceProps
|
|
622
|
+
declare const modalService: (options?: ModalServiceProps, element?: HTMLDivElement) => {
|
|
619
623
|
open: () => void;
|
|
620
624
|
close: () => void;
|
|
621
625
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frollo/frollo-web-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
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
|
+
"@vue/vue3-jest": "^28.0.0",
|
|
59
60
|
"autoprefixer": "^10.4.2",
|
|
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
|
|
@@ -56,6 +56,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
type: StringConstructor;
|
|
57
57
|
};
|
|
58
58
|
}, {
|
|
59
|
+
inputBaseClass: import("vue").Ref<string>;
|
|
59
60
|
inputValue: import("vue").WritableComputedRef<string>;
|
|
60
61
|
}, 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
62
|
/**
|
|
@@ -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
|
};
|