@auronui/styles 1.0.6 → 1.0.8
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/base/base.css +7 -0
- package/components/alert-dialog.css +4 -2
- package/components/autocomplete.css +1 -0
- package/components/color-picker.css +1 -0
- package/components/combo-box.css +1 -0
- package/components/date-picker.css +1 -0
- package/components/date-range-picker.css +1 -0
- package/components/date-time-picker.css +1 -0
- package/components/drawer.css +4 -2
- package/components/dropdown.css +1 -0
- package/components/modal.css +4 -2
- package/components/popover.css +1 -0
- package/components/select.css +1 -0
- package/components/toast.css +2 -1
- package/components/tooltip.css +1 -0
- package/package.json +1 -1
package/base/base.css
CHANGED
|
@@ -26,6 +26,13 @@
|
|
|
26
26
|
/* Keeps main page content interactive during view transitions */
|
|
27
27
|
:root {
|
|
28
28
|
view-transition-name: none;
|
|
29
|
+
|
|
30
|
+
/* Z-index layering scale */
|
|
31
|
+
--z-modal-backdrop: 50; /* backdrop behind modal / drawer / alert-dialog */
|
|
32
|
+
--z-modal: 100; /* modal, drawer, alert-dialog panels */
|
|
33
|
+
--z-popover: 200; /* floating UI: dropdowns, selects, popovers, date-pickers */
|
|
34
|
+
--z-tooltip: 300; /* tooltips — above all other floating UI */
|
|
35
|
+
--z-toast: 400; /* toasts — always on top */
|
|
29
36
|
}
|
|
30
37
|
|
|
31
38
|
::view-transition {
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
* Element: backdrop - the overlay behind the dialog
|
|
44
44
|
*/
|
|
45
45
|
.alert-dialog__backdrop {
|
|
46
|
-
@apply fixed inset-0
|
|
46
|
+
@apply fixed inset-0;
|
|
47
|
+
z-index: var(--z-modal-backdrop);
|
|
47
48
|
|
|
48
49
|
/* Entering animation — Reka UI sets data-state="open" when mounted */
|
|
49
50
|
&[data-state="open"] {
|
|
@@ -91,7 +92,8 @@
|
|
|
91
92
|
* Element: container - the positioning wrapper for the modal
|
|
92
93
|
*/
|
|
93
94
|
.alert-dialog__container {
|
|
94
|
-
@apply fixed inset-0
|
|
95
|
+
@apply fixed inset-0;
|
|
96
|
+
z-index: var(--z-modal);
|
|
95
97
|
@apply flex flex-col items-center;
|
|
96
98
|
@apply w-full min-w-0;
|
|
97
99
|
@apply p-4 sm:p-10;
|
|
@@ -622,6 +622,7 @@
|
|
|
622
622
|
--trigger-width: var(--reka-combobox-trigger-width);
|
|
623
623
|
--trigger-anchor-point: var(--reka-combobox-content-transform-origin);
|
|
624
624
|
|
|
625
|
+
z-index: var(--z-popover);
|
|
625
626
|
@apply scroll-py-1 overflow-y-auto overscroll-contain rounded-3xl bg-overlay p-0 text-sm;
|
|
626
627
|
width: var(--trigger-width);
|
|
627
628
|
transform-origin: var(--trigger-anchor-point);
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
========================================================================== */
|
|
67
67
|
|
|
68
68
|
.color-picker__popover {
|
|
69
|
+
z-index: var(--z-popover);
|
|
69
70
|
@apply min-w-62 origin-(--trigger-anchor-point) overflow-x-hidden overflow-y-auto overscroll-contain bg-overlay px-2 pt-2 pb-3;
|
|
70
71
|
box-shadow: var(--shadow-overlay);
|
|
71
72
|
border-radius: calc(var(--radius) * 2.5);
|
package/components/combo-box.css
CHANGED
|
@@ -163,6 +163,7 @@
|
|
|
163
163
|
--trigger-width: var(--reka-combobox-trigger-width);
|
|
164
164
|
--trigger-anchor-point: var(--reka-combobox-content-transform-origin);
|
|
165
165
|
|
|
166
|
+
z-index: var(--z-popover);
|
|
166
167
|
@apply scroll-py-1 overflow-y-auto overscroll-contain rounded-3xl bg-overlay p-0 text-sm;
|
|
167
168
|
width: var(--trigger-width);
|
|
168
169
|
transform-origin: var(--trigger-anchor-point);
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
/* ─── Popover shell ───────────────────────────────────────────────────────── */
|
|
52
52
|
|
|
53
53
|
.date-time-picker__popover {
|
|
54
|
+
z-index: var(--z-popover);
|
|
54
55
|
@apply origin-(--trigger-anchor-point) overflow-hidden bg-overlay p-0;
|
|
55
56
|
min-width: 17rem;
|
|
56
57
|
box-shadow: var(--shadow-overlay);
|
package/components/drawer.css
CHANGED
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
* Reka's Presence component waits for animationend before unmounting.
|
|
52
52
|
*/
|
|
53
53
|
.drawer__backdrop {
|
|
54
|
-
@apply fixed inset-0
|
|
54
|
+
@apply fixed inset-0;
|
|
55
|
+
z-index: var(--z-modal-backdrop);
|
|
55
56
|
@apply h-(--visual-viewport-height) w-full;
|
|
56
57
|
|
|
57
58
|
&[data-state="open"] {
|
|
@@ -95,7 +96,8 @@
|
|
|
95
96
|
* animationend on this element before unmounting on close.
|
|
96
97
|
*/
|
|
97
98
|
.drawer__dialog {
|
|
98
|
-
@apply fixed
|
|
99
|
+
@apply fixed;
|
|
100
|
+
z-index: var(--z-modal);
|
|
99
101
|
@apply flex flex-col;
|
|
100
102
|
@apply bg-overlay shadow-overlay outline-none;
|
|
101
103
|
@apply p-6;
|
package/components/dropdown.css
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
/* Positioning, sizing, and open/close animations — visuals come from card classes */
|
|
41
41
|
.dropdown__popover {
|
|
42
|
+
z-index: var(--z-popover);
|
|
42
43
|
@apply max-w-[48svw] origin-(--trigger-anchor-point) scroll-py-1 overflow-y-auto overscroll-contain md:min-w-55;
|
|
43
44
|
@apply will-change-[opacity,transform];
|
|
44
45
|
|
package/components/modal.css
CHANGED
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
* Element: backdrop - the overlay behind the dialog
|
|
43
43
|
*/
|
|
44
44
|
.modal__backdrop {
|
|
45
|
-
@apply fixed inset-0
|
|
45
|
+
@apply fixed inset-0;
|
|
46
|
+
z-index: var(--z-modal-backdrop);
|
|
46
47
|
@apply flex flex-row items-center justify-center;
|
|
47
48
|
@apply h-(--visual-viewport-height) w-full;
|
|
48
49
|
|
|
@@ -92,7 +93,8 @@
|
|
|
92
93
|
* Element: container - the positioning wrapper for the modal
|
|
93
94
|
*/
|
|
94
95
|
.modal__container {
|
|
95
|
-
@apply flex flex-col items-center fixed
|
|
96
|
+
@apply flex flex-col items-center fixed top-[50%] left-[50%] max-h-[85vh] w-[90vw] max-w-[450px] translate-x-[-50%] translate-y-[-50%];
|
|
97
|
+
z-index: var(--z-modal);
|
|
96
98
|
@apply h-(--visual-viewport-height) w-full min-w-0 flex-1;
|
|
97
99
|
@apply p-4;
|
|
98
100
|
@apply sm:w-fit sm:p-10;
|
package/components/popover.css
CHANGED
package/components/select.css
CHANGED
|
@@ -602,6 +602,7 @@
|
|
|
602
602
|
--trigger-width: var(--reka-select-trigger-width);
|
|
603
603
|
--trigger-anchor-point: var(--reka-select-content-transform-origin);
|
|
604
604
|
|
|
605
|
+
z-index: var(--z-popover);
|
|
605
606
|
@apply scroll-py-1 overflow-y-auto overscroll-contain rounded-3xl bg-overlay p-0 text-sm;
|
|
606
607
|
width: var(--trigger-width);
|
|
607
608
|
transform-origin: var(--trigger-anchor-point);
|
package/components/toast.css
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
/* Toast Region - Fixed container that stacks toasts along Y axis */
|
|
7
7
|
.toast-region {
|
|
8
|
-
@apply pointer-events-none fixed
|
|
8
|
+
@apply pointer-events-none fixed outline-none;
|
|
9
|
+
z-index: var(--z-toast);
|
|
9
10
|
@apply w-[calc(100vw-2rem)] sm:w-auto;
|
|
10
11
|
|
|
11
12
|
display: flex;
|
package/components/tooltip.css
CHANGED