@meonode/ui 0.1.92 → 0.1.93

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.
@@ -6,7 +6,10 @@ import type { ReactNode } from 'react';
6
6
  * - `props`: Optional partial props (excluding `children`) to override or extend the main props.
7
7
  * - `children`: Optional child nodes to be rendered within the component.
8
8
  */
9
- type ComponentProps<P> = P & {
9
+ type ComponentProps<P> = P extends undefined ? {
10
+ props?: Partial<Omit<P, 'children'>>;
11
+ children?: NodeElement;
12
+ } : P & {
10
13
  props?: Partial<Omit<P, 'children'>>;
11
14
  children?: NodeElement;
12
15
  };
@@ -33,6 +36,6 @@ type ComponentProps<P> = P & {
33
36
  * ```
34
37
  */
35
38
  export declare function Component<P extends undefined>(component: (props: ComponentProps<P>) => ComponentNode): (props?: Partial<ComponentProps<P>>) => ReactNode;
36
- export declare function Component<P>(component: (props: ComponentProps<P>) => ComponentNode): (props: ComponentProps<P>) => ReactNode;
39
+ export declare function Component<P extends Record<string, any>>(component: (props: ComponentProps<P>) => ComponentNode): (props: ComponentProps<P>) => ReactNode;
37
40
  export {};
38
41
  //# sourceMappingURL=component.hoc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.hoc.d.ts","sourceRoot":"","sources":["../../src/hoc/component.hoc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAS,MAAM,gBAAgB,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;;;;GAKG;AACH,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAA;IACpC,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,wBAAgB,SAAS,CAAC,CAAC,SAAS,SAAS,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CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,aAAa,GAAG,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meonode/ui",
3
3
  "description": "A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.",
4
- "version": "0.1.92",
4
+ "version": "0.1.93",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",