@frollo/frollo-web-ui 0.0.4 → 0.0.7
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 +262 -38
- package/esm/{index-758e7e1e.js → fw-button-6d5a9671.js} +64 -28
- package/esm/fw-button.js +1 -1
- package/esm/fw-card.js +37 -9
- package/esm/fw-navigation-menu.js +176 -0
- package/esm/index.js +7 -3
- package/frollo-web-ui.esm.js +277 -40
- package/icons/generate.svg +3 -0
- package/icons/index.ts +11 -0
- package/icons/manage.svg +3 -0
- package/icons/not-found.svg +5 -0
- package/icons/view.svg +3 -0
- package/index.d.ts +73 -5
- package/package.json +2 -1
- package/tailwind.config.js +4 -1
- package/types/components/fw-button/fw-button.vue.d.ts +2 -1
- package/types/components/fw-card/fw-card.vue.d.ts +23 -1
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +44 -0
- package/types/components/fw-navigation-menu/index.d.ts +2 -0
- package/types/components/index.d.ts +1 -0
- package/types/icons/index.d.ts +5 -0
- package/types/index-types.esm.d.ts +2 -0
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { PropType, Plugin } from 'vue';
|
|
3
3
|
|
|
4
|
-
declare const _default$
|
|
4
|
+
declare const _default$2: vue.DefineComponent<{
|
|
5
5
|
/**
|
|
6
6
|
* The header title of the card
|
|
7
7
|
*/
|
|
@@ -14,7 +14,19 @@ declare const _default$1: vue.DefineComponent<{
|
|
|
14
14
|
prefixTitle: {
|
|
15
15
|
type: StringConstructor;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* A `router-link` path or object
|
|
19
|
+
*/
|
|
20
|
+
to: {
|
|
21
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A URL to link to using a native anchor element
|
|
25
|
+
*/
|
|
26
|
+
href: StringConstructor;
|
|
27
|
+
}, {
|
|
28
|
+
componentName: vue.ComputedRef<"router-link" | "a" | "div">;
|
|
29
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
18
30
|
/**
|
|
19
31
|
* The header title of the card
|
|
20
32
|
*/
|
|
@@ -27,9 +39,19 @@ declare const _default$1: vue.DefineComponent<{
|
|
|
27
39
|
prefixTitle: {
|
|
28
40
|
type: StringConstructor;
|
|
29
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* A `router-link` path or object
|
|
44
|
+
*/
|
|
45
|
+
to: {
|
|
46
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* A URL to link to using a native anchor element
|
|
50
|
+
*/
|
|
51
|
+
href: StringConstructor;
|
|
30
52
|
}>>, {}>;
|
|
31
53
|
|
|
32
|
-
declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success';
|
|
54
|
+
declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'text';
|
|
33
55
|
interface ButtonDefinition {
|
|
34
56
|
text: string;
|
|
35
57
|
background: string;
|
|
@@ -48,7 +70,7 @@ interface FwButtonProps {
|
|
|
48
70
|
size?: ButtonSize;
|
|
49
71
|
variant?: ButtonVariantName;
|
|
50
72
|
}
|
|
51
|
-
declare const _default: vue.DefineComponent<{
|
|
73
|
+
declare const _default$1: vue.DefineComponent<{
|
|
52
74
|
/**
|
|
53
75
|
* A `router-link` path or object
|
|
54
76
|
*/
|
|
@@ -86,6 +108,7 @@ declare const _default: vue.DefineComponent<{
|
|
|
86
108
|
onMouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
87
109
|
onFocusin: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
88
110
|
onFocusout: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
111
|
+
tagName: vue.ComputedRef<"router-link" | "a" | "button">;
|
|
89
112
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("click" | "mouseover" | "mouseout" | "focusin" | "focusout")[], "click" | "mouseover" | "mouseout" | "focusin" | "focusout", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
90
113
|
/**
|
|
91
114
|
* A `router-link` path or object
|
|
@@ -125,6 +148,51 @@ declare const _default: vue.DefineComponent<{
|
|
|
125
148
|
variant: ButtonVariantName;
|
|
126
149
|
}>;
|
|
127
150
|
|
|
151
|
+
interface NavMenuItem {
|
|
152
|
+
to?: string | object;
|
|
153
|
+
href?: string;
|
|
154
|
+
label: string;
|
|
155
|
+
}
|
|
156
|
+
declare const _default: vue.DefineComponent<{
|
|
157
|
+
/**
|
|
158
|
+
* An array of menu items
|
|
159
|
+
* `{ to?: string | object; href?: string; label: string; }`
|
|
160
|
+
*/
|
|
161
|
+
menuItems: {
|
|
162
|
+
type: PropType<NavMenuItem[]>;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* The label for the action button.
|
|
166
|
+
* Also emits the `action` event.
|
|
167
|
+
*/
|
|
168
|
+
actionLabel: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
};
|
|
171
|
+
}, {
|
|
172
|
+
isMobileMenuOpen: vue.Ref<boolean>;
|
|
173
|
+
toggleMobileMenu: () => boolean;
|
|
174
|
+
actionClicked: () => void;
|
|
175
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "action"[], "action", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
176
|
+
/**
|
|
177
|
+
* An array of menu items
|
|
178
|
+
* `{ to?: string | object; href?: string; label: string; }`
|
|
179
|
+
*/
|
|
180
|
+
menuItems: {
|
|
181
|
+
type: PropType<NavMenuItem[]>;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* The label for the action button.
|
|
185
|
+
* Also emits the `action` event.
|
|
186
|
+
*/
|
|
187
|
+
actionLabel: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
};
|
|
190
|
+
}>> & {
|
|
191
|
+
onAction?: ((...args: any[]) => any) | undefined;
|
|
192
|
+
}, {}>;
|
|
193
|
+
|
|
128
194
|
declare const install: Exclude<Plugin['install'], undefined>;
|
|
129
195
|
|
|
130
|
-
|
|
196
|
+
declare module '@frollo/frollo-web-ui/icons' { }
|
|
197
|
+
|
|
198
|
+
export { ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonVariantName, _default$1 as FwButton, FwButtonProps, _default$2 as FwCard, _default as FwNavigationMenu, NavMenuItem, install as default };
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frollo/frollo-web-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Frollo's UI library for components, utilities and configs",
|
|
5
5
|
"exports": {
|
|
6
|
+
"./icons": "./icons/index.ts",
|
|
6
7
|
"./tailwind.config.js": "./tailwind.config.js",
|
|
7
8
|
".": {
|
|
8
9
|
"import": "./frollo-web-ui.esm.js",
|
package/tailwind.config.js
CHANGED
|
@@ -8,7 +8,7 @@ module.exports = {
|
|
|
8
8
|
white: '#ffffff',
|
|
9
9
|
black: '#000000',
|
|
10
10
|
transparent: 'transparent',
|
|
11
|
-
body: '#
|
|
11
|
+
body: '#000000',
|
|
12
12
|
error: '#eb5757',
|
|
13
13
|
success: '#00c48c',
|
|
14
14
|
grey: {
|
|
@@ -38,6 +38,9 @@ module.exports = {
|
|
|
38
38
|
extend: {
|
|
39
39
|
minWidth: {
|
|
40
40
|
'banner': '420px'
|
|
41
|
+
},
|
|
42
|
+
boxShadow: {
|
|
43
|
+
'card': '0px 1px 7px rgba(0, 0, 0, 0.1714)'
|
|
41
44
|
}
|
|
42
45
|
},
|
|
43
46
|
configViewer: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
export declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success';
|
|
2
|
+
export declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'text';
|
|
3
3
|
export interface ButtonDefinition {
|
|
4
4
|
text: string;
|
|
5
5
|
background: string;
|
|
@@ -56,6 +56,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
onMouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
57
57
|
onFocusin: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
58
58
|
onFocusout: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
59
|
+
tagName: import("vue").ComputedRef<"router-link" | "a" | "button">;
|
|
59
60
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover" | "mouseout" | "focusin" | "focusout")[], "click" | "mouseover" | "mouseout" | "focusin" | "focusout", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
61
|
/**
|
|
61
62
|
* A `router-link` path or object
|
|
@@ -11,7 +11,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
prefixTitle: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* A `router-link` path or object
|
|
16
|
+
*/
|
|
17
|
+
to: {
|
|
18
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* A URL to link to using a native anchor element
|
|
22
|
+
*/
|
|
23
|
+
href: StringConstructor;
|
|
24
|
+
}, {
|
|
25
|
+
componentName: import("vue").ComputedRef<"router-link" | "a" | "div">;
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
27
|
/**
|
|
16
28
|
* The header title of the card
|
|
17
29
|
*/
|
|
@@ -24,5 +36,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
36
|
prefixTitle: {
|
|
25
37
|
type: StringConstructor;
|
|
26
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* A `router-link` path or object
|
|
41
|
+
*/
|
|
42
|
+
to: {
|
|
43
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* A URL to link to using a native anchor element
|
|
47
|
+
*/
|
|
48
|
+
href: StringConstructor;
|
|
27
49
|
}>>, {}>;
|
|
28
50
|
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export interface NavMenuItem {
|
|
3
|
+
to?: string | object;
|
|
4
|
+
href?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
/**
|
|
9
|
+
* An array of menu items
|
|
10
|
+
* `{ to?: string | object; href?: string; label: string; }`
|
|
11
|
+
*/
|
|
12
|
+
menuItems: {
|
|
13
|
+
type: PropType<NavMenuItem[]>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The label for the action button.
|
|
17
|
+
* Also emits the `action` event.
|
|
18
|
+
*/
|
|
19
|
+
actionLabel: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
isMobileMenuOpen: import("vue").Ref<boolean>;
|
|
24
|
+
toggleMobileMenu: () => boolean;
|
|
25
|
+
actionClicked: () => void;
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "action"[], "action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
/**
|
|
28
|
+
* An array of menu items
|
|
29
|
+
* `{ to?: string | object; href?: string; label: string; }`
|
|
30
|
+
*/
|
|
31
|
+
menuItems: {
|
|
32
|
+
type: PropType<NavMenuItem[]>;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The label for the action button.
|
|
36
|
+
* Also emits the `action` event.
|
|
37
|
+
*/
|
|
38
|
+
actionLabel: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
41
|
+
}>> & {
|
|
42
|
+
onAction?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, {}>;
|
|
44
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import install from './index.esm';
|
|
2
2
|
export default install;
|
|
3
3
|
export * from './components';
|
|
4
|
+
declare module '@frollo/frollo-web-ui/icons' { }
|
|
4
5
|
export * from './components/fw-card/fw-card.vue';
|
|
5
6
|
export * from './components/fw-button/fw-button.vue';
|
|
7
|
+
export * from './components/fw-navigation-menu/fw-navigation-menu.vue';
|