@polymarbot/nuxt-layer-shadcn-ui 0.1.9 → 0.1.10

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.
@@ -2,6 +2,7 @@
2
2
  @import 'tw-animate-css';
3
3
  @import './colors.css';
4
4
  @import './utilities.css';
5
+ @import './z-index.css';
5
6
 
6
7
  /* Ensure Tailwind scans the layer's own source files */
7
8
  @source '../../..';
@@ -0,0 +1,27 @@
1
+ /* =========================================================================
2
+ * Portal-rendered overlays — z-index
3
+ * -------------------------------------------------------------------------
4
+ * Reka UI portals (Dialog, Sheet, Tooltip, etc.) render OUTSIDE each
5
+ * component's DOM scope, so z-index must be applied via non-scoped
6
+ * selectors. Centralized here so the stacking order stays consistent.
7
+ *
8
+ * Stacking order (low → high):
9
+ * layout header z-100 (project convention)
10
+ * dialog / sheet (Modal / Drawer) z-200 (cover the header)
11
+ * tooltip / popover / dropdown / select z-300 (above modal when nested)
12
+ * ========================================================================= */
13
+
14
+ [data-slot='dialog-overlay'],
15
+ [data-slot='dialog-content'],
16
+ [data-slot='sheet-overlay'],
17
+ [data-slot='sheet-content'] {
18
+ z-index: 200;
19
+ }
20
+
21
+ [data-slot='tooltip-content'],
22
+ [data-slot='popover-content'],
23
+ [data-slot='dropdown-menu-content'],
24
+ [data-slot='dropdown-menu-sub-content'],
25
+ [data-slot='select-content'] {
26
+ z-index: 300;
27
+ }
@@ -175,7 +175,6 @@ const contentClass = computed(() =>
175
175
  /* Translucent blur backdrop. SheetOverlay is rendered inside DialogPortal
176
176
  (outside component scope), so use a non-scoped style. */
177
177
  [data-slot='sheet-overlay'] {
178
- z-index: 200;
179
178
  background-color: rgba(252, 252, 252, 0.3);
180
179
  backdrop-filter: blur(2px);
181
180
  -webkit-backdrop-filter: blur(2px);
@@ -184,11 +183,6 @@ const contentClass = computed(() =>
184
183
  background-color: rgba(25, 25, 25, 0.3);
185
184
  }
186
185
 
187
- /* Raise above layout header (z-100) so the drawer covers it. */
188
- [data-slot='sheet-content'] {
189
- z-index: 200;
190
- }
191
-
192
186
  /* Hide SheetContent's hardcoded built-in close button (no data-slot);
193
187
  we render our own SheetClose above with loading-aware disable. */
194
188
  [data-slot='sheet-content'] > button:not([data-slot]) {
@@ -187,7 +187,6 @@ const contentClass = computed(() =>
187
187
  /* Translucent blur backdrop. DialogOverlay is rendered inside DialogPortal
188
188
  (outside component scope), so use a non-scoped style. */
189
189
  [data-slot='dialog-overlay'] {
190
- z-index: 200;
191
190
  background-color: rgba(252, 252, 252, 0.3);
192
191
  backdrop-filter: blur(2px);
193
192
  -webkit-backdrop-filter: blur(2px);
@@ -195,8 +194,4 @@ const contentClass = computed(() =>
195
194
  .dark [data-slot='dialog-overlay'] {
196
195
  background-color: rgba(25, 25, 25, 0.3);
197
196
  }
198
- /* Raise above layout header (z-100) so the dialog covers it. */
199
- [data-slot='dialog-content'] {
200
- z-index: 200;
201
- }
202
197
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polymarbot/nuxt-layer-shadcn-ui",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Nuxt layer providing shadcn-vue based UI components",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -42,5 +42,5 @@
42
42
  "vue-i18n": "^11",
43
43
  "vue-router": "^4 || ^5"
44
44
  },
45
- "gitHead": "2330486301c717cc44e2d04a2eaf57a600da77fc"
45
+ "gitHead": "a73daeb2b68f3c5be4456866e294e5f26501f2ac"
46
46
  }