@meonode/ui 0.1.28 → 0.1.29
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/core.node.d.ts +4 -7
- package/dist/core.node.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/core.node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ComponentNode, NodeElement, NodeInstance, NodeProps
|
|
2
|
+
import type { ComponentNode, NodeElement, NodeInstance, NodeProps } from './node.type.js';
|
|
3
3
|
import { type Root as ReactDOMRoot } from 'react-dom/client';
|
|
4
4
|
/**
|
|
5
5
|
* Factory function to create a BaseNode instance.
|
|
@@ -30,9 +30,7 @@ export declare function Node<E extends NodeElement>(element: E, props?: Partial<
|
|
|
30
30
|
* })
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
export declare function Component<P extends Record<string, any
|
|
34
|
-
theme?: Theme;
|
|
35
|
-
}>(component: (props: P) => ComponentNode): (props?: any) => React.ReactNode;
|
|
33
|
+
export declare function Component<P extends Record<string, any>>(component: (props: P) => ComponentNode): (props?: any) => React.ReactNode;
|
|
36
34
|
/**
|
|
37
35
|
* Creates a portal wrapper component for rendering content outside the normal DOM hierarchy.
|
|
38
36
|
* Portals are useful for rendering modals, tooltips, and other overlays that need to break out
|
|
@@ -56,10 +54,9 @@ export declare function Component<P extends Record<string, any> & {
|
|
|
56
54
|
* })
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
|
-
export declare function Portal<P extends Record<string, any
|
|
60
|
-
theme?: Theme;
|
|
57
|
+
export declare function Portal<P extends Record<string, any>>(component: (props: P & {
|
|
61
58
|
portal: {
|
|
62
59
|
unmount: () => void;
|
|
63
60
|
};
|
|
64
|
-
}
|
|
61
|
+
}) => ComponentNode): (props?: any) => ReactDOMRoot | null;
|
|
65
62
|
//# sourceMappingURL=core.node.d.ts.map
|
package/dist/core.node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../src/core.node.ts"],"names":[],"mappings":"AACA,OAAO,KAAyG,MAAM,OAAO,CAAA;AAC7H,OAAO,KAAK,EAAE,aAAa,EAAyC,WAAW,EAAE,YAAY,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../src/core.node.ts"],"names":[],"mappings":"AACA,OAAO,KAAyG,MAAM,OAAO,CAAA;AAC7H,OAAO,KAAK,EAAE,aAAa,EAAyC,WAAW,EAAE,YAAY,EAAE,SAAS,EAAuB,MAAM,mBAAmB,CAAA;AAGxJ,OAAO,EAAc,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAuexE;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,GAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAM,GAAG,YAAY,CAAC,CAAC,CAAC,CAU1G;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,aAAa,IAiBrF,QAAO,GAAQ,qBACxB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClD,SAAS,EAAE,CACT,KAAK,EAAE,CAAC,GAAG;IACT,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;CAChC,KACE,aAAa,IAgBV,QAAO,GAAQ,yBAIxB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meonode/ui",
|
|
3
3
|
"description": "A structured approach to component composition with built-in theming, prop separation, and dynamic children handling.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.29",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/main.js",
|
|
7
7
|
"types": "./dist/main.d.ts",
|