@frollo/frollo-web-ui 9.0.1 → 9.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 +10733 -3060
- package/esm/{_rollupPluginBabelHelpers-DODWUb5N.js → _rollupPluginBabelHelpers-BKlDnZ7n.js} +1 -1
- package/esm/fw-accordion.js +15 -18
- package/esm/fw-alert.js +32 -25
- package/esm/fw-bar-chart.js +265 -93
- package/esm/fw-button-DZTHZLjk.js +318 -0
- package/esm/fw-button.js +2 -2
- package/esm/{fw-card-D45R4kN-.js → fw-card-XGtsK2bM.js} +7 -10
- package/esm/fw-card.js +2 -2
- package/esm/fw-checkbox.js +8 -11
- package/esm/fw-date-picker.js +85 -49
- package/esm/fw-drawer.js +8 -8
- package/esm/{fw-dropdown-58wyuzsW.js → fw-dropdown-CSmYTm5O.js} +11 -14
- package/esm/fw-dropdown.js +7 -6
- package/esm/fw-form.js +1 -1
- package/esm/fw-icons.js +11 -12
- package/esm/fw-image-A2lXYs0u.js +325 -0
- package/esm/fw-image.js +5 -4
- package/esm/{fw-input-C2-cZ-BY.js → fw-input-BiPWWfK3.js} +12 -19
- package/esm/fw-input.js +3 -3
- package/esm/fw-loading-bar-3x4tkF1B.js +37 -0
- package/esm/fw-loading.js +89 -40
- package/esm/fw-media-picker.js +10 -653
- package/esm/fw-modal.js +11 -10
- package/esm/fw-navigation-menu.js +36 -41
- package/esm/fw-popover-BZ-zqUme.js +330 -0
- package/esm/fw-popover.js +2 -3
- package/esm/fw-progress-bar.js +1 -1
- package/esm/fw-provider-list.js +109 -87
- package/esm/fw-sidebar-menu.js +58 -51
- package/esm/fw-slider.js +64 -61
- package/esm/fw-switch.js +76 -49
- package/esm/fw-table-row-D6FdCJMs.js +447 -0
- package/esm/fw-table.js +5 -6
- package/esm/fw-tabs.js +87 -35
- package/esm/fw-tag-BRxPc4zc.js +199 -0
- package/esm/fw-tag.js +4 -4
- package/esm/fw-toast.js +58 -76
- package/esm/fw-transactions-card.js +20 -20
- package/esm/{get-root-colours-DCjlYelc.js → get-root-colours-DCCAnRF4.js} +3 -1
- package/esm/index-C8z11jcJ.js +7583 -0
- package/esm/index-DHyRsKsZ.js +843 -0
- package/esm/index-eP2GMSdQ.js +755 -0
- package/esm/index.js +54 -61
- package/esm/{uniqueId-DZdGzBh8.js → uniqueId-DK6xzFd8.js} +1 -1
- package/esm/{vee-validate.esm-3ptvCDR1.js → vee-validate-0dtT5GSQ.js} +182 -305
- package/frollo-web-ui.esm.js +10790 -3115
- package/icons/circle-check.svg +4 -0
- package/index.d.ts +1522 -586
- package/package.json +11 -11
- package/types/components/fw-accordion/fw-accordion.vue.d.ts +9 -7
- package/types/components/fw-alert/fw-alert.vue.d.ts +11 -6
- package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +15 -64
- package/types/components/fw-button/fw-button.vue.d.ts +11 -7
- package/types/components/fw-card/fw-card.vue.d.ts +6 -6
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +365 -5
- package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +3 -242
- package/types/components/fw-drawer/fw-drawer.vue.d.ts +11 -8
- package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +20 -12
- package/types/components/fw-icons/fw-success-animation.vue.d.ts +1 -1
- package/types/components/fw-image/fw-image.vue.d.ts +33 -7
- package/types/components/fw-input/fw-input.vue.d.ts +368 -10
- package/types/components/fw-loading/fw-loading-bar.vue.d.ts +7 -5
- package/types/components/fw-loading/fw-loading-card.vue.d.ts +3 -1
- package/types/components/fw-loading/fw-loading-dots.vue.d.ts +8 -1
- package/types/components/fw-loading/fw-loading-table.vue.d.ts +11 -6
- package/types/components/fw-media-picker/fw-media-picker.vue.d.ts +27 -18
- package/types/components/fw-modal/fw-modal.vue.d.ts +11 -7
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +12 -8
- package/types/components/fw-popover/fw-popover.vue.d.ts +16 -21
- package/types/components/fw-progress-bar/fw-progress-bar.vue.d.ts +6 -4
- package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +20 -45
- package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +13 -7
- package/types/components/fw-slider/fw-slider.vue.d.ts +11 -8
- package/types/components/fw-switch/fw-switch.vue.d.ts +383 -9
- package/types/components/fw-switch/index.types.d.ts +1 -0
- package/types/components/fw-table/fw-table-head.vue.d.ts +1 -1
- package/types/components/fw-table/fw-table-row.vue.d.ts +1 -1
- package/types/components/fw-table/fw-table.vue.d.ts +40 -19
- package/types/components/fw-table/index.types.d.ts +36 -2
- package/types/components/fw-tabs/fw-tab.vue.d.ts +4 -8
- package/types/components/fw-tabs/fw-tabs.vue.d.ts +11 -8
- package/types/components/fw-tabs/index.types.d.ts +14 -4
- package/types/components/fw-tag/fw-tag.vue.d.ts +14 -8
- package/types/components/fw-toast/fw-toast.vue.d.ts +17 -22
- package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +6 -3
- package/types/directives/lazy-loader.d.ts +11 -2
- package/types/helpers/get-root-colours.d.ts +1 -0
- package/web-components/index.js +16793 -7700
- package/esm/fw-button-YMoW4x4c.js +0 -296
- package/esm/fw-image-D-OHafdw.js +0 -217
- package/esm/fw-loading-bar-DecYSBC_.js +0 -45
- package/esm/fw-popover-B4bsfuxm.js +0 -620
- package/esm/fw-table-row-Cgi8871h.js +0 -389
- package/esm/fw-tag-fDo50Nw7.js +0 -177
- package/esm/index-BsEH8YYr.js +0 -979
|
@@ -2525,4 +2525,4 @@ function _using(o, n, e) {
|
|
|
2525
2525
|
}), n;
|
|
2526
2526
|
}
|
|
2527
2527
|
|
|
2528
|
-
export { _objectSpread2 as _, _slicedToArray as a, _toConsumableArray as b, _asyncToGenerator as c, _regeneratorRuntime as d, _defineProperty as e };
|
|
2528
|
+
export { _objectSpread2 as _, _slicedToArray as a, _toConsumableArray as b, _asyncToGenerator as c, _regeneratorRuntime as d, _defineProperty as e, _createForOfIteratorHelper as f };
|
package/esm/fw-accordion.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, useCssVars,
|
|
2
|
-
import { u as useColours } from './get-root-colours-
|
|
3
|
-
import { r as render$1 } from './index-
|
|
1
|
+
import { defineComponent, ref, watch, useCssVars, resolveComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, createVNode, createCommentVNode, toDisplayString, renderSlot, Transition, withCtx, withDirectives, vShow } from 'vue';
|
|
2
|
+
import { u as useColours } from './get-root-colours-DCCAnRF4.js';
|
|
3
|
+
import { r as render$1 } from './index-DHyRsKsZ.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
5
5
|
|
|
6
6
|
var __default__ = defineComponent({
|
|
@@ -20,7 +20,7 @@ var __default__ = defineComponent({
|
|
|
20
20
|
*/
|
|
21
21
|
titleClass: {
|
|
22
22
|
type: String,
|
|
23
|
-
"default": '
|
|
23
|
+
"default": 'h4'
|
|
24
24
|
},
|
|
25
25
|
/**
|
|
26
26
|
* Title suffix of the accordion header
|
|
@@ -80,7 +80,7 @@ var __default__ = defineComponent({
|
|
|
80
80
|
el.style.maxHeight = el.scrollHeight + 'px';
|
|
81
81
|
setTimeout(function () {
|
|
82
82
|
el.firstElementChild.style.opacity = '1';
|
|
83
|
-
},
|
|
83
|
+
}, 50);
|
|
84
84
|
};
|
|
85
85
|
var beforeLeave = function beforeLeave(el) {
|
|
86
86
|
el.style.maxHeight = el.scrollHeight + 'px';
|
|
@@ -88,7 +88,7 @@ var __default__ = defineComponent({
|
|
|
88
88
|
var leave = function leave(el) {
|
|
89
89
|
setTimeout(function () {
|
|
90
90
|
el.firstElementChild.style.opacity = '0';
|
|
91
|
-
},
|
|
91
|
+
}, 25);
|
|
92
92
|
el.style.maxHeight = '0';
|
|
93
93
|
};
|
|
94
94
|
return {
|
|
@@ -104,7 +104,7 @@ var __default__ = defineComponent({
|
|
|
104
104
|
var __injectCSSVars__ = function __injectCSSVars__() {
|
|
105
105
|
useCssVars(function (_ctx) {
|
|
106
106
|
return {
|
|
107
|
-
"
|
|
107
|
+
"v213cd3b2": _ctx.bgHoverColor
|
|
108
108
|
};
|
|
109
109
|
});
|
|
110
110
|
};
|
|
@@ -114,9 +114,6 @@ __default__.setup = __setup__ ? function (props, ctx) {
|
|
|
114
114
|
return __setup__(props, ctx);
|
|
115
115
|
} : __injectCSSVars__;
|
|
116
116
|
|
|
117
|
-
var _withScopeId = function _withScopeId(n) {
|
|
118
|
-
return pushScopeId("data-v-bbfff254"), n = n(), popScopeId(), n;
|
|
119
|
-
};
|
|
120
117
|
var _hoisted_1 = {
|
|
121
118
|
"class": "flex flex-row items-center"
|
|
122
119
|
};
|
|
@@ -142,7 +139,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
142
139
|
"class": normalizeClass(["fw-accordion", _ctx.borderStyle])
|
|
143
140
|
}, [createElementVNode("button", {
|
|
144
141
|
type: "button",
|
|
145
|
-
"class": normalizeClass(["fw-accordion--header transition-all duration-
|
|
142
|
+
"class": normalizeClass(["fw-accordion--header transition-all duration-200 ease-in focus:outline-primary", [_ctx.isOpen ? 'fw-accordion--header-open' : '', _ctx.headerClass, _ctx.secondary ? 'w-full px-8 py-4' : '']]),
|
|
146
143
|
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
147
144
|
return _ctx.isOpen = !_ctx.isOpen;
|
|
148
145
|
})
|
|
@@ -150,18 +147,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150
147
|
"class": normalizeClass(["flex flex-row items-center text-left gap-1", _ctx.secondary ? 'justify-between' : 'justify-start'])
|
|
151
148
|
}, [createElementVNode("div", _hoisted_1, [_ctx.iconPositionStart ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(_component_ChevronDownSvg, {
|
|
152
149
|
name: "chevron-down",
|
|
153
|
-
"class": normalizeClass(["w-6 transition-transform duration-
|
|
150
|
+
"class": normalizeClass(["w-6 transition-transform duration-200", [_ctx.isOpen ? 'rotate-180' : '', _ctx.secondary ? 'text-body' : 'text-link']])
|
|
154
151
|
}, null, 8, ["class"])])) : createCommentVNode("", true), createElementVNode("div", {
|
|
155
152
|
"class": normalizeClass([[_ctx.titleClass, _ctx.iconPositionStart ? 'ml-6' : 'ml-0'], "mb-0"])
|
|
156
153
|
}, [_ctx.title ? (openBlock(), createElementBlock("span", {
|
|
157
154
|
key: 0,
|
|
158
|
-
"class": normalizeClass(_ctx.secondary ? 'text-
|
|
155
|
+
"class": normalizeClass(_ctx.secondary ? 'text-body' : 'text-link')
|
|
159
156
|
}, toDisplayString(_ctx.title), 3)) : _ctx.$slots.header ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "header")])) : createCommentVNode("", true)], 2)]), _ctx.suffixTitle ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.suffixTitle), 1)) : createCommentVNode("", true), !_ctx.iconPositionStart ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(_component_ChevronDownSvg, {
|
|
160
157
|
name: "chevron-down",
|
|
161
|
-
"class": normalizeClass(["w-6
|
|
158
|
+
"class": normalizeClass(["w-6 transition-transform duration-200", [_ctx.isOpen ? 'rotate-180' : '', _ctx.secondary ? 'text-body' : 'text-link']])
|
|
162
159
|
}, null, 8, ["class"])])) : createCommentVNode("", true)], 2)], 2), createVNode(Transition, {
|
|
163
160
|
name: "fw-accordion-transition",
|
|
164
|
-
"class": "transition-all duration-
|
|
161
|
+
"class": "transition-all duration-200 ease-in overflow-hidden",
|
|
165
162
|
onBeforeEnter: _ctx.beforeEnter,
|
|
166
163
|
onEnter: _ctx.enter,
|
|
167
164
|
onBeforeLeave: _ctx.beforeLeave,
|
|
@@ -176,11 +173,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
176
173
|
}, 8, ["onBeforeEnter", "onEnter", "onBeforeLeave", "onLeave"])], 2);
|
|
177
174
|
}
|
|
178
175
|
|
|
179
|
-
var css_248z = ".fw-accordion--header-open[data-v-
|
|
180
|
-
var stylesheet = ".fw-accordion--header-open[data-v-
|
|
176
|
+
var css_248z = ".fw-accordion[data-v-7ca80b5e]{will-change:height}.fw-accordion--header-open[data-v-7ca80b5e],.fw-accordion--header[data-v-7ca80b5e]:focus-visible,.fw-accordion--header[data-v-7ca80b5e]:hover{background-color:var(--v213cd3b2)}";
|
|
177
|
+
var stylesheet = ".fw-accordion[data-v-7ca80b5e]{will-change:height}.fw-accordion--header-open[data-v-7ca80b5e],.fw-accordion--header[data-v-7ca80b5e]:focus-visible,.fw-accordion--header[data-v-7ca80b5e]:hover{background-color:var(--v213cd3b2)}";
|
|
181
178
|
styleInject(css_248z);
|
|
182
179
|
|
|
183
180
|
__default__.render = render;
|
|
184
|
-
__default__.__scopeId = "data-v-
|
|
181
|
+
__default__.__scopeId = "data-v-7ca80b5e";
|
|
185
182
|
|
|
186
183
|
export { __default__ as FwAccordion };
|
package/esm/fw-alert.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
2
|
-
import { a as render$1, b as render$2 } from './index-
|
|
1
|
+
import { defineComponent, ref, computed, createBlock, openBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, createCommentVNode, renderSlot, resolveDynamicComponent, vShow } from 'vue';
|
|
2
|
+
import { a as render$1, b as render$2 } from './index-DHyRsKsZ.js';
|
|
3
3
|
|
|
4
4
|
var script = defineComponent({
|
|
5
5
|
name: 'FwAlert',
|
|
6
6
|
components: {
|
|
7
|
-
CheckSvg: render$
|
|
8
|
-
AlertSvg: render$
|
|
7
|
+
CheckSvg: render$1,
|
|
8
|
+
AlertSvg: render$2
|
|
9
9
|
},
|
|
10
10
|
props: {
|
|
11
11
|
/**
|
|
@@ -28,39 +28,46 @@ var script = defineComponent({
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup: function setup(props) {
|
|
31
|
+
var visible = ref(true);
|
|
31
32
|
var bgClass = computed(function () {
|
|
32
33
|
if (props.variant === 'error') return 'bg-brand-error-bg';
|
|
33
34
|
return 'bg-brand-success-bg';
|
|
34
35
|
});
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
var IconComp = computed(function () {
|
|
37
|
+
return props.variant === 'success' ? render$1 : render$2;
|
|
38
|
+
});
|
|
39
|
+
var iconClass = computed(function () {
|
|
40
|
+
return props.variant === 'success' ? 'text-brand-success-text' : 'text-brand-error-text';
|
|
40
41
|
});
|
|
41
42
|
return {
|
|
43
|
+
visible: visible,
|
|
42
44
|
bgClass: bgClass,
|
|
43
|
-
|
|
45
|
+
IconComp: IconComp,
|
|
46
|
+
iconClass: iconClass
|
|
44
47
|
};
|
|
45
48
|
}
|
|
46
49
|
});
|
|
47
50
|
|
|
48
51
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"class":
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
52
|
+
return openBlock(), createBlock(Transition, {
|
|
53
|
+
appear: "",
|
|
54
|
+
"enter-active-class": "transition transform duration-200 ease-out",
|
|
55
|
+
"enter-from-class": "opacity-0 scale-95",
|
|
56
|
+
"enter-to-class": "opacity-100 scale-100",
|
|
57
|
+
"leave-active-class": "transition transform duration-150 ease-in",
|
|
58
|
+
"leave-from-class": "opacity-100 scale-100",
|
|
59
|
+
"leave-to-class": "opacity-0 scale-95"
|
|
60
|
+
}, {
|
|
61
|
+
"default": withCtx(function () {
|
|
62
|
+
return [withDirectives(createElementVNode("div", {
|
|
63
|
+
"class": normalizeClass(["w-full rounded-md flex flex-row items-start justify-start p-4 box-border gap-3", _ctx.bgClass])
|
|
64
|
+
}, [_ctx.IconComp && !_ctx.disableIcon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.IconComp), {
|
|
65
|
+
key: 0,
|
|
66
|
+
"class": normalizeClass(["w-6 h-6 min-w-6", _ctx.iconClass])
|
|
67
|
+
}, null, 8, ["class"])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")], 2), [[vShow, _ctx.visible]])];
|
|
68
|
+
}),
|
|
69
|
+
_: 3
|
|
70
|
+
});
|
|
64
71
|
}
|
|
65
72
|
|
|
66
73
|
script.render = render;
|