@enyxs/wikex-components 0.11.3 → 0.11.9

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/README.md CHANGED
@@ -84,3 +84,32 @@ for data/search/pagination regression checks.
84
84
 
85
85
  Create tags from the toolbar dialog; unassigned tags persist in the table catalog.
86
86
  Editor textareas automatically fit their text. Header actions share an aligned row.
87
+
88
+
89
+ ## Product UI and shared controls
90
+
91
+ Import product UI from `@enyxs/wikex-components/products` and standalone
92
+ `ProductCard`, `Pagination`, `Breadcrumb` (with their prop types) from
93
+ `@enyxs/wikex-components/ui`. These are client entries; the product UI supplies
94
+ its own styled-components theme. Standalone controls use the host's Wikex theme.
95
+ Icons and the default product placeholder are bundled into the package.
96
+
97
+ ```tsx
98
+ import { ProductListing, ProductDetailView, ProductListingSkeleton } from '@enyxs/wikex-components/products';
99
+
100
+ <ProductListing products={items} />
101
+ <ProductDetailView product={detail} related={items} listingHref="/san-pham/" />
102
+ <ProductListingSkeleton language="vi" />
103
+ ```
104
+
105
+ Each list item supplies `href`; the host owns the API, categories, publication
106
+ rules, SEO and route generation. The detail view accepts introduction, contract
107
+ specifications, quality tables (including per-table columns, units, conditions
108
+ and source notes). Pass `language="en"`, `homeHref`, or `placeholderImage` to
109
+ customize navigation, labels and fallback imagery. Product listing renders and
110
+ paginates the supplied public list; category selection belongs to the host menu; no API is called by this UI.
111
+ Existing CMS demo blocks remain available through the root entry.
112
+
113
+ Run `npm run check`, `npm run build`, and `npm run test:products` before packaging.
114
+ ESM and CommonJS builds preserve client directives and matching styled-components
115
+ IDs for server rendering and hydration.