@worldresources/wri-design-systems 2.136.0 → 2.136.2
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/index.cjs.js +64 -43
- package/dist/index.d.ts +11 -8
- package/dist/index.esm.js +811 -790
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -508,17 +508,20 @@ type ItemCountProps = {
|
|
|
508
508
|
|
|
509
509
|
declare const ItemCount: ({ pageSize, currentPage, totalItems, onPageSizeChange, showItemCountText, }: ItemCountProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
510
510
|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
}
|
|
514
|
-
interface ListEntry {
|
|
515
|
-
id?: string | number;
|
|
511
|
+
type ListItemVariant = 'data' | 'navigation';
|
|
512
|
+
interface ListItemProps {
|
|
516
513
|
label: string;
|
|
517
|
-
data?: string;
|
|
518
514
|
caption?: string;
|
|
519
515
|
icon?: ReactElement;
|
|
520
|
-
|
|
521
|
-
|
|
516
|
+
value?: string;
|
|
517
|
+
variant?: ListItemVariant;
|
|
518
|
+
isExpanded?: boolean;
|
|
519
|
+
id?: string | number;
|
|
520
|
+
onItemClick?: () => void;
|
|
521
|
+
ariaLabel?: string;
|
|
522
|
+
}
|
|
523
|
+
interface ListProps {
|
|
524
|
+
items: ListItemProps[];
|
|
522
525
|
}
|
|
523
526
|
|
|
524
527
|
declare const List: ({ items }: ListProps) => _emotion_react_jsx_runtime.JSX.Element;
|