@mt-gloss/ui 0.1.118 → 0.1.119
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-BxJQwv4H.js → COMMITS-BkM1Urzh.js} +270 -177
- package/composites-panels.js +580 -615
- package/index.d.ts +1 -1
- package/index.js +47 -46
- package/lib/composites/dashboard/BellPopover/BellPopover.d.ts +12 -0
- package/lib/composites/panels/PanelSlot.d.ts +3 -3
- package/lib/composites/panels/index.d.ts +1 -0
- package/lib/composites/panels/shells/CatalogAddShell.d.ts +5 -5
- package/lib/composites/panels/shells/CatalogReplaceShell.d.ts +5 -2
- package/lib/composites/panels/shells/NotificationCenterShell.d.ts +2 -0
- package/lib/composites/panels/shells/PageMgmtShell.d.ts +7 -2
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.d.ts
CHANGED
|
@@ -372,5 +372,5 @@ export { UIContext, UIContextProvider, useUIContext, ContainerCard, ContainerCar
|
|
|
372
372
|
export type { UIContextValue, UIRegion, UIDensity, UIContextProviderProps, ContainerCardProps, ContainerCardVariant, ContainerDialogProps, ContainerDialogHeaderProps, ContainerDialogBodyProps, ContainerDialogActionsProps, ContainerPanelProps, ContainerToolbarProps, ContainerFormSectionProps, ContainerTableProps, } from './lib/containers';
|
|
373
373
|
export { mergeRefs, mergeHandlers, Actionable, Selectable, Dismissible, Sortable, Expandable, } from './lib/wrappers';
|
|
374
374
|
export type { ActionableProps, SelectableProps, DismissibleProps, SortableProps, ExpandableProps, } from './lib/wrappers';
|
|
375
|
-
export { PanelProvider, usePanelContext, usePanelContextOptional, PanelHost, PanelChrome, usePanelCoordinator, reducer as panelsReducer, initialState as panelsInitialState, deriveSurfaceState as panelsDeriveSurfaceState, COMMITS as PANEL_COMMITS, } from './lib/composites/panels';
|
|
375
|
+
export { PanelProvider, usePanelContext, usePanelContextOptional, PanelHost, PanelChrome, usePanelCoordinator, reducer as panelsReducer, initialState as panelsInitialState, deriveSurfaceState as panelsDeriveSurfaceState, COMMITS as PANEL_COMMITS, NotificationCenterShell, } from './lib/composites/panels';
|
|
376
376
|
export type { PanelProviderProps, PanelHostProps, PanelChromeProps, PanelShellProps, UsePanelCoordinatorReturn, PanelId, PanelState, PanelAction, CloseReason, SurfaceState, TriggerContext, SideEffect, CloseLogEntry, LockHint, } from './lib/composites/panels';
|
package/index.js
CHANGED
|
@@ -4,13 +4,13 @@ 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 {
|
|
7
|
+
import { u as Ue } from "./COMMITS-BkM1Urzh.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-BkM1Urzh.js";
|
|
9
9
|
import { createPortal as ke } from "react-dom";
|
|
10
10
|
import { B as Ye, U as de } from "./UIContext-Dm0GYHFT.js";
|
|
11
|
-
import { a as
|
|
12
|
-
import { B as
|
|
13
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
11
|
+
import { a as $l, u as zl } from "./UIContext-Dm0GYHFT.js";
|
|
12
|
+
import { B as Gl, D as Hl, M as Wl, O as Vl, a as jl, S as Kl, T as Ul, e as Yl } from "./MetricCard-Cyoxhb_S.js";
|
|
13
|
+
import { DEFAULT_MARKET_PRESETS as Ql, DEFAULT_PINNED as Jl, PERIOD_OPTIONS as Xl, ROLLING_OPTIONS as Zl, TODAY_PRESET as eo, findPreset as to, formatDateRange as ao, formatMarketDates as ro, formatTrend as no, formatValue as so, generateMarketId as io, getAllPresets as lo, getDateRangeForPreset as oo, getPresetLabel as co, isInRange as uo, isMarketActive as mo, isSameDay as po, normalizePresetId as go, toUppercasePresetId as ho } from "@mt-gloss/utils";
|
|
14
14
|
import qe from "@mui/icons-material/AccessTime";
|
|
15
15
|
import Qe from "@mui/icons-material/Tune";
|
|
16
16
|
import Je from "@mui/icons-material/ViewColumn";
|
|
@@ -4525,7 +4525,7 @@ export {
|
|
|
4525
4525
|
Cn as Autocomplete,
|
|
4526
4526
|
Nn as Badge,
|
|
4527
4527
|
kn as BarChartCard,
|
|
4528
|
-
|
|
4528
|
+
Gl as BarsBg,
|
|
4529
4529
|
dn as BellCutout,
|
|
4530
4530
|
cn as BellPopover,
|
|
4531
4531
|
_a as BodyPortal,
|
|
@@ -4571,9 +4571,9 @@ export {
|
|
|
4571
4571
|
rs as CreditCardForm,
|
|
4572
4572
|
ns as DEFAULT_FOOTER_IDS,
|
|
4573
4573
|
j as DEFAULT_GRID_INTERACTION_PHYSICS,
|
|
4574
|
-
|
|
4574
|
+
Ql as DEFAULT_MARKET_PRESETS,
|
|
4575
4575
|
ss as DEFAULT_OVERFLOW_IDS,
|
|
4576
|
-
|
|
4576
|
+
Jl as DEFAULT_PINNED,
|
|
4577
4577
|
dt as DEFAULT_RESIZE_PHYSICS,
|
|
4578
4578
|
Se as DEFAULT_RESIZE_PILL_PHYSICS,
|
|
4579
4579
|
is as DataTable,
|
|
@@ -4584,7 +4584,7 @@ export {
|
|
|
4584
4584
|
ds as DirectionCard,
|
|
4585
4585
|
us as Dismissible,
|
|
4586
4586
|
ms as DistributionCard,
|
|
4587
|
-
|
|
4587
|
+
Hl as DonutChart,
|
|
4588
4588
|
Vr as DragGhost,
|
|
4589
4589
|
Lr as DropAnchorCell,
|
|
4590
4590
|
ps as Dropdown,
|
|
@@ -4636,24 +4636,25 @@ export {
|
|
|
4636
4636
|
Ks as MenuGroup,
|
|
4637
4637
|
Us as MenuItem,
|
|
4638
4638
|
Ys as MergePrompt,
|
|
4639
|
-
|
|
4639
|
+
Wl as MetricCard,
|
|
4640
4640
|
qs as MetricCardGrid,
|
|
4641
4641
|
Ft as MetricGroupContainer,
|
|
4642
4642
|
Qs as MiniCalendar,
|
|
4643
4643
|
Zt as MoreInLensRail,
|
|
4644
4644
|
Js as MultiSelect,
|
|
4645
|
+
kl as NotificationCenterShell,
|
|
4645
4646
|
Xs as NumberInput,
|
|
4646
|
-
|
|
4647
|
+
Vl as ObjectArrow,
|
|
4647
4648
|
Zs as OrderFilterBar,
|
|
4648
|
-
|
|
4649
|
-
|
|
4649
|
+
Sl as PANEL_COMMITS,
|
|
4650
|
+
Xl as PERIOD_OPTIONS,
|
|
4650
4651
|
Ur as PaceCard,
|
|
4651
4652
|
Yr as PaceTilePreview,
|
|
4652
4653
|
Ct as PageChip,
|
|
4653
4654
|
Te as PageDropdown,
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4655
|
+
Dl as PanelChrome,
|
|
4656
|
+
xl as PanelHost,
|
|
4657
|
+
Rl as PanelProvider,
|
|
4657
4658
|
ei as PasswordInput,
|
|
4658
4659
|
ti as PaymentForm,
|
|
4659
4660
|
ai as PaymentMethodSelect,
|
|
@@ -4664,7 +4665,7 @@ export {
|
|
|
4664
4665
|
ii as ProgressCard,
|
|
4665
4666
|
li as QuickConfigPanel,
|
|
4666
4667
|
Tt as RECONFIG_BACKSIDE_LABELS,
|
|
4667
|
-
|
|
4668
|
+
Zl as ROLLING_OPTIONS,
|
|
4668
4669
|
oi as Radio,
|
|
4669
4670
|
ci as RadioGroup,
|
|
4670
4671
|
di as RangeSlider,
|
|
@@ -4692,7 +4693,7 @@ export {
|
|
|
4692
4693
|
bi as SegmentedControl,
|
|
4693
4694
|
vi as Select,
|
|
4694
4695
|
yi as Selectable,
|
|
4695
|
-
|
|
4696
|
+
Tl as SettingsTabStrip,
|
|
4696
4697
|
J as SeverityDot,
|
|
4697
4698
|
wi as SimpleMetricCard,
|
|
4698
4699
|
_i as SimpleSelector,
|
|
@@ -4703,18 +4704,18 @@ export {
|
|
|
4703
4704
|
Di as Slider,
|
|
4704
4705
|
jr as SnapOutline,
|
|
4705
4706
|
xi as Sortable,
|
|
4706
|
-
|
|
4707
|
-
|
|
4707
|
+
Ml as SortableZones,
|
|
4708
|
+
jl as SparklineBg,
|
|
4708
4709
|
Ir as SpilloverArc,
|
|
4709
4710
|
Ri as SplitButton,
|
|
4710
4711
|
Ti as StackedGroupCard,
|
|
4711
4712
|
la as StackedGroupTilePreview,
|
|
4712
4713
|
Xt as StarterRail,
|
|
4713
|
-
|
|
4714
|
+
Kl as StatusModeCard,
|
|
4714
4715
|
ot as StatusSlotChipMenu,
|
|
4715
4716
|
Mi as Stepper,
|
|
4716
4717
|
ve as SwingReveal,
|
|
4717
|
-
|
|
4718
|
+
eo as TODAY_PRESET,
|
|
4718
4719
|
W as TUNING_DEFAULTS,
|
|
4719
4720
|
Ee as TUNING_STORAGE_KEY,
|
|
4720
4721
|
Pi as TabGroup,
|
|
@@ -4731,8 +4732,8 @@ export {
|
|
|
4731
4732
|
zi as Transition,
|
|
4732
4733
|
Bi as TransitionGroup,
|
|
4733
4734
|
Gi as TrendCard,
|
|
4734
|
-
|
|
4735
|
-
|
|
4735
|
+
Ul as TrendIndicator,
|
|
4736
|
+
$l as UIContext,
|
|
4736
4737
|
de as UIContextProvider,
|
|
4737
4738
|
Hi as UnifiedBreakdownTable,
|
|
4738
4739
|
Wi as UnifiedContextMenu,
|
|
@@ -4767,28 +4768,28 @@ export {
|
|
|
4767
4768
|
Dt as entityNameActions,
|
|
4768
4769
|
Ua as entityTabGroup,
|
|
4769
4770
|
bt as errorFixture,
|
|
4770
|
-
|
|
4771
|
+
Yl as evaluateTintCondition,
|
|
4771
4772
|
hr as filteredState,
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4773
|
+
to as findPreset,
|
|
4774
|
+
ao as formatDateRange,
|
|
4775
|
+
ro as formatMarketDates,
|
|
4776
|
+
no as formatTrend,
|
|
4777
|
+
so as formatValue,
|
|
4777
4778
|
Tr as fullLayout,
|
|
4778
|
-
|
|
4779
|
+
io as generateMarketId,
|
|
4779
4780
|
el as generateTabId,
|
|
4780
|
-
|
|
4781
|
-
|
|
4781
|
+
lo as getAllPresets,
|
|
4782
|
+
oo as getDateRangeForPreset,
|
|
4782
4783
|
tl as getMenuActions,
|
|
4783
4784
|
Fe as getMotionMode,
|
|
4784
|
-
|
|
4785
|
+
co as getPresetLabel,
|
|
4785
4786
|
al as getTransitionStyle,
|
|
4786
4787
|
Dr as gridCards,
|
|
4787
4788
|
qr as gridChannels,
|
|
4788
4789
|
rl as interpolate,
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4790
|
+
uo as isInRange,
|
|
4791
|
+
mo as isMarketActive,
|
|
4792
|
+
po as isSameDay,
|
|
4792
4793
|
gr as itemColumns,
|
|
4793
4794
|
mr as itemRows,
|
|
4794
4795
|
ft as loadingFixture,
|
|
@@ -4800,7 +4801,7 @@ export {
|
|
|
4800
4801
|
ll as mergeRefs,
|
|
4801
4802
|
Ka as metricTabGroup,
|
|
4802
4803
|
Pr as mixedTabs,
|
|
4803
|
-
|
|
4804
|
+
go as normalizePresetId,
|
|
4804
4805
|
Rt as numericActions,
|
|
4805
4806
|
pr as orderColumns,
|
|
4806
4807
|
xt as orderIdActions,
|
|
@@ -4808,9 +4809,9 @@ export {
|
|
|
4808
4809
|
Mr as ordersTabs,
|
|
4809
4810
|
Ce as paletteHex,
|
|
4810
4811
|
V as paletteVars,
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4812
|
+
Pl as panelsDeriveSurfaceState,
|
|
4813
|
+
Al as panelsInitialState,
|
|
4814
|
+
El as panelsReducer,
|
|
4814
4815
|
ol as parseNumericValue,
|
|
4815
4816
|
cl as paymentFormMetadata,
|
|
4816
4817
|
dl as paymentSchema,
|
|
@@ -4843,7 +4844,7 @@ export {
|
|
|
4843
4844
|
Za as tableSamples,
|
|
4844
4845
|
Qa as textSamples,
|
|
4845
4846
|
Ya as timeFrameTabGroup,
|
|
4846
|
-
|
|
4847
|
+
ho as toUppercasePresetId,
|
|
4847
4848
|
$e as useAffordanceVisibility,
|
|
4848
4849
|
Va as useArrowNavigation,
|
|
4849
4850
|
gl as useCheckboxGroupContext,
|
|
@@ -4855,14 +4856,14 @@ export {
|
|
|
4855
4856
|
yl as useFocusTrap,
|
|
4856
4857
|
wl as useFormContext,
|
|
4857
4858
|
_l as useGestureState,
|
|
4858
|
-
|
|
4859
|
+
Fl as usePanelContext,
|
|
4859
4860
|
Ue as usePanelContextOptional,
|
|
4860
|
-
|
|
4861
|
+
Ll as usePanelCoordinator,
|
|
4861
4862
|
ya as usePortalAnchor,
|
|
4862
4863
|
Cl as useRadioGroupContext,
|
|
4863
4864
|
sn as useResizeChoreography,
|
|
4864
4865
|
ar as useResizePill,
|
|
4865
4866
|
Ot as useResizeTuning,
|
|
4866
|
-
|
|
4867
|
-
|
|
4867
|
+
Il as useSortableZones,
|
|
4868
|
+
zl as useUIContext
|
|
4868
4869
|
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Phase 11.6 — replaced by NotificationCenterShell using PanelChromeV2 chassis.
|
|
4
|
+
* Slated for deletion in BACKLOG cleanup phase (symmetric with old PanelChrome per D-17).
|
|
5
|
+
*
|
|
6
|
+
* Migration path: bell click now dispatches transitionToPanel('notification-center', ...)
|
|
7
|
+
* which mounts NotificationCenterShell inside the panel-system. Hover preview is dead;
|
|
8
|
+
* the panel itself is the view (D-16 click-only).
|
|
9
|
+
*/
|
|
2
10
|
export interface BellPopoverProps {
|
|
3
11
|
anchorRef: RefObject<HTMLElement | null>;
|
|
4
12
|
isOpen: boolean;
|
|
@@ -9,4 +17,8 @@ export interface BellPopoverProps {
|
|
|
9
17
|
onPopoverLeave?: () => void;
|
|
10
18
|
children?: ReactNode;
|
|
11
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Phase 11.6 — replaced by NotificationCenterShell using PanelChromeV2 chassis.
|
|
22
|
+
* Slated for deletion in BACKLOG cleanup phase (symmetric with old PanelChrome per D-17).
|
|
23
|
+
*/
|
|
12
24
|
export declare function BellPopover(props: BellPopoverProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -9,9 +9,9 @@ export interface PanelSlotProps {
|
|
|
9
9
|
panelComponents?: Partial<Record<PanelId, ComponentType<PanelShellProps>>>;
|
|
10
10
|
/**
|
|
11
11
|
* Phase 16 P4 — test-friendly children fallback. When `panelComponents` is omitted,
|
|
12
|
-
* PanelSlot renders `children` inside
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* PanelSlot renders `children` inside <PanelMount> so unit tests can render a
|
|
13
|
+
* specific shell (e.g. SettingsShell) directly without registering a full
|
|
14
|
+
* per-panelId map. Production callers continue to pass `panelComponents`.
|
|
15
15
|
*/
|
|
16
16
|
children?: ReactNode;
|
|
17
17
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
export { PanelProvider, usePanelContext, usePanelContextOptional } from './PanelProvider';
|
|
11
11
|
export { useEditingCardId } from './hooks/useEditingCardId';
|
|
12
12
|
export { SettingsShell } from './shells/SettingsShell';
|
|
13
|
+
export { NotificationCenterShell } from './shells/NotificationCenterShell';
|
|
13
14
|
export { CatalogAddShell } from './shells/CatalogAddShell';
|
|
14
15
|
export type { CatalogAddShellProps } from './shells/CatalogAddShell';
|
|
15
16
|
export { CatalogReplaceShell } from './shells/CatalogReplaceShell';
|
|
@@ -11,13 +11,13 @@ export interface CatalogAddShellProps extends PanelShellProps {
|
|
|
11
11
|
/** Per-lens H2 + helper + beta-chip metadata. */
|
|
12
12
|
lensMeta?: Readonly<Record<string, CatalogLensMeta>>;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
14
|
+
* Phase 11.6 P3 — DEPRECATED. Footer is now chassis-slotted directly by the
|
|
15
|
+
* shell; PanelSlot no longer passes a footerSlot. Prop retained on the public
|
|
16
|
+
* type for back-compat with consumers that may still pass it; value ignored.
|
|
17
|
+
* @deprecated Phase 11.6 P3 — chassis-slotted footer renders Cancel + Add internally.
|
|
18
18
|
*/
|
|
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
22
|
}
|
|
23
|
-
export declare function CatalogAddShell({ isOpen, lenses, defaultLens, tilesByLens, lensMeta,
|
|
23
|
+
export declare function CatalogAddShell({ isOpen, lenses, defaultLens, tilesByLens, lensMeta, renderTile, }: CatalogAddShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,9 +7,12 @@ export interface CatalogReplaceShellProps extends PanelShellProps {
|
|
|
7
7
|
lenses?: readonly string[];
|
|
8
8
|
defaultLens?: string;
|
|
9
9
|
tilesByLens?: Readonly<Record<string, CatalogLensTiles>>;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Phase 11.6 P3 — DEPRECATED. Footer is chassis-slotted by the shell now.
|
|
12
|
+
* @deprecated Phase 11.6 P3 — chassis-slotted footer renders Cancel + Replace internally.
|
|
13
|
+
*/
|
|
11
14
|
footerSlot?: ReactNode;
|
|
12
15
|
/** PHASE 17.1 D-08 — forwarded to inner CatalogTileGrid. */
|
|
13
16
|
renderTile?: (tile: CatalogTile) => ReactNode;
|
|
14
17
|
}
|
|
15
|
-
export declare function CatalogReplaceShell({ isOpen, replacingLabel, lenses, defaultLens, tilesByLens,
|
|
18
|
+
export declare function CatalogReplaceShell({ isOpen, replacingLabel, lenses, defaultLens, tilesByLens, renderTile, }: CatalogReplaceShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,12 @@ import { PageEntry } from './internals/page-mgmt-mocks';
|
|
|
4
4
|
export interface PageMgmtShellProps extends PanelShellProps {
|
|
5
5
|
/** Initial page list; defaults to MOCK_PAGES (§6.4.3 verbatim). */
|
|
6
6
|
pages?: readonly PageEntry[];
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Phase 11.6 P3 — DEPRECATED. Footer is chassis-slotted by the shell now.
|
|
9
|
+
* Tests that previously passed `<PageMgmtFooter />` may drop the prop;
|
|
10
|
+
* shell auto-renders PageMgmtFooter into PanelChromeV2.footer.right.
|
|
11
|
+
* @deprecated Phase 11.6 P3 — chassis owns the footer slot.
|
|
12
|
+
*/
|
|
8
13
|
footerSlot?: ReactNode;
|
|
9
14
|
/**
|
|
10
15
|
* When provided, the shell renders this external list verbatim (active flag
|
|
@@ -27,4 +32,4 @@ export interface PageMgmtShellProps extends PanelShellProps {
|
|
|
27
32
|
/** Optional: switch active page when a row name is clicked. */
|
|
28
33
|
onSwitchPage?: (id: string) => void;
|
|
29
34
|
}
|
|
30
|
-
export declare function PageMgmtShell({ isOpen, pages: initialPages,
|
|
35
|
+
export declare function PageMgmtShell({ isOpen, pages: initialPages, externalPages, activePageId, onRename, onDuplicate, onDelete, onReorder, onCreatePage, onSwitchPage, }: PageMgmtShellProps): import("react/jsx-runtime").JSX.Element;
|