@spark-web/data-table 1.0.0-rc.3 → 1.0.0-rc.5
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,39 @@
|
|
|
1
1
|
# @spark-web/data-table
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.5
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- test
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies []:
|
|
12
|
+
- @spark-web/checkbox@2.0.0-rc.5
|
|
13
|
+
- @spark-web/spinner@2.0.0-rc.5
|
|
14
|
+
- @spark-web/theme@4.0.0-rc.5
|
|
15
|
+
- @spark-web/utils@2.0.0-rc.5
|
|
16
|
+
- @spark-web/a11y@2.0.0-rc.5
|
|
17
|
+
- @spark-web/text@2.0.0-rc.5
|
|
18
|
+
- @spark-web/box@2.0.0-rc.5
|
|
19
|
+
|
|
20
|
+
## 1.0.0-rc.4
|
|
21
|
+
|
|
22
|
+
### Major Changes
|
|
23
|
+
|
|
24
|
+
- bug
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies []:
|
|
29
|
+
- @spark-web/checkbox@2.0.0-rc.4
|
|
30
|
+
- @spark-web/spinner@2.0.0-rc.4
|
|
31
|
+
- @spark-web/theme@4.0.0-rc.4
|
|
32
|
+
- @spark-web/utils@2.0.0-rc.4
|
|
33
|
+
- @spark-web/a11y@2.0.0-rc.4
|
|
34
|
+
- @spark-web/text@2.0.0-rc.4
|
|
35
|
+
- @spark-web/box@2.0.0-rc.4
|
|
36
|
+
|
|
3
37
|
## 1.0.0-rc.3
|
|
4
38
|
|
|
5
39
|
### Major Changes
|
|
@@ -63,7 +63,7 @@ function DataTable(_ref) {
|
|
|
63
63
|
return jsxRuntime.jsxs(box.Box, _objectSpread(_objectSpread({
|
|
64
64
|
as: "table"
|
|
65
65
|
}, data ? internal.buildDataAttributes(data) : undefined), {}, {
|
|
66
|
-
|
|
66
|
+
css: className,
|
|
67
67
|
children: [headerGroups.length > 0 ? jsxRuntime.jsx(react.ClassNames, {
|
|
68
68
|
children: function children(_ref2) {
|
|
69
69
|
var css = _ref2.css,
|
|
@@ -71,7 +71,7 @@ function DataTable(_ref) {
|
|
|
71
71
|
return jsxRuntime.jsx(box.Box, {
|
|
72
72
|
as: "thead",
|
|
73
73
|
background: "neutral",
|
|
74
|
-
|
|
74
|
+
css: cx(css({
|
|
75
75
|
// we use box shadow instead of bottom border
|
|
76
76
|
// to allow the border to stay in the header on scroll
|
|
77
77
|
// when the table is sticky
|
|
@@ -104,7 +104,7 @@ function DataTable(_ref) {
|
|
|
104
104
|
return jsxRuntime.jsxs(React__default["default"].Fragment, {
|
|
105
105
|
children: [jsxRuntime.jsx(box.Box, {
|
|
106
106
|
as: "tr",
|
|
107
|
-
|
|
107
|
+
className: react.css({
|
|
108
108
|
'&[data-is-selected="true"],&[data-is-expanded="true"]': {
|
|
109
109
|
background: theme$1.color.background.primaryMuted
|
|
110
110
|
},
|
|
@@ -63,7 +63,7 @@ function DataTable(_ref) {
|
|
|
63
63
|
return jsxRuntime.jsxs(box.Box, _objectSpread(_objectSpread({
|
|
64
64
|
as: "table"
|
|
65
65
|
}, data ? internal.buildDataAttributes(data) : undefined), {}, {
|
|
66
|
-
|
|
66
|
+
css: className,
|
|
67
67
|
children: [headerGroups.length > 0 ? jsxRuntime.jsx(react.ClassNames, {
|
|
68
68
|
children: function children(_ref2) {
|
|
69
69
|
var css = _ref2.css,
|
|
@@ -71,7 +71,7 @@ function DataTable(_ref) {
|
|
|
71
71
|
return jsxRuntime.jsx(box.Box, {
|
|
72
72
|
as: "thead",
|
|
73
73
|
background: "neutral",
|
|
74
|
-
|
|
74
|
+
css: cx(css({
|
|
75
75
|
// we use box shadow instead of bottom border
|
|
76
76
|
// to allow the border to stay in the header on scroll
|
|
77
77
|
// when the table is sticky
|
|
@@ -104,7 +104,7 @@ function DataTable(_ref) {
|
|
|
104
104
|
return jsxRuntime.jsxs(React__default["default"].Fragment, {
|
|
105
105
|
children: [jsxRuntime.jsx(box.Box, {
|
|
106
106
|
as: "tr",
|
|
107
|
-
|
|
107
|
+
className: react.css({
|
|
108
108
|
'&[data-is-selected="true"],&[data-is-expanded="true"]': {
|
|
109
109
|
background: theme$1.color.background.primaryMuted
|
|
110
110
|
},
|
|
@@ -56,7 +56,7 @@ function DataTable(_ref) {
|
|
|
56
56
|
return jsxs(Box, _objectSpread(_objectSpread({
|
|
57
57
|
as: "table"
|
|
58
58
|
}, data ? buildDataAttributes(data) : undefined), {}, {
|
|
59
|
-
|
|
59
|
+
css: className,
|
|
60
60
|
children: [headerGroups.length > 0 ? jsx(ClassNames, {
|
|
61
61
|
children: function children(_ref2) {
|
|
62
62
|
var css = _ref2.css,
|
|
@@ -64,7 +64,7 @@ function DataTable(_ref) {
|
|
|
64
64
|
return jsx(Box, {
|
|
65
65
|
as: "thead",
|
|
66
66
|
background: "neutral",
|
|
67
|
-
|
|
67
|
+
css: cx(css({
|
|
68
68
|
// we use box shadow instead of bottom border
|
|
69
69
|
// to allow the border to stay in the header on scroll
|
|
70
70
|
// when the table is sticky
|
|
@@ -97,7 +97,7 @@ function DataTable(_ref) {
|
|
|
97
97
|
return jsxs(React.Fragment, {
|
|
98
98
|
children: [jsx(Box, {
|
|
99
99
|
as: "tr",
|
|
100
|
-
|
|
100
|
+
className: css({
|
|
101
101
|
'&[data-is-selected="true"],&[data-is-expanded="true"]': {
|
|
102
102
|
background: theme.color.background.primaryMuted
|
|
103
103
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/data-table",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.5",
|
|
4
4
|
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/runtime": "^7.25.0",
|
|
20
20
|
"@emotion/react": "^11.14.0",
|
|
21
|
-
"@spark-web/a11y": "^2.0.0-rc.
|
|
22
|
-
"@spark-web/box": "^2.0.0-rc.
|
|
23
|
-
"@spark-web/checkbox": "^2.0.0-rc.
|
|
24
|
-
"@spark-web/spinner": "^2.0.0-rc.
|
|
25
|
-
"@spark-web/text": "^2.0.0-rc.
|
|
26
|
-
"@spark-web/theme": "^4.0.0-rc.
|
|
27
|
-
"@spark-web/utils": "^2.0.0-rc.
|
|
21
|
+
"@spark-web/a11y": "^2.0.0-rc.5",
|
|
22
|
+
"@spark-web/box": "^2.0.0-rc.5",
|
|
23
|
+
"@spark-web/checkbox": "^2.0.0-rc.5",
|
|
24
|
+
"@spark-web/spinner": "^2.0.0-rc.5",
|
|
25
|
+
"@spark-web/text": "^2.0.0-rc.5",
|
|
26
|
+
"@spark-web/theme": "^4.0.0-rc.5",
|
|
27
|
+
"@spark-web/utils": "^2.0.0-rc.5",
|
|
28
28
|
"@tanstack/react-table": "^8.14.0",
|
|
29
29
|
"react-intersection-observer": "^9.8.2"
|
|
30
30
|
},
|