@worldresources/wri-design-systems 2.121.0 → 2.122.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/README.md +54 -10
- package/dist/index.cjs.js +205 -127
- package/dist/index.d.ts +4 -2
- package/dist/index.esm.js +230 -152
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
@@ -5,7 +5,7 @@ import React$1 from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
6
6
|
|
7
7
|
declare const designSystemStyles: _chakra_ui_react.SystemContext;
|
8
|
-
declare const getThemedColor: (variant: "neutral" | "primary" | "secondary" | "success" | "warning" | "error", index: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900) => string;
|
8
|
+
declare const getThemedColor: (variant: "neutral" | "primary" | "secondary" | "success" | "warning" | "error" | "accessible", index: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "text-on-primary-mids" | "text-on-secondary-mids" | "controls-on-neutral-lights" | "controls-on-neutral-darks") => string;
|
9
9
|
|
10
10
|
type ButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
|
11
11
|
label?: string;
|
@@ -426,9 +426,10 @@ type ItemCountProps = {
|
|
426
426
|
currentPage: number;
|
427
427
|
totalItems: number;
|
428
428
|
onPageSizeChange?: (pageSize: number) => void;
|
429
|
+
showItemCountText?: boolean;
|
429
430
|
};
|
430
431
|
|
431
|
-
declare const ItemCount: ({ pageSize, currentPage, totalItems, onPageSizeChange, }: ItemCountProps) => _emotion_react_jsx_runtime.JSX.Element;
|
432
|
+
declare const ItemCount: ({ pageSize, currentPage, totalItems, onPageSizeChange, showItemCountText, }: ItemCountProps) => _emotion_react_jsx_runtime.JSX.Element;
|
432
433
|
|
433
434
|
type PaginationProps = {
|
434
435
|
currentPage: number;
|
@@ -457,6 +458,7 @@ type TableProps = {
|
|
457
458
|
currentPage: number;
|
458
459
|
pageSize: number;
|
459
460
|
showItemCount?: boolean;
|
461
|
+
showItemCountText?: boolean;
|
460
462
|
};
|
461
463
|
onSortColumn: (sortColumn: {
|
462
464
|
key: string;
|