react-magma-dom 5.3.1-v5-next.0 → 5.3.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 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 5.3.1-v5-next.0)
6
+ # React Magma (react-magma-dom 5.3.1)
7
7
 
8
- Accessible React component library. This guide is generated for react-magma-dom 5.3.1-v5-next.0, which requires React ^18.3.1.
8
+ Accessible React component library. This guide is generated for react-magma-dom 5.3.1, which requires React ^18.3.1.
9
9
 
10
10
  ## How to use this guide
11
11
 
@@ -31,13 +31,13 @@ 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`. Charts also need `import '@react-magma/charts/dist/charts.css'` once.
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
 
38
38
  ## Catalog
39
39
 
40
- Format: **Folder** — purpose (search words). Not for: need → better component. Also: related exports. Exports not listed are internal helpers.
40
+ Format: **Entry** — purpose (search words). Not for: need → better component. Also: related exports. Exports not listed are internal helpers.
41
41
 
42
42
  ### Actions
43
43
  - **Button** — Performs an action or submits a form (button, cta, submit, primary action). Not for: navigation → Hyperlink; icon only → IconButton; on/off setting → Toggle. Also: ButtonColor, ButtonShape, ButtonSize, ButtonTextTransform, ButtonType, ButtonVariant
@@ -112,7 +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
- - **Typography** — Low-level typography primitive for custom text styles (typography, text style, styled text). Not for: semantic heading → Heading; paragraph → Paragraph. Also: TypographyColor, TypographyContextVariant, TypographyVisualStyle
115
+ - **Typography enums** — Exported text style options for Heading and Paragraph; the Typography component is internal (typography, text style, styled text). Also: TypographyColor, TypographyContextVariant, TypographyVisualStyle
116
116
  - **Heading** — Headings h1–h6 (`level`), style set separately (heading, title, h1, h2)
117
117
  - **Paragraph** — Body text with typography styles (paragraph, body text, text, copy)
118
118
  - **List** — Ordered or unordered list, optional icons (list, bullet list, numbered list). Also: IconAlignment, IconSizes, ListItem
@@ -5,7 +5,7 @@ Use this page before writing layout, typography or custom styles. React Magma is
5
5
  ## Choose components first
6
6
 
7
7
  - Render standalone headings through `Heading` and paragraphs through `Paragraph`. Choose semantic heading levels independently of `TypographyVisualStyle`. If a component already supplies typography through a title, header, description or label prop, use that API without nesting another heading or paragraph inside it. For example, `Modal.header` already renders a `Heading`.
8
- - Use `Typography` or supported typography variants for other styled text. Do not replace fonts or recreate typography with raw headings, paragraphs, CSS font rules or remote font imports.
8
+ - Use supported typography props on `Heading`, `Paragraph` and other components. For text that their APIs do not cover, use accessible native markup with active theme tokens. Do not import the internal `Typography` component or replace fonts with remote font imports.
9
9
  - Use `Container`, `Flex`, `Grid`, `Spacer` and `Card` for the layout and surfaces they support. `Flex` requires `behavior`; direction, alignment and other variants use exported enums. Check each component's actual props before use.
10
10
  - Use available widgets such as `Table`, `Tabs`, `Pagination`, `Accordion`, `Tooltip` and `EmptyState` instead of styling and maintaining custom equivalents. Use Magma controls, feedback and icons where supported.
11
11
  - Keep native semantic elements such as `main`, `nav`, `section` and `form` where needed. Do not use paragraph typography for control labels; use the control's label API. Avoid wrappers that break valid table/list markup or semantics.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-magma-dom",
3
- "version": "5.3.1-v5-next.0",
3
+ "version": "5.3.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://react-magma.cengage.com",