@aotearoan/neon 7.3.1-beta.1 → 7.3.3-beta.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.
package/README.md CHANGED
@@ -1,5 +1,3 @@
1
- <img src="./logo.png">
2
-
3
1
  ![GitHub package.json version](https://img.shields.io/github/package-json/v/aotearoan/neon)
4
2
  ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/@aotearoan/neon)
5
3
  ![GitHub last commit](https://img.shields.io/github/last-commit/aotearoan/neon)
@@ -23,47 +21,44 @@ or yarn:
23
21
 
24
22
  Import components and supporting classes like so:
25
23
  <pre>
26
- import { Component, Vue } from 'vue-property-decorator';
27
- import { NeonLogo } from '@aotearoan/neon';
24
+ import { NeonButton } from '@aotearoan/neon';
28
25
 
29
- @Component({
26
+ export default defineComponent({
27
+ name: 'SomeComponent',
30
28
  components: {
31
- NeonLogo,
29
+ NeonButton,
32
30
  },
33
- })
34
- export default class App extends Vue {}
31
+ ...
32
+ });
35
33
  </pre>
36
34
 
37
35
  ### SASS
38
36
 
39
- <p>To use a theme without any customization simply import the basic theme file</p>
37
+ To import the theme:
40
38
  <pre>
41
- @use '~@aotearoan/neon/theme';
39
+ @use '@aotearoan/neon/theme';
42
40
  </pre>
43
- <p>If, however you would like to override/customize the theme then you need to include the following:</p>
41
+
42
+ Alternatively the theme can be imported with a list of used components to minimise the final package size:
44
43
  <pre>
45
- .app {
46
- &.neon {
47
- // override colors, palettes and other basic variables here BEFORE importing the theme, e.g. $neon-color-primary: #bada55
48
- @use '~@aotearoan/neon/theme';
49
- // include custom app SASS here (you can use neon's defined variables, mixins and functions)
50
- &.neon-mode--dark {
51
- // override dark mode specific variables here, e.g. $neon-border-color: #bada55
52
- @use '~@aotearoan/neon/theme/dark';
53
- // include custom app dark mode SASS here (you can use neon's defined variables, mixins and functions)
54
- }
55
- &.neon-mode--light {
56
- // override light mode specific variables here, e.g. $neon-border-color: #bada55
57
- @use '~@aotearoan/neon/theme/light';
58
- // include custom app light mode SASS here (you can use neon's defined variables, mixins and functions)
59
- }
60
- }
61
- }
62
- </pre>
44
+ @use '@aotearoan/neon/theme' with (
45
+ $neon-components: (
46
+ NeonAlert,
47
+ NeonButton,
48
+ NeonCard,
49
+ NeonCardBody,
50
+ NeonCardFooter,
51
+ NeonCardHeader,
52
+ NeonDrawer,
53
+ ),
54
+ );</pre>
55
+
56
+ ### HTML
63
57
 
64
- Finally, the theme and mode (light/dark) need to be set on the document:
65
- <pre>&lt;html class="app neon neon-mode--dark"&gt;</pre>
58
+ Add the necessary _app_ & _Neon_ styles to the HTML element as well as the light/dark mode, e.g.to set dark mode by
59
+ default:
66
60
 
67
- [![Stargazers repo roster for @aotearoan/neon](https://reporoster.com/stars/aotearoan/neon)](https://github.com/aotearoan/neon/stargazers)
61
+ <pre>&lt;html class="app neon neon-mode--dark"></pre>
62
+ For more information on dynamically changing the mode
63
+ see [Dark mode](https://aotearoan.github.io/neon/design/theming#dark-mode).
68
64
 
69
- [![Forkers repo roster for @aotearoan/neon](https://reporoster.com/forks/aotearoan/neon)](https://github.com/aotearoan/neon/network/members)
@@ -0,0 +1,2 @@
1
+ var feather = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="neon-svg--stroke">\n <path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path>\n <line x1="16" y1="8" x2="2" y2="22"></line>\n <line x1="17.5" y1="15" x2="9" y2="15"></line>\n</svg>\n';
2
+ export { feather as default };
@@ -0,0 +1,2 @@
1
+ var neonLogo = '<svg width="100%" height="100%" viewBox="0 0 1289 335"\n xmlns="http://www.w3.org/2000/svg" xml:space="preserve"\n style="fill-rule:evenodd;clip-rule:evenodd;stroke-miterlimit:2;">\n <path class="neon-svg--fill"\n stroke-linecap="square"\n d="M54.328,318.534c-4.431,-0 -8.081,-1.434 -10.948,-4.301c-2.867,-2.868 -4.301,-6.517 -4.301,-10.948l0,-274.873c0,-4.432 1.434,-8.081 4.301,-10.948c2.867,-2.868 6.517,-4.301 10.948,-4.301c4.692,-0 8.602,1.824 11.73,5.474l186.898,245.548l0,-235.773c0,-4.432 1.434,-8.081 4.301,-10.948c2.867,-2.868 6.517,-4.301 10.948,-4.301c4.171,-0 7.755,1.433 10.753,4.301c2.997,2.867 4.496,6.516 4.496,10.948l0,274.873c0,4.431 -1.499,8.08 -4.496,10.948c-2.998,2.867 -6.582,4.301 -10.753,4.301c-2.085,-0 -4.171,-0.391 -6.256,-1.173c-2.085,-0.782 -3.78,-2.086 -5.083,-3.91l-187.289,-245.548l0,235.382c0,4.431 -1.499,8.08 -4.496,10.948c-2.998,2.867 -6.582,4.301 -10.753,4.301Z"\n style="fill-rule:nonzero;"/>\n <path class="neon-svg--fill"\n stroke-linecap="square"\n d="M356.962,43.661c-4.171,-0 -7.755,-1.499 -10.752,-4.497c-2.998,-2.998 -4.497,-6.582 -4.497,-10.752c0,-4.432 1.499,-8.081 4.497,-10.948c2.997,-2.868 6.581,-4.301 10.752,-4.301l228.735,-0c4.171,-0 7.755,1.433 10.753,4.301c2.997,2.867 4.496,6.516 4.496,10.948c0,4.17 -1.499,7.754 -4.496,10.752c-2.998,2.998 -6.582,4.497 -10.753,4.497l-228.735,-0Zm33.235,137.632c-3.649,-0.261 -7.038,-1.825 -10.166,-4.692c-3.128,-2.868 -4.692,-6.517 -4.692,-10.948c0,-3.91 1.434,-7.299 4.301,-10.166c2.867,-2.868 6.386,-4.562 10.557,-5.083l162.265,-0c4.171,-0 7.755,1.498 10.753,4.496c2.997,2.998 4.496,6.582 4.496,10.753c0,4.431 -1.499,8.145 -4.496,11.143c-2.998,2.998 -6.582,4.497 -10.753,4.497l-162.265,-0Zm-33.235,137.241c-4.171,-0 -7.755,-1.434 -10.752,-4.301c-2.998,-2.868 -4.497,-6.517 -4.497,-10.948c0,-4.171 1.499,-7.755 4.497,-10.753c2.997,-2.998 6.581,-4.496 10.752,-4.496l228.735,-0c4.171,-0 7.755,1.498 10.753,4.496c2.997,2.998 4.496,6.582 4.496,10.753c0,4.431 -1.499,8.08 -4.496,10.948c-2.998,2.867 -6.582,4.301 -10.753,4.301l-228.735,-0Z"\n style="fill-rule:nonzero;"/>\n <circle class="neon-svg--fill" r="165" cx="790" cy="167.5"/>\n <path class="neon-svg--fill"\n stroke-linecap="square"\n d="M1018.14,318.534c-4.171,-0 -7.755,-1.499 -10.752,-4.497c-2.998,-2.998 -4.497,-6.582 -4.497,-10.752l0,-274.873c0,-4.171 1.499,-7.755 4.497,-10.753c2.997,-2.998 6.581,-4.496 10.752,-4.496l213.486,-0c4.171,-0 7.69,1.433 10.557,4.301c2.867,2.867 4.301,6.516 4.301,10.948l0,274.873c0,4.431 -1.434,8.08 -4.301,10.948c-2.867,2.867 -6.386,4.301 -10.557,4.301c-4.431,-0 -8.081,-1.434 -10.948,-4.301c-2.867,-2.868 -4.301,-6.517 -4.301,-10.948l0,-262.752l-182.988,-0l0,262.752c0,4.17 -1.499,7.754 -4.496,10.752c-2.998,2.998 -6.582,4.497 -10.753,4.497Z"\n style="fill-rule:nonzero;"/>\n </svg>\n';
2
+ export { neonLogo as default };
@@ -18,6 +18,7 @@ import dot from "../icons/dot.js";
18
18
  import download from "../icons/download.js";
19
19
  import ellipsis from "../icons/ellipsis.js";
20
20
  import exclamationCircle from "../icons/exclamation-circle.js";
21
+ import feather from "../icons/feather.js";
21
22
  import github from "../icons/github.js";
22
23
  import hammer from "../icons/hammer.js";
23
24
  import heart from "../icons/heart.js";
@@ -26,11 +27,13 @@ import htmlLogo from "../icons/html-logo.js";
26
27
  import images from "../icons/images.js";
27
28
  import infoCircle from "../icons/info-circle.js";
28
29
  import linkExternal from "../icons/link-external.js";
30
+ import loading from "../icons/loading.js";
29
31
  import lock from "../icons/lock.js";
30
32
  import mail from "../icons/mail.js";
31
33
  import menu from "../icons/menu.js";
32
34
  import minus from "../icons/minus.js";
33
35
  import moon from "../icons/moon.js";
36
+ import neonLogo from "../icons/neon-logo.js";
34
37
  import palette from "../icons/palette.js";
35
38
  import plus from "../icons/plus.js";
36
39
  import send from "../icons/send.js";
@@ -41,8 +44,6 @@ import timesCircle from "../icons/times-circle.js";
41
44
  import user from "../icons/user.js";
42
45
  import visibilityOff from "../icons/visibility-off.js";
43
46
  import visibilityOn from "../icons/visibility-on.js";
44
- import loading from "../icons/loading.js";
45
- import logo from "../icons/logo.js";
46
47
  class RegisterIcons {
47
48
  static register() {
48
49
  NeonIconRegistry.addIcon("align-center", alignCenter);
@@ -64,6 +65,7 @@ class RegisterIcons {
64
65
  NeonIconRegistry.addIcon("download", download);
65
66
  NeonIconRegistry.addIcon("ellipsis", ellipsis);
66
67
  NeonIconRegistry.addIcon("exclamation-circle", exclamationCircle);
68
+ NeonIconRegistry.addIcon("feather", feather);
67
69
  NeonIconRegistry.addIcon("github", github);
68
70
  NeonIconRegistry.addIcon("hammer", hammer);
69
71
  NeonIconRegistry.addIcon("heart", heart);
@@ -72,12 +74,13 @@ class RegisterIcons {
72
74
  NeonIconRegistry.addIcon("images", images);
73
75
  NeonIconRegistry.addIcon("info-circle", infoCircle);
74
76
  NeonIconRegistry.addIcon("link-external", linkExternal);
77
+ NeonIconRegistry.addIcon("loading", loading);
75
78
  NeonIconRegistry.addIcon("lock", lock);
76
- NeonIconRegistry.addIcon("logo", logo);
77
79
  NeonIconRegistry.addIcon("mail", mail);
78
80
  NeonIconRegistry.addIcon("menu", menu);
79
81
  NeonIconRegistry.addIcon("minus", minus);
80
82
  NeonIconRegistry.addIcon("moon", moon);
83
+ NeonIconRegistry.addIcon("neon-logo", neonLogo);
81
84
  NeonIconRegistry.addIcon("palette", palette);
82
85
  NeonIconRegistry.addIcon("plus", plus);
83
86
  NeonIconRegistry.addIcon("send", send);
@@ -88,7 +91,6 @@ class RegisterIcons {
88
91
  NeonIconRegistry.addIcon("user", user);
89
92
  NeonIconRegistry.addIcon("visibility-off", visibilityOff);
90
93
  NeonIconRegistry.addIcon("visibility-on", visibilityOn);
91
- NeonIconRegistry.addIcon("loading", loading);
92
94
  }
93
95
  }
94
96
  export { RegisterIcons };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aotearoan/neon",
3
- "description": "Neon is a lightweight design library of VueJS components with minimal dependencies. It supports light and dark modes and can be extended to support multiple themes",
4
- "version": "7.3.1-beta.1",
3
+ "description": "Neon is a lightweight design library of Vue 3 components with minimal dependencies.",
4
+ "version": "7.3.3-beta.1",
5
5
  "module": "dist/neon.js",
6
6
  "types": "dist/neon.d.ts",
7
7
  "exports": {
@@ -45,6 +45,10 @@
45
45
  "theming",
46
46
  "mode",
47
47
  "web",
48
+ "SASS",
49
+ "scss",
50
+ "css",
51
+ "variables",
48
52
  "application",
49
53
  "javascript",
50
54
  "typescript",
@@ -1,2 +0,0 @@
1
- var logo = '<svg width="100%" height="100%" viewBox="0 0 1289 335"\n xmlns="http://www.w3.org/2000/svg" xml:space="preserve"\n style="fill-rule:evenodd;clip-rule:evenodd;stroke-miterlimit:2;">\n <path class="neon-svg--fill"\n stroke-linecap="square"\n d="M54.328,318.534c-4.431,-0 -8.081,-1.434 -10.948,-4.301c-2.867,-2.868 -4.301,-6.517 -4.301,-10.948l0,-274.873c0,-4.432 1.434,-8.081 4.301,-10.948c2.867,-2.868 6.517,-4.301 10.948,-4.301c4.692,-0 8.602,1.824 11.73,5.474l186.898,245.548l0,-235.773c0,-4.432 1.434,-8.081 4.301,-10.948c2.867,-2.868 6.517,-4.301 10.948,-4.301c4.171,-0 7.755,1.433 10.753,4.301c2.997,2.867 4.496,6.516 4.496,10.948l0,274.873c0,4.431 -1.499,8.08 -4.496,10.948c-2.998,2.867 -6.582,4.301 -10.753,4.301c-2.085,-0 -4.171,-0.391 -6.256,-1.173c-2.085,-0.782 -3.78,-2.086 -5.083,-3.91l-187.289,-245.548l0,235.382c0,4.431 -1.499,8.08 -4.496,10.948c-2.998,2.867 -6.582,4.301 -10.753,4.301Z"\n style="fill-rule:nonzero;"/>\n <path class="neon-svg--fill"\n stroke-linecap="square"\n d="M356.962,43.661c-4.171,-0 -7.755,-1.499 -10.752,-4.497c-2.998,-2.998 -4.497,-6.582 -4.497,-10.752c0,-4.432 1.499,-8.081 4.497,-10.948c2.997,-2.868 6.581,-4.301 10.752,-4.301l228.735,-0c4.171,-0 7.755,1.433 10.753,4.301c2.997,2.867 4.496,6.516 4.496,10.948c0,4.17 -1.499,7.754 -4.496,10.752c-2.998,2.998 -6.582,4.497 -10.753,4.497l-228.735,-0Zm33.235,137.632c-3.649,-0.261 -7.038,-1.825 -10.166,-4.692c-3.128,-2.868 -4.692,-6.517 -4.692,-10.948c0,-3.91 1.434,-7.299 4.301,-10.166c2.867,-2.868 6.386,-4.562 10.557,-5.083l162.265,-0c4.171,-0 7.755,1.498 10.753,4.496c2.997,2.998 4.496,6.582 4.496,10.753c0,4.431 -1.499,8.145 -4.496,11.143c-2.998,2.998 -6.582,4.497 -10.753,4.497l-162.265,-0Zm-33.235,137.241c-4.171,-0 -7.755,-1.434 -10.752,-4.301c-2.998,-2.868 -4.497,-6.517 -4.497,-10.948c0,-4.171 1.499,-7.755 4.497,-10.753c2.997,-2.998 6.581,-4.496 10.752,-4.496l228.735,-0c4.171,-0 7.755,1.498 10.753,4.496c2.997,2.998 4.496,6.582 4.496,10.753c0,4.431 -1.499,8.08 -4.496,10.948c-2.998,2.867 -6.582,4.301 -10.753,4.301l-228.735,-0Z"\n style="fill-rule:nonzero;"/>\n <circle class="neon-svg--fill" r="165" cx="790" cy="167.5"/>\n <path class="neon-svg--fill"\n stroke-linecap="square"\n d="M1018.14,318.534c-4.171,-0 -7.755,-1.499 -10.752,-4.497c-2.998,-2.998 -4.497,-6.582 -4.497,-10.752l0,-274.873c0,-4.171 1.499,-7.755 4.497,-10.753c2.997,-2.998 6.581,-4.496 10.752,-4.496l213.486,-0c4.171,-0 7.69,1.433 10.557,4.301c2.867,2.867 4.301,6.516 4.301,10.948l0,274.873c0,4.431 -1.434,8.08 -4.301,10.948c-2.867,2.867 -6.386,4.301 -10.557,4.301c-4.431,-0 -8.081,-1.434 -10.948,-4.301c-2.867,-2.868 -4.301,-6.517 -4.301,-10.948l0,-262.752l-182.988,-0l0,262.752c0,4.17 -1.499,7.754 -4.496,10.752c-2.998,2.998 -6.582,4.497 -10.753,4.497Z"\n style="fill-rule:nonzero;"/>\n </svg>\n';
2
- export { logo as default };