@donotdev/ui 0.2.2 → 0.2.3
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/dist/{GoToDialog-CICRYHHG.js → GoToDialog-KSBGOIWO.js} +1 -1
- package/dist/chunk-MS7ZIW5Z.js +1 -0
- package/dist/components/auth/AuthHeader.d.ts.map +1 -1
- package/dist/components/auth/AuthHeader.js +0 -2
- package/dist/components/auth/AuthMenu.d.ts.map +1 -1
- package/dist/components/auth/AuthMenu.js +6 -40
- package/dist/components/common/icon.d.ts.map +1 -1
- package/dist/components/common/icon.js +2 -1
- package/dist/components/common/lucideIconByName.d.ts +9 -0
- package/dist/components/common/lucideIconByName.d.ts.map +1 -0
- package/dist/components/common/lucideIconByName.js +32 -0
- package/dist/components/layout/GameFlow.d.ts.map +1 -1
- package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/layout/components/Breadcrumbs.js +14 -9
- package/dist/components/layout/components/header/CacheSettings.d.ts.map +1 -1
- package/dist/components/layout/components/header/CacheSettings.js +6 -4
- package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
- package/dist/components/layout/components/header/SettingsMenu.js +2 -1
- package/dist/components/layout/components/header/ThemeToggle.d.ts.map +1 -1
- package/dist/components/layout/components/header/ThemeToggle.js +2 -1
- package/dist/crud/components/CrudCardLink.d.ts +6 -6
- package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
- package/dist/crud/components/CrudCardLink.js +3 -9
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +3 -11
- package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityDisplayRenderer.js +4 -1
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +27 -5
- package/dist/crud/components/EntityList.d.ts +4 -4
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +136 -59
- package/dist/crud/components/Form.d.ts +1 -1
- package/dist/crud/components/Form.d.ts.map +1 -1
- package/dist/crud/components/Form.js +2 -2
- package/dist/crud/components/cellEditFor.d.ts +28 -0
- package/dist/crud/components/cellEditFor.d.ts.map +1 -0
- package/dist/crud/components/cellEditFor.js +54 -0
- package/dist/crud/components/entityParent.d.ts +40 -0
- package/dist/crud/components/entityParent.d.ts.map +1 -0
- package/dist/crud/components/entityParent.js +54 -0
- package/dist/crud/components/useRecordBreadcrumb.d.ts +11 -0
- package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -0
- package/dist/crud/components/useRecordBreadcrumb.js +34 -0
- package/dist/crud/crudImports.d.ts +2 -0
- package/dist/crud/crudImports.d.ts.map +1 -1
- package/dist/crud/crudImports.js +2 -0
- package/dist/dndev-next.css +483 -145
- package/dist/dndev.css +483 -145
- package/dist/index.js +4 -4
- package/dist/internal/common/RouteErrorFallback.d.ts.map +1 -1
- package/dist/internal/common/RouteErrorFallback.js +2 -4
- package/dist/internal/devtools/components/ConfigTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/ConfigTab.js +1 -1
- package/dist/internal/devtools/components/CookieTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/CookieTab.js +1 -5
- package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/DesignTab.js +18 -7
- package/dist/internal/devtools/components/StoresTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/StoresTab.js +17 -3
- package/dist/internal/devtools/types.d.ts +3 -3
- package/dist/internal/devtools/types.d.ts.map +1 -1
- package/dist/internal/devtools/utils/maskSensitive.d.ts +1 -1
- package/dist/internal/devtools/utils/maskSensitive.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.js +21 -21
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +39 -36
- package/dist/internal/layout/components/i18nSeoMeta.d.ts.map +1 -1
- package/dist/internal/layout/components/i18nSeoMeta.js +1 -0
- package/dist/internal/layout/zones/DnDevMergedBar.js +3 -3
- package/dist/internal/providers/UIProviders.d.ts.map +1 -1
- package/dist/internal/providers/UIProviders.js +7 -2
- package/dist/providers/NextJsAppProviders.d.ts +5 -1
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/NextJsAppProviders.js +36 -5
- package/dist/providers/ViteAppProviders.d.ts.map +1 -1
- package/dist/providers/ViteAppProviders.js +42 -4
- package/dist/routing/404.js +4 -4
- package/dist/routing/AuthGuardFallback.d.ts.map +1 -1
- package/dist/routing/AuthGuardFallback.js +1 -2
- package/dist/routing/AuthReturnTo.d.ts.map +1 -1
- package/dist/routing/AuthReturnTo.js +9 -2
- package/dist/routing/GoTo.d.ts +0 -6
- package/dist/routing/GoTo.d.ts.map +1 -1
- package/dist/routing/GoTo.js +5 -8
- package/dist/routing/Link.d.ts +4 -2
- package/dist/routing/Link.d.ts.map +1 -1
- package/dist/routing/Link.js +8 -5
- package/dist/routing/SignedInRedirect.d.ts +27 -0
- package/dist/routing/SignedInRedirect.d.ts.map +1 -0
- package/dist/routing/SignedInRedirect.js +47 -0
- package/dist/routing/hooks/hooks.next.d.ts +2 -0
- package/dist/routing/hooks/hooks.next.d.ts.map +1 -1
- package/dist/routing/hooks/hooks.next.js +1 -1
- package/dist/routing/hooks/hooks.vite.d.ts +2 -0
- package/dist/routing/hooks/hooks.vite.d.ts.map +1 -1
- package/dist/routing/hooks/hooks.vite.js +1 -1
- package/dist/routing/hooks/useLocation.next.d.ts +12 -0
- package/dist/routing/hooks/useLocation.next.d.ts.map +1 -1
- package/dist/routing/hooks/useLocation.next.js +17 -4
- package/dist/routing/hooks/useMatch.next.d.ts +6 -0
- package/dist/routing/hooks/useMatch.next.d.ts.map +1 -1
- package/dist/routing/hooks/useMatch.next.js +8 -2
- package/dist/routing/hooks/useNavigate.next.d.ts +6 -1
- package/dist/routing/hooks/useNavigate.next.d.ts.map +1 -1
- package/dist/routing/hooks/useNavigate.next.js +13 -4
- package/dist/routing/hooks/useNavigate.vite.d.ts +7 -1
- package/dist/routing/hooks/useNavigate.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useNavigate.vite.js +20 -4
- package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.js +7 -1
- package/dist/routing/hooks/useRedirectGuard.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.vite.js +7 -1
- package/dist/routing/hooks/useRoutePath.next.d.ts +23 -0
- package/dist/routing/hooks/useRoutePath.next.d.ts.map +1 -0
- package/dist/routing/hooks/useRoutePath.next.js +36 -0
- package/dist/routing/hooks/useRoutePath.vite.d.ts +13 -0
- package/dist/routing/hooks/useRoutePath.vite.d.ts.map +1 -0
- package/dist/routing/hooks/useRoutePath.vite.js +25 -0
- package/dist/routing/hooks/useUrlLanguage.next.d.ts +28 -0
- package/dist/routing/hooks/useUrlLanguage.next.d.ts.map +1 -0
- package/dist/routing/hooks/useUrlLanguage.next.js +50 -0
- package/dist/routing/hooks/useUrlLanguage.vite.d.ts +22 -0
- package/dist/routing/hooks/useUrlLanguage.vite.d.ts.map +1 -0
- package/dist/routing/hooks/useUrlLanguage.vite.js +41 -0
- package/dist/routing/index.d.ts +3 -1
- package/dist/routing/index.d.ts.map +1 -1
- package/dist/routing/index.js +2 -1
- package/dist/routing/useNavigation.js +4 -4
- package/dist/styles/index.css +483 -145
- package/dist/symbol-index.json +1 -1
- package/dist/utils/assetResolver.d.ts.map +1 -1
- package/dist/utils/assetResolver.js +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -0
- package/dist/utils/useDeleteAccountSafe.d.ts +17 -0
- package/dist/utils/useDeleteAccountSafe.d.ts.map +1 -0
- package/dist/utils/useDeleteAccountSafe.js +52 -0
- package/dist/utils/useFormStoreSafe.d.ts.map +1 -1
- package/dist/utils/useFormStoreSafe.js +1 -0
- package/dist/utils/useSeo.d.ts +10 -2
- package/dist/utils/useSeo.d.ts.map +1 -1
- package/dist/utils/useSeo.js +44 -9
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +37 -4
- package/guidelines/COMPONENTS.md +2 -1
- package/guidelines/PAGES.md +7 -0
- package/guidelines/ROUTING.md +4 -0
- package/guidelines/SEO.md +52 -0
- package/package.json +9 -9
- package/dist/CookieConsent-5NH5DNTP.js +0 -1
- package/dist/CookieConsent-W7UE647Y.js +0 -1
- package/dist/GoToDialog-YGBON6FR.js +0 -1
- package/dist/chunk-DRFM6WXH.js +0 -1
- package/dist/chunk-MIPTBUWY.js +0 -1
- package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts +0 -57
- package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts.map +0 -1
- package/dist/internal/layout/components/NextJsAutoMetaTags.js +0 -182
package/dist/dndev.css
CHANGED
|
@@ -63,9 +63,7 @@
|
|
|
63
63
|
* applies regardless of density tier.
|
|
64
64
|
*/
|
|
65
65
|
--gap-none: 0;
|
|
66
|
-
--gap-sm
|
|
67
|
-
--gap-md: min(1rem, 2vw); /* 16px or 2vw */
|
|
68
|
-
--gap-lg: min(2rem, 2vw); /* 32px or 2vw */
|
|
66
|
+
/* --gap-sm / --gap-md / --gap-lg: see DENSITY SYSTEM below */
|
|
69
67
|
|
|
70
68
|
/* ===========================
|
|
71
69
|
DIALOG SIZE VARIANTS
|
|
@@ -192,14 +190,7 @@
|
|
|
192
190
|
/* Typography Scale - Musical Scale System (STANDARD density defaults - Major Third 1.25×) */
|
|
193
191
|
--font-size-xs: 0.75rem; /* 12px - captions, shortcuts, meta */
|
|
194
192
|
--font-size-sm: 0.875rem; /* 14px - small text, captions */
|
|
195
|
-
--font-size-base
|
|
196
|
-
--font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
|
|
197
|
-
--font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
|
|
198
|
-
--font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
|
|
199
|
-
--font-size-3xl: 2.441rem; /* 39px - base × 1.25⁴ - hero text */
|
|
200
|
-
|
|
201
|
-
/* Line Height - Musical Scale System (matches font scale ratio) */
|
|
202
|
-
--line-height: 1.25; /* Major Third - Standard density default */
|
|
193
|
+
/* --font-size-base…3xl and --line-height: see DENSITY SYSTEM below */
|
|
203
194
|
|
|
204
195
|
/* Font Weight - Semantic weights */
|
|
205
196
|
--font-weight-normal: 400;
|
|
@@ -331,12 +322,36 @@
|
|
|
331
322
|
|
|
332
323
|
/* ===========================
|
|
333
324
|
DENSITY SYSTEM
|
|
334
|
-
Semantic spacing and typography presets based on context
|
|
335
|
-
|
|
325
|
+
Semantic spacing and typography presets based on context.
|
|
326
|
+
|
|
327
|
+
App density: the layout wrapper (.dndev-layout) carries data-density in the
|
|
328
|
+
server HTML, and the tokens are declared on <html> from it (:has), so they
|
|
329
|
+
resolve on the first paint, before and without hydration.
|
|
330
|
+
Nested density: PageContainer / List set data-density on their own element.
|
|
331
|
+
|
|
332
|
+
The tokens are never declared on .dndev-layout itself: every element of the
|
|
333
|
+
app sits under it, so a declaration there would shadow the app's :root
|
|
334
|
+
overrides (themes.css). The <html> rules carry zero specificity (:where), so
|
|
335
|
+
an app :root override wins whatever the stylesheet order.
|
|
336
336
|
=========================== */
|
|
337
337
|
|
|
338
|
+
/* Base values (standard density), used until a density applies */
|
|
339
|
+
:where(:root) {
|
|
340
|
+
--gap-sm: min(0.5rem, 2vw); /* 8px or 2vw, whichever is smaller */
|
|
341
|
+
--gap-md: min(1rem, 2vw); /* 16px or 2vw */
|
|
342
|
+
--gap-lg: min(2rem, 2vw); /* 32px or 2vw */
|
|
343
|
+
--font-size-base: 1rem; /* 16px - body text, DEFAULT */
|
|
344
|
+
--font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
|
|
345
|
+
--font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
|
|
346
|
+
--font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
|
|
347
|
+
--font-size-3xl: 2.441rem; /* 39px - base × 1.25⁴ - hero text */
|
|
348
|
+
/* Line Height - Musical Scale System (matches font scale ratio) */
|
|
349
|
+
--line-height: 1.25; /* Major Third - Standard density default */
|
|
350
|
+
}
|
|
351
|
+
|
|
338
352
|
/* Compact (Admin/Data) - Dense, information-dense layouts - Minor Third (1.2×) */
|
|
339
|
-
[data-density='compact']
|
|
353
|
+
:where(:root:has(.dndev-layout[data-density='compact'])),
|
|
354
|
+
[data-density='compact']:where(:not(.dndev-layout)) {
|
|
340
355
|
/* Base sizes: Fluid responsiveness for all text, zoom-safe */
|
|
341
356
|
--font-size-base: clamp(
|
|
342
357
|
0.875rem,
|
|
@@ -376,7 +391,8 @@
|
|
|
376
391
|
}
|
|
377
392
|
|
|
378
393
|
/* Standard (Docs/SaaS) - DEFAULT, balanced for readability */
|
|
379
|
-
[data-density='standard']
|
|
394
|
+
:where(:root:has(.dndev-layout[data-density='standard'])),
|
|
395
|
+
[data-density='standard']:where(:not(.dndev-layout)) {
|
|
380
396
|
/* Base sizes: Fluid responsiveness for all text, zoom-safe */
|
|
381
397
|
--font-size-base: clamp(
|
|
382
398
|
1rem,
|
|
@@ -416,7 +432,8 @@
|
|
|
416
432
|
}
|
|
417
433
|
|
|
418
434
|
/* Expressive (Marketing) - Perfect Fourth (1.333×) + Fluid typography (2025 best practice) */
|
|
419
|
-
[data-density='expressive']
|
|
435
|
+
:where(:root:has(.dndev-layout[data-density='expressive'])),
|
|
436
|
+
[data-density='expressive']:where(:not(.dndev-layout)) {
|
|
420
437
|
/* Base sizes: Fluid responsiveness for all text, zoom-safe */
|
|
421
438
|
--font-size-base: clamp(1rem, 0.875rem + 0.5vw, 1.125rem); /* 16-18px fluid */
|
|
422
439
|
--font-size-lg: clamp(1.25rem, 1rem + 0.75vw, 1.5rem); /* 20-24px fluid */
|
|
@@ -448,9 +465,9 @@
|
|
|
448
465
|
}
|
|
449
466
|
|
|
450
467
|
/* Form field text: follows density, never below 16px (iOS focus zoom).
|
|
451
|
-
Declared on [data-density] too, so
|
|
452
|
-
:root,
|
|
453
|
-
[data-density] {
|
|
468
|
+
Declared on nested [data-density] too, so they resolve their own base. */
|
|
469
|
+
:where(:root),
|
|
470
|
+
[data-density]:where(:not(.dndev-layout)) {
|
|
454
471
|
--font-size-input: max(16px, var(--font-size-base));
|
|
455
472
|
}
|
|
456
473
|
/* 2. Theme system - color palette definitions */
|
|
@@ -3714,6 +3731,50 @@ em {
|
|
|
3714
3731
|
background: var(--card);
|
|
3715
3732
|
}
|
|
3716
3733
|
|
|
3734
|
+
/* href: stretched link. The title is the <a href>; its ::after covers the whole
|
|
3735
|
+
card so the tile is clickable, while controls inside stay above it. The body
|
|
3736
|
+
must not be the containing block, or the hit area would stop at the cover. */
|
|
3737
|
+
.dndev-card[data-has-link='true'] > .dndev-card-body {
|
|
3738
|
+
position: static;
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3741
|
+
.dndev-card-link {
|
|
3742
|
+
color: inherit;
|
|
3743
|
+
text-decoration: none;
|
|
3744
|
+
}
|
|
3745
|
+
|
|
3746
|
+
.dndev-card-link::after {
|
|
3747
|
+
content: '';
|
|
3748
|
+
position: absolute;
|
|
3749
|
+
inset: 0;
|
|
3750
|
+
z-index: 1;
|
|
3751
|
+
border-radius: inherit;
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
.dndev-card-link:focus-visible {
|
|
3755
|
+
outline: none;
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
.dndev-card[data-has-link='true']:has(.dndev-card-link:focus-visible) {
|
|
3759
|
+
outline: 2px solid var(--ring);
|
|
3760
|
+
outline-offset: 2px;
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
.dndev-card[data-has-link='true']
|
|
3764
|
+
:is(
|
|
3765
|
+
a,
|
|
3766
|
+
button,
|
|
3767
|
+
input,
|
|
3768
|
+
select,
|
|
3769
|
+
textarea,
|
|
3770
|
+
label,
|
|
3771
|
+
[role='button'],
|
|
3772
|
+
[tabindex]
|
|
3773
|
+
):not(.dndev-card-link) {
|
|
3774
|
+
position: relative;
|
|
3775
|
+
z-index: 2;
|
|
3776
|
+
}
|
|
3777
|
+
|
|
3717
3778
|
/* Card body children spacing */
|
|
3718
3779
|
.dndev-card-header {
|
|
3719
3780
|
display: flex;
|
|
@@ -3778,7 +3839,8 @@ em {
|
|
|
3778
3839
|
|
|
3779
3840
|
/* Contain: whole image visible on the muted cover background (cut-outs), inset
|
|
3780
3841
|
proportionally so a packshot never touches the frame. */
|
|
3781
|
-
.dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover)
|
|
3842
|
+
.dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover),
|
|
3843
|
+
.dndev-card-cover[data-fit='contain'] > picture > img:not(.dndev-card-cover-hover) {
|
|
3782
3844
|
-o-object-fit: contain;
|
|
3783
3845
|
object-fit: contain;
|
|
3784
3846
|
box-sizing: border-box;
|
|
@@ -3786,7 +3848,9 @@ em {
|
|
|
3786
3848
|
}
|
|
3787
3849
|
|
|
3788
3850
|
/* Hover view: stacked over the cover, crossfades in on hover / keyboard focus. */
|
|
3789
|
-
|
|
3851
|
+
/* An image pair renders <picture><img>: the <img> carries the class either way. */
|
|
3852
|
+
.dndev-card-cover > img.dndev-card-cover-hover,
|
|
3853
|
+
.dndev-card-cover > picture > img.dndev-card-cover-hover {
|
|
3790
3854
|
position: absolute;
|
|
3791
3855
|
inset: 0;
|
|
3792
3856
|
-o-object-fit: cover;
|
|
@@ -3809,7 +3873,8 @@ em {
|
|
|
3809
3873
|
}
|
|
3810
3874
|
|
|
3811
3875
|
@media (prefers-reduced-motion: reduce) {
|
|
3812
|
-
.dndev-card-cover > img.dndev-card-cover-hover
|
|
3876
|
+
.dndev-card-cover > img.dndev-card-cover-hover,
|
|
3877
|
+
.dndev-card-cover > picture > img.dndev-card-cover-hover {
|
|
3813
3878
|
transition: none;
|
|
3814
3879
|
}
|
|
3815
3880
|
}
|
|
@@ -5439,6 +5504,17 @@ em {
|
|
|
5439
5504
|
outline: none;
|
|
5440
5505
|
}
|
|
5441
5506
|
|
|
5507
|
+
/* Gallery pictures are always protected (with blockContextMenu + draggable=false):
|
|
5508
|
+
no drag, no iOS long-press "Save image" callout, no selection. */
|
|
5509
|
+
.image-gallery img,
|
|
5510
|
+
.image-gallery__lightbox-stage img {
|
|
5511
|
+
-webkit-touch-callout: none;
|
|
5512
|
+
-webkit-user-drag: none;
|
|
5513
|
+
-webkit-user-select: none;
|
|
5514
|
+
-moz-user-select: none;
|
|
5515
|
+
user-select: none;
|
|
5516
|
+
}
|
|
5517
|
+
|
|
5442
5518
|
.image-gallery:focus-visible {
|
|
5443
5519
|
outline: 2px solid var(--primary);
|
|
5444
5520
|
outline-offset: 2px;
|
|
@@ -5472,13 +5548,57 @@ em {
|
|
|
5472
5548
|
cursor: zoom-in;
|
|
5473
5549
|
}
|
|
5474
5550
|
|
|
5475
|
-
|
|
5551
|
+
/* Swipeable strip (main view and lightbox): native scrolling, one slide per snap point */
|
|
5552
|
+
.image-gallery__strip {
|
|
5553
|
+
/* Offset parent of the slides: a slide's offsetLeft is its scroll offset */
|
|
5554
|
+
position: relative;
|
|
5555
|
+
display: flex;
|
|
5556
|
+
height: 100%;
|
|
5557
|
+
overflow-x: auto;
|
|
5558
|
+
overflow-y: hidden;
|
|
5559
|
+
scroll-snap-type: x mandatory;
|
|
5560
|
+
overscroll-behavior-x: contain;
|
|
5561
|
+
scrollbar-width: none;
|
|
5562
|
+
}
|
|
5563
|
+
|
|
5564
|
+
.image-gallery__strip::-webkit-scrollbar {
|
|
5565
|
+
display: none;
|
|
5566
|
+
}
|
|
5567
|
+
|
|
5568
|
+
/* Arrow / thumbnail / key navigation glides to a neighbour (never a touch swipe) */
|
|
5569
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
5570
|
+
.image-gallery__strip {
|
|
5571
|
+
scroll-behavior: smooth;
|
|
5572
|
+
}
|
|
5573
|
+
}
|
|
5574
|
+
|
|
5575
|
+
.image-gallery__slide {
|
|
5576
|
+
position: relative;
|
|
5577
|
+
flex: 0 0 100%;
|
|
5578
|
+
height: 100%;
|
|
5579
|
+
scroll-snap-align: start;
|
|
5580
|
+
scroll-snap-stop: always;
|
|
5581
|
+
}
|
|
5582
|
+
|
|
5583
|
+
.image-gallery__slide-img {
|
|
5584
|
+
position: absolute;
|
|
5585
|
+
inset: 0;
|
|
5586
|
+
display: block;
|
|
5476
5587
|
width: 100%;
|
|
5477
5588
|
height: 100%;
|
|
5478
5589
|
-o-object-fit: cover;
|
|
5479
5590
|
object-fit: cover;
|
|
5480
|
-
|
|
5481
|
-
|
|
5591
|
+
-webkit-user-select: none;
|
|
5592
|
+
-moz-user-select: none;
|
|
5593
|
+
user-select: none;
|
|
5594
|
+
-webkit-user-drag: none;
|
|
5595
|
+
}
|
|
5596
|
+
|
|
5597
|
+
.image-gallery__slide-img[data-fit='contain'] {
|
|
5598
|
+
-o-object-fit: contain;
|
|
5599
|
+
object-fit: contain;
|
|
5600
|
+
box-sizing: border-box;
|
|
5601
|
+
padding: 6%;
|
|
5482
5602
|
}
|
|
5483
5603
|
|
|
5484
5604
|
/* Navigation arrows */
|
|
@@ -5597,38 +5717,186 @@ em {
|
|
|
5597
5717
|
}
|
|
5598
5718
|
}
|
|
5599
5719
|
|
|
5600
|
-
/* Lightbox
|
|
5720
|
+
/* Lightbox: full-screen dialog, the viewer owns every gesture */
|
|
5601
5721
|
.image-gallery__lightbox.dndev-modal-content {
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5722
|
+
inset: 0;
|
|
5723
|
+
transform: none;
|
|
5724
|
+
width: 100vw;
|
|
5725
|
+
height: 100dvh;
|
|
5726
|
+
max-width: none;
|
|
5727
|
+
max-height: none;
|
|
5728
|
+
display: block;
|
|
5729
|
+
padding: 0;
|
|
5730
|
+
border: none;
|
|
5731
|
+
border-radius: 0;
|
|
5732
|
+
box-shadow: none;
|
|
5733
|
+
background: transparent;
|
|
5734
|
+
/* Fade only: the dialog keyframes translate a centred box */
|
|
5735
|
+
animation-name: overlay-in;
|
|
5605
5736
|
}
|
|
5737
|
+
.image-gallery__lightbox.dndev-modal-content[data-state='closed'] {
|
|
5738
|
+
animation-name: overlay-out;
|
|
5739
|
+
}
|
|
5740
|
+
.image-gallery__lightbox.dndev-modal-content .dndev-modal-close {
|
|
5741
|
+
z-index: 4;
|
|
5742
|
+
opacity: 1;
|
|
5743
|
+
}
|
|
5606
5744
|
|
|
5607
5745
|
.image-gallery__lightbox .dndev-modal-body {
|
|
5746
|
+
position: absolute;
|
|
5747
|
+
inset: 0;
|
|
5608
5748
|
padding: 0;
|
|
5609
|
-
display: flex;
|
|
5610
|
-
align-items: center;
|
|
5611
|
-
justify-content: center;
|
|
5612
5749
|
overflow: hidden;
|
|
5613
|
-
min-height: 40dvh;
|
|
5614
5750
|
}
|
|
5615
5751
|
|
|
5616
|
-
.image-gallery__lightbox-
|
|
5617
|
-
position:
|
|
5752
|
+
.image-gallery__lightbox-stage {
|
|
5753
|
+
position: absolute;
|
|
5754
|
+
inset: 0;
|
|
5755
|
+
overflow: hidden;
|
|
5756
|
+
outline: none;
|
|
5757
|
+
-webkit-user-select: none;
|
|
5758
|
+
-moz-user-select: none;
|
|
5759
|
+
user-select: none;
|
|
5760
|
+
}
|
|
5761
|
+
|
|
5762
|
+
/* Opaque layer behind the slides. The close drag fades it with opacity (composited);
|
|
5763
|
+
never animate its colour, that repaints the whole screen every frame. */
|
|
5764
|
+
.image-gallery__lightbox-backdrop {
|
|
5765
|
+
position: absolute;
|
|
5766
|
+
inset: 0;
|
|
5767
|
+
background-color: var(--background);
|
|
5768
|
+
will-change: opacity;
|
|
5769
|
+
}
|
|
5770
|
+
|
|
5771
|
+
/* pan-x: the browser pages; vertical drags and pinches reach the gesture code */
|
|
5772
|
+
.image-gallery__lightbox-strip {
|
|
5773
|
+
touch-action: pan-x;
|
|
5774
|
+
}
|
|
5775
|
+
|
|
5776
|
+
/* Zoomed: no paging, a drag pans the image */
|
|
5777
|
+
.image-gallery__lightbox-stage[data-zoomed] .image-gallery__lightbox-strip {
|
|
5778
|
+
touch-action: none;
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5781
|
+
.image-gallery__lightbox-slide {
|
|
5618
5782
|
display: flex;
|
|
5619
5783
|
align-items: center;
|
|
5620
5784
|
justify-content: center;
|
|
5785
|
+
box-sizing: border-box;
|
|
5786
|
+
padding: var(--gap-md);
|
|
5787
|
+
/* The frame sizes itself against the slide's content box (cq units) */
|
|
5788
|
+
container-type: size;
|
|
5789
|
+
}
|
|
5790
|
+
|
|
5791
|
+
/* Box of one image. Until its aspect ratio is known it fills the slide (the images are
|
|
5792
|
+
`contain`, so they look the same); then it is exactly the fitted image: the zoom, pan,
|
|
5793
|
+
hit-test and open / close morph target. */
|
|
5794
|
+
.image-gallery__lightbox-frame {
|
|
5795
|
+
position: relative;
|
|
5796
|
+
flex: none;
|
|
5621
5797
|
width: 100%;
|
|
5622
|
-
|
|
5798
|
+
height: 100%;
|
|
5799
|
+
cursor: zoom-in;
|
|
5623
5800
|
}
|
|
5624
5801
|
|
|
5625
|
-
.image-gallery__lightbox-
|
|
5626
|
-
|
|
5627
|
-
max-height: 85dvh;
|
|
5628
|
-
width: auto;
|
|
5802
|
+
.image-gallery__lightbox-frame[data-sized] {
|
|
5803
|
+
width: min(100cqw, 100cqh * var(--image-ratio));
|
|
5629
5804
|
height: auto;
|
|
5805
|
+
aspect-ratio: var(--image-ratio);
|
|
5806
|
+
}
|
|
5807
|
+
|
|
5808
|
+
/* Full image over its cached thumbnail: never an empty slide while it downloads */
|
|
5809
|
+
.image-gallery__lightbox-frame > img {
|
|
5810
|
+
position: absolute;
|
|
5811
|
+
inset: 0;
|
|
5812
|
+
display: block;
|
|
5813
|
+
width: 100%;
|
|
5814
|
+
height: 100%;
|
|
5630
5815
|
-o-object-fit: contain;
|
|
5631
5816
|
object-fit: contain;
|
|
5817
|
+
-webkit-user-drag: none;
|
|
5818
|
+
}
|
|
5819
|
+
|
|
5820
|
+
.image-gallery__lightbox-frame[data-loaded] > .image-gallery__lightbox-placeholder {
|
|
5821
|
+
visibility: hidden;
|
|
5822
|
+
}
|
|
5823
|
+
|
|
5824
|
+
/* Own layer only for what a gesture moves: the dragged slide, the zoomed image */
|
|
5825
|
+
.image-gallery__lightbox-stage[data-closing]
|
|
5826
|
+
.image-gallery__lightbox-slide:not([aria-hidden]) {
|
|
5827
|
+
will-change: translate;
|
|
5828
|
+
}
|
|
5829
|
+
|
|
5830
|
+
.image-gallery__lightbox-stage[data-zoomed]
|
|
5831
|
+
.image-gallery__lightbox-slide:not([aria-hidden])
|
|
5832
|
+
> .image-gallery__lightbox-frame {
|
|
5833
|
+
will-change: transform;
|
|
5834
|
+
cursor: grab;
|
|
5835
|
+
}
|
|
5836
|
+
|
|
5837
|
+
.image-gallery__lightbox-stage[data-zoomed]:active
|
|
5838
|
+
.image-gallery__lightbox-frame {
|
|
5839
|
+
cursor: grabbing;
|
|
5840
|
+
}
|
|
5841
|
+
|
|
5842
|
+
/* Settles (snap back, double-tap / click zoom) are transitions, off during a gesture */
|
|
5843
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
5844
|
+
.image-gallery__lightbox-stage[data-settle]
|
|
5845
|
+
:is(
|
|
5846
|
+
.image-gallery__lightbox-backdrop,
|
|
5847
|
+
.image-gallery__lightbox-slide,
|
|
5848
|
+
.image-gallery__lightbox-frame
|
|
5849
|
+
) {
|
|
5850
|
+
transition-property: opacity, translate, transform;
|
|
5851
|
+
transition-duration: var(--dur-normal);
|
|
5852
|
+
transition-timing-function: var(--ease-heavy);
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5855
|
+
/* Pan glide after a fling: a long deceleration. GLIDE_MS in lightboxGestures.ts
|
|
5856
|
+
projects the end point from these two tokens; keep them in step. */
|
|
5857
|
+
.image-gallery__lightbox-stage[data-settle='momentum']
|
|
5858
|
+
.image-gallery__lightbox-frame {
|
|
5859
|
+
transition-duration: var(--dur-slow);
|
|
5860
|
+
}
|
|
5861
|
+
}
|
|
5862
|
+
|
|
5863
|
+
/* Open / close morph: the tapped image grows into the lightbox and shrinks back
|
|
5864
|
+
(same-document view transition, run by the browser on the compositor). */
|
|
5865
|
+
::view-transition-group(image-gallery-image) {
|
|
5866
|
+
animation-duration: var(--dur-normal);
|
|
5867
|
+
animation-timing-function: var(--ease-heavy);
|
|
5868
|
+
}
|
|
5869
|
+
|
|
5870
|
+
::view-transition-old(image-gallery-image),
|
|
5871
|
+
::view-transition-new(image-gallery-image) {
|
|
5872
|
+
height: 100%;
|
|
5873
|
+
-o-object-fit: cover;
|
|
5874
|
+
object-fit: cover;
|
|
5875
|
+
overflow: clip;
|
|
5876
|
+
}
|
|
5877
|
+
|
|
5878
|
+
/* With the morph, the view transition animates open / close: the dialog's own
|
|
5879
|
+
fade would run on top of it. Same conditions as `canMorph` in ImageGallery.tsx. */
|
|
5880
|
+
@supports (view-transition-name: none) {
|
|
5881
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
5882
|
+
.image-gallery__lightbox.dndev-modal-content[data-state],
|
|
5883
|
+
.dndev-overlay[data-state]:has(+ .image-gallery__lightbox) {
|
|
5884
|
+
animation: none;
|
|
5885
|
+
}
|
|
5886
|
+
}
|
|
5887
|
+
}
|
|
5888
|
+
|
|
5889
|
+
.image-gallery__lightbox-counter {
|
|
5890
|
+
position: absolute;
|
|
5891
|
+
top: var(--gap-md);
|
|
5892
|
+
inset-inline-start: var(--gap-md);
|
|
5893
|
+
z-index: 3;
|
|
5894
|
+
padding: calc(var(--gap-sm) / 2) var(--gap-sm);
|
|
5895
|
+
border-radius: var(--radius-full);
|
|
5896
|
+
background-color: var(--card);
|
|
5897
|
+
color: var(--foreground);
|
|
5898
|
+
font-size: var(--font-size-sm);
|
|
5899
|
+
font-variant-numeric: tabular-nums;
|
|
5632
5900
|
}
|
|
5633
5901
|
|
|
5634
5902
|
.image-gallery__lightbox-nav {
|
|
@@ -5636,6 +5904,12 @@ em {
|
|
|
5636
5904
|
z-index: 3;
|
|
5637
5905
|
}
|
|
5638
5906
|
|
|
5907
|
+
/* Touch: swipe pages, so arrows are noise */
|
|
5908
|
+
@media (pointer: coarse) {
|
|
5909
|
+
.image-gallery__lightbox-nav {
|
|
5910
|
+
display: none;
|
|
5911
|
+
}
|
|
5912
|
+
}
|
|
5639
5913
|
/* packages/components/src/atomic/Input/Input.css */
|
|
5640
5914
|
|
|
5641
5915
|
/* Hide number input spinners - cleaner UI for price/range inputs */
|
|
@@ -8200,6 +8474,11 @@ input[type='number'] {
|
|
|
8200
8474
|
will-change: transform;
|
|
8201
8475
|
}
|
|
8202
8476
|
|
|
8477
|
+
/* Primary while on: thumb in the primary foreground (as Checkbox), readable on the track */
|
|
8478
|
+
.dndev-switch[data-variant='primary'][data-state='checked'] .dndev-switch-thumb {
|
|
8479
|
+
background-color: var(--primary-foreground);
|
|
8480
|
+
}
|
|
8481
|
+
|
|
8203
8482
|
.dndev-switch[data-state='checked'] .dndev-switch-thumb {
|
|
8204
8483
|
transform: translateX(calc(2.75rem - 1.25rem - 0.125rem));
|
|
8205
8484
|
}
|
|
@@ -8255,6 +8534,10 @@ input[type='number'] {
|
|
|
8255
8534
|
font-weight: var(--font-weight-normal);
|
|
8256
8535
|
}
|
|
8257
8536
|
|
|
8537
|
+
/* Switch with a label after it: the switch keeps its size, the label wraps */
|
|
8538
|
+
.dndev-switch-field > .dndev-switch {
|
|
8539
|
+
flex-shrink: 0;
|
|
8540
|
+
}
|
|
8258
8541
|
/* packages/components/src/atomic/Table/Table.css */
|
|
8259
8542
|
|
|
8260
8543
|
.dndev-table-wrapper {
|
|
@@ -8489,6 +8772,84 @@ input[type='number'] {
|
|
|
8489
8772
|
opacity: var(--opacity-muted);
|
|
8490
8773
|
}
|
|
8491
8774
|
}
|
|
8775
|
+
|
|
8776
|
+
/* Editable DataTable --------------------------------------------------- */
|
|
8777
|
+
|
|
8778
|
+
/* Scope for editor lookup (keyboard navigation); adds no box. */
|
|
8779
|
+
.dndev-table-edit-scope {
|
|
8780
|
+
display: contents;
|
|
8781
|
+
}
|
|
8782
|
+
|
|
8783
|
+
.dndev-table-bulk-bar {
|
|
8784
|
+
padding: var(--gap-xs) var(--gap-sm);
|
|
8785
|
+
border: 1px solid var(--border);
|
|
8786
|
+
background-color: var(--muted);
|
|
8787
|
+
}
|
|
8788
|
+
|
|
8789
|
+
/* Cell editor: fills the cell, reads as text until focused. */
|
|
8790
|
+
.dndev-table-cell-editor {
|
|
8791
|
+
width: 100%;
|
|
8792
|
+
min-width: 6rem;
|
|
8793
|
+
font: inherit;
|
|
8794
|
+
color: inherit;
|
|
8795
|
+
background-color: transparent;
|
|
8796
|
+
border: 1px solid transparent;
|
|
8797
|
+
border-radius: var(--radius-sm);
|
|
8798
|
+
padding: var(--gap-xs);
|
|
8799
|
+
}
|
|
8800
|
+
|
|
8801
|
+
.dndev-table-cell-editor:hover {
|
|
8802
|
+
border-color: var(--border);
|
|
8803
|
+
}
|
|
8804
|
+
|
|
8805
|
+
.dndev-table-cell-editor:focus-visible,
|
|
8806
|
+
.dndev-table-cell-editor:focus {
|
|
8807
|
+
outline: 2px solid var(--ring);
|
|
8808
|
+
outline-offset: -1px;
|
|
8809
|
+
background-color: var(--background);
|
|
8810
|
+
}
|
|
8811
|
+
|
|
8812
|
+
.dndev-table-bulk-bar .dndev-table-cell-editor {
|
|
8813
|
+
width: auto;
|
|
8814
|
+
border-color: var(--border);
|
|
8815
|
+
background-color: var(--background);
|
|
8816
|
+
}
|
|
8817
|
+
|
|
8818
|
+
.dndev-table-cell[data-editable='true'] {
|
|
8819
|
+
padding-block: 0;
|
|
8820
|
+
}
|
|
8821
|
+
|
|
8822
|
+
/* Changed, not saved yet */
|
|
8823
|
+
.dndev-table-cell[data-dirty='true'] {
|
|
8824
|
+
background-color: color-mix(in oklab, var(--primary) 12%, transparent);
|
|
8825
|
+
}
|
|
8826
|
+
|
|
8827
|
+
/* Value that does not parse: the save will reject it */
|
|
8828
|
+
.dndev-table-cell[data-invalid='true'] .dndev-table-cell-editor {
|
|
8829
|
+
border-color: var(--destructive);
|
|
8830
|
+
}
|
|
8831
|
+
|
|
8832
|
+
/* Open cell: icon link to the row's record (touch-sized hit area) */
|
|
8833
|
+
.dndev-table-open-link {
|
|
8834
|
+
display: inline-flex;
|
|
8835
|
+
align-items: center;
|
|
8836
|
+
justify-content: center;
|
|
8837
|
+
min-width: var(--touch-target);
|
|
8838
|
+
min-height: var(--touch-target);
|
|
8839
|
+
color: var(--muted-foreground);
|
|
8840
|
+
border-radius: var(--radius-sm);
|
|
8841
|
+
}
|
|
8842
|
+
|
|
8843
|
+
.dndev-table-open-link:hover {
|
|
8844
|
+
color: var(--foreground);
|
|
8845
|
+
background-color: var(--muted);
|
|
8846
|
+
}
|
|
8847
|
+
|
|
8848
|
+
.dndev-table-open-link:focus-visible {
|
|
8849
|
+
outline: 2px solid var(--ring);
|
|
8850
|
+
outline-offset: -1px;
|
|
8851
|
+
}
|
|
8852
|
+
|
|
8492
8853
|
/* packages/components/src/atomic/Tabs/Tabs.css */
|
|
8493
8854
|
|
|
8494
8855
|
/* Tabs list: use flexbox for natural wrapping, not grid */
|
|
@@ -8508,100 +8869,51 @@ input[type='number'] {
|
|
|
8508
8869
|
word-break: break-word;
|
|
8509
8870
|
border: var(--border-hairline) solid var(--line-2); /* Show clickable area */
|
|
8510
8871
|
|
|
8511
|
-
/*
|
|
8512
|
-
|
|
8513
|
-
|
|
8872
|
+
/*
|
|
8873
|
+
* Inactive = neutral surface, active = filled with the variant colour, so the
|
|
8874
|
+
* selected tab is the one that stands out (the panel sits below with a gap, it
|
|
8875
|
+
* is not a folder tab joined to its content). --card not --background: the tab
|
|
8876
|
+
* surface must be opaque (--background can be transparent in some themes).
|
|
8877
|
+
*/
|
|
8878
|
+
background-color: var(--card);
|
|
8879
|
+
color: var(--muted-foreground);
|
|
8880
|
+
--tab-active-bg: var(--primary);
|
|
8881
|
+
--tab-active-fg: var(--primary-foreground);
|
|
8514
8882
|
}
|
|
8515
|
-
.dndev-interactive[data-role='tab-trigger'][data-state='active'] {
|
|
8516
|
-
/* --card not --background: active tab surface must be opaque (--background can be transparent in some themes) */
|
|
8517
|
-
background-color: var(--card);
|
|
8883
|
+
.dndev-interactive[data-role='tab-trigger']:hover:not([data-state='active']):not(:disabled) {
|
|
8518
8884
|
color: var(--foreground);
|
|
8519
|
-
box-shadow: var(--shadow-sm);
|
|
8520
|
-
border-color: var(--primary);
|
|
8521
|
-
}
|
|
8522
|
-
/* Default/Primary variant: inactive = primary, active = foreground/card */
|
|
8523
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='default'],.dndev-interactive[data-role='tab-trigger'][data-variant='primary'] {
|
|
8524
|
-
background-color: var(--primary);
|
|
8525
|
-
color: var(--primary-foreground);
|
|
8526
8885
|
}
|
|
8527
|
-
[data-state='active']:is(.dndev-interactive[data-role='tab-trigger'][data-variant='default'],.dndev-interactive[data-role='tab-trigger'][data-variant='primary']) {
|
|
8528
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8529
|
-
background-color: var(--card);
|
|
8530
|
-
color: var(--foreground);
|
|
8531
|
-
box-shadow: var(--shadow-sm);
|
|
8532
|
-
border-color: var(--primary);
|
|
8533
|
-
}
|
|
8534
|
-
/* Secondary variant: inactive = secondary, active = foreground/card */
|
|
8535
8886
|
.dndev-interactive[data-role='tab-trigger'][data-variant='secondary'] {
|
|
8536
|
-
|
|
8537
|
-
|
|
8887
|
+
--tab-active-bg: var(--secondary);
|
|
8888
|
+
--tab-active-fg: var(--secondary-foreground);
|
|
8538
8889
|
}
|
|
8539
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='secondary'][data-state='active'] {
|
|
8540
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8541
|
-
background-color: var(--card);
|
|
8542
|
-
color: var(--foreground);
|
|
8543
|
-
box-shadow: var(--shadow-sm);
|
|
8544
|
-
border-color: var(--secondary);
|
|
8545
|
-
}
|
|
8546
|
-
/* Accent variant: inactive = accent, active = foreground/card */
|
|
8547
8890
|
.dndev-interactive[data-role='tab-trigger'][data-variant='accent'] {
|
|
8548
|
-
|
|
8549
|
-
|
|
8891
|
+
--tab-active-bg: var(--accent);
|
|
8892
|
+
--tab-active-fg: var(--accent-foreground);
|
|
8550
8893
|
}
|
|
8551
|
-
|
|
8552
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8553
|
-
background-color: var(--card);
|
|
8554
|
-
color: var(--foreground);
|
|
8555
|
-
box-shadow: var(--shadow-sm);
|
|
8556
|
-
border-color: var(--accent);
|
|
8557
|
-
}
|
|
8558
|
-
/* Muted variant: inactive = muted, active = primary (to contrast) */
|
|
8894
|
+
/* Muted: the muted fill would not stand out as the selection, so primary */
|
|
8559
8895
|
.dndev-interactive[data-role='tab-trigger'][data-variant='muted'] {
|
|
8560
|
-
|
|
8561
|
-
|
|
8896
|
+
--tab-active-bg: var(--primary);
|
|
8897
|
+
--tab-active-fg: var(--primary-foreground);
|
|
8562
8898
|
}
|
|
8563
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='muted'][data-state='active'] {
|
|
8564
|
-
background-color: var(--primary);
|
|
8565
|
-
color: var(--primary-foreground);
|
|
8566
|
-
box-shadow: var(--shadow-sm);
|
|
8567
|
-
border-color: var(--primary);
|
|
8568
|
-
}
|
|
8569
|
-
/* Warning variant: inactive = warning, active = foreground/card */
|
|
8570
8899
|
.dndev-interactive[data-role='tab-trigger'][data-variant='warning'] {
|
|
8571
|
-
|
|
8572
|
-
|
|
8900
|
+
--tab-active-bg: var(--warning);
|
|
8901
|
+
--tab-active-fg: var(--warning-foreground);
|
|
8573
8902
|
}
|
|
8574
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='warning'][data-state='active'] {
|
|
8575
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8576
|
-
background-color: var(--card);
|
|
8577
|
-
color: var(--foreground);
|
|
8578
|
-
box-shadow: var(--shadow-sm);
|
|
8579
|
-
border-color: var(--warning);
|
|
8580
|
-
}
|
|
8581
|
-
/* Success variant: inactive = success, active = foreground/card */
|
|
8582
8903
|
.dndev-interactive[data-role='tab-trigger'][data-variant='success'] {
|
|
8583
|
-
|
|
8584
|
-
|
|
8904
|
+
--tab-active-bg: var(--success);
|
|
8905
|
+
--tab-active-fg: var(--success-foreground);
|
|
8585
8906
|
}
|
|
8586
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='success'][data-state='active'] {
|
|
8587
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8588
|
-
background-color: var(--card);
|
|
8589
|
-
color: var(--foreground);
|
|
8590
|
-
box-shadow: var(--shadow-sm);
|
|
8591
|
-
border-color: var(--success);
|
|
8592
|
-
}
|
|
8593
|
-
/* Destructive variant: inactive = destructive, active = foreground/card */
|
|
8594
8907
|
.dndev-interactive[data-role='tab-trigger'][data-variant='destructive'] {
|
|
8595
|
-
|
|
8596
|
-
|
|
8908
|
+
--tab-active-bg: var(--destructive);
|
|
8909
|
+
--tab-active-fg: var(--destructive-foreground);
|
|
8910
|
+
}
|
|
8911
|
+
.dndev-interactive[data-role='tab-trigger'][data-state='active'] {
|
|
8912
|
+
background-color: var(--tab-active-bg);
|
|
8913
|
+
color: var(--tab-active-fg);
|
|
8914
|
+
border-color: var(--tab-active-bg);
|
|
8915
|
+
box-shadow: var(--shadow-sm);
|
|
8597
8916
|
}
|
|
8598
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='destructive'][data-state='active'] {
|
|
8599
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8600
|
-
background-color: var(--card);
|
|
8601
|
-
color: var(--foreground);
|
|
8602
|
-
box-shadow: var(--shadow-sm);
|
|
8603
|
-
border-color: var(--destructive);
|
|
8604
|
-
}
|
|
8605
8917
|
|
|
8606
8918
|
.dndev-tabs-content {
|
|
8607
8919
|
margin-top: var(--gap-md);
|
|
@@ -11683,9 +11995,17 @@ h4[data-variant='code'] {
|
|
|
11683
11995
|
/* ===========================
|
|
11684
11996
|
DEFAULT VALUES (Landing Preset)
|
|
11685
11997
|
All presets inherit these - only override what's different
|
|
11998
|
+
|
|
11999
|
+
Layout tokens are declared on <html>, never on .dndev-layout: every element of
|
|
12000
|
+
the app sits under the wrapper, so a declaration there would shadow the app's
|
|
12001
|
+
:root overrides (themes.css). Presets read the wrapper's data-layout (in the
|
|
12002
|
+
server HTML) through :has, so they resolve on the first paint. All token rules
|
|
12003
|
+
carry zero specificity (:where): an app :root override wins whatever the
|
|
12004
|
+
stylesheet order. Preset display rules (hide header, sidebar…) stay scoped to
|
|
12005
|
+
[data-layout], which matches the wrapper.
|
|
11686
12006
|
=========================== */
|
|
11687
12007
|
|
|
11688
|
-
:root {
|
|
12008
|
+
:where(:root) {
|
|
11689
12009
|
/* Layout structure dimensions */
|
|
11690
12010
|
/* Height values include borders (box-sizing: border-box) */
|
|
11691
12011
|
/* Content heights are multiples of 12px, then add 2px border */
|
|
@@ -11887,9 +12207,15 @@ main[role='main'][data-routing-animation='none'] {
|
|
|
11887
12207
|
}
|
|
11888
12208
|
|
|
11889
12209
|
/* Header content width adjustments for sidebar layouts */
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
12210
|
+
:where(
|
|
12211
|
+
:root:has(
|
|
12212
|
+
.dndev-layout:is(
|
|
12213
|
+
[data-layout='moolti'],
|
|
12214
|
+
[data-layout='docs'],
|
|
12215
|
+
[data-layout='blog']
|
|
12216
|
+
)
|
|
12217
|
+
)
|
|
12218
|
+
) {
|
|
11893
12219
|
--header-content-width: calc(100% - var(--sidebar-width));
|
|
11894
12220
|
}
|
|
11895
12221
|
|
|
@@ -12096,7 +12422,7 @@ aside[role='navigation'].sidebar {
|
|
|
12096
12422
|
display: none;
|
|
12097
12423
|
}
|
|
12098
12424
|
/* Moolti: Sidebar spans full height (no header/footer on desktop) */
|
|
12099
|
-
[data-layout='moolti']:root aside.sidebar[role='navigation'] {
|
|
12425
|
+
[data-layout='moolti']:root aside.sidebar[role='navigation'],.dndev-layout[data-layout='moolti'] aside.sidebar[role='navigation'] {
|
|
12100
12426
|
grid-row: 1 / -1;
|
|
12101
12427
|
}
|
|
12102
12428
|
|
|
@@ -12463,14 +12789,14 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12463
12789
|
* Perfect for: Admin panels, dashboards, management interfaces
|
|
12464
12790
|
* Overrides: Adds sidebar (240px), constrains width (1480px), tighter spacing
|
|
12465
12791
|
*/
|
|
12466
|
-
[data-layout='admin'] {
|
|
12792
|
+
:where(:root:has(.dndev-layout[data-layout='admin'])) {
|
|
12467
12793
|
/* Desktop/Wide (>=1024px) - only overrides */
|
|
12468
12794
|
--sidebar-width: var(--custom-sidebar-width, 240px);
|
|
12469
12795
|
|
|
12470
12796
|
/* Admin: Mobile/Tablet (<1024px) - only overrides */
|
|
12471
12797
|
}
|
|
12472
12798
|
@media (width <=1023px) {
|
|
12473
|
-
[data-layout='admin'] {
|
|
12799
|
+
:where(:root:has(.dndev-layout[data-layout='admin'])) {
|
|
12474
12800
|
--sidebar-width: 0px;
|
|
12475
12801
|
/* Override: hide sidebar on mobile */
|
|
12476
12802
|
}
|
|
@@ -12481,48 +12807,53 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12481
12807
|
* Perfect for: SaaS applications, productivity tools, focused workflows
|
|
12482
12808
|
* Overrides: No header/footer (sidebar only), sidebar (256px), balanced spacing
|
|
12483
12809
|
*/
|
|
12484
|
-
[data-layout='moolti'] {
|
|
12810
|
+
:where(:root:has(.dndev-layout[data-layout='moolti'])) {
|
|
12485
12811
|
/* Desktop/Wide (>=1024px) - only overrides */
|
|
12486
12812
|
--header-height: 0px;
|
|
12487
12813
|
--sidebar-width: var(--custom-sidebar-width, 256px);
|
|
12488
12814
|
--footer-height: 0px;
|
|
12815
|
+
|
|
12816
|
+
/* Moolti: Mobile/Tablet (<1024px) - only overrides */
|
|
12817
|
+
}
|
|
12818
|
+
@media (width <=1023px) {
|
|
12819
|
+
:where(:root:has(.dndev-layout[data-layout='moolti'])) {
|
|
12820
|
+
--header-height: 62px;
|
|
12821
|
+
--sidebar-width: 0px;
|
|
12489
12822
|
}
|
|
12823
|
+
}
|
|
12824
|
+
|
|
12490
12825
|
[data-layout='moolti'] header[role='banner'] {
|
|
12491
12826
|
display: none;
|
|
12492
12827
|
}
|
|
12828
|
+
|
|
12493
12829
|
[data-layout='moolti'] footer[role='contentinfo'] {
|
|
12494
12830
|
display: none;
|
|
12495
12831
|
}
|
|
12496
|
-
/* Moolti: Mobile/Tablet (<1024px) - only overrides */
|
|
12497
|
-
@media (width <=1023px) {
|
|
12498
|
-
[data-layout='moolti'] {
|
|
12499
|
-
--header-height: 62px;
|
|
12500
|
-
--sidebar-width: 0px;
|
|
12501
|
-
}
|
|
12502
|
-
}
|
|
12503
12832
|
|
|
12504
12833
|
/**
|
|
12505
12834
|
* DOCS PRESET
|
|
12506
12835
|
* Perfect for: Documentation sites, knowledge bases, content platforms
|
|
12507
12836
|
* Overrides: No header, sidebar (300px), comfortable reading spacing
|
|
12508
12837
|
*/
|
|
12509
|
-
[data-layout='docs'] {
|
|
12838
|
+
:where(:root:has(.dndev-layout[data-layout='docs'])) {
|
|
12510
12839
|
/* Desktop/Wide (>=1024px) - only overrides */
|
|
12511
12840
|
--header-height: 0px;
|
|
12512
12841
|
/* Override: no header - maximizes reading space */
|
|
12513
12842
|
--sidebar-width: var(--custom-sidebar-width, 300px);
|
|
12843
|
+
|
|
12844
|
+
/* Docs: Mobile/Tablet (<1024px) - only overrides */
|
|
12514
12845
|
}
|
|
12515
|
-
[data-layout='docs'] header[role='banner'] {
|
|
12516
|
-
display: none;
|
|
12517
|
-
}
|
|
12518
|
-
/* Docs: Mobile/Tablet (<1024px) - only overrides */
|
|
12519
12846
|
@media (width <=1023px) {
|
|
12520
|
-
[data-layout='docs'] {
|
|
12847
|
+
:where(:root:has(.dndev-layout[data-layout='docs'])) {
|
|
12521
12848
|
--sidebar-width: 0px;
|
|
12522
12849
|
/* Override: hide sidebar on mobile */
|
|
12523
12850
|
}
|
|
12524
12851
|
}
|
|
12525
12852
|
|
|
12853
|
+
[data-layout='docs'] header[role='banner'] {
|
|
12854
|
+
display: none;
|
|
12855
|
+
}
|
|
12856
|
+
|
|
12526
12857
|
/**
|
|
12527
12858
|
* LANDING PRESET (Default)
|
|
12528
12859
|
* Perfect for: Marketing sites, landing pages, public content
|
|
@@ -12534,17 +12865,19 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12534
12865
|
* Perfect for: Blogs, news sites, content management
|
|
12535
12866
|
* Overrides: Sidebar (280px), constrains width (1480px), content-focused spacing
|
|
12536
12867
|
*/
|
|
12537
|
-
[data-layout='blog'] {
|
|
12868
|
+
:where(:root:has(.dndev-layout[data-layout='blog'])) {
|
|
12538
12869
|
--sidebar-width: var(--custom-sidebar-width, 280px);
|
|
12539
12870
|
|
|
12540
12871
|
/* Blog: Mobile/Tablet (<1024px) - only overrides */
|
|
12541
12872
|
}
|
|
12542
12873
|
@media (width <=1023px) {
|
|
12543
|
-
[data-layout='blog'] {
|
|
12874
|
+
:where(:root:has(.dndev-layout[data-layout='blog'])) {
|
|
12544
12875
|
--header-height: 0px;
|
|
12545
12876
|
--sidebar-width: 0px;
|
|
12546
12877
|
}
|
|
12878
|
+
}
|
|
12547
12879
|
|
|
12880
|
+
@media (width <=1023px) {
|
|
12548
12881
|
[data-layout='blog'] header[role='banner'] {
|
|
12549
12882
|
display: none;
|
|
12550
12883
|
}
|
|
@@ -12555,17 +12888,20 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12555
12888
|
* Perfect for: Full-screen apps, embedded widgets, clean content
|
|
12556
12889
|
* Overrides: No header/footer/sidebar, minimal spacing
|
|
12557
12890
|
*/
|
|
12558
|
-
[data-layout='plain'] {
|
|
12891
|
+
:where(:root:has(.dndev-layout[data-layout='plain'])) {
|
|
12559
12892
|
--header-height: 0px;
|
|
12560
12893
|
--sidebar-width: 0px;
|
|
12561
12894
|
--footer-height: 0px;
|
|
12562
12895
|
}
|
|
12896
|
+
|
|
12563
12897
|
[data-layout='plain'] header[role='banner'] {
|
|
12564
12898
|
display: none;
|
|
12565
12899
|
}
|
|
12900
|
+
|
|
12566
12901
|
[data-layout='plain'] aside.sidebar[role='navigation'] {
|
|
12567
12902
|
display: none;
|
|
12568
12903
|
}
|
|
12904
|
+
|
|
12569
12905
|
[data-layout='plain'] footer[role='contentinfo'] {
|
|
12570
12906
|
display: none;
|
|
12571
12907
|
}
|
|
@@ -12577,16 +12913,18 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12577
12913
|
* Perfect for: Mobile gaming apps, full-screen experiences, touch interfaces
|
|
12578
12914
|
* Overrides: Minimal spacing for maximum screen real estate
|
|
12579
12915
|
*/
|
|
12580
|
-
[data-layout='game'] {
|
|
12916
|
+
:where(:root:has(.dndev-layout[data-layout='game'])) {
|
|
12581
12917
|
--header-height: 92px;
|
|
12582
12918
|
|
|
12583
12919
|
/* Game: Mobile/Tablet (<1024px) - only overrides */
|
|
12584
12920
|
}
|
|
12585
12921
|
@media (width <=1023px) {
|
|
12586
|
-
[data-layout='game'] {
|
|
12922
|
+
:where(:root:has(.dndev-layout[data-layout='game'])) {
|
|
12587
12923
|
--footer-height: 0px;
|
|
12588
12924
|
}
|
|
12925
|
+
}
|
|
12589
12926
|
|
|
12927
|
+
@media (width <=1023px) {
|
|
12590
12928
|
[data-layout='game'] footer[role='contentinfo'] {
|
|
12591
12929
|
display: none;
|
|
12592
12930
|
}
|