@m2s2/vue-lib 2.0.0 → 2.2.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.
Files changed (88) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.mjs +34 -28
  3. package/dist/index10.cjs +1 -1
  4. package/dist/index10.mjs +8 -16
  5. package/dist/index12.cjs +1 -1
  6. package/dist/index12.mjs +15 -19
  7. package/dist/index14.cjs +1 -1
  8. package/dist/index14.mjs +20 -27
  9. package/dist/index16.cjs +1 -1
  10. package/dist/index16.mjs +28 -262
  11. package/dist/index18.cjs +1 -1
  12. package/dist/index18.mjs +263 -13
  13. package/dist/index2.cjs +1 -1
  14. package/dist/index2.mjs +250 -11
  15. package/dist/index20.cjs +1 -1
  16. package/dist/index20.mjs +13 -38
  17. package/dist/index22.cjs +1 -1
  18. package/dist/index22.mjs +35 -49
  19. package/dist/index24.cjs +1 -1
  20. package/dist/index24.mjs +47 -78
  21. package/dist/index26.cjs +6 -1
  22. package/dist/index26.mjs +273 -102
  23. package/dist/index28.cjs +1 -1
  24. package/dist/index28.mjs +75 -60
  25. package/dist/index30.cjs +1 -1
  26. package/dist/index30.mjs +100 -75
  27. package/dist/index32.cjs +1 -1
  28. package/dist/index32.mjs +72 -3
  29. package/dist/index34.cjs +1 -1
  30. package/dist/index34.mjs +85 -3
  31. package/dist/index36.cjs +1 -1
  32. package/dist/index36.mjs +2 -2
  33. package/dist/index37.cjs +1 -1
  34. package/dist/index37.mjs +2 -2
  35. package/dist/index38.cjs +1 -1
  36. package/dist/index38.mjs +2 -2
  37. package/dist/index39.cjs +1 -1
  38. package/dist/index39.mjs +2 -2
  39. package/dist/index4.cjs +1 -1
  40. package/dist/index4.mjs +11 -19
  41. package/dist/index40.cjs +1 -1
  42. package/dist/index40.mjs +1 -1
  43. package/dist/index41.cjs +1 -1
  44. package/dist/index41.mjs +1 -1
  45. package/dist/index42.cjs +1 -1
  46. package/dist/index42.mjs +1 -1
  47. package/dist/index43.cjs +1 -1
  48. package/dist/index43.mjs +1 -1
  49. package/dist/index44.cjs +1 -1
  50. package/dist/index44.mjs +1 -1
  51. package/dist/index45.cjs +1 -1
  52. package/dist/index45.mjs +1 -1
  53. package/dist/index46.cjs +1 -1
  54. package/dist/index46.mjs +1 -1
  55. package/dist/index47.cjs +1 -1
  56. package/dist/index47.mjs +3 -51
  57. package/dist/index48.cjs +1 -1
  58. package/dist/index48.mjs +3 -2
  59. package/dist/index49.cjs +1 -0
  60. package/dist/index49.mjs +5 -0
  61. package/dist/index50.cjs +1 -0
  62. package/dist/index50.mjs +5 -0
  63. package/dist/index51.cjs +1 -0
  64. package/dist/index51.mjs +5 -0
  65. package/dist/index52.cjs +1 -0
  66. package/dist/index52.mjs +5 -0
  67. package/dist/index53.cjs +59 -0
  68. package/dist/index53.mjs +1152 -0
  69. package/dist/index54.cjs +1 -0
  70. package/dist/index54.mjs +53 -0
  71. package/dist/index55.cjs +1 -0
  72. package/dist/index55.mjs +4 -0
  73. package/dist/index6.cjs +1 -1
  74. package/dist/index6.mjs +21 -15
  75. package/dist/index8.cjs +1 -1
  76. package/dist/index8.mjs +15 -10
  77. package/dist/vue-lib/src/components/BlogEditor/BlogEditor.vue.d.ts +16 -0
  78. package/dist/vue-lib/src/components/BlogEditor/BlogEditor.vue.d.ts.map +1 -0
  79. package/dist/vue-lib/src/components/Chat/Chat.vue.d.ts +22 -0
  80. package/dist/vue-lib/src/components/Chat/Chat.vue.d.ts.map +1 -0
  81. package/dist/vue-lib/src/index.d.ts +2 -0
  82. package/dist/vue-lib/src/index.d.ts.map +1 -1
  83. package/dist/vue-lib.css +1 -1
  84. package/package.json +8 -5
  85. package/dist/index33.cjs +0 -1
  86. package/dist/index33.mjs +0 -5
  87. package/dist/index35.cjs +0 -1
  88. package/dist/index35.mjs +0 -5
package/dist/index30.mjs CHANGED
@@ -1,87 +1,112 @@
1
- import { defineComponent as C, openBlock as t, createBlock as g, Teleport as $, createVNode as h, Transition as y, withCtx as k, createElementBlock as a, withModifiers as w, createCommentVNode as l, normalizeStyle as B, normalizeClass as f, createElementVNode as o, toDisplayString as i, renderSlot as N, Fragment as S, renderList as V } from "vue";
2
- const x = { class: "panel-header" }, z = { class: "panel-header-text" }, E = {
3
- id: "panel-title",
4
- class: "panel-title"
5
- }, T = {
1
+ import { defineComponent as k, ref as o, computed as y, openBlock as s, createElementBlock as t, Fragment as d, withDirectives as f, createElementVNode as i, vModelText as h, toDisplayString as m, createCommentVNode as v } from "vue";
2
+ const _ = {
6
3
  key: 0,
7
- class: "panel-subtitle"
8
- }, A = { class: "panel-body" }, D = {
4
+ class: "sub-form"
5
+ }, A = ["disabled"], S = ["disabled"], w = ["disabled"], C = {
9
6
  key: 0,
10
- class: "panel-message"
11
- }, F = {
7
+ class: "sub-feedback sub-feedback--error"
8
+ }, x = {
9
+ key: 1,
10
+ class: "sub-success"
11
+ }, U = {
12
+ key: 1,
13
+ class: "sub-auth"
14
+ }, V = ["disabled"], B = {
12
15
  key: 0,
13
- class: "panel-footer"
14
- }, L = ["onClick"], j = /* @__PURE__ */ C({
15
- __name: "Panel",
16
+ class: "sub-feedback sub-feedback--success"
17
+ }, D = ["disabled"], E = {
18
+ key: 2,
19
+ class: "sub-feedback sub-feedback--error"
20
+ }, Y = /* @__PURE__ */ k({
21
+ __name: "SubscribeForm",
16
22
  props: {
17
- data: {},
18
- open: { type: Boolean }
23
+ mode: { default: "anon" },
24
+ subscribeAnon: {},
25
+ subscribeAuth: {},
26
+ unsubscribeAuth: {}
19
27
  },
20
- emits: ["action", "close"],
21
- setup(e, { emit: b }) {
22
- const c = e, d = b, r = () => c.data.side ?? "right";
23
- function p(s) {
24
- d("action", s.value);
28
+ setup(p) {
29
+ const a = p, n = o(""), b = o(""), e = o("idle"), l = o(!1), g = y(() => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.value.trim()));
30
+ async function r() {
31
+ if (e.value !== "submitting")
32
+ if (a.mode === "auth")
33
+ if (l.value) {
34
+ if (!a.unsubscribeAuth) return;
35
+ e.value = "submitting";
36
+ try {
37
+ await a.unsubscribeAuth(), l.value = !1, e.value = "idle";
38
+ } catch {
39
+ e.value = "error";
40
+ }
41
+ } else {
42
+ if (!a.subscribeAuth) return;
43
+ e.value = "submitting";
44
+ try {
45
+ await a.subscribeAuth(), l.value = !0, e.value = "done";
46
+ } catch {
47
+ e.value = "error";
48
+ }
49
+ }
50
+ else {
51
+ if (!g.value || !a.subscribeAnon) return;
52
+ e.value = "submitting";
53
+ try {
54
+ await a.subscribeAnon(n.value.trim(), b.value.trim()), e.value = "done";
55
+ } catch {
56
+ e.value = "error";
57
+ }
58
+ }
25
59
  }
26
- function v() {
27
- c.data.modal || d("close");
28
- }
29
- return (s, m) => (t(), g($, { to: "body" }, [
30
- h(y, { name: "panel-overlay-fade" }, {
31
- default: k(() => [
32
- e.open ? (t(), a("div", {
33
- key: 0,
34
- class: "m2s2-panel-overlay",
35
- onClick: w(v, ["self"])
36
- })) : l("", !0)
60
+ return (F, u) => p.mode === "anon" ? (s(), t(d, { key: 0 }, [
61
+ e.value !== "done" ? (s(), t("div", _, [
62
+ f(i("input", {
63
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => b.value = c),
64
+ class: "sub-input",
65
+ type: "text",
66
+ placeholder: "Your name (optional)",
67
+ disabled: e.value === "submitting"
68
+ }, null, 8, A), [
69
+ [h, b.value]
70
+ ]),
71
+ f(i("input", {
72
+ "onUpdate:modelValue": u[1] || (u[1] = (c) => n.value = c),
73
+ class: "sub-input",
74
+ type: "email",
75
+ placeholder: "your@email.com",
76
+ disabled: e.value === "submitting"
77
+ }, null, 8, S), [
78
+ [h, n.value]
37
79
  ]),
38
- _: 1
39
- }),
40
- h(y, {
41
- name: `panel-slide-${r()}`
42
- }, {
43
- default: k(() => {
44
- var u;
45
- return [
46
- e.open ? (t(), a("div", {
47
- key: 0,
48
- class: f(["m2s2-panel-content", `m2s2-panel-content--${r()}`]),
49
- style: B(e.data.width ? { "--panel-width": e.data.width } : {}),
50
- role: "dialog",
51
- "aria-modal": !0,
52
- "aria-labelledby": "panel-title"
53
- }, [
54
- o("div", x, [
55
- o("div", z, [
56
- o("h2", E, i(e.data.title), 1),
57
- e.data.subtitle ? (t(), a("p", T, i(e.data.subtitle), 1)) : l("", !0)
58
- ]),
59
- e.data.modal ? l("", !0) : (t(), a("button", {
60
- key: 0,
61
- class: "panel-close",
62
- "aria-label": "Close",
63
- onClick: m[0] || (m[0] = (n) => d("close"))
64
- }, ""))
65
- ]),
66
- o("div", A, [
67
- e.data.message && !s.$slots.default ? (t(), a("p", D, i(e.data.message), 1)) : l("", !0),
68
- N(s.$slots, "default")
69
- ]),
70
- (u = e.data.actions) != null && u.length ? (t(), a("div", F, [
71
- (t(!0), a(S, null, V(e.data.actions, (n) => (t(), a("button", {
72
- key: n.label,
73
- class: f(["panel-btn", `panel-btn--${n.variant ?? "secondary"}`]),
74
- onClick: (M) => p(n)
75
- }, i(n.label), 11, L))), 128))
76
- ])) : l("", !0)
77
- ], 6)) : l("", !0)
78
- ];
79
- }),
80
- _: 3
81
- }, 8, ["name"])
80
+ i("button", {
81
+ class: "sub-btn",
82
+ disabled: !g.value || e.value === "submitting",
83
+ onClick: r
84
+ }, m(e.value === "submitting" ? "Submitting…" : "Subscribe"), 9, w),
85
+ e.value === "error" ? (s(), t("p", C, " Something went wrong — please try again. ")) : v("", !0)
86
+ ])) : (s(), t("div", x, [...u[2] || (u[2] = [
87
+ i("span", { class: "sub-success-icon" }, "✓", -1),
88
+ i("p", { class: "sub-success-text" }, "Check your email to confirm your subscription.", -1)
89
+ ])]))
90
+ ], 64)) : (s(), t("div", U, [
91
+ l.value ? (s(), t(d, { key: 1 }, [
92
+ u[3] || (u[3] = i("span", { class: "sub-subscribed-label" }, "✓ Subscribed to blog updates", -1)),
93
+ i("button", {
94
+ class: "sub-btn sub-btn--unsub",
95
+ disabled: e.value === "submitting",
96
+ onClick: r
97
+ }, m(e.value === "submitting" ? "Unsubscribing…" : "Unsubscribe"), 9, D)
98
+ ], 64)) : (s(), t(d, { key: 0 }, [
99
+ i("button", {
100
+ class: "sub-btn",
101
+ disabled: e.value === "submitting",
102
+ onClick: r
103
+ }, m(e.value === "submitting" ? "Subscribing…" : "Subscribe to Blog Updates"), 9, V),
104
+ e.value === "done" ? (s(), t("p", B, "You're subscribed!")) : v("", !0)
105
+ ], 64)),
106
+ e.value === "error" ? (s(), t("p", E, " Something went wrong — please try again. ")) : v("", !0)
82
107
  ]));
83
108
  }
84
109
  });
85
110
  export {
86
- j as default
111
+ Y as default
87
112
  };
package/dist/index32.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index2.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("vue"),m={class:"m2s2-dialog-content",role:"dialog","aria-modal":!0,"aria-labelledby":"dialog-title"},k={class:"dialog-header"},g={id:"dialog-title",class:"dialog-title"},u={class:"dialog-body"},y={key:0,class:"dialog-message"},B={key:0,class:"dialog-footer"},f=["onClick"],C=e.defineComponent({__name:"Dialog",props:{data:{},open:{type:Boolean}},emits:["action","close"],setup(t,{emit:i}){const n=t,l=i;function s(o){l("action",o.value)}function d(){n.data.modal||l("close")}function r(o){o.key==="Escape"&&!n.data.modal&&l("close")}return(o,c)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"dialog-fade"},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:"m2s2-dialog-overlay",onClick:e.withModifiers(d,["self"]),onKeydown:r},[e.createElementVNode("div",m,[e.createElementVNode("div",k,[e.createElementVNode("h2",g,e.toDisplayString(t.data.title),1),t.data.modal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"dialog-close","aria-label":"Close",onClick:c[0]||(c[0]=a=>l("close"))},"✕"))]),e.createElementVNode("div",u,[t.data.message?(e.openBlock(),e.createElementBlock("p",y,e.toDisplayString(t.data.message),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),t.data.actions.length?(e.openBlock(),e.createElementBlock("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data.actions,a=>(e.openBlock(),e.createElementBlock("button",{key:a.label,class:e.normalizeClass(["dialog-btn",`dialog-btn--${a.variant??"secondary"}`]),onClick:b=>s(a)},e.toDisplayString(a.label),11,f))),128))])):e.createCommentVNode("",!0)])],32)):e.createCommentVNode("",!0)]),_:3})]))}});module.exports=C;
package/dist/index32.mjs CHANGED
@@ -1,5 +1,74 @@
1
- import o from "./index2.mjs";
2
- /* empty css */
1
+ import { defineComponent as k, openBlock as t, createBlock as y, Teleport as b, createVNode as h, Transition as v, withCtx as C, createElementBlock as a, withModifiers as B, createElementVNode as n, toDisplayString as d, createCommentVNode as s, renderSlot as _, Fragment as $, renderList as p, normalizeClass as w } from "vue";
2
+ const E = {
3
+ class: "m2s2-dialog-content",
4
+ role: "dialog",
5
+ "aria-modal": !0,
6
+ "aria-labelledby": "dialog-title"
7
+ }, N = { class: "dialog-header" }, V = {
8
+ id: "dialog-title",
9
+ class: "dialog-title"
10
+ }, x = { class: "dialog-body" }, D = {
11
+ key: 0,
12
+ class: "dialog-message"
13
+ }, S = {
14
+ key: 0,
15
+ class: "dialog-footer"
16
+ }, T = ["onClick"], F = /* @__PURE__ */ k({
17
+ __name: "Dialog",
18
+ props: {
19
+ data: {},
20
+ open: { type: Boolean }
21
+ },
22
+ emits: ["action", "close"],
23
+ setup(e, { emit: m }) {
24
+ const c = e, i = m;
25
+ function g(o) {
26
+ i("action", o.value);
27
+ }
28
+ function u() {
29
+ c.data.modal || i("close");
30
+ }
31
+ function f(o) {
32
+ o.key === "Escape" && !c.data.modal && i("close");
33
+ }
34
+ return (o, r) => (t(), y(b, { to: "body" }, [
35
+ h(v, { name: "dialog-fade" }, {
36
+ default: C(() => [
37
+ e.open ? (t(), a("div", {
38
+ key: 0,
39
+ class: "m2s2-dialog-overlay",
40
+ onClick: B(u, ["self"]),
41
+ onKeydown: f
42
+ }, [
43
+ n("div", E, [
44
+ n("div", N, [
45
+ n("h2", V, d(e.data.title), 1),
46
+ e.data.modal ? s("", !0) : (t(), a("button", {
47
+ key: 0,
48
+ class: "dialog-close",
49
+ "aria-label": "Close",
50
+ onClick: r[0] || (r[0] = (l) => i("close"))
51
+ }, "✕"))
52
+ ]),
53
+ n("div", x, [
54
+ e.data.message ? (t(), a("p", D, d(e.data.message), 1)) : s("", !0),
55
+ _(o.$slots, "default")
56
+ ]),
57
+ e.data.actions.length ? (t(), a("div", S, [
58
+ (t(!0), a($, null, p(e.data.actions, (l) => (t(), a("button", {
59
+ key: l.label,
60
+ class: w(["dialog-btn", `dialog-btn--${l.variant ?? "secondary"}`]),
61
+ onClick: (z) => g(l)
62
+ }, d(l.label), 11, T))), 128))
63
+ ])) : s("", !0)
64
+ ])
65
+ ], 32)) : s("", !0)
66
+ ]),
67
+ _: 3
68
+ })
69
+ ]));
70
+ }
71
+ });
3
72
  export {
4
- o as default
73
+ F as default
5
74
  };
package/dist/index34.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index6.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("vue"),k={class:"panel-header"},u={class:"panel-header-text"},p={id:"panel-title",class:"panel-title"},y={key:0,class:"panel-subtitle"},B={class:"panel-body"},h={key:0,class:"panel-message"},C={key:0,class:"panel-footer"},b=["onClick"],f=e.defineComponent({__name:"Panel",props:{data:{},open:{type:Boolean}},emits:["action","close"],setup(t,{emit:d}){const o=t,n=d,s=()=>o.data.side??"right";function r(l){n("action",l.value)}function m(){o.data.modal||n("close")}return(l,c)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"panel-overlay-fade"},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:"m2s2-panel-overlay",onClick:e.withModifiers(m,["self"])})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:`panel-slide-${s()}`},{default:e.withCtx(()=>{var i;return[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["m2s2-panel-content",`m2s2-panel-content--${s()}`]),style:e.normalizeStyle(t.data.width?{"--panel-width":t.data.width}:{}),role:"dialog","aria-modal":!0,"aria-labelledby":"panel-title"},[e.createElementVNode("div",k,[e.createElementVNode("div",u,[e.createElementVNode("h2",p,e.toDisplayString(t.data.title),1),t.data.subtitle?(e.openBlock(),e.createElementBlock("p",y,e.toDisplayString(t.data.subtitle),1)):e.createCommentVNode("",!0)]),t.data.modal?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"panel-close","aria-label":"Close",onClick:c[0]||(c[0]=a=>n("close"))},"✕"))]),e.createElementVNode("div",B,[t.data.message&&!l.$slots.default?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(t.data.message),1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default")]),(i=t.data.actions)!=null&&i.length?(e.openBlock(),e.createElementBlock("div",C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data.actions,a=>(e.openBlock(),e.createElementBlock("button",{key:a.label,class:e.normalizeClass(["panel-btn",`panel-btn--${a.variant??"secondary"}`]),onClick:v=>r(a)},e.toDisplayString(a.label),11,b))),128))])):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]}),_:3},8,["name"])]))}});module.exports=f;
package/dist/index34.mjs CHANGED
@@ -1,5 +1,87 @@
1
- import o from "./index6.mjs";
2
- /* empty css */
1
+ import { defineComponent as C, openBlock as t, createBlock as g, Teleport as $, createVNode as h, Transition as y, withCtx as k, createElementBlock as a, withModifiers as w, createCommentVNode as l, normalizeStyle as B, normalizeClass as f, createElementVNode as o, toDisplayString as i, renderSlot as N, Fragment as S, renderList as V } from "vue";
2
+ const x = { class: "panel-header" }, z = { class: "panel-header-text" }, E = {
3
+ id: "panel-title",
4
+ class: "panel-title"
5
+ }, T = {
6
+ key: 0,
7
+ class: "panel-subtitle"
8
+ }, A = { class: "panel-body" }, D = {
9
+ key: 0,
10
+ class: "panel-message"
11
+ }, F = {
12
+ key: 0,
13
+ class: "panel-footer"
14
+ }, L = ["onClick"], j = /* @__PURE__ */ C({
15
+ __name: "Panel",
16
+ props: {
17
+ data: {},
18
+ open: { type: Boolean }
19
+ },
20
+ emits: ["action", "close"],
21
+ setup(e, { emit: b }) {
22
+ const c = e, d = b, r = () => c.data.side ?? "right";
23
+ function p(s) {
24
+ d("action", s.value);
25
+ }
26
+ function v() {
27
+ c.data.modal || d("close");
28
+ }
29
+ return (s, m) => (t(), g($, { to: "body" }, [
30
+ h(y, { name: "panel-overlay-fade" }, {
31
+ default: k(() => [
32
+ e.open ? (t(), a("div", {
33
+ key: 0,
34
+ class: "m2s2-panel-overlay",
35
+ onClick: w(v, ["self"])
36
+ })) : l("", !0)
37
+ ]),
38
+ _: 1
39
+ }),
40
+ h(y, {
41
+ name: `panel-slide-${r()}`
42
+ }, {
43
+ default: k(() => {
44
+ var u;
45
+ return [
46
+ e.open ? (t(), a("div", {
47
+ key: 0,
48
+ class: f(["m2s2-panel-content", `m2s2-panel-content--${r()}`]),
49
+ style: B(e.data.width ? { "--panel-width": e.data.width } : {}),
50
+ role: "dialog",
51
+ "aria-modal": !0,
52
+ "aria-labelledby": "panel-title"
53
+ }, [
54
+ o("div", x, [
55
+ o("div", z, [
56
+ o("h2", E, i(e.data.title), 1),
57
+ e.data.subtitle ? (t(), a("p", T, i(e.data.subtitle), 1)) : l("", !0)
58
+ ]),
59
+ e.data.modal ? l("", !0) : (t(), a("button", {
60
+ key: 0,
61
+ class: "panel-close",
62
+ "aria-label": "Close",
63
+ onClick: m[0] || (m[0] = (n) => d("close"))
64
+ }, "✕"))
65
+ ]),
66
+ o("div", A, [
67
+ e.data.message && !s.$slots.default ? (t(), a("p", D, i(e.data.message), 1)) : l("", !0),
68
+ N(s.$slots, "default")
69
+ ]),
70
+ (u = e.data.actions) != null && u.length ? (t(), a("div", F, [
71
+ (t(!0), a(S, null, V(e.data.actions, (n) => (t(), a("button", {
72
+ key: n.label,
73
+ class: f(["panel-btn", `panel-btn--${n.variant ?? "secondary"}`]),
74
+ onClick: (M) => p(n)
75
+ }, i(n.label), 11, L))), 128))
76
+ ])) : l("", !0)
77
+ ], 6)) : l("", !0)
78
+ ];
79
+ }),
80
+ _: 3
81
+ }, 8, ["name"])
82
+ ]));
83
+ }
84
+ });
3
85
  export {
4
- o as default
86
+ j as default
5
87
  };
package/dist/index36.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index10.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index2.cjs");;/* empty css */module.exports=e;
package/dist/index36.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import o from "./index10.mjs";
2
- /* empty css */
1
+ import o from "./index2.mjs";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
package/dist/index37.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index12.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index4.cjs");;/* empty css */module.exports=e;
package/dist/index37.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import o from "./index12.mjs";
2
- /* empty css */
1
+ import o from "./index4.mjs";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
package/dist/index38.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index14.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index6.cjs");;/* empty css */module.exports=e;
package/dist/index38.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import o from "./index14.mjs";
2
- /* empty css */
1
+ import o from "./index6.mjs";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
package/dist/index39.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index16.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index8.cjs");;/* empty css */module.exports=e;
package/dist/index39.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import o from "./index16.mjs";
2
- /* empty css */
1
+ import o from "./index8.mjs";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
package/dist/index4.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),o={class:"sr-row"},r={class:"sr-item"},c={class:"sr-value"},l={class:"sr-label"},a={key:0,class:"sr-divider","aria-hidden":"true"},i=e.defineComponent({__name:"StatRow",props:{stats:{}},setup(s){return(d,m)=>(e.openBlock(),e.createElementBlock("div",o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.stats,(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.label},[e.createElementVNode("div",r,[e.createElementVNode("span",c,e.toDisplayString(t.value),1),e.createElementVNode("span",l,e.toDisplayString(t.label),1)]),n<s.stats.length-1?(e.openBlock(),e.createElementBlock("div",a)):e.createCommentVNode("",!0)],64))),128))]))}});module.exports=i;
1
+ "use strict";const e=require("vue"),c={class:"m2s2-section-header"},o={class:"sh-label"},s={key:0,class:"sh-subtitle"},n=e.defineComponent({__name:"SectionHeader",props:{config:{}},setup(t){return(i,l)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("h2",o,e.toDisplayString(t.config.label),1),t.config.subtitle?(e.openBlock(),e.createElementBlock("p",s,e.toDisplayString(t.config.subtitle),1)):e.createCommentVNode("",!0)]))}});module.exports=n;
package/dist/index4.mjs CHANGED
@@ -1,27 +1,19 @@
1
- import { defineComponent as c, openBlock as e, createElementBlock as t, Fragment as n, renderList as i, createElementVNode as r, toDisplayString as o, createCommentVNode as d } from "vue";
2
- const _ = { class: "sr-row" }, m = { class: "sr-item" }, u = { class: "sr-value" }, h = { class: "sr-label" }, p = {
1
+ import { defineComponent as c, openBlock as t, createElementBlock as o, createElementVNode as n, toDisplayString as s, createCommentVNode as i } from "vue";
2
+ const a = { class: "m2s2-section-header" }, l = { class: "sh-label" }, r = {
3
3
  key: 0,
4
- class: "sr-divider",
5
- "aria-hidden": "true"
6
- }, b = /* @__PURE__ */ c({
7
- __name: "StatRow",
4
+ class: "sh-subtitle"
5
+ }, h = /* @__PURE__ */ c({
6
+ __name: "SectionHeader",
8
7
  props: {
9
- stats: {}
8
+ config: {}
10
9
  },
11
- setup(a) {
12
- return (v, f) => (e(), t("div", _, [
13
- (e(!0), t(n, null, i(a.stats, (s, l) => (e(), t(n, {
14
- key: s.label
15
- }, [
16
- r("div", m, [
17
- r("span", u, o(s.value), 1),
18
- r("span", h, o(s.label), 1)
19
- ]),
20
- l < a.stats.length - 1 ? (e(), t("div", p)) : d("", !0)
21
- ], 64))), 128))
10
+ setup(e) {
11
+ return (d, m) => (t(), o("div", a, [
12
+ n("h2", l, s(e.config.label), 1),
13
+ e.config.subtitle ? (t(), o("p", r, s(e.config.subtitle), 1)) : i("", !0)
22
14
  ]));
23
15
  }
24
16
  });
25
17
  export {
26
- b as default
18
+ h as default
27
19
  };
package/dist/index40.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index18.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index10.cjs");;/* empty css */module.exports=e;
package/dist/index40.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index18.mjs";
1
+ import o from "./index10.mjs";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index41.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index20.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index12.cjs");;/* empty css */module.exports=e;
package/dist/index41.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index20.mjs";
1
+ import o from "./index12.mjs";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index42.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index22.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index14.cjs");;/* empty css */module.exports=e;
package/dist/index42.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index22.mjs";
1
+ import o from "./index14.mjs";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index43.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index24.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index16.cjs");;/* empty css */module.exports=e;
package/dist/index43.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index24.mjs";
1
+ import o from "./index16.mjs";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index44.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index26.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index18.cjs");;/* empty css */module.exports=e;
package/dist/index44.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index26.mjs";
1
+ import o from "./index18.mjs";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index45.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index28.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index20.cjs");;/* empty css */module.exports=e;
package/dist/index45.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index28.mjs";
1
+ import o from "./index20.mjs";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index46.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index30.cjs");;/* empty css */module.exports=e;
1
+ "use strict";const e=require("./index22.cjs");;/* empty css */module.exports=e;
package/dist/index46.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index30.mjs";
1
+ import o from "./index22.mjs";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index47.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),o={key:0,class:"social-icon",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"currentColor"},n={key:1,class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"currentColor"},r={key:2,class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"currentColor"},i={key:3,class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"currentColor"},c=e.defineComponent({__name:"SocialIcon",props:{type:{}},setup(l){return(s,t)=>l.type==="github"?(e.openBlock(),e.createElementBlock("svg",o,[...t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"},null,-1)])])):l.type==="linkedin"?(e.openBlock(),e.createElementBlock("svg",n,[...t[1]||(t[1]=[e.createElementVNode("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},null,-1)])])):l.type==="twitter"?(e.openBlock(),e.createElementBlock("svg",r,[...t[2]||(t[2]=[e.createElementVNode("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.747l7.73-8.835L1.254 2.25H8.08l4.253 5.622 5.91-5.622Zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)])])):l.type==="email"?(e.openBlock(),e.createElementBlock("svg",i,[...t[3]||(t[3]=[e.createElementVNode("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"},null,-1)])])):e.createCommentVNode("",!0)}});module.exports=c;
1
+ "use strict";const e=require("./index24.cjs");;/* empty css */module.exports=e;
package/dist/index47.mjs CHANGED
@@ -1,53 +1,5 @@
1
- import { defineComponent as i, openBlock as l, createElementBlock as o, createElementVNode as n, createCommentVNode as r } from "vue";
2
- const s = {
3
- key: 0,
4
- class: "social-icon",
5
- viewBox: "0 0 98 96",
6
- xmlns: "http://www.w3.org/2000/svg",
7
- "aria-hidden": "true",
8
- fill: "currentColor"
9
- }, c = {
10
- key: 1,
11
- class: "social-icon",
12
- viewBox: "0 0 24 24",
13
- xmlns: "http://www.w3.org/2000/svg",
14
- "aria-hidden": "true",
15
- fill: "currentColor"
16
- }, d = {
17
- key: 2,
18
- class: "social-icon",
19
- viewBox: "0 0 24 24",
20
- xmlns: "http://www.w3.org/2000/svg",
21
- "aria-hidden": "true",
22
- fill: "currentColor"
23
- }, a = {
24
- key: 3,
25
- class: "social-icon",
26
- viewBox: "0 0 24 24",
27
- xmlns: "http://www.w3.org/2000/svg",
28
- "aria-hidden": "true",
29
- fill: "currentColor"
30
- }, u = /* @__PURE__ */ i({
31
- __name: "SocialIcon",
32
- props: {
33
- type: {}
34
- },
35
- setup(t) {
36
- return (v, e) => t.type === "github" ? (l(), o("svg", s, [...e[0] || (e[0] = [
37
- n("path", {
38
- "fill-rule": "evenodd",
39
- "clip-rule": "evenodd",
40
- d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
41
- }, null, -1)
42
- ])])) : t.type === "linkedin" ? (l(), o("svg", c, [...e[1] || (e[1] = [
43
- n("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }, null, -1)
44
- ])])) : t.type === "twitter" ? (l(), o("svg", d, [...e[2] || (e[2] = [
45
- n("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.747l7.73-8.835L1.254 2.25H8.08l4.253 5.622 5.91-5.622Zm-1.161 17.52h1.833L7.084 4.126H5.117z" }, null, -1)
46
- ])])) : t.type === "email" ? (l(), o("svg", a, [...e[3] || (e[3] = [
47
- n("path", { d: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z" }, null, -1)
48
- ])])) : r("", !0);
49
- }
50
- });
1
+ import o from "./index24.mjs";
2
+ /* empty css */
51
3
  export {
52
- u as default
4
+ o as default
53
5
  };
package/dist/index48.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index47.cjs");module.exports=e;
1
+ "use strict";const e=require("./index26.cjs");;/* empty css */module.exports=e;