@donotdev/ui 0.1.1 → 0.1.42
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 +644 -107
- package/dist/dndev.css +778 -117
- 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 +778 -117
- 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.css
CHANGED
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
Standard touch-friendly sizing for all interactive components
|
|
33
33
|
=========================== */
|
|
34
34
|
--touch-target: 48px;
|
|
35
|
-
--icon-
|
|
35
|
+
--icon-sm: 16px; /* Nested icon size (inside inputs, action buttons, badges) */
|
|
36
|
+
--icon-md: 24px; /* Standard standalone icon size */
|
|
36
37
|
--icon-touch: 32px; /* Large icon size (reserved) */
|
|
37
38
|
|
|
38
39
|
/* ===========================
|
|
@@ -137,6 +138,13 @@
|
|
|
137
138
|
--popover: var(--card);
|
|
138
139
|
--popover-foreground: var(--card-foreground);
|
|
139
140
|
|
|
141
|
+
/*
|
|
142
|
+
* Interactive surface — background for inputs (.dndev-input) and outline
|
|
143
|
+
* buttons (.dndev-interactive[data-variant='outline']). Parallel to --card
|
|
144
|
+
* for containers. Defaults to transparent so apps opt in via themes.css.
|
|
145
|
+
*/
|
|
146
|
+
--interactive: transparent;
|
|
147
|
+
|
|
140
148
|
/*
|
|
141
149
|
* Root card snapshot — computed once on :root from --card/--card-foreground,
|
|
142
150
|
* then inherited unchanged. Variant blocks (e.g. primary) override --card but
|
|
@@ -185,6 +193,7 @@
|
|
|
185
193
|
--font-size-xs: 0.75rem; /* 12px - captions, shortcuts, meta */
|
|
186
194
|
--font-size-sm: 0.875rem; /* 14px - small text, captions */
|
|
187
195
|
--font-size-base: 1rem; /* 16px - body text, DEFAULT */
|
|
196
|
+
--font-size-input: 16px; /* Form field text - hardcoded for iOS zoom + density-proof */
|
|
188
197
|
--font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
|
|
189
198
|
--font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
|
|
190
199
|
--font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
|
|
@@ -283,7 +292,7 @@
|
|
|
283
292
|
Micro-interactions for buttons and interactive elements.
|
|
284
293
|
Set to 0/1 to disable individual effects.
|
|
285
294
|
=========================== */
|
|
286
|
-
--hover-lift:
|
|
295
|
+
--hover-lift: 0; /* translateY on hover (0 = disabled) */
|
|
287
296
|
--click-scale: 0.97; /* scale on click (1 = disabled) */
|
|
288
297
|
--ripple-opacity: 0.2; /* ripple effect opacity (0 = disabled) */
|
|
289
298
|
|
|
@@ -795,13 +804,13 @@ em {
|
|
|
795
804
|
width: 100%;
|
|
796
805
|
border-radius: var(--radius-interactive);
|
|
797
806
|
border: var(--border-hairline) solid var(--line-2);
|
|
798
|
-
background-color: transparent;
|
|
807
|
+
background-color: var(--interactive, transparent);
|
|
799
808
|
color: var(--foreground);
|
|
800
809
|
padding-inline-start: var(--gap-md);
|
|
801
810
|
padding-inline-end: var(--gap-md);
|
|
802
811
|
padding-top: var(--gap-sm);
|
|
803
812
|
padding-bottom: var(--gap-sm);
|
|
804
|
-
font-size:
|
|
813
|
+
font-size: var(--font-size-input);
|
|
805
814
|
box-shadow: var(--shadow-sm);
|
|
806
815
|
transition: all var(--dur-normal) var(--ease-in-out);
|
|
807
816
|
/* Touch target for mobile */
|
|
@@ -821,10 +830,12 @@ em {
|
|
|
821
830
|
|
|
822
831
|
.dndev-input::-moz-placeholder {
|
|
823
832
|
color: var(--placeholder);
|
|
833
|
+
font-size: var(--font-size-input);
|
|
824
834
|
}
|
|
825
835
|
|
|
826
836
|
.dndev-input::placeholder {
|
|
827
837
|
color: var(--placeholder);
|
|
838
|
+
font-size: var(--font-size-input);
|
|
828
839
|
}
|
|
829
840
|
|
|
830
841
|
.dndev-input:hover {
|
|
@@ -880,6 +891,56 @@ em {
|
|
|
880
891
|
color: var(--placeholder);
|
|
881
892
|
}
|
|
882
893
|
|
|
894
|
+
/* ===========================
|
|
895
|
+
INLINE ACTION BUTTONS
|
|
896
|
+
=========================== */
|
|
897
|
+
|
|
898
|
+
/** Shared pattern for inline clear/action buttons inside input-like components.
|
|
899
|
+
* Used by: Combobox trailing buttons, RangeInput clear, DateFilter clear. */
|
|
900
|
+
|
|
901
|
+
.dndev-inline-action-btn {
|
|
902
|
+
all: unset;
|
|
903
|
+
display: flex;
|
|
904
|
+
align-items: center;
|
|
905
|
+
justify-content: center;
|
|
906
|
+
width: var(--touch-target);
|
|
907
|
+
height: 100%;
|
|
908
|
+
cursor: pointer;
|
|
909
|
+
color: var(--muted-foreground);
|
|
910
|
+
opacity: var(--opacity-muted, 0.5);
|
|
911
|
+
transition:
|
|
912
|
+
color var(--dur-fast) var(--ease-in-out),
|
|
913
|
+
opacity var(--dur-fast) var(--ease-in-out);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.dndev-inline-action-btn:hover:not(:disabled) {
|
|
917
|
+
opacity: 1;
|
|
918
|
+
color: var(--foreground);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
.dndev-inline-action-btn:focus-visible {
|
|
922
|
+
opacity: 1;
|
|
923
|
+
color: var(--foreground);
|
|
924
|
+
outline: none;
|
|
925
|
+
box-shadow:
|
|
926
|
+
0 0 0 2px var(--ring),
|
|
927
|
+
0 0 0 4px rgb(from var(--ring) r g b / 0.2);
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.dndev-inline-action-btn:active:not(:disabled) {
|
|
931
|
+
opacity: 0.8;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
.dndev-inline-action-btn:disabled {
|
|
935
|
+
cursor: not-allowed;
|
|
936
|
+
opacity: calc(var(--opacity-muted, 0.5) * 0.5);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.dndev-inline-action-btn svg {
|
|
940
|
+
width: var(--icon-sm);
|
|
941
|
+
height: var(--icon-sm);
|
|
942
|
+
}
|
|
943
|
+
|
|
883
944
|
/* Control base class - checkbox, radio, switch, slider */
|
|
884
945
|
|
|
885
946
|
.dndev-control {
|
|
@@ -1436,7 +1497,7 @@ em {
|
|
|
1436
1497
|
text-transform: var(--text-transform-button, none);
|
|
1437
1498
|
transition:
|
|
1438
1499
|
background var(--dur-fast) var(--ease-in-out),
|
|
1439
|
-
|
|
1500
|
+
color var(--dur-fast) var(--ease-in-out),
|
|
1440
1501
|
box-shadow var(--dur-fast) var(--ease-in-out),
|
|
1441
1502
|
border-color var(--dur-fast) var(--ease-in-out);
|
|
1442
1503
|
cursor: pointer;
|
|
@@ -1450,11 +1511,10 @@ em {
|
|
|
1450
1511
|
|
|
1451
1512
|
.dndev-interactive:hover {
|
|
1452
1513
|
background: color-mix(in oklab, var(--primary) 85%, var(--foreground));
|
|
1453
|
-
transform: translateY(var(--hover-lift));
|
|
1454
1514
|
}
|
|
1455
1515
|
|
|
1456
1516
|
.dndev-interactive:active:not(:disabled) {
|
|
1457
|
-
transform:
|
|
1517
|
+
transform: scale(var(--click-scale));
|
|
1458
1518
|
}
|
|
1459
1519
|
|
|
1460
1520
|
.dndev-interactive:focus-visible {
|
|
@@ -1539,17 +1599,34 @@ em {
|
|
|
1539
1599
|
}
|
|
1540
1600
|
|
|
1541
1601
|
/* ═══════════════════════════
|
|
1542
|
-
|
|
1602
|
+
TRANSPARENT VARIANTS
|
|
1543
1603
|
═══════════════════════════ */
|
|
1544
1604
|
|
|
1545
|
-
/*
|
|
1605
|
+
/* Outline — themeable interactive surface (parallel to --card) */
|
|
1606
|
+
|
|
1607
|
+
.dndev-interactive[data-variant='outline'] {
|
|
1608
|
+
background: var(--interactive, transparent);
|
|
1609
|
+
color: var(--foreground);
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
/* Ghost / nav / menu / command — transparent by design */
|
|
1546
1613
|
|
|
1547
|
-
.dndev-interactive[data-variant='
|
|
1614
|
+
.dndev-interactive[data-variant='ghost'],.dndev-interactive[data-role='nav-trigger'],.dndev-interactive[data-role='menu-item'],.dndev-interactive[data-role='command-item'] {
|
|
1548
1615
|
background: transparent;
|
|
1549
1616
|
color: var(--foreground);
|
|
1550
1617
|
}
|
|
1551
1618
|
|
|
1552
|
-
|
|
1619
|
+
/* Ghost — hover = font color only, no bg, no lift */
|
|
1620
|
+
|
|
1621
|
+
.dndev-interactive[data-variant='ghost']:hover {
|
|
1622
|
+
background: transparent;
|
|
1623
|
+
color: var(--primary);
|
|
1624
|
+
transform: none;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
/* Outline / menu / nav — hover = subtle tint + text color shift */
|
|
1628
|
+
|
|
1629
|
+
: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 {
|
|
1553
1630
|
background: rgb(from var(--primary) r g b / 0.1);
|
|
1554
1631
|
color: var(--primary);
|
|
1555
1632
|
}
|
|
@@ -1587,7 +1664,9 @@ em {
|
|
|
1587
1664
|
}
|
|
1588
1665
|
|
|
1589
1666
|
.dndev-interactive[data-variant='link']:hover {
|
|
1667
|
+
background: transparent;
|
|
1590
1668
|
color: var(--primary);
|
|
1669
|
+
transform: none;
|
|
1591
1670
|
}
|
|
1592
1671
|
|
|
1593
1672
|
/* Context-aware: ONLY inside accent surfaces */
|
|
@@ -1599,18 +1678,28 @@ em {
|
|
|
1599
1678
|
color: var(--surface-bg);
|
|
1600
1679
|
}
|
|
1601
1680
|
|
|
1602
|
-
/* Outline
|
|
1681
|
+
/* Outline adapts with tint */
|
|
1603
1682
|
|
|
1604
|
-
[data-variant='outline']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive)
|
|
1683
|
+
[data-variant='outline']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive) {
|
|
1605
1684
|
color: var(--surface-text);
|
|
1606
1685
|
}
|
|
1607
1686
|
|
|
1608
|
-
|
|
1687
|
+
[data-variant='outline']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive):hover {
|
|
1609
1688
|
background: rgb(from var(--surface-text) r g b / 0.1);
|
|
1610
1689
|
color: var(--surface-text);
|
|
1611
1690
|
}
|
|
1612
1691
|
|
|
1613
|
-
/*
|
|
1692
|
+
/* Ghost adapts — font color only */
|
|
1693
|
+
|
|
1694
|
+
[data-variant='ghost']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive) {
|
|
1695
|
+
color: var(--surface-text);
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
[data-variant='ghost']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive):hover {
|
|
1699
|
+
color: var(--surface-text);
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
/* Unified menu/command/nav item base */
|
|
1614
1703
|
|
|
1615
1704
|
.dndev-interactive[data-role='menu-item'],.dndev-interactive[data-role='command-item'],.dndev-interactive[data-role='nav-trigger'] {
|
|
1616
1705
|
min-height: auto;
|
|
@@ -1789,7 +1878,7 @@ em {
|
|
|
1789
1878
|
|
|
1790
1879
|
.dndev-control-group {
|
|
1791
1880
|
display: grid;
|
|
1792
|
-
gap: var(--gap-
|
|
1881
|
+
gap: var(--gap-sm); /* 8px - tighter spacing for control groups */
|
|
1793
1882
|
|
|
1794
1883
|
/* Control + label pattern - used by RadioGroup, CheckboxFieldComponent, etc. */
|
|
1795
1884
|
}
|
|
@@ -1798,7 +1887,7 @@ em {
|
|
|
1798
1887
|
display: flex;
|
|
1799
1888
|
align-items: center;
|
|
1800
1889
|
gap: var(--gap-sm); /* 8px - spacing between control and label */
|
|
1801
|
-
font-size: var(--font-size-
|
|
1890
|
+
font-size: var(--font-size-input);
|
|
1802
1891
|
color: var(--foreground);
|
|
1803
1892
|
cursor: pointer;
|
|
1804
1893
|
transition: color var(--transition-fast);
|
|
@@ -2496,19 +2585,52 @@ em {
|
|
|
2496
2585
|
|
|
2497
2586
|
/* packages/components/src/atomic/Alert/Alert.css */
|
|
2498
2587
|
|
|
2588
|
+
/**
|
|
2589
|
+
* Modern inline alert - subtle tint treatment.
|
|
2590
|
+
* Overrides .dndev-surface heaviness (shadow, gradient, asymmetric padding).
|
|
2591
|
+
* Pattern: GitHub Primer / Linear - tinted bg, semantic border, no elevation.
|
|
2592
|
+
*/
|
|
2593
|
+
|
|
2499
2594
|
.dndev-surface[role='alert'] {
|
|
2500
|
-
|
|
2501
|
-
|
|
2595
|
+
/* Subtle tint: variant color at 8% over transparent */
|
|
2596
|
+
background: color-mix(in oklab, var(--card) 8%, transparent);
|
|
2597
|
+
/* Foreground: page default for readability on subtle bg */
|
|
2598
|
+
color: var(--foreground);
|
|
2599
|
+
/* Semantic border: variant color at 25% */
|
|
2600
|
+
border: var(--border-hairline) solid
|
|
2601
|
+
color-mix(in oklab, var(--card) 25%, transparent);
|
|
2602
|
+
/* No elevation on inline alerts */
|
|
2603
|
+
box-shadow: none;
|
|
2604
|
+
/* Tight symmetric padding */
|
|
2605
|
+
padding: var(--gap-sm) var(--gap-md);
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
/* Icon: variant-colored, optically aligned to first text line */
|
|
2609
|
+
|
|
2610
|
+
.dndev-alert-icon {
|
|
2611
|
+
color: var(--card);
|
|
2612
|
+
width: 1rem;
|
|
2613
|
+
height: 1rem;
|
|
2614
|
+
flex-shrink: 0;
|
|
2615
|
+
margin-block-start: 0.125rem;
|
|
2502
2616
|
}
|
|
2503
2617
|
|
|
2618
|
+
/* Title: variant-colored, semibold, compact */
|
|
2619
|
+
|
|
2504
2620
|
.dndev-alert-title {
|
|
2505
|
-
|
|
2506
|
-
|
|
2621
|
+
color: var(--card);
|
|
2622
|
+
font-weight: var(--font-weight-semibold);
|
|
2623
|
+
font-size: var(--font-size-sm);
|
|
2624
|
+
line-height: 1.25;
|
|
2507
2625
|
letter-spacing: -0.025em;
|
|
2508
2626
|
}
|
|
2509
2627
|
|
|
2628
|
+
/* Description: default foreground, slightly dimmed */
|
|
2629
|
+
|
|
2510
2630
|
.dndev-alert-description {
|
|
2511
2631
|
font-size: var(--font-size-sm);
|
|
2632
|
+
line-height: 1.4;
|
|
2633
|
+
opacity: 0.85;
|
|
2512
2634
|
}
|
|
2513
2635
|
|
|
2514
2636
|
/* packages/components/src/atomic/Avatar/Avatar.css */
|
|
@@ -3353,15 +3475,283 @@ em {
|
|
|
3353
3475
|
color: var(--muted-foreground);
|
|
3354
3476
|
}
|
|
3355
3477
|
|
|
3356
|
-
.dndev-calendar-day-outside.dndev-calendar-day-today.dndev-calendar-day-selected
|
|
3357
|
-
.dndev-calendar-day-button:hover:not([disabled]) {
|
|
3358
|
-
color: var(--muted-foreground);
|
|
3478
|
+
.dndev-calendar-day-outside.dndev-calendar-day-today.dndev-calendar-day-selected
|
|
3479
|
+
.dndev-calendar-day-button:hover:not([disabled]) {
|
|
3480
|
+
color: var(--muted-foreground);
|
|
3481
|
+
}
|
|
3482
|
+
|
|
3483
|
+
/* Hidden Days */
|
|
3484
|
+
|
|
3485
|
+
.dndev-calendar-day-hidden {
|
|
3486
|
+
visibility: hidden;
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3489
|
+
/* packages/components/src/atomic/DatePicker/DatePicker.css */
|
|
3490
|
+
|
|
3491
|
+
/**
|
|
3492
|
+
* DatePicker Component Styles
|
|
3493
|
+
* Segmented date input with calendar popover.
|
|
3494
|
+
* Mobile: falls back to native <input type="date"> via @media (pointer: coarse).
|
|
3495
|
+
*/
|
|
3496
|
+
|
|
3497
|
+
/* ===========================
|
|
3498
|
+
ROOT CONTAINER
|
|
3499
|
+
=========================== */
|
|
3500
|
+
|
|
3501
|
+
.dndev-datepicker {
|
|
3502
|
+
position: relative;
|
|
3503
|
+
display: inline-flex;
|
|
3504
|
+
align-items: center;
|
|
3505
|
+
width: 100%;
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
/* ===========================
|
|
3509
|
+
DESKTOP: SEGMENTED INPUT
|
|
3510
|
+
=========================== */
|
|
3511
|
+
|
|
3512
|
+
.dndev-datepicker-custom {
|
|
3513
|
+
display: flex;
|
|
3514
|
+
align-items: center;
|
|
3515
|
+
width: 100%;
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
/* Input-like container (mirrors .dndev-input from patterns.css) */
|
|
3519
|
+
|
|
3520
|
+
.dndev-datepicker-field {
|
|
3521
|
+
display: flex;
|
|
3522
|
+
align-items: center;
|
|
3523
|
+
width: 100%;
|
|
3524
|
+
min-height: var(--touch-target);
|
|
3525
|
+
border-radius: var(--radius-interactive);
|
|
3526
|
+
border: var(--border-hairline) solid var(--line-2);
|
|
3527
|
+
background-color: transparent;
|
|
3528
|
+
color: var(--foreground);
|
|
3529
|
+
padding-inline-start: var(--gap-md);
|
|
3530
|
+
padding-inline-end: 0;
|
|
3531
|
+
font-size: var(--font-size-input);
|
|
3532
|
+
box-shadow: var(--shadow-sm);
|
|
3533
|
+
transition: all var(--dur-normal) var(--ease-in-out);
|
|
3534
|
+
touch-action: manipulation;
|
|
3535
|
+
cursor: text;
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3538
|
+
/* Bare mode inside FloatingLabel (fieldset provides border) */
|
|
3539
|
+
|
|
3540
|
+
.dndev-datepicker-field[data-bare] {
|
|
3541
|
+
border: none;
|
|
3542
|
+
box-shadow: none;
|
|
3543
|
+
background: transparent;
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
/* Hover */
|
|
3547
|
+
|
|
3548
|
+
.dndev-datepicker-field:hover {
|
|
3549
|
+
border-color: var(--ring);
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
/* Focus-within */
|
|
3553
|
+
|
|
3554
|
+
.dndev-datepicker-field:focus-within {
|
|
3555
|
+
border-color: var(--ring);
|
|
3556
|
+
outline: none;
|
|
3557
|
+
box-shadow: var(--shadow-focus);
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
/* Focus-within bare (FloatingLabel handles outer border) */
|
|
3561
|
+
|
|
3562
|
+
.dndev-datepicker-field[data-bare]:focus-within {
|
|
3563
|
+
box-shadow: none;
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
/* Error state */
|
|
3567
|
+
|
|
3568
|
+
.dndev-datepicker-field[aria-invalid='true'],
|
|
3569
|
+
.dndev-datepicker-field[data-variant='destructive'] {
|
|
3570
|
+
border-color: var(--destructive);
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
/* Disabled */
|
|
3574
|
+
|
|
3575
|
+
.dndev-datepicker-field[data-disabled] {
|
|
3576
|
+
cursor: not-allowed;
|
|
3577
|
+
opacity: var(--opacity-muted);
|
|
3578
|
+
}
|
|
3579
|
+
|
|
3580
|
+
/* ===========================
|
|
3581
|
+
SEGMENTS AREA
|
|
3582
|
+
=========================== */
|
|
3583
|
+
|
|
3584
|
+
.dndev-datepicker-segments {
|
|
3585
|
+
display: flex;
|
|
3586
|
+
align-items: center;
|
|
3587
|
+
flex: 1;
|
|
3588
|
+
min-width: 0;
|
|
3589
|
+
}
|
|
3590
|
+
|
|
3591
|
+
/* ===========================
|
|
3592
|
+
SEGMENTS
|
|
3593
|
+
=========================== */
|
|
3594
|
+
|
|
3595
|
+
.dndev-datepicker-segment {
|
|
3596
|
+
display: inline-flex;
|
|
3597
|
+
align-items: center;
|
|
3598
|
+
justify-content: center;
|
|
3599
|
+
padding: var(--gap-tight) 1px;
|
|
3600
|
+
border-radius: 2px;
|
|
3601
|
+
font-variant-numeric: tabular-nums;
|
|
3602
|
+
caret-color: transparent;
|
|
3603
|
+
outline: none;
|
|
3604
|
+
min-width: 2ch;
|
|
3605
|
+
text-align: center;
|
|
3606
|
+
-webkit-user-select: none;
|
|
3607
|
+
-moz-user-select: none;
|
|
3608
|
+
user-select: none;
|
|
3609
|
+
}
|
|
3610
|
+
|
|
3611
|
+
/* Year segment needs more room */
|
|
3612
|
+
|
|
3613
|
+
.dndev-datepicker-segment[data-type='year'] {
|
|
3614
|
+
min-width: 4ch;
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
/* Placeholder text */
|
|
3618
|
+
|
|
3619
|
+
.dndev-datepicker-segment[data-placeholder] {
|
|
3620
|
+
color: var(--placeholder);
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
/* Focused segment highlight */
|
|
3624
|
+
|
|
3625
|
+
.dndev-datepicker-segment:focus {
|
|
3626
|
+
background-color: var(--accent);
|
|
3627
|
+
color: var(--accent-foreground);
|
|
3628
|
+
outline: none;
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
/* Separator between segments */
|
|
3632
|
+
|
|
3633
|
+
.dndev-datepicker-separator {
|
|
3634
|
+
color: var(--muted-foreground);
|
|
3635
|
+
padding: 0 1px;
|
|
3636
|
+
-webkit-user-select: none;
|
|
3637
|
+
-moz-user-select: none;
|
|
3638
|
+
user-select: none;
|
|
3639
|
+
}
|
|
3640
|
+
|
|
3641
|
+
/* ===========================
|
|
3642
|
+
CALENDAR TRIGGER BUTTON (inside field)
|
|
3643
|
+
=========================== */
|
|
3644
|
+
|
|
3645
|
+
/* Extends .dndev-inline-action-btn from patterns.css */
|
|
3646
|
+
|
|
3647
|
+
.dndev-datepicker-calendar-btn {
|
|
3648
|
+
flex-shrink: 0;
|
|
3649
|
+
margin-inline-start: auto;
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
/* ===========================
|
|
3653
|
+
POPOVER
|
|
3654
|
+
=========================== */
|
|
3655
|
+
|
|
3656
|
+
.dndev-datepicker-popover {
|
|
3657
|
+
padding: 0;
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
/* Fix: .dndev-floating .dndev-interactive overrides width/justify on ALL
|
|
3661
|
+
interactive children. Calendar needs its own sizing - undo the override. */
|
|
3662
|
+
|
|
3663
|
+
.dndev-datepicker-popover .dndev-interactive {
|
|
3664
|
+
width: auto;
|
|
3665
|
+
justify-content: center;
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
/* Calendar nav buttons: restore absolute-positioned fixed size */
|
|
3669
|
+
|
|
3670
|
+
.dndev-datepicker-popover .dndev-calendar-nav-button {
|
|
3671
|
+
width: var(--touch-target);
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
/* Calendar day buttons: restore fixed cell size */
|
|
3675
|
+
|
|
3676
|
+
.dndev-datepicker-popover .dndev-calendar-day-button {
|
|
3677
|
+
width: var(--touch-target);
|
|
3678
|
+
}
|
|
3679
|
+
|
|
3680
|
+
/* Calendar dropdown triggers: restore full-width inside their cell */
|
|
3681
|
+
|
|
3682
|
+
.dndev-datepicker-popover .dndev-calendar-dropdown-trigger {
|
|
3683
|
+
width: 100%;
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3686
|
+
/* ===========================
|
|
3687
|
+
MOBILE: NATIVE INPUT FALLBACK
|
|
3688
|
+
=========================== */
|
|
3689
|
+
|
|
3690
|
+
.dndev-datepicker-native {
|
|
3691
|
+
display: none;
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
@media (pointer: coarse) {
|
|
3695
|
+
.dndev-datepicker-custom {
|
|
3696
|
+
display: none;
|
|
3697
|
+
}
|
|
3698
|
+
|
|
3699
|
+
.dndev-datepicker-native {
|
|
3700
|
+
display: flex;
|
|
3701
|
+
width: 100%;
|
|
3702
|
+
}
|
|
3703
|
+
}
|
|
3704
|
+
|
|
3705
|
+
/* ===========================
|
|
3706
|
+
SCREEN READER LIVE REGION
|
|
3707
|
+
=========================== */
|
|
3708
|
+
|
|
3709
|
+
.dndev-datepicker-live {
|
|
3710
|
+
position: absolute;
|
|
3711
|
+
width: 1px;
|
|
3712
|
+
height: 1px;
|
|
3713
|
+
padding: 0;
|
|
3714
|
+
margin: -1px;
|
|
3715
|
+
overflow: hidden;
|
|
3716
|
+
clip: rect(0, 0, 0, 0);
|
|
3717
|
+
white-space: nowrap;
|
|
3718
|
+
border: 0;
|
|
3719
|
+
}
|
|
3720
|
+
|
|
3721
|
+
/* ===========================
|
|
3722
|
+
DISABLED STATE (root)
|
|
3723
|
+
=========================== */
|
|
3724
|
+
|
|
3725
|
+
.dndev-datepicker[data-disabled] {
|
|
3726
|
+
pointer-events: none;
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
/* packages/components/src/atomic/DateTimePicker/DateTimePicker.css */
|
|
3730
|
+
|
|
3731
|
+
/**
|
|
3732
|
+
* DateTimePicker Component Styles
|
|
3733
|
+
* Extends DatePicker styles with time-segment-specific layout.
|
|
3734
|
+
* Reuses .dndev-datepicker-* classes from DatePicker.css for shared elements
|
|
3735
|
+
* (field, segment, separator, calendar-btn, popover, native, live).
|
|
3736
|
+
*/
|
|
3737
|
+
|
|
3738
|
+
/* ===========================
|
|
3739
|
+
CUSTOM INPUT CONTAINER
|
|
3740
|
+
=========================== */
|
|
3741
|
+
|
|
3742
|
+
.dndev-datetimepicker-custom {
|
|
3743
|
+
display: flex;
|
|
3744
|
+
align-items: center;
|
|
3745
|
+
width: 100%;
|
|
3359
3746
|
}
|
|
3360
3747
|
|
|
3361
|
-
/*
|
|
3748
|
+
/* ===========================
|
|
3749
|
+
DATE / TIME SPACER
|
|
3750
|
+
=========================== */
|
|
3362
3751
|
|
|
3363
|
-
.dndev-
|
|
3364
|
-
|
|
3752
|
+
.dndev-datetimepicker-spacer {
|
|
3753
|
+
width: var(--gap-md);
|
|
3754
|
+
flex-shrink: 0;
|
|
3365
3755
|
}
|
|
3366
3756
|
|
|
3367
3757
|
/* packages/components/src/atomic/CallToAction/CallToAction.css */
|
|
@@ -3521,6 +3911,7 @@ em {
|
|
|
3521
3911
|
.dndev-cta-actions {
|
|
3522
3912
|
display: flex;
|
|
3523
3913
|
flex-direction: row;
|
|
3914
|
+
flex-wrap: wrap;
|
|
3524
3915
|
gap: var(--gap-md);
|
|
3525
3916
|
justify-content: center;
|
|
3526
3917
|
}
|
|
@@ -3583,15 +3974,48 @@ em {
|
|
|
3583
3974
|
|
|
3584
3975
|
/* packages/components/src/atomic/Card/Card.css */
|
|
3585
3976
|
|
|
3586
|
-
/* Card
|
|
3977
|
+
/* Card root — when a cover is present, move padding off the root so the cover
|
|
3978
|
+
sits flush to the rounded corners. Padding is re-applied inside the body
|
|
3979
|
+
slot (which is the only thing that needs it). Non-cover cards keep the
|
|
3980
|
+
legacy layout so existing consumers render identically. */
|
|
3587
3981
|
|
|
3588
3982
|
.dndev-card {
|
|
3589
3983
|
display: grid;
|
|
3590
3984
|
gap: var(--gap-md);
|
|
3591
3985
|
text-align: start;
|
|
3592
3986
|
align-content: start;
|
|
3987
|
+
position: relative;
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
.dndev-surface.dndev-card[data-has-cover='true'] {
|
|
3991
|
+
padding: 0;
|
|
3992
|
+
overflow: hidden;
|
|
3993
|
+
position: relative;
|
|
3994
|
+
/* Remove the grid gap — cover and body are stacked vertically via flow and
|
|
3995
|
+
must sit flush (cover edges meet body edge with no gutter). */
|
|
3996
|
+
gap: 0;
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
/* Body slot — the padded region that holds header/content/footer.
|
|
4000
|
+
Only rendered when at least one body field is set (see renderCard logic). */
|
|
4001
|
+
|
|
4002
|
+
.dndev-card-body {
|
|
4003
|
+
display: grid;
|
|
4004
|
+
gap: var(--gap-md);
|
|
4005
|
+
position: relative;
|
|
4006
|
+
z-index: 1;
|
|
4007
|
+
}
|
|
4008
|
+
|
|
4009
|
+
.dndev-card[data-has-cover='true'] > .dndev-card-body {
|
|
4010
|
+
padding: var(--gap-md);
|
|
4011
|
+
}
|
|
4012
|
+
|
|
4013
|
+
.dndev-card-body[data-body-background='solid'] {
|
|
4014
|
+
background: var(--card);
|
|
3593
4015
|
}
|
|
3594
4016
|
|
|
4017
|
+
/* Card body children spacing */
|
|
4018
|
+
|
|
3595
4019
|
.dndev-card-header {
|
|
3596
4020
|
display: flex;
|
|
3597
4021
|
flex-direction: column;
|
|
@@ -3620,16 +4044,98 @@ em {
|
|
|
3620
4044
|
color: color-mix(in oklab, var(--card-foreground) 70%, transparent);
|
|
3621
4045
|
}
|
|
3622
4046
|
|
|
4047
|
+
/* Cover region — sits flush to the card's rounded corners.
|
|
4048
|
+
- When body is present (data-has-body='true'): cover is a sized header
|
|
4049
|
+
region in flow. Height comes from its own aspect-ratio (inline style).
|
|
4050
|
+
- When cover-only (no body): cover fills the card (inset:0 absolute) while
|
|
4051
|
+
the card itself sets the aspect-ratio on its root. */
|
|
4052
|
+
|
|
4053
|
+
.dndev-card-cover {
|
|
4054
|
+
position: relative;
|
|
4055
|
+
overflow: hidden;
|
|
4056
|
+
z-index: 0;
|
|
4057
|
+
width: 100%;
|
|
4058
|
+
background: var(--muted);
|
|
4059
|
+
}
|
|
4060
|
+
|
|
4061
|
+
/* Cover-only: fill the card completely. Card root owns the aspect-ratio. */
|
|
4062
|
+
|
|
4063
|
+
.dndev-card-cover:not([data-has-body='true']) {
|
|
4064
|
+
position: absolute;
|
|
4065
|
+
inset: 0;
|
|
4066
|
+
height: 100%;
|
|
4067
|
+
}
|
|
4068
|
+
|
|
4069
|
+
/* Direct media (string cover → <img>, or ReactNode passthrough) fills. */
|
|
4070
|
+
|
|
4071
|
+
.dndev-card-cover > img,
|
|
4072
|
+
.dndev-card-cover > video,
|
|
4073
|
+
.dndev-card-cover > picture,
|
|
4074
|
+
.dndev-card-cover > picture > img,
|
|
4075
|
+
.dndev-card-cover > .dndev-card-cover-media {
|
|
4076
|
+
display: block;
|
|
4077
|
+
width: 100%;
|
|
4078
|
+
height: 100%;
|
|
4079
|
+
-o-object-fit: cover;
|
|
4080
|
+
object-fit: cover;
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4083
|
+
/* Consumer-supplied ReactNode: wrapper fills, inner media fills. */
|
|
4084
|
+
|
|
4085
|
+
.dndev-card-cover-media {
|
|
4086
|
+
position: relative;
|
|
4087
|
+
}
|
|
4088
|
+
|
|
4089
|
+
.dndev-card-cover-media > img,
|
|
4090
|
+
.dndev-card-cover-media > video,
|
|
4091
|
+
.dndev-card-cover-media > picture,
|
|
4092
|
+
.dndev-card-cover-media > picture > img {
|
|
4093
|
+
display: block;
|
|
4094
|
+
width: 100%;
|
|
4095
|
+
height: 100%;
|
|
4096
|
+
-o-object-fit: cover;
|
|
4097
|
+
object-fit: cover;
|
|
4098
|
+
}
|
|
4099
|
+
|
|
4100
|
+
/* Overlay — sits above both cover and body slot. */
|
|
4101
|
+
|
|
4102
|
+
.dndev-card-overlay {
|
|
4103
|
+
position: absolute;
|
|
4104
|
+
z-index: 2;
|
|
4105
|
+
pointer-events: none;
|
|
4106
|
+
}
|
|
4107
|
+
|
|
4108
|
+
.dndev-card[data-overlay-position='top-left'] > .dndev-card-overlay {
|
|
4109
|
+
top: var(--gap-md);
|
|
4110
|
+
inset-inline-start: var(--gap-md);
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4113
|
+
.dndev-card[data-overlay-position='top-right'] > .dndev-card-overlay {
|
|
4114
|
+
top: var(--gap-md);
|
|
4115
|
+
inset-inline-end: var(--gap-md);
|
|
4116
|
+
}
|
|
4117
|
+
|
|
4118
|
+
.dndev-card[data-overlay-position='bottom-left'] > .dndev-card-overlay {
|
|
4119
|
+
bottom: var(--gap-md);
|
|
4120
|
+
inset-inline-start: var(--gap-md);
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
.dndev-card[data-overlay-position='bottom-right'] > .dndev-card-overlay {
|
|
4124
|
+
bottom: var(--gap-md);
|
|
4125
|
+
inset-inline-end: var(--gap-md);
|
|
4126
|
+
}
|
|
4127
|
+
|
|
3623
4128
|
/* packages/components/src/atomic/Checkbox/Checkbox.css */
|
|
3624
4129
|
|
|
3625
4130
|
.dndev-control[data-type='checkbox'] {
|
|
3626
4131
|
display: inline-flex;
|
|
3627
4132
|
align-items: center;
|
|
3628
4133
|
justify-content: center;
|
|
3629
|
-
width: var(--
|
|
3630
|
-
height: var(--
|
|
4134
|
+
width: var(--font-size-input);
|
|
4135
|
+
height: var(--font-size-input);
|
|
3631
4136
|
aspect-ratio: 1;
|
|
3632
4137
|
border-radius: 4px;
|
|
4138
|
+
background-color: transparent;
|
|
3633
4139
|
}
|
|
3634
4140
|
|
|
3635
4141
|
.dndev-control[data-type='checkbox'][data-state='checked'] {
|
|
@@ -3690,8 +4196,8 @@ em {
|
|
|
3690
4196
|
}
|
|
3691
4197
|
|
|
3692
4198
|
.dndev-control[data-type='checkbox'] [data-radix-checkbox-indicator] svg {
|
|
3693
|
-
width: var(--
|
|
3694
|
-
height: var(--
|
|
4199
|
+
width: var(--font-size-input);
|
|
4200
|
+
height: var(--font-size-input);
|
|
3695
4201
|
animation: checkbox-check-in var(--dur-fast) var(--ease-in-out);
|
|
3696
4202
|
}
|
|
3697
4203
|
|
|
@@ -3940,47 +4446,15 @@ em {
|
|
|
3940
4446
|
|
|
3941
4447
|
.dndev-combobox-wrapper .dndev-input {
|
|
3942
4448
|
padding-inline-end: var(--combobox-pad-end);
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
/* Action buttons (create "+", clear "X") */
|
|
3946
|
-
|
|
3947
|
-
.dndev-combobox-action-btn {
|
|
3948
|
-
all: unset;
|
|
3949
|
-
display: flex;
|
|
3950
|
-
align-items: center;
|
|
3951
|
-
justify-content: center;
|
|
3952
|
-
width: var(--icon-md);
|
|
3953
|
-
height: var(--icon-md);
|
|
3954
|
-
border-radius: var(--radius-interactive, var(--radius-sm, 4px));
|
|
4449
|
+
text-overflow: ellipsis;
|
|
3955
4450
|
cursor: pointer;
|
|
3956
|
-
pointer-events: auto; /* re-enable clicks on buttons */
|
|
3957
|
-
color: var(--muted-foreground);
|
|
3958
|
-
opacity: var(--opacity-muted, 0.5);
|
|
3959
|
-
transition:
|
|
3960
|
-
opacity var(--dur-fast) var(--ease-in-out),
|
|
3961
|
-
background-color var(--dur-fast) var(--ease-in-out);
|
|
3962
|
-
}
|
|
3963
|
-
|
|
3964
|
-
.dndev-combobox-action-btn:hover {
|
|
3965
|
-
opacity: 1;
|
|
3966
|
-
background-color: var(--accent, rgba(0, 0, 0, 0.06));
|
|
3967
4451
|
}
|
|
3968
4452
|
|
|
3969
|
-
.dndev-
|
|
3970
|
-
|
|
3971
|
-
outline: none;
|
|
3972
|
-
box-shadow:
|
|
3973
|
-
0 0 0 2px var(--ring),
|
|
3974
|
-
0 0 0 4px rgb(from var(--ring) r g b / 0.2);
|
|
3975
|
-
}
|
|
3976
|
-
|
|
3977
|
-
.dndev-combobox-action-btn:active {
|
|
3978
|
-
opacity: 0.8;
|
|
3979
|
-
}
|
|
4453
|
+
/* Action buttons — extends shared .dndev-inline-action-btn from patterns.css.
|
|
4454
|
+
Only Combobox-specific overrides here. */
|
|
3980
4455
|
|
|
3981
|
-
.dndev-combobox-action-btn
|
|
3982
|
-
|
|
3983
|
-
height: var(--size-icon-sm, 16px);
|
|
4456
|
+
.dndev-combobox-action-btn {
|
|
4457
|
+
pointer-events: auto; /* re-enable clicks (trailing container is pointer-events: none) */
|
|
3984
4458
|
}
|
|
3985
4459
|
|
|
3986
4460
|
/* Create button accent color */
|
|
@@ -3995,22 +4469,16 @@ em {
|
|
|
3995
4469
|
color: var(--muted-foreground);
|
|
3996
4470
|
}
|
|
3997
4471
|
|
|
3998
|
-
/* Chevron
|
|
4472
|
+
/* Chevron toggle — extends .dndev-inline-action-btn from patterns.css
|
|
4473
|
+
(same pattern as RangeInput/DatePicker/Combobox clear+create).
|
|
4474
|
+
Only chevron-specific behavior: re-enable clicks in the trailing
|
|
4475
|
+
container and rotate the icon on open. */
|
|
3999
4476
|
|
|
4000
4477
|
.dndev-combobox-chevron {
|
|
4001
|
-
|
|
4002
|
-
height: var(--icon-md);
|
|
4003
|
-
display: flex;
|
|
4004
|
-
align-items: center;
|
|
4005
|
-
justify-content: center;
|
|
4006
|
-
color: var(--muted-foreground);
|
|
4007
|
-
opacity: var(--opacity-muted);
|
|
4008
|
-
pointer-events: none;
|
|
4478
|
+
pointer-events: auto;
|
|
4009
4479
|
}
|
|
4010
4480
|
|
|
4011
4481
|
.dndev-combobox-chevron svg {
|
|
4012
|
-
width: var(--icon-md);
|
|
4013
|
-
height: var(--icon-md);
|
|
4014
4482
|
transition: transform var(--dur-fast) var(--ease-in-out);
|
|
4015
4483
|
}
|
|
4016
4484
|
|
|
@@ -4018,14 +4486,14 @@ em {
|
|
|
4018
4486
|
transform: rotate(180deg);
|
|
4019
4487
|
}
|
|
4020
4488
|
|
|
4021
|
-
/* Spinner replaces chevron */
|
|
4489
|
+
/* Spinner replaces chevron — match its footprint so there's no layout shift */
|
|
4022
4490
|
|
|
4023
4491
|
.dndev-combobox-spinner {
|
|
4024
4492
|
display: flex;
|
|
4025
4493
|
align-items: center;
|
|
4026
4494
|
justify-content: center;
|
|
4027
|
-
width: var(--
|
|
4028
|
-
height:
|
|
4495
|
+
width: var(--touch-target);
|
|
4496
|
+
height: 100%;
|
|
4029
4497
|
pointer-events: none;
|
|
4030
4498
|
}
|
|
4031
4499
|
|
|
@@ -4075,9 +4543,6 @@ em {
|
|
|
4075
4543
|
────────────────────────────────────────────────── */
|
|
4076
4544
|
|
|
4077
4545
|
.dndev-combobox-content {
|
|
4078
|
-
width: var(--radix-popover-trigger-width);
|
|
4079
|
-
min-width: var(--radix-popover-trigger-width);
|
|
4080
|
-
max-width: var(--radix-popover-trigger-width);
|
|
4081
4546
|
display: flex;
|
|
4082
4547
|
flex-direction: column;
|
|
4083
4548
|
padding: 0;
|
|
@@ -4130,6 +4595,13 @@ em {
|
|
|
4130
4595
|
color: var(--muted-foreground);
|
|
4131
4596
|
}
|
|
4132
4597
|
|
|
4598
|
+
.dndev-combobox-option-count {
|
|
4599
|
+
font-size: var(--font-size-xs);
|
|
4600
|
+
color: var(--muted-foreground);
|
|
4601
|
+
margin-inline-start: var(--gap-tight);
|
|
4602
|
+
flex-shrink: 0;
|
|
4603
|
+
}
|
|
4604
|
+
|
|
4133
4605
|
.dndev-combobox-option-check {
|
|
4134
4606
|
width: var(--icon-md);
|
|
4135
4607
|
height: var(--icon-md);
|
|
@@ -5139,11 +5611,13 @@ em {
|
|
|
5139
5611
|
position: relative;
|
|
5140
5612
|
}
|
|
5141
5613
|
|
|
5142
|
-
.dndev-hero-section--bg-contain[data-justify='center']
|
|
5614
|
+
.dndev-hero-section--bg-contain[data-justify='center']
|
|
5615
|
+
> .dndev-hero-section__text {
|
|
5143
5616
|
justify-content: center;
|
|
5144
5617
|
}
|
|
5145
5618
|
|
|
5146
|
-
.dndev-hero-section--bg-contain[data-justify='start']
|
|
5619
|
+
.dndev-hero-section--bg-contain[data-justify='start']
|
|
5620
|
+
> .dndev-hero-section__text {
|
|
5147
5621
|
justify-content: flex-start;
|
|
5148
5622
|
}
|
|
5149
5623
|
|
|
@@ -5296,6 +5770,10 @@ em {
|
|
|
5296
5770
|
background-color: var(--muted);
|
|
5297
5771
|
}
|
|
5298
5772
|
|
|
5773
|
+
.image-gallery__main--lightbox {
|
|
5774
|
+
cursor: zoom-in;
|
|
5775
|
+
}
|
|
5776
|
+
|
|
5299
5777
|
.image-gallery__main-image {
|
|
5300
5778
|
width: 100%;
|
|
5301
5779
|
height: 100%;
|
|
@@ -5418,6 +5896,46 @@ em {
|
|
|
5418
5896
|
}
|
|
5419
5897
|
}
|
|
5420
5898
|
|
|
5899
|
+
/* Lightbox (full-size image dialog) */
|
|
5900
|
+
|
|
5901
|
+
.image-gallery__lightbox.dndev-modal-content {
|
|
5902
|
+
max-width: min(96vw, 1400px);
|
|
5903
|
+
max-height: 96dvh;
|
|
5904
|
+
padding: var(--gap-sm);
|
|
5905
|
+
}
|
|
5906
|
+
|
|
5907
|
+
.image-gallery__lightbox .dndev-modal-body {
|
|
5908
|
+
padding: 0;
|
|
5909
|
+
display: flex;
|
|
5910
|
+
align-items: center;
|
|
5911
|
+
justify-content: center;
|
|
5912
|
+
overflow: hidden;
|
|
5913
|
+
min-height: 40dvh;
|
|
5914
|
+
}
|
|
5915
|
+
|
|
5916
|
+
.image-gallery__lightbox-body {
|
|
5917
|
+
position: relative;
|
|
5918
|
+
display: flex;
|
|
5919
|
+
align-items: center;
|
|
5920
|
+
justify-content: center;
|
|
5921
|
+
width: 100%;
|
|
5922
|
+
outline: none;
|
|
5923
|
+
}
|
|
5924
|
+
|
|
5925
|
+
.image-gallery__lightbox-img {
|
|
5926
|
+
max-width: 100%;
|
|
5927
|
+
max-height: 85dvh;
|
|
5928
|
+
width: auto;
|
|
5929
|
+
height: auto;
|
|
5930
|
+
-o-object-fit: contain;
|
|
5931
|
+
object-fit: contain;
|
|
5932
|
+
}
|
|
5933
|
+
|
|
5934
|
+
.image-gallery__lightbox-nav {
|
|
5935
|
+
opacity: 0.92;
|
|
5936
|
+
z-index: 3;
|
|
5937
|
+
}
|
|
5938
|
+
|
|
5421
5939
|
/* packages/components/src/atomic/Input/Input.css */
|
|
5422
5940
|
|
|
5423
5941
|
/* Hide number input spinners - cleaner UI for price/range inputs */
|
|
@@ -5467,13 +5985,13 @@ input[type='number'] {
|
|
|
5467
5985
|
|
|
5468
5986
|
/* Error / destructive state — red border for invalid fields */
|
|
5469
5987
|
|
|
5470
|
-
[data-variant=
|
|
5471
|
-
[aria-invalid=
|
|
5988
|
+
[data-variant='destructive'],
|
|
5989
|
+
[aria-invalid='true'] {
|
|
5472
5990
|
border-color: var(--destructive);
|
|
5473
5991
|
}
|
|
5474
5992
|
|
|
5475
|
-
[data-variant=
|
|
5476
|
-
[aria-invalid=
|
|
5993
|
+
[data-variant='destructive']:focus,
|
|
5994
|
+
[aria-invalid='true']:focus {
|
|
5477
5995
|
border-color: var(--destructive);
|
|
5478
5996
|
outline-color: var(--destructive);
|
|
5479
5997
|
}
|
|
@@ -6063,6 +6581,105 @@ input[type='number'] {
|
|
|
6063
6581
|
height: var(--icon-sm);
|
|
6064
6582
|
}
|
|
6065
6583
|
|
|
6584
|
+
/* packages/components/src/atomic/PinInput/PinInput.css */
|
|
6585
|
+
|
|
6586
|
+
.dndev-pin-input {
|
|
6587
|
+
display: flex;
|
|
6588
|
+
gap: var(--gap-sm);
|
|
6589
|
+
align-items: center;
|
|
6590
|
+
justify-content: center;
|
|
6591
|
+
direction: ltr; /* digits are always LTR even in RTL locales */
|
|
6592
|
+
}
|
|
6593
|
+
|
|
6594
|
+
.dndev-pin-input__box {
|
|
6595
|
+
inline-size: var(--input-height, 2.75rem) !important;
|
|
6596
|
+
block-size: var(--input-height, 2.75rem) !important;
|
|
6597
|
+
padding: 0 !important;
|
|
6598
|
+
text-align: center !important;
|
|
6599
|
+
font-size: var(--font-xl, 1.25rem) !important;
|
|
6600
|
+
font-variant-numeric: tabular-nums;
|
|
6601
|
+
font-feature-settings: 'tnum' 1;
|
|
6602
|
+
caret-color: var(--primary);
|
|
6603
|
+
}
|
|
6604
|
+
|
|
6605
|
+
/* Mask the typed digit via CSS, not by overwriting React's controlled value.
|
|
6606
|
+
Rewriting value={raw} → value='•' on every keystroke forces React to
|
|
6607
|
+
overwrite the native input value after the browser has already painted
|
|
6608
|
+
the user's keystroke, which is the classic "lags like shit" PinInput bug
|
|
6609
|
+
on mobile Chrome/Safari. `-webkit-text-security: disc` renders a bullet
|
|
6610
|
+
purely in the layout layer while the input's real value stays the digit,
|
|
6611
|
+
so React never has to race the browser's paint pipeline.
|
|
6612
|
+
Firefox does not support -webkit-text-security and will render the digit
|
|
6613
|
+
unmasked; the eye-toggle still works for revealing on WebKit/Blink. */
|
|
6614
|
+
|
|
6615
|
+
.dndev-pin-input__box--masked {
|
|
6616
|
+
-webkit-text-security: disc;
|
|
6617
|
+
}
|
|
6618
|
+
|
|
6619
|
+
.dndev-pin-input__reveal {
|
|
6620
|
+
background: none;
|
|
6621
|
+
border: none;
|
|
6622
|
+
cursor: pointer;
|
|
6623
|
+
padding: var(--gap-tight, 0.25rem);
|
|
6624
|
+
margin-inline-start: var(--gap-sm, 0.5rem);
|
|
6625
|
+
display: inline-flex;
|
|
6626
|
+
align-items: center;
|
|
6627
|
+
justify-content: center;
|
|
6628
|
+
color: var(--muted-foreground, currentColor);
|
|
6629
|
+
opacity: var(--opacity-muted, 0.65);
|
|
6630
|
+
transition: opacity var(--dur-fast, 150ms) var(--ease-in-out, ease-in-out);
|
|
6631
|
+
-webkit-user-select: none;
|
|
6632
|
+
-moz-user-select: none;
|
|
6633
|
+
user-select: none;
|
|
6634
|
+
-webkit-tap-highlight-color: transparent;
|
|
6635
|
+
}
|
|
6636
|
+
|
|
6637
|
+
.dndev-pin-input__reveal:hover,
|
|
6638
|
+
.dndev-pin-input__reveal:focus-visible {
|
|
6639
|
+
opacity: 1;
|
|
6640
|
+
outline: none;
|
|
6641
|
+
}
|
|
6642
|
+
|
|
6643
|
+
.dndev-pin-input__reveal:focus-visible {
|
|
6644
|
+
outline: 2px solid var(--primary, currentColor);
|
|
6645
|
+
outline-offset: 2px;
|
|
6646
|
+
border-radius: var(--radius-sm, 4px);
|
|
6647
|
+
}
|
|
6648
|
+
|
|
6649
|
+
/* Shake animation hook — the container flips data-shake='true' on error
|
|
6650
|
+
and the animation plays once via this keyframe. Consumers can override
|
|
6651
|
+
via `.dndev-pin-input[data-shake='true'] { animation: ... }`. */
|
|
6652
|
+
|
|
6653
|
+
@keyframes dndev-pin-input-shake {
|
|
6654
|
+
0%,
|
|
6655
|
+
100% {
|
|
6656
|
+
transform: translateX(0);
|
|
6657
|
+
}
|
|
6658
|
+
20% {
|
|
6659
|
+
transform: translateX(-0.35rem);
|
|
6660
|
+
}
|
|
6661
|
+
40% {
|
|
6662
|
+
transform: translateX(0.35rem);
|
|
6663
|
+
}
|
|
6664
|
+
60% {
|
|
6665
|
+
transform: translateX(-0.25rem);
|
|
6666
|
+
}
|
|
6667
|
+
80% {
|
|
6668
|
+
transform: translateX(0.15rem);
|
|
6669
|
+
}
|
|
6670
|
+
}
|
|
6671
|
+
|
|
6672
|
+
.dndev-pin-input[data-shake='true'] {
|
|
6673
|
+
animation: dndev-pin-input-shake var(--dur-normal, 320ms)
|
|
6674
|
+
var(--ease-in-out, ease-in-out) 1;
|
|
6675
|
+
}
|
|
6676
|
+
|
|
6677
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6678
|
+
.dndev-pin-input[data-shake='true'] {
|
|
6679
|
+
animation: none;
|
|
6680
|
+
}
|
|
6681
|
+
}
|
|
6682
|
+
|
|
6066
6683
|
/* packages/components/src/atomic/Pagination/Pagination.css */
|
|
6067
6684
|
|
|
6068
6685
|
.dndev-pagination {
|
|
@@ -6231,8 +6848,8 @@ input[type='number'] {
|
|
|
6231
6848
|
}
|
|
6232
6849
|
|
|
6233
6850
|
.dndev-control[data-type='radio'] {
|
|
6234
|
-
width: var(--
|
|
6235
|
-
height: var(--
|
|
6851
|
+
width: var(--font-size-input);
|
|
6852
|
+
height: var(--font-size-input);
|
|
6236
6853
|
border-radius: var(--radius-full);
|
|
6237
6854
|
border-width: var(--border-hairline);
|
|
6238
6855
|
background-color: transparent;
|
|
@@ -6319,15 +6936,22 @@ input[type='number'] {
|
|
|
6319
6936
|
|
|
6320
6937
|
.dndev-range-input {
|
|
6321
6938
|
display: grid;
|
|
6322
|
-
grid-template-columns: 1fr auto 1fr auto;
|
|
6939
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
|
|
6323
6940
|
align-items: center;
|
|
6324
|
-
gap:
|
|
6941
|
+
-moz-column-gap: 0;
|
|
6942
|
+
column-gap: 0;
|
|
6943
|
+
padding-inline-start: var(--gap-sm);
|
|
6325
6944
|
width: 100%;
|
|
6326
6945
|
}
|
|
6327
6946
|
|
|
6328
6947
|
.dndev-range-input > .dndev-input,
|
|
6329
6948
|
.dndev-range-input > .dndev-relative {
|
|
6330
6949
|
min-width: 0;
|
|
6950
|
+
padding-inline: var(--gap-sm);
|
|
6951
|
+
}
|
|
6952
|
+
|
|
6953
|
+
.dndev-range-input-separator {
|
|
6954
|
+
padding-inline: var(--gap-tight);
|
|
6331
6955
|
}
|
|
6332
6956
|
|
|
6333
6957
|
/* packages/components/src/atomic/Rating/Rating.css */
|
|
@@ -6481,7 +7105,7 @@ input[type='number'] {
|
|
|
6481
7105
|
/* Numeric value display */
|
|
6482
7106
|
|
|
6483
7107
|
.dndev-rating-value {
|
|
6484
|
-
font-size: var(--font-size-
|
|
7108
|
+
font-size: var(--font-size-input);
|
|
6485
7109
|
font-weight: var(--font-weight-medium);
|
|
6486
7110
|
color: var(--muted-foreground);
|
|
6487
7111
|
min-width: 2ch;
|
|
@@ -6513,7 +7137,7 @@ input[type='number'] {
|
|
|
6513
7137
|
}
|
|
6514
7138
|
|
|
6515
7139
|
.dndev-select-trigger [data-radix-select-value] {
|
|
6516
|
-
font-size: var(--font-size-
|
|
7140
|
+
font-size: var(--font-size-input);
|
|
6517
7141
|
}
|
|
6518
7142
|
|
|
6519
7143
|
.dndev-select-content {
|
|
@@ -6573,6 +7197,16 @@ input[type='number'] {
|
|
|
6573
7197
|
border-radius: inherit;
|
|
6574
7198
|
}
|
|
6575
7199
|
|
|
7200
|
+
/* Radix injects `display:table; min-width:100%` as inline style on the viewport's
|
|
7201
|
+
direct child. A display:table element sizes to its content's min-content width,
|
|
7202
|
+
ignoring max-width:100% (Chrome resolves the % against the table's own bloated
|
|
7203
|
+
width, not the viewport). contain:inline-size prevents content-based sizing:
|
|
7204
|
+
the table stays at min-width:100% = viewport width regardless of descendant content. */
|
|
7205
|
+
|
|
7206
|
+
.dndev-scroll-area-viewport > div {
|
|
7207
|
+
contain: inline-size;
|
|
7208
|
+
}
|
|
7209
|
+
|
|
6576
7210
|
.dndev-scroll-bar {
|
|
6577
7211
|
display: flex;
|
|
6578
7212
|
touch-action: none;
|
|
@@ -7997,7 +8631,7 @@ input[type='number'] {
|
|
|
7997
8631
|
}
|
|
7998
8632
|
|
|
7999
8633
|
.dndev-switch-label {
|
|
8000
|
-
font-size: var(--font-size-
|
|
8634
|
+
font-size: var(--font-size-input);
|
|
8001
8635
|
transition:
|
|
8002
8636
|
color var(--dur-normal) var(--ease-in-out),
|
|
8003
8637
|
font-weight var(--dur-normal) var(--ease-in-out);
|
|
@@ -9107,7 +9741,8 @@ input[type='number'] {
|
|
|
9107
9741
|
outline: none;
|
|
9108
9742
|
}
|
|
9109
9743
|
|
|
9110
|
-
/* Expand/collapse chevron
|
|
9744
|
+
/* Expand/collapse chevron — wrapper reserves the indent column (--icon-md),
|
|
9745
|
+
svg is the nested icon (--icon-sm). */
|
|
9111
9746
|
|
|
9112
9747
|
.dndev-tree-node-expand {
|
|
9113
9748
|
display: flex;
|
|
@@ -9120,6 +9755,11 @@ input[type='number'] {
|
|
|
9120
9755
|
color: var(--muted-foreground);
|
|
9121
9756
|
}
|
|
9122
9757
|
|
|
9758
|
+
.dndev-tree-node-expand svg {
|
|
9759
|
+
width: var(--icon-sm);
|
|
9760
|
+
height: var(--icon-sm);
|
|
9761
|
+
}
|
|
9762
|
+
|
|
9123
9763
|
[role='treeitem'][aria-expanded='true']
|
|
9124
9764
|
> .dndev-tree-node-content
|
|
9125
9765
|
> .dndev-tree-node-expand {
|
|
@@ -9909,12 +10549,11 @@ input[type='number'] {
|
|
|
9909
10549
|
box-shadow: var(--shadow-xl);
|
|
9910
10550
|
}
|
|
9911
10551
|
|
|
9912
|
-
/* Phase badge -
|
|
10552
|
+
/* Phase badge - used inside Card overlay container */
|
|
9913
10553
|
|
|
9914
10554
|
.dndev-roadmap-phase {
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
inset-inline-end: var(--gap-sm);
|
|
10555
|
+
display: inline-flex;
|
|
10556
|
+
align-items: center;
|
|
9918
10557
|
font-size: var(--font-size-xs);
|
|
9919
10558
|
font-weight: var(--font-weight-bold);
|
|
9920
10559
|
text-transform: uppercase;
|
|
@@ -11995,15 +12634,17 @@ aside[role='navigation'].sidebar {
|
|
|
11995
12634
|
max-width: calc(var(--sidebar-resize-handle-width) + 400px);
|
|
11996
12635
|
/* Max: 400px content + 6px handle = 406px */
|
|
11997
12636
|
z-index: var(--z-sidebar);
|
|
11998
|
-
overflow:
|
|
11999
|
-
/*
|
|
12637
|
+
overflow-x: hidden;
|
|
12638
|
+
/* Horizontal must be clipped — handle is in grid so vertical needs no clipping */
|
|
12000
12639
|
contain: layout style;
|
|
12001
12640
|
padding: 0;
|
|
12002
12641
|
display: grid;
|
|
12003
12642
|
grid-template-columns: auto var(--sidebar-resize-handle-width);
|
|
12004
12643
|
/* Content | Handle - column 1 width set inline */
|
|
12005
|
-
grid-template-rows: auto 1fr auto;
|
|
12006
|
-
/* Top | Content | Bottom
|
|
12644
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
12645
|
+
/* Top | Content | Bottom. `minmax(0, 1fr)` overrides the default `auto`
|
|
12646
|
+
min track size so the content row can shrink below its content height,
|
|
12647
|
+
which is what lets `.sidebar-content`'s overflow-y: auto actually fire. */
|
|
12007
12648
|
height: 100%;
|
|
12008
12649
|
|
|
12009
12650
|
/* Desktop presets with no sidebar: Hide sidebar element for performance/accessibility */
|
|
@@ -12107,7 +12748,9 @@ aside[role='navigation'].sidebar[data-dragging='true']
|
|
|
12107
12748
|
grid-row: 2;
|
|
12108
12749
|
overflow-y: auto;
|
|
12109
12750
|
min-height: 0;
|
|
12110
|
-
|
|
12751
|
+
/* `safe` falls back to flex-start on overflow. Without it, centered overflow
|
|
12752
|
+
pushes the top half above scrollTop=0 where it's unreachable. */
|
|
12753
|
+
justify-content: safe center;
|
|
12111
12754
|
/* Zero gap between items - they touch vertically */
|
|
12112
12755
|
gap: var(--gap-none);
|
|
12113
12756
|
|
|
@@ -12149,6 +12792,13 @@ aside[role='navigation'].sidebar[data-dragging='true']
|
|
|
12149
12792
|
padding-block-start: var(--gap-md);
|
|
12150
12793
|
}
|
|
12151
12794
|
|
|
12795
|
+
/* Reduce Section padding when inside sidebar - sidebar space is precious */
|
|
12796
|
+
|
|
12797
|
+
.sidebar-content .dndev-section-content {
|
|
12798
|
+
padding-inline: var(--gap-sm);
|
|
12799
|
+
padding-block: var(--gap-sm);
|
|
12800
|
+
}
|
|
12801
|
+
|
|
12152
12802
|
/* Interactive elements in all zones: full width */
|
|
12153
12803
|
|
|
12154
12804
|
.sidebar-top .dndev-interactive,
|
|
@@ -12233,6 +12883,12 @@ aside.sidebar[role='navigation'][data-collapsed='true'] .app-branding {
|
|
|
12233
12883
|
display: none;
|
|
12234
12884
|
}
|
|
12235
12885
|
|
|
12886
|
+
/* Custom sidebar content: hide labeled text, keep icons */
|
|
12887
|
+
|
|
12888
|
+
aside.sidebar[role='navigation'][data-collapsed='true'] .sidebar-collapsible {
|
|
12889
|
+
display: none;
|
|
12890
|
+
}
|
|
12891
|
+
|
|
12236
12892
|
/* Main content: Starts at header-height and sidebar-width */
|
|
12237
12893
|
|
|
12238
12894
|
main[role='main'] {
|
|
@@ -12381,7 +13037,8 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12381
13037
|
}
|
|
12382
13038
|
|
|
12383
13039
|
/* Bottom mergedBar: hide footer + add safe-area padding */
|
|
12384
|
-
.dndev-layout:has(.merged-bar[data-position='bottom'])
|
|
13040
|
+
.dndev-layout:has(.merged-bar[data-position='bottom'])
|
|
13041
|
+
> footer[role='contentinfo'] {
|
|
12385
13042
|
display: none;
|
|
12386
13043
|
}
|
|
12387
13044
|
.dndev-layout:has(.merged-bar[data-position='bottom']) {
|
|
@@ -12662,7 +13319,7 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12662
13319
|
|
|
12663
13320
|
.dndev-container {
|
|
12664
13321
|
width: 100%;
|
|
12665
|
-
max-width: var(--content-width);
|
|
13322
|
+
max-width: var(--max-content-width);
|
|
12666
13323
|
min-width: 0; /* Allow shrinking in flex so max-width wins */
|
|
12667
13324
|
flex: 1 1 auto;
|
|
12668
13325
|
|
|
@@ -12709,25 +13366,29 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12709
13366
|
max-width: none;
|
|
12710
13367
|
}
|
|
12711
13368
|
|
|
12712
|
-
/* Standard width - responsive
|
|
13369
|
+
/* Standard width - responsive.
|
|
13370
|
+
Base rule `max-width: var(--max-content-width)` picks up the local override.
|
|
13371
|
+
Do NOT add an explicit `max-width: var(--content-width)` here — `--content-width`
|
|
13372
|
+
is resolved eagerly at :root (where --max-content-width is 100%) and inherits as
|
|
13373
|
+
100%, overriding the local variant. The base rule reads --max-content-width
|
|
13374
|
+
directly at the element and gets the correct value. */
|
|
12713
13375
|
|
|
12714
13376
|
.dndev-container[data-variant='standard'] {
|
|
12715
13377
|
--max-content-width: var(--content-width-standard);
|
|
12716
|
-
max-width: var(--content-width);
|
|
12717
13378
|
}
|
|
12718
13379
|
|
|
12719
|
-
/* Docs width - responsive
|
|
13380
|
+
/* Docs width - responsive. See [data-variant='standard'] for why there's no
|
|
13381
|
+
explicit max-width here. */
|
|
12720
13382
|
|
|
12721
13383
|
.dndev-container[data-variant='docs'] {
|
|
12722
13384
|
--max-content-width: var(--content-width-docs);
|
|
12723
|
-
max-width: var(--content-width);
|
|
12724
13385
|
}
|
|
12725
13386
|
|
|
12726
|
-
/* Narrow width - mobile-first single column (PWA, app-like on every device)
|
|
13387
|
+
/* Narrow width - mobile-first single column (PWA, app-like on every device).
|
|
13388
|
+
See [data-variant='standard'] for why there's no explicit max-width here. */
|
|
12727
13389
|
|
|
12728
13390
|
.dndev-container[data-variant='narrow'] {
|
|
12729
13391
|
--max-content-width: var(--content-width-narrow);
|
|
12730
|
-
max-width: var(--content-width);
|
|
12731
13392
|
}
|
|
12732
13393
|
|
|
12733
13394
|
/* Fixed frame - fills parent exactly, prevents parent scroll */
|