@n3rdw1z4rd/core 0.6.5 → 0.8.0

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/index.css CHANGED
@@ -1,3 +1,12 @@
1
+ /* src/css/clock-stats.css */
2
+ #clock-stats {
3
+ padding: var(--padding-medium);
4
+ border-radius: var(--border-radius);
5
+ border: var(--border-style);
6
+ background: var(--background-opacity-medium);
7
+ z-index: 1000;
8
+ }
9
+
1
10
  /* src/css/reset.css */
2
11
  *,
3
12
  *::before,
@@ -102,12 +111,3 @@ body,
102
111
  margin: 0;
103
112
  padding: 0;
104
113
  }
105
-
106
- /* src/css/clock-stats.css */
107
- #clock-stats {
108
- padding: var(--padding-medium);
109
- border-radius: var(--border-radius);
110
- border: var(--border-style);
111
- background: var(--background-opacity-medium);
112
- z-index: 1000;
113
- }
package/dist/index.js CHANGED
@@ -1,16 +1,8 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
- };
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
14
6
  var __export = (target, all) => {
15
7
  for (var name in all)
16
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -23,30 +15,8 @@ var __copyProps = (to, from, except, desc) => {
23
15
  }
24
16
  return to;
25
17
  };
26
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27
- // If the importer is in node compatibility mode or this is not an ESM
28
- // file that has been converted to a CommonJS file using a Babel-
29
- // compatible transform (i.e. "__esModule" has not been set), then set
30
- // "default" to the CommonJS "module.exports" for node compatibility.
31
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
- mod
33
- ));
34
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
19
 
36
- // src/css/main.css
37
- var init_main = __esm({
38
- "src/css/main.css"() {
39
- }
40
- });
41
-
42
- // src/css/index.ts
43
- var require_css = __commonJS({
44
- "src/css/index.ts"() {
45
- "use strict";
46
- init_main();
47
- }
48
- });
49
-
50
20
  // src/index.ts
51
21
  var index_exports = {};
52
22
  __export(index_exports, {
@@ -90,7 +60,6 @@ __export(index_exports, {
90
60
  xyz2key: () => xyz2key
91
61
  });
92
62
  module.exports = __toCommonJS(index_exports);
93
- var import_css = __toESM(require_css());
94
63
 
95
64
  // src/clock-stats.ts
96
65
  var ClockStats = class {
package/dist/index.mjs CHANGED
@@ -1,49 +1,3 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __esm = (fn, res) => function __init() {
8
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
9
- };
10
- var __commonJS = (cb, mod) => function __require() {
11
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
-
30
- // src/css/main.css
31
- var init_main = __esm({
32
- "src/css/main.css"() {
33
- }
34
- });
35
-
36
- // src/css/index.ts
37
- var require_css = __commonJS({
38
- "src/css/index.ts"() {
39
- "use strict";
40
- init_main();
41
- }
42
- });
43
-
44
- // src/index.ts
45
- var import_css = __toESM(require_css());
46
-
47
1
  // src/clock-stats.ts
48
2
  var ClockStats = class {
49
3
  divElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n3rdw1z4rd/core",
3
- "version": "0.6.5",
3
+ "version": "0.8.0",
4
4
  "description": "core library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9,9 +9,9 @@
9
9
  "dist"
10
10
  ],
11
11
  "scripts": {
12
- "build": "tsup && shx cp -r ./src/css ./dist/",
13
- "dev": "tsup --watch",
14
- "prepublishOnly": "npm i && npm run build"
12
+ "build-old": "tsup && shx cp -r ./src/css ./dist/",
13
+ "build": "tsup",
14
+ "dev": "tsup --watch"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -1,7 +0,0 @@
1
- #clock-stats {
2
- padding: var(--padding-medium);
3
- border-radius: var(--border-radius);
4
- border: var(--border-style);
5
- background: var(--background-opacity-medium);
6
- z-index: 1000;
7
- }
package/dist/css/index.ts DELETED
@@ -1 +0,0 @@
1
- import './main.css';
package/dist/css/main.css DELETED
@@ -1,44 +0,0 @@
1
- @import './reset.css';
2
-
3
- :root {
4
- /* Colors */
5
- --color-foreground: lightgray;
6
- --color-background: #111;
7
- --color-border: #444;
8
-
9
- /* Common Variables */
10
- --border-width: 1px;
11
- --border-radius: 4px;
12
- --padding-small: 4px;
13
- --padding-medium: 8px;
14
- --padding-large: 16px;
15
- --margin-small: 4px;
16
- --margin-medium: 8px;
17
- --margin-large: 16px;
18
- --border-style: var(--border-width) dashed var(--color-border);
19
-
20
- /* Transparency Levels */
21
- --background-opacity-light: rgba(0, 0, 0, 0.1);
22
- --background-opacity-medium: rgba(0, 0, 0, 0.5);
23
- --background-opacity-dark: rgba(0, 0, 0, 0.8);
24
- }
25
-
26
- * {
27
- font: 14px monospace;
28
- }
29
-
30
- html {
31
- color: var(--color-foreground);
32
- background-color: var(--color-background);
33
- width: 100%;
34
- height: 100%;
35
- overflow: hidden;
36
- }
37
-
38
- body,
39
- #root {
40
- width: 100%;
41
- height: 100%;
42
- margin: 0;
43
- padding: 0;
44
- }
@@ -1,90 +0,0 @@
1
- /* Box sizing rules */
2
- *,
3
- *::before,
4
- *::after {
5
- box-sizing: border-box;
6
- }
7
-
8
- /* Prevent font size inflation */
9
- html {
10
- -moz-text-size-adjust: none;
11
- -webkit-text-size-adjust: none;
12
- text-size-adjust: none;
13
- }
14
-
15
- /* Remove default margin in favour of better control in authored CSS */
16
- body,
17
- h1,
18
- h2,
19
- h3,
20
- h4,
21
- p,
22
- figure,
23
- blockquote,
24
- dl,
25
- dd {
26
- margin-block-end: 0;
27
- }
28
-
29
- /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
30
- ul[role='list'],
31
- ol[role='list'] {
32
- list-style: none;
33
- }
34
-
35
- /* Set core body defaults */
36
- body {
37
- min-height: 100vh;
38
- line-height: 1.5;
39
- }
40
-
41
- /* Set shorter line heights on headings and interactive elements */
42
- h1,
43
- h2,
44
- h3,
45
- h4,
46
- button,
47
- input,
48
- label {
49
- line-height: 1.1;
50
- }
51
-
52
- /* Balance text wrapping on headings */
53
- h1,
54
- h2,
55
- h3,
56
- h4 {
57
- text-wrap: balance;
58
- }
59
-
60
- /* A elements that don't have a class get default styles */
61
- a:not([class]) {
62
- text-decoration-skip-ink: auto;
63
- color: currentColor;
64
- }
65
-
66
- /* Make images easier to work with */
67
- img,
68
- picture {
69
- max-width: 100%;
70
- display: block;
71
- }
72
-
73
- /* Inherit fonts for inputs and buttons */
74
- input,
75
- button,
76
- textarea,
77
- select {
78
- font-family: inherit;
79
- font-size: inherit;
80
- }
81
-
82
- /* Make sure textareas without a rows attribute are not tiny */
83
- textarea:not([rows]) {
84
- min-height: 10em;
85
- }
86
-
87
- /* Anything that has been anchored to should have extra scroll margin */
88
- :target {
89
- scroll-margin-block: 5ex;
90
- }