@donotdev/ui 0.2.2 → 0.3.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.
Files changed (199) hide show
  1. package/dist/ChildRowsPicker-63M4EQUQ.js +1 -0
  2. package/dist/ChildRowsPicker-ISP365ON.js +1 -0
  3. package/dist/ChildRowsPicker-PQFE6NCR.js +1 -0
  4. package/dist/ChildRowsPicker-XXFFSMWY.js +1 -0
  5. package/dist/{GoToDialog-CICRYHHG.js → GoToDialog-KSBGOIWO.js} +1 -1
  6. package/dist/{GoToDialog-YGBON6FR.js → GoToDialog-XBK5EZF4.js} +1 -1
  7. package/dist/chunk-3CIZFGST.js +1 -0
  8. package/dist/chunk-LHMKU342.js +1 -0
  9. package/dist/chunk-MS7ZIW5Z.js +1 -0
  10. package/dist/chunk-P2DHZWPY.js +1 -0
  11. package/dist/components/auth/AuthHeader.d.ts.map +1 -1
  12. package/dist/components/auth/AuthHeader.js +0 -2
  13. package/dist/components/auth/AuthMenu.d.ts.map +1 -1
  14. package/dist/components/auth/AuthMenu.js +6 -40
  15. package/dist/components/common/icon.d.ts.map +1 -1
  16. package/dist/components/common/icon.js +2 -1
  17. package/dist/components/common/lucideIconByName.d.ts +9 -0
  18. package/dist/components/common/lucideIconByName.d.ts.map +1 -0
  19. package/dist/components/common/lucideIconByName.js +32 -0
  20. package/dist/components/layout/GameFlow.d.ts.map +1 -1
  21. package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
  22. package/dist/components/layout/components/Breadcrumbs.js +18 -12
  23. package/dist/components/layout/components/header/CacheSettings.d.ts.map +1 -1
  24. package/dist/components/layout/components/header/CacheSettings.js +6 -4
  25. package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
  26. package/dist/components/layout/components/header/SettingsMenu.js +4 -3
  27. package/dist/components/layout/components/header/ThemeToggle.d.ts.map +1 -1
  28. package/dist/components/layout/components/header/ThemeToggle.js +2 -1
  29. package/dist/crud/components/ChildRowsPicker.d.ts +21 -0
  30. package/dist/crud/components/ChildRowsPicker.d.ts.map +1 -0
  31. package/dist/crud/components/ChildRowsPicker.js +68 -0
  32. package/dist/crud/components/CrudCardLink.d.ts +6 -6
  33. package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
  34. package/dist/crud/components/CrudCardLink.js +3 -9
  35. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  36. package/dist/crud/components/EntityCardList.js +10 -26
  37. package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
  38. package/dist/crud/components/EntityDisplayRenderer.js +6 -3
  39. package/dist/crud/components/EntityFormRenderer.d.ts +4 -2
  40. package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
  41. package/dist/crud/components/EntityFormRenderer.js +160 -56
  42. package/dist/crud/components/EntityList.d.ts +6 -4
  43. package/dist/crud/components/EntityList.d.ts.map +1 -1
  44. package/dist/crud/components/EntityList.js +437 -92
  45. package/dist/crud/components/EntityRecommendations.js +1 -1
  46. package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
  47. package/dist/crud/components/EntityWorkflow.js +6 -4
  48. package/dist/crud/components/Form.d.ts +1 -1
  49. package/dist/crud/components/Form.d.ts.map +1 -1
  50. package/dist/crud/components/Form.js +2 -2
  51. package/dist/crud/components/cellEditFor.d.ts +43 -0
  52. package/dist/crud/components/cellEditFor.d.ts.map +1 -0
  53. package/dist/crud/components/cellEditFor.js +74 -0
  54. package/dist/crud/components/entityParent.d.ts +33 -0
  55. package/dist/crud/components/entityParent.d.ts.map +1 -0
  56. package/dist/crud/components/entityParent.js +76 -0
  57. package/dist/crud/components/useRecordBreadcrumb.d.ts +11 -0
  58. package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -0
  59. package/dist/crud/components/useRecordBreadcrumb.js +43 -0
  60. package/dist/crud/crudImports.d.ts +12 -1
  61. package/dist/crud/crudImports.d.ts.map +1 -1
  62. package/dist/crud/crudImports.js +11 -0
  63. package/dist/dndev-next.css +782 -193
  64. package/dist/dndev.css +784 -193
  65. package/dist/index.js +4 -4
  66. package/dist/internal/common/RouteErrorFallback.d.ts.map +1 -1
  67. package/dist/internal/common/RouteErrorFallback.js +2 -4
  68. package/dist/internal/devtools/components/ConfigTab.d.ts.map +1 -1
  69. package/dist/internal/devtools/components/ConfigTab.js +1 -1
  70. package/dist/internal/devtools/components/CookieTab.d.ts.map +1 -1
  71. package/dist/internal/devtools/components/CookieTab.js +1 -5
  72. package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
  73. package/dist/internal/devtools/components/DesignTab.js +18 -7
  74. package/dist/internal/devtools/components/StoresTab.d.ts.map +1 -1
  75. package/dist/internal/devtools/components/StoresTab.js +17 -3
  76. package/dist/internal/devtools/types.d.ts +3 -3
  77. package/dist/internal/devtools/types.d.ts.map +1 -1
  78. package/dist/internal/devtools/utils/maskSensitive.d.ts +1 -1
  79. package/dist/internal/devtools/utils/maskSensitive.d.ts.map +1 -1
  80. package/dist/internal/initializers/NextJsStoresInitializer.d.ts +3 -0
  81. package/dist/internal/initializers/NextJsStoresInitializer.d.ts.map +1 -1
  82. package/dist/internal/initializers/NextJsStoresInitializer.js +8 -1
  83. package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
  84. package/dist/internal/layout/DnDevLayout.js +21 -21
  85. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  86. package/dist/internal/layout/components/AutoMetaTags.js +42 -38
  87. package/dist/internal/layout/components/FontPreloadLinks.d.ts +7 -4
  88. package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +1 -1
  89. package/dist/internal/layout/components/FontPreloadLinks.js +12 -25
  90. package/dist/internal/layout/components/footer/FooterCopyright.d.ts +2 -0
  91. package/dist/internal/layout/components/footer/FooterCopyright.d.ts.map +1 -1
  92. package/dist/internal/layout/components/footer/FooterCopyright.js +4 -0
  93. package/dist/internal/layout/components/footer/useLegalLinks.d.ts +2 -1
  94. package/dist/internal/layout/components/footer/useLegalLinks.d.ts.map +1 -1
  95. package/dist/internal/layout/components/footer/useLegalLinks.js +4 -3
  96. package/dist/internal/layout/components/i18nSeoMeta.d.ts.map +1 -1
  97. package/dist/internal/layout/components/i18nSeoMeta.js +1 -0
  98. package/dist/internal/layout/zones/DnDevMergedBar.js +3 -3
  99. package/dist/internal/providers/UIProviders.d.ts +0 -8
  100. package/dist/internal/providers/UIProviders.d.ts.map +1 -1
  101. package/dist/internal/providers/UIProviders.js +45 -2
  102. package/dist/providers/NextJsAppProviders.d.ts +5 -1
  103. package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
  104. package/dist/providers/NextJsAppProviders.js +36 -6
  105. package/dist/providers/ViteAppProviders.d.ts.map +1 -1
  106. package/dist/providers/ViteAppProviders.js +42 -7
  107. package/dist/routing/404.d.ts +8 -1
  108. package/dist/routing/404.d.ts.map +1 -1
  109. package/dist/routing/404.js +9 -5
  110. package/dist/routing/AuthGuardFallback.d.ts.map +1 -1
  111. package/dist/routing/AuthGuardFallback.js +1 -2
  112. package/dist/routing/AuthReturnTo.d.ts.map +1 -1
  113. package/dist/routing/AuthReturnTo.js +9 -2
  114. package/dist/routing/GoTo.d.ts +0 -6
  115. package/dist/routing/GoTo.d.ts.map +1 -1
  116. package/dist/routing/GoTo.js +5 -8
  117. package/dist/routing/Link.d.ts +4 -2
  118. package/dist/routing/Link.d.ts.map +1 -1
  119. package/dist/routing/Link.js +8 -5
  120. package/dist/routing/SignedInRedirect.d.ts +27 -0
  121. package/dist/routing/SignedInRedirect.d.ts.map +1 -0
  122. package/dist/routing/SignedInRedirect.js +47 -0
  123. package/dist/routing/hooks/hooks.next.d.ts +2 -0
  124. package/dist/routing/hooks/hooks.next.d.ts.map +1 -1
  125. package/dist/routing/hooks/hooks.next.js +1 -1
  126. package/dist/routing/hooks/hooks.vite.d.ts +2 -0
  127. package/dist/routing/hooks/hooks.vite.d.ts.map +1 -1
  128. package/dist/routing/hooks/hooks.vite.js +1 -1
  129. package/dist/routing/hooks/useLocation.next.d.ts +12 -0
  130. package/dist/routing/hooks/useLocation.next.d.ts.map +1 -1
  131. package/dist/routing/hooks/useLocation.next.js +17 -4
  132. package/dist/routing/hooks/useMatch.next.d.ts +6 -0
  133. package/dist/routing/hooks/useMatch.next.d.ts.map +1 -1
  134. package/dist/routing/hooks/useMatch.next.js +8 -2
  135. package/dist/routing/hooks/useNavigate.next.d.ts +6 -1
  136. package/dist/routing/hooks/useNavigate.next.d.ts.map +1 -1
  137. package/dist/routing/hooks/useNavigate.next.js +13 -4
  138. package/dist/routing/hooks/useNavigate.vite.d.ts +7 -1
  139. package/dist/routing/hooks/useNavigate.vite.d.ts.map +1 -1
  140. package/dist/routing/hooks/useNavigate.vite.js +20 -4
  141. package/dist/routing/hooks/useRedirectGuard.next.d.ts +3 -1
  142. package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
  143. package/dist/routing/hooks/useRedirectGuard.next.js +18 -10
  144. package/dist/routing/hooks/useRedirectGuard.vite.d.ts.map +1 -1
  145. package/dist/routing/hooks/useRedirectGuard.vite.js +7 -1
  146. package/dist/routing/hooks/useRoutePath.next.d.ts +23 -0
  147. package/dist/routing/hooks/useRoutePath.next.d.ts.map +1 -0
  148. package/dist/routing/hooks/useRoutePath.next.js +36 -0
  149. package/dist/routing/hooks/useRoutePath.vite.d.ts +13 -0
  150. package/dist/routing/hooks/useRoutePath.vite.d.ts.map +1 -0
  151. package/dist/routing/hooks/useRoutePath.vite.js +25 -0
  152. package/dist/routing/hooks/useUrlLanguage.next.d.ts +28 -0
  153. package/dist/routing/hooks/useUrlLanguage.next.d.ts.map +1 -0
  154. package/dist/routing/hooks/useUrlLanguage.next.js +50 -0
  155. package/dist/routing/hooks/useUrlLanguage.vite.d.ts +22 -0
  156. package/dist/routing/hooks/useUrlLanguage.vite.d.ts.map +1 -0
  157. package/dist/routing/hooks/useUrlLanguage.vite.js +41 -0
  158. package/dist/routing/index.d.ts +3 -1
  159. package/dist/routing/index.d.ts.map +1 -1
  160. package/dist/routing/index.js +2 -1
  161. package/dist/routing/parentRoute.d.ts +27 -0
  162. package/dist/routing/parentRoute.d.ts.map +1 -0
  163. package/dist/routing/parentRoute.js +43 -0
  164. package/dist/routing/useNavigation.d.ts.map +1 -1
  165. package/dist/routing/useNavigation.js +8 -27
  166. package/dist/routing/useRouteDiscovery.d.ts +2 -2
  167. package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
  168. package/dist/routing/useRouteDiscovery.js +6 -5
  169. package/dist/styles/index.css +781 -192
  170. package/dist/symbol-index.json +1 -1
  171. package/dist/utils/assetResolver.d.ts.map +1 -1
  172. package/dist/utils/assetResolver.js +1 -0
  173. package/dist/utils/index.d.ts +2 -0
  174. package/dist/utils/index.d.ts.map +1 -1
  175. package/dist/utils/index.js +3 -0
  176. package/dist/utils/useDeleteAccountSafe.d.ts +17 -0
  177. package/dist/utils/useDeleteAccountSafe.d.ts.map +1 -0
  178. package/dist/utils/useDeleteAccountSafe.js +52 -0
  179. package/dist/utils/useFormStoreSafe.d.ts.map +1 -1
  180. package/dist/utils/useFormStoreSafe.js +1 -0
  181. package/dist/utils/useSeo.d.ts +10 -2
  182. package/dist/utils/useSeo.d.ts.map +1 -1
  183. package/dist/utils/useSeo.js +44 -9
  184. package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
  185. package/dist/vite-routing/AppRoutes.js +37 -4
  186. package/guidelines/COMPONENTS.md +2 -1
  187. package/guidelines/GOTCHAS.md +2 -0
  188. package/guidelines/LAYOUTS.md +4 -0
  189. package/guidelines/PAGES.md +30 -3
  190. package/guidelines/ROUTING.md +29 -0
  191. package/guidelines/SEO.md +52 -0
  192. package/package.json +9 -9
  193. package/dist/CookieConsent-5NH5DNTP.js +0 -1
  194. package/dist/CookieConsent-W7UE647Y.js +0 -1
  195. package/dist/chunk-DRFM6WXH.js +0 -1
  196. package/dist/chunk-MIPTBUWY.js +0 -1
  197. package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts +0 -57
  198. package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts.map +0 -1
  199. package/dist/internal/layout/components/NextJsAutoMetaTags.js +0 -182
@@ -1,5 +1,5 @@
1
1
  /* packages/ui/src/dndev-next.css */
2
- /* Next.js variant: @fontsource fonts loaded via public/dndev-fonts.css (see FontPreloadLinks) */
2
+ /* Next.js variant: the theme's framework fonts load via public/dndev-fonts.css (copyFontsToPublic + FontPreloadLinks) */
3
3
 
4
4
  /* 1. Complete UI system (base design system + layout variables) */
5
5
 
@@ -64,9 +64,7 @@
64
64
  * applies regardless of density tier.
65
65
  */
66
66
  --gap-none: 0;
67
- --gap-sm: min(0.5rem, 2vw); /* 8px or 2vw, whichever is smaller */
68
- --gap-md: min(1rem, 2vw); /* 16px or 2vw */
69
- --gap-lg: min(2rem, 2vw); /* 32px or 2vw */
67
+ /* --gap-sm / --gap-md / --gap-lg: see DENSITY SYSTEM below */
70
68
 
71
69
  /* ===========================
72
70
  DIALOG SIZE VARIANTS
@@ -193,14 +191,7 @@
193
191
  /* Typography Scale - Musical Scale System (STANDARD density defaults - Major Third 1.25×) */
194
192
  --font-size-xs: 0.75rem; /* 12px - captions, shortcuts, meta */
195
193
  --font-size-sm: 0.875rem; /* 14px - small text, captions */
196
- --font-size-base: 1rem; /* 16px - body text, DEFAULT */
197
- --font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
198
- --font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
199
- --font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
200
- --font-size-3xl: 2.441rem; /* 39px - base × 1.25⁴ - hero text */
201
-
202
- /* Line Height - Musical Scale System (matches font scale ratio) */
203
- --line-height: 1.25; /* Major Third - Standard density default */
194
+ /* --font-size-base…3xl and --line-height: see DENSITY SYSTEM below */
204
195
 
205
196
  /* Font Weight - Semantic weights */
206
197
  --font-weight-normal: 400;
@@ -332,12 +323,36 @@
332
323
 
333
324
  /* ===========================
334
325
  DENSITY SYSTEM
335
- Semantic spacing and typography presets based on context
336
- Applied via [data-density] attribute on root or container
326
+ Semantic spacing and typography presets based on context.
327
+
328
+ App density: the layout wrapper (.dndev-layout) carries data-density in the
329
+ server HTML, and the tokens are declared on <html> from it (:has), so they
330
+ resolve on the first paint, before and without hydration.
331
+ Nested density: PageContainer / List set data-density on their own element.
332
+
333
+ The tokens are never declared on .dndev-layout itself: every element of the
334
+ app sits under it, so a declaration there would shadow the app's :root
335
+ overrides (themes.css). The <html> rules carry zero specificity (:where), so
336
+ an app :root override wins whatever the stylesheet order.
337
337
  =========================== */
338
338
 
339
+ /* Base values (standard density), used until a density applies */
340
+ :where(:root) {
341
+ --gap-sm: min(0.5rem, 2vw); /* 8px or 2vw, whichever is smaller */
342
+ --gap-md: min(1rem, 2vw); /* 16px or 2vw */
343
+ --gap-lg: min(2rem, 2vw); /* 32px or 2vw */
344
+ --font-size-base: 1rem; /* 16px - body text, DEFAULT */
345
+ --font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
346
+ --font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
347
+ --font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
348
+ --font-size-3xl: 2.441rem; /* 39px - base × 1.25⁴ - hero text */
349
+ /* Line Height - Musical Scale System (matches font scale ratio) */
350
+ --line-height: 1.25; /* Major Third - Standard density default */
351
+ }
352
+
339
353
  /* Compact (Admin/Data) - Dense, information-dense layouts - Minor Third (1.2×) */
340
- [data-density='compact'] {
354
+ :where(:root:has(.dndev-layout[data-density='compact'])),
355
+ [data-density='compact']:where(:not(.dndev-layout)) {
341
356
  /* Base sizes: Fluid responsiveness for all text, zoom-safe */
342
357
  --font-size-base: clamp(
343
358
  0.875rem,
@@ -377,7 +392,8 @@
377
392
  }
378
393
 
379
394
  /* Standard (Docs/SaaS) - DEFAULT, balanced for readability */
380
- [data-density='standard'] {
395
+ :where(:root:has(.dndev-layout[data-density='standard'])),
396
+ [data-density='standard']:where(:not(.dndev-layout)) {
381
397
  /* Base sizes: Fluid responsiveness for all text, zoom-safe */
382
398
  --font-size-base: clamp(
383
399
  1rem,
@@ -417,7 +433,8 @@
417
433
  }
418
434
 
419
435
  /* Expressive (Marketing) - Perfect Fourth (1.333×) + Fluid typography (2025 best practice) */
420
- [data-density='expressive'] {
436
+ :where(:root:has(.dndev-layout[data-density='expressive'])),
437
+ [data-density='expressive']:where(:not(.dndev-layout)) {
421
438
  /* Base sizes: Fluid responsiveness for all text, zoom-safe */
422
439
  --font-size-base: clamp(1rem, 0.875rem + 0.5vw, 1.125rem); /* 16-18px fluid */
423
440
  --font-size-lg: clamp(1.25rem, 1rem + 0.75vw, 1.5rem); /* 20-24px fluid */
@@ -449,9 +466,9 @@
449
466
  }
450
467
 
451
468
  /* Form field text: follows density, never below 16px (iOS focus zoom).
452
- Declared on [data-density] too, so nested densities resolve their own base. */
453
- :root,
454
- [data-density] {
469
+ Declared on nested [data-density] too, so they resolve their own base. */
470
+ :where(:root),
471
+ [data-density]:where(:not(.dndev-layout)) {
455
472
  --font-size-input: max(16px, var(--font-size-base));
456
473
  }
457
474
  /* 2. Theme system - color palette definitions */
@@ -3334,7 +3351,7 @@ em {
3334
3351
  display: inline-flex;
3335
3352
  align-items: center;
3336
3353
  justify-content: center;
3337
- padding: var(--gap-tight) 1px;
3354
+ padding: var(--gap-sm) 1px;
3338
3355
  border-radius: 2px;
3339
3356
  font-variant-numeric: tabular-nums;
3340
3357
  caret-color: transparent;
@@ -3715,6 +3732,50 @@ em {
3715
3732
  background: var(--card);
3716
3733
  }
3717
3734
 
3735
+ /* href: stretched link. The title is the <a href>; its ::after covers the whole
3736
+ card so the tile is clickable, while controls inside stay above it. The body
3737
+ must not be the containing block, or the hit area would stop at the cover. */
3738
+ .dndev-card[data-has-link='true'] > .dndev-card-body {
3739
+ position: static;
3740
+ }
3741
+
3742
+ .dndev-card-link {
3743
+ color: inherit;
3744
+ text-decoration: none;
3745
+ }
3746
+
3747
+ .dndev-card-link::after {
3748
+ content: '';
3749
+ position: absolute;
3750
+ inset: 0;
3751
+ z-index: 1;
3752
+ border-radius: inherit;
3753
+ }
3754
+
3755
+ .dndev-card-link:focus-visible {
3756
+ outline: none;
3757
+ }
3758
+
3759
+ .dndev-card[data-has-link='true']:has(.dndev-card-link:focus-visible) {
3760
+ outline: 2px solid var(--ring);
3761
+ outline-offset: 2px;
3762
+ }
3763
+
3764
+ .dndev-card[data-has-link='true']
3765
+ :is(
3766
+ a,
3767
+ button,
3768
+ input,
3769
+ select,
3770
+ textarea,
3771
+ label,
3772
+ [role='button'],
3773
+ [tabindex]
3774
+ ):not(.dndev-card-link) {
3775
+ position: relative;
3776
+ z-index: 2;
3777
+ }
3778
+
3718
3779
  /* Card body children spacing */
3719
3780
  .dndev-card-header {
3720
3781
  display: flex;
@@ -3779,7 +3840,8 @@ em {
3779
3840
 
3780
3841
  /* Contain: whole image visible on the muted cover background (cut-outs), inset
3781
3842
  proportionally so a packshot never touches the frame. */
3782
- .dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover) {
3843
+ .dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover),
3844
+ .dndev-card-cover[data-fit='contain'] > picture > img:not(.dndev-card-cover-hover) {
3783
3845
  -o-object-fit: contain;
3784
3846
  object-fit: contain;
3785
3847
  box-sizing: border-box;
@@ -3787,7 +3849,9 @@ em {
3787
3849
  }
3788
3850
 
3789
3851
  /* Hover view: stacked over the cover, crossfades in on hover / keyboard focus. */
3790
- .dndev-card-cover > img.dndev-card-cover-hover {
3852
+ /* An image pair renders <picture><img>: the <img> carries the class either way. */
3853
+ .dndev-card-cover > img.dndev-card-cover-hover,
3854
+ .dndev-card-cover > picture > img.dndev-card-cover-hover {
3791
3855
  position: absolute;
3792
3856
  inset: 0;
3793
3857
  -o-object-fit: cover;
@@ -3810,7 +3874,8 @@ em {
3810
3874
  }
3811
3875
 
3812
3876
  @media (prefers-reduced-motion: reduce) {
3813
- .dndev-card-cover > img.dndev-card-cover-hover {
3877
+ .dndev-card-cover > img.dndev-card-cover-hover,
3878
+ .dndev-card-cover > picture > img.dndev-card-cover-hover {
3814
3879
  transition: none;
3815
3880
  }
3816
3881
  }
@@ -4012,6 +4077,16 @@ em {
4012
4077
  transition: opacity var(--dur-fast) var(--ease-in-out);
4013
4078
  }
4014
4079
 
4080
+ /* <button> the component renders (showIcon, or non-element trigger): strip UA chrome */
4081
+ .dndev-collapsible-trigger--button {
4082
+ background: none;
4083
+ border: none;
4084
+ padding: 0;
4085
+ font: inherit;
4086
+ color: inherit;
4087
+ text-align: start;
4088
+ }
4089
+
4015
4090
  .dndev-collapsible-trigger:hover {
4016
4091
  opacity: var(--opacity-strong);
4017
4092
  }
@@ -4175,7 +4250,7 @@ em {
4175
4250
  height: 100%;
4176
4251
  display: flex;
4177
4252
  align-items: center;
4178
- gap: var(--gap-tight, 4px);
4253
+ gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token; must match computeTrailingPad() in index.tsx */
4179
4254
  z-index: 1;
4180
4255
  pointer-events: none; /* pass clicks through to input by default */
4181
4256
  }
@@ -4238,10 +4313,10 @@ em {
4238
4313
  display: flex;
4239
4314
  flex-wrap: wrap;
4240
4315
  align-items: center;
4241
- gap: var(--gap-tight, 4px);
4316
+ gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
4242
4317
  border: var(--border-hairline) solid var(--line-2);
4243
4318
  border-radius: var(--radius-interactive);
4244
- padding: var(--gap-tight, 4px);
4319
+ padding: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
4245
4320
  padding-inline-end: var(--combobox-pad-end);
4246
4321
  min-height: var(--touch-target);
4247
4322
  cursor: text;
@@ -4266,7 +4341,7 @@ em {
4266
4341
  flex: 1 1 80px;
4267
4342
  min-width: 80px;
4268
4343
  height: auto;
4269
- padding: var(--gap-tight, 4px) var(--gap-sm);
4344
+ padding: 4px var(--gap-sm); /* 4px: tighter than --gap-sm (8px), the smallest gap token */
4270
4345
  }
4271
4346
 
4272
4347
  /* ──────────────────────────────────────────────────
@@ -4313,7 +4388,7 @@ em {
4313
4388
  .dndev-combobox-option-content {
4314
4389
  display: flex;
4315
4390
  flex-direction: column;
4316
- gap: var(--gap-tight);
4391
+ gap: var(--gap-sm);
4317
4392
  flex: 1;
4318
4393
  }
4319
4394
 
@@ -4330,7 +4405,7 @@ em {
4330
4405
  .dndev-combobox-option-count {
4331
4406
  font-size: var(--font-size-xs);
4332
4407
  color: var(--muted-foreground);
4333
- margin-inline-start: var(--gap-tight);
4408
+ margin-inline-start: var(--gap-sm);
4334
4409
  flex-shrink: 0;
4335
4410
  }
4336
4411
 
@@ -5440,6 +5515,17 @@ em {
5440
5515
  outline: none;
5441
5516
  }
5442
5517
 
5518
+ /* Gallery pictures are always protected (with blockContextMenu + draggable=false):
5519
+ no drag, no iOS long-press "Save image" callout, no selection. */
5520
+ .image-gallery img,
5521
+ .image-gallery__lightbox-stage img {
5522
+ -webkit-touch-callout: none;
5523
+ -webkit-user-drag: none;
5524
+ -webkit-user-select: none;
5525
+ -moz-user-select: none;
5526
+ user-select: none;
5527
+ }
5528
+
5443
5529
  .image-gallery:focus-visible {
5444
5530
  outline: 2px solid var(--primary);
5445
5531
  outline-offset: 2px;
@@ -5473,13 +5559,57 @@ em {
5473
5559
  cursor: zoom-in;
5474
5560
  }
5475
5561
 
5476
- .image-gallery__main-image {
5562
+ /* Swipeable strip (main view and lightbox): native scrolling, one slide per snap point */
5563
+ .image-gallery__strip {
5564
+ /* Offset parent of the slides: a slide's offsetLeft is its scroll offset */
5565
+ position: relative;
5566
+ display: flex;
5567
+ height: 100%;
5568
+ overflow-x: auto;
5569
+ overflow-y: hidden;
5570
+ scroll-snap-type: x mandatory;
5571
+ overscroll-behavior-x: contain;
5572
+ scrollbar-width: none;
5573
+ }
5574
+
5575
+ .image-gallery__strip::-webkit-scrollbar {
5576
+ display: none;
5577
+ }
5578
+
5579
+ /* Arrow / thumbnail / key navigation glides to a neighbour (never a touch swipe) */
5580
+ @media (prefers-reduced-motion: no-preference) {
5581
+ .image-gallery__strip {
5582
+ scroll-behavior: smooth;
5583
+ }
5584
+ }
5585
+
5586
+ .image-gallery__slide {
5587
+ position: relative;
5588
+ flex: 0 0 100%;
5589
+ height: 100%;
5590
+ scroll-snap-align: start;
5591
+ scroll-snap-stop: always;
5592
+ }
5593
+
5594
+ .image-gallery__slide-img {
5595
+ position: absolute;
5596
+ inset: 0;
5597
+ display: block;
5477
5598
  width: 100%;
5478
5599
  height: 100%;
5479
5600
  -o-object-fit: cover;
5480
5601
  object-fit: cover;
5481
- display: block;
5482
- position: relative;
5602
+ -webkit-user-select: none;
5603
+ -moz-user-select: none;
5604
+ user-select: none;
5605
+ -webkit-user-drag: none;
5606
+ }
5607
+
5608
+ .image-gallery__slide-img[data-fit='contain'] {
5609
+ -o-object-fit: contain;
5610
+ object-fit: contain;
5611
+ box-sizing: border-box;
5612
+ padding: 6%;
5483
5613
  }
5484
5614
 
5485
5615
  /* Navigation arrows */
@@ -5598,38 +5728,186 @@ em {
5598
5728
  }
5599
5729
  }
5600
5730
 
5601
- /* Lightbox (full-size image dialog) */
5731
+ /* Lightbox: full-screen dialog, the viewer owns every gesture */
5602
5732
  .image-gallery__lightbox.dndev-modal-content {
5603
- max-width: min(96vw, 1400px);
5604
- max-height: 96dvh;
5605
- padding: var(--gap-sm);
5733
+ inset: 0;
5734
+ transform: none;
5735
+ width: 100vw;
5736
+ height: 100dvh;
5737
+ max-width: none;
5738
+ max-height: none;
5739
+ display: block;
5740
+ padding: 0;
5741
+ border: none;
5742
+ border-radius: 0;
5743
+ box-shadow: none;
5744
+ background: transparent;
5745
+ /* Fade only: the dialog keyframes translate a centred box */
5746
+ animation-name: overlay-in;
5606
5747
  }
5748
+ .image-gallery__lightbox.dndev-modal-content[data-state='closed'] {
5749
+ animation-name: overlay-out;
5750
+ }
5751
+ .image-gallery__lightbox.dndev-modal-content .dndev-modal-close {
5752
+ z-index: 4;
5753
+ opacity: 1;
5754
+ }
5607
5755
 
5608
5756
  .image-gallery__lightbox .dndev-modal-body {
5757
+ position: absolute;
5758
+ inset: 0;
5609
5759
  padding: 0;
5610
- display: flex;
5611
- align-items: center;
5612
- justify-content: center;
5613
5760
  overflow: hidden;
5614
- min-height: 40dvh;
5615
5761
  }
5616
5762
 
5617
- .image-gallery__lightbox-body {
5618
- position: relative;
5763
+ .image-gallery__lightbox-stage {
5764
+ position: absolute;
5765
+ inset: 0;
5766
+ overflow: hidden;
5767
+ outline: none;
5768
+ -webkit-user-select: none;
5769
+ -moz-user-select: none;
5770
+ user-select: none;
5771
+ }
5772
+
5773
+ /* Opaque layer behind the slides. The close drag fades it with opacity (composited);
5774
+ never animate its colour, that repaints the whole screen every frame. */
5775
+ .image-gallery__lightbox-backdrop {
5776
+ position: absolute;
5777
+ inset: 0;
5778
+ background-color: var(--background);
5779
+ will-change: opacity;
5780
+ }
5781
+
5782
+ /* pan-x: the browser pages; vertical drags and pinches reach the gesture code */
5783
+ .image-gallery__lightbox-strip {
5784
+ touch-action: pan-x;
5785
+ }
5786
+
5787
+ /* Zoomed: no paging, a drag pans the image */
5788
+ .image-gallery__lightbox-stage[data-zoomed] .image-gallery__lightbox-strip {
5789
+ touch-action: none;
5790
+ }
5791
+
5792
+ .image-gallery__lightbox-slide {
5619
5793
  display: flex;
5620
5794
  align-items: center;
5621
5795
  justify-content: center;
5796
+ box-sizing: border-box;
5797
+ padding: var(--gap-md);
5798
+ /* The frame sizes itself against the slide's content box (cq units) */
5799
+ container-type: size;
5800
+ }
5801
+
5802
+ /* Box of one image. Until its aspect ratio is known it fills the slide (the images are
5803
+ `contain`, so they look the same); then it is exactly the fitted image: the zoom, pan,
5804
+ hit-test and open / close morph target. */
5805
+ .image-gallery__lightbox-frame {
5806
+ position: relative;
5807
+ flex: none;
5622
5808
  width: 100%;
5623
- outline: none;
5809
+ height: 100%;
5810
+ cursor: zoom-in;
5624
5811
  }
5625
5812
 
5626
- .image-gallery__lightbox-img {
5627
- max-width: 100%;
5628
- max-height: 85dvh;
5629
- width: auto;
5813
+ .image-gallery__lightbox-frame[data-sized] {
5814
+ width: min(100cqw, 100cqh * var(--image-ratio));
5630
5815
  height: auto;
5816
+ aspect-ratio: var(--image-ratio);
5817
+ }
5818
+
5819
+ /* Full image over its cached thumbnail: never an empty slide while it downloads */
5820
+ .image-gallery__lightbox-frame > img {
5821
+ position: absolute;
5822
+ inset: 0;
5823
+ display: block;
5824
+ width: 100%;
5825
+ height: 100%;
5631
5826
  -o-object-fit: contain;
5632
5827
  object-fit: contain;
5828
+ -webkit-user-drag: none;
5829
+ }
5830
+
5831
+ .image-gallery__lightbox-frame[data-loaded] > .image-gallery__lightbox-placeholder {
5832
+ visibility: hidden;
5833
+ }
5834
+
5835
+ /* Own layer only for what a gesture moves: the dragged slide, the zoomed image */
5836
+ .image-gallery__lightbox-stage[data-closing]
5837
+ .image-gallery__lightbox-slide:not([aria-hidden]) {
5838
+ will-change: translate;
5839
+ }
5840
+
5841
+ .image-gallery__lightbox-stage[data-zoomed]
5842
+ .image-gallery__lightbox-slide:not([aria-hidden])
5843
+ > .image-gallery__lightbox-frame {
5844
+ will-change: transform;
5845
+ cursor: grab;
5846
+ }
5847
+
5848
+ .image-gallery__lightbox-stage[data-zoomed]:active
5849
+ .image-gallery__lightbox-frame {
5850
+ cursor: grabbing;
5851
+ }
5852
+
5853
+ /* Settles (snap back, double-tap / click zoom) are transitions, off during a gesture */
5854
+ @media (prefers-reduced-motion: no-preference) {
5855
+ .image-gallery__lightbox-stage[data-settle]
5856
+ :is(
5857
+ .image-gallery__lightbox-backdrop,
5858
+ .image-gallery__lightbox-slide,
5859
+ .image-gallery__lightbox-frame
5860
+ ) {
5861
+ transition-property: opacity, translate, transform;
5862
+ transition-duration: var(--dur-normal);
5863
+ transition-timing-function: var(--ease-heavy);
5864
+ }
5865
+
5866
+ /* Pan glide after a fling: a long deceleration. GLIDE_MS in lightboxGestures.ts
5867
+ projects the end point from these two tokens; keep them in step. */
5868
+ .image-gallery__lightbox-stage[data-settle='momentum']
5869
+ .image-gallery__lightbox-frame {
5870
+ transition-duration: var(--dur-slow);
5871
+ }
5872
+ }
5873
+
5874
+ /* Open / close morph: the tapped image grows into the lightbox and shrinks back
5875
+ (same-document view transition, run by the browser on the compositor). */
5876
+ ::view-transition-group(image-gallery-image) {
5877
+ animation-duration: var(--dur-normal);
5878
+ animation-timing-function: var(--ease-heavy);
5879
+ }
5880
+
5881
+ ::view-transition-old(image-gallery-image),
5882
+ ::view-transition-new(image-gallery-image) {
5883
+ height: 100%;
5884
+ -o-object-fit: cover;
5885
+ object-fit: cover;
5886
+ overflow: clip;
5887
+ }
5888
+
5889
+ /* With the morph, the view transition animates open / close: the dialog's own
5890
+ fade would run on top of it. Same conditions as `canMorph` in ImageGallery.tsx. */
5891
+ @supports (view-transition-name: none) {
5892
+ @media (prefers-reduced-motion: no-preference) {
5893
+ .image-gallery__lightbox.dndev-modal-content[data-state],
5894
+ .dndev-overlay[data-state]:has(+ .image-gallery__lightbox) {
5895
+ animation: none;
5896
+ }
5897
+ }
5898
+ }
5899
+
5900
+ .image-gallery__lightbox-counter {
5901
+ position: absolute;
5902
+ top: var(--gap-md);
5903
+ inset-inline-start: var(--gap-md);
5904
+ z-index: 3;
5905
+ padding: calc(var(--gap-sm) / 2) var(--gap-sm);
5906
+ border-radius: var(--radius-full);
5907
+ background-color: var(--card);
5908
+ color: var(--foreground);
5909
+ font-size: var(--font-size-sm);
5910
+ font-variant-numeric: tabular-nums;
5633
5911
  }
5634
5912
 
5635
5913
  .image-gallery__lightbox-nav {
@@ -5637,6 +5915,12 @@ em {
5637
5915
  z-index: 3;
5638
5916
  }
5639
5917
 
5918
+ /* Touch: swipe pages, so arrows are noise */
5919
+ @media (pointer: coarse) {
5920
+ .image-gallery__lightbox-nav {
5921
+ display: none;
5922
+ }
5923
+ }
5640
5924
  /* packages/components/src/atomic/Input/Input.css */
5641
5925
 
5642
5926
  /* Hide number input spinners - cleaner UI for price/range inputs */
@@ -5904,13 +6188,56 @@ input[type='number'] {
5904
6188
  cursor: default;
5905
6189
  display: inline-flex;
5906
6190
  align-items: center;
5907
- gap: var(--gap-tight);
6191
+ gap: var(--gap-sm);
5908
6192
  }
5909
6193
 
5910
6194
  .dndev-floating-fieldset[data-disabled='true'] .dndev-floating-legend {
5911
6195
  color: var(--muted-foreground);
5912
6196
  }
5913
6197
 
6198
+ /* Help (i) after the label: the label truncates, the button never does */
6199
+ .dndev-floating-legend[data-info] {
6200
+ display: flex;
6201
+ align-items: center;
6202
+ gap: calc(var(--gap-sm) / 2);
6203
+ }
6204
+
6205
+ .dndev-floating-legend[data-info] > label {
6206
+ display: block;
6207
+ min-width: 0;
6208
+ overflow: hidden;
6209
+ text-overflow: ellipsis;
6210
+ }
6211
+
6212
+ .dndev-field-info {
6213
+ display: inline-flex;
6214
+ flex-shrink: 0;
6215
+ align-items: center;
6216
+ justify-content: center;
6217
+ /* Larger hit area than the icon, without growing the legend */
6218
+ padding: calc(var(--gap-sm) / 2);
6219
+ margin: calc(var(--gap-sm) / -2);
6220
+ border: none;
6221
+ border-radius: var(--radius-full);
6222
+ background: none;
6223
+ color: var(--muted-foreground);
6224
+ cursor: help;
6225
+ }
6226
+
6227
+ .dndev-field-info:hover,
6228
+ .dndev-field-info:focus-visible {
6229
+ color: var(--foreground);
6230
+ }
6231
+
6232
+ .dndev-field-info:focus-visible {
6233
+ outline: var(--border-hairline) solid var(--ring);
6234
+ }
6235
+
6236
+ .dndev-field-info svg {
6237
+ width: 1.25em;
6238
+ height: 1.25em;
6239
+ }
6240
+
5914
6241
  /* Disable truncation when explicitly set to false */
5915
6242
  .dndev-floating-legend[data-truncate='false'] {
5916
6243
  max-width: none;
@@ -6230,7 +6557,7 @@ input[type='number'] {
6230
6557
  /* packages/components/src/atomic/PasswordInput/PasswordInput.css */
6231
6558
 
6232
6559
  .dndev-password-input-with-toggle {
6233
- padding-inline-end: calc(var(--gap-xl) + var(--gap-md)) !important;
6560
+ padding-inline-end: calc(var(--gap-lg) + var(--gap-md)) !important;
6234
6561
  }
6235
6562
 
6236
6563
  /* Eye icon toggle - ALWAYS at end, cannot be overridden */
@@ -6243,7 +6570,7 @@ input[type='number'] {
6243
6570
  background: none !important;
6244
6571
  border: none !important;
6245
6572
  cursor: pointer !important;
6246
- padding: var(--gap-tight) !important;
6573
+ padding: var(--gap-sm) !important;
6247
6574
  display: flex !important;
6248
6575
  align-items: center !important;
6249
6576
  opacity: var(--opacity-muted) !important;
@@ -6304,7 +6631,7 @@ input[type='number'] {
6304
6631
  background: none;
6305
6632
  border: none;
6306
6633
  cursor: pointer;
6307
- padding: var(--gap-tight, 0.25rem);
6634
+ padding: 0.25rem; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
6308
6635
  margin-inline-start: var(--gap-sm, 0.5rem);
6309
6636
  display: inline-flex;
6310
6637
  align-items: center;
@@ -6629,7 +6956,7 @@ input[type='number'] {
6629
6956
  }
6630
6957
 
6631
6958
  .dndev-range-input-separator {
6632
- padding-inline: var(--gap-tight);
6959
+ padding-inline: var(--gap-sm);
6633
6960
  }
6634
6961
 
6635
6962
  /* packages/components/src/atomic/Rating/Rating.css */
@@ -8123,6 +8450,107 @@ input[type='number'] {
8123
8450
  min-width: var(--touch-target);
8124
8451
  }
8125
8452
 
8453
+ .dndev-swipe-action {
8454
+ --swipe-action-width: 5.5rem;
8455
+ display: flex;
8456
+ min-inline-size: 0;
8457
+ }
8458
+
8459
+ .dndev-swipe-action-viewport {
8460
+ display: flex;
8461
+ flex: 1;
8462
+ min-inline-size: 0;
8463
+ overflow-x: auto;
8464
+ overflow-y: hidden;
8465
+ scroll-snap-type: x mandatory;
8466
+ overscroll-behavior-x: contain;
8467
+ scrollbar-width: none;
8468
+ touch-action: pan-x pan-y pinch-zoom;
8469
+ }
8470
+
8471
+ .dndev-swipe-action-viewport::-webkit-scrollbar {
8472
+ display: none;
8473
+ }
8474
+
8475
+ .dndev-swipe-action[data-disabled] .dndev-swipe-action-viewport,
8476
+ .dndev-swipe-action-viewport[data-input-blocked] {
8477
+ overflow-x: hidden;
8478
+ }
8479
+
8480
+ .dndev-swipe-action-content {
8481
+ flex: 0 0 100%;
8482
+ min-inline-size: 0;
8483
+ min-block-size: 44px;
8484
+ scroll-snap-align: start;
8485
+ background: var(--background);
8486
+ }
8487
+
8488
+ /* Scope to descendants, never a focusable cart/list ancestor. Touch-action is
8489
+ resolved before pointerdown, so controls cannot start horizontal scrolling. */
8490
+ .dndev-swipe-action-content :is(
8491
+ button, a, input, textarea, select, label, summary, [tabindex],
8492
+ [contenteditable]:not([contenteditable="false"]), [draggable="true"],
8493
+ [role="button"], [role="link"], [role="checkbox"], [role="switch"],
8494
+ [role="radio"], [role="slider"], [role="spinbutton"], [role="textbox"],
8495
+ [role="combobox"], [role="searchbox"], [role="menuitem"],
8496
+ [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"],
8497
+ [role="tab"], [role="treeitem"]
8498
+ ) {
8499
+ touch-action: pan-y pinch-zoom;
8500
+ }
8501
+
8502
+ .dndev-swipe-action-toggle,
8503
+ .dndev-swipe-action-delete {
8504
+ display: flex;
8505
+ align-items: center;
8506
+ justify-content: center;
8507
+ min-inline-size: 44px;
8508
+ min-block-size: 44px;
8509
+ border: 0;
8510
+ font: inherit;
8511
+ cursor: pointer;
8512
+ touch-action: manipulation;
8513
+ }
8514
+
8515
+ .dndev-swipe-action-toggle {
8516
+ flex-shrink: 0;
8517
+ background: var(--background);
8518
+ color: var(--foreground);
8519
+ }
8520
+
8521
+ /* Native overflow clips the closed action and progressively reveals its paint.
8522
+ Inert/disabled/ARIA state gates interaction until the open endpoint. */
8523
+ .dndev-swipe-action-delete {
8524
+ flex: 0 0 var(--swipe-action-width);
8525
+ scroll-snap-align: end;
8526
+ flex-direction: column;
8527
+ padding: var(--gap-sm);
8528
+ overflow-wrap: anywhere;
8529
+ background: var(--destructive);
8530
+ color: var(--destructive-foreground);
8531
+ }
8532
+
8533
+ .dndev-swipe-action svg {
8534
+ inline-size: var(--icon-md);
8535
+ block-size: var(--icon-md);
8536
+ flex-shrink: 0;
8537
+ }
8538
+
8539
+ .dndev-swipe-action button:focus-visible {
8540
+ outline: 2px solid var(--ring);
8541
+ outline-offset: -3px;
8542
+ }
8543
+
8544
+ .dndev-swipe-action button:disabled {
8545
+ cursor: default;
8546
+ }
8547
+
8548
+ @media (prefers-reduced-motion: reduce) {
8549
+ .dndev-swipe-action-viewport {
8550
+ scroll-behavior: auto;
8551
+ }
8552
+ }
8553
+
8126
8554
  /* packages/components/src/atomic/Switch/Switch.css */
8127
8555
 
8128
8556
  .dndev-switch {
@@ -8201,6 +8629,11 @@ input[type='number'] {
8201
8629
  will-change: transform;
8202
8630
  }
8203
8631
 
8632
+ /* Primary while on: thumb in the primary foreground (as Checkbox), readable on the track */
8633
+ .dndev-switch[data-variant='primary'][data-state='checked'] .dndev-switch-thumb {
8634
+ background-color: var(--primary-foreground);
8635
+ }
8636
+
8204
8637
  .dndev-switch[data-state='checked'] .dndev-switch-thumb {
8205
8638
  transform: translateX(calc(2.75rem - 1.25rem - 0.125rem));
8206
8639
  }
@@ -8256,6 +8689,10 @@ input[type='number'] {
8256
8689
  font-weight: var(--font-weight-normal);
8257
8690
  }
8258
8691
 
8692
+ /* Switch with a label after it: the switch keeps its size, the label wraps */
8693
+ .dndev-switch-field > .dndev-switch {
8694
+ flex-shrink: 0;
8695
+ }
8259
8696
  /* packages/components/src/atomic/Table/Table.css */
8260
8697
 
8261
8698
  .dndev-table-wrapper {
@@ -8285,7 +8722,7 @@ input[type='number'] {
8285
8722
 
8286
8723
  .dndev-table-filter-row .dndev-table-head {
8287
8724
  background-color: var(--muted);
8288
- padding: var(--gap-xs);
8725
+ padding: var(--gap-sm);
8289
8726
  height: auto;
8290
8727
  min-height: auto;
8291
8728
  }
@@ -8490,6 +8927,93 @@ input[type='number'] {
8490
8927
  opacity: var(--opacity-muted);
8491
8928
  }
8492
8929
  }
8930
+
8931
+ /* Editable DataTable --------------------------------------------------- */
8932
+
8933
+ /* Scope for editor lookup (keyboard navigation); adds no box. */
8934
+ .dndev-table-edit-scope {
8935
+ display: contents;
8936
+ }
8937
+
8938
+ .dndev-table-bulk-bar {
8939
+ padding: var(--gap-sm) var(--gap-sm);
8940
+ border: 1px solid var(--border);
8941
+ background-color: var(--muted);
8942
+ }
8943
+
8944
+ /* Cell editor: fills the cell, reads as text until focused. */
8945
+ .dndev-table-cell-editor {
8946
+ width: 100%;
8947
+ min-width: 6rem;
8948
+ font: inherit;
8949
+ color: inherit;
8950
+ background-color: transparent;
8951
+ border: 1px solid transparent;
8952
+ border-radius: var(--radius-sm);
8953
+ padding: var(--gap-sm);
8954
+ }
8955
+
8956
+ .dndev-table-cell-editor:hover {
8957
+ border-color: var(--border);
8958
+ }
8959
+
8960
+ .dndev-table-cell-editor:focus-visible,
8961
+ .dndev-table-cell-editor:focus {
8962
+ outline: 2px solid var(--ring);
8963
+ outline-offset: -1px;
8964
+ background-color: var(--background);
8965
+ }
8966
+
8967
+ .dndev-table-bulk-bar .dndev-table-cell-editor {
8968
+ width: auto;
8969
+ border-color: var(--border);
8970
+ background-color: var(--background);
8971
+ }
8972
+
8973
+ .dndev-table-cell[data-editable='true'] {
8974
+ padding-block: 0;
8975
+ }
8976
+
8977
+ /* Changed, not saved yet */
8978
+ .dndev-table-cell[data-dirty='true'] {
8979
+ background-color: color-mix(in oklab, var(--primary) 12%, transparent);
8980
+ }
8981
+
8982
+ /* Value that does not parse, or breaks a rule (cellErrors): the save will reject it */
8983
+ .dndev-table-cell[data-invalid='true'] .dndev-table-cell-editor {
8984
+ border-color: var(--destructive);
8985
+ }
8986
+
8987
+ /* Message of a rule the cell value breaks (cellErrors) */
8988
+ .dndev-table-cell-error {
8989
+ display: block;
8990
+ margin-block-start: var(--gap-sm);
8991
+ color: var(--destructive);
8992
+ font-size: var(--font-size-xs);
8993
+ line-height: 1.3;
8994
+ }
8995
+
8996
+ /* Open cell: icon link to the row's record (touch-sized hit area) */
8997
+ .dndev-table-open-link {
8998
+ display: inline-flex;
8999
+ align-items: center;
9000
+ justify-content: center;
9001
+ min-width: var(--touch-target);
9002
+ min-height: var(--touch-target);
9003
+ color: var(--muted-foreground);
9004
+ border-radius: var(--radius-sm);
9005
+ }
9006
+
9007
+ .dndev-table-open-link:hover {
9008
+ color: var(--foreground);
9009
+ background-color: var(--muted);
9010
+ }
9011
+
9012
+ .dndev-table-open-link:focus-visible {
9013
+ outline: 2px solid var(--ring);
9014
+ outline-offset: -1px;
9015
+ }
9016
+
8493
9017
  /* packages/components/src/atomic/Tabs/Tabs.css */
8494
9018
 
8495
9019
  /* Tabs list: use flexbox for natural wrapping, not grid */
@@ -8509,100 +9033,51 @@ input[type='number'] {
8509
9033
  word-break: break-word;
8510
9034
  border: var(--border-hairline) solid var(--line-2); /* Show clickable area */
8511
9035
 
8512
- /* Fallback (no variant): inactive = primary, active = foreground/card */
8513
- background-color: var(--primary);
8514
- color: var(--primary-foreground);
9036
+ /*
9037
+ * Inactive = neutral surface, active = filled with the variant colour, so the
9038
+ * selected tab is the one that stands out (the panel sits below with a gap, it
9039
+ * is not a folder tab joined to its content). --card not --background: the tab
9040
+ * surface must be opaque (--background can be transparent in some themes).
9041
+ */
9042
+ background-color: var(--card);
9043
+ color: var(--muted-foreground);
9044
+ --tab-active-bg: var(--primary);
9045
+ --tab-active-fg: var(--primary-foreground);
8515
9046
  }
8516
- .dndev-interactive[data-role='tab-trigger'][data-state='active'] {
8517
- /* --card not --background: active tab surface must be opaque (--background can be transparent in some themes) */
8518
- background-color: var(--card);
9047
+ .dndev-interactive[data-role='tab-trigger']:hover:not([data-state='active']):not(:disabled) {
8519
9048
  color: var(--foreground);
8520
- box-shadow: var(--shadow-sm);
8521
- border-color: var(--primary);
8522
- }
8523
- /* Default/Primary variant: inactive = primary, active = foreground/card */
8524
- .dndev-interactive[data-role='tab-trigger'][data-variant='default'],.dndev-interactive[data-role='tab-trigger'][data-variant='primary'] {
8525
- background-color: var(--primary);
8526
- color: var(--primary-foreground);
8527
9049
  }
8528
- [data-state='active']:is(.dndev-interactive[data-role='tab-trigger'][data-variant='default'],.dndev-interactive[data-role='tab-trigger'][data-variant='primary']) {
8529
- /* --card not --background: active tab surface must be opaque */
8530
- background-color: var(--card);
8531
- color: var(--foreground);
8532
- box-shadow: var(--shadow-sm);
8533
- border-color: var(--primary);
8534
- }
8535
- /* Secondary variant: inactive = secondary, active = foreground/card */
8536
9050
  .dndev-interactive[data-role='tab-trigger'][data-variant='secondary'] {
8537
- background-color: var(--secondary);
8538
- color: var(--secondary-foreground);
9051
+ --tab-active-bg: var(--secondary);
9052
+ --tab-active-fg: var(--secondary-foreground);
8539
9053
  }
8540
- .dndev-interactive[data-role='tab-trigger'][data-variant='secondary'][data-state='active'] {
8541
- /* --card not --background: active tab surface must be opaque */
8542
- background-color: var(--card);
8543
- color: var(--foreground);
8544
- box-shadow: var(--shadow-sm);
8545
- border-color: var(--secondary);
8546
- }
8547
- /* Accent variant: inactive = accent, active = foreground/card */
8548
9054
  .dndev-interactive[data-role='tab-trigger'][data-variant='accent'] {
8549
- background-color: var(--accent);
8550
- color: var(--accent-foreground);
9055
+ --tab-active-bg: var(--accent);
9056
+ --tab-active-fg: var(--accent-foreground);
8551
9057
  }
8552
- .dndev-interactive[data-role='tab-trigger'][data-variant='accent'][data-state='active'] {
8553
- /* --card not --background: active tab surface must be opaque */
8554
- background-color: var(--card);
8555
- color: var(--foreground);
8556
- box-shadow: var(--shadow-sm);
8557
- border-color: var(--accent);
8558
- }
8559
- /* Muted variant: inactive = muted, active = primary (to contrast) */
9058
+ /* Muted: the muted fill would not stand out as the selection, so primary */
8560
9059
  .dndev-interactive[data-role='tab-trigger'][data-variant='muted'] {
8561
- background-color: var(--muted);
8562
- color: var(--muted-foreground);
9060
+ --tab-active-bg: var(--primary);
9061
+ --tab-active-fg: var(--primary-foreground);
8563
9062
  }
8564
- .dndev-interactive[data-role='tab-trigger'][data-variant='muted'][data-state='active'] {
8565
- background-color: var(--primary);
8566
- color: var(--primary-foreground);
8567
- box-shadow: var(--shadow-sm);
8568
- border-color: var(--primary);
8569
- }
8570
- /* Warning variant: inactive = warning, active = foreground/card */
8571
9063
  .dndev-interactive[data-role='tab-trigger'][data-variant='warning'] {
8572
- background-color: var(--warning);
8573
- color: var(--warning-foreground);
9064
+ --tab-active-bg: var(--warning);
9065
+ --tab-active-fg: var(--warning-foreground);
8574
9066
  }
8575
- .dndev-interactive[data-role='tab-trigger'][data-variant='warning'][data-state='active'] {
8576
- /* --card not --background: active tab surface must be opaque */
8577
- background-color: var(--card);
8578
- color: var(--foreground);
8579
- box-shadow: var(--shadow-sm);
8580
- border-color: var(--warning);
8581
- }
8582
- /* Success variant: inactive = success, active = foreground/card */
8583
9067
  .dndev-interactive[data-role='tab-trigger'][data-variant='success'] {
8584
- background-color: var(--success);
8585
- color: var(--success-foreground);
9068
+ --tab-active-bg: var(--success);
9069
+ --tab-active-fg: var(--success-foreground);
8586
9070
  }
8587
- .dndev-interactive[data-role='tab-trigger'][data-variant='success'][data-state='active'] {
8588
- /* --card not --background: active tab surface must be opaque */
8589
- background-color: var(--card);
8590
- color: var(--foreground);
8591
- box-shadow: var(--shadow-sm);
8592
- border-color: var(--success);
8593
- }
8594
- /* Destructive variant: inactive = destructive, active = foreground/card */
8595
9071
  .dndev-interactive[data-role='tab-trigger'][data-variant='destructive'] {
8596
- background-color: var(--destructive);
8597
- color: var(--destructive-foreground);
9072
+ --tab-active-bg: var(--destructive);
9073
+ --tab-active-fg: var(--destructive-foreground);
9074
+ }
9075
+ .dndev-interactive[data-role='tab-trigger'][data-state='active'] {
9076
+ background-color: var(--tab-active-bg);
9077
+ color: var(--tab-active-fg);
9078
+ border-color: var(--tab-active-bg);
9079
+ box-shadow: var(--shadow-sm);
8598
9080
  }
8599
- .dndev-interactive[data-role='tab-trigger'][data-variant='destructive'][data-state='active'] {
8600
- /* --card not --background: active tab surface must be opaque */
8601
- background-color: var(--card);
8602
- color: var(--foreground);
8603
- box-shadow: var(--shadow-sm);
8604
- border-color: var(--destructive);
8605
- }
8606
9081
 
8607
9082
  .dndev-tabs-content {
8608
9083
  margin-top: var(--gap-md);
@@ -8621,41 +9096,117 @@ input[type='number'] {
8621
9096
  display: none;
8622
9097
  }
8623
9098
 
8624
- /* packages/components/src/atomic/QuantityStepper/QuantityStepper.css */
8625
-
8626
- /* One outlined control (e-commerce standard, e.g. Shopify Dawn): borderless − / +
8627
- buttons around a centred, tabular quantity. Same height and radius as buttons. */
9099
+ /* Reserve the complete footprint, even when zero is presented as one large +. */
8628
9100
  .dndev-quantity-stepper {
8629
- display: inline-flex;
8630
- align-items: stretch;
8631
- min-height: var(--touch-target);
9101
+ --quantity-target: max(var(--touch-target), 44px);
9102
+ /* Include both icon states, padding and inherited text BEFORE placing items.
9103
+ Auto rows otherwise grow for the larger collapsed icon, then shrink on expand. */
9104
+ --quantity-cell: max(
9105
+ var(--quantity-target),
9106
+ calc(max(var(--icon-md), var(--quantity-target) * 0.6, 1lh) + 2 * var(--gap-sm))
9107
+ );
9108
+ display: inline-grid;
9109
+ grid-template-columns: var(--quantity-cell) minmax(var(--quantity-cell), 1fr) var(--quantity-cell);
9110
+ grid-template-rows: var(--quantity-cell);
9111
+ inline-size: calc(3 * var(--quantity-cell));
9112
+ min-inline-size: calc(3 * var(--quantity-cell));
8632
9113
  border: var(--border-hairline) solid var(--border);
8633
9114
  border-radius: var(--radius-interactive);
8634
9115
  background: var(--interactive);
8635
9116
  color: var(--foreground);
8636
9117
  }
8637
9118
  .dndev-quantity-stepper[data-full-width] {
8638
- display: flex;
8639
- width: 100%;
9119
+ display: grid;
9120
+ inline-size: 100%;
8640
9121
  }
8641
9122
  .dndev-quantity-stepper[data-disabled] {
8642
9123
  opacity: 0.6;
8643
9124
  }
8644
- .dndev-quantity-stepper > .dndev-interactive {
8645
- flex: 0 0 auto;
8646
- aspect-ratio: 1;
8647
- min-height: 0;
9125
+ .dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
9126
+ min-inline-size: var(--quantity-target);
9127
+ min-block-size: var(--quantity-target);
8648
9128
  border: none;
8649
9129
  border-radius: inherit;
8650
9130
  background: transparent;
9131
+ color: inherit;
9132
+ font: inherit;
9133
+ touch-action: manipulation;
8651
9134
  }
9135
+ :is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):focus-visible {
9136
+ outline: none;
9137
+ box-shadow: var(--shadow-focus);
9138
+ z-index: 1;
9139
+ }
9140
+ :is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):disabled {
9141
+ cursor: not-allowed;
9142
+ opacity: 0.6;
9143
+ }
9144
+ .dndev-quantity-stepper > button {
9145
+ display: flex;
9146
+ align-items: center;
9147
+ justify-content: center;
9148
+ padding: var(--gap-sm);
9149
+ cursor: pointer;
9150
+ transition: background-color var(--transition-fast);
9151
+ /* Press-and-hold repeats: no text selection or touch callout on long press. */
9152
+ -moz-user-select: none;
9153
+ user-select: none;
9154
+ -webkit-user-select: none;
9155
+ -webkit-touch-callout: none;
9156
+ }
9157
+ :is(.dndev-quantity-stepper > button):hover:not(:disabled) {
9158
+ background: var(--muted);
9159
+ }
9160
+ :is(.dndev-quantity-stepper > button) > svg {
9161
+ inline-size: var(--icon-md);
9162
+ block-size: var(--icon-md);
9163
+ }
9164
+ .dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
9165
+ grid-area: 1 / 1;
9166
+ }
9167
+ .dndev-quantity-stepper > .dndev-quantity-stepper-value {
9168
+ grid-area: 1 / 2;
9169
+ }
9170
+ .dndev-quantity-stepper > .dndev-quantity-stepper-increment {
9171
+ grid-area: 1 / 3;
9172
+ }
9173
+ .dndev-quantity-stepper[data-vertical] {
9174
+ grid-template-columns: minmax(var(--quantity-cell), 1fr);
9175
+ grid-template-rows: repeat(3, var(--quantity-cell));
9176
+ inline-size: var(--quantity-cell);
9177
+ min-inline-size: var(--quantity-cell);
9178
+ }
9179
+ .dndev-quantity-stepper[data-vertical][data-full-width] {
9180
+ inline-size: 100%;
9181
+ }
9182
+ .dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-increment {
9183
+ grid-area: 1 / 1;
9184
+ }
9185
+ .dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-value {
9186
+ grid-area: 2 / 1;
9187
+ }
9188
+ .dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-decrement {
9189
+ grid-area: 3 / 1;
9190
+ }
9191
+ .dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
9192
+ visibility: hidden;
9193
+ pointer-events: none;
9194
+ }
9195
+ .dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
9196
+ grid-area: 1 / 1 / -1 / -1;
9197
+ }
9198
+ :is(.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment) > svg {
9199
+ inline-size: calc(var(--quantity-target) * 0.6);
9200
+ block-size: calc(var(--quantity-target) * 0.6);
9201
+ }
8652
9202
 
8653
9203
  .dndev-quantity-stepper-value {
8654
- flex: 1 1 auto;
9204
+ box-sizing: border-box;
8655
9205
  display: flex;
8656
9206
  align-items: center;
8657
9207
  justify-content: center;
8658
- min-width: 3ch;
9208
+ inline-size: 100%;
9209
+ min-inline-size: 0;
8659
9210
  padding-inline: var(--gap-sm);
8660
9211
  border: none;
8661
9212
  background: none;
@@ -8664,21 +9215,14 @@ input[type='number'] {
8664
9215
  font-weight: var(--font-weight-medium);
8665
9216
  font-variant-numeric: tabular-nums;
8666
9217
  text-align: center;
8667
- }
8668
9218
 
8669
- .dndev-quantity-stepper-value:is(button) {
8670
- cursor: pointer;
8671
- }
8672
-
8673
- .dndev-quantity-stepper-value:is(button):hover {
8674
- text-decoration: underline;
8675
- text-underline-offset: 0.2em;
8676
- }
9219
+ }
8677
9220
 
8678
- .dndev-quantity-stepper-value:is(button):focus-visible {
8679
- outline: none;
8680
- box-shadow: var(--shadow-focus);
9221
+ @media (prefers-reduced-motion: reduce) {
9222
+ .dndev-quantity-stepper > button {
9223
+ transition: none;
8681
9224
  }
9225
+ }
8682
9226
 
8683
9227
  /* packages/components/src/atomic/Tag/Tag.css */
8684
9228
 
@@ -8945,7 +9489,7 @@ input[type='number'] {
8945
9489
  .dndev-toast-viewport {
8946
9490
  position: fixed;
8947
9491
  top: var(--gap-md);
8948
- z-index: 100;
9492
+ z-index: var(--z-toast);
8949
9493
  display: flex;
8950
9494
  flex-direction: column-reverse;
8951
9495
  max-height: 100dvh;
@@ -9298,7 +9842,7 @@ input[type='number'] {
9298
9842
  display: flex;
9299
9843
  align-items: center;
9300
9844
  gap: var(--gap-sm);
9301
- padding: var(--gap-xs) var(--gap-sm);
9845
+ padding: var(--gap-sm) var(--gap-sm);
9302
9846
  border-radius: var(--radius-interactive);
9303
9847
  cursor: pointer;
9304
9848
  transition:
@@ -11684,9 +12228,17 @@ h4[data-variant='code'] {
11684
12228
  /* ===========================
11685
12229
  DEFAULT VALUES (Landing Preset)
11686
12230
  All presets inherit these - only override what's different
12231
+
12232
+ Layout tokens are declared on <html>, never on .dndev-layout: every element of
12233
+ the app sits under the wrapper, so a declaration there would shadow the app's
12234
+ :root overrides (themes.css). Presets read the wrapper's data-layout (in the
12235
+ server HTML) through :has, so they resolve on the first paint. All token rules
12236
+ carry zero specificity (:where): an app :root override wins whatever the
12237
+ stylesheet order. Preset display rules (hide header, sidebar…) stay scoped to
12238
+ [data-layout], which matches the wrapper.
11687
12239
  =========================== */
11688
12240
 
11689
- :root {
12241
+ :where(:root) {
11690
12242
  /* Layout structure dimensions */
11691
12243
  /* Height values include borders (box-sizing: border-box) */
11692
12244
  /* Content heights are multiples of 12px, then add 2px border */
@@ -11888,9 +12440,15 @@ main[role='main'][data-routing-animation='none'] {
11888
12440
  }
11889
12441
 
11890
12442
  /* Header content width adjustments for sidebar layouts */
11891
- [data-layout='moolti'],
11892
- [data-layout='docs'],
11893
- [data-layout='blog'] {
12443
+ :where(
12444
+ :root:has(
12445
+ .dndev-layout:is(
12446
+ [data-layout='moolti'],
12447
+ [data-layout='docs'],
12448
+ [data-layout='blog']
12449
+ )
12450
+ )
12451
+ ) {
11894
12452
  --header-content-width: calc(100% - var(--sidebar-width));
11895
12453
  }
11896
12454
 
@@ -11947,10 +12505,20 @@ main[role='main'][data-routing-animation='none'] {
11947
12505
  grid-template-rows: var(--header-height) 1fr auto;
11948
12506
  }
11949
12507
 
11950
- /* Footer inside main: spacing + sizing (slotted mode only) */
12508
+ /* No footer rendered (app.footer: null): no footer row, main takes the space */
12509
+ .dndev-layout:not(:has(> footer)) {
12510
+ grid-template-areas:
12511
+ 'header header'
12512
+ 'sidebar main';
12513
+ grid-template-rows: var(--header-height) 1fr;
12514
+ }
12515
+
12516
+ /* Footer inside main: spacing + sizing (slotted mode only). The gap sits on the page
12517
+ above it: the footer's own block-start margin is `auto` (pinned to the bottom). */
12518
+ main[role='main'] > :has(+ footer[role='contentinfo']:not([data-custom])) {
12519
+ margin-block-end: var(--gap-lg);
12520
+ }
11951
12521
  main[role='main'] > footer[role='contentinfo']:not([data-custom]) {
11952
- margin-top: var(--gap-lg);
11953
- flex-shrink: 0;
11954
12522
  height: auto;
11955
12523
  }
11956
12524
  main[role='main'] > footer[role='contentinfo']:not([data-custom]) > * {
@@ -12097,7 +12665,7 @@ aside[role='navigation'].sidebar {
12097
12665
  display: none;
12098
12666
  }
12099
12667
  /* Moolti: Sidebar spans full height (no header/footer on desktop) */
12100
- [data-layout='moolti']:root aside.sidebar[role='navigation'] {
12668
+ [data-layout='moolti']:root aside.sidebar[role='navigation'],.dndev-layout[data-layout='moolti'] aside.sidebar[role='navigation'] {
12101
12669
  grid-row: 1 / -1;
12102
12670
  }
12103
12671
 
@@ -12311,11 +12879,20 @@ main[role='main'] {
12311
12879
  padding: 0;
12312
12880
  contain: layout style;
12313
12881
 
12314
- /* First child after breadcrumbs grows to fill space, never shrinks (scroll container owns overflow) */
12882
+ /* The page (first child, or the one after breadcrumbs) grows to fill the space and never
12883
+ shrinks (the scroll container owns overflow). Only the page: a footer rendered inside
12884
+ main keeps its own height. */
12315
12885
  }
12316
- main[role='main'] > *:not(.breadcrumbs-container):first-of-type,main[role='main'] > .breadcrumbs-container + * {
12886
+ main[role='main'] > :first-child:not(.breadcrumbs-container,footer),main[role='main'] > .breadcrumbs-container + :not(footer) {
12317
12887
  flex: 1 0 auto;
12318
12888
  }
12889
+ /* Footer inside main: always at the bottom, even while the page is not there yet
12890
+ (a Suspense boundary streaming in leaves only a hidden placeholder): main stays
12891
+ empty above it, nothing shifts when the page arrives. */
12892
+ main[role='main'] > footer {
12893
+ flex: 0 0 auto;
12894
+ margin-block-start: auto;
12895
+ }
12319
12896
 
12320
12897
  /* Footer: Full width by default, app presets start after sidebar */
12321
12898
  /* box-sizing: border-box ensures borders are included in height */
@@ -12464,14 +13041,14 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
12464
13041
  * Perfect for: Admin panels, dashboards, management interfaces
12465
13042
  * Overrides: Adds sidebar (240px), constrains width (1480px), tighter spacing
12466
13043
  */
12467
- [data-layout='admin'] {
13044
+ :where(:root:has(.dndev-layout[data-layout='admin'])) {
12468
13045
  /* Desktop/Wide (>=1024px) - only overrides */
12469
13046
  --sidebar-width: var(--custom-sidebar-width, 240px);
12470
13047
 
12471
13048
  /* Admin: Mobile/Tablet (<1024px) - only overrides */
12472
13049
  }
12473
13050
  @media (width <=1023px) {
12474
- [data-layout='admin'] {
13051
+ :where(:root:has(.dndev-layout[data-layout='admin'])) {
12475
13052
  --sidebar-width: 0px;
12476
13053
  /* Override: hide sidebar on mobile */
12477
13054
  }
@@ -12482,48 +13059,53 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
12482
13059
  * Perfect for: SaaS applications, productivity tools, focused workflows
12483
13060
  * Overrides: No header/footer (sidebar only), sidebar (256px), balanced spacing
12484
13061
  */
12485
- [data-layout='moolti'] {
13062
+ :where(:root:has(.dndev-layout[data-layout='moolti'])) {
12486
13063
  /* Desktop/Wide (>=1024px) - only overrides */
12487
13064
  --header-height: 0px;
12488
13065
  --sidebar-width: var(--custom-sidebar-width, 256px);
12489
13066
  --footer-height: 0px;
13067
+
13068
+ /* Moolti: Mobile/Tablet (<1024px) - only overrides */
13069
+ }
13070
+ @media (width <=1023px) {
13071
+ :where(:root:has(.dndev-layout[data-layout='moolti'])) {
13072
+ --header-height: 62px;
13073
+ --sidebar-width: 0px;
12490
13074
  }
13075
+ }
13076
+
12491
13077
  [data-layout='moolti'] header[role='banner'] {
12492
13078
  display: none;
12493
13079
  }
13080
+
12494
13081
  [data-layout='moolti'] footer[role='contentinfo'] {
12495
13082
  display: none;
12496
13083
  }
12497
- /* Moolti: Mobile/Tablet (<1024px) - only overrides */
12498
- @media (width <=1023px) {
12499
- [data-layout='moolti'] {
12500
- --header-height: 62px;
12501
- --sidebar-width: 0px;
12502
- }
12503
- }
12504
13084
 
12505
13085
  /**
12506
13086
  * DOCS PRESET
12507
13087
  * Perfect for: Documentation sites, knowledge bases, content platforms
12508
13088
  * Overrides: No header, sidebar (300px), comfortable reading spacing
12509
13089
  */
12510
- [data-layout='docs'] {
13090
+ :where(:root:has(.dndev-layout[data-layout='docs'])) {
12511
13091
  /* Desktop/Wide (>=1024px) - only overrides */
12512
13092
  --header-height: 0px;
12513
13093
  /* Override: no header - maximizes reading space */
12514
13094
  --sidebar-width: var(--custom-sidebar-width, 300px);
13095
+
13096
+ /* Docs: Mobile/Tablet (<1024px) - only overrides */
12515
13097
  }
12516
- [data-layout='docs'] header[role='banner'] {
12517
- display: none;
12518
- }
12519
- /* Docs: Mobile/Tablet (<1024px) - only overrides */
12520
13098
  @media (width <=1023px) {
12521
- [data-layout='docs'] {
13099
+ :where(:root:has(.dndev-layout[data-layout='docs'])) {
12522
13100
  --sidebar-width: 0px;
12523
13101
  /* Override: hide sidebar on mobile */
12524
13102
  }
12525
13103
  }
12526
13104
 
13105
+ [data-layout='docs'] header[role='banner'] {
13106
+ display: none;
13107
+ }
13108
+
12527
13109
  /**
12528
13110
  * LANDING PRESET (Default)
12529
13111
  * Perfect for: Marketing sites, landing pages, public content
@@ -12535,17 +13117,19 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
12535
13117
  * Perfect for: Blogs, news sites, content management
12536
13118
  * Overrides: Sidebar (280px), constrains width (1480px), content-focused spacing
12537
13119
  */
12538
- [data-layout='blog'] {
13120
+ :where(:root:has(.dndev-layout[data-layout='blog'])) {
12539
13121
  --sidebar-width: var(--custom-sidebar-width, 280px);
12540
13122
 
12541
13123
  /* Blog: Mobile/Tablet (<1024px) - only overrides */
12542
13124
  }
12543
13125
  @media (width <=1023px) {
12544
- [data-layout='blog'] {
13126
+ :where(:root:has(.dndev-layout[data-layout='blog'])) {
12545
13127
  --header-height: 0px;
12546
13128
  --sidebar-width: 0px;
12547
13129
  }
13130
+ }
12548
13131
 
13132
+ @media (width <=1023px) {
12549
13133
  [data-layout='blog'] header[role='banner'] {
12550
13134
  display: none;
12551
13135
  }
@@ -12556,17 +13140,20 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
12556
13140
  * Perfect for: Full-screen apps, embedded widgets, clean content
12557
13141
  * Overrides: No header/footer/sidebar, minimal spacing
12558
13142
  */
12559
- [data-layout='plain'] {
13143
+ :where(:root:has(.dndev-layout[data-layout='plain'])) {
12560
13144
  --header-height: 0px;
12561
13145
  --sidebar-width: 0px;
12562
13146
  --footer-height: 0px;
12563
13147
  }
13148
+
12564
13149
  [data-layout='plain'] header[role='banner'] {
12565
13150
  display: none;
12566
13151
  }
13152
+
12567
13153
  [data-layout='plain'] aside.sidebar[role='navigation'] {
12568
13154
  display: none;
12569
13155
  }
13156
+
12570
13157
  [data-layout='plain'] footer[role='contentinfo'] {
12571
13158
  display: none;
12572
13159
  }
@@ -12578,16 +13165,18 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
12578
13165
  * Perfect for: Mobile gaming apps, full-screen experiences, touch interfaces
12579
13166
  * Overrides: Minimal spacing for maximum screen real estate
12580
13167
  */
12581
- [data-layout='game'] {
13168
+ :where(:root:has(.dndev-layout[data-layout='game'])) {
12582
13169
  --header-height: 92px;
12583
13170
 
12584
13171
  /* Game: Mobile/Tablet (<1024px) - only overrides */
12585
13172
  }
12586
13173
  @media (width <=1023px) {
12587
- [data-layout='game'] {
13174
+ :where(:root:has(.dndev-layout[data-layout='game'])) {
12588
13175
  --footer-height: 0px;
12589
13176
  }
13177
+ }
12590
13178
 
13179
+ @media (width <=1023px) {
12591
13180
  [data-layout='game'] footer[role='contentinfo'] {
12592
13181
  display: none;
12593
13182
  }