@meonode/ui 0.1.84 → 0.1.85

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.
Files changed (2) hide show
  1. package/README.md +7 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,9 +4,11 @@
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
  [![Bundle Size](https://img.shields.io/bundlephobia/minzip/@meonode/ui)](https://bundlephobia.com/package/@meonode/ui)
6
6
 
7
- **Build React UIs with Type-Safe Fluency**
8
- A structured approach to component composition with built-in theming, prop separation, and dynamic children handling.
7
+ ## **Build React UIs with Type-Safe Fluency Without JSX Syntax**
9
8
 
9
+ 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.
10
+
11
+ ### Quick Example
10
12
  ```tsx
11
13
  // Quick Start Example
12
14
  import { Component, Div, H1, Button } from '@meonode/ui';
@@ -42,6 +44,7 @@ const App = Component(() =>
42
44
  - 🎯 **Type-Safe Design** - Full TypeScript support with autocomplete for styles, props, and theme paths
43
45
  - 🎨 **Theme-Aware Styles** - Write styles directly in props with dynamic theme resolution
44
46
  - 🧩 **Component-First Architecture** - Compose UIs from structured nodes instead of JSX
47
+ - 🧩 **CSS-First Prop Styling** - Style components directly via props using CSS property names
45
48
  - 🌐 **Contextual Theming** - Theme values propagate automatically through nested components
46
49
  - ⚡ **Optimized Bundle** - Efficient core with tree-shaking support
47
50
  - 🔄 **Seamless React Integration** - Works with hooks, HOCs, and React 18+ features
@@ -150,19 +153,10 @@ const ProfileCard = Component<{ user: User }>(({ user }) =>
150
153
 
151
154
  ---
152
155
 
153
- ## Key Features
154
-
155
- | Feature | Description |
156
- |----------------------|-----------------------------------------------------------------------------|
157
- | **Smart Prop Merge** | CSS props merge with style objects; DOM props pass to underlying elements |
158
- | **Theme Resolution** | `theme.` references resolve through component hierarchy |
159
- | **Type Guards** | Autocomplete for CSS properties and theme paths with strict type checks |
160
- | **HOC Support** | Wrap existing components with `Component()` for theme integration |
161
- | **Dynamic Children** | Supports function-as-child pattern with automatic theme propagation |
156
+ ### 4. Passing Context Wrapper To Portal
162
157
 
163
- ---
158
+ Learn how to wrap a portal-rendered component with a context provider (like Redux Provider) using the `Portal` API from `@meonode/ui`. This lets portal components access context (such as the Redux store) even when rendered outside the main React tree.
164
159
 
165
- ## Passing Context Wrapper To Portal
166
160
  ```ts
167
161
  import { Provider, useSelector } from 'react-redux'
168
162
  import store from '/path/to/redux/store'
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.84",
4
+ "version": "0.1.85",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",