@namelivia/vue-components 1.2.0 → 1.3.1

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/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, toDisplayString, createStaticVNode, createElementVNode, renderSlot, withDirectives, Fragment, renderList, vModelSelect, createCommentVNode, normalizeClass, resolveComponent, createBlock, Transition, withCtx, createVNode } from 'vue';
2
2
 
3
- var script$s = defineComponent({
3
+ var script$t = defineComponent({
4
4
  name: 'SectionTitle',
5
5
  props: {
6
6
  text: {
@@ -10,73 +10,73 @@ var script$s = defineComponent({
10
10
  }
11
11
  });
12
12
 
13
- const _hoisted_1$o = { class: "text-center text-6xl leading-relaxed" };
13
+ const _hoisted_1$p = { class: "text-center text-6xl leading-relaxed" };
14
14
 
15
- function render$s(_ctx, _cache) {
16
- return (openBlock(), createElementBlock("h1", _hoisted_1$o, toDisplayString(_ctx.text), 1 /* TEXT */))
15
+ function render$t(_ctx, _cache) {
16
+ return (openBlock(), createElementBlock("h1", _hoisted_1$p, toDisplayString(_ctx.text), 1 /* TEXT */))
17
17
  }
18
18
 
19
- script$s.render = render$s;
20
- script$s.__file = "src/SectionTitle.vue";
19
+ script$t.render = render$t;
20
+ script$t.__file = "src/SectionTitle.vue";
21
21
 
22
- var script$r = defineComponent({
22
+ var script$s = defineComponent({
23
23
  name: "Loading",
24
24
  props: {
25
25
  text: String,
26
26
  },
27
27
  });
28
28
 
29
- const _hoisted_1$n = /*#__PURE__*/createStaticVNode("<h1 class=\"text-center.text-1xl.leading-relaxed\">Loading...</h1><div class=\"flex items-center justify-center space-x-2 animate-bounce\"><div class=\"w-8 h-8 bg-blue-400 rounded-full\"></div><div class=\"w-8 h-8 bg-green-400 rounded-full\"></div><div class=\"w-8 h-8 bg-red-400 rounded-full\"></div></div>", 2);
30
- const _hoisted_3$9 = [
31
- _hoisted_1$n
29
+ const _hoisted_1$o = /*#__PURE__*/createStaticVNode("<h1 class=\"text-center.text-1xl.leading-relaxed\">Loading...</h1><div class=\"flex items-center justify-center space-x-2 animate-bounce\"><div class=\"w-8 h-8 bg-blue-400 rounded-full\"></div><div class=\"w-8 h-8 bg-green-400 rounded-full\"></div><div class=\"w-8 h-8 bg-red-400 rounded-full\"></div></div>", 2);
30
+ const _hoisted_3$a = [
31
+ _hoisted_1$o
32
32
  ];
33
33
 
34
- function render$r(_ctx, _cache) {
35
- return (openBlock(), createElementBlock("div", null, _hoisted_3$9))
34
+ function render$s(_ctx, _cache) {
35
+ return (openBlock(), createElementBlock("div", null, _hoisted_3$a))
36
36
  }
37
37
 
38
- script$r.render = render$r;
39
- script$r.__file = "src/Loading.vue";
38
+ script$s.render = render$s;
39
+ script$s.__file = "src/Loading.vue";
40
40
 
41
- var script$q = defineComponent({
41
+ var script$r = defineComponent({
42
42
  name: "ResetButton",
43
43
  props: {
44
44
  text: String,
45
45
  },
46
46
  });
47
47
 
48
- const _hoisted_1$m = {
48
+ const _hoisted_1$n = {
49
49
  class: "bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",
50
50
  type: "reset"
51
51
  };
52
52
 
53
- function render$q(_ctx, _cache) {
54
- return (openBlock(), createElementBlock("button", _hoisted_1$m, toDisplayString(_ctx.text), 1 /* TEXT */))
53
+ function render$r(_ctx, _cache) {
54
+ return (openBlock(), createElementBlock("button", _hoisted_1$n, toDisplayString(_ctx.text), 1 /* TEXT */))
55
55
  }
56
56
 
57
- script$q.render = render$q;
58
- script$q.__file = "src/ResetButton.vue";
57
+ script$r.render = render$r;
58
+ script$r.__file = "src/ResetButton.vue";
59
59
 
60
- var script$p = defineComponent({
60
+ var script$q = defineComponent({
61
61
  name: "SubmitButton",
62
62
  props: {
63
63
  text: String,
64
64
  },
65
65
  });
66
66
 
67
- const _hoisted_1$l = {
67
+ const _hoisted_1$m = {
68
68
  class: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",
69
69
  type: "submit"
70
70
  };
71
71
 
72
- function render$p(_ctx, _cache) {
73
- return (openBlock(), createElementBlock("button", _hoisted_1$l, toDisplayString(_ctx.text), 1 /* TEXT */))
72
+ function render$q(_ctx, _cache) {
73
+ return (openBlock(), createElementBlock("button", _hoisted_1$m, toDisplayString(_ctx.text), 1 /* TEXT */))
74
74
  }
75
75
 
76
- script$p.render = render$p;
77
- script$p.__file = "src/SubmitButton.vue";
76
+ script$q.render = render$q;
77
+ script$q.__file = "src/SubmitButton.vue";
78
78
 
79
- var script$o = defineComponent({
79
+ var script$p = defineComponent({
80
80
  name: "RegularButton",
81
81
  props: {
82
82
  text: String,
@@ -89,17 +89,17 @@ var script$o = defineComponent({
89
89
  }
90
90
  });
91
91
 
92
- function render$o(_ctx, _cache) {
92
+ function render$p(_ctx, _cache) {
93
93
  return (openBlock(), createElementBlock("button", {
94
94
  class: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",
95
95
  onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.onClick && _ctx.onClick(...args)))
96
96
  }, toDisplayString(_ctx.text), 1 /* TEXT */))
97
97
  }
98
98
 
99
- script$o.render = render$o;
100
- script$o.__file = "src/RegularButton.vue";
99
+ script$p.render = render$p;
100
+ script$p.__file = "src/RegularButton.vue";
101
101
 
102
- var script$n = defineComponent({
102
+ var script$o = defineComponent({
103
103
  name: "SecondaryButton",
104
104
  props: {
105
105
  text: String,
@@ -112,17 +112,17 @@ var script$n = defineComponent({
112
112
  }
113
113
  });
114
114
 
115
- function render$n(_ctx, _cache) {
115
+ function render$o(_ctx, _cache) {
116
116
  return (openBlock(), createElementBlock("button", {
117
117
  class: "bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded",
118
118
  onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.onClick && _ctx.onClick(...args)))
119
119
  }, toDisplayString(_ctx.text), 1 /* TEXT */))
120
120
  }
121
121
 
122
- script$n.render = render$n;
123
- script$n.__file = "src/SecondaryButton.vue";
122
+ script$o.render = render$o;
123
+ script$o.__file = "src/SecondaryButton.vue";
124
124
 
125
- var script$m = defineComponent({
125
+ var script$n = defineComponent({
126
126
  name: "DangerButton",
127
127
  props: {
128
128
  text: String,
@@ -135,35 +135,35 @@ var script$m = defineComponent({
135
135
  }
136
136
  });
137
137
 
138
- function render$m(_ctx, _cache) {
138
+ function render$n(_ctx, _cache) {
139
139
  return (openBlock(), createElementBlock("button", {
140
140
  class: "bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",
141
141
  onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.onClick && _ctx.onClick(...args)))
142
142
  }, toDisplayString(_ctx.text), 1 /* TEXT */))
143
143
  }
144
144
 
145
- script$m.render = render$m;
146
- script$m.__file = "src/DangerButton.vue";
145
+ script$n.render = render$n;
146
+ script$n.__file = "src/DangerButton.vue";
147
147
 
148
- var script$l = defineComponent({
148
+ var script$m = defineComponent({
149
149
  name: "Card"
150
150
  });
151
151
 
152
- const _hoisted_1$k = { class: "m-8" };
153
- const _hoisted_2$d = { class: "max-w-sm rounded overflow-hidden shadow-lg" };
152
+ const _hoisted_1$l = { class: "m-8" };
153
+ const _hoisted_2$e = { class: "max-w-sm rounded overflow-hidden shadow-lg" };
154
154
 
155
- function render$l(_ctx, _cache) {
156
- return (openBlock(), createElementBlock("div", _hoisted_1$k, [
157
- createElementVNode("div", _hoisted_2$d, [
155
+ function render$m(_ctx, _cache) {
156
+ return (openBlock(), createElementBlock("div", _hoisted_1$l, [
157
+ createElementVNode("div", _hoisted_2$e, [
158
158
  renderSlot(_ctx.$slots, "default")
159
159
  ])
160
160
  ]))
161
161
  }
162
162
 
163
- script$l.render = render$l;
164
- script$l.__file = "src/Card.vue";
163
+ script$m.render = render$m;
164
+ script$m.__file = "src/Card.vue";
165
165
 
166
- var script$k = defineComponent({
166
+ var script$l = defineComponent({
167
167
  name: "CardImage",
168
168
  props: {
169
169
  src: String,
@@ -185,44 +185,44 @@ var script$k = defineComponent({
185
185
  },
186
186
  });
187
187
 
188
- const _hoisted_1$j = ["src", "alt"];
188
+ const _hoisted_1$k = ["src", "alt"];
189
189
 
190
- function render$k(_ctx, _cache) {
190
+ function render$l(_ctx, _cache) {
191
191
  return (openBlock(), createElementBlock("img", {
192
192
  class: "w-full",
193
193
  src: _ctx.src,
194
194
  alt: _ctx.alt,
195
195
  ref: "image"
196
- }, null, 8 /* PROPS */, _hoisted_1$j))
196
+ }, null, 8 /* PROPS */, _hoisted_1$k))
197
197
  }
198
198
 
199
- script$k.render = render$k;
200
- script$k.__file = "src/CardImage.vue";
199
+ script$l.render = render$l;
200
+ script$l.__file = "src/CardImage.vue";
201
201
 
202
- var script$j = defineComponent({
202
+ var script$k = defineComponent({
203
203
  name: "CardBody",
204
204
  props: {
205
205
  title: String,
206
206
  },
207
207
  });
208
208
 
209
- const _hoisted_1$i = { class: "px-6 py-4" };
210
- const _hoisted_2$c = { class: "font-bold text-xl mb-2" };
211
- const _hoisted_3$8 = { class: "text-gray-700 text-base" };
209
+ const _hoisted_1$j = { class: "px-6 py-4" };
210
+ const _hoisted_2$d = { class: "font-bold text-xl mb-2" };
211
+ const _hoisted_3$9 = { class: "text-gray-700 text-base" };
212
212
 
213
- function render$j(_ctx, _cache) {
214
- return (openBlock(), createElementBlock("div", _hoisted_1$i, [
215
- createElementVNode("div", _hoisted_2$c, toDisplayString(_ctx.title), 1 /* TEXT */),
216
- createElementVNode("p", _hoisted_3$8, [
213
+ function render$k(_ctx, _cache) {
214
+ return (openBlock(), createElementBlock("div", _hoisted_1$j, [
215
+ createElementVNode("div", _hoisted_2$d, toDisplayString(_ctx.title), 1 /* TEXT */),
216
+ createElementVNode("p", _hoisted_3$9, [
217
217
  renderSlot(_ctx.$slots, "default")
218
218
  ])
219
219
  ]))
220
220
  }
221
221
 
222
- script$j.render = render$j;
223
- script$j.__file = "src/CardBody.vue";
222
+ script$k.render = render$k;
223
+ script$k.__file = "src/CardBody.vue";
224
224
 
225
- var script$i = defineComponent({
225
+ var script$j = defineComponent({
226
226
  name: "Selector",
227
227
  props: {
228
228
  id: {
@@ -261,9 +261,9 @@ var script$i = defineComponent({
261
261
  },
262
262
  });
263
263
 
264
- const _hoisted_1$h = { class: "mb-4" };
265
- const _hoisted_2$b = ["for"];
266
- const _hoisted_3$7 = { class: "relative" };
264
+ const _hoisted_1$i = { class: "mb-4" };
265
+ const _hoisted_2$c = ["for"];
266
+ const _hoisted_3$8 = { class: "relative" };
267
267
  const _hoisted_4$1 = ["id"];
268
268
  const _hoisted_5$1 = ["value", "disabled"];
269
269
  const _hoisted_6 = /*#__PURE__*/createElementVNode("div", { class: "pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700" }, [
@@ -276,13 +276,13 @@ const _hoisted_6 = /*#__PURE__*/createElementVNode("div", { class: "pointer-even
276
276
  ])
277
277
  ], -1 /* HOISTED */);
278
278
 
279
- function render$i(_ctx, _cache) {
280
- return (openBlock(), createElementBlock("div", _hoisted_1$h, [
279
+ function render$j(_ctx, _cache) {
280
+ return (openBlock(), createElementBlock("div", _hoisted_1$i, [
281
281
  createElementVNode("label", {
282
282
  class: "block text-gray-700 text-sm font-bold mb-2",
283
283
  for: _ctx.id
284
- }, toDisplayString(_ctx.label), 9 /* TEXT, PROPS */, _hoisted_2$b),
285
- createElementVNode("div", _hoisted_3$7, [
284
+ }, toDisplayString(_ctx.label), 9 /* TEXT, PROPS */, _hoisted_2$c),
285
+ createElementVNode("div", _hoisted_3$8, [
286
286
  withDirectives(createElementVNode("select", {
287
287
  class: "block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500",
288
288
  id: _ctx.id,
@@ -304,10 +304,10 @@ function render$i(_ctx, _cache) {
304
304
  ]))
305
305
  }
306
306
 
307
- script$i.render = render$i;
308
- script$i.__file = "src/Selector.vue";
307
+ script$j.render = render$j;
308
+ script$j.__file = "src/Selector.vue";
309
309
 
310
- var script$h = defineComponent({
310
+ var script$i = defineComponent({
311
311
  name: "TextInput",
312
312
  props: {
313
313
  id: {
@@ -335,16 +335,16 @@ var script$h = defineComponent({
335
335
 
336
336
  });
337
337
 
338
- const _hoisted_1$g = { class: "mb-4" };
339
- const _hoisted_2$a = ["for"];
340
- const _hoisted_3$6 = ["id", "name", "required", "placeholder", "value"];
338
+ const _hoisted_1$h = { class: "mb-4" };
339
+ const _hoisted_2$b = ["for"];
340
+ const _hoisted_3$7 = ["id", "name", "required", "placeholder", "value"];
341
341
 
342
- function render$h(_ctx, _cache) {
343
- return (openBlock(), createElementBlock("div", _hoisted_1$g, [
342
+ function render$i(_ctx, _cache) {
343
+ return (openBlock(), createElementBlock("div", _hoisted_1$h, [
344
344
  createElementVNode("label", {
345
345
  class: "block text-gray-700 text-sm font-bold mb-2",
346
346
  for: _ctx.id
347
- }, toDisplayString(_ctx.label), 9 /* TEXT, PROPS */, _hoisted_2$a),
347
+ }, toDisplayString(_ctx.label), 9 /* TEXT, PROPS */, _hoisted_2$b),
348
348
  createElementVNode("input", {
349
349
  class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",
350
350
  id: _ctx.id,
@@ -354,14 +354,14 @@ function render$h(_ctx, _cache) {
354
354
  value: _ctx.text,
355
355
  onInput: _cache[0] || (_cache[0] = (...args) => (_ctx.onInput && _ctx.onInput(...args))),
356
356
  type: "text"
357
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_3$6)
357
+ }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_3$7)
358
358
  ]))
359
359
  }
360
360
 
361
- script$h.render = render$h;
362
- script$h.__file = "src/TextInput.vue";
361
+ script$i.render = render$i;
362
+ script$i.__file = "src/TextInput.vue";
363
363
 
364
- var script$g = defineComponent({
364
+ var script$h = defineComponent({
365
365
  name: "CheckBoxInput",
366
366
  props: {
367
367
  id: {
@@ -388,11 +388,11 @@ var script$g = defineComponent({
388
388
  },
389
389
  });
390
390
 
391
- const _hoisted_1$f = { class: "mb-4" };
392
- const _hoisted_2$9 = ["id", "name", "required", "value"];
391
+ const _hoisted_1$g = { class: "mb-4" };
392
+ const _hoisted_2$a = ["id", "name", "required", "value"];
393
393
 
394
- function render$g(_ctx, _cache) {
395
- return (openBlock(), createElementBlock("div", _hoisted_1$f, [
394
+ function render$h(_ctx, _cache) {
395
+ return (openBlock(), createElementBlock("div", _hoisted_1$g, [
396
396
  createElementVNode("input", {
397
397
  id: _ctx.id,
398
398
  name: _ctx.id,
@@ -401,16 +401,16 @@ function render$g(_ctx, _cache) {
401
401
  onInput: _cache[0] || (_cache[0] = (...args) => (_ctx.onInput && _ctx.onInput(...args))),
402
402
  type: "checkbox",
403
403
  "unchecked-value": "false"
404
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_2$9),
404
+ }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_2$a),
405
405
  createCommentVNode("TODO: This seems not to work"),
406
406
  createCommentVNode("label(class=\"block text-gray-700 text-sm font-bold\" :for=\"id\") {{ label }}")
407
407
  ]))
408
408
  }
409
409
 
410
- script$g.render = render$g;
411
- script$g.__file = "src/CheckBoxInput.vue";
410
+ script$h.render = render$h;
411
+ script$h.__file = "src/CheckBoxInput.vue";
412
412
 
413
- var script$f = defineComponent({
413
+ var script$g = defineComponent({
414
414
  name: "NumberInput",
415
415
  props: {
416
416
  id: {
@@ -444,16 +444,16 @@ var script$f = defineComponent({
444
444
 
445
445
  });
446
446
 
447
- const _hoisted_1$e = { class: "mb-4" };
448
- const _hoisted_2$8 = ["for"];
449
- const _hoisted_3$5 = ["id", "name", "required", "placeholder", "value", "min", "step"];
447
+ const _hoisted_1$f = { class: "mb-4" };
448
+ const _hoisted_2$9 = ["for"];
449
+ const _hoisted_3$6 = ["id", "name", "required", "placeholder", "value", "min", "step"];
450
450
 
451
- function render$f(_ctx, _cache) {
452
- return (openBlock(), createElementBlock("div", _hoisted_1$e, [
451
+ function render$g(_ctx, _cache) {
452
+ return (openBlock(), createElementBlock("div", _hoisted_1$f, [
453
453
  createElementVNode("label", {
454
454
  class: "block text-gray-700 text-sm font-bold mb-2",
455
455
  for: _ctx.id
456
- }, toDisplayString(_ctx.label), 9 /* TEXT, PROPS */, _hoisted_2$8),
456
+ }, toDisplayString(_ctx.label), 9 /* TEXT, PROPS */, _hoisted_2$9),
457
457
  createElementVNode("input", {
458
458
  class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",
459
459
  id: _ctx.id,
@@ -465,14 +465,14 @@ function render$f(_ctx, _cache) {
465
465
  step: _ctx.step,
466
466
  onInput: _cache[0] || (_cache[0] = (...args) => (_ctx.onInput && _ctx.onInput(...args))),
467
467
  type: "number"
468
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_3$5)
468
+ }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_3$6)
469
469
  ]))
470
470
  }
471
471
 
472
- script$f.render = render$f;
473
- script$f.__file = "src/NumberInput.vue";
472
+ script$g.render = render$g;
473
+ script$g.__file = "src/NumberInput.vue";
474
474
 
475
- var script$e = defineComponent({
475
+ var script$f = defineComponent({
476
476
  name: "ImageInput",
477
477
  props: {
478
478
  id: {
@@ -502,16 +502,16 @@ var script$e = defineComponent({
502
502
  },
503
503
  });
504
504
 
505
- const _hoisted_1$d = { class: "mb-4" };
506
- const _hoisted_2$7 = ["for"];
507
- const _hoisted_3$4 = ["id", "name", "required", "placeholder", "value", "drop-placeholder"];
505
+ const _hoisted_1$e = { class: "mb-4" };
506
+ const _hoisted_2$8 = ["for"];
507
+ const _hoisted_3$5 = ["id", "name", "required", "placeholder", "value", "drop-placeholder"];
508
508
 
509
- function render$e(_ctx, _cache, $props, $setup, $data, $options) {
510
- return (openBlock(), createElementBlock("div", _hoisted_1$d, [
509
+ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
510
+ return (openBlock(), createElementBlock("div", _hoisted_1$e, [
511
511
  createElementVNode("label", {
512
512
  class: "block text-gray-700 text-sm font-bold mb-2",
513
513
  for: _ctx.id
514
- }, toDisplayString(_ctx.label), 9 /* TEXT, PROPS */, _hoisted_2$7),
514
+ }, toDisplayString(_ctx.label), 9 /* TEXT, PROPS */, _hoisted_2$8),
515
515
  createElementVNode("input", {
516
516
  class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",
517
517
  id: _ctx.id,
@@ -523,44 +523,44 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
523
523
  onInput: _cache[0] || (_cache[0] = (...args) => (_ctx.onInput && _ctx.onInput(...args))),
524
524
  type: "file",
525
525
  accept: "image/*"
526
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_3$4)
526
+ }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_3$5)
527
527
  ]))
528
528
  }
529
529
 
530
- script$e.render = render$e;
531
- script$e.__file = "src/ImageInput.vue";
530
+ script$f.render = render$f;
531
+ script$f.__file = "src/ImageInput.vue";
532
532
 
533
- var script$d = defineComponent({
533
+ var script$e = defineComponent({
534
534
  name: "CardGrid"
535
535
  });
536
536
 
537
- const _hoisted_1$c = { class: "flex flex-wrap lg:justify-between justify-center align-content:center" };
537
+ const _hoisted_1$d = { class: "flex flex-wrap lg:justify-between justify-center align-content:center" };
538
538
 
539
- function render$d(_ctx, _cache) {
540
- return (openBlock(), createElementBlock("div", _hoisted_1$c, [
539
+ function render$e(_ctx, _cache) {
540
+ return (openBlock(), createElementBlock("div", _hoisted_1$d, [
541
541
  renderSlot(_ctx.$slots, "default")
542
542
  ]))
543
543
  }
544
544
 
545
- script$d.render = render$d;
546
- script$d.__file = "src/CardGrid.vue";
545
+ script$e.render = render$e;
546
+ script$e.__file = "src/CardGrid.vue";
547
547
 
548
- var script$c = defineComponent({
548
+ var script$d = defineComponent({
549
549
  name: "Container"
550
550
  });
551
551
 
552
- const _hoisted_1$b = { class: "container mx-auto" };
552
+ const _hoisted_1$c = { class: "container mx-auto" };
553
553
 
554
- function render$c(_ctx, _cache) {
555
- return (openBlock(), createElementBlock("div", _hoisted_1$b, [
554
+ function render$d(_ctx, _cache) {
555
+ return (openBlock(), createElementBlock("div", _hoisted_1$c, [
556
556
  renderSlot(_ctx.$slots, "default")
557
557
  ]))
558
558
  }
559
559
 
560
- script$c.render = render$c;
561
- script$c.__file = "src/Container.vue";
560
+ script$d.render = render$d;
561
+ script$d.__file = "src/Container.vue";
562
562
 
563
- var script$b = defineComponent({
563
+ var script$c = defineComponent({
564
564
  name: "MobileNavigationLink",
565
565
  props: {
566
566
  text: {
@@ -583,23 +583,23 @@ var script$b = defineComponent({
583
583
  },
584
584
  });
585
585
 
586
- const _hoisted_1$a = ["href"];
586
+ const _hoisted_1$b = ["href"];
587
587
 
588
- function render$b(_ctx, _cache) {
588
+ function render$c(_ctx, _cache) {
589
589
  return (openBlock(), createElementBlock("a", {
590
590
  href: _ctx.href,
591
591
  class: normalizeClass(_ctx.linkClass),
592
592
  "aria-current": "page"
593
- }, toDisplayString(_ctx.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$a))
593
+ }, toDisplayString(_ctx.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$b))
594
594
  }
595
595
 
596
- script$b.render = render$b;
597
- script$b.__file = "src/MobileNavigationLink.vue";
596
+ script$c.render = render$c;
597
+ script$c.__file = "src/MobileNavigationLink.vue";
598
598
 
599
- var script$a = defineComponent({
599
+ var script$b = defineComponent({
600
600
  name: "MobileNavigationLinks",
601
601
  components: {
602
- MobileNavigationLink: script$b,
602
+ MobileNavigationLink: script$c,
603
603
  },
604
604
  props: {
605
605
  links: {
@@ -612,14 +612,14 @@ var script$a = defineComponent({
612
612
  },
613
613
  });
614
614
 
615
- const _hoisted_1$9 = {
615
+ const _hoisted_1$a = {
616
616
  key: 0,
617
617
  class: "sm:hidden",
618
618
  id: "mobile-menu"
619
619
  };
620
- const _hoisted_2$6 = { class: "px-2 pt-2 pb-3 space-y-1" };
620
+ const _hoisted_2$7 = { class: "px-2 pt-2 pb-3 space-y-1" };
621
621
 
622
- function render$a(_ctx, _cache) {
622
+ function render$b(_ctx, _cache) {
623
623
  const _component_mobile_navigation_link = resolveComponent("mobile-navigation-link");
624
624
 
625
625
  return (openBlock(), createBlock(Transition, {
@@ -632,8 +632,8 @@ function render$a(_ctx, _cache) {
632
632
  }, {
633
633
  default: withCtx(() => [
634
634
  (_ctx.open)
635
- ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
636
- createElementVNode("div", _hoisted_2$6, [
635
+ ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
636
+ createElementVNode("div", _hoisted_2$7, [
637
637
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.links, (link) => {
638
638
  return (openBlock(), createBlock(_component_mobile_navigation_link, {
639
639
  key: link.id,
@@ -649,10 +649,10 @@ function render$a(_ctx, _cache) {
649
649
  }))
650
650
  }
651
651
 
652
- script$a.render = render$a;
653
- script$a.__file = "src/MobileNavigationLinks.vue";
652
+ script$b.render = render$b;
653
+ script$b.__file = "src/MobileNavigationLinks.vue";
654
654
 
655
- var script$9 = defineComponent({
655
+ var script$a = defineComponent({
656
656
  name: "NavigationLink",
657
657
  props: {
658
658
  text: {
@@ -675,23 +675,23 @@ var script$9 = defineComponent({
675
675
  },
676
676
  });
677
677
 
678
- const _hoisted_1$8 = ["href"];
678
+ const _hoisted_1$9 = ["href"];
679
679
 
680
- function render$9(_ctx, _cache) {
680
+ function render$a(_ctx, _cache) {
681
681
  return (openBlock(), createElementBlock("a", {
682
682
  href: _ctx.href,
683
683
  class: normalizeClass(_ctx.linkClass),
684
684
  "aria-current": "page"
685
- }, toDisplayString(_ctx.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$8))
685
+ }, toDisplayString(_ctx.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_1$9))
686
686
  }
687
687
 
688
- script$9.render = render$9;
689
- script$9.__file = "src/NavigationLink.vue";
688
+ script$a.render = render$a;
689
+ script$a.__file = "src/NavigationLink.vue";
690
690
 
691
- var script$8 = defineComponent({
691
+ var script$9 = defineComponent({
692
692
  name: "NavigationLinks",
693
693
  components: {
694
- NavigationLink: script$9,
694
+ NavigationLink: script$a,
695
695
  },
696
696
  props: {
697
697
  links: {
@@ -700,14 +700,14 @@ var script$8 = defineComponent({
700
700
  },
701
701
  });
702
702
 
703
- const _hoisted_1$7 = { class: "hidden sm:block sm:ml-6" };
704
- const _hoisted_2$5 = { class: "flex space-x-4" };
703
+ const _hoisted_1$8 = { class: "hidden sm:block sm:ml-6" };
704
+ const _hoisted_2$6 = { class: "flex space-x-4" };
705
705
 
706
- function render$8(_ctx, _cache) {
706
+ function render$9(_ctx, _cache) {
707
707
  const _component_navigation_link = resolveComponent("navigation-link");
708
708
 
709
- return (openBlock(), createElementBlock("div", _hoisted_1$7, [
710
- createElementVNode("div", _hoisted_2$5, [
709
+ return (openBlock(), createElementBlock("div", _hoisted_1$8, [
710
+ createElementVNode("div", _hoisted_2$6, [
711
711
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.links, (link) => {
712
712
  return (openBlock(), createBlock(_component_navigation_link, {
713
713
  key: link.id,
@@ -719,10 +719,10 @@ function render$8(_ctx, _cache) {
719
719
  ]))
720
720
  }
721
721
 
722
- script$8.render = render$8;
723
- script$8.__file = "src/NavigationLinks.vue";
722
+ script$9.render = render$9;
723
+ script$9.__file = "src/NavigationLinks.vue";
724
724
 
725
- var script$7 = defineComponent({
725
+ var script$8 = defineComponent({
726
726
  name: "NavbarTitle",
727
727
  props: {
728
728
  href: {
@@ -740,11 +740,11 @@ var script$7 = defineComponent({
740
740
  }
741
741
  });
742
742
 
743
- const _hoisted_1$6 = ["href"];
744
- const _hoisted_2$4 = ["src", "alt"];
745
- const _hoisted_3$3 = ["src", "alt"];
743
+ const _hoisted_1$7 = ["href"];
744
+ const _hoisted_2$5 = ["src", "alt"];
745
+ const _hoisted_3$4 = ["src", "alt"];
746
746
 
747
- function render$7(_ctx, _cache) {
747
+ function render$8(_ctx, _cache) {
748
748
  return (openBlock(), createElementBlock("a", {
749
749
  class: "flex-shrink-0 flex items-center",
750
750
  href: _ctx.href
@@ -753,19 +753,19 @@ function render$7(_ctx, _cache) {
753
753
  class: "block lg:hidden h-8 w-auto",
754
754
  src: _ctx.imageSmall,
755
755
  alt: _ctx.title
756
- }, null, 8 /* PROPS */, _hoisted_2$4),
756
+ }, null, 8 /* PROPS */, _hoisted_2$5),
757
757
  createElementVNode("img", {
758
758
  class: "hidden lg:block h-8 w-auto",
759
759
  src: _ctx.imageBig,
760
760
  alt: _ctx.title
761
- }, null, 8 /* PROPS */, _hoisted_3$3)
762
- ], 8 /* PROPS */, _hoisted_1$6))
761
+ }, null, 8 /* PROPS */, _hoisted_3$4)
762
+ ], 8 /* PROPS */, _hoisted_1$7))
763
763
  }
764
764
 
765
- script$7.render = render$7;
766
- script$7.__file = "src/NavbarTitle.vue";
765
+ script$8.render = render$8;
766
+ script$8.__file = "src/NavbarTitle.vue";
767
767
 
768
- var script$6 = defineComponent({
768
+ var script$7 = defineComponent({
769
769
  name: "RightContent",
770
770
  props: {
771
771
  locale: {
@@ -777,21 +777,21 @@ var script$6 = defineComponent({
777
777
  },
778
778
  });
779
779
 
780
- const _hoisted_1$5 = { class: "absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0" };
781
- const _hoisted_2$3 = { class: "bg-gray-800 p-1 text-gray-400" };
782
- const _hoisted_3$2 = { class: "bg-gray-800 p-1 text-gray-400" };
780
+ const _hoisted_1$6 = { class: "absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0" };
781
+ const _hoisted_2$4 = { class: "bg-gray-800 p-1 text-gray-400" };
782
+ const _hoisted_3$3 = { class: "bg-gray-800 p-1 text-gray-400" };
783
783
 
784
- function render$6(_ctx, _cache) {
785
- return (openBlock(), createElementBlock("div", _hoisted_1$5, [
786
- createElementVNode("span", _hoisted_2$3, toDisplayString(_ctx.$i18n.locale), 1 /* TEXT */),
787
- createElementVNode("span", _hoisted_3$2, toDisplayString(_ctx.currentUserEmail), 1 /* TEXT */)
784
+ function render$7(_ctx, _cache) {
785
+ return (openBlock(), createElementBlock("div", _hoisted_1$6, [
786
+ createElementVNode("span", _hoisted_2$4, toDisplayString(_ctx.$i18n.locale), 1 /* TEXT */),
787
+ createElementVNode("span", _hoisted_3$3, toDisplayString(_ctx.currentUserEmail), 1 /* TEXT */)
788
788
  ]))
789
789
  }
790
790
 
791
- script$6.render = render$6;
792
- script$6.__file = "src/RightContent.vue";
791
+ script$7.render = render$7;
792
+ script$7.__file = "src/RightContent.vue";
793
793
 
794
- var script$5 = defineComponent({
794
+ var script$6 = defineComponent({
795
795
  name: "MobileMenuButton",
796
796
  props: {
797
797
  open: {
@@ -807,7 +807,7 @@ var script$5 = defineComponent({
807
807
  }
808
808
  });
809
809
 
810
- const _hoisted_1$4 = /*#__PURE__*/createElementVNode("svg", {
810
+ const _hoisted_1$5 = /*#__PURE__*/createElementVNode("svg", {
811
811
  class: "block h-6 w-6",
812
812
  xmlns: "http://www.w3.org/2000/svg",
813
813
  fill: "none",
@@ -821,29 +821,29 @@ const _hoisted_1$4 = /*#__PURE__*/createElementVNode("svg", {
821
821
  d: "M4 6h16M4 12h16M4 18h16"
822
822
  })
823
823
  ], -1 /* HOISTED */);
824
- const _hoisted_2$2 = [
825
- _hoisted_1$4
824
+ const _hoisted_2$3 = [
825
+ _hoisted_1$5
826
826
  ];
827
827
 
828
- function render$5(_ctx, _cache) {
828
+ function render$6(_ctx, _cache) {
829
829
  return (openBlock(), createElementBlock("button", {
830
830
  class: "inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",
831
831
  type: "button",
832
832
  onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.onClick && _ctx.onClick(...args)))
833
- }, _hoisted_2$2))
833
+ }, _hoisted_2$3))
834
834
  }
835
835
 
836
- script$5.render = render$5;
837
- script$5.__file = "src/MobileMenuButton.vue";
836
+ script$6.render = render$6;
837
+ script$6.__file = "src/MobileMenuButton.vue";
838
838
 
839
- var script$4 = defineComponent({
839
+ var script$5 = defineComponent({
840
840
  name: "Navbar",
841
841
  components: {
842
- NavbarTitle: script$7,
843
- NavigationLinks: script$8,
844
- MobileNavigationLinks: script$a,
845
- RightContent: script$6,
846
- MobileMenuButton: script$5,
842
+ NavbarTitle: script$8,
843
+ NavigationLinks: script$9,
844
+ MobileNavigationLinks: script$b,
845
+ RightContent: script$7,
846
+ MobileMenuButton: script$6,
847
847
  },
848
848
  data() {
849
849
  return {
@@ -877,22 +877,22 @@ var script$4 = defineComponent({
877
877
  }
878
878
  });
879
879
 
880
- const _hoisted_1$3 = { class: "bg-gray-800" };
881
- const _hoisted_2$1 = { class: "max-w-7xl mx-auto px-2 sm:px-6 lg:px-8" };
882
- const _hoisted_3$1 = { class: "relative flex items-center justify-between h-16" };
880
+ const _hoisted_1$4 = { class: "bg-gray-800" };
881
+ const _hoisted_2$2 = { class: "max-w-7xl mx-auto px-2 sm:px-6 lg:px-8" };
882
+ const _hoisted_3$2 = { class: "relative flex items-center justify-between h-16" };
883
883
  const _hoisted_4 = { class: "absolute inset-y-0 left-0 flex items-center sm:hidden" };
884
884
  const _hoisted_5 = { class: "flex-1 flex items-center justify-center sm:items-stretch sm:justify-start" };
885
885
 
886
- function render$4(_ctx, _cache) {
886
+ function render$5(_ctx, _cache) {
887
887
  const _component_mobile_menu_button = resolveComponent("mobile-menu-button");
888
888
  const _component_navbar_title = resolveComponent("navbar-title");
889
889
  const _component_navigation_links = resolveComponent("navigation-links");
890
890
  const _component_right_content = resolveComponent("right-content");
891
891
  const _component_mobile_navigation_links = resolveComponent("mobile-navigation-links");
892
892
 
893
- return (openBlock(), createElementBlock("nav", _hoisted_1$3, [
894
- createElementVNode("div", _hoisted_2$1, [
895
- createElementVNode("div", _hoisted_3$1, [
893
+ return (openBlock(), createElementBlock("nav", _hoisted_1$4, [
894
+ createElementVNode("div", _hoisted_2$2, [
895
+ createElementVNode("div", _hoisted_3$2, [
896
896
  createElementVNode("div", _hoisted_4, [
897
897
  createVNode(_component_mobile_menu_button, {
898
898
  onClick: _ctx.onMobileMenuClick,
@@ -921,25 +921,25 @@ function render$4(_ctx, _cache) {
921
921
  ]))
922
922
  }
923
923
 
924
- script$4.render = render$4;
925
- script$4.__file = "src/Navbar.vue";
924
+ script$5.render = render$5;
925
+ script$5.__file = "src/Navbar.vue";
926
926
 
927
- var script$3 = defineComponent({
927
+ var script$4 = defineComponent({
928
928
  name: "StyledTable"
929
929
  });
930
930
 
931
- const _hoisted_1$2 = { class: "w-full border-collapse" };
931
+ const _hoisted_1$3 = { class: "w-full border-collapse" };
932
932
 
933
- function render$3(_ctx, _cache) {
934
- return (openBlock(), createElementBlock("table", _hoisted_1$2, [
933
+ function render$4(_ctx, _cache) {
934
+ return (openBlock(), createElementBlock("table", _hoisted_1$3, [
935
935
  renderSlot(_ctx.$slots, "default")
936
936
  ]))
937
937
  }
938
938
 
939
- script$3.render = render$3;
940
- script$3.__file = "src/StyledTable.vue";
939
+ script$4.render = render$4;
940
+ script$4.__file = "src/StyledTable.vue";
941
941
 
942
- var script$2 = defineComponent({
942
+ var script$3 = defineComponent({
943
943
  name: "Pagination",
944
944
  props: {
945
945
  previousLabel: String,
@@ -949,34 +949,34 @@ var script$2 = defineComponent({
949
949
  nextLink: String,
950
950
  },
951
951
  components: {
952
- RegularButton: script$o
952
+ RegularButton: script$p
953
953
  }
954
954
  });
955
955
 
956
- const _hoisted_1$1 = { class: "flex justify-between mt-4" };
957
- const _hoisted_2 = ["href"];
958
- const _hoisted_3 = ["href"];
956
+ const _hoisted_1$2 = { class: "flex justify-between mt-4" };
957
+ const _hoisted_2$1 = ["href"];
958
+ const _hoisted_3$1 = ["href"];
959
959
 
960
- function render$2(_ctx, _cache) {
960
+ function render$3(_ctx, _cache) {
961
961
  const _component_regular_button = resolveComponent("regular-button");
962
962
 
963
- return (openBlock(), createElementBlock("div", _hoisted_1$1, [
963
+ return (openBlock(), createElementBlock("div", _hoisted_1$2, [
964
964
  (_ctx.showPrevious)
965
965
  ? (openBlock(), createElementBlock("a", {
966
966
  key: 0,
967
967
  href: _ctx.previousLink
968
968
  }, [
969
969
  createVNode(_component_regular_button, { text: _ctx.previousLabel }, null, 8 /* PROPS */, ["text"])
970
- ], 8 /* PROPS */, _hoisted_2))
970
+ ], 8 /* PROPS */, _hoisted_2$1))
971
971
  : createCommentVNode("v-if", true),
972
972
  createElementVNode("a", { href: _ctx.nextLink }, [
973
973
  createVNode(_component_regular_button, { text: _ctx.nextLabel }, null, 8 /* PROPS */, ["text"])
974
- ], 8 /* PROPS */, _hoisted_3)
974
+ ], 8 /* PROPS */, _hoisted_3$1)
975
975
  ]))
976
976
  }
977
977
 
978
- script$2.render = render$2;
979
- script$2.__file = "src/Pagination.vue";
978
+ script$3.render = render$3;
979
+ script$3.__file = "src/Pagination.vue";
980
980
 
981
981
  /*! image-blob-reduce 4.1.0 https://github.com/nodeca/image-blob-reduce @license MIT */
982
982
  function commonjsRequire (path) {
@@ -4573,7 +4573,7 @@ ImageBlobReduce.pica = pica;
4573
4573
 
4574
4574
  var imageBlobReduce = ImageBlobReduce;
4575
4575
 
4576
- var script$1 = defineComponent({
4576
+ var script$2 = defineComponent({
4577
4577
  name: "ResizeImageUpload",
4578
4578
  props: {
4579
4579
  id: {
@@ -4619,7 +4619,7 @@ var script$1 = defineComponent({
4619
4619
  },
4620
4620
  });
4621
4621
 
4622
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4622
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4623
4623
  const _component_image_input = resolveComponent("image-input");
4624
4624
 
4625
4625
  return (openBlock(), createBlock(_component_image_input, {
@@ -4633,24 +4633,72 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
4633
4633
  }, null, 8 /* PROPS */, ["id", "name", "required", "placeholder", "drop-placeholder", "label", "onUpdate"]))
4634
4634
  }
4635
4635
 
4636
- script$1.render = render$1;
4637
- script$1.__file = "src/ResizeImageUpload.vue";
4636
+ script$2.render = render$2;
4637
+ script$2.__file = "src/ResizeImageUpload.vue";
4638
4638
 
4639
- var script = defineComponent({
4639
+ var script$1 = defineComponent({
4640
4640
  name: "Badge",
4641
4641
  props: {
4642
4642
  text: String,
4643
4643
  },
4644
4644
  });
4645
4645
 
4646
- const _hoisted_1 = { class: "bg-blue-100 text-blue-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-blue-200 dark:text-blue-800" };
4646
+ const _hoisted_1$1 = { class: "bg-blue-100 text-blue-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-blue-200 dark:text-blue-800 inline-block" };
4647
+
4648
+ function render$1(_ctx, _cache) {
4649
+ return (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(_ctx.text), 1 /* TEXT */))
4650
+ }
4651
+
4652
+ script$1.render = render$1;
4653
+ script$1.__file = "src/Badge.vue";
4654
+
4655
+ var script = defineComponent({
4656
+ name: "Modal",
4657
+ emits: ['cancel', 'confirm'],
4658
+ props: {
4659
+ open: Boolean,
4660
+ },
4661
+ methods: {
4662
+ onCancel(evt) {
4663
+ this.$emit('cancel', evt);
4664
+ },
4665
+ onConfirm(evt) {
4666
+ this.$emit('confirm', evt);
4667
+ },
4668
+ }
4669
+ });
4670
+
4671
+ const _hoisted_1 = {
4672
+ key: 0,
4673
+ class: "bg-slate-800 bg-opacity-50 flex justify-center items-center absolute top-0 right-0 bottom-0 left-0"
4674
+ };
4675
+ const _hoisted_2 = { class: "bg-white px-16 py-14 rounded-md text-center" };
4676
+ const _hoisted_3 = /*#__PURE__*/createElementVNode("h1", { class: "text-xl mb-4 font-bold text-slate-500" }, "Are you sure?", -1 /* HOISTED */);
4647
4677
 
4648
4678
  function render(_ctx, _cache) {
4649
- return (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.text), 1 /* TEXT */))
4679
+ const _component_secondary_button = resolveComponent("secondary-button");
4680
+ const _component_danger_button = resolveComponent("danger-button");
4681
+
4682
+ return (_ctx.open)
4683
+ ? (openBlock(), createElementBlock("div", _hoisted_1, [
4684
+ createElementVNode("div", _hoisted_2, [
4685
+ _hoisted_3,
4686
+ createVNode(_component_secondary_button, {
4687
+ onClick: _ctx.onCancel,
4688
+ text: "No"
4689
+ }, null, 8 /* PROPS */, ["onClick"]),
4690
+ createVNode(_component_danger_button, {
4691
+ class: "ml-2",
4692
+ onClick: _ctx.onConfirm,
4693
+ text: "Yes"
4694
+ }, null, 8 /* PROPS */, ["onClick"])
4695
+ ])
4696
+ ]))
4697
+ : createCommentVNode("v-if", true)
4650
4698
  }
4651
4699
 
4652
4700
  script.render = render;
4653
- script.__file = "src/Badge.vue";
4701
+ script.__file = "src/Modal.vue";
4654
4702
 
4655
- export { script as Badge, script$l as Card, script$j as CardBody, script$d as CardGrid, script$k as CardImage, script$g as CheckBoxInput, script$c as Container, script$m as DangerButton, script$e as ImageInput, script$r as Loading, script$4 as Navbar, script$f as NumberInput, script$2 as Pagination, script$o as RegularButton, script$q as ResetButton, script$1 as ResizeImageUpload, script$n as SecondaryButton, script$s as SectionTitle, script$i as Selector, script$3 as StyledTable, script$p as SubmitButton, script$h as TextInput };
4703
+ export { script$1 as Badge, script$m as Card, script$k as CardBody, script$e as CardGrid, script$l as CardImage, script$h as CheckBoxInput, script$d as Container, script$n as DangerButton, script$f as ImageInput, script$s as Loading, script as Modal, script$5 as Navbar, script$g as NumberInput, script$3 as Pagination, script$p as RegularButton, script$r as ResetButton, script$2 as ResizeImageUpload, script$o as SecondaryButton, script$t as SectionTitle, script$j as Selector, script$4 as StyledTable, script$q as SubmitButton, script$i as TextInput };
4656
4704
  //# sourceMappingURL=index.esm.js.map