@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/styles/index.css
CHANGED
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
Standard touch-friendly sizing for all interactive components
|
|
29
29
|
=========================== */
|
|
30
30
|
--touch-target: 48px;
|
|
31
|
-
--icon-
|
|
31
|
+
--icon-sm: 16px; /* Nested icon size (inside inputs, action buttons, badges) */
|
|
32
|
+
--icon-md: 24px; /* Standard standalone icon size */
|
|
32
33
|
--icon-touch: 32px; /* Large icon size (reserved) */
|
|
33
34
|
|
|
34
35
|
/* ===========================
|
|
@@ -133,6 +134,13 @@
|
|
|
133
134
|
--popover: var(--card);
|
|
134
135
|
--popover-foreground: var(--card-foreground);
|
|
135
136
|
|
|
137
|
+
/*
|
|
138
|
+
* Interactive surface — background for inputs (.dndev-input) and outline
|
|
139
|
+
* buttons (.dndev-interactive[data-variant='outline']). Parallel to --card
|
|
140
|
+
* for containers. Defaults to transparent so apps opt in via themes.css.
|
|
141
|
+
*/
|
|
142
|
+
--interactive: transparent;
|
|
143
|
+
|
|
136
144
|
/*
|
|
137
145
|
* Root card snapshot — computed once on :root from --card/--card-foreground,
|
|
138
146
|
* then inherited unchanged. Variant blocks (e.g. primary) override --card but
|
|
@@ -181,6 +189,7 @@
|
|
|
181
189
|
--font-size-xs: 0.75rem; /* 12px - captions, shortcuts, meta */
|
|
182
190
|
--font-size-sm: 0.875rem; /* 14px - small text, captions */
|
|
183
191
|
--font-size-base: 1rem; /* 16px - body text, DEFAULT */
|
|
192
|
+
--font-size-input: 16px; /* Form field text - hardcoded for iOS zoom + density-proof */
|
|
184
193
|
--font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
|
|
185
194
|
--font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
|
|
186
195
|
--font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
|
|
@@ -279,7 +288,7 @@
|
|
|
279
288
|
Micro-interactions for buttons and interactive elements.
|
|
280
289
|
Set to 0/1 to disable individual effects.
|
|
281
290
|
=========================== */
|
|
282
|
-
--hover-lift:
|
|
291
|
+
--hover-lift: 0; /* translateY on hover (0 = disabled) */
|
|
283
292
|
--click-scale: 0.97; /* scale on click (1 = disabled) */
|
|
284
293
|
--ripple-opacity: 0.2; /* ripple effect opacity (0 = disabled) */
|
|
285
294
|
|
|
@@ -791,13 +800,13 @@ em {
|
|
|
791
800
|
width: 100%;
|
|
792
801
|
border-radius: var(--radius-interactive);
|
|
793
802
|
border: var(--border-hairline) solid var(--line-2);
|
|
794
|
-
background-color: transparent;
|
|
803
|
+
background-color: var(--interactive, transparent);
|
|
795
804
|
color: var(--foreground);
|
|
796
805
|
padding-inline-start: var(--gap-md);
|
|
797
806
|
padding-inline-end: var(--gap-md);
|
|
798
807
|
padding-top: var(--gap-sm);
|
|
799
808
|
padding-bottom: var(--gap-sm);
|
|
800
|
-
font-size:
|
|
809
|
+
font-size: var(--font-size-input);
|
|
801
810
|
box-shadow: var(--shadow-sm);
|
|
802
811
|
transition: all var(--dur-normal) var(--ease-in-out);
|
|
803
812
|
/* Touch target for mobile */
|
|
@@ -817,10 +826,12 @@ em {
|
|
|
817
826
|
|
|
818
827
|
.dndev-input::-moz-placeholder {
|
|
819
828
|
color: var(--placeholder);
|
|
829
|
+
font-size: var(--font-size-input);
|
|
820
830
|
}
|
|
821
831
|
|
|
822
832
|
.dndev-input::placeholder {
|
|
823
833
|
color: var(--placeholder);
|
|
834
|
+
font-size: var(--font-size-input);
|
|
824
835
|
}
|
|
825
836
|
|
|
826
837
|
.dndev-input:hover {
|
|
@@ -876,6 +887,56 @@ em {
|
|
|
876
887
|
color: var(--placeholder);
|
|
877
888
|
}
|
|
878
889
|
|
|
890
|
+
/* ===========================
|
|
891
|
+
INLINE ACTION BUTTONS
|
|
892
|
+
=========================== */
|
|
893
|
+
|
|
894
|
+
/** Shared pattern for inline clear/action buttons inside input-like components.
|
|
895
|
+
* Used by: Combobox trailing buttons, RangeInput clear, DateFilter clear. */
|
|
896
|
+
|
|
897
|
+
.dndev-inline-action-btn {
|
|
898
|
+
all: unset;
|
|
899
|
+
display: flex;
|
|
900
|
+
align-items: center;
|
|
901
|
+
justify-content: center;
|
|
902
|
+
width: var(--touch-target);
|
|
903
|
+
height: 100%;
|
|
904
|
+
cursor: pointer;
|
|
905
|
+
color: var(--muted-foreground);
|
|
906
|
+
opacity: var(--opacity-muted, 0.5);
|
|
907
|
+
transition:
|
|
908
|
+
color var(--dur-fast) var(--ease-in-out),
|
|
909
|
+
opacity var(--dur-fast) var(--ease-in-out);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.dndev-inline-action-btn:hover:not(:disabled) {
|
|
913
|
+
opacity: 1;
|
|
914
|
+
color: var(--foreground);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.dndev-inline-action-btn:focus-visible {
|
|
918
|
+
opacity: 1;
|
|
919
|
+
color: var(--foreground);
|
|
920
|
+
outline: none;
|
|
921
|
+
box-shadow:
|
|
922
|
+
0 0 0 2px var(--ring),
|
|
923
|
+
0 0 0 4px rgb(from var(--ring) r g b / 0.2);
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
.dndev-inline-action-btn:active:not(:disabled) {
|
|
927
|
+
opacity: 0.8;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.dndev-inline-action-btn:disabled {
|
|
931
|
+
cursor: not-allowed;
|
|
932
|
+
opacity: calc(var(--opacity-muted, 0.5) * 0.5);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
.dndev-inline-action-btn svg {
|
|
936
|
+
width: var(--icon-sm);
|
|
937
|
+
height: var(--icon-sm);
|
|
938
|
+
}
|
|
939
|
+
|
|
879
940
|
/* Control base class - checkbox, radio, switch, slider */
|
|
880
941
|
|
|
881
942
|
.dndev-control {
|
|
@@ -1432,7 +1493,7 @@ em {
|
|
|
1432
1493
|
text-transform: var(--text-transform-button, none);
|
|
1433
1494
|
transition:
|
|
1434
1495
|
background var(--dur-fast) var(--ease-in-out),
|
|
1435
|
-
|
|
1496
|
+
color var(--dur-fast) var(--ease-in-out),
|
|
1436
1497
|
box-shadow var(--dur-fast) var(--ease-in-out),
|
|
1437
1498
|
border-color var(--dur-fast) var(--ease-in-out);
|
|
1438
1499
|
cursor: pointer;
|
|
@@ -1446,11 +1507,10 @@ em {
|
|
|
1446
1507
|
|
|
1447
1508
|
.dndev-interactive:hover {
|
|
1448
1509
|
background: color-mix(in oklab, var(--primary) 85%, var(--foreground));
|
|
1449
|
-
transform: translateY(var(--hover-lift));
|
|
1450
1510
|
}
|
|
1451
1511
|
|
|
1452
1512
|
.dndev-interactive:active:not(:disabled) {
|
|
1453
|
-
transform:
|
|
1513
|
+
transform: scale(var(--click-scale));
|
|
1454
1514
|
}
|
|
1455
1515
|
|
|
1456
1516
|
.dndev-interactive:focus-visible {
|
|
@@ -1535,17 +1595,34 @@ em {
|
|
|
1535
1595
|
}
|
|
1536
1596
|
|
|
1537
1597
|
/* ═══════════════════════════
|
|
1538
|
-
|
|
1598
|
+
TRANSPARENT VARIANTS
|
|
1539
1599
|
═══════════════════════════ */
|
|
1540
1600
|
|
|
1541
|
-
/*
|
|
1601
|
+
/* Outline — themeable interactive surface (parallel to --card) */
|
|
1602
|
+
|
|
1603
|
+
.dndev-interactive[data-variant='outline'] {
|
|
1604
|
+
background: var(--interactive, transparent);
|
|
1605
|
+
color: var(--foreground);
|
|
1606
|
+
}
|
|
1542
1607
|
|
|
1543
|
-
|
|
1608
|
+
/* Ghost / nav / menu / command — transparent by design */
|
|
1609
|
+
|
|
1610
|
+
.dndev-interactive[data-variant='ghost'],.dndev-interactive[data-role='nav-trigger'],.dndev-interactive[data-role='menu-item'],.dndev-interactive[data-role='command-item'] {
|
|
1544
1611
|
background: transparent;
|
|
1545
1612
|
color: var(--foreground);
|
|
1546
1613
|
}
|
|
1547
1614
|
|
|
1548
|
-
|
|
1615
|
+
/* Ghost — hover = font color only, no bg, no lift */
|
|
1616
|
+
|
|
1617
|
+
.dndev-interactive[data-variant='ghost']:hover {
|
|
1618
|
+
background: transparent;
|
|
1619
|
+
color: var(--primary);
|
|
1620
|
+
transform: none;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
/* Outline / menu / nav — hover = subtle tint + text color shift */
|
|
1624
|
+
|
|
1625
|
+
: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 {
|
|
1549
1626
|
background: rgb(from var(--primary) r g b / 0.1);
|
|
1550
1627
|
color: var(--primary);
|
|
1551
1628
|
}
|
|
@@ -1583,7 +1660,9 @@ em {
|
|
|
1583
1660
|
}
|
|
1584
1661
|
|
|
1585
1662
|
.dndev-interactive[data-variant='link']:hover {
|
|
1663
|
+
background: transparent;
|
|
1586
1664
|
color: var(--primary);
|
|
1665
|
+
transform: none;
|
|
1587
1666
|
}
|
|
1588
1667
|
|
|
1589
1668
|
/* Context-aware: ONLY inside accent surfaces */
|
|
@@ -1595,18 +1674,28 @@ em {
|
|
|
1595
1674
|
color: var(--surface-bg);
|
|
1596
1675
|
}
|
|
1597
1676
|
|
|
1598
|
-
/* Outline
|
|
1677
|
+
/* Outline adapts with tint */
|
|
1599
1678
|
|
|
1600
|
-
[data-variant='outline']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive)
|
|
1679
|
+
[data-variant='outline']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive) {
|
|
1601
1680
|
color: var(--surface-text);
|
|
1602
1681
|
}
|
|
1603
1682
|
|
|
1604
|
-
|
|
1683
|
+
[data-variant='outline']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive):hover {
|
|
1605
1684
|
background: rgb(from var(--surface-text) r g b / 0.1);
|
|
1606
1685
|
color: var(--surface-text);
|
|
1607
1686
|
}
|
|
1608
1687
|
|
|
1609
|
-
/*
|
|
1688
|
+
/* Ghost adapts — font color only */
|
|
1689
|
+
|
|
1690
|
+
[data-variant='ghost']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive) {
|
|
1691
|
+
color: var(--surface-text);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
[data-variant='ghost']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive):hover {
|
|
1695
|
+
color: var(--surface-text);
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
/* Unified menu/command/nav item base */
|
|
1610
1699
|
|
|
1611
1700
|
.dndev-interactive[data-role='menu-item'],.dndev-interactive[data-role='command-item'],.dndev-interactive[data-role='nav-trigger'] {
|
|
1612
1701
|
min-height: auto;
|
|
@@ -1785,7 +1874,7 @@ em {
|
|
|
1785
1874
|
|
|
1786
1875
|
.dndev-control-group {
|
|
1787
1876
|
display: grid;
|
|
1788
|
-
gap: var(--gap-
|
|
1877
|
+
gap: var(--gap-sm); /* 8px - tighter spacing for control groups */
|
|
1789
1878
|
|
|
1790
1879
|
/* Control + label pattern - used by RadioGroup, CheckboxFieldComponent, etc. */
|
|
1791
1880
|
}
|
|
@@ -1794,7 +1883,7 @@ em {
|
|
|
1794
1883
|
display: flex;
|
|
1795
1884
|
align-items: center;
|
|
1796
1885
|
gap: var(--gap-sm); /* 8px - spacing between control and label */
|
|
1797
|
-
font-size: var(--font-size-
|
|
1886
|
+
font-size: var(--font-size-input);
|
|
1798
1887
|
color: var(--foreground);
|
|
1799
1888
|
cursor: pointer;
|
|
1800
1889
|
transition: color var(--transition-fast);
|
|
@@ -2492,19 +2581,52 @@ em {
|
|
|
2492
2581
|
|
|
2493
2582
|
/* packages/components/src/atomic/Alert/Alert.css */
|
|
2494
2583
|
|
|
2584
|
+
/**
|
|
2585
|
+
* Modern inline alert - subtle tint treatment.
|
|
2586
|
+
* Overrides .dndev-surface heaviness (shadow, gradient, asymmetric padding).
|
|
2587
|
+
* Pattern: GitHub Primer / Linear - tinted bg, semantic border, no elevation.
|
|
2588
|
+
*/
|
|
2589
|
+
|
|
2495
2590
|
.dndev-surface[role='alert'] {
|
|
2496
|
-
|
|
2497
|
-
|
|
2591
|
+
/* Subtle tint: variant color at 8% over transparent */
|
|
2592
|
+
background: color-mix(in oklab, var(--card) 8%, transparent);
|
|
2593
|
+
/* Foreground: page default for readability on subtle bg */
|
|
2594
|
+
color: var(--foreground);
|
|
2595
|
+
/* Semantic border: variant color at 25% */
|
|
2596
|
+
border: var(--border-hairline) solid
|
|
2597
|
+
color-mix(in oklab, var(--card) 25%, transparent);
|
|
2598
|
+
/* No elevation on inline alerts */
|
|
2599
|
+
box-shadow: none;
|
|
2600
|
+
/* Tight symmetric padding */
|
|
2601
|
+
padding: var(--gap-sm) var(--gap-md);
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
/* Icon: variant-colored, optically aligned to first text line */
|
|
2605
|
+
|
|
2606
|
+
.dndev-alert-icon {
|
|
2607
|
+
color: var(--card);
|
|
2608
|
+
width: 1rem;
|
|
2609
|
+
height: 1rem;
|
|
2610
|
+
flex-shrink: 0;
|
|
2611
|
+
margin-block-start: 0.125rem;
|
|
2498
2612
|
}
|
|
2499
2613
|
|
|
2614
|
+
/* Title: variant-colored, semibold, compact */
|
|
2615
|
+
|
|
2500
2616
|
.dndev-alert-title {
|
|
2501
|
-
|
|
2502
|
-
|
|
2617
|
+
color: var(--card);
|
|
2618
|
+
font-weight: var(--font-weight-semibold);
|
|
2619
|
+
font-size: var(--font-size-sm);
|
|
2620
|
+
line-height: 1.25;
|
|
2503
2621
|
letter-spacing: -0.025em;
|
|
2504
2622
|
}
|
|
2505
2623
|
|
|
2624
|
+
/* Description: default foreground, slightly dimmed */
|
|
2625
|
+
|
|
2506
2626
|
.dndev-alert-description {
|
|
2507
2627
|
font-size: var(--font-size-sm);
|
|
2628
|
+
line-height: 1.4;
|
|
2629
|
+
opacity: 0.85;
|
|
2508
2630
|
}
|
|
2509
2631
|
|
|
2510
2632
|
/* packages/components/src/atomic/Avatar/Avatar.css */
|
|
@@ -3356,8 +3478,276 @@ em {
|
|
|
3356
3478
|
|
|
3357
3479
|
/* Hidden Days */
|
|
3358
3480
|
|
|
3359
|
-
.dndev-calendar-day-hidden {
|
|
3360
|
-
visibility: hidden;
|
|
3481
|
+
.dndev-calendar-day-hidden {
|
|
3482
|
+
visibility: hidden;
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3485
|
+
/* packages/components/src/atomic/DatePicker/DatePicker.css */
|
|
3486
|
+
|
|
3487
|
+
/**
|
|
3488
|
+
* DatePicker Component Styles
|
|
3489
|
+
* Segmented date input with calendar popover.
|
|
3490
|
+
* Mobile: falls back to native <input type="date"> via @media (pointer: coarse).
|
|
3491
|
+
*/
|
|
3492
|
+
|
|
3493
|
+
/* ===========================
|
|
3494
|
+
ROOT CONTAINER
|
|
3495
|
+
=========================== */
|
|
3496
|
+
|
|
3497
|
+
.dndev-datepicker {
|
|
3498
|
+
position: relative;
|
|
3499
|
+
display: inline-flex;
|
|
3500
|
+
align-items: center;
|
|
3501
|
+
width: 100%;
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
/* ===========================
|
|
3505
|
+
DESKTOP: SEGMENTED INPUT
|
|
3506
|
+
=========================== */
|
|
3507
|
+
|
|
3508
|
+
.dndev-datepicker-custom {
|
|
3509
|
+
display: flex;
|
|
3510
|
+
align-items: center;
|
|
3511
|
+
width: 100%;
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
/* Input-like container (mirrors .dndev-input from patterns.css) */
|
|
3515
|
+
|
|
3516
|
+
.dndev-datepicker-field {
|
|
3517
|
+
display: flex;
|
|
3518
|
+
align-items: center;
|
|
3519
|
+
width: 100%;
|
|
3520
|
+
min-height: var(--touch-target);
|
|
3521
|
+
border-radius: var(--radius-interactive);
|
|
3522
|
+
border: var(--border-hairline) solid var(--line-2);
|
|
3523
|
+
background-color: transparent;
|
|
3524
|
+
color: var(--foreground);
|
|
3525
|
+
padding-inline-start: var(--gap-md);
|
|
3526
|
+
padding-inline-end: 0;
|
|
3527
|
+
font-size: var(--font-size-input);
|
|
3528
|
+
box-shadow: var(--shadow-sm);
|
|
3529
|
+
transition: all var(--dur-normal) var(--ease-in-out);
|
|
3530
|
+
touch-action: manipulation;
|
|
3531
|
+
cursor: text;
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
/* Bare mode inside FloatingLabel (fieldset provides border) */
|
|
3535
|
+
|
|
3536
|
+
.dndev-datepicker-field[data-bare] {
|
|
3537
|
+
border: none;
|
|
3538
|
+
box-shadow: none;
|
|
3539
|
+
background: transparent;
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
/* Hover */
|
|
3543
|
+
|
|
3544
|
+
.dndev-datepicker-field:hover {
|
|
3545
|
+
border-color: var(--ring);
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3548
|
+
/* Focus-within */
|
|
3549
|
+
|
|
3550
|
+
.dndev-datepicker-field:focus-within {
|
|
3551
|
+
border-color: var(--ring);
|
|
3552
|
+
outline: none;
|
|
3553
|
+
box-shadow: var(--shadow-focus);
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
/* Focus-within bare (FloatingLabel handles outer border) */
|
|
3557
|
+
|
|
3558
|
+
.dndev-datepicker-field[data-bare]:focus-within {
|
|
3559
|
+
box-shadow: none;
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3562
|
+
/* Error state */
|
|
3563
|
+
|
|
3564
|
+
.dndev-datepicker-field[aria-invalid='true'],
|
|
3565
|
+
.dndev-datepicker-field[data-variant='destructive'] {
|
|
3566
|
+
border-color: var(--destructive);
|
|
3567
|
+
}
|
|
3568
|
+
|
|
3569
|
+
/* Disabled */
|
|
3570
|
+
|
|
3571
|
+
.dndev-datepicker-field[data-disabled] {
|
|
3572
|
+
cursor: not-allowed;
|
|
3573
|
+
opacity: var(--opacity-muted);
|
|
3574
|
+
}
|
|
3575
|
+
|
|
3576
|
+
/* ===========================
|
|
3577
|
+
SEGMENTS AREA
|
|
3578
|
+
=========================== */
|
|
3579
|
+
|
|
3580
|
+
.dndev-datepicker-segments {
|
|
3581
|
+
display: flex;
|
|
3582
|
+
align-items: center;
|
|
3583
|
+
flex: 1;
|
|
3584
|
+
min-width: 0;
|
|
3585
|
+
}
|
|
3586
|
+
|
|
3587
|
+
/* ===========================
|
|
3588
|
+
SEGMENTS
|
|
3589
|
+
=========================== */
|
|
3590
|
+
|
|
3591
|
+
.dndev-datepicker-segment {
|
|
3592
|
+
display: inline-flex;
|
|
3593
|
+
align-items: center;
|
|
3594
|
+
justify-content: center;
|
|
3595
|
+
padding: var(--gap-tight) 1px;
|
|
3596
|
+
border-radius: 2px;
|
|
3597
|
+
font-variant-numeric: tabular-nums;
|
|
3598
|
+
caret-color: transparent;
|
|
3599
|
+
outline: none;
|
|
3600
|
+
min-width: 2ch;
|
|
3601
|
+
text-align: center;
|
|
3602
|
+
-webkit-user-select: none;
|
|
3603
|
+
-moz-user-select: none;
|
|
3604
|
+
user-select: none;
|
|
3605
|
+
}
|
|
3606
|
+
|
|
3607
|
+
/* Year segment needs more room */
|
|
3608
|
+
|
|
3609
|
+
.dndev-datepicker-segment[data-type='year'] {
|
|
3610
|
+
min-width: 4ch;
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3613
|
+
/* Placeholder text */
|
|
3614
|
+
|
|
3615
|
+
.dndev-datepicker-segment[data-placeholder] {
|
|
3616
|
+
color: var(--placeholder);
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3619
|
+
/* Focused segment highlight */
|
|
3620
|
+
|
|
3621
|
+
.dndev-datepicker-segment:focus {
|
|
3622
|
+
background-color: var(--accent);
|
|
3623
|
+
color: var(--accent-foreground);
|
|
3624
|
+
outline: none;
|
|
3625
|
+
}
|
|
3626
|
+
|
|
3627
|
+
/* Separator between segments */
|
|
3628
|
+
|
|
3629
|
+
.dndev-datepicker-separator {
|
|
3630
|
+
color: var(--muted-foreground);
|
|
3631
|
+
padding: 0 1px;
|
|
3632
|
+
-webkit-user-select: none;
|
|
3633
|
+
-moz-user-select: none;
|
|
3634
|
+
user-select: none;
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
/* ===========================
|
|
3638
|
+
CALENDAR TRIGGER BUTTON (inside field)
|
|
3639
|
+
=========================== */
|
|
3640
|
+
|
|
3641
|
+
/* Extends .dndev-inline-action-btn from patterns.css */
|
|
3642
|
+
|
|
3643
|
+
.dndev-datepicker-calendar-btn {
|
|
3644
|
+
flex-shrink: 0;
|
|
3645
|
+
margin-inline-start: auto;
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
/* ===========================
|
|
3649
|
+
POPOVER
|
|
3650
|
+
=========================== */
|
|
3651
|
+
|
|
3652
|
+
.dndev-datepicker-popover {
|
|
3653
|
+
padding: 0;
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
/* Fix: .dndev-floating .dndev-interactive overrides width/justify on ALL
|
|
3657
|
+
interactive children. Calendar needs its own sizing - undo the override. */
|
|
3658
|
+
|
|
3659
|
+
.dndev-datepicker-popover .dndev-interactive {
|
|
3660
|
+
width: auto;
|
|
3661
|
+
justify-content: center;
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
/* Calendar nav buttons: restore absolute-positioned fixed size */
|
|
3665
|
+
|
|
3666
|
+
.dndev-datepicker-popover .dndev-calendar-nav-button {
|
|
3667
|
+
width: var(--touch-target);
|
|
3668
|
+
}
|
|
3669
|
+
|
|
3670
|
+
/* Calendar day buttons: restore fixed cell size */
|
|
3671
|
+
|
|
3672
|
+
.dndev-datepicker-popover .dndev-calendar-day-button {
|
|
3673
|
+
width: var(--touch-target);
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
/* Calendar dropdown triggers: restore full-width inside their cell */
|
|
3677
|
+
|
|
3678
|
+
.dndev-datepicker-popover .dndev-calendar-dropdown-trigger {
|
|
3679
|
+
width: 100%;
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
/* ===========================
|
|
3683
|
+
MOBILE: NATIVE INPUT FALLBACK
|
|
3684
|
+
=========================== */
|
|
3685
|
+
|
|
3686
|
+
.dndev-datepicker-native {
|
|
3687
|
+
display: none;
|
|
3688
|
+
}
|
|
3689
|
+
|
|
3690
|
+
@media (pointer: coarse) {
|
|
3691
|
+
.dndev-datepicker-custom {
|
|
3692
|
+
display: none;
|
|
3693
|
+
}
|
|
3694
|
+
|
|
3695
|
+
.dndev-datepicker-native {
|
|
3696
|
+
display: flex;
|
|
3697
|
+
width: 100%;
|
|
3698
|
+
}
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
/* ===========================
|
|
3702
|
+
SCREEN READER LIVE REGION
|
|
3703
|
+
=========================== */
|
|
3704
|
+
|
|
3705
|
+
.dndev-datepicker-live {
|
|
3706
|
+
position: absolute;
|
|
3707
|
+
width: 1px;
|
|
3708
|
+
height: 1px;
|
|
3709
|
+
padding: 0;
|
|
3710
|
+
margin: -1px;
|
|
3711
|
+
overflow: hidden;
|
|
3712
|
+
clip: rect(0, 0, 0, 0);
|
|
3713
|
+
white-space: nowrap;
|
|
3714
|
+
border: 0;
|
|
3715
|
+
}
|
|
3716
|
+
|
|
3717
|
+
/* ===========================
|
|
3718
|
+
DISABLED STATE (root)
|
|
3719
|
+
=========================== */
|
|
3720
|
+
|
|
3721
|
+
.dndev-datepicker[data-disabled] {
|
|
3722
|
+
pointer-events: none;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
/* packages/components/src/atomic/DateTimePicker/DateTimePicker.css */
|
|
3726
|
+
|
|
3727
|
+
/**
|
|
3728
|
+
* DateTimePicker Component Styles
|
|
3729
|
+
* Extends DatePicker styles with time-segment-specific layout.
|
|
3730
|
+
* Reuses .dndev-datepicker-* classes from DatePicker.css for shared elements
|
|
3731
|
+
* (field, segment, separator, calendar-btn, popover, native, live).
|
|
3732
|
+
*/
|
|
3733
|
+
|
|
3734
|
+
/* ===========================
|
|
3735
|
+
CUSTOM INPUT CONTAINER
|
|
3736
|
+
=========================== */
|
|
3737
|
+
|
|
3738
|
+
.dndev-datetimepicker-custom {
|
|
3739
|
+
display: flex;
|
|
3740
|
+
align-items: center;
|
|
3741
|
+
width: 100%;
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
/* ===========================
|
|
3745
|
+
DATE / TIME SPACER
|
|
3746
|
+
=========================== */
|
|
3747
|
+
|
|
3748
|
+
.dndev-datetimepicker-spacer {
|
|
3749
|
+
width: var(--gap-md);
|
|
3750
|
+
flex-shrink: 0;
|
|
3361
3751
|
}
|
|
3362
3752
|
|
|
3363
3753
|
/* packages/components/src/atomic/CallToAction/CallToAction.css */
|
|
@@ -3517,6 +3907,7 @@ em {
|
|
|
3517
3907
|
.dndev-cta-actions {
|
|
3518
3908
|
display: flex;
|
|
3519
3909
|
flex-direction: row;
|
|
3910
|
+
flex-wrap: wrap;
|
|
3520
3911
|
gap: var(--gap-md);
|
|
3521
3912
|
justify-content: center;
|
|
3522
3913
|
}
|
|
@@ -3579,15 +3970,48 @@ em {
|
|
|
3579
3970
|
|
|
3580
3971
|
/* packages/components/src/atomic/Card/Card.css */
|
|
3581
3972
|
|
|
3582
|
-
/* Card
|
|
3973
|
+
/* Card root — when a cover is present, move padding off the root so the cover
|
|
3974
|
+
sits flush to the rounded corners. Padding is re-applied inside the body
|
|
3975
|
+
slot (which is the only thing that needs it). Non-cover cards keep the
|
|
3976
|
+
legacy layout so existing consumers render identically. */
|
|
3583
3977
|
|
|
3584
3978
|
.dndev-card {
|
|
3585
3979
|
display: grid;
|
|
3586
3980
|
gap: var(--gap-md);
|
|
3587
3981
|
text-align: start;
|
|
3588
3982
|
align-content: start;
|
|
3983
|
+
position: relative;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
.dndev-surface.dndev-card[data-has-cover='true'] {
|
|
3987
|
+
padding: 0;
|
|
3988
|
+
overflow: hidden;
|
|
3989
|
+
position: relative;
|
|
3990
|
+
/* Remove the grid gap — cover and body are stacked vertically via flow and
|
|
3991
|
+
must sit flush (cover edges meet body edge with no gutter). */
|
|
3992
|
+
gap: 0;
|
|
3993
|
+
}
|
|
3994
|
+
|
|
3995
|
+
/* Body slot — the padded region that holds header/content/footer.
|
|
3996
|
+
Only rendered when at least one body field is set (see renderCard logic). */
|
|
3997
|
+
|
|
3998
|
+
.dndev-card-body {
|
|
3999
|
+
display: grid;
|
|
4000
|
+
gap: var(--gap-md);
|
|
4001
|
+
position: relative;
|
|
4002
|
+
z-index: 1;
|
|
4003
|
+
}
|
|
4004
|
+
|
|
4005
|
+
.dndev-card[data-has-cover='true'] > .dndev-card-body {
|
|
4006
|
+
padding: var(--gap-md);
|
|
4007
|
+
}
|
|
4008
|
+
|
|
4009
|
+
.dndev-card-body[data-body-background='solid'] {
|
|
4010
|
+
background: var(--card);
|
|
3589
4011
|
}
|
|
3590
4012
|
|
|
4013
|
+
/* Card body children spacing */
|
|
4014
|
+
|
|
3591
4015
|
.dndev-card-header {
|
|
3592
4016
|
display: flex;
|
|
3593
4017
|
flex-direction: column;
|
|
@@ -3616,16 +4040,118 @@ em {
|
|
|
3616
4040
|
color: color-mix(in oklab, var(--card-foreground) 70%, transparent);
|
|
3617
4041
|
}
|
|
3618
4042
|
|
|
4043
|
+
/* Cover region — sits flush to the card's rounded corners.
|
|
4044
|
+
- When body is present (data-has-body='true'): cover is a sized header
|
|
4045
|
+
region in flow. Height comes from its own aspect-ratio (inline style).
|
|
4046
|
+
- When cover-only (no body): cover fills the card (inset:0 absolute) while
|
|
4047
|
+
the card itself sets the aspect-ratio on its root. */
|
|
4048
|
+
|
|
4049
|
+
.dndev-card-cover {
|
|
4050
|
+
position: relative;
|
|
4051
|
+
overflow: hidden;
|
|
4052
|
+
z-index: 0;
|
|
4053
|
+
width: 100%;
|
|
4054
|
+
background: var(--muted);
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
/* Cover-only: fill the card completely. Card root owns the aspect-ratio. */
|
|
4058
|
+
|
|
4059
|
+
.dndev-card-cover:not([data-has-body='true']) {
|
|
4060
|
+
position: absolute;
|
|
4061
|
+
inset: 0;
|
|
4062
|
+
height: 100%;
|
|
4063
|
+
}
|
|
4064
|
+
|
|
4065
|
+
/* Direct media (string cover → <img>, or ReactNode passthrough) fills. */
|
|
4066
|
+
|
|
4067
|
+
.dndev-card-cover > img,
|
|
4068
|
+
.dndev-card-cover > video,
|
|
4069
|
+
.dndev-card-cover > picture,
|
|
4070
|
+
.dndev-card-cover > picture > img,
|
|
4071
|
+
.dndev-card-cover > .dndev-card-cover-media {
|
|
4072
|
+
display: block;
|
|
4073
|
+
width: 100%;
|
|
4074
|
+
height: 100%;
|
|
4075
|
+
-o-object-fit: cover;
|
|
4076
|
+
object-fit: cover;
|
|
4077
|
+
}
|
|
4078
|
+
|
|
4079
|
+
/* Consumer-supplied ReactNode: wrapper fills, inner media fills. */
|
|
4080
|
+
|
|
4081
|
+
.dndev-card-cover-media {
|
|
4082
|
+
position: relative;
|
|
4083
|
+
}
|
|
4084
|
+
|
|
4085
|
+
.dndev-card-cover-media > img,
|
|
4086
|
+
.dndev-card-cover-media > video,
|
|
4087
|
+
.dndev-card-cover-media > picture,
|
|
4088
|
+
.dndev-card-cover-media > picture > img {
|
|
4089
|
+
display: block;
|
|
4090
|
+
width: 100%;
|
|
4091
|
+
height: 100%;
|
|
4092
|
+
-o-object-fit: cover;
|
|
4093
|
+
object-fit: cover;
|
|
4094
|
+
}
|
|
4095
|
+
|
|
4096
|
+
/* Full-card overlay — covers entire card surface, participates in card transform.
|
|
4097
|
+
Enabled via data-has-full-overlay; overflow:hidden clips to card border-radius. */
|
|
4098
|
+
|
|
4099
|
+
.dndev-card[data-has-full-overlay='true'] {
|
|
4100
|
+
overflow: hidden;
|
|
4101
|
+
}
|
|
4102
|
+
|
|
4103
|
+
.dndev-card-full-overlay {
|
|
4104
|
+
position: absolute;
|
|
4105
|
+
inset: 0;
|
|
4106
|
+
z-index: 3;
|
|
4107
|
+
pointer-events: none;
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4110
|
+
/* Corner overlay — sits above both cover and body slot. */
|
|
4111
|
+
|
|
4112
|
+
.dndev-card-overlay {
|
|
4113
|
+
position: absolute;
|
|
4114
|
+
z-index: 2;
|
|
4115
|
+
pointer-events: none;
|
|
4116
|
+
}
|
|
4117
|
+
|
|
4118
|
+
/* When a full-overlay scrim is present, raise the corner overlay above it. */
|
|
4119
|
+
|
|
4120
|
+
.dndev-card[data-has-full-overlay='true'] > .dndev-card-overlay {
|
|
4121
|
+
z-index: 4;
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
.dndev-card[data-overlay-position='top-left'] > .dndev-card-overlay {
|
|
4125
|
+
top: var(--gap-md);
|
|
4126
|
+
inset-inline-start: var(--gap-md);
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
.dndev-card[data-overlay-position='top-right'] > .dndev-card-overlay {
|
|
4130
|
+
top: var(--gap-md);
|
|
4131
|
+
inset-inline-end: var(--gap-md);
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
.dndev-card[data-overlay-position='bottom-left'] > .dndev-card-overlay {
|
|
4135
|
+
bottom: var(--gap-md);
|
|
4136
|
+
inset-inline-start: var(--gap-md);
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4139
|
+
.dndev-card[data-overlay-position='bottom-right'] > .dndev-card-overlay {
|
|
4140
|
+
bottom: var(--gap-md);
|
|
4141
|
+
inset-inline-end: var(--gap-md);
|
|
4142
|
+
}
|
|
4143
|
+
|
|
3619
4144
|
/* packages/components/src/atomic/Checkbox/Checkbox.css */
|
|
3620
4145
|
|
|
3621
4146
|
.dndev-control[data-type='checkbox'] {
|
|
3622
4147
|
display: inline-flex;
|
|
3623
4148
|
align-items: center;
|
|
3624
4149
|
justify-content: center;
|
|
3625
|
-
width: var(--
|
|
3626
|
-
height: var(--
|
|
4150
|
+
width: var(--font-size-input);
|
|
4151
|
+
height: var(--font-size-input);
|
|
3627
4152
|
aspect-ratio: 1;
|
|
3628
4153
|
border-radius: 4px;
|
|
4154
|
+
background-color: transparent;
|
|
3629
4155
|
}
|
|
3630
4156
|
|
|
3631
4157
|
.dndev-control[data-type='checkbox'][data-state='checked'] {
|
|
@@ -3686,8 +4212,8 @@ em {
|
|
|
3686
4212
|
}
|
|
3687
4213
|
|
|
3688
4214
|
.dndev-control[data-type='checkbox'] [data-radix-checkbox-indicator] svg {
|
|
3689
|
-
width: var(--
|
|
3690
|
-
height: var(--
|
|
4215
|
+
width: var(--font-size-input);
|
|
4216
|
+
height: var(--font-size-input);
|
|
3691
4217
|
animation: checkbox-check-in var(--dur-fast) var(--ease-in-out);
|
|
3692
4218
|
}
|
|
3693
4219
|
|
|
@@ -3936,47 +4462,15 @@ em {
|
|
|
3936
4462
|
|
|
3937
4463
|
.dndev-combobox-wrapper .dndev-input {
|
|
3938
4464
|
padding-inline-end: var(--combobox-pad-end);
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
/* Action buttons (create "+", clear "X") */
|
|
3942
|
-
|
|
3943
|
-
.dndev-combobox-action-btn {
|
|
3944
|
-
all: unset;
|
|
3945
|
-
display: flex;
|
|
3946
|
-
align-items: center;
|
|
3947
|
-
justify-content: center;
|
|
3948
|
-
width: var(--icon-md);
|
|
3949
|
-
height: var(--icon-md);
|
|
3950
|
-
border-radius: var(--radius-interactive, var(--radius-sm, 4px));
|
|
4465
|
+
text-overflow: ellipsis;
|
|
3951
4466
|
cursor: pointer;
|
|
3952
|
-
pointer-events: auto; /* re-enable clicks on buttons */
|
|
3953
|
-
color: var(--muted-foreground);
|
|
3954
|
-
opacity: var(--opacity-muted, 0.5);
|
|
3955
|
-
transition:
|
|
3956
|
-
opacity var(--dur-fast) var(--ease-in-out),
|
|
3957
|
-
background-color var(--dur-fast) var(--ease-in-out);
|
|
3958
|
-
}
|
|
3959
|
-
|
|
3960
|
-
.dndev-combobox-action-btn:hover {
|
|
3961
|
-
opacity: 1;
|
|
3962
|
-
background-color: var(--accent, rgba(0, 0, 0, 0.06));
|
|
3963
4467
|
}
|
|
3964
4468
|
|
|
3965
|
-
.dndev-
|
|
3966
|
-
|
|
3967
|
-
outline: none;
|
|
3968
|
-
box-shadow:
|
|
3969
|
-
0 0 0 2px var(--ring),
|
|
3970
|
-
0 0 0 4px rgb(from var(--ring) r g b / 0.2);
|
|
3971
|
-
}
|
|
3972
|
-
|
|
3973
|
-
.dndev-combobox-action-btn:active {
|
|
3974
|
-
opacity: 0.8;
|
|
3975
|
-
}
|
|
4469
|
+
/* Action buttons — extends shared .dndev-inline-action-btn from patterns.css.
|
|
4470
|
+
Only Combobox-specific overrides here. */
|
|
3976
4471
|
|
|
3977
|
-
.dndev-combobox-action-btn
|
|
3978
|
-
|
|
3979
|
-
height: var(--size-icon-sm, 16px);
|
|
4472
|
+
.dndev-combobox-action-btn {
|
|
4473
|
+
pointer-events: auto; /* re-enable clicks (trailing container is pointer-events: none) */
|
|
3980
4474
|
}
|
|
3981
4475
|
|
|
3982
4476
|
/* Create button accent color */
|
|
@@ -3991,22 +4485,16 @@ em {
|
|
|
3991
4485
|
color: var(--muted-foreground);
|
|
3992
4486
|
}
|
|
3993
4487
|
|
|
3994
|
-
/* Chevron
|
|
4488
|
+
/* Chevron toggle — extends .dndev-inline-action-btn from patterns.css
|
|
4489
|
+
(same pattern as RangeInput/DatePicker/Combobox clear+create).
|
|
4490
|
+
Only chevron-specific behavior: re-enable clicks in the trailing
|
|
4491
|
+
container and rotate the icon on open. */
|
|
3995
4492
|
|
|
3996
4493
|
.dndev-combobox-chevron {
|
|
3997
|
-
|
|
3998
|
-
height: var(--icon-md);
|
|
3999
|
-
display: flex;
|
|
4000
|
-
align-items: center;
|
|
4001
|
-
justify-content: center;
|
|
4002
|
-
color: var(--muted-foreground);
|
|
4003
|
-
opacity: var(--opacity-muted);
|
|
4004
|
-
pointer-events: none;
|
|
4494
|
+
pointer-events: auto;
|
|
4005
4495
|
}
|
|
4006
4496
|
|
|
4007
4497
|
.dndev-combobox-chevron svg {
|
|
4008
|
-
width: var(--icon-md);
|
|
4009
|
-
height: var(--icon-md);
|
|
4010
4498
|
transition: transform var(--dur-fast) var(--ease-in-out);
|
|
4011
4499
|
}
|
|
4012
4500
|
|
|
@@ -4014,14 +4502,14 @@ em {
|
|
|
4014
4502
|
transform: rotate(180deg);
|
|
4015
4503
|
}
|
|
4016
4504
|
|
|
4017
|
-
/* Spinner replaces chevron */
|
|
4505
|
+
/* Spinner replaces chevron — match its footprint so there's no layout shift */
|
|
4018
4506
|
|
|
4019
4507
|
.dndev-combobox-spinner {
|
|
4020
4508
|
display: flex;
|
|
4021
4509
|
align-items: center;
|
|
4022
4510
|
justify-content: center;
|
|
4023
|
-
width: var(--
|
|
4024
|
-
height:
|
|
4511
|
+
width: var(--touch-target);
|
|
4512
|
+
height: 100%;
|
|
4025
4513
|
pointer-events: none;
|
|
4026
4514
|
}
|
|
4027
4515
|
|
|
@@ -4071,9 +4559,6 @@ em {
|
|
|
4071
4559
|
────────────────────────────────────────────────── */
|
|
4072
4560
|
|
|
4073
4561
|
.dndev-combobox-content {
|
|
4074
|
-
width: var(--radix-popover-trigger-width);
|
|
4075
|
-
min-width: var(--radix-popover-trigger-width);
|
|
4076
|
-
max-width: var(--radix-popover-trigger-width);
|
|
4077
4562
|
display: flex;
|
|
4078
4563
|
flex-direction: column;
|
|
4079
4564
|
padding: 0;
|
|
@@ -4126,6 +4611,13 @@ em {
|
|
|
4126
4611
|
color: var(--muted-foreground);
|
|
4127
4612
|
}
|
|
4128
4613
|
|
|
4614
|
+
.dndev-combobox-option-count {
|
|
4615
|
+
font-size: var(--font-size-xs);
|
|
4616
|
+
color: var(--muted-foreground);
|
|
4617
|
+
margin-inline-start: var(--gap-tight);
|
|
4618
|
+
flex-shrink: 0;
|
|
4619
|
+
}
|
|
4620
|
+
|
|
4129
4621
|
.dndev-combobox-option-check {
|
|
4130
4622
|
width: var(--icon-md);
|
|
4131
4623
|
height: var(--icon-md);
|
|
@@ -5135,11 +5627,13 @@ em {
|
|
|
5135
5627
|
position: relative;
|
|
5136
5628
|
}
|
|
5137
5629
|
|
|
5138
|
-
.dndev-hero-section--bg-contain[data-justify='center']
|
|
5630
|
+
.dndev-hero-section--bg-contain[data-justify='center']
|
|
5631
|
+
> .dndev-hero-section__text {
|
|
5139
5632
|
justify-content: center;
|
|
5140
5633
|
}
|
|
5141
5634
|
|
|
5142
|
-
.dndev-hero-section--bg-contain[data-justify='start']
|
|
5635
|
+
.dndev-hero-section--bg-contain[data-justify='start']
|
|
5636
|
+
> .dndev-hero-section__text {
|
|
5143
5637
|
justify-content: flex-start;
|
|
5144
5638
|
}
|
|
5145
5639
|
|
|
@@ -5292,6 +5786,10 @@ em {
|
|
|
5292
5786
|
background-color: var(--muted);
|
|
5293
5787
|
}
|
|
5294
5788
|
|
|
5789
|
+
.image-gallery__main--lightbox {
|
|
5790
|
+
cursor: zoom-in;
|
|
5791
|
+
}
|
|
5792
|
+
|
|
5295
5793
|
.image-gallery__main-image {
|
|
5296
5794
|
width: 100%;
|
|
5297
5795
|
height: 100%;
|
|
@@ -5414,6 +5912,46 @@ em {
|
|
|
5414
5912
|
}
|
|
5415
5913
|
}
|
|
5416
5914
|
|
|
5915
|
+
/* Lightbox (full-size image dialog) */
|
|
5916
|
+
|
|
5917
|
+
.image-gallery__lightbox.dndev-modal-content {
|
|
5918
|
+
max-width: min(96vw, 1400px);
|
|
5919
|
+
max-height: 96dvh;
|
|
5920
|
+
padding: var(--gap-sm);
|
|
5921
|
+
}
|
|
5922
|
+
|
|
5923
|
+
.image-gallery__lightbox .dndev-modal-body {
|
|
5924
|
+
padding: 0;
|
|
5925
|
+
display: flex;
|
|
5926
|
+
align-items: center;
|
|
5927
|
+
justify-content: center;
|
|
5928
|
+
overflow: hidden;
|
|
5929
|
+
min-height: 40dvh;
|
|
5930
|
+
}
|
|
5931
|
+
|
|
5932
|
+
.image-gallery__lightbox-body {
|
|
5933
|
+
position: relative;
|
|
5934
|
+
display: flex;
|
|
5935
|
+
align-items: center;
|
|
5936
|
+
justify-content: center;
|
|
5937
|
+
width: 100%;
|
|
5938
|
+
outline: none;
|
|
5939
|
+
}
|
|
5940
|
+
|
|
5941
|
+
.image-gallery__lightbox-img {
|
|
5942
|
+
max-width: 100%;
|
|
5943
|
+
max-height: 85dvh;
|
|
5944
|
+
width: auto;
|
|
5945
|
+
height: auto;
|
|
5946
|
+
-o-object-fit: contain;
|
|
5947
|
+
object-fit: contain;
|
|
5948
|
+
}
|
|
5949
|
+
|
|
5950
|
+
.image-gallery__lightbox-nav {
|
|
5951
|
+
opacity: 0.92;
|
|
5952
|
+
z-index: 3;
|
|
5953
|
+
}
|
|
5954
|
+
|
|
5417
5955
|
/* packages/components/src/atomic/Input/Input.css */
|
|
5418
5956
|
|
|
5419
5957
|
/* Hide number input spinners - cleaner UI for price/range inputs */
|
|
@@ -5463,13 +6001,13 @@ input[type='number'] {
|
|
|
5463
6001
|
|
|
5464
6002
|
/* Error / destructive state — red border for invalid fields */
|
|
5465
6003
|
|
|
5466
|
-
[data-variant=
|
|
5467
|
-
[aria-invalid=
|
|
6004
|
+
[data-variant='destructive'],
|
|
6005
|
+
[aria-invalid='true'] {
|
|
5468
6006
|
border-color: var(--destructive);
|
|
5469
6007
|
}
|
|
5470
6008
|
|
|
5471
|
-
[data-variant=
|
|
5472
|
-
[aria-invalid=
|
|
6009
|
+
[data-variant='destructive']:focus,
|
|
6010
|
+
[aria-invalid='true']:focus {
|
|
5473
6011
|
border-color: var(--destructive);
|
|
5474
6012
|
outline-color: var(--destructive);
|
|
5475
6013
|
}
|
|
@@ -6059,6 +6597,105 @@ input[type='number'] {
|
|
|
6059
6597
|
height: var(--icon-sm);
|
|
6060
6598
|
}
|
|
6061
6599
|
|
|
6600
|
+
/* packages/components/src/atomic/PinInput/PinInput.css */
|
|
6601
|
+
|
|
6602
|
+
.dndev-pin-input {
|
|
6603
|
+
display: flex;
|
|
6604
|
+
gap: var(--gap-sm);
|
|
6605
|
+
align-items: center;
|
|
6606
|
+
justify-content: center;
|
|
6607
|
+
direction: ltr; /* digits are always LTR even in RTL locales */
|
|
6608
|
+
}
|
|
6609
|
+
|
|
6610
|
+
.dndev-pin-input__box {
|
|
6611
|
+
inline-size: var(--input-height, 2.75rem) !important;
|
|
6612
|
+
block-size: var(--input-height, 2.75rem) !important;
|
|
6613
|
+
padding: 0 !important;
|
|
6614
|
+
text-align: center !important;
|
|
6615
|
+
font-size: var(--font-xl, 1.25rem) !important;
|
|
6616
|
+
font-variant-numeric: tabular-nums;
|
|
6617
|
+
font-feature-settings: 'tnum' 1;
|
|
6618
|
+
caret-color: var(--primary);
|
|
6619
|
+
}
|
|
6620
|
+
|
|
6621
|
+
/* Mask the typed digit via CSS, not by overwriting React's controlled value.
|
|
6622
|
+
Rewriting value={raw} → value='•' on every keystroke forces React to
|
|
6623
|
+
overwrite the native input value after the browser has already painted
|
|
6624
|
+
the user's keystroke, which is the classic "lags like shit" PinInput bug
|
|
6625
|
+
on mobile Chrome/Safari. `-webkit-text-security: disc` renders a bullet
|
|
6626
|
+
purely in the layout layer while the input's real value stays the digit,
|
|
6627
|
+
so React never has to race the browser's paint pipeline.
|
|
6628
|
+
Firefox does not support -webkit-text-security and will render the digit
|
|
6629
|
+
unmasked; the eye-toggle still works for revealing on WebKit/Blink. */
|
|
6630
|
+
|
|
6631
|
+
.dndev-pin-input__box--masked {
|
|
6632
|
+
-webkit-text-security: disc;
|
|
6633
|
+
}
|
|
6634
|
+
|
|
6635
|
+
.dndev-pin-input__reveal {
|
|
6636
|
+
background: none;
|
|
6637
|
+
border: none;
|
|
6638
|
+
cursor: pointer;
|
|
6639
|
+
padding: var(--gap-tight, 0.25rem);
|
|
6640
|
+
margin-inline-start: var(--gap-sm, 0.5rem);
|
|
6641
|
+
display: inline-flex;
|
|
6642
|
+
align-items: center;
|
|
6643
|
+
justify-content: center;
|
|
6644
|
+
color: var(--muted-foreground, currentColor);
|
|
6645
|
+
opacity: var(--opacity-muted, 0.65);
|
|
6646
|
+
transition: opacity var(--dur-fast, 150ms) var(--ease-in-out, ease-in-out);
|
|
6647
|
+
-webkit-user-select: none;
|
|
6648
|
+
-moz-user-select: none;
|
|
6649
|
+
user-select: none;
|
|
6650
|
+
-webkit-tap-highlight-color: transparent;
|
|
6651
|
+
}
|
|
6652
|
+
|
|
6653
|
+
.dndev-pin-input__reveal:hover,
|
|
6654
|
+
.dndev-pin-input__reveal:focus-visible {
|
|
6655
|
+
opacity: 1;
|
|
6656
|
+
outline: none;
|
|
6657
|
+
}
|
|
6658
|
+
|
|
6659
|
+
.dndev-pin-input__reveal:focus-visible {
|
|
6660
|
+
outline: 2px solid var(--primary, currentColor);
|
|
6661
|
+
outline-offset: 2px;
|
|
6662
|
+
border-radius: var(--radius-sm, 4px);
|
|
6663
|
+
}
|
|
6664
|
+
|
|
6665
|
+
/* Shake animation hook — the container flips data-shake='true' on error
|
|
6666
|
+
and the animation plays once via this keyframe. Consumers can override
|
|
6667
|
+
via `.dndev-pin-input[data-shake='true'] { animation: ... }`. */
|
|
6668
|
+
|
|
6669
|
+
@keyframes dndev-pin-input-shake {
|
|
6670
|
+
0%,
|
|
6671
|
+
100% {
|
|
6672
|
+
transform: translateX(0);
|
|
6673
|
+
}
|
|
6674
|
+
20% {
|
|
6675
|
+
transform: translateX(-0.35rem);
|
|
6676
|
+
}
|
|
6677
|
+
40% {
|
|
6678
|
+
transform: translateX(0.35rem);
|
|
6679
|
+
}
|
|
6680
|
+
60% {
|
|
6681
|
+
transform: translateX(-0.25rem);
|
|
6682
|
+
}
|
|
6683
|
+
80% {
|
|
6684
|
+
transform: translateX(0.15rem);
|
|
6685
|
+
}
|
|
6686
|
+
}
|
|
6687
|
+
|
|
6688
|
+
.dndev-pin-input[data-shake='true'] {
|
|
6689
|
+
animation: dndev-pin-input-shake var(--dur-normal, 320ms)
|
|
6690
|
+
var(--ease-in-out, ease-in-out) 1;
|
|
6691
|
+
}
|
|
6692
|
+
|
|
6693
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6694
|
+
.dndev-pin-input[data-shake='true'] {
|
|
6695
|
+
animation: none;
|
|
6696
|
+
}
|
|
6697
|
+
}
|
|
6698
|
+
|
|
6062
6699
|
/* packages/components/src/atomic/Pagination/Pagination.css */
|
|
6063
6700
|
|
|
6064
6701
|
.dndev-pagination {
|
|
@@ -6227,8 +6864,8 @@ input[type='number'] {
|
|
|
6227
6864
|
}
|
|
6228
6865
|
|
|
6229
6866
|
.dndev-control[data-type='radio'] {
|
|
6230
|
-
width: var(--
|
|
6231
|
-
height: var(--
|
|
6867
|
+
width: var(--font-size-input);
|
|
6868
|
+
height: var(--font-size-input);
|
|
6232
6869
|
border-radius: var(--radius-full);
|
|
6233
6870
|
border-width: var(--border-hairline);
|
|
6234
6871
|
background-color: transparent;
|
|
@@ -6315,15 +6952,22 @@ input[type='number'] {
|
|
|
6315
6952
|
|
|
6316
6953
|
.dndev-range-input {
|
|
6317
6954
|
display: grid;
|
|
6318
|
-
grid-template-columns: 1fr auto 1fr auto;
|
|
6955
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
|
|
6319
6956
|
align-items: center;
|
|
6320
|
-
gap:
|
|
6957
|
+
-moz-column-gap: 0;
|
|
6958
|
+
column-gap: 0;
|
|
6959
|
+
padding-inline-start: var(--gap-sm);
|
|
6321
6960
|
width: 100%;
|
|
6322
6961
|
}
|
|
6323
6962
|
|
|
6324
6963
|
.dndev-range-input > .dndev-input,
|
|
6325
6964
|
.dndev-range-input > .dndev-relative {
|
|
6326
6965
|
min-width: 0;
|
|
6966
|
+
padding-inline: var(--gap-sm);
|
|
6967
|
+
}
|
|
6968
|
+
|
|
6969
|
+
.dndev-range-input-separator {
|
|
6970
|
+
padding-inline: var(--gap-tight);
|
|
6327
6971
|
}
|
|
6328
6972
|
|
|
6329
6973
|
/* packages/components/src/atomic/Rating/Rating.css */
|
|
@@ -6477,7 +7121,7 @@ input[type='number'] {
|
|
|
6477
7121
|
/* Numeric value display */
|
|
6478
7122
|
|
|
6479
7123
|
.dndev-rating-value {
|
|
6480
|
-
font-size: var(--font-size-
|
|
7124
|
+
font-size: var(--font-size-input);
|
|
6481
7125
|
font-weight: var(--font-weight-medium);
|
|
6482
7126
|
color: var(--muted-foreground);
|
|
6483
7127
|
min-width: 2ch;
|
|
@@ -6509,7 +7153,7 @@ input[type='number'] {
|
|
|
6509
7153
|
}
|
|
6510
7154
|
|
|
6511
7155
|
.dndev-select-trigger [data-radix-select-value] {
|
|
6512
|
-
font-size: var(--font-size-
|
|
7156
|
+
font-size: var(--font-size-input);
|
|
6513
7157
|
}
|
|
6514
7158
|
|
|
6515
7159
|
.dndev-select-content {
|
|
@@ -6569,6 +7213,16 @@ input[type='number'] {
|
|
|
6569
7213
|
border-radius: inherit;
|
|
6570
7214
|
}
|
|
6571
7215
|
|
|
7216
|
+
/* Radix injects `display:table; min-width:100%` as inline style on the viewport's
|
|
7217
|
+
direct child. A display:table element sizes to its content's min-content width,
|
|
7218
|
+
ignoring max-width:100% (Chrome resolves the % against the table's own bloated
|
|
7219
|
+
width, not the viewport). contain:inline-size prevents content-based sizing:
|
|
7220
|
+
the table stays at min-width:100% = viewport width regardless of descendant content. */
|
|
7221
|
+
|
|
7222
|
+
.dndev-scroll-area-viewport > div {
|
|
7223
|
+
contain: inline-size;
|
|
7224
|
+
}
|
|
7225
|
+
|
|
6572
7226
|
.dndev-scroll-bar {
|
|
6573
7227
|
display: flex;
|
|
6574
7228
|
touch-action: none;
|
|
@@ -7993,7 +8647,7 @@ input[type='number'] {
|
|
|
7993
8647
|
}
|
|
7994
8648
|
|
|
7995
8649
|
.dndev-switch-label {
|
|
7996
|
-
font-size: var(--font-size-
|
|
8650
|
+
font-size: var(--font-size-input);
|
|
7997
8651
|
transition:
|
|
7998
8652
|
color var(--dur-normal) var(--ease-in-out),
|
|
7999
8653
|
font-weight var(--dur-normal) var(--ease-in-out);
|
|
@@ -9103,7 +9757,8 @@ input[type='number'] {
|
|
|
9103
9757
|
outline: none;
|
|
9104
9758
|
}
|
|
9105
9759
|
|
|
9106
|
-
/* Expand/collapse chevron
|
|
9760
|
+
/* Expand/collapse chevron — wrapper reserves the indent column (--icon-md),
|
|
9761
|
+
svg is the nested icon (--icon-sm). */
|
|
9107
9762
|
|
|
9108
9763
|
.dndev-tree-node-expand {
|
|
9109
9764
|
display: flex;
|
|
@@ -9116,6 +9771,11 @@ input[type='number'] {
|
|
|
9116
9771
|
color: var(--muted-foreground);
|
|
9117
9772
|
}
|
|
9118
9773
|
|
|
9774
|
+
.dndev-tree-node-expand svg {
|
|
9775
|
+
width: var(--icon-sm);
|
|
9776
|
+
height: var(--icon-sm);
|
|
9777
|
+
}
|
|
9778
|
+
|
|
9119
9779
|
[role='treeitem'][aria-expanded='true']
|
|
9120
9780
|
> .dndev-tree-node-content
|
|
9121
9781
|
> .dndev-tree-node-expand {
|
|
@@ -9905,12 +10565,11 @@ input[type='number'] {
|
|
|
9905
10565
|
box-shadow: var(--shadow-xl);
|
|
9906
10566
|
}
|
|
9907
10567
|
|
|
9908
|
-
/* Phase badge -
|
|
10568
|
+
/* Phase badge - used inside Card overlay container */
|
|
9909
10569
|
|
|
9910
10570
|
.dndev-roadmap-phase {
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
inset-inline-end: var(--gap-sm);
|
|
10571
|
+
display: inline-flex;
|
|
10572
|
+
align-items: center;
|
|
9914
10573
|
font-size: var(--font-size-xs);
|
|
9915
10574
|
font-weight: var(--font-weight-bold);
|
|
9916
10575
|
text-transform: uppercase;
|
|
@@ -11991,15 +12650,17 @@ aside[role='navigation'].sidebar {
|
|
|
11991
12650
|
max-width: calc(var(--sidebar-resize-handle-width) + 400px);
|
|
11992
12651
|
/* Max: 400px content + 6px handle = 406px */
|
|
11993
12652
|
z-index: var(--z-sidebar);
|
|
11994
|
-
overflow:
|
|
11995
|
-
/*
|
|
12653
|
+
overflow-x: hidden;
|
|
12654
|
+
/* Horizontal must be clipped — handle is in grid so vertical needs no clipping */
|
|
11996
12655
|
contain: layout style;
|
|
11997
12656
|
padding: 0;
|
|
11998
12657
|
display: grid;
|
|
11999
12658
|
grid-template-columns: auto var(--sidebar-resize-handle-width);
|
|
12000
12659
|
/* Content | Handle - column 1 width set inline */
|
|
12001
|
-
grid-template-rows: auto 1fr auto;
|
|
12002
|
-
/* Top | Content | Bottom
|
|
12660
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
12661
|
+
/* Top | Content | Bottom. `minmax(0, 1fr)` overrides the default `auto`
|
|
12662
|
+
min track size so the content row can shrink below its content height,
|
|
12663
|
+
which is what lets `.sidebar-content`'s overflow-y: auto actually fire. */
|
|
12003
12664
|
height: 100%;
|
|
12004
12665
|
|
|
12005
12666
|
/* Desktop presets with no sidebar: Hide sidebar element for performance/accessibility */
|
|
@@ -12103,7 +12764,9 @@ aside[role='navigation'].sidebar[data-dragging='true']
|
|
|
12103
12764
|
grid-row: 2;
|
|
12104
12765
|
overflow-y: auto;
|
|
12105
12766
|
min-height: 0;
|
|
12106
|
-
|
|
12767
|
+
/* `safe` falls back to flex-start on overflow. Without it, centered overflow
|
|
12768
|
+
pushes the top half above scrollTop=0 where it's unreachable. */
|
|
12769
|
+
justify-content: safe center;
|
|
12107
12770
|
/* Zero gap between items - they touch vertically */
|
|
12108
12771
|
gap: var(--gap-none);
|
|
12109
12772
|
|
|
@@ -12145,6 +12808,13 @@ aside[role='navigation'].sidebar[data-dragging='true']
|
|
|
12145
12808
|
padding-block-start: var(--gap-md);
|
|
12146
12809
|
}
|
|
12147
12810
|
|
|
12811
|
+
/* Reduce Section padding when inside sidebar - sidebar space is precious */
|
|
12812
|
+
|
|
12813
|
+
.sidebar-content .dndev-section-content {
|
|
12814
|
+
padding-inline: var(--gap-sm);
|
|
12815
|
+
padding-block: var(--gap-sm);
|
|
12816
|
+
}
|
|
12817
|
+
|
|
12148
12818
|
/* Interactive elements in all zones: full width */
|
|
12149
12819
|
|
|
12150
12820
|
.sidebar-top .dndev-interactive,
|
|
@@ -12229,6 +12899,12 @@ aside.sidebar[role='navigation'][data-collapsed='true'] .app-branding {
|
|
|
12229
12899
|
display: none;
|
|
12230
12900
|
}
|
|
12231
12901
|
|
|
12902
|
+
/* Custom sidebar content: hide labeled text, keep icons */
|
|
12903
|
+
|
|
12904
|
+
aside.sidebar[role='navigation'][data-collapsed='true'] .sidebar-collapsible {
|
|
12905
|
+
display: none;
|
|
12906
|
+
}
|
|
12907
|
+
|
|
12232
12908
|
/* Main content: Starts at header-height and sidebar-width */
|
|
12233
12909
|
|
|
12234
12910
|
main[role='main'] {
|
|
@@ -12377,7 +13053,8 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12377
13053
|
}
|
|
12378
13054
|
|
|
12379
13055
|
/* Bottom mergedBar: hide footer + add safe-area padding */
|
|
12380
|
-
.dndev-layout:has(.merged-bar[data-position='bottom'])
|
|
13056
|
+
.dndev-layout:has(.merged-bar[data-position='bottom'])
|
|
13057
|
+
> footer[role='contentinfo'] {
|
|
12381
13058
|
display: none;
|
|
12382
13059
|
}
|
|
12383
13060
|
.dndev-layout:has(.merged-bar[data-position='bottom']) {
|
|
@@ -12658,7 +13335,7 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12658
13335
|
|
|
12659
13336
|
.dndev-container {
|
|
12660
13337
|
width: 100%;
|
|
12661
|
-
max-width: var(--content-width);
|
|
13338
|
+
max-width: var(--max-content-width);
|
|
12662
13339
|
min-width: 0; /* Allow shrinking in flex so max-width wins */
|
|
12663
13340
|
flex: 1 1 auto;
|
|
12664
13341
|
|
|
@@ -12705,25 +13382,29 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12705
13382
|
max-width: none;
|
|
12706
13383
|
}
|
|
12707
13384
|
|
|
12708
|
-
/* Standard width - responsive
|
|
13385
|
+
/* Standard width - responsive.
|
|
13386
|
+
Base rule `max-width: var(--max-content-width)` picks up the local override.
|
|
13387
|
+
Do NOT add an explicit `max-width: var(--content-width)` here — `--content-width`
|
|
13388
|
+
is resolved eagerly at :root (where --max-content-width is 100%) and inherits as
|
|
13389
|
+
100%, overriding the local variant. The base rule reads --max-content-width
|
|
13390
|
+
directly at the element and gets the correct value. */
|
|
12709
13391
|
|
|
12710
13392
|
.dndev-container[data-variant='standard'] {
|
|
12711
13393
|
--max-content-width: var(--content-width-standard);
|
|
12712
|
-
max-width: var(--content-width);
|
|
12713
13394
|
}
|
|
12714
13395
|
|
|
12715
|
-
/* Docs width - responsive
|
|
13396
|
+
/* Docs width - responsive. See [data-variant='standard'] for why there's no
|
|
13397
|
+
explicit max-width here. */
|
|
12716
13398
|
|
|
12717
13399
|
.dndev-container[data-variant='docs'] {
|
|
12718
13400
|
--max-content-width: var(--content-width-docs);
|
|
12719
|
-
max-width: var(--content-width);
|
|
12720
13401
|
}
|
|
12721
13402
|
|
|
12722
|
-
/* Narrow width - mobile-first single column (PWA, app-like on every device)
|
|
13403
|
+
/* Narrow width - mobile-first single column (PWA, app-like on every device).
|
|
13404
|
+
See [data-variant='standard'] for why there's no explicit max-width here. */
|
|
12723
13405
|
|
|
12724
13406
|
.dndev-container[data-variant='narrow'] {
|
|
12725
13407
|
--max-content-width: var(--content-width-narrow);
|
|
12726
|
-
max-width: var(--content-width);
|
|
12727
13408
|
}
|
|
12728
13409
|
|
|
12729
13410
|
/* Fixed frame - fills parent exactly, prevents parent scroll */
|