@frollo/frollo-web-ui 1.2.9 → 3.0.0

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.
Files changed (67) hide show
  1. package/cjs/index.js +1116 -618
  2. package/esm/{add-to-unscopables-a5032b1d.js → add-to-unscopables-3f461c07.js} +3 -3
  3. package/esm/array-iteration-98e2cf9a.js +93 -0
  4. package/esm/array-method-is-strict-544b103f.js +14 -0
  5. package/esm/array-species-create-5fc23c89.js +98 -0
  6. package/esm/{classof-088c9833.js → classof-a45668b6.js} +2 -2
  7. package/esm/create-property-558a3c24.js +15 -0
  8. package/esm/{es.array.find-54b8f84b.js → es.array.find-36d8f2f0.js} +6 -6
  9. package/esm/{es.array.includes-9a6e4066.js → es.array.includes-df8e6e35.js} +4 -4
  10. package/esm/{es.function.name-2fa3a718.js → es.function.name-b642b74f.js} +1 -1
  11. package/esm/{es.number.constructor-b7faae1f.js → es.number.constructor-f279ce82.js} +3 -3
  12. package/esm/{function-name-c49146fc.js → function-name-e2f6ea36.js} +1 -1
  13. package/esm/fw-animations.js +7 -7
  14. package/esm/{fw-button-6aa9b68f.js → fw-button-df5c923f.js} +2 -2
  15. package/esm/fw-button.js +8 -8
  16. package/esm/fw-card-8d3f4ab5.js +95 -0
  17. package/esm/fw-card.js +2 -95
  18. package/esm/fw-checkbox.js +2 -2
  19. package/esm/fw-dropdown.js +10 -9
  20. package/esm/fw-image-ec7b02c5.js +770 -0
  21. package/esm/fw-image.js +19 -847
  22. package/esm/fw-input.js +6 -6
  23. package/esm/{fw-loading-spinner-649aa589.js → fw-loading-spinner-9b7c6855.js} +1 -1
  24. package/esm/fw-loading.js +5 -5
  25. package/esm/fw-modal.js +228 -11
  26. package/esm/fw-navigation-menu.js +8 -8
  27. package/esm/fw-progress-bar.js +5 -5
  28. package/esm/fw-table.js +8 -7
  29. package/esm/fw-tabs.js +9 -8
  30. package/esm/fw-tag.js +5 -5
  31. package/esm/fw-toast.js +372 -0
  32. package/esm/fw-transactions-card.js +118 -0
  33. package/esm/{index-403af654.js → index-4605e00e.js} +130 -88
  34. package/esm/index.js +82 -47
  35. package/esm/{is-forced-fd46b5f2.js → is-forced-ddf227e6.js} +2 -2
  36. package/esm/{object-keys-3c73c404.js → object-keys-6a890c6f.js} +2 -2
  37. package/esm/{to-string-c2bd1f4d.js → to-string-685748aa.js} +2 -2
  38. package/esm/uniqueId-fe08534a.js +279 -0
  39. package/esm/web.timers-4a6aaab8.js +82 -0
  40. package/frollo-web-ui.esm.js +1208 -668
  41. package/icons/bullseye.svg +3 -0
  42. package/icons/icons.stories.ts +3 -3
  43. package/icons/index.ts +7 -1
  44. package/icons/solid-check.svg +3 -0
  45. package/icons/solid-xmark.svg +3 -0
  46. package/index.d.ts +261 -22
  47. package/package.json +2 -1
  48. package/styles/web-components.scss +8 -0
  49. package/types/components/fw-modal/fw-modal.vue.d.ts +30 -0
  50. package/types/components/fw-modal/index.types.d.ts +2 -0
  51. package/types/components/fw-toast/fw-toast.vue.d.ts +121 -0
  52. package/types/components/fw-toast/index.d.ts +2 -0
  53. package/types/components/fw-toast/index.types.d.ts +13 -0
  54. package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +58 -0
  55. package/types/components/fw-transactions-card/index.d.ts +2 -0
  56. package/types/components/fw-transactions-card/index.types.d.ts +6 -0
  57. package/types/components/index.d.ts +2 -0
  58. package/types/components/index.types.d.ts +2 -0
  59. package/types/icons/index.d.ts +4 -1
  60. package/types/index.browser-umd.d.ts +1 -0
  61. package/types/services/index.d.ts +1 -0
  62. package/types/services/modal.d.ts +2 -2
  63. package/types/services/toast.d.ts +9 -0
  64. package/web-components/index.js +21435 -0
  65. package/esm/array-iteration-4f83e223.js +0 -186
  66. package/esm/create-property-da6d232b.js +0 -26
  67. package/esm/index-61020c18.js +0 -475
@@ -0,0 +1,372 @@
1
+ import './es.array.includes-df8e6e35.js';
2
+ import './es.number.constructor-f279ce82.js';
3
+ import { s as isObject$2, w as wellKnownSymbol$4, f as functionUncurryThis, r as requireObjectCoercible$1, j as fails$2, q as engineV8Version, i as toObject$1 } from './function-name-e2f6ea36.js';
4
+ import { _ as _export } from './object-keys-6a890c6f.js';
5
+ import { f as classofRaw, l as lengthOfArrayLike$1 } from './is-forced-ddf227e6.js';
6
+ import { t as toString$1 } from './to-string-685748aa.js';
7
+ import { a as isArray$1, b as arraySpeciesCreate$1 } from './array-species-create-5fc23c89.js';
8
+ import { c as createProperty$1 } from './create-property-558a3c24.js';
9
+ import './web.timers-4a6aaab8.js';
10
+ import { defineComponent, ref, computed, onMounted, watchEffect, openBlock, createElementBlock, Fragment, createBlock, Teleport, createVNode, TransitionGroup, createCommentVNode, Transition, withCtx, normalizeClass, createElementVNode, resolveDynamicComponent, toDisplayString, renderSlot } from 'vue';
11
+ import { u as uniqueId } from './uniqueId-fe08534a.js';
12
+ import { c as render$1, d as render$2, e as render$3 } from './index-4605e00e.js';
13
+ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
14
+ import './add-to-unscopables-3f461c07.js';
15
+ import './classof-a45668b6.js';
16
+ import './check-94a5917a.js';
17
+
18
+ var es_string_includes = {};
19
+
20
+ var isObject$1 = isObject$2;
21
+ var classof = classofRaw;
22
+ var wellKnownSymbol$3 = wellKnownSymbol$4;
23
+
24
+ var MATCH$1 = wellKnownSymbol$3('match');
25
+
26
+ // `IsRegExp` abstract operation
27
+ // https://tc39.es/ecma262/#sec-isregexp
28
+ var isRegexp = function (it) {
29
+ var isRegExp;
30
+ return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
31
+ };
32
+
33
+ var isRegExp = isRegexp;
34
+
35
+ var $TypeError$1 = TypeError;
36
+
37
+ var notARegexp = function (it) {
38
+ if (isRegExp(it)) {
39
+ throw $TypeError$1("The method doesn't accept regular expressions");
40
+ } return it;
41
+ };
42
+
43
+ var wellKnownSymbol$2 = wellKnownSymbol$4;
44
+
45
+ var MATCH = wellKnownSymbol$2('match');
46
+
47
+ var correctIsRegexpLogic = function (METHOD_NAME) {
48
+ var regexp = /./;
49
+ try {
50
+ '/./'[METHOD_NAME](regexp);
51
+ } catch (error1) {
52
+ try {
53
+ regexp[MATCH] = false;
54
+ return '/./'[METHOD_NAME](regexp);
55
+ } catch (error2) { /* empty */ }
56
+ } return false;
57
+ };
58
+
59
+ 'use strict';
60
+ var $$1 = _export;
61
+ var uncurryThis = functionUncurryThis;
62
+ var notARegExp = notARegexp;
63
+ var requireObjectCoercible = requireObjectCoercible$1;
64
+ var toString = toString$1;
65
+ var correctIsRegExpLogic = correctIsRegexpLogic;
66
+
67
+ var stringIndexOf = uncurryThis(''.indexOf);
68
+
69
+ // `String.prototype.includes` method
70
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
71
+ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
72
+ includes: function includes(searchString /* , position = 0 */) {
73
+ return !!~stringIndexOf(
74
+ toString(requireObjectCoercible(this)),
75
+ toString(notARegExp(searchString)),
76
+ arguments.length > 1 ? arguments[1] : undefined
77
+ );
78
+ }
79
+ });
80
+
81
+ var es_array_concat = {};
82
+
83
+ var $TypeError = TypeError;
84
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
85
+
86
+ var doesNotExceedSafeInteger$1 = function (it) {
87
+ if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
88
+ return it;
89
+ };
90
+
91
+ var fails$1 = fails$2;
92
+ var wellKnownSymbol$1 = wellKnownSymbol$4;
93
+ var V8_VERSION$1 = engineV8Version;
94
+
95
+ var SPECIES = wellKnownSymbol$1('species');
96
+
97
+ var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
98
+ // We can't use this feature detection in V8 since it causes
99
+ // deoptimization and serious performance degradation
100
+ // https://github.com/zloirock/core-js/issues/677
101
+ return V8_VERSION$1 >= 51 || !fails$1(function () {
102
+ var array = [];
103
+ var constructor = array.constructor = {};
104
+ constructor[SPECIES] = function () {
105
+ return { foo: 1 };
106
+ };
107
+ return array[METHOD_NAME](Boolean).foo !== 1;
108
+ });
109
+ };
110
+
111
+ 'use strict';
112
+ var $ = _export;
113
+ var fails = fails$2;
114
+ var isArray = isArray$1;
115
+ var isObject = isObject$2;
116
+ var toObject = toObject$1;
117
+ var lengthOfArrayLike = lengthOfArrayLike$1;
118
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
119
+ var createProperty = createProperty$1;
120
+ var arraySpeciesCreate = arraySpeciesCreate$1;
121
+ var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
122
+ var wellKnownSymbol = wellKnownSymbol$4;
123
+ var V8_VERSION = engineV8Version;
124
+
125
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
126
+
127
+ // We can't use this feature detection in V8 since it causes
128
+ // deoptimization and serious performance degradation
129
+ // https://github.com/zloirock/core-js/issues/679
130
+ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
131
+ var array = [];
132
+ array[IS_CONCAT_SPREADABLE] = false;
133
+ return array.concat()[0] !== array;
134
+ });
135
+
136
+ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
137
+
138
+ var isConcatSpreadable = function (O) {
139
+ if (!isObject(O)) return false;
140
+ var spreadable = O[IS_CONCAT_SPREADABLE];
141
+ return spreadable !== undefined ? !!spreadable : isArray(O);
142
+ };
143
+
144
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
145
+
146
+ // `Array.prototype.concat` method
147
+ // https://tc39.es/ecma262/#sec-array.prototype.concat
148
+ // with adding support of @@isConcatSpreadable and @@species
149
+ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
150
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
151
+ concat: function concat(arg) {
152
+ var O = toObject(this);
153
+ var A = arraySpeciesCreate(O, 0);
154
+ var n = 0;
155
+ var i, k, length, len, E;
156
+ for (i = -1, length = arguments.length; i < length; i++) {
157
+ E = i === -1 ? O : arguments[i];
158
+ if (isConcatSpreadable(E)) {
159
+ len = lengthOfArrayLike(E);
160
+ doesNotExceedSafeInteger(n + len);
161
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
162
+ } else {
163
+ doesNotExceedSafeInteger(n + 1);
164
+ createProperty(A, n++, E);
165
+ }
166
+ }
167
+ A.length = n;
168
+ return A;
169
+ }
170
+ });
171
+
172
+ var script = defineComponent({
173
+ name: 'FwToast',
174
+ components: {
175
+ SolidCheckSvg: render$1,
176
+ SolidXMarkSvg: render$2,
177
+ ErrorFilledSvg: render$3
178
+ },
179
+ emits: ['update:modelValue', 'dismissed'],
180
+ props: {
181
+ /**
182
+ * The toast's v-model. Controls the visibility of the toast.
183
+ */
184
+ modelValue: {
185
+ type: Boolean
186
+ },
187
+
188
+ /**
189
+ * The type of the toast.
190
+ * Accepts: 'success', 'error', 'warning'
191
+ */
192
+ type: {
193
+ type: String,
194
+ "default": 'success',
195
+ validator: function validator(value) {
196
+ return ['success', 'error', 'warning'].includes(value);
197
+ }
198
+ },
199
+
200
+ /**
201
+ * The position of the toast on the screen.
202
+ * Accepts: 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'
203
+ */
204
+ position: {
205
+ type: String,
206
+ "default": 'bottom-right',
207
+ validator: function validator(value) {
208
+ return ['top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'].includes(value);
209
+ }
210
+ },
211
+
212
+ /**
213
+ * The content of the toast.
214
+ */
215
+ content: {
216
+ type: String
217
+ },
218
+
219
+ /**
220
+ * The base container to attach to. Defaults to `#app` element.
221
+ */
222
+ element: {
223
+ type: String,
224
+ "default": '#app'
225
+ },
226
+
227
+ /**
228
+ * The duration timeout before the toast is dismissed.
229
+ */
230
+ timeout: {
231
+ type: Number,
232
+ "default": 3500
233
+ }
234
+ },
235
+ setup: function setup(props, ctx) {
236
+ var isMounted = ref(false);
237
+ var uuid = uniqueId();
238
+ var isOpen = computed({
239
+ get: function get() {
240
+ return ref(props.modelValue);
241
+ },
242
+ set: function set(state) {
243
+ ctx.emit('update:modelValue', state);
244
+ }
245
+ });
246
+ var mountContainer = ref(false);
247
+ var containerEl = computed(function () {
248
+ return "fw-toast--container-".concat(props.position);
249
+ });
250
+ var isTop = computed(function () {
251
+ return props.position.includes('top');
252
+ });
253
+ var isLeftRightorCenter = computed(function () {
254
+ if (props.position.includes('right')) {
255
+ return 'Right';
256
+ }
257
+
258
+ if (props.position.includes('left')) {
259
+ return 'Left';
260
+ }
261
+
262
+ return 'Center';
263
+ });
264
+ var baseClass = "text-white flex min-w-[70%] max-w-[90%] md:min-w-[320px] md:max-w-[600px]\n py-3.5 px-6";
265
+ var typeClasses = ref({
266
+ success: 'bg-success',
267
+ error: 'bg-error',
268
+ warning: 'bg-alert'
269
+ });
270
+ var svgComponent = ref({
271
+ success: 'SolidCheckSvg',
272
+ error: 'SolidXMarkSvg',
273
+ warning: 'ErrorFilledSvg'
274
+ });
275
+ var negativePush = computed(function () {
276
+ return isTop.value ? '-' : '';
277
+ });
278
+ onMounted(function () {
279
+ var positionContainer = document.querySelector("#".concat(containerEl.value));
280
+
281
+ if (!positionContainer) {
282
+ mountContainer.value = true;
283
+ } else if (positionContainer.children.length) {
284
+ var _positionContainer$ch;
285
+
286
+ var first = positionContainer === null || positionContainer === void 0 ? void 0 : positionContainer.clientHeight;
287
+ var toastHeight = (positionContainer === null || positionContainer === void 0 ? void 0 : (_positionContainer$ch = positionContainer.children[0]) === null || _positionContainer$ch === void 0 ? void 0 : _positionContainer$ch.clientHeight) || 52;
288
+ var last = first + toastHeight;
289
+ var invert = last - first;
290
+ positionContainer === null || positionContainer === void 0 ? void 0 : positionContainer.animate([{
291
+ transform: "translateY(".concat(negativePush.value).concat(invert, "px)")
292
+ }, {
293
+ transform: 'translateY(0)'
294
+ }], {
295
+ duration: 400,
296
+ easing: 'ease'
297
+ });
298
+ }
299
+
300
+ isMounted.value = true;
301
+ });
302
+ watchEffect(function () {
303
+ if (isOpen.value.value === true) {
304
+ setTimeout(function () {
305
+ isOpen.value.value = false;
306
+ ctx.emit('dismissed');
307
+ }, props.timeout);
308
+ }
309
+ });
310
+ return {
311
+ containerEl: containerEl,
312
+ baseClass: baseClass,
313
+ typeClasses: typeClasses,
314
+ svgComponent: svgComponent,
315
+ isOpen: isOpen,
316
+ uuid: uuid,
317
+ isMounted: isMounted,
318
+ mountContainer: mountContainer,
319
+ isLeftRightorCenter: isLeftRightorCenter
320
+ };
321
+ }
322
+ });
323
+
324
+ var _hoisted_1 = ["id"];
325
+ var _hoisted_2 = {
326
+ "class": "inline-flex items-center gap-x-4"
327
+ };
328
+ var _hoisted_3 = {
329
+ key: 0,
330
+ "class": "text-base mb-0"
331
+ };
332
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
333
+ return openBlock(), createElementBlock(Fragment, null, [_ctx.mountContainer ? (openBlock(), createBlock(Teleport, {
334
+ key: 0,
335
+ to: _ctx.element
336
+ }, [createVNode(TransitionGroup, {
337
+ name: "toastAnimate",
338
+ tag: "div",
339
+ appear: "",
340
+ id: _ctx.containerEl,
341
+ "class": "fw-toast--container"
342
+ }, null, 8, ["id"])], 8, ["to"])) : createCommentVNode("", true), _ctx.isMounted ? (openBlock(), createBlock(Teleport, {
343
+ key: 1,
344
+ to: '#' + _ctx.containerEl
345
+ }, [createVNode(Transition, {
346
+ name: "toastSlideIn".concat(_ctx.isLeftRightorCenter),
347
+ appear: ""
348
+ }, {
349
+ "default": withCtx(function () {
350
+ return [_ctx.isOpen.value ? (openBlock(), createElementBlock("output", {
351
+ role: "status",
352
+ "class": normalizeClass(["fw-toast shadow rounded", [_ctx.baseClass, _ctx.typeClasses[_ctx.type]]]),
353
+ id: "fw-toast-".concat(_ctx.uuid),
354
+ key: "fw-toast-".concat(_ctx.uuid)
355
+ }, [createElementVNode("div", _hoisted_2, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.svgComponent[_ctx.type]), {
356
+ "aria-hidden": "true",
357
+ "class": "text-white min-w-[24px] min-h-[24px] w-[24px] h-[24px]"
358
+ })), _ctx.content ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(_ctx.content), 1)) : renderSlot(_ctx.$slots, "default", {
359
+ key: 1
360
+ })])], 10, _hoisted_1)) : createCommentVNode("", true)];
361
+ }),
362
+ _: 3
363
+ }, 8, ["name"])], 8, ["to"])) : createCommentVNode("", true)], 64);
364
+ }
365
+
366
+ var css_248z = ".fw-toast{will-change:transform}.fw-toast--container{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:15px;pointer-events:none;position:fixed;-webkit-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}#fw-toast--container-bottom-right{-webkit-box-align:end;-ms-flex-align:end;align-items:end;bottom:50px;margin-left:20px;right:50px}#fw-toast--container-bottom-left{bottom:50px;left:50px;margin-right:20px}#fw-toast--container-bottom{-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:50px;width:100%}#fw-toast--container-top-right{-webkit-box-align:end;-ms-flex-align:end;align-items:end;margin-left:20px;right:50px}#fw-toast--container-top-left,#fw-toast--container-top-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;top:50px}#fw-toast--container-top-left{left:50px;margin-right:20px}#fw-toast--container-top{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-orient:vertical;-webkit-box-direction:reverse;align-items:center;-ms-flex-direction:column-reverse;flex-direction:column-reverse;top:50px;width:100%}.toastSlideInRight-enter-active{-webkit-animation:toastSlideInRight .4s;animation:toastSlideInRight .4s}.toastSlideInRight-enter-active,.toastSlideInRight-leave-active{-webkit-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}.toastSlideInRight-leave-active{animation:toastSlideInRight .4s reverse}.toastSlideInLeft-enter-active{-webkit-animation:toastSlideInLeft .4s;animation:toastSlideInLeft .4s}.toastSlideInLeft-enter-active,.toastSlideInLeft-leave-active{-webkit-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}.toastSlideInLeft-leave-active{animation:toastSlideInLeft .4s reverse}.toastSlideInCenter-enter-active{-webkit-animation:toastSlideInCenter .4s;animation:toastSlideInCenter .4s}.toastSlideInCenter-enter-active,.toastSlideInCenter-leave-active{-webkit-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}.toastSlideInCenter-leave-active{animation:toastSlideInCenter .4s reverse}@-webkit-keyframes toastSlideInRight{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}40%{opacity:1;-webkit-transform:translateX(-3%);transform:translateX(-3%)}70%{-webkit-transform:translateX(1%);transform:translateX(1%)}90%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes toastSlideInRight{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}40%{opacity:1;-webkit-transform:translateX(-3%);transform:translateX(-3%)}70%{-webkit-transform:translateX(1%);transform:translateX(1%)}90%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes toastSlideInLeft{0%{opacity:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}40%{opacity:1;-webkit-transform:translateX(3%);transform:translateX(3%)}70%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}90%{-webkit-transform:translateX(1%);transform:translateX(1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes toastSlideInLeft{0%{opacity:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}40%{opacity:1;-webkit-transform:translateX(3%);transform:translateX(3%)}70%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}90%{-webkit-transform:translateX(1%);transform:translateX(1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes toastSlideInCenter{0%{opacity:0;scale:0}to{opacity:1;scale:1}}@keyframes toastSlideInCenter{0%{opacity:0;scale:0}to{opacity:1;scale:1}}";
367
+ var stylesheet = ".fw-toast{will-change:transform}.fw-toast--container{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:15px;pointer-events:none;position:fixed;-webkit-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}#fw-toast--container-bottom-right{-webkit-box-align:end;-ms-flex-align:end;align-items:end;bottom:50px;margin-left:20px;right:50px}#fw-toast--container-bottom-left{bottom:50px;left:50px;margin-right:20px}#fw-toast--container-bottom{-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:50px;width:100%}#fw-toast--container-top-right{-webkit-box-align:end;-ms-flex-align:end;align-items:end;margin-left:20px;right:50px}#fw-toast--container-top-left,#fw-toast--container-top-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;top:50px}#fw-toast--container-top-left{left:50px;margin-right:20px}#fw-toast--container-top{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-orient:vertical;-webkit-box-direction:reverse;align-items:center;-ms-flex-direction:column-reverse;flex-direction:column-reverse;top:50px;width:100%}.toastSlideInRight-enter-active{-webkit-animation:toastSlideInRight .4s;animation:toastSlideInRight .4s}.toastSlideInRight-enter-active,.toastSlideInRight-leave-active{-webkit-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}.toastSlideInRight-leave-active{animation:toastSlideInRight .4s reverse}.toastSlideInLeft-enter-active{-webkit-animation:toastSlideInLeft .4s;animation:toastSlideInLeft .4s}.toastSlideInLeft-enter-active,.toastSlideInLeft-leave-active{-webkit-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}.toastSlideInLeft-leave-active{animation:toastSlideInLeft .4s reverse}.toastSlideInCenter-enter-active{-webkit-animation:toastSlideInCenter .4s;animation:toastSlideInCenter .4s}.toastSlideInCenter-enter-active,.toastSlideInCenter-leave-active{-webkit-transition:all .4s ease;-o-transition:all .4s ease;transition:all .4s ease}.toastSlideInCenter-leave-active{animation:toastSlideInCenter .4s reverse}@-webkit-keyframes toastSlideInRight{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}40%{opacity:1;-webkit-transform:translateX(-3%);transform:translateX(-3%)}70%{-webkit-transform:translateX(1%);transform:translateX(1%)}90%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes toastSlideInRight{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}40%{opacity:1;-webkit-transform:translateX(-3%);transform:translateX(-3%)}70%{-webkit-transform:translateX(1%);transform:translateX(1%)}90%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes toastSlideInLeft{0%{opacity:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}40%{opacity:1;-webkit-transform:translateX(3%);transform:translateX(3%)}70%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}90%{-webkit-transform:translateX(1%);transform:translateX(1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes toastSlideInLeft{0%{opacity:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}40%{opacity:1;-webkit-transform:translateX(3%);transform:translateX(3%)}70%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}90%{-webkit-transform:translateX(1%);transform:translateX(1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes toastSlideInCenter{0%{opacity:0;scale:0}to{opacity:1;scale:1}}@keyframes toastSlideInCenter{0%{opacity:0;scale:0}to{opacity:1;scale:1}}";
368
+ styleInject(css_248z);
369
+
370
+ script.render = render;
371
+
372
+ export { script as FwToast };
@@ -0,0 +1,118 @@
1
+ import { defineComponent, createElementVNode, resolveComponent, openBlock, createBlock, withCtx, createCommentVNode, toDisplayString, createElementBlock } from 'vue';
2
+ import { s as script$1 } from './fw-card-8d3f4ab5.js';
3
+ import { s as script$2 } from './fw-image-ec7b02c5.js';
4
+ import './es.array.includes-df8e6e35.js';
5
+ import './function-name-e2f6ea36.js';
6
+ import './object-keys-6a890c6f.js';
7
+ import './is-forced-ddf227e6.js';
8
+ import './add-to-unscopables-3f461c07.js';
9
+ import './es.number.constructor-f279ce82.js';
10
+ import './to-string-685748aa.js';
11
+ import './classof-a45668b6.js';
12
+ import './es.array.find-36d8f2f0.js';
13
+ import './array-iteration-98e2cf9a.js';
14
+ import './array-species-create-5fc23c89.js';
15
+ import './create-property-558a3c24.js';
16
+ import './web.timers-4a6aaab8.js';
17
+ import './array-method-is-strict-544b103f.js';
18
+ import './fw-loading-bar-da7d53fb.js';
19
+ import './style-inject.es-1f59c1d0.js';
20
+ import './index-4605e00e.js';
21
+ import './check-94a5917a.js';
22
+
23
+ var script = defineComponent({
24
+ name: 'FwTransactionsCard',
25
+ components: {
26
+ FwCard: script$1,
27
+ FwImage: script$2
28
+ },
29
+ props: {
30
+ /**
31
+ * The transaction title of the card
32
+ */
33
+ title: {
34
+ type: String
35
+ },
36
+
37
+ /**
38
+ * The transaction sub-title of the card
39
+ */
40
+ subTitle: {
41
+ type: String,
42
+ required: false
43
+ },
44
+
45
+ /**
46
+ * The transaction amount.
47
+ */
48
+ amount: {
49
+ type: String,
50
+ required: false
51
+ },
52
+
53
+ /**
54
+ * The src url for the image.
55
+ */
56
+ imageUrl: {
57
+ type: String,
58
+ required: false
59
+ }
60
+ }
61
+ });
62
+
63
+ var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
64
+ "class": "absolute top-0 left-0 w-full h-full rounded-lg bg-primary opacity-5 pointer-events-none"
65
+ }, null, -1);
66
+
67
+ var _hoisted_2 = {
68
+ "class": "flex flex-row w-full items-center py-3 px-4"
69
+ };
70
+ var _hoisted_3 = {
71
+ "class": "flex flex-col w-full flex-1 ml-2"
72
+ };
73
+ var _hoisted_4 = {
74
+ "class": "flex flex-row justify-between gap-x-2 items-center w-full"
75
+ };
76
+ var _hoisted_5 = {
77
+ "class": "text-left"
78
+ };
79
+ var _hoisted_6 = {
80
+ "class": "text-p2 font-semibold mb-0"
81
+ };
82
+ var _hoisted_7 = ["innerHTML"];
83
+ var _hoisted_8 = {
84
+ key: 0,
85
+ "class": "text-right"
86
+ };
87
+ var _hoisted_9 = {
88
+ "class": "text-p2 font-semibold mb-0"
89
+ };
90
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
91
+ var _component_FwImage = resolveComponent("FwImage");
92
+
93
+ var _component_FwCard = resolveComponent("FwCard");
94
+
95
+ return openBlock(), createBlock(_component_FwCard, {
96
+ "class": "relative rounded-lg shadow",
97
+ "slot-padding": false
98
+ }, {
99
+ "default": withCtx(function () {
100
+ return [_hoisted_1, createElementVNode("div", _hoisted_2, [_ctx.imageUrl ? (openBlock(), createBlock(_component_FwImage, {
101
+ key: 0,
102
+ src: _ctx.imageUrl,
103
+ type: "background",
104
+ rounded: true,
105
+ "class": "w-9 h-9"
106
+ }, null, 8, ["src"])) : createCommentVNode("", true), createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [createElementVNode("p", _hoisted_6, toDisplayString(_ctx.title), 1), _ctx.subTitle ? (openBlock(), createElementBlock("p", {
107
+ key: 0,
108
+ innerHTML: _ctx.subTitle,
109
+ "class": "text-p-small text-grey-base mb-0"
110
+ }, null, 8, _hoisted_7)) : createCommentVNode("", true)]), _ctx.amount ? (openBlock(), createElementBlock("div", _hoisted_8, [createElementVNode("p", _hoisted_9, toDisplayString(_ctx.amount), 1)])) : createCommentVNode("", true)])])])];
111
+ }),
112
+ _: 1
113
+ });
114
+ }
115
+
116
+ script.render = render;
117
+
118
+ export { script as FwTransactionsCard };