react-magma-dom 7.1.0-next.20 → 7.1.0-next.21

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.
Files changed (2) hide show
  1. package/ai/SKILL.md +3 -2
  2. 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 7.1.0-next.20)
6
+ # React Magma (react-magma-dom 7.1.0-next.21)
7
7
 
8
- Accessible React component library. This guide is generated for react-magma-dom 7.1.0-next.20, which requires React ^18.3.1.
8
+ Accessible React component library. This guide is generated for react-magma-dom 7.1.0-next.21, which requires React ^18.3.1.
9
9
 
10
10
  ## How to use this guide
11
11
 
@@ -24,6 +24,7 @@ Accessible React component library. This guide is generated for react-magma-dom
24
24
 
25
25
  ## Library conventions
26
26
 
27
+ - Omit optional props when the desired value is already the component default. Verify defaults in the installed version's declarations, JSDoc or implementation before omitting them. Set props explicitly when overriding a default; keep required props and explicit values needed to override inherited context.
27
28
  - Import from the package root: `import { Button, ButtonColor } from 'react-magma-dom'`.
28
29
  - Variants are exported enums (`ButtonColor.secondary`, `ModalSize.large`).
29
30
  - Dark backgrounds: `isInverse` prop, or `<InverseContext.Provider value={{ isInverse: true }}>` for a region.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-magma-dom",
3
- "version": "7.1.0-next.20",
3
+ "version": "7.1.0-next.21",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://react-magma.cengage.com",