@iota/apps-ui-kit 0.12.0 → 0.13.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @iota/apps-ui-kit
2
2
 
3
+ ## 0.13.0
4
+ ### Minor Changes
5
+
6
+ - 94c9333: Clickable `TableRow`s ignore clicks coming from interactive elements inside them (links, buttons, inputs, `role="button"`…) or that end a text selection, and accept an `onAuxClick` handler. While one of those elements is hovered the row is not highlighted and the hovered link is highlighted instead. Links spread with `ROW_LINK_PROPS`, which go where the row goes, keep the row hover and are not highlighted. Adds `INTERACTIVE_ELEMENT_SELECTOR`, `ROW_LINK_ATTRIBUTE`, `ROW_LINK_PROPS` and the `row-hover`, `inner-link` and `inner-link-hover` Tailwind variants.
7
+
8
+ ### Patch Changes
9
+
10
+ - b1718f3: add overflow wrap to infobox
11
+ - a24230f: align Cardaction supporting text
12
+ - fe39bd9: Improve tooltip positioning when there's not enough space
13
+ - 9fe2669: Allow `CardBody` to receive a React node as `title`, not only a string.
14
+ - Updated dependencies [fecdf36]
15
+ - @iota/apps-ui-icons@0.7.6
16
+
3
17
  ## 0.12.0
4
18
 
5
19
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -411,7 +411,7 @@ export declare enum CardActionType {
411
411
  export declare function CardBody({ title, subtitle, clickableAction, icon, isTextTruncated, tooltipText, tooltipPosition, }: CardBodyProps): JSX_2.Element;
412
412
 
413
413
  export declare type CardBodyProps = {
414
- title: string;
414
+ title: ReactNode;
415
415
  subtitle?: string | ReactNode;
416
416
  clickableAction?: React.ReactNode;
417
417
  icon?: React.ReactNode;
@@ -865,6 +865,8 @@ declare interface InputWrapperProps {
865
865
  labelHtmlTag?: LabelHtmlTag;
866
866
  }
867
867
 
868
+ export declare const INTERACTIVE_ELEMENT_SELECTOR: string;
869
+
868
870
  export declare const IOTA_NAMES_COLOR_PALETTE: {
869
871
  'names-primary': {
870
872
  '0': string;
@@ -1360,6 +1362,12 @@ export declare enum Resize {
1360
1362
  Vertical = "vertical"
1361
1363
  }
1362
1364
 
1365
+ export declare const ROW_LINK_ATTRIBUTE = "data-row-link";
1366
+
1367
+ export declare const ROW_LINK_PROPS: {
1368
+ readonly "data-row-link": true;
1369
+ };
1370
+
1363
1371
  export declare enum ScreenSize {
1364
1372
  Sm = "sm",
1365
1373
  Md = "md",
@@ -1779,9 +1787,10 @@ export declare type TableProps = {
1779
1787
  heightFull?: boolean;
1780
1788
  };
1781
1789
 
1782
- export declare function TableRow({ children, leading, onClick, }: PropsWithChildren<{
1790
+ export declare function TableRow({ children, leading, onClick, onAuxClick, }: PropsWithChildren<{
1783
1791
  leading?: React.ReactNode;
1784
1792
  onClick?: React.MouseEventHandler<HTMLTableRowElement>;
1793
+ onAuxClick?: React.MouseEventHandler<HTMLTableRowElement>;
1785
1794
  }>): JSX.Element;
1786
1795
 
1787
1796
  export declare function TableRowCheckbox({ rowIndex, onCheckboxChange, isDisabled, }: TableRowCheckboxProps): React.JSX.Element;