@donotdev/ui 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChildRowsPicker-63M4EQUQ.js +1 -0
- package/dist/ChildRowsPicker-ISP365ON.js +1 -0
- package/dist/ChildRowsPicker-PQFE6NCR.js +1 -0
- package/dist/ChildRowsPicker-XXFFSMWY.js +1 -0
- package/dist/{GoToDialog-CICRYHHG.js → GoToDialog-KSBGOIWO.js} +1 -1
- package/dist/{GoToDialog-YGBON6FR.js → GoToDialog-XBK5EZF4.js} +1 -1
- package/dist/chunk-3CIZFGST.js +1 -0
- package/dist/chunk-LHMKU342.js +1 -0
- package/dist/chunk-MS7ZIW5Z.js +1 -0
- package/dist/chunk-P2DHZWPY.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 +18 -12
- 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 +4 -3
- 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/ChildRowsPicker.d.ts +21 -0
- package/dist/crud/components/ChildRowsPicker.d.ts.map +1 -0
- package/dist/crud/components/ChildRowsPicker.js +68 -0
- 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 +10 -26
- package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityDisplayRenderer.js +6 -3
- package/dist/crud/components/EntityFormRenderer.d.ts +4 -2
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +160 -56
- package/dist/crud/components/EntityList.d.ts +6 -4
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +437 -92
- package/dist/crud/components/EntityRecommendations.js +1 -1
- package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
- package/dist/crud/components/EntityWorkflow.js +6 -4
- 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 +43 -0
- package/dist/crud/components/cellEditFor.d.ts.map +1 -0
- package/dist/crud/components/cellEditFor.js +74 -0
- package/dist/crud/components/entityParent.d.ts +33 -0
- package/dist/crud/components/entityParent.d.ts.map +1 -0
- package/dist/crud/components/entityParent.js +76 -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 +43 -0
- package/dist/crud/crudImports.d.ts +12 -1
- package/dist/crud/crudImports.d.ts.map +1 -1
- package/dist/crud/crudImports.js +11 -0
- package/dist/dndev-next.css +782 -193
- package/dist/dndev.css +784 -193
- 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/initializers/NextJsStoresInitializer.d.ts +3 -0
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/NextJsStoresInitializer.js +8 -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 +42 -38
- package/dist/internal/layout/components/FontPreloadLinks.d.ts +7 -4
- package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +1 -1
- package/dist/internal/layout/components/FontPreloadLinks.js +12 -25
- package/dist/internal/layout/components/footer/FooterCopyright.d.ts +2 -0
- package/dist/internal/layout/components/footer/FooterCopyright.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/FooterCopyright.js +4 -0
- package/dist/internal/layout/components/footer/useLegalLinks.d.ts +2 -1
- package/dist/internal/layout/components/footer/useLegalLinks.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/useLegalLinks.js +4 -3
- 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 +0 -8
- package/dist/internal/providers/UIProviders.d.ts.map +1 -1
- package/dist/internal/providers/UIProviders.js +45 -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 -7
- package/dist/routing/404.d.ts +8 -1
- package/dist/routing/404.d.ts.map +1 -1
- package/dist/routing/404.js +9 -5
- 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 +3 -1
- package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.js +18 -10
- 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/parentRoute.d.ts +27 -0
- package/dist/routing/parentRoute.d.ts.map +1 -0
- package/dist/routing/parentRoute.js +43 -0
- package/dist/routing/useNavigation.d.ts.map +1 -1
- package/dist/routing/useNavigation.js +8 -27
- package/dist/routing/useRouteDiscovery.d.ts +2 -2
- package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
- package/dist/routing/useRouteDiscovery.js +6 -5
- package/dist/styles/index.css +781 -192
- 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/GOTCHAS.md +2 -0
- package/guidelines/LAYOUTS.md +4 -0
- package/guidelines/PAGES.md +30 -3
- package/guidelines/ROUTING.md +29 -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/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/styles/index.css
CHANGED
|
@@ -59,9 +59,7 @@
|
|
|
59
59
|
* applies regardless of density tier.
|
|
60
60
|
*/
|
|
61
61
|
--gap-none: 0;
|
|
62
|
-
--gap-sm
|
|
63
|
-
--gap-md: min(1rem, 2vw); /* 16px or 2vw */
|
|
64
|
-
--gap-lg: min(2rem, 2vw); /* 32px or 2vw */
|
|
62
|
+
/* --gap-sm / --gap-md / --gap-lg: see DENSITY SYSTEM below */
|
|
65
63
|
|
|
66
64
|
/* ===========================
|
|
67
65
|
DIALOG SIZE VARIANTS
|
|
@@ -188,14 +186,7 @@
|
|
|
188
186
|
/* Typography Scale - Musical Scale System (STANDARD density defaults - Major Third 1.25×) */
|
|
189
187
|
--font-size-xs: 0.75rem; /* 12px - captions, shortcuts, meta */
|
|
190
188
|
--font-size-sm: 0.875rem; /* 14px - small text, captions */
|
|
191
|
-
--font-size-base
|
|
192
|
-
--font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
|
|
193
|
-
--font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
|
|
194
|
-
--font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
|
|
195
|
-
--font-size-3xl: 2.441rem; /* 39px - base × 1.25⁴ - hero text */
|
|
196
|
-
|
|
197
|
-
/* Line Height - Musical Scale System (matches font scale ratio) */
|
|
198
|
-
--line-height: 1.25; /* Major Third - Standard density default */
|
|
189
|
+
/* --font-size-base…3xl and --line-height: see DENSITY SYSTEM below */
|
|
199
190
|
|
|
200
191
|
/* Font Weight - Semantic weights */
|
|
201
192
|
--font-weight-normal: 400;
|
|
@@ -327,12 +318,36 @@
|
|
|
327
318
|
|
|
328
319
|
/* ===========================
|
|
329
320
|
DENSITY SYSTEM
|
|
330
|
-
Semantic spacing and typography presets based on context
|
|
331
|
-
|
|
321
|
+
Semantic spacing and typography presets based on context.
|
|
322
|
+
|
|
323
|
+
App density: the layout wrapper (.dndev-layout) carries data-density in the
|
|
324
|
+
server HTML, and the tokens are declared on <html> from it (:has), so they
|
|
325
|
+
resolve on the first paint, before and without hydration.
|
|
326
|
+
Nested density: PageContainer / List set data-density on their own element.
|
|
327
|
+
|
|
328
|
+
The tokens are never declared on .dndev-layout itself: every element of the
|
|
329
|
+
app sits under it, so a declaration there would shadow the app's :root
|
|
330
|
+
overrides (themes.css). The <html> rules carry zero specificity (:where), so
|
|
331
|
+
an app :root override wins whatever the stylesheet order.
|
|
332
332
|
=========================== */
|
|
333
333
|
|
|
334
|
+
/* Base values (standard density), used until a density applies */
|
|
335
|
+
:where(:root) {
|
|
336
|
+
--gap-sm: min(0.5rem, 2vw); /* 8px or 2vw, whichever is smaller */
|
|
337
|
+
--gap-md: min(1rem, 2vw); /* 16px or 2vw */
|
|
338
|
+
--gap-lg: min(2rem, 2vw); /* 32px or 2vw */
|
|
339
|
+
--font-size-base: 1rem; /* 16px - body text, DEFAULT */
|
|
340
|
+
--font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
|
|
341
|
+
--font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
|
|
342
|
+
--font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
|
|
343
|
+
--font-size-3xl: 2.441rem; /* 39px - base × 1.25⁴ - hero text */
|
|
344
|
+
/* Line Height - Musical Scale System (matches font scale ratio) */
|
|
345
|
+
--line-height: 1.25; /* Major Third - Standard density default */
|
|
346
|
+
}
|
|
347
|
+
|
|
334
348
|
/* Compact (Admin/Data) - Dense, information-dense layouts - Minor Third (1.2×) */
|
|
335
|
-
[data-density='compact']
|
|
349
|
+
:where(:root:has(.dndev-layout[data-density='compact'])),
|
|
350
|
+
[data-density='compact']:where(:not(.dndev-layout)) {
|
|
336
351
|
/* Base sizes: Fluid responsiveness for all text, zoom-safe */
|
|
337
352
|
--font-size-base: clamp(
|
|
338
353
|
0.875rem,
|
|
@@ -372,7 +387,8 @@
|
|
|
372
387
|
}
|
|
373
388
|
|
|
374
389
|
/* Standard (Docs/SaaS) - DEFAULT, balanced for readability */
|
|
375
|
-
[data-density='standard']
|
|
390
|
+
:where(:root:has(.dndev-layout[data-density='standard'])),
|
|
391
|
+
[data-density='standard']:where(:not(.dndev-layout)) {
|
|
376
392
|
/* Base sizes: Fluid responsiveness for all text, zoom-safe */
|
|
377
393
|
--font-size-base: clamp(
|
|
378
394
|
1rem,
|
|
@@ -412,7 +428,8 @@
|
|
|
412
428
|
}
|
|
413
429
|
|
|
414
430
|
/* Expressive (Marketing) - Perfect Fourth (1.333×) + Fluid typography (2025 best practice) */
|
|
415
|
-
[data-density='expressive']
|
|
431
|
+
:where(:root:has(.dndev-layout[data-density='expressive'])),
|
|
432
|
+
[data-density='expressive']:where(:not(.dndev-layout)) {
|
|
416
433
|
/* Base sizes: Fluid responsiveness for all text, zoom-safe */
|
|
417
434
|
--font-size-base: clamp(1rem, 0.875rem + 0.5vw, 1.125rem); /* 16-18px fluid */
|
|
418
435
|
--font-size-lg: clamp(1.25rem, 1rem + 0.75vw, 1.5rem); /* 20-24px fluid */
|
|
@@ -444,9 +461,9 @@
|
|
|
444
461
|
}
|
|
445
462
|
|
|
446
463
|
/* Form field text: follows density, never below 16px (iOS focus zoom).
|
|
447
|
-
Declared on [data-density] too, so
|
|
448
|
-
:root,
|
|
449
|
-
[data-density] {
|
|
464
|
+
Declared on nested [data-density] too, so they resolve their own base. */
|
|
465
|
+
:where(:root),
|
|
466
|
+
[data-density]:where(:not(.dndev-layout)) {
|
|
450
467
|
--font-size-input: max(16px, var(--font-size-base));
|
|
451
468
|
}
|
|
452
469
|
/* 2. Theme system - color palette definitions */
|
|
@@ -3329,7 +3346,7 @@ em {
|
|
|
3329
3346
|
display: inline-flex;
|
|
3330
3347
|
align-items: center;
|
|
3331
3348
|
justify-content: center;
|
|
3332
|
-
padding: var(--gap-
|
|
3349
|
+
padding: var(--gap-sm) 1px;
|
|
3333
3350
|
border-radius: 2px;
|
|
3334
3351
|
font-variant-numeric: tabular-nums;
|
|
3335
3352
|
caret-color: transparent;
|
|
@@ -3710,6 +3727,50 @@ em {
|
|
|
3710
3727
|
background: var(--card);
|
|
3711
3728
|
}
|
|
3712
3729
|
|
|
3730
|
+
/* href: stretched link. The title is the <a href>; its ::after covers the whole
|
|
3731
|
+
card so the tile is clickable, while controls inside stay above it. The body
|
|
3732
|
+
must not be the containing block, or the hit area would stop at the cover. */
|
|
3733
|
+
.dndev-card[data-has-link='true'] > .dndev-card-body {
|
|
3734
|
+
position: static;
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
.dndev-card-link {
|
|
3738
|
+
color: inherit;
|
|
3739
|
+
text-decoration: none;
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
.dndev-card-link::after {
|
|
3743
|
+
content: '';
|
|
3744
|
+
position: absolute;
|
|
3745
|
+
inset: 0;
|
|
3746
|
+
z-index: 1;
|
|
3747
|
+
border-radius: inherit;
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
.dndev-card-link:focus-visible {
|
|
3751
|
+
outline: none;
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
.dndev-card[data-has-link='true']:has(.dndev-card-link:focus-visible) {
|
|
3755
|
+
outline: 2px solid var(--ring);
|
|
3756
|
+
outline-offset: 2px;
|
|
3757
|
+
}
|
|
3758
|
+
|
|
3759
|
+
.dndev-card[data-has-link='true']
|
|
3760
|
+
:is(
|
|
3761
|
+
a,
|
|
3762
|
+
button,
|
|
3763
|
+
input,
|
|
3764
|
+
select,
|
|
3765
|
+
textarea,
|
|
3766
|
+
label,
|
|
3767
|
+
[role='button'],
|
|
3768
|
+
[tabindex]
|
|
3769
|
+
):not(.dndev-card-link) {
|
|
3770
|
+
position: relative;
|
|
3771
|
+
z-index: 2;
|
|
3772
|
+
}
|
|
3773
|
+
|
|
3713
3774
|
/* Card body children spacing */
|
|
3714
3775
|
.dndev-card-header {
|
|
3715
3776
|
display: flex;
|
|
@@ -3774,7 +3835,8 @@ em {
|
|
|
3774
3835
|
|
|
3775
3836
|
/* Contain: whole image visible on the muted cover background (cut-outs), inset
|
|
3776
3837
|
proportionally so a packshot never touches the frame. */
|
|
3777
|
-
.dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover)
|
|
3838
|
+
.dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover),
|
|
3839
|
+
.dndev-card-cover[data-fit='contain'] > picture > img:not(.dndev-card-cover-hover) {
|
|
3778
3840
|
-o-object-fit: contain;
|
|
3779
3841
|
object-fit: contain;
|
|
3780
3842
|
box-sizing: border-box;
|
|
@@ -3782,7 +3844,9 @@ em {
|
|
|
3782
3844
|
}
|
|
3783
3845
|
|
|
3784
3846
|
/* Hover view: stacked over the cover, crossfades in on hover / keyboard focus. */
|
|
3785
|
-
|
|
3847
|
+
/* An image pair renders <picture><img>: the <img> carries the class either way. */
|
|
3848
|
+
.dndev-card-cover > img.dndev-card-cover-hover,
|
|
3849
|
+
.dndev-card-cover > picture > img.dndev-card-cover-hover {
|
|
3786
3850
|
position: absolute;
|
|
3787
3851
|
inset: 0;
|
|
3788
3852
|
-o-object-fit: cover;
|
|
@@ -3805,7 +3869,8 @@ em {
|
|
|
3805
3869
|
}
|
|
3806
3870
|
|
|
3807
3871
|
@media (prefers-reduced-motion: reduce) {
|
|
3808
|
-
.dndev-card-cover > img.dndev-card-cover-hover
|
|
3872
|
+
.dndev-card-cover > img.dndev-card-cover-hover,
|
|
3873
|
+
.dndev-card-cover > picture > img.dndev-card-cover-hover {
|
|
3809
3874
|
transition: none;
|
|
3810
3875
|
}
|
|
3811
3876
|
}
|
|
@@ -4007,6 +4072,16 @@ em {
|
|
|
4007
4072
|
transition: opacity var(--dur-fast) var(--ease-in-out);
|
|
4008
4073
|
}
|
|
4009
4074
|
|
|
4075
|
+
/* <button> the component renders (showIcon, or non-element trigger): strip UA chrome */
|
|
4076
|
+
.dndev-collapsible-trigger--button {
|
|
4077
|
+
background: none;
|
|
4078
|
+
border: none;
|
|
4079
|
+
padding: 0;
|
|
4080
|
+
font: inherit;
|
|
4081
|
+
color: inherit;
|
|
4082
|
+
text-align: start;
|
|
4083
|
+
}
|
|
4084
|
+
|
|
4010
4085
|
.dndev-collapsible-trigger:hover {
|
|
4011
4086
|
opacity: var(--opacity-strong);
|
|
4012
4087
|
}
|
|
@@ -4170,7 +4245,7 @@ em {
|
|
|
4170
4245
|
height: 100%;
|
|
4171
4246
|
display: flex;
|
|
4172
4247
|
align-items: center;
|
|
4173
|
-
gap:
|
|
4248
|
+
gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token; must match computeTrailingPad() in index.tsx */
|
|
4174
4249
|
z-index: 1;
|
|
4175
4250
|
pointer-events: none; /* pass clicks through to input by default */
|
|
4176
4251
|
}
|
|
@@ -4233,10 +4308,10 @@ em {
|
|
|
4233
4308
|
display: flex;
|
|
4234
4309
|
flex-wrap: wrap;
|
|
4235
4310
|
align-items: center;
|
|
4236
|
-
gap:
|
|
4311
|
+
gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4237
4312
|
border: var(--border-hairline) solid var(--line-2);
|
|
4238
4313
|
border-radius: var(--radius-interactive);
|
|
4239
|
-
padding:
|
|
4314
|
+
padding: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4240
4315
|
padding-inline-end: var(--combobox-pad-end);
|
|
4241
4316
|
min-height: var(--touch-target);
|
|
4242
4317
|
cursor: text;
|
|
@@ -4261,7 +4336,7 @@ em {
|
|
|
4261
4336
|
flex: 1 1 80px;
|
|
4262
4337
|
min-width: 80px;
|
|
4263
4338
|
height: auto;
|
|
4264
|
-
padding: var(--gap-
|
|
4339
|
+
padding: 4px var(--gap-sm); /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4265
4340
|
}
|
|
4266
4341
|
|
|
4267
4342
|
/* ──────────────────────────────────────────────────
|
|
@@ -4308,7 +4383,7 @@ em {
|
|
|
4308
4383
|
.dndev-combobox-option-content {
|
|
4309
4384
|
display: flex;
|
|
4310
4385
|
flex-direction: column;
|
|
4311
|
-
gap: var(--gap-
|
|
4386
|
+
gap: var(--gap-sm);
|
|
4312
4387
|
flex: 1;
|
|
4313
4388
|
}
|
|
4314
4389
|
|
|
@@ -4325,7 +4400,7 @@ em {
|
|
|
4325
4400
|
.dndev-combobox-option-count {
|
|
4326
4401
|
font-size: var(--font-size-xs);
|
|
4327
4402
|
color: var(--muted-foreground);
|
|
4328
|
-
margin-inline-start: var(--gap-
|
|
4403
|
+
margin-inline-start: var(--gap-sm);
|
|
4329
4404
|
flex-shrink: 0;
|
|
4330
4405
|
}
|
|
4331
4406
|
|
|
@@ -5435,6 +5510,17 @@ em {
|
|
|
5435
5510
|
outline: none;
|
|
5436
5511
|
}
|
|
5437
5512
|
|
|
5513
|
+
/* Gallery pictures are always protected (with blockContextMenu + draggable=false):
|
|
5514
|
+
no drag, no iOS long-press "Save image" callout, no selection. */
|
|
5515
|
+
.image-gallery img,
|
|
5516
|
+
.image-gallery__lightbox-stage img {
|
|
5517
|
+
-webkit-touch-callout: none;
|
|
5518
|
+
-webkit-user-drag: none;
|
|
5519
|
+
-webkit-user-select: none;
|
|
5520
|
+
-moz-user-select: none;
|
|
5521
|
+
user-select: none;
|
|
5522
|
+
}
|
|
5523
|
+
|
|
5438
5524
|
.image-gallery:focus-visible {
|
|
5439
5525
|
outline: 2px solid var(--primary);
|
|
5440
5526
|
outline-offset: 2px;
|
|
@@ -5468,13 +5554,57 @@ em {
|
|
|
5468
5554
|
cursor: zoom-in;
|
|
5469
5555
|
}
|
|
5470
5556
|
|
|
5471
|
-
|
|
5557
|
+
/* Swipeable strip (main view and lightbox): native scrolling, one slide per snap point */
|
|
5558
|
+
.image-gallery__strip {
|
|
5559
|
+
/* Offset parent of the slides: a slide's offsetLeft is its scroll offset */
|
|
5560
|
+
position: relative;
|
|
5561
|
+
display: flex;
|
|
5562
|
+
height: 100%;
|
|
5563
|
+
overflow-x: auto;
|
|
5564
|
+
overflow-y: hidden;
|
|
5565
|
+
scroll-snap-type: x mandatory;
|
|
5566
|
+
overscroll-behavior-x: contain;
|
|
5567
|
+
scrollbar-width: none;
|
|
5568
|
+
}
|
|
5569
|
+
|
|
5570
|
+
.image-gallery__strip::-webkit-scrollbar {
|
|
5571
|
+
display: none;
|
|
5572
|
+
}
|
|
5573
|
+
|
|
5574
|
+
/* Arrow / thumbnail / key navigation glides to a neighbour (never a touch swipe) */
|
|
5575
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
5576
|
+
.image-gallery__strip {
|
|
5577
|
+
scroll-behavior: smooth;
|
|
5578
|
+
}
|
|
5579
|
+
}
|
|
5580
|
+
|
|
5581
|
+
.image-gallery__slide {
|
|
5582
|
+
position: relative;
|
|
5583
|
+
flex: 0 0 100%;
|
|
5584
|
+
height: 100%;
|
|
5585
|
+
scroll-snap-align: start;
|
|
5586
|
+
scroll-snap-stop: always;
|
|
5587
|
+
}
|
|
5588
|
+
|
|
5589
|
+
.image-gallery__slide-img {
|
|
5590
|
+
position: absolute;
|
|
5591
|
+
inset: 0;
|
|
5592
|
+
display: block;
|
|
5472
5593
|
width: 100%;
|
|
5473
5594
|
height: 100%;
|
|
5474
5595
|
-o-object-fit: cover;
|
|
5475
5596
|
object-fit: cover;
|
|
5476
|
-
|
|
5477
|
-
|
|
5597
|
+
-webkit-user-select: none;
|
|
5598
|
+
-moz-user-select: none;
|
|
5599
|
+
user-select: none;
|
|
5600
|
+
-webkit-user-drag: none;
|
|
5601
|
+
}
|
|
5602
|
+
|
|
5603
|
+
.image-gallery__slide-img[data-fit='contain'] {
|
|
5604
|
+
-o-object-fit: contain;
|
|
5605
|
+
object-fit: contain;
|
|
5606
|
+
box-sizing: border-box;
|
|
5607
|
+
padding: 6%;
|
|
5478
5608
|
}
|
|
5479
5609
|
|
|
5480
5610
|
/* Navigation arrows */
|
|
@@ -5593,38 +5723,186 @@ em {
|
|
|
5593
5723
|
}
|
|
5594
5724
|
}
|
|
5595
5725
|
|
|
5596
|
-
/* Lightbox
|
|
5726
|
+
/* Lightbox: full-screen dialog, the viewer owns every gesture */
|
|
5597
5727
|
.image-gallery__lightbox.dndev-modal-content {
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5728
|
+
inset: 0;
|
|
5729
|
+
transform: none;
|
|
5730
|
+
width: 100vw;
|
|
5731
|
+
height: 100dvh;
|
|
5732
|
+
max-width: none;
|
|
5733
|
+
max-height: none;
|
|
5734
|
+
display: block;
|
|
5735
|
+
padding: 0;
|
|
5736
|
+
border: none;
|
|
5737
|
+
border-radius: 0;
|
|
5738
|
+
box-shadow: none;
|
|
5739
|
+
background: transparent;
|
|
5740
|
+
/* Fade only: the dialog keyframes translate a centred box */
|
|
5741
|
+
animation-name: overlay-in;
|
|
5601
5742
|
}
|
|
5743
|
+
.image-gallery__lightbox.dndev-modal-content[data-state='closed'] {
|
|
5744
|
+
animation-name: overlay-out;
|
|
5745
|
+
}
|
|
5746
|
+
.image-gallery__lightbox.dndev-modal-content .dndev-modal-close {
|
|
5747
|
+
z-index: 4;
|
|
5748
|
+
opacity: 1;
|
|
5749
|
+
}
|
|
5602
5750
|
|
|
5603
5751
|
.image-gallery__lightbox .dndev-modal-body {
|
|
5752
|
+
position: absolute;
|
|
5753
|
+
inset: 0;
|
|
5604
5754
|
padding: 0;
|
|
5605
|
-
display: flex;
|
|
5606
|
-
align-items: center;
|
|
5607
|
-
justify-content: center;
|
|
5608
5755
|
overflow: hidden;
|
|
5609
|
-
min-height: 40dvh;
|
|
5610
5756
|
}
|
|
5611
5757
|
|
|
5612
|
-
.image-gallery__lightbox-
|
|
5613
|
-
position:
|
|
5758
|
+
.image-gallery__lightbox-stage {
|
|
5759
|
+
position: absolute;
|
|
5760
|
+
inset: 0;
|
|
5761
|
+
overflow: hidden;
|
|
5762
|
+
outline: none;
|
|
5763
|
+
-webkit-user-select: none;
|
|
5764
|
+
-moz-user-select: none;
|
|
5765
|
+
user-select: none;
|
|
5766
|
+
}
|
|
5767
|
+
|
|
5768
|
+
/* Opaque layer behind the slides. The close drag fades it with opacity (composited);
|
|
5769
|
+
never animate its colour, that repaints the whole screen every frame. */
|
|
5770
|
+
.image-gallery__lightbox-backdrop {
|
|
5771
|
+
position: absolute;
|
|
5772
|
+
inset: 0;
|
|
5773
|
+
background-color: var(--background);
|
|
5774
|
+
will-change: opacity;
|
|
5775
|
+
}
|
|
5776
|
+
|
|
5777
|
+
/* pan-x: the browser pages; vertical drags and pinches reach the gesture code */
|
|
5778
|
+
.image-gallery__lightbox-strip {
|
|
5779
|
+
touch-action: pan-x;
|
|
5780
|
+
}
|
|
5781
|
+
|
|
5782
|
+
/* Zoomed: no paging, a drag pans the image */
|
|
5783
|
+
.image-gallery__lightbox-stage[data-zoomed] .image-gallery__lightbox-strip {
|
|
5784
|
+
touch-action: none;
|
|
5785
|
+
}
|
|
5786
|
+
|
|
5787
|
+
.image-gallery__lightbox-slide {
|
|
5614
5788
|
display: flex;
|
|
5615
5789
|
align-items: center;
|
|
5616
5790
|
justify-content: center;
|
|
5791
|
+
box-sizing: border-box;
|
|
5792
|
+
padding: var(--gap-md);
|
|
5793
|
+
/* The frame sizes itself against the slide's content box (cq units) */
|
|
5794
|
+
container-type: size;
|
|
5795
|
+
}
|
|
5796
|
+
|
|
5797
|
+
/* Box of one image. Until its aspect ratio is known it fills the slide (the images are
|
|
5798
|
+
`contain`, so they look the same); then it is exactly the fitted image: the zoom, pan,
|
|
5799
|
+
hit-test and open / close morph target. */
|
|
5800
|
+
.image-gallery__lightbox-frame {
|
|
5801
|
+
position: relative;
|
|
5802
|
+
flex: none;
|
|
5617
5803
|
width: 100%;
|
|
5618
|
-
|
|
5804
|
+
height: 100%;
|
|
5805
|
+
cursor: zoom-in;
|
|
5619
5806
|
}
|
|
5620
5807
|
|
|
5621
|
-
.image-gallery__lightbox-
|
|
5622
|
-
|
|
5623
|
-
max-height: 85dvh;
|
|
5624
|
-
width: auto;
|
|
5808
|
+
.image-gallery__lightbox-frame[data-sized] {
|
|
5809
|
+
width: min(100cqw, 100cqh * var(--image-ratio));
|
|
5625
5810
|
height: auto;
|
|
5811
|
+
aspect-ratio: var(--image-ratio);
|
|
5812
|
+
}
|
|
5813
|
+
|
|
5814
|
+
/* Full image over its cached thumbnail: never an empty slide while it downloads */
|
|
5815
|
+
.image-gallery__lightbox-frame > img {
|
|
5816
|
+
position: absolute;
|
|
5817
|
+
inset: 0;
|
|
5818
|
+
display: block;
|
|
5819
|
+
width: 100%;
|
|
5820
|
+
height: 100%;
|
|
5626
5821
|
-o-object-fit: contain;
|
|
5627
5822
|
object-fit: contain;
|
|
5823
|
+
-webkit-user-drag: none;
|
|
5824
|
+
}
|
|
5825
|
+
|
|
5826
|
+
.image-gallery__lightbox-frame[data-loaded] > .image-gallery__lightbox-placeholder {
|
|
5827
|
+
visibility: hidden;
|
|
5828
|
+
}
|
|
5829
|
+
|
|
5830
|
+
/* Own layer only for what a gesture moves: the dragged slide, the zoomed image */
|
|
5831
|
+
.image-gallery__lightbox-stage[data-closing]
|
|
5832
|
+
.image-gallery__lightbox-slide:not([aria-hidden]) {
|
|
5833
|
+
will-change: translate;
|
|
5834
|
+
}
|
|
5835
|
+
|
|
5836
|
+
.image-gallery__lightbox-stage[data-zoomed]
|
|
5837
|
+
.image-gallery__lightbox-slide:not([aria-hidden])
|
|
5838
|
+
> .image-gallery__lightbox-frame {
|
|
5839
|
+
will-change: transform;
|
|
5840
|
+
cursor: grab;
|
|
5841
|
+
}
|
|
5842
|
+
|
|
5843
|
+
.image-gallery__lightbox-stage[data-zoomed]:active
|
|
5844
|
+
.image-gallery__lightbox-frame {
|
|
5845
|
+
cursor: grabbing;
|
|
5846
|
+
}
|
|
5847
|
+
|
|
5848
|
+
/* Settles (snap back, double-tap / click zoom) are transitions, off during a gesture */
|
|
5849
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
5850
|
+
.image-gallery__lightbox-stage[data-settle]
|
|
5851
|
+
:is(
|
|
5852
|
+
.image-gallery__lightbox-backdrop,
|
|
5853
|
+
.image-gallery__lightbox-slide,
|
|
5854
|
+
.image-gallery__lightbox-frame
|
|
5855
|
+
) {
|
|
5856
|
+
transition-property: opacity, translate, transform;
|
|
5857
|
+
transition-duration: var(--dur-normal);
|
|
5858
|
+
transition-timing-function: var(--ease-heavy);
|
|
5859
|
+
}
|
|
5860
|
+
|
|
5861
|
+
/* Pan glide after a fling: a long deceleration. GLIDE_MS in lightboxGestures.ts
|
|
5862
|
+
projects the end point from these two tokens; keep them in step. */
|
|
5863
|
+
.image-gallery__lightbox-stage[data-settle='momentum']
|
|
5864
|
+
.image-gallery__lightbox-frame {
|
|
5865
|
+
transition-duration: var(--dur-slow);
|
|
5866
|
+
}
|
|
5867
|
+
}
|
|
5868
|
+
|
|
5869
|
+
/* Open / close morph: the tapped image grows into the lightbox and shrinks back
|
|
5870
|
+
(same-document view transition, run by the browser on the compositor). */
|
|
5871
|
+
::view-transition-group(image-gallery-image) {
|
|
5872
|
+
animation-duration: var(--dur-normal);
|
|
5873
|
+
animation-timing-function: var(--ease-heavy);
|
|
5874
|
+
}
|
|
5875
|
+
|
|
5876
|
+
::view-transition-old(image-gallery-image),
|
|
5877
|
+
::view-transition-new(image-gallery-image) {
|
|
5878
|
+
height: 100%;
|
|
5879
|
+
-o-object-fit: cover;
|
|
5880
|
+
object-fit: cover;
|
|
5881
|
+
overflow: clip;
|
|
5882
|
+
}
|
|
5883
|
+
|
|
5884
|
+
/* With the morph, the view transition animates open / close: the dialog's own
|
|
5885
|
+
fade would run on top of it. Same conditions as `canMorph` in ImageGallery.tsx. */
|
|
5886
|
+
@supports (view-transition-name: none) {
|
|
5887
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
5888
|
+
.image-gallery__lightbox.dndev-modal-content[data-state],
|
|
5889
|
+
.dndev-overlay[data-state]:has(+ .image-gallery__lightbox) {
|
|
5890
|
+
animation: none;
|
|
5891
|
+
}
|
|
5892
|
+
}
|
|
5893
|
+
}
|
|
5894
|
+
|
|
5895
|
+
.image-gallery__lightbox-counter {
|
|
5896
|
+
position: absolute;
|
|
5897
|
+
top: var(--gap-md);
|
|
5898
|
+
inset-inline-start: var(--gap-md);
|
|
5899
|
+
z-index: 3;
|
|
5900
|
+
padding: calc(var(--gap-sm) / 2) var(--gap-sm);
|
|
5901
|
+
border-radius: var(--radius-full);
|
|
5902
|
+
background-color: var(--card);
|
|
5903
|
+
color: var(--foreground);
|
|
5904
|
+
font-size: var(--font-size-sm);
|
|
5905
|
+
font-variant-numeric: tabular-nums;
|
|
5628
5906
|
}
|
|
5629
5907
|
|
|
5630
5908
|
.image-gallery__lightbox-nav {
|
|
@@ -5632,6 +5910,12 @@ em {
|
|
|
5632
5910
|
z-index: 3;
|
|
5633
5911
|
}
|
|
5634
5912
|
|
|
5913
|
+
/* Touch: swipe pages, so arrows are noise */
|
|
5914
|
+
@media (pointer: coarse) {
|
|
5915
|
+
.image-gallery__lightbox-nav {
|
|
5916
|
+
display: none;
|
|
5917
|
+
}
|
|
5918
|
+
}
|
|
5635
5919
|
/* packages/components/src/atomic/Input/Input.css */
|
|
5636
5920
|
|
|
5637
5921
|
/* Hide number input spinners - cleaner UI for price/range inputs */
|
|
@@ -5899,13 +6183,56 @@ input[type='number'] {
|
|
|
5899
6183
|
cursor: default;
|
|
5900
6184
|
display: inline-flex;
|
|
5901
6185
|
align-items: center;
|
|
5902
|
-
gap: var(--gap-
|
|
6186
|
+
gap: var(--gap-sm);
|
|
5903
6187
|
}
|
|
5904
6188
|
|
|
5905
6189
|
.dndev-floating-fieldset[data-disabled='true'] .dndev-floating-legend {
|
|
5906
6190
|
color: var(--muted-foreground);
|
|
5907
6191
|
}
|
|
5908
6192
|
|
|
6193
|
+
/* Help (i) after the label: the label truncates, the button never does */
|
|
6194
|
+
.dndev-floating-legend[data-info] {
|
|
6195
|
+
display: flex;
|
|
6196
|
+
align-items: center;
|
|
6197
|
+
gap: calc(var(--gap-sm) / 2);
|
|
6198
|
+
}
|
|
6199
|
+
|
|
6200
|
+
.dndev-floating-legend[data-info] > label {
|
|
6201
|
+
display: block;
|
|
6202
|
+
min-width: 0;
|
|
6203
|
+
overflow: hidden;
|
|
6204
|
+
text-overflow: ellipsis;
|
|
6205
|
+
}
|
|
6206
|
+
|
|
6207
|
+
.dndev-field-info {
|
|
6208
|
+
display: inline-flex;
|
|
6209
|
+
flex-shrink: 0;
|
|
6210
|
+
align-items: center;
|
|
6211
|
+
justify-content: center;
|
|
6212
|
+
/* Larger hit area than the icon, without growing the legend */
|
|
6213
|
+
padding: calc(var(--gap-sm) / 2);
|
|
6214
|
+
margin: calc(var(--gap-sm) / -2);
|
|
6215
|
+
border: none;
|
|
6216
|
+
border-radius: var(--radius-full);
|
|
6217
|
+
background: none;
|
|
6218
|
+
color: var(--muted-foreground);
|
|
6219
|
+
cursor: help;
|
|
6220
|
+
}
|
|
6221
|
+
|
|
6222
|
+
.dndev-field-info:hover,
|
|
6223
|
+
.dndev-field-info:focus-visible {
|
|
6224
|
+
color: var(--foreground);
|
|
6225
|
+
}
|
|
6226
|
+
|
|
6227
|
+
.dndev-field-info:focus-visible {
|
|
6228
|
+
outline: var(--border-hairline) solid var(--ring);
|
|
6229
|
+
}
|
|
6230
|
+
|
|
6231
|
+
.dndev-field-info svg {
|
|
6232
|
+
width: 1.25em;
|
|
6233
|
+
height: 1.25em;
|
|
6234
|
+
}
|
|
6235
|
+
|
|
5909
6236
|
/* Disable truncation when explicitly set to false */
|
|
5910
6237
|
.dndev-floating-legend[data-truncate='false'] {
|
|
5911
6238
|
max-width: none;
|
|
@@ -6225,7 +6552,7 @@ input[type='number'] {
|
|
|
6225
6552
|
/* packages/components/src/atomic/PasswordInput/PasswordInput.css */
|
|
6226
6553
|
|
|
6227
6554
|
.dndev-password-input-with-toggle {
|
|
6228
|
-
padding-inline-end: calc(var(--gap-
|
|
6555
|
+
padding-inline-end: calc(var(--gap-lg) + var(--gap-md)) !important;
|
|
6229
6556
|
}
|
|
6230
6557
|
|
|
6231
6558
|
/* Eye icon toggle - ALWAYS at end, cannot be overridden */
|
|
@@ -6238,7 +6565,7 @@ input[type='number'] {
|
|
|
6238
6565
|
background: none !important;
|
|
6239
6566
|
border: none !important;
|
|
6240
6567
|
cursor: pointer !important;
|
|
6241
|
-
padding: var(--gap-
|
|
6568
|
+
padding: var(--gap-sm) !important;
|
|
6242
6569
|
display: flex !important;
|
|
6243
6570
|
align-items: center !important;
|
|
6244
6571
|
opacity: var(--opacity-muted) !important;
|
|
@@ -6299,7 +6626,7 @@ input[type='number'] {
|
|
|
6299
6626
|
background: none;
|
|
6300
6627
|
border: none;
|
|
6301
6628
|
cursor: pointer;
|
|
6302
|
-
padding:
|
|
6629
|
+
padding: 0.25rem; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
6303
6630
|
margin-inline-start: var(--gap-sm, 0.5rem);
|
|
6304
6631
|
display: inline-flex;
|
|
6305
6632
|
align-items: center;
|
|
@@ -6624,7 +6951,7 @@ input[type='number'] {
|
|
|
6624
6951
|
}
|
|
6625
6952
|
|
|
6626
6953
|
.dndev-range-input-separator {
|
|
6627
|
-
padding-inline: var(--gap-
|
|
6954
|
+
padding-inline: var(--gap-sm);
|
|
6628
6955
|
}
|
|
6629
6956
|
|
|
6630
6957
|
/* packages/components/src/atomic/Rating/Rating.css */
|
|
@@ -8118,6 +8445,107 @@ input[type='number'] {
|
|
|
8118
8445
|
min-width: var(--touch-target);
|
|
8119
8446
|
}
|
|
8120
8447
|
|
|
8448
|
+
.dndev-swipe-action {
|
|
8449
|
+
--swipe-action-width: 5.5rem;
|
|
8450
|
+
display: flex;
|
|
8451
|
+
min-inline-size: 0;
|
|
8452
|
+
}
|
|
8453
|
+
|
|
8454
|
+
.dndev-swipe-action-viewport {
|
|
8455
|
+
display: flex;
|
|
8456
|
+
flex: 1;
|
|
8457
|
+
min-inline-size: 0;
|
|
8458
|
+
overflow-x: auto;
|
|
8459
|
+
overflow-y: hidden;
|
|
8460
|
+
scroll-snap-type: x mandatory;
|
|
8461
|
+
overscroll-behavior-x: contain;
|
|
8462
|
+
scrollbar-width: none;
|
|
8463
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
8464
|
+
}
|
|
8465
|
+
|
|
8466
|
+
.dndev-swipe-action-viewport::-webkit-scrollbar {
|
|
8467
|
+
display: none;
|
|
8468
|
+
}
|
|
8469
|
+
|
|
8470
|
+
.dndev-swipe-action[data-disabled] .dndev-swipe-action-viewport,
|
|
8471
|
+
.dndev-swipe-action-viewport[data-input-blocked] {
|
|
8472
|
+
overflow-x: hidden;
|
|
8473
|
+
}
|
|
8474
|
+
|
|
8475
|
+
.dndev-swipe-action-content {
|
|
8476
|
+
flex: 0 0 100%;
|
|
8477
|
+
min-inline-size: 0;
|
|
8478
|
+
min-block-size: 44px;
|
|
8479
|
+
scroll-snap-align: start;
|
|
8480
|
+
background: var(--background);
|
|
8481
|
+
}
|
|
8482
|
+
|
|
8483
|
+
/* Scope to descendants, never a focusable cart/list ancestor. Touch-action is
|
|
8484
|
+
resolved before pointerdown, so controls cannot start horizontal scrolling. */
|
|
8485
|
+
.dndev-swipe-action-content :is(
|
|
8486
|
+
button, a, input, textarea, select, label, summary, [tabindex],
|
|
8487
|
+
[contenteditable]:not([contenteditable="false"]), [draggable="true"],
|
|
8488
|
+
[role="button"], [role="link"], [role="checkbox"], [role="switch"],
|
|
8489
|
+
[role="radio"], [role="slider"], [role="spinbutton"], [role="textbox"],
|
|
8490
|
+
[role="combobox"], [role="searchbox"], [role="menuitem"],
|
|
8491
|
+
[role="menuitemcheckbox"], [role="menuitemradio"], [role="option"],
|
|
8492
|
+
[role="tab"], [role="treeitem"]
|
|
8493
|
+
) {
|
|
8494
|
+
touch-action: pan-y pinch-zoom;
|
|
8495
|
+
}
|
|
8496
|
+
|
|
8497
|
+
.dndev-swipe-action-toggle,
|
|
8498
|
+
.dndev-swipe-action-delete {
|
|
8499
|
+
display: flex;
|
|
8500
|
+
align-items: center;
|
|
8501
|
+
justify-content: center;
|
|
8502
|
+
min-inline-size: 44px;
|
|
8503
|
+
min-block-size: 44px;
|
|
8504
|
+
border: 0;
|
|
8505
|
+
font: inherit;
|
|
8506
|
+
cursor: pointer;
|
|
8507
|
+
touch-action: manipulation;
|
|
8508
|
+
}
|
|
8509
|
+
|
|
8510
|
+
.dndev-swipe-action-toggle {
|
|
8511
|
+
flex-shrink: 0;
|
|
8512
|
+
background: var(--background);
|
|
8513
|
+
color: var(--foreground);
|
|
8514
|
+
}
|
|
8515
|
+
|
|
8516
|
+
/* Native overflow clips the closed action and progressively reveals its paint.
|
|
8517
|
+
Inert/disabled/ARIA state gates interaction until the open endpoint. */
|
|
8518
|
+
.dndev-swipe-action-delete {
|
|
8519
|
+
flex: 0 0 var(--swipe-action-width);
|
|
8520
|
+
scroll-snap-align: end;
|
|
8521
|
+
flex-direction: column;
|
|
8522
|
+
padding: var(--gap-sm);
|
|
8523
|
+
overflow-wrap: anywhere;
|
|
8524
|
+
background: var(--destructive);
|
|
8525
|
+
color: var(--destructive-foreground);
|
|
8526
|
+
}
|
|
8527
|
+
|
|
8528
|
+
.dndev-swipe-action svg {
|
|
8529
|
+
inline-size: var(--icon-md);
|
|
8530
|
+
block-size: var(--icon-md);
|
|
8531
|
+
flex-shrink: 0;
|
|
8532
|
+
}
|
|
8533
|
+
|
|
8534
|
+
.dndev-swipe-action button:focus-visible {
|
|
8535
|
+
outline: 2px solid var(--ring);
|
|
8536
|
+
outline-offset: -3px;
|
|
8537
|
+
}
|
|
8538
|
+
|
|
8539
|
+
.dndev-swipe-action button:disabled {
|
|
8540
|
+
cursor: default;
|
|
8541
|
+
}
|
|
8542
|
+
|
|
8543
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8544
|
+
.dndev-swipe-action-viewport {
|
|
8545
|
+
scroll-behavior: auto;
|
|
8546
|
+
}
|
|
8547
|
+
}
|
|
8548
|
+
|
|
8121
8549
|
/* packages/components/src/atomic/Switch/Switch.css */
|
|
8122
8550
|
|
|
8123
8551
|
.dndev-switch {
|
|
@@ -8196,6 +8624,11 @@ input[type='number'] {
|
|
|
8196
8624
|
will-change: transform;
|
|
8197
8625
|
}
|
|
8198
8626
|
|
|
8627
|
+
/* Primary while on: thumb in the primary foreground (as Checkbox), readable on the track */
|
|
8628
|
+
.dndev-switch[data-variant='primary'][data-state='checked'] .dndev-switch-thumb {
|
|
8629
|
+
background-color: var(--primary-foreground);
|
|
8630
|
+
}
|
|
8631
|
+
|
|
8199
8632
|
.dndev-switch[data-state='checked'] .dndev-switch-thumb {
|
|
8200
8633
|
transform: translateX(calc(2.75rem - 1.25rem - 0.125rem));
|
|
8201
8634
|
}
|
|
@@ -8251,6 +8684,10 @@ input[type='number'] {
|
|
|
8251
8684
|
font-weight: var(--font-weight-normal);
|
|
8252
8685
|
}
|
|
8253
8686
|
|
|
8687
|
+
/* Switch with a label after it: the switch keeps its size, the label wraps */
|
|
8688
|
+
.dndev-switch-field > .dndev-switch {
|
|
8689
|
+
flex-shrink: 0;
|
|
8690
|
+
}
|
|
8254
8691
|
/* packages/components/src/atomic/Table/Table.css */
|
|
8255
8692
|
|
|
8256
8693
|
.dndev-table-wrapper {
|
|
@@ -8280,7 +8717,7 @@ input[type='number'] {
|
|
|
8280
8717
|
|
|
8281
8718
|
.dndev-table-filter-row .dndev-table-head {
|
|
8282
8719
|
background-color: var(--muted);
|
|
8283
|
-
padding: var(--gap-
|
|
8720
|
+
padding: var(--gap-sm);
|
|
8284
8721
|
height: auto;
|
|
8285
8722
|
min-height: auto;
|
|
8286
8723
|
}
|
|
@@ -8485,6 +8922,93 @@ input[type='number'] {
|
|
|
8485
8922
|
opacity: var(--opacity-muted);
|
|
8486
8923
|
}
|
|
8487
8924
|
}
|
|
8925
|
+
|
|
8926
|
+
/* Editable DataTable --------------------------------------------------- */
|
|
8927
|
+
|
|
8928
|
+
/* Scope for editor lookup (keyboard navigation); adds no box. */
|
|
8929
|
+
.dndev-table-edit-scope {
|
|
8930
|
+
display: contents;
|
|
8931
|
+
}
|
|
8932
|
+
|
|
8933
|
+
.dndev-table-bulk-bar {
|
|
8934
|
+
padding: var(--gap-sm) var(--gap-sm);
|
|
8935
|
+
border: 1px solid var(--border);
|
|
8936
|
+
background-color: var(--muted);
|
|
8937
|
+
}
|
|
8938
|
+
|
|
8939
|
+
/* Cell editor: fills the cell, reads as text until focused. */
|
|
8940
|
+
.dndev-table-cell-editor {
|
|
8941
|
+
width: 100%;
|
|
8942
|
+
min-width: 6rem;
|
|
8943
|
+
font: inherit;
|
|
8944
|
+
color: inherit;
|
|
8945
|
+
background-color: transparent;
|
|
8946
|
+
border: 1px solid transparent;
|
|
8947
|
+
border-radius: var(--radius-sm);
|
|
8948
|
+
padding: var(--gap-sm);
|
|
8949
|
+
}
|
|
8950
|
+
|
|
8951
|
+
.dndev-table-cell-editor:hover {
|
|
8952
|
+
border-color: var(--border);
|
|
8953
|
+
}
|
|
8954
|
+
|
|
8955
|
+
.dndev-table-cell-editor:focus-visible,
|
|
8956
|
+
.dndev-table-cell-editor:focus {
|
|
8957
|
+
outline: 2px solid var(--ring);
|
|
8958
|
+
outline-offset: -1px;
|
|
8959
|
+
background-color: var(--background);
|
|
8960
|
+
}
|
|
8961
|
+
|
|
8962
|
+
.dndev-table-bulk-bar .dndev-table-cell-editor {
|
|
8963
|
+
width: auto;
|
|
8964
|
+
border-color: var(--border);
|
|
8965
|
+
background-color: var(--background);
|
|
8966
|
+
}
|
|
8967
|
+
|
|
8968
|
+
.dndev-table-cell[data-editable='true'] {
|
|
8969
|
+
padding-block: 0;
|
|
8970
|
+
}
|
|
8971
|
+
|
|
8972
|
+
/* Changed, not saved yet */
|
|
8973
|
+
.dndev-table-cell[data-dirty='true'] {
|
|
8974
|
+
background-color: color-mix(in oklab, var(--primary) 12%, transparent);
|
|
8975
|
+
}
|
|
8976
|
+
|
|
8977
|
+
/* Value that does not parse, or breaks a rule (cellErrors): the save will reject it */
|
|
8978
|
+
.dndev-table-cell[data-invalid='true'] .dndev-table-cell-editor {
|
|
8979
|
+
border-color: var(--destructive);
|
|
8980
|
+
}
|
|
8981
|
+
|
|
8982
|
+
/* Message of a rule the cell value breaks (cellErrors) */
|
|
8983
|
+
.dndev-table-cell-error {
|
|
8984
|
+
display: block;
|
|
8985
|
+
margin-block-start: var(--gap-sm);
|
|
8986
|
+
color: var(--destructive);
|
|
8987
|
+
font-size: var(--font-size-xs);
|
|
8988
|
+
line-height: 1.3;
|
|
8989
|
+
}
|
|
8990
|
+
|
|
8991
|
+
/* Open cell: icon link to the row's record (touch-sized hit area) */
|
|
8992
|
+
.dndev-table-open-link {
|
|
8993
|
+
display: inline-flex;
|
|
8994
|
+
align-items: center;
|
|
8995
|
+
justify-content: center;
|
|
8996
|
+
min-width: var(--touch-target);
|
|
8997
|
+
min-height: var(--touch-target);
|
|
8998
|
+
color: var(--muted-foreground);
|
|
8999
|
+
border-radius: var(--radius-sm);
|
|
9000
|
+
}
|
|
9001
|
+
|
|
9002
|
+
.dndev-table-open-link:hover {
|
|
9003
|
+
color: var(--foreground);
|
|
9004
|
+
background-color: var(--muted);
|
|
9005
|
+
}
|
|
9006
|
+
|
|
9007
|
+
.dndev-table-open-link:focus-visible {
|
|
9008
|
+
outline: 2px solid var(--ring);
|
|
9009
|
+
outline-offset: -1px;
|
|
9010
|
+
}
|
|
9011
|
+
|
|
8488
9012
|
/* packages/components/src/atomic/Tabs/Tabs.css */
|
|
8489
9013
|
|
|
8490
9014
|
/* Tabs list: use flexbox for natural wrapping, not grid */
|
|
@@ -8504,100 +9028,51 @@ input[type='number'] {
|
|
|
8504
9028
|
word-break: break-word;
|
|
8505
9029
|
border: var(--border-hairline) solid var(--line-2); /* Show clickable area */
|
|
8506
9030
|
|
|
8507
|
-
/*
|
|
8508
|
-
|
|
8509
|
-
|
|
9031
|
+
/*
|
|
9032
|
+
* Inactive = neutral surface, active = filled with the variant colour, so the
|
|
9033
|
+
* selected tab is the one that stands out (the panel sits below with a gap, it
|
|
9034
|
+
* is not a folder tab joined to its content). --card not --background: the tab
|
|
9035
|
+
* surface must be opaque (--background can be transparent in some themes).
|
|
9036
|
+
*/
|
|
9037
|
+
background-color: var(--card);
|
|
9038
|
+
color: var(--muted-foreground);
|
|
9039
|
+
--tab-active-bg: var(--primary);
|
|
9040
|
+
--tab-active-fg: var(--primary-foreground);
|
|
8510
9041
|
}
|
|
8511
|
-
.dndev-interactive[data-role='tab-trigger'][data-state='active'] {
|
|
8512
|
-
/* --card not --background: active tab surface must be opaque (--background can be transparent in some themes) */
|
|
8513
|
-
background-color: var(--card);
|
|
9042
|
+
.dndev-interactive[data-role='tab-trigger']:hover:not([data-state='active']):not(:disabled) {
|
|
8514
9043
|
color: var(--foreground);
|
|
8515
|
-
box-shadow: var(--shadow-sm);
|
|
8516
|
-
border-color: var(--primary);
|
|
8517
|
-
}
|
|
8518
|
-
/* Default/Primary variant: inactive = primary, active = foreground/card */
|
|
8519
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='default'],.dndev-interactive[data-role='tab-trigger'][data-variant='primary'] {
|
|
8520
|
-
background-color: var(--primary);
|
|
8521
|
-
color: var(--primary-foreground);
|
|
8522
9044
|
}
|
|
8523
|
-
[data-state='active']:is(.dndev-interactive[data-role='tab-trigger'][data-variant='default'],.dndev-interactive[data-role='tab-trigger'][data-variant='primary']) {
|
|
8524
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8525
|
-
background-color: var(--card);
|
|
8526
|
-
color: var(--foreground);
|
|
8527
|
-
box-shadow: var(--shadow-sm);
|
|
8528
|
-
border-color: var(--primary);
|
|
8529
|
-
}
|
|
8530
|
-
/* Secondary variant: inactive = secondary, active = foreground/card */
|
|
8531
9045
|
.dndev-interactive[data-role='tab-trigger'][data-variant='secondary'] {
|
|
8532
|
-
|
|
8533
|
-
|
|
9046
|
+
--tab-active-bg: var(--secondary);
|
|
9047
|
+
--tab-active-fg: var(--secondary-foreground);
|
|
8534
9048
|
}
|
|
8535
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='secondary'][data-state='active'] {
|
|
8536
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8537
|
-
background-color: var(--card);
|
|
8538
|
-
color: var(--foreground);
|
|
8539
|
-
box-shadow: var(--shadow-sm);
|
|
8540
|
-
border-color: var(--secondary);
|
|
8541
|
-
}
|
|
8542
|
-
/* Accent variant: inactive = accent, active = foreground/card */
|
|
8543
9049
|
.dndev-interactive[data-role='tab-trigger'][data-variant='accent'] {
|
|
8544
|
-
|
|
8545
|
-
|
|
9050
|
+
--tab-active-bg: var(--accent);
|
|
9051
|
+
--tab-active-fg: var(--accent-foreground);
|
|
8546
9052
|
}
|
|
8547
|
-
|
|
8548
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8549
|
-
background-color: var(--card);
|
|
8550
|
-
color: var(--foreground);
|
|
8551
|
-
box-shadow: var(--shadow-sm);
|
|
8552
|
-
border-color: var(--accent);
|
|
8553
|
-
}
|
|
8554
|
-
/* Muted variant: inactive = muted, active = primary (to contrast) */
|
|
9053
|
+
/* Muted: the muted fill would not stand out as the selection, so primary */
|
|
8555
9054
|
.dndev-interactive[data-role='tab-trigger'][data-variant='muted'] {
|
|
8556
|
-
|
|
8557
|
-
|
|
9055
|
+
--tab-active-bg: var(--primary);
|
|
9056
|
+
--tab-active-fg: var(--primary-foreground);
|
|
8558
9057
|
}
|
|
8559
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='muted'][data-state='active'] {
|
|
8560
|
-
background-color: var(--primary);
|
|
8561
|
-
color: var(--primary-foreground);
|
|
8562
|
-
box-shadow: var(--shadow-sm);
|
|
8563
|
-
border-color: var(--primary);
|
|
8564
|
-
}
|
|
8565
|
-
/* Warning variant: inactive = warning, active = foreground/card */
|
|
8566
9058
|
.dndev-interactive[data-role='tab-trigger'][data-variant='warning'] {
|
|
8567
|
-
|
|
8568
|
-
|
|
9059
|
+
--tab-active-bg: var(--warning);
|
|
9060
|
+
--tab-active-fg: var(--warning-foreground);
|
|
8569
9061
|
}
|
|
8570
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='warning'][data-state='active'] {
|
|
8571
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8572
|
-
background-color: var(--card);
|
|
8573
|
-
color: var(--foreground);
|
|
8574
|
-
box-shadow: var(--shadow-sm);
|
|
8575
|
-
border-color: var(--warning);
|
|
8576
|
-
}
|
|
8577
|
-
/* Success variant: inactive = success, active = foreground/card */
|
|
8578
9062
|
.dndev-interactive[data-role='tab-trigger'][data-variant='success'] {
|
|
8579
|
-
|
|
8580
|
-
|
|
9063
|
+
--tab-active-bg: var(--success);
|
|
9064
|
+
--tab-active-fg: var(--success-foreground);
|
|
8581
9065
|
}
|
|
8582
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='success'][data-state='active'] {
|
|
8583
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8584
|
-
background-color: var(--card);
|
|
8585
|
-
color: var(--foreground);
|
|
8586
|
-
box-shadow: var(--shadow-sm);
|
|
8587
|
-
border-color: var(--success);
|
|
8588
|
-
}
|
|
8589
|
-
/* Destructive variant: inactive = destructive, active = foreground/card */
|
|
8590
9066
|
.dndev-interactive[data-role='tab-trigger'][data-variant='destructive'] {
|
|
8591
|
-
|
|
8592
|
-
|
|
9067
|
+
--tab-active-bg: var(--destructive);
|
|
9068
|
+
--tab-active-fg: var(--destructive-foreground);
|
|
9069
|
+
}
|
|
9070
|
+
.dndev-interactive[data-role='tab-trigger'][data-state='active'] {
|
|
9071
|
+
background-color: var(--tab-active-bg);
|
|
9072
|
+
color: var(--tab-active-fg);
|
|
9073
|
+
border-color: var(--tab-active-bg);
|
|
9074
|
+
box-shadow: var(--shadow-sm);
|
|
8593
9075
|
}
|
|
8594
|
-
.dndev-interactive[data-role='tab-trigger'][data-variant='destructive'][data-state='active'] {
|
|
8595
|
-
/* --card not --background: active tab surface must be opaque */
|
|
8596
|
-
background-color: var(--card);
|
|
8597
|
-
color: var(--foreground);
|
|
8598
|
-
box-shadow: var(--shadow-sm);
|
|
8599
|
-
border-color: var(--destructive);
|
|
8600
|
-
}
|
|
8601
9076
|
|
|
8602
9077
|
.dndev-tabs-content {
|
|
8603
9078
|
margin-top: var(--gap-md);
|
|
@@ -8616,41 +9091,117 @@ input[type='number'] {
|
|
|
8616
9091
|
display: none;
|
|
8617
9092
|
}
|
|
8618
9093
|
|
|
8619
|
-
/*
|
|
8620
|
-
|
|
8621
|
-
/* One outlined control (e-commerce standard, e.g. Shopify Dawn): borderless − / +
|
|
8622
|
-
buttons around a centred, tabular quantity. Same height and radius as buttons. */
|
|
9094
|
+
/* Reserve the complete footprint, even when zero is presented as one large +. */
|
|
8623
9095
|
.dndev-quantity-stepper {
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
9096
|
+
--quantity-target: max(var(--touch-target), 44px);
|
|
9097
|
+
/* Include both icon states, padding and inherited text BEFORE placing items.
|
|
9098
|
+
Auto rows otherwise grow for the larger collapsed icon, then shrink on expand. */
|
|
9099
|
+
--quantity-cell: max(
|
|
9100
|
+
var(--quantity-target),
|
|
9101
|
+
calc(max(var(--icon-md), var(--quantity-target) * 0.6, 1lh) + 2 * var(--gap-sm))
|
|
9102
|
+
);
|
|
9103
|
+
display: inline-grid;
|
|
9104
|
+
grid-template-columns: var(--quantity-cell) minmax(var(--quantity-cell), 1fr) var(--quantity-cell);
|
|
9105
|
+
grid-template-rows: var(--quantity-cell);
|
|
9106
|
+
inline-size: calc(3 * var(--quantity-cell));
|
|
9107
|
+
min-inline-size: calc(3 * var(--quantity-cell));
|
|
8627
9108
|
border: var(--border-hairline) solid var(--border);
|
|
8628
9109
|
border-radius: var(--radius-interactive);
|
|
8629
9110
|
background: var(--interactive);
|
|
8630
9111
|
color: var(--foreground);
|
|
8631
9112
|
}
|
|
8632
9113
|
.dndev-quantity-stepper[data-full-width] {
|
|
8633
|
-
display:
|
|
8634
|
-
|
|
9114
|
+
display: grid;
|
|
9115
|
+
inline-size: 100%;
|
|
8635
9116
|
}
|
|
8636
9117
|
.dndev-quantity-stepper[data-disabled] {
|
|
8637
9118
|
opacity: 0.6;
|
|
8638
9119
|
}
|
|
8639
|
-
.dndev-quantity-stepper >
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
min-height: 0;
|
|
9120
|
+
.dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
|
|
9121
|
+
min-inline-size: var(--quantity-target);
|
|
9122
|
+
min-block-size: var(--quantity-target);
|
|
8643
9123
|
border: none;
|
|
8644
9124
|
border-radius: inherit;
|
|
8645
9125
|
background: transparent;
|
|
9126
|
+
color: inherit;
|
|
9127
|
+
font: inherit;
|
|
9128
|
+
touch-action: manipulation;
|
|
8646
9129
|
}
|
|
9130
|
+
:is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):focus-visible {
|
|
9131
|
+
outline: none;
|
|
9132
|
+
box-shadow: var(--shadow-focus);
|
|
9133
|
+
z-index: 1;
|
|
9134
|
+
}
|
|
9135
|
+
:is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):disabled {
|
|
9136
|
+
cursor: not-allowed;
|
|
9137
|
+
opacity: 0.6;
|
|
9138
|
+
}
|
|
9139
|
+
.dndev-quantity-stepper > button {
|
|
9140
|
+
display: flex;
|
|
9141
|
+
align-items: center;
|
|
9142
|
+
justify-content: center;
|
|
9143
|
+
padding: var(--gap-sm);
|
|
9144
|
+
cursor: pointer;
|
|
9145
|
+
transition: background-color var(--transition-fast);
|
|
9146
|
+
/* Press-and-hold repeats: no text selection or touch callout on long press. */
|
|
9147
|
+
-moz-user-select: none;
|
|
9148
|
+
user-select: none;
|
|
9149
|
+
-webkit-user-select: none;
|
|
9150
|
+
-webkit-touch-callout: none;
|
|
9151
|
+
}
|
|
9152
|
+
:is(.dndev-quantity-stepper > button):hover:not(:disabled) {
|
|
9153
|
+
background: var(--muted);
|
|
9154
|
+
}
|
|
9155
|
+
:is(.dndev-quantity-stepper > button) > svg {
|
|
9156
|
+
inline-size: var(--icon-md);
|
|
9157
|
+
block-size: var(--icon-md);
|
|
9158
|
+
}
|
|
9159
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
|
|
9160
|
+
grid-area: 1 / 1;
|
|
9161
|
+
}
|
|
9162
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-value {
|
|
9163
|
+
grid-area: 1 / 2;
|
|
9164
|
+
}
|
|
9165
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-increment {
|
|
9166
|
+
grid-area: 1 / 3;
|
|
9167
|
+
}
|
|
9168
|
+
.dndev-quantity-stepper[data-vertical] {
|
|
9169
|
+
grid-template-columns: minmax(var(--quantity-cell), 1fr);
|
|
9170
|
+
grid-template-rows: repeat(3, var(--quantity-cell));
|
|
9171
|
+
inline-size: var(--quantity-cell);
|
|
9172
|
+
min-inline-size: var(--quantity-cell);
|
|
9173
|
+
}
|
|
9174
|
+
.dndev-quantity-stepper[data-vertical][data-full-width] {
|
|
9175
|
+
inline-size: 100%;
|
|
9176
|
+
}
|
|
9177
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-increment {
|
|
9178
|
+
grid-area: 1 / 1;
|
|
9179
|
+
}
|
|
9180
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-value {
|
|
9181
|
+
grid-area: 2 / 1;
|
|
9182
|
+
}
|
|
9183
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-decrement {
|
|
9184
|
+
grid-area: 3 / 1;
|
|
9185
|
+
}
|
|
9186
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
|
|
9187
|
+
visibility: hidden;
|
|
9188
|
+
pointer-events: none;
|
|
9189
|
+
}
|
|
9190
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
|
|
9191
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
9192
|
+
}
|
|
9193
|
+
:is(.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment) > svg {
|
|
9194
|
+
inline-size: calc(var(--quantity-target) * 0.6);
|
|
9195
|
+
block-size: calc(var(--quantity-target) * 0.6);
|
|
9196
|
+
}
|
|
8647
9197
|
|
|
8648
9198
|
.dndev-quantity-stepper-value {
|
|
8649
|
-
|
|
9199
|
+
box-sizing: border-box;
|
|
8650
9200
|
display: flex;
|
|
8651
9201
|
align-items: center;
|
|
8652
9202
|
justify-content: center;
|
|
8653
|
-
|
|
9203
|
+
inline-size: 100%;
|
|
9204
|
+
min-inline-size: 0;
|
|
8654
9205
|
padding-inline: var(--gap-sm);
|
|
8655
9206
|
border: none;
|
|
8656
9207
|
background: none;
|
|
@@ -8659,21 +9210,14 @@ input[type='number'] {
|
|
|
8659
9210
|
font-weight: var(--font-weight-medium);
|
|
8660
9211
|
font-variant-numeric: tabular-nums;
|
|
8661
9212
|
text-align: center;
|
|
8662
|
-
}
|
|
8663
9213
|
|
|
8664
|
-
|
|
8665
|
-
cursor: pointer;
|
|
8666
|
-
}
|
|
8667
|
-
|
|
8668
|
-
.dndev-quantity-stepper-value:is(button):hover {
|
|
8669
|
-
text-decoration: underline;
|
|
8670
|
-
text-underline-offset: 0.2em;
|
|
8671
|
-
}
|
|
9214
|
+
}
|
|
8672
9215
|
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
9216
|
+
@media (prefers-reduced-motion: reduce) {
|
|
9217
|
+
.dndev-quantity-stepper > button {
|
|
9218
|
+
transition: none;
|
|
8676
9219
|
}
|
|
9220
|
+
}
|
|
8677
9221
|
|
|
8678
9222
|
/* packages/components/src/atomic/Tag/Tag.css */
|
|
8679
9223
|
|
|
@@ -8940,7 +9484,7 @@ input[type='number'] {
|
|
|
8940
9484
|
.dndev-toast-viewport {
|
|
8941
9485
|
position: fixed;
|
|
8942
9486
|
top: var(--gap-md);
|
|
8943
|
-
z-index:
|
|
9487
|
+
z-index: var(--z-toast);
|
|
8944
9488
|
display: flex;
|
|
8945
9489
|
flex-direction: column-reverse;
|
|
8946
9490
|
max-height: 100dvh;
|
|
@@ -9293,7 +9837,7 @@ input[type='number'] {
|
|
|
9293
9837
|
display: flex;
|
|
9294
9838
|
align-items: center;
|
|
9295
9839
|
gap: var(--gap-sm);
|
|
9296
|
-
padding: var(--gap-
|
|
9840
|
+
padding: var(--gap-sm) var(--gap-sm);
|
|
9297
9841
|
border-radius: var(--radius-interactive);
|
|
9298
9842
|
cursor: pointer;
|
|
9299
9843
|
transition:
|
|
@@ -11679,9 +12223,17 @@ h4[data-variant='code'] {
|
|
|
11679
12223
|
/* ===========================
|
|
11680
12224
|
DEFAULT VALUES (Landing Preset)
|
|
11681
12225
|
All presets inherit these - only override what's different
|
|
12226
|
+
|
|
12227
|
+
Layout tokens are declared on <html>, never on .dndev-layout: every element of
|
|
12228
|
+
the app sits under the wrapper, so a declaration there would shadow the app's
|
|
12229
|
+
:root overrides (themes.css). Presets read the wrapper's data-layout (in the
|
|
12230
|
+
server HTML) through :has, so they resolve on the first paint. All token rules
|
|
12231
|
+
carry zero specificity (:where): an app :root override wins whatever the
|
|
12232
|
+
stylesheet order. Preset display rules (hide header, sidebar…) stay scoped to
|
|
12233
|
+
[data-layout], which matches the wrapper.
|
|
11682
12234
|
=========================== */
|
|
11683
12235
|
|
|
11684
|
-
:root {
|
|
12236
|
+
:where(:root) {
|
|
11685
12237
|
/* Layout structure dimensions */
|
|
11686
12238
|
/* Height values include borders (box-sizing: border-box) */
|
|
11687
12239
|
/* Content heights are multiples of 12px, then add 2px border */
|
|
@@ -11883,9 +12435,15 @@ main[role='main'][data-routing-animation='none'] {
|
|
|
11883
12435
|
}
|
|
11884
12436
|
|
|
11885
12437
|
/* Header content width adjustments for sidebar layouts */
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
12438
|
+
:where(
|
|
12439
|
+
:root:has(
|
|
12440
|
+
.dndev-layout:is(
|
|
12441
|
+
[data-layout='moolti'],
|
|
12442
|
+
[data-layout='docs'],
|
|
12443
|
+
[data-layout='blog']
|
|
12444
|
+
)
|
|
12445
|
+
)
|
|
12446
|
+
) {
|
|
11889
12447
|
--header-content-width: calc(100% - var(--sidebar-width));
|
|
11890
12448
|
}
|
|
11891
12449
|
|
|
@@ -11942,10 +12500,20 @@ main[role='main'][data-routing-animation='none'] {
|
|
|
11942
12500
|
grid-template-rows: var(--header-height) 1fr auto;
|
|
11943
12501
|
}
|
|
11944
12502
|
|
|
11945
|
-
/*
|
|
12503
|
+
/* No footer rendered (app.footer: null): no footer row, main takes the space */
|
|
12504
|
+
.dndev-layout:not(:has(> footer)) {
|
|
12505
|
+
grid-template-areas:
|
|
12506
|
+
'header header'
|
|
12507
|
+
'sidebar main';
|
|
12508
|
+
grid-template-rows: var(--header-height) 1fr;
|
|
12509
|
+
}
|
|
12510
|
+
|
|
12511
|
+
/* Footer inside main: spacing + sizing (slotted mode only). The gap sits on the page
|
|
12512
|
+
above it: the footer's own block-start margin is `auto` (pinned to the bottom). */
|
|
12513
|
+
main[role='main'] > :has(+ footer[role='contentinfo']:not([data-custom])) {
|
|
12514
|
+
margin-block-end: var(--gap-lg);
|
|
12515
|
+
}
|
|
11946
12516
|
main[role='main'] > footer[role='contentinfo']:not([data-custom]) {
|
|
11947
|
-
margin-top: var(--gap-lg);
|
|
11948
|
-
flex-shrink: 0;
|
|
11949
12517
|
height: auto;
|
|
11950
12518
|
}
|
|
11951
12519
|
main[role='main'] > footer[role='contentinfo']:not([data-custom]) > * {
|
|
@@ -12092,7 +12660,7 @@ aside[role='navigation'].sidebar {
|
|
|
12092
12660
|
display: none;
|
|
12093
12661
|
}
|
|
12094
12662
|
/* Moolti: Sidebar spans full height (no header/footer on desktop) */
|
|
12095
|
-
[data-layout='moolti']:root aside.sidebar[role='navigation'] {
|
|
12663
|
+
[data-layout='moolti']:root aside.sidebar[role='navigation'],.dndev-layout[data-layout='moolti'] aside.sidebar[role='navigation'] {
|
|
12096
12664
|
grid-row: 1 / -1;
|
|
12097
12665
|
}
|
|
12098
12666
|
|
|
@@ -12306,11 +12874,20 @@ main[role='main'] {
|
|
|
12306
12874
|
padding: 0;
|
|
12307
12875
|
contain: layout style;
|
|
12308
12876
|
|
|
12309
|
-
/*
|
|
12877
|
+
/* The page (first child, or the one after breadcrumbs) grows to fill the space and never
|
|
12878
|
+
shrinks (the scroll container owns overflow). Only the page: a footer rendered inside
|
|
12879
|
+
main keeps its own height. */
|
|
12310
12880
|
}
|
|
12311
|
-
main[role='main'] >
|
|
12881
|
+
main[role='main'] > :first-child:not(.breadcrumbs-container,footer),main[role='main'] > .breadcrumbs-container + :not(footer) {
|
|
12312
12882
|
flex: 1 0 auto;
|
|
12313
12883
|
}
|
|
12884
|
+
/* Footer inside main: always at the bottom, even while the page is not there yet
|
|
12885
|
+
(a Suspense boundary streaming in leaves only a hidden placeholder): main stays
|
|
12886
|
+
empty above it, nothing shifts when the page arrives. */
|
|
12887
|
+
main[role='main'] > footer {
|
|
12888
|
+
flex: 0 0 auto;
|
|
12889
|
+
margin-block-start: auto;
|
|
12890
|
+
}
|
|
12314
12891
|
|
|
12315
12892
|
/* Footer: Full width by default, app presets start after sidebar */
|
|
12316
12893
|
/* box-sizing: border-box ensures borders are included in height */
|
|
@@ -12459,14 +13036,14 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12459
13036
|
* Perfect for: Admin panels, dashboards, management interfaces
|
|
12460
13037
|
* Overrides: Adds sidebar (240px), constrains width (1480px), tighter spacing
|
|
12461
13038
|
*/
|
|
12462
|
-
[data-layout='admin'] {
|
|
13039
|
+
:where(:root:has(.dndev-layout[data-layout='admin'])) {
|
|
12463
13040
|
/* Desktop/Wide (>=1024px) - only overrides */
|
|
12464
13041
|
--sidebar-width: var(--custom-sidebar-width, 240px);
|
|
12465
13042
|
|
|
12466
13043
|
/* Admin: Mobile/Tablet (<1024px) - only overrides */
|
|
12467
13044
|
}
|
|
12468
13045
|
@media (width <=1023px) {
|
|
12469
|
-
[data-layout='admin'] {
|
|
13046
|
+
:where(:root:has(.dndev-layout[data-layout='admin'])) {
|
|
12470
13047
|
--sidebar-width: 0px;
|
|
12471
13048
|
/* Override: hide sidebar on mobile */
|
|
12472
13049
|
}
|
|
@@ -12477,48 +13054,53 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12477
13054
|
* Perfect for: SaaS applications, productivity tools, focused workflows
|
|
12478
13055
|
* Overrides: No header/footer (sidebar only), sidebar (256px), balanced spacing
|
|
12479
13056
|
*/
|
|
12480
|
-
[data-layout='moolti'] {
|
|
13057
|
+
:where(:root:has(.dndev-layout[data-layout='moolti'])) {
|
|
12481
13058
|
/* Desktop/Wide (>=1024px) - only overrides */
|
|
12482
13059
|
--header-height: 0px;
|
|
12483
13060
|
--sidebar-width: var(--custom-sidebar-width, 256px);
|
|
12484
13061
|
--footer-height: 0px;
|
|
13062
|
+
|
|
13063
|
+
/* Moolti: Mobile/Tablet (<1024px) - only overrides */
|
|
13064
|
+
}
|
|
13065
|
+
@media (width <=1023px) {
|
|
13066
|
+
:where(:root:has(.dndev-layout[data-layout='moolti'])) {
|
|
13067
|
+
--header-height: 62px;
|
|
13068
|
+
--sidebar-width: 0px;
|
|
12485
13069
|
}
|
|
13070
|
+
}
|
|
13071
|
+
|
|
12486
13072
|
[data-layout='moolti'] header[role='banner'] {
|
|
12487
13073
|
display: none;
|
|
12488
13074
|
}
|
|
13075
|
+
|
|
12489
13076
|
[data-layout='moolti'] footer[role='contentinfo'] {
|
|
12490
13077
|
display: none;
|
|
12491
13078
|
}
|
|
12492
|
-
/* Moolti: Mobile/Tablet (<1024px) - only overrides */
|
|
12493
|
-
@media (width <=1023px) {
|
|
12494
|
-
[data-layout='moolti'] {
|
|
12495
|
-
--header-height: 62px;
|
|
12496
|
-
--sidebar-width: 0px;
|
|
12497
|
-
}
|
|
12498
|
-
}
|
|
12499
13079
|
|
|
12500
13080
|
/**
|
|
12501
13081
|
* DOCS PRESET
|
|
12502
13082
|
* Perfect for: Documentation sites, knowledge bases, content platforms
|
|
12503
13083
|
* Overrides: No header, sidebar (300px), comfortable reading spacing
|
|
12504
13084
|
*/
|
|
12505
|
-
[data-layout='docs'] {
|
|
13085
|
+
:where(:root:has(.dndev-layout[data-layout='docs'])) {
|
|
12506
13086
|
/* Desktop/Wide (>=1024px) - only overrides */
|
|
12507
13087
|
--header-height: 0px;
|
|
12508
13088
|
/* Override: no header - maximizes reading space */
|
|
12509
13089
|
--sidebar-width: var(--custom-sidebar-width, 300px);
|
|
13090
|
+
|
|
13091
|
+
/* Docs: Mobile/Tablet (<1024px) - only overrides */
|
|
12510
13092
|
}
|
|
12511
|
-
[data-layout='docs'] header[role='banner'] {
|
|
12512
|
-
display: none;
|
|
12513
|
-
}
|
|
12514
|
-
/* Docs: Mobile/Tablet (<1024px) - only overrides */
|
|
12515
13093
|
@media (width <=1023px) {
|
|
12516
|
-
[data-layout='docs'] {
|
|
13094
|
+
:where(:root:has(.dndev-layout[data-layout='docs'])) {
|
|
12517
13095
|
--sidebar-width: 0px;
|
|
12518
13096
|
/* Override: hide sidebar on mobile */
|
|
12519
13097
|
}
|
|
12520
13098
|
}
|
|
12521
13099
|
|
|
13100
|
+
[data-layout='docs'] header[role='banner'] {
|
|
13101
|
+
display: none;
|
|
13102
|
+
}
|
|
13103
|
+
|
|
12522
13104
|
/**
|
|
12523
13105
|
* LANDING PRESET (Default)
|
|
12524
13106
|
* Perfect for: Marketing sites, landing pages, public content
|
|
@@ -12530,17 +13112,19 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12530
13112
|
* Perfect for: Blogs, news sites, content management
|
|
12531
13113
|
* Overrides: Sidebar (280px), constrains width (1480px), content-focused spacing
|
|
12532
13114
|
*/
|
|
12533
|
-
[data-layout='blog'] {
|
|
13115
|
+
:where(:root:has(.dndev-layout[data-layout='blog'])) {
|
|
12534
13116
|
--sidebar-width: var(--custom-sidebar-width, 280px);
|
|
12535
13117
|
|
|
12536
13118
|
/* Blog: Mobile/Tablet (<1024px) - only overrides */
|
|
12537
13119
|
}
|
|
12538
13120
|
@media (width <=1023px) {
|
|
12539
|
-
[data-layout='blog'] {
|
|
13121
|
+
:where(:root:has(.dndev-layout[data-layout='blog'])) {
|
|
12540
13122
|
--header-height: 0px;
|
|
12541
13123
|
--sidebar-width: 0px;
|
|
12542
13124
|
}
|
|
13125
|
+
}
|
|
12543
13126
|
|
|
13127
|
+
@media (width <=1023px) {
|
|
12544
13128
|
[data-layout='blog'] header[role='banner'] {
|
|
12545
13129
|
display: none;
|
|
12546
13130
|
}
|
|
@@ -12551,17 +13135,20 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12551
13135
|
* Perfect for: Full-screen apps, embedded widgets, clean content
|
|
12552
13136
|
* Overrides: No header/footer/sidebar, minimal spacing
|
|
12553
13137
|
*/
|
|
12554
|
-
[data-layout='plain'] {
|
|
13138
|
+
:where(:root:has(.dndev-layout[data-layout='plain'])) {
|
|
12555
13139
|
--header-height: 0px;
|
|
12556
13140
|
--sidebar-width: 0px;
|
|
12557
13141
|
--footer-height: 0px;
|
|
12558
13142
|
}
|
|
13143
|
+
|
|
12559
13144
|
[data-layout='plain'] header[role='banner'] {
|
|
12560
13145
|
display: none;
|
|
12561
13146
|
}
|
|
13147
|
+
|
|
12562
13148
|
[data-layout='plain'] aside.sidebar[role='navigation'] {
|
|
12563
13149
|
display: none;
|
|
12564
13150
|
}
|
|
13151
|
+
|
|
12565
13152
|
[data-layout='plain'] footer[role='contentinfo'] {
|
|
12566
13153
|
display: none;
|
|
12567
13154
|
}
|
|
@@ -12573,16 +13160,18 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12573
13160
|
* Perfect for: Mobile gaming apps, full-screen experiences, touch interfaces
|
|
12574
13161
|
* Overrides: Minimal spacing for maximum screen real estate
|
|
12575
13162
|
*/
|
|
12576
|
-
[data-layout='game'] {
|
|
13163
|
+
:where(:root:has(.dndev-layout[data-layout='game'])) {
|
|
12577
13164
|
--header-height: 92px;
|
|
12578
13165
|
|
|
12579
13166
|
/* Game: Mobile/Tablet (<1024px) - only overrides */
|
|
12580
13167
|
}
|
|
12581
13168
|
@media (width <=1023px) {
|
|
12582
|
-
[data-layout='game'] {
|
|
13169
|
+
:where(:root:has(.dndev-layout[data-layout='game'])) {
|
|
12583
13170
|
--footer-height: 0px;
|
|
12584
13171
|
}
|
|
13172
|
+
}
|
|
12585
13173
|
|
|
13174
|
+
@media (width <=1023px) {
|
|
12586
13175
|
[data-layout='game'] footer[role='contentinfo'] {
|
|
12587
13176
|
display: none;
|
|
12588
13177
|
}
|