@aotearoan/neon 9.3.4 → 9.3.6
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/link/NeonLink.cjs.js +1 -1
- package/dist/components/navigation/link/NeonLink.es.js +4 -4
- package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_9100b0e0_lang.cjs.js +2 -0
- package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_9100b0e0_lang.cjs.js.map +1 -0
- package/dist/components/navigation/link/{NeonLink.ts_vue_type_script_src_5a48e750_lang.es.js → NeonLink.ts_vue_type_script_src_9100b0e0_lang.es.js} +13 -3
- package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_9100b0e0_lang.es.js.map +1 -0
- package/dist/src/components/navigation/link/NeonLink.d.ts +1 -0
- package/package.json +1 -1
- package/src/sass/components/_link.scss +6 -0
- package/src/sass/palette.scss +49 -49
- package/src/sass/variables.scss +5 -5
- package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_5a48e750_lang.cjs.js +0 -2
- package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_5a48e750_lang.cjs.js.map +0 -1
- package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_5a48e750_lang.es.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var r=require("./NeonLink.
|
|
1
|
+
"use strict";var r=require("./NeonLink.ts_vue_type_script_src_9100b0e0_lang.cjs.js"),n=require("vue"),s=require("../../../_virtual/plugin-vue_export-helper.cjs.js");const a={class:"neon-link__label"},k=["href"],p={class:"neon-link__label"},u={class:"neon-link__label"};function d(e,o,c,v,C,w){const i=n.resolveComponent("router-link"),t=n.resolveComponent("neon-icon");return e.routerUrl?(n.openBlock(),n.createBlock(i,n.mergeProps({key:0,class:[[{"neon-link--no-style":e.noStyle,"neon-link--active":e.activeRoute,"neon-link--exact-active":e.exactRoute},`neon-link--outline-${e.outlineStyle}`],"neon-link neon-link--router-link"],to:e.routerUrl,tabindex:"0"},e.sanitizedAttributes,{onClick:e.onClick,onKeydown:[n.withKeys(e.onClick,["enter"]),n.withKeys(n.withModifiers(e.onSpace,["prevent"]),["space"])]}),{default:n.withCtx(()=>[n.createElementVNode("span",a,[n.renderSlot(e.$slots,"default")])]),_:3},16,["class","to","onClick","onKeydown"])):e.href?(n.openBlock(),n.createElementBlock("a",n.mergeProps({key:1,class:[[{"neon-link--no-style":e.noStyle,"neon-link--with-external-indicator":e.externalIndicator,"neon-link--active":e.activeRoute,"neon-link--exact-active":e.exactRoute},`neon-link--outline-${e.outlineStyle}`],"neon-link neon-link--external-link"],href:e.href,rel:"noopener",tabindex:"0"},e.sanitizedAttributes,{onClick:o[0]||(o[0]=(...l)=>e.onClick&&e.onClick(...l)),onKeydown:[o[1]||(o[1]=n.withKeys((...l)=>e.onClick&&e.onClick(...l),["enter"])),o[2]||(o[2]=n.withKeys(n.withModifiers((...l)=>e.onSpace&&e.onSpace(...l),["prevent"]),["space"]))]}),[n.createElementVNode("span",p,[n.renderSlot(e.$slots,"default"),e.externalIndicator?(n.openBlock(),n.createBlock(t,{key:0,class:"neon-link__external-indicator",color:"low-contrast",name:"link-external"})):n.createCommentVNode("",!0)])],16,k)):(n.openBlock(),n.createElementBlock("a",n.mergeProps({key:2,class:[[{"neon-link--no-style":e.noStyle},`neon-link--outline-${e.outlineStyle}`],"neon-link"],tabindex:"0"},e.sanitizedAttributes,{onClick:o[3]||(o[3]=(...l)=>e.onClick&&e.onClick(...l)),onKeydown:[o[4]||(o[4]=n.withKeys((...l)=>e.onClick&&e.onClick(...l),["enter"])),o[5]||(o[5]=n.withKeys(n.withModifiers((...l)=>e.onSpace&&e.onSpace(...l),["prevent"]),["space"]))]}),[n.createElementVNode("span",u,[n.renderSlot(e.$slots,"default")])],16))}var y=s(r,[["render",d]]);module.exports=y;
|
|
2
2
|
//# sourceMappingURL=NeonLink.cjs.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _sfc_main from "./NeonLink.
|
|
1
|
+
import _sfc_main from "./NeonLink.ts_vue_type_script_src_9100b0e0_lang.es.js";
|
|
2
2
|
import { resolveComponent, openBlock, createBlock, mergeProps, withKeys, withModifiers, withCtx, createElementVNode, renderSlot, createElementBlock, createCommentVNode } from "vue";
|
|
3
3
|
import _export_sfc from "../../../_virtual/plugin-vue_export-helper.es.js";
|
|
4
4
|
const _hoisted_1 = { class: "neon-link__label" };
|
|
@@ -20,7 +20,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20
20
|
onClick: _ctx.onClick,
|
|
21
21
|
onKeydown: [
|
|
22
22
|
withKeys(_ctx.onClick, ["enter"]),
|
|
23
|
-
withKeys(withModifiers(_ctx.
|
|
23
|
+
withKeys(withModifiers(_ctx.onSpace, ["prevent"]), ["space"])
|
|
24
24
|
]
|
|
25
25
|
}), {
|
|
26
26
|
default: withCtx(() => [
|
|
@@ -47,7 +47,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47
47
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
48
48
|
onKeydown: [
|
|
49
49
|
_cache[1] || (_cache[1] = withKeys((...args) => _ctx.onClick && _ctx.onClick(...args), ["enter"])),
|
|
50
|
-
_cache[2] || (_cache[2] = withKeys(withModifiers((...args) => _ctx.
|
|
50
|
+
_cache[2] || (_cache[2] = withKeys(withModifiers((...args) => _ctx.onSpace && _ctx.onSpace(...args), ["prevent"]), ["space"]))
|
|
51
51
|
]
|
|
52
52
|
}), [
|
|
53
53
|
createElementVNode("span", _hoisted_3, [
|
|
@@ -67,7 +67,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
67
67
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
68
68
|
onKeydown: [
|
|
69
69
|
_cache[4] || (_cache[4] = withKeys((...args) => _ctx.onClick && _ctx.onClick(...args), ["enter"])),
|
|
70
|
-
_cache[5] || (_cache[5] = withKeys(withModifiers((...args) => _ctx.
|
|
70
|
+
_cache[5] || (_cache[5] = withKeys(withModifiers((...args) => _ctx.onSpace && _ctx.onSpace(...args), ["prevent"]), ["space"]))
|
|
71
71
|
]
|
|
72
72
|
}), [
|
|
73
73
|
createElementVNode("span", _hoisted_4, [
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t=require("vue"),h=require("../../../common/enums/NeonOutlineStyle.cjs.js"),m=require("../../presentation/icon/NeonIcon.cjs.js"),i=require("vue-router"),y=t.defineComponent({name:"NeonLink",components:{NeonIcon:m},props:{href:{type:String,default:null},noStyle:{type:Boolean,default:!1},outlineStyle:{type:String,default:h.NeonOutlineStyle.Text},externalIndicator:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:l}){const a=t.useAttrs(),s=i.useRouter(),o=i.useRoute(),u=t.computed(()=>{var n;return((n=e.href)==null?void 0:n.indexOf("//"))===-1?e.href:void 0}),r=t.computed(()=>e.href&&e.href.indexOf(o.fullPath)===0),f=t.computed(()=>r.value&&e.href===o.fullPath),d=t.computed(()=>{const{onClick:n,...v}=a;return v}),c=()=>{l("click")};return{routerUrl:u,sanitizedAttributes:d,activeRoute:r,exactRoute:f,onClick:c,onSpace:async()=>{c(),u.value?await s.push(e.href):e.href&&window.location.replace(e.href)}}}});module.exports=y;
|
|
2
|
+
//# sourceMappingURL=NeonLink.ts_vue_type_script_src_9100b0e0_lang.cjs.js.map
|
package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_9100b0e0_lang.cjs.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeonLink.ts_vue_type_script_src_9100b0e0_lang.cjs.js","sources":["../../../../src/components/navigation/link/NeonLink.ts?vue&type=script&src=9100b0e0&lang.ts"],"sourcesContent":["import { computed, defineComponent, useAttrs } from 'vue';\nimport { NeonOutlineStyle } from '@/common/enums/NeonOutlineStyle';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\nimport { useRoute, useRouter } from 'vue-router';\n\n/**\n * An HTML anchor component which handles VueRouter links (internal), href links (external) and clickable links (no href).\n */\nexport default defineComponent({\n name: 'NeonLink',\n components: {\n NeonIcon,\n },\n props: {\n /**\n * The href of the link, this can be an internal (relative or absolute) or an external link.\n */\n href: { type: String, default: null },\n /**\n * set to true if you would like a completely unstyled link. This is useful for creating a complex component which may use NeonLink.\n */\n noStyle: { type: Boolean, default: false },\n /**\n * Style of the outline to use when the link has focus, use <em>text</em> for wrapping text content and\n * <em>border</em> for tooltips wrapping \"block\" elements, e.g. buttons.\n */\n outlineStyle: { type: String as () => NeonOutlineStyle, default: NeonOutlineStyle.Text },\n /**\n * Display an external link icon to the right of the link indicating clicking it will take the user to another site.\n */\n externalIndicator: { type: Boolean, default: false },\n },\n emits: [\n /**\n * Emitted when the user triggers the link by clicking on it or hitting Enter or Space when the link has focus.\n * @type {void}\n */\n 'click',\n ],\n setup(props, { emit }) {\n const attrs = useAttrs();\n const router = useRouter();\n const route = useRoute();\n const routerUrl = computed(() => (props.href?.indexOf('//') === -1 ? props.href : undefined));\n\n const activeRoute = computed(() => props.href && props.href.indexOf(route.fullPath) === 0);\n const exactRoute = computed(() => activeRoute.value && props.href === route.fullPath);\n\n const sanitizedAttributes = computed(() => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { onClick, ...sanitized } = attrs;\n return sanitized;\n });\n\n const onClick = () => {\n emit('click');\n };\n\n const onSpace = async () => {\n onClick();\n\n if (routerUrl.value) {\n await router.push(props.href);\n } else if (props.href) {\n window.location.replace(props.href);\n }\n };\n\n return {\n routerUrl,\n sanitizedAttributes,\n activeRoute,\n exactRoute,\n onClick,\n onSpace,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonIcon","NeonOutlineStyle","props","emit","attrs","useAttrs","router","useRouter","route","useRoute","routerUrl","computed","_a","activeRoute","exactRoute","sanitizedAttributes","onClick","sanitized"],"mappings":"0KAQAA,EAAeC,kBAAgB,CAC7B,KAAM,WACN,WAAY,CACV,SAAAC,CACF,EACA,MAAO,CAIL,KAAM,CAAE,KAAM,OAAQ,QAAS,IAAK,EAIpC,QAAS,CAAE,KAAM,QAAS,QAAS,EAAM,EAKzC,aAAc,CAAE,KAAM,OAAkC,QAASC,EAAAA,iBAAiB,IAAK,EAIvF,kBAAmB,CAAE,KAAM,QAAS,QAAS,EAAM,CACrD,EACA,MAAO,CAKL,OACF,EACA,MAAMC,EAAO,CAAE,KAAAC,GAAQ,CACrB,MAAMC,EAAQC,EAAAA,WACRC,EAASC,EAAAA,YACTC,EAAQC,EAAAA,WACRC,EAAYC,EAAS,SAAA,WAAO,QAAAC,EAAAV,EAAM,OAAN,YAAAU,EAAY,QAAQ,SAAU,GAAKV,EAAM,KAAO,OAAU,EAEtFW,EAAcF,EAAAA,SAAS,IAAMT,EAAM,MAAQA,EAAM,KAAK,QAAQM,EAAM,QAAQ,IAAM,CAAC,EACnFM,EAAaH,WAAS,IAAME,EAAY,OAASX,EAAM,OAASM,EAAM,QAAQ,EAE9EO,EAAsBJ,EAAAA,SAAS,IAAM,CAEzC,KAAM,CAAE,QAAAK,KAAYC,CAAA,EAAcb,EAC3B,OAAAa,CAAA,CACR,EAEKD,EAAU,IAAM,CACpBb,EAAK,OAAO,CAAA,EAaP,MAAA,CACL,UAAAO,EACA,oBAAAK,EACA,YAAAF,EACA,WAAAC,EACA,QAAAE,EACA,QAhBc,SAAY,CAClBA,IAEJN,EAAU,MACN,MAAAJ,EAAO,KAAKJ,EAAM,IAAI,EACnBA,EAAM,MACR,OAAA,SAAS,QAAQA,EAAM,IAAI,CACpC,CASA,CAEJ,CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useAttrs, computed } from "vue";
|
|
2
2
|
import { NeonOutlineStyle } from "../../../common/enums/NeonOutlineStyle.es.js";
|
|
3
3
|
import NeonIcon from "../../presentation/icon/NeonIcon.es.js";
|
|
4
|
-
import { useRoute } from "vue-router";
|
|
4
|
+
import { useRouter, useRoute } from "vue-router";
|
|
5
5
|
var _sfc_main = defineComponent({
|
|
6
6
|
name: "NeonLink",
|
|
7
7
|
components: {
|
|
@@ -18,6 +18,7 @@ var _sfc_main = defineComponent({
|
|
|
18
18
|
],
|
|
19
19
|
setup(props, { emit }) {
|
|
20
20
|
const attrs = useAttrs();
|
|
21
|
+
const router = useRouter();
|
|
21
22
|
const route = useRoute();
|
|
22
23
|
const routerUrl = computed(() => {
|
|
23
24
|
var _a;
|
|
@@ -32,14 +33,23 @@ var _sfc_main = defineComponent({
|
|
|
32
33
|
const onClick = () => {
|
|
33
34
|
emit("click");
|
|
34
35
|
};
|
|
36
|
+
const onSpace = async () => {
|
|
37
|
+
onClick();
|
|
38
|
+
if (routerUrl.value) {
|
|
39
|
+
await router.push(props.href);
|
|
40
|
+
} else if (props.href) {
|
|
41
|
+
window.location.replace(props.href);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
35
44
|
return {
|
|
36
45
|
routerUrl,
|
|
37
46
|
sanitizedAttributes,
|
|
38
47
|
activeRoute,
|
|
39
48
|
exactRoute,
|
|
40
|
-
onClick
|
|
49
|
+
onClick,
|
|
50
|
+
onSpace
|
|
41
51
|
};
|
|
42
52
|
}
|
|
43
53
|
});
|
|
44
54
|
export { _sfc_main as default };
|
|
45
|
-
//# sourceMappingURL=NeonLink.
|
|
55
|
+
//# sourceMappingURL=NeonLink.ts_vue_type_script_src_9100b0e0_lang.es.js.map
|
package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_9100b0e0_lang.es.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NeonLink.ts_vue_type_script_src_9100b0e0_lang.es.js","sources":["../../../../src/components/navigation/link/NeonLink.ts?vue&type=script&src=9100b0e0&lang.ts"],"sourcesContent":["import { computed, defineComponent, useAttrs } from 'vue';\nimport { NeonOutlineStyle } from '@/common/enums/NeonOutlineStyle';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\nimport { useRoute, useRouter } from 'vue-router';\n\n/**\n * An HTML anchor component which handles VueRouter links (internal), href links (external) and clickable links (no href).\n */\nexport default defineComponent({\n name: 'NeonLink',\n components: {\n NeonIcon,\n },\n props: {\n /**\n * The href of the link, this can be an internal (relative or absolute) or an external link.\n */\n href: { type: String, default: null },\n /**\n * set to true if you would like a completely unstyled link. This is useful for creating a complex component which may use NeonLink.\n */\n noStyle: { type: Boolean, default: false },\n /**\n * Style of the outline to use when the link has focus, use <em>text</em> for wrapping text content and\n * <em>border</em> for tooltips wrapping \"block\" elements, e.g. buttons.\n */\n outlineStyle: { type: String as () => NeonOutlineStyle, default: NeonOutlineStyle.Text },\n /**\n * Display an external link icon to the right of the link indicating clicking it will take the user to another site.\n */\n externalIndicator: { type: Boolean, default: false },\n },\n emits: [\n /**\n * Emitted when the user triggers the link by clicking on it or hitting Enter or Space when the link has focus.\n * @type {void}\n */\n 'click',\n ],\n setup(props, { emit }) {\n const attrs = useAttrs();\n const router = useRouter();\n const route = useRoute();\n const routerUrl = computed(() => (props.href?.indexOf('//') === -1 ? props.href : undefined));\n\n const activeRoute = computed(() => props.href && props.href.indexOf(route.fullPath) === 0);\n const exactRoute = computed(() => activeRoute.value && props.href === route.fullPath);\n\n const sanitizedAttributes = computed(() => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { onClick, ...sanitized } = attrs;\n return sanitized;\n });\n\n const onClick = () => {\n emit('click');\n };\n\n const onSpace = async () => {\n onClick();\n\n if (routerUrl.value) {\n await router.push(props.href);\n } else if (props.href) {\n window.location.replace(props.href);\n }\n };\n\n return {\n routerUrl,\n sanitizedAttributes,\n activeRoute,\n exactRoute,\n onClick,\n onSpace,\n };\n },\n});\n"],"names":["onClick"],"mappings":";;;;AAQA,IAAA,YAAe,gBAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IAIL,MAAM,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,IAIpC,SAAS,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA,IAKzC,cAAc,EAAE,MAAM,QAAkC,SAAS,iBAAiB,KAAK;AAAA,IAIvF,mBAAmB,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA,EACrD;AAAA,EACA,OAAO;AAAA,IAKL;AAAA,EACF;AAAA,EACA,MAAM,OAAO,EAAE,QAAQ;AACrB,UAAM,QAAQ;AACd,UAAM,SAAS;AACf,UAAM,QAAQ;AACR,UAAA,YAAY,SAAS;;AAAO,0BAAM,SAAN,mBAAY,QAAQ,WAAU,KAAK,MAAM,OAAO;AAAA,KAAU;AAEtF,UAAA,cAAc,SAAS,MAAM,MAAM,QAAQ,MAAM,KAAK,QAAQ,MAAM,QAAQ,MAAM,CAAC;AACnF,UAAA,aAAa,SAAS,MAAM,YAAY,SAAS,MAAM,SAAS,MAAM,QAAQ;AAE9E,UAAA,sBAAsB,SAAS,MAAM;AAEzC,YAAM,EAAE,SAAAA,aAAY,UAAA,IAAc;AAC3B,aAAA;AAAA,IAAA,CACR;AAED,UAAM,UAAU,MAAM;AACpB,WAAK,OAAO;AAAA,IAAA;AAGd,UAAM,UAAU,YAAY;AAClB;AAER,UAAI,UAAU,OAAO;AACb,cAAA,OAAO,KAAK,MAAM,IAAI;AAAA,MAAA,WACnB,MAAM,MAAM;AACd,eAAA,SAAS,QAAQ,MAAM,IAAI;AAAA,MACpC;AAAA,IAAA;AAGK,WAAA;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EAEJ;AACF,CAAC;;"}
|
|
@@ -40,6 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
activeRoute: import("vue").ComputedRef<boolean | "">;
|
|
41
41
|
exactRoute: import("vue").ComputedRef<boolean | "">;
|
|
42
42
|
onClick: () => void;
|
|
43
|
+
onSpace: () => Promise<void>;
|
|
43
44
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
45
|
/**
|
|
45
46
|
* The href of the link, this can be an internal (relative or absolute) or an external link.
|
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": "9.3.
|
|
4
|
+
"version": "9.3.6",
|
|
5
5
|
"main": "./dist/neon.cjs.js",
|
|
6
6
|
"module": "./dist/neon.es.js",
|
|
7
7
|
"types": "./dist/src/neon.d.ts",
|
|
@@ -35,8 +35,14 @@ a[href]:not(.neon-link--no-style) {
|
|
|
35
35
|
@mixin link {
|
|
36
36
|
.neon-link {
|
|
37
37
|
position: relative;
|
|
38
|
+
display: inline-flex;
|
|
38
39
|
@include outline.focus-outline-styles(var(--neon-rgb-link));
|
|
39
40
|
|
|
41
|
+
.neon-link__label {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
40
46
|
&:not(.neon-link--no-style) {
|
|
41
47
|
@extend %neon-link-no-style;
|
|
42
48
|
|
package/src/sass/palette.scss
CHANGED
|
@@ -37,26 +37,26 @@
|
|
|
37
37
|
--neon-rgb-high-contrast-d3: 38, 38, 38;
|
|
38
38
|
--neon-rgb-high-contrast-d4: 27, 27, 27;
|
|
39
39
|
--neon-rgb-high-contrast-d5: 17, 17, 17;
|
|
40
|
-
--neon-rgb-brand-l5:
|
|
41
|
-
--neon-rgb-brand-l4: 243,
|
|
42
|
-
--neon-rgb-brand-l3:
|
|
43
|
-
--neon-rgb-brand-l2:
|
|
40
|
+
--neon-rgb-brand-l5: 251, 240, 255;
|
|
41
|
+
--neon-rgb-brand-l4: 243, 207, 255;
|
|
42
|
+
--neon-rgb-brand-l3: 232, 175, 255;
|
|
43
|
+
--neon-rgb-brand-l2: 216, 144, 255;
|
|
44
44
|
--neon-rgb-brand-l1: 199, 114, 255;
|
|
45
|
-
--neon-rgb-brand-d1:
|
|
46
|
-
--neon-rgb-brand-d2:
|
|
47
|
-
--neon-rgb-brand-d3:
|
|
48
|
-
--neon-rgb-brand-d4:
|
|
49
|
-
--neon-rgb-brand-d5:
|
|
50
|
-
--neon-rgb-primary-l5:
|
|
51
|
-
--neon-rgb-primary-l4:
|
|
52
|
-
--neon-rgb-primary-l3:
|
|
53
|
-
--neon-rgb-primary-l2:
|
|
54
|
-
--neon-rgb-primary-l1:
|
|
55
|
-
--neon-rgb-primary-d1:
|
|
56
|
-
--neon-rgb-primary-d2:
|
|
57
|
-
--neon-rgb-primary-d3:
|
|
58
|
-
--neon-rgb-primary-d4:
|
|
59
|
-
--neon-rgb-primary-d5:
|
|
45
|
+
--neon-rgb-brand-d1: 136, 55, 192;
|
|
46
|
+
--neon-rgb-brand-d2: 115, 51, 160;
|
|
47
|
+
--neon-rgb-brand-d3: 87, 40, 119;
|
|
48
|
+
--neon-rgb-brand-d4: 56, 30, 74;
|
|
49
|
+
--neon-rgb-brand-d5: 33, 25, 37;
|
|
50
|
+
--neon-rgb-primary-l5: 245, 241, 255;
|
|
51
|
+
--neon-rgb-primary-l4: 222, 214, 255;
|
|
52
|
+
--neon-rgb-primary-l3: 197, 187, 255;
|
|
53
|
+
--neon-rgb-primary-l2: 171, 162, 255;
|
|
54
|
+
--neon-rgb-primary-l1: 143, 138, 255;
|
|
55
|
+
--neon-rgb-primary-d1: 79, 83, 194;
|
|
56
|
+
--neon-rgb-primary-d2: 70, 72, 163;
|
|
57
|
+
--neon-rgb-primary-d3: 54, 55, 123;
|
|
58
|
+
--neon-rgb-primary-d4: 38, 37, 77;
|
|
59
|
+
--neon-rgb-primary-d5: 28, 26, 39;
|
|
60
60
|
--neon-rgb-info-l5: 230, 245, 255;
|
|
61
61
|
--neon-rgb-info-l4: 182, 224, 255;
|
|
62
62
|
--neon-rgb-info-l3: 137, 201, 255;
|
|
@@ -67,34 +67,34 @@
|
|
|
67
67
|
--neon-rgb-info-d3: 0, 60, 123;
|
|
68
68
|
--neon-rgb-info-d4: 4, 40, 78;
|
|
69
69
|
--neon-rgb-info-d5: 21, 27, 41;
|
|
70
|
-
--neon-rgb-success-l5:
|
|
71
|
-
--neon-rgb-success-l4:
|
|
72
|
-
--neon-rgb-success-l3:
|
|
73
|
-
--neon-rgb-success-l2:
|
|
74
|
-
--neon-rgb-success-l1:
|
|
75
|
-
--neon-rgb-success-d1: 0,
|
|
76
|
-
--neon-rgb-success-d2: 0,
|
|
77
|
-
--neon-rgb-success-d3: 0, 73,
|
|
78
|
-
--neon-rgb-success-d4: 0, 48,
|
|
79
|
-
--neon-rgb-success-d5:
|
|
80
|
-
--neon-rgb-warn-l5:
|
|
81
|
-
--neon-rgb-warn-l4: 255,
|
|
82
|
-
--neon-rgb-warn-l3: 255,
|
|
83
|
-
--neon-rgb-warn-l2:
|
|
84
|
-
--neon-rgb-warn-l1:
|
|
85
|
-
--neon-rgb-warn-d1:
|
|
86
|
-
--neon-rgb-warn-d2:
|
|
87
|
-
--neon-rgb-warn-d3:
|
|
88
|
-
--neon-rgb-warn-d4:
|
|
89
|
-
--neon-rgb-warn-d5:
|
|
90
|
-
--neon-rgb-error-l5: 255,
|
|
91
|
-
--neon-rgb-error-l4: 255,
|
|
92
|
-
--neon-rgb-error-l3: 255,
|
|
93
|
-
--neon-rgb-error-l2: 255,
|
|
94
|
-
--neon-rgb-error-l1:
|
|
95
|
-
--neon-rgb-error-d1:
|
|
96
|
-
--neon-rgb-error-d2:
|
|
97
|
-
--neon-rgb-error-d3:
|
|
98
|
-
--neon-rgb-error-d4:
|
|
99
|
-
--neon-rgb-error-d5:
|
|
70
|
+
--neon-rgb-success-l5: 222, 249, 244;
|
|
71
|
+
--neon-rgb-success-l4: 176, 241, 230;
|
|
72
|
+
--neon-rgb-success-l3: 131, 231, 215;
|
|
73
|
+
--neon-rgb-success-l2: 90, 218, 201;
|
|
74
|
+
--neon-rgb-success-l1: 44, 205, 187;
|
|
75
|
+
--neon-rgb-success-d1: 0, 110, 96;
|
|
76
|
+
--neon-rgb-success-d2: 0, 95, 83;
|
|
77
|
+
--neon-rgb-success-d3: 0, 73, 63;
|
|
78
|
+
--neon-rgb-success-d4: 0, 48, 42;
|
|
79
|
+
--neon-rgb-success-d5: 8, 31, 28;
|
|
80
|
+
--neon-rgb-warn-l5: 254, 242, 224;
|
|
81
|
+
--neon-rgb-warn-l4: 255, 226, 171;
|
|
82
|
+
--neon-rgb-warn-l3: 255, 211, 122;
|
|
83
|
+
--neon-rgb-warn-l2: 252, 197, 77;
|
|
84
|
+
--neon-rgb-warn-l1: 243, 183, 18;
|
|
85
|
+
--neon-rgb-warn-d1: 131, 89, 0;
|
|
86
|
+
--neon-rgb-warn-d2: 112, 76, 0;
|
|
87
|
+
--neon-rgb-warn-d3: 86, 58, 0;
|
|
88
|
+
--neon-rgb-warn-d4: 57, 38, 0;
|
|
89
|
+
--neon-rgb-warn-d5: 34, 26, 12;
|
|
90
|
+
--neon-rgb-error-l5: 255, 237, 237;
|
|
91
|
+
--neon-rgb-error-l4: 255, 203, 203;
|
|
92
|
+
--neon-rgb-error-l3: 255, 168, 171;
|
|
93
|
+
--neon-rgb-error-l2: 255, 134, 143;
|
|
94
|
+
--neon-rgb-error-l1: 255, 98, 118;
|
|
95
|
+
--neon-rgb-error-d1: 197, 0, 54;
|
|
96
|
+
--neon-rgb-error-d2: 166, 6, 48;
|
|
97
|
+
--neon-rgb-error-d3: 125, 16, 37;
|
|
98
|
+
--neon-rgb-error-d4: 79, 20, 26;
|
|
99
|
+
--neon-rgb-error-d5: 41, 23, 23;
|
|
100
100
|
}
|
package/src/sass/variables.scss
CHANGED
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
--neon-font-weight-semi-bold: 500;
|
|
78
78
|
--neon-font-weight-bold: 600;
|
|
79
79
|
|
|
80
|
-
--neon-h6-weight: var(--neon-font-weight-
|
|
81
|
-
--neon-h5-weight: var(--neon-font-weight-
|
|
82
|
-
--neon-h4-weight: var(--neon-font-weight-
|
|
80
|
+
--neon-h6-weight: var(--neon-font-weight-normal);
|
|
81
|
+
--neon-h5-weight: var(--neon-font-weight-normal);
|
|
82
|
+
--neon-h4-weight: var(--neon-font-weight-normal);
|
|
83
83
|
--neon-h3-weight: var(--neon-font-weight-semi-bold);
|
|
84
84
|
--neon-h2-weight: var(--neon-font-weight-semi-bold);
|
|
85
|
-
--neon-h1-weight: var(--neon-font-weight-
|
|
86
|
-
--neon-h0-weight: var(--neon-font-weight-
|
|
85
|
+
--neon-h1-weight: var(--neon-font-weight-bold);
|
|
86
|
+
--neon-h0-weight: var(--neon-font-weight-bold);
|
|
87
87
|
|
|
88
88
|
--neon-font-weight-em: var(--neon-font-weight-lighter);
|
|
89
89
|
--neon-font-weight-strong: var(--neon-font-weight-bold);
|
package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_5a48e750_lang.cjs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("vue"),f=require("../../../common/enums/NeonOutlineStyle.cjs.js"),d=require("../../presentation/icon/NeonIcon.cjs.js"),m=require("vue-router"),v=e.defineComponent({name:"NeonLink",components:{NeonIcon:d},props:{href:{type:String,default:null},noStyle:{type:Boolean,default:!1},outlineStyle:{type:String,default:f.NeonOutlineStyle.Text},externalIndicator:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:r}){const i=e.useAttrs(),o=m.useRoute(),c=e.computed(()=>{var n;return((n=t.href)==null?void 0:n.indexOf("//"))===-1?t.href:void 0}),u=e.computed(()=>t.href&&t.href.indexOf(o.fullPath)===0),l=e.computed(()=>u.value&&t.href===o.fullPath),s=e.computed(()=>{const{onClick:n,...a}=i;return a});return{routerUrl:c,sanitizedAttributes:s,activeRoute:u,exactRoute:l,onClick:()=>{r("click")}}}});module.exports=v;
|
|
2
|
-
//# sourceMappingURL=NeonLink.ts_vue_type_script_src_5a48e750_lang.cjs.js.map
|
package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_5a48e750_lang.cjs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NeonLink.ts_vue_type_script_src_5a48e750_lang.cjs.js","sources":["../../../../src/components/navigation/link/NeonLink.ts?vue&type=script&src=5a48e750&lang.ts"],"sourcesContent":["import { computed, defineComponent, useAttrs } from 'vue';\nimport { NeonOutlineStyle } from '@/common/enums/NeonOutlineStyle';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\nimport { useRoute } from 'vue-router';\n\n/**\n * An HTML anchor component which handles VueRouter links (internal), href links (external) and clickable links (no href).\n */\nexport default defineComponent({\n name: 'NeonLink',\n components: {\n NeonIcon,\n },\n props: {\n /**\n * The href of the link, this can be an internal (relative or absolute) or an external link.\n */\n href: { type: String, default: null },\n /**\n * set to true if you would like a completely unstyled link. This is useful for creating a complex component which may use NeonLink.\n */\n noStyle: { type: Boolean, default: false },\n /**\n * Style of the outline to use when the link has focus, use <em>text</em> for wrapping text content and\n * <em>border</em> for tooltips wrapping \"block\" elements, e.g. buttons.\n */\n outlineStyle: { type: String as () => NeonOutlineStyle, default: NeonOutlineStyle.Text },\n /**\n * Display an external link icon to the right of the link indicating clicking it will take the user to another site.\n */\n externalIndicator: { type: Boolean, default: false },\n },\n emits: [\n /**\n * Emitted when the user triggers the link by clicking on it or hitting Enter when the link has focus.\n * @type {void}\n */\n 'click',\n ],\n setup(props, { emit }) {\n const attrs = useAttrs();\n const route = useRoute();\n const routerUrl = computed(() => (props.href?.indexOf('//') === -1 ? props.href : undefined));\n\n const activeRoute = computed(() => props.href && props.href.indexOf(route.fullPath) === 0);\n const exactRoute = computed(() => activeRoute.value && props.href === route.fullPath);\n\n const sanitizedAttributes = computed(() => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { onClick, ...sanitized } = attrs;\n return sanitized;\n });\n\n const onClick = () => {\n emit('click');\n };\n\n return {\n routerUrl,\n sanitizedAttributes,\n activeRoute,\n exactRoute,\n onClick,\n };\n },\n});\n"],"names":["_sfc_main","defineComponent","NeonIcon","NeonOutlineStyle","props","emit","attrs","useAttrs","route","useRoute","routerUrl","computed","_a","activeRoute","exactRoute","sanitizedAttributes","onClick","sanitized"],"mappings":"0KAQAA,EAAeC,kBAAgB,CAC7B,KAAM,WACN,WAAY,CACV,SAAAC,CACF,EACA,MAAO,CAIL,KAAM,CAAE,KAAM,OAAQ,QAAS,IAAK,EAIpC,QAAS,CAAE,KAAM,QAAS,QAAS,EAAM,EAKzC,aAAc,CAAE,KAAM,OAAkC,QAASC,EAAAA,iBAAiB,IAAK,EAIvF,kBAAmB,CAAE,KAAM,QAAS,QAAS,EAAM,CACrD,EACA,MAAO,CAKL,OACF,EACA,MAAMC,EAAO,CAAE,KAAAC,GAAQ,CACrB,MAAMC,EAAQC,EAAAA,WACRC,EAAQC,EAAAA,WACRC,EAAYC,EAAS,SAAA,WAAO,QAAAC,EAAAR,EAAM,OAAN,YAAAQ,EAAY,QAAQ,SAAU,GAAKR,EAAM,KAAO,OAAU,EAEtFS,EAAcF,EAAAA,SAAS,IAAMP,EAAM,MAAQA,EAAM,KAAK,QAAQI,EAAM,QAAQ,IAAM,CAAC,EACnFM,EAAaH,WAAS,IAAME,EAAY,OAAST,EAAM,OAASI,EAAM,QAAQ,EAE9EO,EAAsBJ,EAAAA,SAAS,IAAM,CAEzC,KAAM,CAAE,QAAAK,KAAYC,CAAA,EAAcX,EAC3B,OAAAW,CAAA,CACR,EAMM,MAAA,CACL,UAAAP,EACA,oBAAAK,EACA,YAAAF,EACA,WAAAC,EACA,QATc,IAAM,CACpBT,EAAK,OAAO,CAAA,CAQZ,CAEJ,CACF,CAAC"}
|
package/dist/components/navigation/link/NeonLink.ts_vue_type_script_src_5a48e750_lang.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NeonLink.ts_vue_type_script_src_5a48e750_lang.es.js","sources":["../../../../src/components/navigation/link/NeonLink.ts?vue&type=script&src=5a48e750&lang.ts"],"sourcesContent":["import { computed, defineComponent, useAttrs } from 'vue';\nimport { NeonOutlineStyle } from '@/common/enums/NeonOutlineStyle';\nimport NeonIcon from '@/components/presentation/icon/NeonIcon.vue';\nimport { useRoute } from 'vue-router';\n\n/**\n * An HTML anchor component which handles VueRouter links (internal), href links (external) and clickable links (no href).\n */\nexport default defineComponent({\n name: 'NeonLink',\n components: {\n NeonIcon,\n },\n props: {\n /**\n * The href of the link, this can be an internal (relative or absolute) or an external link.\n */\n href: { type: String, default: null },\n /**\n * set to true if you would like a completely unstyled link. This is useful for creating a complex component which may use NeonLink.\n */\n noStyle: { type: Boolean, default: false },\n /**\n * Style of the outline to use when the link has focus, use <em>text</em> for wrapping text content and\n * <em>border</em> for tooltips wrapping \"block\" elements, e.g. buttons.\n */\n outlineStyle: { type: String as () => NeonOutlineStyle, default: NeonOutlineStyle.Text },\n /**\n * Display an external link icon to the right of the link indicating clicking it will take the user to another site.\n */\n externalIndicator: { type: Boolean, default: false },\n },\n emits: [\n /**\n * Emitted when the user triggers the link by clicking on it or hitting Enter when the link has focus.\n * @type {void}\n */\n 'click',\n ],\n setup(props, { emit }) {\n const attrs = useAttrs();\n const route = useRoute();\n const routerUrl = computed(() => (props.href?.indexOf('//') === -1 ? props.href : undefined));\n\n const activeRoute = computed(() => props.href && props.href.indexOf(route.fullPath) === 0);\n const exactRoute = computed(() => activeRoute.value && props.href === route.fullPath);\n\n const sanitizedAttributes = computed(() => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { onClick, ...sanitized } = attrs;\n return sanitized;\n });\n\n const onClick = () => {\n emit('click');\n };\n\n return {\n routerUrl,\n sanitizedAttributes,\n activeRoute,\n exactRoute,\n onClick,\n };\n },\n});\n"],"names":["onClick"],"mappings":";;;;AAQA,IAAA,YAAe,gBAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,EACF;AAAA,EACA,OAAO;AAAA,IAIL,MAAM,EAAE,MAAM,QAAQ,SAAS,KAAK;AAAA,IAIpC,SAAS,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA,IAKzC,cAAc,EAAE,MAAM,QAAkC,SAAS,iBAAiB,KAAK;AAAA,IAIvF,mBAAmB,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA,EACrD;AAAA,EACA,OAAO;AAAA,IAKL;AAAA,EACF;AAAA,EACA,MAAM,OAAO,EAAE,QAAQ;AACrB,UAAM,QAAQ;AACd,UAAM,QAAQ;AACR,UAAA,YAAY,SAAS;;AAAO,0BAAM,SAAN,mBAAY,QAAQ,WAAU,KAAK,MAAM,OAAO;AAAA,KAAU;AAEtF,UAAA,cAAc,SAAS,MAAM,MAAM,QAAQ,MAAM,KAAK,QAAQ,MAAM,QAAQ,MAAM,CAAC;AACnF,UAAA,aAAa,SAAS,MAAM,YAAY,SAAS,MAAM,SAAS,MAAM,QAAQ;AAE9E,UAAA,sBAAsB,SAAS,MAAM;AAEzC,YAAM,EAAE,SAAAA,aAAY,UAAA,IAAc;AAC3B,aAAA;AAAA,IAAA,CACR;AAED,UAAM,UAAU,MAAM;AACpB,WAAK,OAAO;AAAA,IAAA;AAGP,WAAA;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,EAEJ;AACF,CAAC;;"}
|