@frollo/frollo-web-ui 3.0.0 → 3.0.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 +18838 -3083
- package/esm/add-to-unscopables-2400f45b.js +25 -0
- package/esm/{array-iteration-98e2cf9a.js → array-iteration-107f927f.js} +2 -3
- package/esm/array-method-has-species-support-3d413468.js +23 -0
- package/esm/{array-method-is-strict-544b103f.js → array-method-is-strict-055b1830.js} +1 -1
- package/esm/{array-species-create-5fc23c89.js → array-species-create-a5f5503b.js} +3 -4
- package/esm/{classof-a45668b6.js → classof-39c30bd5.js} +1 -2
- package/esm/{create-property-558a3c24.js → create-property-534611fd.js} +1 -2
- package/esm/delete-property-or-throw-8032646c.js +31 -0
- package/esm/does-not-exceed-safe-integer-31d08811.js +11 -0
- package/esm/es.array.concat-987938be.js +69 -0
- package/esm/{es.array.find-36d8f2f0.js → es.array.find-dfa1f42f.js} +5 -6
- package/esm/{es.array.includes-df8e6e35.js → es.array.includes-91be7771.js} +3 -4
- package/esm/{es.function.name-b642b74f.js → es.function.name-557cb1f9.js} +1 -1
- package/esm/{es.number.constructor-f279ce82.js → es.number.constructor-1249bd78.js} +2 -3
- package/esm/{fw-image-ec7b02c5.js → es.string.iterator-284b31d4.js} +11 -311
- package/esm/{object-keys-6a890c6f.js → export-a37ba078.js} +2 -13
- package/esm/function-apply-ce251590.js +14 -0
- package/esm/fw-accordion.js +2 -8
- package/esm/fw-animations.js +6 -20
- package/esm/fw-bar-chart.js +19 -0
- package/esm/{fw-button-df5c923f.js → fw-button-0401f207.js} +12 -27
- package/esm/fw-button.js +9 -8
- package/esm/{fw-card-8d3f4ab5.js → fw-card-1b6a67fe.js} +0 -5
- package/esm/fw-card.js +1 -1
- package/esm/fw-checkbox.js +27 -17
- package/esm/fw-dropdown.js +17 -34
- package/esm/fw-image-03f85465.js +289 -0
- package/esm/fw-image.js +20 -17
- package/esm/fw-input.js +24 -25
- package/esm/fw-loading-bar-f5ca605c.js +22 -0
- package/esm/{fw-loading-spinner-9b7c6855.js → fw-loading-spinner-164d8df0.js} +1 -2
- package/esm/fw-loading.js +6 -9
- package/esm/fw-modal.js +11 -21
- package/esm/fw-navigation-menu.js +11 -19
- package/esm/fw-progress-bar.js +4 -11
- package/esm/fw-sidebar-menu.js +131 -0
- package/esm/fw-table.js +12 -57
- package/esm/fw-tabs.js +60 -21
- package/esm/fw-tag.js +8 -8
- package/esm/fw-toast.js +29 -125
- package/esm/fw-transactions-card.js +21 -24
- package/esm/index-1a41e7bf.js +15838 -0
- package/esm/{index-4605e00e.js → index-692e4d19.js} +83 -55
- package/esm/index.js +43 -57
- package/esm/is-forced-752b5893.js +927 -0
- package/esm/{add-to-unscopables-3f461c07.js → object-create-f6f3a673.js} +3 -25
- package/esm/object-keys-4f5bf4e7.js +13 -0
- package/esm/{to-string-685748aa.js → to-string-12728fd2.js} +2 -2
- package/esm/{web.timers-4a6aaab8.js → web.timers-0f117224.js} +5 -15
- package/frollo-web-ui.esm.js +19112 -3282
- package/icons/chevron-left.svg +3 -0
- package/icons/chevron-right.svg +3 -0
- package/icons/index.ts +4 -0
- package/index.d.ts +200 -26
- package/package.json +4 -1
- package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +83 -0
- package/types/components/fw-bar-chart/index.d.ts +2 -0
- package/types/components/fw-bar-chart/index.types.d.ts +11 -0
- package/types/components/fw-button/fw-button.vue.d.ts +2 -2
- package/types/components/fw-button/index.types.d.ts +1 -1
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +3 -1
- package/types/components/fw-input/fw-input.vue.d.ts +1 -0
- package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +71 -0
- package/types/components/fw-sidebar-menu/index.d.ts +2 -0
- package/types/components/fw-sidebar-menu/index.types.d.ts +6 -0
- package/types/components/index.d.ts +2 -0
- package/types/components/index.types.d.ts +2 -0
- package/types/icons/index.d.ts +3 -1
- package/web-components/index.js +24066 -8740
- package/esm/function-name-e2f6ea36.js +0 -492
- package/esm/fw-loading-bar-da7d53fb.js +0 -22
- package/esm/is-forced-ddf227e6.js +0 -438
package/esm/fw-accordion.js
CHANGED
|
@@ -10,14 +10,12 @@ var script = defineComponent({
|
|
|
10
10
|
title: {
|
|
11
11
|
type: String
|
|
12
12
|
},
|
|
13
|
-
|
|
14
13
|
/**
|
|
15
14
|
* Title suffix of the accordion header
|
|
16
15
|
*/
|
|
17
16
|
suffixTitle: {
|
|
18
17
|
type: String
|
|
19
18
|
},
|
|
20
|
-
|
|
21
19
|
/**
|
|
22
20
|
* Whether the accordion should be initially opened
|
|
23
21
|
*/
|
|
@@ -28,15 +26,12 @@ var script = defineComponent({
|
|
|
28
26
|
},
|
|
29
27
|
setup: function setup(props) {
|
|
30
28
|
var isOpen = ref(props.isOpened);
|
|
31
|
-
|
|
32
29
|
var transitionEnter = function transitionEnter(el) {
|
|
33
30
|
el.style.height = el.scrollHeight + 'px';
|
|
34
31
|
};
|
|
35
|
-
|
|
36
32
|
var transitionLeave = function transitionLeave(el) {
|
|
37
33
|
el.style.height = '0';
|
|
38
34
|
};
|
|
39
|
-
|
|
40
35
|
return {
|
|
41
36
|
isOpen: isOpen,
|
|
42
37
|
transitionEnter: transitionEnter,
|
|
@@ -48,7 +43,6 @@ var script = defineComponent({
|
|
|
48
43
|
var _withScopeId = function _withScopeId(n) {
|
|
49
44
|
return pushScopeId("data-v-c9209c42"), n = n(), popScopeId(), n;
|
|
50
45
|
};
|
|
51
|
-
|
|
52
46
|
var _hoisted_1 = {
|
|
53
47
|
"class": "fw-accordion rounded border border-grey-40"
|
|
54
48
|
};
|
|
@@ -90,8 +84,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
90
84
|
}, 8, ["onBeforeEnter", "onEnter", "onBeforeLeave", "onLeave"])]);
|
|
91
85
|
}
|
|
92
86
|
|
|
93
|
-
var css_248z = ".fw-accordion--icon[data-v-c9209c42]{position:relative}.fw-accordion--icon[data-v-c9209c42]:after,.fw-accordion--icon[data-v-c9209c42]:before{background:var(--colorBody);border-radius:3px;content:\"\";height:.2rem;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transition:.3s ease-in-out
|
|
94
|
-
var stylesheet = ".fw-accordion--icon[data-v-c9209c42]{position:relative}.fw-accordion--icon[data-v-c9209c42]:after,.fw-accordion--icon[data-v-c9209c42]:before{background:var(--colorBody);border-radius:3px;content:\"\";height:.2rem;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transition:.3s ease-in-out
|
|
87
|
+
var css_248z = ".fw-accordion--icon[data-v-c9209c42]{position:relative}.fw-accordion--icon[data-v-c9209c42]:after,.fw-accordion--icon[data-v-c9209c42]:before{background:var(--colorBody);border-radius:3px;content:\"\";height:.2rem;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out;width:1rem}.fw-accordion--icon[data-v-c9209c42]:after{-webkit-transform:translate(-50%,-50%) rotate(90deg);-ms-transform:translate(-50%,-50%) rotate(90deg);transform:translate(-50%,-50%) rotate(90deg)}.fw-accordion--icon-open[data-v-c9209c42]:after{width:0}";
|
|
88
|
+
var stylesheet = ".fw-accordion--icon[data-v-c9209c42]{position:relative}.fw-accordion--icon[data-v-c9209c42]:after,.fw-accordion--icon[data-v-c9209c42]:before{background:var(--colorBody);border-radius:3px;content:\"\";height:.2rem;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out;width:1rem}.fw-accordion--icon[data-v-c9209c42]:after{-webkit-transform:translate(-50%,-50%) rotate(90deg);-ms-transform:translate(-50%,-50%) rotate(90deg);transform:translate(-50%,-50%) rotate(90deg)}.fw-accordion--icon-open[data-v-c9209c42]:after{width:0}";
|
|
95
89
|
styleInject(css_248z);
|
|
96
90
|
|
|
97
91
|
script.render = render;
|
package/esm/fw-animations.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import './es.number.constructor-
|
|
1
|
+
import './es.number.constructor-1249bd78.js';
|
|
2
2
|
import { defineComponent, useCssVars, pushScopeId, popScopeId, createElementVNode, openBlock, createElementBlock, createStaticVNode } from 'vue';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
4
|
-
export { s as FwLoadingSpinner } from './fw-loading-spinner-
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './index-4605e00e.js';
|
|
4
|
+
export { s as FwLoadingSpinner } from './fw-loading-spinner-164d8df0.js';
|
|
5
|
+
import './is-forced-752b5893.js';
|
|
6
|
+
import './to-string-12728fd2.js';
|
|
7
|
+
import './classof-39c30bd5.js';
|
|
8
|
+
import './index-692e4d19.js';
|
|
10
9
|
import './check-94a5917a.js';
|
|
11
10
|
|
|
12
11
|
var __default__$1 = defineComponent({
|
|
@@ -23,7 +22,6 @@ var __default__$1 = defineComponent({
|
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
|
-
|
|
27
25
|
var __injectCSSVars__$1 = function __injectCSSVars__() {
|
|
28
26
|
useCssVars(function (_ctx) {
|
|
29
27
|
return {
|
|
@@ -31,22 +29,18 @@ var __injectCSSVars__$1 = function __injectCSSVars__() {
|
|
|
31
29
|
};
|
|
32
30
|
});
|
|
33
31
|
};
|
|
34
|
-
|
|
35
32
|
var __setup__$1 = __default__$1.setup;
|
|
36
33
|
__default__$1.setup = __setup__$1 ? function (props, ctx) {
|
|
37
34
|
__injectCSSVars__$1();
|
|
38
|
-
|
|
39
35
|
return __setup__$1(props, ctx);
|
|
40
36
|
} : __injectCSSVars__$1;
|
|
41
37
|
|
|
42
38
|
var _withScopeId$1 = function _withScopeId(n) {
|
|
43
39
|
return pushScopeId("data-v-62714d9a"), n = n(), popScopeId(), n;
|
|
44
40
|
};
|
|
45
|
-
|
|
46
41
|
var _hoisted_1$1 = {
|
|
47
42
|
"class": "fw-email-pulse justify-center mx-auto"
|
|
48
43
|
};
|
|
49
|
-
|
|
50
44
|
var _hoisted_2$1 = /*#__PURE__*/_withScopeId$1(function () {
|
|
51
45
|
return /*#__PURE__*/createElementVNode("svg", {
|
|
52
46
|
width: "102",
|
|
@@ -61,7 +55,6 @@ var _hoisted_2$1 = /*#__PURE__*/_withScopeId$1(function () {
|
|
|
61
55
|
d: "M51 102C79.1665 102 102 79.1665 102 51C102 22.8335 79.1665 0 51 0C22.8335 0 0 22.8335 0 51C0 79.1665 22.8335 102 51 102ZM27 39C27 35.6859 29.6859 33 33 33H69C72.3094 33 75 35.6859 75 39V63C75 66.3141 72.3141 69 69 69H33C29.6859 69 27 66.3141 27 63V39ZM72 39C72 37.3462 70.6537 36 69 36H33C31.3463 36 30 37.35 30 39V42.375L48.2972 56.1009C49.8909 57.2934 52.1062 57.2934 53.7 56.1009L72 42.3759V39ZM69 66C70.6537 66 72 64.6537 72 63V46.0406L55.5 58.5C54.1781 59.4938 52.5881 60.0019 51 60.0019C49.4119 60.0019 47.8237 59.4947 46.5 58.5L30 46.0406V63C30 64.6537 31.3463 66 33 66H69Z"
|
|
62
56
|
})], -1);
|
|
63
57
|
});
|
|
64
|
-
|
|
65
58
|
var _hoisted_3 = /*#__PURE__*/_withScopeId$1(function () {
|
|
66
59
|
return /*#__PURE__*/createElementVNode("svg", {
|
|
67
60
|
"class": "absolute top-0 left-0",
|
|
@@ -73,7 +66,6 @@ var _hoisted_3 = /*#__PURE__*/_withScopeId$1(function () {
|
|
|
73
66
|
r: "45"
|
|
74
67
|
})], -1);
|
|
75
68
|
});
|
|
76
|
-
|
|
77
69
|
var _hoisted_4$1 = [_hoisted_2$1, _hoisted_3];
|
|
78
70
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
79
71
|
return openBlock(), createElementBlock("div", _hoisted_1$1, _hoisted_4$1);
|
|
@@ -100,7 +92,6 @@ var __default__ = defineComponent({
|
|
|
100
92
|
}
|
|
101
93
|
}
|
|
102
94
|
});
|
|
103
|
-
|
|
104
95
|
var __injectCSSVars__ = function __injectCSSVars__() {
|
|
105
96
|
useCssVars(function (_ctx) {
|
|
106
97
|
return {
|
|
@@ -108,24 +99,19 @@ var __injectCSSVars__ = function __injectCSSVars__() {
|
|
|
108
99
|
};
|
|
109
100
|
});
|
|
110
101
|
};
|
|
111
|
-
|
|
112
102
|
var __setup__ = __default__.setup;
|
|
113
103
|
__default__.setup = __setup__ ? function (props, ctx) {
|
|
114
104
|
__injectCSSVars__();
|
|
115
|
-
|
|
116
105
|
return __setup__(props, ctx);
|
|
117
106
|
} : __injectCSSVars__;
|
|
118
107
|
|
|
119
108
|
var _withScopeId = function _withScopeId(n) {
|
|
120
109
|
return pushScopeId("data-v-c32112d4"), n = n(), popScopeId(), n;
|
|
121
110
|
};
|
|
122
|
-
|
|
123
111
|
var _hoisted_1 = {
|
|
124
112
|
"class": "fw-success-pulse"
|
|
125
113
|
};
|
|
126
|
-
|
|
127
114
|
var _hoisted_2 = /*#__PURE__*/createStaticVNode("<svg class=\"fw-success-pulse--checkmark\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 52 52\" data-v-c32112d4><circle class=\"fw-success-pulse--checkmark__circle\" cx=\"26\" cy=\"26\" r=\"25\" fill=\"none\" data-v-c32112d4></circle><path class=\"fw-success-pulse--checkmark__check\" fill=\"none\" d=\"M14.1 27.2l7.1 7.2 16.7-16.8\" data-v-c32112d4></path></svg><svg class=\"absolute top-0 left-0\" viewBox=\"0 0 100 100\" data-v-c32112d4><circle class=\"fw-success-pulse--circle\" cx=\"50%\" cy=\"50%\" r=\"34\" data-v-c32112d4></circle></svg>", 2);
|
|
128
|
-
|
|
129
115
|
var _hoisted_4 = [_hoisted_2];
|
|
130
116
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
131
117
|
return openBlock(), createElementBlock("div", _hoisted_1, _hoisted_4);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { s as FwBarChart } from './index-1a41e7bf.js';
|
|
2
|
+
import './es.number.constructor-1249bd78.js';
|
|
3
|
+
import './is-forced-752b5893.js';
|
|
4
|
+
import './to-string-12728fd2.js';
|
|
5
|
+
import './classof-39c30bd5.js';
|
|
6
|
+
import './export-a37ba078.js';
|
|
7
|
+
import './object-create-f6f3a673.js';
|
|
8
|
+
import './object-keys-4f5bf4e7.js';
|
|
9
|
+
import './function-apply-ce251590.js';
|
|
10
|
+
import './es.string.iterator-284b31d4.js';
|
|
11
|
+
import './array-iteration-107f927f.js';
|
|
12
|
+
import './array-species-create-a5f5503b.js';
|
|
13
|
+
import './create-property-534611fd.js';
|
|
14
|
+
import './delete-property-or-throw-8032646c.js';
|
|
15
|
+
import './array-method-has-species-support-3d413468.js';
|
|
16
|
+
import './es.function.name-557cb1f9.js';
|
|
17
|
+
import './does-not-exceed-safe-integer-31d08811.js';
|
|
18
|
+
import 'vue';
|
|
19
|
+
import './uniqueId-fe08534a.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './es.array.includes-
|
|
1
|
+
import './es.array.includes-91be7771.js';
|
|
2
2
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, createElementVNode, renderSlot, createVNode, createCommentVNode } from 'vue';
|
|
3
|
-
import { s as script$1 } from './fw-loading-spinner-
|
|
3
|
+
import { s as script$1 } from './fw-loading-spinner-164d8df0.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
5
5
|
|
|
6
6
|
var script = defineComponent({
|
|
@@ -16,12 +16,10 @@ var script = defineComponent({
|
|
|
16
16
|
to: {
|
|
17
17
|
type: [String, Object]
|
|
18
18
|
},
|
|
19
|
-
|
|
20
19
|
/**
|
|
21
20
|
* A URL to link to using a native anchor element
|
|
22
21
|
*/
|
|
23
22
|
href: String,
|
|
24
|
-
|
|
25
23
|
/**
|
|
26
24
|
* The size of the button. Accepts: 'sm', 'md', 'lg', 'xl', '2xl'
|
|
27
25
|
*/
|
|
@@ -32,19 +30,17 @@ var script = defineComponent({
|
|
|
32
30
|
return ['sm', 'md', 'lg', 'xl', '2xl'].includes(value);
|
|
33
31
|
}
|
|
34
32
|
},
|
|
35
|
-
|
|
36
33
|
/**
|
|
37
34
|
* The colour variant of the button.
|
|
38
|
-
* Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
|
|
35
|
+
* Accepts 'primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'
|
|
39
36
|
*/
|
|
40
37
|
variant: {
|
|
41
38
|
type: String,
|
|
42
39
|
"default": 'primary',
|
|
43
40
|
validator: function validator(value) {
|
|
44
|
-
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text'].includes(value);
|
|
41
|
+
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'].includes(value);
|
|
45
42
|
}
|
|
46
43
|
},
|
|
47
|
-
|
|
48
44
|
/**
|
|
49
45
|
* The type attribute of the button
|
|
50
46
|
*/
|
|
@@ -55,7 +51,6 @@ var script = defineComponent({
|
|
|
55
51
|
return ['button', 'submit', 'reset'].includes(value);
|
|
56
52
|
}
|
|
57
53
|
},
|
|
58
|
-
|
|
59
54
|
/**
|
|
60
55
|
* The animation type of the hover & focus states.
|
|
61
56
|
* Accepts 'alternate' and 'fade'
|
|
@@ -67,7 +62,6 @@ var script = defineComponent({
|
|
|
67
62
|
return ['alternate', 'fade'].includes(value);
|
|
68
63
|
}
|
|
69
64
|
},
|
|
70
|
-
|
|
71
65
|
/**
|
|
72
66
|
* Whether the button is rounded or not
|
|
73
67
|
*/
|
|
@@ -75,7 +69,6 @@ var script = defineComponent({
|
|
|
75
69
|
type: Boolean,
|
|
76
70
|
"default": true
|
|
77
71
|
},
|
|
78
|
-
|
|
79
72
|
/**
|
|
80
73
|
* Whether the loading animation is shown or not
|
|
81
74
|
*/
|
|
@@ -83,7 +76,6 @@ var script = defineComponent({
|
|
|
83
76
|
type: Boolean,
|
|
84
77
|
"default": false
|
|
85
78
|
},
|
|
86
|
-
|
|
87
79
|
/**
|
|
88
80
|
* Whether the link should open in a new tab
|
|
89
81
|
*/
|
|
@@ -92,8 +84,7 @@ var script = defineComponent({
|
|
|
92
84
|
}
|
|
93
85
|
},
|
|
94
86
|
setup: function setup(props, ctx) {
|
|
95
|
-
var baseClass = ref(
|
|
96
|
-
'inline-block text-center whitespace-nowrap transition-colors ease-in-out duration-300 focus:outline-0 border-2 focus-visible:outline-0 focus:ring-none ring-offset-2 focus-visible:ring');
|
|
87
|
+
var baseClass = ref("inline-block text-center whitespace-nowrap transition-colors ease-in-out\n duration-300 focus:outline-0 border-2 focus-visible:outline-0 focus:ring-none ring-offset-2 focus-visible:ring\n ");
|
|
97
88
|
var buttonClasses = ref({
|
|
98
89
|
primary: {
|
|
99
90
|
text: '',
|
|
@@ -129,6 +120,11 @@ var script = defineComponent({
|
|
|
129
120
|
text: 'text-body font-semibold hover:text-white active:text-white',
|
|
130
121
|
background: 'bg-white hover:bg-body active:bg-body',
|
|
131
122
|
border: 'border-transparent focus-visible:ring-body'
|
|
123
|
+
},
|
|
124
|
+
transparent: {
|
|
125
|
+
text: 'text-grey-base hover:text-primary active:text-primary',
|
|
126
|
+
background: 'bg-none hover:bg-white focus:bg-white active:bg-white',
|
|
127
|
+
border: 'border-transparent focus-visible:ring-1 focus-visible:ring-primary'
|
|
132
128
|
}
|
|
133
129
|
});
|
|
134
130
|
var sizes = ref({
|
|
@@ -178,43 +174,33 @@ var script = defineComponent({
|
|
|
178
174
|
/**
|
|
179
175
|
* @event Click - Native click
|
|
180
176
|
*/
|
|
181
|
-
|
|
182
177
|
var onClick = function onClick(e) {
|
|
183
178
|
return ctx.emit('click', e);
|
|
184
179
|
};
|
|
185
180
|
/**
|
|
186
181
|
* @event mouseover - Native hover
|
|
187
182
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
183
|
var onMouseover = function onMouseover(e) {
|
|
191
184
|
return ctx.emit('mouseover', e);
|
|
192
185
|
};
|
|
193
186
|
/**
|
|
194
187
|
* @event mouseout - Native hover out
|
|
195
188
|
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
189
|
var onMouseout = function onMouseout(e) {
|
|
199
190
|
return ctx.emit('mouseout', e);
|
|
200
191
|
};
|
|
201
192
|
/**
|
|
202
193
|
* @event focusin - Native focusin
|
|
203
194
|
*/
|
|
204
|
-
|
|
205
|
-
|
|
206
195
|
var onFocusin = function onFocusin(e) {
|
|
207
196
|
return ctx.emit('focusin', e);
|
|
208
197
|
};
|
|
209
198
|
/**
|
|
210
199
|
* @event focusout - Native focusout
|
|
211
200
|
*/
|
|
212
|
-
|
|
213
|
-
|
|
214
201
|
var onFocusout = function onFocusout(e) {
|
|
215
202
|
return ctx.emit('focusout', e);
|
|
216
203
|
};
|
|
217
|
-
|
|
218
204
|
var tagName = computed(function () {
|
|
219
205
|
if (props.to) return 'router-link';
|
|
220
206
|
if (props.href) return 'a';
|
|
@@ -243,7 +229,6 @@ var _hoisted_1 = {
|
|
|
243
229
|
};
|
|
244
230
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
245
231
|
var _component_FwLoadingSpinner = resolveComponent("FwLoadingSpinner");
|
|
246
|
-
|
|
247
232
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tagName), {
|
|
248
233
|
"class": normalizeClass(["fw-button", [_ctx.baseClass, _ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.rounded && _ctx.variant !== 'link' ? 'rounded-full' : 'rounded', _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 font-normal rounded-1' : 'font-semibold', _ctx.animation === 'fade' ? 'animation--fade' : 'animation--alternate', _ctx.loading === true ? 'fw-button--loading cursor-progress' : 'cursor-pointer']]),
|
|
249
234
|
type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
|
|
@@ -272,8 +257,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
272
257
|
}, 40, ["class", "type", "to", "href", "tabindex", "disabled", "target", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
273
258
|
}
|
|
274
259
|
|
|
275
|
-
var css_248z = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s
|
|
276
|
-
var stylesheet = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s
|
|
260
|
+
var css_248z = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}";
|
|
261
|
+
var stylesheet = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}";
|
|
277
262
|
styleInject(css_248z);
|
|
278
263
|
|
|
279
264
|
script.render = render;
|
package/esm/fw-button.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { s as FwButton } from './fw-button-
|
|
2
|
-
import './es.array.includes-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
1
|
+
export { s as FwButton } from './fw-button-0401f207.js';
|
|
2
|
+
import './es.array.includes-91be7771.js';
|
|
3
|
+
import './is-forced-752b5893.js';
|
|
4
|
+
import './export-a37ba078.js';
|
|
5
|
+
import './add-to-unscopables-2400f45b.js';
|
|
6
|
+
import './object-create-f6f3a673.js';
|
|
7
|
+
import './object-keys-4f5bf4e7.js';
|
|
7
8
|
import 'vue';
|
|
8
|
-
import './fw-loading-spinner-
|
|
9
|
-
import './index-
|
|
9
|
+
import './fw-loading-spinner-164d8df0.js';
|
|
10
|
+
import './index-692e4d19.js';
|
|
10
11
|
import './check-94a5917a.js';
|
|
11
12
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -9,26 +9,22 @@ var script = defineComponent({
|
|
|
9
9
|
title: {
|
|
10
10
|
type: String
|
|
11
11
|
},
|
|
12
|
-
|
|
13
12
|
/**
|
|
14
13
|
* Title prefix with primary color
|
|
15
14
|
*/
|
|
16
15
|
prefixTitle: {
|
|
17
16
|
type: String
|
|
18
17
|
},
|
|
19
|
-
|
|
20
18
|
/**
|
|
21
19
|
* A `router-link` path or object
|
|
22
20
|
*/
|
|
23
21
|
to: {
|
|
24
22
|
type: [String, Object]
|
|
25
23
|
},
|
|
26
|
-
|
|
27
24
|
/**
|
|
28
25
|
* A URL to link to using a native anchor element
|
|
29
26
|
*/
|
|
30
27
|
href: String,
|
|
31
|
-
|
|
32
28
|
/**
|
|
33
29
|
* Whether padding should be applied around the default slot
|
|
34
30
|
*/
|
|
@@ -36,7 +32,6 @@ var script = defineComponent({
|
|
|
36
32
|
type: Boolean,
|
|
37
33
|
"default": true
|
|
38
34
|
},
|
|
39
|
-
|
|
40
35
|
/**
|
|
41
36
|
* Whether the card has a border or shadow by default
|
|
42
37
|
*/
|
package/esm/fw-card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { s as FwCard } from './fw-card-
|
|
1
|
+
export { s as FwCard } from './fw-card-1b6a67fe.js';
|
|
2
2
|
import 'vue';
|
package/esm/fw-checkbox.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { defineComponent, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, mergeProps, createCommentVNode, Transition, toDisplayString } from 'vue';
|
|
2
2
|
import { a as Field } from './vee-validate.esm-a17a23c3.js';
|
|
3
|
-
import './
|
|
3
|
+
import { u as uniqueId } from './uniqueId-fe08534a.js';
|
|
4
|
+
import './es.function.name-557cb1f9.js';
|
|
5
|
+
import './es.array.concat-987938be.js';
|
|
4
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
5
|
-
import './
|
|
7
|
+
import './is-forced-752b5893.js';
|
|
8
|
+
import './export-a37ba078.js';
|
|
9
|
+
import './array-species-create-a5f5503b.js';
|
|
10
|
+
import './classof-39c30bd5.js';
|
|
11
|
+
import './does-not-exceed-safe-integer-31d08811.js';
|
|
12
|
+
import './create-property-534611fd.js';
|
|
13
|
+
import './array-method-has-species-support-3d413468.js';
|
|
6
14
|
|
|
7
15
|
var script = defineComponent({
|
|
8
16
|
name: 'FwCheckbox',
|
|
@@ -17,34 +25,36 @@ var script = defineComponent({
|
|
|
17
25
|
type: String,
|
|
18
26
|
required: true
|
|
19
27
|
},
|
|
20
|
-
|
|
21
28
|
/**
|
|
22
29
|
* Label for the input. Also renders to an aria-label attribute
|
|
23
30
|
*/
|
|
24
31
|
label: {
|
|
25
32
|
type: String
|
|
26
33
|
},
|
|
27
|
-
|
|
28
34
|
/**
|
|
29
35
|
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
30
36
|
*/
|
|
31
37
|
rules: {
|
|
32
38
|
type: [Object, String, Function]
|
|
33
39
|
},
|
|
34
|
-
|
|
35
40
|
/**
|
|
36
41
|
* The hint text shown below the input
|
|
37
42
|
*/
|
|
38
43
|
hint: {
|
|
39
44
|
type: String
|
|
40
45
|
}
|
|
46
|
+
},
|
|
47
|
+
setup: function setup() {
|
|
48
|
+
var uuid = uniqueId();
|
|
49
|
+
return {
|
|
50
|
+
uuid: uuid
|
|
51
|
+
};
|
|
41
52
|
}
|
|
42
53
|
});
|
|
43
54
|
|
|
44
55
|
var _withScopeId = function _withScopeId(n) {
|
|
45
|
-
return pushScopeId("data-v-
|
|
56
|
+
return pushScopeId("data-v-3370ec5a"), n = n(), popScopeId(), n;
|
|
46
57
|
};
|
|
47
|
-
|
|
48
58
|
var _hoisted_1 = {
|
|
49
59
|
"class": "fw-checkbox w-full"
|
|
50
60
|
};
|
|
@@ -52,7 +62,7 @@ var _hoisted_2 = {
|
|
|
52
62
|
"class": "flex flex-col"
|
|
53
63
|
};
|
|
54
64
|
var _hoisted_3 = ["for"];
|
|
55
|
-
var _hoisted_4 = ["value", "name"];
|
|
65
|
+
var _hoisted_4 = ["value", "name", "id"];
|
|
56
66
|
var _hoisted_5 = ["innerHTML"];
|
|
57
67
|
var _hoisted_6 = {
|
|
58
68
|
"class": "italic text-sm font-medium min-h-[21px]"
|
|
@@ -66,7 +76,6 @@ var _hoisted_8 = {
|
|
|
66
76
|
};
|
|
67
77
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
68
78
|
var _component_InputField = resolveComponent("InputField");
|
|
69
|
-
|
|
70
79
|
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_InputField, {
|
|
71
80
|
name: _ctx.name,
|
|
72
81
|
value: _ctx.name,
|
|
@@ -75,15 +84,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75
84
|
}, {
|
|
76
85
|
"default": withCtx(function (_ref) {
|
|
77
86
|
var field = _ref.field,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
87
|
+
errors = _ref.errors,
|
|
88
|
+
errorMessage = _ref.errorMessage,
|
|
89
|
+
meta = _ref.meta;
|
|
81
90
|
return [createElementVNode("div", _hoisted_2, [createElementVNode("label", {
|
|
82
|
-
"for": _ctx.name,
|
|
91
|
+
"for": "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
|
|
83
92
|
"class": "inline-flex items-center mb-3"
|
|
84
93
|
}, [createElementVNode("input", mergeProps(field, {
|
|
85
94
|
value: _ctx.name,
|
|
86
|
-
name: _ctx.name,
|
|
95
|
+
name: "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
|
|
96
|
+
id: "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
|
|
87
97
|
type: "checkbox",
|
|
88
98
|
"class": "text-link w-6 h-6 cursor-pointer bg-white border-grey-light border rounded"
|
|
89
99
|
}), null, 16, _hoisted_4), _ctx.label ? (openBlock(), createElementBlock("span", {
|
|
@@ -104,11 +114,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
104
114
|
}, 8, ["name", "value", "rules"])]);
|
|
105
115
|
}
|
|
106
116
|
|
|
107
|
-
var css_248z = ".fwFadeIn-enter-active[data-v-
|
|
108
|
-
var stylesheet = ".fwFadeIn-enter-active[data-v-
|
|
117
|
+
var css_248z = ".fwFadeIn-enter-active[data-v-3370ec5a]{-webkit-animation:fwFadeIn-3370ec5a .35s;animation:fwFadeIn-3370ec5a .35s;-webkit-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-3370ec5a]{animation:fwFadeIn-3370ec5a .35s reverse;-webkit-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-3370ec5a{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-3370ec5a{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-3370ec5a]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;flex-shrink:0;-webkit-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[data-v-3370ec5a]: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}";
|
|
118
|
+
var stylesheet = ".fwFadeIn-enter-active[data-v-3370ec5a]{-webkit-animation:fwFadeIn-3370ec5a .35s;animation:fwFadeIn-3370ec5a .35s;-webkit-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-3370ec5a]{animation:fwFadeIn-3370ec5a .35s reverse;-webkit-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-3370ec5a{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-3370ec5a{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-3370ec5a]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;flex-shrink:0;-webkit-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[data-v-3370ec5a]: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}";
|
|
109
119
|
styleInject(css_248z);
|
|
110
120
|
|
|
111
121
|
script.render = render;
|
|
112
|
-
script.__scopeId = "data-v-
|
|
122
|
+
script.__scopeId = "data-v-3370ec5a";
|
|
113
123
|
|
|
114
124
|
export { script as FwCheckbox };
|