@donotdev/ui 0.2.1 → 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/TechBento.d.ts +2 -6
- package/dist/components/common/TechBento.d.ts.map +1 -1
- package/dist/components/common/TechBento.js +14 -16
- 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 +1 -1
- package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityDisplayRenderer.js +17 -58
- 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 +3 -0
- package/dist/crud/crudImports.d.ts.map +1 -1
- package/dist/crud/crudImports.js +3 -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 +45 -58
- package/dist/internal/layout/components/footer/FooterLegalLinks.js +2 -2
- package/dist/internal/layout/components/footer/useLegalLinks.d.ts +0 -2
- package/dist/internal/layout/components/footer/useLegalLinks.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/useLegalLinks.js +0 -2
- package/dist/internal/layout/components/i18nSeoMeta.d.ts +54 -0
- package/dist/internal/layout/components/i18nSeoMeta.d.ts.map +1 -0
- package/dist/internal/layout/components/i18nSeoMeta.js +53 -0
- package/dist/internal/layout/components/index.d.ts +1 -1
- package/dist/internal/layout/components/index.js +1 -1
- 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 -6
- 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/AuthGuard.d.ts +0 -4
- package/dist/routing/AuthGuard.d.ts.map +1 -1
- package/dist/routing/AuthGuard.js +0 -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 +64 -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-next.css
CHANGED
|
@@ -64,9 +64,7 @@
|
|
|
64
64
|
* applies regardless of density tier.
|
|
65
65
|
*/
|
|
66
66
|
--gap-none: 0;
|
|
67
|
-
--gap-sm
|
|
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
|
|
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
|
-
|
|
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
|
|
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 */
|
|
@@ -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
|
-
|
|
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
|
}
|
|
@@ -5440,6 +5505,17 @@ em {
|
|
|
5440
5505
|
outline: none;
|
|
5441
5506
|
}
|
|
5442
5507
|
|
|
5508
|
+
/* Gallery pictures are always protected (with blockContextMenu + draggable=false):
|
|
5509
|
+
no drag, no iOS long-press "Save image" callout, no selection. */
|
|
5510
|
+
.image-gallery img,
|
|
5511
|
+
.image-gallery__lightbox-stage img {
|
|
5512
|
+
-webkit-touch-callout: none;
|
|
5513
|
+
-webkit-user-drag: none;
|
|
5514
|
+
-webkit-user-select: none;
|
|
5515
|
+
-moz-user-select: none;
|
|
5516
|
+
user-select: none;
|
|
5517
|
+
}
|
|
5518
|
+
|
|
5443
5519
|
.image-gallery:focus-visible {
|
|
5444
5520
|
outline: 2px solid var(--primary);
|
|
5445
5521
|
outline-offset: 2px;
|
|
@@ -5473,13 +5549,57 @@ em {
|
|
|
5473
5549
|
cursor: zoom-in;
|
|
5474
5550
|
}
|
|
5475
5551
|
|
|
5476
|
-
|
|
5552
|
+
/* Swipeable strip (main view and lightbox): native scrolling, one slide per snap point */
|
|
5553
|
+
.image-gallery__strip {
|
|
5554
|
+
/* Offset parent of the slides: a slide's offsetLeft is its scroll offset */
|
|
5555
|
+
position: relative;
|
|
5556
|
+
display: flex;
|
|
5557
|
+
height: 100%;
|
|
5558
|
+
overflow-x: auto;
|
|
5559
|
+
overflow-y: hidden;
|
|
5560
|
+
scroll-snap-type: x mandatory;
|
|
5561
|
+
overscroll-behavior-x: contain;
|
|
5562
|
+
scrollbar-width: none;
|
|
5563
|
+
}
|
|
5564
|
+
|
|
5565
|
+
.image-gallery__strip::-webkit-scrollbar {
|
|
5566
|
+
display: none;
|
|
5567
|
+
}
|
|
5568
|
+
|
|
5569
|
+
/* Arrow / thumbnail / key navigation glides to a neighbour (never a touch swipe) */
|
|
5570
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
5571
|
+
.image-gallery__strip {
|
|
5572
|
+
scroll-behavior: smooth;
|
|
5573
|
+
}
|
|
5574
|
+
}
|
|
5575
|
+
|
|
5576
|
+
.image-gallery__slide {
|
|
5577
|
+
position: relative;
|
|
5578
|
+
flex: 0 0 100%;
|
|
5579
|
+
height: 100%;
|
|
5580
|
+
scroll-snap-align: start;
|
|
5581
|
+
scroll-snap-stop: always;
|
|
5582
|
+
}
|
|
5583
|
+
|
|
5584
|
+
.image-gallery__slide-img {
|
|
5585
|
+
position: absolute;
|
|
5586
|
+
inset: 0;
|
|
5587
|
+
display: block;
|
|
5477
5588
|
width: 100%;
|
|
5478
5589
|
height: 100%;
|
|
5479
5590
|
-o-object-fit: cover;
|
|
5480
5591
|
object-fit: cover;
|
|
5481
|
-
|
|
5482
|
-
|
|
5592
|
+
-webkit-user-select: none;
|
|
5593
|
+
-moz-user-select: none;
|
|
5594
|
+
user-select: none;
|
|
5595
|
+
-webkit-user-drag: none;
|
|
5596
|
+
}
|
|
5597
|
+
|
|
5598
|
+
.image-gallery__slide-img[data-fit='contain'] {
|
|
5599
|
+
-o-object-fit: contain;
|
|
5600
|
+
object-fit: contain;
|
|
5601
|
+
box-sizing: border-box;
|
|
5602
|
+
padding: 6%;
|
|
5483
5603
|
}
|
|
5484
5604
|
|
|
5485
5605
|
/* Navigation arrows */
|
|
@@ -5598,38 +5718,186 @@ em {
|
|
|
5598
5718
|
}
|
|
5599
5719
|
}
|
|
5600
5720
|
|
|
5601
|
-
/* Lightbox
|
|
5721
|
+
/* Lightbox: full-screen dialog, the viewer owns every gesture */
|
|
5602
5722
|
.image-gallery__lightbox.dndev-modal-content {
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5723
|
+
inset: 0;
|
|
5724
|
+
transform: none;
|
|
5725
|
+
width: 100vw;
|
|
5726
|
+
height: 100dvh;
|
|
5727
|
+
max-width: none;
|
|
5728
|
+
max-height: none;
|
|
5729
|
+
display: block;
|
|
5730
|
+
padding: 0;
|
|
5731
|
+
border: none;
|
|
5732
|
+
border-radius: 0;
|
|
5733
|
+
box-shadow: none;
|
|
5734
|
+
background: transparent;
|
|
5735
|
+
/* Fade only: the dialog keyframes translate a centred box */
|
|
5736
|
+
animation-name: overlay-in;
|
|
5606
5737
|
}
|
|
5738
|
+
.image-gallery__lightbox.dndev-modal-content[data-state='closed'] {
|
|
5739
|
+
animation-name: overlay-out;
|
|
5740
|
+
}
|
|
5741
|
+
.image-gallery__lightbox.dndev-modal-content .dndev-modal-close {
|
|
5742
|
+
z-index: 4;
|
|
5743
|
+
opacity: 1;
|
|
5744
|
+
}
|
|
5607
5745
|
|
|
5608
5746
|
.image-gallery__lightbox .dndev-modal-body {
|
|
5747
|
+
position: absolute;
|
|
5748
|
+
inset: 0;
|
|
5609
5749
|
padding: 0;
|
|
5610
|
-
display: flex;
|
|
5611
|
-
align-items: center;
|
|
5612
|
-
justify-content: center;
|
|
5613
5750
|
overflow: hidden;
|
|
5614
|
-
min-height: 40dvh;
|
|
5615
5751
|
}
|
|
5616
5752
|
|
|
5617
|
-
.image-gallery__lightbox-
|
|
5618
|
-
position:
|
|
5753
|
+
.image-gallery__lightbox-stage {
|
|
5754
|
+
position: absolute;
|
|
5755
|
+
inset: 0;
|
|
5756
|
+
overflow: hidden;
|
|
5757
|
+
outline: none;
|
|
5758
|
+
-webkit-user-select: none;
|
|
5759
|
+
-moz-user-select: none;
|
|
5760
|
+
user-select: none;
|
|
5761
|
+
}
|
|
5762
|
+
|
|
5763
|
+
/* Opaque layer behind the slides. The close drag fades it with opacity (composited);
|
|
5764
|
+
never animate its colour, that repaints the whole screen every frame. */
|
|
5765
|
+
.image-gallery__lightbox-backdrop {
|
|
5766
|
+
position: absolute;
|
|
5767
|
+
inset: 0;
|
|
5768
|
+
background-color: var(--background);
|
|
5769
|
+
will-change: opacity;
|
|
5770
|
+
}
|
|
5771
|
+
|
|
5772
|
+
/* pan-x: the browser pages; vertical drags and pinches reach the gesture code */
|
|
5773
|
+
.image-gallery__lightbox-strip {
|
|
5774
|
+
touch-action: pan-x;
|
|
5775
|
+
}
|
|
5776
|
+
|
|
5777
|
+
/* Zoomed: no paging, a drag pans the image */
|
|
5778
|
+
.image-gallery__lightbox-stage[data-zoomed] .image-gallery__lightbox-strip {
|
|
5779
|
+
touch-action: none;
|
|
5780
|
+
}
|
|
5781
|
+
|
|
5782
|
+
.image-gallery__lightbox-slide {
|
|
5619
5783
|
display: flex;
|
|
5620
5784
|
align-items: center;
|
|
5621
5785
|
justify-content: center;
|
|
5786
|
+
box-sizing: border-box;
|
|
5787
|
+
padding: var(--gap-md);
|
|
5788
|
+
/* The frame sizes itself against the slide's content box (cq units) */
|
|
5789
|
+
container-type: size;
|
|
5790
|
+
}
|
|
5791
|
+
|
|
5792
|
+
/* Box of one image. Until its aspect ratio is known it fills the slide (the images are
|
|
5793
|
+
`contain`, so they look the same); then it is exactly the fitted image: the zoom, pan,
|
|
5794
|
+
hit-test and open / close morph target. */
|
|
5795
|
+
.image-gallery__lightbox-frame {
|
|
5796
|
+
position: relative;
|
|
5797
|
+
flex: none;
|
|
5622
5798
|
width: 100%;
|
|
5623
|
-
|
|
5799
|
+
height: 100%;
|
|
5800
|
+
cursor: zoom-in;
|
|
5624
5801
|
}
|
|
5625
5802
|
|
|
5626
|
-
.image-gallery__lightbox-
|
|
5627
|
-
|
|
5628
|
-
max-height: 85dvh;
|
|
5629
|
-
width: auto;
|
|
5803
|
+
.image-gallery__lightbox-frame[data-sized] {
|
|
5804
|
+
width: min(100cqw, 100cqh * var(--image-ratio));
|
|
5630
5805
|
height: auto;
|
|
5806
|
+
aspect-ratio: var(--image-ratio);
|
|
5807
|
+
}
|
|
5808
|
+
|
|
5809
|
+
/* Full image over its cached thumbnail: never an empty slide while it downloads */
|
|
5810
|
+
.image-gallery__lightbox-frame > img {
|
|
5811
|
+
position: absolute;
|
|
5812
|
+
inset: 0;
|
|
5813
|
+
display: block;
|
|
5814
|
+
width: 100%;
|
|
5815
|
+
height: 100%;
|
|
5631
5816
|
-o-object-fit: contain;
|
|
5632
5817
|
object-fit: contain;
|
|
5818
|
+
-webkit-user-drag: none;
|
|
5819
|
+
}
|
|
5820
|
+
|
|
5821
|
+
.image-gallery__lightbox-frame[data-loaded] > .image-gallery__lightbox-placeholder {
|
|
5822
|
+
visibility: hidden;
|
|
5823
|
+
}
|
|
5824
|
+
|
|
5825
|
+
/* Own layer only for what a gesture moves: the dragged slide, the zoomed image */
|
|
5826
|
+
.image-gallery__lightbox-stage[data-closing]
|
|
5827
|
+
.image-gallery__lightbox-slide:not([aria-hidden]) {
|
|
5828
|
+
will-change: translate;
|
|
5829
|
+
}
|
|
5830
|
+
|
|
5831
|
+
.image-gallery__lightbox-stage[data-zoomed]
|
|
5832
|
+
.image-gallery__lightbox-slide:not([aria-hidden])
|
|
5833
|
+
> .image-gallery__lightbox-frame {
|
|
5834
|
+
will-change: transform;
|
|
5835
|
+
cursor: grab;
|
|
5836
|
+
}
|
|
5837
|
+
|
|
5838
|
+
.image-gallery__lightbox-stage[data-zoomed]:active
|
|
5839
|
+
.image-gallery__lightbox-frame {
|
|
5840
|
+
cursor: grabbing;
|
|
5841
|
+
}
|
|
5842
|
+
|
|
5843
|
+
/* Settles (snap back, double-tap / click zoom) are transitions, off during a gesture */
|
|
5844
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
5845
|
+
.image-gallery__lightbox-stage[data-settle]
|
|
5846
|
+
:is(
|
|
5847
|
+
.image-gallery__lightbox-backdrop,
|
|
5848
|
+
.image-gallery__lightbox-slide,
|
|
5849
|
+
.image-gallery__lightbox-frame
|
|
5850
|
+
) {
|
|
5851
|
+
transition-property: opacity, translate, transform;
|
|
5852
|
+
transition-duration: var(--dur-normal);
|
|
5853
|
+
transition-timing-function: var(--ease-heavy);
|
|
5854
|
+
}
|
|
5855
|
+
|
|
5856
|
+
/* Pan glide after a fling: a long deceleration. GLIDE_MS in lightboxGestures.ts
|
|
5857
|
+
projects the end point from these two tokens; keep them in step. */
|
|
5858
|
+
.image-gallery__lightbox-stage[data-settle='momentum']
|
|
5859
|
+
.image-gallery__lightbox-frame {
|
|
5860
|
+
transition-duration: var(--dur-slow);
|
|
5861
|
+
}
|
|
5862
|
+
}
|
|
5863
|
+
|
|
5864
|
+
/* Open / close morph: the tapped image grows into the lightbox and shrinks back
|
|
5865
|
+
(same-document view transition, run by the browser on the compositor). */
|
|
5866
|
+
::view-transition-group(image-gallery-image) {
|
|
5867
|
+
animation-duration: var(--dur-normal);
|
|
5868
|
+
animation-timing-function: var(--ease-heavy);
|
|
5869
|
+
}
|
|
5870
|
+
|
|
5871
|
+
::view-transition-old(image-gallery-image),
|
|
5872
|
+
::view-transition-new(image-gallery-image) {
|
|
5873
|
+
height: 100%;
|
|
5874
|
+
-o-object-fit: cover;
|
|
5875
|
+
object-fit: cover;
|
|
5876
|
+
overflow: clip;
|
|
5877
|
+
}
|
|
5878
|
+
|
|
5879
|
+
/* With the morph, the view transition animates open / close: the dialog's own
|
|
5880
|
+
fade would run on top of it. Same conditions as `canMorph` in ImageGallery.tsx. */
|
|
5881
|
+
@supports (view-transition-name: none) {
|
|
5882
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
5883
|
+
.image-gallery__lightbox.dndev-modal-content[data-state],
|
|
5884
|
+
.dndev-overlay[data-state]:has(+ .image-gallery__lightbox) {
|
|
5885
|
+
animation: none;
|
|
5886
|
+
}
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5889
|
+
|
|
5890
|
+
.image-gallery__lightbox-counter {
|
|
5891
|
+
position: absolute;
|
|
5892
|
+
top: var(--gap-md);
|
|
5893
|
+
inset-inline-start: var(--gap-md);
|
|
5894
|
+
z-index: 3;
|
|
5895
|
+
padding: calc(var(--gap-sm) / 2) var(--gap-sm);
|
|
5896
|
+
border-radius: var(--radius-full);
|
|
5897
|
+
background-color: var(--card);
|
|
5898
|
+
color: var(--foreground);
|
|
5899
|
+
font-size: var(--font-size-sm);
|
|
5900
|
+
font-variant-numeric: tabular-nums;
|
|
5633
5901
|
}
|
|
5634
5902
|
|
|
5635
5903
|
.image-gallery__lightbox-nav {
|
|
@@ -5637,6 +5905,12 @@ em {
|
|
|
5637
5905
|
z-index: 3;
|
|
5638
5906
|
}
|
|
5639
5907
|
|
|
5908
|
+
/* Touch: swipe pages, so arrows are noise */
|
|
5909
|
+
@media (pointer: coarse) {
|
|
5910
|
+
.image-gallery__lightbox-nav {
|
|
5911
|
+
display: none;
|
|
5912
|
+
}
|
|
5913
|
+
}
|
|
5640
5914
|
/* packages/components/src/atomic/Input/Input.css */
|
|
5641
5915
|
|
|
5642
5916
|
/* Hide number input spinners - cleaner UI for price/range inputs */
|
|
@@ -8201,6 +8475,11 @@ input[type='number'] {
|
|
|
8201
8475
|
will-change: transform;
|
|
8202
8476
|
}
|
|
8203
8477
|
|
|
8478
|
+
/* Primary while on: thumb in the primary foreground (as Checkbox), readable on the track */
|
|
8479
|
+
.dndev-switch[data-variant='primary'][data-state='checked'] .dndev-switch-thumb {
|
|
8480
|
+
background-color: var(--primary-foreground);
|
|
8481
|
+
}
|
|
8482
|
+
|
|
8204
8483
|
.dndev-switch[data-state='checked'] .dndev-switch-thumb {
|
|
8205
8484
|
transform: translateX(calc(2.75rem - 1.25rem - 0.125rem));
|
|
8206
8485
|
}
|
|
@@ -8256,6 +8535,10 @@ input[type='number'] {
|
|
|
8256
8535
|
font-weight: var(--font-weight-normal);
|
|
8257
8536
|
}
|
|
8258
8537
|
|
|
8538
|
+
/* Switch with a label after it: the switch keeps its size, the label wraps */
|
|
8539
|
+
.dndev-switch-field > .dndev-switch {
|
|
8540
|
+
flex-shrink: 0;
|
|
8541
|
+
}
|
|
8259
8542
|
/* packages/components/src/atomic/Table/Table.css */
|
|
8260
8543
|
|
|
8261
8544
|
.dndev-table-wrapper {
|
|
@@ -8490,6 +8773,84 @@ input[type='number'] {
|
|
|
8490
8773
|
opacity: var(--opacity-muted);
|
|
8491
8774
|
}
|
|
8492
8775
|
}
|
|
8776
|
+
|
|
8777
|
+
/* Editable DataTable --------------------------------------------------- */
|
|
8778
|
+
|
|
8779
|
+
/* Scope for editor lookup (keyboard navigation); adds no box. */
|
|
8780
|
+
.dndev-table-edit-scope {
|
|
8781
|
+
display: contents;
|
|
8782
|
+
}
|
|
8783
|
+
|
|
8784
|
+
.dndev-table-bulk-bar {
|
|
8785
|
+
padding: var(--gap-xs) var(--gap-sm);
|
|
8786
|
+
border: 1px solid var(--border);
|
|
8787
|
+
background-color: var(--muted);
|
|
8788
|
+
}
|
|
8789
|
+
|
|
8790
|
+
/* Cell editor: fills the cell, reads as text until focused. */
|
|
8791
|
+
.dndev-table-cell-editor {
|
|
8792
|
+
width: 100%;
|
|
8793
|
+
min-width: 6rem;
|
|
8794
|
+
font: inherit;
|
|
8795
|
+
color: inherit;
|
|
8796
|
+
background-color: transparent;
|
|
8797
|
+
border: 1px solid transparent;
|
|
8798
|
+
border-radius: var(--radius-sm);
|
|
8799
|
+
padding: var(--gap-xs);
|
|
8800
|
+
}
|
|
8801
|
+
|
|
8802
|
+
.dndev-table-cell-editor:hover {
|
|
8803
|
+
border-color: var(--border);
|
|
8804
|
+
}
|
|
8805
|
+
|
|
8806
|
+
.dndev-table-cell-editor:focus-visible,
|
|
8807
|
+
.dndev-table-cell-editor:focus {
|
|
8808
|
+
outline: 2px solid var(--ring);
|
|
8809
|
+
outline-offset: -1px;
|
|
8810
|
+
background-color: var(--background);
|
|
8811
|
+
}
|
|
8812
|
+
|
|
8813
|
+
.dndev-table-bulk-bar .dndev-table-cell-editor {
|
|
8814
|
+
width: auto;
|
|
8815
|
+
border-color: var(--border);
|
|
8816
|
+
background-color: var(--background);
|
|
8817
|
+
}
|
|
8818
|
+
|
|
8819
|
+
.dndev-table-cell[data-editable='true'] {
|
|
8820
|
+
padding-block: 0;
|
|
8821
|
+
}
|
|
8822
|
+
|
|
8823
|
+
/* Changed, not saved yet */
|
|
8824
|
+
.dndev-table-cell[data-dirty='true'] {
|
|
8825
|
+
background-color: color-mix(in oklab, var(--primary) 12%, transparent);
|
|
8826
|
+
}
|
|
8827
|
+
|
|
8828
|
+
/* Value that does not parse: the save will reject it */
|
|
8829
|
+
.dndev-table-cell[data-invalid='true'] .dndev-table-cell-editor {
|
|
8830
|
+
border-color: var(--destructive);
|
|
8831
|
+
}
|
|
8832
|
+
|
|
8833
|
+
/* Open cell: icon link to the row's record (touch-sized hit area) */
|
|
8834
|
+
.dndev-table-open-link {
|
|
8835
|
+
display: inline-flex;
|
|
8836
|
+
align-items: center;
|
|
8837
|
+
justify-content: center;
|
|
8838
|
+
min-width: var(--touch-target);
|
|
8839
|
+
min-height: var(--touch-target);
|
|
8840
|
+
color: var(--muted-foreground);
|
|
8841
|
+
border-radius: var(--radius-sm);
|
|
8842
|
+
}
|
|
8843
|
+
|
|
8844
|
+
.dndev-table-open-link:hover {
|
|
8845
|
+
color: var(--foreground);
|
|
8846
|
+
background-color: var(--muted);
|
|
8847
|
+
}
|
|
8848
|
+
|
|
8849
|
+
.dndev-table-open-link:focus-visible {
|
|
8850
|
+
outline: 2px solid var(--ring);
|
|
8851
|
+
outline-offset: -1px;
|
|
8852
|
+
}
|
|
8853
|
+
|
|
8493
8854
|
/* packages/components/src/atomic/Tabs/Tabs.css */
|
|
8494
8855
|
|
|
8495
8856
|
/* Tabs list: use flexbox for natural wrapping, not grid */
|
|
@@ -8509,100 +8870,51 @@ input[type='number'] {
|
|
|
8509
8870
|
word-break: break-word;
|
|
8510
8871
|
border: var(--border-hairline) solid var(--line-2); /* Show clickable area */
|
|
8511
8872
|
|
|
8512
|
-
/*
|
|
8513
|
-
|
|
8514
|
-
|
|
8873
|
+
/*
|
|
8874
|
+
* Inactive = neutral surface, active = filled with the variant colour, so the
|
|
8875
|
+
* selected tab is the one that stands out (the panel sits below with a gap, it
|
|
8876
|
+
* is not a folder tab joined to its content). --card not --background: the tab
|
|
8877
|
+
* surface must be opaque (--background can be transparent in some themes).
|
|
8878
|
+
*/
|
|
8879
|
+
background-color: var(--card);
|
|
8880
|
+
color: var(--muted-foreground);
|
|
8881
|
+
--tab-active-bg: var(--primary);
|
|
8882
|
+
--tab-active-fg: var(--primary-foreground);
|
|
8515
8883
|
}
|
|
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);
|
|
8884
|
+
.dndev-interactive[data-role='tab-trigger']:hover:not([data-state='active']):not(:disabled) {
|
|
8519
8885
|
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
8886
|
}
|
|
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
8887
|
.dndev-interactive[data-role='tab-trigger'][data-variant='secondary'] {
|
|
8537
|
-
|
|
8538
|
-
|
|
8888
|
+
--tab-active-bg: var(--secondary);
|
|
8889
|
+
--tab-active-fg: var(--secondary-foreground);
|
|
8539
8890
|
}
|
|
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
8891
|
.dndev-interactive[data-role='tab-trigger'][data-variant='accent'] {
|
|
8549
|
-
|
|
8550
|
-
|
|
8892
|
+
--tab-active-bg: var(--accent);
|
|
8893
|
+
--tab-active-fg: var(--accent-foreground);
|
|
8551
8894
|
}
|
|
8552
|
-
|
|
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) */
|
|
8895
|
+
/* Muted: the muted fill would not stand out as the selection, so primary */
|
|
8560
8896
|
.dndev-interactive[data-role='tab-trigger'][data-variant='muted'] {
|
|
8561
|
-
|
|
8562
|
-
|
|
8897
|
+
--tab-active-bg: var(--primary);
|
|
8898
|
+
--tab-active-fg: var(--primary-foreground);
|
|
8563
8899
|
}
|
|
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
8900
|
.dndev-interactive[data-role='tab-trigger'][data-variant='warning'] {
|
|
8572
|
-
|
|
8573
|
-
|
|
8901
|
+
--tab-active-bg: var(--warning);
|
|
8902
|
+
--tab-active-fg: var(--warning-foreground);
|
|
8574
8903
|
}
|
|
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
8904
|
.dndev-interactive[data-role='tab-trigger'][data-variant='success'] {
|
|
8584
|
-
|
|
8585
|
-
|
|
8905
|
+
--tab-active-bg: var(--success);
|
|
8906
|
+
--tab-active-fg: var(--success-foreground);
|
|
8586
8907
|
}
|
|
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
8908
|
.dndev-interactive[data-role='tab-trigger'][data-variant='destructive'] {
|
|
8596
|
-
|
|
8597
|
-
|
|
8909
|
+
--tab-active-bg: var(--destructive);
|
|
8910
|
+
--tab-active-fg: var(--destructive-foreground);
|
|
8911
|
+
}
|
|
8912
|
+
.dndev-interactive[data-role='tab-trigger'][data-state='active'] {
|
|
8913
|
+
background-color: var(--tab-active-bg);
|
|
8914
|
+
color: var(--tab-active-fg);
|
|
8915
|
+
border-color: var(--tab-active-bg);
|
|
8916
|
+
box-shadow: var(--shadow-sm);
|
|
8598
8917
|
}
|
|
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
8918
|
|
|
8607
8919
|
.dndev-tabs-content {
|
|
8608
8920
|
margin-top: var(--gap-md);
|
|
@@ -11684,9 +11996,17 @@ h4[data-variant='code'] {
|
|
|
11684
11996
|
/* ===========================
|
|
11685
11997
|
DEFAULT VALUES (Landing Preset)
|
|
11686
11998
|
All presets inherit these - only override what's different
|
|
11999
|
+
|
|
12000
|
+
Layout tokens are declared on <html>, never on .dndev-layout: every element of
|
|
12001
|
+
the app sits under the wrapper, so a declaration there would shadow the app's
|
|
12002
|
+
:root overrides (themes.css). Presets read the wrapper's data-layout (in the
|
|
12003
|
+
server HTML) through :has, so they resolve on the first paint. All token rules
|
|
12004
|
+
carry zero specificity (:where): an app :root override wins whatever the
|
|
12005
|
+
stylesheet order. Preset display rules (hide header, sidebar…) stay scoped to
|
|
12006
|
+
[data-layout], which matches the wrapper.
|
|
11687
12007
|
=========================== */
|
|
11688
12008
|
|
|
11689
|
-
:root {
|
|
12009
|
+
:where(:root) {
|
|
11690
12010
|
/* Layout structure dimensions */
|
|
11691
12011
|
/* Height values include borders (box-sizing: border-box) */
|
|
11692
12012
|
/* Content heights are multiples of 12px, then add 2px border */
|
|
@@ -11888,9 +12208,15 @@ main[role='main'][data-routing-animation='none'] {
|
|
|
11888
12208
|
}
|
|
11889
12209
|
|
|
11890
12210
|
/* Header content width adjustments for sidebar layouts */
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
12211
|
+
:where(
|
|
12212
|
+
:root:has(
|
|
12213
|
+
.dndev-layout:is(
|
|
12214
|
+
[data-layout='moolti'],
|
|
12215
|
+
[data-layout='docs'],
|
|
12216
|
+
[data-layout='blog']
|
|
12217
|
+
)
|
|
12218
|
+
)
|
|
12219
|
+
) {
|
|
11894
12220
|
--header-content-width: calc(100% - var(--sidebar-width));
|
|
11895
12221
|
}
|
|
11896
12222
|
|
|
@@ -12097,7 +12423,7 @@ aside[role='navigation'].sidebar {
|
|
|
12097
12423
|
display: none;
|
|
12098
12424
|
}
|
|
12099
12425
|
/* Moolti: Sidebar spans full height (no header/footer on desktop) */
|
|
12100
|
-
[data-layout='moolti']:root aside.sidebar[role='navigation'] {
|
|
12426
|
+
[data-layout='moolti']:root aside.sidebar[role='navigation'],.dndev-layout[data-layout='moolti'] aside.sidebar[role='navigation'] {
|
|
12101
12427
|
grid-row: 1 / -1;
|
|
12102
12428
|
}
|
|
12103
12429
|
|
|
@@ -12464,14 +12790,14 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12464
12790
|
* Perfect for: Admin panels, dashboards, management interfaces
|
|
12465
12791
|
* Overrides: Adds sidebar (240px), constrains width (1480px), tighter spacing
|
|
12466
12792
|
*/
|
|
12467
|
-
[data-layout='admin'] {
|
|
12793
|
+
:where(:root:has(.dndev-layout[data-layout='admin'])) {
|
|
12468
12794
|
/* Desktop/Wide (>=1024px) - only overrides */
|
|
12469
12795
|
--sidebar-width: var(--custom-sidebar-width, 240px);
|
|
12470
12796
|
|
|
12471
12797
|
/* Admin: Mobile/Tablet (<1024px) - only overrides */
|
|
12472
12798
|
}
|
|
12473
12799
|
@media (width <=1023px) {
|
|
12474
|
-
[data-layout='admin'] {
|
|
12800
|
+
:where(:root:has(.dndev-layout[data-layout='admin'])) {
|
|
12475
12801
|
--sidebar-width: 0px;
|
|
12476
12802
|
/* Override: hide sidebar on mobile */
|
|
12477
12803
|
}
|
|
@@ -12482,48 +12808,53 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12482
12808
|
* Perfect for: SaaS applications, productivity tools, focused workflows
|
|
12483
12809
|
* Overrides: No header/footer (sidebar only), sidebar (256px), balanced spacing
|
|
12484
12810
|
*/
|
|
12485
|
-
[data-layout='moolti'] {
|
|
12811
|
+
:where(:root:has(.dndev-layout[data-layout='moolti'])) {
|
|
12486
12812
|
/* Desktop/Wide (>=1024px) - only overrides */
|
|
12487
12813
|
--header-height: 0px;
|
|
12488
12814
|
--sidebar-width: var(--custom-sidebar-width, 256px);
|
|
12489
12815
|
--footer-height: 0px;
|
|
12816
|
+
|
|
12817
|
+
/* Moolti: Mobile/Tablet (<1024px) - only overrides */
|
|
12818
|
+
}
|
|
12819
|
+
@media (width <=1023px) {
|
|
12820
|
+
:where(:root:has(.dndev-layout[data-layout='moolti'])) {
|
|
12821
|
+
--header-height: 62px;
|
|
12822
|
+
--sidebar-width: 0px;
|
|
12490
12823
|
}
|
|
12824
|
+
}
|
|
12825
|
+
|
|
12491
12826
|
[data-layout='moolti'] header[role='banner'] {
|
|
12492
12827
|
display: none;
|
|
12493
12828
|
}
|
|
12829
|
+
|
|
12494
12830
|
[data-layout='moolti'] footer[role='contentinfo'] {
|
|
12495
12831
|
display: none;
|
|
12496
12832
|
}
|
|
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
12833
|
|
|
12505
12834
|
/**
|
|
12506
12835
|
* DOCS PRESET
|
|
12507
12836
|
* Perfect for: Documentation sites, knowledge bases, content platforms
|
|
12508
12837
|
* Overrides: No header, sidebar (300px), comfortable reading spacing
|
|
12509
12838
|
*/
|
|
12510
|
-
[data-layout='docs'] {
|
|
12839
|
+
:where(:root:has(.dndev-layout[data-layout='docs'])) {
|
|
12511
12840
|
/* Desktop/Wide (>=1024px) - only overrides */
|
|
12512
12841
|
--header-height: 0px;
|
|
12513
12842
|
/* Override: no header - maximizes reading space */
|
|
12514
12843
|
--sidebar-width: var(--custom-sidebar-width, 300px);
|
|
12844
|
+
|
|
12845
|
+
/* Docs: Mobile/Tablet (<1024px) - only overrides */
|
|
12515
12846
|
}
|
|
12516
|
-
[data-layout='docs'] header[role='banner'] {
|
|
12517
|
-
display: none;
|
|
12518
|
-
}
|
|
12519
|
-
/* Docs: Mobile/Tablet (<1024px) - only overrides */
|
|
12520
12847
|
@media (width <=1023px) {
|
|
12521
|
-
[data-layout='docs'] {
|
|
12848
|
+
:where(:root:has(.dndev-layout[data-layout='docs'])) {
|
|
12522
12849
|
--sidebar-width: 0px;
|
|
12523
12850
|
/* Override: hide sidebar on mobile */
|
|
12524
12851
|
}
|
|
12525
12852
|
}
|
|
12526
12853
|
|
|
12854
|
+
[data-layout='docs'] header[role='banner'] {
|
|
12855
|
+
display: none;
|
|
12856
|
+
}
|
|
12857
|
+
|
|
12527
12858
|
/**
|
|
12528
12859
|
* LANDING PRESET (Default)
|
|
12529
12860
|
* Perfect for: Marketing sites, landing pages, public content
|
|
@@ -12535,17 +12866,19 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12535
12866
|
* Perfect for: Blogs, news sites, content management
|
|
12536
12867
|
* Overrides: Sidebar (280px), constrains width (1480px), content-focused spacing
|
|
12537
12868
|
*/
|
|
12538
|
-
[data-layout='blog'] {
|
|
12869
|
+
:where(:root:has(.dndev-layout[data-layout='blog'])) {
|
|
12539
12870
|
--sidebar-width: var(--custom-sidebar-width, 280px);
|
|
12540
12871
|
|
|
12541
12872
|
/* Blog: Mobile/Tablet (<1024px) - only overrides */
|
|
12542
12873
|
}
|
|
12543
12874
|
@media (width <=1023px) {
|
|
12544
|
-
[data-layout='blog'] {
|
|
12875
|
+
:where(:root:has(.dndev-layout[data-layout='blog'])) {
|
|
12545
12876
|
--header-height: 0px;
|
|
12546
12877
|
--sidebar-width: 0px;
|
|
12547
12878
|
}
|
|
12879
|
+
}
|
|
12548
12880
|
|
|
12881
|
+
@media (width <=1023px) {
|
|
12549
12882
|
[data-layout='blog'] header[role='banner'] {
|
|
12550
12883
|
display: none;
|
|
12551
12884
|
}
|
|
@@ -12556,17 +12889,20 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12556
12889
|
* Perfect for: Full-screen apps, embedded widgets, clean content
|
|
12557
12890
|
* Overrides: No header/footer/sidebar, minimal spacing
|
|
12558
12891
|
*/
|
|
12559
|
-
[data-layout='plain'] {
|
|
12892
|
+
:where(:root:has(.dndev-layout[data-layout='plain'])) {
|
|
12560
12893
|
--header-height: 0px;
|
|
12561
12894
|
--sidebar-width: 0px;
|
|
12562
12895
|
--footer-height: 0px;
|
|
12563
12896
|
}
|
|
12897
|
+
|
|
12564
12898
|
[data-layout='plain'] header[role='banner'] {
|
|
12565
12899
|
display: none;
|
|
12566
12900
|
}
|
|
12901
|
+
|
|
12567
12902
|
[data-layout='plain'] aside.sidebar[role='navigation'] {
|
|
12568
12903
|
display: none;
|
|
12569
12904
|
}
|
|
12905
|
+
|
|
12570
12906
|
[data-layout='plain'] footer[role='contentinfo'] {
|
|
12571
12907
|
display: none;
|
|
12572
12908
|
}
|
|
@@ -12578,16 +12914,18 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12578
12914
|
* Perfect for: Mobile gaming apps, full-screen experiences, touch interfaces
|
|
12579
12915
|
* Overrides: Minimal spacing for maximum screen real estate
|
|
12580
12916
|
*/
|
|
12581
|
-
[data-layout='game'] {
|
|
12917
|
+
:where(:root:has(.dndev-layout[data-layout='game'])) {
|
|
12582
12918
|
--header-height: 92px;
|
|
12583
12919
|
|
|
12584
12920
|
/* Game: Mobile/Tablet (<1024px) - only overrides */
|
|
12585
12921
|
}
|
|
12586
12922
|
@media (width <=1023px) {
|
|
12587
|
-
[data-layout='game'] {
|
|
12923
|
+
:where(:root:has(.dndev-layout[data-layout='game'])) {
|
|
12588
12924
|
--footer-height: 0px;
|
|
12589
12925
|
}
|
|
12926
|
+
}
|
|
12590
12927
|
|
|
12928
|
+
@media (width <=1023px) {
|
|
12591
12929
|
[data-layout='game'] footer[role='contentinfo'] {
|
|
12592
12930
|
display: none;
|
|
12593
12931
|
}
|