@react-spectrum/table 3.8.1-nightly.3869 → 3.8.1-nightly.3871
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/import.mjs +19 -13
- package/dist/main.css +1 -1
- package/dist/main.js +19 -13
- package/dist/main.js.map +1 -1
- package/dist/module.js +19 -13
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +31 -31
- package/src/TableView.tsx +5 -2
- package/src/table.css +46 -37
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;AKmIA,oCAAoC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,EAAE,sBAAsB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IAC3H;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAC7C;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACnC,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,MAAM,IAAI,OAAO,CAAC;IACrC,sEAAsE;IACtE,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACvD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClD;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACrD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,CA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react-spectrum/table/src/InsertionIndicator.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/Nubbin.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/Resizer.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/RootDropIndicator.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/DragPreview.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableView.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/index.ts","packages/@react-spectrum/table/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {TableView} from './TableView';\nimport {Column} from '@react-stately/table';\nimport {SpectrumColumnProps} from '@react-types/table';\n\n// Override TS for Column to support spectrum specific props.\nconst SpectrumColumn = Column as <T>(props: SpectrumColumnProps<T>) => JSX.Element;\nexport {SpectrumColumn as Column};\n\nexport {\n TableHeader,\n TableBody,\n Section,\n Row,\n Cell\n} from '@react-stately/table';\n\nexport type {SpectrumColumnProps, TableHeaderProps, TableBodyProps, RowProps, CellProps} from '@react-types/table';\nexport type {SpectrumTableProps} from './TableView';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/table",
|
|
3
|
-
"version": "3.8.1-nightly.
|
|
3
|
+
"version": "3.8.1-nightly.3871+08d5ee8a8",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,38 +36,38 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/button": "3.0.0-nightly.
|
|
40
|
-
"@react-aria/focus": "3.0.0-nightly.
|
|
41
|
-
"@react-aria/grid": "3.7.1-nightly.
|
|
42
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
|
43
|
-
"@react-aria/interactions": "3.0.0-nightly.
|
|
44
|
-
"@react-aria/table": "3.9.1-nightly.
|
|
45
|
-
"@react-aria/utils": "3.0.0-nightly.
|
|
46
|
-
"@react-aria/virtualizer": "3.8.1-nightly.
|
|
47
|
-
"@react-aria/visually-hidden": "3.0.0-nightly.
|
|
48
|
-
"@react-spectrum/button": "3.0.0-nightly.
|
|
49
|
-
"@react-spectrum/checkbox": "3.0.0-nightly.
|
|
50
|
-
"@react-spectrum/dnd": "3.1.2-nightly.
|
|
51
|
-
"@react-spectrum/layout": "3.5.2-nightly.
|
|
52
|
-
"@react-spectrum/menu": "3.11.1-nightly.
|
|
53
|
-
"@react-spectrum/progress": "3.0.0-nightly.
|
|
54
|
-
"@react-spectrum/tooltip": "3.0.0-nightly.
|
|
55
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
|
56
|
-
"@react-stately/collections": "3.0.0-nightly.
|
|
57
|
-
"@react-stately/grid": "3.6.1-nightly.
|
|
58
|
-
"@react-stately/layout": "3.12.1-nightly.
|
|
59
|
-
"@react-stately/table": "3.9.1-nightly.
|
|
60
|
-
"@react-stately/virtualizer": "3.5.2-nightly.
|
|
61
|
-
"@react-types/grid": "3.1.8-nightly.
|
|
62
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
63
|
-
"@react-types/table": "3.6.1-nightly.
|
|
64
|
-
"@spectrum-icons/ui": "3.0.0-nightly.
|
|
39
|
+
"@react-aria/button": "3.0.0-nightly.2169+08d5ee8a8",
|
|
40
|
+
"@react-aria/focus": "3.0.0-nightly.2169+08d5ee8a8",
|
|
41
|
+
"@react-aria/grid": "3.7.1-nightly.3871+08d5ee8a8",
|
|
42
|
+
"@react-aria/i18n": "3.0.0-nightly.2169+08d5ee8a8",
|
|
43
|
+
"@react-aria/interactions": "3.0.0-nightly.2169+08d5ee8a8",
|
|
44
|
+
"@react-aria/table": "3.9.1-nightly.3871+08d5ee8a8",
|
|
45
|
+
"@react-aria/utils": "3.0.0-nightly.2169+08d5ee8a8",
|
|
46
|
+
"@react-aria/virtualizer": "3.8.1-nightly.3871+08d5ee8a8",
|
|
47
|
+
"@react-aria/visually-hidden": "3.0.0-nightly.2169+08d5ee8a8",
|
|
48
|
+
"@react-spectrum/button": "3.0.0-nightly.2169+08d5ee8a8",
|
|
49
|
+
"@react-spectrum/checkbox": "3.0.0-nightly.2169+08d5ee8a8",
|
|
50
|
+
"@react-spectrum/dnd": "3.1.2-nightly.3871+08d5ee8a8",
|
|
51
|
+
"@react-spectrum/layout": "3.5.2-nightly.3871+08d5ee8a8",
|
|
52
|
+
"@react-spectrum/menu": "3.11.1-nightly.3871+08d5ee8a8",
|
|
53
|
+
"@react-spectrum/progress": "3.0.0-nightly.2169+08d5ee8a8",
|
|
54
|
+
"@react-spectrum/tooltip": "3.0.0-nightly.2169+08d5ee8a8",
|
|
55
|
+
"@react-spectrum/utils": "3.0.0-nightly.2169+08d5ee8a8",
|
|
56
|
+
"@react-stately/collections": "3.0.0-nightly.2169+08d5ee8a8",
|
|
57
|
+
"@react-stately/grid": "3.6.1-nightly.3871+08d5ee8a8",
|
|
58
|
+
"@react-stately/layout": "3.12.1-nightly.3871+08d5ee8a8",
|
|
59
|
+
"@react-stately/table": "3.9.1-nightly.3871+08d5ee8a8",
|
|
60
|
+
"@react-stately/virtualizer": "3.5.2-nightly.3871+08d5ee8a8",
|
|
61
|
+
"@react-types/grid": "3.1.8-nightly.3871+08d5ee8a8",
|
|
62
|
+
"@react-types/shared": "3.0.0-nightly.2169+08d5ee8a8",
|
|
63
|
+
"@react-types/table": "3.6.1-nightly.3871+08d5ee8a8",
|
|
64
|
+
"@spectrum-icons/ui": "3.0.0-nightly.2169+08d5ee8a8",
|
|
65
65
|
"@swc/helpers": "^0.4.14"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
|
69
|
-
"@react-aria/dnd": "3.2.1-nightly.
|
|
70
|
-
"@react-stately/dnd": "3.2.1-nightly.
|
|
68
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.2169+08d5ee8a8",
|
|
69
|
+
"@react-aria/dnd": "3.2.1-nightly.3871+08d5ee8a8",
|
|
70
|
+
"@react-stately/dnd": "3.2.1-nightly.3871+08d5ee8a8"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@react-spectrum/provider": "^3.0.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "08d5ee8a8082f5cebfd9680defaec53aa857f315"
|
|
81
81
|
}
|
package/src/TableView.tsx
CHANGED
|
@@ -726,6 +726,7 @@ function TableVirtualizer({layout, collection, focusedKey, renderView, renderWra
|
|
|
726
726
|
},
|
|
727
727
|
classNames(
|
|
728
728
|
stylesOverrides,
|
|
729
|
+
'react-spectrum-Table-body',
|
|
729
730
|
{
|
|
730
731
|
'react-spectrum-Table-body--dropTarget': !!isRootDropTarget
|
|
731
732
|
}
|
|
@@ -1124,7 +1125,8 @@ function TableDragHeaderCell({column}) {
|
|
|
1124
1125
|
'spectrum-Table-headCell',
|
|
1125
1126
|
classNames(
|
|
1126
1127
|
stylesOverrides,
|
|
1127
|
-
'react-spectrum-
|
|
1128
|
+
'react-spectrum-Table-headCell',
|
|
1129
|
+
'react-spectrum-Table-dragButtonHeadCell'
|
|
1128
1130
|
)
|
|
1129
1131
|
)
|
|
1130
1132
|
}>
|
|
@@ -1154,7 +1156,7 @@ function DragButton() {
|
|
|
1154
1156
|
className={
|
|
1155
1157
|
classNames(
|
|
1156
1158
|
stylesOverrides,
|
|
1157
|
-
'spectrum-Table-
|
|
1159
|
+
'react-spectrum-Table-dragButton'
|
|
1158
1160
|
)
|
|
1159
1161
|
}
|
|
1160
1162
|
style={!isFocusVisibleWithin ? {...visuallyHiddenProps.style} : {}}
|
|
@@ -1290,6 +1292,7 @@ function TableRow({item, children, hasActions, isTableDraggable, isTableDroppabl
|
|
|
1290
1292
|
},
|
|
1291
1293
|
classNames(
|
|
1292
1294
|
stylesOverrides,
|
|
1295
|
+
'react-spectrum-Table-row',
|
|
1293
1296
|
{'react-spectrum-Table-row--dropTarget': isDropTarget}
|
|
1294
1297
|
)
|
|
1295
1298
|
)
|
package/src/table.css
CHANGED
|
@@ -118,13 +118,15 @@
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.react-spectrum-Table-body
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
.react-spectrum-Table-body {
|
|
122
|
+
&.react-spectrum-Table-body--dropTarget {
|
|
123
|
+
border-color: var(--spectrum-table-dropindicator-border-color);
|
|
124
|
+
background-color: var(--spectrum-alias-highlight-selected);
|
|
125
|
+
box-shadow: inset 0 0 0 1px var(--spectrum-table-cell-border-color-key-focus);
|
|
125
126
|
|
|
126
|
-
|
|
127
|
-
|
|
127
|
+
/* forced-color-adjust: none, so that box-shadow style will render */
|
|
128
|
+
forced-color-adjust: none;
|
|
129
|
+
}
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
.react-spectrum-Table-InsertionIndicator {
|
|
@@ -170,46 +172,53 @@
|
|
|
170
172
|
}
|
|
171
173
|
}
|
|
172
174
|
|
|
173
|
-
.react-spectrum-Table-
|
|
174
|
-
|
|
175
|
+
.react-spectrum-Table-headCell {
|
|
176
|
+
&.react-spectrum-Table-dragButtonHeadCell {
|
|
177
|
+
padding: 0;
|
|
178
|
+
height: inherit;
|
|
179
|
+
}
|
|
175
180
|
}
|
|
176
181
|
|
|
177
|
-
.spectrum-Table-
|
|
178
|
-
|
|
179
|
-
|
|
182
|
+
.react-spectrum-Table-cell {
|
|
183
|
+
&.react-spectrum-Table-dragButtonCell {
|
|
184
|
+
padding: var(--spectrum-global-dimension-size-40);
|
|
180
185
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
186
|
+
.react-spectrum-Table-dragButton {
|
|
187
|
+
border-radius: var(--spectrum-alias-border-radius-regular);
|
|
188
|
+
padding: var(--spectrum-global-dimension-size-10);
|
|
184
189
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
svg {
|
|
189
|
-
margin: auto 0;
|
|
190
|
-
display: block;
|
|
191
|
-
padding: var(--spectrum-global-dimension-size-40);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
190
|
+
&:focus-ring {
|
|
191
|
+
box-shadow: inset 0 0 0 2px var(--spectrum-table-cell-border-color-key-focus);
|
|
192
|
+
outline: none;
|
|
194
193
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
/* forced-color-adjust: none, so that box-shadow style will render */
|
|
195
|
+
forced-color-adjust: none;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
svg {
|
|
199
|
+
margin: auto 0;
|
|
200
|
+
display: block;
|
|
201
|
+
padding: var(--spectrum-global-dimension-size-40);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
198
205
|
}
|
|
199
206
|
|
|
200
|
-
.react-spectrum-Table-row
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
inset
|
|
204
|
-
|
|
205
|
-
|
|
207
|
+
.react-spectrum-Table-row {
|
|
208
|
+
&.react-spectrum-Table-row--dropTarget {
|
|
209
|
+
border: 1px var(--spectrum-table-dropindicator-border-color);
|
|
210
|
+
box-shadow: inset 2px 0 0 0 var(--spectrum-table-dropindicator-border-color),
|
|
211
|
+
inset -2px 0 0 0 var(--spectrum-table-dropindicator-border-color),
|
|
212
|
+
inset 0 -3px 0 0 var(--spectrum-table-dropindicator-border-color),
|
|
213
|
+
inset 0 2px 0 0 var(--spectrum-table-dropindicator-border-color);
|
|
206
214
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
215
|
+
/* forced-color-adjust: none, so that box-shadow style will render */
|
|
216
|
+
forced-color-adjust: none;
|
|
217
|
+
}
|
|
210
218
|
|
|
211
|
-
.react-spectrum-Table-cellWrapper.react-spectrum-Table-cellWrapper--dropTarget {
|
|
212
|
-
|
|
219
|
+
.react-spectrum-Table-cellWrapper.react-spectrum-Table-cellWrapper--dropTarget {
|
|
220
|
+
background-color: var(--spectrum-table-droptarget-background-color);
|
|
221
|
+
}
|
|
213
222
|
}
|
|
214
223
|
|
|
215
224
|
@media (forced-colors: active) {
|