react-magma-dom 4.9.0-next.11 → 4.9.0-next.13

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.
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ListProps } from '../List';
3
+ /**
4
+ * @children required
5
+ */
6
+ export interface DefinitionListProps extends Pick<ListProps, 'isInverse' | 'testId' | 'theme' | 'visualStyle'>, React.HTMLAttributes<HTMLDListElement> {
7
+ }
8
+ export declare const DefinitionList: React.ForwardRefExoticComponent<DefinitionListProps & React.RefAttributes<HTMLDListElement>>;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { DefinitionListProps } from './DefinitionList';
3
+ export declare enum DefinitionListType {
4
+ /**
5
+ * Represents the term in a definition list.
6
+ * Will be wrapped in a <dt> (definition term) tag.
7
+ */
8
+ term = "term",
9
+ /**
10
+ * Represents the description of a term.
11
+ * Will be wrapped in a <dd> (definition description) tag.
12
+ */
13
+ description = "description"
14
+ }
15
+ export interface DefinitionListItemProps extends DefinitionListProps, React.HTMLAttributes<HTMLDListElement> {
16
+ /**
17
+ * Types of definition list element.
18
+ * term: uses a <dt> (definition term) tag
19
+ * description: uses a <dd> (definition description) tag
20
+ */
21
+ type: DefinitionListType;
22
+ }
23
+ export declare const DefinitionListItem: React.ForwardRefExoticComponent<DefinitionListItemProps & React.RefAttributes<HTMLDListElement>>;
@@ -0,0 +1,2 @@
1
+ export * from './DefinitionList';
2
+ export * from './DefinitionListItem';
@@ -6,6 +6,8 @@ import { ListProps } from './';
6
6
  */
7
7
  export interface ListItemProps extends ListProps, React.HTMLAttributes<HTMLDivElement> {
8
8
  /**
9
+ * @deprecated = true
10
+ * Please use DefinitionList instead
9
11
  * Boolean which changes a list item into a styled paragraph.
10
12
  */
11
13
  description?: boolean;