@iota/apps-ui-kit 0.10.1 → 0.11.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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.es.js +142 -129
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/lib/components/atoms/info-box/InfoBox.tsx +3 -1
- package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +14 -5
- package/src/lib/components/molecules/card/CardAction.tsx +1 -1
- package/src/lib/components/molecules/card/CardBody.tsx +2 -2
- package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +13 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @iota/apps-ui-kit
|
|
2
2
|
|
|
3
|
+
## 0.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- bf352b1: Add `actionLeft` and `actionRight` props to `TableHeaderCell` to render content (e.g. a tooltip icon) alongside the header label.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 140abe4: Add actionLeft and actionRight to TableHeaderCell
|
|
12
|
+
- b9462f0: Accept `ReactNode` in `KeyValueInfo` `supportingLabel` and `CardAction` `subtitle`, and fix `InfoBox` elevated-style left padding when no icon is provided.
|
|
13
|
+
- b656aef: Align card body title and subtitle text to the start.
|
|
14
|
+
|
|
3
15
|
## 0.10.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -383,7 +383,7 @@ export declare function CardAction({ type, onClick, subtitle, title, icon, iconA
|
|
|
383
383
|
|
|
384
384
|
export declare type CardActionProps = {
|
|
385
385
|
title?: string;
|
|
386
|
-
subtitle?: string;
|
|
386
|
+
subtitle?: string | React.ReactNode;
|
|
387
387
|
type: CardActionType;
|
|
388
388
|
onClick?: () => void;
|
|
389
389
|
icon?: React.ReactNode;
|
|
@@ -1035,13 +1035,17 @@ export declare const IOTA_PRIMITIVES_COLOR_PALETTE: {
|
|
|
1035
1035
|
};
|
|
1036
1036
|
};
|
|
1037
1037
|
|
|
1038
|
-
export declare function KeyValueInfo({ keyText, value, tooltipPosition, tooltipText, supportingLabel, size, isTruncated, copyText, onCopySuccess, onCopyError, fullwidth, isReverse, valueHoverTitle, }: KeyValueProps): React.JSX.Element;
|
|
1038
|
+
export declare function KeyValueInfo({ keyText, keyIcon, value, tooltipPosition, tooltipText, supportingLabel, size, isTruncated, copyText, onCopySuccess, onCopyError, fullwidth, isReverse, valueHoverTitle, }: KeyValueProps): React.JSX.Element;
|
|
1039
1039
|
|
|
1040
1040
|
declare interface KeyValueProps {
|
|
1041
1041
|
/**
|
|
1042
1042
|
* The key of the KeyValue.
|
|
1043
1043
|
*/
|
|
1044
1044
|
keyText: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* An icon shown next to the key text (optional).
|
|
1047
|
+
*/
|
|
1048
|
+
keyIcon?: ReactNode;
|
|
1045
1049
|
/**
|
|
1046
1050
|
* The value of the KeyValue.
|
|
1047
1051
|
*/
|
|
@@ -1057,7 +1061,7 @@ declare interface KeyValueProps {
|
|
|
1057
1061
|
/**
|
|
1058
1062
|
* The supporting label of the KeyValue (optional).
|
|
1059
1063
|
*/
|
|
1060
|
-
supportingLabel?: string;
|
|
1064
|
+
supportingLabel?: string | ReactNode;
|
|
1061
1065
|
/**
|
|
1062
1066
|
* The size of the value (optional).
|
|
1063
1067
|
*/
|
|
@@ -1626,7 +1630,7 @@ export declare interface TableCellTextProps {
|
|
|
1626
1630
|
|
|
1627
1631
|
export declare function TableHeader({ children }: PropsWithChildren): JSX.Element;
|
|
1628
1632
|
|
|
1629
|
-
export declare function TableHeaderCell({ label, columnKey, hasSort, hasCheckbox, isChecked, isIndeterminate, isContentCentered, onSortClick, onCheckboxChange, sortOrder, ...ariaProps }: TableHeaderCellProps): JSX.Element;
|
|
1633
|
+
export declare function TableHeaderCell({ label, columnKey, actionLeft, actionRight, hasSort, hasCheckbox, isChecked, isIndeterminate, isContentCentered, onSortClick, onCheckboxChange, sortOrder, ...ariaProps }: TableHeaderCellProps): JSX.Element;
|
|
1630
1634
|
|
|
1631
1635
|
export declare interface TableHeaderCellProps extends React.AriaAttributes {
|
|
1632
1636
|
/**
|