@namelivia/vue-components 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/preview.js +25 -9
- package/dist/index.esm.js +71 -44
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +71 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Buttons/RegularButton/RegularButton.cy.js +26 -2
- package/src/Buttons/RegularButton/RegularButton.vue +27 -2
- package/src/Navbar/MobileMenuButton.vue +1 -11
- package/src/Navbar/MobileNavigationLink.vue +13 -10
- package/src/Navbar/MobileNavigationLinks.vue +6 -4
- package/src/Navbar/Navbar.stories.js +3 -3
- package/src/Navbar/Navbar.vue +1 -1
- package/src/Navbar/NavigationLink.vue +13 -9
- package/src/Navbar/NavigationLinks.vue +1 -0
- package/src/Navbar/RightContent.vue +3 -0
- package/styles/index.css +21 -0
package/.storybook/preview.js
CHANGED
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
/** @type { import('@storybook/vue3-vite').Preview } */
|
|
2
1
|
import '../styles/index.css';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
|
|
3
|
+
export const globalTypes = {
|
|
4
|
+
theme: {
|
|
5
|
+
name: 'Theme',
|
|
6
|
+
description: 'Global theme for components',
|
|
7
|
+
defaultValue: 'one',
|
|
8
|
+
toolbar: {
|
|
9
|
+
icon: 'paintbrush',
|
|
10
|
+
items: [
|
|
11
|
+
{ value: 'one', title: 'One Theme' },
|
|
12
|
+
{ value: 'another', title: 'Another Theme' },
|
|
13
|
+
],
|
|
10
14
|
},
|
|
11
15
|
},
|
|
12
16
|
};
|
|
13
17
|
|
|
14
|
-
export
|
|
18
|
+
export const decorators = [
|
|
19
|
+
(story, context) => {
|
|
20
|
+
const theme = context.globals.theme || 'one';
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
components: { story },
|
|
24
|
+
template: `<div :class="theme + '-theme'"><story /></div>`,
|
|
25
|
+
setup() {
|
|
26
|
+
return { theme };
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
];
|
package/dist/index.esm.js
CHANGED
|
@@ -10,10 +10,10 @@ var script$v = defineComponent({
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
const _hoisted_1$
|
|
13
|
+
const _hoisted_1$q = { class: "section-title" };
|
|
14
14
|
|
|
15
15
|
function render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16
|
-
return (openBlock(), createElementBlock("h1", _hoisted_1$
|
|
16
|
+
return (openBlock(), createElementBlock("h1", _hoisted_1$q, toDisplayString(_ctx.text), 1 /* TEXT */))
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
function styleInject(css, ref) {
|
|
@@ -92,14 +92,14 @@ var script$t = defineComponent({
|
|
|
92
92
|
},
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
const _hoisted_1$
|
|
95
|
+
const _hoisted_1$p = ["src", "alt"];
|
|
96
96
|
|
|
97
97
|
function render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
98
98
|
return (openBlock(), createElementBlock("img", {
|
|
99
99
|
src: _ctx.src,
|
|
100
100
|
alt: _ctx.alt,
|
|
101
101
|
ref: "image"
|
|
102
|
-
}, null, 8 /* PROPS */, _hoisted_1$
|
|
102
|
+
}, null, 8 /* PROPS */, _hoisted_1$p))
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
var css_248z$t = "\nimg[data-v-5fa6a3f6] {\n width: 100%;\n}\n";
|
|
@@ -116,12 +116,12 @@ var script$s = defineComponent({
|
|
|
116
116
|
},
|
|
117
117
|
});
|
|
118
118
|
|
|
119
|
-
const _hoisted_1$
|
|
119
|
+
const _hoisted_1$o = { class: "card-body" };
|
|
120
120
|
const _hoisted_2$e = { class: "card-title" };
|
|
121
121
|
const _hoisted_3$9 = { class: "card-text" };
|
|
122
122
|
|
|
123
123
|
function render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
124
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
124
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
125
125
|
createElementVNode("div", _hoisted_2$e, toDisplayString(_ctx.title), 1 /* TEXT */),
|
|
126
126
|
createElementVNode("p", _hoisted_3$9, [
|
|
127
127
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -153,7 +153,7 @@ var script$r = defineComponent({
|
|
|
153
153
|
emits: ['width']
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
const _hoisted_1$
|
|
156
|
+
const _hoisted_1$n = {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: "card-container"
|
|
159
159
|
};
|
|
@@ -164,7 +164,7 @@ function render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164
164
|
const _component_card_body = resolveComponent("card-body");
|
|
165
165
|
|
|
166
166
|
return (!_ctx.dismissed)
|
|
167
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
167
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
168
168
|
createElementVNode("div", _hoisted_2$d, [
|
|
169
169
|
createVNode(_component_card_image, {
|
|
170
170
|
src: _ctx.image,
|
|
@@ -193,10 +193,10 @@ var script$q = defineComponent({
|
|
|
193
193
|
name: "CardGrid"
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
const _hoisted_1$
|
|
196
|
+
const _hoisted_1$m = { class: "card-grid" };
|
|
197
197
|
|
|
198
198
|
function render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
199
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
199
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
200
200
|
renderSlot(_ctx.$slots, "default")
|
|
201
201
|
]))
|
|
202
202
|
}
|
|
@@ -212,10 +212,10 @@ var script$p = defineComponent({
|
|
|
212
212
|
name: "Container"
|
|
213
213
|
});
|
|
214
214
|
|
|
215
|
-
const _hoisted_1$
|
|
215
|
+
const _hoisted_1$l = { class: "container" };
|
|
216
216
|
|
|
217
217
|
function render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
218
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
218
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
219
219
|
renderSlot(_ctx.$slots, "default")
|
|
220
220
|
]))
|
|
221
221
|
}
|
|
@@ -247,20 +247,23 @@ var script$o = defineComponent({
|
|
|
247
247
|
}
|
|
248
248
|
return 'regular-link'
|
|
249
249
|
},
|
|
250
|
+
linkDestination: function () {
|
|
251
|
+
return this.current ? '#' : this.href
|
|
252
|
+
},
|
|
250
253
|
},
|
|
251
254
|
});
|
|
252
255
|
|
|
253
|
-
const _hoisted_1$
|
|
256
|
+
const _hoisted_1$k = ["href"];
|
|
254
257
|
|
|
255
258
|
function render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
256
259
|
return (openBlock(), createElementBlock("a", {
|
|
257
|
-
href: _ctx.
|
|
260
|
+
href: _ctx.linkDestination,
|
|
258
261
|
class: normalizeClass(_ctx.linkClass),
|
|
259
262
|
"aria-current": "page"
|
|
260
|
-
}, toDisplayString(_ctx.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$
|
|
263
|
+
}, toDisplayString(_ctx.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$k))
|
|
261
264
|
}
|
|
262
265
|
|
|
263
|
-
var css_248z$o = "\n.current-link[data-v-3e279546] {\n background-color:
|
|
266
|
+
var css_248z$o = "\n.current-link[data-v-3e279546] {\n background-color: var(--color-navbar-current-background);\n color: var(--color-navbar-text);\n display: block;\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n border-radius: 0.375rem;\n font-size: var(--font-size-navbar);\n text-decoration: none;\n cursor: default;\n}\n.regular-link[data-v-3e279546] {\n color: var(--color-navbar-text);\n display: block;\n padding: 0.5rem 0.75rem;\n border-radius: 0.375rem;\n font-size: var(--font-size-navbar);\n transition: background-color 0.2s ease, color 0.2s ease;\n text-decoration: none;\n}\n.regular-link[data-v-3e279546]:hover {\n background-color: var(--color-navbar-link-background);\n}\n";
|
|
264
267
|
styleInject(css_248z$o);
|
|
265
268
|
|
|
266
269
|
script$o.render = render$o;
|
|
@@ -283,7 +286,7 @@ var script$n = defineComponent({
|
|
|
283
286
|
},
|
|
284
287
|
});
|
|
285
288
|
|
|
286
|
-
const _hoisted_1$
|
|
289
|
+
const _hoisted_1$j = {
|
|
287
290
|
key: 0,
|
|
288
291
|
id: "mobile-menu"
|
|
289
292
|
};
|
|
@@ -302,14 +305,15 @@ function render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
302
305
|
}, {
|
|
303
306
|
default: withCtx(() => [
|
|
304
307
|
(_ctx.open)
|
|
305
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
308
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
306
309
|
createElementVNode("div", _hoisted_2$c, [
|
|
307
310
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.links, (link) => {
|
|
308
311
|
return (openBlock(), createBlock(_component_mobile_navigation_link, {
|
|
309
312
|
key: link.id,
|
|
310
313
|
href: link.href,
|
|
311
|
-
text: link.text
|
|
312
|
-
|
|
314
|
+
text: link.text,
|
|
315
|
+
current: link.current
|
|
316
|
+
}, null, 8 /* PROPS */, ["href", "text", "current"]))
|
|
313
317
|
}), 128 /* KEYED_FRAGMENT */))
|
|
314
318
|
])
|
|
315
319
|
]))
|
|
@@ -319,7 +323,7 @@ function render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
319
323
|
}))
|
|
320
324
|
}
|
|
321
325
|
|
|
322
|
-
var css_248z$n = "\n.fade-scale-enter-active[data-v-eb1296c6],\n.fade-scale-leave-active[data-v-eb1296c6] {\n transition: all 200ms ease;\n}\n.fade-scale-enter-from[data-v-eb1296c6],\n.fade-scale-leave-to[data-v-eb1296c6] {\n
|
|
326
|
+
var css_248z$n = "\n.fade-scale-enter-active[data-v-eb1296c6],\n.fade-scale-leave-active[data-v-eb1296c6] {\n transition: all 200ms ease;\n}\n.fade-scale-enter-from[data-v-eb1296c6],\n.fade-scale-leave-to[data-v-eb1296c6] {\n transform: scaleY(0);\n transform-origin: top;\n}\n.fade-scale-enter-to[data-v-eb1296c6],\n.fade-scale-leave-from[data-v-eb1296c6] {\n transform: scaleY(1);\n transform-origin: top;\n}\n#mobile-menu[data-v-eb1296c6] {\n display: block;\n}\n.menu-panel[data-v-eb1296c6] {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n padding-top: 0.5rem;\n padding-bottom: 0.75rem;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n background-color: var(--color-navbar-background);\n}\n@media (min-width: 640px) {\n#mobile-menu[data-v-eb1296c6] {\n display: none;\n}\n}\n";
|
|
323
327
|
styleInject(css_248z$n);
|
|
324
328
|
|
|
325
329
|
script$n.render = render$n;
|
|
@@ -346,20 +350,23 @@ var script$m = defineComponent({
|
|
|
346
350
|
}
|
|
347
351
|
return 'regular-link'
|
|
348
352
|
},
|
|
353
|
+
linkDestination: function () {
|
|
354
|
+
return this.current ? '#' : this.href
|
|
355
|
+
},
|
|
349
356
|
},
|
|
350
357
|
});
|
|
351
358
|
|
|
352
|
-
const _hoisted_1$
|
|
359
|
+
const _hoisted_1$i = ["href"];
|
|
353
360
|
|
|
354
361
|
function render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
355
362
|
return (openBlock(), createElementBlock("a", {
|
|
356
|
-
href: _ctx.
|
|
363
|
+
href: _ctx.linkDestination,
|
|
357
364
|
class: normalizeClass(_ctx.linkClass),
|
|
358
365
|
"aria-current": "page"
|
|
359
|
-
}, toDisplayString(_ctx.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$
|
|
366
|
+
}, toDisplayString(_ctx.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$i))
|
|
360
367
|
}
|
|
361
368
|
|
|
362
|
-
var css_248z$m = "\n.current-link[data-v-4989b384] {\n background-color:
|
|
369
|
+
var css_248z$m = "\n.current-link[data-v-4989b384] {\n background-color: var(--color-navbar-current-background);\n color: var(--color-navbar-text);\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n border-radius: 0.375rem;\n font-size: var(--font-size-navbar);\n text-decoration: none;\n cursor: default;\n}\n.regular-link[data-v-4989b384] {\n color: var(--color-navbar-text);\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n border-radius: 0.375rem;\n font-size: var(--font-size-navbar);\n transition: background-color 0.2s ease, color 0.2s ease;\n text-decoration: none;\n}\n.regular-link[data-v-4989b384]:hover {\n background-color: var(--color-navbar-link-background);\n}\n";
|
|
363
370
|
styleInject(css_248z$m);
|
|
364
371
|
|
|
365
372
|
script$m.render = render$m;
|
|
@@ -378,20 +385,21 @@ var script$l = defineComponent({
|
|
|
378
385
|
},
|
|
379
386
|
});
|
|
380
387
|
|
|
381
|
-
const _hoisted_1$
|
|
388
|
+
const _hoisted_1$h = { class: "links-container" };
|
|
382
389
|
const _hoisted_2$b = { class: "links-wrapper" };
|
|
383
390
|
|
|
384
391
|
function render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
385
392
|
const _component_navigation_link = resolveComponent("navigation-link");
|
|
386
393
|
|
|
387
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
394
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
388
395
|
createElementVNode("div", _hoisted_2$b, [
|
|
389
396
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.links, (link) => {
|
|
390
397
|
return (openBlock(), createBlock(_component_navigation_link, {
|
|
391
398
|
key: link.id,
|
|
392
399
|
href: link.href,
|
|
393
|
-
text: link.text
|
|
394
|
-
|
|
400
|
+
text: link.text,
|
|
401
|
+
current: link.current
|
|
402
|
+
}, null, 8 /* PROPS */, ["href", "text", "current"]))
|
|
395
403
|
}), 128 /* KEYED_FRAGMENT */))
|
|
396
404
|
])
|
|
397
405
|
]))
|
|
@@ -422,7 +430,7 @@ var script$k = defineComponent({
|
|
|
422
430
|
}
|
|
423
431
|
});
|
|
424
432
|
|
|
425
|
-
const _hoisted_1$
|
|
433
|
+
const _hoisted_1$g = ["href"];
|
|
426
434
|
const _hoisted_2$a = ["src", "alt"];
|
|
427
435
|
const _hoisted_3$8 = ["src", "alt"];
|
|
428
436
|
|
|
@@ -441,7 +449,7 @@ function render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
441
449
|
src: _ctx.imageBig,
|
|
442
450
|
alt: _ctx.title
|
|
443
451
|
}, null, 8 /* PROPS */, _hoisted_3$8)
|
|
444
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
452
|
+
], 8 /* PROPS */, _hoisted_1$g))
|
|
445
453
|
}
|
|
446
454
|
|
|
447
455
|
var css_248z$k = "\n.title-container[data-v-661ef87c] {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n}\n.logo-small[data-v-661ef87c] {\n display: block;\n height: 2rem;\n width: auto;\n}\n.logo-big[data-v-661ef87c] {\n display: none;\n height: 2rem;\n width: auto;\n}\n@media (min-width: 1024px) {\n.logo-small[data-v-661ef87c] {\n display: none;\n}\n.logo-big[data-v-661ef87c] {\n display: block;\n}\n}\n\n\n";
|
|
@@ -474,11 +482,11 @@ var script$j = defineComponent({
|
|
|
474
482
|
},
|
|
475
483
|
});
|
|
476
484
|
|
|
477
|
-
const _hoisted_1$
|
|
485
|
+
const _hoisted_1$f = { class: "action-container" };
|
|
478
486
|
const _hoisted_2$9 = ["src", "alt"];
|
|
479
487
|
|
|
480
488
|
function render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
481
|
-
return (openBlock(), createElementBlock("div", _hoisted_1$
|
|
489
|
+
return (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
482
490
|
createElementVNode("img", {
|
|
483
491
|
class: "circle-image",
|
|
484
492
|
src: _ctx.currentUserPicture,
|
|
@@ -487,7 +495,7 @@ function render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
487
495
|
]))
|
|
488
496
|
}
|
|
489
497
|
|
|
490
|
-
var css_248z$j = "\n.action-container[data-v-07675a13] {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n display: flex;\n align-items: center;\n padding-right: 0.5rem;\n}\n.circle-image[data-v-07675a13] {\n border-radius: 9999px;\n padding: 0.25rem;\n height: 50px;\n}\n@media (min-width: 640px) {\n.action-container[data-v-07675a13] {\n position: static;\n top: auto;\n bottom: auto;\n right: auto;\n margin-left: 1.5rem;\n padding-right: 0;\n}\n}\n\n";
|
|
498
|
+
var css_248z$j = "\n.action-container[data-v-07675a13] {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n display: flex;\n align-items: center;\n padding-right: 0.5rem;\n color: var(--color-navbar-text);\n font-size: var(--font-size-navbar);\n}\n.circle-image[data-v-07675a13] {\n border-radius: 9999px;\n padding: 0.25rem;\n height: 50px;\n width: 50px;\n}\n@media (min-width: 640px) {\n.action-container[data-v-07675a13] {\n position: static;\n top: auto;\n bottom: auto;\n right: auto;\n margin-left: 1.5rem;\n padding-right: 0;\n}\n}\n\n";
|
|
491
499
|
styleInject(css_248z$j);
|
|
492
500
|
|
|
493
501
|
script$j.render = render$j;
|
|
@@ -533,7 +541,7 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
533
541
|
])))
|
|
534
542
|
}
|
|
535
543
|
|
|
536
|
-
var css_248z$i = "\n.menu-button[data-v-397545ee] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0.5rem;\n border-radius: var(--border-radius-big);\n color: var(--color-
|
|
544
|
+
var css_248z$i = "\n.menu-button[data-v-397545ee] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0.5rem;\n border-radius: var(--border-radius-big);\n color: var(--color-navbar-text);\n background-color: transparent;\n transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;\n border: none;\n cursor: pointer;\n}\n.menu-icon[data-v-397545ee] {\n display: block;\n height: 1.5rem;\n width: 1.5rem;\n}\n";
|
|
537
545
|
styleInject(css_248z$i);
|
|
538
546
|
|
|
539
547
|
script$i.render = render$i;
|
|
@@ -587,7 +595,7 @@ var script$h = defineComponent({
|
|
|
587
595
|
}
|
|
588
596
|
});
|
|
589
597
|
|
|
590
|
-
const _hoisted_1$
|
|
598
|
+
const _hoisted_1$e = { class: "navbar" };
|
|
591
599
|
const _hoisted_2$8 = { class: "navbar-container" };
|
|
592
600
|
const _hoisted_3$7 = { class: "flex-header" };
|
|
593
601
|
const _hoisted_4$2 = { class: "menu-toggle" };
|
|
@@ -600,7 +608,7 @@ function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
600
608
|
const _component_right_content = resolveComponent("right-content");
|
|
601
609
|
const _component_mobile_navigation_links = resolveComponent("mobile-navigation-links");
|
|
602
610
|
|
|
603
|
-
return (openBlock(), createElementBlock("nav", _hoisted_1$
|
|
611
|
+
return (openBlock(), createElementBlock("nav", _hoisted_1$e, [
|
|
604
612
|
createElementVNode("div", _hoisted_2$8, [
|
|
605
613
|
createElementVNode("div", _hoisted_3$7, [
|
|
606
614
|
createElementVNode("div", _hoisted_4$2, [
|
|
@@ -633,7 +641,7 @@ function render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
633
641
|
]))
|
|
634
642
|
}
|
|
635
643
|
|
|
636
|
-
var css_248z$h = "\n.navbar[data-v-1b5caf34] {\n
|
|
644
|
+
var css_248z$h = "\n.navbar[data-v-1b5caf34] {\n}\n.navbar-container[data-v-1b5caf34] {\n max-width: 80rem;\n margin-left: auto;\n margin-right: auto;\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n background-color: var(--color-navbar-background);\n}\n.flex-header[data-v-1b5caf34] {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 4rem;\n}\n.menu-toggle[data-v-1b5caf34] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n}\n.title-container[data-v-1b5caf34] {\n flex: 1 1 0%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n@media (min-width: 640px) {\n.navbar-container[data-v-1b5caf34] {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.menu-toggle[data-v-1b5caf34] {\n display: none;\n}\n.title-container[data-v-1b5caf34] {\n align-items: stretch;\n justify-content: flex-start;\n}\n}\n@media (min-width: 1024px) {\n.navbar-container[data-v-1b5caf34] {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n}\n";
|
|
637
645
|
styleInject(css_248z$h);
|
|
638
646
|
|
|
639
647
|
script$h.render = render$h;
|
|
@@ -644,10 +652,10 @@ var script$g = defineComponent({
|
|
|
644
652
|
name: "StyledTable",
|
|
645
653
|
});
|
|
646
654
|
|
|
647
|
-
const _hoisted_1$
|
|
655
|
+
const _hoisted_1$d = { class: "styled-table" };
|
|
648
656
|
|
|
649
657
|
function render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
650
|
-
return (openBlock(), createElementBlock("table", _hoisted_1$
|
|
658
|
+
return (openBlock(), createElementBlock("table", _hoisted_1$d, [
|
|
651
659
|
renderSlot(_ctx.$slots, "default")
|
|
652
660
|
]))
|
|
653
661
|
}
|
|
@@ -663,8 +671,24 @@ var script$f = defineComponent({
|
|
|
663
671
|
name: "RegularButton",
|
|
664
672
|
props: {
|
|
665
673
|
text: String,
|
|
674
|
+
loading: {
|
|
675
|
+
type: Boolean,
|
|
676
|
+
default: false,
|
|
677
|
+
},
|
|
678
|
+
textWhileLoading: {
|
|
679
|
+
type: String,
|
|
680
|
+
default: '...',
|
|
681
|
+
},
|
|
666
682
|
},
|
|
667
683
|
emits: ['click'],
|
|
684
|
+
computed: {
|
|
685
|
+
cssClass: function () {
|
|
686
|
+
if (this.loading) {
|
|
687
|
+
return 'regular-button loading';
|
|
688
|
+
}
|
|
689
|
+
return 'regular-button'
|
|
690
|
+
},
|
|
691
|
+
},
|
|
668
692
|
methods: {
|
|
669
693
|
onClick(evt) {
|
|
670
694
|
this.$emit('click', evt);
|
|
@@ -672,14 +696,17 @@ var script$f = defineComponent({
|
|
|
672
696
|
},
|
|
673
697
|
});
|
|
674
698
|
|
|
699
|
+
const _hoisted_1$c = ["disabled"];
|
|
700
|
+
|
|
675
701
|
function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
676
702
|
return (openBlock(), createElementBlock("button", {
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
703
|
+
onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.onClick && _ctx.onClick(...args))),
|
|
704
|
+
class: normalizeClass(_ctx.cssClass),
|
|
705
|
+
disabled: _ctx.loading
|
|
706
|
+
}, toDisplayString(_ctx.loading ? _ctx.textWhileLoading : _ctx.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$c))
|
|
680
707
|
}
|
|
681
708
|
|
|
682
|
-
var css_248z$f = "\n.regular-button[data-v-7c962c54] {\n background-color: var(--color-regular);\n color: var(--color-regular-text);\n font-weight: var(--font-weight-bold);\n padding: var(--button-padding);\n border-radius: var(--border-radius-base);\n border: var(--button-border);\n cursor: pointer;\n transition: var(--button-transition);\n}\n.regular-button[data-v-7c962c54]:hover {\n background-color: var(--color-regular-hover);\n}\n";
|
|
709
|
+
var css_248z$f = "\n.regular-button[data-v-7c962c54] {\n background-color: var(--color-regular);\n color: var(--color-regular-text);\n font-weight: var(--font-weight-bold);\n padding: var(--button-padding);\n border-radius: var(--border-radius-base);\n border: var(--button-border);\n cursor: pointer;\n transition: var(--button-transition);\n}\n.regular-button[data-v-7c962c54]:hover {\n background-color: var(--color-regular-hover);\n}\n\n/* Loading state */\n.loading[data-v-7c962c54] {\n background-color: var(--color-regular-disabled);\n cursor: wait;\n}\n.loading[data-v-7c962c54]:hover {\n background-color: var(--color-regular-disabled);\n}\n";
|
|
683
710
|
styleInject(css_248z$f);
|
|
684
711
|
|
|
685
712
|
script$f.render = render$f;
|