@donotdev/ui 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/dist/crud/components/EntityCardList.d.ts +4 -1
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +1 -1
- package/dist/crud/components/useRecordBreadcrumb.d.ts +3 -1
- package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -1
- package/dist/crud/components/useRecordBreadcrumb.js +1 -1
- package/dist/dndev.css +205 -865
- package/dist/index.js +1 -1
- package/dist/internal/devtools/components/LayoutReset.js +1 -1
- package/dist/internal/layout/components/AutoMetaTags.d.ts +3 -0
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +1 -1
- package/dist/internal/layout/components/FaviconHead.d.ts +18 -14
- package/dist/internal/layout/components/FaviconHead.d.ts.map +1 -1
- package/dist/internal/layout/components/FaviconHead.js +1 -1
- package/dist/internal/layout/components/FontHead.d.ts +30 -0
- package/dist/internal/layout/components/FontHead.d.ts.map +1 -0
- package/dist/internal/layout/components/FontHead.js +1 -0
- package/dist/internal/layout/components/headTagElement.d.ts +16 -0
- package/dist/internal/layout/components/headTagElement.d.ts.map +1 -0
- package/dist/internal/layout/components/headTagElement.js +1 -0
- package/dist/internal/layout/components/prerenderedHead.d.ts +15 -0
- package/dist/internal/layout/components/prerenderedHead.d.ts.map +1 -0
- package/dist/internal/layout/components/prerenderedHead.js +1 -0
- package/dist/internal/layout/components/trailingSlash.d.ts +13 -0
- package/dist/internal/layout/components/trailingSlash.d.ts.map +1 -0
- package/dist/internal/layout/components/trailingSlash.js +1 -0
- package/dist/internal/layout/zones/DnDevMergedBar.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevMergedBar.js +1 -1
- package/dist/next.d.ts +2 -1
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +1 -1
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/ViteAppProviders.d.ts +11 -9
- package/dist/providers/ViteAppProviders.d.ts.map +1 -1
- package/dist/providers/ViteAppProviders.js +1 -1
- package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
- package/dist/routing/DnDevNavigationMenu.js +1 -1
- package/dist/routing/hooks/hooks.next.js +1 -1
- package/dist/routing/hooks/useRoutePath.next.d.ts +5 -3
- package/dist/routing/hooks/useRoutePath.next.d.ts.map +1 -1
- package/dist/routing/hooks/useRoutePath.next.js +1 -1
- package/dist/routing/useRouteDiscovery.d.ts +3 -0
- package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
- package/dist/styles/index.css +202 -59
- package/dist/symbol-index.json +1 -1
- package/dist/utils/assetResolver.d.ts +19 -19
- package/dist/utils/assetResolver.d.ts.map +1 -1
- package/dist/utils/assetResolver.js +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +1 -1
- package/guidelines/ROUTING.md +1 -0
- package/guidelines/SEO.md +160 -145
- package/package.json +9 -10
- package/dist/dndev-next.css +0 -13702
- 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/internal/layout/components/FontPreloadLinks.d.ts +0 -19
- package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +0 -1
- package/dist/internal/layout/components/FontPreloadLinks.js +0 -1
- package/dist/internal/layout/components/i18nSeoMeta.d.ts +0 -54
- package/dist/internal/layout/components/i18nSeoMeta.d.ts.map +0 -1
- package/dist/internal/layout/components/i18nSeoMeta.js +0 -1
- package/dist/utils/useSeo.d.ts +0 -129
- package/dist/utils/useSeo.d.ts.map +0 -1
- package/dist/utils/useSeo.js +0 -1
package/dist/styles/index.css
CHANGED
|
@@ -169,8 +169,10 @@
|
|
|
169
169
|
--font-family: var(--font-sans);
|
|
170
170
|
|
|
171
171
|
/* Sans-serif: Inter (2026 standard). '<Family> Fallback': size-matched local face
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
rendered while the web font is not available (font-display: optional), so text
|
|
173
|
+
keeps its box. Defined by the framework font plan on both bundlers
|
|
174
|
+
(@donotdev/core config/fonts/buildFontPlan.js); a stack leading with a web font
|
|
175
|
+
must list it right after the family (the build fails otherwise). */
|
|
174
176
|
--font-sans:
|
|
175
177
|
Inter, 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
176
178
|
'Helvetica Neue', Arial, sans-serif;
|
|
@@ -1231,7 +1233,9 @@ em {
|
|
|
1231
1233
|
var(--floating-glow-start) 100%
|
|
1232
1234
|
);
|
|
1233
1235
|
|
|
1234
|
-
|
|
1236
|
+
/* --floating-background: optional theme token, set on :root / theme class
|
|
1237
|
+
(e.g. var(--popover)) to flatten every floating surface. Unset = glow gradient. */
|
|
1238
|
+
background: var(--floating-background, var(--floating-glow-gradient));
|
|
1235
1239
|
color: var(--popover-foreground);
|
|
1236
1240
|
border: var(--border-hairline) solid var(--line-2);
|
|
1237
1241
|
border-radius: var(--radius-floating);
|
|
@@ -1263,11 +1267,14 @@ em {
|
|
|
1263
1267
|
background: var(--popover);
|
|
1264
1268
|
}
|
|
1265
1269
|
.dndev-floating:dir(rtl) {
|
|
1266
|
-
background:
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1270
|
+
background: var(
|
|
1271
|
+
--floating-background,
|
|
1272
|
+
linear-gradient(
|
|
1273
|
+
135deg,
|
|
1274
|
+
var(--floating-glow-start) 0%,
|
|
1275
|
+
var(--floating-glow-mid) 50%,
|
|
1276
|
+
var(--floating-glow-end) 100%
|
|
1277
|
+
)
|
|
1271
1278
|
);
|
|
1272
1279
|
}
|
|
1273
1280
|
/* Size variants - ONLY 3 sizes */
|
|
@@ -1757,7 +1764,7 @@ em {
|
|
|
1757
1764
|
font-size: var(--font-size-input);
|
|
1758
1765
|
color: var(--foreground);
|
|
1759
1766
|
cursor: pointer;
|
|
1760
|
-
transition: color var(--
|
|
1767
|
+
transition: color var(--dur-fast) var(--ease-in-out);
|
|
1761
1768
|
|
|
1762
1769
|
/* Subtle hover on label text */
|
|
1763
1770
|
}
|
|
@@ -5656,8 +5663,8 @@ em {
|
|
|
5656
5663
|
display: flex;
|
|
5657
5664
|
align-items: center;
|
|
5658
5665
|
justify-content: center;
|
|
5659
|
-
width:
|
|
5660
|
-
height:
|
|
5666
|
+
width: var(--touch-target);
|
|
5667
|
+
height: var(--touch-target);
|
|
5661
5668
|
border: none;
|
|
5662
5669
|
border-radius: var(--radius-full);
|
|
5663
5670
|
/* --card not --background: surface must be opaque */
|
|
@@ -6460,6 +6467,11 @@ input[type='number'] {
|
|
|
6460
6467
|
gap: var(--gap-none);
|
|
6461
6468
|
}
|
|
6462
6469
|
|
|
6470
|
+
/* Sub-menu lists: base.css gives every ul list-style disc */
|
|
6471
|
+
.dndev-nav-menu-grid-container {
|
|
6472
|
+
list-style: none;
|
|
6473
|
+
}
|
|
6474
|
+
|
|
6463
6475
|
/* Navigation trigger - NavigationMenu-specific styles only */
|
|
6464
6476
|
.dndev-interactive[data-role='nav-trigger'] {
|
|
6465
6477
|
height: var(--touch-target);
|
|
@@ -6471,6 +6483,12 @@ input[type='number'] {
|
|
|
6471
6483
|
background-color: rgb(from var(--accent) r g b / 0.5);
|
|
6472
6484
|
}
|
|
6473
6485
|
|
|
6486
|
+
/* Active page: top-level links, overflow dropdown links, sub-menu links */
|
|
6487
|
+
.dndev-interactive[data-role='menu-item'][data-active='true'],
|
|
6488
|
+
.dndev-nav-menu-item-container[data-active='true'] {
|
|
6489
|
+
background-color: rgb(from var(--accent) r g b / 0.5);
|
|
6490
|
+
}
|
|
6491
|
+
|
|
6474
6492
|
.dndev-nav-menu-trigger-icon {
|
|
6475
6493
|
position: relative;
|
|
6476
6494
|
top: 1px;
|
|
@@ -6651,36 +6669,121 @@ input[type='number'] {
|
|
|
6651
6669
|
|
|
6652
6670
|
/* packages/components/src/atomic/PinInput/PinInput.css */
|
|
6653
6671
|
|
|
6654
|
-
|
|
6672
|
+
/* Label above the slots */
|
|
6673
|
+
.dndev-pin-input-field {
|
|
6655
6674
|
display: flex;
|
|
6675
|
+
flex-direction: column;
|
|
6656
6676
|
gap: var(--gap-sm);
|
|
6677
|
+
min-inline-size: 0;
|
|
6678
|
+
}
|
|
6679
|
+
|
|
6680
|
+
.dndev-pin-input-field__label {
|
|
6681
|
+
display: flex;
|
|
6682
|
+
align-items: center;
|
|
6683
|
+
gap: calc(var(--gap-sm) / 2);
|
|
6684
|
+
}
|
|
6685
|
+
|
|
6686
|
+
.dndev-pin-input-field[data-disabled='true'] .dndev-pin-input-field__label {
|
|
6687
|
+
opacity: var(--opacity-muted);
|
|
6688
|
+
}
|
|
6689
|
+
|
|
6690
|
+
.dndev-pin-input {
|
|
6691
|
+
display: flex;
|
|
6657
6692
|
align-items: center;
|
|
6658
6693
|
justify-content: center;
|
|
6694
|
+
min-inline-size: 0;
|
|
6659
6695
|
direction: ltr; /* digits are always LTR even in RTL locales */
|
|
6660
6696
|
}
|
|
6661
6697
|
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6698
|
+
/* The row shrinks with its container; each slot shrinks from the touch-target
|
|
6699
|
+
size, so 8 slots fit 320px without overflow */
|
|
6700
|
+
.dndev-pin-input__slots {
|
|
6701
|
+
position: relative;
|
|
6702
|
+
display: flex;
|
|
6703
|
+
flex: 0 1 auto;
|
|
6704
|
+
min-inline-size: 0;
|
|
6705
|
+
gap: var(--gap-sm);
|
|
6706
|
+
}
|
|
6707
|
+
|
|
6708
|
+
.dndev-pin-input__slot {
|
|
6709
|
+
display: flex;
|
|
6710
|
+
flex: 0 1 var(--touch-target);
|
|
6711
|
+
align-items: center;
|
|
6712
|
+
justify-content: center;
|
|
6713
|
+
inline-size: var(--touch-target);
|
|
6714
|
+
min-inline-size: 0;
|
|
6715
|
+
block-size: var(--touch-target);
|
|
6716
|
+
border: var(--border-hairline) solid var(--line-2);
|
|
6717
|
+
border-radius: var(--radius-interactive);
|
|
6718
|
+
background-color: var(--interactive, transparent);
|
|
6719
|
+
color: var(--foreground);
|
|
6720
|
+
box-shadow: var(--shadow-sm);
|
|
6721
|
+
font-size: var(--font-size-lg);
|
|
6668
6722
|
font-variant-numeric: tabular-nums;
|
|
6669
|
-
|
|
6670
|
-
|
|
6723
|
+
transition:
|
|
6724
|
+
border-color var(--dur-fast) var(--ease-in-out),
|
|
6725
|
+
box-shadow var(--dur-fast) var(--ease-in-out);
|
|
6671
6726
|
}
|
|
6672
6727
|
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6728
|
+
.dndev-pin-input__slots:hover .dndev-pin-input__slot {
|
|
6729
|
+
border-color: var(--ring);
|
|
6730
|
+
}
|
|
6731
|
+
|
|
6732
|
+
/* Focus ring on the active slot while the input has focus */
|
|
6733
|
+
.dndev-pin-input__slots:focus-within .dndev-pin-input__slot[data-active] {
|
|
6734
|
+
border-color: var(--ring);
|
|
6735
|
+
box-shadow: var(--shadow-focus);
|
|
6736
|
+
}
|
|
6737
|
+
|
|
6738
|
+
/* Fake caret in the empty active slot */
|
|
6739
|
+
.dndev-pin-input__slots:focus-within .dndev-pin-input__slot[data-caret]::after {
|
|
6740
|
+
content: '';
|
|
6741
|
+
inline-size: var(--border-hairline);
|
|
6742
|
+
block-size: 1em;
|
|
6743
|
+
background-color: var(--foreground);
|
|
6744
|
+
animation: dndev-pin-input-caret 1s steps(2, start) infinite;
|
|
6745
|
+
}
|
|
6746
|
+
|
|
6747
|
+
@keyframes dndev-pin-input-caret {
|
|
6748
|
+
to {
|
|
6749
|
+
visibility: hidden;
|
|
6750
|
+
}
|
|
6751
|
+
}
|
|
6752
|
+
|
|
6753
|
+
/* The real input: covers the slots, invisible, receives every interaction.
|
|
6754
|
+
16px minimum font size: no iOS zoom on focus. */
|
|
6755
|
+
.dndev-pin-input__field {
|
|
6756
|
+
position: absolute;
|
|
6757
|
+
inset: 0;
|
|
6758
|
+
inline-size: 100%;
|
|
6759
|
+
block-size: 100%;
|
|
6760
|
+
margin: 0;
|
|
6761
|
+
padding: 0;
|
|
6762
|
+
border: 0;
|
|
6763
|
+
outline: 0;
|
|
6764
|
+
background: transparent;
|
|
6765
|
+
color: transparent;
|
|
6766
|
+
-webkit-text-fill-color: transparent;
|
|
6767
|
+
caret-color: transparent;
|
|
6768
|
+
font-size: var(--font-size-input);
|
|
6769
|
+
cursor: text;
|
|
6770
|
+
}
|
|
6771
|
+
|
|
6772
|
+
.dndev-pin-input__field::-moz-selection {
|
|
6773
|
+
background: transparent;
|
|
6774
|
+
}
|
|
6775
|
+
|
|
6776
|
+
.dndev-pin-input__field::selection {
|
|
6777
|
+
background: transparent;
|
|
6778
|
+
}
|
|
6779
|
+
|
|
6780
|
+
.dndev-pin-input__field:disabled {
|
|
6781
|
+
cursor: not-allowed;
|
|
6782
|
+
}
|
|
6783
|
+
|
|
6784
|
+
.dndev-pin-input__slots:has(.dndev-pin-input__field:disabled)
|
|
6785
|
+
.dndev-pin-input__slot {
|
|
6786
|
+
opacity: var(--opacity-muted);
|
|
6684
6787
|
}
|
|
6685
6788
|
|
|
6686
6789
|
.dndev-pin-input__reveal {
|
|
@@ -6744,6 +6847,11 @@ input[type='number'] {
|
|
|
6744
6847
|
.dndev-pin-input[data-shake='true'] {
|
|
6745
6848
|
animation: none;
|
|
6746
6849
|
}
|
|
6850
|
+
|
|
6851
|
+
.dndev-pin-input__slots:focus-within
|
|
6852
|
+
.dndev-pin-input__slot[data-caret]::after {
|
|
6853
|
+
animation: none;
|
|
6854
|
+
}
|
|
6747
6855
|
}
|
|
6748
6856
|
|
|
6749
6857
|
/* packages/components/src/atomic/Pagination/Pagination.css */
|
|
@@ -8536,7 +8644,7 @@ input[type='number'] {
|
|
|
8536
8644
|
.dndev-swipe-action-content {
|
|
8537
8645
|
flex: 0 0 100%;
|
|
8538
8646
|
min-inline-size: 0;
|
|
8539
|
-
min-block-size:
|
|
8647
|
+
min-block-size: var(--touch-target);
|
|
8540
8648
|
scroll-snap-align: start;
|
|
8541
8649
|
background: var(--background);
|
|
8542
8650
|
}
|
|
@@ -8559,8 +8667,8 @@ input[type='number'] {
|
|
|
8559
8667
|
display: flex;
|
|
8560
8668
|
align-items: center;
|
|
8561
8669
|
justify-content: center;
|
|
8562
|
-
min-inline-size:
|
|
8563
|
-
min-block-size:
|
|
8670
|
+
min-inline-size: var(--touch-target);
|
|
8671
|
+
min-block-size: var(--touch-target);
|
|
8564
8672
|
border: 0;
|
|
8565
8673
|
font: inherit;
|
|
8566
8674
|
cursor: pointer;
|
|
@@ -9145,34 +9253,52 @@ input[type='number'] {
|
|
|
9145
9253
|
display: none;
|
|
9146
9254
|
}
|
|
9147
9255
|
|
|
9148
|
-
/*
|
|
9256
|
+
/* Collapsed: one square + at the inline end. Expanded: [ − qty + ].
|
|
9257
|
+
Rows are fixed in both states (no vertical shift); only the inline size animates,
|
|
9258
|
+
growing from the inline end toward the inline start. */
|
|
9149
9259
|
.dndev-quantity-stepper {
|
|
9150
|
-
--quantity-target:
|
|
9151
|
-
/*
|
|
9152
|
-
|
|
9153
|
-
--quantity-cell: max(
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
);
|
|
9260
|
+
--quantity-target: var(--touch-target);
|
|
9261
|
+
/* The cell IS the touch target: padding and icons fit inside it. State-independent,
|
|
9262
|
+
so the larger collapsed icon never changes the row; only enlarged text grows it. */
|
|
9263
|
+
--quantity-cell: max(var(--quantity-target), calc(1lh + 2 * var(--gap-sm)));
|
|
9264
|
+
/* Quantity field: three tabular digits plus breathing room. */
|
|
9265
|
+
--quantity-field: calc(3ch + var(--gap-sm));
|
|
9266
|
+
--quantity-square: calc(var(--quantity-cell) + 2 * var(--border-hairline));
|
|
9267
|
+
--quantity-expanded: calc(2 * var(--quantity-cell) + var(--quantity-field) + 2 * var(--border-hairline));
|
|
9157
9268
|
display: inline-grid;
|
|
9158
|
-
|
|
9269
|
+
/* − and the quantity shrink to nothing while collapsed or mid-transition; + is always one cell. */
|
|
9270
|
+
grid-template-columns: minmax(0, var(--quantity-cell)) minmax(0, var(--quantity-field)) var(--quantity-cell);
|
|
9159
9271
|
grid-template-rows: var(--quantity-cell);
|
|
9160
|
-
inline-size:
|
|
9161
|
-
min-inline-size:
|
|
9272
|
+
inline-size: var(--quantity-expanded);
|
|
9273
|
+
min-inline-size: var(--quantity-expanded);
|
|
9162
9274
|
border: var(--border-hairline) solid var(--border);
|
|
9163
9275
|
border-radius: var(--radius-interactive);
|
|
9164
9276
|
background: var(--interactive);
|
|
9165
9277
|
color: var(--foreground);
|
|
9278
|
+
transition:
|
|
9279
|
+
inline-size var(--dur-normal) var(--ease-in-out),
|
|
9280
|
+
min-inline-size var(--dur-normal) var(--ease-in-out);
|
|
9281
|
+
|
|
9282
|
+
/* A clickable quantity is a target of its own: keep it at the touch target. */
|
|
9166
9283
|
}
|
|
9284
|
+
.dndev-quantity-stepper:has( > button.dndev-quantity-stepper-value) {
|
|
9285
|
+
--quantity-field: max(var(--quantity-target), calc(3ch + var(--gap-sm)));
|
|
9286
|
+
}
|
|
9167
9287
|
.dndev-quantity-stepper[data-full-width] {
|
|
9168
9288
|
display: grid;
|
|
9289
|
+
grid-template-columns: minmax(0, var(--quantity-cell)) minmax(0, 1fr) var(--quantity-cell);
|
|
9169
9290
|
inline-size: 100%;
|
|
9291
|
+
/* The collapsed + sits at the inline end; resolves to zero once expanded. */
|
|
9292
|
+
margin-inline-start: auto;
|
|
9293
|
+
}
|
|
9294
|
+
.dndev-quantity-stepper[data-collapsed]:not([data-vertical]) {
|
|
9295
|
+
inline-size: var(--quantity-square);
|
|
9296
|
+
min-inline-size: var(--quantity-square);
|
|
9170
9297
|
}
|
|
9171
9298
|
.dndev-quantity-stepper[data-disabled] {
|
|
9172
9299
|
opacity: 0.6;
|
|
9173
9300
|
}
|
|
9174
9301
|
.dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
|
|
9175
|
-
min-inline-size: var(--quantity-target);
|
|
9176
9302
|
min-block-size: var(--quantity-target);
|
|
9177
9303
|
border: none;
|
|
9178
9304
|
border-radius: inherit;
|
|
@@ -9194,9 +9320,10 @@ input[type='number'] {
|
|
|
9194
9320
|
display: flex;
|
|
9195
9321
|
align-items: center;
|
|
9196
9322
|
justify-content: center;
|
|
9197
|
-
|
|
9323
|
+
/* The cell is the target: the icon centres inside it. */
|
|
9324
|
+
padding: 0;
|
|
9198
9325
|
cursor: pointer;
|
|
9199
|
-
transition: background-color var(--
|
|
9326
|
+
transition: background-color var(--dur-fast) var(--ease-in-out);
|
|
9200
9327
|
/* Press-and-hold repeats: no text selection or touch callout on long press. */
|
|
9201
9328
|
-moz-user-select: none;
|
|
9202
9329
|
user-select: none;
|
|
@@ -9207,9 +9334,20 @@ input[type='number'] {
|
|
|
9207
9334
|
background: var(--muted);
|
|
9208
9335
|
}
|
|
9209
9336
|
:is(.dndev-quantity-stepper > button) > svg {
|
|
9337
|
+
flex-shrink: 0;
|
|
9210
9338
|
inline-size: var(--icon-md);
|
|
9211
9339
|
block-size: var(--icon-md);
|
|
9212
9340
|
}
|
|
9341
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper > .dndev-quantity-stepper-value {
|
|
9342
|
+
min-inline-size: 0;
|
|
9343
|
+
/* Clips the icon/digits while the track is narrower than them. The focus ring is
|
|
9344
|
+
the element's own box-shadow, outside its box, so it is never clipped. */
|
|
9345
|
+
overflow: hidden;
|
|
9346
|
+
transition:
|
|
9347
|
+
opacity var(--dur-normal) var(--ease-in-out),
|
|
9348
|
+
visibility var(--dur-normal) var(--ease-in-out),
|
|
9349
|
+
background-color var(--dur-fast) var(--ease-in-out);
|
|
9350
|
+
}
|
|
9213
9351
|
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
|
|
9214
9352
|
grid-area: 1 / 1;
|
|
9215
9353
|
}
|
|
@@ -9218,12 +9356,13 @@ input[type='number'] {
|
|
|
9218
9356
|
}
|
|
9219
9357
|
.dndev-quantity-stepper > .dndev-quantity-stepper-increment {
|
|
9220
9358
|
grid-area: 1 / 3;
|
|
9359
|
+
min-inline-size: var(--quantity-target);
|
|
9221
9360
|
}
|
|
9222
9361
|
.dndev-quantity-stepper[data-vertical] {
|
|
9223
9362
|
grid-template-columns: minmax(var(--quantity-cell), 1fr);
|
|
9224
9363
|
grid-template-rows: repeat(3, var(--quantity-cell));
|
|
9225
|
-
inline-size: var(--quantity-
|
|
9226
|
-
min-inline-size: var(--quantity-
|
|
9364
|
+
inline-size: var(--quantity-square);
|
|
9365
|
+
min-inline-size: var(--quantity-square);
|
|
9227
9366
|
}
|
|
9228
9367
|
.dndev-quantity-stepper[data-vertical][data-full-width] {
|
|
9229
9368
|
inline-size: 100%;
|
|
@@ -9239,15 +9378,17 @@ input[type='number'] {
|
|
|
9239
9378
|
}
|
|
9240
9379
|
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
|
|
9241
9380
|
visibility: hidden;
|
|
9381
|
+
opacity: 0;
|
|
9242
9382
|
pointer-events: none;
|
|
9243
9383
|
}
|
|
9244
|
-
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
|
|
9245
|
-
|
|
9384
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment > svg {
|
|
9385
|
+
inline-size: calc(var(--quantity-target) * 0.6);
|
|
9386
|
+
block-size: calc(var(--quantity-target) * 0.6);
|
|
9246
9387
|
}
|
|
9247
|
-
:
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9388
|
+
/* Vertical keeps its stacked footprint: the collapsed + spans all three cells. */
|
|
9389
|
+
.dndev-quantity-stepper[data-vertical][data-collapsed] > .dndev-quantity-stepper-increment {
|
|
9390
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
9391
|
+
}
|
|
9251
9392
|
|
|
9252
9393
|
.dndev-quantity-stepper-value {
|
|
9253
9394
|
box-sizing: border-box;
|
|
@@ -9256,7 +9397,7 @@ input[type='number'] {
|
|
|
9256
9397
|
justify-content: center;
|
|
9257
9398
|
inline-size: 100%;
|
|
9258
9399
|
min-inline-size: 0;
|
|
9259
|
-
padding-inline:
|
|
9400
|
+
padding-inline: 0;
|
|
9260
9401
|
border: none;
|
|
9261
9402
|
background: none;
|
|
9262
9403
|
color: inherit;
|
|
@@ -9264,11 +9405,13 @@ input[type='number'] {
|
|
|
9264
9405
|
font-weight: var(--font-weight-medium);
|
|
9265
9406
|
font-variant-numeric: tabular-nums;
|
|
9266
9407
|
text-align: center;
|
|
9267
|
-
|
|
9268
9408
|
}
|
|
9269
9409
|
|
|
9270
9410
|
@media (prefers-reduced-motion: reduce) {
|
|
9271
|
-
.dndev-quantity-stepper
|
|
9411
|
+
.dndev-quantity-stepper,
|
|
9412
|
+
.dndev-quantity-stepper > button,
|
|
9413
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement,
|
|
9414
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-value {
|
|
9272
9415
|
transition: none;
|
|
9273
9416
|
}
|
|
9274
9417
|
}
|