@ai-matrx/design-system 0.4.2 → 0.5.0

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/dist/styles.css CHANGED
@@ -46,6 +46,37 @@
46
46
  box-shadow: var(--shadow-input);
47
47
  }
48
48
 
49
+ /* -----------------------------------------------------------------------
50
+ shadow-textarea — the Textarea family's resting elevation, the multi-line
51
+ twin of `.shadow-input` above and subject to the same Tailwind-utility
52
+ precedence note. The token defaults to `--shadow-input`; see tokens.css
53
+ for why this rule exists at all (the class had no definition anywhere).
54
+ ----------------------------------------------------------------------- */
55
+ .shadow-textarea {
56
+ box-shadow: var(--shadow-textarea);
57
+ }
58
+
59
+ /* -----------------------------------------------------------------------
60
+ matrx-progress-indeterminate — the sweep an INDETERMINATE Progress bar
61
+ wears. A determinate bar is positioned by an inline transform; an
62
+ indeterminate one has no position to state, and rendering it at 0% would
63
+ claim "not started" when the truth is "unknown". So it moves, and it looks
64
+ unmistakably different from a bar stalled at zero.
65
+
66
+ `prefers-reduced-motion` swaps the sweep for a static half-width bar —
67
+ still visibly not-a-value, without the animation.
68
+ ----------------------------------------------------------------------- */
69
+ .matrx-progress-indeterminate {
70
+ width: 40%;
71
+ animation: matrx-progress-sweep 1.4s ease-in-out infinite;
72
+ }
73
+ @media (prefers-reduced-motion: reduce) {
74
+ .matrx-progress-indeterminate {
75
+ animation: none;
76
+ width: 50%;
77
+ }
78
+ }
79
+
49
80
  /* -----------------------------------------------------------------------
50
81
  pb-safe — safe-area bottom padding (BottomSheet body/footer, CommandDialog
51
82
  mobile sheet). max() guarantees a minimum padding even when the inset is
@@ -91,6 +122,18 @@
91
122
  }
92
123
  }
93
124
 
125
+ /* Keyframes cannot live inside a cascade layer's rule set and be referenced
126
+ from it reliably across engines, so the indeterminate-progress sweep is
127
+ declared here. It defines no colour and touches no element on its own. */
128
+ @keyframes matrx-progress-sweep {
129
+ 0% {
130
+ transform: translateX(-100%);
131
+ }
132
+ 100% {
133
+ transform: translateX(250%);
134
+ }
135
+ }
136
+
94
137
  /* ────────────────────────────────────────────────────────────────────────
95
138
  Scroll fade — the "there is more below" cue. UNLAYERED on purpose.
96
139
  Driven by `useScrollFade`, which sets the data attributes ONLY on edges
package/dist/tokens.css CHANGED
@@ -80,6 +80,16 @@
80
80
  0px 2px 3px -1px rgba(0, 0, 0, 0.1), 0px 1px 0px 0px rgba(25, 28, 33, 0.02),
81
81
  0px 0px 0px 1px rgba(25, 28, 33, 0.08);
82
82
 
83
+ /* Textarea elevation — the multi-line twin of `--shadow-input`, consumed
84
+ by the `.shadow-textarea` rule in styles.css.
85
+
86
+ THIS TOKEN IS A CORRECTION, NOT A NEW OPINION. The ported Textarea asked
87
+ for `shadow-textarea` at every call site and NO host ever defined it or
88
+ generated the utility, so 125 fields rendered flat while their code said
89
+ otherwise. It defaults to the Input elevation, which is plainly what the
90
+ twin class meant. A host that wants the flat look sets it to `none`. */
91
+ --shadow-textarea: var(--shadow-input);
92
+
83
93
  /* Overlay scrims — the dimming behind Sheet / BottomSheet / CommandDialog.
84
94
  Separate from the colour roles on purpose: a scrim is a neutral
85
95
  darkening of whatever is behind it, not a brand colour. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/design-system",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "AI Matrx semantic React primitives shared across Vite, Next.js, desktop, and customer-built applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,19 +36,28 @@
36
36
  "./package.json": "./package.json"
37
37
  },
38
38
  "dependencies": {
39
- "@radix-ui/react-dialog": "^1.1.17",
40
- "@radix-ui/react-label": "^2.1.8",
41
- "@radix-ui/react-popover": "^1.1.17",
42
- "@radix-ui/react-select": "^2.3.1",
43
- "@radix-ui/react-separator": "^1.1.8",
44
- "@radix-ui/react-slot": "^1.2.4",
45
- "@radix-ui/react-visually-hidden": "^1.2.6",
39
+ "@radix-ui/react-avatar": "^1.2.6",
40
+ "@radix-ui/react-checkbox": "^1.3.11",
41
+ "@radix-ui/react-collapsible": "^1.1.20",
42
+ "@radix-ui/react-context-menu": "^2.3.7",
43
+ "@radix-ui/react-dialog": "^1.1.23",
44
+ "@radix-ui/react-dropdown-menu": "^2.1.24",
45
+ "@radix-ui/react-label": "^2.1.15",
46
+ "@radix-ui/react-popover": "^1.1.23",
47
+ "@radix-ui/react-progress": "^1.1.16",
48
+ "@radix-ui/react-scroll-area": "^1.2.18",
49
+ "@radix-ui/react-select": "^2.3.7",
50
+ "@radix-ui/react-separator": "^1.1.15",
51
+ "@radix-ui/react-slot": "^1.3.3",
52
+ "@radix-ui/react-switch": "^1.3.7",
53
+ "@radix-ui/react-tabs": "^1.1.21",
54
+ "@radix-ui/react-visually-hidden": "^1.2.11",
46
55
  "class-variance-authority": "^0.7.1",
47
56
  "clsx": "^2.1.1",
48
57
  "cmdk": "^1.1.1",
49
58
  "tailwind-merge": "^3.0.0",
50
59
  "vaul": "^1.1.2",
51
- "@ai-matrx/kit": "0.7.4"
60
+ "@ai-matrx/kit": "0.8.0"
52
61
  },
53
62
  "peerDependencies": {
54
63
  "react": ">=18.0.0",