@frollo/frollo-web-ui 0.0.12 → 0.0.13
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 +144 -50
- package/esm/{style-inject.es-da8f7768.js → es.array.includes-da6c7cd3.js} +59 -584
- package/esm/es.function.name-b783cd46.js +29 -0
- package/esm/{fw-button-54999a6e.js → fw-button-41138928.js} +4 -3
- package/esm/fw-button.js +3 -2
- package/esm/fw-checkbox.js +108 -0
- package/esm/fw-input.js +3 -29
- package/esm/fw-navigation-menu.js +3 -2
- package/esm/index.js +9 -4
- package/esm/style-inject.es-f0777dab.js +528 -0
- package/frollo-web-ui.esm.js +159 -56
- package/index.d.ts +65 -5
- package/package.json +1 -1
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +60 -0
- package/types/components/fw-checkbox/index.d.ts +2 -0
- package/types/components/index.d.ts +1 -0
- package/types/index-types.esm.d.ts +1 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { j as descriptors, x as functionName, f as functionUncurryThis, o as objectDefineProperty } from './style-inject.es-f0777dab.js';
|
|
2
|
+
|
|
3
|
+
var es_function_name = {};
|
|
4
|
+
|
|
5
|
+
var DESCRIPTORS = descriptors;
|
|
6
|
+
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
7
|
+
var uncurryThis = functionUncurryThis;
|
|
8
|
+
var defineProperty = objectDefineProperty.f;
|
|
9
|
+
|
|
10
|
+
var FunctionPrototype = Function.prototype;
|
|
11
|
+
var functionToString = uncurryThis(FunctionPrototype.toString);
|
|
12
|
+
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
13
|
+
var regExpExec = uncurryThis(nameRE.exec);
|
|
14
|
+
var NAME = 'name';
|
|
15
|
+
|
|
16
|
+
// Function instances `.name` property
|
|
17
|
+
// https://tc39.es/ecma262/#sec-function-instances-name
|
|
18
|
+
if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
|
|
19
|
+
defineProperty(FunctionPrototype, NAME, {
|
|
20
|
+
configurable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
try {
|
|
23
|
+
return regExpExec(nameRE, functionToString(this))[1];
|
|
24
|
+
} catch (error) {
|
|
25
|
+
return '';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './es.array.includes-da6c7cd3.js';
|
|
2
2
|
import { defineComponent, ref, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, renderSlot } from 'vue';
|
|
3
|
+
import { s as styleInject } from './style-inject.es-f0777dab.js';
|
|
3
4
|
|
|
4
5
|
var script = defineComponent({
|
|
5
6
|
name: 'FwButton',
|
|
@@ -81,7 +82,7 @@ var script = defineComponent({
|
|
|
81
82
|
link: {
|
|
82
83
|
text: 'text-primary font-normal underline hover:no-underline active:no-underline focus-visible:no-underline',
|
|
83
84
|
background: '',
|
|
84
|
-
border: 'border-none
|
|
85
|
+
border: 'border-none focus-visible:ring-primary'
|
|
85
86
|
},
|
|
86
87
|
text: {
|
|
87
88
|
text: 'text-body font-medium hover:text-white active:text-white',
|
|
@@ -170,7 +171,7 @@ var script = defineComponent({
|
|
|
170
171
|
|
|
171
172
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
172
173
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tagName), {
|
|
173
|
-
"class": normalizeClass(["fw-button
|
|
174
|
+
"class": normalizeClass(["fw-button cursor-pointer whitespace-nowrap border-2 focus:outline-0 focus-visible:outline-0 focus:ring-none ring-offset-2 focus-visible:ring", [_ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 rounded-none font-normal' : 'font-bold rounded-full']]),
|
|
174
175
|
type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
|
|
175
176
|
to: _ctx.to ? _ctx.to : null,
|
|
176
177
|
href: _ctx.href ? _ctx.href : null,
|
package/esm/fw-button.js
CHANGED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, mergeProps, createCommentVNode, Transition, toDisplayString } from 'vue';
|
|
2
|
+
import { a as Field } from './vee-validate.esm-028c6424.js';
|
|
3
|
+
import './es.function.name-b783cd46.js';
|
|
4
|
+
import { s as styleInject } from './style-inject.es-f0777dab.js';
|
|
5
|
+
|
|
6
|
+
var script = defineComponent({
|
|
7
|
+
name: 'FwCheckbox',
|
|
8
|
+
components: {
|
|
9
|
+
InputField: Field
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
/**
|
|
13
|
+
* The name of the input field. Must be unique per form.
|
|
14
|
+
*/
|
|
15
|
+
name: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Label for the input. Also renders to an aria-label attribute
|
|
22
|
+
*/
|
|
23
|
+
label: {
|
|
24
|
+
type: String
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Validation rules. Accepts a string, object, function or schema.
|
|
29
|
+
*/
|
|
30
|
+
rules: {
|
|
31
|
+
type: [String, Object, Function]
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The hint text shown below the input
|
|
36
|
+
*/
|
|
37
|
+
hint: {
|
|
38
|
+
type: String
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var _hoisted_1 = {
|
|
44
|
+
"class": "fw-checkbox w-full"
|
|
45
|
+
};
|
|
46
|
+
var _hoisted_2 = {
|
|
47
|
+
"class": "flex flex-col"
|
|
48
|
+
};
|
|
49
|
+
var _hoisted_3 = ["for"];
|
|
50
|
+
var _hoisted_4 = ["value", "name"];
|
|
51
|
+
var _hoisted_5 = ["innerHTML"];
|
|
52
|
+
var _hoisted_6 = {
|
|
53
|
+
"class": "italic text-sm font-medium min-h-[21px]"
|
|
54
|
+
};
|
|
55
|
+
var _hoisted_7 = {
|
|
56
|
+
key: 0,
|
|
57
|
+
"class": "text-error"
|
|
58
|
+
};
|
|
59
|
+
var _hoisted_8 = {
|
|
60
|
+
key: 1
|
|
61
|
+
};
|
|
62
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
63
|
+
var _component_InputField = resolveComponent("InputField");
|
|
64
|
+
|
|
65
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_InputField, {
|
|
66
|
+
name: _ctx.name,
|
|
67
|
+
value: _ctx.name,
|
|
68
|
+
type: "checkbox",
|
|
69
|
+
rules: _ctx.rules
|
|
70
|
+
}, {
|
|
71
|
+
"default": withCtx(function (_ref) {
|
|
72
|
+
var field = _ref.field,
|
|
73
|
+
errors = _ref.errors,
|
|
74
|
+
errorMessage = _ref.errorMessage,
|
|
75
|
+
meta = _ref.meta;
|
|
76
|
+
return [createElementVNode("div", _hoisted_2, [_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
77
|
+
key: 0,
|
|
78
|
+
"for": _ctx.name,
|
|
79
|
+
"class": "inline-flex items-center mb-3"
|
|
80
|
+
}, [createElementVNode("input", mergeProps(field, {
|
|
81
|
+
value: _ctx.name,
|
|
82
|
+
name: _ctx.name,
|
|
83
|
+
type: "checkbox",
|
|
84
|
+
"class": "text-primary w-6 h-6 cursor-pointer bg-white border-grey-light border rounded"
|
|
85
|
+
}), null, 16, _hoisted_4), createElementVNode("span", {
|
|
86
|
+
"class": "ml-2",
|
|
87
|
+
innerHTML: _ctx.label
|
|
88
|
+
}, null, 8, _hoisted_5)], 8, _hoisted_3)) : createCommentVNode("", true), createElementVNode("div", _hoisted_6, [createVNode(Transition, {
|
|
89
|
+
name: "fwFadeIn",
|
|
90
|
+
mode: "out-in"
|
|
91
|
+
}, {
|
|
92
|
+
"default": withCtx(function () {
|
|
93
|
+
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true)];
|
|
94
|
+
}),
|
|
95
|
+
_: 2
|
|
96
|
+
}, 1024)])])];
|
|
97
|
+
}),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["name", "value", "rules"])]);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
var css_248z = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}.fw-checkbox input{-webkit-print-color-adjust:exact;-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;color-adjust:exact;display:inline-block;flex-shrink:0;-webkit-transition:background .2s ease-in;-o-transition:background .2s ease-in;transition:background .2s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input:checked{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='3 3 10 10' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}";
|
|
103
|
+
var stylesheet = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}.fw-checkbox input{-webkit-print-color-adjust:exact;-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;color-adjust:exact;display:inline-block;flex-shrink:0;-webkit-transition:background .2s ease-in;-o-transition:background .2s ease-in;transition:background .2s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input:checked{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='3 3 10 10' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}";
|
|
104
|
+
styleInject(css_248z);
|
|
105
|
+
|
|
106
|
+
script.render = render;
|
|
107
|
+
|
|
108
|
+
export { script as FwCheckbox };
|
package/esm/fw-input.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './es.array.includes-da6c7cd3.js';
|
|
2
2
|
import { defineComponent, computed, createElementVNode, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, toDisplayString, createCommentVNode, renderSlot, mergeProps, Transition, normalizeClass } from 'vue';
|
|
3
3
|
import { a as Field } from './vee-validate.esm-028c6424.js';
|
|
4
|
+
import './es.function.name-b783cd46.js';
|
|
5
|
+
import { s as styleInject } from './style-inject.es-f0777dab.js';
|
|
4
6
|
|
|
5
7
|
var script = defineComponent({
|
|
6
8
|
name: 'FwInput',
|
|
@@ -88,34 +90,6 @@ var script = defineComponent({
|
|
|
88
90
|
}
|
|
89
91
|
});
|
|
90
92
|
|
|
91
|
-
var es_function_name = {};
|
|
92
|
-
|
|
93
|
-
var DESCRIPTORS = descriptors;
|
|
94
|
-
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
95
|
-
var uncurryThis = functionUncurryThis;
|
|
96
|
-
var defineProperty = objectDefineProperty.f;
|
|
97
|
-
|
|
98
|
-
var FunctionPrototype = Function.prototype;
|
|
99
|
-
var functionToString = uncurryThis(FunctionPrototype.toString);
|
|
100
|
-
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
101
|
-
var regExpExec = uncurryThis(nameRE.exec);
|
|
102
|
-
var NAME = 'name';
|
|
103
|
-
|
|
104
|
-
// Function instances `.name` property
|
|
105
|
-
// https://tc39.es/ecma262/#sec-function-instances-name
|
|
106
|
-
if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
|
|
107
|
-
defineProperty(FunctionPrototype, NAME, {
|
|
108
|
-
configurable: true,
|
|
109
|
-
get: function () {
|
|
110
|
-
try {
|
|
111
|
-
return regExpExec(nameRE, functionToString(this))[1];
|
|
112
|
-
} catch (error) {
|
|
113
|
-
return '';
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
|
|
119
93
|
var _hoisted_1 = {
|
|
120
94
|
"class": "fw-input w-full"
|
|
121
95
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
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-
|
|
3
|
-
import {
|
|
2
|
+
import { s as script$1 } from './fw-button-41138928.js';
|
|
3
|
+
import { s as styleInject } from './style-inject.es-f0777dab.js';
|
|
4
|
+
import './es.array.includes-da6c7cd3.js';
|
|
4
5
|
|
|
5
6
|
var script = defineComponent({
|
|
6
7
|
name: 'FwNavigationMenu',
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { f as functionUncurryThis, a as aCallable$1, b as functionBindNative,
|
|
1
|
+
import { f as functionUncurryThis, a as aCallable$1, b as functionBindNative, w as wellKnownSymbol$3, g as global$3, i as isCallable$2, c as fails$2, d as getBuiltIn$1, e as isObject$1, t as toObject$1, h as documentCreateElement$1, j as descriptors } from './style-inject.es-f0777dab.js';
|
|
2
|
+
import { c as classofRaw$1, i as inspectSource$1, a as indexedObject, l as lengthOfArrayLike$1, _ as _export, r as redefine$1, b as createNonEnumerableProperty$1, o as objectKeys$1, t as toIndexedObject$1, d as objectPropertyIsEnumerable } from './es.array.includes-da6c7cd3.js';
|
|
2
3
|
import { FwCard as script } from './fw-card.js';
|
|
3
4
|
export { FwCard } from './fw-card.js';
|
|
4
5
|
import './fw-button.js';
|
|
@@ -7,11 +8,14 @@ export { FwNavigationMenu } from './fw-navigation-menu.js';
|
|
|
7
8
|
import './fw-form.js';
|
|
8
9
|
import { FwInput as script$3 } from './fw-input.js';
|
|
9
10
|
export { FwInput } from './fw-input.js';
|
|
10
|
-
import {
|
|
11
|
-
export {
|
|
11
|
+
import { FwCheckbox as script$4 } from './fw-checkbox.js';
|
|
12
|
+
export { FwCheckbox } from './fw-checkbox.js';
|
|
13
|
+
import { s as script$1 } from './fw-button-41138928.js';
|
|
14
|
+
export { s as FwButton } from './fw-button-41138928.js';
|
|
12
15
|
import { F as Form } from './vee-validate.esm-028c6424.js';
|
|
13
16
|
export { F as FwForm } from './vee-validate.esm-028c6424.js';
|
|
14
17
|
import 'vue';
|
|
18
|
+
import './es.function.name-b783cd46.js';
|
|
15
19
|
|
|
16
20
|
function _arrayWithHoles(arr) {
|
|
17
21
|
if (Array.isArray(arr)) return arr;
|
|
@@ -480,7 +484,8 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
480
484
|
FwButton: script$1,
|
|
481
485
|
FwNavigationMenu: script$2,
|
|
482
486
|
FwForm: Form,
|
|
483
|
-
FwInput: script$3
|
|
487
|
+
FwInput: script$3,
|
|
488
|
+
FwCheckbox: script$4
|
|
484
489
|
});
|
|
485
490
|
|
|
486
491
|
var install = function install(app) {
|