@m2s2/vue-lib 1.0.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/dist/index.cjs +1 -0
- package/dist/index.mjs +47 -0
- package/dist/index10.cjs +1 -0
- package/dist/index10.mjs +24 -0
- package/dist/index12.cjs +1 -0
- package/dist/index12.mjs +28 -0
- package/dist/index14.cjs +1 -0
- package/dist/index14.mjs +35 -0
- package/dist/index16.cjs +1 -0
- package/dist/index16.mjs +269 -0
- package/dist/index18.cjs +1 -0
- package/dist/index18.mjs +19 -0
- package/dist/index2.cjs +1 -0
- package/dist/index2.mjs +19 -0
- package/dist/index20.cjs +1 -0
- package/dist/index20.mjs +44 -0
- package/dist/index22.cjs +1 -0
- package/dist/index22.mjs +58 -0
- package/dist/index24.cjs +1 -0
- package/dist/index24.mjs +89 -0
- package/dist/index26.cjs +1 -0
- package/dist/index26.mjs +112 -0
- package/dist/index28.cjs +1 -0
- package/dist/index28.mjs +74 -0
- package/dist/index30.cjs +1 -0
- package/dist/index30.mjs +87 -0
- package/dist/index32.cjs +1 -0
- package/dist/index32.mjs +5 -0
- package/dist/index33.cjs +1 -0
- package/dist/index33.mjs +5 -0
- package/dist/index34.cjs +1 -0
- package/dist/index34.mjs +5 -0
- package/dist/index35.cjs +1 -0
- package/dist/index35.mjs +5 -0
- package/dist/index36.cjs +1 -0
- package/dist/index36.mjs +5 -0
- package/dist/index37.cjs +1 -0
- package/dist/index37.mjs +5 -0
- package/dist/index38.cjs +1 -0
- package/dist/index38.mjs +5 -0
- package/dist/index39.cjs +1 -0
- package/dist/index39.mjs +5 -0
- package/dist/index4.cjs +1 -0
- package/dist/index4.mjs +27 -0
- package/dist/index40.cjs +1 -0
- package/dist/index40.mjs +5 -0
- package/dist/index41.cjs +1 -0
- package/dist/index41.mjs +5 -0
- package/dist/index42.cjs +1 -0
- package/dist/index42.mjs +5 -0
- package/dist/index43.cjs +1 -0
- package/dist/index43.mjs +5 -0
- package/dist/index44.cjs +1 -0
- package/dist/index44.mjs +5 -0
- package/dist/index45.cjs +1 -0
- package/dist/index45.mjs +5 -0
- package/dist/index46.cjs +1 -0
- package/dist/index46.mjs +5 -0
- package/dist/index47.cjs +1 -0
- package/dist/index47.mjs +53 -0
- package/dist/index48.cjs +1 -0
- package/dist/index48.mjs +4 -0
- package/dist/index6.cjs +1 -0
- package/dist/index6.mjs +21 -0
- package/dist/index8.cjs +1 -0
- package/dist/index8.mjs +16 -0
- package/dist/storybook-shared/src/globals.d.ts +34 -0
- package/dist/storybook-shared/src/globals.d.ts.map +1 -0
- package/dist/storybook-shared/src/index.d.ts +4 -0
- package/dist/storybook-shared/src/index.d.ts.map +1 -0
- package/dist/storybook-shared/src/themes.d.ts +18 -0
- package/dist/storybook-shared/src/themes.d.ts.map +1 -0
- package/dist/storybook-shared/src/tokens.d.ts +22 -0
- package/dist/storybook-shared/src/tokens.d.ts.map +1 -0
- package/dist/vue-lib/src/BrandConfigurator.vue.d.ts +3 -0
- package/dist/vue-lib/src/BrandConfigurator.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/Welcome.vue.d.ts +3 -0
- package/dist/vue-lib/src/Welcome.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/CtaSection/CtaSection.vue.d.ts +7 -0
- package/dist/vue-lib/src/components/CtaSection/CtaSection.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/DataTable/DataTable.vue.d.ts +45 -0
- package/dist/vue-lib/src/components/DataTable/DataTable.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/Dialog/Dialog.vue.d.ts +24 -0
- package/dist/vue-lib/src/components/Dialog/Dialog.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/Footer/Footer.vue.d.ts +7 -0
- package/dist/vue-lib/src/components/Footer/Footer.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/Footer/SocialIcon.vue.d.ts +7 -0
- package/dist/vue-lib/src/components/Footer/SocialIcon.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/Navbar/Navbar.vue.d.ts +20 -0
- package/dist/vue-lib/src/components/Navbar/Navbar.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/PageHeader/PageHeader.vue.d.ts +7 -0
- package/dist/vue-lib/src/components/PageHeader/PageHeader.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/Panel/Panel.vue.d.ts +24 -0
- package/dist/vue-lib/src/components/Panel/Panel.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/ProcessSteps/ProcessSteps.vue.d.ts +7 -0
- package/dist/vue-lib/src/components/ProcessSteps/ProcessSteps.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/SectionHeader/SectionHeader.vue.d.ts +7 -0
- package/dist/vue-lib/src/components/SectionHeader/SectionHeader.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/StatRow/StatRow.vue.d.ts +7 -0
- package/dist/vue-lib/src/components/StatRow/StatRow.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/StatusBadge/StatusBadge.vue.d.ts +11 -0
- package/dist/vue-lib/src/components/StatusBadge/StatusBadge.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/SubscribeForm/SubscribeForm.vue.d.ts +12 -0
- package/dist/vue-lib/src/components/SubscribeForm/SubscribeForm.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/cards/BaseCard/BaseCard.vue.d.ts +21 -0
- package/dist/vue-lib/src/components/cards/BaseCard/BaseCard.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/cards/BlogCard/BlogCard.vue.d.ts +7 -0
- package/dist/vue-lib/src/components/cards/BlogCard/BlogCard.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/components/cards/FeatureCard/FeatureCard.vue.d.ts +7 -0
- package/dist/vue-lib/src/components/cards/FeatureCard/FeatureCard.vue.d.ts.map +1 -0
- package/dist/vue-lib/src/index.d.ts +16 -0
- package/dist/vue-lib/src/index.d.ts.map +1 -0
- package/dist/vue-lib.css +1 -0
- package/package.json +59 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index2.cjs");;/* empty css */const r=require("./index4.cjs");;/* empty css */const _=require("./index6.cjs");;/* empty css */const t=require("./index8.cjs");;/* empty css */const u=require("./index10.cjs");;/* empty css */const s=require("./index12.cjs");;/* empty css */const i=require("./index14.cjs");;/* empty css */const a=require("./index16.cjs");;/* empty css */const p=require("./index18.cjs");;/* empty css */const c=require("./index20.cjs");;/* empty css */const n=require("./index22.cjs");;/* empty css */const o=require("./index24.cjs");;/* empty css */const v=require("./index26.cjs");;/* empty css */const q=require("./index28.cjs");;/* empty css */const l=require("./index30.cjs");;/* empty css */exports.SectionHeader=e;exports.StatRow=r;exports.StatusBadge=_;exports.PageHeader=t;exports.CtaSection=u;exports.ProcessSteps=s;exports.Footer=i;exports.Navbar=a;exports.BaseCard=p;exports.FeatureCard=c;exports.BlogCard=n;exports.DataTable=o;exports.SubscribeForm=v;exports.Dialog=q;exports.Panel=l;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { default as g } from "./index2.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { default as n } from "./index4.mjs";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { default as F } from "./index6.mjs";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { default as D } from "./index8.mjs";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { default as v } from "./index10.mjs";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import { default as N } from "./index12.mjs";
|
|
12
|
+
/* empty css */
|
|
13
|
+
import { default as T } from "./index14.mjs";
|
|
14
|
+
/* empty css */
|
|
15
|
+
import { default as j } from "./index16.mjs";
|
|
16
|
+
/* empty css */
|
|
17
|
+
import { default as q } from "./index18.mjs";
|
|
18
|
+
/* empty css */
|
|
19
|
+
import { default as z } from "./index20.mjs";
|
|
20
|
+
/* empty css */
|
|
21
|
+
import { default as E } from "./index22.mjs";
|
|
22
|
+
/* empty css */
|
|
23
|
+
import { default as I } from "./index24.mjs";
|
|
24
|
+
/* empty css */
|
|
25
|
+
import { default as K } from "./index26.mjs";
|
|
26
|
+
/* empty css */
|
|
27
|
+
import { default as M } from "./index28.mjs";
|
|
28
|
+
/* empty css */
|
|
29
|
+
import { default as Q } from "./index30.mjs";
|
|
30
|
+
/* empty css */
|
|
31
|
+
export {
|
|
32
|
+
q as BaseCard,
|
|
33
|
+
E as BlogCard,
|
|
34
|
+
v as CtaSection,
|
|
35
|
+
I as DataTable,
|
|
36
|
+
M as Dialog,
|
|
37
|
+
z as FeatureCard,
|
|
38
|
+
T as Footer,
|
|
39
|
+
j as Navbar,
|
|
40
|
+
D as PageHeader,
|
|
41
|
+
Q as Panel,
|
|
42
|
+
N as ProcessSteps,
|
|
43
|
+
g as SectionHeader,
|
|
44
|
+
n as StatRow,
|
|
45
|
+
F as StatusBadge,
|
|
46
|
+
K as SubscribeForm
|
|
47
|
+
};
|
package/dist/index10.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),c={class:"m2s2-cta-section"},o={class:"cta-card"},s={class:"cta-text"},n={class:"cta-title"},a={class:"cta-body"},i=["href"],l=e.defineComponent({__name:"CtaSection",props:{config:{}},setup(t){return(r,d)=>(e.openBlock(),e.createElementBlock("section",c,[e.createElementVNode("div",o,[e.createElementVNode("div",s,[e.createElementVNode("h2",n,e.toDisplayString(t.config.title),1),e.createElementVNode("p",a,e.toDisplayString(t.config.body),1)]),e.createElementVNode("a",{href:t.config.route,class:"cta-btn"},e.toDisplayString(t.config.label),9,i)])]))}});module.exports=l;
|
package/dist/index10.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as o, openBlock as s, createElementBlock as n, createElementVNode as t, toDisplayString as e } from "vue";
|
|
2
|
+
const a = { class: "m2s2-cta-section" }, i = { class: "cta-card" }, l = { class: "cta-text" }, d = { class: "cta-title" }, r = { class: "cta-body" }, _ = ["href"], g = /* @__PURE__ */ o({
|
|
3
|
+
__name: "CtaSection",
|
|
4
|
+
props: {
|
|
5
|
+
config: {}
|
|
6
|
+
},
|
|
7
|
+
setup(c) {
|
|
8
|
+
return (f, h) => (s(), n("section", a, [
|
|
9
|
+
t("div", i, [
|
|
10
|
+
t("div", l, [
|
|
11
|
+
t("h2", d, e(c.config.title), 1),
|
|
12
|
+
t("p", r, e(c.config.body), 1)
|
|
13
|
+
]),
|
|
14
|
+
t("a", {
|
|
15
|
+
href: c.config.route,
|
|
16
|
+
class: "cta-btn"
|
|
17
|
+
}, e(c.config.label), 9, _)
|
|
18
|
+
])
|
|
19
|
+
]));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
g as default
|
|
24
|
+
};
|
package/dist/index12.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),o={class:"ps-steps"},c={class:"ps-step"},r={class:"ps-num"},l={class:"ps-name"},a={class:"ps-desc"},i={key:0,class:"ps-divider","aria-hidden":"true"},p=e.defineComponent({__name:"ProcessSteps",props:{steps:{}},setup(s){return(m,d)=>(e.openBlock(),e.createElementBlock("ol",o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.steps,(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.num},[e.createElementVNode("li",c,[e.createElementVNode("span",r,e.toDisplayString(t.num),1),e.createElementVNode("span",l,e.toDisplayString(t.name),1),e.createElementVNode("span",a,e.toDisplayString(t.desc),1)]),n<s.steps.length-1?(e.openBlock(),e.createElementBlock("li",i,"→")):e.createCommentVNode("",!0)],64))),128))]))}});module.exports=p;
|
package/dist/index12.mjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as i, openBlock as s, createElementBlock as t, Fragment as a, renderList as l, createElementVNode as n, toDisplayString as o, createCommentVNode as p } from "vue";
|
|
2
|
+
const d = { class: "ps-steps" }, _ = { class: "ps-step" }, m = { class: "ps-num" }, u = { class: "ps-name" }, h = { class: "ps-desc" }, f = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "ps-divider",
|
|
5
|
+
"aria-hidden": "true"
|
|
6
|
+
}, x = /* @__PURE__ */ i({
|
|
7
|
+
__name: "ProcessSteps",
|
|
8
|
+
props: {
|
|
9
|
+
steps: {}
|
|
10
|
+
},
|
|
11
|
+
setup(c) {
|
|
12
|
+
return (k, g) => (s(), t("ol", d, [
|
|
13
|
+
(s(!0), t(a, null, l(c.steps, (e, r) => (s(), t(a, {
|
|
14
|
+
key: e.num
|
|
15
|
+
}, [
|
|
16
|
+
n("li", _, [
|
|
17
|
+
n("span", m, o(e.num), 1),
|
|
18
|
+
n("span", u, o(e.name), 1),
|
|
19
|
+
n("span", h, o(e.desc), 1)
|
|
20
|
+
]),
|
|
21
|
+
r < c.steps.length - 1 ? (s(), t("li", f, "→")) : p("", !0)
|
|
22
|
+
], 64))), 128))
|
|
23
|
+
]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
x as default
|
|
28
|
+
};
|
package/dist/index14.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./index47.cjs"),n={class:"m2s2-footer"},l={class:"footer-inner"},s={class:"footer-copy"},c={class:"footer-social","aria-label":"Social links"},i=["href","title","aria-label"],_=e.defineComponent({__name:"Footer",props:{config:{}},setup(o){const r=new Date().getFullYear();return(p,u)=>(e.openBlock(),e.createElementBlock("footer",n,[e.createElementVNode("div",l,[e.createElementVNode("span",s," © "+e.toDisplayString(e.unref(r))+" "+e.toDisplayString(o.config.brandName)+" — All Rights Reserved ",1),e.createElementVNode("nav",c,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.config.links,t=>(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:t.type,href:t.href,class:"social-link",title:t.label??t.type,"aria-label":t.label??t.type},{ref_for:!0},t.type!=="email"?{target:"_blank",rel:"noopener noreferrer"}:{}),[e.createVNode(a,{type:t.type},null,8,["type"])],16,i))),128))])])]))}});module.exports=_;
|
package/dist/index14.mjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as l, openBlock as t, createElementBlock as o, createElementVNode as r, toDisplayString as s, unref as c, Fragment as i, renderList as f, mergeProps as p, createVNode as _ } from "vue";
|
|
2
|
+
import m from "./index47.mjs";
|
|
3
|
+
const d = { class: "m2s2-footer" }, u = { class: "footer-inner" }, y = { class: "footer-copy" }, h = {
|
|
4
|
+
class: "footer-social",
|
|
5
|
+
"aria-label": "Social links"
|
|
6
|
+
}, g = ["href", "title", "aria-label"], x = /* @__PURE__ */ l({
|
|
7
|
+
__name: "Footer",
|
|
8
|
+
props: {
|
|
9
|
+
config: {}
|
|
10
|
+
},
|
|
11
|
+
setup(a) {
|
|
12
|
+
const n = (/* @__PURE__ */ new Date()).getFullYear();
|
|
13
|
+
return (b, v) => (t(), o("footer", d, [
|
|
14
|
+
r("div", u, [
|
|
15
|
+
r("span", y, " © " + s(c(n)) + " " + s(a.config.brandName) + " — All Rights Reserved ", 1),
|
|
16
|
+
r("nav", h, [
|
|
17
|
+
(t(!0), o(i, null, f(a.config.links, (e) => (t(), o("a", p({
|
|
18
|
+
key: e.type,
|
|
19
|
+
href: e.href,
|
|
20
|
+
class: "social-link",
|
|
21
|
+
title: e.label ?? e.type,
|
|
22
|
+
"aria-label": e.label ?? e.type
|
|
23
|
+
}, { ref_for: !0 }, e.type !== "email" ? { target: "_blank", rel: "noopener noreferrer" } : {}), [
|
|
24
|
+
_(m, {
|
|
25
|
+
type: e.type
|
|
26
|
+
}, null, 8, ["type"])
|
|
27
|
+
], 16, g))), 128))
|
|
28
|
+
])
|
|
29
|
+
])
|
|
30
|
+
]));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
x as default
|
|
35
|
+
};
|
package/dist/index16.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),E=["href"],y=["src","alt"],C={key:1,class:"navbar-brand-text"},w={class:"navbar-desktop","aria-label":"Main navigation"},_=["href"],N={key:1,class:"navbar-dropdown-wrap"},V=["aria-expanded","onClick"],x={key:0,class:"navbar-dropdown-content"},S=["href"],D=["src","alt"],F=["onClick"],L=["src","alt"],I={key:0,class:"navbar-dropdown-wrap"},z=["aria-expanded"],P=["src"],$={key:1,class:"navbar-account-icon",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},M={key:0,class:"navbar-dropdown-content"},W={key:0,class:"navbar-dropdown-user"},T=["href"],A=["src","alt"],U=["onClick"],q=["src","alt"],O=["aria-label","aria-expanded"],Y={key:0,class:"navbar-mobile-menu","aria-label":"Mobile navigation"},R=["href"],j=["href"],G=["onClick"],H=["href"],J=["onClick"],K=e.defineComponent({__name:"Navbar",props:{config:{},loggedIn:{type:Boolean,default:!1}},setup(r){const h=r,g=e.ref(!1),k=e.ref(!1),a=e.ref(!1),s=e.ref(null),v=e.ref(0);function c(l){return!l.requiresAuth||h.loggedIn}function u(l){return"href"in l}function m(l){return"onClick"in l}function f(l){s.value=s.value===l?null:l}function d(){s.value=null}function p(){const l=window.scrollY,t=l-v.value;g.value=l>80,l<80?k.value=!1:t>4?k.value=!0:t<-4&&(k.value=!1),v.value=l}function B(){window.innerWidth>991&&(a.value=!1)}function b(l){l.target.closest(".navbar-dropdown-wrap")||d()}return e.onMounted(()=>{window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",B),document.addEventListener("click",b)}),e.onUnmounted(()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",B),document.removeEventListener("click",b)}),(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",{class:e.normalizeClass(["navbar",{"navbar--scrolled":g.value,"navbar--hidden":k.value,"navbar--fixed":r.config.isFixed}])},[e.createElementVNode("a",{class:"navbar-brand",href:r.config.brandPath},[r.config.brandLogo?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.config.brandLogo,alt:r.config.brand,class:"navbar-brand-logo"},null,8,y)):(e.openBlock(),e.createElementBlock("span",C,e.toDisplayString(r.config.brand),1))],8,E),t[7]||(t[7]=e.createElementVNode("span",{class:"navbar-spacer"},null,-1)),e.createElementVNode("nav",w,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.config.buttons,n=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,{key:n.id},[c(n)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.isDropdown?(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("button",{class:"navbar-nav-btn navbar-nav-btn--dropdown","aria-expanded":s.value===n.id,onClick:e.withModifiers(o=>f(n.id),["stop"])},[e.createTextVNode(e.toDisplayString(n.title)+" ",1),t[5]||(t[5]=e.createElementVNode("span",{class:"navbar-chevron","aria-hidden":"true"},"▾",-1))],8,V),s.value===n.id?(e.openBlock(),e.createElementBlock("div",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dropdownItems,o=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.id},[u(o)?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"navbar-dropdown-item",href:o.href},{ref_for:!0},o.href.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},{onClick:d}),[o.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imgSrc,alt:o.text,class:"navbar-dropdown-img"},null,8,D)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.text),1)],16,S)):m(o)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"navbar-dropdown-item",onClick:()=>{o.onClick(),d()}},[o.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imgSrc,alt:o.text,class:"navbar-dropdown-img"},null,8,L)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.text),1)],8,F)):e.createCommentVNode("",!0)],64))),128))])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"navbar-nav-btn",href:n.href},{ref_for:!0},(i=n.href)!=null&&i.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{}),e.toDisplayString(n.title),17,_))],64)):e.createCommentVNode("",!0)],64)}),128))]),r.config.loginButton?(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("button",{class:"navbar-icon-btn","aria-label":"Account menu","aria-expanded":s.value==="__account__",onClick:t[0]||(t[0]=e.withModifiers(n=>f("__account__"),["stop"]))},[r.config.loginButton.profileImageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.config.loginButton.profileImageUrl,alt:"Profile",class:"navbar-avatar"},null,8,P)):(e.openBlock(),e.createElementBlock("svg",$,[...t[6]||(t[6]=[e.createElementVNode("path",{d:"M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"},null,-1)])]))],8,z),s.value==="__account__"?(e.openBlock(),e.createElementBlock("div",M,[r.config.loginButton.userName&&r.loggedIn?(e.openBlock(),e.createElementBlock("div",W,e.toDisplayString(r.config.loginButton.userName),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.config.loginButton.dropdownItems,n=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n.id},[u(n)&&c(n)?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"navbar-dropdown-item",href:n.href},{ref_for:!0},n.href.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},{onClick:d}),[n.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.imgSrc,alt:n.text,class:"navbar-dropdown-img"},null,8,A)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.text),1)],16,T)):m(n)&&c(n)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"navbar-dropdown-item",onClick:()=>{n.onClick(),d()}},[n.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.imgSrc,alt:n.text,class:"navbar-dropdown-img"},null,8,q)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.text),1)],8,U)):e.createCommentVNode("",!0)],64))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default"),e.createElementVNode("button",{class:"navbar-mobile-btn","aria-label":a.value?"Close navigation menu":"Open navigation menu","aria-expanded":a.value,onClick:t[1]||(t[1]=n=>a.value=!a.value)},[e.createElementVNode("span",{class:e.normalizeClass(["navbar-hamburger",{"navbar-hamburger--open":a.value}])},null,2)],8,O)],2),a.value?(e.openBlock(),e.createElementBlock("nav",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.config.buttons,n=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,{key:n.id},[c(n)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.isDropdown?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.dropdownItems,o=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.id},[u(o)&&c(o)?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"navbar-mobile-link",href:o.href},{ref_for:!0},o.href.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},{onClick:t[3]||(t[3]=Q=>a.value=!1)}),e.toDisplayString(o.text),17,j)):m(o)&&c(o)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"navbar-mobile-link",onClick:()=>{o.onClick(),a.value=!1}},e.toDisplayString(o.text),9,G)):e.createCommentVNode("",!0)],64))),128)):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"navbar-mobile-link",href:n.href},{ref_for:!0},(i=n.href)!=null&&i.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},{onClick:t[2]||(t[2]=o=>a.value=!1)}),e.toDisplayString(n.title),17,R))],64)):e.createCommentVNode("",!0)],64)}),128)),r.config.loginButton?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.config.loginButton.dropdownItems,n=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n.id},[u(n)&&c(n)?(e.openBlock(),e.createElementBlock("a",{key:0,class:"navbar-mobile-link",href:n.href,onClick:t[4]||(t[4]=i=>a.value=!1)},e.toDisplayString(n.text),9,H)):m(n)&&c(n)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"navbar-mobile-link",onClick:()=>{n.onClick(),a.value=!1}},e.toDisplayString(n.text),9,J)):e.createCommentVNode("",!0)],64))),128)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))}});module.exports=K;
|
package/dist/index16.mjs
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { defineComponent as z, ref as h, onMounted as N, onUnmounted as W, openBlock as n, createElementBlock as o, Fragment as i, createElementVNode as u, normalizeClass as E, toDisplayString as c, renderList as k, mergeProps as w, withModifiers as D, createTextVNode as p, createCommentVNode as s, renderSlot as M } from "vue";
|
|
2
|
+
const V = ["href"], A = ["src", "alt"], P = {
|
|
3
|
+
key: 1,
|
|
4
|
+
class: "navbar-brand-text"
|
|
5
|
+
}, U = {
|
|
6
|
+
class: "navbar-desktop",
|
|
7
|
+
"aria-label": "Main navigation"
|
|
8
|
+
}, F = ["href"], O = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "navbar-dropdown-wrap"
|
|
11
|
+
}, Y = ["aria-expanded", "onClick"], q = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "navbar-dropdown-content"
|
|
14
|
+
}, R = ["href"], T = ["src", "alt"], j = ["onClick"], G = ["src", "alt"], H = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "navbar-dropdown-wrap"
|
|
17
|
+
}, J = ["aria-expanded"], K = ["src"], Q = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "navbar-account-icon",
|
|
20
|
+
viewBox: "0 0 24 24",
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
"aria-hidden": "true"
|
|
23
|
+
}, X = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "navbar-dropdown-content"
|
|
26
|
+
}, Z = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "navbar-dropdown-user"
|
|
29
|
+
}, ee = ["href"], ne = ["src", "alt"], oe = ["onClick"], re = ["src", "alt"], ae = ["aria-label", "aria-expanded"], te = {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "navbar-mobile-menu",
|
|
32
|
+
"aria-label": "Mobile navigation"
|
|
33
|
+
}, le = ["href"], se = ["href"], ie = ["onClick"], ce = ["href"], de = ["onClick"], fe = /* @__PURE__ */ z({
|
|
34
|
+
__name: "Navbar",
|
|
35
|
+
props: {
|
|
36
|
+
config: {},
|
|
37
|
+
loggedIn: { type: Boolean, default: !1 }
|
|
38
|
+
},
|
|
39
|
+
setup(t) {
|
|
40
|
+
const $ = t, x = h(!1), y = h(!1), d = h(!1), f = h(null), m = h(0);
|
|
41
|
+
function v(l) {
|
|
42
|
+
return !l.requiresAuth || $.loggedIn;
|
|
43
|
+
}
|
|
44
|
+
function _(l) {
|
|
45
|
+
return "href" in l;
|
|
46
|
+
}
|
|
47
|
+
function C(l) {
|
|
48
|
+
return "onClick" in l;
|
|
49
|
+
}
|
|
50
|
+
function S(l) {
|
|
51
|
+
f.value = f.value === l ? null : l;
|
|
52
|
+
}
|
|
53
|
+
function b() {
|
|
54
|
+
f.value = null;
|
|
55
|
+
}
|
|
56
|
+
function B() {
|
|
57
|
+
const l = window.scrollY, a = l - m.value;
|
|
58
|
+
x.value = l > 80, l < 80 ? y.value = !1 : a > 4 ? y.value = !0 : a < -4 && (y.value = !1), m.value = l;
|
|
59
|
+
}
|
|
60
|
+
function I() {
|
|
61
|
+
window.innerWidth > 991 && (d.value = !1);
|
|
62
|
+
}
|
|
63
|
+
function L(l) {
|
|
64
|
+
l.target.closest(".navbar-dropdown-wrap") || b();
|
|
65
|
+
}
|
|
66
|
+
return N(() => {
|
|
67
|
+
window.addEventListener("scroll", B, { passive: !0 }), window.addEventListener("resize", I), document.addEventListener("click", L);
|
|
68
|
+
}), W(() => {
|
|
69
|
+
window.removeEventListener("scroll", B), window.removeEventListener("resize", I), document.removeEventListener("click", L);
|
|
70
|
+
}), (l, a) => (n(), o(i, null, [
|
|
71
|
+
u("header", {
|
|
72
|
+
class: E(["navbar", {
|
|
73
|
+
"navbar--scrolled": x.value,
|
|
74
|
+
"navbar--hidden": y.value,
|
|
75
|
+
"navbar--fixed": t.config.isFixed
|
|
76
|
+
}])
|
|
77
|
+
}, [
|
|
78
|
+
u("a", {
|
|
79
|
+
class: "navbar-brand",
|
|
80
|
+
href: t.config.brandPath
|
|
81
|
+
}, [
|
|
82
|
+
t.config.brandLogo ? (n(), o("img", {
|
|
83
|
+
key: 0,
|
|
84
|
+
src: t.config.brandLogo,
|
|
85
|
+
alt: t.config.brand,
|
|
86
|
+
class: "navbar-brand-logo"
|
|
87
|
+
}, null, 8, A)) : (n(), o("span", P, c(t.config.brand), 1))
|
|
88
|
+
], 8, V),
|
|
89
|
+
a[7] || (a[7] = u("span", { class: "navbar-spacer" }, null, -1)),
|
|
90
|
+
u("nav", U, [
|
|
91
|
+
(n(!0), o(i, null, k(t.config.buttons, (e) => {
|
|
92
|
+
var g;
|
|
93
|
+
return n(), o(i, {
|
|
94
|
+
key: e.id
|
|
95
|
+
}, [
|
|
96
|
+
v(e) ? (n(), o(i, { key: 0 }, [
|
|
97
|
+
e.isDropdown ? (n(), o("div", O, [
|
|
98
|
+
u("button", {
|
|
99
|
+
class: "navbar-nav-btn navbar-nav-btn--dropdown",
|
|
100
|
+
"aria-expanded": f.value === e.id,
|
|
101
|
+
onClick: D((r) => S(e.id), ["stop"])
|
|
102
|
+
}, [
|
|
103
|
+
p(c(e.title) + " ", 1),
|
|
104
|
+
a[5] || (a[5] = u("span", {
|
|
105
|
+
class: "navbar-chevron",
|
|
106
|
+
"aria-hidden": "true"
|
|
107
|
+
}, "▾", -1))
|
|
108
|
+
], 8, Y),
|
|
109
|
+
f.value === e.id ? (n(), o("div", q, [
|
|
110
|
+
(n(!0), o(i, null, k(e.dropdownItems, (r) => (n(), o(i, {
|
|
111
|
+
key: r.id
|
|
112
|
+
}, [
|
|
113
|
+
_(r) ? (n(), o("a", w({
|
|
114
|
+
key: 0,
|
|
115
|
+
class: "navbar-dropdown-item",
|
|
116
|
+
href: r.href
|
|
117
|
+
}, { ref_for: !0 }, r.href.startsWith("http") ? { target: "_blank", rel: "noopener noreferrer" } : {}, { onClick: b }), [
|
|
118
|
+
r.imgSrc ? (n(), o("img", {
|
|
119
|
+
key: 0,
|
|
120
|
+
src: r.imgSrc,
|
|
121
|
+
alt: r.text,
|
|
122
|
+
class: "navbar-dropdown-img"
|
|
123
|
+
}, null, 8, T)) : s("", !0),
|
|
124
|
+
p(" " + c(r.text), 1)
|
|
125
|
+
], 16, R)) : C(r) ? (n(), o("button", {
|
|
126
|
+
key: 1,
|
|
127
|
+
class: "navbar-dropdown-item",
|
|
128
|
+
onClick: () => {
|
|
129
|
+
r.onClick(), b();
|
|
130
|
+
}
|
|
131
|
+
}, [
|
|
132
|
+
r.imgSrc ? (n(), o("img", {
|
|
133
|
+
key: 0,
|
|
134
|
+
src: r.imgSrc,
|
|
135
|
+
alt: r.text,
|
|
136
|
+
class: "navbar-dropdown-img"
|
|
137
|
+
}, null, 8, G)) : s("", !0),
|
|
138
|
+
p(" " + c(r.text), 1)
|
|
139
|
+
], 8, j)) : s("", !0)
|
|
140
|
+
], 64))), 128))
|
|
141
|
+
])) : s("", !0)
|
|
142
|
+
])) : (n(), o("a", w({
|
|
143
|
+
key: 0,
|
|
144
|
+
class: "navbar-nav-btn",
|
|
145
|
+
href: e.href
|
|
146
|
+
}, { ref_for: !0 }, (g = e.href) != null && g.startsWith("http") ? { target: "_blank", rel: "noopener noreferrer" } : {}), c(e.title), 17, F))
|
|
147
|
+
], 64)) : s("", !0)
|
|
148
|
+
], 64);
|
|
149
|
+
}), 128))
|
|
150
|
+
]),
|
|
151
|
+
t.config.loginButton ? (n(), o("div", H, [
|
|
152
|
+
u("button", {
|
|
153
|
+
class: "navbar-icon-btn",
|
|
154
|
+
"aria-label": "Account menu",
|
|
155
|
+
"aria-expanded": f.value === "__account__",
|
|
156
|
+
onClick: a[0] || (a[0] = D((e) => S("__account__"), ["stop"]))
|
|
157
|
+
}, [
|
|
158
|
+
t.config.loginButton.profileImageUrl ? (n(), o("img", {
|
|
159
|
+
key: 0,
|
|
160
|
+
src: t.config.loginButton.profileImageUrl,
|
|
161
|
+
alt: "Profile",
|
|
162
|
+
class: "navbar-avatar"
|
|
163
|
+
}, null, 8, K)) : (n(), o("svg", Q, [...a[6] || (a[6] = [
|
|
164
|
+
u("path", { d: "M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z" }, null, -1)
|
|
165
|
+
])]))
|
|
166
|
+
], 8, J),
|
|
167
|
+
f.value === "__account__" ? (n(), o("div", X, [
|
|
168
|
+
t.config.loginButton.userName && t.loggedIn ? (n(), o("div", Z, c(t.config.loginButton.userName), 1)) : s("", !0),
|
|
169
|
+
(n(!0), o(i, null, k(t.config.loginButton.dropdownItems, (e) => (n(), o(i, {
|
|
170
|
+
key: e.id
|
|
171
|
+
}, [
|
|
172
|
+
_(e) && v(e) ? (n(), o("a", w({
|
|
173
|
+
key: 0,
|
|
174
|
+
class: "navbar-dropdown-item",
|
|
175
|
+
href: e.href
|
|
176
|
+
}, { ref_for: !0 }, e.href.startsWith("http") ? { target: "_blank", rel: "noopener noreferrer" } : {}, { onClick: b }), [
|
|
177
|
+
e.imgSrc ? (n(), o("img", {
|
|
178
|
+
key: 0,
|
|
179
|
+
src: e.imgSrc,
|
|
180
|
+
alt: e.text,
|
|
181
|
+
class: "navbar-dropdown-img"
|
|
182
|
+
}, null, 8, ne)) : s("", !0),
|
|
183
|
+
p(" " + c(e.text), 1)
|
|
184
|
+
], 16, ee)) : C(e) && v(e) ? (n(), o("button", {
|
|
185
|
+
key: 1,
|
|
186
|
+
class: "navbar-dropdown-item",
|
|
187
|
+
onClick: () => {
|
|
188
|
+
e.onClick(), b();
|
|
189
|
+
}
|
|
190
|
+
}, [
|
|
191
|
+
e.imgSrc ? (n(), o("img", {
|
|
192
|
+
key: 0,
|
|
193
|
+
src: e.imgSrc,
|
|
194
|
+
alt: e.text,
|
|
195
|
+
class: "navbar-dropdown-img"
|
|
196
|
+
}, null, 8, re)) : s("", !0),
|
|
197
|
+
p(" " + c(e.text), 1)
|
|
198
|
+
], 8, oe)) : s("", !0)
|
|
199
|
+
], 64))), 128))
|
|
200
|
+
])) : s("", !0)
|
|
201
|
+
])) : s("", !0),
|
|
202
|
+
M(l.$slots, "default"),
|
|
203
|
+
u("button", {
|
|
204
|
+
class: "navbar-mobile-btn",
|
|
205
|
+
"aria-label": d.value ? "Close navigation menu" : "Open navigation menu",
|
|
206
|
+
"aria-expanded": d.value,
|
|
207
|
+
onClick: a[1] || (a[1] = (e) => d.value = !d.value)
|
|
208
|
+
}, [
|
|
209
|
+
u("span", {
|
|
210
|
+
class: E(["navbar-hamburger", { "navbar-hamburger--open": d.value }])
|
|
211
|
+
}, null, 2)
|
|
212
|
+
], 8, ae)
|
|
213
|
+
], 2),
|
|
214
|
+
d.value ? (n(), o("nav", te, [
|
|
215
|
+
(n(!0), o(i, null, k(t.config.buttons, (e) => {
|
|
216
|
+
var g;
|
|
217
|
+
return n(), o(i, {
|
|
218
|
+
key: e.id
|
|
219
|
+
}, [
|
|
220
|
+
v(e) ? (n(), o(i, { key: 0 }, [
|
|
221
|
+
e.isDropdown ? (n(!0), o(i, { key: 1 }, k(e.dropdownItems, (r) => (n(), o(i, {
|
|
222
|
+
key: r.id
|
|
223
|
+
}, [
|
|
224
|
+
_(r) && v(r) ? (n(), o("a", w({
|
|
225
|
+
key: 0,
|
|
226
|
+
class: "navbar-mobile-link",
|
|
227
|
+
href: r.href
|
|
228
|
+
}, { ref_for: !0 }, r.href.startsWith("http") ? { target: "_blank", rel: "noopener noreferrer" } : {}, {
|
|
229
|
+
onClick: a[3] || (a[3] = (ue) => d.value = !1)
|
|
230
|
+
}), c(r.text), 17, se)) : C(r) && v(r) ? (n(), o("button", {
|
|
231
|
+
key: 1,
|
|
232
|
+
class: "navbar-mobile-link",
|
|
233
|
+
onClick: () => {
|
|
234
|
+
r.onClick(), d.value = !1;
|
|
235
|
+
}
|
|
236
|
+
}, c(r.text), 9, ie)) : s("", !0)
|
|
237
|
+
], 64))), 128)) : (n(), o("a", w({
|
|
238
|
+
key: 0,
|
|
239
|
+
class: "navbar-mobile-link",
|
|
240
|
+
href: e.href
|
|
241
|
+
}, { ref_for: !0 }, (g = e.href) != null && g.startsWith("http") ? { target: "_blank", rel: "noopener noreferrer" } : {}, {
|
|
242
|
+
onClick: a[2] || (a[2] = (r) => d.value = !1)
|
|
243
|
+
}), c(e.title), 17, le))
|
|
244
|
+
], 64)) : s("", !0)
|
|
245
|
+
], 64);
|
|
246
|
+
}), 128)),
|
|
247
|
+
t.config.loginButton ? (n(!0), o(i, { key: 0 }, k(t.config.loginButton.dropdownItems, (e) => (n(), o(i, {
|
|
248
|
+
key: e.id
|
|
249
|
+
}, [
|
|
250
|
+
_(e) && v(e) ? (n(), o("a", {
|
|
251
|
+
key: 0,
|
|
252
|
+
class: "navbar-mobile-link",
|
|
253
|
+
href: e.href,
|
|
254
|
+
onClick: a[4] || (a[4] = (g) => d.value = !1)
|
|
255
|
+
}, c(e.text), 9, ce)) : C(e) && v(e) ? (n(), o("button", {
|
|
256
|
+
key: 1,
|
|
257
|
+
class: "navbar-mobile-link",
|
|
258
|
+
onClick: () => {
|
|
259
|
+
e.onClick(), d.value = !1;
|
|
260
|
+
}
|
|
261
|
+
}, c(e.text), 9, de)) : s("", !0)
|
|
262
|
+
], 64))), 128)) : s("", !0)
|
|
263
|
+
])) : s("", !0)
|
|
264
|
+
], 64));
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
export {
|
|
268
|
+
fe as default
|
|
269
|
+
};
|
package/dist/index18.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),r=["data-variant"],n=e.defineComponent({__name:"BaseCard",props:{featured:{type:Boolean,default:!1},variant:{default:"default"}},setup(a){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["m2s2-card",{featured:a.featured}]),"data-variant":a.variant},[e.renderSlot(t.$slots,"default")],10,r))}});module.exports=n;
|
package/dist/index18.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as r, createElementBlock as n, normalizeClass as d, renderSlot as o } from "vue";
|
|
2
|
+
const l = ["data-variant"], u = /* @__PURE__ */ t({
|
|
3
|
+
__name: "BaseCard",
|
|
4
|
+
props: {
|
|
5
|
+
featured: { type: Boolean, default: !1 },
|
|
6
|
+
variant: { default: "default" }
|
|
7
|
+
},
|
|
8
|
+
setup(a) {
|
|
9
|
+
return (e, s) => (r(), n("div", {
|
|
10
|
+
class: d(["m2s2-card", { featured: a.featured }]),
|
|
11
|
+
"data-variant": a.variant
|
|
12
|
+
}, [
|
|
13
|
+
o(e.$slots, "default")
|
|
14
|
+
], 10, l));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
u as default
|
|
19
|
+
};
|
package/dist/index2.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
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/index2.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
key: 0,
|
|
4
|
+
class: "sh-subtitle"
|
|
5
|
+
}, h = /* @__PURE__ */ c({
|
|
6
|
+
__name: "SectionHeader",
|
|
7
|
+
props: {
|
|
8
|
+
config: {}
|
|
9
|
+
},
|
|
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)
|
|
14
|
+
]));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
h as default
|
|
19
|
+
};
|
package/dist/index20.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),o=require("./index18.cjs");;/* empty css */const i={class:"fc-header"},l=["innerHTML"],r={class:"fc-title"},a={class:"fc-body"},s={key:0,class:"fc-list"},d={key:1,class:"fc-note"},u=e.defineComponent({__name:"FeatureCard",props:{config:{}},setup(t){return(f,m)=>(e.openBlock(),e.createBlock(o,{featured:t.config.featured??!1},{default:e.withCtx(()=>{var n;return[e.createElementVNode("div",i,[t.config.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:"fc-icon","aria-hidden":"true",innerHTML:t.config.icon},null,8,l)):e.createCommentVNode("",!0),e.createElementVNode("h2",r,e.toDisplayString(t.config.title),1)]),e.createElementVNode("p",a,e.toDisplayString(t.config.body),1),(n=t.config.items)!=null&&n.length?(e.openBlock(),e.createElementBlock("ul",s,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.config.items,c=>(e.openBlock(),e.createElementBlock("li",{key:c},e.toDisplayString(c),1))),128))])):e.createCommentVNode("",!0),t.config.note?(e.openBlock(),e.createElementBlock("p",d,e.toDisplayString(t.config.note),1)):e.createCommentVNode("",!0)]}),_:1},8,["featured"]))}});module.exports=u;
|
package/dist/index20.mjs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as f, openBlock as t, createBlock as r, withCtx as l, createElementVNode as o, createElementBlock as n, createCommentVNode as i, toDisplayString as c, Fragment as d, renderList as u } from "vue";
|
|
2
|
+
import m from "./index18.mjs";
|
|
3
|
+
/* empty css */
|
|
4
|
+
const g = { class: "fc-header" }, h = ["innerHTML"], k = { class: "fc-title" }, y = { class: "fc-body" }, _ = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "fc-list"
|
|
7
|
+
}, C = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "fc-note"
|
|
10
|
+
}, F = /* @__PURE__ */ f({
|
|
11
|
+
__name: "FeatureCard",
|
|
12
|
+
props: {
|
|
13
|
+
config: {}
|
|
14
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
return (x, B) => (t(), r(m, {
|
|
17
|
+
featured: e.config.featured ?? !1
|
|
18
|
+
}, {
|
|
19
|
+
default: l(() => {
|
|
20
|
+
var a;
|
|
21
|
+
return [
|
|
22
|
+
o("div", g, [
|
|
23
|
+
e.config.icon ? (t(), n("span", {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "fc-icon",
|
|
26
|
+
"aria-hidden": "true",
|
|
27
|
+
innerHTML: e.config.icon
|
|
28
|
+
}, null, 8, h)) : i("", !0),
|
|
29
|
+
o("h2", k, c(e.config.title), 1)
|
|
30
|
+
]),
|
|
31
|
+
o("p", y, c(e.config.body), 1),
|
|
32
|
+
(a = e.config.items) != null && a.length ? (t(), n("ul", _, [
|
|
33
|
+
(t(!0), n(d, null, u(e.config.items, (s) => (t(), n("li", { key: s }, c(s), 1))), 128))
|
|
34
|
+
])) : i("", !0),
|
|
35
|
+
e.config.note ? (t(), n("p", C, c(e.config.note), 1)) : i("", !0)
|
|
36
|
+
];
|
|
37
|
+
}),
|
|
38
|
+
_: 1
|
|
39
|
+
}, 8, ["featured"]));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
F as default
|
|
44
|
+
};
|
package/dist/index22.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a={class:"m2s2-blog-card"},i={class:"bc-cover"},s=["src","alt"],l={key:1,class:"bc-cover-placeholder"},r={class:"bc-cover-tag"},d={class:"bc-inner"},m={class:"bc-meta"},g=["dateTime"],f={key:0,class:"bc-reading-time"},h={class:"bc-title"},u=["href"],k={class:"bc-summary"},y={class:"bc-tags"},E=e.defineComponent({__name:"BlogCard",props:{config:{}},setup(t){function o(c){return new Date(c).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}return(c,b)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",i,[t.config.coverImage?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.config.coverImage,alt:t.config.title,class:"bc-cover-img",loading:"lazy"},null,8,s)):(e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("span",r,e.toDisplayString(t.config.tags[0]),1)]))]),e.createElementVNode("div",d,[e.createElementVNode("div",m,[e.createElementVNode("time",{dateTime:t.config.date},e.toDisplayString(o(t.config.date)),9,g),t.config.readingTime?(e.openBlock(),e.createElementBlock("span",f,e.toDisplayString(t.config.readingTime)+" min read",1)):e.createCommentVNode("",!0)]),e.createElementVNode("h2",h,[e.createElementVNode("a",{href:`/blog/${t.config.slug}`},e.toDisplayString(t.config.title),9,u)]),e.createElementVNode("p",k,e.toDisplayString(t.config.summary),1),e.createElementVNode("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.config.tags,n=>(e.openBlock(),e.createElementBlock("span",{key:n,class:"bc-tag"},e.toDisplayString(n),1))),128))])])]))}});module.exports=E;
|
package/dist/index22.mjs
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as d, openBlock as c, createElementBlock as n, createElementVNode as t, toDisplayString as i, createCommentVNode as l, Fragment as r, renderList as g } from "vue";
|
|
2
|
+
const m = { class: "m2s2-blog-card" }, f = { class: "bc-cover" }, h = ["src", "alt"], u = {
|
|
3
|
+
key: 1,
|
|
4
|
+
class: "bc-cover-placeholder"
|
|
5
|
+
}, b = { class: "bc-cover-tag" }, v = { class: "bc-inner" }, y = { class: "bc-meta" }, _ = ["dateTime"], k = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "bc-reading-time"
|
|
8
|
+
}, D = { class: "bc-title" }, T = ["href"], B = { class: "bc-summary" }, C = { class: "bc-tags" }, E = /* @__PURE__ */ d({
|
|
9
|
+
__name: "BlogCard",
|
|
10
|
+
props: {
|
|
11
|
+
config: {}
|
|
12
|
+
},
|
|
13
|
+
setup(e) {
|
|
14
|
+
function a(o) {
|
|
15
|
+
return new Date(o).toLocaleDateString("en-US", {
|
|
16
|
+
year: "numeric",
|
|
17
|
+
month: "long",
|
|
18
|
+
day: "numeric"
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return (o, S) => (c(), n("div", m, [
|
|
22
|
+
t("div", f, [
|
|
23
|
+
e.config.coverImage ? (c(), n("img", {
|
|
24
|
+
key: 0,
|
|
25
|
+
src: e.config.coverImage,
|
|
26
|
+
alt: e.config.title,
|
|
27
|
+
class: "bc-cover-img",
|
|
28
|
+
loading: "lazy"
|
|
29
|
+
}, null, 8, h)) : (c(), n("div", u, [
|
|
30
|
+
t("span", b, i(e.config.tags[0]), 1)
|
|
31
|
+
]))
|
|
32
|
+
]),
|
|
33
|
+
t("div", v, [
|
|
34
|
+
t("div", y, [
|
|
35
|
+
t("time", {
|
|
36
|
+
dateTime: e.config.date
|
|
37
|
+
}, i(a(e.config.date)), 9, _),
|
|
38
|
+
e.config.readingTime ? (c(), n("span", k, i(e.config.readingTime) + " min read", 1)) : l("", !0)
|
|
39
|
+
]),
|
|
40
|
+
t("h2", D, [
|
|
41
|
+
t("a", {
|
|
42
|
+
href: `/blog/${e.config.slug}`
|
|
43
|
+
}, i(e.config.title), 9, T)
|
|
44
|
+
]),
|
|
45
|
+
t("p", B, i(e.config.summary), 1),
|
|
46
|
+
t("div", C, [
|
|
47
|
+
(c(!0), n(r, null, g(e.config.tags, (s) => (c(), n("span", {
|
|
48
|
+
key: s,
|
|
49
|
+
class: "bc-tag"
|
|
50
|
+
}, i(s), 1))), 128))
|
|
51
|
+
])
|
|
52
|
+
])
|
|
53
|
+
]));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
E as default
|
|
58
|
+
};
|
package/dist/index24.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),h={class:"table-panel"},f={key:0,class:"dt-empty"},g={class:"dt-toolbar"},y=["placeholder","value"],C={class:"dt-pills"},v=["onClick"],B={class:"dt-count"},E={key:0,class:"dt-col-panel"},p=["checked","onChange"],V={class:"dt-scroll"},b=e.defineComponent({__name:"DataTable",props:{columnDefs:{default:()=>[]},colVisibility:{default:()=>({})},statuses:{default:()=>[]},statusFilter:{default:"all"},statusLabels:{default:()=>({})},searchValue:{default:""},searchPlaceholder:{default:"Search…"},totalCount:{default:0},filteredCount:{default:0},emptyMessage:{default:"No data yet."}},emits:["searchChange","statusChange","colToggle"],setup(t,{emit:u}){const i=t,c=u,o=e.ref(!1),s=e.ref(null);function d(a){return a==="all"?"All":i.statusLabels[a]??a}function r(a){var n;(n=s.value)!=null&&n.contains(a.target)||(o.value=!1,document.removeEventListener("click",r))}function m(){o.value=!o.value,o.value&&setTimeout(()=>document.addEventListener("click",r),0)}return(a,n)=>(e.openBlock(),e.createElementBlock("div",h,[t.totalCount===0?(e.openBlock(),e.createElementBlock("p",f,e.toDisplayString(t.emptyMessage),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",g,[t.statuses.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("input",{class:"dt-search",type:"search",placeholder:t.searchPlaceholder,value:t.searchValue,onInput:n[0]||(n[0]=l=>c("searchChange",l.target.value))},null,40,y),e.createElementVNode("div",C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.statuses,l=>(e.openBlock(),e.createElementBlock("button",{key:l,class:e.normalizeClass(["dt-pill",{"dt-pill--active":t.statusFilter===l}]),onClick:k=>c("statusChange",l)},e.toDisplayString(d(l)),11,v))),128))]),e.createElementVNode("span",B,e.toDisplayString(t.filteredCount)+" of "+e.toDisplayString(t.totalCount),1)],64)):e.createCommentVNode("",!0),t.columnDefs.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"colWrapRef",ref:s,class:"dt-col-wrap"},[e.createElementVNode("button",{class:"dt-col-btn",onClick:m},"⚙ Columns"),o.value?(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columnDefs,l=>(e.openBlock(),e.createElementBlock("label",{key:l.key,class:"dt-col-check"},[e.createElementVNode("input",{type:"checkbox",checked:t.colVisibility[l.key]??!0,onChange:k=>c("colToggle",l.key)},null,40,p),e.createTextVNode(" "+e.toDisplayString(l.label),1)]))),128))])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)]),e.createElementVNode("div",V,[e.renderSlot(a.$slots,"default")])],64))]))}});module.exports=b;
|