@mt-gloss/ui 0.1.58 → 0.1.60

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/internals.js CHANGED
@@ -1,7 +1,7 @@
1
- import { d as B } from "./UIContext-CDdyubSF.js";
2
- import { G as A, J as I, H, I as M, af as $, ah as R, a as E, i as F, v as O, F as U, x as z, y as W, w as L, z as j, D as G, A as V, l as X, ai as Z, a8 as q, ab as J, aa as K, a9 as Q, ac as Y, V as aa, X as sa, Y as ea, W as oa, a1 as ta, a2 as la, f as ra, a5 as ia, a7 as da, a6 as na, h as ca, j as Ba, aj as ga, a4 as ba, K as ma, N as ua, L as pa, M as ya, a3 as ha, B as _a, ag as fa, m as va, ad as Ca, P as ka, Q as Da, o as Ta, q as wa, s as xa, r as Sa, p as Na, t as Pa, e as Aa, b as Ia, k as Ha, _ as Ma, a0 as $a, $ as Ra, ae as Ea, n as Fa, O as Oa, g as Ua, C as za, E as Wa, R as La, S as ja, T as Ga, c as Va, U as Xa, Z as Za, u as qa } from "./UIContext-CDdyubSF.js";
1
+ import { d as B } from "./UIContext-DP6JGCto.js";
2
+ import { G as A, J as I, H, I as M, af as $, ah as R, a as E, i as F, v as O, F as U, x as z, y as W, w as L, z as j, D as G, A as V, l as X, ai as Z, a8 as q, ab as J, aa as K, a9 as Q, ac as Y, V as aa, X as sa, Y as ea, W as oa, a1 as ta, a2 as la, f as ra, a5 as ia, a7 as da, a6 as na, h as ca, j as Ba, aj as ga, a4 as ba, K as ma, N as ua, L as pa, M as ya, a3 as ha, B as _a, ag as fa, m as va, ad as Ca, P as ka, Q as Da, o as Ta, q as wa, s as xa, r as Sa, p as Na, t as Pa, e as Aa, b as Ia, k as Ha, _ as Ma, a0 as $a, $ as Ra, ae as Ea, n as Fa, O as Oa, g as Ua, C as za, E as Wa, R as La, S as ja, T as Ga, c as Va, U as Xa, Z as Za, u as qa } from "./UIContext-DP6JGCto.js";
3
3
  import { jsx as d, jsxs as g, Fragment as b } from "react/jsx-runtime";
4
- import { c as Ka, e as Qa, d as Ya, B as as, b as ss, a as es } from "./BaseAsyncButton-DAeHnhMt.js";
4
+ import { c as Ka, e as Qa, d as Ya, B as as, b as ss, a as es } from "./BaseAsyncButton-Cq_l7clO.js";
5
5
  const T = {
6
6
  DurationFast: "var(--gloss-motion-duration-fast)",
7
7
  DurationNormal: "var(--gloss-motion-duration-normal)",
@@ -1,4 +1,4 @@
1
- import { MotionValue } from 'framer-motion';
1
+ import { MotionValue } from 'motion/react';
2
2
  import * as React from 'react';
3
3
  /**
4
4
  * Per-card MotionValue pair carried alongside its cardId. Consumers (Plan 05
@@ -1,4 +1,4 @@
1
- import { MotionValue } from 'framer-motion';
1
+ import { MotionValue } from 'motion/react';
2
2
  import * as React from 'react';
3
3
  export interface DragGhostProps {
4
4
  /** 'ok' = blue dashed (--gloss-valid-stroke/fill); 'rejected' = pink solid (--gloss-rejection-stroke/fill) */
@@ -20,6 +20,12 @@ export interface DropAnchorCellProps extends React.HTMLAttributes<HTMLDivElement
20
20
  * Border PERSISTS during drag/resize (PKG-04 invariant); only affordance GLYPHS hide
21
21
  * via useAffordanceVisibility(). The border IS the drop-target affordance. */
22
22
  state?: 'empty';
23
+ /** Quick 260503-dac — Cross-section resize reject (R-11). When true, primitive
24
+ * renders sparse-dash red stroke (#BB2A39, dasharray 10/6) + pink fill
25
+ * (#F0BAC1) via [data-rejection='true'] SCSS rule. Consumer sets this on the
26
+ * cell whose target colSpan would cross a section divider during resize.
27
+ * Mirrors the data-blocked undefined-when-false pattern (no DOM noise at idle). */
28
+ rejection?: boolean;
23
29
  children?: React.ReactNode;
24
30
  }
25
31
  /**
@@ -38,4 +44,4 @@ export interface DropAnchorCellProps extends React.HTMLAttributes<HTMLDivElement
38
44
  *
39
45
  * Respects prefers-reduced-motion.
40
46
  */
41
- export declare function DropAnchorCell({ density, canAccept, blocked, proximityOpacity, state, className, children, ...rest }: DropAnchorCellProps): import("react/jsx-runtime").JSX.Element;
47
+ export declare function DropAnchorCell({ density, canAccept, blocked, proximityOpacity, state, rejection, className, children, ...rest }: DropAnchorCellProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { MotionValue } from 'framer-motion';
1
+ import { MotionValue } from 'motion/react';
2
2
  export interface GhostPreviewProps {
3
3
  /** Whether the ghost overlay is currently visible (active during drag/settling). */
4
4
  visible: boolean;
@@ -1,4 +1,4 @@
1
- import { MotionValue } from 'framer-motion';
1
+ import { MotionValue } from 'motion/react';
2
2
  import { ResizePhysicsConfig } from './resizePhysics';
3
3
  export type ResizeState = 'idle' | 'dwelling' | 'handle-visible' | 'dragging' | 'settling' | 'cancelled';
4
4
  export type ResizeDirection = 'grow' | 'shrink';
@@ -20,7 +20,9 @@
20
20
  *
21
21
  * Requirement mapping:
22
22
  * GEV-02 — paletteHex / paletteVars / STROKE_DASHED / STROKE_SOLID /
23
- * STROKE_SPARSE_DASH / STROKE_OUTLINE / PaletteToken
23
+ * STROKE_SPARSE_DASH / STROKE_OUTLINE /
24
+ * STROKE_DASHED_DASHARRAY / STROKE_SPARSE_DASH_DASHARRAY /
25
+ * PaletteToken
24
26
  *
25
27
  * Structural precedent: ./gridMotionPrimitives.ts §colorTokens (lines 79-87).
26
28
  */
@@ -58,5 +60,13 @@ export declare const STROKE_SOLID: "solid";
58
60
  export declare const STROKE_SPARSE_DASH: "sparse-dash";
59
61
  /** D-09 — Tracking-outline 2px no-fill pattern. */
60
62
  export declare const STROKE_OUTLINE: "2px no-fill";
63
+ /** Quick 260503-dac — D-04 eligibility dashed pattern dasharray (matches spec
64
+ * D-04 §Specification — eligibility border #6F87D2, 1.5px, dasharray 6 4). */
65
+ export declare const STROKE_DASHED_DASHARRAY: "6 4";
66
+ /** Quick 260503-dac — R-11 rejection sparse-dash dasharray (matches spec
67
+ * R-11 §B — rejection stroke #BB2A39, 3px, dasharray 10 6). Distinct from
68
+ * the eligibility 6/4 pattern so users can perceive the reject state without
69
+ * relying on hue alone (colorblind-safe redundancy). */
70
+ export declare const STROKE_SPARSE_DASH_DASHARRAY: "10 6";
61
71
  /** GEV-02 — Derived from paletteHex via typeof; symmetric with paletteVars. */
62
72
  export type PaletteToken = keyof typeof paletteHex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mt-gloss/ui",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
@@ -63,7 +63,7 @@
63
63
  "@mt-gloss/utils": ">=0.0.1",
64
64
  "@mt-gloss/motion": ">=0.0.1",
65
65
  "@floating-ui/react": ">=0.27.0",
66
- "framer-motion": ">=12.0.0",
66
+ "motion": ">=12.0.0",
67
67
  "zod": "^4.0.0"
68
68
  },
69
69
  "peerDependenciesMeta": {
@@ -106,7 +106,7 @@
106
106
  "@floating-ui/react": {
107
107
  "optional": true
108
108
  },
109
- "framer-motion": {
109
+ "motion": {
110
110
  "optional": true
111
111
  },
112
112
  "zod": {