@ai-matrx/design-system 0.7.0 → 0.8.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
@@ -154,6 +154,42 @@
154
154
  }
155
155
  }
156
156
 
157
+ /* Accordion open/close. Ships HERE, in the package, because the matrx-frontend
158
+ original animated with `animate-accordion-down`/`-up` — utility names that
159
+ only exist in a host `tailwind.config.js`. Any consumer without that config
160
+ got a silently unanimated component and no error (C26, the styling
161
+ contract). Radix measures the panel and publishes
162
+ `--radix-accordion-content-height`; the keyframes just interpolate to it.
163
+ Colourless and inert until an element carries the class. */
164
+ @keyframes matrx-accordion-down {
165
+ from {
166
+ height: 0;
167
+ }
168
+ to {
169
+ height: var(--radix-accordion-content-height);
170
+ }
171
+ }
172
+ @keyframes matrx-accordion-up {
173
+ from {
174
+ height: var(--radix-accordion-content-height);
175
+ }
176
+ to {
177
+ height: 0;
178
+ }
179
+ }
180
+ .matrx-accordion-content[data-state="open"] {
181
+ animation: matrx-accordion-down 200ms ease-out;
182
+ }
183
+ .matrx-accordion-content[data-state="closed"] {
184
+ animation: matrx-accordion-up 200ms ease-out;
185
+ }
186
+ @media (prefers-reduced-motion: reduce) {
187
+ .matrx-accordion-content[data-state="open"],
188
+ .matrx-accordion-content[data-state="closed"] {
189
+ animation: none;
190
+ }
191
+ }
192
+
157
193
  /* ────────────────────────────────────────────────────────────────────────
158
194
  Scroll fade — the "there is more below" cue. UNLAYERED on purpose.
159
195
  Driven by `useScrollFade`, which sets the data attributes ONLY on edges
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/design-system",
3
- "version": "0.7.0",
3
+ "version": "0.8.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,6 +36,7 @@
36
36
  "./package.json": "./package.json"
37
37
  },
38
38
  "dependencies": {
39
+ "@radix-ui/react-accordion": "^1.2.14",
39
40
  "@radix-ui/react-alert-dialog": "^1.1.17",
40
41
  "@radix-ui/react-avatar": "^1.2.6",
41
42
  "@radix-ui/react-checkbox": "^1.3.11",