@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 +29 -0
- package/dist/index.js +124 -101
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +267 -96
- package/dist/index.mjs.map +1 -1
- package/dist/page-templates.mjs +152 -4
- package/dist/page-templates.mjs.map +1 -1
- package/dist/products.d.mts +65 -0
- package/dist/products.d.ts +65 -0
- package/dist/products.js +1326 -0
- package/dist/products.js.map +1 -0
- package/dist/products.mjs +1287 -0
- package/dist/products.mjs.map +1 -0
- package/dist/ui.d.mts +42 -0
- package/dist/ui.d.ts +42 -0
- package/dist/ui.js +368 -0
- package/dist/ui.js.map +1 -0
- package/dist/ui.mjs +330 -0
- package/dist/ui.mjs.map +1 -0
- package/package.json +14 -3
- package/dist/chunk-DLYDTRRJ.mjs +0 -158
- package/dist/chunk-DLYDTRRJ.mjs.map +0 -1
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.
|