@protonradio/proton-ui 0.7.10 → 0.7.11
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 +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +14 -4
- package/dist/index.es.js +237 -237
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { ReactNode } from 'react';
|
|
|
15
15
|
import { RowProps } from '@react-stately/table';
|
|
16
16
|
import { Section } from '@react-stately/table';
|
|
17
17
|
import { Selection as Selection_2 } from 'react-stately';
|
|
18
|
-
import {
|
|
18
|
+
import { TableBodyProps } from '@react-stately/table';
|
|
19
19
|
import { TableHeader } from '@react-stately/table';
|
|
20
20
|
import { TableStateProps } from 'react-stately';
|
|
21
21
|
import { TooltipProps as TooltipProps_2 } from 'react-aria-components';
|
|
@@ -443,6 +443,10 @@ export declare interface ProtonRowProps<T = object> extends RowProps<T> {
|
|
|
443
443
|
backgroundColor?: string;
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
+
export declare interface ProtonTableBodyProps<T = object> extends TableBodyProps<T> {
|
|
447
|
+
showLines?: boolean;
|
|
448
|
+
}
|
|
449
|
+
|
|
446
450
|
declare interface ResponsiveMenuProps {
|
|
447
451
|
/** The id of the menu */
|
|
448
452
|
menuId?: string;
|
|
@@ -602,7 +606,7 @@ declare interface SwitchProps {
|
|
|
602
606
|
|
|
603
607
|
export declare function Table(props: TableProps): JSX_2.Element;
|
|
604
608
|
|
|
605
|
-
export
|
|
609
|
+
export declare const TableBody: <T = object>(props: ProtonTableBodyProps<T>) => JSX.Element;
|
|
606
610
|
|
|
607
611
|
export { TableHeader }
|
|
608
612
|
|
|
@@ -612,9 +616,9 @@ declare type TableProps = AriaTableProps & TableStateProps<object>;
|
|
|
612
616
|
* A component that displays text with an ellipsis when it overflows its container.
|
|
613
617
|
* @interface TextEllipsisProps
|
|
614
618
|
*/
|
|
615
|
-
export declare const TextEllipsis:
|
|
619
|
+
export declare const TextEllipsis: ({ children, maxWidth, singleLine, lines, title, "data-testid": testId, }: TextEllipsisProps) => JSX_2.Element;
|
|
616
620
|
|
|
617
|
-
declare interface TextEllipsisProps
|
|
621
|
+
declare interface TextEllipsisProps {
|
|
618
622
|
/**
|
|
619
623
|
* The content to display within the text ellipsis.
|
|
620
624
|
*/
|
|
@@ -760,7 +764,13 @@ export declare function TooltipTrigger({ children, delay, closeDelay, isDisabled
|
|
|
760
764
|
|
|
761
765
|
export declare interface TooltipTriggerProps extends TooltipProps, TooltipTriggerComponentProps {
|
|
762
766
|
children: React.ReactNode;
|
|
767
|
+
/**
|
|
768
|
+
* The content to display in the tooltip. Zero-length titles string are never displayed.
|
|
769
|
+
*/
|
|
763
770
|
content: string | React.ReactNode;
|
|
771
|
+
/**
|
|
772
|
+
* Whether to disable the trigger click feature.
|
|
773
|
+
*/
|
|
764
774
|
disableTriggerClick?: boolean;
|
|
765
775
|
}
|
|
766
776
|
|