draft-components 4.11.1 → 4.12.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/css/draft-components.css
CHANGED
|
@@ -4564,7 +4564,7 @@
|
|
|
4564
4564
|
background: var(--row-background-selected);
|
|
4565
4565
|
}
|
|
4566
4566
|
|
|
4567
|
-
.dc-table_highlight_row tbody tr:hover td {
|
|
4567
|
+
.dc-table_highlight_row tbody tr:not([data-not-highlight-on-hover="true"]):hover td {
|
|
4568
4568
|
background: var(--row-background-highlighted);
|
|
4569
4569
|
}
|
|
4570
4570
|
|
|
@@ -2,7 +2,8 @@ import { type ComponentProps } from 'react';
|
|
|
2
2
|
type TableRowHTMLProps = ComponentProps<'tr'>;
|
|
3
3
|
type TableRowBaseProps = {
|
|
4
4
|
isSelected?: boolean;
|
|
5
|
+
shouldNotHighlightOnHover?: boolean;
|
|
5
6
|
};
|
|
6
7
|
export type TableRowProps = TableRowBaseProps & Omit<TableRowHTMLProps, keyof TableRowBaseProps>;
|
|
7
|
-
export declare function TableRow({ isSelected, ...props }: TableRowProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TableRow({ isSelected, shouldNotHighlightOnHover, ...props }: TableRowProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import {} from 'react';
|
|
3
|
-
export function TableRow({ isSelected, ...props }) {
|
|
4
|
-
return (_jsx("tr", { ...props, "data-selected": isSelected }));
|
|
3
|
+
export function TableRow({ isSelected, shouldNotHighlightOnHover, ...props }) {
|
|
4
|
+
return (_jsx("tr", { ...props, "data-selected": isSelected, "data-not-highlight-on-hover": shouldNotHighlightOnHover }));
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=table-row.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-row.js","sourceRoot":"","sources":["../../../src/components/table/table-row.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"table-row.js","sourceRoot":"","sources":["../../../src/components/table/table-row.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuB,MAAM,OAAO,CAAC;AAa5C,MAAM,UAAU,QAAQ,CAAC,EACvB,UAAU,EACV,yBAAyB,EACzB,GAAG,KAAK,EACM;IACd,OAAO,CACL,gBACM,KAAK,mBACM,UAAU,iCACI,yBAAyB,GACtD,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
background: var(--row-background-selected);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
.dc-table_highlight_row tbody tr:hover td {
|
|
122
|
+
.dc-table_highlight_row tbody tr:not([data-not-highlight-on-hover="true"]):hover td {
|
|
123
123
|
background: var(--row-background-highlighted);
|
|
124
124
|
}
|
|
125
125
|
|