@frollo/frollo-web-ui 0.0.2 → 0.0.3

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, toDisplayString, createCommentVNode, renderSlot } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, toDisplayString, createCommentVNode, renderSlot, ref, computed, normalizeClass } from 'vue';
2
2
 
3
3
  function _arrayWithHoles(arr) {
4
4
  if (Array.isArray(arr)) return arr;
@@ -157,7 +157,7 @@ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({
157
157
 
158
158
  // `Object.prototype.propertyIsEnumerable` method implementation
159
159
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
160
- var f$4 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
160
+ var f$5 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
161
161
  var descriptor = getOwnPropertyDescriptor$1(this, V);
162
162
  return !!descriptor && descriptor.enumerable;
163
163
  } : $propertyIsEnumerable$1;
@@ -227,7 +227,7 @@ var requireObjectCoercible$2 = function (it) {
227
227
  var IndexedObject$1 = indexedObject;
228
228
  var requireObjectCoercible$1 = requireObjectCoercible$2;
229
229
 
230
- var toIndexedObject$4 = function (it) {
230
+ var toIndexedObject$5 = function (it) {
231
231
  return IndexedObject$1(requireObjectCoercible$1(it));
232
232
  };
233
233
 
@@ -250,7 +250,7 @@ var aFunction = function (argument) {
250
250
  return isCallable$9(argument) ? argument : undefined;
251
251
  };
252
252
 
253
- var getBuiltIn$4 = function (namespace, method) {
253
+ var getBuiltIn$5 = function (namespace, method) {
254
254
  return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
255
255
  };
256
256
 
@@ -258,9 +258,9 @@ var uncurryThis$a = functionUncurryThis;
258
258
 
259
259
  var objectIsPrototypeOf = uncurryThis$a({}.isPrototypeOf);
260
260
 
261
- var getBuiltIn$3 = getBuiltIn$4;
261
+ var getBuiltIn$4 = getBuiltIn$5;
262
262
 
263
- var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
263
+ var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
264
264
 
265
265
  var global$k = global$o;
266
266
  var userAgent = engineUserAgent;
@@ -314,7 +314,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
314
314
  && typeof Symbol.iterator == 'symbol';
315
315
 
316
316
  var global$j = global$o;
317
- var getBuiltIn$2 = getBuiltIn$4;
317
+ var getBuiltIn$3 = getBuiltIn$5;
318
318
  var isCallable$8 = isCallable$b;
319
319
  var isPrototypeOf = objectIsPrototypeOf;
320
320
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
@@ -324,7 +324,7 @@ var Object$3 = global$j.Object;
324
324
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
325
325
  return typeof it == 'symbol';
326
326
  } : function (it) {
327
- var $Symbol = getBuiltIn$2('Symbol');
327
+ var $Symbol = getBuiltIn$3('Symbol');
328
328
  return isCallable$8($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
329
329
  };
330
330
 
@@ -462,7 +462,7 @@ var Symbol$1 = global$c.Symbol;
462
462
  var symbolFor = Symbol$1 && Symbol$1['for'];
463
463
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
464
464
 
465
- var wellKnownSymbol$4 = function (name) {
465
+ var wellKnownSymbol$5 = function (name) {
466
466
  if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
467
467
  var description = 'Symbol.' + name;
468
468
  if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
@@ -481,10 +481,10 @@ var isObject$4 = isObject$6;
481
481
  var isSymbol$1 = isSymbol$2;
482
482
  var getMethod = getMethod$1;
483
483
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
484
- var wellKnownSymbol$3 = wellKnownSymbol$4;
484
+ var wellKnownSymbol$4 = wellKnownSymbol$5;
485
485
 
486
486
  var TypeError$4 = global$b.TypeError;
487
- var TO_PRIMITIVE = wellKnownSymbol$3('toPrimitive');
487
+ var TO_PRIMITIVE = wellKnownSymbol$4('toPrimitive');
488
488
 
489
489
  // `ToPrimitive` abstract operation
490
490
  // https://tc39.es/ecma262/#sec-toprimitive
@@ -515,31 +515,31 @@ var toPropertyKey$2 = function (argument) {
515
515
  var global$a = global$o;
516
516
  var isObject$3 = isObject$6;
517
517
 
518
- var document = global$a.document;
518
+ var document$1 = global$a.document;
519
519
  // typeof document.createElement is 'object' in old IE
520
- var EXISTS$1 = isObject$3(document) && isObject$3(document.createElement);
520
+ var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
521
521
 
522
- var documentCreateElement$1 = function (it) {
523
- return EXISTS$1 ? document.createElement(it) : {};
522
+ var documentCreateElement$2 = function (it) {
523
+ return EXISTS$1 ? document$1.createElement(it) : {};
524
524
  };
525
525
 
526
- var DESCRIPTORS$6 = descriptors;
526
+ var DESCRIPTORS$7 = descriptors;
527
527
  var fails$4 = fails$9;
528
- var createElement = documentCreateElement$1;
528
+ var createElement = documentCreateElement$2;
529
529
 
530
530
  // Thanks to IE8 for its funny defineProperty
531
- var ie8DomDefine = !DESCRIPTORS$6 && !fails$4(function () {
531
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
532
532
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
533
533
  return Object.defineProperty(createElement('div'), 'a', {
534
534
  get: function () { return 7; }
535
535
  }).a != 7;
536
536
  });
537
537
 
538
- var DESCRIPTORS$5 = descriptors;
538
+ var DESCRIPTORS$6 = descriptors;
539
539
  var call = functionCall;
540
540
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
541
541
  var createPropertyDescriptor$1 = createPropertyDescriptor$2;
542
- var toIndexedObject$3 = toIndexedObject$4;
542
+ var toIndexedObject$4 = toIndexedObject$5;
543
543
  var toPropertyKey$1 = toPropertyKey$2;
544
544
  var hasOwn$5 = hasOwnProperty_1;
545
545
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
@@ -549,8 +549,8 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
549
549
 
550
550
  // `Object.getOwnPropertyDescriptor` method
551
551
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
552
- var f$3 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
553
- O = toIndexedObject$3(O);
552
+ var f$4 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
553
+ O = toIndexedObject$4(O);
554
554
  P = toPropertyKey$1(P);
555
555
  if (IE8_DOM_DEFINE$1) try {
556
556
  return $getOwnPropertyDescriptor$1(O, P);
@@ -560,12 +560,12 @@ var f$3 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDesc
560
560
 
561
561
  var objectDefineProperty = {};
562
562
 
563
- var DESCRIPTORS$4 = descriptors;
563
+ var DESCRIPTORS$5 = descriptors;
564
564
  var fails$3 = fails$9;
565
565
 
566
566
  // V8 ~ Chrome 36-
567
567
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
568
- var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$3(function () {
568
+ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
569
569
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
570
570
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
571
571
  value: 42,
@@ -580,16 +580,16 @@ var String$1 = global$9.String;
580
580
  var TypeError$3 = global$9.TypeError;
581
581
 
582
582
  // `Assert: Type(argument) is Object`
583
- var anObject$2 = function (argument) {
583
+ var anObject$4 = function (argument) {
584
584
  if (isObject$2(argument)) return argument;
585
585
  throw TypeError$3(String$1(argument) + ' is not an object');
586
586
  };
587
587
 
588
588
  var global$8 = global$o;
589
- var DESCRIPTORS$3 = descriptors;
589
+ var DESCRIPTORS$4 = descriptors;
590
590
  var IE8_DOM_DEFINE = ie8DomDefine;
591
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
592
- var anObject$1 = anObject$2;
591
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
592
+ var anObject$3 = anObject$4;
593
593
  var toPropertyKey = toPropertyKey$2;
594
594
 
595
595
  var TypeError$2 = global$8.TypeError;
@@ -603,10 +603,10 @@ var WRITABLE = 'writable';
603
603
 
604
604
  // `Object.defineProperty` method
605
605
  // https://tc39.es/ecma262/#sec-object.defineproperty
606
- var f$2 = objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
607
- anObject$1(O);
606
+ var f$3 = objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
607
+ anObject$3(O);
608
608
  P = toPropertyKey(P);
609
- anObject$1(Attributes);
609
+ anObject$3(Attributes);
610
610
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
611
611
  var current = $getOwnPropertyDescriptor(O, P);
612
612
  if (current && current[WRITABLE]) {
@@ -619,9 +619,9 @@ var f$2 = objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? fun
619
619
  }
620
620
  } return $defineProperty(O, P, Attributes);
621
621
  } : $defineProperty : function defineProperty(O, P, Attributes) {
622
- anObject$1(O);
622
+ anObject$3(O);
623
623
  P = toPropertyKey(P);
624
- anObject$1(Attributes);
624
+ anObject$3(Attributes);
625
625
  if (IE8_DOM_DEFINE) try {
626
626
  return $defineProperty(O, P, Attributes);
627
627
  } catch (error) { /* empty */ }
@@ -630,12 +630,12 @@ var f$2 = objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? fun
630
630
  return O;
631
631
  };
632
632
 
633
- var DESCRIPTORS$2 = descriptors;
634
- var definePropertyModule$1 = objectDefineProperty;
633
+ var DESCRIPTORS$3 = descriptors;
634
+ var definePropertyModule$3 = objectDefineProperty;
635
635
  var createPropertyDescriptor = createPropertyDescriptor$2;
636
636
 
637
- var createNonEnumerableProperty$4 = DESCRIPTORS$2 ? function (object, key, value) {
638
- return definePropertyModule$1.f(object, key, createPropertyDescriptor(1, value));
637
+ var createNonEnumerableProperty$4 = DESCRIPTORS$3 ? function (object, key, value) {
638
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
639
639
  } : function (object, key, value) {
640
640
  object[key] = value;
641
641
  return object;
@@ -671,11 +671,11 @@ var uid = uid$2;
671
671
 
672
672
  var keys = shared$1('keys');
673
673
 
674
- var sharedKey$1 = function (key) {
674
+ var sharedKey$2 = function (key) {
675
675
  return keys[key] || (keys[key] = uid(key));
676
676
  };
677
677
 
678
- var hiddenKeys$3 = {};
678
+ var hiddenKeys$4 = {};
679
679
 
680
680
  var NATIVE_WEAK_MAP = nativeWeakMap;
681
681
  var global$6 = global$o;
@@ -684,8 +684,8 @@ var isObject$1 = isObject$6;
684
684
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
685
685
  var hasOwn$4 = hasOwnProperty_1;
686
686
  var shared = sharedStore;
687
- var sharedKey = sharedKey$1;
688
- var hiddenKeys$2 = hiddenKeys$3;
687
+ var sharedKey$1 = sharedKey$2;
688
+ var hiddenKeys$3 = hiddenKeys$4;
689
689
 
690
690
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
691
691
  var TypeError$1 = global$6.TypeError;
@@ -723,8 +723,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
723
723
  return wmhas(store, it);
724
724
  };
725
725
  } else {
726
- var STATE = sharedKey('state');
727
- hiddenKeys$2[STATE] = true;
726
+ var STATE = sharedKey$1('state');
727
+ hiddenKeys$3[STATE] = true;
728
728
  set = function (it, metadata) {
729
729
  if (hasOwn$4(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
730
730
  metadata.facade = it;
@@ -747,17 +747,17 @@ var internalState = {
747
747
  getterFor: getterFor
748
748
  };
749
749
 
750
- var DESCRIPTORS$1 = descriptors;
750
+ var DESCRIPTORS$2 = descriptors;
751
751
  var hasOwn$3 = hasOwnProperty_1;
752
752
 
753
753
  var FunctionPrototype = Function.prototype;
754
754
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
755
- var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
755
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
756
756
 
757
757
  var EXISTS = hasOwn$3(FunctionPrototype, 'name');
758
758
  // additional protection from minified / mangled / dropped function names
759
759
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
760
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
760
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
761
761
 
762
762
  var functionName = {
763
763
  EXISTS: EXISTS,
@@ -858,14 +858,14 @@ var lengthOfArrayLike$2 = function (obj) {
858
858
  return toLength(obj.length);
859
859
  };
860
860
 
861
- var toIndexedObject$2 = toIndexedObject$4;
861
+ var toIndexedObject$3 = toIndexedObject$5;
862
862
  var toAbsoluteIndex = toAbsoluteIndex$1;
863
863
  var lengthOfArrayLike$1 = lengthOfArrayLike$2;
864
864
 
865
865
  // `Array.prototype.{ indexOf, includes }` methods implementation
866
866
  var createMethod$2 = function (IS_INCLUDES) {
867
867
  return function ($this, el, fromIndex) {
868
- var O = toIndexedObject$2($this);
868
+ var O = toIndexedObject$3($this);
869
869
  var length = lengthOfArrayLike$1(O);
870
870
  var index = toAbsoluteIndex(fromIndex, length);
871
871
  var value;
@@ -893,18 +893,18 @@ var arrayIncludes = {
893
893
 
894
894
  var uncurryThis$5 = functionUncurryThis;
895
895
  var hasOwn$1 = hasOwnProperty_1;
896
- var toIndexedObject$1 = toIndexedObject$4;
896
+ var toIndexedObject$2 = toIndexedObject$5;
897
897
  var indexOf = arrayIncludes.indexOf;
898
- var hiddenKeys$1 = hiddenKeys$3;
898
+ var hiddenKeys$2 = hiddenKeys$4;
899
899
 
900
900
  var push$2 = uncurryThis$5([].push);
901
901
 
902
902
  var objectKeysInternal = function (object, names) {
903
- var O = toIndexedObject$1(object);
903
+ var O = toIndexedObject$2(object);
904
904
  var i = 0;
905
905
  var result = [];
906
906
  var key;
907
- for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push$2(result, key);
907
+ for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$2(result, key);
908
908
  // Don't enum bug & hidden keys
909
909
  while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
910
910
  ~indexOf(result, key) || push$2(result, key);
@@ -913,7 +913,7 @@ var objectKeysInternal = function (object, names) {
913
913
  };
914
914
 
915
915
  // IE8- don't enum bug keys
916
- var enumBugKeys$2 = [
916
+ var enumBugKeys$3 = [
917
917
  'constructor',
918
918
  'hasOwnProperty',
919
919
  'isPrototypeOf',
@@ -924,33 +924,33 @@ var enumBugKeys$2 = [
924
924
  ];
925
925
 
926
926
  var internalObjectKeys$1 = objectKeysInternal;
927
- var enumBugKeys$1 = enumBugKeys$2;
927
+ var enumBugKeys$2 = enumBugKeys$3;
928
928
 
929
- var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
929
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
930
930
 
931
931
  // `Object.getOwnPropertyNames` method
932
932
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
933
933
  // eslint-disable-next-line es/no-object-getownpropertynames -- safe
934
- var f$1 = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
935
- return internalObjectKeys$1(O, hiddenKeys);
934
+ var f$2 = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
935
+ return internalObjectKeys$1(O, hiddenKeys$1);
936
936
  };
937
937
 
938
938
  var objectGetOwnPropertySymbols = {};
939
939
 
940
940
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
941
- var f = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
941
+ var f$1 = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
942
942
 
943
- var getBuiltIn$1 = getBuiltIn$4;
943
+ var getBuiltIn$2 = getBuiltIn$5;
944
944
  var uncurryThis$4 = functionUncurryThis;
945
945
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
946
946
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
947
- var anObject = anObject$2;
947
+ var anObject$2 = anObject$4;
948
948
 
949
949
  var concat = uncurryThis$4([].concat);
950
950
 
951
951
  // all object keys, includes non-enumerable and symbols
952
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
953
- var keys = getOwnPropertyNamesModule.f(anObject(it));
952
+ var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
953
+ var keys = getOwnPropertyNamesModule.f(anObject$2(it));
954
954
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
955
955
  return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
956
956
  };
@@ -958,11 +958,11 @@ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
958
958
  var hasOwn = hasOwnProperty_1;
959
959
  var ownKeys = ownKeys$1;
960
960
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
961
- var definePropertyModule = objectDefineProperty;
961
+ var definePropertyModule$2 = objectDefineProperty;
962
962
 
963
963
  var copyConstructorProperties$1 = function (target, source, exceptions) {
964
964
  var keys = ownKeys(source);
965
- var defineProperty = definePropertyModule.f;
965
+ var defineProperty = definePropertyModule$2.f;
966
966
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
967
967
  for (var i = 0; i < keys.length; i++) {
968
968
  var key = keys[i];
@@ -1074,9 +1074,9 @@ var isArray$1 = Array.isArray || function isArray(argument) {
1074
1074
  return classof$3(argument) == 'Array';
1075
1075
  };
1076
1076
 
1077
- var wellKnownSymbol$2 = wellKnownSymbol$4;
1077
+ var wellKnownSymbol$3 = wellKnownSymbol$5;
1078
1078
 
1079
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1079
+ var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
1080
1080
  var test = {};
1081
1081
 
1082
1082
  test[TO_STRING_TAG$1] = 'z';
@@ -1087,9 +1087,9 @@ var global$3 = global$o;
1087
1087
  var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1088
1088
  var isCallable$1 = isCallable$b;
1089
1089
  var classofRaw = classofRaw$1;
1090
- var wellKnownSymbol$1 = wellKnownSymbol$4;
1090
+ var wellKnownSymbol$2 = wellKnownSymbol$5;
1091
1091
 
1092
- var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
1092
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1093
1093
  var Object$1 = global$3.Object;
1094
1094
 
1095
1095
  // ES3 wrong here
@@ -1118,12 +1118,12 @@ var uncurryThis$2 = functionUncurryThis;
1118
1118
  var fails$1 = fails$9;
1119
1119
  var isCallable = isCallable$b;
1120
1120
  var classof$1 = classof$2;
1121
- var getBuiltIn = getBuiltIn$4;
1121
+ var getBuiltIn$1 = getBuiltIn$5;
1122
1122
  var inspectSource = inspectSource$3;
1123
1123
 
1124
1124
  var noop = function () { /* empty */ };
1125
1125
  var empty = [];
1126
- var construct = getBuiltIn('Reflect', 'construct');
1126
+ var construct = getBuiltIn$1('Reflect', 'construct');
1127
1127
  var constructorRegExp = /^\s*(?:class|function)\b/;
1128
1128
  var exec = uncurryThis$2(constructorRegExp.exec);
1129
1129
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
@@ -1171,9 +1171,9 @@ var global$2 = global$o;
1171
1171
  var isArray = isArray$1;
1172
1172
  var isConstructor = isConstructor$1;
1173
1173
  var isObject = isObject$6;
1174
- var wellKnownSymbol = wellKnownSymbol$4;
1174
+ var wellKnownSymbol$1 = wellKnownSymbol$5;
1175
1175
 
1176
- var SPECIES = wellKnownSymbol('species');
1176
+ var SPECIES = wellKnownSymbol$1('species');
1177
1177
  var Array$1 = global$2.Array;
1178
1178
 
1179
1179
  // a part of `ArraySpeciesCreate` abstract operation
@@ -1298,13 +1298,13 @@ var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */)
1298
1298
  } : [].forEach;
1299
1299
 
1300
1300
  'use strict';
1301
- var $$1 = _export;
1301
+ var $$2 = _export;
1302
1302
  var forEach$1 = arrayForEach;
1303
1303
 
1304
1304
  // `Array.prototype.forEach` method
1305
1305
  // https://tc39.es/ecma262/#sec-array.prototype.foreach
1306
1306
  // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1307
- $$1({ target: 'Array', proto: true, forced: [].forEach != forEach$1 }, {
1307
+ $$2({ target: 'Array', proto: true, forced: [].forEach != forEach$1 }, {
1308
1308
  forEach: forEach$1
1309
1309
  });
1310
1310
 
@@ -1369,9 +1369,9 @@ var domIterables = {
1369
1369
  };
1370
1370
 
1371
1371
  // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1372
- var documentCreateElement = documentCreateElement$1;
1372
+ var documentCreateElement$1 = documentCreateElement$2;
1373
1373
 
1374
- var classList = documentCreateElement('span').classList;
1374
+ var classList = documentCreateElement$1('span').classList;
1375
1375
  var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1376
1376
 
1377
1377
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
@@ -1402,19 +1402,19 @@ handlePrototype(DOMTokenListPrototype);
1402
1402
  var es_object_entries = {};
1403
1403
 
1404
1404
  var internalObjectKeys = objectKeysInternal;
1405
- var enumBugKeys = enumBugKeys$2;
1405
+ var enumBugKeys$1 = enumBugKeys$3;
1406
1406
 
1407
1407
  // `Object.keys` method
1408
1408
  // https://tc39.es/ecma262/#sec-object.keys
1409
1409
  // eslint-disable-next-line es/no-object-keys -- safe
1410
- var objectKeys$1 = Object.keys || function keys(O) {
1411
- return internalObjectKeys(O, enumBugKeys);
1410
+ var objectKeys$2 = Object.keys || function keys(O) {
1411
+ return internalObjectKeys(O, enumBugKeys$1);
1412
1412
  };
1413
1413
 
1414
- var DESCRIPTORS = descriptors;
1414
+ var DESCRIPTORS$1 = descriptors;
1415
1415
  var uncurryThis = functionUncurryThis;
1416
- var objectKeys = objectKeys$1;
1417
- var toIndexedObject = toIndexedObject$4;
1416
+ var objectKeys$1 = objectKeys$2;
1417
+ var toIndexedObject$1 = toIndexedObject$5;
1418
1418
  var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
1419
1419
 
1420
1420
  var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
@@ -1423,15 +1423,15 @@ var push = uncurryThis([].push);
1423
1423
  // `Object.{ entries, values }` methods implementation
1424
1424
  var createMethod = function (TO_ENTRIES) {
1425
1425
  return function (it) {
1426
- var O = toIndexedObject(it);
1427
- var keys = objectKeys(O);
1426
+ var O = toIndexedObject$1(it);
1427
+ var keys = objectKeys$1(O);
1428
1428
  var length = keys.length;
1429
1429
  var i = 0;
1430
1430
  var result = [];
1431
1431
  var key;
1432
1432
  while (length > i) {
1433
1433
  key = keys[i++];
1434
- if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {
1434
+ if (!DESCRIPTORS$1 || propertyIsEnumerable(O, key)) {
1435
1435
  push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
1436
1436
  }
1437
1437
  }
@@ -1448,18 +1448,18 @@ var objectToArray = {
1448
1448
  values: createMethod(false)
1449
1449
  };
1450
1450
 
1451
- var $ = _export;
1451
+ var $$1 = _export;
1452
1452
  var $entries = objectToArray.entries;
1453
1453
 
1454
1454
  // `Object.entries` method
1455
1455
  // https://tc39.es/ecma262/#sec-object.entries
1456
- $({ target: 'Object', stat: true }, {
1456
+ $$1({ target: 'Object', stat: true }, {
1457
1457
  entries: function entries(O) {
1458
1458
  return $entries(O);
1459
1459
  }
1460
1460
  });
1461
1461
 
1462
- var script = defineComponent({
1462
+ var script$1 = defineComponent({
1463
1463
  name: 'FwCard',
1464
1464
  props: {
1465
1465
  /**
@@ -1478,7 +1478,7 @@ var script = defineComponent({
1478
1478
  }
1479
1479
  });
1480
1480
 
1481
- var _hoisted_1 = {
1481
+ var _hoisted_1$1 = {
1482
1482
  "class": "fw-card shadow rounded-lg"
1483
1483
  };
1484
1484
  var _hoisted_2 = {
@@ -1496,15 +1496,332 @@ var _hoisted_5 = {
1496
1496
  key: 1,
1497
1497
  "class": "p-8"
1498
1498
  };
1499
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
1500
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_2, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)]);
1501
+ }
1502
+
1503
+ script$1.render = render$1;
1504
+
1505
+ var es_array_includes = {};
1506
+
1507
+ var objectDefineProperties = {};
1508
+
1509
+ var DESCRIPTORS = descriptors;
1510
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1511
+ var definePropertyModule$1 = objectDefineProperty;
1512
+ var anObject$1 = anObject$4;
1513
+ var toIndexedObject = toIndexedObject$5;
1514
+ var objectKeys = objectKeys$2;
1515
+
1516
+ // `Object.defineProperties` method
1517
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1518
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1519
+ var f = objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1520
+ anObject$1(O);
1521
+ var props = toIndexedObject(Properties);
1522
+ var keys = objectKeys(Properties);
1523
+ var length = keys.length;
1524
+ var index = 0;
1525
+ var key;
1526
+ while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1527
+ return O;
1528
+ };
1529
+
1530
+ var getBuiltIn = getBuiltIn$5;
1531
+
1532
+ var html$1 = getBuiltIn('document', 'documentElement');
1533
+
1534
+ /* global ActiveXObject -- old IE, WSH */
1535
+
1536
+ var anObject = anObject$4;
1537
+ var definePropertiesModule = objectDefineProperties;
1538
+ var enumBugKeys = enumBugKeys$3;
1539
+ var hiddenKeys = hiddenKeys$4;
1540
+ var html = html$1;
1541
+ var documentCreateElement = documentCreateElement$2;
1542
+ var sharedKey = sharedKey$2;
1543
+
1544
+ var GT = '>';
1545
+ var LT = '<';
1546
+ var PROTOTYPE = 'prototype';
1547
+ var SCRIPT = 'script';
1548
+ var IE_PROTO = sharedKey('IE_PROTO');
1549
+
1550
+ var EmptyConstructor = function () { /* empty */ };
1551
+
1552
+ var scriptTag = function (content) {
1553
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1554
+ };
1555
+
1556
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1557
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1558
+ activeXDocument.write(scriptTag(''));
1559
+ activeXDocument.close();
1560
+ var temp = activeXDocument.parentWindow.Object;
1561
+ activeXDocument = null; // avoid memory leak
1562
+ return temp;
1563
+ };
1564
+
1565
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1566
+ var NullProtoObjectViaIFrame = function () {
1567
+ // Thrash, waste and sodomy: IE GC bug
1568
+ var iframe = documentCreateElement('iframe');
1569
+ var JS = 'java' + SCRIPT + ':';
1570
+ var iframeDocument;
1571
+ iframe.style.display = 'none';
1572
+ html.appendChild(iframe);
1573
+ // https://github.com/zloirock/core-js/issues/475
1574
+ iframe.src = String(JS);
1575
+ iframeDocument = iframe.contentWindow.document;
1576
+ iframeDocument.open();
1577
+ iframeDocument.write(scriptTag('document.F=Object'));
1578
+ iframeDocument.close();
1579
+ return iframeDocument.F;
1580
+ };
1581
+
1582
+ // Check for document.domain and active x support
1583
+ // No need to use active x approach when document.domain is not set
1584
+ // see https://github.com/es-shims/es5-shim/issues/150
1585
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1586
+ // avoid IE GC bug
1587
+ var activeXDocument;
1588
+ var NullProtoObject = function () {
1589
+ try {
1590
+ activeXDocument = new ActiveXObject('htmlfile');
1591
+ } catch (error) { /* ignore */ }
1592
+ NullProtoObject = typeof document != 'undefined'
1593
+ ? document.domain && activeXDocument
1594
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1595
+ : NullProtoObjectViaIFrame()
1596
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1597
+ var length = enumBugKeys.length;
1598
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1599
+ return NullProtoObject();
1600
+ };
1601
+
1602
+ hiddenKeys[IE_PROTO] = true;
1603
+
1604
+ // `Object.create` method
1605
+ // https://tc39.es/ecma262/#sec-object.create
1606
+ var objectCreate = Object.create || function create(O, Properties) {
1607
+ var result;
1608
+ if (O !== null) {
1609
+ EmptyConstructor[PROTOTYPE] = anObject(O);
1610
+ result = new EmptyConstructor();
1611
+ EmptyConstructor[PROTOTYPE] = null;
1612
+ // add "__proto__" for Object.getPrototypeOf polyfill
1613
+ result[IE_PROTO] = O;
1614
+ } else result = NullProtoObject();
1615
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1616
+ };
1617
+
1618
+ var wellKnownSymbol = wellKnownSymbol$5;
1619
+ var create = objectCreate;
1620
+ var definePropertyModule = objectDefineProperty;
1621
+
1622
+ var UNSCOPABLES = wellKnownSymbol('unscopables');
1623
+ var ArrayPrototype = Array.prototype;
1624
+
1625
+ // Array.prototype[@@unscopables]
1626
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1627
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
1628
+ definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
1629
+ configurable: true,
1630
+ value: create(null)
1631
+ });
1632
+ }
1633
+
1634
+ // add a key to Array.prototype[@@unscopables]
1635
+ var addToUnscopables$1 = function (key) {
1636
+ ArrayPrototype[UNSCOPABLES][key] = true;
1637
+ };
1638
+
1639
+ 'use strict';
1640
+ var $ = _export;
1641
+ var $includes = arrayIncludes.includes;
1642
+ var addToUnscopables = addToUnscopables$1;
1643
+
1644
+ // `Array.prototype.includes` method
1645
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
1646
+ $({ target: 'Array', proto: true }, {
1647
+ includes: function includes(el /* , fromIndex = 0 */) {
1648
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1649
+ }
1650
+ });
1651
+
1652
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1653
+ addToUnscopables('includes');
1654
+
1655
+ var script = defineComponent({
1656
+ name: 'FwButton',
1657
+ emits: ['click', 'mouseover', 'mouseout', 'focusin', 'focusout'],
1658
+ props: {
1659
+ /**
1660
+ * A `router-link` path or object
1661
+ */
1662
+ to: {
1663
+ type: [String, Object]
1664
+ },
1665
+
1666
+ /**
1667
+ * A URL to link to using a native anchor element
1668
+ */
1669
+ href: String,
1670
+
1671
+ /**
1672
+ * The size of the button. Accepts: 'sm', 'md', 'lg', 'xl', '2xl'
1673
+ */
1674
+ size: {
1675
+ type: String,
1676
+ "default": 'lg',
1677
+ validator: function validator(value) {
1678
+ return ['sm', 'md', 'lg', 'xl', '2xl'].includes(value);
1679
+ }
1680
+ },
1681
+
1682
+ /**
1683
+ * The colour variant of the button.
1684
+ * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
1685
+ */
1686
+ variant: {
1687
+ type: String,
1688
+ "default": 'primary',
1689
+ validator: function validator(value) {
1690
+ return ['primary', 'secondary', 'tertiary', 'error', 'success'].includes(value);
1691
+ }
1692
+ }
1693
+ },
1694
+ setup: function setup(props, ctx) {
1695
+ var buttonClasses = ref({
1696
+ primary: {
1697
+ text: 'text-tertiary hover:text-primary active:text-primary',
1698
+ background: 'bg-primary hover:bg-tertiary active:bg-tertiary',
1699
+ border: 'border-primary focus:ring-primary'
1700
+ },
1701
+ secondary: {
1702
+ text: 'text-secondary hover:text-tertiary active:text-tertiary',
1703
+ background: 'bg-tertiary hover:bg-secondary active:bg-secondary',
1704
+ border: 'border-secondary focus:ring-secondary'
1705
+ },
1706
+ tertiary: {
1707
+ text: 'text-tertiary hover:text-secondary active:text-secondary',
1708
+ background: 'bg-secondary hover:bg-tertiary active:bg-tertiary',
1709
+ border: 'border-tertiary focus:ring-tertiary'
1710
+ },
1711
+ success: {
1712
+ text: 'text-white hover:text-success active:text-success',
1713
+ background: 'bg-success hover:bg-white active:bg-white',
1714
+ border: 'border-success focus:ring-success'
1715
+ },
1716
+ error: {
1717
+ text: 'text-white hover:text-error active:text-error',
1718
+ background: 'bg-error hover:bg-white active:bg-white',
1719
+ border: 'border-error focus:ring-error'
1720
+ }
1721
+ });
1722
+ var sizes = ref({
1723
+ sm: 'px-16 py-0.5 text-sm leading-tight',
1724
+ md: 'px-24 py-1 text-md leading-tight',
1725
+ lg: 'px-32 py-1.5 text-lg leading-tight',
1726
+ xl: 'px-40 py-2 text-xl leading-none',
1727
+ '2xl': 'px-48 py-3 text-2xl leading-normal'
1728
+ });
1729
+ var textColorClass = computed(function () {
1730
+ return buttonClasses.value[props.variant].text;
1731
+ });
1732
+ var bgColorClass = computed(function () {
1733
+ return buttonClasses.value[props.variant].background;
1734
+ });
1735
+ var sizeClass = computed(function () {
1736
+ return sizes.value[props.size];
1737
+ });
1738
+ var borderClass = computed(function () {
1739
+ return buttonClasses.value[props.variant].border;
1740
+ });
1741
+ /**
1742
+ * @event Click - Native click
1743
+ */
1744
+
1745
+ var onClick = function onClick(e) {
1746
+ return ctx.emit('click', e);
1747
+ };
1748
+ /**
1749
+ * @event mouseover - Native hover
1750
+ */
1751
+
1752
+
1753
+ var onMouseover = function onMouseover(e) {
1754
+ return ctx.emit('mouseover', e);
1755
+ };
1756
+ /**
1757
+ * @event mouseout - Native hover out
1758
+ */
1759
+
1760
+
1761
+ var onMouseout = function onMouseout(e) {
1762
+ return ctx.emit('mouseout', e);
1763
+ };
1764
+ /**
1765
+ * @event focusin - Native focusin
1766
+ */
1767
+
1768
+
1769
+ var onFocusin = function onFocusin(e) {
1770
+ return ctx.emit('focusin', e);
1771
+ };
1772
+ /**
1773
+ * @event focusout - Native focusout
1774
+ */
1775
+
1776
+
1777
+ var onFocusout = function onFocusout(e) {
1778
+ return ctx.emit('focusout', e);
1779
+ };
1780
+
1781
+ return {
1782
+ textColorClass: textColorClass,
1783
+ bgColorClass: bgColorClass,
1784
+ sizeClass: sizeClass,
1785
+ borderClass: borderClass,
1786
+ onClick: onClick,
1787
+ onMouseover: onMouseover,
1788
+ onMouseout: onMouseout,
1789
+ onFocusin: onFocusin,
1790
+ onFocusout: onFocusout
1791
+ };
1792
+ }
1793
+ });
1794
+
1795
+ var _hoisted_1 = ["to", "href"];
1499
1796
  function render(_ctx, _cache, $props, $setup, $data, $options) {
1500
- return openBlock(), createElementBlock("div", _hoisted_1, [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_2, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)]);
1797
+ return openBlock(), createElementBlock("button", {
1798
+ "class": normalizeClass(["fw-button rounded-full border-2 focus:outline-none ring-offset-2 focus:ring", [_ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass]]),
1799
+ to: _ctx.to,
1800
+ href: _ctx.href,
1801
+ onClick: _cache[0] || (_cache[0] = function () {
1802
+ return _ctx.onClick && _ctx.onClick.apply(_ctx, arguments);
1803
+ }),
1804
+ onFocusin: _cache[1] || (_cache[1] = function () {
1805
+ return _ctx.onFocusin && _ctx.onFocusin.apply(_ctx, arguments);
1806
+ }),
1807
+ onFocusout: _cache[2] || (_cache[2] = function () {
1808
+ return _ctx.onFocusout && _ctx.onFocusout.apply(_ctx, arguments);
1809
+ }),
1810
+ onMouseover: _cache[3] || (_cache[3] = function () {
1811
+ return _ctx.onMouseover && _ctx.onMouseover.apply(_ctx, arguments);
1812
+ }),
1813
+ onMouseout: _cache[4] || (_cache[4] = function () {
1814
+ return _ctx.onMouseout && _ctx.onMouseout.apply(_ctx, arguments);
1815
+ })
1816
+ }, [renderSlot(_ctx.$slots, "default")], 42, _hoisted_1);
1501
1817
  }
1502
1818
 
1503
1819
  script.render = render;
1504
1820
 
1505
1821
  var components = /*#__PURE__*/Object.freeze({
1506
1822
  __proto__: null,
1507
- FwCard: script
1823
+ FwCard: script$1,
1824
+ FwButton: script
1508
1825
  });
1509
1826
 
1510
1827
  var install = function install(app) {
@@ -1517,4 +1834,4 @@ var install = function install(app) {
1517
1834
  });
1518
1835
  };
1519
1836
 
1520
- export { script as FwCard, install as default };
1837
+ export { script as FwButton, script$1 as FwCard, install as default };