react-magma-dom 7.1.0-next.2 → 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 (39) hide show
  1. package/ai/SKILL.md +143 -0
  2. package/ai/setup-guide.md +44 -0
  3. package/ai/styling-guide.md +89 -0
  4. package/dist/components/Checkbox/index.d.ts +1 -1
  5. package/dist/components/Combobox/Combobox.stories.d.ts +47 -1
  6. package/dist/components/Dropdown/Dropdown.d.ts +2 -0
  7. package/dist/components/EmptyState/styles.d.ts +5 -0
  8. package/dist/components/IndeterminateCheckbox/index.d.ts +1 -1
  9. package/dist/components/Modal/Modal.stories.d.ts +1 -0
  10. package/dist/components/Pagination/PageButton.d.ts +2 -0
  11. package/dist/components/Pagination/Pagination.d.ts +5 -0
  12. package/dist/components/Pagination/Pagination.stories.d.ts +29 -0
  13. package/dist/components/Pagination/usePagination.d.ts +1 -0
  14. package/dist/components/Pagination/utils.d.ts +1 -0
  15. package/dist/components/Radio/index.d.ts +1 -1
  16. package/dist/components/Select/ItemsList.d.ts +1 -1
  17. package/dist/components/Select/Select.stories.d.ts +43 -1
  18. package/dist/components/Select/utils.d.ts +3 -0
  19. package/dist/components/Stepper/Step.d.ts +3 -1
  20. package/dist/components/Table/Table.stories.d.ts +30 -0
  21. package/dist/components/Table/TableHeaderCell.d.ts +2 -1
  22. package/dist/components/Tabs/Tabs.stories.d.ts +47 -0
  23. package/dist/components/Tagline/Tagline.stories.d.ts +9 -0
  24. package/dist/components/Tagline/index.d.ts +21 -0
  25. package/dist/components/Toggle/index.d.ts +1 -1
  26. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
  27. package/dist/components/TreeView/TreeView.d.ts +3 -3
  28. package/dist/components/TreeView/TreeView.stories.d.ts +21 -0
  29. package/dist/esm/index.js +843 -403
  30. package/dist/esm/index.js.map +1 -1
  31. package/dist/i18n/interface.d.ts +3 -0
  32. package/dist/index.d.ts +2 -0
  33. package/dist/properties.json +46 -8
  34. package/dist/react-magma-dom.cjs.development.js +836 -392
  35. package/dist/react-magma-dom.cjs.development.js.map +1 -1
  36. package/dist/react-magma-dom.cjs.production.min.js +1 -1
  37. package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
  38. package/dist/utils/index.d.ts +1 -0
  39. package/package.json +9 -5
@@ -192,3 +192,33 @@ export declare const ScrollableTable: {
192
192
  };
193
193
  };
194
194
  };
195
+ export declare const LargeTable: {
196
+ render: (args: any) => React.JSX.Element;
197
+ args: {
198
+ rowCount: number;
199
+ memoizeRows: boolean;
200
+ tableTitle: string;
201
+ };
202
+ argTypes: {
203
+ rowCount: {
204
+ control: {
205
+ type: string;
206
+ };
207
+ };
208
+ memoizeRows: {
209
+ control: {
210
+ type: string;
211
+ };
212
+ };
213
+ };
214
+ parameters: {
215
+ a11y: {
216
+ disable: boolean;
217
+ };
218
+ docs: {
219
+ description: {
220
+ story: string;
221
+ };
222
+ };
223
+ };
224
+ };
@@ -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;
@@ -12,6 +12,53 @@ export declare const Default: {
12
12
  };
13
13
  };
14
14
  };
15
+ export declare const FullWidth: {
16
+ render: any;
17
+ args: {
18
+ isFullWidth: boolean;
19
+ };
20
+ parameters: {
21
+ controls: {
22
+ exclude: string[];
23
+ };
24
+ };
25
+ };
26
+ export declare const LongLabels: {
27
+ render: any;
28
+ args: {
29
+ isFullWidth: boolean;
30
+ };
31
+ parameters: {
32
+ controls: {
33
+ exclude: string[];
34
+ };
35
+ };
36
+ };
37
+ export declare const LongLabelsWithIcons: {
38
+ render: any;
39
+ args: {
40
+ iconPosition: TabsIconPosition;
41
+ isFullWidth: boolean;
42
+ };
43
+ };
44
+ export declare const Vertical: {
45
+ render: any;
46
+ args: {
47
+ orientation: TabsOrientation;
48
+ };
49
+ parameters: {
50
+ controls: {
51
+ exclude: string[];
52
+ };
53
+ };
54
+ };
55
+ export declare const VerticalWithIcons: {
56
+ render: any;
57
+ args: {
58
+ iconPosition: TabsIconPosition;
59
+ orientation: TabsOrientation;
60
+ };
61
+ };
15
62
  export declare const Icon: {
16
63
  render: any;
17
64
  args: {
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare const _default: any;
3
+ export default _default;
4
+ export declare const Default: {
5
+ render: (args: any) => React.JSX.Element;
6
+ };
7
+ export declare const Inverse: {
8
+ render: (args: any) => React.JSX.Element;
9
+ };
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ export interface TaglineProps extends React.HTMLAttributes<HTMLParagraphElement> {
3
+ /**
4
+ * @children required
5
+ */
6
+ children: React.ReactNode;
7
+ /**
8
+ * @internal
9
+ */
10
+ css?: any;
11
+ /**
12
+ * Uses the inverse text color for dark backgrounds
13
+ * @default false
14
+ */
15
+ isInverse?: boolean;
16
+ /**
17
+ * @internal
18
+ */
19
+ testId?: string;
20
+ }
21
+ export declare const Tagline: React.ForwardRefExoticComponent<TaglineProps & React.RefAttributes<HTMLParagraphElement>>;
@@ -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;
@@ -50,4 +50,5 @@ export declare const CustomStyles: {
50
50
  content: string;
51
51
  };
52
52
  };
53
+ export declare const IconButtonWithMatchingLabel: () => React.JSX.Element;
53
54
  export declare function Example(): React.JSX.Element;
@@ -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: {