@mt-gloss/ui 0.1.116 → 0.1.118
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-CeuMPpjt.js → COMMITS-BxJQwv4H.js} +3 -1
- package/composites-panels.js +608 -533
- package/index.js +2 -2
- package/lib/composites/panels/PanelChrome.d.ts +8 -0
- package/lib/composites/panels/chrome-v2/PanelBody.d.ts +5 -0
- package/lib/composites/panels/chrome-v2/PanelChromeV2.d.ts +18 -0
- package/lib/composites/panels/chrome-v2/PanelFooter.d.ts +6 -0
- package/lib/composites/panels/chrome-v2/PanelFooterMessage.d.ts +6 -0
- package/lib/composites/panels/chrome-v2/PanelHeader.d.ts +6 -0
- package/lib/composites/panels/chrome-v2/PanelNavigation.d.ts +5 -0
- package/lib/composites/panels/chrome-v2/PanelStage.d.ts +5 -0
- package/lib/composites/panels/chrome-v2/index.d.ts +17 -0
- package/lib/composites/panels/coordinator/types.d.ts +6 -1
- package/lib/composites/panels/index.d.ts +1 -0
- 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 { C as kl, d as Sl, c as Dl, P as xl, g as Rl, S as Tl, f as Ml, i as Pl, r as Al, b as El, e as Fl, a as Ll } from "./COMMITS-
|
|
7
|
+
import { u as Ue } from "./COMMITS-BxJQwv4H.js";
|
|
8
|
+
import { C as kl, d as Sl, c as Dl, P as xl, g as Rl, S as Tl, f as Ml, i as Pl, r as Al, b as El, e as Fl, a as Ll } from "./COMMITS-BxJQwv4H.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 Ol, u as $l } from "./UIContext-Dm0GYHFT.js";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Phase 11.6 — use `PanelChromeV2Props` from `composites/panels/chrome-v2/`.
|
|
4
|
+
* Slated for deletion in BACKLOG cleanup phase. All 4+1 shells migrate to V2.
|
|
5
|
+
*/
|
|
2
6
|
export interface PanelChromeProps {
|
|
3
7
|
children: ReactNode;
|
|
4
8
|
onClose: () => void;
|
|
@@ -24,4 +28,8 @@ export interface PanelChromeProps {
|
|
|
24
28
|
*/
|
|
25
29
|
variant?: 'default' | 'merged-stage';
|
|
26
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Phase 11.6 — use `PanelChromeV2` from `composites/panels/chrome-v2/`.
|
|
33
|
+
* Slated for deletion in BACKLOG cleanup phase. All 4+1 shells migrate to V2.
|
|
34
|
+
*/
|
|
27
35
|
export declare function PanelChrome({ children, onClose, footer, title, variant }: PanelChromeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface PanelChromeV2Props {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
/** D-03 — 'no-stage' (Var A) omits stage entirely; 'with-stage' (Var B) mounts <PanelStage> with chassis-owned geometry. */
|
|
7
|
+
variant?: 'no-stage' | 'with-stage';
|
|
8
|
+
/** Var B only — stage content (e.g. <CloneCard …/>). Ignored when variant='no-stage'. */
|
|
9
|
+
stage?: ReactNode;
|
|
10
|
+
/** Optional pill-tab row between stage/header and body. Shell supplies the tab widget. */
|
|
11
|
+
navigation?: ReactNode;
|
|
12
|
+
/** D-06 — 2-slot footer. Shells compose 3-button arrangements as a fragment in `right`. */
|
|
13
|
+
footer?: {
|
|
14
|
+
left?: ReactNode;
|
|
15
|
+
right?: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function PanelChromeV2({ children, onClose, title, variant, stage, navigation, footer, }: PanelChromeV2Props): ReactNode;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* chrome-v2 barrel — Phase 11.6 P2 (D-02 flat layout).
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the composer + 5 sub-components + the two-line message
|
|
5
|
+
* sub-primitive. composites/panels/index.ts re-exports this whole barrel.
|
|
6
|
+
*
|
|
7
|
+
* Consumers (shells, reptime-cloud) import from '../chrome-v2' (intra-pkg)
|
|
8
|
+
* or '@mt-gloss/ui/composites/panels' (cross-pkg via panels barrel).
|
|
9
|
+
*/
|
|
10
|
+
export { PanelChromeV2 } from './PanelChromeV2';
|
|
11
|
+
export type { PanelChromeV2Props } from './PanelChromeV2';
|
|
12
|
+
export { PanelHeader } from './PanelHeader';
|
|
13
|
+
export { PanelStage } from './PanelStage';
|
|
14
|
+
export { PanelNavigation } from './PanelNavigation';
|
|
15
|
+
export { PanelBody } from './PanelBody';
|
|
16
|
+
export { PanelFooter } from './PanelFooter';
|
|
17
|
+
export { PanelFooterMessage } from './PanelFooterMessage';
|
|
@@ -23,15 +23,17 @@
|
|
|
23
23
|
* page-nav escape; spike enum has no `BACKDROP_CLICK` literal.
|
|
24
24
|
*/
|
|
25
25
|
export type PanelId = 'settings' | 'catalog-add' | 'catalog-replace' | 'page-management' | 'notification-center';
|
|
26
|
-
export type CloseReason = 'cancel-button' | 'apply-button' | 'header-x' | 'escape-key' | 'page-nav' | 'mutex-handoff' | 'ghost-anchor' | 'viewport-collapse' | 'unmount' | 'nav-escape-hatch';
|
|
26
|
+
export type CloseReason = 'cancel-button' | 'apply-button' | 'header-x' | 'escape-key' | 'page-nav' | 'mutex-handoff' | 'ghost-anchor' | 'viewport-collapse' | 'unmount' | 'nav-escape-hatch' | 'drag-start';
|
|
27
27
|
export type SurfaceState = 'idle' | 'bell-cutout-only' | 'panel-clean' | 'panel-dirty' | 'panel-clean+cutout' | 'panel-dirty+cutout' | 'notif-center';
|
|
28
28
|
export type TriggerContext = {
|
|
29
29
|
kind: 'bell';
|
|
30
|
+
targetSection?: number;
|
|
30
31
|
} | {
|
|
31
32
|
kind: 'card-overflow';
|
|
32
33
|
cardId: string;
|
|
33
34
|
sectionIndex: number;
|
|
34
35
|
action: 'configure' | 'replace';
|
|
36
|
+
targetSection?: number;
|
|
35
37
|
} | {
|
|
36
38
|
kind: 'empty-cell';
|
|
37
39
|
sectionIndex: number;
|
|
@@ -39,15 +41,18 @@ export type TriggerContext = {
|
|
|
39
41
|
row: number;
|
|
40
42
|
col: number;
|
|
41
43
|
};
|
|
44
|
+
targetSection?: number;
|
|
42
45
|
} | {
|
|
43
46
|
kind: 'manage-pages-action';
|
|
44
47
|
global: true;
|
|
45
48
|
align: 'left';
|
|
49
|
+
targetSection?: number;
|
|
46
50
|
} | {
|
|
47
51
|
kind: 'layout-action-blocked';
|
|
48
52
|
action: 'drag' | 'resize' | 'add' | 'pack';
|
|
49
53
|
blockedCardId: string;
|
|
50
54
|
activeCardId: string;
|
|
55
|
+
targetSection?: number;
|
|
51
56
|
};
|
|
52
57
|
export interface CloseLogEntry {
|
|
53
58
|
panelId: PanelId;
|
|
@@ -34,6 +34,7 @@ export type { PanelHostProps, PanelShellProps } from './PanelHost';
|
|
|
34
34
|
export type { PanelSlotProps } from './PanelSlot';
|
|
35
35
|
export type { PanelProviderProps } from './PanelProvider';
|
|
36
36
|
export type { PanelChromeProps } from './PanelChrome';
|
|
37
|
+
export * from './chrome-v2';
|
|
37
38
|
export { positionKey } from './utils/positionKey';
|
|
38
39
|
export { useReducedMotionPanel } from './hooks/useReducedMotionPanel';
|
|
39
40
|
export { PanelMount } from './PanelMount';
|