@react-fabric/data 1.0.0-beta.53 → 1.0.0-beta.54
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/cjs/table/Table.js
CHANGED
|
@@ -126,7 +126,7 @@ var Table = function Table(_ref) {
|
|
|
126
126
|
ref: scrollerRef,
|
|
127
127
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
128
128
|
"data-ref": "tableHeader",
|
|
129
|
-
className: "bg-base font-medium sticky top-0 h-8 area-head border-b select-none flex flex-nowrap z-
|
|
129
|
+
className: "bg-base font-medium sticky top-0 h-8 area-head border-b select-none flex flex-nowrap z-3",
|
|
130
130
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
131
131
|
className: wrapperStart,
|
|
132
132
|
children: [canExpand && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -180,7 +180,7 @@ var Table = function Table(_ref) {
|
|
|
180
180
|
return "__GROUP__" in data ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
181
181
|
ref: measureElement,
|
|
182
182
|
"data-index": index,
|
|
183
|
-
className: classNames("px-2 py-1 text-md bg-base border-y border-tint-100 cursor-pointer flex items-center gap-1 z-
|
|
183
|
+
className: classNames("px-2 py-1 text-md bg-base border-y border-tint-100 cursor-pointer flex items-center gap-1 z-2", isActiveSticky(index) && "sticky top-8"),
|
|
184
184
|
role: "none",
|
|
185
185
|
onClick: function onClick() {
|
|
186
186
|
return toggleGroupExpand(data.key);
|
package/dist/esm/table/Table.js
CHANGED
|
@@ -126,7 +126,7 @@ var Table = function Table(_ref) {
|
|
|
126
126
|
ref: scrollerRef,
|
|
127
127
|
children: [/*#__PURE__*/jsxs("div", {
|
|
128
128
|
"data-ref": "tableHeader",
|
|
129
|
-
className: "bg-base font-medium sticky top-0 h-8 area-head border-b select-none flex flex-nowrap z-
|
|
129
|
+
className: "bg-base font-medium sticky top-0 h-8 area-head border-b select-none flex flex-nowrap z-3",
|
|
130
130
|
children: [/*#__PURE__*/jsxs("div", {
|
|
131
131
|
className: wrapperStart,
|
|
132
132
|
children: [canExpand && /*#__PURE__*/jsx("div", {
|
|
@@ -180,7 +180,7 @@ var Table = function Table(_ref) {
|
|
|
180
180
|
return "__GROUP__" in data ? /*#__PURE__*/jsxs("div", {
|
|
181
181
|
ref: measureElement,
|
|
182
182
|
"data-index": index,
|
|
183
|
-
className: classNames("px-2 py-1 text-md bg-base border-y border-tint-100 cursor-pointer flex items-center gap-1 z-
|
|
183
|
+
className: classNames("px-2 py-1 text-md bg-base border-y border-tint-100 cursor-pointer flex items-center gap-1 z-2", isActiveSticky(index) && "sticky top-8"),
|
|
184
184
|
role: "none",
|
|
185
185
|
onClick: function onClick() {
|
|
186
186
|
return toggleGroupExpand(data.key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-fabric/data",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.54",
|
|
4
4
|
"description": "RUF: Data package",
|
|
5
5
|
"author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"watch": "npm-run-all -p watch:rollup watch:dts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@react-fabric/core": "^1.0.0-beta.
|
|
39
|
-
"@react-fabric/date": "^1.0.0-beta.
|
|
40
|
-
"@react-fabric/form": "^1.0.0-beta.
|
|
38
|
+
"@react-fabric/core": "^1.0.0-beta.54",
|
|
39
|
+
"@react-fabric/date": "^1.0.0-beta.54",
|
|
40
|
+
"@react-fabric/form": "^1.0.0-beta.54",
|
|
41
41
|
"@react-fabric/utilities": "^1.0.0-beta.52",
|
|
42
42
|
"@tanstack/react-virtual": "^3.13.9",
|
|
43
43
|
"classnames": "^2.5.1",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"node": ">=18.12.0",
|
|
55
55
|
"npm": ">=8.19.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "242f15e3de29d365cce6f41f4ef99ab36bb6b995"
|
|
58
58
|
}
|
package/src/table/Table.tsx
CHANGED
|
@@ -179,7 +179,7 @@ export const Table = <T extends KeyValue = KeyValue>({
|
|
|
179
179
|
>
|
|
180
180
|
<div
|
|
181
181
|
data-ref="tableHeader"
|
|
182
|
-
className="bg-base font-medium sticky top-0 h-8 area-head border-b select-none flex flex-nowrap z-
|
|
182
|
+
className="bg-base font-medium sticky top-0 h-8 area-head border-b select-none flex flex-nowrap z-3"
|
|
183
183
|
>
|
|
184
184
|
<div className={wrapperStart}>
|
|
185
185
|
{canExpand && <div className="w-6" />}
|
|
@@ -247,7 +247,7 @@ export const Table = <T extends KeyValue = KeyValue>({
|
|
|
247
247
|
ref={measureElement}
|
|
248
248
|
data-index={index}
|
|
249
249
|
className={classNames(
|
|
250
|
-
"px-2 py-1 text-md bg-base border-y border-tint-100 cursor-pointer flex items-center gap-1 z-
|
|
250
|
+
"px-2 py-1 text-md bg-base border-y border-tint-100 cursor-pointer flex items-center gap-1 z-2",
|
|
251
251
|
isActiveSticky(index) && "sticky top-8",
|
|
252
252
|
)}
|
|
253
253
|
role="none"
|