notix 0.1.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/LICENSE +7 -0
- package/README.md +22 -0
- package/dist/core/effect.d.ts +6 -0
- package/dist/core/state.d.ts +6 -0
- package/dist/css/animate.d.ts +8 -0
- package/dist/css/style.d.ts +4 -0
- package/dist/dom/dom.d.ts +5 -0
- package/dist/dom/jsx-dev-runtime.cjs +1 -0
- package/dist/dom/jsx-dev-runtime.d.ts +3 -0
- package/dist/dom/jsx-dev-runtime.js +7 -0
- package/dist/dom/jsx-runtime.cjs +1 -0
- package/dist/dom/jsx-runtime.d.ts +12 -0
- package/dist/dom/jsx-runtime.js +16 -0
- package/dist/dom/mount.d.ts +4 -0
- package/dist/dom/props.d.ts +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +191 -0
- package/dist/types.d.ts +6 -0
- package/package.json +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2026 Milenium
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<p align="center"><img src="./branding/notixwordmark.svg" width="100" alt="Notix logo"></p>
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Notix is a UI framework for the web that contains many of the basic benefits of a reactive framework, while keeping the simplicity and familiarity of Vanilla HTML/CSS/JS.
|
|
6
|
+
|
|
7
|
+
- **Direct DOM updates:** What you see is what you get. Notix directly uses the HTML DOM tree, and doesn't rerender entire elements by default. Therefore, you can interact with the elements themselves.
|
|
8
|
+
- **CSS friendly:** Notix is built to work great with CSS. Animations and variables are very simple to implement.
|
|
9
|
+
- **TypeScript friendly:** Notix is written in TypeScript and works great when using it.
|
|
10
|
+
- **Small footprint:** Notix is incredibly lightweight and has a small bundle size, making it great for small-to-medium projects.
|
|
11
|
+
|
|
12
|
+
## Docs
|
|
13
|
+
|
|
14
|
+
I know you're excited to start coding, and the good news is..._that won't take long!_ Docs for Notix are underway and will exist quite soon!
|
|
15
|
+
|
|
16
|
+
## Contributing
|
|
17
|
+
|
|
18
|
+
Feel free to submit Issues or Pull Requests! This project is in its earliest of early stages and any feedback does wonders.
|
|
19
|
+
|
|
20
|
+
## License
|
|
21
|
+
|
|
22
|
+
Notix is [MIT licensed](./LICENSE).
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface AnimateOptions {
|
|
2
|
+
delay?: string | number;
|
|
3
|
+
easing?: string;
|
|
4
|
+
fillMode?: string;
|
|
5
|
+
direction?: string;
|
|
6
|
+
iterationCount?: string | number;
|
|
7
|
+
}
|
|
8
|
+
export declare function animate(element: Element, name: string, duration: string | number, options?: AnimateOptions): Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function toKebab(key: string): string;
|
|
2
|
+
export declare function setStyleProp(element: HTMLElement | SVGElement, key: string, val: unknown): void;
|
|
3
|
+
export declare function setStyle(element: HTMLElement | SVGElement, styleVal: unknown): void;
|
|
4
|
+
export declare function setClass(element: Element, val: unknown): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./jsx-runtime.cjs");function t(t,n,r,...i){return e.jsx(t,n,r)}exports.Fragment=e.Fragment,exports.jsxDEV=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e,t,n){return{tag:e,props:t,key:n}}function t(t,n,r){return e(t,n,r)}function n(e){return e.children}exports.Fragment=n,exports.jsx=e,exports.jsxs=t;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NotixElement } from "../types";
|
|
2
|
+
export declare function jsx(tag: any, props: any, key?: string): NotixElement;
|
|
3
|
+
export declare function jsxs(tag: any, props: any, key?: string): NotixElement;
|
|
4
|
+
export declare function Fragment(props: {
|
|
5
|
+
children?: any;
|
|
6
|
+
}): any;
|
|
7
|
+
export declare namespace JSX {
|
|
8
|
+
type Element = NotixElement;
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
[elemName: string]: any;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/dom/jsx-runtime.ts
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
return {
|
|
4
|
+
tag: e,
|
|
5
|
+
props: t,
|
|
6
|
+
key: n
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function t(t, n, r) {
|
|
10
|
+
return e(t, n, r);
|
|
11
|
+
}
|
|
12
|
+
function n(e) {
|
|
13
|
+
return e.children;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as Fragment, e as jsx, t as jsxs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setProp(element: Element, key: string, val: unknown): void;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./dom/jsx-runtime.cjs");var t=null;function n(e){let n=()=>{n.cleanups.forEach(e=>e()),n.cleanups.clear();let r=t;t=n;try{return e()}finally{t=r}};return n.cleanups=new Set,n(),n}function r(e){let n=e,r=new Set,i=new Map,a=function(e){if(arguments.length===0){if(t){r.add(t);let e=t;t.cleanups.add(()=>{r.delete(e)})}return n}n!==e&&(n=e,Array.from(r).forEach(e=>e()),i.get(`change`)?.forEach(e=>e(n)))};return a.on=function(e,t){i.has(e)||i.set(e,new Set),i.get(e).add(t)},a}function i(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function a(e,t,n){let r=e.style;if(!r)return;let a=n==null||n===``?``:String(n);t.startsWith(`--`)?r.setProperty(t,a):r.setProperty(i(t),a)}function o(e,t){if(typeof t==`string`){e.setAttribute(`style`,t);return}typeof t==`object`&&t&&Object.entries(t).forEach(([t,r])=>{typeof r==`function`?n(()=>{a(e,t,r())}):a(e,t,r)})}function s(e,t){let n=``;n=Array.isArray(t)?t.filter(Boolean).join(` `):typeof t==`object`&&t?Object.entries(t).filter(([,e])=>!!e).map(([e])=>e).join(` `):t?String(t):``,n?e.setAttribute(`class`,n):e.removeAttribute(`class`)}function c(e,t,n){if(t===`class`||t===`className`){s(e,n);return}if(t===`style`){o(e,n);return}if(t===`ref`){typeof n==`function`?n(e):n&&typeof n==`object`&&`current`in n&&(n.current=e);return}if(!(e instanceof SVGElement)&&t in e)try{e[t]=n??``;return}catch{}n===!1||n==null?e.removeAttribute(t):e.setAttribute(t,String(n))}var l=typeof document<`u`?document:null;function u(e){l=e}var d=`http://www.w3.org/2000/svg`,f=new Set([`svg`,`circle`,`path`,`g`,`line`,`rect`,`ellipse`,`polygon`,`polyline`,`text`,`tspan`,`defs`,`linearGradient`,`radialGradient`,`stop`,`clipPath`,`mask`,`pattern`,`image`,`use`,`symbol`,`animate`,`filter`,`foreignObject`]);function p(e,t){return!!(f.has(e)||t?.namespaceURI===d)}function m(e){return typeof e==`object`&&!!e&&`tag`in e&&`props`in e}function h(e,t,r=null){if(e==null||typeof e==`boolean`)return[];if(Array.isArray(e))return e.flatMap(e=>h(e,t,r));if(typeof e==`function`){let i=l.createComment(`$`),a=l.createComment(`/$`);return t.insertBefore(i,r),t.insertBefore(a,r),n(()=>{if(!i.parentNode)return;let n=i.nextSibling;for(;n&&n!==a;){let e=n.nextSibling;t.removeChild(n),n=e}h(e(),t,a)}),[i,a]}if(m(e)){if(typeof e.tag==`function`)return h(e.tag(e.props),t,r);let i=e.tag,a=e.props??{},o=p(i,t)?l.createElementNS(d,i):l.createElement(i);return Object.entries(a).forEach(([e,t])=>{if(e!==`children`)if(e.startsWith(`on`)&&e.length>2&&typeof t==`function`){let n=e.slice(2).toLowerCase();o.addEventListener(n,t)}else typeof t==`function`&&e!==`ref`?n(()=>{c(o,e,t())}):c(o,e,t)}),`children`in a&&h(a.children,o),t.insertBefore(o,r),[o]}let i=l.createTextNode(String(e));return t.insertBefore(i,r),[i]}typeof EventTarget<`u`&&!(`on`in EventTarget.prototype)&&Object.defineProperty(EventTarget.prototype,"on",{value:function(e,t,n){return this.addEventListener(e,t,n),this},configurable:!0,writable:!0});var g=null;function _(e){g=e,u(e.ownerDocument||document)}function v(e){g||_(document.body),h(e,g)}function y(e,t,n,r={}){return new Promise(i=>{let a=e,o=typeof n==`number`?`${n}ms`:n,s=r.delay===void 0?``:typeof r.delay==`number`?`${r.delay}ms`:r.delay;a.style.animationName=`none`,a.offsetWidth,a.style.animationName=t,a.style.animationDuration=o,a.style.animationTimingFunction=r.easing||``,a.style.animationDelay=s,a.style.animationDirection=r.direction||``,a.style.animationFillMode=r.fillMode||`both`,a.style.animationIterationCount=r.iterationCount===void 0?``:String(r.iterationCount);function c(n){let r=n;r.target===e&&r.animationName===t&&(l(),i())}function l(){e.removeEventListener(`animationend`,c),e.removeEventListener(`animationcancel`,c)}e.addEventListener(`animationend`,c),e.addEventListener(`animationcancel`,c)})}if(typeof Element<`u`){let e=Element.prototype.animate;Element.prototype.animate=function(t,n,r){return typeof t==`string`?y(this,t,n,r):e.call(this,t,n)}}exports.Fragment=e.Fragment,exports.animate=y,exports.app=v,exports.bind=_,exports.effect=n,exports.setClass=s,exports.setStyle=o,exports.state=r;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { state } from "./core/state";
|
|
2
|
+
import { effect } from "./core/effect";
|
|
3
|
+
import { bind, app } from "./dom/dom";
|
|
4
|
+
import { animate } from "./css/animate";
|
|
5
|
+
import { setStyle, setClass } from "./css/style";
|
|
6
|
+
import "./dom/dom";
|
|
7
|
+
import "./css/animate";
|
|
8
|
+
import { Fragment } from "./dom/jsx-runtime";
|
|
9
|
+
export { bind, app, effect, state, animate, Fragment, setStyle, setClass };
|
|
10
|
+
export type { StateNode } from "./core/state";
|
|
11
|
+
export type { AnimateOptions } from "./css/animate";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { Fragment as e } from "./dom/jsx-runtime.js";
|
|
2
|
+
//#region src/core/effect.ts
|
|
3
|
+
var t = null;
|
|
4
|
+
function n(e) {
|
|
5
|
+
let n = () => {
|
|
6
|
+
n.cleanups.forEach((e) => e()), n.cleanups.clear();
|
|
7
|
+
let r = t;
|
|
8
|
+
t = n;
|
|
9
|
+
try {
|
|
10
|
+
return e();
|
|
11
|
+
} finally {
|
|
12
|
+
t = r;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
return n.cleanups = /* @__PURE__ */ new Set(), n(), n;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/core/state.ts
|
|
19
|
+
function r(e) {
|
|
20
|
+
let n = e, r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = function(e) {
|
|
21
|
+
if (arguments.length === 0) {
|
|
22
|
+
if (t) {
|
|
23
|
+
r.add(t);
|
|
24
|
+
let e = t;
|
|
25
|
+
t.cleanups.add(() => {
|
|
26
|
+
r.delete(e);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
n !== e && (n = e, Array.from(r).forEach((e) => e()), i.get("change")?.forEach((e) => e(n)));
|
|
32
|
+
};
|
|
33
|
+
return a.on = function(e, t) {
|
|
34
|
+
i.has(e) || i.set(e, /* @__PURE__ */ new Set()), i.get(e).add(t);
|
|
35
|
+
}, a;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/css/style.ts
|
|
39
|
+
function i(e) {
|
|
40
|
+
return e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
|
|
41
|
+
}
|
|
42
|
+
function a(e, t, n) {
|
|
43
|
+
let r = e.style;
|
|
44
|
+
if (!r) return;
|
|
45
|
+
let a = n == null || n === "" ? "" : String(n);
|
|
46
|
+
t.startsWith("--") ? r.setProperty(t, a) : r.setProperty(i(t), a);
|
|
47
|
+
}
|
|
48
|
+
function o(e, t) {
|
|
49
|
+
if (typeof t == "string") {
|
|
50
|
+
e.setAttribute("style", t);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
typeof t == "object" && t && Object.entries(t).forEach(([t, r]) => {
|
|
54
|
+
typeof r == "function" ? n(() => {
|
|
55
|
+
a(e, t, r());
|
|
56
|
+
}) : a(e, t, r);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function s(e, t) {
|
|
60
|
+
let n = "";
|
|
61
|
+
n = Array.isArray(t) ? t.filter(Boolean).join(" ") : typeof t == "object" && t ? Object.entries(t).filter(([, e]) => !!e).map(([e]) => e).join(" ") : t ? String(t) : "", n ? e.setAttribute("class", n) : e.removeAttribute("class");
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/dom/props.ts
|
|
65
|
+
function c(e, t, n) {
|
|
66
|
+
if (t === "class" || t === "className") {
|
|
67
|
+
s(e, n);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (t === "style") {
|
|
71
|
+
o(e, n);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (t === "ref") {
|
|
75
|
+
typeof n == "function" ? n(e) : n && typeof n == "object" && "current" in n && (n.current = e);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (!(e instanceof SVGElement) && t in e) try {
|
|
79
|
+
e[t] = n ?? "";
|
|
80
|
+
return;
|
|
81
|
+
} catch {}
|
|
82
|
+
n === !1 || n == null ? e.removeAttribute(t) : e.setAttribute(t, String(n));
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/dom/mount.ts
|
|
86
|
+
var l = typeof document < "u" ? document : null;
|
|
87
|
+
function u(e) {
|
|
88
|
+
l = e;
|
|
89
|
+
}
|
|
90
|
+
var d = "http://www.w3.org/2000/svg", f = new Set([
|
|
91
|
+
"svg",
|
|
92
|
+
"circle",
|
|
93
|
+
"path",
|
|
94
|
+
"g",
|
|
95
|
+
"line",
|
|
96
|
+
"rect",
|
|
97
|
+
"ellipse",
|
|
98
|
+
"polygon",
|
|
99
|
+
"polyline",
|
|
100
|
+
"text",
|
|
101
|
+
"tspan",
|
|
102
|
+
"defs",
|
|
103
|
+
"linearGradient",
|
|
104
|
+
"radialGradient",
|
|
105
|
+
"stop",
|
|
106
|
+
"clipPath",
|
|
107
|
+
"mask",
|
|
108
|
+
"pattern",
|
|
109
|
+
"image",
|
|
110
|
+
"use",
|
|
111
|
+
"symbol",
|
|
112
|
+
"animate",
|
|
113
|
+
"filter",
|
|
114
|
+
"foreignObject"
|
|
115
|
+
]);
|
|
116
|
+
function p(e, t) {
|
|
117
|
+
return !!(f.has(e) || t?.namespaceURI === d);
|
|
118
|
+
}
|
|
119
|
+
function m(e) {
|
|
120
|
+
return typeof e == "object" && !!e && "tag" in e && "props" in e;
|
|
121
|
+
}
|
|
122
|
+
function h(e, t, r = null) {
|
|
123
|
+
if (e == null || typeof e == "boolean") return [];
|
|
124
|
+
if (Array.isArray(e)) return e.flatMap((e) => h(e, t, r));
|
|
125
|
+
if (typeof e == "function") {
|
|
126
|
+
let i = l.createComment("$"), a = l.createComment("/$");
|
|
127
|
+
return t.insertBefore(i, r), t.insertBefore(a, r), n(() => {
|
|
128
|
+
if (!i.parentNode) return;
|
|
129
|
+
let n = i.nextSibling;
|
|
130
|
+
for (; n && n !== a;) {
|
|
131
|
+
let e = n.nextSibling;
|
|
132
|
+
t.removeChild(n), n = e;
|
|
133
|
+
}
|
|
134
|
+
h(e(), t, a);
|
|
135
|
+
}), [i, a];
|
|
136
|
+
}
|
|
137
|
+
if (m(e)) {
|
|
138
|
+
if (typeof e.tag == "function") return h(e.tag(e.props), t, r);
|
|
139
|
+
let i = e.tag, a = e.props ?? {}, o = p(i, t) ? l.createElementNS(d, i) : l.createElement(i);
|
|
140
|
+
return Object.entries(a).forEach(([e, t]) => {
|
|
141
|
+
if (e !== "children") if (e.startsWith("on") && e.length > 2 && typeof t == "function") {
|
|
142
|
+
let n = e.slice(2).toLowerCase();
|
|
143
|
+
o.addEventListener(n, t);
|
|
144
|
+
} else typeof t == "function" && e !== "ref" ? n(() => {
|
|
145
|
+
c(o, e, t());
|
|
146
|
+
}) : c(o, e, t);
|
|
147
|
+
}), "children" in a && h(a.children, o), t.insertBefore(o, r), [o];
|
|
148
|
+
}
|
|
149
|
+
let i = l.createTextNode(String(e));
|
|
150
|
+
return t.insertBefore(i, r), [i];
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/dom/dom.ts
|
|
154
|
+
typeof EventTarget < "u" && !("on" in EventTarget.prototype) && Object.defineProperty(EventTarget.prototype, "on", {
|
|
155
|
+
value: function(e, t, n) {
|
|
156
|
+
return this.addEventListener(e, t, n), this;
|
|
157
|
+
},
|
|
158
|
+
configurable: !0,
|
|
159
|
+
writable: !0
|
|
160
|
+
});
|
|
161
|
+
var g = null;
|
|
162
|
+
function _(e) {
|
|
163
|
+
g = e, u(e.ownerDocument || document);
|
|
164
|
+
}
|
|
165
|
+
function v(e) {
|
|
166
|
+
g || _(document.body), h(e, g);
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region src/css/animate.ts
|
|
170
|
+
function y(e, t, n, r = {}) {
|
|
171
|
+
return new Promise((i) => {
|
|
172
|
+
let a = e, o = typeof n == "number" ? `${n}ms` : n, s = r.delay === void 0 ? "" : typeof r.delay == "number" ? `${r.delay}ms` : r.delay;
|
|
173
|
+
a.style.animationName = "none", a.offsetWidth, a.style.animationName = t, a.style.animationDuration = o, a.style.animationTimingFunction = r.easing || "", a.style.animationDelay = s, a.style.animationDirection = r.direction || "", a.style.animationFillMode = r.fillMode || "both", a.style.animationIterationCount = r.iterationCount === void 0 ? "" : String(r.iterationCount);
|
|
174
|
+
function c(n) {
|
|
175
|
+
let r = n;
|
|
176
|
+
r.target === e && r.animationName === t && (l(), i());
|
|
177
|
+
}
|
|
178
|
+
function l() {
|
|
179
|
+
e.removeEventListener("animationend", c), e.removeEventListener("animationcancel", c);
|
|
180
|
+
}
|
|
181
|
+
e.addEventListener("animationend", c), e.addEventListener("animationcancel", c);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
if (typeof Element < "u") {
|
|
185
|
+
let e = Element.prototype.animate;
|
|
186
|
+
Element.prototype.animate = function(t, n, r) {
|
|
187
|
+
return typeof t == "string" ? y(this, t, n, r) : e.call(this, t, n);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
export { e as Fragment, y as animate, v as app, _ as bind, n as effect, s as setClass, o as setStyle, r as state };
|
package/dist/types.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "notix",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Minimal and vanilla-like UI framework for the web",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./jsx-runtime": {
|
|
16
|
+
"types": "./dist/dom/jsx-runtime.d.ts",
|
|
17
|
+
"import": "./dist/dom/jsx-runtime.js",
|
|
18
|
+
"default": "./dist/dom/jsx-runtime.js"
|
|
19
|
+
},
|
|
20
|
+
"./jsx-dev-runtime": {
|
|
21
|
+
"types": "./dist/dom/jsx-dev-runtime.d.ts",
|
|
22
|
+
"import": "./dist/dom/jsx-dev-runtime.js",
|
|
23
|
+
"default": "./dist/dom/jsx-dev-runtime.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"files": ["dist"],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"dev": "vite",
|
|
29
|
+
"build": "vite build && tsc --emitDeclarationOnly",
|
|
30
|
+
"test": "vitest",
|
|
31
|
+
"prepublishOnly": "npm run build"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"typescript": "^6.0.3",
|
|
35
|
+
"vite": "^8.0.16"
|
|
36
|
+
},
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"keywords": ["ui", "framework", "reactive", "jsx", "state"],
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "https://github.com/Paperboard-dev/notix"
|
|
43
|
+
}
|
|
44
|
+
}
|