@frollo/frollo-web-ui 0.1.1 → 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 +169 -117
- package/esm/{fw-button-bba6ac88.js → fw-button-ab906734.js} +1 -1
- package/esm/fw-button.js +1 -1
- package/esm/fw-checkbox.js +6 -6
- package/esm/fw-input.js +11 -3
- package/esm/fw-modal.js +2 -2
- package/esm/fw-navigation-menu.js +71 -17
- package/esm/fw-tabs.js +2 -1
- package/esm/{index-0e14da44.js → index-5ee56f7d.js} +14 -61
- package/esm/{index-1813012f.js → index-963039a3.js} +8 -7
- package/esm/index.js +7 -6
- package/esm/to-string-139f1ee8.js +52 -0
- package/frollo-web-ui.esm.js +179 -117
- package/index.d.ts +23 -10
- package/package.json +2 -2
- 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 +16 -4
- package/types/components/fw-input/index.types.d.ts +1 -1
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +2 -0
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,6 +72,12 @@ 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
|
}, {
|
|
76
82
|
inputBaseClass: vue.Ref<string>;
|
|
77
83
|
inputValue: vue.WritableComputedRef<string>;
|
|
@@ -112,10 +118,10 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
112
118
|
default: string;
|
|
113
119
|
};
|
|
114
120
|
/**
|
|
115
|
-
* Validation rules. Accepts
|
|
121
|
+
* Validation rules. Accepts an object, string schema or validation function.
|
|
116
122
|
*/
|
|
117
123
|
rules: {
|
|
118
|
-
type:
|
|
124
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
119
125
|
};
|
|
120
126
|
/**
|
|
121
127
|
* Converts the input into a readonly disabled field
|
|
@@ -130,6 +136,12 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
130
136
|
hint: {
|
|
131
137
|
type: StringConstructor;
|
|
132
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* The autocomplete input attribute
|
|
141
|
+
*/
|
|
142
|
+
autocomplete: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
};
|
|
133
145
|
}>> & {
|
|
134
146
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
135
147
|
}, {
|
|
@@ -154,10 +166,10 @@ declare const _default$6: vue.DefineComponent<{
|
|
|
154
166
|
type: StringConstructor;
|
|
155
167
|
};
|
|
156
168
|
/**
|
|
157
|
-
* Validation rules. Accepts
|
|
169
|
+
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
158
170
|
*/
|
|
159
171
|
rules: {
|
|
160
|
-
type:
|
|
172
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
161
173
|
};
|
|
162
174
|
/**
|
|
163
175
|
* The hint text shown below the input
|
|
@@ -180,10 +192,10 @@ declare const _default$6: vue.DefineComponent<{
|
|
|
180
192
|
type: StringConstructor;
|
|
181
193
|
};
|
|
182
194
|
/**
|
|
183
|
-
* Validation rules. Accepts
|
|
195
|
+
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
184
196
|
*/
|
|
185
197
|
rules: {
|
|
186
|
-
type:
|
|
198
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
187
199
|
};
|
|
188
200
|
/**
|
|
189
201
|
* The hint text shown below the input
|
|
@@ -396,6 +408,7 @@ declare const _default$3: vue.DefineComponent<{
|
|
|
396
408
|
isMobileMenuOpen: vue.Ref<boolean>;
|
|
397
409
|
toggleMobileMenu: () => boolean;
|
|
398
410
|
actionClicked: () => void;
|
|
411
|
+
ButtonVariantName: typeof ButtonVariantName;
|
|
399
412
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "action"[], "action", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
400
413
|
/**
|
|
401
414
|
* An array of menu items
|
|
@@ -636,7 +649,7 @@ declare interface FwCardProps {
|
|
|
636
649
|
declare interface FwCheckboxProps {
|
|
637
650
|
name: string;
|
|
638
651
|
label?: string;
|
|
639
|
-
rules?: string |
|
|
652
|
+
rules?: string | Record<string, unknown> | (() => boolean);
|
|
640
653
|
hint?: string;
|
|
641
654
|
}
|
|
642
655
|
|
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.2",
|
|
4
4
|
"description": "Frollo's UI library for components, utilities and configs",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./icons": "./icons/index.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@vue/eslint-config-typescript": "^10.0.0",
|
|
58
58
|
"@vue/test-utils": "^2.0.0-rc.17",
|
|
59
59
|
"@vue/vue3-jest": "^28.0.0",
|
|
60
|
-
"autoprefixer": "^10.4.
|
|
60
|
+
"autoprefixer": "^10.4.7",
|
|
61
61
|
"babel-core": "^7.0.0-bridge.0",
|
|
62
62
|
"babel-jest": "^28.1.1",
|
|
63
63
|
"babel-loader": "^8.2.5",
|
|
@@ -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,6 +55,12 @@ 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
|
}, {
|
|
59
65
|
inputBaseClass: import("vue").Ref<string>;
|
|
60
66
|
inputValue: import("vue").WritableComputedRef<string>;
|
|
@@ -95,10 +101,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
101
|
default: string;
|
|
96
102
|
};
|
|
97
103
|
/**
|
|
98
|
-
* Validation rules. Accepts
|
|
104
|
+
* Validation rules. Accepts an object, string schema or validation function.
|
|
99
105
|
*/
|
|
100
106
|
rules: {
|
|
101
|
-
type:
|
|
107
|
+
type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
|
|
102
108
|
};
|
|
103
109
|
/**
|
|
104
110
|
* Converts the input into a readonly disabled field
|
|
@@ -113,6 +119,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
119
|
hint: {
|
|
114
120
|
type: StringConstructor;
|
|
115
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* The autocomplete input attribute
|
|
124
|
+
*/
|
|
125
|
+
autocomplete: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
};
|
|
116
128
|
}>> & {
|
|
117
129
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
118
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
|
|
@@ -20,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
21
|
isMobileMenuOpen: import("vue").Ref<boolean>;
|
|
21
22
|
toggleMobileMenu: () => boolean;
|
|
22
23
|
actionClicked: () => void;
|
|
24
|
+
ButtonVariantName: typeof ButtonVariantName;
|
|
23
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "action"[], "action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
26
|
/**
|
|
25
27
|
* An array of menu items
|