@carbon/react 1.39.0-rc.0 → 1.40.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/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +2121 -857
- package/es/components/CodeSnippet/CodeSnippet.js +2 -2
- package/es/components/DataTable/TableSelectAll.js +1 -0
- package/es/components/DataTable/TableSelectRow.js +2 -1
- package/es/components/FileUploader/FileUploaderItem.d.ts +4 -0
- package/es/components/FileUploader/FileUploaderItem.js +32 -5
- package/es/components/FileUploader/Filename.js +2 -1
- package/es/components/MultiSelect/MultiSelect.d.ts +24 -0
- package/es/components/MultiSelect/MultiSelect.js +26 -0
- package/es/components/Search/Search.js +1 -1
- package/es/components/StructuredList/StructuredList.Skeleton.d.ts +32 -0
- package/es/components/StructuredList/StructuredList.Skeleton.js +16 -26
- package/es/components/StructuredList/StructuredList.d.ts +271 -0
- package/es/components/StructuredList/StructuredList.js +14 -33
- package/es/components/StructuredList/index.d.ts +8 -0
- package/es/components/UIShell/SideNavDivider.js +2 -2
- package/es/components/UIShell/SideNavLinkText.d.ts +26 -0
- package/es/components/UIShell/SideNavLinkText.js +1 -1
- package/es/components/UIShell/SideNavMenu.d.ts +46 -0
- package/es/components/UIShell/SideNavMenu.js +23 -13
- package/es/index.js +2 -2
- package/lib/components/CodeSnippet/CodeSnippet.js +2 -2
- package/lib/components/DataTable/TableSelectAll.js +1 -0
- package/lib/components/DataTable/TableSelectRow.js +2 -1
- package/lib/components/FileUploader/FileUploaderItem.d.ts +4 -0
- package/lib/components/FileUploader/FileUploaderItem.js +31 -4
- package/lib/components/FileUploader/Filename.js +2 -1
- package/lib/components/MultiSelect/MultiSelect.d.ts +24 -0
- package/lib/components/MultiSelect/MultiSelect.js +26 -0
- package/lib/components/Search/Search.js +1 -1
- package/lib/components/StructuredList/StructuredList.Skeleton.d.ts +32 -0
- package/lib/components/StructuredList/StructuredList.Skeleton.js +16 -26
- package/lib/components/StructuredList/StructuredList.d.ts +271 -0
- package/lib/components/StructuredList/StructuredList.js +14 -33
- package/lib/components/StructuredList/index.d.ts +8 -0
- package/lib/components/UIShell/SideNavDivider.js +2 -2
- package/lib/components/UIShell/SideNavLinkText.d.ts +26 -0
- package/lib/components/UIShell/SideNavLinkText.js +2 -2
- package/lib/components/UIShell/SideNavMenu.d.ts +46 -0
- package/lib/components/UIShell/SideNavMenu.js +23 -13
- package/lib/index.js +9 -9
- package/package.json +6 -5
|
@@ -229,13 +229,13 @@ CodeSnippet.propTypes = {
|
|
|
229
229
|
*/
|
|
230
230
|
align: PropTypes.oneOf(['top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right', 'left', 'right']),
|
|
231
231
|
/**
|
|
232
|
-
* Specify a label to be read by screen readers on the containing
|
|
232
|
+
* Specify a label to be read by screen readers on the containing textbox
|
|
233
233
|
* node
|
|
234
234
|
*/
|
|
235
235
|
['aria-label']: PropTypes.string,
|
|
236
236
|
/**
|
|
237
237
|
* Deprecated, please use `aria-label` instead.
|
|
238
|
-
* Specify a label to be read by screen readers on the containing
|
|
238
|
+
* Specify a label to be read by screen readers on the containing textbox
|
|
239
239
|
* node
|
|
240
240
|
*/
|
|
241
241
|
ariaLabel: deprecate(PropTypes.string, 'This prop syntax has been deprecated. Please use the new `aria-label`.'),
|
|
@@ -24,6 +24,7 @@ const TableSelectAll = _ref => {
|
|
|
24
24
|
} = _ref;
|
|
25
25
|
const prefix = usePrefix();
|
|
26
26
|
return /*#__PURE__*/React__default.createElement("th", {
|
|
27
|
+
"aria-live": "off",
|
|
27
28
|
scope: "col",
|
|
28
29
|
className: cx(`${prefix}--table-column-checkbox`, className)
|
|
29
30
|
}, /*#__PURE__*/React__default.createElement(InlineCheckbox, {
|
|
@@ -42,7 +42,8 @@ const TableSelectRow = _ref => {
|
|
|
42
42
|
[`${prefix}--table-column-radio`]: radio
|
|
43
43
|
});
|
|
44
44
|
return /*#__PURE__*/React__default.createElement("td", {
|
|
45
|
-
className: tableSelectRowClasses
|
|
45
|
+
className: tableSelectRowClasses,
|
|
46
|
+
"aria-live": "off"
|
|
46
47
|
}, /*#__PURE__*/React__default.createElement(InlineInputComponent, _extends({}, selectionInputProps, radio && {
|
|
47
48
|
labelText: ariaLabel,
|
|
48
49
|
hideLabel: true
|
|
@@ -28,6 +28,10 @@ export interface FileUploaderItemProps extends ReactAttr<HTMLSpanElement> {
|
|
|
28
28
|
* Name of the uploaded file
|
|
29
29
|
*/
|
|
30
30
|
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Event handler that is called after files are added to the uploader
|
|
33
|
+
*/
|
|
34
|
+
onAddFiles?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
31
35
|
/**
|
|
32
36
|
* Event handler that is called after removing a file from the file uploader
|
|
33
37
|
* The event handler signature looks like `onDelete(evt, { uuid })`
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import cx from 'classnames';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
|
-
import React__default, { useRef } from 'react';
|
|
11
|
+
import React__default, { useState, useRef, useLayoutEffect } from 'react';
|
|
12
12
|
import Filename from './Filename.js';
|
|
13
13
|
import uniqueId from '../../tools/uniqueId.js';
|
|
14
14
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
15
|
+
import '../Tooltip/DefinitionTooltip.js';
|
|
16
|
+
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
15
17
|
import { matches } from '../../internal/keyboard/match.js';
|
|
16
18
|
import { Enter, Space } from '../../internal/keyboard/keys.js';
|
|
17
19
|
|
|
@@ -28,6 +30,7 @@ function FileUploaderItem(_ref) {
|
|
|
28
30
|
size,
|
|
29
31
|
...other
|
|
30
32
|
} = _ref;
|
|
33
|
+
const [isEllipsisApplied, setIsEllipsisApplied] = useState(false);
|
|
31
34
|
const prefix = usePrefix();
|
|
32
35
|
const {
|
|
33
36
|
current: id
|
|
@@ -37,13 +40,37 @@ function FileUploaderItem(_ref) {
|
|
|
37
40
|
[`${prefix}--file__selected-file--md`]: size === 'md',
|
|
38
41
|
[`${prefix}--file__selected-file--sm`]: size === 'sm'
|
|
39
42
|
});
|
|
43
|
+
const isInvalid = invalid ? `${prefix}--file-filename-container-wrap-invalid` : `${prefix}--file-filename-container-wrap`;
|
|
44
|
+
const isEllipsisActive = element => {
|
|
45
|
+
setIsEllipsisApplied(element.offsetWidth < element.scrollWidth);
|
|
46
|
+
return element.offsetWidth < element.scrollWidth;
|
|
47
|
+
};
|
|
48
|
+
useLayoutEffect(() => {
|
|
49
|
+
const element = document.querySelector(`[title="${name}"]`);
|
|
50
|
+
isEllipsisActive(element);
|
|
51
|
+
}, [prefix, name]);
|
|
40
52
|
return /*#__PURE__*/React__default.createElement("span", _extends({
|
|
41
53
|
className: classes
|
|
42
|
-
}, other), /*#__PURE__*/React__default.createElement("
|
|
43
|
-
className:
|
|
54
|
+
}, other), isEllipsisApplied ? /*#__PURE__*/React__default.createElement("div", {
|
|
55
|
+
className: isInvalid
|
|
56
|
+
}, /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
57
|
+
label: name,
|
|
58
|
+
align: "bottom",
|
|
59
|
+
className: `${prefix}--file-filename-tooltip`
|
|
60
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
61
|
+
className: `${prefix}--file-filename-button`,
|
|
62
|
+
type: "button"
|
|
63
|
+
}, /*#__PURE__*/React__default.createElement("p", {
|
|
64
|
+
title: name,
|
|
65
|
+
className: `${prefix}--file-filename-button`,
|
|
66
|
+
id: name
|
|
67
|
+
}, name)))) : /*#__PURE__*/React__default.createElement("p", {
|
|
44
68
|
title: name,
|
|
69
|
+
className: `${prefix}--file-filename`,
|
|
45
70
|
id: name
|
|
46
|
-
}, name), /*#__PURE__*/React__default.createElement("
|
|
71
|
+
}, name), /*#__PURE__*/React__default.createElement("div", {
|
|
72
|
+
className: `${prefix}--file-container-item`
|
|
73
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
47
74
|
className: `${prefix}--file__state-container`
|
|
48
75
|
}, /*#__PURE__*/React__default.createElement(Filename, {
|
|
49
76
|
name: name,
|
|
@@ -68,7 +95,7 @@ function FileUploaderItem(_ref) {
|
|
|
68
95
|
});
|
|
69
96
|
}
|
|
70
97
|
}
|
|
71
|
-
})), invalid && errorSubject && /*#__PURE__*/React__default.createElement("div", {
|
|
98
|
+
}))), invalid && errorSubject && /*#__PURE__*/React__default.createElement("div", {
|
|
72
99
|
className: `${prefix}--form-requirement`,
|
|
73
100
|
role: "alert",
|
|
74
101
|
id: `${name}-id-error`
|
|
@@ -28,7 +28,8 @@ function Filename(_ref) {
|
|
|
28
28
|
return /*#__PURE__*/React__default.createElement(Loading, {
|
|
29
29
|
description: iconDescription,
|
|
30
30
|
small: true,
|
|
31
|
-
withOverlay: false
|
|
31
|
+
withOverlay: false,
|
|
32
|
+
className: `${prefix}--file-loading`
|
|
32
33
|
});
|
|
33
34
|
case 'edit':
|
|
34
35
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, invalid && /*#__PURE__*/React__default.createElement(WarningFilled, {
|
|
@@ -21,7 +21,31 @@ interface SortItemsOptions<ItemType> extends SharedOptions, DownshiftTypedProps<
|
|
|
21
21
|
selectedItems: ItemType[];
|
|
22
22
|
}
|
|
23
23
|
interface MultiSelectSortingProps<ItemType> {
|
|
24
|
+
/**
|
|
25
|
+
* Provide a compare function that is used to determine the ordering of
|
|
26
|
+
* options. See 'sortItems' for more control.
|
|
27
|
+
*/
|
|
24
28
|
compareItems?(item1: ItemType, item2: ItemType, options: SharedOptions): number;
|
|
29
|
+
/**
|
|
30
|
+
* Provide a method that sorts all options in the control. Overriding this
|
|
31
|
+
* prop means that you also have to handle the sort logic for selected versus
|
|
32
|
+
* un-selected items. If you just want to control ordering, consider the
|
|
33
|
+
* `compareItems` prop instead.
|
|
34
|
+
*
|
|
35
|
+
* The return value should be a number whose sign indicates the relative order
|
|
36
|
+
* of the two elements: negative if a is less than b, positive if a is greater
|
|
37
|
+
* than b, and zero if they are equal.
|
|
38
|
+
*
|
|
39
|
+
* sortItems :
|
|
40
|
+
* (items: Array<Item>, {
|
|
41
|
+
* selectedItems: Array<Item>,
|
|
42
|
+
* itemToString: Item => string,
|
|
43
|
+
* compareItems: (itemA: string, itemB: string, {
|
|
44
|
+
* locale: string
|
|
45
|
+
* }) => number,
|
|
46
|
+
* locale: string,
|
|
47
|
+
* }) => Array<Item>
|
|
48
|
+
*/
|
|
25
49
|
sortItems?(items: ReadonlyArray<ItemType>, options: SortItemsOptions<ItemType>): ItemType[];
|
|
26
50
|
}
|
|
27
51
|
export interface MultiSelectProps<ItemType> extends MultiSelectSortingProps<ItemType>, InternationalProps<'close.menu' | 'open.menu' | 'clear.all' | 'clear.selection'> {
|
|
@@ -390,6 +390,11 @@ MultiSelect.propTypes = {
|
|
|
390
390
|
* Specify the text that should be read for screen readers to clear selection.
|
|
391
391
|
*/
|
|
392
392
|
clearSelectionText: PropTypes.string,
|
|
393
|
+
/**
|
|
394
|
+
* Provide a compare function that is used to determine the ordering of
|
|
395
|
+
* options. See 'sortItems' for more control.
|
|
396
|
+
*/
|
|
397
|
+
compareItems: PropTypes.func.isRequired,
|
|
393
398
|
/**
|
|
394
399
|
* Specify the direction of the multiselect dropdown. Can be either top or bottom.
|
|
395
400
|
*/
|
|
@@ -491,6 +496,27 @@ MultiSelect.propTypes = {
|
|
|
491
496
|
* Specify the size of the ListBox. Currently supports either `sm`, `md` or `lg` as an option.
|
|
492
497
|
*/
|
|
493
498
|
size: ListBoxSize,
|
|
499
|
+
/**
|
|
500
|
+
* Provide a method that sorts all options in the control. Overriding this
|
|
501
|
+
* prop means that you also have to handle the sort logic for selected versus
|
|
502
|
+
* un-selected items. If you just want to control ordering, consider the
|
|
503
|
+
* `compareItems` prop instead.
|
|
504
|
+
*
|
|
505
|
+
* The return value should be a number whose sign indicates the relative order
|
|
506
|
+
* of the two elements: negative if a is less than b, positive if a is greater
|
|
507
|
+
* than b, and zero if they are equal.
|
|
508
|
+
*
|
|
509
|
+
* sortItems :
|
|
510
|
+
* (items: Array<Item>, {
|
|
511
|
+
* selectedItems: Array<Item>,
|
|
512
|
+
* itemToString: Item => string,
|
|
513
|
+
* compareItems: (itemA: string, itemB: string, {
|
|
514
|
+
* locale: string
|
|
515
|
+
* }) => number,
|
|
516
|
+
* locale: string,
|
|
517
|
+
* }) => Array<Item>
|
|
518
|
+
*/
|
|
519
|
+
sortItems: PropTypes.func.isRequired,
|
|
494
520
|
/**
|
|
495
521
|
* Provide text to be used in a `<label>` element that is tied to the
|
|
496
522
|
* multiselect via ARIA attributes.
|
|
@@ -125,7 +125,7 @@ const Search = /*#__PURE__*/React__default.forwardRef(function Search(_ref, forw
|
|
|
125
125
|
className: `${prefix}--search-magnifier`,
|
|
126
126
|
onClick: onExpand,
|
|
127
127
|
onKeyDown: handleExpandButtonKeyDown,
|
|
128
|
-
tabIndex: onExpand && !isExpanded ?
|
|
128
|
+
tabIndex: onExpand && !isExpanded ? 0 : -1,
|
|
129
129
|
ref: expandButtonRef,
|
|
130
130
|
"aria-expanded": onExpand && isExpanded ? true : undefined,
|
|
131
131
|
"aria-controls": onExpand ? uniqueId : undefined
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2023
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
export interface StructuredListSkeletonProps {
|
|
10
|
+
/**
|
|
11
|
+
* Specify an optional className to add.
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* number of table rows
|
|
16
|
+
*/
|
|
17
|
+
rowCount?: number;
|
|
18
|
+
}
|
|
19
|
+
declare function StructuredListSkeleton({ rowCount, className, ...rest }: StructuredListSkeletonProps): JSX.Element;
|
|
20
|
+
declare namespace StructuredListSkeleton {
|
|
21
|
+
var propTypes: {
|
|
22
|
+
/**
|
|
23
|
+
* Specify an optional className to add.
|
|
24
|
+
*/
|
|
25
|
+
className: PropTypes.Requireable<string>;
|
|
26
|
+
/**
|
|
27
|
+
* number of table rows
|
|
28
|
+
*/
|
|
29
|
+
rowCount: PropTypes.Requireable<number>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export default StructuredListSkeleton;
|
|
@@ -12,32 +12,26 @@ import cx from 'classnames';
|
|
|
12
12
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
13
13
|
|
|
14
14
|
var _span, _span2, _span3;
|
|
15
|
-
|
|
15
|
+
function StructuredListSkeleton(_ref) {
|
|
16
16
|
let {
|
|
17
|
-
rowCount,
|
|
17
|
+
rowCount = 5,
|
|
18
18
|
className,
|
|
19
19
|
...rest
|
|
20
20
|
} = _ref;
|
|
21
21
|
const prefix = usePrefix();
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
34
|
-
className: `${prefix}--structured-list-td`
|
|
35
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
36
|
-
className: `${prefix}--structured-list-td`
|
|
37
|
-
})));
|
|
38
|
-
}
|
|
22
|
+
const classNames = cx(`${prefix}--skeleton`, `${prefix}--structured-list`, className);
|
|
23
|
+
const rows = new Array(rowCount).fill(null).map((_, i) => /*#__PURE__*/React__default.createElement("div", {
|
|
24
|
+
className: `${prefix}--structured-list-row`,
|
|
25
|
+
key: i
|
|
26
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
27
|
+
className: `${prefix}--structured-list-td`
|
|
28
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
29
|
+
className: `${prefix}--structured-list-td`
|
|
30
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
31
|
+
className: `${prefix}--structured-list-td`
|
|
32
|
+
})));
|
|
39
33
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
40
|
-
className:
|
|
34
|
+
className: classNames
|
|
41
35
|
}, rest), /*#__PURE__*/React__default.createElement("div", {
|
|
42
36
|
className: `${prefix}--structured-list-thead`
|
|
43
37
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -51,7 +45,7 @@ const StructuredListSkeleton = _ref => {
|
|
|
51
45
|
}, _span3 || (_span3 = /*#__PURE__*/React__default.createElement("span", null))))), /*#__PURE__*/React__default.createElement("div", {
|
|
52
46
|
className: `${prefix}--structured-list-tbody`
|
|
53
47
|
}, rows));
|
|
54
|
-
}
|
|
48
|
+
}
|
|
55
49
|
StructuredListSkeleton.propTypes = {
|
|
56
50
|
/**
|
|
57
51
|
* Specify an optional className to add.
|
|
@@ -62,9 +56,5 @@ StructuredListSkeleton.propTypes = {
|
|
|
62
56
|
*/
|
|
63
57
|
rowCount: PropTypes.number
|
|
64
58
|
};
|
|
65
|
-
StructuredListSkeleton.defaultProps = {
|
|
66
|
-
rowCount: 5
|
|
67
|
-
};
|
|
68
|
-
var StructuredListSkeleton$1 = StructuredListSkeleton;
|
|
69
59
|
|
|
70
|
-
export { StructuredListSkeleton
|
|
60
|
+
export { StructuredListSkeleton as default };
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2023
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { type HTMLAttributes, type ReactNode, type KeyboardEvent, type ChangeEvent, type MouseEvent } from 'react';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
type DivAttrs = HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
export interface StructuredListWrapperProps extends DivAttrs {
|
|
11
|
+
/**
|
|
12
|
+
* Specify a label to be read by screen readers on the container node
|
|
13
|
+
*/
|
|
14
|
+
'aria-label'?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Provide the contents of your StructuredListWrapper
|
|
17
|
+
*/
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Specify an optional className to be applied to the container node
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Specify if structured list is condensed, default is false
|
|
25
|
+
*/
|
|
26
|
+
isCondensed?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Specify if structured list is flush, default is false
|
|
29
|
+
*/
|
|
30
|
+
isFlush?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Specify whether your StructuredListWrapper should have selections
|
|
33
|
+
*/
|
|
34
|
+
selection?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare function StructuredListWrapper(props: StructuredListWrapperProps): JSX.Element;
|
|
37
|
+
export declare namespace StructuredListWrapper {
|
|
38
|
+
var propTypes: {
|
|
39
|
+
/**
|
|
40
|
+
* Specify a label to be read by screen readers on the container node
|
|
41
|
+
*/
|
|
42
|
+
"aria-label": PropTypes.Requireable<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Deprecated, please use `aria-label` instead.
|
|
45
|
+
* Specify a label to be read by screen readers on the container note.
|
|
46
|
+
*/
|
|
47
|
+
ariaLabel: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
48
|
+
/**
|
|
49
|
+
* Provide the contents of your StructuredListWrapper
|
|
50
|
+
*/
|
|
51
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
52
|
+
/**
|
|
53
|
+
* Specify an optional className to be applied to the container node
|
|
54
|
+
*/
|
|
55
|
+
className: PropTypes.Requireable<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Specify if structured list is condensed, default is false
|
|
58
|
+
*/
|
|
59
|
+
isCondensed: PropTypes.Requireable<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Specify if structured list is flush, not valid for selection variant, default is false
|
|
62
|
+
*/
|
|
63
|
+
isFlush: PropTypes.Requireable<boolean>;
|
|
64
|
+
/**
|
|
65
|
+
* Specify whether your StructuredListWrapper should have selections
|
|
66
|
+
*/
|
|
67
|
+
selection: PropTypes.Requireable<boolean>;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export interface StructuredListHeadProps extends DivAttrs {
|
|
71
|
+
/**
|
|
72
|
+
* Provide the contents of your StructuredListHead
|
|
73
|
+
*/
|
|
74
|
+
children?: ReactNode;
|
|
75
|
+
/**
|
|
76
|
+
* Specify an optional className to be applied to the node
|
|
77
|
+
*/
|
|
78
|
+
className?: string;
|
|
79
|
+
}
|
|
80
|
+
export declare function StructuredListHead(props: any): JSX.Element;
|
|
81
|
+
export declare namespace StructuredListHead {
|
|
82
|
+
var propTypes: {
|
|
83
|
+
/**
|
|
84
|
+
* Provide the contents of your StructuredListHead
|
|
85
|
+
*/
|
|
86
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
87
|
+
/**
|
|
88
|
+
* Specify an optional className to be applied to the node
|
|
89
|
+
*/
|
|
90
|
+
className: PropTypes.Requireable<string>;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export interface StructuredListBodyProps extends DivAttrs {
|
|
94
|
+
/**
|
|
95
|
+
* Provide the contents of your StructuredListBody
|
|
96
|
+
*/
|
|
97
|
+
children?: ReactNode;
|
|
98
|
+
/**
|
|
99
|
+
* Specify an optional className to be applied to the container node
|
|
100
|
+
*/
|
|
101
|
+
className?: string;
|
|
102
|
+
head?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Provide a handler that is invoked on the key down event for the control
|
|
105
|
+
*/
|
|
106
|
+
onKeyDown?(event: KeyboardEvent): void;
|
|
107
|
+
}
|
|
108
|
+
export declare function StructuredListBody(props: StructuredListBodyProps): JSX.Element;
|
|
109
|
+
export declare namespace StructuredListBody {
|
|
110
|
+
var propTypes: {
|
|
111
|
+
/**
|
|
112
|
+
* Provide the contents of your StructuredListBody
|
|
113
|
+
*/
|
|
114
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
115
|
+
/**
|
|
116
|
+
* Specify an optional className to be applied to the container node
|
|
117
|
+
*/
|
|
118
|
+
className: PropTypes.Requireable<string>;
|
|
119
|
+
head: PropTypes.Requireable<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* Provide a handler that is invoked on the key down event for the control
|
|
122
|
+
*/
|
|
123
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export interface StructuredListRowProps extends DivAttrs {
|
|
127
|
+
/**
|
|
128
|
+
* Provide the contents of your StructuredListRow
|
|
129
|
+
*/
|
|
130
|
+
children?: ReactNode;
|
|
131
|
+
/**
|
|
132
|
+
* Specify an optional className to be applied to the container node
|
|
133
|
+
*/
|
|
134
|
+
className?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Specify whether your StructuredListRow should be used as a header row
|
|
137
|
+
*/
|
|
138
|
+
head?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Provide a handler that is invoked on the click
|
|
141
|
+
*/
|
|
142
|
+
onClick?(event: MouseEvent): void;
|
|
143
|
+
/**
|
|
144
|
+
* Provide a handler that is invoked on the key down event for the control
|
|
145
|
+
*/
|
|
146
|
+
onKeyDown?(event: KeyboardEvent): void;
|
|
147
|
+
}
|
|
148
|
+
export declare function StructuredListRow(props: StructuredListRowProps): JSX.Element;
|
|
149
|
+
export declare namespace StructuredListRow {
|
|
150
|
+
var propTypes: {
|
|
151
|
+
/**
|
|
152
|
+
* Provide the contents of your StructuredListRow
|
|
153
|
+
*/
|
|
154
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
155
|
+
/**
|
|
156
|
+
* Specify an optional className to be applied to the container node
|
|
157
|
+
*/
|
|
158
|
+
className: PropTypes.Requireable<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Specify whether your StructuredListRow should be used as a header row
|
|
161
|
+
*/
|
|
162
|
+
head: PropTypes.Requireable<boolean>;
|
|
163
|
+
/**
|
|
164
|
+
* Specify whether a `<label>` should be used
|
|
165
|
+
*/
|
|
166
|
+
label: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
167
|
+
/**
|
|
168
|
+
* Provide a handler that is invoked on the click
|
|
169
|
+
*/
|
|
170
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
171
|
+
/**
|
|
172
|
+
* Provide a handler that is invoked on the key down event for the control,
|
|
173
|
+
*/
|
|
174
|
+
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
export interface StructuredListInputProps extends DivAttrs {
|
|
178
|
+
/**
|
|
179
|
+
* Specify an optional className to be applied to the input
|
|
180
|
+
*/
|
|
181
|
+
className?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Specify a custom `id` for the input
|
|
184
|
+
*/
|
|
185
|
+
id?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Provide a `name` for the input
|
|
188
|
+
*/
|
|
189
|
+
name?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Provide an optional hook that is called each time the input is updated
|
|
192
|
+
*/
|
|
193
|
+
onChange?(event: ChangeEvent<HTMLInputElement>): void;
|
|
194
|
+
/**
|
|
195
|
+
* Provide a `title` for the input
|
|
196
|
+
*/
|
|
197
|
+
title?: string;
|
|
198
|
+
}
|
|
199
|
+
export declare function StructuredListInput(props: StructuredListInputProps): JSX.Element;
|
|
200
|
+
export declare namespace StructuredListInput {
|
|
201
|
+
var propTypes: {
|
|
202
|
+
/**
|
|
203
|
+
* Specify an optional className to be applied to the input
|
|
204
|
+
*/
|
|
205
|
+
className: PropTypes.Requireable<string>;
|
|
206
|
+
/**
|
|
207
|
+
* Specify whether the underlying input should be checked by default
|
|
208
|
+
*/
|
|
209
|
+
defaultChecked: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
210
|
+
/**
|
|
211
|
+
* Specify a custom `id` for the input
|
|
212
|
+
*/
|
|
213
|
+
id: PropTypes.Requireable<string>;
|
|
214
|
+
/**
|
|
215
|
+
* Provide a `name` for the input
|
|
216
|
+
*/
|
|
217
|
+
name: PropTypes.Requireable<string>;
|
|
218
|
+
/**
|
|
219
|
+
* Provide an optional hook that is called each time the input is updated
|
|
220
|
+
*/
|
|
221
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
222
|
+
/**
|
|
223
|
+
* Provide a `title` for the input
|
|
224
|
+
*/
|
|
225
|
+
title: PropTypes.Requireable<string>;
|
|
226
|
+
/**
|
|
227
|
+
* Specify the value of the input
|
|
228
|
+
*/
|
|
229
|
+
value: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
export interface StructuredListCellProps extends DivAttrs {
|
|
233
|
+
/**
|
|
234
|
+
* Provide the contents of your StructuredListCell
|
|
235
|
+
*/
|
|
236
|
+
children?: ReactNode;
|
|
237
|
+
/**
|
|
238
|
+
* Specify an optional className to be applied to the container node
|
|
239
|
+
*/
|
|
240
|
+
className?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Specify whether your StructuredListCell should be used as a header cell
|
|
243
|
+
*/
|
|
244
|
+
head?: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* Specify whether your StructuredListCell should have text wrapping
|
|
247
|
+
*/
|
|
248
|
+
noWrap?: boolean;
|
|
249
|
+
}
|
|
250
|
+
export declare function StructuredListCell(props: StructuredListCellProps): JSX.Element;
|
|
251
|
+
export declare namespace StructuredListCell {
|
|
252
|
+
var propTypes: {
|
|
253
|
+
/**
|
|
254
|
+
* Provide the contents of your StructuredListCell
|
|
255
|
+
*/
|
|
256
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
257
|
+
/**
|
|
258
|
+
* Specify an optional className to be applied to the container node
|
|
259
|
+
*/
|
|
260
|
+
className: PropTypes.Requireable<string>;
|
|
261
|
+
/**
|
|
262
|
+
* Specify whether your StructuredListCell should be used as a header cell
|
|
263
|
+
*/
|
|
264
|
+
head: PropTypes.Requireable<boolean>;
|
|
265
|
+
/**
|
|
266
|
+
* Specify whether your StructuredListCell should have text wrapping
|
|
267
|
+
*/
|
|
268
|
+
noWrap: PropTypes.Requireable<boolean>;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
export {};
|