@frollo/frollo-web-ui 0.0.22 → 0.1.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 (32) hide show
  1. package/cjs/index.js +635 -421
  2. package/esm/{add-to-unscopables-c6a09beb.js → add-to-unscopables-81c17489.js} +139 -99
  3. package/esm/{es.array.includes-1b7043c3.js → es.array.includes-debcb50f.js} +9 -3
  4. package/esm/{es.function.name-f416c9da.js → es.function.name-e746680f.js} +1 -1
  5. package/esm/{function-name-982253be.js → function-name-f0c1223e.js} +52 -61
  6. package/esm/{fw-button-0826e6fc.js → fw-button-ab906734.js} +12 -4
  7. package/esm/fw-button.js +4 -4
  8. package/esm/fw-card.js +6 -3
  9. package/esm/fw-checkbox.js +13 -8
  10. package/esm/fw-form.js +1 -1
  11. package/esm/fw-input.js +21 -11
  12. package/esm/fw-modal.js +7 -475
  13. package/esm/fw-navigation-menu.js +80 -24
  14. package/esm/fw-tabs.js +4 -3
  15. package/esm/{index-9de6159f.js → index-5ee56f7d.js} +24 -75
  16. package/esm/index-963039a3.js +475 -0
  17. package/esm/index.js +128 -40
  18. package/esm/to-string-139f1ee8.js +52 -0
  19. package/esm/{vee-validate.esm-028c6424.js → vee-validate.esm-b64acab1.js} +62 -9
  20. package/frollo-web-ui.esm.js +669 -421
  21. package/index.d.ts +28 -11
  22. package/package.json +20 -17
  23. package/tailwind.config.js +8 -8
  24. package/types/components/fw-button/fw-button.vue.d.ts +1 -0
  25. package/types/components/fw-card/fw-card.vue.d.ts +1 -0
  26. package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +5 -4
  27. package/types/components/fw-checkbox/index.types.d.ts +1 -1
  28. package/types/components/fw-input/fw-input.vue.d.ts +17 -4
  29. package/types/components/fw-input/index.types.d.ts +1 -1
  30. package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +3 -0
  31. package/types/index.esm.d.ts +1 -1
  32. package/types/services/modal.d.ts +1 -1
package/esm/fw-modal.js CHANGED
@@ -1,475 +1,7 @@
1
- import './es.array.includes-1b7043c3.js';
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-0826e6fc.js';
4
- import { s as styleInject } from './style-inject.es-1f59c1d0.js';
5
- import './function-name-982253be.js';
6
- import './add-to-unscopables-c6a09beb.js';
7
-
8
- /** Detect free variable `global` from Node.js. */
9
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
10
-
11
- /** Detect free variable `self`. */
12
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
13
-
14
- /** Used as a reference to the global object. */
15
- var root = freeGlobal || freeSelf || Function('return this')();
16
-
17
- /** Built-in value references. */
18
- var Symbol = root.Symbol;
19
-
20
- /**
21
- * A specialized version of `_.map` for arrays without support for iteratee
22
- * shorthands.
23
- *
24
- * @private
25
- * @param {Array} [array] The array to iterate over.
26
- * @param {Function} iteratee The function invoked per iteration.
27
- * @returns {Array} Returns the new mapped array.
28
- */
29
- function arrayMap(array, iteratee) {
30
- var index = -1,
31
- length = array == null ? 0 : array.length,
32
- result = Array(length);
33
-
34
- while (++index < length) {
35
- result[index] = iteratee(array[index], index, array);
36
- }
37
- return result;
38
- }
39
-
40
- /**
41
- * Checks if `value` is classified as an `Array` object.
42
- *
43
- * @static
44
- * @memberOf _
45
- * @since 0.1.0
46
- * @category Lang
47
- * @param {*} value The value to check.
48
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
49
- * @example
50
- *
51
- * _.isArray([1, 2, 3]);
52
- * // => true
53
- *
54
- * _.isArray(document.body.children);
55
- * // => false
56
- *
57
- * _.isArray('abc');
58
- * // => false
59
- *
60
- * _.isArray(_.noop);
61
- * // => false
62
- */
63
- var isArray = Array.isArray;
64
-
65
- /** Used for built-in method references. */
66
- var objectProto$1 = Object.prototype;
67
-
68
- /** Used to check objects for own properties. */
69
- var hasOwnProperty = objectProto$1.hasOwnProperty;
70
-
71
- /**
72
- * Used to resolve the
73
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
74
- * of values.
75
- */
76
- var nativeObjectToString$1 = objectProto$1.toString;
77
-
78
- /** Built-in value references. */
79
- var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
80
-
81
- /**
82
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
83
- *
84
- * @private
85
- * @param {*} value The value to query.
86
- * @returns {string} Returns the raw `toStringTag`.
87
- */
88
- function getRawTag(value) {
89
- var isOwn = hasOwnProperty.call(value, symToStringTag$1),
90
- tag = value[symToStringTag$1];
91
-
92
- try {
93
- value[symToStringTag$1] = undefined;
94
- var unmasked = true;
95
- } catch (e) {}
96
-
97
- var result = nativeObjectToString$1.call(value);
98
- if (unmasked) {
99
- if (isOwn) {
100
- value[symToStringTag$1] = tag;
101
- } else {
102
- delete value[symToStringTag$1];
103
- }
104
- }
105
- return result;
106
- }
107
-
108
- /** Used for built-in method references. */
109
- var objectProto = Object.prototype;
110
-
111
- /**
112
- * Used to resolve the
113
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
114
- * of values.
115
- */
116
- var nativeObjectToString = objectProto.toString;
117
-
118
- /**
119
- * Converts `value` to a string using `Object.prototype.toString`.
120
- *
121
- * @private
122
- * @param {*} value The value to convert.
123
- * @returns {string} Returns the converted string.
124
- */
125
- function objectToString(value) {
126
- return nativeObjectToString.call(value);
127
- }
128
-
129
- /** `Object#toString` result references. */
130
- var nullTag = '[object Null]',
131
- undefinedTag = '[object Undefined]';
132
-
133
- /** Built-in value references. */
134
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
135
-
136
- /**
137
- * The base implementation of `getTag` without fallbacks for buggy environments.
138
- *
139
- * @private
140
- * @param {*} value The value to query.
141
- * @returns {string} Returns the `toStringTag`.
142
- */
143
- function baseGetTag(value) {
144
- if (value == null) {
145
- return value === undefined ? undefinedTag : nullTag;
146
- }
147
- return (symToStringTag && symToStringTag in Object(value))
148
- ? getRawTag(value)
149
- : objectToString(value);
150
- }
151
-
152
- /**
153
- * Checks if `value` is object-like. A value is object-like if it's not `null`
154
- * and has a `typeof` result of "object".
155
- *
156
- * @static
157
- * @memberOf _
158
- * @since 4.0.0
159
- * @category Lang
160
- * @param {*} value The value to check.
161
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
162
- * @example
163
- *
164
- * _.isObjectLike({});
165
- * // => true
166
- *
167
- * _.isObjectLike([1, 2, 3]);
168
- * // => true
169
- *
170
- * _.isObjectLike(_.noop);
171
- * // => false
172
- *
173
- * _.isObjectLike(null);
174
- * // => false
175
- */
176
- function isObjectLike(value) {
177
- return value != null && typeof value == 'object';
178
- }
179
-
180
- /** `Object#toString` result references. */
181
- var symbolTag = '[object Symbol]';
182
-
183
- /**
184
- * Checks if `value` is classified as a `Symbol` primitive or object.
185
- *
186
- * @static
187
- * @memberOf _
188
- * @since 4.0.0
189
- * @category Lang
190
- * @param {*} value The value to check.
191
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
192
- * @example
193
- *
194
- * _.isSymbol(Symbol.iterator);
195
- * // => true
196
- *
197
- * _.isSymbol('abc');
198
- * // => false
199
- */
200
- function isSymbol(value) {
201
- return typeof value == 'symbol' ||
202
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
203
- }
204
-
205
- /** Used as references for various `Number` constants. */
206
- var INFINITY = 1 / 0;
207
-
208
- /** Used to convert symbols to primitives and strings. */
209
- var symbolProto = Symbol ? Symbol.prototype : undefined,
210
- symbolToString = symbolProto ? symbolProto.toString : undefined;
211
-
212
- /**
213
- * The base implementation of `_.toString` which doesn't convert nullish
214
- * values to empty strings.
215
- *
216
- * @private
217
- * @param {*} value The value to process.
218
- * @returns {string} Returns the string.
219
- */
220
- function baseToString(value) {
221
- // Exit early for strings to avoid a performance hit in some environments.
222
- if (typeof value == 'string') {
223
- return value;
224
- }
225
- if (isArray(value)) {
226
- // Recursively convert values (susceptible to call stack limits).
227
- return arrayMap(value, baseToString) + '';
228
- }
229
- if (isSymbol(value)) {
230
- return symbolToString ? symbolToString.call(value) : '';
231
- }
232
- var result = (value + '');
233
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
234
- }
235
-
236
- /**
237
- * Converts `value` to a string. An empty string is returned for `null`
238
- * and `undefined` values. The sign of `-0` is preserved.
239
- *
240
- * @static
241
- * @memberOf _
242
- * @since 4.0.0
243
- * @category Lang
244
- * @param {*} value The value to convert.
245
- * @returns {string} Returns the converted string.
246
- * @example
247
- *
248
- * _.toString(null);
249
- * // => ''
250
- *
251
- * _.toString(-0);
252
- * // => '-0'
253
- *
254
- * _.toString([1, 2, 3]);
255
- * // => '1,2,3'
256
- */
257
- function toString(value) {
258
- return value == null ? '' : baseToString(value);
259
- }
260
-
261
- /** Used to generate unique IDs. */
262
- var idCounter = 0;
263
-
264
- /**
265
- * Generates a unique ID. If `prefix` is given, the ID is appended to it.
266
- *
267
- * @static
268
- * @since 0.1.0
269
- * @memberOf _
270
- * @category Util
271
- * @param {string} [prefix=''] The value to prefix the ID with.
272
- * @returns {string} Returns the unique ID.
273
- * @example
274
- *
275
- * _.uniqueId('contact_');
276
- * // => 'contact_104'
277
- *
278
- * _.uniqueId();
279
- * // => '105'
280
- */
281
- function uniqueId(prefix) {
282
- var id = ++idCounter;
283
- return toString(prefix) + id;
284
- }
285
-
286
- var script = defineComponent({
287
- name: 'FwModal',
288
- components: {
289
- FwButton: script$1
290
- },
291
- emits: ['cancel', 'confirm'],
292
- props: {
293
- /**
294
- * The header title of the modal
295
- */
296
- header: {
297
- type: String
298
- },
299
-
300
- /**
301
- * The body description of the modal
302
- */
303
- body: {
304
- type: String
305
- },
306
-
307
- /**
308
- * The aria role of the modal container. Defaults to `dialog`
309
- */
310
- role: {
311
- type: String,
312
- "default": 'dialog'
313
- },
314
-
315
- /**
316
- * Whether to show the cancel button
317
- */
318
- showCancel: {
319
- type: Boolean,
320
- "default": false
321
- },
322
-
323
- /**
324
- * Whether to show the confirm button
325
- */
326
- showConfirm: {
327
- type: Boolean,
328
- "default": true
329
- },
330
-
331
- /**
332
- * Custom text for the cancel button
333
- */
334
- cancelButtonText: {
335
- type: String,
336
- "default": 'Cancel'
337
- },
338
-
339
- /**
340
- * Button variant for the cancel button
341
- */
342
- cancelButtonType: {
343
- type: String,
344
- "default": 'secondary',
345
- validator: function validator(value) {
346
- return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text'].includes(value);
347
- }
348
- },
349
-
350
- /**
351
- * Custom text for the confirm button
352
- */
353
- confirmButtonText: {
354
- type: String,
355
- "default": 'Confirm'
356
- },
357
-
358
- /**
359
- * Button variant for the confirm button
360
- */
361
- confirmButtonType: {
362
- type: String,
363
- "default": 'primary',
364
- validator: function validator(value) {
365
- return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text'].includes(value);
366
- }
367
- }
368
- },
369
- setup: function setup() {
370
- var uuid = uniqueId();
371
- return {
372
- uuid: uuid
373
- };
374
- }
375
- });
376
-
377
- var _withScopeId = function _withScopeId(n) {
378
- return pushScopeId("data-v-d1d6dbae"), n = n(), popScopeId(), n;
379
- };
380
-
381
- var _hoisted_1 = {
382
- "class": "fw-modal"
383
- };
384
- var _hoisted_2 = {
385
- "class": "fw-modal--mask fixed z-[9999] top-0 left-0 w-full h-full bg-black bg-opacity-50"
386
- };
387
- var _hoisted_3 = {
388
- "class": "fw-modal--wrapper text-center overflow-auto flex justify-center items-center h-full"
389
- };
390
- var _hoisted_4 = ["role", "aria-labelledby", "aria-describedby"];
391
- var _hoisted_5 = {
392
- key: 0,
393
- "class": "fw-modal--header text-center"
394
- };
395
- var _hoisted_6 = {
396
- key: 0,
397
- id: "modal-logo",
398
- "class": "flex justify-center"
399
- };
400
- var _hoisted_7 = ["id"];
401
- var _hoisted_8 = ["id", "innerHTML"];
402
- var _hoisted_9 = ["id"];
403
- var _hoisted_10 = ["innerHTML", "id"];
404
- var _hoisted_11 = {
405
- key: 3,
406
- "class": "modal-footer flex space-x-4 pt-4 justify-center"
407
- };
408
- function render(_ctx, _cache, $props, $setup, $data, $options) {
409
- var _component_FwButton = resolveComponent("FwButton");
410
-
411
- return openBlock(), createBlock(Transition, {
412
- name: "modalFadeIn"
413
- }, {
414
- "default": withCtx(function () {
415
- return [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", {
416
- role: _ctx.role,
417
- "class": "fw-modal--container p-12 m-8 inline-block w-full max-w-[540px] bg-white rounded-2xl shadow",
418
- "aria-labelledby": _ctx.$slots.header || _ctx.header ? "modal_".concat(_ctx.uuid, "_header") : null,
419
- "aria-describedby": _ctx.$slots.body ? "modal_".concat(_ctx.uuid, "_body") : null
420
- }, [_ctx.$slots.icon || _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", _hoisted_5, [_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true), _ctx.$slots.header ? (openBlock(), createElementBlock("h2", {
421
- key: 1,
422
- id: "modal_".concat(_ctx.uuid, "_header")
423
- }, [renderSlot(_ctx.$slots, "header")], 8, _hoisted_7)) : _ctx.header ? (openBlock(), createElementBlock("h2", {
424
- key: 2,
425
- id: "modal_".concat(_ctx.uuid, "_header"),
426
- innerHTML: _ctx.header
427
- }, null, 8, _hoisted_8)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots.body ? (openBlock(), createElementBlock("div", {
428
- key: 1,
429
- "class": "modal-body mt-4",
430
- id: "modal_".concat(_ctx.uuid, "_body")
431
- }, [renderSlot(_ctx.$slots, "body")], 8, _hoisted_9)) : _ctx.body ? (openBlock(), createElementBlock("div", {
432
- key: 2,
433
- innerHTML: _ctx.body,
434
- "class": "modal-body mt-4",
435
- id: "modal_".concat(_ctx.uuid, "_body")
436
- }, null, 8, _hoisted_10)) : createCommentVNode("", true), _ctx.showConfirm || _ctx.showCancel ? (openBlock(), createElementBlock("div", _hoisted_11, [_ctx.showCancel ? (openBlock(), createBlock(_component_FwButton, {
437
- key: 0,
438
- "class": "basis-1/2",
439
- variant: _ctx.cancelButtonType,
440
- "aria-label": _ctx.cancelButtonText,
441
- onClick: _cache[0] || (_cache[0] = function ($event) {
442
- return _ctx.$emit('cancel');
443
- })
444
- }, {
445
- "default": withCtx(function () {
446
- return [createTextVNode(toDisplayString(_ctx.cancelButtonText), 1)];
447
- }),
448
- _: 1
449
- }, 8, ["variant", "aria-label"])) : createCommentVNode("", true), _ctx.showConfirm ? (openBlock(), createBlock(_component_FwButton, {
450
- key: 1,
451
- "class": "basis-1/2",
452
- variant: _ctx.confirmButtonType,
453
- "aria-label": _ctx.confirmButtonText,
454
- onClick: _cache[1] || (_cache[1] = function ($event) {
455
- return _ctx.$emit('confirm');
456
- })
457
- }, {
458
- "default": withCtx(function () {
459
- return [createTextVNode(toDisplayString(_ctx.confirmButtonText), 1)];
460
- }),
461
- _: 1
462
- }, 8, ["variant", "aria-label"])) : createCommentVNode("", true)])) : createCommentVNode("", true)], 8, _hoisted_4)])])])];
463
- }),
464
- _: 3
465
- });
466
- }
467
-
468
- var css_248z = ".modalFadeIn-enter-active[data-v-d1d6dbae]{-webkit-animation:modalFadeIn-d1d6dbae .4s;animation:modalFadeIn-d1d6dbae .4s;-webkit-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active[data-v-d1d6dbae]{animation:modalFadeIn-d1d6dbae .4s reverse;-webkit-transition:opacity .4s ease-out;-o-transition:opacity .4s ease-out;transition:opacity .4s ease-out}@-webkit-keyframes modalFadeIn-d1d6dbae{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn-d1d6dbae{0%{opacity:0}to{opacity:1}}";
469
- var stylesheet = ".modalFadeIn-enter-active[data-v-d1d6dbae]{-webkit-animation:modalFadeIn-d1d6dbae .4s;animation:modalFadeIn-d1d6dbae .4s;-webkit-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active[data-v-d1d6dbae]{animation:modalFadeIn-d1d6dbae .4s reverse;-webkit-transition:opacity .4s ease-out;-o-transition:opacity .4s ease-out;transition:opacity .4s ease-out}@-webkit-keyframes modalFadeIn-d1d6dbae{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn-d1d6dbae{0%{opacity:0}to{opacity:1}}";
470
- styleInject(css_248z);
471
-
472
- script.render = render;
473
- script.__scopeId = "data-v-d1d6dbae";
474
-
475
- export { script as FwModal };
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';
5
+ import 'vue';
6
+ import './fw-button-ab906734.js';
7
+ import './style-inject.es-1f59c1d0.js';
@@ -1,9 +1,64 @@
1
- import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition } from 'vue';
2
- import { s as script$1 } from './fw-button-0826e6fc.js';
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';
3
6
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
4
- import './es.array.includes-1b7043c3.js';
5
- import './function-name-982253be.js';
6
- import './add-to-unscopables-c6a09beb.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 = {}));
7
62
 
8
63
  var script = defineComponent({
9
64
  name: 'FwNavigationMenu',
@@ -29,6 +84,8 @@ var script = defineComponent({
29
84
  }
30
85
  },
31
86
  setup: function setup(_props, ctx) {
87
+ var mobileMenuClass = ref( // eslint-disable-next-line max-len
88
+ "min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1");
32
89
  var isMobileMenuOpen = ref(false);
33
90
 
34
91
  var toggleMobileMenu = function toggleMobileMenu() {
@@ -40,9 +97,11 @@ var script = defineComponent({
40
97
  };
41
98
 
42
99
  return {
100
+ mobileMenuClass: mobileMenuClass,
43
101
  isMobileMenuOpen: isMobileMenuOpen,
44
102
  toggleMobileMenu: toggleMobileMenu,
45
- actionClicked: actionClicked
103
+ actionClicked: actionClicked,
104
+ ButtonVariantName: ButtonVariantName
46
105
  };
47
106
  }
48
107
  });
@@ -51,7 +110,7 @@ var _hoisted_1 = {
51
110
  "class": "fw-nav-menu relative z-50 h-20 shadow-md"
52
111
  };
53
112
  var _hoisted_2 = {
54
- "class": "px-6 flex-1 h-full flex bg-white items-stretch justify-between"
113
+ "class": "px-6 flex-1 h-full flex bg-white items-stretch justify-between max-w-6xl mx-auto"
55
114
  };
56
115
  var _hoisted_3 = {
57
116
  key: 0,
@@ -59,7 +118,7 @@ var _hoisted_3 = {
59
118
  };
60
119
  var _hoisted_4 = {
61
120
  key: 1,
62
- "class": "container hidden sm:flex items-center justify-start max-w-[600px] sm:ml-6"
121
+ "class": "container hidden sm:flex items-center justify-start sm:ml-6"
63
122
  };
64
123
  var _hoisted_5 = {
65
124
  "class": "flex space-x-2"
@@ -86,10 +145,6 @@ var _hoisted_9 = {
86
145
  };
87
146
  var _hoisted_10 = ["d"];
88
147
  var _hoisted_11 = {
89
- key: 0,
90
- "class": "fw-nav-menu--mobile min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1"
91
- };
92
- var _hoisted_12 = {
93
148
  "class": "w-full flex flex-col"
94
149
  };
95
150
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -97,10 +152,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
97
152
 
98
153
  var _component_FwButton = resolveComponent("FwButton");
99
154
 
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) === 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) {
155
+ 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) {
101
156
  return openBlock(), createBlock(_component_FwButton, {
102
157
  key: i,
103
- variant: "text",
158
+ variant: _ctx.ButtonVariantName.text,
104
159
  href: item.href,
105
160
  to: item.to,
106
161
  size: "md",
@@ -110,7 +165,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
110
165
  return [createTextVNode(toDisplayString(item.label), 1)];
111
166
  }),
112
167
  _: 2
113
- }, 1032, ["href", "to"]);
168
+ }, 1032, ["variant", "href", "to"]);
114
169
  }), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(_component_FwButton, {
115
170
  onClick: _ctx.actionClicked,
116
171
  size: "md",
@@ -121,7 +176,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
121
176
  }),
122
177
  _: 1
123
178
  }, 8, ["onClick", "aria-label"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7, [createVNode(_component_FwButton, {
124
- variant: "text",
179
+ variant: _ctx.ButtonVariantName.text,
125
180
  size: "sm",
126
181
  onClick: _ctx.toggleMobileMenu
127
182
  }, {
@@ -134,17 +189,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
134
189
  }, null, 8, _hoisted_10)]))];
135
190
  }),
136
191
  _: 1
137
- }, 8, ["onClick"])])]), createVNode(Transition, {
192
+ }, 8, ["variant", "onClick"])])]), createVNode(Transition, {
138
193
  name: "slideInLeft"
139
194
  }, {
140
195
  "default": withCtx(function () {
141
- var _ctx$menuItems2;
142
-
143
- return [((_ctx$menuItems2 = _ctx.menuItems) === null || _ctx$menuItems2 === void 0 ? void 0 : _ctx$menuItems2.length) > 0 && _ctx.isMobileMenuOpen ? (openBlock(), createElementBlock("div", _hoisted_11, [createElementVNode("div", _hoisted_12, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
196
+ return [_ctx.menuItems && _ctx.menuItems.length > 0 && _ctx.isMobileMenuOpen ? (openBlock(), createElementBlock("div", {
197
+ key: 0,
198
+ "class": normalizeClass(["fw-nav-menu--mobile", _ctx.mobileMenuClass])
199
+ }, [createElementVNode("div", _hoisted_11, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
144
200
  return openBlock(), createBlock(_component_FwButton, {
145
201
  key: i,
146
202
  "class": "w-full rounded-md",
147
- variant: "text",
203
+ variant: _ctx.ButtonVariantName.text,
148
204
  href: item.href,
149
205
  to: item.to,
150
206
  size: "md",
@@ -154,17 +210,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
154
210
  return [createTextVNode(toDisplayString(item.label), 1)];
155
211
  }),
156
212
  _: 2
157
- }, 1032, ["href", "to"]);
213
+ }, 1032, ["variant", "href", "to"]);
158
214
  }), 128))]), _ctx.actionLabel ? (openBlock(), createBlock(_component_FwButton, {
159
215
  key: 0,
160
- "class": "w-full rounded-md px-2",
216
+ "class": "w-full rounded-md",
161
217
  onClick: _ctx.actionClicked
162
218
  }, {
163
219
  "default": withCtx(function () {
164
220
  return [createTextVNode(toDisplayString(_ctx.actionLabel), 1)];
165
221
  }),
166
222
  _: 1
167
- }, 8, ["onClick"])) : createCommentVNode("", true)])) : createCommentVNode("", true)];
223
+ }, 8, ["onClick"])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)];
168
224
  }),
169
225
  _: 1
170
226
  })]);
package/esm/fw-tabs.js CHANGED
@@ -1,4 +1,5 @@
1
- export { b as FwTab, s as FwTabs } from './index-9de6159f.js';
2
- import './function-name-982253be.js';
3
- import './add-to-unscopables-c6a09beb.js';
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';
4
5
  import 'vue';