@mt-gloss/ui 0.1.121 → 0.1.122
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/{COMMITS-8eHelQHO.js → COMMITS-C1VHNgld.js} +130 -128
- package/composites-panels.js +145 -142
- package/index.js +2 -2
- package/lib/composites/panels/chrome-v2/PanelHeader.d.ts +5 -1
- package/lib/composites/panels/chrome-v2/index.d.ts +6 -0
- package/lib/composites/panels/shells/CatalogAddShell.d.ts +10 -1
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { jsxs as f, jsx as a, Fragment as I } from "react/jsx-runtime";
|
|
|
4
4
|
import * as $ from "react";
|
|
5
5
|
import L, { useRef as M, useEffect as E, useState as A, useCallback as _, useId as Be, forwardRef as Ge, useMemo as ce, useLayoutEffect as Ne, createContext as He, useContext as We } from "react";
|
|
6
6
|
import { motion as B, useMotionValue as Ve, AnimatePresence as je, useDragControls as Ke } from "framer-motion";
|
|
7
|
-
import { u as Ue } from "./COMMITS-
|
|
8
|
-
import { N as kl, C as Sl, d as Dl, c as xl, P as Rl, g as Tl, S as Ml, f as Pl, i as Al, r as El, b as Fl, e as Ll, a as Il } from "./COMMITS-
|
|
7
|
+
import { u as Ue } from "./COMMITS-C1VHNgld.js";
|
|
8
|
+
import { N as kl, C as Sl, d as Dl, c as xl, P as Rl, g as Tl, S as Ml, f as Pl, i as Al, r as El, b as Fl, e as Ll, a as Il } from "./COMMITS-C1VHNgld.js";
|
|
9
9
|
import { createPortal as ke } from "react-dom";
|
|
10
10
|
import { B as Ye, U as de } from "./UIContext-Dm0GYHFT.js";
|
|
11
11
|
import { a as $l, u as zl } from "./UIContext-Dm0GYHFT.js";
|
|
@@ -2,5 +2,9 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
export interface PanelHeaderProps {
|
|
3
3
|
title?: string;
|
|
4
4
|
onClose: () => void;
|
|
5
|
+
/** Phase 11.6-CR-01: id wired by PanelChromeV2 via React.useId() so the dialog
|
|
6
|
+
* root's aria-labelledby points at the title span. WAI-ARIA 1.2 §3.15
|
|
7
|
+
* requires every role="dialog" to carry an accessible name. */
|
|
8
|
+
titleId?: string;
|
|
5
9
|
}
|
|
6
|
-
export declare function PanelHeader({ title, onClose }: PanelHeaderProps): ReactNode;
|
|
10
|
+
export declare function PanelHeader({ title, onClose, titleId }: PanelHeaderProps): ReactNode;
|
|
@@ -10,8 +10,14 @@
|
|
|
10
10
|
export { PanelChromeV2 } from './PanelChromeV2';
|
|
11
11
|
export type { PanelChromeV2Props } from './PanelChromeV2';
|
|
12
12
|
export { PanelHeader } from './PanelHeader';
|
|
13
|
+
export type { PanelHeaderProps } from './PanelHeader';
|
|
13
14
|
export { PanelStage } from './PanelStage';
|
|
15
|
+
export type { PanelStageProps } from './PanelStage';
|
|
14
16
|
export { PanelNavigation } from './PanelNavigation';
|
|
17
|
+
export type { PanelNavigationProps } from './PanelNavigation';
|
|
15
18
|
export { PanelBody } from './PanelBody';
|
|
19
|
+
export type { PanelBodyProps } from './PanelBody';
|
|
16
20
|
export { PanelFooter } from './PanelFooter';
|
|
21
|
+
export type { PanelFooterProps } from './PanelFooter';
|
|
17
22
|
export { PanelFooterMessage } from './PanelFooterMessage';
|
|
23
|
+
export type { PanelFooterMessageProps } from './PanelFooterMessage';
|
|
@@ -19,5 +19,14 @@ export interface CatalogAddShellProps extends PanelShellProps {
|
|
|
19
19
|
footerSlot?: ReactNode;
|
|
20
20
|
/** PHASE 17.1 D-08 — forwarded to inner CatalogTileGrid (both primary + secondary instances). */
|
|
21
21
|
renderTile?: (tile: CatalogTile) => ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* 2026-05-21 catalog-add-wiring — invoked with the selected tile id when the
|
|
24
|
+
* user clicks "Add metric". Fires BEFORE the CLOSE_PANEL{reason:'apply-button'}
|
|
25
|
+
* dispatch so consumers (reptime PagesContext.addInstance) can create the new
|
|
26
|
+
* card while the panel context still has the active trigger. The CLOSE_PANEL
|
|
27
|
+
* dispatch is unconditional (mirrors prior behaviour); if onAdd is omitted the
|
|
28
|
+
* shell remains a presentational mock as before.
|
|
29
|
+
*/
|
|
30
|
+
onAdd?: (tileId: string) => void;
|
|
22
31
|
}
|
|
23
|
-
export declare function CatalogAddShell({ isOpen, lenses, defaultLens, tilesByLens, lensMeta, renderTile, }: CatalogAddShellProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function CatalogAddShell({ isOpen, lenses, defaultLens, tilesByLens, lensMeta, renderTile, onAdd, }: CatalogAddShellProps): import("react/jsx-runtime").JSX.Element;
|