@africode/core 5.0.7 → 5.0.8
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/AGENTS.md +2 -0
- package/COMPONENT_SCHEMA.json +1 -0
- package/README.md +2 -0
- package/components/index.js +5 -0
- package/dist/africode.js.map +2 -2
- package/dist/build-info.json +3 -3
- package/dist/components.js.map +2 -2
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -376,6 +376,8 @@ export async function screenTransaction(amount, nin) {
|
|
|
376
376
|
|
|
377
377
|
**Purpose**: Auto-generated JSON schema that whitelists safe components for AI generation. Prevents hallucinated HTML and enforces A2UI compliance.
|
|
378
378
|
|
|
379
|
+
**Package note**: `af-`, `af-ui-`, and `af-dashboard-` components are all part of the same unified `@africode/core` package, sharing theme, styles, registry, and versioning.
|
|
380
|
+
|
|
379
381
|
**Generated by**: `scripts/generate-component-schema.js`
|
|
380
382
|
|
|
381
383
|
```json
|
package/COMPONENT_SCHEMA.json
CHANGED
package/README.md
CHANGED
|
@@ -349,6 +349,8 @@ Then use them in your HTML:
|
|
|
349
349
|
|
|
350
350
|
AfriCode now includes a native UI kit with shadcn-inspired Web Components for rapid interface design. The Tailwind starter demonstrates the new UI kit using components like `af-ui-button`, `af-ui-card`, `af-ui-input`, `af-ui-badge`, and `af-ui-switch` in a Shadow DOM-friendly workflow.
|
|
351
351
|
|
|
352
|
+
All `af-`, `af-ui-`, and `af-dashboard-` components are distributed together in the same `@africode/core` package, so they share theme, styles, registry, and versioning.
|
|
353
|
+
|
|
352
354
|
The library is optimized for consistent spacing, elevation, and interactive states across theme-aware apps.
|
|
353
355
|
|
|
354
356
|
Use the Tailwind starter template for a ready-made UI experience:
|
package/components/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Component Registry (Islands Map)
|
|
3
3
|
*
|
|
4
|
+
* All AfriCode components, including the native UI kit (`af-ui-*`),
|
|
5
|
+
* dashboard widgets (`af-dashboard-*`), and website/system helpers,
|
|
6
|
+
* ship together from the same @africode/core package.
|
|
7
|
+
* This keeps theme, styles, registry, and versioning unified.
|
|
8
|
+
*
|
|
4
9
|
* Instead of statically importing all components (monolithic bundle),
|
|
5
10
|
* we export a map for lazy hydration.
|
|
6
11
|
*/
|