@mt-gloss/ui 0.0.14 → 0.0.16
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/BaseAsyncButton-nFOdhiBv.js +179 -0
- package/{Expandable-aJSmv_1C.js → Expandable-Bvd-OyRQ.js} +2933 -2827
- package/{UIContext-Cx54OlNB.js → UIContext-C3E-k7HI.js} +185 -141
- package/catalog.js +356 -412
- package/index.js +770 -727
- package/internals.js +26 -26
- package/lib/composites/overlay/MergePrompt/MergePrompt.d.ts +12 -0
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/types.d.ts +11 -0
- package/lib/wrappers/SortableZones/SortableZones.d.ts +5 -3
- package/package.json +1 -1
- package/ui.css +1 -1
- package/BaseAsyncButton-x5Us8SVv.js +0 -223
package/internals.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as B } from "./UIContext-
|
|
2
|
-
import { F as A, I, G as H, H as M,
|
|
3
|
-
import { d as qa, f as Ja, e as Ka, a as Qa, B as Ya, c as as, b as ss, T as es } from "./BaseAsyncButton-x5Us8SVv.js";
|
|
1
|
+
import { b as B } from "./UIContext-C3E-k7HI.js";
|
|
2
|
+
import { F as A, I, G as H, H as M, af as $, ah as R, c as E, h as F, t as O, D as U, w as z, x as W, v as L, y as j, A as G, z as V, k as X, ai as Z, a7 as q, aa as J, a9 as K, a8 as Q, ab as Y, Q as aa, W as sa, X as ea, V as oa, a0 as ta, a1 as la, e as ra, a4 as ia, a6 as da, a5 as na, g as ca, i as Ba, aj as ga, a3 as ba, J as ma, M as ua, K as pa, L as ya, a2 as ha, B as _a, ag as fa, l as va, ac as Ca, O as ka, P as Da, n as Ta, p as wa, r as xa, q as Sa, o as Na, s as Pa, d as Aa, ad as Ia, j as Ha, Y as Ma, $ as $a, _ as Ra, ae as Ea, m as Fa, N as Oa, f as Ua, C as za, E as Wa, R as La, S as ja, T as Ga, a as Va, U as Xa, Z as Za, u as qa } from "./UIContext-C3E-k7HI.js";
|
|
4
3
|
import { jsx as d, jsxs as g, Fragment as b } from "react/jsx-runtime";
|
|
5
|
-
|
|
4
|
+
import { c as Ka, e as Qa, d as Ya, B as as, b as ss, a as es } from "./BaseAsyncButton-nFOdhiBv.js";
|
|
5
|
+
const T = {
|
|
6
6
|
DurationFast: "var(--gloss-motion-duration-fast)",
|
|
7
7
|
DurationNormal: "var(--gloss-motion-duration-normal)",
|
|
8
8
|
DurationSlow: "var(--gloss-motion-duration-slow)",
|
|
@@ -187,12 +187,12 @@ export {
|
|
|
187
187
|
I as BaseAccordionContent,
|
|
188
188
|
H as BaseAccordionItem,
|
|
189
189
|
M as BaseAccordionTrigger,
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
Ka as BaseAlert,
|
|
191
|
+
Qa as BaseAsyncButton,
|
|
192
192
|
$ as BaseAvatar,
|
|
193
193
|
R as BaseBadge,
|
|
194
194
|
E as BaseBox,
|
|
195
|
-
|
|
195
|
+
Ya as BaseBreadcrumbs,
|
|
196
196
|
F as BaseButton,
|
|
197
197
|
O as BaseCard,
|
|
198
198
|
U as BaseCardActions,
|
|
@@ -225,7 +225,7 @@ export {
|
|
|
225
225
|
na as BaseFileUploadList,
|
|
226
226
|
ca as BaseIcon,
|
|
227
227
|
Ba as BaseInput,
|
|
228
|
-
|
|
228
|
+
as as BaseLabel,
|
|
229
229
|
ga as BaseLink,
|
|
230
230
|
ba as BaseMaskedInput,
|
|
231
231
|
ma as BaseMenu,
|
|
@@ -239,8 +239,8 @@ export {
|
|
|
239
239
|
va as BaseRadio,
|
|
240
240
|
Ca as BaseRangeSlider,
|
|
241
241
|
ka as BaseRating,
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
Da as BaseSegmentedControl,
|
|
243
|
+
Ta as BaseSelect,
|
|
244
244
|
wa as BaseSelectDropdown,
|
|
245
245
|
xa as BaseSelectGroup,
|
|
246
246
|
Sa as BaseSelectOption,
|
|
@@ -257,23 +257,23 @@ export {
|
|
|
257
257
|
Ma as BaseTimePicker,
|
|
258
258
|
$a as BaseTimePickerCell,
|
|
259
259
|
Ra as BaseTimePickerColumn,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
260
|
+
Ea as BaseTitle,
|
|
261
|
+
ss as BaseToast,
|
|
262
|
+
Fa as BaseToggle,
|
|
263
|
+
Oa as BaseTooltip,
|
|
264
|
+
Ua as BaseTypography,
|
|
265
|
+
es as BaseValue,
|
|
266
266
|
S as Border,
|
|
267
267
|
w as Breakpoint,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
za as Color,
|
|
269
|
+
Wa as Elevation,
|
|
270
|
+
T as Motion,
|
|
271
271
|
x as Opacity,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
272
|
+
La as Radius,
|
|
273
|
+
ja as Spacing,
|
|
274
|
+
Ga as Typography,
|
|
275
|
+
Va as UIContext,
|
|
276
|
+
Xa as UIContextProvider,
|
|
277
|
+
Za as ZIndex,
|
|
278
|
+
qa as useUIContext
|
|
279
279
|
};
|
|
@@ -9,6 +9,18 @@ import { MergePromptProps } from './types';
|
|
|
9
9
|
*
|
|
10
10
|
* 200ms click-ignore window: prevents accidental drop-click-dismiss when
|
|
11
11
|
* the prompt appears immediately after a drag-drop action.
|
|
12
|
+
*
|
|
13
|
+
* 2026-04-17 refactor (debug 260417-phase9-mp-combine-glossui): internal
|
|
14
|
+
* markup migrated from raw div/button elements to gloss-ui primitives:
|
|
15
|
+
* - BaseBox for layout (replaces the three .gloss-merge-prompt__* divs)
|
|
16
|
+
* - BaseTitle level=4 for the heading
|
|
17
|
+
* - PresetText variant="caption" for the card label/value rows
|
|
18
|
+
* - PresetButton variant="primary" for Combine and variant="ghost" for Dismiss
|
|
19
|
+
*
|
|
20
|
+
* The BEM .gloss-merge-prompt__* classes are retained on the outer shells so
|
|
21
|
+
* existing reptime-cloud overrides (merge-prompt-overrides.scss) and test
|
|
22
|
+
* selectors continue to work. Individual row styling now comes from the
|
|
23
|
+
* gloss primitives themselves (BaseBox spacing, PresetText typography).
|
|
12
24
|
*/
|
|
13
25
|
export declare function MergePrompt({ open, cardA, cardB, categoryLabel, onAccept, onDismiss, anchorRef, }: MergePromptProps): import("react/jsx-runtime").JSX.Element;
|
|
14
26
|
export declare namespace MergePrompt {
|
|
@@ -17,6 +17,6 @@ import { CardShellProps } from './types';
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
export declare const CardShell: {
|
|
20
|
-
({ contentSlot, children, colSpan, isStale, isRetrying, beta, disabled, style, accentRing, onGraph, onDetails, onCustomize, onRemove, onWhatsThis, onExpand, onShrink, onMove, onReplace, onNavigate, onRetry, onRefresh, enableQuickSettings, onUpdateTimeframe, instanceTimeframe, cardTitle, onViewAsStack, onUnstack, isStackedGroup, onUpdateStackedTimeframes, instanceStackedTimeframes, isGraphActive, isTableActive, isGraphCard, canExpand, cardRef: externalCardRef, }: CardShellProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
({ contentSlot, children, colSpan, isStale, isRetrying, beta, disabled, style, accentRing, onGraph, onDetails, onCustomize, onRemove, onWhatsThis, onExpand, onShrink, onMove, onReplace, onNavigate, onRetry, onRefresh, enableQuickSettings, onUpdateTimeframe, instanceTimeframe, cardTitle, quickConfigSlot, onViewAsStack, onUnstack, isStackedGroup, onUpdateStackedTimeframes, instanceStackedTimeframes, isGraphActive, isTableActive, isGraphCard, canExpand, cardRef: externalCardRef, }: CardShellProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
displayName: string;
|
|
22
22
|
};
|
|
@@ -157,6 +157,17 @@ export interface CardShellProps {
|
|
|
157
157
|
onUpdateTimeframe?: (presetId: string) => void;
|
|
158
158
|
instanceTimeframe?: string;
|
|
159
159
|
cardTitle?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Custom content rendered inside the flip-back face, replacing the default
|
|
162
|
+
* <CardBack> timeframe preset grid. Use for consumer-specific quick-config
|
|
163
|
+
* panels (e.g. sparkline/status-mode toggles). When provided, fully replaces
|
|
164
|
+
* the default CardBack render. Flip mechanics (isFlipped, handleFlip,
|
|
165
|
+
* onQuickSettings wiring) are unchanged.
|
|
166
|
+
*
|
|
167
|
+
* Added FG-1 / D-01, D-02 (Phase 10.5 UAT defect sweep): eliminates
|
|
168
|
+
* sibling-peer QuickConfig mount that broke drag-ghost layout.
|
|
169
|
+
*/
|
|
170
|
+
quickConfigSlot?: ReactNode;
|
|
160
171
|
onViewAsStack?: () => void;
|
|
161
172
|
onUnstack?: () => void;
|
|
162
173
|
isStackedGroup?: boolean;
|
|
@@ -5,8 +5,10 @@ export interface SortableZonesProps<T extends {
|
|
|
5
5
|
}> {
|
|
6
6
|
zones: ZoneConfig<T>[];
|
|
7
7
|
onZoneChange?: (zones: ZoneConfig<T>[]) => void;
|
|
8
|
-
/** Render the zone container. Receives zone key and
|
|
9
|
-
|
|
8
|
+
/** Render the zone container. Receives zone key, items, and a pre-rendered
|
|
9
|
+
* `children` slot (each item wrapped for drag when @dnd-kit is loaded,
|
|
10
|
+
* plain when passive). Place `{children}` where items should appear. */
|
|
11
|
+
renderZone: (zoneKey: string, items: T[], children: React.ReactNode) => React.ReactNode;
|
|
10
12
|
/** Render a single item inside a zone. */
|
|
11
13
|
renderItem: (item: T) => React.ReactNode;
|
|
12
14
|
/** Render the drag overlay (floating item while dragging). Falls back to renderItem if omitted. */
|
|
@@ -17,7 +19,7 @@ export interface SortableZonesProps<T extends {
|
|
|
17
19
|
*
|
|
18
20
|
* Supports within-zone reorder and cross-zone drag with optional maxItems cap per zone.
|
|
19
21
|
* Uses useSortableZones hook for state management.
|
|
20
|
-
*
|
|
22
|
+
* Renders statically (no drag) if @dnd-kit is not installed — items still render.
|
|
21
23
|
*
|
|
22
24
|
* Generic over T extends { id: string }. No reptime-specific types. D-04, D-06, D-11 compliant.
|
|
23
25
|
*/
|