@frollo/frollo-web-ui 1.2.6 → 1.2.8
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 +219 -150
- package/esm/fw-animations.js +3 -0
- package/esm/{fw-button-d5d2cf19.js → fw-button-dc078722.js} +57 -14
- package/esm/fw-button.js +4 -1
- package/esm/fw-dropdown.js +1 -1
- package/esm/fw-image.js +1 -1
- package/esm/fw-loading-spinner-649aa589.js +21 -0
- package/esm/fw-modal.js +5 -2
- package/esm/fw-navigation-menu.js +4 -1
- package/esm/fw-table.js +1 -1
- package/esm/{index-b3aa1664.js → index-403af654.js} +100 -82
- package/esm/{index-7d8c95be.js → index-f00f3690.js} +1 -1
- package/esm/index.js +9 -6
- package/frollo-web-ui.esm.js +235 -157
- package/icons/index.ts +3 -1
- package/icons/loading.svg +4 -0
- package/index.d.ts +59 -25
- package/package.json +1 -1
- package/types/components/fw-animations/fw-loading-spinner.vue.d.ts +2 -0
- package/types/components/fw-animations/index.d.ts +2 -1
- package/types/components/fw-button/fw-button.vue.d.ts +36 -5
- package/types/components/fw-button/index.types.d.ts +1 -0
- package/types/icons/index.d.ts +2 -1
package/esm/fw-animations.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import './es.number.constructor-b7faae1f.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-649aa589.js';
|
|
4
5
|
import './function-name-c49146fc.js';
|
|
5
6
|
import './is-forced-fd46b5f2.js';
|
|
6
7
|
import './to-string-c2bd1f4d.js';
|
|
7
8
|
import './classof-088c9833.js';
|
|
9
|
+
import './index-403af654.js';
|
|
10
|
+
import './check-94a5917a.js';
|
|
8
11
|
|
|
9
12
|
var __default__$1 = defineComponent({
|
|
10
13
|
name: 'FwEmailPulse',
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import './es.array.includes-9a6e4066.js';
|
|
2
|
-
import { defineComponent, ref, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, renderSlot, createCommentVNode } from 'vue';
|
|
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-649aa589.js';
|
|
3
4
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
4
5
|
|
|
5
6
|
var script = defineComponent({
|
|
6
7
|
name: 'FwButton',
|
|
7
8
|
emits: ['click', 'mouseover', 'mouseout', 'focusin', 'focusout'],
|
|
9
|
+
components: {
|
|
10
|
+
FwLoadingSpinner: script$1
|
|
11
|
+
},
|
|
8
12
|
props: {
|
|
9
13
|
/**
|
|
10
14
|
* A `router-link` path or object
|
|
@@ -70,11 +74,19 @@ var script = defineComponent({
|
|
|
70
74
|
rounded: {
|
|
71
75
|
type: Boolean,
|
|
72
76
|
"default": true
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Whether the loading animation is shown or not
|
|
81
|
+
*/
|
|
82
|
+
loading: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
"default": false
|
|
73
85
|
}
|
|
74
86
|
},
|
|
75
87
|
setup: function setup(props, ctx) {
|
|
76
88
|
var baseClass = ref( // eslint-disable-next-line max-len
|
|
77
|
-
'inline-block text-center
|
|
89
|
+
'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');
|
|
78
90
|
var buttonClasses = ref({
|
|
79
91
|
primary: {
|
|
80
92
|
text: '',
|
|
@@ -119,6 +131,28 @@ var script = defineComponent({
|
|
|
119
131
|
xl: 'px-12 py-3 text-xl',
|
|
120
132
|
'2xl': 'px-16 py-4 text-2xl'
|
|
121
133
|
});
|
|
134
|
+
var loadingSizes = ref({
|
|
135
|
+
sm: {
|
|
136
|
+
spacing: 'pr-[3px] -ml-[3px]',
|
|
137
|
+
size: 'w-2.5 h-2.5'
|
|
138
|
+
},
|
|
139
|
+
md: {
|
|
140
|
+
spacing: 'pr-[4px] -ml-[4px]',
|
|
141
|
+
size: 'w-4 h-4'
|
|
142
|
+
},
|
|
143
|
+
lg: {
|
|
144
|
+
spacing: 'pr-[8px] -ml-[8px]',
|
|
145
|
+
size: 'w-6 h-6'
|
|
146
|
+
},
|
|
147
|
+
xl: {
|
|
148
|
+
spacing: 'pr-[10px] -ml-[10px]',
|
|
149
|
+
size: 'w-7 h-7'
|
|
150
|
+
},
|
|
151
|
+
'2xl': {
|
|
152
|
+
spacing: 'pr-[14px] -ml-[14px]',
|
|
153
|
+
size: 'w-8 h-8'
|
|
154
|
+
}
|
|
155
|
+
});
|
|
122
156
|
var textColorClass = computed(function () {
|
|
123
157
|
return buttonClasses.value[props.variant].text;
|
|
124
158
|
});
|
|
@@ -131,10 +165,12 @@ var script = defineComponent({
|
|
|
131
165
|
var borderClass = computed(function () {
|
|
132
166
|
return buttonClasses.value[props.variant].border;
|
|
133
167
|
});
|
|
168
|
+
var loadingSize = computed(function () {
|
|
169
|
+
return loadingSizes.value[props.size];
|
|
170
|
+
});
|
|
134
171
|
/**
|
|
135
172
|
* @event Click - Native click
|
|
136
173
|
*/
|
|
137
|
-
// eslint-disable-next-line no-undef
|
|
138
174
|
|
|
139
175
|
var onClick = function onClick(e) {
|
|
140
176
|
return ctx.emit('click', e);
|
|
@@ -142,7 +178,6 @@ var script = defineComponent({
|
|
|
142
178
|
/**
|
|
143
179
|
* @event mouseover - Native hover
|
|
144
180
|
*/
|
|
145
|
-
// eslint-disable-next-line no-undef
|
|
146
181
|
|
|
147
182
|
|
|
148
183
|
var onMouseover = function onMouseover(e) {
|
|
@@ -151,7 +186,6 @@ var script = defineComponent({
|
|
|
151
186
|
/**
|
|
152
187
|
* @event mouseout - Native hover out
|
|
153
188
|
*/
|
|
154
|
-
// eslint-disable-next-line no-undef
|
|
155
189
|
|
|
156
190
|
|
|
157
191
|
var onMouseout = function onMouseout(e) {
|
|
@@ -160,7 +194,6 @@ var script = defineComponent({
|
|
|
160
194
|
/**
|
|
161
195
|
* @event focusin - Native focusin
|
|
162
196
|
*/
|
|
163
|
-
// eslint-disable-next-line no-undef
|
|
164
197
|
|
|
165
198
|
|
|
166
199
|
var onFocusin = function onFocusin(e) {
|
|
@@ -169,7 +202,6 @@ var script = defineComponent({
|
|
|
169
202
|
/**
|
|
170
203
|
* @event focusout - Native focusout
|
|
171
204
|
*/
|
|
172
|
-
// eslint-disable-next-line no-undef
|
|
173
205
|
|
|
174
206
|
|
|
175
207
|
var onFocusout = function onFocusout(e) {
|
|
@@ -192,22 +224,26 @@ var script = defineComponent({
|
|
|
192
224
|
onMouseout: onMouseout,
|
|
193
225
|
onFocusin: onFocusin,
|
|
194
226
|
onFocusout: onFocusout,
|
|
195
|
-
tagName: tagName
|
|
227
|
+
tagName: tagName,
|
|
228
|
+
loadingSize: loadingSize
|
|
196
229
|
};
|
|
197
230
|
}
|
|
198
231
|
});
|
|
199
232
|
|
|
200
233
|
var _hoisted_1 = {
|
|
201
234
|
key: 0,
|
|
202
|
-
"class": "fw-button--label"
|
|
235
|
+
"class": "fw-button--label relative"
|
|
203
236
|
};
|
|
204
237
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
238
|
+
var _component_FwLoadingSpinner = resolveComponent("FwLoadingSpinner");
|
|
239
|
+
|
|
205
240
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tagName), {
|
|
206
|
-
"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']]),
|
|
241
|
+
"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']]),
|
|
207
242
|
type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
|
|
208
243
|
to: _ctx.to ? _ctx.to : null,
|
|
209
244
|
href: _ctx.href ? _ctx.href : null,
|
|
210
245
|
tabindex: _ctx.to ? 0 : null,
|
|
246
|
+
disabled: _ctx.loading,
|
|
211
247
|
onClick: _ctx.onClick,
|
|
212
248
|
onFocusin: _ctx.onFocusin,
|
|
213
249
|
onFocusout: _ctx.onFocusout,
|
|
@@ -215,14 +251,21 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
251
|
onMouseout: _ctx.onMouseout
|
|
216
252
|
}, {
|
|
217
253
|
"default": withCtx(function () {
|
|
218
|
-
return [_ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
254
|
+
return [_ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", {
|
|
255
|
+
"class": normalizeClass(["fw-button--label-wrapper", _ctx.loading ? _ctx.loadingSize.spacing : 'pr-0 ml-0'])
|
|
256
|
+
}, [renderSlot(_ctx.$slots, "default")], 2), _ctx.loading ? (openBlock(), createElementBlock("div", {
|
|
257
|
+
key: 0,
|
|
258
|
+
"class": normalizeClass([_ctx.loadingSize.size, "inline-flex absolute top-2/4 -translate-y-2/4 left-full"])
|
|
259
|
+
}, [createVNode(_component_FwLoadingSpinner, {
|
|
260
|
+
"class": "w-full h-full"
|
|
261
|
+
})], 2)) : createCommentVNode("", true)])) : createCommentVNode("", true)];
|
|
219
262
|
}),
|
|
220
263
|
_: 3
|
|
221
|
-
}, 40, ["class", "type", "to", "href", "tabindex", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
264
|
+
}, 40, ["class", "type", "to", "href", "tabindex", "disabled", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
222
265
|
}
|
|
223
266
|
|
|
224
|
-
var css_248z = ".fw-button{line-height:normal;-webkit-transition:
|
|
225
|
-
var stylesheet = ".fw-button{line-height:normal;-webkit-transition:
|
|
267
|
+
var css_248z = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-o-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-o-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-o-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%)}";
|
|
268
|
+
var stylesheet = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-o-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-o-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-o-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%)}";
|
|
226
269
|
styleInject(css_248z);
|
|
227
270
|
|
|
228
271
|
script.render = render;
|
package/esm/fw-button.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
export { s as FwButton } from './fw-button-
|
|
1
|
+
export { s as FwButton } from './fw-button-dc078722.js';
|
|
2
2
|
import './es.array.includes-9a6e4066.js';
|
|
3
3
|
import './function-name-c49146fc.js';
|
|
4
4
|
import './object-keys-3c73c404.js';
|
|
5
5
|
import './is-forced-fd46b5f2.js';
|
|
6
6
|
import './add-to-unscopables-a5032b1d.js';
|
|
7
7
|
import 'vue';
|
|
8
|
+
import './fw-loading-spinner-649aa589.js';
|
|
9
|
+
import './index-403af654.js';
|
|
10
|
+
import './check-94a5917a.js';
|
|
8
11
|
import './style-inject.es-1f59c1d0.js';
|
package/esm/fw-dropdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './es.array.find-54b8f84b.js';
|
|
2
2
|
import { defineComponent, toRef, ref, computed, onMounted, onBeforeUnmount, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, normalizeClass, createVNode, Transition, withCtx, Fragment, renderList } from 'vue';
|
|
3
3
|
import { u as useField } from './vee-validate.esm-a17a23c3.js';
|
|
4
|
-
import { a as render$1 } from './index-
|
|
4
|
+
import { a as render$1 } from './index-403af654.js';
|
|
5
5
|
import './es.function.name-2fa3a718.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
import './function-name-c49146fc.js';
|
package/esm/fw-image.js
CHANGED
|
@@ -11,7 +11,7 @@ import { c as classof$1 } from './classof-088c9833.js';
|
|
|
11
11
|
import { t as toString$2 } from './to-string-c2bd1f4d.js';
|
|
12
12
|
import { o as objectCreate } from './add-to-unscopables-a5032b1d.js';
|
|
13
13
|
import { s as script$1 } from './fw-loading-bar-da7d53fb.js';
|
|
14
|
-
import { r as render$1 } from './index-
|
|
14
|
+
import { r as render$1 } from './index-403af654.js';
|
|
15
15
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
16
16
|
import './check-94a5917a.js';
|
|
17
17
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { c as render$1 } from './index-403af654.js';
|
|
2
|
+
import { defineComponent, resolveComponent, openBlock, createBlock } from 'vue';
|
|
3
|
+
|
|
4
|
+
var script = defineComponent({
|
|
5
|
+
name: 'FwLoadingSpinner',
|
|
6
|
+
components: {
|
|
7
|
+
LoadingSvg: render$1
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12
|
+
var _component_LoadingSvg = resolveComponent("LoadingSvg");
|
|
13
|
+
|
|
14
|
+
return openBlock(), createBlock(_component_LoadingSvg, {
|
|
15
|
+
"class": "fw-loading-spinner animate-spin"
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
script.render = render;
|
|
20
|
+
|
|
21
|
+
export { script as s };
|
package/esm/fw-modal.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export { s as FwModal } from './index-
|
|
1
|
+
export { s as FwModal } from './index-f00f3690.js';
|
|
2
2
|
import './es.array.includes-9a6e4066.js';
|
|
3
3
|
import './function-name-c49146fc.js';
|
|
4
4
|
import './object-keys-3c73c404.js';
|
|
5
5
|
import './is-forced-fd46b5f2.js';
|
|
6
6
|
import './add-to-unscopables-a5032b1d.js';
|
|
7
7
|
import 'vue';
|
|
8
|
-
import './fw-button-
|
|
8
|
+
import './fw-button-dc078722.js';
|
|
9
|
+
import './fw-loading-spinner-649aa589.js';
|
|
10
|
+
import './index-403af654.js';
|
|
11
|
+
import './check-94a5917a.js';
|
|
9
12
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
2
|
+
import { s as script$1 } from './fw-button-dc078722.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
4
4
|
import './es.array.includes-9a6e4066.js';
|
|
5
5
|
import './function-name-c49146fc.js';
|
|
6
6
|
import './object-keys-3c73c404.js';
|
|
7
7
|
import './is-forced-fd46b5f2.js';
|
|
8
8
|
import './add-to-unscopables-a5032b1d.js';
|
|
9
|
+
import './fw-loading-spinner-649aa589.js';
|
|
10
|
+
import './index-403af654.js';
|
|
11
|
+
import './check-94a5917a.js';
|
|
9
12
|
|
|
10
13
|
var script = defineComponent({
|
|
11
14
|
name: 'FwNavigationMenu',
|
package/esm/fw-table.js
CHANGED
|
@@ -3,7 +3,7 @@ import { _ as _export, o as objectKeys } from './object-keys-3c73c404.js';
|
|
|
3
3
|
import { e as toAbsoluteIndex$1, l as lengthOfArrayLike$2 } from './is-forced-fd46b5f2.js';
|
|
4
4
|
import { t as toString$1 } from './to-string-c2bd1f4d.js';
|
|
5
5
|
import { c as createProperty$1, a as arrayMethodIsStrict$1 } from './create-property-da6d232b.js';
|
|
6
|
-
import { b as render$3 } from './index-
|
|
6
|
+
import { b as render$3 } from './index-403af654.js';
|
|
7
7
|
import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, withKeys, toDisplayString, createVNode, createCommentVNode, renderSlot } from 'vue';
|
|
8
8
|
import { s as script$3 } from './fw-loading-bar-da7d53fb.js';
|
|
9
9
|
import './classof-088c9833.js';
|