@donotdev/ui 0.3.1 → 0.3.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/README.md +2 -3
- package/dist/components/auth/AuthHeader.js +1 -93
- package/dist/components/auth/AuthMenu.d.ts.map +1 -1
- package/dist/components/auth/AuthMenu.js +3 -286
- package/dist/components/auth/index.js +1 -9
- package/dist/components/common/FeatureCard.d.ts.map +1 -1
- package/dist/components/common/FeatureCard.js +1 -86
- package/dist/components/common/FeatureDisabled.js +1 -67
- package/dist/components/common/IconPlaceholder.d.ts +24 -0
- package/dist/components/common/IconPlaceholder.d.ts.map +1 -0
- package/dist/components/common/IconPlaceholder.js +1 -0
- package/dist/components/common/LazyLucideIcon.d.ts +39 -0
- package/dist/components/common/LazyLucideIcon.d.ts.map +1 -0
- package/dist/components/common/LazyLucideIcon.js +1 -0
- package/dist/components/common/ProgressBar.js +1 -84
- package/dist/components/common/RedirectOverlay.js +1 -243
- package/dist/components/common/Skeleton.js +1 -144
- package/dist/components/common/TechBento.d.ts.map +1 -1
- package/dist/components/common/TechBento.js +1 -53
- package/dist/components/common/icon.d.ts +1 -1
- package/dist/components/common/icon.d.ts.map +1 -1
- package/dist/components/common/icon.js +1 -84
- package/dist/components/common/iconByName.d.ts +33 -0
- package/dist/components/common/iconByName.d.ts.map +1 -0
- package/dist/components/common/iconByName.js +1 -0
- package/dist/components/common/index.js +1 -16
- package/dist/components/cookie-consent/ConsentBanner.d.ts +3 -1
- package/dist/components/cookie-consent/ConsentBanner.d.ts.map +1 -1
- package/dist/components/cookie-consent/ConsentBanner.js +1 -31
- package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
- package/dist/components/cookie-consent/CookieConsent.js +1 -183
- package/dist/components/cookie-consent/index.js +1 -11
- package/dist/components/cookie-consent/useCookieNoticeRequired.d.ts +7 -0
- package/dist/components/cookie-consent/useCookieNoticeRequired.d.ts.map +1 -0
- package/dist/components/cookie-consent/useCookieNoticeRequired.js +1 -0
- package/dist/components/index.js +1 -13
- package/dist/components/layout/GameContainer.d.ts.map +1 -1
- package/dist/components/layout/GameContainer.js +1 -72
- package/dist/components/layout/GameFlow.d.ts.map +1 -1
- package/dist/components/layout/GameFlow.js +1 -93
- package/dist/components/layout/PageConfig.d.ts.map +1 -1
- package/dist/components/layout/PageConfig.js +1 -47
- package/dist/components/layout/PageContainer.d.ts.map +1 -1
- package/dist/components/layout/PageContainer.js +1 -38
- package/dist/components/layout/components/Breadcrumbs.d.ts +2 -1
- package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/layout/components/Breadcrumbs.js +1 -89
- package/dist/components/layout/components/DropdownNavigation.d.ts.map +1 -1
- package/dist/components/layout/components/DropdownNavigation.js +1 -30
- package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts.map +1 -1
- package/dist/components/layout/components/FloatingLanguageSwitcher.js +1 -26
- package/dist/components/layout/components/Notifications.js +1 -182
- package/dist/components/layout/components/header/AppBranding.d.ts.map +1 -1
- package/dist/components/layout/components/header/AppBranding.js +1 -54
- package/dist/components/layout/components/header/AppIcon.d.ts.map +1 -1
- package/dist/components/layout/components/header/AppIcon.js +1 -59
- package/dist/components/layout/components/header/AppTitle.d.ts.map +1 -1
- package/dist/components/layout/components/header/AppTitle.js +1 -40
- package/dist/components/layout/components/header/CacheSettings.js +1 -225
- package/dist/components/layout/components/header/GameTitle.d.ts.map +1 -1
- package/dist/components/layout/components/header/GameTitle.js +1 -66
- package/dist/components/layout/components/header/HeaderMenu.js +1 -75
- package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
- package/dist/components/layout/components/header/HeaderNavigation.js +1 -66
- package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
- package/dist/components/layout/components/header/SettingsMenu.js +1 -85
- package/dist/components/layout/components/header/ThemeToggle.d.ts.map +1 -1
- package/dist/components/layout/components/header/ThemeToggle.js +1 -93
- package/dist/components/layout/components/index.js +1 -25
- package/dist/components/layout/index.js +1 -14
- package/dist/crud/components/ChildRowsPicker.js +1 -68
- package/dist/crud/components/CrudCardLink.js +1 -14
- package/dist/crud/components/EntityCardList.d.ts +4 -1
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +1 -184
- package/dist/crud/components/EntityDisplayRenderer.js +1 -130
- package/dist/crud/components/EntityFormRenderer.js +1 -433
- package/dist/crud/components/EntityList.js +1 -521
- package/dist/crud/components/EntityRecommendations.js +1 -87
- package/dist/crud/components/EntityWorkflow.js +1 -55
- package/dist/crud/components/Form.d.ts.map +1 -1
- package/dist/crud/components/Form.js +1 -198
- package/dist/crud/components/cellEditFor.js +1 -74
- package/dist/crud/components/entityParent.js +1 -76
- package/dist/crud/components/index.js +1 -16
- package/dist/crud/components/useRecordBreadcrumb.d.ts +3 -1
- package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -1
- package/dist/crud/components/useRecordBreadcrumb.js +1 -43
- package/dist/crud/crudImports.js +1 -51
- package/dist/crud/index.js +1 -11
- package/dist/data/techLogos.js +1 -99
- package/dist/dndev-next.css +113 -41
- package/dist/dndev.css +113 -41
- package/dist/index.js +1 -5
- package/dist/internal/common/DnDevErrorBoundary.js +1 -55
- package/dist/internal/common/ErrorFallback.js +3 -214
- package/dist/internal/common/GlobalErrorFallback.js +1 -45
- package/dist/internal/common/RouteErrorFallback.js +3 -140
- package/dist/internal/devtools/DebugTools.js +1 -131
- package/dist/internal/devtools/components/AuthDebugButton.js +1 -72
- package/dist/internal/devtools/components/ConfigTab.js +1 -61
- package/dist/internal/devtools/components/CookieTab.js +1 -156
- package/dist/internal/devtools/components/DebugDialog.js +1 -48
- package/dist/internal/devtools/components/DesignTab.js +1 -469
- package/dist/internal/devtools/components/LayoutReset.js +1 -214
- package/dist/internal/devtools/components/MaskedValue.js +1 -39
- package/dist/internal/devtools/components/StoresTab.js +1 -90
- package/dist/internal/devtools/components/index.js +1 -16
- package/dist/internal/devtools/index.js +1 -13
- package/dist/internal/devtools/types.js +0 -2
- package/dist/internal/devtools/utils/envVarDiscovery.js +1 -106
- package/dist/internal/devtools/utils/index.js +1 -12
- package/dist/internal/devtools/utils/maskSensitive.js +1 -59
- package/dist/internal/devtools/utils/virtualModuleInspector.js +1 -309
- package/dist/internal/initializers/BaseStoresInitializer.js +1 -367
- package/dist/internal/initializers/NextJsStoresInitializer.js +1 -78
- package/dist/internal/initializers/ViteStoresInitializer.js +1 -20
- package/dist/internal/initializers/index.js +1 -11
- package/dist/internal/layout/DnDevLayout.js +1 -321
- package/dist/internal/layout/components/AutoMetaTags.d.ts +5 -0
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +1 -338
- package/dist/internal/layout/components/FaviconHead.d.ts +18 -14
- package/dist/internal/layout/components/FaviconHead.d.ts.map +1 -1
- package/dist/internal/layout/components/FaviconHead.js +1 -60
- package/dist/internal/layout/components/FontPreloadLinks.js +1 -31
- package/dist/internal/layout/components/HeadTags.js +1 -20
- package/dist/internal/layout/components/PWAUpdateNotification.js +1 -131
- package/dist/internal/layout/components/footer/FooterBranding.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/FooterBranding.js +1 -35
- package/dist/internal/layout/components/footer/FooterCopyright.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/FooterCopyright.js +1 -37
- package/dist/internal/layout/components/footer/FooterLegalLinks.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/FooterLegalLinks.js +1 -44
- package/dist/internal/layout/components/footer/useLegalLinks.d.ts +4 -2
- package/dist/internal/layout/components/footer/useLegalLinks.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/useLegalLinks.js +1 -21
- package/dist/internal/layout/components/headTagElement.d.ts +16 -0
- package/dist/internal/layout/components/headTagElement.d.ts.map +1 -0
- package/dist/internal/layout/components/headTagElement.js +1 -0
- package/dist/internal/layout/components/index.js +1 -13
- package/dist/internal/layout/components/prerenderedHead.d.ts +15 -0
- package/dist/internal/layout/components/prerenderedHead.d.ts.map +1 -0
- package/dist/internal/layout/components/prerenderedHead.js +1 -0
- package/dist/internal/layout/components/trailingSlash.d.ts +13 -0
- package/dist/internal/layout/components/trailingSlash.d.ts.map +1 -0
- package/dist/internal/layout/components/trailingSlash.js +1 -0
- package/dist/internal/layout/config/defaults.js +1 -47
- package/dist/internal/layout/config/index.js +1 -11
- package/dist/internal/layout/config/presets/admin.js +1 -35
- package/dist/internal/layout/config/presets/blog.js +1 -31
- package/dist/internal/layout/config/presets/docs.js +1 -51
- package/dist/internal/layout/config/presets/game.js +1 -53
- package/dist/internal/layout/config/presets/index.js +1 -24
- package/dist/internal/layout/config/presets/landing.js +1 -42
- package/dist/internal/layout/config/presets/moolti.js +1 -52
- package/dist/internal/layout/config/presets/plain.js +1 -25
- package/dist/internal/layout/renderers/index.js +0 -10
- package/dist/internal/layout/zones/DnDevFooter.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevFooter.js +1 -67
- package/dist/internal/layout/zones/DnDevHeader.js +1 -41
- package/dist/internal/layout/zones/DnDevMergedBar.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevMergedBar.js +1 -52
- package/dist/internal/layout/zones/DnDevSidebar.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevSidebar.js +1 -181
- package/dist/internal/layout/zones/index.js +1 -14
- package/dist/internal/providers/NavigationProvider.d.ts.map +1 -1
- package/dist/internal/providers/NavigationProvider.js +1 -71
- package/dist/internal/providers/SentryInitializer.d.ts.map +1 -1
- package/dist/internal/providers/SentryInitializer.js +1 -36
- package/dist/internal/providers/UIProviders.js +1 -79
- package/dist/internal/providers/index.js +1 -12
- package/dist/next.js +1 -11
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/NextJsAppProviders.js +1 -107
- package/dist/providers/ViteAppProviders.d.ts +11 -9
- package/dist/providers/ViteAppProviders.d.ts.map +1 -1
- package/dist/providers/ViteAppProviders.js +1 -117
- package/dist/providers/index.js +1 -11
- package/dist/routing/404.js +1 -108
- package/dist/routing/AuthGuard.js +1 -178
- package/dist/routing/AuthGuardFallback.d.ts.map +1 -1
- package/dist/routing/AuthGuardFallback.js +1 -67
- package/dist/routing/AuthReturnTo.js +1 -68
- package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
- package/dist/routing/DnDevNavigationMenu.js +1 -138
- package/dist/routing/GoTo.d.ts.map +1 -1
- package/dist/routing/GoTo.js +1 -38
- package/dist/routing/GoToDialog.d.ts.map +1 -1
- package/dist/routing/GoToDialog.js +1 -97
- package/dist/routing/GoToInput.d.ts.map +1 -1
- package/dist/routing/GoToInput.js +1 -49
- package/dist/routing/GoToWrapper.d.ts.map +1 -1
- package/dist/routing/GoToWrapper.js +1 -59
- package/dist/routing/Link.d.ts +10 -2
- package/dist/routing/Link.d.ts.map +1 -1
- package/dist/routing/Link.js +1 -109
- package/dist/routing/NavigationItem.d.ts.map +1 -1
- package/dist/routing/NavigationItem.js +1 -44
- package/dist/routing/NotFoundDocument.d.ts +33 -0
- package/dist/routing/NotFoundDocument.d.ts.map +1 -0
- package/dist/routing/NotFoundDocument.js +1 -0
- package/dist/routing/SignedInRedirect.js +1 -47
- package/dist/routing/hooks/hooks.next.js +1 -1
- package/dist/routing/hooks/hooks.vite.js +1 -1
- package/dist/routing/hooks/index.js +1 -26
- package/dist/routing/hooks/types.js +0 -2
- package/dist/routing/hooks/useLocation.next.js +1 -35
- package/dist/routing/hooks/useLocation.vite.js +1 -13
- package/dist/routing/hooks/useMatch.next.js +1 -31
- package/dist/routing/hooks/useMatch.vite.js +1 -6
- package/dist/routing/hooks/useNavigate.next.js +1 -64
- package/dist/routing/hooks/useNavigate.vite.js +1 -61
- package/dist/routing/hooks/useParams.next.js +1 -9
- package/dist/routing/hooks/useParams.vite.js +1 -6
- package/dist/routing/hooks/useQueryParams.next.js +1 -66
- package/dist/routing/hooks/useQueryParams.vite.js +1 -66
- package/dist/routing/hooks/useRedirectGuard.next.js +1 -119
- package/dist/routing/hooks/useRedirectGuard.vite.js +1 -117
- package/dist/routing/hooks/useRouteParam.next.js +1 -38
- package/dist/routing/hooks/useRouteParam.vite.js +1 -38
- package/dist/routing/hooks/useRoutePath.next.d.ts +5 -3
- package/dist/routing/hooks/useRoutePath.next.d.ts.map +1 -1
- package/dist/routing/hooks/useRoutePath.next.js +1 -36
- package/dist/routing/hooks/useRoutePath.vite.js +1 -25
- package/dist/routing/hooks/useSearchParams.next.js +1 -22
- package/dist/routing/hooks/useSearchParams.vite.js +1 -22
- package/dist/routing/hooks/useUrlLanguage.next.js +1 -50
- package/dist/routing/hooks/useUrlLanguage.vite.js +1 -41
- package/dist/routing/index.d.ts +1 -0
- package/dist/routing/index.d.ts.map +1 -1
- package/dist/routing/index.js +1 -32
- package/dist/routing/link/InternalLink.next.d.ts +23 -0
- package/dist/routing/link/InternalLink.next.d.ts.map +1 -0
- package/dist/routing/link/InternalLink.next.js +1 -0
- package/dist/routing/link/InternalLink.vite.d.ts +22 -0
- package/dist/routing/link/InternalLink.vite.d.ts.map +1 -0
- package/dist/routing/link/InternalLink.vite.js +1 -0
- package/dist/routing/link/absolutePath.d.ts +17 -0
- package/dist/routing/link/absolutePath.d.ts.map +1 -0
- package/dist/routing/link/absolutePath.js +1 -0
- package/dist/routing/link/link.next.d.ts +12 -0
- package/dist/routing/link/link.next.d.ts.map +1 -0
- package/dist/routing/link/link.next.js +1 -0
- package/dist/routing/link/link.vite.d.ts +12 -0
- package/dist/routing/link/link.vite.d.ts.map +1 -0
- package/dist/routing/link/link.vite.js +1 -0
- package/dist/routing/link/types.d.ts +30 -0
- package/dist/routing/link/types.d.ts.map +1 -0
- package/dist/routing/link/types.js +0 -0
- package/dist/routing/parentRoute.js +1 -43
- package/dist/routing/useGoTo.d.ts.map +1 -1
- package/dist/routing/useGoTo.js +1 -59
- package/dist/routing/useNavigation.d.ts.map +1 -1
- package/dist/routing/useNavigation.js +1 -114
- package/dist/routing/useRouteDiscovery.d.ts +4 -0
- package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
- package/dist/routing/useRouteDiscovery.js +1 -313
- package/dist/rsc.d.ts +28 -0
- package/dist/rsc.d.ts.map +1 -0
- package/dist/rsc.js +1 -0
- package/dist/styles/index.css +113 -41
- package/dist/styles/index.js +1 -10
- package/dist/styles/layoutConstants.js +1 -134
- package/dist/symbol-index.json +1 -1
- package/dist/utils/assetResolver.d.ts +19 -19
- package/dist/utils/assetResolver.d.ts.map +1 -1
- package/dist/utils/assetResolver.js +1 -297
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -23
- package/dist/utils/sanitizeSvg.js +1 -51
- package/dist/utils/tList.js +1 -42
- package/dist/utils/useAISafe.d.ts.map +1 -1
- package/dist/utils/useAISafe.js +1 -53
- package/dist/utils/useAuthSafe.d.ts.map +1 -1
- package/dist/utils/useAuthSafe.js +1 -78
- package/dist/utils/useAuthVisibility.d.ts.map +1 -1
- package/dist/utils/useAuthVisibility.js +1 -63
- package/dist/utils/useBillingVisibility.d.ts.map +1 -1
- package/dist/utils/useBillingVisibility.js +1 -57
- package/dist/utils/useCrudSafe.d.ts.map +1 -1
- package/dist/utils/useCrudSafe.js +1 -75
- package/dist/utils/useDeleteAccountSafe.js +1 -52
- package/dist/utils/useFormStoreSafe.d.ts.map +1 -1
- package/dist/utils/useFormStoreSafe.js +1 -85
- package/dist/utils/useOAuthSafe.d.ts.map +1 -1
- package/dist/utils/useOAuthSafe.js +1 -38
- package/dist/utils/useStripeBillingSafe.d.ts.map +1 -1
- package/dist/utils/useStripeBillingSafe.js +1 -81
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +1 -235
- package/dist/vite-routing/RootLayout.d.ts.map +1 -1
- package/dist/vite-routing/RootLayout.js +1 -205
- package/dist/vite-routing/index.js +1 -11
- package/dist/vite.js +1 -10
- package/guidelines/COMPONENTS.md +3 -3
- package/guidelines/PAGES.md +3 -0
- package/guidelines/ROUTING.md +16 -0
- package/guidelines/SEO.md +160 -142
- package/package.json +18 -8
- package/dist/ChildRowsPicker-63M4EQUQ.js +0 -1
- package/dist/ChildRowsPicker-ISP365ON.js +0 -1
- package/dist/ChildRowsPicker-PQFE6NCR.js +0 -1
- package/dist/ChildRowsPicker-XXFFSMWY.js +0 -1
- package/dist/CookieConsent-QOUAY6B4.js +0 -1
- package/dist/GoToDialog-KSBGOIWO.js +0 -1
- package/dist/GoToDialog-XBK5EZF4.js +0 -1
- package/dist/chunk-3CIZFGST.js +0 -1
- package/dist/chunk-LHMKU342.js +0 -1
- package/dist/chunk-MS7ZIW5Z.js +0 -1
- package/dist/chunk-O2XFH626.js +0 -1
- package/dist/chunk-P2DHZWPY.js +0 -1
- package/dist/components/common/lucideIconByName.d.ts +0 -9
- package/dist/components/common/lucideIconByName.d.ts.map +0 -1
- package/dist/components/common/lucideIconByName.js +0 -32
- package/dist/internal/layout/components/PerformanceHints.d.ts +0 -71
- package/dist/internal/layout/components/PerformanceHints.d.ts.map +0 -1
- package/dist/internal/layout/components/PerformanceHints.js +0 -71
- package/dist/internal/layout/components/i18nSeoMeta.d.ts +0 -54
- package/dist/internal/layout/components/i18nSeoMeta.d.ts.map +0 -1
- package/dist/internal/layout/components/i18nSeoMeta.js +0 -53
- package/dist/utils/useSeo.d.ts +0 -129
- package/dist/utils/useSeo.d.ts.map +0 -1
- package/dist/utils/useSeo.js +0 -151
package/dist/dndev.css
CHANGED
|
@@ -172,13 +172,17 @@
|
|
|
172
172
|
/* DRY: Default font for everything */
|
|
173
173
|
--font-family: var(--font-sans);
|
|
174
174
|
|
|
175
|
-
/* Sans-serif: Inter (2026 standard)
|
|
175
|
+
/* Sans-serif: Inter (2026 standard). '<Family> Fallback': size-matched local face
|
|
176
|
+
shown until the web font loads, so the swap shifts no layout (Next: defined in
|
|
177
|
+
public/dndev-fonts.css, see @donotdev/core config/fonts/fontFallback.js) */
|
|
176
178
|
--font-sans:
|
|
177
|
-
Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
178
|
-
Arial, sans-serif;
|
|
179
|
+
Inter, 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
180
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
179
181
|
|
|
180
182
|
/* Serif: Playfair Display (headlines) */
|
|
181
|
-
--font-serif:
|
|
183
|
+
--font-serif:
|
|
184
|
+
'Playfair Display', 'Playfair Display Fallback', Georgia, 'Times New Roman',
|
|
185
|
+
serif;
|
|
182
186
|
|
|
183
187
|
/* Headlines use sans by default (serif available for opt-in) */
|
|
184
188
|
--font-headline: var(--font-sans);
|
|
@@ -1231,7 +1235,9 @@ em {
|
|
|
1231
1235
|
var(--floating-glow-start) 100%
|
|
1232
1236
|
);
|
|
1233
1237
|
|
|
1234
|
-
|
|
1238
|
+
/* --floating-background: optional theme token, set on :root / theme class
|
|
1239
|
+
(e.g. var(--popover)) to flatten every floating surface. Unset = glow gradient. */
|
|
1240
|
+
background: var(--floating-background, var(--floating-glow-gradient));
|
|
1235
1241
|
color: var(--popover-foreground);
|
|
1236
1242
|
border: var(--border-hairline) solid var(--line-2);
|
|
1237
1243
|
border-radius: var(--radius-floating);
|
|
@@ -1263,11 +1269,14 @@ em {
|
|
|
1263
1269
|
background: var(--popover);
|
|
1264
1270
|
}
|
|
1265
1271
|
.dndev-floating:dir(rtl) {
|
|
1266
|
-
background:
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1272
|
+
background: var(
|
|
1273
|
+
--floating-background,
|
|
1274
|
+
linear-gradient(
|
|
1275
|
+
135deg,
|
|
1276
|
+
var(--floating-glow-start) 0%,
|
|
1277
|
+
var(--floating-glow-mid) 50%,
|
|
1278
|
+
var(--floating-glow-end) 100%
|
|
1279
|
+
)
|
|
1271
1280
|
);
|
|
1272
1281
|
}
|
|
1273
1282
|
/* Size variants - ONLY 3 sizes */
|
|
@@ -1757,7 +1766,7 @@ em {
|
|
|
1757
1766
|
font-size: var(--font-size-input);
|
|
1758
1767
|
color: var(--foreground);
|
|
1759
1768
|
cursor: pointer;
|
|
1760
|
-
transition: color var(--
|
|
1769
|
+
transition: color var(--dur-fast) var(--ease-in-out);
|
|
1761
1770
|
|
|
1762
1771
|
/* Subtle hover on label text */
|
|
1763
1772
|
}
|
|
@@ -3247,6 +3256,23 @@ em {
|
|
|
3247
3256
|
.dndev-calendar-day-hidden {
|
|
3248
3257
|
visibility: hidden;
|
|
3249
3258
|
}
|
|
3259
|
+
|
|
3260
|
+
/* LazyCalendar placeholder while the calendar chunk loads: the rendered calendar's
|
|
3261
|
+
size (caption + weekday row + 6 weeks of day cells, 7 columns), borders outside as
|
|
3262
|
+
on .dndev-calendar, so the popover neither resizes nor flips when it arrives */
|
|
3263
|
+
.dndev-calendar-fallback {
|
|
3264
|
+
box-sizing: content-box;
|
|
3265
|
+
width: calc(var(--touch-target) * 7);
|
|
3266
|
+
height: calc(var(--touch-target) * 8);
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
/* LazyCalendar error (calendar chunk failed to load), in the popover */
|
|
3270
|
+
.dndev-calendar-error {
|
|
3271
|
+
box-sizing: content-box;
|
|
3272
|
+
width: calc(var(--touch-target) * 7);
|
|
3273
|
+
padding: calc(var(--touch-target) / 4);
|
|
3274
|
+
color: var(--destructive-foreground);
|
|
3275
|
+
}
|
|
3250
3276
|
/* packages/components/src/atomic/DatePicker/DatePicker.css */
|
|
3251
3277
|
|
|
3252
3278
|
/**
|
|
@@ -5639,8 +5665,8 @@ em {
|
|
|
5639
5665
|
display: flex;
|
|
5640
5666
|
align-items: center;
|
|
5641
5667
|
justify-content: center;
|
|
5642
|
-
width:
|
|
5643
|
-
height:
|
|
5668
|
+
width: var(--touch-target);
|
|
5669
|
+
height: var(--touch-target);
|
|
5644
5670
|
border: none;
|
|
5645
5671
|
border-radius: var(--radius-full);
|
|
5646
5672
|
/* --card not --background: surface must be opaque */
|
|
@@ -6443,6 +6469,11 @@ input[type='number'] {
|
|
|
6443
6469
|
gap: var(--gap-none);
|
|
6444
6470
|
}
|
|
6445
6471
|
|
|
6472
|
+
/* Sub-menu lists: base.css gives every ul list-style disc */
|
|
6473
|
+
.dndev-nav-menu-grid-container {
|
|
6474
|
+
list-style: none;
|
|
6475
|
+
}
|
|
6476
|
+
|
|
6446
6477
|
/* Navigation trigger - NavigationMenu-specific styles only */
|
|
6447
6478
|
.dndev-interactive[data-role='nav-trigger'] {
|
|
6448
6479
|
height: var(--touch-target);
|
|
@@ -6454,6 +6485,12 @@ input[type='number'] {
|
|
|
6454
6485
|
background-color: rgb(from var(--accent) r g b / 0.5);
|
|
6455
6486
|
}
|
|
6456
6487
|
|
|
6488
|
+
/* Active page: top-level links, overflow dropdown links, sub-menu links */
|
|
6489
|
+
.dndev-interactive[data-role='menu-item'][data-active='true'],
|
|
6490
|
+
.dndev-nav-menu-item-container[data-active='true'] {
|
|
6491
|
+
background-color: rgb(from var(--accent) r g b / 0.5);
|
|
6492
|
+
}
|
|
6493
|
+
|
|
6457
6494
|
.dndev-nav-menu-trigger-icon {
|
|
6458
6495
|
position: relative;
|
|
6459
6496
|
top: 1px;
|
|
@@ -8519,7 +8556,7 @@ input[type='number'] {
|
|
|
8519
8556
|
.dndev-swipe-action-content {
|
|
8520
8557
|
flex: 0 0 100%;
|
|
8521
8558
|
min-inline-size: 0;
|
|
8522
|
-
min-block-size:
|
|
8559
|
+
min-block-size: var(--touch-target);
|
|
8523
8560
|
scroll-snap-align: start;
|
|
8524
8561
|
background: var(--background);
|
|
8525
8562
|
}
|
|
@@ -8542,8 +8579,8 @@ input[type='number'] {
|
|
|
8542
8579
|
display: flex;
|
|
8543
8580
|
align-items: center;
|
|
8544
8581
|
justify-content: center;
|
|
8545
|
-
min-inline-size:
|
|
8546
|
-
min-block-size:
|
|
8582
|
+
min-inline-size: var(--touch-target);
|
|
8583
|
+
min-block-size: var(--touch-target);
|
|
8547
8584
|
border: 0;
|
|
8548
8585
|
font: inherit;
|
|
8549
8586
|
cursor: pointer;
|
|
@@ -9128,34 +9165,52 @@ input[type='number'] {
|
|
|
9128
9165
|
display: none;
|
|
9129
9166
|
}
|
|
9130
9167
|
|
|
9131
|
-
/*
|
|
9168
|
+
/* Collapsed: one square + at the inline end. Expanded: [ − qty + ].
|
|
9169
|
+
Rows are fixed in both states (no vertical shift); only the inline size animates,
|
|
9170
|
+
growing from the inline end toward the inline start. */
|
|
9132
9171
|
.dndev-quantity-stepper {
|
|
9133
|
-
--quantity-target:
|
|
9134
|
-
/*
|
|
9135
|
-
|
|
9136
|
-
--quantity-cell: max(
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
);
|
|
9172
|
+
--quantity-target: var(--touch-target);
|
|
9173
|
+
/* The cell IS the touch target: padding and icons fit inside it. State-independent,
|
|
9174
|
+
so the larger collapsed icon never changes the row; only enlarged text grows it. */
|
|
9175
|
+
--quantity-cell: max(var(--quantity-target), calc(1lh + 2 * var(--gap-sm)));
|
|
9176
|
+
/* Quantity field: three tabular digits plus breathing room. */
|
|
9177
|
+
--quantity-field: calc(3ch + var(--gap-sm));
|
|
9178
|
+
--quantity-square: calc(var(--quantity-cell) + 2 * var(--border-hairline));
|
|
9179
|
+
--quantity-expanded: calc(2 * var(--quantity-cell) + var(--quantity-field) + 2 * var(--border-hairline));
|
|
9140
9180
|
display: inline-grid;
|
|
9141
|
-
|
|
9181
|
+
/* − and the quantity shrink to nothing while collapsed or mid-transition; + is always one cell. */
|
|
9182
|
+
grid-template-columns: minmax(0, var(--quantity-cell)) minmax(0, var(--quantity-field)) var(--quantity-cell);
|
|
9142
9183
|
grid-template-rows: var(--quantity-cell);
|
|
9143
|
-
inline-size:
|
|
9144
|
-
min-inline-size:
|
|
9184
|
+
inline-size: var(--quantity-expanded);
|
|
9185
|
+
min-inline-size: var(--quantity-expanded);
|
|
9145
9186
|
border: var(--border-hairline) solid var(--border);
|
|
9146
9187
|
border-radius: var(--radius-interactive);
|
|
9147
9188
|
background: var(--interactive);
|
|
9148
9189
|
color: var(--foreground);
|
|
9190
|
+
transition:
|
|
9191
|
+
inline-size var(--dur-normal) var(--ease-in-out),
|
|
9192
|
+
min-inline-size var(--dur-normal) var(--ease-in-out);
|
|
9193
|
+
|
|
9194
|
+
/* A clickable quantity is a target of its own: keep it at the touch target. */
|
|
9149
9195
|
}
|
|
9196
|
+
.dndev-quantity-stepper:has( > button.dndev-quantity-stepper-value) {
|
|
9197
|
+
--quantity-field: max(var(--quantity-target), calc(3ch + var(--gap-sm)));
|
|
9198
|
+
}
|
|
9150
9199
|
.dndev-quantity-stepper[data-full-width] {
|
|
9151
9200
|
display: grid;
|
|
9201
|
+
grid-template-columns: minmax(0, var(--quantity-cell)) minmax(0, 1fr) var(--quantity-cell);
|
|
9152
9202
|
inline-size: 100%;
|
|
9203
|
+
/* The collapsed + sits at the inline end; resolves to zero once expanded. */
|
|
9204
|
+
margin-inline-start: auto;
|
|
9205
|
+
}
|
|
9206
|
+
.dndev-quantity-stepper[data-collapsed]:not([data-vertical]) {
|
|
9207
|
+
inline-size: var(--quantity-square);
|
|
9208
|
+
min-inline-size: var(--quantity-square);
|
|
9153
9209
|
}
|
|
9154
9210
|
.dndev-quantity-stepper[data-disabled] {
|
|
9155
9211
|
opacity: 0.6;
|
|
9156
9212
|
}
|
|
9157
9213
|
.dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
|
|
9158
|
-
min-inline-size: var(--quantity-target);
|
|
9159
9214
|
min-block-size: var(--quantity-target);
|
|
9160
9215
|
border: none;
|
|
9161
9216
|
border-radius: inherit;
|
|
@@ -9177,9 +9232,10 @@ input[type='number'] {
|
|
|
9177
9232
|
display: flex;
|
|
9178
9233
|
align-items: center;
|
|
9179
9234
|
justify-content: center;
|
|
9180
|
-
|
|
9235
|
+
/* The cell is the target: the icon centres inside it. */
|
|
9236
|
+
padding: 0;
|
|
9181
9237
|
cursor: pointer;
|
|
9182
|
-
transition: background-color var(--
|
|
9238
|
+
transition: background-color var(--dur-fast) var(--ease-in-out);
|
|
9183
9239
|
/* Press-and-hold repeats: no text selection or touch callout on long press. */
|
|
9184
9240
|
-moz-user-select: none;
|
|
9185
9241
|
user-select: none;
|
|
@@ -9190,9 +9246,20 @@ input[type='number'] {
|
|
|
9190
9246
|
background: var(--muted);
|
|
9191
9247
|
}
|
|
9192
9248
|
:is(.dndev-quantity-stepper > button) > svg {
|
|
9249
|
+
flex-shrink: 0;
|
|
9193
9250
|
inline-size: var(--icon-md);
|
|
9194
9251
|
block-size: var(--icon-md);
|
|
9195
9252
|
}
|
|
9253
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper > .dndev-quantity-stepper-value {
|
|
9254
|
+
min-inline-size: 0;
|
|
9255
|
+
/* Clips the icon/digits while the track is narrower than them. The focus ring is
|
|
9256
|
+
the element's own box-shadow, outside its box, so it is never clipped. */
|
|
9257
|
+
overflow: hidden;
|
|
9258
|
+
transition:
|
|
9259
|
+
opacity var(--dur-normal) var(--ease-in-out),
|
|
9260
|
+
visibility var(--dur-normal) var(--ease-in-out),
|
|
9261
|
+
background-color var(--dur-fast) var(--ease-in-out);
|
|
9262
|
+
}
|
|
9196
9263
|
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
|
|
9197
9264
|
grid-area: 1 / 1;
|
|
9198
9265
|
}
|
|
@@ -9201,12 +9268,13 @@ input[type='number'] {
|
|
|
9201
9268
|
}
|
|
9202
9269
|
.dndev-quantity-stepper > .dndev-quantity-stepper-increment {
|
|
9203
9270
|
grid-area: 1 / 3;
|
|
9271
|
+
min-inline-size: var(--quantity-target);
|
|
9204
9272
|
}
|
|
9205
9273
|
.dndev-quantity-stepper[data-vertical] {
|
|
9206
9274
|
grid-template-columns: minmax(var(--quantity-cell), 1fr);
|
|
9207
9275
|
grid-template-rows: repeat(3, var(--quantity-cell));
|
|
9208
|
-
inline-size: var(--quantity-
|
|
9209
|
-
min-inline-size: var(--quantity-
|
|
9276
|
+
inline-size: var(--quantity-square);
|
|
9277
|
+
min-inline-size: var(--quantity-square);
|
|
9210
9278
|
}
|
|
9211
9279
|
.dndev-quantity-stepper[data-vertical][data-full-width] {
|
|
9212
9280
|
inline-size: 100%;
|
|
@@ -9222,15 +9290,17 @@ input[type='number'] {
|
|
|
9222
9290
|
}
|
|
9223
9291
|
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
|
|
9224
9292
|
visibility: hidden;
|
|
9293
|
+
opacity: 0;
|
|
9225
9294
|
pointer-events: none;
|
|
9226
9295
|
}
|
|
9227
|
-
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
|
|
9228
|
-
|
|
9296
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment > svg {
|
|
9297
|
+
inline-size: calc(var(--quantity-target) * 0.6);
|
|
9298
|
+
block-size: calc(var(--quantity-target) * 0.6);
|
|
9229
9299
|
}
|
|
9230
|
-
:
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9300
|
+
/* Vertical keeps its stacked footprint: the collapsed + spans all three cells. */
|
|
9301
|
+
.dndev-quantity-stepper[data-vertical][data-collapsed] > .dndev-quantity-stepper-increment {
|
|
9302
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
9303
|
+
}
|
|
9234
9304
|
|
|
9235
9305
|
.dndev-quantity-stepper-value {
|
|
9236
9306
|
box-sizing: border-box;
|
|
@@ -9239,7 +9309,7 @@ input[type='number'] {
|
|
|
9239
9309
|
justify-content: center;
|
|
9240
9310
|
inline-size: 100%;
|
|
9241
9311
|
min-inline-size: 0;
|
|
9242
|
-
padding-inline:
|
|
9312
|
+
padding-inline: 0;
|
|
9243
9313
|
border: none;
|
|
9244
9314
|
background: none;
|
|
9245
9315
|
color: inherit;
|
|
@@ -9247,11 +9317,13 @@ input[type='number'] {
|
|
|
9247
9317
|
font-weight: var(--font-weight-medium);
|
|
9248
9318
|
font-variant-numeric: tabular-nums;
|
|
9249
9319
|
text-align: center;
|
|
9250
|
-
|
|
9251
9320
|
}
|
|
9252
9321
|
|
|
9253
9322
|
@media (prefers-reduced-motion: reduce) {
|
|
9254
|
-
.dndev-quantity-stepper
|
|
9323
|
+
.dndev-quantity-stepper,
|
|
9324
|
+
.dndev-quantity-stepper > button,
|
|
9325
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement,
|
|
9326
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-value {
|
|
9255
9327
|
transition: none;
|
|
9256
9328
|
}
|
|
9257
9329
|
}
|