@auronui/styles 1.0.7 → 1.0.9

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 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 z-50;
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 z-50;
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);
@@ -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);
@@ -41,6 +41,7 @@
41
41
  }
42
42
 
43
43
  .date-picker__popover {
44
+ z-index: var(--z-popover);
44
45
  @apply max-w-(--trigger-width) origin-(--trigger-anchor-point) overflow-x-hidden overflow-y-auto overscroll-contain bg-overlay p-3;
45
46
  @apply motion-reduce:transition-none;
46
47
 
@@ -44,6 +44,7 @@
44
44
  }
45
45
 
46
46
  .date-range-picker__popover {
47
+ z-index: var(--z-popover);
47
48
  @apply max-w-(--trigger-width) origin-(--trigger-anchor-point) overflow-x-hidden overflow-y-auto overscroll-contain bg-overlay p-3;
48
49
  @apply motion-reduce:transition-none;
49
50
 
@@ -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);
@@ -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 z-50;
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 z-50;
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;
@@ -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
 
@@ -42,7 +42,8 @@
42
42
  * Element: backdrop - the overlay behind the dialog
43
43
  */
44
44
  .modal__backdrop {
45
- @apply fixed inset-0 z-50;
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 z-[100] top-[50%] left-[50%] max-h-[85vh] w-[90vw] max-w-[450px] translate-x-[-50%] translate-y-[-50%];
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;
@@ -3,6 +3,7 @@
3
3
  /* Base popover styles */
4
4
  .popover {
5
5
  @apply origin-(--trigger-anchor-point) rounded-3xl bg-overlay p-0 text-sm;
6
+ z-index: var(--z-popover);
6
7
  box-shadow: var(--shadow-overlay);
7
8
 
8
9
  /* Entering animations */
@@ -551,15 +551,15 @@
551
551
  /* Cursor */
552
552
  cursor: var(--cursor-interactive);
553
553
 
554
- &[data-state="open"] {
555
- @apply rotate-180;
556
- }
557
-
558
554
  &[data-slot="select-default-indicator"] {
559
555
  @apply size-4;
560
556
  }
561
557
  }
562
558
 
559
+ .select__trigger[data-state="open"] .select__indicator {
560
+ @apply rotate-180;
561
+ }
562
+
563
563
  /* ─── Start Content ──────────────────────────────────────────────────────── */
564
564
 
565
565
  .select__start-content {
@@ -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);
@@ -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 z-50 outline-none;
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;
@@ -3,6 +3,7 @@
3
3
  /* Base tooltip styles */
4
4
  .tooltip {
5
5
  @apply max-w-xs text-xs break-all;
6
+ z-index: var(--z-tooltip);
6
7
  /* box-shadow: var(--shadow-overlay); */
7
8
  will-change: opacity, transform;
8
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auronui/styles",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Auron core styles — adapted for Reka UI",
5
5
  "type": "module",
6
6
  "license": "MIT",