@redseed/redseed-ui-tailwindcss 7.29.3 → 7.30.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.
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.rsui-drawer {
|
|
2
|
+
@apply fixed inset-0 z-50;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.rsui-drawer__background-wrapper {
|
|
6
|
+
@apply fixed inset-0 transition-all backdrop-blur-xs bg-text-primary/70;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.rsui-drawer__background {
|
|
10
|
+
@apply absolute inset-0 bg-transparent opacity-100;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.rsui-drawer__panel {
|
|
14
|
+
@apply fixed top-0 bottom-0 right-0 z-1 flex flex-col w-full;
|
|
15
|
+
@apply bg-background-primary shadow-full;
|
|
16
|
+
height: 100dvh;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.rsui-drawer__panel--entering {
|
|
20
|
+
transition: transform 250ms ease-out;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.rsui-drawer__panel--leaving {
|
|
24
|
+
transition: transform 180ms ease-in;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.rsui-drawer__panel--off-screen-right {
|
|
28
|
+
transform: translateX(100%);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.rsui-drawer__panel--off-screen-left {
|
|
32
|
+
transform: translateX(-100%);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.rsui-drawer__close-icon {
|
|
36
|
+
@apply absolute top-3 right-3 z-2 size-10 cursor-pointer rounded-lg flex items-center justify-center;
|
|
37
|
+
@apply text-text-secondary hover:text-text-primary hover:bg-border-secondary transition duration-200;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.rsui-drawer__panel--left {
|
|
41
|
+
@apply right-auto left-0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.rsui-drawer__panel--sm {
|
|
45
|
+
@apply sm:max-w-sm;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.rsui-drawer__panel--md {
|
|
49
|
+
@apply sm:max-w-md;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.rsui-drawer__panel--lg {
|
|
53
|
+
@apply sm:max-w-lg;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.rsui-drawer__header {
|
|
57
|
+
@apply shrink-0 p-0 bg-background-secondary text-lg font-semibold;
|
|
58
|
+
padding-top: max(0rem, env(safe-area-inset-top));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.rsui-drawer__header--padded {
|
|
62
|
+
@apply p-4;
|
|
63
|
+
padding-top: max(1rem, env(safe-area-inset-top));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.rsui-drawer__body {
|
|
67
|
+
@apply flex-1 min-h-0 overflow-y-auto p-0 bg-background-primary relative;
|
|
68
|
+
-ms-overflow-style: none;
|
|
69
|
+
scrollbar-width: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.rsui-drawer__body--padded {
|
|
73
|
+
@apply p-4;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.rsui-drawer__body::-webkit-scrollbar {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.rsui-drawer__footer {
|
|
81
|
+
@apply shrink-0 p-0 bg-background-secondary flex flex-col items-stretch gap-y-2;
|
|
82
|
+
@apply sm:flex-row sm:items-center sm:justify-end sm:gap-x-2 sm:gap-y-0;
|
|
83
|
+
padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.rsui-drawer__footer--padded {
|
|
87
|
+
@apply p-4;
|
|
88
|
+
padding-bottom: max(1rem, env(safe-area-inset-bottom));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.rsui-drawer__footer > .rsui-button-slot {
|
|
92
|
+
@apply w-full sm:w-fit;
|
|
93
|
+
}
|
|
@@ -64,9 +64,24 @@
|
|
|
64
64
|
@apply size-6 transform transition-transform;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Visibility utilities must come BEFORE the shared styling rule below, because
|
|
69
|
+
* `not-sr-only` resets width/padding/margin to defaults. If the styling rule
|
|
70
|
+
* came first, `not-sr-only` would override `w-full`, `py-3`, `pl-5`, `pr-14`
|
|
71
|
+
* etc. on the native <select> and the mobile picker would render with OS
|
|
72
|
+
* defaults, overflowing tight flex layouts.
|
|
73
|
+
*/
|
|
74
|
+
.rsui-form-field-select select {
|
|
75
|
+
@apply sr-only;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rsui-form-field-select--mobile select {
|
|
79
|
+
@apply not-sr-only;
|
|
80
|
+
}
|
|
81
|
+
|
|
67
82
|
.rsui-form-field-select__trigger,
|
|
68
83
|
.rsui-form-field-select--mobile select {
|
|
69
|
-
@apply block w-full border ring-0 bg-none cursor-pointer appearance-none transition;
|
|
84
|
+
@apply block w-full min-w-0 border ring-0 bg-none cursor-pointer appearance-none transition;
|
|
70
85
|
@apply py-3 pl-5 pr-14 truncate;
|
|
71
86
|
@apply text-base rounded-lg outline-hidden focus:outline-hidden;
|
|
72
87
|
@apply bg-background-primary text-text-primary placeholder-text-secondary border-border-primary;
|
|
@@ -82,14 +97,6 @@
|
|
|
82
97
|
@apply border-border-error ring-0;
|
|
83
98
|
}
|
|
84
99
|
|
|
85
|
-
.rsui-form-field-select select {
|
|
86
|
-
@apply sr-only;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.rsui-form-field-select--mobile select {
|
|
90
|
-
@apply not-sr-only;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
100
|
.rsui-form-field-select__live-region {
|
|
94
101
|
@apply sr-only;
|
|
95
102
|
}
|
package/components/modal.css
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.rsui-modal__body {
|
|
61
|
-
@apply p-0 bg-background-primary relative
|
|
61
|
+
@apply p-0 bg-background-primary relative z-0;
|
|
62
62
|
-ms-overflow-style: none;
|
|
63
63
|
scrollbar-width: none;
|
|
64
64
|
}
|
|
@@ -85,3 +85,9 @@
|
|
|
85
85
|
.rsui-modal__footer--start {
|
|
86
86
|
@apply justify-start;
|
|
87
87
|
}
|
|
88
|
+
|
|
89
|
+
/* Below sm:, stacked footer buttons should fill the row for larger tap targets.
|
|
90
|
+
Excludes the --start variant where left-aligned full-width reads as a list. */
|
|
91
|
+
.rsui-modal__footer:not(.rsui-modal__footer--start) > .rsui-button-slot {
|
|
92
|
+
@apply w-full sm:w-fit;
|
|
93
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.rsui-page-header__title {
|
|
12
|
-
@apply pr-2 flex flex-row items-
|
|
12
|
+
@apply pr-2 flex flex-row items-start space-x-6;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.rsui-page-header__title h1 {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.rsui-page-header__avatar {
|
|
60
|
-
@apply size-12 mr-3;
|
|
60
|
+
@apply shrink-0 size-12 mr-3;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
/* Profile variant — larger avatar, bottom-aligned text, inline subtitle */
|
package/components.css
CHANGED
|
@@ -24,6 +24,7 @@ Please be careful when adding new components and updating the order.
|
|
|
24
24
|
@import './components/comments.css';
|
|
25
25
|
@import './components/comment.css';
|
|
26
26
|
@import './components/disclosure.css';
|
|
27
|
+
@import './components/drawer.css';
|
|
27
28
|
@import './components/dropdown_menu.css';
|
|
28
29
|
@import './components/dropdown_option.css';
|
|
29
30
|
@import './components/empty.css';
|