@aotearoan/neon 22.0.0 → 22.0.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.
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("vue"),s=n.defineComponent({name:"NeonPage",setup(){const e=()=>{const t=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${t}rem`);const o=window.innerWidth*.01;document.documentElement.style.setProperty("--vw",`${o}rem`)};n.onMounted(()=>{window.addEventListener("resize",e,{passive:!0}),e()}),n.onUnmounted(()=>{window.removeEventListener("resize",e)})}});module.exports=s;
1
+ "use strict";const n=require("vue"),r=n.defineComponent({name:"NeonPage",setup(i,{slots:t}){const e=()=>{const o=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${o}rem`);const s=window.innerWidth*.01;document.documentElement.style.setProperty("--vw",`${s}rem`)};return n.onMounted(()=>{window.addEventListener("resize",e,{passive:!0}),e()}),n.onUnmounted(()=>{window.removeEventListener("resize",e)}),{slots:t}}});module.exports=r;
2
2
  //# sourceMappingURL=NeonPage.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonPage.cjs.js","sources":["../../../../src/components/layout/page/NeonPage.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent, onMounted, onUnmounted } from 'vue';\n\n/**\n * A \"page\" component, this is defined as a wrapper around the contents (NeonGrid, etc) and footer which provides the\n * correct responsive layout accounting for NeonTopNav and NeonSideNav components being used.\n */\nexport default defineComponent({\n name: 'NeonPage',\n setup() {\n const handleResize = () => {\n const vh = window.innerHeight * 0.01;\n document.documentElement.style.setProperty('--vh', `${vh}rem`);\n const vw = window.innerWidth * 0.01;\n document.documentElement.style.setProperty('--vw', `${vw}rem`);\n };\n\n onMounted(() => {\n window.addEventListener('resize', handleResize, { passive: true });\n handleResize();\n });\n\n onUnmounted(() => {\n window.removeEventListener('resize', handleResize);\n });\n },\n});\n"],"names":["_sfc_main","defineComponent","handleResize","vh","vw","onMounted","onUnmounted"],"mappings":"oCAMAA,EAAeC,kBAAgB,CAC7B,KAAM,WACN,OAAQ,CACN,MAAMC,EAAe,IAAM,CACzB,MAAMC,EAAK,OAAO,YAAc,IAChC,SAAS,gBAAgB,MAAM,YAAY,OAAQ,GAAGA,CAAE,KAAK,EAC7D,MAAMC,EAAK,OAAO,WAAa,IAC/B,SAAS,gBAAgB,MAAM,YAAY,OAAQ,GAAGA,CAAE,KAAK,CAC/D,EAEAC,EAAAA,UAAU,IAAM,CACd,OAAO,iBAAiB,SAAUH,EAAc,CAAE,QAAS,GAAM,EACjEA,EAAA,CACF,CAAC,EAEDI,EAAAA,YAAY,IAAM,CAChB,OAAO,oBAAoB,SAAUJ,CAAY,CACnD,CAAC,CACH,CACF,CAAC"}
1
+ {"version":3,"file":"NeonPage.cjs.js","sources":["../../../../src/components/layout/page/NeonPage.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent, onMounted, onUnmounted } from 'vue';\n\n/**\n * A \"page\" component, this is defined as a wrapper around the contents (NeonGrid, etc) and footer which provides the\n * correct responsive layout accounting for NeonTopNav and NeonSideNav components being used.\n */\nexport default defineComponent({\n name: 'NeonPage',\n setup(_props, { slots }) {\n const handleResize = () => {\n const vh = window.innerHeight * 0.01;\n document.documentElement.style.setProperty('--vh', `${vh}rem`);\n const vw = window.innerWidth * 0.01;\n document.documentElement.style.setProperty('--vw', `${vw}rem`);\n };\n\n onMounted(() => {\n window.addEventListener('resize', handleResize, { passive: true });\n handleResize();\n });\n\n onUnmounted(() => {\n window.removeEventListener('resize', handleResize);\n });\n\n return { slots };\n },\n});\n"],"names":["_sfc_main","defineComponent","_props","slots","handleResize","vh","vw","onMounted","onUnmounted"],"mappings":"oCAMAA,EAAeC,kBAAgB,CAC7B,KAAM,WACN,MAAMC,EAAQ,CAAE,MAAAC,GAAS,CACvB,MAAMC,EAAe,IAAM,CACzB,MAAMC,EAAK,OAAO,YAAc,IAChC,SAAS,gBAAgB,MAAM,YAAY,OAAQ,GAAGA,CAAE,KAAK,EAC7D,MAAMC,EAAK,OAAO,WAAa,IAC/B,SAAS,gBAAgB,MAAM,YAAY,OAAQ,GAAGA,CAAE,KAAK,CAC/D,EAEAC,OAAAA,EAAAA,UAAU,IAAM,CACd,OAAO,iBAAiB,SAAUH,EAAc,CAAE,QAAS,GAAM,EACjEA,EAAA,CACF,CAAC,EAEDI,EAAAA,YAAY,IAAM,CAChB,OAAO,oBAAoB,SAAUJ,CAAY,CACnD,CAAC,EAEM,CAAE,MAAAD,CAAA,CACX,CACF,CAAC"}
@@ -1,21 +1,21 @@
1
- import { defineComponent as o, onMounted as s, onUnmounted as i } from "vue";
2
- const d = o({
1
+ import { defineComponent as r, onMounted as s, onUnmounted as i } from "vue";
2
+ const u = r({
3
3
  name: "NeonPage",
4
- setup() {
4
+ setup(d, { slots: n }) {
5
5
  const e = () => {
6
- const n = window.innerHeight * 0.01;
7
- document.documentElement.style.setProperty("--vh", `${n}rem`);
8
- const t = window.innerWidth * 0.01;
9
- document.documentElement.style.setProperty("--vw", `${t}rem`);
6
+ const t = window.innerHeight * 0.01;
7
+ document.documentElement.style.setProperty("--vh", `${t}rem`);
8
+ const o = window.innerWidth * 0.01;
9
+ document.documentElement.style.setProperty("--vw", `${o}rem`);
10
10
  };
11
- s(() => {
11
+ return s(() => {
12
12
  window.addEventListener("resize", e, { passive: !0 }), e();
13
13
  }), i(() => {
14
14
  window.removeEventListener("resize", e);
15
- });
15
+ }), { slots: n };
16
16
  }
17
17
  });
18
18
  export {
19
- d as default
19
+ u as default
20
20
  };
21
21
  //# sourceMappingURL=NeonPage.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonPage.es.js","sources":["../../../../src/components/layout/page/NeonPage.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent, onMounted, onUnmounted } from 'vue';\n\n/**\n * A \"page\" component, this is defined as a wrapper around the contents (NeonGrid, etc) and footer which provides the\n * correct responsive layout accounting for NeonTopNav and NeonSideNav components being used.\n */\nexport default defineComponent({\n name: 'NeonPage',\n setup() {\n const handleResize = () => {\n const vh = window.innerHeight * 0.01;\n document.documentElement.style.setProperty('--vh', `${vh}rem`);\n const vw = window.innerWidth * 0.01;\n document.documentElement.style.setProperty('--vw', `${vw}rem`);\n };\n\n onMounted(() => {\n window.addEventListener('resize', handleResize, { passive: true });\n handleResize();\n });\n\n onUnmounted(() => {\n window.removeEventListener('resize', handleResize);\n });\n },\n});\n"],"names":["_sfc_main","defineComponent","handleResize","vh","vw","onMounted","onUnmounted"],"mappings":";AAMA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,QAAQ;AACN,UAAMC,IAAe,MAAM;AACzB,YAAMC,IAAK,OAAO,cAAc;AAChC,eAAS,gBAAgB,MAAM,YAAY,QAAQ,GAAGA,CAAE,KAAK;AAC7D,YAAMC,IAAK,OAAO,aAAa;AAC/B,eAAS,gBAAgB,MAAM,YAAY,QAAQ,GAAGA,CAAE,KAAK;AAAA,IAC/D;AAEA,IAAAC,EAAU,MAAM;AACd,aAAO,iBAAiB,UAAUH,GAAc,EAAE,SAAS,IAAM,GACjEA,EAAA;AAAA,IACF,CAAC,GAEDI,EAAY,MAAM;AAChB,aAAO,oBAAoB,UAAUJ,CAAY;AAAA,IACnD,CAAC;AAAA,EACH;AACF,CAAC;"}
1
+ {"version":3,"file":"NeonPage.es.js","sources":["../../../../src/components/layout/page/NeonPage.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent, onMounted, onUnmounted } from 'vue';\n\n/**\n * A \"page\" component, this is defined as a wrapper around the contents (NeonGrid, etc) and footer which provides the\n * correct responsive layout accounting for NeonTopNav and NeonSideNav components being used.\n */\nexport default defineComponent({\n name: 'NeonPage',\n setup(_props, { slots }) {\n const handleResize = () => {\n const vh = window.innerHeight * 0.01;\n document.documentElement.style.setProperty('--vh', `${vh}rem`);\n const vw = window.innerWidth * 0.01;\n document.documentElement.style.setProperty('--vw', `${vw}rem`);\n };\n\n onMounted(() => {\n window.addEventListener('resize', handleResize, { passive: true });\n handleResize();\n });\n\n onUnmounted(() => {\n window.removeEventListener('resize', handleResize);\n });\n\n return { slots };\n },\n});\n"],"names":["_sfc_main","defineComponent","_props","slots","handleResize","vh","vw","onMounted","onUnmounted"],"mappings":";AAMA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,MAAMC,GAAQ,EAAE,OAAAC,KAAS;AACvB,UAAMC,IAAe,MAAM;AACzB,YAAMC,IAAK,OAAO,cAAc;AAChC,eAAS,gBAAgB,MAAM,YAAY,QAAQ,GAAGA,CAAE,KAAK;AAC7D,YAAMC,IAAK,OAAO,aAAa;AAC/B,eAAS,gBAAgB,MAAM,YAAY,QAAQ,GAAGA,CAAE,KAAK;AAAA,IAC/D;AAEA,WAAAC,EAAU,MAAM;AACd,aAAO,iBAAiB,UAAUH,GAAc,EAAE,SAAS,IAAM,GACjEA,EAAA;AAAA,IACF,CAAC,GAEDI,EAAY,MAAM;AAChB,aAAO,oBAAoB,UAAUJ,CAAY;AAAA,IACnD,CAAC,GAEM,EAAE,OAAAD,EAAA;AAAA,EACX;AACF,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const o=require("./NeonPage.cjs.js"),e=require("vue"),s=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),t={class:"neon-page__container"};function r(n,l,i,p,c,d){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["neon-page",{"neon-page--with-top-nav":n.$slots["top-nav"],"neon-page--with-side-nav":n.$slots["side-nav"]}])},[e.renderSlot(n.$slots,"top-nav"),e.renderSlot(n.$slots,"side-nav"),e.createElementVNode("div",t,[e.renderSlot(n.$slots,"content")])],2)}const a=s(o,[["render",r]]);module.exports=a;
1
+ "use strict";const o=require("./NeonPage.cjs.js"),e=require("vue"),s=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),t={class:"neon-page__container"};function r(n,l,i,p,c,d){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{"neon-page--with-top-nav":n.slots["top-nav"],"neon-page--with-side-nav":n.slots["side-nav"]},"neon-page"])},[e.renderSlot(n.$slots,"top-nav"),e.renderSlot(n.$slots,"side-nav"),e.createElementVNode("div",t,[e.renderSlot(n.$slots,"content")])],2)}const a=s(o,[["render",r]]);module.exports=a;
2
2
  //# sourceMappingURL=NeonPage.vue.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonPage.vue.cjs.js","sources":["../../../../src/components/layout/page/NeonPage.vue"],"sourcesContent":["<template>\n <div\n class=\"neon-page\"\n :class=\"{ 'neon-page--with-top-nav': $slots['top-nav'], 'neon-page--with-side-nav': $slots['side-nav'] }\"\n >\n <!-- @slot The <strong>NeonTopNav</strong> slot. This slot is required to ensure the correct responsive page layout. -->\n <slot name=\"top-nav\"></slot>\n <!-- @slot The <strong>NeonSideNav</strong> slot. This slot is required to ensure the correct responsive page layout. -->\n <slot name=\"side-nav\"></slot>\n <div class=\"neon-page__container\">\n <!-- @slot The main page content -->\n <slot name=\"content\"></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonPage.ts\"></script>\n"],"names":["_hoisted_1","_createElementBlock","_normalizeClass","_ctx","_renderSlot","_createElementVNode"],"mappings":"mIASSA,EAAA,CAAA,MAAM,sBAAsB,+CARnCC,EAAAA,mBAYM,MAAA,CAXJ,MAAKC,EAAAA,eAAA,CAAC,YAAW,CAAA,0BACoBC,EAAA,6CAA+CA,EAAA,OAAM,UAAA,CAAA,CAAA,CAAA,IAG1FC,aAA4BD,EAAA,OAAA,SAAA,EAE5BC,aAA6BD,EAAA,OAAA,UAAA,EAC7BE,EAAAA,mBAGM,MAHNL,EAGM,CADJI,aAA4BD,EAAA,OAAA,SAAA"}
1
+ {"version":3,"file":"NeonPage.vue.cjs.js","sources":["../../../../src/components/layout/page/NeonPage.vue"],"sourcesContent":["<template>\n <div\n :class=\"{ 'neon-page--with-top-nav': slots['top-nav'], 'neon-page--with-side-nav': slots['side-nav'] }\"\n class=\"neon-page\"\n >\n <!-- @slot The <strong>NeonTopNav</strong> slot. This slot is required to ensure the correct responsive page layout. -->\n <slot name=\"top-nav\"></slot>\n <!-- @slot The <strong>NeonSideNav</strong> slot. This slot is required to ensure the correct responsive page layout. -->\n <slot name=\"side-nav\"></slot>\n <div class=\"neon-page__container\">\n <!-- @slot The main page content -->\n <slot name=\"content\"></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonPage.ts\"></script>\n"],"names":["_hoisted_1","_createElementBlock","_normalizeClass","_ctx","_renderSlot","_createElementVNode"],"mappings":"mIASSA,EAAA,CAAA,MAAM,sBAAsB,+CARnCC,EAAAA,mBAYM,MAAA,CAXH,MAAKC,EAAAA,eAAA,CAAA,CAAA,0BAA+BC,EAAA,MAAK,SAAA,EAAA,2BAAyCA,EAAA,mBAC7E,WAAW,CAAA,IAGjBC,aAA4BD,EAAA,OAAA,SAAA,EAE5BC,aAA6BD,EAAA,OAAA,UAAA,EAC7BE,EAAAA,mBAGM,MAHNL,EAGM,CADJI,aAA4BD,EAAA,OAAA,SAAA"}
@@ -2,9 +2,9 @@ import n from "./NeonPage.es.js";
2
2
  import { openBlock as s, createElementBlock as t, normalizeClass as a, renderSlot as o, createElementVNode as r } from "vue";
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.es.js";
4
4
  const i = { class: "neon-page__container" };
5
- function l(e, c, d, m, $, f) {
5
+ function l(e, c, d, m, f, v) {
6
6
  return s(), t("div", {
7
- class: a(["neon-page", { "neon-page--with-top-nav": e.$slots["top-nav"], "neon-page--with-side-nav": e.$slots["side-nav"] }])
7
+ class: a([{ "neon-page--with-top-nav": e.slots["top-nav"], "neon-page--with-side-nav": e.slots["side-nav"] }, "neon-page"])
8
8
  }, [
9
9
  o(e.$slots, "top-nav"),
10
10
  o(e.$slots, "side-nav"),
@@ -1 +1 @@
1
- {"version":3,"file":"NeonPage.vue.es.js","sources":["../../../../src/components/layout/page/NeonPage.vue"],"sourcesContent":["<template>\n <div\n class=\"neon-page\"\n :class=\"{ 'neon-page--with-top-nav': $slots['top-nav'], 'neon-page--with-side-nav': $slots['side-nav'] }\"\n >\n <!-- @slot The <strong>NeonTopNav</strong> slot. This slot is required to ensure the correct responsive page layout. -->\n <slot name=\"top-nav\"></slot>\n <!-- @slot The <strong>NeonSideNav</strong> slot. This slot is required to ensure the correct responsive page layout. -->\n <slot name=\"side-nav\"></slot>\n <div class=\"neon-page__container\">\n <!-- @slot The main page content -->\n <slot name=\"content\"></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonPage.ts\"></script>\n"],"names":["_hoisted_1","_createElementBlock","_normalizeClass","_ctx","_renderSlot","_createElementVNode"],"mappings":";;;AASS,MAAAA,IAAA,EAAA,OAAM,uBAAsB;;cARnCC,EAYM,OAAA;AAAA,IAXJ,OAAKC,EAAA,CAAC,aAAW,EAAA,2BACoBC,EAAA,+CAA+CA,EAAA,OAAM,UAAA,EAAA,CAAA,CAAA;AAAA;IAG1FC,EAA4BD,EAAA,QAAA,SAAA;AAAA,IAE5BC,EAA6BD,EAAA,QAAA,UAAA;AAAA,IAC7BE,EAGM,OAHNL,GAGM;AAAA,MADJI,EAA4BD,EAAA,QAAA,SAAA;AAAA;;;;"}
1
+ {"version":3,"file":"NeonPage.vue.es.js","sources":["../../../../src/components/layout/page/NeonPage.vue"],"sourcesContent":["<template>\n <div\n :class=\"{ 'neon-page--with-top-nav': slots['top-nav'], 'neon-page--with-side-nav': slots['side-nav'] }\"\n class=\"neon-page\"\n >\n <!-- @slot The <strong>NeonTopNav</strong> slot. This slot is required to ensure the correct responsive page layout. -->\n <slot name=\"top-nav\"></slot>\n <!-- @slot The <strong>NeonSideNav</strong> slot. This slot is required to ensure the correct responsive page layout. -->\n <slot name=\"side-nav\"></slot>\n <div class=\"neon-page__container\">\n <!-- @slot The main page content -->\n <slot name=\"content\"></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonPage.ts\"></script>\n"],"names":["_hoisted_1","_createElementBlock","_normalizeClass","_ctx","_renderSlot","_createElementVNode"],"mappings":";;;AASS,MAAAA,IAAA,EAAA,OAAM,uBAAsB;;cARnCC,EAYM,OAAA;AAAA,IAXH,OAAKC,EAAA,CAAA,EAAA,2BAA+BC,EAAA,MAAK,SAAA,GAAA,4BAAyCA,EAAA,qBAC7E,WAAW,CAAA;AAAA;IAGjBC,EAA4BD,EAAA,QAAA,SAAA;AAAA,IAE5BC,EAA6BD,EAAA,QAAA,UAAA;AAAA,IAC7BE,EAGM,OAHNL,GAGM;AAAA,MADJI,EAA4BD,EAAA,QAAA,SAAA;AAAA;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("vue"),n=e.defineComponent({name:"NeonSideNav",props:{fullWidth:{type:Boolean,default:!1}}});module.exports=n;
1
+ "use strict";const t=require("vue"),n=t.defineComponent({name:"NeonSideNav",props:{fullWidth:{type:Boolean,default:!1}},setup(o,{slots:e}){return{slots:e}}});module.exports=n;
2
2
  //# sourceMappingURL=NeonSideNav.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonSideNav.cjs.js","sources":["../../../../src/components/layout/side-nav/NeonSideNav.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent } from 'vue';\n\n/**\n * A side navigation component. This is displayed at the <em>larger-than-tablet</em> breakpoint and hidden at\n * <em>tablet</em> and below. Use this to display menus, navigation or other items related to the main page content. A\n * side nave had two slots, one for <em>sticky</em> content which remains visible at all times. The other is for\n * <em>scrolling content</em> which is allowed to overflow below the bottom of the page.\n */\nexport default defineComponent({\n name: 'NeonSideNav',\n props: {\n /**\n * If true, removes the side nav component's padding.\n */\n fullWidth: { type: Boolean, default: false },\n },\n});\n"],"names":["_sfc_main","defineComponent"],"mappings":"oCAQAA,EAAeC,kBAAgB,CAC7B,KAAM,cACN,MAAO,CAIL,UAAW,CAAE,KAAM,QAAS,QAAS,EAAA,CAAM,CAE/C,CAAC"}
1
+ {"version":3,"file":"NeonSideNav.cjs.js","sources":["../../../../src/components/layout/side-nav/NeonSideNav.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent } from 'vue';\n\n/**\n * A side navigation component. This is displayed at the <em>larger-than-tablet</em> breakpoint and hidden at\n * <em>tablet</em> and below. Use this to display menus, navigation or other items related to the main page content. A\n * side nave had two slots, one for <em>sticky</em> content which remains visible at all times. The other is for\n * <em>scrolling content</em> which is allowed to overflow below the bottom of the page.\n */\nexport default defineComponent({\n name: 'NeonSideNav',\n props: {\n /**\n * If true, removes the side nav component's padding.\n */\n fullWidth: { type: Boolean, default: false },\n },\n setup(_props, { slots }) {\n return { slots };\n },\n});\n"],"names":["_sfc_main","defineComponent","_props","slots"],"mappings":"oCAQAA,EAAeC,kBAAgB,CAC7B,KAAM,cACN,MAAO,CAIL,UAAW,CAAE,KAAM,QAAS,QAAS,EAAA,CAAM,EAE7C,MAAMC,EAAQ,CAAE,MAAAC,GAAS,CACvB,MAAO,CAAE,MAAAA,CAAA,CACX,CACF,CAAC"}
@@ -1,14 +1,17 @@
1
- import { defineComponent as e } from "vue";
2
- const a = e({
1
+ import { defineComponent as o } from "vue";
2
+ const p = o({
3
3
  name: "NeonSideNav",
4
4
  props: {
5
5
  /**
6
6
  * If true, removes the side nav component's padding.
7
7
  */
8
8
  fullWidth: { type: Boolean, default: !1 }
9
+ },
10
+ setup(t, { slots: e }) {
11
+ return { slots: e };
9
12
  }
10
13
  });
11
14
  export {
12
- a as default
15
+ p as default
13
16
  };
14
17
  //# sourceMappingURL=NeonSideNav.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonSideNav.es.js","sources":["../../../../src/components/layout/side-nav/NeonSideNav.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent } from 'vue';\n\n/**\n * A side navigation component. This is displayed at the <em>larger-than-tablet</em> breakpoint and hidden at\n * <em>tablet</em> and below. Use this to display menus, navigation or other items related to the main page content. A\n * side nave had two slots, one for <em>sticky</em> content which remains visible at all times. The other is for\n * <em>scrolling content</em> which is allowed to overflow below the bottom of the page.\n */\nexport default defineComponent({\n name: 'NeonSideNav',\n props: {\n /**\n * If true, removes the side nav component's padding.\n */\n fullWidth: { type: Boolean, default: false },\n },\n});\n"],"names":["_sfc_main","defineComponent"],"mappings":";AAQA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,WAAW,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EAAM;AAE/C,CAAC;"}
1
+ {"version":3,"file":"NeonSideNav.es.js","sources":["../../../../src/components/layout/side-nav/NeonSideNav.ts?vue&type=script&src=true&lang.ts"],"sourcesContent":["import { defineComponent } from 'vue';\n\n/**\n * A side navigation component. This is displayed at the <em>larger-than-tablet</em> breakpoint and hidden at\n * <em>tablet</em> and below. Use this to display menus, navigation or other items related to the main page content. A\n * side nave had two slots, one for <em>sticky</em> content which remains visible at all times. The other is for\n * <em>scrolling content</em> which is allowed to overflow below the bottom of the page.\n */\nexport default defineComponent({\n name: 'NeonSideNav',\n props: {\n /**\n * If true, removes the side nav component's padding.\n */\n fullWidth: { type: Boolean, default: false },\n },\n setup(_props, { slots }) {\n return { slots };\n },\n});\n"],"names":["_sfc_main","defineComponent","_props","slots"],"mappings":";AAQA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,WAAW,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EAAM;AAAA,EAE7C,MAAMC,GAAQ,EAAE,OAAAC,KAAS;AACvB,WAAO,EAAE,OAAAA,EAAA;AAAA,EACX;AACF,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./NeonSideNav.cjs.js"),e=require("vue"),n=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),t={key:0,class:"neon-side-nav__sticky"},l={key:1},r={key:2,class:"neon-side-nav__scrolling"},c={class:"neon-side-nav__scrolling-container"};function i(o,d,_,u,k,p){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["neon-side-nav",{"neon-side-nav--full-width":o.fullWidth}])},[o.$slots.sticky?(e.openBlock(),e.createElementBlock("div",t,[e.renderSlot(o.$slots,"sticky")])):e.createCommentVNode("",!0),o.$slots.sticky&&o.$slots.scrolling?(e.openBlock(),e.createElementBlock("hr",l)):e.createCommentVNode("",!0),o.$slots.scrolling?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("div",c,[e.renderSlot(o.$slots,"scrolling")])])):e.createCommentVNode("",!0)],2)}const a=n(s,[["render",i]]);module.exports=a;
1
+ "use strict";const s=require("./NeonSideNav.cjs.js"),e=require("vue"),n=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),t={key:0,class:"neon-side-nav__sticky"},l={key:1},r={key:2,class:"neon-side-nav__scrolling"},c={class:"neon-side-nav__scrolling-container"};function i(o,d,_,u,k,p){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{"neon-side-nav--full-width":o.fullWidth},"neon-side-nav"])},[o.slots.sticky?(e.openBlock(),e.createElementBlock("div",t,[e.renderSlot(o.$slots,"sticky")])):e.createCommentVNode("",!0),o.slots.sticky&&o.slots.scrolling?(e.openBlock(),e.createElementBlock("hr",l)):e.createCommentVNode("",!0),o.slots.scrolling?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("div",c,[e.renderSlot(o.$slots,"scrolling")])])):e.createCommentVNode("",!0)],2)}const a=n(s,[["render",i]]);module.exports=a;
2
2
  //# sourceMappingURL=NeonSideNav.vue.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonSideNav.vue.cjs.js","sources":["../../../../src/components/layout/side-nav/NeonSideNav.vue"],"sourcesContent":["<template>\n <div class=\"neon-side-nav\" :class=\"{ 'neon-side-nav--full-width': fullWidth }\">\n <div v-if=\"$slots.sticky\" class=\"neon-side-nav__sticky\">\n <!-- @slot sticky (fixed, non-scrolling) content -->\n <slot name=\"sticky\"></slot>\n </div>\n <hr v-if=\"$slots.sticky && $slots.scrolling\" />\n <div v-if=\"$slots.scrolling\" class=\"neon-side-nav__scrolling\">\n <!-- @slot scrolling content -->\n <div class=\"neon-side-nav__scrolling-container\">\n <slot name=\"scrolling\"></slot>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonSideNav.ts\"></script>\n"],"names":["_hoisted_4","_createElementBlock","_normalizeClass","_ctx","_openBlock","_hoisted_1","_renderSlot","_hoisted_2","_hoisted_3","_createElementVNode"],"mappings":"+IAE8B,MAAM,4CAKH,MAAM,4BAE5BA,EAAA,CAAA,MAAM,oCAAoC,+CARnDC,EAAAA,mBAYM,MAAA,CAZD,MAAKC,EAAAA,eAAA,CAAC,gBAAe,CAAA,4BAAwCC,EAAA,UAAS,CAAA,IAC9DA,EAAA,OAAO,QAAlBC,EAAAA,YAAAH,EAAAA,mBAGM,MAHNI,EAGM,CADJC,aAA2BH,EAAA,OAAA,QAAA,iCAEnBA,EAAA,OAAO,QAAUA,EAAA,OAAO,yBAAlCF,EAAAA,mBAA+C,KAAAM,CAAA,+BACpCJ,EAAA,OAAO,WAAlBC,EAAAA,YAAAH,EAAAA,mBAKM,MALNO,EAKM,CAHJC,EAAAA,mBAEM,MAFNT,EAEM,CADJM,aAA8BH,EAAA,OAAA,WAAA"}
1
+ {"version":3,"file":"NeonSideNav.vue.cjs.js","sources":["../../../../src/components/layout/side-nav/NeonSideNav.vue"],"sourcesContent":["<template>\n <div :class=\"{ 'neon-side-nav--full-width': fullWidth }\" class=\"neon-side-nav\">\n <div v-if=\"slots.sticky\" class=\"neon-side-nav__sticky\">\n <!-- @slot sticky (fixed, non-scrolling) content -->\n <slot name=\"sticky\"></slot>\n </div>\n <hr v-if=\"slots.sticky && slots.scrolling\" />\n <div v-if=\"slots.scrolling\" class=\"neon-side-nav__scrolling\">\n <!-- @slot scrolling content -->\n <div class=\"neon-side-nav__scrolling-container\">\n <slot name=\"scrolling\"></slot>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonSideNav.ts\"></script>\n"],"names":["_hoisted_4","_createElementBlock","_normalizeClass","_ctx","_openBlock","_hoisted_1","_renderSlot","_hoisted_2","_hoisted_3","_createElementVNode"],"mappings":"+IAE6B,MAAM,4CAKH,MAAM,4BAE3BA,EAAA,CAAA,MAAM,oCAAoC,+CARnDC,EAAAA,mBAYM,MAAA,CAZA,MAAKC,EAAAA,eAAA,CAAA,CAAA,4BAAiCC,EAAA,SAAS,EAAU,eAAe,CAAA,IACjEA,EAAA,MAAM,QAAjBC,EAAAA,YAAAH,EAAAA,mBAGM,MAHNI,EAGM,CADJC,aAA2BH,EAAA,OAAA,QAAA,iCAEnBA,EAAA,MAAM,QAAUA,EAAA,MAAM,yBAAhCF,EAAAA,mBAA6C,KAAAM,CAAA,+BAClCJ,EAAA,MAAM,WAAjBC,EAAAA,YAAAH,EAAAA,mBAKM,MALNO,EAKM,CAHJC,EAAAA,mBAEM,MAFNT,EAEM,CADJM,aAA8BH,EAAA,OAAA,WAAA"}
@@ -8,15 +8,15 @@ const d = {
8
8
  key: 2,
9
9
  class: "neon-side-nav__scrolling"
10
10
  }, m = { class: "neon-side-nav__scrolling-container" };
11
- function f(s, p, v, $, k, u) {
11
+ function f(s, p, v, k, u, h) {
12
12
  return e(), o("div", {
13
- class: l(["neon-side-nav", { "neon-side-nav--full-width": s.fullWidth }])
13
+ class: l([{ "neon-side-nav--full-width": s.fullWidth }, "neon-side-nav"])
14
14
  }, [
15
- s.$slots.sticky ? (e(), o("div", d, [
15
+ s.slots.sticky ? (e(), o("div", d, [
16
16
  t(s.$slots, "sticky")
17
17
  ])) : n("", !0),
18
- s.$slots.sticky && s.$slots.scrolling ? (e(), o("hr", a)) : n("", !0),
19
- s.$slots.scrolling ? (e(), o("div", _, [
18
+ s.slots.sticky && s.slots.scrolling ? (e(), o("hr", a)) : n("", !0),
19
+ s.slots.scrolling ? (e(), o("div", _, [
20
20
  r("div", m, [
21
21
  t(s.$slots, "scrolling")
22
22
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"NeonSideNav.vue.es.js","sources":["../../../../src/components/layout/side-nav/NeonSideNav.vue"],"sourcesContent":["<template>\n <div class=\"neon-side-nav\" :class=\"{ 'neon-side-nav--full-width': fullWidth }\">\n <div v-if=\"$slots.sticky\" class=\"neon-side-nav__sticky\">\n <!-- @slot sticky (fixed, non-scrolling) content -->\n <slot name=\"sticky\"></slot>\n </div>\n <hr v-if=\"$slots.sticky && $slots.scrolling\" />\n <div v-if=\"$slots.scrolling\" class=\"neon-side-nav__scrolling\">\n <!-- @slot scrolling content -->\n <div class=\"neon-side-nav__scrolling-container\">\n <slot name=\"scrolling\"></slot>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonSideNav.ts\"></script>\n"],"names":["_hoisted_4","_createElementBlock","_normalizeClass","_ctx","_openBlock","_hoisted_1","_renderSlot","_hoisted_2","_hoisted_3","_createElementVNode"],"mappings":";;;;;EAE8B,OAAM;;;EAKH,OAAM;GAE5BA,IAAA,EAAA,OAAM,qCAAoC;;cARnDC,EAYM,OAAA;AAAA,IAZD,OAAKC,EAAA,CAAC,iBAAe,EAAA,6BAAwCC,EAAA,WAAS,CAAA;AAAA;IAC9DA,EAAA,OAAO,UAAlBC,KAAAH,EAGM,OAHNI,GAGM;AAAA,MADJC,EAA2BH,EAAA,QAAA,QAAA;AAAA;IAEnBA,EAAA,OAAO,UAAUA,EAAA,OAAO,kBAAlCF,EAA+C,MAAAM,CAAA;IACpCJ,EAAA,OAAO,aAAlBC,KAAAH,EAKM,OALNO,GAKM;AAAA,MAHJC,EAEM,OAFNT,GAEM;AAAA,QADJM,EAA8BH,EAAA,QAAA,WAAA;AAAA;;;;;"}
1
+ {"version":3,"file":"NeonSideNav.vue.es.js","sources":["../../../../src/components/layout/side-nav/NeonSideNav.vue"],"sourcesContent":["<template>\n <div :class=\"{ 'neon-side-nav--full-width': fullWidth }\" class=\"neon-side-nav\">\n <div v-if=\"slots.sticky\" class=\"neon-side-nav__sticky\">\n <!-- @slot sticky (fixed, non-scrolling) content -->\n <slot name=\"sticky\"></slot>\n </div>\n <hr v-if=\"slots.sticky && slots.scrolling\" />\n <div v-if=\"slots.scrolling\" class=\"neon-side-nav__scrolling\">\n <!-- @slot scrolling content -->\n <div class=\"neon-side-nav__scrolling-container\">\n <slot name=\"scrolling\"></slot>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" src=\"./NeonSideNav.ts\"></script>\n"],"names":["_hoisted_4","_createElementBlock","_normalizeClass","_ctx","_openBlock","_hoisted_1","_renderSlot","_hoisted_2","_hoisted_3","_createElementVNode"],"mappings":";;;;;EAE6B,OAAM;;;EAKH,OAAM;GAE3BA,IAAA,EAAA,OAAM,qCAAoC;;cARnDC,EAYM,OAAA;AAAA,IAZA,OAAKC,EAAA,CAAA,EAAA,6BAAiCC,EAAA,UAAS,GAAU,eAAe,CAAA;AAAA;IACjEA,EAAA,MAAM,UAAjBC,KAAAH,EAGM,OAHNI,GAGM;AAAA,MADJC,EAA2BH,EAAA,QAAA,QAAA;AAAA;IAEnBA,EAAA,MAAM,UAAUA,EAAA,MAAM,kBAAhCF,EAA6C,MAAAM,CAAA;IAClCJ,EAAA,MAAM,aAAjBC,KAAAH,EAKM,OALNO,GAKM;AAAA,MAHJC,EAEM,OAFNT,GAEM;AAAA,QADJM,EAA8BH,EAAA,QAAA,WAAA;AAAA;;;;;"}
@@ -2,5 +2,9 @@
2
2
  * A "page" component, this is defined as a wrapper around the contents (NeonGrid, etc) and footer which provides the
3
3
  * correct responsive layout accounting for NeonTopNav and NeonSideNav components being used.
4
4
  */
5
- declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
+ declare const _default: import("vue").DefineComponent<{}, {
6
+ slots: Readonly<{
7
+ [name: string]: import("vue").Slot<any> | undefined;
8
+ }>;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
10
  export default _default;
@@ -12,7 +12,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
12
12
  type: BooleanConstructor;
13
13
  default: boolean;
14
14
  };
15
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ }>, {
16
+ slots: Readonly<{
17
+ [name: string]: import("vue").Slot<any> | undefined;
18
+ }>;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
20
  /**
17
21
  * If true, removes the side nav component's padding.
18
22
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aotearoan/neon",
3
3
  "description": "Neon is a lightweight design library of Vue 3 components with minimal dependencies.",
4
- "version": "22.0.0",
4
+ "version": "22.0.1",
5
5
  "main": "./dist/neon.cjs.js",
6
6
  "module": "./dist/neon.es.js",
7
7
  "types": "./dist/src/neon.d.ts",