react-magma-dom 7.1.0-next.15 → 7.1.0-next.17
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 +2 -2
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/EmptyState/styles.d.ts +5 -0
- package/dist/components/IndeterminateCheckbox/index.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Stepper/Step.d.ts +3 -1
- package/dist/components/Table/TableHeaderCell.d.ts +2 -1
- package/dist/components/Toggle/index.d.ts +1 -1
- package/dist/esm/index.js +216 -214
- package/dist/esm/index.js.map +1 -1
- package/dist/properties.json +7 -7
- package/dist/react-magma-dom.cjs.development.js +213 -211
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- 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.
|
|
6
|
+
# React Magma (react-magma-dom 7.1.0-next.17)
|
|
7
7
|
|
|
8
|
-
Accessible React component library. This guide is generated for react-magma-dom 7.1.0-next.
|
|
8
|
+
Accessible React component library. This guide is generated for react-magma-dom 7.1.0-next.17, which requires React ^18.3.1.
|
|
9
9
|
|
|
10
10
|
## How to use this guide
|
|
11
11
|
|
|
@@ -60,7 +60,7 @@ export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElemen
|
|
|
60
60
|
*/
|
|
61
61
|
testId?: string;
|
|
62
62
|
/**
|
|
63
|
-
* Whether the label appears to the left
|
|
63
|
+
* Whether the label appears to the left or the right of the checkbox
|
|
64
64
|
* @default CheckboxTextPosition.right
|
|
65
65
|
*/
|
|
66
66
|
textPosition?: CheckboxTextPosition;
|
|
@@ -10,6 +10,11 @@ export declare function getIllustrationIconColor(props: {
|
|
|
10
10
|
isInverse?: boolean;
|
|
11
11
|
theme: ThemeInterface;
|
|
12
12
|
}): string;
|
|
13
|
+
export declare function getLoadingSpinnerColor(props: {
|
|
14
|
+
isDanger?: boolean;
|
|
15
|
+
isInverse?: boolean;
|
|
16
|
+
theme: ThemeInterface;
|
|
17
|
+
}): string;
|
|
13
18
|
export declare const StyledEmptyState: import("@emotion/styled").StyledComponent<{
|
|
14
19
|
theme?: import("@emotion/react").Theme;
|
|
15
20
|
as?: import("react").ElementType<any, "symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view">;
|
|
@@ -3,7 +3,7 @@ import { Omit } from '../../utils';
|
|
|
3
3
|
import { CheckboxProps } from '../Checkbox';
|
|
4
4
|
export interface IndeterminateCheckboxProps extends Omit<CheckboxProps, 'checked'> {
|
|
5
5
|
/**
|
|
6
|
-
* Status of the indeterminate, three-state checkbox, which includes
|
|
6
|
+
* Status of the indeterminate, three-state checkbox, which includes an indeterminate (e.g. mixed) option.
|
|
7
7
|
* @default IndeterminateCheckboxStatus.unchecked
|
|
8
8
|
*/
|
|
9
9
|
status: IndeterminateCheckboxStatus;
|
|
@@ -40,7 +40,7 @@ export interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
40
40
|
*/
|
|
41
41
|
testId?: string;
|
|
42
42
|
/**
|
|
43
|
-
* Whether the label appears to the left
|
|
43
|
+
* Whether the label appears to the left or the right of the radio button
|
|
44
44
|
* @default RadioTextPosition.right
|
|
45
45
|
*/
|
|
46
46
|
textPosition?: RadioTextPosition;
|
|
@@ -55,6 +55,8 @@ export declare enum StepStatus {
|
|
|
55
55
|
}
|
|
56
56
|
export declare const HiddenLabelText: import("@emotion/styled").StyledComponent<{
|
|
57
57
|
theme?: import("@emotion/react").Theme;
|
|
58
|
-
as?: React.ElementType<any, "symbol" | "object" | "label" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view">;
|
|
58
|
+
as?: React.ElementType<any, "symbol" | "object" | "label" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view">; /**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
59
61
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
60
62
|
export declare const Step: React.ForwardRefExoticComponent<StepProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -34,7 +34,8 @@ export interface TableHeaderCellProps extends React.HTMLAttributes<HTMLTableCell
|
|
|
34
34
|
*/
|
|
35
35
|
testId?: string;
|
|
36
36
|
/**
|
|
37
|
-
* Width of the component, set by CSS
|
|
37
|
+
* Width of the component, set by CSS. Header text wraps onto multiple lines
|
|
38
|
+
* when it exceeds the column width.
|
|
38
39
|
* @default auto
|
|
39
40
|
*/
|
|
40
41
|
width?: string | number;
|
|
@@ -46,7 +46,7 @@ export interface ToggleProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
46
46
|
*/
|
|
47
47
|
testId?: string;
|
|
48
48
|
/**
|
|
49
|
-
* Whether the label appears to the left
|
|
49
|
+
* Whether the label appears to the left or the right of the toggle switch
|
|
50
50
|
* @default ToggleTextPosition.left
|
|
51
51
|
*/
|
|
52
52
|
textPosition?: ToggleTextPosition;
|