react-magma-dom 4.6.0-next.9 → 4.6.0
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/dist/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/components/List/List.d.ts +0 -6
- package/dist/components/List/List.stories.d.ts +62 -1
- package/dist/components/List/ListItem.d.ts +8 -0
- package/dist/components/TreeView/useTreeView.d.ts +2 -2
- package/dist/esm/index.js +460 -34
- package/dist/esm/index.js.map +1 -1
- package/dist/properties.json +26 -42
- package/dist/react-magma-dom.cjs.development.js +398 -33
- 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/dist/theme/components/reducedMotionTransition.d.ts +10 -0
- package/package.json +3 -3
|
@@ -8,7 +8,7 @@ export interface BreadcrumbItemProps extends React.HTMLAttributes<HTMLLIElement>
|
|
|
8
8
|
*/
|
|
9
9
|
testId?: string;
|
|
10
10
|
/**
|
|
11
|
-
* The
|
|
11
|
+
* The URL for the link. If not provided, the breadcrumb item will display as a non-clickable element with aria-current="page".
|
|
12
12
|
*/
|
|
13
13
|
to?: string;
|
|
14
14
|
}
|
|
@@ -5,15 +5,10 @@ import { TypographyVisualStyle } from '../Typography';
|
|
|
5
5
|
* @children required
|
|
6
6
|
*/
|
|
7
7
|
export interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
description?: boolean;
|
|
9
8
|
/**
|
|
10
9
|
* Allows an ordered list to start at a determined value of a letter or number.
|
|
11
10
|
*/
|
|
12
11
|
hasStart?: string;
|
|
13
|
-
/**
|
|
14
|
-
* For use with inline icons within list items.
|
|
15
|
-
*/
|
|
16
|
-
icon?: React.ReactElement<any> | React.ReactElement<any>[];
|
|
17
12
|
/**
|
|
18
13
|
* Aligns the icon at the top, or center of each list item.
|
|
19
14
|
* @default IconAlignment.center
|
|
@@ -79,5 +74,4 @@ export declare enum olListType {
|
|
|
79
74
|
}
|
|
80
75
|
export declare function getIconSizes(props: any): any;
|
|
81
76
|
export declare function getListAlignment(props: any): "center" | "flex-start";
|
|
82
|
-
export declare function getListDisplay(props: any): "grid" | "list-item";
|
|
83
77
|
export declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,64 @@
|
|
|
1
|
+
import { ulListType } from './List';
|
|
2
|
+
import { TypographyVisualStyle } from '../Typography';
|
|
1
3
|
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
|
|
2
4
|
export default _default;
|
|
3
|
-
export declare const
|
|
5
|
+
export declare const Simple: {
|
|
6
|
+
(args: any): JSX.Element;
|
|
7
|
+
args: {
|
|
8
|
+
spacingStyle: string;
|
|
9
|
+
isOrdered: boolean;
|
|
10
|
+
isReversed: boolean;
|
|
11
|
+
isInverse: boolean;
|
|
12
|
+
visualStyle: TypographyVisualStyle;
|
|
13
|
+
listType: ulListType;
|
|
14
|
+
};
|
|
15
|
+
parameters: {
|
|
16
|
+
controls: {
|
|
17
|
+
exclude: string[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const UnorderedList: {
|
|
22
|
+
(args: any): JSX.Element;
|
|
23
|
+
args: {
|
|
24
|
+
spacingStyle: string;
|
|
25
|
+
isOrdered: boolean;
|
|
26
|
+
};
|
|
27
|
+
parameters: {
|
|
28
|
+
controls: {
|
|
29
|
+
exclude: string[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const OrderedList: {
|
|
34
|
+
(args: any): JSX.Element;
|
|
35
|
+
args: {
|
|
36
|
+
spacingStyle: string;
|
|
37
|
+
isOrdered: boolean;
|
|
38
|
+
hasStart: number;
|
|
39
|
+
};
|
|
40
|
+
parameters: {
|
|
41
|
+
controls: {
|
|
42
|
+
exclude: string[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const WithLinks: {
|
|
47
|
+
(args: any): JSX.Element;
|
|
48
|
+
parameters: {
|
|
49
|
+
controls: {
|
|
50
|
+
exclude: string[];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export declare const WithIcons: {
|
|
55
|
+
(args: any): JSX.Element;
|
|
56
|
+
args: {
|
|
57
|
+
spacingStyle: string;
|
|
58
|
+
};
|
|
59
|
+
parameters: {
|
|
60
|
+
controls: {
|
|
61
|
+
exclude: string[];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -5,6 +5,14 @@ import { magma } from '../../theme/magma';
|
|
|
5
5
|
* @children required
|
|
6
6
|
*/
|
|
7
7
|
export interface ListItemProps extends ListProps, React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
/**
|
|
9
|
+
* Boolean which changes a list item into a styled paragraph.
|
|
10
|
+
*/
|
|
11
|
+
description?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* For use with inline icons within list items.
|
|
14
|
+
*/
|
|
15
|
+
icon?: React.ReactElement<any> | React.ReactElement<any>[];
|
|
8
16
|
/**
|
|
9
17
|
* Option for changing icon background with all Magma colors.
|
|
10
18
|
*/
|
|
@@ -48,7 +48,7 @@ export interface UseTreeViewProps {
|
|
|
48
48
|
* Return an array of objects.
|
|
49
49
|
* Example: [ {itemId: 'item0', checkedStatus: IndeterminateCheckboxStatus.indeterminate}, {itemId: 'item0-child', checkedStatus: IndeterminateCheckboxStatus.checked} ]
|
|
50
50
|
*/
|
|
51
|
-
onSelectedItemChange?: (selectedItems: Array<
|
|
51
|
+
onSelectedItemChange?: (selectedItems: Array<TreeItemSelectedInterface>) => void;
|
|
52
52
|
/**
|
|
53
53
|
* Only affects if selectable mode is TreeViewSelectable.multi.
|
|
54
54
|
* Determines if the parent checkbox will get selected when the user selects all its children checkboxes.
|
|
@@ -68,7 +68,7 @@ export declare function useTreeView(props: UseTreeViewProps): {
|
|
|
68
68
|
contextValue: {
|
|
69
69
|
hasIcons: boolean;
|
|
70
70
|
itemToFocus: any;
|
|
71
|
-
onSelectedItemChange: (selectedItems:
|
|
71
|
+
onSelectedItemChange: (selectedItems: TreeItemSelectedInterface[]) => void;
|
|
72
72
|
onExpandedChange: (event: React.SyntheticEvent<Element, Event>) => void;
|
|
73
73
|
selectable: TreeViewSelectable;
|
|
74
74
|
setHasIcons: React.Dispatch<React.SetStateAction<boolean>>;
|