@exxatdesignux/ui 0.4.1 → 0.5.0
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/CHANGELOG.md +64 -0
- package/README.md +28 -11
- package/bin/init.mjs +42 -9
- package/bin/sync-extras.mjs +13 -5
- package/dist/components/data-views/hub-table.js +6 -5
- package/dist/components/data-views/hub-table.js.map +1 -1
- package/dist/components/data-views/index.js +6 -5
- package/dist/components/data-views/index.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/data-views/hub-table.tsx +13 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exxatdesignux/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Exxat shared design system (components, hooks, tokens). Monorepo setup: clone repo then pnpm bootstrap at workspace root — see github.com/ExxatDesign/Exxat-DS-Workspace README.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Exxat Design",
|
|
@@ -498,19 +498,23 @@ export function HubTable<TRow extends Record<string, unknown>>({
|
|
|
498
498
|
patchDisplay,
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
// Dev-time warning when a `supportedViewType` has no renderer
|
|
502
|
-
//
|
|
503
|
-
// `
|
|
501
|
+
// Dev-time warning when a `supportedViewType` has no renderer AND no centralized
|
|
502
|
+
// default is available. `data-table` always falls back to the built-in
|
|
503
|
+
// `defaultTableRenderer`; `list-with-toolbar` and `board-with-toolbar` fall back
|
|
504
|
+
// to the synthesised defaults below when the hub passes `renderListRow` /
|
|
505
|
+
// `renderBoardCard` (the happy path for most hubs). The warning only fires for
|
|
506
|
+
// exotic surfaces that genuinely need an explicit renderer entry.
|
|
504
507
|
if (process.env.NODE_ENV !== "production") {
|
|
505
508
|
for (const v of supportedViewTypes) {
|
|
506
509
|
const kind = getDataListViewRenderKind(v)
|
|
507
510
|
if (kind === "data-table") continue
|
|
508
|
-
if (renderers[kind]
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
)
|
|
513
|
-
|
|
511
|
+
if (renderers[kind] != null) continue
|
|
512
|
+
if (kind === "list-with-toolbar" && renderListRow != null) continue
|
|
513
|
+
if (kind === "board-with-toolbar" && renderBoardCard != null && boardGroups != null) continue
|
|
514
|
+
console.warn(
|
|
515
|
+
`[Exxat DS][HubTable: ${hubLabel}] Missing renderer for supported view "${v}" (${kind}). ` +
|
|
516
|
+
"Add a renderer entry, or remove the view from supportedViewTypes.",
|
|
517
|
+
)
|
|
514
518
|
}
|
|
515
519
|
}
|
|
516
520
|
|