@frollo/frollo-web-ui 0.2.1 → 0.2.4

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 (37) hide show
  1. package/cjs/index.js +288 -84
  2. package/esm/add-to-unscopables-82352072.js +239 -0
  3. package/esm/{es.array.includes-debcb50f.js → es.array.includes-33e186c4.js} +3 -2
  4. package/esm/{es.function.name-e746680f.js → es.function.name-3a9c8706.js} +1 -1
  5. package/esm/es.number.constructor-f646730f.js +243 -0
  6. package/esm/{function-name-f0c1223e.js → function-name-3bda6320.js} +1 -1
  7. package/esm/fw-animations.js +136 -0
  8. package/esm/{fw-button-ab906734.js → fw-button-22301a2f.js} +1 -1
  9. package/esm/fw-button.js +5 -4
  10. package/esm/fw-checkbox.js +2 -2
  11. package/esm/fw-input.js +5 -4
  12. package/esm/fw-modal.js +6 -5
  13. package/esm/fw-navigation-menu.js +5 -4
  14. package/esm/fw-progress-bar.js +103 -0
  15. package/esm/fw-tabs.js +5 -3
  16. package/esm/{index-963039a3.js → index-59d76908.js} +2 -2
  17. package/esm/index-dd50b12a.js +326 -0
  18. package/esm/index.js +20 -11
  19. package/esm/is-forced-3323c994.js +438 -0
  20. package/frollo-web-ui.esm.js +332 -101
  21. package/icons/check.svg +3 -0
  22. package/icons/index.ts +3 -1
  23. package/index.d.ts +126 -10
  24. package/package.json +2 -1
  25. package/types/components/fw-animations/fw-email-pulse.vue.d.ts +24 -0
  26. package/types/components/fw-animations/fw-success-pulse.vue.d.ts +24 -0
  27. package/types/components/fw-animations/index.d.ts +3 -0
  28. package/types/components/fw-progress-bar/fw-progress-bar.vue.d.ts +52 -0
  29. package/types/components/fw-progress-bar/index.d.ts +2 -0
  30. package/types/components/fw-progress-bar/index.types.d.ts +5 -0
  31. package/types/components/fw-tabs/fw-tab.vue.d.ts +11 -0
  32. package/types/components/fw-tabs/fw-tabs.vue.d.ts +1 -1
  33. package/types/components/index.d.ts +2 -0
  34. package/types/components/index.types.d.ts +1 -0
  35. package/types/icons/index.d.ts +2 -1
  36. package/esm/add-to-unscopables-81c17489.js +0 -673
  37. package/esm/index-0e14da44.js +0 -561
@@ -1,561 +0,0 @@
1
- import { b as functionUncurryThis, h as aCallable$1, c as functionBindNative, w as wellKnownSymbol$3, i as isCallable$4, f as fails$2, j as getBuiltIn$1, k as isObject$2, t as toObject$1, l as anObject$1, r as requireObjectCoercible$1, a as descriptors, g as global$1, m as hasOwnProperty_1, o as objectIsPrototypeOf, n as isSymbol$1, p as toPrimitive$1, q as objectDefineProperty } from './function-name-f0c1223e.js';
2
- import { b as classofRaw$1, i as inspectSource$1, e as indexedObject, l as lengthOfArrayLike$1, f as isForced_1, d as defineBuiltIn$1, g as objectGetOwnPropertyNames, h as objectGetOwnPropertyDescriptor, _ as _export, j as addToUnscopables$1 } from './add-to-unscopables-81c17489.js';
3
- import { defineComponent, computed, ref, provide, openBlock, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, renderSlot, getCurrentInstance, inject, watchEffect } from 'vue';
4
-
5
- var uncurryThis$6 = functionUncurryThis;
6
- var aCallable = aCallable$1;
7
- var NATIVE_BIND = functionBindNative;
8
-
9
- var bind$1 = uncurryThis$6(uncurryThis$6.bind);
10
-
11
- // optional / simple context binding
12
- var functionBindContext = function (fn, that) {
13
- aCallable(fn);
14
- return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
15
- return fn.apply(that, arguments);
16
- };
17
- };
18
-
19
- var classof$3 = classofRaw$1;
20
-
21
- // `IsArray` abstract operation
22
- // https://tc39.es/ecma262/#sec-isarray
23
- // eslint-disable-next-line es-x/no-array-isarray -- safe
24
- var isArray$1 = Array.isArray || function isArray(argument) {
25
- return classof$3(argument) == 'Array';
26
- };
27
-
28
- var wellKnownSymbol$2 = wellKnownSymbol$3;
29
-
30
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
31
- var test = {};
32
-
33
- test[TO_STRING_TAG$1] = 'z';
34
-
35
- var toStringTagSupport = String(test) === '[object z]';
36
-
37
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
38
- var isCallable$3 = isCallable$4;
39
- var classofRaw = classofRaw$1;
40
- var wellKnownSymbol$1 = wellKnownSymbol$3;
41
-
42
- var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
43
- var $Object = Object;
44
-
45
- // ES3 wrong here
46
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
47
-
48
- // fallback for IE11 Script Access Denied error
49
- var tryGet = function (it, key) {
50
- try {
51
- return it[key];
52
- } catch (error) { /* empty */ }
53
- };
54
-
55
- // getting tag from ES6+ `Object.prototype.toString`
56
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
57
- var O, tag, result;
58
- return it === undefined ? 'Undefined' : it === null ? 'Null'
59
- // @@toStringTag case
60
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
61
- // builtinTag case
62
- : CORRECT_ARGUMENTS ? classofRaw(O)
63
- // ES3 arguments fallback
64
- : (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
65
- };
66
-
67
- var uncurryThis$5 = functionUncurryThis;
68
- var fails$1 = fails$2;
69
- var isCallable$2 = isCallable$4;
70
- var classof$1 = classof$2;
71
- var getBuiltIn = getBuiltIn$1;
72
- var inspectSource = inspectSource$1;
73
-
74
- var noop = function () { /* empty */ };
75
- var empty = [];
76
- var construct = getBuiltIn('Reflect', 'construct');
77
- var constructorRegExp = /^\s*(?:class|function)\b/;
78
- var exec = uncurryThis$5(constructorRegExp.exec);
79
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
80
-
81
- var isConstructorModern = function isConstructor(argument) {
82
- if (!isCallable$2(argument)) return false;
83
- try {
84
- construct(noop, empty, argument);
85
- return true;
86
- } catch (error) {
87
- return false;
88
- }
89
- };
90
-
91
- var isConstructorLegacy = function isConstructor(argument) {
92
- if (!isCallable$2(argument)) return false;
93
- switch (classof$1(argument)) {
94
- case 'AsyncFunction':
95
- case 'GeneratorFunction':
96
- case 'AsyncGeneratorFunction': return false;
97
- }
98
- try {
99
- // we can't check .prototype since constructors produced by .bind haven't it
100
- // `Function#toString` throws on some built-it function in some legacy engines
101
- // (for example, `DOMQuad` and similar in FF41-)
102
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
103
- } catch (error) {
104
- return true;
105
- }
106
- };
107
-
108
- isConstructorLegacy.sham = true;
109
-
110
- // `IsConstructor` abstract operation
111
- // https://tc39.es/ecma262/#sec-isconstructor
112
- var isConstructor$1 = !construct || fails$1(function () {
113
- var called;
114
- return isConstructorModern(isConstructorModern.call)
115
- || !isConstructorModern(Object)
116
- || !isConstructorModern(function () { called = true; })
117
- || called;
118
- }) ? isConstructorLegacy : isConstructorModern;
119
-
120
- var isArray = isArray$1;
121
- var isConstructor = isConstructor$1;
122
- var isObject$1 = isObject$2;
123
- var wellKnownSymbol = wellKnownSymbol$3;
124
-
125
- var SPECIES = wellKnownSymbol('species');
126
- var $Array = Array;
127
-
128
- // a part of `ArraySpeciesCreate` abstract operation
129
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
130
- var arraySpeciesConstructor$1 = function (originalArray) {
131
- var C;
132
- if (isArray(originalArray)) {
133
- C = originalArray.constructor;
134
- // cross-realm fallback
135
- if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
136
- else if (isObject$1(C)) {
137
- C = C[SPECIES];
138
- if (C === null) C = undefined;
139
- }
140
- } return C === undefined ? $Array : C;
141
- };
142
-
143
- var arraySpeciesConstructor = arraySpeciesConstructor$1;
144
-
145
- // `ArraySpeciesCreate` abstract operation
146
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
147
- var arraySpeciesCreate$1 = function (originalArray, length) {
148
- return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
149
- };
150
-
151
- var bind = functionBindContext;
152
- var uncurryThis$4 = functionUncurryThis;
153
- var IndexedObject = indexedObject;
154
- var toObject = toObject$1;
155
- var lengthOfArrayLike = lengthOfArrayLike$1;
156
- var arraySpeciesCreate = arraySpeciesCreate$1;
157
-
158
- var push = uncurryThis$4([].push);
159
-
160
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
161
- var createMethod$1 = function (TYPE) {
162
- var IS_MAP = TYPE == 1;
163
- var IS_FILTER = TYPE == 2;
164
- var IS_SOME = TYPE == 3;
165
- var IS_EVERY = TYPE == 4;
166
- var IS_FIND_INDEX = TYPE == 6;
167
- var IS_FILTER_REJECT = TYPE == 7;
168
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
169
- return function ($this, callbackfn, that, specificCreate) {
170
- var O = toObject($this);
171
- var self = IndexedObject(O);
172
- var boundFunction = bind(callbackfn, that);
173
- var length = lengthOfArrayLike(self);
174
- var index = 0;
175
- var create = specificCreate || arraySpeciesCreate;
176
- var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
177
- var value, result;
178
- for (;length > index; index++) if (NO_HOLES || index in self) {
179
- value = self[index];
180
- result = boundFunction(value, index, O);
181
- if (TYPE) {
182
- if (IS_MAP) target[index] = result; // map
183
- else if (result) switch (TYPE) {
184
- case 3: return true; // some
185
- case 5: return value; // find
186
- case 6: return index; // findIndex
187
- case 2: push(target, value); // filter
188
- } else switch (TYPE) {
189
- case 4: return false; // every
190
- case 7: push(target, value); // filterReject
191
- }
192
- }
193
- }
194
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
195
- };
196
- };
197
-
198
- var arrayIteration = {
199
- // `Array.prototype.forEach` method
200
- // https://tc39.es/ecma262/#sec-array.prototype.foreach
201
- forEach: createMethod$1(0),
202
- // `Array.prototype.map` method
203
- // https://tc39.es/ecma262/#sec-array.prototype.map
204
- map: createMethod$1(1),
205
- // `Array.prototype.filter` method
206
- // https://tc39.es/ecma262/#sec-array.prototype.filter
207
- filter: createMethod$1(2),
208
- // `Array.prototype.some` method
209
- // https://tc39.es/ecma262/#sec-array.prototype.some
210
- some: createMethod$1(3),
211
- // `Array.prototype.every` method
212
- // https://tc39.es/ecma262/#sec-array.prototype.every
213
- every: createMethod$1(4),
214
- // `Array.prototype.find` method
215
- // https://tc39.es/ecma262/#sec-array.prototype.find
216
- find: createMethod$1(5),
217
- // `Array.prototype.findIndex` method
218
- // https://tc39.es/ecma262/#sec-array.prototype.findIndex
219
- findIndex: createMethod$1(6),
220
- // `Array.prototype.filterReject` method
221
- // https://github.com/tc39/proposal-array-filtering
222
- filterReject: createMethod$1(7)
223
- };
224
-
225
- var es_number_constructor = {};
226
-
227
- var isCallable$1 = isCallable$4;
228
-
229
- var $String$1 = String;
230
- var $TypeError = TypeError;
231
-
232
- var aPossiblePrototype$1 = function (argument) {
233
- if (typeof argument == 'object' || isCallable$1(argument)) return argument;
234
- throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
235
- };
236
-
237
- /* eslint-disable no-proto -- safe */
238
-
239
- var uncurryThis$3 = functionUncurryThis;
240
- var anObject = anObject$1;
241
- var aPossiblePrototype = aPossiblePrototype$1;
242
-
243
- // `Object.setPrototypeOf` method
244
- // https://tc39.es/ecma262/#sec-object.setprototypeof
245
- // Works with __proto__ only. Old v8 can't work with null proto objects.
246
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
247
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
248
- var CORRECT_SETTER = false;
249
- var test = {};
250
- var setter;
251
- try {
252
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
253
- setter = uncurryThis$3(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
254
- setter(test, []);
255
- CORRECT_SETTER = test instanceof Array;
256
- } catch (error) { /* empty */ }
257
- return function setPrototypeOf(O, proto) {
258
- anObject(O);
259
- aPossiblePrototype(proto);
260
- if (CORRECT_SETTER) setter(O, proto);
261
- else O.__proto__ = proto;
262
- return O;
263
- };
264
- }() : undefined);
265
-
266
- var isCallable = isCallable$4;
267
- var isObject = isObject$2;
268
- var setPrototypeOf = objectSetPrototypeOf;
269
-
270
- // makes subclassing work correct for wrapped built-ins
271
- var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
272
- var NewTarget, NewTargetPrototype;
273
- if (
274
- // it can work only with native `setPrototypeOf`
275
- setPrototypeOf &&
276
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
277
- isCallable(NewTarget = dummy.constructor) &&
278
- NewTarget !== Wrapper &&
279
- isObject(NewTargetPrototype = NewTarget.prototype) &&
280
- NewTargetPrototype !== Wrapper.prototype
281
- ) setPrototypeOf($this, NewTargetPrototype);
282
- return $this;
283
- };
284
-
285
- var uncurryThis$2 = functionUncurryThis;
286
-
287
- // `thisNumberValue` abstract operation
288
- // https://tc39.es/ecma262/#sec-thisnumbervalue
289
- var thisNumberValue$1 = uncurryThis$2(1.0.valueOf);
290
-
291
- var classof = classof$2;
292
-
293
- var $String = String;
294
-
295
- var toString$1 = function (argument) {
296
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
297
- return $String(argument);
298
- };
299
-
300
- // a string of all valid unicode whitespaces
301
- var whitespaces$1 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
302
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
303
-
304
- var uncurryThis$1 = functionUncurryThis;
305
- var requireObjectCoercible = requireObjectCoercible$1;
306
- var toString = toString$1;
307
- var whitespaces = whitespaces$1;
308
-
309
- var replace = uncurryThis$1(''.replace);
310
- var whitespace = '[' + whitespaces + ']';
311
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
312
- var rtrim = RegExp(whitespace + whitespace + '*$');
313
-
314
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
315
- var createMethod = function (TYPE) {
316
- return function ($this) {
317
- var string = toString(requireObjectCoercible($this));
318
- if (TYPE & 1) string = replace(string, ltrim, '');
319
- if (TYPE & 2) string = replace(string, rtrim, '');
320
- return string;
321
- };
322
- };
323
-
324
- var stringTrim = {
325
- // `String.prototype.{ trimLeft, trimStart }` methods
326
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
327
- start: createMethod(1),
328
- // `String.prototype.{ trimRight, trimEnd }` methods
329
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
330
- end: createMethod(2),
331
- // `String.prototype.trim` method
332
- // https://tc39.es/ecma262/#sec-string.prototype.trim
333
- trim: createMethod(3)
334
- };
335
-
336
- 'use strict';
337
- var DESCRIPTORS = descriptors;
338
- var global = global$1;
339
- var uncurryThis = functionUncurryThis;
340
- var isForced = isForced_1;
341
- var defineBuiltIn = defineBuiltIn$1;
342
- var hasOwn = hasOwnProperty_1;
343
- var inheritIfRequired = inheritIfRequired$1;
344
- var isPrototypeOf = objectIsPrototypeOf;
345
- var isSymbol = isSymbol$1;
346
- var toPrimitive = toPrimitive$1;
347
- var fails = fails$2;
348
- var getOwnPropertyNames = objectGetOwnPropertyNames.f;
349
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
350
- var defineProperty = objectDefineProperty.f;
351
- var thisNumberValue = thisNumberValue$1;
352
- var trim = stringTrim.trim;
353
-
354
- var NUMBER = 'Number';
355
- var NativeNumber = global[NUMBER];
356
- var NumberPrototype = NativeNumber.prototype;
357
- var TypeError$1 = global.TypeError;
358
- var arraySlice = uncurryThis(''.slice);
359
- var charCodeAt = uncurryThis(''.charCodeAt);
360
-
361
- // `ToNumeric` abstract operation
362
- // https://tc39.es/ecma262/#sec-tonumeric
363
- var toNumeric = function (value) {
364
- var primValue = toPrimitive(value, 'number');
365
- return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
366
- };
367
-
368
- // `ToNumber` abstract operation
369
- // https://tc39.es/ecma262/#sec-tonumber
370
- var toNumber = function (argument) {
371
- var it = toPrimitive(argument, 'number');
372
- var first, third, radix, maxCode, digits, length, index, code;
373
- if (isSymbol(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
374
- if (typeof it == 'string' && it.length > 2) {
375
- it = trim(it);
376
- first = charCodeAt(it, 0);
377
- if (first === 43 || first === 45) {
378
- third = charCodeAt(it, 2);
379
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
380
- } else if (first === 48) {
381
- switch (charCodeAt(it, 1)) {
382
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
383
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
384
- default: return +it;
385
- }
386
- digits = arraySlice(it, 2);
387
- length = digits.length;
388
- for (index = 0; index < length; index++) {
389
- code = charCodeAt(digits, index);
390
- // parseInt parses a string to a first unavailable symbol
391
- // but ToNumber should return NaN if a string contains unavailable symbols
392
- if (code < 48 || code > maxCode) return NaN;
393
- } return parseInt(digits, radix);
394
- }
395
- } return +it;
396
- };
397
-
398
- // `Number` constructor
399
- // https://tc39.es/ecma262/#sec-number-constructor
400
- if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
401
- var NumberWrapper = function Number(value) {
402
- var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
403
- var dummy = this;
404
- // check on 1..constructor(foo) case
405
- return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
406
- ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
407
- };
408
- for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
409
- // ES3:
410
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
411
- // ES2015 (in case, if modules with ES2015 Number statics required before):
412
- 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
413
- // ESNext
414
- 'fromString,range'
415
- ).split(','), j = 0, key; keys.length > j; j++) {
416
- if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {
417
- defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
418
- }
419
- }
420
- NumberWrapper.prototype = NumberPrototype;
421
- NumberPrototype.constructor = NumberWrapper;
422
- defineBuiltIn(global, NUMBER, NumberWrapper, { constructor: true });
423
- }
424
-
425
- var script$1 = defineComponent({
426
- name: 'FwTabs',
427
- emits: ['update:modelValue'],
428
- props: {
429
- /**
430
- * The active tab v-model
431
- */
432
- modelValue: {
433
- type: Number,
434
- required: true
435
- }
436
- },
437
- setup: function setup(props, ctx) {
438
- var active = computed(function () {
439
- return props.modelValue;
440
- });
441
- var tabs = ref([]);
442
-
443
- var selectTab = function selectTab(tab) {
444
- ctx.emit('update:modelValue', tab);
445
- };
446
-
447
- provide('tabsState', {
448
- active: active,
449
- tabs: tabs
450
- });
451
- return {
452
- active: active,
453
- tabs: tabs,
454
- selectTab: selectTab
455
- };
456
- }
457
- });
458
-
459
- var _hoisted_1$1 = {
460
- "class": "fw-tabs"
461
- };
462
- var _hoisted_2 = {
463
- key: 0,
464
- "class": "flex flex-wrap -mb-px border-b border-grey-light dark:text-grey-base dark:border-grey-base"
465
- };
466
- var _hoisted_3 = ["onClick"];
467
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
468
- return openBlock(), createElementBlock("div", _hoisted_1$1, [_ctx.tabs ? (openBlock(), createElementBlock("ul", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, function (tab, i) {
469
- return openBlock(), createElementBlock("li", {
470
- "class": "mr-2",
471
- key: i
472
- }, [createElementVNode("button", {
473
- type: "button",
474
- onClick: function onClick($event) {
475
- return _ctx.selectTab(i);
476
- },
477
- "class": normalizeClass(["inline-block p-4 outline-primary border-b-2 border-transparent transition ease-in", _ctx.active === i ? 'font-medium border-black' : 'hover:bg-grey-lightest'])
478
- }, toDisplayString(tab.props.label), 11, _hoisted_3)]);
479
- }), 128))])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")]);
480
- }
481
-
482
- script$1.render = render$1;
483
-
484
- var es_array_findIndex = {};
485
-
486
- 'use strict';
487
- var $ = _export;
488
- var $findIndex = arrayIteration.findIndex;
489
- var addToUnscopables = addToUnscopables$1;
490
-
491
- var FIND_INDEX = 'findIndex';
492
- var SKIPS_HOLES = true;
493
-
494
- // Shouldn't skip holes
495
- if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });
496
-
497
- // `Array.prototype.findIndex` method
498
- // https://tc39.es/ecma262/#sec-array.prototype.findindex
499
- $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
500
- findIndex: function findIndex(callbackfn /* , that = undefined */) {
501
- return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
502
- }
503
- });
504
-
505
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
506
- addToUnscopables(FIND_INDEX);
507
-
508
- var script = defineComponent({
509
- name: 'FwTab',
510
- props: {
511
- /**
512
- * The label of the tab component used as the button panel label
513
- */
514
- label: {
515
- type: String,
516
- required: true
517
- }
518
- },
519
- setup: function setup() {
520
- var instance = getCurrentInstance();
521
-
522
- var _ref = inject('tabsState') || {
523
- tabs: [],
524
- active: 0
525
- },
526
- tabs = _ref.tabs,
527
- active = _ref.active;
528
-
529
- var index = computed(function () {
530
- var _tabs$value;
531
-
532
- return (_tabs$value = tabs.value) === null || _tabs$value === void 0 ? void 0 : _tabs$value.findIndex(function (target) {
533
- return target.uid === (instance === null || instance === void 0 ? void 0 : instance.uid);
534
- });
535
- });
536
- var isActive = computed(function () {
537
- return index.value === active.value;
538
- });
539
- watchEffect(function () {
540
- if (index.value === -1) {
541
- tabs.value.push(instance);
542
- }
543
- });
544
- return {
545
- isActive: isActive,
546
- index: index
547
- };
548
- }
549
- });
550
-
551
- var _hoisted_1 = {
552
- key: 0,
553
- "class": "fw-tab w-full"
554
- };
555
- function render(_ctx, _cache, $props, $setup, $data, $options) {
556
- return _ctx.isActive ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true);
557
- }
558
-
559
- script.render = render;
560
-
561
- export { arrayIteration as a, script as b, classof$2 as c, script$1 as s, toStringTagSupport as t };