@donotdev/ui 0.1.1 → 0.1.43
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/LICENSE.md +21 -242
- package/README.md +1 -19
- package/assets/apple-touch-icon.png +0 -0
- package/assets/favicon.ico +0 -0
- package/assets/fonts/Inter-latin-ext.woff2 +0 -0
- package/assets/fonts/Inter-latin.woff2 +0 -0
- package/assets/fonts/PlayfairDisplay-latin-ext.woff2 +0 -0
- package/assets/fonts/PlayfairDisplay-latin.woff2 +0 -0
- package/assets/fonts/Roboto-400-cyrillic-ext.woff2 +0 -0
- package/assets/fonts/Roboto-400-cyrillic.woff2 +0 -0
- package/assets/fonts/Roboto-400-greek-ext.woff2 +0 -0
- package/assets/fonts/Roboto-400-greek.woff2 +0 -0
- package/assets/fonts/Roboto-400-latin-ext.woff2 +0 -0
- package/assets/fonts/Roboto-400-latin.woff2 +0 -0
- package/assets/fonts/Roboto-400-vietnamese.woff2 +0 -0
- package/assets/fonts/Roboto-700-cyrillic-ext.woff2 +0 -0
- package/assets/fonts/Roboto-700-cyrillic.woff2 +0 -0
- package/assets/fonts/Roboto-700-greek-ext.woff2 +0 -0
- package/assets/fonts/Roboto-700-greek.woff2 +0 -0
- package/assets/fonts/Roboto-700-latin-ext.woff2 +0 -0
- package/assets/fonts/Roboto-700-latin.woff2 +0 -0
- package/assets/fonts/Roboto-700-vietnamese.woff2 +0 -0
- package/assets/icon-192x192.png +0 -0
- package/assets/icon-512x512.png +0 -0
- package/assets/logo.png +0 -0
- package/assets/logo.svg +1 -1
- package/assets/manifest.json +0 -0
- package/dist/CookieConsent-5NH5DNTP.js +1 -0
- package/dist/{GoToDialog-RU5RP7S2.js → GoToDialog-CICRYHHG.js} +1 -1
- package/dist/chunk-MIPTBUWY.js +1 -0
- package/dist/components/common/FeatureCard.d.ts +9 -6
- package/dist/components/common/FeatureCard.d.ts.map +1 -1
- package/dist/components/common/FeatureCard.js +43 -32
- package/dist/components/cookie-consent/CookieConsent.d.ts +3 -3
- package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
- package/dist/components/cookie-consent/CookieConsent.js +36 -35
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -1
- package/dist/components/layout/components/header/CacheSettings.d.ts.map +1 -1
- package/dist/components/layout/components/header/CacheSettings.js +6 -2
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +17 -4
- package/dist/crud/components/EntityDisplayRenderer.js +4 -4
- package/dist/crud/components/EntityFormRenderer.d.ts +6 -1
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +31 -21
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +56 -72
- package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
- package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
- package/dist/crud/components/EntityWorkflow.js +1 -1
- package/dist/crud/crudImports.d.ts +0 -1
- package/dist/crud/crudImports.d.ts.map +1 -1
- package/dist/crud/crudImports.js +0 -1
- package/dist/dndev-next.css +659 -107
- package/dist/dndev.css +794 -113
- package/dist/files/inter-cyrillic-300-normal.woff +0 -0
- package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-400-normal.woff +0 -0
- package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-600-normal.woff +0 -0
- package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-700-normal.woff +0 -0
- package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-greek-300-normal.woff +0 -0
- package/dist/files/inter-greek-300-normal.woff2 +0 -0
- package/dist/files/inter-greek-400-normal.woff +0 -0
- package/dist/files/inter-greek-400-normal.woff2 +0 -0
- package/dist/files/inter-greek-600-normal.woff +0 -0
- package/dist/files/inter-greek-600-normal.woff2 +0 -0
- package/dist/files/inter-greek-700-normal.woff +0 -0
- package/dist/files/inter-greek-700-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-300-normal.woff +0 -0
- package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-400-normal.woff +0 -0
- package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-600-normal.woff +0 -0
- package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-700-normal.woff +0 -0
- package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-latin-300-normal.woff +0 -0
- package/dist/files/inter-latin-300-normal.woff2 +0 -0
- package/dist/files/inter-latin-400-normal.woff +0 -0
- package/dist/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/files/inter-latin-600-normal.woff +0 -0
- package/dist/files/inter-latin-600-normal.woff2 +0 -0
- package/dist/files/inter-latin-700-normal.woff +0 -0
- package/dist/files/inter-latin-700-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-300-normal.woff +0 -0
- package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-400-normal.woff +0 -0
- package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-600-normal.woff +0 -0
- package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-700-normal.woff +0 -0
- package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-300-normal.woff +0 -0
- package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-400-normal.woff +0 -0
- package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-600-normal.woff +0 -0
- package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-700-normal.woff +0 -0
- package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-400-normal.woff +0 -0
- package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-500-normal.woff +0 -0
- package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-600-normal.woff +0 -0
- package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-700-normal.woff +0 -0
- package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
- package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
- package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
- package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
- package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-400-normal.woff +0 -0
- package/dist/files/roboto-greek-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-700-normal.woff +0 -0
- package/dist/files/roboto-greek-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-400-normal.woff +0 -0
- package/dist/files/roboto-latin-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-700-normal.woff +0 -0
- package/dist/files/roboto-latin-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-math-400-normal.woff +0 -0
- package/dist/files/roboto-math-400-normal.woff2 +0 -0
- package/dist/files/roboto-math-700-normal.woff +0 -0
- package/dist/files/roboto-math-700-normal.woff2 +0 -0
- package/dist/files/roboto-symbols-400-normal.woff +0 -0
- package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
- package/dist/files/roboto-symbols-700-normal.woff +0 -0
- package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
- package/dist/index.js +4 -4
- package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
- package/dist/internal/devtools/utils/virtualModuleInspector.d.ts.map +1 -1
- package/dist/internal/devtools/utils/virtualModuleInspector.js +12 -1
- package/dist/internal/initializers/BaseStoresInitializer.d.ts +3 -1
- package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/BaseStoresInitializer.js +8 -4
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts +1 -1
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/NextJsStoresInitializer.js +2 -13
- package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.js +32 -13
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +3 -7
- package/dist/internal/layout/config/presets/moolti.d.ts.map +1 -1
- package/dist/internal/layout/config/presets/moolti.js +11 -13
- package/dist/internal/layout/zones/DnDevFooter.d.ts +1 -1
- package/dist/internal/layout/zones/DnDevFooter.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevFooter.js +1 -1
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/NextJsAppProviders.js +12 -8
- package/dist/routing/AuthGuard.d.ts.map +1 -1
- package/dist/routing/AuthGuard.js +1 -1
- package/dist/routing/AuthReturnTo.d.ts.map +1 -1
- package/dist/routing/GoToInput.d.ts.map +1 -1
- package/dist/routing/GoToInput.js +5 -5
- package/dist/routing/Link.d.ts.map +1 -1
- package/dist/routing/Link.js +14 -0
- package/dist/routing/hooks/hooks.next.js +1 -1
- package/dist/routing/hooks/hooks.vite.js +1 -1
- package/dist/routing/hooks/useNavigate.next.d.ts +2 -6
- package/dist/routing/hooks/useNavigate.next.d.ts.map +1 -1
- package/dist/routing/hooks/useNavigate.next.js +5 -52
- package/dist/routing/hooks/useNavigate.vite.d.ts +2 -6
- package/dist/routing/hooks/useNavigate.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useNavigate.vite.js +5 -52
- package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.js +5 -1
- package/dist/routing/hooks/useRedirectGuard.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.vite.js +5 -1
- package/dist/routing/useGoTo.d.ts.map +1 -1
- package/dist/routing/useGoTo.js +12 -17
- package/dist/styles/index.css +794 -113
- package/dist/symbol-index.json +1 -1
- package/dist/utils/useAuthSafe.d.ts.map +1 -1
- package/dist/utils/useSeo.d.ts +1 -1
- package/dist/utils/useSeo.d.ts.map +1 -1
- package/dist/utils/useSeo.js +3 -1
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +7 -2
- package/dist/vite-routing/RootLayout.d.ts.map +1 -1
- package/dist/vite-routing/RootLayout.js +1 -4
- package/guidelines/COMPONENTS.md +0 -0
- package/guidelines/GOTCHAS.md +0 -0
- package/guidelines/LAYOUTS.md +0 -0
- package/guidelines/PAGES.md +0 -0
- package/guidelines/ROUTING.md +0 -0
- package/guidelines/SEO.md +0 -0
- package/package.json +13 -13
- package/dist/CookieConsent-UVTR7CWW.js +0 -1
- package/dist/chunk-ETE4RC7M.js +0 -1
- package/dist/components/license/LicenseWatermark.d.ts +0 -25
- package/dist/components/license/LicenseWatermark.d.ts.map +0 -1
- package/dist/components/license/LicenseWatermark.js +0 -109
- package/dist/components/license/watermarkData.d.ts +0 -7
- package/dist/components/license/watermarkData.d.ts.map +0 -1
- package/dist/components/license/watermarkData.js +0 -18
package/dist/dndev-next.css
CHANGED
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
Standard touch-friendly sizing for all interactive components
|
|
26
26
|
=========================== */
|
|
27
27
|
--touch-target: 48px;
|
|
28
|
-
--icon-
|
|
28
|
+
--icon-sm: 16px; /* Nested icon size (inside inputs, action buttons, badges) */
|
|
29
|
+
--icon-md: 24px; /* Standard standalone icon size */
|
|
29
30
|
--icon-touch: 32px; /* Large icon size (reserved) */
|
|
30
31
|
|
|
31
32
|
/* ===========================
|
|
@@ -130,6 +131,13 @@
|
|
|
130
131
|
--popover: var(--card);
|
|
131
132
|
--popover-foreground: var(--card-foreground);
|
|
132
133
|
|
|
134
|
+
/*
|
|
135
|
+
* Interactive surface — background for inputs (.dndev-input) and outline
|
|
136
|
+
* buttons (.dndev-interactive[data-variant='outline']). Parallel to --card
|
|
137
|
+
* for containers. Defaults to transparent so apps opt in via themes.css.
|
|
138
|
+
*/
|
|
139
|
+
--interactive: transparent;
|
|
140
|
+
|
|
133
141
|
/*
|
|
134
142
|
* Root card snapshot — computed once on :root from --card/--card-foreground,
|
|
135
143
|
* then inherited unchanged. Variant blocks (e.g. primary) override --card but
|
|
@@ -178,6 +186,7 @@
|
|
|
178
186
|
--font-size-xs: 0.75rem; /* 12px - captions, shortcuts, meta */
|
|
179
187
|
--font-size-sm: 0.875rem; /* 14px - small text, captions */
|
|
180
188
|
--font-size-base: 1rem; /* 16px - body text, DEFAULT */
|
|
189
|
+
--font-size-input: 16px; /* Form field text - hardcoded for iOS zoom + density-proof */
|
|
181
190
|
--font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
|
|
182
191
|
--font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
|
|
183
192
|
--font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
|
|
@@ -276,7 +285,7 @@
|
|
|
276
285
|
Micro-interactions for buttons and interactive elements.
|
|
277
286
|
Set to 0/1 to disable individual effects.
|
|
278
287
|
=========================== */
|
|
279
|
-
--hover-lift:
|
|
288
|
+
--hover-lift: 0; /* translateY on hover (0 = disabled) */
|
|
280
289
|
--click-scale: 0.97; /* scale on click (1 = disabled) */
|
|
281
290
|
--ripple-opacity: 0.2; /* ripple effect opacity (0 = disabled) */
|
|
282
291
|
|
|
@@ -711,13 +720,13 @@ em {
|
|
|
711
720
|
width: 100%;
|
|
712
721
|
border-radius: var(--radius-interactive);
|
|
713
722
|
border: var(--border-hairline) solid var(--line-2);
|
|
714
|
-
background-color: transparent;
|
|
723
|
+
background-color: var(--interactive, transparent);
|
|
715
724
|
color: var(--foreground);
|
|
716
725
|
padding-inline-start: var(--gap-md);
|
|
717
726
|
padding-inline-end: var(--gap-md);
|
|
718
727
|
padding-top: var(--gap-sm);
|
|
719
728
|
padding-bottom: var(--gap-sm);
|
|
720
|
-
font-size:
|
|
729
|
+
font-size: var(--font-size-input);
|
|
721
730
|
box-shadow: var(--shadow-sm);
|
|
722
731
|
transition: all var(--dur-normal) var(--ease-in-out);
|
|
723
732
|
/* Touch target for mobile */
|
|
@@ -735,9 +744,11 @@ em {
|
|
|
735
744
|
}
|
|
736
745
|
.dndev-input::-moz-placeholder {
|
|
737
746
|
color: var(--placeholder);
|
|
747
|
+
font-size: var(--font-size-input);
|
|
738
748
|
}
|
|
739
749
|
.dndev-input::placeholder {
|
|
740
750
|
color: var(--placeholder);
|
|
751
|
+
font-size: var(--font-size-input);
|
|
741
752
|
}
|
|
742
753
|
.dndev-input:hover {
|
|
743
754
|
border-color: var(--ring);
|
|
@@ -780,6 +791,48 @@ em {
|
|
|
780
791
|
[data-placeholder] {
|
|
781
792
|
color: var(--placeholder);
|
|
782
793
|
}
|
|
794
|
+
/* ===========================
|
|
795
|
+
INLINE ACTION BUTTONS
|
|
796
|
+
=========================== */
|
|
797
|
+
/** Shared pattern for inline clear/action buttons inside input-like components.
|
|
798
|
+
* Used by: Combobox trailing buttons, RangeInput clear, DateFilter clear. */
|
|
799
|
+
.dndev-inline-action-btn {
|
|
800
|
+
all: unset;
|
|
801
|
+
display: flex;
|
|
802
|
+
align-items: center;
|
|
803
|
+
justify-content: center;
|
|
804
|
+
width: var(--touch-target);
|
|
805
|
+
height: 100%;
|
|
806
|
+
cursor: pointer;
|
|
807
|
+
color: var(--muted-foreground);
|
|
808
|
+
opacity: var(--opacity-muted, 0.5);
|
|
809
|
+
transition:
|
|
810
|
+
color var(--dur-fast) var(--ease-in-out),
|
|
811
|
+
opacity var(--dur-fast) var(--ease-in-out);
|
|
812
|
+
}
|
|
813
|
+
.dndev-inline-action-btn:hover:not(:disabled) {
|
|
814
|
+
opacity: 1;
|
|
815
|
+
color: var(--foreground);
|
|
816
|
+
}
|
|
817
|
+
.dndev-inline-action-btn:focus-visible {
|
|
818
|
+
opacity: 1;
|
|
819
|
+
color: var(--foreground);
|
|
820
|
+
outline: none;
|
|
821
|
+
box-shadow:
|
|
822
|
+
0 0 0 2px var(--ring),
|
|
823
|
+
0 0 0 4px rgb(from var(--ring) r g b / 0.2);
|
|
824
|
+
}
|
|
825
|
+
.dndev-inline-action-btn:active:not(:disabled) {
|
|
826
|
+
opacity: 0.8;
|
|
827
|
+
}
|
|
828
|
+
.dndev-inline-action-btn:disabled {
|
|
829
|
+
cursor: not-allowed;
|
|
830
|
+
opacity: calc(var(--opacity-muted, 0.5) * 0.5);
|
|
831
|
+
}
|
|
832
|
+
.dndev-inline-action-btn svg {
|
|
833
|
+
width: var(--icon-sm);
|
|
834
|
+
height: var(--icon-sm);
|
|
835
|
+
}
|
|
783
836
|
/* Control base class - checkbox, radio, switch, slider */
|
|
784
837
|
.dndev-control {
|
|
785
838
|
flex-shrink: 0;
|
|
@@ -1249,7 +1302,7 @@ em {
|
|
|
1249
1302
|
text-transform: var(--text-transform-button, none);
|
|
1250
1303
|
transition:
|
|
1251
1304
|
background var(--dur-fast) var(--ease-in-out),
|
|
1252
|
-
|
|
1305
|
+
color var(--dur-fast) var(--ease-in-out),
|
|
1253
1306
|
box-shadow var(--dur-fast) var(--ease-in-out),
|
|
1254
1307
|
border-color var(--dur-fast) var(--ease-in-out);
|
|
1255
1308
|
cursor: pointer;
|
|
@@ -1262,10 +1315,9 @@ em {
|
|
|
1262
1315
|
}
|
|
1263
1316
|
.dndev-interactive:hover {
|
|
1264
1317
|
background: color-mix(in oklab, var(--primary) 85%, var(--foreground));
|
|
1265
|
-
transform: translateY(var(--hover-lift));
|
|
1266
1318
|
}
|
|
1267
1319
|
.dndev-interactive:active:not(:disabled) {
|
|
1268
|
-
transform:
|
|
1320
|
+
transform: scale(var(--click-scale));
|
|
1269
1321
|
}
|
|
1270
1322
|
.dndev-interactive:focus-visible {
|
|
1271
1323
|
outline: none;
|
|
@@ -1332,14 +1384,26 @@ em {
|
|
|
1332
1384
|
background: color-mix(in oklab, var(--muted) 80%, var(--foreground) 20%);
|
|
1333
1385
|
}
|
|
1334
1386
|
/* ═══════════════════════════
|
|
1335
|
-
|
|
1387
|
+
TRANSPARENT VARIANTS
|
|
1336
1388
|
═══════════════════════════ */
|
|
1337
|
-
/*
|
|
1338
|
-
.dndev-interactive[data-variant='outline']
|
|
1389
|
+
/* Outline — themeable interactive surface (parallel to --card) */
|
|
1390
|
+
.dndev-interactive[data-variant='outline'] {
|
|
1391
|
+
background: var(--interactive, transparent);
|
|
1392
|
+
color: var(--foreground);
|
|
1393
|
+
}
|
|
1394
|
+
/* Ghost / nav / menu / command — transparent by design */
|
|
1395
|
+
.dndev-interactive[data-variant='ghost'],.dndev-interactive[data-role='nav-trigger'],.dndev-interactive[data-role='menu-item'],.dndev-interactive[data-role='command-item'] {
|
|
1339
1396
|
background: transparent;
|
|
1340
1397
|
color: var(--foreground);
|
|
1341
1398
|
}
|
|
1342
|
-
|
|
1399
|
+
/* Ghost — hover = font color only, no bg, no lift */
|
|
1400
|
+
.dndev-interactive[data-variant='ghost']:hover {
|
|
1401
|
+
background: transparent;
|
|
1402
|
+
color: var(--primary);
|
|
1403
|
+
transform: none;
|
|
1404
|
+
}
|
|
1405
|
+
/* Outline / menu / nav — hover = subtle tint + text color shift */
|
|
1406
|
+
:is(.dndev-interactive[data-variant='outline'],.dndev-interactive[data-role='nav-trigger'],.dndev-interactive[data-role='menu-item'],.dndev-interactive[data-role='command-item']):hover {
|
|
1343
1407
|
background: rgb(from var(--primary) r g b / 0.1);
|
|
1344
1408
|
color: var(--primary);
|
|
1345
1409
|
}
|
|
@@ -1369,7 +1433,9 @@ em {
|
|
|
1369
1433
|
transition: color var(--dur-fast) ease-out;
|
|
1370
1434
|
}
|
|
1371
1435
|
.dndev-interactive[data-variant='link']:hover {
|
|
1436
|
+
background: transparent;
|
|
1372
1437
|
color: var(--primary);
|
|
1438
|
+
transform: none;
|
|
1373
1439
|
}
|
|
1374
1440
|
/* Context-aware: ONLY inside accent surfaces */
|
|
1375
1441
|
/* Default buttons flip colors */
|
|
@@ -1377,15 +1443,22 @@ em {
|
|
|
1377
1443
|
background: var(--surface-text);
|
|
1378
1444
|
color: var(--surface-bg);
|
|
1379
1445
|
}
|
|
1380
|
-
/* Outline
|
|
1381
|
-
[data-variant='outline']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive)
|
|
1446
|
+
/* Outline adapts with tint */
|
|
1447
|
+
[data-variant='outline']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive) {
|
|
1382
1448
|
color: var(--surface-text);
|
|
1383
1449
|
}
|
|
1384
|
-
|
|
1450
|
+
[data-variant='outline']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive):hover {
|
|
1385
1451
|
background: rgb(from var(--surface-text) r g b / 0.1);
|
|
1386
1452
|
color: var(--surface-text);
|
|
1387
1453
|
}
|
|
1388
|
-
/*
|
|
1454
|
+
/* Ghost adapts — font color only */
|
|
1455
|
+
[data-variant='ghost']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive) {
|
|
1456
|
+
color: var(--surface-text);
|
|
1457
|
+
}
|
|
1458
|
+
[data-variant='ghost']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive):hover {
|
|
1459
|
+
color: var(--surface-text);
|
|
1460
|
+
}
|
|
1461
|
+
/* Unified menu/command/nav item base */
|
|
1389
1462
|
.dndev-interactive[data-role='menu-item'],.dndev-interactive[data-role='command-item'],.dndev-interactive[data-role='nav-trigger'] {
|
|
1390
1463
|
min-height: auto;
|
|
1391
1464
|
padding-block: var(--gap-sm);
|
|
@@ -1528,7 +1601,7 @@ em {
|
|
|
1528
1601
|
/* CONTROL GROUP - Shared pattern for grouped controls (RadioGroup, Checkbox groups) */
|
|
1529
1602
|
.dndev-control-group {
|
|
1530
1603
|
display: grid;
|
|
1531
|
-
gap: var(--gap-
|
|
1604
|
+
gap: var(--gap-sm); /* 8px - tighter spacing for control groups */
|
|
1532
1605
|
|
|
1533
1606
|
/* Control + label pattern - used by RadioGroup, CheckboxFieldComponent, etc. */
|
|
1534
1607
|
}
|
|
@@ -1536,7 +1609,7 @@ em {
|
|
|
1536
1609
|
display: flex;
|
|
1537
1610
|
align-items: center;
|
|
1538
1611
|
gap: var(--gap-sm); /* 8px - spacing between control and label */
|
|
1539
|
-
font-size: var(--font-size-
|
|
1612
|
+
font-size: var(--font-size-input);
|
|
1540
1613
|
color: var(--foreground);
|
|
1541
1614
|
cursor: pointer;
|
|
1542
1615
|
transition: color var(--transition-fast);
|
|
@@ -2108,17 +2181,45 @@ em {
|
|
|
2108
2181
|
word-wrap: break-word;
|
|
2109
2182
|
}
|
|
2110
2183
|
/* packages/components/src/atomic/Alert/Alert.css */
|
|
2184
|
+
/**
|
|
2185
|
+
* Modern inline alert - subtle tint treatment.
|
|
2186
|
+
* Overrides .dndev-surface heaviness (shadow, gradient, asymmetric padding).
|
|
2187
|
+
* Pattern: GitHub Primer / Linear - tinted bg, semantic border, no elevation.
|
|
2188
|
+
*/
|
|
2111
2189
|
.dndev-surface[role='alert'] {
|
|
2112
|
-
|
|
2113
|
-
|
|
2190
|
+
/* Subtle tint: variant color at 8% over transparent */
|
|
2191
|
+
background: color-mix(in oklab, var(--card) 8%, transparent);
|
|
2192
|
+
/* Foreground: page default for readability on subtle bg */
|
|
2193
|
+
color: var(--foreground);
|
|
2194
|
+
/* Semantic border: variant color at 25% */
|
|
2195
|
+
border: var(--border-hairline) solid
|
|
2196
|
+
color-mix(in oklab, var(--card) 25%, transparent);
|
|
2197
|
+
/* No elevation on inline alerts */
|
|
2198
|
+
box-shadow: none;
|
|
2199
|
+
/* Tight symmetric padding */
|
|
2200
|
+
padding: var(--gap-sm) var(--gap-md);
|
|
2114
2201
|
}
|
|
2202
|
+
/* Icon: variant-colored, optically aligned to first text line */
|
|
2203
|
+
.dndev-alert-icon {
|
|
2204
|
+
color: var(--card);
|
|
2205
|
+
width: 1rem;
|
|
2206
|
+
height: 1rem;
|
|
2207
|
+
flex-shrink: 0;
|
|
2208
|
+
margin-block-start: 0.125rem;
|
|
2209
|
+
}
|
|
2210
|
+
/* Title: variant-colored, semibold, compact */
|
|
2115
2211
|
.dndev-alert-title {
|
|
2116
|
-
|
|
2117
|
-
|
|
2212
|
+
color: var(--card);
|
|
2213
|
+
font-weight: var(--font-weight-semibold);
|
|
2214
|
+
font-size: var(--font-size-sm);
|
|
2215
|
+
line-height: 1.25;
|
|
2118
2216
|
letter-spacing: -0.025em;
|
|
2119
2217
|
}
|
|
2218
|
+
/* Description: default foreground, slightly dimmed */
|
|
2120
2219
|
.dndev-alert-description {
|
|
2121
2220
|
font-size: var(--font-size-sm);
|
|
2221
|
+
line-height: 1.4;
|
|
2222
|
+
opacity: 0.85;
|
|
2122
2223
|
}
|
|
2123
2224
|
/* packages/components/src/atomic/Avatar/Avatar.css */
|
|
2124
2225
|
.dndev-avatar {
|
|
@@ -2809,6 +2910,216 @@ em {
|
|
|
2809
2910
|
.dndev-calendar-day-hidden {
|
|
2810
2911
|
visibility: hidden;
|
|
2811
2912
|
}
|
|
2913
|
+
/* packages/components/src/atomic/DatePicker/DatePicker.css */
|
|
2914
|
+
/**
|
|
2915
|
+
* DatePicker Component Styles
|
|
2916
|
+
* Segmented date input with calendar popover.
|
|
2917
|
+
* Mobile: falls back to native <input type="date"> via @media (pointer: coarse).
|
|
2918
|
+
*/
|
|
2919
|
+
/* ===========================
|
|
2920
|
+
ROOT CONTAINER
|
|
2921
|
+
=========================== */
|
|
2922
|
+
.dndev-datepicker {
|
|
2923
|
+
position: relative;
|
|
2924
|
+
display: inline-flex;
|
|
2925
|
+
align-items: center;
|
|
2926
|
+
width: 100%;
|
|
2927
|
+
}
|
|
2928
|
+
/* ===========================
|
|
2929
|
+
DESKTOP: SEGMENTED INPUT
|
|
2930
|
+
=========================== */
|
|
2931
|
+
.dndev-datepicker-custom {
|
|
2932
|
+
display: flex;
|
|
2933
|
+
align-items: center;
|
|
2934
|
+
width: 100%;
|
|
2935
|
+
}
|
|
2936
|
+
/* Input-like container (mirrors .dndev-input from patterns.css) */
|
|
2937
|
+
.dndev-datepicker-field {
|
|
2938
|
+
display: flex;
|
|
2939
|
+
align-items: center;
|
|
2940
|
+
width: 100%;
|
|
2941
|
+
min-height: var(--touch-target);
|
|
2942
|
+
border-radius: var(--radius-interactive);
|
|
2943
|
+
border: var(--border-hairline) solid var(--line-2);
|
|
2944
|
+
background-color: transparent;
|
|
2945
|
+
color: var(--foreground);
|
|
2946
|
+
padding-inline-start: var(--gap-md);
|
|
2947
|
+
padding-inline-end: 0;
|
|
2948
|
+
font-size: var(--font-size-input);
|
|
2949
|
+
box-shadow: var(--shadow-sm);
|
|
2950
|
+
transition: all var(--dur-normal) var(--ease-in-out);
|
|
2951
|
+
touch-action: manipulation;
|
|
2952
|
+
cursor: text;
|
|
2953
|
+
}
|
|
2954
|
+
/* Bare mode inside FloatingLabel (fieldset provides border) */
|
|
2955
|
+
.dndev-datepicker-field[data-bare] {
|
|
2956
|
+
border: none;
|
|
2957
|
+
box-shadow: none;
|
|
2958
|
+
background: transparent;
|
|
2959
|
+
}
|
|
2960
|
+
/* Hover */
|
|
2961
|
+
.dndev-datepicker-field:hover {
|
|
2962
|
+
border-color: var(--ring);
|
|
2963
|
+
}
|
|
2964
|
+
/* Focus-within */
|
|
2965
|
+
.dndev-datepicker-field:focus-within {
|
|
2966
|
+
border-color: var(--ring);
|
|
2967
|
+
outline: none;
|
|
2968
|
+
box-shadow: var(--shadow-focus);
|
|
2969
|
+
}
|
|
2970
|
+
/* Focus-within bare (FloatingLabel handles outer border) */
|
|
2971
|
+
.dndev-datepicker-field[data-bare]:focus-within {
|
|
2972
|
+
box-shadow: none;
|
|
2973
|
+
}
|
|
2974
|
+
/* Error state */
|
|
2975
|
+
.dndev-datepicker-field[aria-invalid='true'],
|
|
2976
|
+
.dndev-datepicker-field[data-variant='destructive'] {
|
|
2977
|
+
border-color: var(--destructive);
|
|
2978
|
+
}
|
|
2979
|
+
/* Disabled */
|
|
2980
|
+
.dndev-datepicker-field[data-disabled] {
|
|
2981
|
+
cursor: not-allowed;
|
|
2982
|
+
opacity: var(--opacity-muted);
|
|
2983
|
+
}
|
|
2984
|
+
/* ===========================
|
|
2985
|
+
SEGMENTS AREA
|
|
2986
|
+
=========================== */
|
|
2987
|
+
.dndev-datepicker-segments {
|
|
2988
|
+
display: flex;
|
|
2989
|
+
align-items: center;
|
|
2990
|
+
flex: 1;
|
|
2991
|
+
min-width: 0;
|
|
2992
|
+
}
|
|
2993
|
+
/* ===========================
|
|
2994
|
+
SEGMENTS
|
|
2995
|
+
=========================== */
|
|
2996
|
+
.dndev-datepicker-segment {
|
|
2997
|
+
display: inline-flex;
|
|
2998
|
+
align-items: center;
|
|
2999
|
+
justify-content: center;
|
|
3000
|
+
padding: var(--gap-tight) 1px;
|
|
3001
|
+
border-radius: 2px;
|
|
3002
|
+
font-variant-numeric: tabular-nums;
|
|
3003
|
+
caret-color: transparent;
|
|
3004
|
+
outline: none;
|
|
3005
|
+
min-width: 2ch;
|
|
3006
|
+
text-align: center;
|
|
3007
|
+
-webkit-user-select: none;
|
|
3008
|
+
-moz-user-select: none;
|
|
3009
|
+
user-select: none;
|
|
3010
|
+
}
|
|
3011
|
+
/* Year segment needs more room */
|
|
3012
|
+
.dndev-datepicker-segment[data-type='year'] {
|
|
3013
|
+
min-width: 4ch;
|
|
3014
|
+
}
|
|
3015
|
+
/* Placeholder text */
|
|
3016
|
+
.dndev-datepicker-segment[data-placeholder] {
|
|
3017
|
+
color: var(--placeholder);
|
|
3018
|
+
}
|
|
3019
|
+
/* Focused segment highlight */
|
|
3020
|
+
.dndev-datepicker-segment:focus {
|
|
3021
|
+
background-color: var(--accent);
|
|
3022
|
+
color: var(--accent-foreground);
|
|
3023
|
+
outline: none;
|
|
3024
|
+
}
|
|
3025
|
+
/* Separator between segments */
|
|
3026
|
+
.dndev-datepicker-separator {
|
|
3027
|
+
color: var(--muted-foreground);
|
|
3028
|
+
padding: 0 1px;
|
|
3029
|
+
-webkit-user-select: none;
|
|
3030
|
+
-moz-user-select: none;
|
|
3031
|
+
user-select: none;
|
|
3032
|
+
}
|
|
3033
|
+
/* ===========================
|
|
3034
|
+
CALENDAR TRIGGER BUTTON (inside field)
|
|
3035
|
+
=========================== */
|
|
3036
|
+
/* Extends .dndev-inline-action-btn from patterns.css */
|
|
3037
|
+
.dndev-datepicker-calendar-btn {
|
|
3038
|
+
flex-shrink: 0;
|
|
3039
|
+
margin-inline-start: auto;
|
|
3040
|
+
}
|
|
3041
|
+
/* ===========================
|
|
3042
|
+
POPOVER
|
|
3043
|
+
=========================== */
|
|
3044
|
+
.dndev-datepicker-popover {
|
|
3045
|
+
padding: 0;
|
|
3046
|
+
}
|
|
3047
|
+
/* Fix: .dndev-floating .dndev-interactive overrides width/justify on ALL
|
|
3048
|
+
interactive children. Calendar needs its own sizing - undo the override. */
|
|
3049
|
+
.dndev-datepicker-popover .dndev-interactive {
|
|
3050
|
+
width: auto;
|
|
3051
|
+
justify-content: center;
|
|
3052
|
+
}
|
|
3053
|
+
/* Calendar nav buttons: restore absolute-positioned fixed size */
|
|
3054
|
+
.dndev-datepicker-popover .dndev-calendar-nav-button {
|
|
3055
|
+
width: var(--touch-target);
|
|
3056
|
+
}
|
|
3057
|
+
/* Calendar day buttons: restore fixed cell size */
|
|
3058
|
+
.dndev-datepicker-popover .dndev-calendar-day-button {
|
|
3059
|
+
width: var(--touch-target);
|
|
3060
|
+
}
|
|
3061
|
+
/* Calendar dropdown triggers: restore full-width inside their cell */
|
|
3062
|
+
.dndev-datepicker-popover .dndev-calendar-dropdown-trigger {
|
|
3063
|
+
width: 100%;
|
|
3064
|
+
}
|
|
3065
|
+
/* ===========================
|
|
3066
|
+
MOBILE: NATIVE INPUT FALLBACK
|
|
3067
|
+
=========================== */
|
|
3068
|
+
.dndev-datepicker-native {
|
|
3069
|
+
display: none;
|
|
3070
|
+
}
|
|
3071
|
+
@media (pointer: coarse) {
|
|
3072
|
+
.dndev-datepicker-custom {
|
|
3073
|
+
display: none;
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
.dndev-datepicker-native {
|
|
3077
|
+
display: flex;
|
|
3078
|
+
width: 100%;
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
/* ===========================
|
|
3082
|
+
SCREEN READER LIVE REGION
|
|
3083
|
+
=========================== */
|
|
3084
|
+
.dndev-datepicker-live {
|
|
3085
|
+
position: absolute;
|
|
3086
|
+
width: 1px;
|
|
3087
|
+
height: 1px;
|
|
3088
|
+
padding: 0;
|
|
3089
|
+
margin: -1px;
|
|
3090
|
+
overflow: hidden;
|
|
3091
|
+
clip: rect(0, 0, 0, 0);
|
|
3092
|
+
white-space: nowrap;
|
|
3093
|
+
border: 0;
|
|
3094
|
+
}
|
|
3095
|
+
/* ===========================
|
|
3096
|
+
DISABLED STATE (root)
|
|
3097
|
+
=========================== */
|
|
3098
|
+
.dndev-datepicker[data-disabled] {
|
|
3099
|
+
pointer-events: none;
|
|
3100
|
+
}
|
|
3101
|
+
/* packages/components/src/atomic/DateTimePicker/DateTimePicker.css */
|
|
3102
|
+
/**
|
|
3103
|
+
* DateTimePicker Component Styles
|
|
3104
|
+
* Extends DatePicker styles with time-segment-specific layout.
|
|
3105
|
+
* Reuses .dndev-datepicker-* classes from DatePicker.css for shared elements
|
|
3106
|
+
* (field, segment, separator, calendar-btn, popover, native, live).
|
|
3107
|
+
*/
|
|
3108
|
+
/* ===========================
|
|
3109
|
+
CUSTOM INPUT CONTAINER
|
|
3110
|
+
=========================== */
|
|
3111
|
+
.dndev-datetimepicker-custom {
|
|
3112
|
+
display: flex;
|
|
3113
|
+
align-items: center;
|
|
3114
|
+
width: 100%;
|
|
3115
|
+
}
|
|
3116
|
+
/* ===========================
|
|
3117
|
+
DATE / TIME SPACER
|
|
3118
|
+
=========================== */
|
|
3119
|
+
.dndev-datetimepicker-spacer {
|
|
3120
|
+
width: var(--gap-md);
|
|
3121
|
+
flex-shrink: 0;
|
|
3122
|
+
}
|
|
2812
3123
|
/* packages/components/src/atomic/CallToAction/CallToAction.css */
|
|
2813
3124
|
.dndev-cta {
|
|
2814
3125
|
color: var(--foreground);
|
|
@@ -2930,6 +3241,7 @@ em {
|
|
|
2930
3241
|
.dndev-cta-actions {
|
|
2931
3242
|
display: flex;
|
|
2932
3243
|
flex-direction: row;
|
|
3244
|
+
flex-wrap: wrap;
|
|
2933
3245
|
gap: var(--gap-md);
|
|
2934
3246
|
justify-content: center;
|
|
2935
3247
|
}
|
|
@@ -2979,13 +3291,40 @@ em {
|
|
|
2979
3291
|
border-color: var(--card);
|
|
2980
3292
|
}
|
|
2981
3293
|
/* packages/components/src/atomic/Card/Card.css */
|
|
2982
|
-
/* Card
|
|
3294
|
+
/* Card root — when a cover is present, move padding off the root so the cover
|
|
3295
|
+
sits flush to the rounded corners. Padding is re-applied inside the body
|
|
3296
|
+
slot (which is the only thing that needs it). Non-cover cards keep the
|
|
3297
|
+
legacy layout so existing consumers render identically. */
|
|
2983
3298
|
.dndev-card {
|
|
2984
3299
|
display: grid;
|
|
2985
3300
|
gap: var(--gap-md);
|
|
2986
3301
|
text-align: start;
|
|
2987
3302
|
align-content: start;
|
|
3303
|
+
position: relative;
|
|
2988
3304
|
}
|
|
3305
|
+
.dndev-surface.dndev-card[data-has-cover='true'] {
|
|
3306
|
+
padding: 0;
|
|
3307
|
+
overflow: hidden;
|
|
3308
|
+
position: relative;
|
|
3309
|
+
/* Remove the grid gap — cover and body are stacked vertically via flow and
|
|
3310
|
+
must sit flush (cover edges meet body edge with no gutter). */
|
|
3311
|
+
gap: 0;
|
|
3312
|
+
}
|
|
3313
|
+
/* Body slot — the padded region that holds header/content/footer.
|
|
3314
|
+
Only rendered when at least one body field is set (see renderCard logic). */
|
|
3315
|
+
.dndev-card-body {
|
|
3316
|
+
display: grid;
|
|
3317
|
+
gap: var(--gap-md);
|
|
3318
|
+
position: relative;
|
|
3319
|
+
z-index: 1;
|
|
3320
|
+
}
|
|
3321
|
+
.dndev-card[data-has-cover='true'] > .dndev-card-body {
|
|
3322
|
+
padding: var(--gap-md);
|
|
3323
|
+
}
|
|
3324
|
+
.dndev-card-body[data-body-background='solid'] {
|
|
3325
|
+
background: var(--card);
|
|
3326
|
+
}
|
|
3327
|
+
/* Card body children spacing */
|
|
2989
3328
|
.dndev-card-header {
|
|
2990
3329
|
display: flex;
|
|
2991
3330
|
flex-direction: column;
|
|
@@ -3009,15 +3348,97 @@ em {
|
|
|
3009
3348
|
word-wrap: break-word;
|
|
3010
3349
|
color: color-mix(in oklab, var(--card-foreground) 70%, transparent);
|
|
3011
3350
|
}
|
|
3351
|
+
/* Cover region — sits flush to the card's rounded corners.
|
|
3352
|
+
- When body is present (data-has-body='true'): cover is a sized header
|
|
3353
|
+
region in flow. Height comes from its own aspect-ratio (inline style).
|
|
3354
|
+
- When cover-only (no body): cover fills the card (inset:0 absolute) while
|
|
3355
|
+
the card itself sets the aspect-ratio on its root. */
|
|
3356
|
+
.dndev-card-cover {
|
|
3357
|
+
position: relative;
|
|
3358
|
+
overflow: hidden;
|
|
3359
|
+
z-index: 0;
|
|
3360
|
+
width: 100%;
|
|
3361
|
+
background: var(--muted);
|
|
3362
|
+
}
|
|
3363
|
+
/* Cover-only: fill the card completely. Card root owns the aspect-ratio. */
|
|
3364
|
+
.dndev-card-cover:not([data-has-body='true']) {
|
|
3365
|
+
position: absolute;
|
|
3366
|
+
inset: 0;
|
|
3367
|
+
height: 100%;
|
|
3368
|
+
}
|
|
3369
|
+
/* Direct media (string cover → <img>, or ReactNode passthrough) fills. */
|
|
3370
|
+
.dndev-card-cover > img,
|
|
3371
|
+
.dndev-card-cover > video,
|
|
3372
|
+
.dndev-card-cover > picture,
|
|
3373
|
+
.dndev-card-cover > picture > img,
|
|
3374
|
+
.dndev-card-cover > .dndev-card-cover-media {
|
|
3375
|
+
display: block;
|
|
3376
|
+
width: 100%;
|
|
3377
|
+
height: 100%;
|
|
3378
|
+
-o-object-fit: cover;
|
|
3379
|
+
object-fit: cover;
|
|
3380
|
+
}
|
|
3381
|
+
/* Consumer-supplied ReactNode: wrapper fills, inner media fills. */
|
|
3382
|
+
.dndev-card-cover-media {
|
|
3383
|
+
position: relative;
|
|
3384
|
+
}
|
|
3385
|
+
.dndev-card-cover-media > img,
|
|
3386
|
+
.dndev-card-cover-media > video,
|
|
3387
|
+
.dndev-card-cover-media > picture,
|
|
3388
|
+
.dndev-card-cover-media > picture > img {
|
|
3389
|
+
display: block;
|
|
3390
|
+
width: 100%;
|
|
3391
|
+
height: 100%;
|
|
3392
|
+
-o-object-fit: cover;
|
|
3393
|
+
object-fit: cover;
|
|
3394
|
+
}
|
|
3395
|
+
/* Full-card overlay — covers entire card surface, participates in card transform.
|
|
3396
|
+
Enabled via data-has-full-overlay; overflow:hidden clips to card border-radius. */
|
|
3397
|
+
.dndev-card[data-has-full-overlay='true'] {
|
|
3398
|
+
overflow: hidden;
|
|
3399
|
+
}
|
|
3400
|
+
.dndev-card-full-overlay {
|
|
3401
|
+
position: absolute;
|
|
3402
|
+
inset: 0;
|
|
3403
|
+
z-index: 3;
|
|
3404
|
+
pointer-events: none;
|
|
3405
|
+
}
|
|
3406
|
+
/* Corner overlay — sits above both cover and body slot. */
|
|
3407
|
+
.dndev-card-overlay {
|
|
3408
|
+
position: absolute;
|
|
3409
|
+
z-index: 2;
|
|
3410
|
+
pointer-events: none;
|
|
3411
|
+
}
|
|
3412
|
+
/* When a full-overlay scrim is present, raise the corner overlay above it. */
|
|
3413
|
+
.dndev-card[data-has-full-overlay='true'] > .dndev-card-overlay {
|
|
3414
|
+
z-index: 4;
|
|
3415
|
+
}
|
|
3416
|
+
.dndev-card[data-overlay-position='top-left'] > .dndev-card-overlay {
|
|
3417
|
+
top: var(--gap-md);
|
|
3418
|
+
inset-inline-start: var(--gap-md);
|
|
3419
|
+
}
|
|
3420
|
+
.dndev-card[data-overlay-position='top-right'] > .dndev-card-overlay {
|
|
3421
|
+
top: var(--gap-md);
|
|
3422
|
+
inset-inline-end: var(--gap-md);
|
|
3423
|
+
}
|
|
3424
|
+
.dndev-card[data-overlay-position='bottom-left'] > .dndev-card-overlay {
|
|
3425
|
+
bottom: var(--gap-md);
|
|
3426
|
+
inset-inline-start: var(--gap-md);
|
|
3427
|
+
}
|
|
3428
|
+
.dndev-card[data-overlay-position='bottom-right'] > .dndev-card-overlay {
|
|
3429
|
+
bottom: var(--gap-md);
|
|
3430
|
+
inset-inline-end: var(--gap-md);
|
|
3431
|
+
}
|
|
3012
3432
|
/* packages/components/src/atomic/Checkbox/Checkbox.css */
|
|
3013
3433
|
.dndev-control[data-type='checkbox'] {
|
|
3014
3434
|
display: inline-flex;
|
|
3015
3435
|
align-items: center;
|
|
3016
3436
|
justify-content: center;
|
|
3017
|
-
width: var(--
|
|
3018
|
-
height: var(--
|
|
3437
|
+
width: var(--font-size-input);
|
|
3438
|
+
height: var(--font-size-input);
|
|
3019
3439
|
aspect-ratio: 1;
|
|
3020
3440
|
border-radius: 4px;
|
|
3441
|
+
background-color: transparent;
|
|
3021
3442
|
}
|
|
3022
3443
|
.dndev-control[data-type='checkbox'][data-state='checked'] {
|
|
3023
3444
|
background-color: var(--primary);
|
|
@@ -3067,8 +3488,8 @@ em {
|
|
|
3067
3488
|
color: currentColor;
|
|
3068
3489
|
}
|
|
3069
3490
|
.dndev-control[data-type='checkbox'] [data-radix-checkbox-indicator] svg {
|
|
3070
|
-
width: var(--
|
|
3071
|
-
height: var(--
|
|
3491
|
+
width: var(--font-size-input);
|
|
3492
|
+
height: var(--font-size-input);
|
|
3072
3493
|
animation: checkbox-check-in var(--dur-fast) var(--ease-in-out);
|
|
3073
3494
|
}
|
|
3074
3495
|
/* Smooth check mark animation */
|
|
@@ -3272,41 +3693,13 @@ em {
|
|
|
3272
3693
|
--combobox-pad-end is set as an inline CSS variable on .dndev-combobox-wrapper. */
|
|
3273
3694
|
.dndev-combobox-wrapper .dndev-input {
|
|
3274
3695
|
padding-inline-end: var(--combobox-pad-end);
|
|
3275
|
-
|
|
3276
|
-
/* Action buttons (create "+", clear "X") */
|
|
3277
|
-
.dndev-combobox-action-btn {
|
|
3278
|
-
all: unset;
|
|
3279
|
-
display: flex;
|
|
3280
|
-
align-items: center;
|
|
3281
|
-
justify-content: center;
|
|
3282
|
-
width: var(--icon-md);
|
|
3283
|
-
height: var(--icon-md);
|
|
3284
|
-
border-radius: var(--radius-interactive, var(--radius-sm, 4px));
|
|
3696
|
+
text-overflow: ellipsis;
|
|
3285
3697
|
cursor: pointer;
|
|
3286
|
-
pointer-events: auto; /* re-enable clicks on buttons */
|
|
3287
|
-
color: var(--muted-foreground);
|
|
3288
|
-
opacity: var(--opacity-muted, 0.5);
|
|
3289
|
-
transition:
|
|
3290
|
-
opacity var(--dur-fast) var(--ease-in-out),
|
|
3291
|
-
background-color var(--dur-fast) var(--ease-in-out);
|
|
3292
|
-
}
|
|
3293
|
-
.dndev-combobox-action-btn:hover {
|
|
3294
|
-
opacity: 1;
|
|
3295
|
-
background-color: var(--accent, rgba(0, 0, 0, 0.06));
|
|
3296
|
-
}
|
|
3297
|
-
.dndev-combobox-action-btn:focus-visible {
|
|
3298
|
-
opacity: 1;
|
|
3299
|
-
outline: none;
|
|
3300
|
-
box-shadow:
|
|
3301
|
-
0 0 0 2px var(--ring),
|
|
3302
|
-
0 0 0 4px rgb(from var(--ring) r g b / 0.2);
|
|
3303
3698
|
}
|
|
3304
|
-
.dndev-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
width: var(--size-icon-sm, 16px);
|
|
3309
|
-
height: var(--size-icon-sm, 16px);
|
|
3699
|
+
/* Action buttons — extends shared .dndev-inline-action-btn from patterns.css.
|
|
3700
|
+
Only Combobox-specific overrides here. */
|
|
3701
|
+
.dndev-combobox-action-btn {
|
|
3702
|
+
pointer-events: auto; /* re-enable clicks (trailing container is pointer-events: none) */
|
|
3310
3703
|
}
|
|
3311
3704
|
/* Create button accent color */
|
|
3312
3705
|
.dndev-combobox-action-btn--create {
|
|
@@ -3316,32 +3709,26 @@ em {
|
|
|
3316
3709
|
.dndev-combobox-action-btn--clear {
|
|
3317
3710
|
color: var(--muted-foreground);
|
|
3318
3711
|
}
|
|
3319
|
-
/* Chevron
|
|
3712
|
+
/* Chevron toggle — extends .dndev-inline-action-btn from patterns.css
|
|
3713
|
+
(same pattern as RangeInput/DatePicker/Combobox clear+create).
|
|
3714
|
+
Only chevron-specific behavior: re-enable clicks in the trailing
|
|
3715
|
+
container and rotate the icon on open. */
|
|
3320
3716
|
.dndev-combobox-chevron {
|
|
3321
|
-
|
|
3322
|
-
height: var(--icon-md);
|
|
3323
|
-
display: flex;
|
|
3324
|
-
align-items: center;
|
|
3325
|
-
justify-content: center;
|
|
3326
|
-
color: var(--muted-foreground);
|
|
3327
|
-
opacity: var(--opacity-muted);
|
|
3328
|
-
pointer-events: none;
|
|
3717
|
+
pointer-events: auto;
|
|
3329
3718
|
}
|
|
3330
3719
|
.dndev-combobox-chevron svg {
|
|
3331
|
-
width: var(--icon-md);
|
|
3332
|
-
height: var(--icon-md);
|
|
3333
3720
|
transition: transform var(--dur-fast) var(--ease-in-out);
|
|
3334
3721
|
}
|
|
3335
3722
|
.dndev-combobox-open .dndev-combobox-chevron svg {
|
|
3336
3723
|
transform: rotate(180deg);
|
|
3337
3724
|
}
|
|
3338
|
-
/* Spinner replaces chevron */
|
|
3725
|
+
/* Spinner replaces chevron — match its footprint so there's no layout shift */
|
|
3339
3726
|
.dndev-combobox-spinner {
|
|
3340
3727
|
display: flex;
|
|
3341
3728
|
align-items: center;
|
|
3342
3729
|
justify-content: center;
|
|
3343
|
-
width: var(--
|
|
3344
|
-
height:
|
|
3730
|
+
width: var(--touch-target);
|
|
3731
|
+
height: 100%;
|
|
3345
3732
|
pointer-events: none;
|
|
3346
3733
|
}
|
|
3347
3734
|
/* ──────────────────────────────────────────────────
|
|
@@ -3381,9 +3768,6 @@ em {
|
|
|
3381
3768
|
Dropdown content
|
|
3382
3769
|
────────────────────────────────────────────────── */
|
|
3383
3770
|
.dndev-combobox-content {
|
|
3384
|
-
width: var(--radix-popover-trigger-width);
|
|
3385
|
-
min-width: var(--radix-popover-trigger-width);
|
|
3386
|
-
max-width: var(--radix-popover-trigger-width);
|
|
3387
3771
|
display: flex;
|
|
3388
3772
|
flex-direction: column;
|
|
3389
3773
|
padding: 0;
|
|
@@ -3427,6 +3811,12 @@ em {
|
|
|
3427
3811
|
font-size: var(--font-size-xs);
|
|
3428
3812
|
color: var(--muted-foreground);
|
|
3429
3813
|
}
|
|
3814
|
+
.dndev-combobox-option-count {
|
|
3815
|
+
font-size: var(--font-size-xs);
|
|
3816
|
+
color: var(--muted-foreground);
|
|
3817
|
+
margin-inline-start: var(--gap-tight);
|
|
3818
|
+
flex-shrink: 0;
|
|
3819
|
+
}
|
|
3430
3820
|
.dndev-combobox-option-check {
|
|
3431
3821
|
width: var(--icon-md);
|
|
3432
3822
|
height: var(--icon-md);
|
|
@@ -4239,10 +4629,12 @@ em {
|
|
|
4239
4629
|
.dndev-hero-section--bg-contain > .dndev-hero-section__text > * {
|
|
4240
4630
|
position: relative;
|
|
4241
4631
|
}
|
|
4242
|
-
.dndev-hero-section--bg-contain[data-justify='center']
|
|
4632
|
+
.dndev-hero-section--bg-contain[data-justify='center']
|
|
4633
|
+
> .dndev-hero-section__text {
|
|
4243
4634
|
justify-content: center;
|
|
4244
4635
|
}
|
|
4245
|
-
.dndev-hero-section--bg-contain[data-justify='start']
|
|
4636
|
+
.dndev-hero-section--bg-contain[data-justify='start']
|
|
4637
|
+
> .dndev-hero-section__text {
|
|
4246
4638
|
justify-content: flex-start;
|
|
4247
4639
|
}
|
|
4248
4640
|
.dndev-hero-subtitle {
|
|
@@ -4363,6 +4755,9 @@ em {
|
|
|
4363
4755
|
border-radius: var(--radius-surface);
|
|
4364
4756
|
background-color: var(--muted);
|
|
4365
4757
|
}
|
|
4758
|
+
.image-gallery__main--lightbox {
|
|
4759
|
+
cursor: zoom-in;
|
|
4760
|
+
}
|
|
4366
4761
|
.image-gallery__main-image {
|
|
4367
4762
|
width: 100%;
|
|
4368
4763
|
height: 100%;
|
|
@@ -4468,6 +4863,40 @@ em {
|
|
|
4468
4863
|
height: 20px;
|
|
4469
4864
|
}
|
|
4470
4865
|
}
|
|
4866
|
+
/* Lightbox (full-size image dialog) */
|
|
4867
|
+
.image-gallery__lightbox.dndev-modal-content {
|
|
4868
|
+
max-width: min(96vw, 1400px);
|
|
4869
|
+
max-height: 96dvh;
|
|
4870
|
+
padding: var(--gap-sm);
|
|
4871
|
+
}
|
|
4872
|
+
.image-gallery__lightbox .dndev-modal-body {
|
|
4873
|
+
padding: 0;
|
|
4874
|
+
display: flex;
|
|
4875
|
+
align-items: center;
|
|
4876
|
+
justify-content: center;
|
|
4877
|
+
overflow: hidden;
|
|
4878
|
+
min-height: 40dvh;
|
|
4879
|
+
}
|
|
4880
|
+
.image-gallery__lightbox-body {
|
|
4881
|
+
position: relative;
|
|
4882
|
+
display: flex;
|
|
4883
|
+
align-items: center;
|
|
4884
|
+
justify-content: center;
|
|
4885
|
+
width: 100%;
|
|
4886
|
+
outline: none;
|
|
4887
|
+
}
|
|
4888
|
+
.image-gallery__lightbox-img {
|
|
4889
|
+
max-width: 100%;
|
|
4890
|
+
max-height: 85dvh;
|
|
4891
|
+
width: auto;
|
|
4892
|
+
height: auto;
|
|
4893
|
+
-o-object-fit: contain;
|
|
4894
|
+
object-fit: contain;
|
|
4895
|
+
}
|
|
4896
|
+
.image-gallery__lightbox-nav {
|
|
4897
|
+
opacity: 0.92;
|
|
4898
|
+
z-index: 3;
|
|
4899
|
+
}
|
|
4471
4900
|
/* packages/components/src/atomic/Input/Input.css */
|
|
4472
4901
|
/* Hide number input spinners - cleaner UI for price/range inputs */
|
|
4473
4902
|
input[type='number']::-webkit-inner-spin-button,
|
|
@@ -4504,12 +4933,12 @@ input[type='number'] {
|
|
|
4504
4933
|
inset-inline-end: var(--gap-md);
|
|
4505
4934
|
}
|
|
4506
4935
|
/* Error / destructive state — red border for invalid fields */
|
|
4507
|
-
[data-variant=
|
|
4508
|
-
[aria-invalid=
|
|
4936
|
+
[data-variant='destructive'],
|
|
4937
|
+
[aria-invalid='true'] {
|
|
4509
4938
|
border-color: var(--destructive);
|
|
4510
4939
|
}
|
|
4511
|
-
[data-variant=
|
|
4512
|
-
[aria-invalid=
|
|
4940
|
+
[data-variant='destructive']:focus,
|
|
4941
|
+
[aria-invalid='true']:focus {
|
|
4513
4942
|
border-color: var(--destructive);
|
|
4514
4943
|
outline-color: var(--destructive);
|
|
4515
4944
|
}
|
|
@@ -4990,6 +5419,93 @@ input[type='number'] {
|
|
|
4990
5419
|
width: var(--icon-sm);
|
|
4991
5420
|
height: var(--icon-sm);
|
|
4992
5421
|
}
|
|
5422
|
+
/* packages/components/src/atomic/PinInput/PinInput.css */
|
|
5423
|
+
.dndev-pin-input {
|
|
5424
|
+
display: flex;
|
|
5425
|
+
gap: var(--gap-sm);
|
|
5426
|
+
align-items: center;
|
|
5427
|
+
justify-content: center;
|
|
5428
|
+
direction: ltr; /* digits are always LTR even in RTL locales */
|
|
5429
|
+
}
|
|
5430
|
+
.dndev-pin-input__box {
|
|
5431
|
+
inline-size: var(--input-height, 2.75rem) !important;
|
|
5432
|
+
block-size: var(--input-height, 2.75rem) !important;
|
|
5433
|
+
padding: 0 !important;
|
|
5434
|
+
text-align: center !important;
|
|
5435
|
+
font-size: var(--font-xl, 1.25rem) !important;
|
|
5436
|
+
font-variant-numeric: tabular-nums;
|
|
5437
|
+
font-feature-settings: 'tnum' 1;
|
|
5438
|
+
caret-color: var(--primary);
|
|
5439
|
+
}
|
|
5440
|
+
/* Mask the typed digit via CSS, not by overwriting React's controlled value.
|
|
5441
|
+
Rewriting value={raw} → value='•' on every keystroke forces React to
|
|
5442
|
+
overwrite the native input value after the browser has already painted
|
|
5443
|
+
the user's keystroke, which is the classic "lags like shit" PinInput bug
|
|
5444
|
+
on mobile Chrome/Safari. `-webkit-text-security: disc` renders a bullet
|
|
5445
|
+
purely in the layout layer while the input's real value stays the digit,
|
|
5446
|
+
so React never has to race the browser's paint pipeline.
|
|
5447
|
+
Firefox does not support -webkit-text-security and will render the digit
|
|
5448
|
+
unmasked; the eye-toggle still works for revealing on WebKit/Blink. */
|
|
5449
|
+
.dndev-pin-input__box--masked {
|
|
5450
|
+
-webkit-text-security: disc;
|
|
5451
|
+
}
|
|
5452
|
+
.dndev-pin-input__reveal {
|
|
5453
|
+
background: none;
|
|
5454
|
+
border: none;
|
|
5455
|
+
cursor: pointer;
|
|
5456
|
+
padding: var(--gap-tight, 0.25rem);
|
|
5457
|
+
margin-inline-start: var(--gap-sm, 0.5rem);
|
|
5458
|
+
display: inline-flex;
|
|
5459
|
+
align-items: center;
|
|
5460
|
+
justify-content: center;
|
|
5461
|
+
color: var(--muted-foreground, currentColor);
|
|
5462
|
+
opacity: var(--opacity-muted, 0.65);
|
|
5463
|
+
transition: opacity var(--dur-fast, 150ms) var(--ease-in-out, ease-in-out);
|
|
5464
|
+
-webkit-user-select: none;
|
|
5465
|
+
-moz-user-select: none;
|
|
5466
|
+
user-select: none;
|
|
5467
|
+
-webkit-tap-highlight-color: transparent;
|
|
5468
|
+
}
|
|
5469
|
+
.dndev-pin-input__reveal:hover,
|
|
5470
|
+
.dndev-pin-input__reveal:focus-visible {
|
|
5471
|
+
opacity: 1;
|
|
5472
|
+
outline: none;
|
|
5473
|
+
}
|
|
5474
|
+
.dndev-pin-input__reveal:focus-visible {
|
|
5475
|
+
outline: 2px solid var(--primary, currentColor);
|
|
5476
|
+
outline-offset: 2px;
|
|
5477
|
+
border-radius: var(--radius-sm, 4px);
|
|
5478
|
+
}
|
|
5479
|
+
/* Shake animation hook — the container flips data-shake='true' on error
|
|
5480
|
+
and the animation plays once via this keyframe. Consumers can override
|
|
5481
|
+
via `.dndev-pin-input[data-shake='true'] { animation: ... }`. */
|
|
5482
|
+
@keyframes dndev-pin-input-shake {
|
|
5483
|
+
0%,
|
|
5484
|
+
100% {
|
|
5485
|
+
transform: translateX(0);
|
|
5486
|
+
}
|
|
5487
|
+
20% {
|
|
5488
|
+
transform: translateX(-0.35rem);
|
|
5489
|
+
}
|
|
5490
|
+
40% {
|
|
5491
|
+
transform: translateX(0.35rem);
|
|
5492
|
+
}
|
|
5493
|
+
60% {
|
|
5494
|
+
transform: translateX(-0.25rem);
|
|
5495
|
+
}
|
|
5496
|
+
80% {
|
|
5497
|
+
transform: translateX(0.15rem);
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
.dndev-pin-input[data-shake='true'] {
|
|
5501
|
+
animation: dndev-pin-input-shake var(--dur-normal, 320ms)
|
|
5502
|
+
var(--ease-in-out, ease-in-out) 1;
|
|
5503
|
+
}
|
|
5504
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5505
|
+
.dndev-pin-input[data-shake='true'] {
|
|
5506
|
+
animation: none;
|
|
5507
|
+
}
|
|
5508
|
+
}
|
|
4993
5509
|
/* packages/components/src/atomic/Pagination/Pagination.css */
|
|
4994
5510
|
.dndev-pagination {
|
|
4995
5511
|
display: flex;
|
|
@@ -5125,8 +5641,8 @@ input[type='number'] {
|
|
|
5125
5641
|
color: var(--destructive);
|
|
5126
5642
|
}
|
|
5127
5643
|
.dndev-control[data-type='radio'] {
|
|
5128
|
-
width: var(--
|
|
5129
|
-
height: var(--
|
|
5644
|
+
width: var(--font-size-input);
|
|
5645
|
+
height: var(--font-size-input);
|
|
5130
5646
|
border-radius: var(--radius-full);
|
|
5131
5647
|
border-width: var(--border-hairline);
|
|
5132
5648
|
background-color: transparent;
|
|
@@ -5194,14 +5710,20 @@ input[type='number'] {
|
|
|
5194
5710
|
/* packages/components/src/atomic/RangeInput/RangeInput.css */
|
|
5195
5711
|
.dndev-range-input {
|
|
5196
5712
|
display: grid;
|
|
5197
|
-
grid-template-columns: 1fr auto 1fr auto;
|
|
5713
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
|
|
5198
5714
|
align-items: center;
|
|
5199
|
-
gap:
|
|
5715
|
+
-moz-column-gap: 0;
|
|
5716
|
+
column-gap: 0;
|
|
5717
|
+
padding-inline-start: var(--gap-sm);
|
|
5200
5718
|
width: 100%;
|
|
5201
5719
|
}
|
|
5202
5720
|
.dndev-range-input > .dndev-input,
|
|
5203
5721
|
.dndev-range-input > .dndev-relative {
|
|
5204
5722
|
min-width: 0;
|
|
5723
|
+
padding-inline: var(--gap-sm);
|
|
5724
|
+
}
|
|
5725
|
+
.dndev-range-input-separator {
|
|
5726
|
+
padding-inline: var(--gap-tight);
|
|
5205
5727
|
}
|
|
5206
5728
|
/* packages/components/src/atomic/Rating/Rating.css */
|
|
5207
5729
|
/**
|
|
@@ -5321,7 +5843,7 @@ input[type='number'] {
|
|
|
5321
5843
|
}
|
|
5322
5844
|
/* Numeric value display */
|
|
5323
5845
|
.dndev-rating-value {
|
|
5324
|
-
font-size: var(--font-size-
|
|
5846
|
+
font-size: var(--font-size-input);
|
|
5325
5847
|
font-weight: var(--font-weight-medium);
|
|
5326
5848
|
color: var(--muted-foreground);
|
|
5327
5849
|
min-width: 2ch;
|
|
@@ -5347,7 +5869,7 @@ input[type='number'] {
|
|
|
5347
5869
|
height: var(--icon-md);
|
|
5348
5870
|
}
|
|
5349
5871
|
.dndev-select-trigger [data-radix-select-value] {
|
|
5350
|
-
font-size: var(--font-size-
|
|
5872
|
+
font-size: var(--font-size-input);
|
|
5351
5873
|
}
|
|
5352
5874
|
.dndev-select-content {
|
|
5353
5875
|
width: var(--radix-select-trigger-width);
|
|
@@ -5396,6 +5918,14 @@ input[type='number'] {
|
|
|
5396
5918
|
width: 100%;
|
|
5397
5919
|
border-radius: inherit;
|
|
5398
5920
|
}
|
|
5921
|
+
/* Radix injects `display:table; min-width:100%` as inline style on the viewport's
|
|
5922
|
+
direct child. A display:table element sizes to its content's min-content width,
|
|
5923
|
+
ignoring max-width:100% (Chrome resolves the % against the table's own bloated
|
|
5924
|
+
width, not the viewport). contain:inline-size prevents content-based sizing:
|
|
5925
|
+
the table stays at min-width:100% = viewport width regardless of descendant content. */
|
|
5926
|
+
.dndev-scroll-area-viewport > div {
|
|
5927
|
+
contain: inline-size;
|
|
5928
|
+
}
|
|
5399
5929
|
.dndev-scroll-bar {
|
|
5400
5930
|
display: flex;
|
|
5401
5931
|
touch-action: none;
|
|
@@ -6534,7 +7064,7 @@ input[type='number'] {
|
|
|
6534
7064
|
flex-shrink: 0;
|
|
6535
7065
|
}
|
|
6536
7066
|
.dndev-switch-label {
|
|
6537
|
-
font-size: var(--font-size-
|
|
7067
|
+
font-size: var(--font-size-input);
|
|
6538
7068
|
transition:
|
|
6539
7069
|
color var(--dur-normal) var(--ease-in-out),
|
|
6540
7070
|
font-weight var(--dur-normal) var(--ease-in-out);
|
|
@@ -7425,7 +7955,8 @@ input[type='number'] {
|
|
|
7425
7955
|
[role='treeitem']:focus:not(:focus-visible) > .dndev-tree-node-content {
|
|
7426
7956
|
outline: none;
|
|
7427
7957
|
}
|
|
7428
|
-
/* Expand/collapse chevron
|
|
7958
|
+
/* Expand/collapse chevron — wrapper reserves the indent column (--icon-md),
|
|
7959
|
+
svg is the nested icon (--icon-sm). */
|
|
7429
7960
|
.dndev-tree-node-expand {
|
|
7430
7961
|
display: flex;
|
|
7431
7962
|
align-items: center;
|
|
@@ -7436,6 +7967,10 @@ input[type='number'] {
|
|
|
7436
7967
|
transition: transform var(--dur-normal) var(--ease-in-out);
|
|
7437
7968
|
color: var(--muted-foreground);
|
|
7438
7969
|
}
|
|
7970
|
+
.dndev-tree-node-expand svg {
|
|
7971
|
+
width: var(--icon-sm);
|
|
7972
|
+
height: var(--icon-sm);
|
|
7973
|
+
}
|
|
7439
7974
|
[role='treeitem'][aria-expanded='true']
|
|
7440
7975
|
> .dndev-tree-node-content
|
|
7441
7976
|
> .dndev-tree-node-expand {
|
|
@@ -8094,11 +8629,10 @@ input[type='number'] {
|
|
|
8094
8629
|
transform: translateY(calc(-1 * var(--gap-sm)));
|
|
8095
8630
|
box-shadow: var(--shadow-xl);
|
|
8096
8631
|
}
|
|
8097
|
-
/* Phase badge -
|
|
8632
|
+
/* Phase badge - used inside Card overlay container */
|
|
8098
8633
|
.dndev-roadmap-phase {
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
inset-inline-end: var(--gap-sm);
|
|
8634
|
+
display: inline-flex;
|
|
8635
|
+
align-items: center;
|
|
8102
8636
|
font-size: var(--font-size-xs);
|
|
8103
8637
|
font-weight: var(--font-weight-bold);
|
|
8104
8638
|
text-transform: uppercase;
|
|
@@ -9786,15 +10320,17 @@ aside[role='navigation'].sidebar {
|
|
|
9786
10320
|
max-width: calc(var(--sidebar-resize-handle-width) + 400px);
|
|
9787
10321
|
/* Max: 400px content + 6px handle = 406px */
|
|
9788
10322
|
z-index: var(--z-sidebar);
|
|
9789
|
-
overflow:
|
|
9790
|
-
/*
|
|
10323
|
+
overflow-x: hidden;
|
|
10324
|
+
/* Horizontal must be clipped — handle is in grid so vertical needs no clipping */
|
|
9791
10325
|
contain: layout style;
|
|
9792
10326
|
padding: 0;
|
|
9793
10327
|
display: grid;
|
|
9794
10328
|
grid-template-columns: auto var(--sidebar-resize-handle-width);
|
|
9795
10329
|
/* Content | Handle - column 1 width set inline */
|
|
9796
|
-
grid-template-rows: auto 1fr auto;
|
|
9797
|
-
/* Top | Content | Bottom
|
|
10330
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
10331
|
+
/* Top | Content | Bottom. `minmax(0, 1fr)` overrides the default `auto`
|
|
10332
|
+
min track size so the content row can shrink below its content height,
|
|
10333
|
+
which is what lets `.sidebar-content`'s overflow-y: auto actually fire. */
|
|
9798
10334
|
height: 100%;
|
|
9799
10335
|
|
|
9800
10336
|
/* Desktop presets with no sidebar: Hide sidebar element for performance/accessibility */
|
|
@@ -9876,7 +10412,9 @@ aside[role='navigation'].sidebar[data-dragging='true']
|
|
|
9876
10412
|
grid-row: 2;
|
|
9877
10413
|
overflow-y: auto;
|
|
9878
10414
|
min-height: 0;
|
|
9879
|
-
|
|
10415
|
+
/* `safe` falls back to flex-start on overflow. Without it, centered overflow
|
|
10416
|
+
pushes the top half above scrollTop=0 where it's unreachable. */
|
|
10417
|
+
justify-content: safe center;
|
|
9880
10418
|
/* Zero gap between items - they touch vertically */
|
|
9881
10419
|
gap: var(--gap-none);
|
|
9882
10420
|
|
|
@@ -9910,6 +10448,11 @@ aside[role='navigation'].sidebar[data-dragging='true']
|
|
|
9910
10448
|
gap: var(--gap-sm);
|
|
9911
10449
|
padding-block-start: var(--gap-md);
|
|
9912
10450
|
}
|
|
10451
|
+
/* Reduce Section padding when inside sidebar - sidebar space is precious */
|
|
10452
|
+
.sidebar-content .dndev-section-content {
|
|
10453
|
+
padding-inline: var(--gap-sm);
|
|
10454
|
+
padding-block: var(--gap-sm);
|
|
10455
|
+
}
|
|
9913
10456
|
/* Interactive elements in all zones: full width */
|
|
9914
10457
|
.sidebar-top .dndev-interactive,
|
|
9915
10458
|
.sidebar-content .dndev-interactive,
|
|
@@ -9973,6 +10516,10 @@ aside.sidebar[role='navigation'][data-collapsed='true'] .app-branding {
|
|
|
9973
10516
|
:is(aside.sidebar[role='navigation'][data-collapsed='true'] .app-branding) .app-branding-title {
|
|
9974
10517
|
display: none;
|
|
9975
10518
|
}
|
|
10519
|
+
/* Custom sidebar content: hide labeled text, keep icons */
|
|
10520
|
+
aside.sidebar[role='navigation'][data-collapsed='true'] .sidebar-collapsible {
|
|
10521
|
+
display: none;
|
|
10522
|
+
}
|
|
9976
10523
|
/* Main content: Starts at header-height and sidebar-width */
|
|
9977
10524
|
main[role='main'] {
|
|
9978
10525
|
grid-area: main;
|
|
@@ -10097,7 +10644,8 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
10097
10644
|
}
|
|
10098
10645
|
|
|
10099
10646
|
/* Bottom mergedBar: hide footer + add safe-area padding */
|
|
10100
|
-
.dndev-layout:has(.merged-bar[data-position='bottom'])
|
|
10647
|
+
.dndev-layout:has(.merged-bar[data-position='bottom'])
|
|
10648
|
+
> footer[role='contentinfo'] {
|
|
10101
10649
|
display: none;
|
|
10102
10650
|
}
|
|
10103
10651
|
.dndev-layout:has(.merged-bar[data-position='bottom']) {
|
|
@@ -10328,7 +10876,7 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
10328
10876
|
=========================== */
|
|
10329
10877
|
.dndev-container {
|
|
10330
10878
|
width: 100%;
|
|
10331
|
-
max-width: var(--content-width);
|
|
10879
|
+
max-width: var(--max-content-width);
|
|
10332
10880
|
min-width: 0; /* Allow shrinking in flex so max-width wins */
|
|
10333
10881
|
flex: 1 1 auto;
|
|
10334
10882
|
|
|
@@ -10367,20 +10915,24 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
10367
10915
|
--max-content-width: 100%;
|
|
10368
10916
|
max-width: none;
|
|
10369
10917
|
}
|
|
10370
|
-
/* Standard width - responsive
|
|
10918
|
+
/* Standard width - responsive.
|
|
10919
|
+
Base rule `max-width: var(--max-content-width)` picks up the local override.
|
|
10920
|
+
Do NOT add an explicit `max-width: var(--content-width)` here — `--content-width`
|
|
10921
|
+
is resolved eagerly at :root (where --max-content-width is 100%) and inherits as
|
|
10922
|
+
100%, overriding the local variant. The base rule reads --max-content-width
|
|
10923
|
+
directly at the element and gets the correct value. */
|
|
10371
10924
|
.dndev-container[data-variant='standard'] {
|
|
10372
10925
|
--max-content-width: var(--content-width-standard);
|
|
10373
|
-
max-width: var(--content-width);
|
|
10374
10926
|
}
|
|
10375
|
-
/* Docs width - responsive
|
|
10927
|
+
/* Docs width - responsive. See [data-variant='standard'] for why there's no
|
|
10928
|
+
explicit max-width here. */
|
|
10376
10929
|
.dndev-container[data-variant='docs'] {
|
|
10377
10930
|
--max-content-width: var(--content-width-docs);
|
|
10378
|
-
max-width: var(--content-width);
|
|
10379
10931
|
}
|
|
10380
|
-
/* Narrow width - mobile-first single column (PWA, app-like on every device)
|
|
10932
|
+
/* Narrow width - mobile-first single column (PWA, app-like on every device).
|
|
10933
|
+
See [data-variant='standard'] for why there's no explicit max-width here. */
|
|
10381
10934
|
.dndev-container[data-variant='narrow'] {
|
|
10382
10935
|
--max-content-width: var(--content-width-narrow);
|
|
10383
|
-
max-width: var(--content-width);
|
|
10384
10936
|
}
|
|
10385
10937
|
/* Fixed frame - fills parent exactly, prevents parent scroll */
|
|
10386
10938
|
.dndev-container[data-variant='fixed'] {
|