@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.
Files changed (232) hide show
  1. package/README.md +2 -3
  2. package/dist/crud/components/EntityCardList.d.ts +4 -1
  3. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  4. package/dist/crud/components/EntityCardList.js +1 -1
  5. package/dist/crud/components/useRecordBreadcrumb.d.ts +3 -1
  6. package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -1
  7. package/dist/crud/components/useRecordBreadcrumb.js +1 -1
  8. package/dist/dndev.css +205 -865
  9. package/dist/index.js +1 -1
  10. package/dist/internal/devtools/components/LayoutReset.js +1 -1
  11. package/dist/internal/layout/components/AutoMetaTags.d.ts +3 -0
  12. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  13. package/dist/internal/layout/components/AutoMetaTags.js +1 -1
  14. package/dist/internal/layout/components/FaviconHead.d.ts +18 -14
  15. package/dist/internal/layout/components/FaviconHead.d.ts.map +1 -1
  16. package/dist/internal/layout/components/FaviconHead.js +1 -1
  17. package/dist/internal/layout/components/FontHead.d.ts +30 -0
  18. package/dist/internal/layout/components/FontHead.d.ts.map +1 -0
  19. package/dist/internal/layout/components/FontHead.js +1 -0
  20. package/dist/internal/layout/components/headTagElement.d.ts +16 -0
  21. package/dist/internal/layout/components/headTagElement.d.ts.map +1 -0
  22. package/dist/internal/layout/components/headTagElement.js +1 -0
  23. package/dist/internal/layout/components/prerenderedHead.d.ts +15 -0
  24. package/dist/internal/layout/components/prerenderedHead.d.ts.map +1 -0
  25. package/dist/internal/layout/components/prerenderedHead.js +1 -0
  26. package/dist/internal/layout/components/trailingSlash.d.ts +13 -0
  27. package/dist/internal/layout/components/trailingSlash.d.ts.map +1 -0
  28. package/dist/internal/layout/components/trailingSlash.js +1 -0
  29. package/dist/internal/layout/zones/DnDevMergedBar.d.ts.map +1 -1
  30. package/dist/internal/layout/zones/DnDevMergedBar.js +1 -1
  31. package/dist/next.d.ts +2 -1
  32. package/dist/next.d.ts.map +1 -1
  33. package/dist/next.js +1 -1
  34. package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
  35. package/dist/providers/ViteAppProviders.d.ts +11 -9
  36. package/dist/providers/ViteAppProviders.d.ts.map +1 -1
  37. package/dist/providers/ViteAppProviders.js +1 -1
  38. package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
  39. package/dist/routing/DnDevNavigationMenu.js +1 -1
  40. package/dist/routing/hooks/hooks.next.js +1 -1
  41. package/dist/routing/hooks/useRoutePath.next.d.ts +5 -3
  42. package/dist/routing/hooks/useRoutePath.next.d.ts.map +1 -1
  43. package/dist/routing/hooks/useRoutePath.next.js +1 -1
  44. package/dist/routing/useRouteDiscovery.d.ts +3 -0
  45. package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
  46. package/dist/styles/index.css +202 -59
  47. package/dist/symbol-index.json +1 -1
  48. package/dist/utils/assetResolver.d.ts +19 -19
  49. package/dist/utils/assetResolver.d.ts.map +1 -1
  50. package/dist/utils/assetResolver.js +1 -1
  51. package/dist/utils/index.d.ts +0 -1
  52. package/dist/utils/index.d.ts.map +1 -1
  53. package/dist/utils/index.js +1 -1
  54. package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
  55. package/dist/vite-routing/AppRoutes.js +1 -1
  56. package/guidelines/ROUTING.md +1 -0
  57. package/guidelines/SEO.md +160 -145
  58. package/package.json +9 -10
  59. package/dist/dndev-next.css +0 -13702
  60. package/dist/files/inter-cyrillic-300-normal.woff +0 -0
  61. package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
  62. package/dist/files/inter-cyrillic-400-normal.woff +0 -0
  63. package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
  64. package/dist/files/inter-cyrillic-600-normal.woff +0 -0
  65. package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
  66. package/dist/files/inter-cyrillic-700-normal.woff +0 -0
  67. package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
  68. package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
  69. package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
  70. package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
  71. package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
  72. package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
  73. package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
  74. package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
  75. package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
  76. package/dist/files/inter-greek-300-normal.woff +0 -0
  77. package/dist/files/inter-greek-300-normal.woff2 +0 -0
  78. package/dist/files/inter-greek-400-normal.woff +0 -0
  79. package/dist/files/inter-greek-400-normal.woff2 +0 -0
  80. package/dist/files/inter-greek-600-normal.woff +0 -0
  81. package/dist/files/inter-greek-600-normal.woff2 +0 -0
  82. package/dist/files/inter-greek-700-normal.woff +0 -0
  83. package/dist/files/inter-greek-700-normal.woff2 +0 -0
  84. package/dist/files/inter-greek-ext-300-normal.woff +0 -0
  85. package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
  86. package/dist/files/inter-greek-ext-400-normal.woff +0 -0
  87. package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
  88. package/dist/files/inter-greek-ext-600-normal.woff +0 -0
  89. package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
  90. package/dist/files/inter-greek-ext-700-normal.woff +0 -0
  91. package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
  92. package/dist/files/inter-latin-300-normal.woff +0 -0
  93. package/dist/files/inter-latin-300-normal.woff2 +0 -0
  94. package/dist/files/inter-latin-400-normal.woff +0 -0
  95. package/dist/files/inter-latin-400-normal.woff2 +0 -0
  96. package/dist/files/inter-latin-600-normal.woff +0 -0
  97. package/dist/files/inter-latin-600-normal.woff2 +0 -0
  98. package/dist/files/inter-latin-700-normal.woff +0 -0
  99. package/dist/files/inter-latin-700-normal.woff2 +0 -0
  100. package/dist/files/inter-latin-ext-300-normal.woff +0 -0
  101. package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
  102. package/dist/files/inter-latin-ext-400-normal.woff +0 -0
  103. package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
  104. package/dist/files/inter-latin-ext-600-normal.woff +0 -0
  105. package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
  106. package/dist/files/inter-latin-ext-700-normal.woff +0 -0
  107. package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
  108. package/dist/files/inter-vietnamese-300-normal.woff +0 -0
  109. package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
  110. package/dist/files/inter-vietnamese-400-normal.woff +0 -0
  111. package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
  112. package/dist/files/inter-vietnamese-600-normal.woff +0 -0
  113. package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
  114. package/dist/files/inter-vietnamese-700-normal.woff +0 -0
  115. package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
  116. package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
  117. package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
  118. package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
  119. package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
  120. package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
  121. package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
  122. package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
  123. package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
  124. package/dist/files/playfair-display-latin-400-normal.woff +0 -0
  125. package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
  126. package/dist/files/playfair-display-latin-500-normal.woff +0 -0
  127. package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
  128. package/dist/files/playfair-display-latin-600-normal.woff +0 -0
  129. package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
  130. package/dist/files/playfair-display-latin-700-normal.woff +0 -0
  131. package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
  132. package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
  133. package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
  134. package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
  135. package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
  136. package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
  137. package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
  138. package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
  139. package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
  140. package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
  141. package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
  142. package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
  143. package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
  144. package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
  145. package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
  146. package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
  147. package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
  148. package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
  149. package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
  150. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
  151. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
  152. package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
  153. package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
  154. package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
  155. package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
  156. package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
  157. package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
  158. package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
  159. package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
  160. package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
  161. package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
  162. package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
  163. package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  164. package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
  165. package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
  166. package/dist/files/roboto-greek-400-normal.woff +0 -0
  167. package/dist/files/roboto-greek-400-normal.woff2 +0 -0
  168. package/dist/files/roboto-greek-700-normal.woff +0 -0
  169. package/dist/files/roboto-greek-700-normal.woff2 +0 -0
  170. package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
  171. package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
  172. package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
  173. package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
  174. package/dist/files/roboto-latin-400-normal.woff +0 -0
  175. package/dist/files/roboto-latin-400-normal.woff2 +0 -0
  176. package/dist/files/roboto-latin-700-normal.woff +0 -0
  177. package/dist/files/roboto-latin-700-normal.woff2 +0 -0
  178. package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
  179. package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
  180. package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
  181. package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
  182. package/dist/files/roboto-math-400-normal.woff +0 -0
  183. package/dist/files/roboto-math-400-normal.woff2 +0 -0
  184. package/dist/files/roboto-math-700-normal.woff +0 -0
  185. package/dist/files/roboto-math-700-normal.woff2 +0 -0
  186. package/dist/files/roboto-symbols-400-normal.woff +0 -0
  187. package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
  188. package/dist/files/roboto-symbols-700-normal.woff +0 -0
  189. package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
  190. package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
  191. package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
  192. package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
  193. package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
  194. package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
  195. package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
  196. package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
  197. package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
  198. package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
  199. package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
  200. package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
  201. package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
  202. package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
  203. package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
  204. package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
  205. package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
  206. package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
  207. package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
  208. package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
  209. package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  210. package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
  211. package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
  212. package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
  213. package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  214. package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
  215. package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
  216. package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
  217. package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
  218. package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
  219. package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
  220. package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
  221. package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
  222. package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
  223. package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
  224. package/dist/internal/layout/components/FontPreloadLinks.d.ts +0 -19
  225. package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +0 -1
  226. package/dist/internal/layout/components/FontPreloadLinks.js +0 -1
  227. package/dist/internal/layout/components/i18nSeoMeta.d.ts +0 -54
  228. package/dist/internal/layout/components/i18nSeoMeta.d.ts.map +0 -1
  229. package/dist/internal/layout/components/i18nSeoMeta.js +0 -1
  230. package/dist/utils/useSeo.d.ts +0 -129
  231. package/dist/utils/useSeo.d.ts.map +0 -1
  232. package/dist/utils/useSeo.js +0 -1
@@ -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
- shown until the web font loads, so the swap shifts no layout (Next: defined in
173
- public/dndev-fonts.css, see @donotdev/core config/fonts/fontFallback.js) */
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
- background: var(--floating-glow-gradient);
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: linear-gradient(
1267
- 135deg,
1268
- var(--floating-glow-start) 0%,
1269
- var(--floating-glow-mid) 50%,
1270
- var(--floating-glow-end) 100%
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(--transition-fast);
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: 44px;
5660
- height: 44px;
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
- .dndev-pin-input {
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
- .dndev-pin-input__box {
6663
- inline-size: var(--input-height, 2.75rem) !important;
6664
- block-size: var(--input-height, 2.75rem) !important;
6665
- padding: 0 !important;
6666
- text-align: center !important;
6667
- font-size: var(--font-xl, 1.25rem) !important;
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
- font-feature-settings: 'tnum' 1;
6670
- caret-color: var(--primary);
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
- /* Mask the typed digit via CSS, not by overwriting React's controlled value.
6674
- Rewriting value={raw} → value='•' on every keystroke forces React to
6675
- overwrite the native input value after the browser has already painted
6676
- the user's keystroke, which is the classic "lags like shit" PinInput bug
6677
- on mobile Chrome/Safari. `-webkit-text-security: disc` renders a bullet
6678
- purely in the layout layer while the input's real value stays the digit,
6679
- so React never has to race the browser's paint pipeline.
6680
- Firefox does not support -webkit-text-security and will render the digit
6681
- unmasked; the eye-toggle still works for revealing on WebKit/Blink. */
6682
- .dndev-pin-input__box--masked {
6683
- -webkit-text-security: disc;
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: 44px;
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: 44px;
8563
- min-block-size: 44px;
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
- /* Reserve the complete footprint, even when zero is presented as one large +. */
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: max(var(--touch-target), 44px);
9151
- /* Include both icon states, padding and inherited text BEFORE placing items.
9152
- Auto rows otherwise grow for the larger collapsed icon, then shrink on expand. */
9153
- --quantity-cell: max(
9154
- var(--quantity-target),
9155
- calc(max(var(--icon-md), var(--quantity-target) * 0.6, 1lh) + 2 * var(--gap-sm))
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
- grid-template-columns: var(--quantity-cell) minmax(var(--quantity-cell), 1fr) var(--quantity-cell);
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: calc(3 * var(--quantity-cell));
9161
- min-inline-size: calc(3 * var(--quantity-cell));
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
- padding: var(--gap-sm);
9323
+ /* The cell is the target: the icon centres inside it. */
9324
+ padding: 0;
9198
9325
  cursor: pointer;
9199
- transition: background-color var(--transition-fast);
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-cell);
9226
- min-inline-size: var(--quantity-cell);
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
- grid-area: 1 / 1 / -1 / -1;
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
- :is(.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment) > svg {
9248
- inline-size: calc(var(--quantity-target) * 0.6);
9249
- block-size: calc(var(--quantity-target) * 0.6);
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: var(--gap-sm);
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 > button {
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
  }