@aotearoan/neon 26.0.0 → 26.0.2
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/navigation/tree-menu/NeonTreeMenu.vue.cjs.js +1 -1
- package/dist/components/navigation/tree-menu/NeonTreeMenu.vue.cjs.js.map +1 -1
- package/dist/components/navigation/tree-menu/NeonTreeMenu.vue.es.js +111 -106
- package/dist/components/navigation/tree-menu/NeonTreeMenu.vue.es.js.map +1 -1
- package/package.json +4 -2
- package/src/sass/components/_expansion-indicator.scss +2 -2
- package/src/sass/components/_icon.scss +6 -0
- package/src/sass/components/_menu.scss +1 -1
- package/src/sass/components/_mobile-menu.scss +1 -1
- package/src/sass/components/_number.scss +1 -0
- package/src/sass/components/_stepper.scss +2 -0
- package/src/sass/components/_tabs.scss +2 -0
- package/src/sass/includes/_svg.scss +2 -0
- package/src/sass/variables-dark.scss +1348 -0
- package/src/sass/variables-global.scss +1395 -0
- package/src/sass/variables-light.scss +1348 -0
- package/src/sass/variables.scss +3 -1199
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const d=require("./NeonTreeMenu.cjs.js"),e=require("vue"),m=require("../../../_virtual/_plugin-vue_export-helper.cjs.js"),c=["id"],k={class:"no-style"},_=["tabindex","onKeydown"],p={class:"no-style neon-tree-menu__items"},y=["onKeydown"];function h(t,r,f,B,C,w){const a=e.resolveComponent("neon-icon"),i=e.resolveComponent("neon-link");return t.modelValue?(e.openBlock(),e.createElementBlock("nav",{key:0,id:t.id,class:e.normalizeClass([[`neon-tree-menu--${t.color}`,{"neon-tree-menu--expand-all":t.expandAll}],"neon-tree-menu"])},[e.createElementVNode("ul",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.modelValue,n=>{var u;return e.openBlock(),e.createElementBlock("li",{key:n.key,class:e.normalizeClass([{"neon-tree-menu__section--expanded":(n.expanded||t.expandAll)&&n.children&&((u=n.children)==null?void 0:u.length)!==0,"neon-tree-menu__section--disabled":n.disabled},"neon-tree-menu__section"])},[e.createVNode(i,{href:n.href,"no-style":!n.href,target:n.external?"_blank":void 0,class:"neon-tree-menu__section-link","outline-style":"none",tabindex:"-1",onClick:l=>!n.disabled&&t.onSectionClick(n.key)},{default:e.withCtx(()=>[n.icon?(e.openBlock(),e.createBlock(a,{key:0,id:t.id+"_"+n.key,name:n.icon,class:"neon-tree-menu__section-link-icon"},null,8,["id","name"])):e.createCommentVNode("",!0),e.createElementVNode("span",{tabindex:n.disabled?-1:0,class:"neon-tree-menu__section-link-label neon-tree-menu__section-link-label--outline-text",role:"link",onKeydown:[e.withKeys(e.withModifiers(l=>!n.disabled&&t.onSectionClick(n.key),["stop","prevent"]),["space"]),e.withKeys(l=>n.href&&t.click(l),["enter"]),e.withKeys(l=>n.href&&t.click(l),["space"])]},e.toDisplayString(n.label),41,_),n.children&&n.children.length!==0?(e.openBlock(),e.createBlock(a,{key:1,class:"neon-tree-menu__section-link-expansion-icon",name:"chevron-right"})):e.createCommentVNode("",!0)]),_:2},1032,["href","no-style","target","onClick"]),e.createElementVNode("ul",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.children,l=>(e.openBlock(),e.createElementBlock("li",{key:l.key,class:"neon-tree-menu__item"},[e.createVNode(i,{href:l.href,"no-style":!0,class:"neon-tree-menu__item-link","outline-style":"none",tabindex:"-1",onClick:o=>t.onItemClick(l.key)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"neon-tree-menu__item-link-label neon-tree-menu__item-link-label--outline-text",role:"link",tabindex:"0",onKeydown:[r[0]||(r[0]=e.withKeys(o=>t.click(o),["enter"])),e.withKeys(e.withModifiers(o=>t.onItemClick(l.key),["prevent"]),["space"])]},e.toDisplayString(l.label),41,y)]),_:2},1032,["href","onClick"]),l.subMenu&&l.subMenu.length>0?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([{"neon-tree-menu__sub-menu--expanded":(t.expandAll||l.expanded)&&l.subMenu&&l.subMenu.length!==0},"no-style neon-tree-menu__sub-menu"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.subMenu,o=>(e.openBlock(),e.createElementBlock("li",{key:o.href,class:"neon-tree-menu__sub-menu-item"},[e.createVNode(i,{href:o.href,class:"neon-link--no-style neon-tree-menu__sub-menu-item-link","no-style":"","outline-style":"none",tabindex:"-1"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"neon-tree-menu__sub-menu-item-link-label neon-tree-menu__sub-menu-item-link-label--outline-text",role:"link",tabindex:"0",onKeydown:[r[1]||(r[1]=e.withKeys(e.withModifiers(s=>t.click(s),["prevent"]),["space"])),r[2]||(r[2]=e.withKeys(e.withModifiers(s=>t.click(s),["prevent"]),["enter"]))]},e.toDisplayString(o.label),33)]),_:2},1032,["href"])]))),128))],2)):e.createCommentVNode("",!0)]))),128))])],2)}),128))])],10,c)):e.createCommentVNode("",!0)}const b=m(d,[["render",h]]);module.exports=b;
|
|
2
2
|
//# sourceMappingURL=NeonTreeMenu.vue.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NeonTreeMenu.vue.cjs.js","sources":["../../../../src/components/navigation/tree-menu/NeonTreeMenu.vue"],"sourcesContent":["<template>\n <nav\n v-if=\"modelValue\"\n :id=\"id\"\n :class=\"[`neon-tree-menu--${color}`, { 'neon-tree-menu--expand-all': expandAll }]\"\n class=\"neon-tree-menu\"\n >\n <ul class=\"no-style\">\n <li\n v-for=\"section in modelValue\"\n :key=\"section.key\"\n :class=\"{\n 'neon-tree-menu__section--expanded'
|
|
1
|
+
{"version":3,"file":"NeonTreeMenu.vue.cjs.js","sources":["../../../../src/components/navigation/tree-menu/NeonTreeMenu.vue"],"sourcesContent":["<template>\n <nav\n v-if=\"modelValue\"\n :id=\"id\"\n :class=\"[`neon-tree-menu--${color}`, { 'neon-tree-menu--expand-all': expandAll }]\"\n class=\"neon-tree-menu\"\n >\n <ul class=\"no-style\">\n <li\n v-for=\"section in modelValue\"\n :key=\"section.key\"\n :class=\"{\n 'neon-tree-menu__section--expanded':\n (section.expanded || expandAll) && section.children && section.children?.length !== 0,\n 'neon-tree-menu__section--disabled': section.disabled,\n }\"\n class=\"neon-tree-menu__section\"\n >\n <neon-link\n :href=\"section.href\"\n :no-style=\"!section.href\"\n :target=\"section.external ? '_blank' : undefined\"\n class=\"neon-tree-menu__section-link\"\n outline-style=\"none\"\n tabindex=\"-1\"\n @click=\"!section.disabled && onSectionClick(section.key)\"\n >\n <neon-icon\n v-if=\"section.icon\"\n :id=\"id + '_' + section.key\"\n :name=\"section.icon\"\n class=\"neon-tree-menu__section-link-icon\"\n />\n <span\n :tabindex=\"section.disabled ? -1 : 0\"\n class=\"neon-tree-menu__section-link-label neon-tree-menu__section-link-label--outline-text\"\n role=\"link\"\n @keydown.space.stop.prevent=\"!section.disabled && onSectionClick(section.key)\"\n @keydown.enter=\"section.href && click($event)\"\n @keydown.space=\"section.href && click($event)\"\n >\n {{ section.label }}\n </span>\n <neon-icon\n v-if=\"section.children && section.children.length !== 0\"\n class=\"neon-tree-menu__section-link-expansion-icon\"\n name=\"chevron-right\"\n />\n </neon-link>\n <ul class=\"no-style neon-tree-menu__items\">\n <li v-for=\"link in section.children\" :key=\"link.key\" class=\"neon-tree-menu__item\">\n <neon-link\n :href=\"link.href\"\n :no-style=\"true\"\n class=\"neon-tree-menu__item-link\"\n outline-style=\"none\"\n tabindex=\"-1\"\n @click=\"onItemClick(link.key)\"\n >\n <span\n class=\"neon-tree-menu__item-link-label neon-tree-menu__item-link-label--outline-text\"\n role=\"link\"\n tabindex=\"0\"\n @keydown.enter=\"click($event)\"\n @keydown.space.prevent=\"onItemClick(link.key)\"\n >\n {{ link.label }}\n </span>\n </neon-link>\n <ul\n v-if=\"link.subMenu && link.subMenu.length > 0\"\n :class=\"{\n 'neon-tree-menu__sub-menu--expanded':\n (expandAll || link.expanded) && link.subMenu && link.subMenu.length !== 0,\n }\"\n class=\"no-style neon-tree-menu__sub-menu\"\n >\n <li v-for=\"subMenu in link.subMenu\" :key=\"subMenu.href\" class=\"neon-tree-menu__sub-menu-item\">\n <neon-link\n :href=\"subMenu.href\"\n class=\"neon-link--no-style neon-tree-menu__sub-menu-item-link\"\n no-style\n outline-style=\"none\"\n tabindex=\"-1\"\n >\n <span\n class=\"neon-tree-menu__sub-menu-item-link-label neon-tree-menu__sub-menu-item-link-label--outline-text\"\n role=\"link\"\n tabindex=\"0\"\n @keydown.space.prevent=\"click($event)\"\n @keydown.enter.prevent=\"click($event)\"\n >\n {{ subMenu.label }}\n </span>\n </neon-link>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </nav>\n</template>\n\n<script lang=\"ts\" src=\"./NeonTreeMenu.ts\"></script>\n"],"names":["_hoisted_2","_hoisted_4","_ctx","_createElementBlock","_normalizeClass","_createElementVNode","_Fragment","_renderList","section","_a","_createVNode","_component_neon_link","$event","_createBlock","_component_neon_icon","_withKeys","_withModifiers","_toDisplayString","_hoisted_3","_openBlock","link","_cache","_hoisted_5","subMenu"],"mappings":"gJAOQA,EAAA,CAAA,MAAM,UAAU,6BA0CZC,EAAA,CAAA,MAAM,gCAAgC,2HA/CxCC,EAAA,0BADRC,EAAAA,mBAoGM,MAAA,OAlGH,GAAID,EAAA,GACJ,MAAKE,EAAAA,eAAA,CAAA,CAAA,mBAAsBF,EAAA,KAAK,GAAA,CAAA,6BAAoCA,EAAA,SAAS,GACxE,gBAAgB,CAAA,IAEtBG,EAAAA,mBA6FK,KA7FLL,EA6FK,kBA5FHG,EAAAA,mBA2FKG,EAAAA,SAAA,KAAAC,EAAAA,WA1FeL,EAAA,WAAXM,GAAO,4BADhBL,EAAAA,mBA2FK,KAAA,CAzFF,IAAKK,EAAQ,IACb,MAAKJ,EAAAA,eAAA,CAAA,sCAAgEI,EAAQ,UAAYN,EAAA,YAAcM,EAAQ,YAAYC,EAAAD,EAAQ,WAAR,YAAAC,EAAkB,U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A,CAAA,OAAA,CAAA,GAEjC,EAAAK,kBAAAM,EAAQ,KAAK,EAAA,EAAA"}
|
|
@@ -1,120 +1,125 @@
|
|
|
1
1
|
import $ from "./NeonTreeMenu.es.js";
|
|
2
|
-
import { resolveComponent as
|
|
2
|
+
import { resolveComponent as v, openBlock as t, createElementBlock as o, normalizeClass as k, createElementVNode as a, Fragment as c, renderList as p, createVNode as y, withCtx as b, createBlock as g, createCommentVNode as u, withKeys as i, withModifiers as d, toDisplayString as h } from "vue";
|
|
3
3
|
import w from "../../../_virtual/_plugin-vue_export-helper.es.js";
|
|
4
|
-
const
|
|
5
|
-
function A(n, s, B,
|
|
6
|
-
const
|
|
4
|
+
const x = ["id"], K = { class: "no-style" }, M = ["tabindex", "onKeydown"], V = { class: "no-style neon-tree-menu__items" }, N = ["onKeydown"];
|
|
5
|
+
function A(n, s, B, S, E, I) {
|
|
6
|
+
const f = v("neon-icon"), m = v("neon-link");
|
|
7
7
|
return n.modelValue ? (t(), o("nav", {
|
|
8
8
|
key: 0,
|
|
9
9
|
id: n.id,
|
|
10
10
|
class: k([[`neon-tree-menu--${n.color}`, { "neon-tree-menu--expand-all": n.expandAll }], "neon-tree-menu"])
|
|
11
11
|
}, [
|
|
12
|
-
a("ul",
|
|
13
|
-
(t(!0), o(c, null, p(n.modelValue, (e) =>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
href: l.href,
|
|
61
|
-
"no-style": !0,
|
|
62
|
-
class: "neon-tree-menu__item-link",
|
|
63
|
-
"outline-style": "none",
|
|
64
|
-
tabindex: "-1",
|
|
65
|
-
onClick: (r) => n.onItemClick(l.key)
|
|
66
|
-
}, {
|
|
67
|
-
default: b(() => [
|
|
68
|
-
a("span", {
|
|
69
|
-
class: "neon-tree-menu__item-link-label neon-tree-menu__item-link-label--outline-text",
|
|
70
|
-
role: "link",
|
|
71
|
-
tabindex: "0",
|
|
72
|
-
onKeydown: [
|
|
73
|
-
s[0] || (s[0] = i((r) => n.click(r), ["enter"])),
|
|
74
|
-
i(d((r) => n.onItemClick(l.key), ["prevent"]), ["space"])
|
|
75
|
-
]
|
|
76
|
-
}, f(l.label), 41, N)
|
|
77
|
-
]),
|
|
78
|
-
_: 2
|
|
79
|
-
}, 1032, ["href", "onClick"]),
|
|
80
|
-
l.subMenu && l.subMenu.length > 0 ? (t(), o("ul", {
|
|
81
|
-
key: 0,
|
|
82
|
-
class: k([{ "neon-tree-menu__sub-menu--expanded": n.expandAll || l.expanded }, "no-style neon-tree-menu__sub-menu"])
|
|
12
|
+
a("ul", K, [
|
|
13
|
+
(t(!0), o(c, null, p(n.modelValue, (e) => {
|
|
14
|
+
var C;
|
|
15
|
+
return t(), o("li", {
|
|
16
|
+
key: e.key,
|
|
17
|
+
class: k([{
|
|
18
|
+
"neon-tree-menu__section--expanded": (e.expanded || n.expandAll) && e.children && ((C = e.children) == null ? void 0 : C.length) !== 0,
|
|
19
|
+
"neon-tree-menu__section--disabled": e.disabled
|
|
20
|
+
}, "neon-tree-menu__section"])
|
|
21
|
+
}, [
|
|
22
|
+
y(m, {
|
|
23
|
+
href: e.href,
|
|
24
|
+
"no-style": !e.href,
|
|
25
|
+
target: e.external ? "_blank" : void 0,
|
|
26
|
+
class: "neon-tree-menu__section-link",
|
|
27
|
+
"outline-style": "none",
|
|
28
|
+
tabindex: "-1",
|
|
29
|
+
onClick: (l) => !e.disabled && n.onSectionClick(e.key)
|
|
30
|
+
}, {
|
|
31
|
+
default: b(() => [
|
|
32
|
+
e.icon ? (t(), g(f, {
|
|
33
|
+
key: 0,
|
|
34
|
+
id: n.id + "_" + e.key,
|
|
35
|
+
name: e.icon,
|
|
36
|
+
class: "neon-tree-menu__section-link-icon"
|
|
37
|
+
}, null, 8, ["id", "name"])) : u("", !0),
|
|
38
|
+
a("span", {
|
|
39
|
+
tabindex: e.disabled ? -1 : 0,
|
|
40
|
+
class: "neon-tree-menu__section-link-label neon-tree-menu__section-link-label--outline-text",
|
|
41
|
+
role: "link",
|
|
42
|
+
onKeydown: [
|
|
43
|
+
i(d((l) => !e.disabled && n.onSectionClick(e.key), ["stop", "prevent"]), ["space"]),
|
|
44
|
+
i((l) => e.href && n.click(l), ["enter"]),
|
|
45
|
+
i((l) => e.href && n.click(l), ["space"])
|
|
46
|
+
]
|
|
47
|
+
}, h(e.label), 41, M),
|
|
48
|
+
e.children && e.children.length !== 0 ? (t(), g(f, {
|
|
49
|
+
key: 1,
|
|
50
|
+
class: "neon-tree-menu__section-link-expansion-icon",
|
|
51
|
+
name: "chevron-right"
|
|
52
|
+
})) : u("", !0)
|
|
53
|
+
]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, 1032, ["href", "no-style", "target", "onClick"]),
|
|
56
|
+
a("ul", V, [
|
|
57
|
+
(t(!0), o(c, null, p(e.children, (l) => (t(), o("li", {
|
|
58
|
+
key: l.key,
|
|
59
|
+
class: "neon-tree-menu__item"
|
|
83
60
|
}, [
|
|
84
|
-
(
|
|
85
|
-
|
|
86
|
-
|
|
61
|
+
y(m, {
|
|
62
|
+
href: l.href,
|
|
63
|
+
"no-style": !0,
|
|
64
|
+
class: "neon-tree-menu__item-link",
|
|
65
|
+
"outline-style": "none",
|
|
66
|
+
tabindex: "-1",
|
|
67
|
+
onClick: (r) => n.onItemClick(l.key)
|
|
68
|
+
}, {
|
|
69
|
+
default: b(() => [
|
|
70
|
+
a("span", {
|
|
71
|
+
class: "neon-tree-menu__item-link-label neon-tree-menu__item-link-label--outline-text",
|
|
72
|
+
role: "link",
|
|
73
|
+
tabindex: "0",
|
|
74
|
+
onKeydown: [
|
|
75
|
+
s[0] || (s[0] = i((r) => n.click(r), ["enter"])),
|
|
76
|
+
i(d((r) => n.onItemClick(l.key), ["prevent"]), ["space"])
|
|
77
|
+
]
|
|
78
|
+
}, h(l.label), 41, N)
|
|
79
|
+
]),
|
|
80
|
+
_: 2
|
|
81
|
+
}, 1032, ["href", "onClick"]),
|
|
82
|
+
l.subMenu && l.subMenu.length > 0 ? (t(), o("ul", {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: k([{
|
|
85
|
+
"neon-tree-menu__sub-menu--expanded": (n.expandAll || l.expanded) && l.subMenu && l.subMenu.length !== 0
|
|
86
|
+
}, "no-style neon-tree-menu__sub-menu"])
|
|
87
87
|
}, [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
class: "neon-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
88
|
+
(t(!0), o(c, null, p(l.subMenu, (r) => (t(), o("li", {
|
|
89
|
+
key: r.href,
|
|
90
|
+
class: "neon-tree-menu__sub-menu-item"
|
|
91
|
+
}, [
|
|
92
|
+
y(m, {
|
|
93
|
+
href: r.href,
|
|
94
|
+
class: "neon-link--no-style neon-tree-menu__sub-menu-item-link",
|
|
95
|
+
"no-style": "",
|
|
96
|
+
"outline-style": "none",
|
|
97
|
+
tabindex: "-1"
|
|
98
|
+
}, {
|
|
99
|
+
default: b(() => [
|
|
100
|
+
a("span", {
|
|
101
|
+
class: "neon-tree-menu__sub-menu-item-link-label neon-tree-menu__sub-menu-item-link-label--outline-text",
|
|
102
|
+
role: "link",
|
|
103
|
+
tabindex: "0",
|
|
104
|
+
onKeydown: [
|
|
105
|
+
s[1] || (s[1] = i(d((_) => n.click(_), ["prevent"]), ["space"])),
|
|
106
|
+
s[2] || (s[2] = i(d((_) => n.click(_), ["prevent"]), ["enter"]))
|
|
107
|
+
]
|
|
108
|
+
}, h(r.label), 33)
|
|
109
|
+
]),
|
|
110
|
+
_: 2
|
|
111
|
+
}, 1032, ["href"])
|
|
112
|
+
]))), 128))
|
|
113
|
+
], 2)) : u("", !0)
|
|
114
|
+
]))), 128))
|
|
115
|
+
])
|
|
116
|
+
], 2);
|
|
117
|
+
}), 128))
|
|
113
118
|
])
|
|
114
|
-
], 10,
|
|
119
|
+
], 10, x)) : u("", !0);
|
|
115
120
|
}
|
|
116
|
-
const
|
|
121
|
+
const L = /* @__PURE__ */ w($, [["render", A]]);
|
|
117
122
|
export {
|
|
118
|
-
|
|
123
|
+
L as default
|
|
119
124
|
};
|
|
120
125
|
//# sourceMappingURL=NeonTreeMenu.vue.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NeonTreeMenu.vue.es.js","sources":["../../../../src/components/navigation/tree-menu/NeonTreeMenu.vue"],"sourcesContent":["<template>\n <nav\n v-if=\"modelValue\"\n :id=\"id\"\n :class=\"[`neon-tree-menu--${color}`, { 'neon-tree-menu--expand-all': expandAll }]\"\n class=\"neon-tree-menu\"\n >\n <ul class=\"no-style\">\n <li\n v-for=\"section in modelValue\"\n :key=\"section.key\"\n :class=\"{\n 'neon-tree-menu__section--expanded'
|
|
1
|
+
{"version":3,"file":"NeonTreeMenu.vue.es.js","sources":["../../../../src/components/navigation/tree-menu/NeonTreeMenu.vue"],"sourcesContent":["<template>\n <nav\n v-if=\"modelValue\"\n :id=\"id\"\n :class=\"[`neon-tree-menu--${color}`, { 'neon-tree-menu--expand-all': expandAll }]\"\n class=\"neon-tree-menu\"\n >\n <ul class=\"no-style\">\n <li\n v-for=\"section in modelValue\"\n :key=\"section.key\"\n :class=\"{\n 'neon-tree-menu__section--expanded':\n (section.expanded || expandAll) && section.children && section.children?.length !== 0,\n 'neon-tree-menu__section--disabled': section.disabled,\n }\"\n class=\"neon-tree-menu__section\"\n >\n <neon-link\n :href=\"section.href\"\n :no-style=\"!section.href\"\n :target=\"section.external ? '_blank' : undefined\"\n class=\"neon-tree-menu__section-link\"\n outline-style=\"none\"\n tabindex=\"-1\"\n @click=\"!section.disabled && onSectionClick(section.key)\"\n >\n <neon-icon\n v-if=\"section.icon\"\n :id=\"id + '_' + section.key\"\n :name=\"section.icon\"\n class=\"neon-tree-menu__section-link-icon\"\n />\n <span\n :tabindex=\"section.disabled ? -1 : 0\"\n class=\"neon-tree-menu__section-link-label neon-tree-menu__section-link-label--outline-text\"\n role=\"link\"\n @keydown.space.stop.prevent=\"!section.disabled && onSectionClick(section.key)\"\n @keydown.enter=\"section.href && click($event)\"\n @keydown.space=\"section.href && click($event)\"\n >\n {{ section.label }}\n </span>\n <neon-icon\n v-if=\"section.children && section.children.length !== 0\"\n class=\"neon-tree-menu__section-link-expansion-icon\"\n name=\"chevron-right\"\n />\n </neon-link>\n <ul class=\"no-style neon-tree-menu__items\">\n <li v-for=\"link in section.children\" :key=\"link.key\" class=\"neon-tree-menu__item\">\n <neon-link\n :href=\"link.href\"\n :no-style=\"true\"\n class=\"neon-tree-menu__item-link\"\n outline-style=\"none\"\n tabindex=\"-1\"\n @click=\"onItemClick(link.key)\"\n >\n <span\n class=\"neon-tree-menu__item-link-label neon-tree-menu__item-link-label--outline-text\"\n role=\"link\"\n tabindex=\"0\"\n @keydown.enter=\"click($event)\"\n @keydown.space.prevent=\"onItemClick(link.key)\"\n >\n {{ link.label }}\n </span>\n </neon-link>\n <ul\n v-if=\"link.subMenu && link.subMenu.length > 0\"\n :class=\"{\n 'neon-tree-menu__sub-menu--expanded':\n (expandAll || link.expanded) && link.subMenu && link.subMenu.length !== 0,\n }\"\n class=\"no-style neon-tree-menu__sub-menu\"\n >\n <li v-for=\"subMenu in link.subMenu\" :key=\"subMenu.href\" class=\"neon-tree-menu__sub-menu-item\">\n <neon-link\n :href=\"subMenu.href\"\n class=\"neon-link--no-style neon-tree-menu__sub-menu-item-link\"\n no-style\n outline-style=\"none\"\n tabindex=\"-1\"\n >\n <span\n class=\"neon-tree-menu__sub-menu-item-link-label neon-tree-menu__sub-menu-item-link-label--outline-text\"\n role=\"link\"\n tabindex=\"0\"\n @keydown.space.prevent=\"click($event)\"\n @keydown.enter.prevent=\"click($event)\"\n >\n {{ subMenu.label }}\n </span>\n </neon-link>\n </li>\n </ul>\n </li>\n </ul>\n </li>\n </ul>\n </nav>\n</template>\n\n<script lang=\"ts\" src=\"./NeonTreeMenu.ts\"></script>\n"],"names":["_hoisted_2","_hoisted_4","_ctx","_createElementBlock","_normalizeClass","_createElementVNode","_Fragment","_renderList","section","_a","_createVNode","_component_neon_link","$event","_createBlock","_component_neon_icon","_withKeys","_withModifiers","_toDisplayString","_hoisted_3","_openBlock","link","_cache","_hoisted_5","subMenu"],"mappings":";;;kBAOQA,IAAA,EAAA,OAAM,WAAU,kCA0CZC,IAAA,EAAA,OAAM,iCAAgC;;;SA/CxCC,EAAA,mBADRC,EAoGM,OAAA;AAAA;IAlGH,IAAID,EAAA;AAAA,IACJ,OAAKE,EAAA,CAAA,CAAA,mBAAsBF,EAAA,KAAK,IAAA,EAAA,8BAAoCA,EAAA,UAAS,IACxE,gBAAgB,CAAA;AAAA;IAEtBG,EA6FK,MA7FLL,GA6FK;AAAA,cA5FHG,EA2FKG,GAAA,MAAAC,EA1FeL,EAAA,YAAU,CAArBM,MAAO;;oBADhBL,EA2FK,MAAA;AAAA,UAzFF,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AAc;AAAA,oBACd,UAAS;AAAA;+BAET,MAQO;AAAA,sBARPlB,EAQO,QAAA;AAAA,wBAPL,OAAM;AAAA,wBACN,MAAK;AAAA,wBACL,UAAS;AAAA,wBACR,WAAO;AAAA,0BAAgBgB,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAN,EAAAC,EAAA,CAAAJ,MAAAV,EAAA,MAAMU,CAAM,GAAA,CAAA,SAAA,CAAA,GAAA,CAAA,OAAA,CAAA;AAAA,0BACZS,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAN,EAAAC,EAAA,CAAAJ,MAAAV,EAAA,MAAMU,CAAM,GAAA,CAAA,SAAA,CAAA,GAAA,CAAA,OAAA,CAAA;AAAA;sBAEjC,GAAAK,EAAAM,EAAQ,KAAK,GAAA,EAAA;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": "26.0.
|
|
4
|
+
"version": "26.0.2",
|
|
5
5
|
"main": "./dist/neon.cjs.js",
|
|
6
6
|
"module": "./dist/neon.es.js",
|
|
7
7
|
"types": "./dist/src/neon.d.ts",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"gen:model-docs": "npx typedoc --entryPointStrategy expand --json public/docs/model.json src/model/*",
|
|
18
18
|
"gen:util-docs": "npx typedoc --entryPointStrategy expand --json public/docs/utils.json src/utils/*",
|
|
19
19
|
"gen:component-docs": "node doc-gen.js",
|
|
20
|
-
"gen:docs": "
|
|
20
|
+
"gen:sass-docs": "node doc-gen-sass.js",
|
|
21
|
+
"gen:docs": "npm run gen:model-docs && npm run gen:util-docs && npm run gen:component-docs && npm run gen:sass-docs",
|
|
21
22
|
"gen:version": "genversion --es6 --semi ./version.ts",
|
|
22
23
|
"gen:all": "npm run gen:version && npm run gen:docs",
|
|
23
24
|
"dev": "npm run gen:all && vite --mode development",
|
|
@@ -113,6 +114,7 @@
|
|
|
113
114
|
"prettier": "^2.8.8",
|
|
114
115
|
"prismjs": "^1.29.0",
|
|
115
116
|
"sass": "^1.62.1",
|
|
117
|
+
"scss-parser": "^1.0.6",
|
|
116
118
|
"ts-jest": "^29.1.0",
|
|
117
119
|
"typedoc": "^0.24.8",
|
|
118
120
|
"typescript": "~5.0.4",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
transform: rotate(35deg);
|
|
24
24
|
|
|
25
25
|
&.neon-svg--stroke {
|
|
26
|
-
transition:
|
|
26
|
+
transition: all ease-in-out var(--neon-animation-speed-fast) !important;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
transform: rotate(-35deg);
|
|
32
32
|
|
|
33
33
|
&.neon-svg--stroke {
|
|
34
|
-
transition:
|
|
34
|
+
transition: all ease-in-out var(--neon-animation-speed-fast) !important;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -10,18 +10,22 @@
|
|
|
10
10
|
|
|
11
11
|
.neon-svg--fill-inverse {
|
|
12
12
|
fill: var(--neon-color-inverse);
|
|
13
|
+
transition: fill ease-in-out var(--neon-animation-speed-fast);
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.neon-svg--stroke-inverse {
|
|
16
17
|
stroke: var(--neon-color-inverse);
|
|
18
|
+
transition: stroke ease-in-out var(--neon-animation-speed-fast);
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
.neon-svg--fill-text {
|
|
20
22
|
fill: var(--neon-color-text-primary);
|
|
23
|
+
transition: fill ease-in-out var(--neon-animation-speed-fast);
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
.neon-svg--stroke-text {
|
|
24
27
|
stroke: var(--neon-color-text-primary);
|
|
28
|
+
transition: stroke ease-in-out var(--neon-animation-speed-fast);
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
31
|
|
|
@@ -44,10 +48,12 @@
|
|
|
44
48
|
&--disabled {
|
|
45
49
|
.neon-svg--fill {
|
|
46
50
|
fill: var(--neon-color-disabled-text);
|
|
51
|
+
transition: fill ease-in-out var(--neon-animation-speed-fast);
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
.neon-svg--stroke {
|
|
50
55
|
stroke: var(--neon-color-disabled-text);
|
|
56
|
+
transition: stroke ease-in-out var(--neon-animation-speed-fast);
|
|
51
57
|
}
|
|
52
58
|
}
|
|
53
59
|
}
|
|
@@ -63,10 +63,12 @@
|
|
|
63
63
|
svg {
|
|
64
64
|
.neon-svg--fill {
|
|
65
65
|
fill: var(--neon-color-stepper-indicator);
|
|
66
|
+
transition: fill ease-in-out var(--neon-animation-speed-fast);
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
.neon-svg--stroke {
|
|
69
70
|
stroke: var(--neon-color-stepper-indicator);
|
|
71
|
+
transition: stroke ease-in-out var(--neon-animation-speed-fast);
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
}
|
|
@@ -78,10 +78,12 @@
|
|
|
78
78
|
|
|
79
79
|
.neon-svg--stroke {
|
|
80
80
|
stroke: var(--neon-color-text-primary);
|
|
81
|
+
transition: stroke ease-in-out var(--neon-animation-speed-fast);
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
.neon-svg--fill {
|
|
84
85
|
fill: var(--neon-color-text-primary);
|
|
86
|
+
transition: fill ease-in-out var(--neon-animation-speed-fast);
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
&:before {
|
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
@mixin svg-colors($color) {
|
|
7
7
|
.neon-svg--fill {
|
|
8
8
|
fill: $color;
|
|
9
|
+
transition: fill ease-in-out var(--neon-animation-speed-fast);
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.neon-svg--stroke {
|
|
12
13
|
stroke: $color;
|
|
14
|
+
transition: stroke ease-in-out var(--neon-animation-speed-fast);
|
|
13
15
|
}
|
|
14
16
|
}
|