@frollo/frollo-web-ui 0.0.21 → 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 +1141 -476
- 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-fee2541f.js → fw-button-bba6ac88.js} +14 -6
- package/esm/fw-button.js +4 -4
- package/esm/fw-card.js +7 -4
- 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 -0
- package/esm/fw-navigation-menu.js +16 -15
- 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 +185 -26
- package/esm/{vee-validate.esm-028c6424.js → vee-validate.esm-b64acab1.js} +62 -9
- package/frollo-web-ui.esm.js +1218 -488
- package/index.d.ts +217 -27
- package/package.json +22 -17
- package/styles/tailwind.scss +58 -0
- package/styles/transitions.scss +20 -0
- package/styles/typography.scss +38 -0
- package/tailwind.config.js +10 -10
- package/types/components/fw-button/fw-button.vue.d.ts +2 -21
- package/types/components/fw-button/index.types.d.ts +29 -0
- package/types/components/fw-card/fw-card.vue.d.ts +1 -0
- package/types/components/fw-card/index.types.d.ts +6 -0
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +0 -6
- package/types/components/fw-checkbox/index.types.d.ts +6 -0
- package/types/components/fw-input/fw-input.vue.d.ts +5 -14
- package/types/components/fw-input/index.types.d.ts +14 -0
- package/types/components/fw-modal/fw-modal.vue.d.ts +145 -0
- package/types/components/fw-modal/index.d.ts +2 -0
- package/types/components/fw-modal/index.types.d.ts +12 -0
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +2 -5
- package/types/components/fw-navigation-menu/index.types.d.ts +5 -0
- package/types/components/index.d.ts +1 -0
- package/types/components/index.types.d.ts +6 -0
- package/types/index-types.esm.d.ts +2 -7
- package/types/index.d.ts +1 -0
- package/types/index.esm.d.ts +1 -0
- package/types/services/index.d.ts +1 -0
- package/types/services/modal.d.ts +9 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
1
|
+
import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition, normalizeClass } from 'vue';
|
|
2
|
+
import { s as script$1 } from './fw-button-bba6ac88.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
4
|
-
import './es.array.includes-
|
|
5
|
-
import './function-name-
|
|
6
|
-
import './add-to-unscopables-
|
|
4
|
+
import './es.array.includes-debcb50f.js';
|
|
5
|
+
import './function-name-f0c1223e.js';
|
|
6
|
+
import './add-to-unscopables-81c17489.js';
|
|
7
7
|
|
|
8
8
|
var script = defineComponent({
|
|
9
9
|
name: 'FwNavigationMenu',
|
|
@@ -29,6 +29,8 @@ var script = defineComponent({
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup: function setup(_props, ctx) {
|
|
32
|
+
var mobileMenuClass = ref( // eslint-disable-next-line max-len
|
|
33
|
+
"min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1");
|
|
32
34
|
var isMobileMenuOpen = ref(false);
|
|
33
35
|
|
|
34
36
|
var toggleMobileMenu = function toggleMobileMenu() {
|
|
@@ -40,6 +42,7 @@ var script = defineComponent({
|
|
|
40
42
|
};
|
|
41
43
|
|
|
42
44
|
return {
|
|
45
|
+
mobileMenuClass: mobileMenuClass,
|
|
43
46
|
isMobileMenuOpen: isMobileMenuOpen,
|
|
44
47
|
toggleMobileMenu: toggleMobileMenu,
|
|
45
48
|
actionClicked: actionClicked
|
|
@@ -59,7 +62,7 @@ var _hoisted_3 = {
|
|
|
59
62
|
};
|
|
60
63
|
var _hoisted_4 = {
|
|
61
64
|
key: 1,
|
|
62
|
-
"class": "container hidden sm:flex items-center justify-start sm:ml-6"
|
|
65
|
+
"class": "container hidden sm:flex items-center justify-start max-w-[600px] sm:ml-6"
|
|
63
66
|
};
|
|
64
67
|
var _hoisted_5 = {
|
|
65
68
|
"class": "flex space-x-2"
|
|
@@ -86,10 +89,6 @@ var _hoisted_9 = {
|
|
|
86
89
|
};
|
|
87
90
|
var _hoisted_10 = ["d"];
|
|
88
91
|
var _hoisted_11 = {
|
|
89
|
-
key: 0,
|
|
90
|
-
"class": "fw-nav-menu--mobile min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1"
|
|
91
|
-
};
|
|
92
|
-
var _hoisted_12 = {
|
|
93
92
|
"class": "w-full flex flex-col"
|
|
94
93
|
};
|
|
95
94
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -140,10 +139,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
139
|
"default": withCtx(function () {
|
|
141
140
|
var _ctx$menuItems2;
|
|
142
141
|
|
|
143
|
-
return [((_ctx$menuItems2 = _ctx.menuItems) === null || _ctx$menuItems2 === void 0 ? void 0 : _ctx$menuItems2.length) > 0 && _ctx.isMobileMenuOpen ? (openBlock(), createElementBlock("div",
|
|
142
|
+
return [((_ctx$menuItems2 = _ctx.menuItems) === null || _ctx$menuItems2 === void 0 ? void 0 : _ctx$menuItems2.length) > 0 && _ctx.isMobileMenuOpen ? (openBlock(), createElementBlock("div", {
|
|
143
|
+
key: 0,
|
|
144
|
+
"class": normalizeClass(["fw-nav-menu--mobile", _ctx.mobileMenuClass])
|
|
145
|
+
}, [createElementVNode("div", _hoisted_11, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
144
146
|
return openBlock(), createBlock(_component_FwButton, {
|
|
145
147
|
key: i,
|
|
146
|
-
"class": "w-full rounded-md
|
|
148
|
+
"class": "w-full rounded-md",
|
|
147
149
|
variant: "text",
|
|
148
150
|
href: item.href,
|
|
149
151
|
to: item.to,
|
|
@@ -158,14 +160,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
158
160
|
}), 128))]), _ctx.actionLabel ? (openBlock(), createBlock(_component_FwButton, {
|
|
159
161
|
key: 0,
|
|
160
162
|
"class": "w-full rounded-md px-2",
|
|
161
|
-
onClick: _ctx.actionClicked
|
|
162
|
-
size: "md"
|
|
163
|
+
onClick: _ctx.actionClicked
|
|
163
164
|
}, {
|
|
164
165
|
"default": withCtx(function () {
|
|
165
166
|
return [createTextVNode(toDisplayString(_ctx.actionLabel), 1)];
|
|
166
167
|
}),
|
|
167
168
|
_: 1
|
|
168
|
-
}, 8, ["onClick"])) : createCommentVNode("", true)])) : createCommentVNode("", true)];
|
|
169
|
+
}, 8, ["onClick"])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)];
|
|
169
170
|
}),
|
|
170
171
|
_: 1
|
|
171
172
|
})]);
|
package/esm/fw-tabs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as FwTab, s as FwTabs } from './index-
|
|
2
|
-
import './function-name-
|
|
3
|
-
import './add-to-unscopables-
|
|
1
|
+
export { b as FwTab, s as FwTabs } from './index-0e14da44.js';
|
|
2
|
+
import './function-name-f0c1223e.js';
|
|
3
|
+
import './add-to-unscopables-81c17489.js';
|
|
4
4
|
import 'vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as functionUncurryThis,
|
|
2
|
-
import { b as classofRaw$1, i as inspectSource$1,
|
|
1
|
+
import { b as functionUncurryThis, h as aCallable$1, c as functionBindNative, w as wellKnownSymbol$3, i as isCallable$4, f as fails$2, j as getBuiltIn$1, k as isObject$2, t as toObject$1, l as anObject$1, r as requireObjectCoercible$1, a as descriptors, g as global$1, m as hasOwnProperty_1, o as objectIsPrototypeOf, n as isSymbol$1, p as toPrimitive$1, q as objectDefineProperty } from './function-name-f0c1223e.js';
|
|
2
|
+
import { b as classofRaw$1, i as inspectSource$1, e as indexedObject, l as lengthOfArrayLike$1, f as isForced_1, d as defineBuiltIn$1, g as objectGetOwnPropertyNames, h as objectGetOwnPropertyDescriptor, _ as _export, j as addToUnscopables$1 } from './add-to-unscopables-81c17489.js';
|
|
3
3
|
import { defineComponent, computed, ref, provide, openBlock, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, renderSlot, getCurrentInstance, inject, watchEffect } from 'vue';
|
|
4
4
|
|
|
5
5
|
var uncurryThis$6 = functionUncurryThis;
|
|
@@ -20,7 +20,7 @@ var classof$3 = classofRaw$1;
|
|
|
20
20
|
|
|
21
21
|
// `IsArray` abstract operation
|
|
22
22
|
// https://tc39.es/ecma262/#sec-isarray
|
|
23
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
23
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
24
24
|
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
25
25
|
return classof$3(argument) == 'Array';
|
|
26
26
|
};
|
|
@@ -34,14 +34,13 @@ test[TO_STRING_TAG$1] = 'z';
|
|
|
34
34
|
|
|
35
35
|
var toStringTagSupport = String(test) === '[object z]';
|
|
36
36
|
|
|
37
|
-
var global$4 = global$5;
|
|
38
37
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
39
38
|
var isCallable$3 = isCallable$4;
|
|
40
39
|
var classofRaw = classofRaw$1;
|
|
41
40
|
var wellKnownSymbol$1 = wellKnownSymbol$3;
|
|
42
41
|
|
|
43
42
|
var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
|
|
44
|
-
var Object
|
|
43
|
+
var $Object = Object;
|
|
45
44
|
|
|
46
45
|
// ES3 wrong here
|
|
47
46
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -58,7 +57,7 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
58
57
|
var O, tag, result;
|
|
59
58
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
60
59
|
// @@toStringTag case
|
|
61
|
-
: typeof (tag = tryGet(O = Object
|
|
60
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
62
61
|
// builtinTag case
|
|
63
62
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
64
63
|
// ES3 arguments fallback
|
|
@@ -118,14 +117,13 @@ var isConstructor$1 = !construct || fails$1(function () {
|
|
|
118
117
|
|| called;
|
|
119
118
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
120
119
|
|
|
121
|
-
var global$3 = global$5;
|
|
122
120
|
var isArray = isArray$1;
|
|
123
121
|
var isConstructor = isConstructor$1;
|
|
124
122
|
var isObject$1 = isObject$2;
|
|
125
123
|
var wellKnownSymbol = wellKnownSymbol$3;
|
|
126
124
|
|
|
127
125
|
var SPECIES = wellKnownSymbol('species');
|
|
128
|
-
var Array
|
|
126
|
+
var $Array = Array;
|
|
129
127
|
|
|
130
128
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
131
129
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
@@ -134,12 +132,12 @@ var arraySpeciesConstructor$1 = function (originalArray) {
|
|
|
134
132
|
if (isArray(originalArray)) {
|
|
135
133
|
C = originalArray.constructor;
|
|
136
134
|
// cross-realm fallback
|
|
137
|
-
if (isConstructor(C) && (C === Array
|
|
135
|
+
if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
|
|
138
136
|
else if (isObject$1(C)) {
|
|
139
137
|
C = C[SPECIES];
|
|
140
138
|
if (C === null) C = undefined;
|
|
141
139
|
}
|
|
142
|
-
} return C === undefined ? Array
|
|
140
|
+
} return C === undefined ? $Array : C;
|
|
143
141
|
};
|
|
144
142
|
|
|
145
143
|
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
@@ -226,15 +224,14 @@ var arrayIteration = {
|
|
|
226
224
|
|
|
227
225
|
var es_number_constructor = {};
|
|
228
226
|
|
|
229
|
-
var global$2 = global$5;
|
|
230
227
|
var isCallable$1 = isCallable$4;
|
|
231
228
|
|
|
232
|
-
var String$
|
|
233
|
-
var TypeError
|
|
229
|
+
var $String$1 = String;
|
|
230
|
+
var $TypeError = TypeError;
|
|
234
231
|
|
|
235
232
|
var aPossiblePrototype$1 = function (argument) {
|
|
236
233
|
if (typeof argument == 'object' || isCallable$1(argument)) return argument;
|
|
237
|
-
throw TypeError
|
|
234
|
+
throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
|
|
238
235
|
};
|
|
239
236
|
|
|
240
237
|
/* eslint-disable no-proto -- safe */
|
|
@@ -246,13 +243,13 @@ var aPossiblePrototype = aPossiblePrototype$1;
|
|
|
246
243
|
// `Object.setPrototypeOf` method
|
|
247
244
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
248
245
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
249
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
246
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
250
247
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
251
248
|
var CORRECT_SETTER = false;
|
|
252
249
|
var test = {};
|
|
253
250
|
var setter;
|
|
254
251
|
try {
|
|
255
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
252
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
256
253
|
setter = uncurryThis$3(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
257
254
|
setter(test, []);
|
|
258
255
|
CORRECT_SETTER = test instanceof Array;
|
|
@@ -291,14 +288,13 @@ var uncurryThis$2 = functionUncurryThis;
|
|
|
291
288
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
292
289
|
var thisNumberValue$1 = uncurryThis$2(1.0.valueOf);
|
|
293
290
|
|
|
294
|
-
var global$1 = global$5;
|
|
295
291
|
var classof = classof$2;
|
|
296
292
|
|
|
297
|
-
var String
|
|
293
|
+
var $String = String;
|
|
298
294
|
|
|
299
295
|
var toString$1 = function (argument) {
|
|
300
296
|
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
301
|
-
return String
|
|
297
|
+
return $String(argument);
|
|
302
298
|
};
|
|
303
299
|
|
|
304
300
|
// a string of all valid unicode whitespaces
|
|
@@ -339,10 +335,10 @@ var stringTrim = {
|
|
|
339
335
|
|
|
340
336
|
'use strict';
|
|
341
337
|
var DESCRIPTORS = descriptors;
|
|
342
|
-
var global = global$
|
|
338
|
+
var global = global$1;
|
|
343
339
|
var uncurryThis = functionUncurryThis;
|
|
344
340
|
var isForced = isForced_1;
|
|
345
|
-
var
|
|
341
|
+
var defineBuiltIn = defineBuiltIn$1;
|
|
346
342
|
var hasOwn = hasOwnProperty_1;
|
|
347
343
|
var inheritIfRequired = inheritIfRequired$1;
|
|
348
344
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
@@ -423,7 +419,7 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb
|
|
|
423
419
|
}
|
|
424
420
|
NumberWrapper.prototype = NumberPrototype;
|
|
425
421
|
NumberPrototype.constructor = NumberWrapper;
|
|
426
|
-
|
|
422
|
+
defineBuiltIn(global, NUMBER, NumberWrapper, { constructor: true });
|
|
427
423
|
}
|
|
428
424
|
|
|
429
425
|
var script$1 = defineComponent({
|