@donotdev/ui 0.3.3 → 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 (180) hide show
  1. package/dist/dndev.css +117 -828
  2. package/dist/internal/layout/components/FontHead.d.ts +30 -0
  3. package/dist/internal/layout/components/FontHead.d.ts.map +1 -0
  4. package/dist/internal/layout/components/FontHead.js +1 -0
  5. package/dist/internal/layout/zones/DnDevMergedBar.d.ts.map +1 -1
  6. package/dist/internal/layout/zones/DnDevMergedBar.js +1 -1
  7. package/dist/next.d.ts +2 -1
  8. package/dist/next.d.ts.map +1 -1
  9. package/dist/next.js +1 -1
  10. package/dist/styles/index.css +114 -22
  11. package/dist/symbol-index.json +1 -1
  12. package/package.json +6 -7
  13. package/dist/dndev-next.css +0 -13753
  14. package/dist/files/inter-cyrillic-300-normal.woff +0 -0
  15. package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
  16. package/dist/files/inter-cyrillic-400-normal.woff +0 -0
  17. package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
  18. package/dist/files/inter-cyrillic-600-normal.woff +0 -0
  19. package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
  20. package/dist/files/inter-cyrillic-700-normal.woff +0 -0
  21. package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
  22. package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
  23. package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
  24. package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
  25. package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
  26. package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
  27. package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
  28. package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
  29. package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
  30. package/dist/files/inter-greek-300-normal.woff +0 -0
  31. package/dist/files/inter-greek-300-normal.woff2 +0 -0
  32. package/dist/files/inter-greek-400-normal.woff +0 -0
  33. package/dist/files/inter-greek-400-normal.woff2 +0 -0
  34. package/dist/files/inter-greek-600-normal.woff +0 -0
  35. package/dist/files/inter-greek-600-normal.woff2 +0 -0
  36. package/dist/files/inter-greek-700-normal.woff +0 -0
  37. package/dist/files/inter-greek-700-normal.woff2 +0 -0
  38. package/dist/files/inter-greek-ext-300-normal.woff +0 -0
  39. package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
  40. package/dist/files/inter-greek-ext-400-normal.woff +0 -0
  41. package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
  42. package/dist/files/inter-greek-ext-600-normal.woff +0 -0
  43. package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
  44. package/dist/files/inter-greek-ext-700-normal.woff +0 -0
  45. package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
  46. package/dist/files/inter-latin-300-normal.woff +0 -0
  47. package/dist/files/inter-latin-300-normal.woff2 +0 -0
  48. package/dist/files/inter-latin-400-normal.woff +0 -0
  49. package/dist/files/inter-latin-400-normal.woff2 +0 -0
  50. package/dist/files/inter-latin-600-normal.woff +0 -0
  51. package/dist/files/inter-latin-600-normal.woff2 +0 -0
  52. package/dist/files/inter-latin-700-normal.woff +0 -0
  53. package/dist/files/inter-latin-700-normal.woff2 +0 -0
  54. package/dist/files/inter-latin-ext-300-normal.woff +0 -0
  55. package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
  56. package/dist/files/inter-latin-ext-400-normal.woff +0 -0
  57. package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
  58. package/dist/files/inter-latin-ext-600-normal.woff +0 -0
  59. package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
  60. package/dist/files/inter-latin-ext-700-normal.woff +0 -0
  61. package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
  62. package/dist/files/inter-vietnamese-300-normal.woff +0 -0
  63. package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
  64. package/dist/files/inter-vietnamese-400-normal.woff +0 -0
  65. package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
  66. package/dist/files/inter-vietnamese-600-normal.woff +0 -0
  67. package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
  68. package/dist/files/inter-vietnamese-700-normal.woff +0 -0
  69. package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
  70. package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
  71. package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
  72. package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
  73. package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
  74. package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
  75. package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
  76. package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
  77. package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
  78. package/dist/files/playfair-display-latin-400-normal.woff +0 -0
  79. package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
  80. package/dist/files/playfair-display-latin-500-normal.woff +0 -0
  81. package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
  82. package/dist/files/playfair-display-latin-600-normal.woff +0 -0
  83. package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
  84. package/dist/files/playfair-display-latin-700-normal.woff +0 -0
  85. package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
  86. package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
  87. package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
  88. package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
  89. package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
  90. package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
  91. package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
  92. package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
  93. package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
  94. package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
  95. package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
  96. package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
  97. package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
  98. package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
  99. package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
  100. package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
  101. package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
  102. package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
  103. package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
  104. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
  105. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
  106. package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
  107. package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
  108. package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
  109. package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
  110. package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
  111. package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
  112. package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
  113. package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
  114. package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
  115. package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
  116. package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
  117. package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  118. package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
  119. package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
  120. package/dist/files/roboto-greek-400-normal.woff +0 -0
  121. package/dist/files/roboto-greek-400-normal.woff2 +0 -0
  122. package/dist/files/roboto-greek-700-normal.woff +0 -0
  123. package/dist/files/roboto-greek-700-normal.woff2 +0 -0
  124. package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
  125. package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
  126. package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
  127. package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
  128. package/dist/files/roboto-latin-400-normal.woff +0 -0
  129. package/dist/files/roboto-latin-400-normal.woff2 +0 -0
  130. package/dist/files/roboto-latin-700-normal.woff +0 -0
  131. package/dist/files/roboto-latin-700-normal.woff2 +0 -0
  132. package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
  133. package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
  134. package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
  135. package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
  136. package/dist/files/roboto-math-400-normal.woff +0 -0
  137. package/dist/files/roboto-math-400-normal.woff2 +0 -0
  138. package/dist/files/roboto-math-700-normal.woff +0 -0
  139. package/dist/files/roboto-math-700-normal.woff2 +0 -0
  140. package/dist/files/roboto-symbols-400-normal.woff +0 -0
  141. package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
  142. package/dist/files/roboto-symbols-700-normal.woff +0 -0
  143. package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
  144. package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
  145. package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
  146. package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
  147. package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
  148. package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
  149. package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
  150. package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
  151. package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
  152. package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
  153. package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
  154. package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
  155. package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
  156. package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
  157. package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
  158. package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
  159. package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
  160. package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
  161. package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
  162. package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
  163. package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  164. package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
  165. package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
  166. package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
  167. package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  168. package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
  169. package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
  170. package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
  171. package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
  172. package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
  173. package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
  174. package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
  175. package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
  176. package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
  177. package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
  178. package/dist/internal/layout/components/FontPreloadLinks.d.ts +0 -19
  179. package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +0 -1
  180. package/dist/internal/layout/components/FontPreloadLinks.js +0 -1
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The font plan as the document head needs it (`src/app/fonts.generated.ts`).
3
+ *
4
+ * @version 0.1.0
5
+ * @since 0.3.3
6
+ * @author AMBROISE PARK Consulting
7
+ */
8
+ export interface FontHeadData {
9
+ /** Every `@font-face` of the app (web faces, then the size-matched fallback faces) */
10
+ readonly css: string;
11
+ /** Per app language: the first-paint font file URLs */
12
+ readonly preloads: Readonly<Record<string, readonly string[]>>;
13
+ }
14
+ /**
15
+ * Font preloads of `lang` and the inline `@font-face` style.
16
+ *
17
+ * @param props.fonts - The generated font plan (`FONTS` of `fonts.generated.ts`)
18
+ * @param props.lang - The page language
19
+ * @returns The `<style>` element (null when the theme uses system fonts only)
20
+ * @throws {Error} When the plan has no entry for `lang` (the generated file is stale)
21
+ *
22
+ * @version 0.1.0
23
+ * @since 0.3.3
24
+ * @author AMBROISE PARK Consulting
25
+ */
26
+ export declare function FontHead({ fonts, lang }: {
27
+ fonts: FontHeadData;
28
+ lang: string;
29
+ }): import("react").JSX.Element | null;
30
+ //# sourceMappingURL=FontHead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FontHead.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/components/FontHead.tsx"],"names":[],"mappings":"AAuBA;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,sFAAsF;IACtF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;CAChE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,sCAgB9E"}
@@ -0,0 +1 @@
1
+ import{preload as s}from"react-dom";import{FONT_STYLE_ID as n}from"@donotdev/core";import{jsx as a}from"react/jsx-runtime";function l({fonts:e,lang:r}){let o=e.preloads[r];if(!o)throw new Error(`[dndev] FontHead: the font plan has no preloads for language '${r}' (src/app/fonts.generated.ts is stale: rebuild).`);for(let t of o)s(t,{as:"font",type:"font/woff2",crossOrigin:"anonymous"});return e.css?a("style",{href:n,precedence:n,children:e.css}):null}export{l as FontHead};
@@ -1 +1 @@
1
- {"version":3,"file":"DnDevMergedBar.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/zones/DnDevMergedBar.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAavC,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,4DAA4D;IAC5D,GAAG,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACvB,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,+DAA+D;IAC/D,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,iBAAS,uBAAuB,CAAC,EAC/B,QAAQ,EACR,MAAM,EACN,OAAO,EACP,GAAG,EACH,OAAO,EACP,MAAM,GACP,EAAE,mBAAmB,GAAG,SAAS,CAgEjC;AAED,eAAO,MAAM,cAAc,qEAAgC,CAAC"}
1
+ {"version":3,"file":"DnDevMergedBar.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/zones/DnDevMergedBar.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAavC,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,4DAA4D;IAC5D,GAAG,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACvB,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,+DAA+D;IAC/D,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,iBAAS,uBAAuB,CAAC,EAC/B,QAAQ,EACR,MAAM,EACN,OAAO,EACP,GAAG,EACH,OAAO,EACP,MAAM,GACP,EAAE,mBAAmB,GAAG,SAAS,CAiEjC;AAED,eAAO,MAAM,cAAc,qEAAgC,CAAC"}
@@ -1 +1 @@
1
- "use client";import{ChevronUp as R,Menu as D}from"lucide-react";import{memo as S,useState as T,useEffect as b}from"react";import{Stack as s,Button as B,Sheet as M,BUTTON_VARIANT as A,Separator as c,SEPARATOR_VARIANT as d}from"@donotdev/components";import{useTranslation as O}from"@donotdev/core";import{useRoutePath as E}from"@donotdev/ui/routing/hooks";import{Fragment as l,jsx as e,jsxs as o}from"react/jsx-runtime";function P({position:t,height:U,trigger:m,top:a,content:r,bottom:n}){let{t:g}=O("dndev"),p=t==="top"?D:R,u=t==="top"?"left":t,[v,i]=T(!1),f=E();b(()=>{i(!1)},[f]);let h=o(s,{direction:"column",className:"merged-bar-sheet-content",children:[a&&o(l,{children:[a,e(c,{variant:d.MUTED})]}),r&&e("div",{className:"merged-bar-sheet-scroll",children:r}),n&&o(l,{children:[e(c,{variant:d.MUTED}),n]})]}),N=e(B,{variant:A.GHOST,icon:p,"aria-label":"Open navigation"});return e("div",{className:"merged-bar","data-position":t,children:o(s,{direction:"row",align:"center",justify:"between",className:"merged-bar-trigger",children:[m,e(M,{trigger:N,side:u,open:v,onOpenChange:i,title:g("sheet.navigation",{defaultValue:"Navigation"}),children:h})]})})}var y=S(P);export{y as DnDevMergedBar};
1
+ "use client";import{ChevronUp as R,Menu as D}from"lucide-react";import{memo as S,useState as T,useEffect as b}from"react";import{Stack as c,Button as B,Sheet as M,BUTTON_VARIANT as A,Separator as l,SEPARATOR_VARIANT as d}from"@donotdev/components";import{useTranslation as O}from"@donotdev/core";import{useRoutePath as C}from"@donotdev/ui/routing/hooks";import{Fragment as m,jsx as e,jsxs as o}from"react/jsx-runtime";function E({position:t,height:P,trigger:g,top:a,content:r,bottom:n}){let{t:s}=O("dndev"),p=t==="top"?D:R,u=t==="top"?"left":t,[h,i]=T(!1),f=C();b(()=>{i(!1)},[f]);let v=o(c,{direction:"column",className:"merged-bar-sheet-content",children:[a&&o(m,{children:[a,e(l,{variant:d.MUTED})]}),r&&e("div",{className:"merged-bar-sheet-scroll",children:r}),n&&o(m,{children:[e(l,{variant:d.MUTED}),n]})]}),N=e(B,{variant:A.GHOST,icon:p,"aria-label":"Open navigation"});return e("div",{className:"merged-bar","data-position":t,children:o(c,{direction:"row",align:"center",justify:"between",className:"merged-bar-trigger",children:[g,e(M,{trigger:N,side:u,open:h,onOpenChange:i,title:s("sheet.navigation",{defaultValue:"Navigation"}),closeLabel:s("sheet.close",{defaultValue:"Close sheet"}),children:v})]})})}var y=S(E);export{y as DnDevMergedBar};
package/dist/next.d.ts CHANGED
@@ -7,5 +7,6 @@
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
9
9
  export { NextJsAppProviders } from './providers/NextJsAppProviders';
10
- export { FontPreloadLinks, default as FontPreloadLinksDefault, } from './internal/layout/components/FontPreloadLinks';
10
+ export { FontHead } from './internal/layout/components/FontHead';
11
+ export type { FontHeadData } from './internal/layout/components/FontHead';
11
12
  //# sourceMappingURL=next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,gBAAgB,EAChB,OAAO,IAAI,uBAAuB,GACnC,MAAM,+CAA+C,CAAC"}
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC"}
package/dist/next.js CHANGED
@@ -1 +1 @@
1
- import{NextJsAppProviders as r}from"./providers/NextJsAppProviders.js";import{FontPreloadLinks as a,default as s}from"./internal/layout/components/FontPreloadLinks.js";export{a as FontPreloadLinks,s as FontPreloadLinksDefault,r as NextJsAppProviders};
1
+ import{NextJsAppProviders as e}from"./providers/NextJsAppProviders.js";import{FontHead as a}from"./internal/layout/components/FontHead.js";export{a as FontHead,e as NextJsAppProviders};
@@ -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;
@@ -6667,36 +6669,121 @@ input[type='number'] {
6667
6669
 
6668
6670
  /* packages/components/src/atomic/PinInput/PinInput.css */
6669
6671
 
6670
- .dndev-pin-input {
6672
+ /* Label above the slots */
6673
+ .dndev-pin-input-field {
6671
6674
  display: flex;
6675
+ flex-direction: column;
6672
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;
6673
6692
  align-items: center;
6674
6693
  justify-content: center;
6694
+ min-inline-size: 0;
6675
6695
  direction: ltr; /* digits are always LTR even in RTL locales */
6676
6696
  }
6677
6697
 
6678
- .dndev-pin-input__box {
6679
- inline-size: var(--input-height, 2.75rem) !important;
6680
- block-size: var(--input-height, 2.75rem) !important;
6681
- padding: 0 !important;
6682
- text-align: center !important;
6683
- 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);
6684
6722
  font-variant-numeric: tabular-nums;
6685
- font-feature-settings: 'tnum' 1;
6686
- 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);
6726
+ }
6727
+
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;
6687
6770
  }
6688
6771
 
6689
- /* Mask the typed digit via CSS, not by overwriting React's controlled value.
6690
- Rewriting value={raw} → value='•' on every keystroke forces React to
6691
- overwrite the native input value after the browser has already painted
6692
- the user's keystroke, which is the classic "lags like shit" PinInput bug
6693
- on mobile Chrome/Safari. `-webkit-text-security: disc` renders a bullet
6694
- purely in the layout layer while the input's real value stays the digit,
6695
- so React never has to race the browser's paint pipeline.
6696
- Firefox does not support -webkit-text-security and will render the digit
6697
- unmasked; the eye-toggle still works for revealing on WebKit/Blink. */
6698
- .dndev-pin-input__box--masked {
6699
- -webkit-text-security: disc;
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);
6700
6787
  }
6701
6788
 
6702
6789
  .dndev-pin-input__reveal {
@@ -6760,6 +6847,11 @@ input[type='number'] {
6760
6847
  .dndev-pin-input[data-shake='true'] {
6761
6848
  animation: none;
6762
6849
  }
6850
+
6851
+ .dndev-pin-input__slots:focus-within
6852
+ .dndev-pin-input__slot[data-caret]::after {
6853
+ animation: none;
6854
+ }
6763
6855
  }
6764
6856
 
6765
6857
  /* packages/components/src/atomic/Pagination/Pagination.css */