@meonode/ui 0.1.94 → 0.1.95

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,12 +30,10 @@ type ComponentProps<TProps> = TProps extends undefined ? Partial<{
30
30
  * @example
31
31
  * ```ts
32
32
  * const Title = Component((props) => {
33
- * return H1({
34
- * children: props.children,
35
- * })
33
+ * return H1(props.children)
36
34
  * })
37
35
  *
38
- * <Title theme={{ color: 'red' }}>Hello</Title>
36
+ * Title({ children: 'Hello' })
39
37
  * ```
40
38
  */
41
39
  export declare function Component<TProps extends undefined>(component: <TActualProps extends TProps = TProps>(props: ComponentProps<TActualProps>) => ComponentNode): <TActualProps extends TProps = TProps>(props?: ComponentProps<TActualProps>) => ReactNode | Promise<Awaited<ReactNode>>;
@@ -58,7 +56,7 @@ export declare function Component<TProps extends undefined>(component: <TActualP
58
56
  * })
59
57
  * })
60
58
  *
61
- * <Button label="Click me" onClick={() => alert('clicked')} />
59
+ * Button({ label: 'Click me', onClick: () => alert('clicked')})
62
60
  * ```
63
61
  */
64
62
  export declare function Component<TProps extends Record<string, any>>(component: <TActualProps extends TProps = TProps>(props: ComponentProps<TActualProps>) => ComponentNode): <TActualProps extends TProps = TProps>(props: ComponentProps<TActualProps>) => ReactNode | Promise<Awaited<ReactNode>>;
@@ -1 +1 @@
1
- {"version":3,"file":"component.hoc.d.ts","sourceRoot":"","sources":["../../src/hoc/component.hoc.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAClG,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE1D;;;;;;;;;;;;;GAaG;AACH,KAAK,cAAc,CAAC,MAAM,IAAI,MAAM,SAAS,SAAS,GAClD,OAAO,CAAC;IACN,QAAQ,EAAE,WAAW,GAAG,WAAW,EAAE,CAAA;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19,12 +19,10 @@
19
19
  * @example
20
20
  * ```ts
21
21
  * const Title = Component((props) => {
22
- * return H1({
23
- * children: props.children,
24
- * })
22
+ * return H1(props.children)
25
23
  * })
26
24
  *
27
- * <Title theme={{ color: 'red' }}>Hello</Title>
25
+ * Title({ children: 'Hello' })
28
26
  * ```
29
27
  *//**
30
28
  * Creates a component from a function that uses a defined props interface.
@@ -45,7 +43,7 @@
45
43
  * })
46
44
  * })
47
45
  *
48
- * <Button label="Click me" onClick={() => alert('clicked')} />
46
+ * Button({ label: 'Click me', onClick: () => alert('clicked')})
49
47
  * ```
50
48
  *//**
51
49
  * Internal implementation of the `Component` HOC.
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.94",
4
+ "version": "0.1.95",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",