@meonode/ui 0.1.29 → 0.1.30

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.
@@ -30,7 +30,9 @@ 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>>(component: (props: P) => ComponentNode): (props?: any) => React.ReactNode;
33
+ export declare function Component<P extends Record<string, any>>(component: (props: P & {
34
+ children?: NodeElement;
35
+ }) => ComponentNode): (props?: any) => React.ReactNode;
34
36
  /**
35
37
  * Creates a portal wrapper component for rendering content outside the normal DOM hierarchy.
36
38
  * Portals are useful for rendering modals, tooltips, and other overlays that need to break out
@@ -55,6 +57,7 @@ export declare function Component<P extends Record<string, any>>(component: (pro
55
57
  * ```
56
58
  */
57
59
  export declare function Portal<P extends Record<string, any>>(component: (props: P & {
60
+ children?: NodeElement;
58
61
  portal: {
59
62
  unmount: () => void;
60
63
  };
@@ -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,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,KAA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AAM,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.29",
4
+ "version": "0.1.30",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",