@aotearoan/neon 28.7.4 → 28.7.5

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 t=require("./NeonTab.cjs.js"),e=require("vue"),o=require("../../../../_virtual/_plugin-vue_export-helper.cjs.js"),r=["id","aria-labelledby"];function a(n,l,s,d,u,c){return e.openBlock(),e.createBlock(e.Transition,{name:n.transition?"neon-fade-transition":null,mode:"out-in"},{default:e.withCtx(()=>[n.selected?(e.openBlock(),e.createElementBlock("div",{key:0,id:n.id,"aria-labelledby":n.id?`${n.id}Button`:void 0,class:e.normalizeClass([{"neon-tab--selected":n.selected},"neon-tab"]),role:"tabpanel",tabindex:"0"},[e.renderSlot(n.$slots,"default")],10,r)):e.createCommentVNode("",!0)]),_:3},8,["name"])}const i=o(t,[["render",a]]);module.exports=i;
1
+ "use strict";const t=require("./NeonTab.cjs.js"),e=require("vue"),o=require("../../../../_virtual/_plugin-vue_export-helper.cjs.js"),r=["id","aria-labelledby"];function a(n,l,s,d,u,c){return e.openBlock(),e.createBlock(e.Transition,{name:n.transition?"neon-tab-transition":null,mode:"out-in"},{default:e.withCtx(()=>[n.selected?(e.openBlock(),e.createElementBlock("div",{key:0,id:n.id,"aria-labelledby":n.id?`${n.id}Button`:void 0,class:e.normalizeClass([{"neon-tab--selected":n.selected},"neon-tab"]),role:"tabpanel",tabindex:"0"},[e.renderSlot(n.$slots,"default")],10,r)):e.createCommentVNode("",!0)]),_:3},8,["name"])}const i=o(t,[["render",a]]);module.exports=i;
2
2
  //# sourceMappingURL=NeonTab.vue.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NeonTab.vue.cjs.js","sources":["../../../../../src/components/presentation/tabs/tab/NeonTab.vue"],"sourcesContent":["<template>\n <transition :name=\"transition ? 'neon-fade-transition' : null\" mode=\"out-in\">\n <div\n v-if=\"selected\"\n :id=\"id\"\n :aria-labelledby=\"id ? `${id}Button` : undefined\"\n :class=\"{ 'neon-tab--selected': selected }\"\n class=\"neon-tab\"\n role=\"tabpanel\"\n tabindex=\"0\"\n >\n <!-- @slot The tab content -->\n <slot></slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" src=\"./NeonTab.ts\"></script>\n"],"names":["_createBlock","_Transition","_ctx","_createElementBlock","_normalizeClass","_renderSlot"],"mappings":"6MACEA,EAAAA,YAaaC,aAAA,CAbA,KAAMC,EAAA,WAAU,uBAAA,KAAkC,KAAK,6BAClE,IAWM,CAVEA,EAAA,wBADRC,EAAAA,mBAWM,MAAA,OATH,GAAID,EAAA,GACJ,kBAAiBA,EAAA,GAAE,GAAMA,EAAA,EAAE,SAAW,OACtC,MAAKE,EAAAA,eAAA,CAAA,CAAA,qBAA0BF,EAAA,QAAQ,EAClC,UAAU,CAAA,EAChB,KAAK,WACL,SAAS,MAGTG,aAAaH,EAAA,OAAA,SAAA"}
1
+ {"version":3,"file":"NeonTab.vue.cjs.js","sources":["../../../../../src/components/presentation/tabs/tab/NeonTab.vue"],"sourcesContent":["<template>\n <transition :name=\"transition ? 'neon-tab-transition' : null\" mode=\"out-in\">\n <div\n v-if=\"selected\"\n :id=\"id\"\n :aria-labelledby=\"id ? `${id}Button` : undefined\"\n :class=\"{ 'neon-tab--selected': selected }\"\n class=\"neon-tab\"\n role=\"tabpanel\"\n tabindex=\"0\"\n >\n <!-- @slot The tab content -->\n <slot></slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" src=\"./NeonTab.ts\"></script>\n"],"names":["_createBlock","_Transition","_ctx","_createElementBlock","_normalizeClass","_renderSlot"],"mappings":"6MACEA,EAAAA,YAaaC,aAAA,CAbA,KAAMC,EAAA,WAAU,sBAAA,KAAiC,KAAK,6BACjE,IAWM,CAVEA,EAAA,wBADRC,EAAAA,mBAWM,MAAA,OATH,GAAID,EAAA,GACJ,kBAAiBA,EAAA,GAAE,GAAMA,EAAA,EAAE,SAAW,OACtC,MAAKE,EAAAA,eAAA,CAAA,CAAA,qBAA0BF,EAAA,QAAQ,EAClC,UAAU,CAAA,EAChB,KAAK,WACL,SAAS,MAGTG,aAAaH,EAAA,OAAA,SAAA"}
@@ -1,10 +1,10 @@
1
- import o from "./NeonTab.es.js";
2
- import { openBlock as n, createBlock as t, Transition as a, withCtx as r, createElementBlock as i, normalizeClass as d, renderSlot as l, createCommentVNode as s } from "vue";
1
+ import t from "./NeonTab.es.js";
2
+ import { openBlock as n, createBlock as o, Transition as a, withCtx as r, createElementBlock as i, normalizeClass as l, renderSlot as d, createCommentVNode as s } from "vue";
3
3
  import m from "../../../../_virtual/_plugin-vue_export-helper.es.js";
4
4
  const c = ["id", "aria-labelledby"];
5
5
  function f(e, p, u, b, $, k) {
6
- return n(), t(a, {
7
- name: e.transition ? "neon-fade-transition" : null,
6
+ return n(), o(a, {
7
+ name: e.transition ? "neon-tab-transition" : null,
8
8
  mode: "out-in"
9
9
  }, {
10
10
  default: r(() => [
@@ -12,17 +12,17 @@ function f(e, p, u, b, $, k) {
12
12
  key: 0,
13
13
  id: e.id,
14
14
  "aria-labelledby": e.id ? `${e.id}Button` : void 0,
15
- class: d([{ "neon-tab--selected": e.selected }, "neon-tab"]),
15
+ class: l([{ "neon-tab--selected": e.selected }, "neon-tab"]),
16
16
  role: "tabpanel",
17
17
  tabindex: "0"
18
18
  }, [
19
- l(e.$slots, "default")
19
+ d(e.$slots, "default")
20
20
  ], 10, c)) : s("", !0)
21
21
  ]),
22
22
  _: 3
23
23
  }, 8, ["name"]);
24
24
  }
25
- const y = /* @__PURE__ */ m(o, [["render", f]]);
25
+ const y = /* @__PURE__ */ m(t, [["render", f]]);
26
26
  export {
27
27
  y as default
28
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NeonTab.vue.es.js","sources":["../../../../../src/components/presentation/tabs/tab/NeonTab.vue"],"sourcesContent":["<template>\n <transition :name=\"transition ? 'neon-fade-transition' : null\" mode=\"out-in\">\n <div\n v-if=\"selected\"\n :id=\"id\"\n :aria-labelledby=\"id ? `${id}Button` : undefined\"\n :class=\"{ 'neon-tab--selected': selected }\"\n class=\"neon-tab\"\n role=\"tabpanel\"\n tabindex=\"0\"\n >\n <!-- @slot The tab content -->\n <slot></slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" src=\"./NeonTab.ts\"></script>\n"],"names":["_createBlock","_Transition","_ctx","_createElementBlock","_normalizeClass","_renderSlot"],"mappings":";;;;;cACEA,EAaaC,GAAA;AAAA,IAbA,MAAMC,EAAA,aAAU,yBAAA;AAAA,IAAkC,MAAK;AAAA;eAClE,MAWM;AAAA,MAVEA,EAAA,iBADRC,EAWM,OAAA;AAAA;QATH,IAAID,EAAA;AAAA,QACJ,mBAAiBA,EAAA,KAAE,GAAMA,EAAA,EAAE,WAAW;AAAA,QACtC,OAAKE,EAAA,CAAA,EAAA,sBAA0BF,EAAA,SAAQ,GAClC,UAAU,CAAA;AAAA,QAChB,MAAK;AAAA,QACL,UAAS;AAAA;QAGTG,EAAaH,EAAA,QAAA,SAAA;AAAA;;;;;;"}
1
+ {"version":3,"file":"NeonTab.vue.es.js","sources":["../../../../../src/components/presentation/tabs/tab/NeonTab.vue"],"sourcesContent":["<template>\n <transition :name=\"transition ? 'neon-tab-transition' : null\" mode=\"out-in\">\n <div\n v-if=\"selected\"\n :id=\"id\"\n :aria-labelledby=\"id ? `${id}Button` : undefined\"\n :class=\"{ 'neon-tab--selected': selected }\"\n class=\"neon-tab\"\n role=\"tabpanel\"\n tabindex=\"0\"\n >\n <!-- @slot The tab content -->\n <slot></slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" src=\"./NeonTab.ts\"></script>\n"],"names":["_createBlock","_Transition","_ctx","_createElementBlock","_normalizeClass","_renderSlot"],"mappings":";;;;;cACEA,EAaaC,GAAA;AAAA,IAbA,MAAMC,EAAA,aAAU,wBAAA;AAAA,IAAiC,MAAK;AAAA;eACjE,MAWM;AAAA,MAVEA,EAAA,iBADRC,EAWM,OAAA;AAAA;QATH,IAAID,EAAA;AAAA,QACJ,mBAAiBA,EAAA,KAAE,GAAMA,EAAA,EAAE,WAAW;AAAA,QACtC,OAAKE,EAAA,CAAA,EAAA,sBAA0BF,EAAA,SAAQ,GAClC,UAAU,CAAA;AAAA,QAChB,MAAK;AAAA,QACL,UAAS;AAAA;QAGTG,EAAaH,EAAA,QAAA,SAAA;AAAA;;;;;;"}
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": "28.7.4",
4
+ "version": "28.7.5",
5
5
  "main": "./dist/neon.cjs.js",
6
6
  "module": "./dist/neon.es.js",
7
7
  "types": "./dist/src/neon.d.ts",
@@ -11,6 +11,21 @@
11
11
  }
12
12
  }
13
13
 
14
+ .neon-tab-transition {
15
+ &-enter-active {
16
+ transition: opacity ease-in-out var(--neon-animation-speed-fast) var(--neon-animation-speed-fast) allow-discrete;
17
+ }
18
+
19
+ &-leave-active {
20
+ transition: none;
21
+ }
22
+
23
+ &-enter-from,
24
+ &-leave-to {
25
+ opacity: 0;
26
+ }
27
+ }
28
+
14
29
  .neon-splash-transition {
15
30
  &-enter-active {
16
31
  transition: opacity ease-in-out var(--neon-animation-speed-fast) var(--neon-animation-speed-fast) allow-discrete;