@gridkitjs/theme-tailwind 0.12.0 → 0.13.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/README.md +13 -13
- package/package.json +1 -1
- package/src/styles.css +345 -297
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Import it after Tailwind, in the stylesheet where you import `tailwindcss`:
|
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
That is all — `@gridkitjs/react` renders semantic class names
|
|
21
|
-
(`gridkit-data-grid`, `header-cell`, `grid-row`), and this stylesheet targets
|
|
21
|
+
(`gridkit-data-grid`, `gridkit-header-cell`, `gridkit-grid-row`), and this stylesheet targets
|
|
22
22
|
them directly. Nothing needs to scan the component source.
|
|
23
23
|
|
|
24
24
|
## Dark mode
|
|
@@ -95,18 +95,18 @@ highlight under the pointer.
|
|
|
95
95
|
|
|
96
96
|
The grid marks its own state, so a consumer's CSS can reach it too:
|
|
97
97
|
|
|
98
|
-
| Class
|
|
99
|
-
|
|
|
100
|
-
| `is-selected`
|
|
101
|
-
| `is-resizing` / `is-dragging`
|
|
102
|
-
| `is-drop-before` / `is-drop-after`
|
|
103
|
-
| `is-reorderable` / `is-wrapped`
|
|
104
|
-
| `selectable-rows` / `selectable-columns` / `selectable-cells` | On the grid, per `selectable` |
|
|
105
|
-
| `no-hover-rows` / `no-hover-columns` / `no-hover-cells` | On the grid, per `hoverable` |
|
|
106
|
-
| `is-sorted-asc` / `is-sorted-desc`
|
|
107
|
-
| `is-grouped`
|
|
108
|
-
| `is-expanded`
|
|
109
|
-
| `is-drag-target` / `is-drag-blocked`
|
|
98
|
+
| Class | On |
|
|
99
|
+
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
100
|
+
| `is-selected` | A selected `gridkit-grid-row`, `gridkit-header-cell` or `gridkit-grid-cell` |
|
|
101
|
+
| `is-resizing` / `is-dragging` | The column being resized or dragged |
|
|
102
|
+
| `is-drop-before` / `is-drop-after` | Where a dragged column would land |
|
|
103
|
+
| `is-reorderable` / `is-wrapped` | A header that drags; a cell that wraps |
|
|
104
|
+
| `gridkit-selectable-rows` / `gridkit-selectable-columns` / `gridkit-selectable-cells` | On the grid, per `selectable` |
|
|
105
|
+
| `gridkit-no-hover-rows` / `gridkit-no-hover-columns` / `gridkit-no-hover-cells` | On the grid, per `hoverable` |
|
|
106
|
+
| `is-sorted-asc` / `is-sorted-desc` | A header's `gridkit-header-sort-toggle` while its column sorts |
|
|
107
|
+
| `is-grouped` | A header's `gridkit-header-group-toggle` while its column is grouped |
|
|
108
|
+
| `is-expanded` | A group row's `gridkit-group-toggle` while the group is open |
|
|
109
|
+
| `is-drag-target` / `is-drag-blocked` | The group-by bar while a drag can drop on it; while a header already grouped is dragged at it |
|
|
110
110
|
|
|
111
111
|
The `selectable-*` classes enable and the `no-hover-*` classes disable, because
|
|
112
112
|
selection is off by default and hover is on — each follows its own default.
|