react-magma-dom 4.17.1-v4-next.0 → 4.17.1
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/ai/SKILL.md +4 -5
- package/package.json +1 -1
package/ai/SKILL.md
CHANGED
|
@@ -3,9 +3,9 @@ name: react-magma
|
|
|
3
3
|
description: Use when writing or editing React UI in a project that depends on react-magma-dom (Cengage's accessible component library) — finding the right component, its props, theming, inverse surfaces, icons and accessibility.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# React Magma (react-magma-dom 4.17.1
|
|
6
|
+
# React Magma (react-magma-dom 4.17.1)
|
|
7
7
|
|
|
8
|
-
Accessible React component library. This guide is generated for react-magma-dom 4.17.1
|
|
8
|
+
Accessible React component library. This guide is generated for react-magma-dom 4.17.1, which requires React ^17.0.2.
|
|
9
9
|
|
|
10
10
|
## How to use this guide
|
|
11
11
|
|
|
@@ -31,7 +31,7 @@ Accessible React component library. This guide is generated for react-magma-dom
|
|
|
31
31
|
- Accessibility is built in: form fields take `labelText`, icon-only buttons require `aria-label`, `Heading` takes a semantic `level`.
|
|
32
32
|
- `Hyperlink` takes `to`, not `href`.
|
|
33
33
|
- When an icon is needed, look for it in `react-magma-icons` first and verify its exported name and props in the installed package. Import from `react-magma-icons`; don't draw a replacement or use another icon library unless the project specifically requires it.
|
|
34
|
-
- Charts and file upload ship as separate packages, listed under Add-on packages with their package name. If the package is not installed, propose installing it and ask first. Read its declarations under `node_modules/<package>/dist`.
|
|
34
|
+
- Charts and file upload ship as separate packages, listed under Add-on packages with their package name. If the package is not installed, propose installing it and ask first. Read its declarations under `node_modules/<package>/dist`.
|
|
35
35
|
|
|
36
36
|
Theme, i18n, and other package-level APIs: [setup-guide.md](setup-guide.md).
|
|
37
37
|
|
|
@@ -112,8 +112,7 @@ Format: **Folder** — purpose (search words). Not for: need → better componen
|
|
|
112
112
|
- **HideAtBreakpoint** — Hide content above or below a breakpoint (hide on mobile, hide on desktop, responsive visibility). Also: HideAtBreakpointDisplayType
|
|
113
113
|
|
|
114
114
|
### Content and data
|
|
115
|
-
- **
|
|
116
|
-
- **Heading** — Headings h1–h6 (`level`), style set separately (heading, title, h1, h2)
|
|
115
|
+
- **Heading** — Headings h1–h6 (`level`), style set separately (heading, title, h1, h2, typography). Also: TypographyColor, TypographyContextVariant, TypographyVisualStyle
|
|
117
116
|
- **Paragraph** — Body text with typography styles (paragraph, body text, text, copy)
|
|
118
117
|
- **List** — Ordered or unordered list, optional icons (list, bullet list, numbered list). Also: IconAlignment, IconSizes, ListItem
|
|
119
118
|
- **DefinitionList** — Term/description pairs (definition list, key value, details list, dl). Also: DefinitionListItem, DefinitionListType
|