@exxatdesignux/ui 0.5.2 → 0.5.3
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 +9 -0
- package/consumer-extras/cursor-rules/exxat-data-tables.mdc +8 -6
- package/consumer-extras/cursor-rules/exxat-ds-agents.mdc +2 -1
- package/consumer-extras/cursor-rules/exxat-hub-supported-views.mdc +54 -0
- package/consumer-extras/cursor-rules/exxat-nav-single-active.mdc +31 -0
- package/consumer-extras/cursor-skills/exxat-ds-skill/SKILL.md +8 -3
- package/consumer-extras/cursor-skills/exxat-ds-skill/references/data-table-pattern.md +15 -5
- package/consumer-extras/cursor-skills/exxat-token-economy/SKILL.md +11 -4
- package/consumer-extras/handbook/HANDBOOK.md +1 -1
- package/consumer-extras/handbook/reference-implementations.md +2 -2
- package/consumer-extras/patterns/data-views-pattern.md +6 -0
- package/consumer-extras/patterns/hub-supported-views-pattern.md +53 -0
- package/dist/components/data-table/index.js +13 -9
- package/dist/components/data-table/index.js.map +1 -1
- package/dist/components/data-table/pagination.js +13 -9
- package/dist/components/data-table/pagination.js.map +1 -1
- package/dist/components/data-views/hub-table.d.ts +8 -4
- package/dist/components/data-views/hub-table.js +25 -10
- package/dist/components/data-views/hub-table.js.map +1 -1
- package/dist/components/data-views/index.d.ts +1 -1
- package/dist/components/data-views/index.js +25 -10
- package/dist/components/data-views/index.js.map +1 -1
- package/dist/components/data-views/list-page-connected-view-body.d.ts +1 -1
- package/dist/components/data-views/list-page-connected-view-body.js +1 -0
- package/dist/components/data-views/list-page-connected-view-body.js.map +1 -1
- package/dist/components/table-properties/drawer-button.js +1 -0
- package/dist/components/table-properties/drawer-button.js.map +1 -1
- package/dist/components/table-properties/drawer.js +1 -0
- package/dist/components/table-properties/drawer.js.map +1 -1
- package/dist/components/table-properties/index.d.ts +1 -1
- package/dist/components/table-properties/index.js +1 -0
- package/dist/components/table-properties/index.js.map +1 -1
- package/dist/components/templates/index.d.ts +1 -1
- package/dist/components/templates/index.js +12 -2
- package/dist/components/templates/index.js.map +1 -1
- package/dist/components/templates/list-page.d.ts +4 -2
- package/dist/components/templates/list-page.js +12 -2
- package/dist/components/templates/list-page.js.map +1 -1
- package/dist/{data-list-view-registry-CyBoBML4.d.ts → data-list-view-registry-BstmlfQ3.d.ts} +16 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +135 -13
- package/dist/index.js.map +1 -1
- package/dist/lib/data-list-view-registry.d.ts +1 -1
- package/dist/lib/data-list-view-registry.js +17 -1
- package/dist/lib/data-list-view-registry.js.map +1 -1
- package/dist/lib/data-list-view-surface.d.ts +1 -1
- package/dist/lib/data-list-view-surface.js +1 -0
- package/dist/lib/data-list-view-surface.js.map +1 -1
- package/dist/lib/list-page-table-properties.d.ts +1 -1
- package/dist/lib/list-page-table-properties.js +1 -0
- package/dist/lib/list-page-table-properties.js.map +1 -1
- package/dist/lib/nav-active.d.ts +38 -0
- package/dist/lib/nav-active.js +104 -0
- package/dist/lib/nav-active.js.map +1 -0
- package/package.json +1 -1
- package/src/components/data-table/index.tsx +25 -17
- package/src/components/data-views/hub-table.tsx +9 -3
- package/src/components/templates/list-page.tsx +9 -3
- package/src/index.ts +1 -0
- package/src/lib/data-list-view-registry.ts +31 -0
- package/src/lib/nav-active.ts +162 -0
- package/template/.claude/skills/exxat-ds-skill/SKILL.md +2 -1
- package/template/AGENTS.md +16 -1
- package/template/components/columns-client.tsx +3 -2
- package/template/components/columns-showcase.tsx +22 -18
- package/template/components/exxat-product-logo.tsx +1 -1
- package/template/components/library-table.tsx +62 -23
- package/template/components/new-library-item-form.tsx +0 -7
- package/template/components/product-wordmark.tsx +1 -1
- package/template/components/sidebar/app-sidebar.tsx +14 -106
- package/template/components/sidebar/secondary-nav.tsx +22 -4
- package/template/components/tokens-hub-auxiliary-views.tsx +301 -0
- package/template/components/tokens-themes-client.tsx +44 -16
- package/template/docs/HANDBOOK.md +1 -1
- package/template/docs/data-views-pattern.md +6 -0
- package/template/docs/glossary.md +2 -1
- package/template/docs/hub-supported-views-pattern.md +53 -0
- package/template/docs/reference-implementations.md +2 -2
- package/template/lib/full-hub-supported-views.ts +8 -0
- package/template/lib/library-supported-views.ts +5 -12
- package/template/package.json +1 -0
- package/tokens/hooks-index.json +2 -2
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { DataListViewType } from '../../lib/data-list-view.js';
|
|
4
4
|
import { OpenTablePropertiesHandle } from '../../lib/list-page-table-properties.js';
|
|
5
|
-
import '../../data-list-view-registry-
|
|
5
|
+
import '../../data-list-view-registry-BstmlfQ3.js';
|
|
6
6
|
|
|
7
7
|
type ViewType = DataListViewType;
|
|
8
8
|
/** Same labels/icons as Properties drawer `SelectionTileGrid` — single source in `DATA_LIST_VIEW_TILES`. */
|
|
@@ -70,7 +70,9 @@ interface ListPageTemplateProps {
|
|
|
70
70
|
/**
|
|
71
71
|
* Subset of view types the hub actually implements (e.g. List hub omits Dashboard/Folder).
|
|
72
72
|
* When set, the Add view menu and ⌘1–9 shortcuts are filtered so users cannot add a view the
|
|
73
|
-
* hub cannot render.
|
|
73
|
+
* hub cannot render. When omitted, defaults to {@link FULL_HUB_SUPPORTED_VIEWS}
|
|
74
|
+
* (table, list, board, dashboard). Pass an explicit allowlist for specialized hubs
|
|
75
|
+
* (e.g. tokens table-only, library with folder/calendar).
|
|
74
76
|
*
|
|
75
77
|
* Pair with `TablePropertiesDrawerButton.supportedViewTypes` to keep Properties consistent.
|
|
76
78
|
*/
|
|
@@ -1963,6 +1963,16 @@ new Map(
|
|
|
1963
1963
|
DEFINITIONS.map((d) => [d.value, d])
|
|
1964
1964
|
);
|
|
1965
1965
|
var DATA_LIST_VIEW_REGISTRY = DEFINITIONS;
|
|
1966
|
+
var FULL_HUB_SUPPORTED_VIEWS = [
|
|
1967
|
+
"table",
|
|
1968
|
+
"list",
|
|
1969
|
+
"board",
|
|
1970
|
+
"dashboard",
|
|
1971
|
+
"folder",
|
|
1972
|
+
"panel",
|
|
1973
|
+
"tree-panel"
|
|
1974
|
+
];
|
|
1975
|
+
DATA_LIST_VIEW_REGISTRY.map((d) => d.value);
|
|
1966
1976
|
var DATA_LIST_SURFACE_VIEW_TYPES = new Set(
|
|
1967
1977
|
DATA_LIST_VIEW_REGISTRY.map((d) => d.value)
|
|
1968
1978
|
);
|
|
@@ -2048,8 +2058,8 @@ function ListPageTemplate({
|
|
|
2048
2058
|
supportedViewTypes
|
|
2049
2059
|
}) {
|
|
2050
2060
|
const addableViewTypes = React12.useMemo(() => {
|
|
2051
|
-
|
|
2052
|
-
const allowed = new Set(
|
|
2061
|
+
const allowlist = supportedViewTypes && supportedViewTypes.length > 0 ? supportedViewTypes : FULL_HUB_SUPPORTED_VIEWS;
|
|
2062
|
+
const allowed = new Set(allowlist);
|
|
2053
2063
|
return VIEW_TYPES.filter((v) => allowed.has(v.type));
|
|
2054
2064
|
}, [supportedViewTypes]);
|
|
2055
2065
|
const controlled = tabsProp !== void 0 && onTabsChange !== void 0 && activeTabIdProp !== void 0 && onActiveTabChange !== void 0;
|