@redseed/redseed-ui-tailwindcss 7.30.0 → 7.30.2
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/card.css +4 -2
- package/components/column_picker.css +31 -0
- package/components/td.css +26 -0
- package/components/th.css +21 -0
- package/components.css +1 -0
- package/package.json +1 -1
package/components/card.css
CHANGED
|
@@ -72,8 +72,10 @@
|
|
|
72
72
|
@apply absolute inset-0 size-full pointer-events-none rounded-xl border-border-secondary;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
/* Prevent table row hover background from bleeding past card rounded corners
|
|
76
|
-
|
|
75
|
+
/* Prevent table row hover background from bleeding past card rounded corners.
|
|
76
|
+
Opt out while a dropdown menu is open inside the card — otherwise the menu
|
|
77
|
+
gets clipped by the card's overflow boundary. */
|
|
78
|
+
.rsui-card:has(.rsui-table):not(:has(.rsui-dropdown-menu__container--open)) {
|
|
77
79
|
@apply overflow-x-hidden;
|
|
78
80
|
}
|
|
79
81
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.rsui-column-picker__count {
|
|
2
|
+
@apply inline-flex items-center px-1.5 ml-1 text-xs rounded-md bg-background-disabled text-text-secondary;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.rsui-column-picker__list {
|
|
6
|
+
@apply flex flex-col p-1 min-w-44;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.rsui-column-picker__item {
|
|
10
|
+
@apply flex items-center gap-2.5 px-2 py-1.5 rounded-md cursor-pointer text-sm text-text-primary;
|
|
11
|
+
@apply hover:bg-background-secondary;
|
|
12
|
+
@apply focus-visible:bg-background-secondary focus-visible:outline-none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.rsui-column-picker__check {
|
|
16
|
+
@apply shrink-0 flex items-center justify-center;
|
|
17
|
+
@apply w-4 h-4 rounded border border-border-primary bg-background-primary;
|
|
18
|
+
@apply transition-colors;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.rsui-column-picker__check svg {
|
|
22
|
+
@apply w-3 h-3 stroke-[3] text-text-primary;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.rsui-column-picker__check--on {
|
|
26
|
+
@apply border-text-primary;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.rsui-column-picker__label {
|
|
30
|
+
@apply leading-none;
|
|
31
|
+
}
|
package/components/td.css
CHANGED
|
@@ -18,3 +18,29 @@
|
|
|
18
18
|
.rsui-td--fixed {
|
|
19
19
|
@apply whitespace-normal overflow-auto overscroll-auto;
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
/* Pinned body cell — sticks to the left during horizontal scroll.
|
|
23
|
+
Background must be opaque so scrolled content doesn't show through;
|
|
24
|
+
matches the row hover bg when the row is clickable. */
|
|
25
|
+
.rsui-td--pinned {
|
|
26
|
+
position: sticky;
|
|
27
|
+
left: 0;
|
|
28
|
+
z-index: 1;
|
|
29
|
+
background-color: var(--color-background-primary);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.rsui-td--pinned::after {
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 0;
|
|
36
|
+
right: 0;
|
|
37
|
+
bottom: 0;
|
|
38
|
+
width: 1px;
|
|
39
|
+
background-color: var(--color-border-primary);
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.rsui-tr--clickable:hover .rsui-td--pinned,
|
|
44
|
+
.rsui-tr--clickable:focus-visible .rsui-td--pinned {
|
|
45
|
+
background-color: var(--color-background-disabled);
|
|
46
|
+
}
|
package/components/th.css
CHANGED
|
@@ -67,3 +67,24 @@
|
|
|
67
67
|
.rsui-th__sort-icon--desc {
|
|
68
68
|
@apply rotate-180;
|
|
69
69
|
}
|
|
70
|
+
|
|
71
|
+
/* Pinned header cell — stays put during horizontal scroll.
|
|
72
|
+
Opaque header bg so scrolled-under cells don't show through.
|
|
73
|
+
Subtle right-edge separator marks the scroll boundary. */
|
|
74
|
+
.rsui-th--pinned {
|
|
75
|
+
position: sticky;
|
|
76
|
+
left: 0;
|
|
77
|
+
z-index: 1;
|
|
78
|
+
background-color: var(--color-background-disabled);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.rsui-th--pinned::after {
|
|
82
|
+
content: '';
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 0;
|
|
85
|
+
right: 0;
|
|
86
|
+
bottom: 0;
|
|
87
|
+
width: 1px;
|
|
88
|
+
background-color: var(--color-border-primary);
|
|
89
|
+
pointer-events: none;
|
|
90
|
+
}
|
package/components.css
CHANGED
|
@@ -21,6 +21,7 @@ Please be careful when adding new components and updating the order.
|
|
|
21
21
|
@import './components/card.css';
|
|
22
22
|
@import './components/card_header.css';
|
|
23
23
|
@import './components/checkbox_card.css';
|
|
24
|
+
@import './components/column_picker.css';
|
|
24
25
|
@import './components/comments.css';
|
|
25
26
|
@import './components/comment.css';
|
|
26
27
|
@import './components/disclosure.css';
|