@ai-matrx/design-system 0.7.1 → 0.9.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/CHANGELOG.md +119 -0
- package/README.md +4 -2
- package/dist/index.cjs +685 -593
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +119 -8
- package/dist/index.d.ts +119 -8
- package/dist/index.js +685 -593
- package/dist/index.js.map +1 -1
- package/dist/styles.css +76 -0
- package/package.json +2 -1
package/dist/styles.css
CHANGED
|
@@ -154,6 +154,82 @@
|
|
|
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
|
+
|
|
193
|
+
/* Collapsible open/close. The SAME rule as the accordion above and a separate
|
|
194
|
+
one on purpose: Radix publishes a DIFFERENT measured variable per primitive
|
|
195
|
+
(`--radix-collapsible-content-height`), and the whole reason this ships here
|
|
196
|
+
is that two matrx-frontend collapsibles reached for the ACCORDION keyframes
|
|
197
|
+
and therefore interpolated to a variable that is never set on a collapsible
|
|
198
|
+
— no animation, no error, for as long as they existed (census row 19f).
|
|
199
|
+
Six more used host-only `slide-down`/`slide-up` keyframes that were keyed
|
|
200
|
+
correctly and existed in exactly one app's globals.css: the same C26 silent
|
|
201
|
+
host contract, wearing a working coat. One duration (200ms) for both
|
|
202
|
+
primitives, so a collapsible and an accordion on the same screen agree.
|
|
203
|
+
Colourless and inert until an element carries the class. */
|
|
204
|
+
@keyframes matrx-collapsible-down {
|
|
205
|
+
from {
|
|
206
|
+
height: 0;
|
|
207
|
+
}
|
|
208
|
+
to {
|
|
209
|
+
height: var(--radix-collapsible-content-height);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
@keyframes matrx-collapsible-up {
|
|
213
|
+
from {
|
|
214
|
+
height: var(--radix-collapsible-content-height);
|
|
215
|
+
}
|
|
216
|
+
to {
|
|
217
|
+
height: 0;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
.matrx-collapsible-content[data-state="open"] {
|
|
221
|
+
animation: matrx-collapsible-down 200ms ease-out;
|
|
222
|
+
}
|
|
223
|
+
.matrx-collapsible-content[data-state="closed"] {
|
|
224
|
+
animation: matrx-collapsible-up 200ms ease-out;
|
|
225
|
+
}
|
|
226
|
+
@media (prefers-reduced-motion: reduce) {
|
|
227
|
+
.matrx-collapsible-content[data-state="open"],
|
|
228
|
+
.matrx-collapsible-content[data-state="closed"] {
|
|
229
|
+
animation: none;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
157
233
|
/* ────────────────────────────────────────────────────────────────────────
|
|
158
234
|
Scroll fade — the "there is more below" cue. UNLAYERED on purpose.
|
|
159
235
|
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.
|
|
3
|
+
"version": "0.9.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",
|