@redseed/redseed-ui-tailwindcss 7.32.0 → 7.33.1
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/components/td.css +24 -8
- package/components/th.css +20 -5
- package/package.json +3 -3
package/components/td.css
CHANGED
|
@@ -19,16 +19,18 @@
|
|
|
19
19
|
@apply whitespace-normal overflow-auto overscroll-auto;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
/* Pinned body cell — sticks to the left during horizontal scroll.
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
/* Pinned body cell — sticks to the left during horizontal scroll on sm+ viewports.
|
|
23
|
+
Below sm the column scrolls normally: a pinned column eats too much of a
|
|
24
|
+
phone-width table to be useful, so pinning is a liability there.
|
|
25
|
+
When sticky, the background must be opaque so scrolled content doesn't show
|
|
26
|
+
through; matches the row hover bg when the row is clickable. */
|
|
25
27
|
.rsui-td--pinned {
|
|
26
|
-
|
|
27
|
-
left: 0;
|
|
28
|
-
z-index: 1;
|
|
29
|
-
background-color: var(--color-background-primary);
|
|
28
|
+
@apply sm:sticky sm:left-0 sm:z-1 sm:bg-background-primary;
|
|
30
29
|
}
|
|
31
30
|
|
|
31
|
+
/* Separator is always rendered (display can't transition) but transparent
|
|
32
|
+
below sm; at sm+ it fades in. Only visible while the viewport is resized
|
|
33
|
+
across the breakpoint. Disabled under reduced motion. */
|
|
32
34
|
.rsui-td--pinned::after {
|
|
33
35
|
content: '';
|
|
34
36
|
position: absolute;
|
|
@@ -38,9 +40,23 @@
|
|
|
38
40
|
width: 1px;
|
|
39
41
|
background-color: var(--color-border-primary);
|
|
40
42
|
pointer-events: none;
|
|
43
|
+
opacity: 0;
|
|
44
|
+
transition: opacity 200ms ease;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (width >= 40rem) {
|
|
48
|
+
.rsui-td--pinned::after {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (prefers-reduced-motion: reduce) {
|
|
54
|
+
.rsui-td--pinned::after {
|
|
55
|
+
transition: none;
|
|
56
|
+
}
|
|
41
57
|
}
|
|
42
58
|
|
|
43
59
|
.rsui-tr--clickable:hover .rsui-td--pinned,
|
|
44
60
|
.rsui-tr--clickable:focus-visible .rsui-td--pinned {
|
|
45
|
-
|
|
61
|
+
@apply sm:bg-background-disabled;
|
|
46
62
|
}
|
package/components/th.css
CHANGED
|
@@ -98,16 +98,17 @@
|
|
|
98
98
|
@apply rotate-180;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
/* Pinned header cell — stays put during horizontal scroll.
|
|
101
|
+
/* Pinned header cell — stays put during horizontal scroll on sm+ viewports.
|
|
102
|
+
Below sm the column scrolls normally (see td.css for why pinning is a
|
|
103
|
+
liability on phone-width tables).
|
|
102
104
|
Opaque header bg so scrolled-under cells don't show through.
|
|
103
105
|
Subtle right-edge separator marks the scroll boundary. */
|
|
104
106
|
.rsui-th--pinned {
|
|
105
|
-
|
|
106
|
-
left: 0;
|
|
107
|
-
z-index: 1;
|
|
108
|
-
background-color: var(--color-background-disabled);
|
|
107
|
+
@apply sm:sticky sm:left-0 sm:z-1 sm:bg-background-disabled;
|
|
109
108
|
}
|
|
110
109
|
|
|
110
|
+
/* Mirrors the body-cell separator: transparent below sm, fades in at sm+.
|
|
111
|
+
See td.css for the full rationale. */
|
|
111
112
|
.rsui-th--pinned::after {
|
|
112
113
|
content: '';
|
|
113
114
|
position: absolute;
|
|
@@ -117,4 +118,18 @@
|
|
|
117
118
|
width: 1px;
|
|
118
119
|
background-color: var(--color-border-primary);
|
|
119
120
|
pointer-events: none;
|
|
121
|
+
opacity: 0;
|
|
122
|
+
transition: opacity 200ms ease;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@media (width >= 40rem) {
|
|
126
|
+
.rsui-th--pinned::after {
|
|
127
|
+
opacity: 1;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media (prefers-reduced-motion: reduce) {
|
|
132
|
+
.rsui-th--pinned::after {
|
|
133
|
+
transition: none;
|
|
134
|
+
}
|
|
120
135
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redseed/redseed-ui-tailwindcss",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.33.1",
|
|
4
4
|
"description": "RedSeed UI Tailwindcss",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"style": "index.css",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"author": "",
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tailwindcss/vite": "4.
|
|
16
|
-
"tailwindcss": "4.
|
|
15
|
+
"@tailwindcss/vite": "4.3.0",
|
|
16
|
+
"tailwindcss": "4.3.0"
|
|
17
17
|
}
|
|
18
18
|
}
|