react-magma-dom 7.1.0-next.14 → 7.1.0-next.16

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 7.1.0-next.14)
6
+ # React Magma (react-magma-dom 7.1.0-next.16)
7
7
 
8
- Accessible React component library. This guide is generated for react-magma-dom 7.1.0-next.14, which requires React ^18.3.1.
8
+ Accessible React component library. This guide is generated for react-magma-dom 7.1.0-next.16, 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 of the right of the checkbox
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;
@@ -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 and indeterminate (e.g. mixed) option.
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 of the right of the radio button
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;
@@ -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 of the right of the toggle switch
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;
@@ -7,9 +7,9 @@ export interface TreeViewProps extends Omit<React.HTMLAttributes<HTMLUListElemen
7
7
  */
8
8
  enableVirtualization?: boolean;
9
9
  /**
10
- * Height of the TreeView container in pixels.
11
- * REQUIRED when enableVirtualization is true.
12
- * Without a fixed height, virtualization cannot calculate the viewport properly.
10
+ * Height of the scrollable TreeView container in pixels.
11
+ * When enableVirtualization is true, provide this prop or a bounded CSS
12
+ * height with overflow: auto so virtualization can calculate the viewport.
13
13
  * @example height={400}
14
14
  */
15
15
  height?: number;
@@ -210,6 +210,27 @@ export declare const VirtualizedLargeTree: {
210
210
  enableVirtualization: boolean;
211
211
  };
212
212
  };
213
+ export declare const ResizableVirtualizedTree: {
214
+ render: ({ lessonsPerChapter, ...args }: TreeViewProps & {
215
+ lessonsPerChapter: number;
216
+ }) => React.JSX.Element;
217
+ args: {
218
+ ariaLabel: string;
219
+ enableVirtualization: boolean;
220
+ initialExpandedItems: string[];
221
+ testId: string;
222
+ lessonsPerChapter: number;
223
+ };
224
+ argTypes: {
225
+ lessonsPerChapter: {
226
+ control: {
227
+ type: string;
228
+ min: number;
229
+ max: number;
230
+ };
231
+ };
232
+ };
233
+ };
213
234
  export declare const SelectChildrenOnly: {
214
235
  render: (args: TreeViewProps) => React.JSX.Element;
215
236
  args: {