@tensor_1/react 2.40.2 → 2.41.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/dist/components/Table.d.ts +7 -1
- package/dist/components/Table.js +2 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +7 -1
- package/package.json +1 -1
|
@@ -16,12 +16,18 @@ interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
|
16
16
|
density?: TableDensity;
|
|
17
17
|
zebra?: boolean;
|
|
18
18
|
pinnedCol?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Freeze the last column at the right edge while the wrap scrolls sideways, so a trailing
|
|
21
|
+
* row-actions column (peek, kebab) stays one click away. Pin the row's state with
|
|
22
|
+
* `Tr selected` / `Tr pinned`: the frozen cell repaints those, not a consumer's own row class.
|
|
23
|
+
*/
|
|
24
|
+
pinnedActions?: boolean;
|
|
19
25
|
/** table-layout: fixed — required for reliable column widths + primary-column truncation */
|
|
20
26
|
fixed?: boolean;
|
|
21
27
|
rowPeek?: boolean;
|
|
22
28
|
v2?: boolean;
|
|
23
29
|
}
|
|
24
|
-
declare function Table({ density, zebra, pinnedCol, fixed, rowPeek, v2, className, children, ...props }: TableProps): react.JSX.Element;
|
|
30
|
+
declare function Table({ density, zebra, pinnedCol, pinnedActions, fixed, rowPeek, v2, className, children, ...props }: TableProps): react.JSX.Element;
|
|
25
31
|
interface ThProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
26
32
|
sortable?: boolean;
|
|
27
33
|
sortDirection?: SortDirection;
|
package/dist/components/Table.js
CHANGED
|
@@ -12,6 +12,7 @@ function Table({
|
|
|
12
12
|
density = "standard",
|
|
13
13
|
zebra = true,
|
|
14
14
|
pinnedCol,
|
|
15
|
+
pinnedActions,
|
|
15
16
|
fixed,
|
|
16
17
|
rowPeek,
|
|
17
18
|
v2,
|
|
@@ -26,6 +27,7 @@ function Table({
|
|
|
26
27
|
"uix-table",
|
|
27
28
|
!zebra && "uix-table--no-zebra",
|
|
28
29
|
pinnedCol && "uix-table--pinned-col",
|
|
30
|
+
pinnedActions && "uix-table--pinned-actions",
|
|
29
31
|
fixed && "uix-table--fixed",
|
|
30
32
|
className
|
|
31
33
|
),
|
package/dist/index.cjs
CHANGED
|
@@ -5811,6 +5811,7 @@ function Table({
|
|
|
5811
5811
|
density = "standard",
|
|
5812
5812
|
zebra = true,
|
|
5813
5813
|
pinnedCol,
|
|
5814
|
+
pinnedActions,
|
|
5814
5815
|
fixed,
|
|
5815
5816
|
rowPeek,
|
|
5816
5817
|
v2,
|
|
@@ -5825,6 +5826,7 @@ function Table({
|
|
|
5825
5826
|
"uix-table",
|
|
5826
5827
|
!zebra && "uix-table--no-zebra",
|
|
5827
5828
|
pinnedCol && "uix-table--pinned-col",
|
|
5829
|
+
pinnedActions && "uix-table--pinned-actions",
|
|
5828
5830
|
fixed && "uix-table--fixed",
|
|
5829
5831
|
className
|
|
5830
5832
|
),
|
package/dist/index.d.cts
CHANGED
|
@@ -3848,12 +3848,18 @@ interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
|
3848
3848
|
density?: TableDensity;
|
|
3849
3849
|
zebra?: boolean;
|
|
3850
3850
|
pinnedCol?: boolean;
|
|
3851
|
+
/**
|
|
3852
|
+
* Freeze the last column at the right edge while the wrap scrolls sideways, so a trailing
|
|
3853
|
+
* row-actions column (peek, kebab) stays one click away. Pin the row's state with
|
|
3854
|
+
* `Tr selected` / `Tr pinned`: the frozen cell repaints those, not a consumer's own row class.
|
|
3855
|
+
*/
|
|
3856
|
+
pinnedActions?: boolean;
|
|
3851
3857
|
/** table-layout: fixed — required for reliable column widths + primary-column truncation */
|
|
3852
3858
|
fixed?: boolean;
|
|
3853
3859
|
rowPeek?: boolean;
|
|
3854
3860
|
v2?: boolean;
|
|
3855
3861
|
}
|
|
3856
|
-
declare function Table({ density, zebra, pinnedCol, fixed, rowPeek, v2, className, children, ...props }: TableProps): react.JSX.Element;
|
|
3862
|
+
declare function Table({ density, zebra, pinnedCol, pinnedActions, fixed, rowPeek, v2, className, children, ...props }: TableProps): react.JSX.Element;
|
|
3857
3863
|
interface ThProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
3858
3864
|
sortable?: boolean;
|
|
3859
3865
|
sortDirection?: SortDirection;
|