@donotdev/ui 0.1.1 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -242
- package/README.md +1 -19
- package/assets/apple-touch-icon.png +0 -0
- package/assets/favicon.ico +0 -0
- package/assets/fonts/Inter-latin-ext.woff2 +0 -0
- package/assets/fonts/Inter-latin.woff2 +0 -0
- package/assets/fonts/PlayfairDisplay-latin-ext.woff2 +0 -0
- package/assets/fonts/PlayfairDisplay-latin.woff2 +0 -0
- package/assets/fonts/Roboto-400-cyrillic-ext.woff2 +0 -0
- package/assets/fonts/Roboto-400-cyrillic.woff2 +0 -0
- package/assets/fonts/Roboto-400-greek-ext.woff2 +0 -0
- package/assets/fonts/Roboto-400-greek.woff2 +0 -0
- package/assets/fonts/Roboto-400-latin-ext.woff2 +0 -0
- package/assets/fonts/Roboto-400-latin.woff2 +0 -0
- package/assets/fonts/Roboto-400-vietnamese.woff2 +0 -0
- package/assets/fonts/Roboto-700-cyrillic-ext.woff2 +0 -0
- package/assets/fonts/Roboto-700-cyrillic.woff2 +0 -0
- package/assets/fonts/Roboto-700-greek-ext.woff2 +0 -0
- package/assets/fonts/Roboto-700-greek.woff2 +0 -0
- package/assets/fonts/Roboto-700-latin-ext.woff2 +0 -0
- package/assets/fonts/Roboto-700-latin.woff2 +0 -0
- package/assets/fonts/Roboto-700-vietnamese.woff2 +0 -0
- package/assets/icon-192x192.png +0 -0
- package/assets/icon-512x512.png +0 -0
- package/assets/logo.png +0 -0
- package/assets/logo.svg +1 -1
- package/assets/manifest.json +0 -0
- package/dist/CookieConsent-5NH5DNTP.js +1 -0
- package/dist/{GoToDialog-RU5RP7S2.js → GoToDialog-CICRYHHG.js} +1 -1
- package/dist/chunk-MIPTBUWY.js +1 -0
- package/dist/components/common/FeatureCard.d.ts +9 -6
- package/dist/components/common/FeatureCard.d.ts.map +1 -1
- package/dist/components/common/FeatureCard.js +43 -32
- package/dist/components/cookie-consent/CookieConsent.d.ts +3 -3
- package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
- package/dist/components/cookie-consent/CookieConsent.js +36 -35
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -1
- package/dist/components/layout/components/header/CacheSettings.d.ts.map +1 -1
- package/dist/components/layout/components/header/CacheSettings.js +6 -2
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +17 -4
- package/dist/crud/components/EntityDisplayRenderer.js +4 -4
- package/dist/crud/components/EntityFormRenderer.d.ts +6 -1
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +31 -21
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +56 -72
- package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
- package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
- package/dist/crud/components/EntityWorkflow.js +1 -1
- package/dist/crud/crudImports.d.ts +0 -1
- package/dist/crud/crudImports.d.ts.map +1 -1
- package/dist/crud/crudImports.js +0 -1
- package/dist/dndev-next.css +659 -107
- package/dist/dndev.css +794 -113
- package/dist/files/inter-cyrillic-300-normal.woff +0 -0
- package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-400-normal.woff +0 -0
- package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-600-normal.woff +0 -0
- package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-700-normal.woff +0 -0
- package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-greek-300-normal.woff +0 -0
- package/dist/files/inter-greek-300-normal.woff2 +0 -0
- package/dist/files/inter-greek-400-normal.woff +0 -0
- package/dist/files/inter-greek-400-normal.woff2 +0 -0
- package/dist/files/inter-greek-600-normal.woff +0 -0
- package/dist/files/inter-greek-600-normal.woff2 +0 -0
- package/dist/files/inter-greek-700-normal.woff +0 -0
- package/dist/files/inter-greek-700-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-300-normal.woff +0 -0
- package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-400-normal.woff +0 -0
- package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-600-normal.woff +0 -0
- package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-700-normal.woff +0 -0
- package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-latin-300-normal.woff +0 -0
- package/dist/files/inter-latin-300-normal.woff2 +0 -0
- package/dist/files/inter-latin-400-normal.woff +0 -0
- package/dist/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/files/inter-latin-600-normal.woff +0 -0
- package/dist/files/inter-latin-600-normal.woff2 +0 -0
- package/dist/files/inter-latin-700-normal.woff +0 -0
- package/dist/files/inter-latin-700-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-300-normal.woff +0 -0
- package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-400-normal.woff +0 -0
- package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-600-normal.woff +0 -0
- package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-700-normal.woff +0 -0
- package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-300-normal.woff +0 -0
- package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-400-normal.woff +0 -0
- package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-600-normal.woff +0 -0
- package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-700-normal.woff +0 -0
- package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-400-normal.woff +0 -0
- package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-500-normal.woff +0 -0
- package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-600-normal.woff +0 -0
- package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-700-normal.woff +0 -0
- package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
- package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
- package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
- package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
- package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-400-normal.woff +0 -0
- package/dist/files/roboto-greek-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-700-normal.woff +0 -0
- package/dist/files/roboto-greek-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-400-normal.woff +0 -0
- package/dist/files/roboto-latin-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-700-normal.woff +0 -0
- package/dist/files/roboto-latin-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-math-400-normal.woff +0 -0
- package/dist/files/roboto-math-400-normal.woff2 +0 -0
- package/dist/files/roboto-math-700-normal.woff +0 -0
- package/dist/files/roboto-math-700-normal.woff2 +0 -0
- package/dist/files/roboto-symbols-400-normal.woff +0 -0
- package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
- package/dist/files/roboto-symbols-700-normal.woff +0 -0
- package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
- package/dist/index.js +4 -4
- package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
- package/dist/internal/devtools/utils/virtualModuleInspector.d.ts.map +1 -1
- package/dist/internal/devtools/utils/virtualModuleInspector.js +12 -1
- package/dist/internal/initializers/BaseStoresInitializer.d.ts +3 -1
- package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/BaseStoresInitializer.js +8 -4
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts +1 -1
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/NextJsStoresInitializer.js +2 -13
- package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.js +32 -13
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +3 -7
- package/dist/internal/layout/config/presets/moolti.d.ts.map +1 -1
- package/dist/internal/layout/config/presets/moolti.js +11 -13
- package/dist/internal/layout/zones/DnDevFooter.d.ts +1 -1
- package/dist/internal/layout/zones/DnDevFooter.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevFooter.js +1 -1
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/NextJsAppProviders.js +12 -8
- package/dist/routing/AuthGuard.d.ts.map +1 -1
- package/dist/routing/AuthGuard.js +1 -1
- package/dist/routing/AuthReturnTo.d.ts.map +1 -1
- package/dist/routing/GoToInput.d.ts.map +1 -1
- package/dist/routing/GoToInput.js +5 -5
- package/dist/routing/Link.d.ts.map +1 -1
- package/dist/routing/Link.js +14 -0
- package/dist/routing/hooks/hooks.next.js +1 -1
- package/dist/routing/hooks/hooks.vite.js +1 -1
- package/dist/routing/hooks/useNavigate.next.d.ts +2 -6
- package/dist/routing/hooks/useNavigate.next.d.ts.map +1 -1
- package/dist/routing/hooks/useNavigate.next.js +5 -52
- package/dist/routing/hooks/useNavigate.vite.d.ts +2 -6
- package/dist/routing/hooks/useNavigate.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useNavigate.vite.js +5 -52
- package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.js +5 -1
- package/dist/routing/hooks/useRedirectGuard.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.vite.js +5 -1
- package/dist/routing/useGoTo.d.ts.map +1 -1
- package/dist/routing/useGoTo.js +12 -17
- package/dist/styles/index.css +794 -113
- package/dist/symbol-index.json +1 -1
- package/dist/utils/useAuthSafe.d.ts.map +1 -1
- package/dist/utils/useSeo.d.ts +1 -1
- package/dist/utils/useSeo.d.ts.map +1 -1
- package/dist/utils/useSeo.js +3 -1
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +7 -2
- package/dist/vite-routing/RootLayout.d.ts.map +1 -1
- package/dist/vite-routing/RootLayout.js +1 -4
- package/guidelines/COMPONENTS.md +0 -0
- package/guidelines/GOTCHAS.md +0 -0
- package/guidelines/LAYOUTS.md +0 -0
- package/guidelines/PAGES.md +0 -0
- package/guidelines/ROUTING.md +0 -0
- package/guidelines/SEO.md +0 -0
- package/package.json +13 -13
- package/dist/CookieConsent-UVTR7CWW.js +0 -1
- package/dist/chunk-ETE4RC7M.js +0 -1
- package/dist/components/license/LicenseWatermark.d.ts +0 -25
- package/dist/components/license/LicenseWatermark.d.ts.map +0 -1
- package/dist/components/license/LicenseWatermark.js +0 -109
- package/dist/components/license/watermarkData.d.ts +0 -7
- package/dist/components/license/watermarkData.d.ts.map +0 -1
- package/dist/components/license/watermarkData.js +0 -18
package/dist/dndev.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
|
+
}
|
|
1546
1611
|
|
|
1547
|
-
|
|
1612
|
+
/* Ghost / nav / menu / command — transparent by design */
|
|
1613
|
+
|
|
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 */
|
|
@@ -3360,8 +3482,276 @@ em {
|
|
|
3360
3482
|
|
|
3361
3483
|
/* Hidden Days */
|
|
3362
3484
|
|
|
3363
|
-
.dndev-calendar-day-hidden {
|
|
3364
|
-
visibility: hidden;
|
|
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%;
|
|
3746
|
+
}
|
|
3747
|
+
|
|
3748
|
+
/* ===========================
|
|
3749
|
+
DATE / TIME SPACER
|
|
3750
|
+
=========================== */
|
|
3751
|
+
|
|
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,118 @@ 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
|
+
/* Full-card overlay — covers entire card surface, participates in card transform.
|
|
4101
|
+
Enabled via data-has-full-overlay; overflow:hidden clips to card border-radius. */
|
|
4102
|
+
|
|
4103
|
+
.dndev-card[data-has-full-overlay='true'] {
|
|
4104
|
+
overflow: hidden;
|
|
4105
|
+
}
|
|
4106
|
+
|
|
4107
|
+
.dndev-card-full-overlay {
|
|
4108
|
+
position: absolute;
|
|
4109
|
+
inset: 0;
|
|
4110
|
+
z-index: 3;
|
|
4111
|
+
pointer-events: none;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
/* Corner overlay — sits above both cover and body slot. */
|
|
4115
|
+
|
|
4116
|
+
.dndev-card-overlay {
|
|
4117
|
+
position: absolute;
|
|
4118
|
+
z-index: 2;
|
|
4119
|
+
pointer-events: none;
|
|
4120
|
+
}
|
|
4121
|
+
|
|
4122
|
+
/* When a full-overlay scrim is present, raise the corner overlay above it. */
|
|
4123
|
+
|
|
4124
|
+
.dndev-card[data-has-full-overlay='true'] > .dndev-card-overlay {
|
|
4125
|
+
z-index: 4;
|
|
4126
|
+
}
|
|
4127
|
+
|
|
4128
|
+
.dndev-card[data-overlay-position='top-left'] > .dndev-card-overlay {
|
|
4129
|
+
top: var(--gap-md);
|
|
4130
|
+
inset-inline-start: var(--gap-md);
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4133
|
+
.dndev-card[data-overlay-position='top-right'] > .dndev-card-overlay {
|
|
4134
|
+
top: var(--gap-md);
|
|
4135
|
+
inset-inline-end: var(--gap-md);
|
|
4136
|
+
}
|
|
4137
|
+
|
|
4138
|
+
.dndev-card[data-overlay-position='bottom-left'] > .dndev-card-overlay {
|
|
4139
|
+
bottom: var(--gap-md);
|
|
4140
|
+
inset-inline-start: var(--gap-md);
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
.dndev-card[data-overlay-position='bottom-right'] > .dndev-card-overlay {
|
|
4144
|
+
bottom: var(--gap-md);
|
|
4145
|
+
inset-inline-end: var(--gap-md);
|
|
4146
|
+
}
|
|
4147
|
+
|
|
3623
4148
|
/* packages/components/src/atomic/Checkbox/Checkbox.css */
|
|
3624
4149
|
|
|
3625
4150
|
.dndev-control[data-type='checkbox'] {
|
|
3626
4151
|
display: inline-flex;
|
|
3627
4152
|
align-items: center;
|
|
3628
4153
|
justify-content: center;
|
|
3629
|
-
width: var(--
|
|
3630
|
-
height: var(--
|
|
4154
|
+
width: var(--font-size-input);
|
|
4155
|
+
height: var(--font-size-input);
|
|
3631
4156
|
aspect-ratio: 1;
|
|
3632
4157
|
border-radius: 4px;
|
|
4158
|
+
background-color: transparent;
|
|
3633
4159
|
}
|
|
3634
4160
|
|
|
3635
4161
|
.dndev-control[data-type='checkbox'][data-state='checked'] {
|
|
@@ -3690,8 +4216,8 @@ em {
|
|
|
3690
4216
|
}
|
|
3691
4217
|
|
|
3692
4218
|
.dndev-control[data-type='checkbox'] [data-radix-checkbox-indicator] svg {
|
|
3693
|
-
width: var(--
|
|
3694
|
-
height: var(--
|
|
4219
|
+
width: var(--font-size-input);
|
|
4220
|
+
height: var(--font-size-input);
|
|
3695
4221
|
animation: checkbox-check-in var(--dur-fast) var(--ease-in-out);
|
|
3696
4222
|
}
|
|
3697
4223
|
|
|
@@ -3940,47 +4466,15 @@ em {
|
|
|
3940
4466
|
|
|
3941
4467
|
.dndev-combobox-wrapper .dndev-input {
|
|
3942
4468
|
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));
|
|
4469
|
+
text-overflow: ellipsis;
|
|
3955
4470
|
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
4471
|
}
|
|
3968
4472
|
|
|
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
|
-
}
|
|
4473
|
+
/* Action buttons — extends shared .dndev-inline-action-btn from patterns.css.
|
|
4474
|
+
Only Combobox-specific overrides here. */
|
|
3980
4475
|
|
|
3981
|
-
.dndev-combobox-action-btn
|
|
3982
|
-
|
|
3983
|
-
height: var(--size-icon-sm, 16px);
|
|
4476
|
+
.dndev-combobox-action-btn {
|
|
4477
|
+
pointer-events: auto; /* re-enable clicks (trailing container is pointer-events: none) */
|
|
3984
4478
|
}
|
|
3985
4479
|
|
|
3986
4480
|
/* Create button accent color */
|
|
@@ -3995,22 +4489,16 @@ em {
|
|
|
3995
4489
|
color: var(--muted-foreground);
|
|
3996
4490
|
}
|
|
3997
4491
|
|
|
3998
|
-
/* Chevron
|
|
4492
|
+
/* Chevron toggle — extends .dndev-inline-action-btn from patterns.css
|
|
4493
|
+
(same pattern as RangeInput/DatePicker/Combobox clear+create).
|
|
4494
|
+
Only chevron-specific behavior: re-enable clicks in the trailing
|
|
4495
|
+
container and rotate the icon on open. */
|
|
3999
4496
|
|
|
4000
4497
|
.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;
|
|
4498
|
+
pointer-events: auto;
|
|
4009
4499
|
}
|
|
4010
4500
|
|
|
4011
4501
|
.dndev-combobox-chevron svg {
|
|
4012
|
-
width: var(--icon-md);
|
|
4013
|
-
height: var(--icon-md);
|
|
4014
4502
|
transition: transform var(--dur-fast) var(--ease-in-out);
|
|
4015
4503
|
}
|
|
4016
4504
|
|
|
@@ -4018,14 +4506,14 @@ em {
|
|
|
4018
4506
|
transform: rotate(180deg);
|
|
4019
4507
|
}
|
|
4020
4508
|
|
|
4021
|
-
/* Spinner replaces chevron */
|
|
4509
|
+
/* Spinner replaces chevron — match its footprint so there's no layout shift */
|
|
4022
4510
|
|
|
4023
4511
|
.dndev-combobox-spinner {
|
|
4024
4512
|
display: flex;
|
|
4025
4513
|
align-items: center;
|
|
4026
4514
|
justify-content: center;
|
|
4027
|
-
width: var(--
|
|
4028
|
-
height:
|
|
4515
|
+
width: var(--touch-target);
|
|
4516
|
+
height: 100%;
|
|
4029
4517
|
pointer-events: none;
|
|
4030
4518
|
}
|
|
4031
4519
|
|
|
@@ -4075,9 +4563,6 @@ em {
|
|
|
4075
4563
|
────────────────────────────────────────────────── */
|
|
4076
4564
|
|
|
4077
4565
|
.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
4566
|
display: flex;
|
|
4082
4567
|
flex-direction: column;
|
|
4083
4568
|
padding: 0;
|
|
@@ -4130,6 +4615,13 @@ em {
|
|
|
4130
4615
|
color: var(--muted-foreground);
|
|
4131
4616
|
}
|
|
4132
4617
|
|
|
4618
|
+
.dndev-combobox-option-count {
|
|
4619
|
+
font-size: var(--font-size-xs);
|
|
4620
|
+
color: var(--muted-foreground);
|
|
4621
|
+
margin-inline-start: var(--gap-tight);
|
|
4622
|
+
flex-shrink: 0;
|
|
4623
|
+
}
|
|
4624
|
+
|
|
4133
4625
|
.dndev-combobox-option-check {
|
|
4134
4626
|
width: var(--icon-md);
|
|
4135
4627
|
height: var(--icon-md);
|
|
@@ -5139,11 +5631,13 @@ em {
|
|
|
5139
5631
|
position: relative;
|
|
5140
5632
|
}
|
|
5141
5633
|
|
|
5142
|
-
.dndev-hero-section--bg-contain[data-justify='center']
|
|
5634
|
+
.dndev-hero-section--bg-contain[data-justify='center']
|
|
5635
|
+
> .dndev-hero-section__text {
|
|
5143
5636
|
justify-content: center;
|
|
5144
5637
|
}
|
|
5145
5638
|
|
|
5146
|
-
.dndev-hero-section--bg-contain[data-justify='start']
|
|
5639
|
+
.dndev-hero-section--bg-contain[data-justify='start']
|
|
5640
|
+
> .dndev-hero-section__text {
|
|
5147
5641
|
justify-content: flex-start;
|
|
5148
5642
|
}
|
|
5149
5643
|
|
|
@@ -5296,6 +5790,10 @@ em {
|
|
|
5296
5790
|
background-color: var(--muted);
|
|
5297
5791
|
}
|
|
5298
5792
|
|
|
5793
|
+
.image-gallery__main--lightbox {
|
|
5794
|
+
cursor: zoom-in;
|
|
5795
|
+
}
|
|
5796
|
+
|
|
5299
5797
|
.image-gallery__main-image {
|
|
5300
5798
|
width: 100%;
|
|
5301
5799
|
height: 100%;
|
|
@@ -5418,6 +5916,46 @@ em {
|
|
|
5418
5916
|
}
|
|
5419
5917
|
}
|
|
5420
5918
|
|
|
5919
|
+
/* Lightbox (full-size image dialog) */
|
|
5920
|
+
|
|
5921
|
+
.image-gallery__lightbox.dndev-modal-content {
|
|
5922
|
+
max-width: min(96vw, 1400px);
|
|
5923
|
+
max-height: 96dvh;
|
|
5924
|
+
padding: var(--gap-sm);
|
|
5925
|
+
}
|
|
5926
|
+
|
|
5927
|
+
.image-gallery__lightbox .dndev-modal-body {
|
|
5928
|
+
padding: 0;
|
|
5929
|
+
display: flex;
|
|
5930
|
+
align-items: center;
|
|
5931
|
+
justify-content: center;
|
|
5932
|
+
overflow: hidden;
|
|
5933
|
+
min-height: 40dvh;
|
|
5934
|
+
}
|
|
5935
|
+
|
|
5936
|
+
.image-gallery__lightbox-body {
|
|
5937
|
+
position: relative;
|
|
5938
|
+
display: flex;
|
|
5939
|
+
align-items: center;
|
|
5940
|
+
justify-content: center;
|
|
5941
|
+
width: 100%;
|
|
5942
|
+
outline: none;
|
|
5943
|
+
}
|
|
5944
|
+
|
|
5945
|
+
.image-gallery__lightbox-img {
|
|
5946
|
+
max-width: 100%;
|
|
5947
|
+
max-height: 85dvh;
|
|
5948
|
+
width: auto;
|
|
5949
|
+
height: auto;
|
|
5950
|
+
-o-object-fit: contain;
|
|
5951
|
+
object-fit: contain;
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
.image-gallery__lightbox-nav {
|
|
5955
|
+
opacity: 0.92;
|
|
5956
|
+
z-index: 3;
|
|
5957
|
+
}
|
|
5958
|
+
|
|
5421
5959
|
/* packages/components/src/atomic/Input/Input.css */
|
|
5422
5960
|
|
|
5423
5961
|
/* Hide number input spinners - cleaner UI for price/range inputs */
|
|
@@ -5467,13 +6005,13 @@ input[type='number'] {
|
|
|
5467
6005
|
|
|
5468
6006
|
/* Error / destructive state — red border for invalid fields */
|
|
5469
6007
|
|
|
5470
|
-
[data-variant=
|
|
5471
|
-
[aria-invalid=
|
|
6008
|
+
[data-variant='destructive'],
|
|
6009
|
+
[aria-invalid='true'] {
|
|
5472
6010
|
border-color: var(--destructive);
|
|
5473
6011
|
}
|
|
5474
6012
|
|
|
5475
|
-
[data-variant=
|
|
5476
|
-
[aria-invalid=
|
|
6013
|
+
[data-variant='destructive']:focus,
|
|
6014
|
+
[aria-invalid='true']:focus {
|
|
5477
6015
|
border-color: var(--destructive);
|
|
5478
6016
|
outline-color: var(--destructive);
|
|
5479
6017
|
}
|
|
@@ -6063,6 +6601,105 @@ input[type='number'] {
|
|
|
6063
6601
|
height: var(--icon-sm);
|
|
6064
6602
|
}
|
|
6065
6603
|
|
|
6604
|
+
/* packages/components/src/atomic/PinInput/PinInput.css */
|
|
6605
|
+
|
|
6606
|
+
.dndev-pin-input {
|
|
6607
|
+
display: flex;
|
|
6608
|
+
gap: var(--gap-sm);
|
|
6609
|
+
align-items: center;
|
|
6610
|
+
justify-content: center;
|
|
6611
|
+
direction: ltr; /* digits are always LTR even in RTL locales */
|
|
6612
|
+
}
|
|
6613
|
+
|
|
6614
|
+
.dndev-pin-input__box {
|
|
6615
|
+
inline-size: var(--input-height, 2.75rem) !important;
|
|
6616
|
+
block-size: var(--input-height, 2.75rem) !important;
|
|
6617
|
+
padding: 0 !important;
|
|
6618
|
+
text-align: center !important;
|
|
6619
|
+
font-size: var(--font-xl, 1.25rem) !important;
|
|
6620
|
+
font-variant-numeric: tabular-nums;
|
|
6621
|
+
font-feature-settings: 'tnum' 1;
|
|
6622
|
+
caret-color: var(--primary);
|
|
6623
|
+
}
|
|
6624
|
+
|
|
6625
|
+
/* Mask the typed digit via CSS, not by overwriting React's controlled value.
|
|
6626
|
+
Rewriting value={raw} → value='•' on every keystroke forces React to
|
|
6627
|
+
overwrite the native input value after the browser has already painted
|
|
6628
|
+
the user's keystroke, which is the classic "lags like shit" PinInput bug
|
|
6629
|
+
on mobile Chrome/Safari. `-webkit-text-security: disc` renders a bullet
|
|
6630
|
+
purely in the layout layer while the input's real value stays the digit,
|
|
6631
|
+
so React never has to race the browser's paint pipeline.
|
|
6632
|
+
Firefox does not support -webkit-text-security and will render the digit
|
|
6633
|
+
unmasked; the eye-toggle still works for revealing on WebKit/Blink. */
|
|
6634
|
+
|
|
6635
|
+
.dndev-pin-input__box--masked {
|
|
6636
|
+
-webkit-text-security: disc;
|
|
6637
|
+
}
|
|
6638
|
+
|
|
6639
|
+
.dndev-pin-input__reveal {
|
|
6640
|
+
background: none;
|
|
6641
|
+
border: none;
|
|
6642
|
+
cursor: pointer;
|
|
6643
|
+
padding: var(--gap-tight, 0.25rem);
|
|
6644
|
+
margin-inline-start: var(--gap-sm, 0.5rem);
|
|
6645
|
+
display: inline-flex;
|
|
6646
|
+
align-items: center;
|
|
6647
|
+
justify-content: center;
|
|
6648
|
+
color: var(--muted-foreground, currentColor);
|
|
6649
|
+
opacity: var(--opacity-muted, 0.65);
|
|
6650
|
+
transition: opacity var(--dur-fast, 150ms) var(--ease-in-out, ease-in-out);
|
|
6651
|
+
-webkit-user-select: none;
|
|
6652
|
+
-moz-user-select: none;
|
|
6653
|
+
user-select: none;
|
|
6654
|
+
-webkit-tap-highlight-color: transparent;
|
|
6655
|
+
}
|
|
6656
|
+
|
|
6657
|
+
.dndev-pin-input__reveal:hover,
|
|
6658
|
+
.dndev-pin-input__reveal:focus-visible {
|
|
6659
|
+
opacity: 1;
|
|
6660
|
+
outline: none;
|
|
6661
|
+
}
|
|
6662
|
+
|
|
6663
|
+
.dndev-pin-input__reveal:focus-visible {
|
|
6664
|
+
outline: 2px solid var(--primary, currentColor);
|
|
6665
|
+
outline-offset: 2px;
|
|
6666
|
+
border-radius: var(--radius-sm, 4px);
|
|
6667
|
+
}
|
|
6668
|
+
|
|
6669
|
+
/* Shake animation hook — the container flips data-shake='true' on error
|
|
6670
|
+
and the animation plays once via this keyframe. Consumers can override
|
|
6671
|
+
via `.dndev-pin-input[data-shake='true'] { animation: ... }`. */
|
|
6672
|
+
|
|
6673
|
+
@keyframes dndev-pin-input-shake {
|
|
6674
|
+
0%,
|
|
6675
|
+
100% {
|
|
6676
|
+
transform: translateX(0);
|
|
6677
|
+
}
|
|
6678
|
+
20% {
|
|
6679
|
+
transform: translateX(-0.35rem);
|
|
6680
|
+
}
|
|
6681
|
+
40% {
|
|
6682
|
+
transform: translateX(0.35rem);
|
|
6683
|
+
}
|
|
6684
|
+
60% {
|
|
6685
|
+
transform: translateX(-0.25rem);
|
|
6686
|
+
}
|
|
6687
|
+
80% {
|
|
6688
|
+
transform: translateX(0.15rem);
|
|
6689
|
+
}
|
|
6690
|
+
}
|
|
6691
|
+
|
|
6692
|
+
.dndev-pin-input[data-shake='true'] {
|
|
6693
|
+
animation: dndev-pin-input-shake var(--dur-normal, 320ms)
|
|
6694
|
+
var(--ease-in-out, ease-in-out) 1;
|
|
6695
|
+
}
|
|
6696
|
+
|
|
6697
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6698
|
+
.dndev-pin-input[data-shake='true'] {
|
|
6699
|
+
animation: none;
|
|
6700
|
+
}
|
|
6701
|
+
}
|
|
6702
|
+
|
|
6066
6703
|
/* packages/components/src/atomic/Pagination/Pagination.css */
|
|
6067
6704
|
|
|
6068
6705
|
.dndev-pagination {
|
|
@@ -6231,8 +6868,8 @@ input[type='number'] {
|
|
|
6231
6868
|
}
|
|
6232
6869
|
|
|
6233
6870
|
.dndev-control[data-type='radio'] {
|
|
6234
|
-
width: var(--
|
|
6235
|
-
height: var(--
|
|
6871
|
+
width: var(--font-size-input);
|
|
6872
|
+
height: var(--font-size-input);
|
|
6236
6873
|
border-radius: var(--radius-full);
|
|
6237
6874
|
border-width: var(--border-hairline);
|
|
6238
6875
|
background-color: transparent;
|
|
@@ -6319,15 +6956,22 @@ input[type='number'] {
|
|
|
6319
6956
|
|
|
6320
6957
|
.dndev-range-input {
|
|
6321
6958
|
display: grid;
|
|
6322
|
-
grid-template-columns: 1fr auto 1fr auto;
|
|
6959
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
|
|
6323
6960
|
align-items: center;
|
|
6324
|
-
gap:
|
|
6961
|
+
-moz-column-gap: 0;
|
|
6962
|
+
column-gap: 0;
|
|
6963
|
+
padding-inline-start: var(--gap-sm);
|
|
6325
6964
|
width: 100%;
|
|
6326
6965
|
}
|
|
6327
6966
|
|
|
6328
6967
|
.dndev-range-input > .dndev-input,
|
|
6329
6968
|
.dndev-range-input > .dndev-relative {
|
|
6330
6969
|
min-width: 0;
|
|
6970
|
+
padding-inline: var(--gap-sm);
|
|
6971
|
+
}
|
|
6972
|
+
|
|
6973
|
+
.dndev-range-input-separator {
|
|
6974
|
+
padding-inline: var(--gap-tight);
|
|
6331
6975
|
}
|
|
6332
6976
|
|
|
6333
6977
|
/* packages/components/src/atomic/Rating/Rating.css */
|
|
@@ -6481,7 +7125,7 @@ input[type='number'] {
|
|
|
6481
7125
|
/* Numeric value display */
|
|
6482
7126
|
|
|
6483
7127
|
.dndev-rating-value {
|
|
6484
|
-
font-size: var(--font-size-
|
|
7128
|
+
font-size: var(--font-size-input);
|
|
6485
7129
|
font-weight: var(--font-weight-medium);
|
|
6486
7130
|
color: var(--muted-foreground);
|
|
6487
7131
|
min-width: 2ch;
|
|
@@ -6513,7 +7157,7 @@ input[type='number'] {
|
|
|
6513
7157
|
}
|
|
6514
7158
|
|
|
6515
7159
|
.dndev-select-trigger [data-radix-select-value] {
|
|
6516
|
-
font-size: var(--font-size-
|
|
7160
|
+
font-size: var(--font-size-input);
|
|
6517
7161
|
}
|
|
6518
7162
|
|
|
6519
7163
|
.dndev-select-content {
|
|
@@ -6573,6 +7217,16 @@ input[type='number'] {
|
|
|
6573
7217
|
border-radius: inherit;
|
|
6574
7218
|
}
|
|
6575
7219
|
|
|
7220
|
+
/* Radix injects `display:table; min-width:100%` as inline style on the viewport's
|
|
7221
|
+
direct child. A display:table element sizes to its content's min-content width,
|
|
7222
|
+
ignoring max-width:100% (Chrome resolves the % against the table's own bloated
|
|
7223
|
+
width, not the viewport). contain:inline-size prevents content-based sizing:
|
|
7224
|
+
the table stays at min-width:100% = viewport width regardless of descendant content. */
|
|
7225
|
+
|
|
7226
|
+
.dndev-scroll-area-viewport > div {
|
|
7227
|
+
contain: inline-size;
|
|
7228
|
+
}
|
|
7229
|
+
|
|
6576
7230
|
.dndev-scroll-bar {
|
|
6577
7231
|
display: flex;
|
|
6578
7232
|
touch-action: none;
|
|
@@ -7997,7 +8651,7 @@ input[type='number'] {
|
|
|
7997
8651
|
}
|
|
7998
8652
|
|
|
7999
8653
|
.dndev-switch-label {
|
|
8000
|
-
font-size: var(--font-size-
|
|
8654
|
+
font-size: var(--font-size-input);
|
|
8001
8655
|
transition:
|
|
8002
8656
|
color var(--dur-normal) var(--ease-in-out),
|
|
8003
8657
|
font-weight var(--dur-normal) var(--ease-in-out);
|
|
@@ -9107,7 +9761,8 @@ input[type='number'] {
|
|
|
9107
9761
|
outline: none;
|
|
9108
9762
|
}
|
|
9109
9763
|
|
|
9110
|
-
/* Expand/collapse chevron
|
|
9764
|
+
/* Expand/collapse chevron — wrapper reserves the indent column (--icon-md),
|
|
9765
|
+
svg is the nested icon (--icon-sm). */
|
|
9111
9766
|
|
|
9112
9767
|
.dndev-tree-node-expand {
|
|
9113
9768
|
display: flex;
|
|
@@ -9120,6 +9775,11 @@ input[type='number'] {
|
|
|
9120
9775
|
color: var(--muted-foreground);
|
|
9121
9776
|
}
|
|
9122
9777
|
|
|
9778
|
+
.dndev-tree-node-expand svg {
|
|
9779
|
+
width: var(--icon-sm);
|
|
9780
|
+
height: var(--icon-sm);
|
|
9781
|
+
}
|
|
9782
|
+
|
|
9123
9783
|
[role='treeitem'][aria-expanded='true']
|
|
9124
9784
|
> .dndev-tree-node-content
|
|
9125
9785
|
> .dndev-tree-node-expand {
|
|
@@ -9909,12 +10569,11 @@ input[type='number'] {
|
|
|
9909
10569
|
box-shadow: var(--shadow-xl);
|
|
9910
10570
|
}
|
|
9911
10571
|
|
|
9912
|
-
/* Phase badge -
|
|
10572
|
+
/* Phase badge - used inside Card overlay container */
|
|
9913
10573
|
|
|
9914
10574
|
.dndev-roadmap-phase {
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
inset-inline-end: var(--gap-sm);
|
|
10575
|
+
display: inline-flex;
|
|
10576
|
+
align-items: center;
|
|
9918
10577
|
font-size: var(--font-size-xs);
|
|
9919
10578
|
font-weight: var(--font-weight-bold);
|
|
9920
10579
|
text-transform: uppercase;
|
|
@@ -11995,15 +12654,17 @@ aside[role='navigation'].sidebar {
|
|
|
11995
12654
|
max-width: calc(var(--sidebar-resize-handle-width) + 400px);
|
|
11996
12655
|
/* Max: 400px content + 6px handle = 406px */
|
|
11997
12656
|
z-index: var(--z-sidebar);
|
|
11998
|
-
overflow:
|
|
11999
|
-
/*
|
|
12657
|
+
overflow-x: hidden;
|
|
12658
|
+
/* Horizontal must be clipped — handle is in grid so vertical needs no clipping */
|
|
12000
12659
|
contain: layout style;
|
|
12001
12660
|
padding: 0;
|
|
12002
12661
|
display: grid;
|
|
12003
12662
|
grid-template-columns: auto var(--sidebar-resize-handle-width);
|
|
12004
12663
|
/* Content | Handle - column 1 width set inline */
|
|
12005
|
-
grid-template-rows: auto 1fr auto;
|
|
12006
|
-
/* Top | Content | Bottom
|
|
12664
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
12665
|
+
/* Top | Content | Bottom. `minmax(0, 1fr)` overrides the default `auto`
|
|
12666
|
+
min track size so the content row can shrink below its content height,
|
|
12667
|
+
which is what lets `.sidebar-content`'s overflow-y: auto actually fire. */
|
|
12007
12668
|
height: 100%;
|
|
12008
12669
|
|
|
12009
12670
|
/* Desktop presets with no sidebar: Hide sidebar element for performance/accessibility */
|
|
@@ -12107,7 +12768,9 @@ aside[role='navigation'].sidebar[data-dragging='true']
|
|
|
12107
12768
|
grid-row: 2;
|
|
12108
12769
|
overflow-y: auto;
|
|
12109
12770
|
min-height: 0;
|
|
12110
|
-
|
|
12771
|
+
/* `safe` falls back to flex-start on overflow. Without it, centered overflow
|
|
12772
|
+
pushes the top half above scrollTop=0 where it's unreachable. */
|
|
12773
|
+
justify-content: safe center;
|
|
12111
12774
|
/* Zero gap between items - they touch vertically */
|
|
12112
12775
|
gap: var(--gap-none);
|
|
12113
12776
|
|
|
@@ -12149,6 +12812,13 @@ aside[role='navigation'].sidebar[data-dragging='true']
|
|
|
12149
12812
|
padding-block-start: var(--gap-md);
|
|
12150
12813
|
}
|
|
12151
12814
|
|
|
12815
|
+
/* Reduce Section padding when inside sidebar - sidebar space is precious */
|
|
12816
|
+
|
|
12817
|
+
.sidebar-content .dndev-section-content {
|
|
12818
|
+
padding-inline: var(--gap-sm);
|
|
12819
|
+
padding-block: var(--gap-sm);
|
|
12820
|
+
}
|
|
12821
|
+
|
|
12152
12822
|
/* Interactive elements in all zones: full width */
|
|
12153
12823
|
|
|
12154
12824
|
.sidebar-top .dndev-interactive,
|
|
@@ -12233,6 +12903,12 @@ aside.sidebar[role='navigation'][data-collapsed='true'] .app-branding {
|
|
|
12233
12903
|
display: none;
|
|
12234
12904
|
}
|
|
12235
12905
|
|
|
12906
|
+
/* Custom sidebar content: hide labeled text, keep icons */
|
|
12907
|
+
|
|
12908
|
+
aside.sidebar[role='navigation'][data-collapsed='true'] .sidebar-collapsible {
|
|
12909
|
+
display: none;
|
|
12910
|
+
}
|
|
12911
|
+
|
|
12236
12912
|
/* Main content: Starts at header-height and sidebar-width */
|
|
12237
12913
|
|
|
12238
12914
|
main[role='main'] {
|
|
@@ -12381,7 +13057,8 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12381
13057
|
}
|
|
12382
13058
|
|
|
12383
13059
|
/* Bottom mergedBar: hide footer + add safe-area padding */
|
|
12384
|
-
.dndev-layout:has(.merged-bar[data-position='bottom'])
|
|
13060
|
+
.dndev-layout:has(.merged-bar[data-position='bottom'])
|
|
13061
|
+
> footer[role='contentinfo'] {
|
|
12385
13062
|
display: none;
|
|
12386
13063
|
}
|
|
12387
13064
|
.dndev-layout:has(.merged-bar[data-position='bottom']) {
|
|
@@ -12662,7 +13339,7 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12662
13339
|
|
|
12663
13340
|
.dndev-container {
|
|
12664
13341
|
width: 100%;
|
|
12665
|
-
max-width: var(--content-width);
|
|
13342
|
+
max-width: var(--max-content-width);
|
|
12666
13343
|
min-width: 0; /* Allow shrinking in flex so max-width wins */
|
|
12667
13344
|
flex: 1 1 auto;
|
|
12668
13345
|
|
|
@@ -12709,25 +13386,29 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
12709
13386
|
max-width: none;
|
|
12710
13387
|
}
|
|
12711
13388
|
|
|
12712
|
-
/* Standard width - responsive
|
|
13389
|
+
/* Standard width - responsive.
|
|
13390
|
+
Base rule `max-width: var(--max-content-width)` picks up the local override.
|
|
13391
|
+
Do NOT add an explicit `max-width: var(--content-width)` here — `--content-width`
|
|
13392
|
+
is resolved eagerly at :root (where --max-content-width is 100%) and inherits as
|
|
13393
|
+
100%, overriding the local variant. The base rule reads --max-content-width
|
|
13394
|
+
directly at the element and gets the correct value. */
|
|
12713
13395
|
|
|
12714
13396
|
.dndev-container[data-variant='standard'] {
|
|
12715
13397
|
--max-content-width: var(--content-width-standard);
|
|
12716
|
-
max-width: var(--content-width);
|
|
12717
13398
|
}
|
|
12718
13399
|
|
|
12719
|
-
/* Docs width - responsive
|
|
13400
|
+
/* Docs width - responsive. See [data-variant='standard'] for why there's no
|
|
13401
|
+
explicit max-width here. */
|
|
12720
13402
|
|
|
12721
13403
|
.dndev-container[data-variant='docs'] {
|
|
12722
13404
|
--max-content-width: var(--content-width-docs);
|
|
12723
|
-
max-width: var(--content-width);
|
|
12724
13405
|
}
|
|
12725
13406
|
|
|
12726
|
-
/* Narrow width - mobile-first single column (PWA, app-like on every device)
|
|
13407
|
+
/* Narrow width - mobile-first single column (PWA, app-like on every device).
|
|
13408
|
+
See [data-variant='standard'] for why there's no explicit max-width here. */
|
|
12727
13409
|
|
|
12728
13410
|
.dndev-container[data-variant='narrow'] {
|
|
12729
13411
|
--max-content-width: var(--content-width-narrow);
|
|
12730
|
-
max-width: var(--content-width);
|
|
12731
13412
|
}
|
|
12732
13413
|
|
|
12733
13414
|
/* Fixed frame - fills parent exactly, prevents parent scroll */
|