@frollo/frollo-web-ui 0.1.2 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/cjs/index.js +282 -212
  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-card.js +1 -1
  11. package/esm/fw-checkbox.js +2 -2
  12. package/esm/fw-input.js +5 -4
  13. package/esm/fw-modal.js +6 -5
  14. package/esm/fw-navigation-menu.js +12 -67
  15. package/esm/fw-tabs.js +5 -4
  16. package/esm/{index-963039a3.js → index-59d76908.js} +2 -2
  17. package/esm/{index-5ee56f7d.js → index-dd50b12a.js} +31 -219
  18. package/esm/index.js +19 -14
  19. package/esm/is-forced-3323c994.js +438 -0
  20. package/frollo-web-ui.esm.js +307 -229
  21. package/index.d.ts +64 -16
  22. package/package.json +1 -1
  23. package/types/components/fw-animations/fw-email-pulse.vue.d.ts +24 -0
  24. package/types/components/fw-animations/fw-success-pulse.vue.d.ts +24 -0
  25. package/types/components/fw-animations/index.d.ts +3 -0
  26. package/types/components/fw-button/index.types.d.ts +1 -9
  27. package/types/components/fw-input/index.types.d.ts +1 -4
  28. package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +0 -2
  29. package/types/components/fw-tabs/fw-tab.vue.d.ts +11 -0
  30. package/types/components/fw-tabs/fw-tabs.vue.d.ts +1 -1
  31. package/types/components/index.d.ts +1 -0
  32. package/esm/add-to-unscopables-81c17489.js +0 -673
  33. package/esm/to-string-139f1ee8.js +0 -52
package/esm/fw-card.js CHANGED
@@ -64,7 +64,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
64
64
  to: _ctx.to ? _ctx.to : null,
65
65
  href: _ctx.href ? _ctx.href : null,
66
66
  tabindex: _ctx.to ? 0 : null,
67
- "class": normalizeClass(["fw-card shadow-card rounded-lg", _ctx.to || _ctx.href ? _ctx.linkClass : ''])
67
+ "class": normalizeClass(["fw-card shadow-card rounded-lg", _ctx.to || _ctx.href || !!_ctx.$attrs.onClick ? _ctx.linkClass : ''])
68
68
  }, {
69
69
  "default": withCtx(function () {
70
70
  return [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_1, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)];
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, mergeProps, createCommentVNode, Transition, toDisplayString } from 'vue';
2
2
  import { a as Field } from './vee-validate.esm-b64acab1.js';
3
- import './es.function.name-e746680f.js';
3
+ import './es.function.name-3a9c8706.js';
4
4
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
5
- import './function-name-f0c1223e.js';
5
+ import './function-name-3bda6320.js';
6
6
 
7
7
  var script = defineComponent({
8
8
  name: 'FwCheckbox',
package/esm/fw-input.js CHANGED
@@ -1,10 +1,11 @@
1
- import './es.array.includes-debcb50f.js';
1
+ import './es.array.includes-33e186c4.js';
2
2
  import { defineComponent, ref, computed, createElementVNode, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, toDisplayString, createCommentVNode, renderSlot, mergeProps, Transition, normalizeClass } from 'vue';
3
3
  import { a as Field } from './vee-validate.esm-b64acab1.js';
4
- import './es.function.name-e746680f.js';
4
+ import './es.function.name-3a9c8706.js';
5
5
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
6
- import './function-name-f0c1223e.js';
7
- import './add-to-unscopables-81c17489.js';
6
+ import './function-name-3bda6320.js';
7
+ import './add-to-unscopables-82352072.js';
8
+ import './is-forced-3323c994.js';
8
9
 
9
10
  var script = defineComponent({
10
11
  name: 'FwInput',
package/esm/fw-modal.js CHANGED
@@ -1,7 +1,8 @@
1
- export { s as FwModal } from './index-963039a3.js';
2
- import './es.array.includes-debcb50f.js';
3
- import './function-name-f0c1223e.js';
4
- import './add-to-unscopables-81c17489.js';
1
+ export { s as FwModal } from './index-59d76908.js';
2
+ import './es.array.includes-33e186c4.js';
3
+ import './function-name-3bda6320.js';
4
+ import './add-to-unscopables-82352072.js';
5
+ import './is-forced-3323c994.js';
5
6
  import 'vue';
6
- import './fw-button-ab906734.js';
7
+ import './fw-button-22301a2f.js';
7
8
  import './style-inject.es-1f59c1d0.js';
@@ -1,64 +1,10 @@
1
1
  import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition, normalizeClass } from 'vue';
2
- import { s as script$1 } from './fw-button-ab906734.js';
3
- import { b as functionUncurryThis, r as requireObjectCoercible$1, f as fails$1 } from './function-name-f0c1223e.js';
4
- import { _ as _export } from './add-to-unscopables-81c17489.js';
5
- import { a as toString$1 } from './to-string-139f1ee8.js';
2
+ import { s as script$1 } from './fw-button-22301a2f.js';
6
3
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
- import './es.array.includes-debcb50f.js';
8
-
9
- var es_string_link = {};
10
-
11
- var uncurryThis = functionUncurryThis;
12
- var requireObjectCoercible = requireObjectCoercible$1;
13
- var toString = toString$1;
14
-
15
- var quot = /"/g;
16
- var replace = uncurryThis(''.replace);
17
-
18
- // `CreateHTML` abstract operation
19
- // https://tc39.es/ecma262/#sec-createhtml
20
- var createHtml = function (string, tag, attribute, value) {
21
- var S = toString(requireObjectCoercible(string));
22
- var p1 = '<' + tag;
23
- if (attribute !== '') p1 += ' ' + attribute + '="' + replace(toString(value), quot, '&quot;') + '"';
24
- return p1 + '>' + S + '</' + tag + '>';
25
- };
26
-
27
- var fails = fails$1;
28
-
29
- // check the existence of a method, lowercase
30
- // of a tag and escaping quotes in arguments
31
- var stringHtmlForced = function (METHOD_NAME) {
32
- return fails(function () {
33
- var test = ''[METHOD_NAME]('"');
34
- return test !== test.toLowerCase() || test.split('"').length > 3;
35
- });
36
- };
37
-
38
- 'use strict';
39
- var $ = _export;
40
- var createHTML = createHtml;
41
- var forcedStringHTMLMethod = stringHtmlForced;
42
-
43
- // `String.prototype.link` method
44
- // https://tc39.es/ecma262/#sec-string.prototype.link
45
- $({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, {
46
- link: function link(url) {
47
- return createHTML(this, 'a', 'href', url);
48
- }
49
- });
50
-
51
- var ButtonVariantName;
52
-
53
- (function (ButtonVariantName) {
54
- ButtonVariantName["primary"] = "primary";
55
- ButtonVariantName["secondary"] = "secondary";
56
- ButtonVariantName["tertiary"] = "tertiary";
57
- ButtonVariantName["error"] = "error";
58
- ButtonVariantName["success"] = "success";
59
- ButtonVariantName["text"] = "text";
60
- ButtonVariantName["link"] = "link";
61
- })(ButtonVariantName || (ButtonVariantName = {}));
4
+ import './es.array.includes-33e186c4.js';
5
+ import './function-name-3bda6320.js';
6
+ import './add-to-unscopables-82352072.js';
7
+ import './is-forced-3323c994.js';
62
8
 
63
9
  var script = defineComponent({
64
10
  name: 'FwNavigationMenu',
@@ -100,8 +46,7 @@ var script = defineComponent({
100
46
  mobileMenuClass: mobileMenuClass,
101
47
  isMobileMenuOpen: isMobileMenuOpen,
102
48
  toggleMobileMenu: toggleMobileMenu,
103
- actionClicked: actionClicked,
104
- ButtonVariantName: ButtonVariantName
49
+ actionClicked: actionClicked
105
50
  };
106
51
  }
107
52
  });
@@ -155,7 +100,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
155
100
  return openBlock(), createElementBlock("nav", _hoisted_1, [createElementVNode("div", _hoisted_2, [_ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("", true), _ctx.menuItems && ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
156
101
  return openBlock(), createBlock(_component_FwButton, {
157
102
  key: i,
158
- variant: _ctx.ButtonVariantName.text,
103
+ variant: "text",
159
104
  href: item.href,
160
105
  to: item.to,
161
106
  size: "md",
@@ -165,7 +110,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
165
110
  return [createTextVNode(toDisplayString(item.label), 1)];
166
111
  }),
167
112
  _: 2
168
- }, 1032, ["variant", "href", "to"]);
113
+ }, 1032, ["href", "to"]);
169
114
  }), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(_component_FwButton, {
170
115
  onClick: _ctx.actionClicked,
171
116
  size: "md",
@@ -176,7 +121,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
176
121
  }),
177
122
  _: 1
178
123
  }, 8, ["onClick", "aria-label"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7, [createVNode(_component_FwButton, {
179
- variant: _ctx.ButtonVariantName.text,
124
+ variant: "text",
180
125
  size: "sm",
181
126
  onClick: _ctx.toggleMobileMenu
182
127
  }, {
@@ -189,7 +134,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
189
134
  }, null, 8, _hoisted_10)]))];
190
135
  }),
191
136
  _: 1
192
- }, 8, ["variant", "onClick"])])]), createVNode(Transition, {
137
+ }, 8, ["onClick"])])]), createVNode(Transition, {
193
138
  name: "slideInLeft"
194
139
  }, {
195
140
  "default": withCtx(function () {
@@ -200,7 +145,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
200
145
  return openBlock(), createBlock(_component_FwButton, {
201
146
  key: i,
202
147
  "class": "w-full rounded-md",
203
- variant: _ctx.ButtonVariantName.text,
148
+ variant: "text",
204
149
  href: item.href,
205
150
  to: item.to,
206
151
  size: "md",
@@ -210,7 +155,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
210
155
  return [createTextVNode(toDisplayString(item.label), 1)];
211
156
  }),
212
157
  _: 2
213
- }, 1032, ["variant", "href", "to"]);
158
+ }, 1032, ["href", "to"]);
214
159
  }), 128))]), _ctx.actionLabel ? (openBlock(), createBlock(_component_FwButton, {
215
160
  key: 0,
216
161
  "class": "w-full rounded-md",
package/esm/fw-tabs.js CHANGED
@@ -1,5 +1,6 @@
1
- export { b as FwTab, s as FwTabs } from './index-5ee56f7d.js';
2
- import './function-name-f0c1223e.js';
3
- import './add-to-unscopables-81c17489.js';
4
- import './to-string-139f1ee8.js';
1
+ export { b as FwTab, s as FwTabs } from './index-dd50b12a.js';
2
+ import './es.number.constructor-f646730f.js';
3
+ import './function-name-3bda6320.js';
4
+ import './is-forced-3323c994.js';
5
5
  import 'vue';
6
+ import './add-to-unscopables-82352072.js';
@@ -1,6 +1,6 @@
1
- import './es.array.includes-debcb50f.js';
1
+ import './es.array.includes-33e186c4.js';
2
2
  import { defineComponent, pushScopeId, popScopeId, resolveComponent, openBlock, createBlock, Transition, withCtx, createElementVNode, createElementBlock, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from 'vue';
3
- import { s as script$1 } from './fw-button-ab906734.js';
3
+ import { s as script$1 } from './fw-button-22301a2f.js';
4
4
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
5
5
 
6
6
  /** Detect free variable `global` from Node.js. */
@@ -1,13 +1,14 @@
1
- import { b as functionUncurryThis, h as aCallable$1, c as functionBindNative, f as fails$2, i as isCallable$3, j as getBuiltIn$1, k as isObject$2, w as wellKnownSymbol$1, 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, 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 { c as classof$2, a as toString$1 } from './to-string-139f1ee8.js';
1
+ import { c as classof$2 } from './es.number.constructor-f646730f.js';
4
2
  import { defineComponent, computed, ref, provide, openBlock, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, renderSlot, getCurrentInstance, inject, watchEffect } from 'vue';
3
+ import { b as functionUncurryThis, h as aCallable$1, c as functionBindNative, f as fails$1, i as isCallable$1, j as getBuiltIn$1, k as isObject$1, w as wellKnownSymbol$1, t as toObject$1 } from './function-name-3bda6320.js';
4
+ import { _ as _export, a as addToUnscopables$1 } from './add-to-unscopables-82352072.js';
5
+ import { a as classofRaw, i as inspectSource$1, b as indexedObject, l as lengthOfArrayLike$1 } from './is-forced-3323c994.js';
5
6
 
6
- var uncurryThis$6 = functionUncurryThis;
7
+ var uncurryThis$2 = functionUncurryThis;
7
8
  var aCallable = aCallable$1;
8
9
  var NATIVE_BIND = functionBindNative;
9
10
 
10
- var bind$1 = uncurryThis$6(uncurryThis$6.bind);
11
+ var bind$1 = uncurryThis$2(uncurryThis$2.bind);
11
12
 
12
13
  // optional / simple context binding
13
14
  var functionBindContext = function (fn, that) {
@@ -26,9 +27,9 @@ var isArray$1 = Array.isArray || function isArray(argument) {
26
27
  return classof$1(argument) == 'Array';
27
28
  };
28
29
 
29
- var uncurryThis$5 = functionUncurryThis;
30
- var fails$1 = fails$2;
31
- var isCallable$2 = isCallable$3;
30
+ var uncurryThis$1 = functionUncurryThis;
31
+ var fails = fails$1;
32
+ var isCallable = isCallable$1;
32
33
  var classof = classof$2;
33
34
  var getBuiltIn = getBuiltIn$1;
34
35
  var inspectSource = inspectSource$1;
@@ -37,11 +38,11 @@ var noop = function () { /* empty */ };
37
38
  var empty = [];
38
39
  var construct = getBuiltIn('Reflect', 'construct');
39
40
  var constructorRegExp = /^\s*(?:class|function)\b/;
40
- var exec = uncurryThis$5(constructorRegExp.exec);
41
+ var exec = uncurryThis$1(constructorRegExp.exec);
41
42
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
42
43
 
43
44
  var isConstructorModern = function isConstructor(argument) {
44
- if (!isCallable$2(argument)) return false;
45
+ if (!isCallable(argument)) return false;
45
46
  try {
46
47
  construct(noop, empty, argument);
47
48
  return true;
@@ -51,7 +52,7 @@ var isConstructorModern = function isConstructor(argument) {
51
52
  };
52
53
 
53
54
  var isConstructorLegacy = function isConstructor(argument) {
54
- if (!isCallable$2(argument)) return false;
55
+ if (!isCallable(argument)) return false;
55
56
  switch (classof(argument)) {
56
57
  case 'AsyncFunction':
57
58
  case 'GeneratorFunction':
@@ -71,7 +72,7 @@ isConstructorLegacy.sham = true;
71
72
 
72
73
  // `IsConstructor` abstract operation
73
74
  // https://tc39.es/ecma262/#sec-isconstructor
74
- var isConstructor$1 = !construct || fails$1(function () {
75
+ var isConstructor$1 = !construct || fails(function () {
75
76
  var called;
76
77
  return isConstructorModern(isConstructorModern.call)
77
78
  || !isConstructorModern(Object)
@@ -81,7 +82,7 @@ var isConstructor$1 = !construct || fails$1(function () {
81
82
 
82
83
  var isArray = isArray$1;
83
84
  var isConstructor = isConstructor$1;
84
- var isObject$1 = isObject$2;
85
+ var isObject = isObject$1;
85
86
  var wellKnownSymbol = wellKnownSymbol$1;
86
87
 
87
88
  var SPECIES = wellKnownSymbol('species');
@@ -95,7 +96,7 @@ var arraySpeciesConstructor$1 = function (originalArray) {
95
96
  C = originalArray.constructor;
96
97
  // cross-realm fallback
97
98
  if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
98
- else if (isObject$1(C)) {
99
+ else if (isObject(C)) {
99
100
  C = C[SPECIES];
100
101
  if (C === null) C = undefined;
101
102
  }
@@ -111,16 +112,16 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
111
112
  };
112
113
 
113
114
  var bind = functionBindContext;
114
- var uncurryThis$4 = functionUncurryThis;
115
+ var uncurryThis = functionUncurryThis;
115
116
  var IndexedObject = indexedObject;
116
117
  var toObject = toObject$1;
117
118
  var lengthOfArrayLike = lengthOfArrayLike$1;
118
119
  var arraySpeciesCreate = arraySpeciesCreate$1;
119
120
 
120
- var push = uncurryThis$4([].push);
121
+ var push = uncurryThis([].push);
121
122
 
122
123
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
123
- var createMethod$1 = function (TYPE) {
124
+ var createMethod = function (TYPE) {
124
125
  var IS_MAP = TYPE == 1;
125
126
  var IS_FILTER = TYPE == 2;
126
127
  var IS_SOME = TYPE == 3;
@@ -160,221 +161,30 @@ var createMethod$1 = function (TYPE) {
160
161
  var arrayIteration = {
161
162
  // `Array.prototype.forEach` method
162
163
  // https://tc39.es/ecma262/#sec-array.prototype.foreach
163
- forEach: createMethod$1(0),
164
+ forEach: createMethod(0),
164
165
  // `Array.prototype.map` method
165
166
  // https://tc39.es/ecma262/#sec-array.prototype.map
166
- map: createMethod$1(1),
167
+ map: createMethod(1),
167
168
  // `Array.prototype.filter` method
168
169
  // https://tc39.es/ecma262/#sec-array.prototype.filter
169
- filter: createMethod$1(2),
170
+ filter: createMethod(2),
170
171
  // `Array.prototype.some` method
171
172
  // https://tc39.es/ecma262/#sec-array.prototype.some
172
- some: createMethod$1(3),
173
+ some: createMethod(3),
173
174
  // `Array.prototype.every` method
174
175
  // https://tc39.es/ecma262/#sec-array.prototype.every
175
- every: createMethod$1(4),
176
+ every: createMethod(4),
176
177
  // `Array.prototype.find` method
177
178
  // https://tc39.es/ecma262/#sec-array.prototype.find
178
- find: createMethod$1(5),
179
+ find: createMethod(5),
179
180
  // `Array.prototype.findIndex` method
180
181
  // https://tc39.es/ecma262/#sec-array.prototype.findIndex
181
- findIndex: createMethod$1(6),
182
+ findIndex: createMethod(6),
182
183
  // `Array.prototype.filterReject` method
183
184
  // https://github.com/tc39/proposal-array-filtering
184
- filterReject: createMethod$1(7)
185
+ filterReject: createMethod(7)
185
186
  };
186
187
 
187
- var es_number_constructor = {};
188
-
189
- var isCallable$1 = isCallable$3;
190
-
191
- var $String = String;
192
- var $TypeError = TypeError;
193
-
194
- var aPossiblePrototype$1 = function (argument) {
195
- if (typeof argument == 'object' || isCallable$1(argument)) return argument;
196
- throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
197
- };
198
-
199
- /* eslint-disable no-proto -- safe */
200
-
201
- var uncurryThis$3 = functionUncurryThis;
202
- var anObject = anObject$1;
203
- var aPossiblePrototype = aPossiblePrototype$1;
204
-
205
- // `Object.setPrototypeOf` method
206
- // https://tc39.es/ecma262/#sec-object.setprototypeof
207
- // Works with __proto__ only. Old v8 can't work with null proto objects.
208
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
209
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
210
- var CORRECT_SETTER = false;
211
- var test = {};
212
- var setter;
213
- try {
214
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
215
- setter = uncurryThis$3(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
216
- setter(test, []);
217
- CORRECT_SETTER = test instanceof Array;
218
- } catch (error) { /* empty */ }
219
- return function setPrototypeOf(O, proto) {
220
- anObject(O);
221
- aPossiblePrototype(proto);
222
- if (CORRECT_SETTER) setter(O, proto);
223
- else O.__proto__ = proto;
224
- return O;
225
- };
226
- }() : undefined);
227
-
228
- var isCallable = isCallable$3;
229
- var isObject = isObject$2;
230
- var setPrototypeOf = objectSetPrototypeOf;
231
-
232
- // makes subclassing work correct for wrapped built-ins
233
- var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
234
- var NewTarget, NewTargetPrototype;
235
- if (
236
- // it can work only with native `setPrototypeOf`
237
- setPrototypeOf &&
238
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
239
- isCallable(NewTarget = dummy.constructor) &&
240
- NewTarget !== Wrapper &&
241
- isObject(NewTargetPrototype = NewTarget.prototype) &&
242
- NewTargetPrototype !== Wrapper.prototype
243
- ) setPrototypeOf($this, NewTargetPrototype);
244
- return $this;
245
- };
246
-
247
- var uncurryThis$2 = functionUncurryThis;
248
-
249
- // `thisNumberValue` abstract operation
250
- // https://tc39.es/ecma262/#sec-thisnumbervalue
251
- var thisNumberValue$1 = uncurryThis$2(1.0.valueOf);
252
-
253
- // a string of all valid unicode whitespaces
254
- var whitespaces$1 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
255
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
256
-
257
- var uncurryThis$1 = functionUncurryThis;
258
- var requireObjectCoercible = requireObjectCoercible$1;
259
- var toString = toString$1;
260
- var whitespaces = whitespaces$1;
261
-
262
- var replace = uncurryThis$1(''.replace);
263
- var whitespace = '[' + whitespaces + ']';
264
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
265
- var rtrim = RegExp(whitespace + whitespace + '*$');
266
-
267
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
268
- var createMethod = function (TYPE) {
269
- return function ($this) {
270
- var string = toString(requireObjectCoercible($this));
271
- if (TYPE & 1) string = replace(string, ltrim, '');
272
- if (TYPE & 2) string = replace(string, rtrim, '');
273
- return string;
274
- };
275
- };
276
-
277
- var stringTrim = {
278
- // `String.prototype.{ trimLeft, trimStart }` methods
279
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
280
- start: createMethod(1),
281
- // `String.prototype.{ trimRight, trimEnd }` methods
282
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
283
- end: createMethod(2),
284
- // `String.prototype.trim` method
285
- // https://tc39.es/ecma262/#sec-string.prototype.trim
286
- trim: createMethod(3)
287
- };
288
-
289
- 'use strict';
290
- var DESCRIPTORS = descriptors;
291
- var global = global$1;
292
- var uncurryThis = functionUncurryThis;
293
- var isForced = isForced_1;
294
- var defineBuiltIn = defineBuiltIn$1;
295
- var hasOwn = hasOwnProperty_1;
296
- var inheritIfRequired = inheritIfRequired$1;
297
- var isPrototypeOf = objectIsPrototypeOf;
298
- var isSymbol = isSymbol$1;
299
- var toPrimitive = toPrimitive$1;
300
- var fails = fails$2;
301
- var getOwnPropertyNames = objectGetOwnPropertyNames.f;
302
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
303
- var defineProperty = objectDefineProperty.f;
304
- var thisNumberValue = thisNumberValue$1;
305
- var trim = stringTrim.trim;
306
-
307
- var NUMBER = 'Number';
308
- var NativeNumber = global[NUMBER];
309
- var NumberPrototype = NativeNumber.prototype;
310
- var TypeError$1 = global.TypeError;
311
- var arraySlice = uncurryThis(''.slice);
312
- var charCodeAt = uncurryThis(''.charCodeAt);
313
-
314
- // `ToNumeric` abstract operation
315
- // https://tc39.es/ecma262/#sec-tonumeric
316
- var toNumeric = function (value) {
317
- var primValue = toPrimitive(value, 'number');
318
- return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
319
- };
320
-
321
- // `ToNumber` abstract operation
322
- // https://tc39.es/ecma262/#sec-tonumber
323
- var toNumber = function (argument) {
324
- var it = toPrimitive(argument, 'number');
325
- var first, third, radix, maxCode, digits, length, index, code;
326
- if (isSymbol(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
327
- if (typeof it == 'string' && it.length > 2) {
328
- it = trim(it);
329
- first = charCodeAt(it, 0);
330
- if (first === 43 || first === 45) {
331
- third = charCodeAt(it, 2);
332
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
333
- } else if (first === 48) {
334
- switch (charCodeAt(it, 1)) {
335
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
336
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
337
- default: return +it;
338
- }
339
- digits = arraySlice(it, 2);
340
- length = digits.length;
341
- for (index = 0; index < length; index++) {
342
- code = charCodeAt(digits, index);
343
- // parseInt parses a string to a first unavailable symbol
344
- // but ToNumber should return NaN if a string contains unavailable symbols
345
- if (code < 48 || code > maxCode) return NaN;
346
- } return parseInt(digits, radix);
347
- }
348
- } return +it;
349
- };
350
-
351
- // `Number` constructor
352
- // https://tc39.es/ecma262/#sec-number-constructor
353
- if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
354
- var NumberWrapper = function Number(value) {
355
- var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
356
- var dummy = this;
357
- // check on 1..constructor(foo) case
358
- return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
359
- ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
360
- };
361
- for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
362
- // ES3:
363
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
364
- // ES2015 (in case, if modules with ES2015 Number statics required before):
365
- 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
366
- // ESNext
367
- 'fromString,range'
368
- ).split(','), j = 0, key; keys.length > j; j++) {
369
- if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {
370
- defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
371
- }
372
- }
373
- NumberWrapper.prototype = NumberPrototype;
374
- NumberPrototype.constructor = NumberWrapper;
375
- defineBuiltIn(global, NUMBER, NumberWrapper, { constructor: true });
376
- }
377
-
378
188
  var script$1 = defineComponent({
379
189
  name: 'FwTabs',
380
190
  emits: ['update:modelValue'],
@@ -391,7 +201,8 @@ var script$1 = defineComponent({
391
201
  var active = computed(function () {
392
202
  return props.modelValue;
393
203
  });
394
- var tabs = ref([]);
204
+ var tabs = ref();
205
+ tabs.value = [];
395
206
 
396
207
  var selectTab = function selectTab(tab) {
397
208
  ctx.emit('update:modelValue', tab);
@@ -469,7 +280,7 @@ var script = defineComponent({
469
280
  required: true
470
281
  }
471
282
  },
472
- setup: function setup() {
283
+ setup: function setup(props) {
473
284
  var instance = getCurrentInstance();
474
285
 
475
286
  var _ref = inject('tabsState') || {
@@ -496,7 +307,8 @@ var script = defineComponent({
496
307
  });
497
308
  return {
498
309
  isActive: isActive,
499
- index: index
310
+ index: index,
311
+ props: props
500
312
  };
501
313
  }
502
314
  });
package/esm/index.js CHANGED
@@ -1,8 +1,9 @@
1
- import { f as fails$1, d as documentCreateElement$1, g as global$4, a as descriptors, b as functionUncurryThis, c as functionBindNative, i as isCallable$1, e as engineUserAgent } from './function-name-f0c1223e.js';
2
- import { _ as _export, d as defineBuiltIn$1, c as createNonEnumerableProperty$1, o as objectKeys$1, t as toIndexedObject$1, a as objectPropertyIsEnumerable } from './add-to-unscopables-81c17489.js';
3
- import { a as arrayIteration, s as script$5, b as script$6 } from './index-5ee56f7d.js';
4
- export { b as FwTab, s as FwTabs } from './index-5ee56f7d.js';
5
- import { t as toStringTagSupport, c as classof$1 } from './to-string-139f1ee8.js';
1
+ import { f as fails$1, d as documentCreateElement$1, g as global$4, a as descriptors, b as functionUncurryThis, c as functionBindNative, i as isCallable$1, e as engineUserAgent } from './function-name-3bda6320.js';
2
+ import { _ as _export, o as objectKeys$1 } from './add-to-unscopables-82352072.js';
3
+ import { a as arrayIteration, s as script$5, b as script$6 } from './index-dd50b12a.js';
4
+ export { b as FwTab, s as FwTabs } from './index-dd50b12a.js';
5
+ import { t as toStringTagSupport, c as classof$1 } from './es.number.constructor-f646730f.js';
6
+ import { d as defineBuiltIn$1, c as createNonEnumerableProperty$1, t as toIndexedObject$1, o as objectPropertyIsEnumerable } from './is-forced-3323c994.js';
6
7
  import './fw-form.js';
7
8
  import { FwInput as script } from './fw-input.js';
8
9
  export { FwInput } from './fw-input.js';
@@ -13,15 +14,17 @@ export { FwCard } from './fw-card.js';
13
14
  import './fw-button.js';
14
15
  import { FwNavigationMenu as script$4 } from './fw-navigation-menu.js';
15
16
  export { FwNavigationMenu } from './fw-navigation-menu.js';
16
- import { s as script$7, u as uniqueId } from './index-963039a3.js';
17
- export { s as FwModal } from './index-963039a3.js';
17
+ import { s as script$7, u as uniqueId } from './index-59d76908.js';
18
+ export { s as FwModal } from './index-59d76908.js';
19
+ import { FwEmailPulse as __default__, FwSuccessPulse as __default__$1 } from './fw-animations.js';
20
+ export { FwEmailPulse, FwSuccessPulse } from './fw-animations.js';
18
21
  import { F as Form } from './vee-validate.esm-b64acab1.js';
19
22
  export { F as FwForm } from './vee-validate.esm-b64acab1.js';
20
- import { s as script$3 } from './fw-button-ab906734.js';
21
- export { s as FwButton } from './fw-button-ab906734.js';
23
+ import { s as script$3 } from './fw-button-22301a2f.js';
24
+ export { s as FwButton } from './fw-button-22301a2f.js';
22
25
  import { createApp } from 'vue';
23
- import './es.array.includes-debcb50f.js';
24
- import './es.function.name-e746680f.js';
26
+ import './es.array.includes-33e186c4.js';
27
+ import './es.function.name-3a9c8706.js';
25
28
  import './style-inject.es-1f59c1d0.js';
26
29
 
27
30
  function _arrayWithHoles(arr) {
@@ -275,7 +278,9 @@ var components = /*#__PURE__*/Object.freeze({
275
278
  FwNavigationMenu: script$4,
276
279
  FwTabs: script$5,
277
280
  FwTab: script$6,
278
- FwModal: script$7
281
+ FwModal: script$7,
282
+ FwEmailPulse: __default__,
283
+ FwSuccessPulse: __default__$1
279
284
  });
280
285
 
281
286
  function _defineProperty(obj, key, value) {
@@ -402,14 +407,14 @@ $({ global: true, bind: true, forced: global.setTimeout !== setTimeout$1 }, {
402
407
  var modalService = function modalService(options, element) {
403
408
  var elementToMount = document.createElement('div');
404
409
  elementToMount.id = uniqueId('fw-modal-app-');
405
- var elAppend = element || document.body;
410
+ var elAppend = element || document.querySelector('#app');
406
411
  var modalVNode = undefined;
407
412
 
408
413
  var open = function open() {
409
414
  var _modalVNode;
410
415
 
411
416
  modalVNode = createApp(script$7, _objectSpread2({}, options));
412
- elAppend.appendChild(elementToMount);
417
+ elAppend === null || elAppend === void 0 ? void 0 : elAppend.appendChild(elementToMount);
413
418
  (_modalVNode = modalVNode) === null || _modalVNode === void 0 ? void 0 : _modalVNode.mount(elementToMount);
414
419
  };
415
420