@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.
- package/dist/components/presentation/tabs/tab/NeonTab.vue.cjs.js +1 -1
- package/dist/components/presentation/tabs/tab/NeonTab.vue.cjs.js.map +1 -1
- package/dist/components/presentation/tabs/tab/NeonTab.vue.es.js +7 -7
- package/dist/components/presentation/tabs/tab/NeonTab.vue.es.js.map +1 -1
- package/package.json +1 -1
- package/src/sass/core/_transitions.scss +15 -0
|
@@ -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-
|
|
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-
|
|
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
|
|
2
|
-
import { openBlock as n, createBlock as
|
|
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(),
|
|
7
|
-
name: e.transition ? "neon-
|
|
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:
|
|
15
|
+
class: l([{ "neon-tab--selected": e.selected }, "neon-tab"]),
|
|
16
16
|
role: "tabpanel",
|
|
17
17
|
tabindex: "0"
|
|
18
18
|
}, [
|
|
19
|
-
|
|
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(
|
|
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-
|
|
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
|
+
"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;
|