@42-central/ui-react 0.24.0 → 0.26.0

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 (294) hide show
  1. package/dist/{chunk-YWTOW7PZ.js → chunk-276RL7FX.js} +10 -10
  2. package/dist/{chunk-YWTOW7PZ.js.map → chunk-276RL7FX.js.map} +1 -1
  3. package/dist/{chunk-FUNTJZX7.js → chunk-2CL3FKEY.js} +3 -3
  4. package/dist/{chunk-FUNTJZX7.js.map → chunk-2CL3FKEY.js.map} +1 -1
  5. package/dist/{chunk-YPFSRZ3T.js → chunk-2NTCQIRP.js} +5 -5
  6. package/dist/{chunk-YPFSRZ3T.js.map → chunk-2NTCQIRP.js.map} +1 -1
  7. package/dist/{chunk-D3JYDAUZ.js → chunk-2TZU4LSX.js} +4 -4
  8. package/dist/{chunk-D3JYDAUZ.js.map → chunk-2TZU4LSX.js.map} +1 -1
  9. package/dist/{chunk-DJLNGWMM.js → chunk-6IRMKF5T.js} +3 -3
  10. package/dist/{chunk-DJLNGWMM.js.map → chunk-6IRMKF5T.js.map} +1 -1
  11. package/dist/{chunk-DT6LKNZF.js → chunk-7247WBTV.js} +5 -4
  12. package/dist/chunk-7247WBTV.js.map +1 -0
  13. package/dist/{chunk-F2FSHVO5.js → chunk-7B44J3CF.js} +7 -7
  14. package/dist/{chunk-F2FSHVO5.js.map → chunk-7B44J3CF.js.map} +1 -1
  15. package/dist/{chunk-6VYGK3Q3.js → chunk-7E7JNWOC.js} +16 -21
  16. package/dist/chunk-7E7JNWOC.js.map +1 -0
  17. package/dist/{chunk-7AQ4MN4M.js → chunk-7OGZT7U2.js} +14 -6
  18. package/dist/chunk-7OGZT7U2.js.map +1 -0
  19. package/dist/{chunk-UAYENYS2.js → chunk-AKXALCUN.js} +3 -3
  20. package/dist/{chunk-UAYENYS2.js.map → chunk-AKXALCUN.js.map} +1 -1
  21. package/dist/{chunk-BE2LWUHY.js → chunk-BMEJBY6H.js} +5 -3
  22. package/dist/chunk-BMEJBY6H.js.map +1 -0
  23. package/dist/{chunk-DHJB4UJD.js → chunk-DMI4KS32.js} +5 -5
  24. package/dist/{chunk-DHJB4UJD.js.map → chunk-DMI4KS32.js.map} +1 -1
  25. package/dist/{chunk-FB2G4LNH.js → chunk-DSZF2TW6.js} +7 -7
  26. package/dist/{chunk-FB2G4LNH.js.map → chunk-DSZF2TW6.js.map} +1 -1
  27. package/dist/{chunk-N66NC6QK.js → chunk-E3XLWMEB.js} +3 -3
  28. package/dist/{chunk-N66NC6QK.js.map → chunk-E3XLWMEB.js.map} +1 -1
  29. package/dist/{chunk-MXAACRWE.js → chunk-E52Z2FKU.js} +5 -5
  30. package/dist/{chunk-MXAACRWE.js.map → chunk-E52Z2FKU.js.map} +1 -1
  31. package/dist/chunk-F374BNL4.js +129 -0
  32. package/dist/chunk-F374BNL4.js.map +1 -0
  33. package/dist/{chunk-3L5GLI67.js → chunk-I4B3N3UX.js} +3 -3
  34. package/dist/{chunk-3L5GLI67.js.map → chunk-I4B3N3UX.js.map} +1 -1
  35. package/dist/{chunk-IPYHTCFL.js → chunk-IUK7OJXZ.js} +3 -3
  36. package/dist/{chunk-IPYHTCFL.js.map → chunk-IUK7OJXZ.js.map} +1 -1
  37. package/dist/{chunk-HRNWWL3Y.js → chunk-J2NW7JID.js} +61 -29
  38. package/dist/chunk-J2NW7JID.js.map +1 -0
  39. package/dist/{chunk-MRAJ45IM.js → chunk-JDPVD2YE.js} +5 -5
  40. package/dist/{chunk-MRAJ45IM.js.map → chunk-JDPVD2YE.js.map} +1 -1
  41. package/dist/{chunk-SZEOTXRZ.js → chunk-JFB6O7IY.js} +5 -5
  42. package/dist/{chunk-SZEOTXRZ.js.map → chunk-JFB6O7IY.js.map} +1 -1
  43. package/dist/{chunk-2MXWEIMD.js → chunk-KKLCHLCZ.js} +12 -11
  44. package/dist/chunk-KKLCHLCZ.js.map +1 -0
  45. package/dist/{chunk-6N6J2DOE.js → chunk-LIZWCWED.js} +3 -3
  46. package/dist/{chunk-6N6J2DOE.js.map → chunk-LIZWCWED.js.map} +1 -1
  47. package/dist/chunk-LJVIZNPE.js +9 -0
  48. package/dist/chunk-LJVIZNPE.js.map +1 -0
  49. package/dist/{chunk-HQPU73WV.js → chunk-LYGOFMXJ.js} +3 -3
  50. package/dist/{chunk-HQPU73WV.js.map → chunk-LYGOFMXJ.js.map} +1 -1
  51. package/dist/{chunk-JVG5ISPT.js → chunk-N42EFOML.js} +4 -4
  52. package/dist/{chunk-JVG5ISPT.js.map → chunk-N42EFOML.js.map} +1 -1
  53. package/dist/{chunk-C4NFRSOR.js → chunk-NF2PBGD3.js} +38 -25
  54. package/dist/chunk-NF2PBGD3.js.map +1 -0
  55. package/dist/{chunk-DA4QII2N.js → chunk-NLSJ6T7V.js} +4 -4
  56. package/dist/{chunk-DA4QII2N.js.map → chunk-NLSJ6T7V.js.map} +1 -1
  57. package/dist/{chunk-UT3TOV2Q.js → chunk-OVT2KZHY.js} +3 -3
  58. package/dist/{chunk-UT3TOV2Q.js.map → chunk-OVT2KZHY.js.map} +1 -1
  59. package/dist/{chunk-MW42XVPD.js → chunk-PBSVX5DB.js} +15 -5
  60. package/dist/chunk-PBSVX5DB.js.map +1 -0
  61. package/dist/{chunk-SVKN5ZHX.js → chunk-PEHFWGTT.js} +16 -13
  62. package/dist/chunk-PEHFWGTT.js.map +1 -0
  63. package/dist/{chunk-J44FJ7PH.js → chunk-PFZMB3US.js} +4 -4
  64. package/dist/{chunk-J44FJ7PH.js.map → chunk-PFZMB3US.js.map} +1 -1
  65. package/dist/{chunk-IRNF274I.js → chunk-PT22KEVD.js} +5 -5
  66. package/dist/{chunk-IRNF274I.js.map → chunk-PT22KEVD.js.map} +1 -1
  67. package/dist/{chunk-OZMSXYBX.js → chunk-QEAF57ZQ.js} +4 -4
  68. package/dist/{chunk-OZMSXYBX.js.map → chunk-QEAF57ZQ.js.map} +1 -1
  69. package/dist/{chunk-SWVUXEBT.js → chunk-SCXXJDKQ.js} +3 -3
  70. package/dist/{chunk-SWVUXEBT.js.map → chunk-SCXXJDKQ.js.map} +1 -1
  71. package/dist/{chunk-E5H3YWZV.js → chunk-SOUDKESO.js} +15 -8
  72. package/dist/chunk-SOUDKESO.js.map +1 -0
  73. package/dist/{chunk-4FEOMQYR.js → chunk-THGJLR5S.js} +6 -6
  74. package/dist/{chunk-4FEOMQYR.js.map → chunk-THGJLR5S.js.map} +1 -1
  75. package/dist/{chunk-TCFB23JT.js → chunk-WERJ44ZN.js} +3 -3
  76. package/dist/{chunk-TCFB23JT.js.map → chunk-WERJ44ZN.js.map} +1 -1
  77. package/dist/{chunk-QNKD2SQM.js → chunk-X3YIHN2U.js} +5 -5
  78. package/dist/{chunk-QNKD2SQM.js.map → chunk-X3YIHN2U.js.map} +1 -1
  79. package/dist/{chunk-VD6PB3VA.js → chunk-X6DESK37.js} +12 -3
  80. package/dist/chunk-X6DESK37.js.map +1 -0
  81. package/dist/{chunk-47LEAR6G.js → chunk-Y2G47ARQ.js} +6 -6
  82. package/dist/{chunk-47LEAR6G.js.map → chunk-Y2G47ARQ.js.map} +1 -1
  83. package/dist/{chunk-O7LS6OZR.js → chunk-YMVUQ2L7.js} +4 -4
  84. package/dist/{chunk-O7LS6OZR.js.map → chunk-YMVUQ2L7.js.map} +1 -1
  85. package/dist/{chunk-F342ZT7O.js → chunk-ZVECQBGG.js} +13 -7
  86. package/dist/chunk-ZVECQBGG.js.map +1 -0
  87. package/dist/components/action-icon/action-icon.d.ts.map +1 -1
  88. package/dist/components/action-icon/index.js +1 -1
  89. package/dist/components/alert/index.js +1 -1
  90. package/dist/components/ambient-background/index.js +14 -26
  91. package/dist/components/ambient-background/index.js.map +1 -1
  92. package/dist/components/ambient-background/starfield.d.ts.map +1 -1
  93. package/dist/components/app-shell/app-shell.d.ts +55 -10
  94. package/dist/components/app-shell/app-shell.d.ts.map +1 -1
  95. package/dist/components/app-shell/index.d.ts +1 -1
  96. package/dist/components/app-shell/index.d.ts.map +1 -1
  97. package/dist/components/app-shell/index.js +300 -39
  98. package/dist/components/app-shell/index.js.map +1 -1
  99. package/dist/components/autocomplete/index.js +5 -5
  100. package/dist/components/avatar/avatar.d.ts +1 -1
  101. package/dist/components/avatar/avatar.d.ts.map +1 -1
  102. package/dist/components/avatar/index.js +12 -3
  103. package/dist/components/avatar/index.js.map +1 -1
  104. package/dist/components/badge/badge.d.ts.map +1 -1
  105. package/dist/components/badge/index.js +1 -1
  106. package/dist/components/button/index.js +1 -1
  107. package/dist/components/button-group/button-group.d.ts +10 -2
  108. package/dist/components/button-group/button-group.d.ts.map +1 -1
  109. package/dist/components/button-group/index.js +1 -1
  110. package/dist/components/button-multi-select/index.js +4 -4
  111. package/dist/components/button-select/button-select-control.d.ts +4 -1
  112. package/dist/components/button-select/button-select-control.d.ts.map +1 -1
  113. package/dist/components/button-select/button-select.d.ts +4 -1
  114. package/dist/components/button-select/button-select.d.ts.map +1 -1
  115. package/dist/components/button-select/index.js +4 -4
  116. package/dist/components/calendar/index.js +4 -4
  117. package/dist/components/calendar-heatmap/index.js +2 -2
  118. package/dist/components/camera/index.js +12 -12
  119. package/dist/components/card/card.d.ts.map +1 -1
  120. package/dist/components/card/index.js +1 -1
  121. package/dist/components/carousel/index.js +2 -2
  122. package/dist/components/checkbox/checkbox.d.ts +3 -2
  123. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  124. package/dist/components/checkbox/index.js +2 -2
  125. package/dist/components/choice-card-group/index.js +2 -2
  126. package/dist/components/choice-card-group/index.js.map +1 -1
  127. package/dist/components/clipboard/index.js +3 -3
  128. package/dist/components/code-block/chrome.js +3 -3
  129. package/dist/components/code-block/code-block.d.ts +6 -3
  130. package/dist/components/code-block/code-block.d.ts.map +1 -1
  131. package/dist/components/code-block/highlighter.d.ts +16 -15
  132. package/dist/components/code-block/highlighter.d.ts.map +1 -1
  133. package/dist/components/code-block/index.d.ts +2 -1
  134. package/dist/components/code-block/index.d.ts.map +1 -1
  135. package/dist/components/code-block/index.js +85 -14
  136. package/dist/components/code-block/index.js.map +1 -1
  137. package/dist/components/code-block/languages.d.ts +61 -0
  138. package/dist/components/code-block/languages.d.ts.map +1 -0
  139. package/dist/components/code-block/static.d.ts +2 -1
  140. package/dist/components/code-block/static.d.ts.map +1 -1
  141. package/dist/components/code-block/static.js +99 -10
  142. package/dist/components/code-block/static.js.map +1 -1
  143. package/dist/components/combobox/index.js +5 -5
  144. package/dist/components/combobox-list/index.js +7 -7
  145. package/dist/components/compare/index.js +2 -2
  146. package/dist/components/data-table/index.js +32 -32
  147. package/dist/components/data-table/index.js.map +1 -1
  148. package/dist/components/date-picker/index.js +14 -14
  149. package/dist/components/download-button/index.js +2 -2
  150. package/dist/components/drawer/index.js +5 -5
  151. package/dist/components/field/field.d.ts +3 -0
  152. package/dist/components/field/field.d.ts.map +1 -1
  153. package/dist/components/field/index.js +1 -1
  154. package/dist/components/file-item/index.js +5 -5
  155. package/dist/components/file-preview/index.js +5 -5
  156. package/dist/components/file-trigger/index.js +2 -2
  157. package/dist/components/file-upload/index.js +6 -6
  158. package/dist/components/gallery/index.js +2 -2
  159. package/dist/components/geodesic/badge-frame.d.ts +13 -1
  160. package/dist/components/geodesic/badge-frame.d.ts.map +1 -1
  161. package/dist/components/geodesic/exam-badge.d.ts +4 -1
  162. package/dist/components/geodesic/exam-badge.d.ts.map +1 -1
  163. package/dist/components/geodesic/geometry.d.ts +14 -9
  164. package/dist/components/geodesic/geometry.d.ts.map +1 -1
  165. package/dist/components/geodesic/index.js +62 -23
  166. package/dist/components/geodesic/index.js.map +1 -1
  167. package/dist/components/geodesic/status.d.ts +8 -6
  168. package/dist/components/geodesic/status.d.ts.map +1 -1
  169. package/dist/components/geodesic/styles.css +15 -2
  170. package/dist/components/hover-card/index.js +2 -2
  171. package/dist/components/image-cropper/index.js +7 -7
  172. package/dist/components/indicator/index.js +24 -9
  173. package/dist/components/indicator/index.js.map +1 -1
  174. package/dist/components/indicator/indicator.d.ts +15 -6
  175. package/dist/components/indicator/indicator.d.ts.map +1 -1
  176. package/dist/components/input/index.js +2 -2
  177. package/dist/components/kbd/index.js +3 -3
  178. package/dist/components/kbd/kbd.d.ts.map +1 -1
  179. package/dist/components/lightbox/index.js +8 -8
  180. package/dist/components/menu/index.js +4 -4
  181. package/dist/components/modal/index.js +5 -5
  182. package/dist/components/multi-combobox-list/index.js +7 -7
  183. package/dist/components/multi-select/index.js +8 -8
  184. package/dist/components/nav-link/index.js +5 -1
  185. package/dist/components/nav-link/nav-link.d.ts.map +1 -1
  186. package/dist/components/nav-link/tanstack.js +5 -1
  187. package/dist/components/nav-link/tanstack.js.map +1 -1
  188. package/dist/components/number-input/index.js +5 -5
  189. package/dist/components/overlays/index.js +7 -7
  190. package/dist/components/password-input/index.js +3 -3
  191. package/dist/components/photo-capture/index.js +16 -16
  192. package/dist/components/pills-input/index.js +5 -5
  193. package/dist/components/pin-input/index.js +2 -2
  194. package/dist/components/popover/index.js +2 -2
  195. package/dist/components/radio-group/index.js +1 -1
  196. package/dist/components/rating/index.js +1 -1
  197. package/dist/components/schedule/index.js +7 -7
  198. package/dist/components/segment-group/index.js +4 -4
  199. package/dist/components/segment-group/segment-group.d.ts +6 -1
  200. package/dist/components/segment-group/segment-group.d.ts.map +1 -1
  201. package/dist/components/select/index.js +6 -6
  202. package/dist/components/slider/index.js +2 -2
  203. package/dist/components/spotlight/index.js +11 -11
  204. package/dist/components/switch/index.js +14 -19
  205. package/dist/components/switch/index.js.map +1 -1
  206. package/dist/components/switch/switch.d.ts +1 -0
  207. package/dist/components/switch/switch.d.ts.map +1 -1
  208. package/dist/components/table/index.js +1 -1
  209. package/dist/components/table/table.d.ts.map +1 -1
  210. package/dist/components/tabs/index.js +3 -3
  211. package/dist/components/tabs/tabs-data.d.ts +4 -1
  212. package/dist/components/tabs/tabs-data.d.ts.map +1 -1
  213. package/dist/components/tabs/tabs.d.ts +4 -1
  214. package/dist/components/tabs/tabs.d.ts.map +1 -1
  215. package/dist/components/tags-input/index.js +7 -7
  216. package/dist/components/text-input/index.js +2 -2
  217. package/dist/components/textarea/index.js +2 -2
  218. package/dist/components/theme-icon/index.js +1 -1
  219. package/dist/components/theme-icon/theme-icon.d.ts.map +1 -1
  220. package/dist/components/time-input/index.js +9 -9
  221. package/dist/components/tree-multi-select/index.js +8 -8
  222. package/dist/components/tree-select/index.js +5 -5
  223. package/dist/index.js +4 -4
  224. package/dist/lib/sidebar-rail.d.ts +21 -0
  225. package/dist/lib/sidebar-rail.d.ts.map +1 -0
  226. package/dist/theme.css +35 -35
  227. package/package.json +1 -1
  228. package/src/as-child.contract.test.tsx +6 -0
  229. package/src/components/action-icon/action-icon.tsx +3 -1
  230. package/src/components/ambient-background/starfield.tsx +18 -43
  231. package/src/components/app-shell/app-shell.test.tsx +430 -5
  232. package/src/components/app-shell/app-shell.tsx +484 -24
  233. package/src/components/app-shell/index.ts +2 -0
  234. package/src/components/avatar/avatar.test.tsx +12 -0
  235. package/src/components/avatar/avatar.tsx +9 -0
  236. package/src/components/badge/badge.tsx +11 -6
  237. package/src/components/button/button.tsx +1 -1
  238. package/src/components/button-group/button-group.test.tsx +24 -0
  239. package/src/components/button-group/button-group.tsx +21 -4
  240. package/src/components/button-multi-select/button-multi-select.test.tsx +15 -0
  241. package/src/components/button-select/button-select-control.tsx +5 -0
  242. package/src/components/button-select/button-select.test.tsx +25 -0
  243. package/src/components/button-select/button-select.tsx +13 -2
  244. package/src/components/card/card.tsx +10 -9
  245. package/src/components/checkbox/checkbox.test.tsx +17 -9
  246. package/src/components/checkbox/checkbox.tsx +26 -27
  247. package/src/components/choice-card-group/choice-card-group.tsx +3 -3
  248. package/src/components/code-block/code-block.tsx +7 -4
  249. package/src/components/code-block/highlighter.test.ts +79 -1
  250. package/src/components/code-block/highlighter.ts +76 -30
  251. package/src/components/code-block/index.ts +2 -0
  252. package/src/components/code-block/languages.ts +63 -0
  253. package/src/components/code-block/static.tsx +2 -1
  254. package/src/components/data-table/data-table-pagination.tsx +5 -5
  255. package/src/components/data-table/data-table-stack.tsx +2 -2
  256. package/src/components/field/field.tsx +14 -0
  257. package/src/components/geodesic/badge-frame.tsx +67 -13
  258. package/src/components/geodesic/exam-badge.tsx +8 -4
  259. package/src/components/geodesic/geometry.ts +8 -6
  260. package/src/components/geodesic/status.test.ts +11 -2
  261. package/src/components/geodesic/status.ts +11 -7
  262. package/src/components/geodesic/styles.css +15 -2
  263. package/src/components/indicator/indicator.test.tsx +45 -0
  264. package/src/components/indicator/indicator.tsx +40 -13
  265. package/src/components/kbd/kbd.tsx +2 -1
  266. package/src/components/nav-link/nav-link.test.tsx +121 -1
  267. package/src/components/nav-link/nav-link.tsx +78 -29
  268. package/src/components/segment-group/segment-group.test.tsx +22 -0
  269. package/src/components/segment-group/segment-group.tsx +35 -19
  270. package/src/components/switch/switch.test.tsx +15 -0
  271. package/src/components/switch/switch.tsx +27 -27
  272. package/src/components/table/table.test.tsx +1 -1
  273. package/src/components/table/table.tsx +14 -11
  274. package/src/components/tabs/tabs-data.tsx +5 -1
  275. package/src/components/tabs/tabs.test.tsx +28 -0
  276. package/src/components/tabs/tabs.tsx +14 -4
  277. package/src/components/theme-icon/theme-icon.tsx +46 -12
  278. package/src/lib/sidebar-rail.ts +24 -0
  279. package/src/theme.css +35 -35
  280. package/src/theme.test.ts +0 -1
  281. package/dist/chunk-2MXWEIMD.js.map +0 -1
  282. package/dist/chunk-6VYGK3Q3.js.map +0 -1
  283. package/dist/chunk-7AQ4MN4M.js.map +0 -1
  284. package/dist/chunk-7CNDZZZ6.js +0 -95
  285. package/dist/chunk-7CNDZZZ6.js.map +0 -1
  286. package/dist/chunk-BE2LWUHY.js.map +0 -1
  287. package/dist/chunk-C4NFRSOR.js.map +0 -1
  288. package/dist/chunk-DT6LKNZF.js.map +0 -1
  289. package/dist/chunk-E5H3YWZV.js.map +0 -1
  290. package/dist/chunk-F342ZT7O.js.map +0 -1
  291. package/dist/chunk-HRNWWL3Y.js.map +0 -1
  292. package/dist/chunk-MW42XVPD.js.map +0 -1
  293. package/dist/chunk-SVKN5ZHX.js.map +0 -1
  294. package/dist/chunk-VD6PB3VA.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/drawer/drawer.tsx"],"names":["Ark"],"mappings":";;;;;;;;;;;;AAiDA,IAAM,kBAAA,GAAqB;AAAA,EACzB,KAAA,EAAO,OAAA;AAAA,EACP,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,IAAA;AAAA,EACL,MAAA,EAAQ;AACV,CAAA;AAGA,IAAM,sBAAA,GAAyB,cAA+B,KAAK,CAAA;AAEnE,IAAM,iBAAiB,GAAA,CAAI;AAAA,EACzB,8HAAA;AAAA,EACA;AACF,CAAC,CAAA;AAED,IAAM,gBAAA,GAAmB,GAAA;AAAA,EACvB,oFAAA;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,SAAA,EAAW;AAAA,QACT,KAAA,EAAO,6BAAA;AAAA,QACP,GAAA,EAAK,2BAAA;AAAA,QACL,GAAA,EAAK,6BAAA;AAAA,QACL,MAAA,EAAQ;AAAA;AACV,KACF;AAAA,IACA,eAAA,EAAiB,EAAE,SAAA,EAAW,KAAA;AAAM;AAExC,CAAA;AASA,IAAM,mBAAmB,CAAC;AAAA,EACxB,SAAA;AAAA,EACA,QAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA,EAAS,QAAA;AAAA,EACT,GAAG;AACL,CAAA,KAA6B;AAC3B,EAAA,MAAM,SAAA,GAAY,WAAW,sBAAsB,CAAA;AACnD,EAAA,MAAM,UAAA,GAAa,OAAuB,IAAI,CAAA;AAC9C,EAAA,uBACE,GAAA;AAAA,IAACA,QAAA,CAAI,UAAA;AAAA,IAAJ;AAAA,MACC,GAAA,EAAK,UAAA;AAAA,MACL,WAAW,EAAA,CAAG,gBAAA,CAAiB,EAAE,SAAA,EAAW,GAAG,SAAS,CAAA;AAAA,MACvD,GAAG,KAAA,CAAM,EAAE,aAAA,EAAe,QAAQ,CAAA;AAAA,MAClC,G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AA;AAAA,kBAEnD,eAAe,IAAA,oBACd,GAAA,CAAC,qBAAkB,SAAA,EAAW,UAAA,EAAY,aACvC,QAAA,EAAA,WAAA,EACH;AAAA,iBAAA,EAEJ,CAAA;AAAA,gBACC,eAAA,oBACC,GAAA;AAAA,kBAAC,kBAAA;AAAA,kBAAA;AAAA,oBACC,cAAY,YAAA,EAAc,iBAAA;AAAA,oBAC1B,WAAW,UAAA,EAAY;AAAA;AAAA;AACzB,eAAA,EAEJ,CAAA;AAAA,8BAEF,GAAA;AAAA,gBAAC,UAAA;AAAA,gBAAA;AAAA,kBACC,SAAA,EAAW,EAAA;AAAA,oBACT,CAAC,SAAA,IAAa,CAAC,WAAA,IAAe,0BAAA;AAAA,oBAC9B,0BAAA;AAAA,oBACA,UAAA,EAAY;AAAA,mBACd;AAAA,kBAEC;AAAA;AAAA;AACH;AAAA;AAAA,SACF,EACF;AAAA,OAAA,EACF;AAAA;AAAA,GACF;AAEJ,CAAA;AAEO,IAAM,MAAA,GAAS,MAAA,CAAO,MAAA,CAAO,eAAA,EAAiB;AAAA,EACnD,IAAA,EAAM,UAAA;AAAA,EACN,OAAA,EAAS,aAAA;AAAA,EACT,OAAA,EAAS,aAAA;AAAA,EACT,QAAA,EAAU,cAAA;AAAA,EACV,UAAA,EAAY,gBAAA;AAAA,EACZ,OAAA,EAAS,aAAA;AAAA,EACT,KAAA,EAAO,WAAA;AAAA,EACP,WAAA,EAAa,iBAAA;AAAA,EACb,YAAA,EAAc,kBAAA;AAAA,EACd,OAAA,EAAS,aAAA;AAAA,EACT,MAAA,EAAQ,YAAA;AAAA,EACR,IAAA,EAAM,UAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC","file":"chunk-O7LS6OZR.js","sourcesContent":["\"use client\"\n\nimport { Drawer as Ark } from \"@ark-ui/react/drawer\"\nimport { Portal } from \"@ark-ui/react/portal\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport {\n type ComponentPropsWithoutRef,\n createContext,\n type ReactNode,\n useContext,\n useRef,\n} from \"react\"\nimport type { NoAsChild } from \"../../lib/as-child\"\nimport { cn } from \"../../lib/cn\"\nimport { OverlayContainerProvider } from \"../../lib/overlay-container\"\nimport { NestedLayer, useLayerGuard } from \"../../lib/overlay-layer\"\nimport { props } from \"../../lib/props\"\nimport type { Size } from \"../../lib/sizes\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { TEXT_COLOR_CLASSES } from \"../../lib/typography-size\"\nimport {\n createDialogParts,\n DIALOG_PADDING,\n type DialogCloseTriggerProps,\n type DialogIconSlot,\n type DialogIcons,\n DialogRootProviders,\n type DialogSectionProps,\n useDialogNameCheck,\n} from \"../overlays/dialog-parts\"\n\n/**\n * Drawer — edge-anchored panel on top of Ark UI's Drawer state machine. Ark\n * owns swipe-to-dismiss, snap points, focus-trap, scroll-lock and the\n * `data-state=\"open|closed\"` attribute; this wrapper adds an RTL-aware\n * `placement` (Ark has none). It is set once, on `Drawer.Root`, which derives\n * Ark's logical `swipeDirection` from it and shares it with the parts through\n * context; the positioner and content write it as `data-placement`. The slide\n * animation and the docked border are pure CSS keyed on `[data-placement]`\n * (see `theme.css`), so `start`/`end` flip automatically under `dir=\"rtl\"`.\n *\n * Mirrors `Modal`'s dual API: high-level `<Drawer open placement size … >` plus\n * low-level parts (`Drawer.Root`, `Drawer.Content`, …). Padding flows through\n * the `--drawer-px` CSS var.\n */\n\nexport type DrawerPlacement = \"start\" | \"end\" | \"top\" | \"bottom\"\n\n/** placement → Ark logical swipe axis (RTL handled by Ark for start/end). */\nconst PLACEMENT_TO_SWIPE = {\n start: \"start\",\n end: \"end\",\n top: \"up\",\n bottom: \"down\",\n} as const\n\n/** The root's placement, so the parts dock themselves without repeating it. */\nconst DrawerPlacementContext = createContext<DrawerPlacement>(\"end\")\n\nconst drawerBackdrop = cva([\n \"fixed inset-0 z-[calc(var(--modal-z,150)+var(--layer-index,0))] bg-black/50 backdrop-blur-lg pointer-events-auto select-none\",\n \"data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out\",\n])\n\nconst drawerPositioner = cva(\n \"fixed inset-0 z-[calc(var(--modal-z,150)+var(--layer-index,0))] flex overflow-clip\",\n {\n variants: {\n placement: {\n start: \"items-stretch justify-start\",\n end: \"items-stretch justify-end\",\n top: \"items-start justify-stretch\",\n bottom: \"items-end justify-stretch\",\n },\n },\n defaultVariants: { placement: \"end\" },\n },\n)\n\nexport type DrawerPositionerProps = NoAsChild<ComponentPropsWithoutRef<typeof Ark.Positioner>> &\n WithTestId\n\n/** Docks itself to the root's `placement`. Publishes itself as the portal\n * target for any overlay opened inside the drawer, so a Menu/Select/DatePicker\n * in a drawer body stays above the panel instead of behind it. See\n * `lib/overlay-container.tsx`. */\nconst DrawerPositioner = ({\n className,\n children,\n testId,\n asChild: _asChild,\n ...rest\n}: DrawerPositionerProps) => {\n const placement = useContext(DrawerPlacementContext)\n const positioner = useRef<HTMLDivElement>(null)\n return (\n <Ark.Positioner\n ref={positioner}\n className={cn(drawerPositioner({ placement }), className)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n data-placement={placement}\n >\n <OverlayContainerProvider value={positioner}>{children}</OverlayContainerProvider>\n </Ark.Positioner>\n )\n}\n\nconst drawerContent = cva(\n [\n \"relative flex flex-col overflow-hidden\",\n \"bg-brand-50 text-brand-950 shadow-2xl\",\n \"dark:bg-brand-950 dark:text-white\",\n \"focus:outline-none\",\n // border on the docked edge only — keyed by data-placement in theme.css\n \"data-[placement=start]:border-e data-[placement=end]:border-s\",\n \"data-[placement=top]:border-b data-[placement=bottom]:border-t\",\n \"border-brand-900/20 dark:border-white/15\",\n \"data-[state=open]:animate-drawer-in data-[state=closed]:animate-drawer-out\",\n ],\n {\n variants: {\n // Internal: Content reads it from the root's context.\n placement: {\n start: \"h-full max-w-[90vw]\",\n end: \"h-full max-w-[90vw]\",\n top: \"w-full max-h-[90dvh]\",\n bottom: \"w-full max-h-[90dvh]\",\n },\n // Width for inline placements, height for block ones: see compoundVariants.\n size: { xs: \"\", sm: \"\", md: \"\", lg: \"\", xl: \"\" },\n // Only the two corners away from the docked edge round: see compoundVariants.\n radius: { none: \"\", sm: \"\", md: \"\", lg: \"\", xl: \"\" },\n },\n compoundVariants: [\n { placement: [\"start\", \"end\"], size: \"xs\", class: \"w-[18rem]\" },\n { placement: [\"start\", \"end\"], size: \"sm\", class: \"w-[22rem]\" },\n { placement: [\"start\", \"end\"], size: \"md\", class: \"w-[28rem]\" },\n { placement: [\"start\", \"end\"], size: \"lg\", class: \"w-[34rem]\" },\n { placement: [\"start\", \"end\"], size: \"xl\", class: \"w-[42rem]\" },\n { placement: [\"top\", \"bottom\"], size: \"xs\", class: \"h-[30dvh]\" },\n { placement: [\"top\", \"bottom\"], size: \"sm\", class: \"h-[40dvh]\" },\n { placement: [\"top\", \"bottom\"], size: \"md\", class: \"h-[55dvh]\" },\n { placement: [\"top\", \"bottom\"], size: \"lg\", class: \"h-[70dvh]\" },\n { placement: [\"top\", \"bottom\"], size: \"xl\", class: \"h-[85dvh]\" },\n // Logical corners, so `start`/`end` mirror under RTL with the panel.\n { placement: \"start\", radius: \"sm\", class: \"rounded-e-sm\" },\n { placement: \"start\", radius: \"md\", class: \"rounded-e-md\" },\n { placement: \"start\", radius: \"lg\", class: \"rounded-e-xl\" },\n { placement: \"start\", radius: \"xl\", class: \"rounded-e-2xl\" },\n { placement: \"end\", radius: \"sm\", class: \"rounded-s-sm\" },\n { placement: \"end\", radius: \"md\", class: \"rounded-s-md\" },\n { placement: \"end\", radius: \"lg\", class: \"rounded-s-xl\" },\n { placement: \"end\", radius: \"xl\", class: \"rounded-s-2xl\" },\n { placement: \"top\", radius: \"sm\", class: \"rounded-b-sm\" },\n { placement: \"top\", radius: \"md\", class: \"rounded-b-md\" },\n { placement: \"top\", radius: \"lg\", class: \"rounded-b-xl\" },\n { placement: \"top\", radius: \"xl\", class: \"rounded-b-2xl\" },\n { placement: \"bottom\", radius: \"sm\", class: \"rounded-t-sm\" },\n { placement: \"bottom\", radius: \"md\", class: \"rounded-t-md\" },\n { placement: \"bottom\", radius: \"lg\", class: \"rounded-t-xl\" },\n { placement: \"bottom\", radius: \"xl\", class: \"rounded-t-2xl\" },\n ],\n defaultVariants: { placement: \"end\", size: \"md\", radius: \"none\" },\n },\n)\n\n// ---------------------------------------------------------------------------\n// Low-level parts\n// ---------------------------------------------------------------------------\n\nexport type DrawerIconSlot = DialogIconSlot\nexport type DrawerIcons = DialogIcons\n\nexport type DrawerRootProps = ComponentPropsWithoutRef<typeof Ark.Root> & {\n /** RTL-aware docking edge, shared with `Drawer.Positioner` and `Drawer.Content`. Also\n * sets Ark's `swipeDirection`, unless you pass one. @default \"end\" */\n placement?: DrawerPlacement\n /** Replaces the default icons: `close`. `Drawer.CloseTrigger`'s `children` win over it. */\n icons?: DrawerIcons\n}\n\n/** Ark's root, plus the nested-layer guard: while a picker opened inside the\n * drawer is open, an outside click closes the picker only, not the drawer\n * under it. It is also a layer of its own while open, so a hotkey on the page\n * (or in an enclosing overlay) yields to it. See `lib/overlay-layer.tsx`. */\nconst DrawerRoot = ({\n placement = \"end\",\n swipeDirection,\n onPointerDownOutside,\n icons,\n children,\n ...rest\n}: DrawerRootProps) => {\n const guard = useLayerGuard(onPointerDownOutside)\n return (\n <Ark.Root\n swipeDirection={swipeDirection ?? PLACEMENT_TO_SWIPE[placement]}\n onPointerDownOutside={guard.onPointerDownOutside}\n {...rest}\n >\n {/* A layer itself, registered with whatever it opened from (the page,\n or an enclosing overlay), so what's under it knows it's covered. */}\n <Ark.Context>{(api) => <NestedLayer open={api.open} />}</Ark.Context>\n <DrawerPlacementContext value={placement}>\n <DialogRootProviders icons={icons} layers={guard.layers}>\n {children}\n </DialogRootProviders>\n </DrawerPlacementContext>\n </Ark.Root>\n )\n}\nconst DrawerTrigger = Ark.Trigger\nconst DrawerContext = Ark.Context\n\nexport type DrawerBackdropProps = ComponentPropsWithoutRef<typeof Ark.Backdrop> & WithTestId\n\nconst DrawerBackdrop = ({ className, testId, ...rest }: DrawerBackdropProps) => (\n <Ark.Backdrop\n className={cn(drawerBackdrop(), className)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n />\n)\n\nexport type DrawerTitleProps = ComponentPropsWithoutRef<typeof Ark.Title> & WithTestId\n\nconst DrawerTitle = ({ className, testId, ...rest }: DrawerTitleProps) => (\n <Ark.Title\n className={cn(\"text-xl font-semibold leading-tight\", className)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n />\n)\n\nexport type DrawerDescriptionProps = ComponentPropsWithoutRef<typeof Ark.Description> & WithTestId\n\nconst DrawerDescription = ({ className, testId, ...rest }: DrawerDescriptionProps) => (\n <Ark.Description\n className={cn(\"text-sm\", TEXT_COLOR_CLASSES.muted, className)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n />\n)\n\nexport type DrawerSize = NonNullable<VariantProps<typeof drawerContent>[\"size\"]>\nexport type DrawerRadius = NonNullable<VariantProps<typeof drawerContent>[\"radius\"]>\n\nexport type DrawerContentProps = ComponentPropsWithoutRef<typeof Ark.Content> &\n WithTestId & {\n /** Width for `start`/`end` drawers, height for `top`/`bottom` ones. @default \"md\" */\n size?: DrawerSize\n /** Rounds the two corners away from the docked edge. @default \"none\" */\n radius?: DrawerRadius\n }\n\n/** The panel. It sizes and rounds itself for the root's `placement`, and writes\n * it as `data-placement`, which the slide animation and the docked border key on. */\nconst DrawerContent = ({ className, size, radius, testId, ...rest }: DrawerContentProps) => {\n const placement = useContext(DrawerPlacementContext)\n const nameCheck = useDialogNameCheck(\"Drawer\")\n return (\n <Ark.Content\n ref={nameCheck}\n className={cn(drawerContent({ placement, size, radius }), className)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n data-placement={placement}\n />\n )\n}\n\nexport type DrawerCloseTriggerProps = DialogCloseTriggerProps\nexport type DrawerHeaderProps = DialogSectionProps\nexport type DrawerBodyProps = DialogSectionProps\nexport type DrawerFooterProps = DialogSectionProps\n\nconst {\n CloseTrigger: DrawerCloseTrigger,\n Header: DrawerHeader,\n Body: DrawerBody,\n Footer: DrawerFooter,\n} = createDialogParts(\"drawer\", Ark.CloseTrigger)\n\nexport type DrawerGrabberProps = NoAsChild<ComponentPropsWithoutRef<typeof Ark.Grabber>> &\n WithTestId\n\nconst DrawerGrabber = ({ className, testId, asChild: _asChild, ...rest }: DrawerGrabberProps) => (\n <Ark.Grabber\n className={cn(\n \"flex shrink-0 cursor-grab touch-none items-center justify-center py-2\",\n className,\n )}\n {...props({ \"data-testid\": testId })}\n {...rest}\n >\n <Ark.GrabberIndicator className=\"h-1.5 w-20 rounded-full bg-brand-900/10 dark:bg-white/16\" />\n </Ark.Grabber>\n)\n\n// ---------------------------------------------------------------------------\n// High-level props-driven Drawer\n// ---------------------------------------------------------------------------\n\ntype ArkRootProps = ComponentPropsWithoutRef<typeof Ark.Root>\n\nexport type DrawerClassNames = Partial<\n Record<\n | \"backdrop\"\n | \"positioner\"\n | \"content\"\n | \"header\"\n | \"title\"\n | \"description\"\n | \"body\"\n | \"grabber\"\n | \"closeButton\",\n string\n >\n>\n\nexport type DrawerProps = Omit<\n ArkRootProps,\n \"open\" | \"defaultOpen\" | \"onOpenChange\" | \"children\" | \"swipeDirection\" | \"role\"\n> &\n WithTestId & {\n /** Controlled open state. */\n open?: boolean\n /** Uncontrolled initial open state. */\n defaultOpen?: boolean\n /** Fires with the next open state. Flattened from Ark's `{ open }`. */\n onOpenChange?: (open: boolean) => void\n /** Fires on close (any source) — Escape, backdrop click, swipe, or a controlled `onOpenChange`. */\n onClose?: () => void\n /** RTL-aware docking edge. @default \"end\" */\n placement?: DrawerPlacement\n /** Width for `start`/`end` drawers, height for `top`/`bottom` ones. @default \"md\" */\n size?: DrawerSize\n /** Rounds the two corners away from the docked edge. @default \"none\" */\n radius?: DrawerRadius\n /** Header title; also the drawer's accessible name. */\n title?: ReactNode\n description?: ReactNode\n /** Accessible name for a drawer without a `title` (a navigation panel, say). */\n \"aria-label\"?: string\n /** Id of an element inside the drawer that names it, when there is no `title`. */\n \"aria-labelledby\"?: string\n /** Render the default close button in the header. @default true */\n withCloseButton?: boolean\n /** Show the drag grabber handle. @default false */\n withGrabber?: boolean\n /**\n * Render the dimming backdrop. Set `false` when an ancestor (e.g. the modals\n * manager) draws a single shared backdrop for the whole overlay stack.\n * @default true\n */\n withBackdrop?: boolean\n /** Inner padding token; sets `--drawer-px`. @default \"md\" */\n padding?: Size\n closeOnEscape?: boolean\n /** Close on a click outside the drawer. @default true, false for an `alertdialog` */\n closeOnInteractOutside?: boolean\n /** Use `alertdialog` semantics (confirm flows). @default \"dialog\" */\n role?: \"dialog\" | \"alertdialog\"\n /** Fires after the exit animation completes — the manager unmounts on this. */\n onExitComplete?: () => void\n /** Portal target. Defaults to `document.body`. */\n container?: HTMLElement | null\n children?: ReactNode\n className?: string\n classNames?: DrawerClassNames\n /** Overrides the default close button's accessible name (`closeTriggerLabel`, default\n * `\"Close\"`). The compound `DrawerCloseTrigger` part takes a plain `aria-label` instead. */\n translations?: DrawerTranslations\n /** Replaces the default icons: `close`, the header's close button. */\n icons?: DrawerIcons\n }\n\n/** The ready-made drawer's wording — `closeTriggerLabel` follows Ark's naming for the\n * same control. */\nexport type DrawerTranslations = { closeTriggerLabel?: string }\n\nconst DrawerComponent = ({\n open,\n defaultOpen,\n onOpenChange,\n onClose,\n placement = \"end\",\n size,\n radius,\n title,\n description,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledby,\n withCloseButton = true,\n withGrabber = false,\n withBackdrop = true,\n padding = \"md\",\n closeOnEscape,\n closeOnInteractOutside,\n role,\n onExitComplete,\n container,\n children,\n className,\n classNames,\n testId,\n translations,\n icons,\n ...rest\n}: DrawerProps) => {\n const hasHeader = title != null || description != null || withCloseButton\n\n return (\n <DrawerRoot\n open={open}\n defaultOpen={defaultOpen}\n onOpenChange={({ open: next }) => {\n onOpenChange?.(next)\n if (!next) onClose?.()\n }}\n placement={placement}\n closeOnEscape={closeOnEscape}\n // Spelled out to match Modal, whose Ark dialog derives this default from\n // `modal` (so the overlays manager's `withBackdrop={false}` would stop\n // outside clicks there). Ark's drawer defaults it to `true` for every role\n // instead, so here the one behaviour this changes is the `alertdialog`:\n // it stays sticky, as on Modal, unless the caller opts in explicitly.\n closeOnInteractOutside={closeOnInteractOutside ?? role !== \"alertdialog\"}\n role={role}\n // Unmount the whole content tree (incl. the `fixed inset-0` positioner)\n // on close — otherwise the positioner lingers as a transparent overlay\n // that swallows page clicks. `lazyMount` keeps it out of the DOM until\n // first open.\n lazyMount\n unmountOnExit\n modal={withBackdrop}\n onExitComplete={onExitComplete}\n icons={icons}\n {...rest}\n >\n <Portal container={container ? { current: container } : undefined}>\n {withBackdrop && <DrawerBackdrop className={classNames?.backdrop} />}\n <DrawerPositioner className={classNames?.positioner}>\n <DrawerContent\n size={size}\n radius={radius}\n style={{ [\"--drawer-px\" as string]: DIALOG_PADDING[padding] }}\n className={cn(className, classNames?.content)}\n testId={testId}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n >\n {withGrabber && <DrawerGrabber className={classNames?.grabber} />}\n {hasHeader && (\n <DrawerHeader className={classNames?.header}>\n <div className=\"flex flex-col gap-1\">\n {title != null && (\n <DrawerTitle className={classNames?.title}>{title}</DrawerTitle>\n )}\n {description != null && (\n <DrawerDescription className={classNames?.description}>\n {description}\n </DrawerDescription>\n )}\n </div>\n {withCloseButton && (\n <DrawerCloseTrigger\n aria-label={translations?.closeTriggerLabel}\n className={classNames?.closeButton}\n />\n )}\n </DrawerHeader>\n )}\n <DrawerBody\n className={cn(\n !hasHeader && !withGrabber && \"pt-(--drawer-px,1.25rem)\",\n \"pb-(--drawer-px,1.25rem)\",\n classNames?.body,\n )}\n >\n {children}\n </DrawerBody>\n </DrawerContent>\n </DrawerPositioner>\n </Portal>\n </DrawerRoot>\n )\n}\n\nexport const Drawer = Object.assign(DrawerComponent, {\n Root: DrawerRoot,\n Trigger: DrawerTrigger,\n Context: DrawerContext,\n Backdrop: DrawerBackdrop,\n Positioner: DrawerPositioner,\n Content: DrawerContent,\n Title: DrawerTitle,\n Description: DrawerDescription,\n CloseTrigger: DrawerCloseTrigger,\n Grabber: DrawerGrabber,\n Header: DrawerHeader,\n Body: DrawerBody,\n Footer: DrawerFooter,\n})\n"]}
1
+ {"version":3,"sources":["../src/components/drawer/drawer.tsx"],"names":["Ark"],"mappings":";;;;;;;;;;;;AAiDA,IAAM,kBAAA,GAAqB;AAAA,EACzB,KAAA,EAAO,OAAA;AAAA,EACP,GAAA,EAAK,KAAA;AAAA,EACL,GAAA,EAAK,IAAA;AAAA,EACL,MAAA,EAAQ;AACV,CAAA;AAGA,IAAM,sBAAA,GAAyB,cAA+B,KAAK,CAAA;AAEnE,IAAM,iBAAiB,GAAA,CAAI;AAAA,EACzB,8HAAA;AAAA,EACA;AACF,CAAC,CAAA;AAED,IAAM,gBAAA,GAAmB,GAAA;AAAA,EACvB,oFAAA;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,SAAA,EAAW;AAAA,QACT,KAAA,EAAO,6BAAA;AAAA,QACP,GAAA,EAAK,2BAAA;AAAA,QACL,GAAA,EAAK,6BAAA;AAAA,QACL,MAAA,EAAQ;AAAA;AACV,KACF;AAAA,IACA,eAAA,EAAiB,EAAE,SAAA,EAAW,KAAA;AAAM;AAExC,CAAA;AASA,IAAM,mBAAmB,CAAC;AAAA,EACxB,SAAA;AAAA,EACA,QAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA,EAAS,QAAA;AAAA,EACT,GAAG;AACL,CAAA,KAA6B;AAC3B,EAAA,MAAM,SAAA,GAAY,WAAW,sBAAsB,CAAA;AACnD,EAAA,MAAM,UAAA,GAAa,OAAuB,IAAI,CAAA;AAC9C,EAAA,uBACE,GAAA;AAAA,IAACA,QAAA,CAAI,UAAA;AAAA,IAAJ;AAAA,MACC,GAAA,EAAK,UAAA;AAAA,MACL,WAAW,EAAA,CAAG,gBAAA,CAAiB,EAAE,SAAA,EAAW,GAAG,SAAS,CAAA;AAAA,MACvD,GAAG,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AAA,EAAW,UAAA,EAAY,OAAQ,QAAA,EAAA,KAAA,EAAM,CAAA;AAAA,kBAEnD,eAAe,IAAA,oBACd,GAAA,CAAC,qBAAkB,SAAA,EAAW,UAAA,EAAY,aACvC,QAAA,EAAA,WAAA,EACH;AAAA,iBAAA,EAEJ,CAAA;AAAA,gBACC,eAAA,oBACC,GAAA;AAAA,kBAAC,kBAAA;AAAA,kBAAA;AAAA,oBACC,cAAY,YAAA,EAAc,iBAAA;AAAA,oBAC1B,WAAW,UAAA,EAAY;AAAA;AAAA;AACzB,eAAA,EAEJ,CAAA;AAAA,8BAEF,GAAA;AAAA,gBAAC,UAAA;AAAA,gBAAA;AAAA,kBACC,SAAA,EAAW,EAAA;AAAA,oBACT,CAAC,SAAA,IAAa,CAAC,WAAA,IAAe,0BAAA;AAAA,oBAC9B,0BAAA;AAAA,oBACA,UAAA,EAAY;AAAA,mBACd;AAAA,kBAEC;AAAA;AAAA;AACH;AAAA;AAAA,SACF,EACF;AAAA,OAAA,EACF;AAAA;AAAA,GACF;AAEJ,CAAA;AAEO,IAAM,MAAA,GAAS,MAAA,CAAO,MAAA,CAAO,eAAA,EAAiB;AAAA,EACnD,IAAA,EAAM,UAAA;AAAA,EACN,OAAA,EAAS,aAAA;AAAA,EACT,OAAA,EAAS,aAAA;AAAA,EACT,QAAA,EAAU,cAAA;AAAA,EACV,UAAA,EAAY,gBAAA;AAAA,EACZ,OAAA,EAAS,aAAA;AAAA,EACT,KAAA,EAAO,WAAA;AAAA,EACP,WAAA,EAAa,iBAAA;AAAA,EACb,YAAA,EAAc,kBAAA;AAAA,EACd,OAAA,EAAS,aAAA;AAAA,EACT,MAAA,EAAQ,YAAA;AAAA,EACR,IAAA,EAAM,UAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC","file":"chunk-YMVUQ2L7.js","sourcesContent":["\"use client\"\n\nimport { Drawer as Ark } from \"@ark-ui/react/drawer\"\nimport { Portal } from \"@ark-ui/react/portal\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport {\n type ComponentPropsWithoutRef,\n createContext,\n type ReactNode,\n useContext,\n useRef,\n} from \"react\"\nimport type { NoAsChild } from \"../../lib/as-child\"\nimport { cn } from \"../../lib/cn\"\nimport { OverlayContainerProvider } from \"../../lib/overlay-container\"\nimport { NestedLayer, useLayerGuard } from \"../../lib/overlay-layer\"\nimport { props } from \"../../lib/props\"\nimport type { Size } from \"../../lib/sizes\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { TEXT_COLOR_CLASSES } from \"../../lib/typography-size\"\nimport {\n createDialogParts,\n DIALOG_PADDING,\n type DialogCloseTriggerProps,\n type DialogIconSlot,\n type DialogIcons,\n DialogRootProviders,\n type DialogSectionProps,\n useDialogNameCheck,\n} from \"../overlays/dialog-parts\"\n\n/**\n * Drawer — edge-anchored panel on top of Ark UI's Drawer state machine. Ark\n * owns swipe-to-dismiss, snap points, focus-trap, scroll-lock and the\n * `data-state=\"open|closed\"` attribute; this wrapper adds an RTL-aware\n * `placement` (Ark has none). It is set once, on `Drawer.Root`, which derives\n * Ark's logical `swipeDirection` from it and shares it with the parts through\n * context; the positioner and content write it as `data-placement`. The slide\n * animation and the docked border are pure CSS keyed on `[data-placement]`\n * (see `theme.css`), so `start`/`end` flip automatically under `dir=\"rtl\"`.\n *\n * Mirrors `Modal`'s dual API: high-level `<Drawer open placement size … >` plus\n * low-level parts (`Drawer.Root`, `Drawer.Content`, …). Padding flows through\n * the `--drawer-px` CSS var.\n */\n\nexport type DrawerPlacement = \"start\" | \"end\" | \"top\" | \"bottom\"\n\n/** placement → Ark logical swipe axis (RTL handled by Ark for start/end). */\nconst PLACEMENT_TO_SWIPE = {\n start: \"start\",\n end: \"end\",\n top: \"up\",\n bottom: \"down\",\n} as const\n\n/** The root's placement, so the parts dock themselves without repeating it. */\nconst DrawerPlacementContext = createContext<DrawerPlacement>(\"end\")\n\nconst drawerBackdrop = cva([\n \"fixed inset-0 z-[calc(var(--modal-z,150)+var(--layer-index,0))] bg-black/50 backdrop-blur-lg pointer-events-auto select-none\",\n \"data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out\",\n])\n\nconst drawerPositioner = cva(\n \"fixed inset-0 z-[calc(var(--modal-z,150)+var(--layer-index,0))] flex overflow-clip\",\n {\n variants: {\n placement: {\n start: \"items-stretch justify-start\",\n end: \"items-stretch justify-end\",\n top: \"items-start justify-stretch\",\n bottom: \"items-end justify-stretch\",\n },\n },\n defaultVariants: { placement: \"end\" },\n },\n)\n\nexport type DrawerPositionerProps = NoAsChild<ComponentPropsWithoutRef<typeof Ark.Positioner>> &\n WithTestId\n\n/** Docks itself to the root's `placement`. Publishes itself as the portal\n * target for any overlay opened inside the drawer, so a Menu/Select/DatePicker\n * in a drawer body stays above the panel instead of behind it. See\n * `lib/overlay-container.tsx`. */\nconst DrawerPositioner = ({\n className,\n children,\n testId,\n asChild: _asChild,\n ...rest\n}: DrawerPositionerProps) => {\n const placement = useContext(DrawerPlacementContext)\n const positioner = useRef<HTMLDivElement>(null)\n return (\n <Ark.Positioner\n ref={positioner}\n className={cn(drawerPositioner({ placement }), className)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n data-placement={placement}\n >\n <OverlayContainerProvider value={positioner}>{children}</OverlayContainerProvider>\n </Ark.Positioner>\n )\n}\n\nconst drawerContent = cva(\n [\n \"relative flex flex-col overflow-hidden\",\n \"bg-brand-50 text-brand-950 shadow-2xl\",\n \"dark:bg-brand-950 dark:text-white\",\n \"focus:outline-none\",\n // border on the docked edge only — keyed by data-placement in theme.css\n \"data-[placement=start]:border-e data-[placement=end]:border-s\",\n \"data-[placement=top]:border-b data-[placement=bottom]:border-t\",\n \"border-brand-900/20 dark:border-white/15\",\n \"data-[state=open]:animate-drawer-in data-[state=closed]:animate-drawer-out\",\n ],\n {\n variants: {\n // Internal: Content reads it from the root's context.\n placement: {\n start: \"h-full max-w-[90vw]\",\n end: \"h-full max-w-[90vw]\",\n top: \"w-full max-h-[90dvh]\",\n bottom: \"w-full max-h-[90dvh]\",\n },\n // Width for inline placements, height for block ones: see compoundVariants.\n size: { xs: \"\", sm: \"\", md: \"\", lg: \"\", xl: \"\" },\n // Only the two corners away from the docked edge round: see compoundVariants.\n radius: { none: \"\", sm: \"\", md: \"\", lg: \"\", xl: \"\" },\n },\n compoundVariants: [\n { placement: [\"start\", \"end\"], size: \"xs\", class: \"w-[18rem]\" },\n { placement: [\"start\", \"end\"], size: \"sm\", class: \"w-[22rem]\" },\n { placement: [\"start\", \"end\"], size: \"md\", class: \"w-[28rem]\" },\n { placement: [\"start\", \"end\"], size: \"lg\", class: \"w-[34rem]\" },\n { placement: [\"start\", \"end\"], size: \"xl\", class: \"w-[42rem]\" },\n { placement: [\"top\", \"bottom\"], size: \"xs\", class: \"h-[30dvh]\" },\n { placement: [\"top\", \"bottom\"], size: \"sm\", class: \"h-[40dvh]\" },\n { placement: [\"top\", \"bottom\"], size: \"md\", class: \"h-[55dvh]\" },\n { placement: [\"top\", \"bottom\"], size: \"lg\", class: \"h-[70dvh]\" },\n { placement: [\"top\", \"bottom\"], size: \"xl\", class: \"h-[85dvh]\" },\n // Logical corners, so `start`/`end` mirror under RTL with the panel.\n { placement: \"start\", radius: \"sm\", class: \"rounded-e-sm\" },\n { placement: \"start\", radius: \"md\", class: \"rounded-e-md\" },\n { placement: \"start\", radius: \"lg\", class: \"rounded-e-xl\" },\n { placement: \"start\", radius: \"xl\", class: \"rounded-e-2xl\" },\n { placement: \"end\", radius: \"sm\", class: \"rounded-s-sm\" },\n { placement: \"end\", radius: \"md\", class: \"rounded-s-md\" },\n { placement: \"end\", radius: \"lg\", class: \"rounded-s-xl\" },\n { placement: \"end\", radius: \"xl\", class: \"rounded-s-2xl\" },\n { placement: \"top\", radius: \"sm\", class: \"rounded-b-sm\" },\n { placement: \"top\", radius: \"md\", class: \"rounded-b-md\" },\n { placement: \"top\", radius: \"lg\", class: \"rounded-b-xl\" },\n { placement: \"top\", radius: \"xl\", class: \"rounded-b-2xl\" },\n { placement: \"bottom\", radius: \"sm\", class: \"rounded-t-sm\" },\n { placement: \"bottom\", radius: \"md\", class: \"rounded-t-md\" },\n { placement: \"bottom\", radius: \"lg\", class: \"rounded-t-xl\" },\n { placement: \"bottom\", radius: \"xl\", class: \"rounded-t-2xl\" },\n ],\n defaultVariants: { placement: \"end\", size: \"md\", radius: \"none\" },\n },\n)\n\n// ---------------------------------------------------------------------------\n// Low-level parts\n// ---------------------------------------------------------------------------\n\nexport type DrawerIconSlot = DialogIconSlot\nexport type DrawerIcons = DialogIcons\n\nexport type DrawerRootProps = ComponentPropsWithoutRef<typeof Ark.Root> & {\n /** RTL-aware docking edge, shared with `Drawer.Positioner` and `Drawer.Content`. Also\n * sets Ark's `swipeDirection`, unless you pass one. @default \"end\" */\n placement?: DrawerPlacement\n /** Replaces the default icons: `close`. `Drawer.CloseTrigger`'s `children` win over it. */\n icons?: DrawerIcons\n}\n\n/** Ark's root, plus the nested-layer guard: while a picker opened inside the\n * drawer is open, an outside click closes the picker only, not the drawer\n * under it. It is also a layer of its own while open, so a hotkey on the page\n * (or in an enclosing overlay) yields to it. See `lib/overlay-layer.tsx`. */\nconst DrawerRoot = ({\n placement = \"end\",\n swipeDirection,\n onPointerDownOutside,\n icons,\n children,\n ...rest\n}: DrawerRootProps) => {\n const guard = useLayerGuard(onPointerDownOutside)\n return (\n <Ark.Root\n swipeDirection={swipeDirection ?? PLACEMENT_TO_SWIPE[placement]}\n onPointerDownOutside={guard.onPointerDownOutside}\n {...rest}\n >\n {/* A layer itself, registered with whatever it opened from (the page,\n or an enclosing overlay), so what's under it knows it's covered. */}\n <Ark.Context>{(api) => <NestedLayer open={api.open} />}</Ark.Context>\n <DrawerPlacementContext value={placement}>\n <DialogRootProviders icons={icons} layers={guard.layers}>\n {children}\n </DialogRootProviders>\n </DrawerPlacementContext>\n </Ark.Root>\n )\n}\nconst DrawerTrigger = Ark.Trigger\nconst DrawerContext = Ark.Context\n\nexport type DrawerBackdropProps = ComponentPropsWithoutRef<typeof Ark.Backdrop> & WithTestId\n\nconst DrawerBackdrop = ({ className, testId, ...rest }: DrawerBackdropProps) => (\n <Ark.Backdrop\n className={cn(drawerBackdrop(), className)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n />\n)\n\nexport type DrawerTitleProps = ComponentPropsWithoutRef<typeof Ark.Title> & WithTestId\n\nconst DrawerTitle = ({ className, testId, ...rest }: DrawerTitleProps) => (\n <Ark.Title\n className={cn(\"text-xl font-semibold leading-tight\", className)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n />\n)\n\nexport type DrawerDescriptionProps = ComponentPropsWithoutRef<typeof Ark.Description> & WithTestId\n\nconst DrawerDescription = ({ className, testId, ...rest }: DrawerDescriptionProps) => (\n <Ark.Description\n className={cn(\"text-sm\", TEXT_COLOR_CLASSES.muted, className)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n />\n)\n\nexport type DrawerSize = NonNullable<VariantProps<typeof drawerContent>[\"size\"]>\nexport type DrawerRadius = NonNullable<VariantProps<typeof drawerContent>[\"radius\"]>\n\nexport type DrawerContentProps = ComponentPropsWithoutRef<typeof Ark.Content> &\n WithTestId & {\n /** Width for `start`/`end` drawers, height for `top`/`bottom` ones. @default \"md\" */\n size?: DrawerSize\n /** Rounds the two corners away from the docked edge. @default \"none\" */\n radius?: DrawerRadius\n }\n\n/** The panel. It sizes and rounds itself for the root's `placement`, and writes\n * it as `data-placement`, which the slide animation and the docked border key on. */\nconst DrawerContent = ({ className, size, radius, testId, ...rest }: DrawerContentProps) => {\n const placement = useContext(DrawerPlacementContext)\n const nameCheck = useDialogNameCheck(\"Drawer\")\n return (\n <Ark.Content\n ref={nameCheck}\n className={cn(drawerContent({ placement, size, radius }), className)}\n {...props({ \"data-testid\": testId })}\n {...rest}\n data-placement={placement}\n />\n )\n}\n\nexport type DrawerCloseTriggerProps = DialogCloseTriggerProps\nexport type DrawerHeaderProps = DialogSectionProps\nexport type DrawerBodyProps = DialogSectionProps\nexport type DrawerFooterProps = DialogSectionProps\n\nconst {\n CloseTrigger: DrawerCloseTrigger,\n Header: DrawerHeader,\n Body: DrawerBody,\n Footer: DrawerFooter,\n} = createDialogParts(\"drawer\", Ark.CloseTrigger)\n\nexport type DrawerGrabberProps = NoAsChild<ComponentPropsWithoutRef<typeof Ark.Grabber>> &\n WithTestId\n\nconst DrawerGrabber = ({ className, testId, asChild: _asChild, ...rest }: DrawerGrabberProps) => (\n <Ark.Grabber\n className={cn(\n \"flex shrink-0 cursor-grab touch-none items-center justify-center py-2\",\n className,\n )}\n {...props({ \"data-testid\": testId })}\n {...rest}\n >\n <Ark.GrabberIndicator className=\"h-1.5 w-20 rounded-full bg-brand-900/10 dark:bg-white/16\" />\n </Ark.Grabber>\n)\n\n// ---------------------------------------------------------------------------\n// High-level props-driven Drawer\n// ---------------------------------------------------------------------------\n\ntype ArkRootProps = ComponentPropsWithoutRef<typeof Ark.Root>\n\nexport type DrawerClassNames = Partial<\n Record<\n | \"backdrop\"\n | \"positioner\"\n | \"content\"\n | \"header\"\n | \"title\"\n | \"description\"\n | \"body\"\n | \"grabber\"\n | \"closeButton\",\n string\n >\n>\n\nexport type DrawerProps = Omit<\n ArkRootProps,\n \"open\" | \"defaultOpen\" | \"onOpenChange\" | \"children\" | \"swipeDirection\" | \"role\"\n> &\n WithTestId & {\n /** Controlled open state. */\n open?: boolean\n /** Uncontrolled initial open state. */\n defaultOpen?: boolean\n /** Fires with the next open state. Flattened from Ark's `{ open }`. */\n onOpenChange?: (open: boolean) => void\n /** Fires on close (any source) — Escape, backdrop click, swipe, or a controlled `onOpenChange`. */\n onClose?: () => void\n /** RTL-aware docking edge. @default \"end\" */\n placement?: DrawerPlacement\n /** Width for `start`/`end` drawers, height for `top`/`bottom` ones. @default \"md\" */\n size?: DrawerSize\n /** Rounds the two corners away from the docked edge. @default \"none\" */\n radius?: DrawerRadius\n /** Header title; also the drawer's accessible name. */\n title?: ReactNode\n description?: ReactNode\n /** Accessible name for a drawer without a `title` (a navigation panel, say). */\n \"aria-label\"?: string\n /** Id of an element inside the drawer that names it, when there is no `title`. */\n \"aria-labelledby\"?: string\n /** Render the default close button in the header. @default true */\n withCloseButton?: boolean\n /** Show the drag grabber handle. @default false */\n withGrabber?: boolean\n /**\n * Render the dimming backdrop. Set `false` when an ancestor (e.g. the modals\n * manager) draws a single shared backdrop for the whole overlay stack.\n * @default true\n */\n withBackdrop?: boolean\n /** Inner padding token; sets `--drawer-px`. @default \"md\" */\n padding?: Size\n closeOnEscape?: boolean\n /** Close on a click outside the drawer. @default true, false for an `alertdialog` */\n closeOnInteractOutside?: boolean\n /** Use `alertdialog` semantics (confirm flows). @default \"dialog\" */\n role?: \"dialog\" | \"alertdialog\"\n /** Fires after the exit animation completes — the manager unmounts on this. */\n onExitComplete?: () => void\n /** Portal target. Defaults to `document.body`. */\n container?: HTMLElement | null\n children?: ReactNode\n className?: string\n classNames?: DrawerClassNames\n /** Overrides the default close button's accessible name (`closeTriggerLabel`, default\n * `\"Close\"`). The compound `DrawerCloseTrigger` part takes a plain `aria-label` instead. */\n translations?: DrawerTranslations\n /** Replaces the default icons: `close`, the header's close button. */\n icons?: DrawerIcons\n }\n\n/** The ready-made drawer's wording — `closeTriggerLabel` follows Ark's naming for the\n * same control. */\nexport type DrawerTranslations = { closeTriggerLabel?: string }\n\nconst DrawerComponent = ({\n open,\n defaultOpen,\n onOpenChange,\n onClose,\n placement = \"end\",\n size,\n radius,\n title,\n description,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledby,\n withCloseButton = true,\n withGrabber = false,\n withBackdrop = true,\n padding = \"md\",\n closeOnEscape,\n closeOnInteractOutside,\n role,\n onExitComplete,\n container,\n children,\n className,\n classNames,\n testId,\n translations,\n icons,\n ...rest\n}: DrawerProps) => {\n const hasHeader = title != null || description != null || withCloseButton\n\n return (\n <DrawerRoot\n open={open}\n defaultOpen={defaultOpen}\n onOpenChange={({ open: next }) => {\n onOpenChange?.(next)\n if (!next) onClose?.()\n }}\n placement={placement}\n closeOnEscape={closeOnEscape}\n // Spelled out to match Modal, whose Ark dialog derives this default from\n // `modal` (so the overlays manager's `withBackdrop={false}` would stop\n // outside clicks there). Ark's drawer defaults it to `true` for every role\n // instead, so here the one behaviour this changes is the `alertdialog`:\n // it stays sticky, as on Modal, unless the caller opts in explicitly.\n closeOnInteractOutside={closeOnInteractOutside ?? role !== \"alertdialog\"}\n role={role}\n // Unmount the whole content tree (incl. the `fixed inset-0` positioner)\n // on close — otherwise the positioner lingers as a transparent overlay\n // that swallows page clicks. `lazyMount` keeps it out of the DOM until\n // first open.\n lazyMount\n unmountOnExit\n modal={withBackdrop}\n onExitComplete={onExitComplete}\n icons={icons}\n {...rest}\n >\n <Portal container={container ? { current: container } : undefined}>\n {withBackdrop && <DrawerBackdrop className={classNames?.backdrop} />}\n <DrawerPositioner className={classNames?.positioner}>\n <DrawerContent\n size={size}\n radius={radius}\n style={{ [\"--drawer-px\" as string]: DIALOG_PADDING[padding] }}\n className={cn(className, classNames?.content)}\n testId={testId}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n >\n {withGrabber && <DrawerGrabber className={classNames?.grabber} />}\n {hasHeader && (\n <DrawerHeader className={classNames?.header}>\n <div className=\"flex flex-col gap-1\">\n {title != null && (\n <DrawerTitle className={classNames?.title}>{title}</DrawerTitle>\n )}\n {description != null && (\n <DrawerDescription className={classNames?.description}>\n {description}\n </DrawerDescription>\n )}\n </div>\n {withCloseButton && (\n <DrawerCloseTrigger\n aria-label={translations?.closeTriggerLabel}\n className={classNames?.closeButton}\n />\n )}\n </DrawerHeader>\n )}\n <DrawerBody\n className={cn(\n !hasHeader && !withGrabber && \"pt-(--drawer-px,1.25rem)\",\n \"pb-(--drawer-px,1.25rem)\",\n classNames?.body,\n )}\n >\n {children}\n </DrawerBody>\n </DrawerContent>\n </DrawerPositioner>\n </Portal>\n </DrawerRoot>\n )\n}\n\nexport const Drawer = Object.assign(DrawerComponent, {\n Root: DrawerRoot,\n Trigger: DrawerTrigger,\n Context: DrawerContext,\n Backdrop: DrawerBackdrop,\n Positioner: DrawerPositioner,\n Content: DrawerContent,\n Title: DrawerTitle,\n Description: DrawerDescription,\n CloseTrigger: DrawerCloseTrigger,\n Grabber: DrawerGrabber,\n Header: DrawerHeader,\n Body: DrawerBody,\n Footer: DrawerFooter,\n})\n"]}
@@ -12,7 +12,13 @@ var badgeVariants = cva(
12
12
  "inline-flex items-center",
13
13
  "whitespace-nowrap select-none",
14
14
  "font-sans font-medium",
15
- "border border-transparent",
15
+ // Figma strokes every badge at 0.5px, inside the box. A CSS border cannot
16
+ // draw that: Chrome rounds any border-width under 1px up to 1px. An inset
17
+ // ring (box-shadow) is not rounded — one device pixel on a 2x screen, a
18
+ // half-strength pixel at 1x, as Figma antialiases it — and takes no layout.
19
+ // Forced colours drop every box-shadow, so there a real 1px border in the
20
+ // system text colour keeps the chip's edge.
21
+ "inset-ring-[0.5px] inset-ring-transparent forced-colors:border forced-colors:border-[CanvasText]",
16
22
  "[&_svg]:shrink-0 [&_svg]:pointer-events-none",
17
23
  // Inert on the default non-focusable <span> — `:focus-visible` never
18
24
  // matches it — and lights up as soon as `asChild` renders Badge onto a
@@ -38,16 +44,16 @@ var badgeVariants = cva(
38
44
  light: [
39
45
  "bg-black/8 dark:bg-white/16",
40
46
  TEXT_COLOR_CLASSES.primary,
41
- "border-black/8 dark:border-white/15",
42
- "data-color:bg-(--c-solid)/30 data-color:text-(--c-text) data-color:border-(--c-solid)",
47
+ "inset-ring-black/8 dark:inset-ring-white/15",
48
+ "data-color:bg-(--c-solid)/30 data-color:text-(--c-text) data-color:inset-ring-(--c-solid)",
43
49
  "data-[color=neutral]:bg-(--c-soft)"
44
50
  ],
45
- outline: "bg-transparent text-(--c-text) border-(--c-solid)",
51
+ outline: "bg-transparent text-(--c-text) inset-ring-(--c-solid)",
46
52
  subtle: "bg-transparent text-(--c-text)",
47
53
  // from-*/to-* are the CSS defaults for --tw-gradient-from/to and the
48
54
  // --tw-gradient-stops composition chain. Props only override the individual
49
55
  // vars they provide — the chain resolves them lazily without JS defaults.
50
- gradient: "bg-origin-border bg-linear-to-r from-purple-300 to-pink-400 text-black border-white/20"
56
+ gradient: "bg-linear-to-r from-purple-300 to-pink-400 text-black inset-ring-white/20"
51
57
  },
52
58
  // Figma (node 14950-143827) defines sm/md/lg; xs/xl extrapolate one
53
59
  // step past either end. Radius follows Figma on every step
@@ -100,5 +106,5 @@ var Badge = ({
100
106
  };
101
107
 
102
108
  export { Badge };
103
- //# sourceMappingURL=chunk-F342ZT7O.js.map
104
- //# sourceMappingURL=chunk-F342ZT7O.js.map
109
+ //# sourceMappingURL=chunk-ZVECQBGG.js.map
110
+ //# sourceMappingURL=chunk-ZVECQBGG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/badge/badge.tsx"],"names":[],"mappings":";;;;;;;;;AAsCA,IAAM,aAAA,GAAgB,GAAA;AAAA,EACpB;AAAA,IACE,0BAAA;AAAA,IACA,+BAAA;AAAA,IACA,uBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,kGAAA;AAAA,IACA,8CAAA;AAAA;AAAA;AAAA;AAAA,IAIA,WAAA;AAAY,GACd;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,OAAA,EAAS;AAAA,QACP,MAAA,EAAQ,oCAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAaR,KAAA,EAAO;AAAA,UACL,6BAAA;AAAA,UACA,kBAAA,CAAmB,OAAA;AAAA,UACnB,6CAAA;AAAA,UACA,2FAAA;AAAA,UACA;AAAA,SACF;AAAA,QACA,OAAA,EAAS,uDAAA;AAAA,QACT,MAAA,EAAQ,gCAAA;AAAA;AAAA;AAAA;AAAA,QAIR,QAAA,EAAU;AAAA,OACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAUA,IAAA,EAAM;AAAA,QACJ,EAAA,EAAI,+EAAA;AAAA,QACJ,EAAA,EAAI,8DAAA;AAAA,QACJ,EAAA,EAAI,6DAAA;AAAA,QACJ,EAAA,EAAI,2DAAA;AAAA,QACJ,EAAA,EAAI;AAAA;AACN,KACF;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,OAAA,EAAS,OAAA;AAAA,MACT,IAAA,EAAM;AAAA;AACR;AAEJ,CAAA;AAqBO,IAAM,QAAQ,CAAC;AAAA,EACpB,SAAA;AAAA,EACA,OAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,QAAA;AAAA,EACA,KAAA;AAAA,EACA,MAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAkB;AAChB,EAAA,MAAM,aAAa,OAAA,KAAY,UAAA;AAE/B,EAAA,uBACE,GAAA;AAAA,IAAC,GAAA,CAAI,IAAA;AAAA,IAAJ;AAAA,MACC,YAAA,EAAY,CAAC,UAAA,GAAa,KAAA,GAAQ,MAAA;AAAA,MAClC,KAAA,EAAO,UAAA,IAAc,QAAA,GAAW,EAAE,GAAG,kBAAkB,QAAQ,CAAA,EAAG,GAAG,KAAA,EAAM,GAAI,KAAA;AAAA,MAC/E,SAAA,EAAW,EAAA;AAAA,QACT,aAAA,CAAc,EAAE,OAAA,EAAS,IAAA,EAAM,CAAA;AAAA,QAC/B,UAAA,IAAc,QAAA,EAAU,GAAA,IAAO,kBAAA,CAAmB,SAAS,GAAG,CAAA;AAAA,QAC9D;AAAA,OACF;AAAA,MACC,GAAG,KAAA,CAAM,EAAE,aAAA,EAAe,QAAQ,CAAA;AAAA,MAClC,GAAG;AAAA;AAAA,GACN;AAEJ","file":"chunk-ZVECQBGG.js","sourcesContent":["import { ark, type HTMLArkProps } from \"@ark-ui/react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"../../lib/cn\"\nimport type { Color } from \"../../lib/colors\"\nimport { focusStyles } from \"../../lib/focus-styles\"\nimport {\n buildGradientVars,\n GRADIENT_DIR_CLASS,\n type GradientDir,\n type GradientProps,\n} from \"../../lib/gradient\"\nimport { props } from \"../../lib/props\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { TEXT_COLOR_CLASSES } from \"../../lib/typography-size\"\n\n/**\n * Badge — compact inline label for a status, a count or a tag.\n *\n * Pure React Server Component. It borrows Button's (variant × color) system so\n * a chip and an action speak the same accent language, but it is a display\n * element: no hover treatment, no click handling, and it renders a `<span>`.\n *\n * `asChild` (from `HTMLArkProps`) renders the single child as the root with\n * Badge's styling merged in, which is how a badge becomes a real control —\n * either standalone or collapsed into another component's trigger:\n *\n * ```tsx\n * <HoverCard.Trigger asChild>\n * <Badge asChild variant=\"light\" aria-label=\"12 campuses\">\n * <button type=\"button\">12</button>\n * </Badge>\n * </HoverCard.Trigger>\n * ```\n *\n * That yields one DOM node that *is* the badge, keyboard-reachable, carrying\n * the kit's focus ring (`focusStyles`) and Badge's own radius — the caller\n * supplies no `className` for any of it.\n */\nconst badgeVariants = cva(\n [\n \"inline-flex items-center\",\n \"whitespace-nowrap select-none\",\n \"font-sans font-medium\",\n // Figma strokes every badge at 0.5px, inside the box. A CSS border cannot\n // draw that: Chrome rounds any border-width under 1px up to 1px. An inset\n // ring (box-shadow) is not rounded — one device pixel on a 2x screen, a\n // half-strength pixel at 1x, as Figma antialiases it — and takes no layout.\n // Forced colours drop every box-shadow, so there a real 1px border in the\n // system text colour keeps the chip's edge.\n \"inset-ring-[0.5px] inset-ring-transparent forced-colors:border forced-colors:border-[CanvasText]\",\n \"[&_svg]:shrink-0 [&_svg]:pointer-events-none\",\n // Inert on the default non-focusable <span> — `:focus-visible` never\n // matches it — and lights up as soon as `asChild` renders Badge onto a\n // real <button>/<a>, which is the composition the docs recommend.\n focusStyles(),\n ],\n {\n variants: {\n variant: {\n filled: \"bg-(--c-solid) text-(--c-on-solid)\",\n // Neutral by default; a `data-color` tint overrides it. Those rules\n // compile to `&[data-color]` (specificity 0,2,0), which beats both\n // the plain and the `dark:` neutral classes below (0,1,0 — `dark:`\n // is a `:where()` variant) regardless of source order.\n //\n // Figma (node 14950-143827) tints a hued badge with its solid shade\n // at 30% and borders it with the solid shade itself. `--c-soft` is\n // the wrong base for that: it is the -50/-950 end of the scale, so\n // at any opacity it fades into the page in both themes. Neutral is\n // the exception — Figma fills it with the translucent overlay that\n // neutral's own `--c-soft` already is (white/16 dark, black/16\n // light), so it takes that slot as-is.\n light: [\n \"bg-black/8 dark:bg-white/16\",\n TEXT_COLOR_CLASSES.primary,\n \"inset-ring-black/8 dark:inset-ring-white/15\",\n \"data-color:bg-(--c-solid)/30 data-color:text-(--c-text) data-color:inset-ring-(--c-solid)\",\n \"data-[color=neutral]:bg-(--c-soft)\",\n ],\n outline: \"bg-transparent text-(--c-text) inset-ring-(--c-solid)\",\n subtle: \"bg-transparent text-(--c-text)\",\n // from-*/to-* are the CSS defaults for --tw-gradient-from/to and the\n // --tw-gradient-stops composition chain. Props only override the individual\n // vars they provide — the chain resolves them lazily without JS defaults.\n gradient: \"bg-linear-to-r from-purple-300 to-pink-400 text-black inset-ring-white/20\",\n },\n // Figma (node 14950-143827) defines sm/md/lg; xs/xl extrapolate one\n // step past either end. Radius follows Figma on every step\n // (`rounded-badge`, 4px), as do md's height and padding. The rest of\n // the scale departs from Figma on purpose (3b408c4c), so there the\n // design catches up to the kit, not the reverse: sm is 12px text, 3px gap, 22px tall\n // (Figma 10/4/20); md has a 6px gap (4); lg is 16px text, 8px gap,\n // 8px padding (14/4/10). Icon size ([&_svg]:size-*) isn't in the\n // Figma spec — scaled by eye to each step, same convention as\n // Button's own size variant.\n size: {\n xs: \"min-h-5 px-0.5 text-[10px] leading-2.5 gap-0.5 rounded-badge [&_svg]:size-2.5\",\n sm: \"min-h-5.5 px-1 text-xs gap-0.75 rounded-badge [&_svg]:size-3\",\n md: \"min-h-6 px-1.5 text-sm gap-1.5 rounded-badge [&_svg]:size-3\",\n lg: \"min-h-7 px-2 text-md gap-2 rounded-badge [&_svg]:size-3.5\",\n xl: \"min-h-8 px-2.5 text-lg gap-3.5 rounded-badge [&_svg]:size-4\",\n },\n },\n defaultVariants: {\n variant: \"light\",\n size: \"md\",\n },\n },\n)\n\nexport type BadgeVariant = NonNullable<VariantProps<typeof badgeVariants>[\"variant\"]>\nexport type BadgeSize = NonNullable<VariantProps<typeof badgeVariants>[\"size\"]>\n\nexport type { GradientDir, GradientProps }\n\nexport type BadgeProps = Omit<HTMLArkProps<\"span\">, \"color\"> &\n VariantProps<typeof badgeVariants> &\n WithTestId & {\n /** Accent palette. Re-exported as `Color` from `@42/ui-react`. */\n color?: Color\n /**\n * Gradient config. Only applied when `variant=\"gradient\"`.\n * Mirrors Tailwind's from-* / to-* / via-* utilities: sets the individual\n * CSS vars so the existing --tw-gradient-stops chain picks them up.\n * Unset fields fall back to the CVA defaults (purple-300 → pink-400, to-r).\n */\n gradient?: GradientProps\n }\n\nexport const Badge = ({\n className,\n variant,\n size,\n color,\n gradient,\n style,\n testId,\n ...rest\n}: BadgeProps) => {\n const isGradient = variant === \"gradient\"\n\n return (\n <ark.span\n data-color={!isGradient ? color : undefined}\n style={isGradient && gradient ? { ...buildGradientVars(gradient), ...style } : style}\n className={cn(\n badgeVariants({ variant, size }),\n isGradient && gradient?.dir && GRADIENT_DIR_CLASS[gradient.dir],\n className,\n )}\n {...props({ \"data-testid\": testId })}\n {...rest}\n />\n )\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"action-icon.d.ts","sourceRoot":"","sources":["../../../src/components/action-icon/action-icon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAG7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAGnD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH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AO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;AACzF,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAA;AAE7F,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,GACjE,YAAY,CAAC,OAAO,kBAAkB,CAAC,GACvC,UAAU,GAAG;IACX,kEAAkE;IAClE,KAAK,CAAC,EAAE,KAAK,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAQH,eAAO,MAAM,UAAU,sHAcpB,eAAe,gCAgCjB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- export { ActionIcon } from '../../chunk-BE2LWUHY.js';
2
+ export { ActionIcon } from '../../chunk-BMEJBY6H.js';
3
3
  import '../../chunk-D2QIPQ74.js';
4
4
  import '../../chunk-R5LYFTHA.js';
5
5
  import '../../chunk-WYCMIIRR.js';
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { NOTIFICATION_DEFAULT_TRANSLATIONS, CloseTrigger, ActionTrigger, Description, Title, Icon, TOAST_STATUS } from '../../chunk-LKFHUDEW.js';
3
- import { devWarn } from '../../chunk-6N6J2DOE.js';
3
+ import { devWarn } from '../../chunk-LIZWCWED.js';
4
4
  import '../../chunk-PMUCGFY5.js';
5
5
  import '../../chunk-BUIHQJGE.js';
6
6
  import '../../chunk-6YNLRQ25.js';
@@ -1,4 +1,4 @@
1
- import { warnRenamedProp } from '../../chunk-6N6J2DOE.js';
1
+ import { warnRenamedProp } from '../../chunk-LIZWCWED.js';
2
2
  import { props } from '../../chunk-WYCMIIRR.js';
3
3
  import { cn } from '../../chunk-4ASNIDV7.js';
4
4
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -51,52 +51,40 @@ var BRIGHT_STARS = [
51
51
  { x: "93%", y: "90%", sparkle: false, delay: "-2.5s", duration: "7s" }
52
52
  ];
53
53
  var SPARKLE = "M0 -6Q0 0 6 0Q0 0 0 6Q0 0 -6 0Q0 0 0 -6Z";
54
- var BLEED = 15;
55
- var SPAN = 100 + 2 * BLEED;
56
- var inLayer = (viewport, offset = 0) => `${round((viewport + offset) / SPAN * 100)}%`;
57
- var cloud = ({ rx, ry, x, y }, { color, strength }) => `radial-gradient(ellipse ${inLayer(rx)} ${inLayer(ry)} at ${inLayer(x, BLEED)} ${inLayer(y, BLEED)}, color-mix(in oklab, var(${color}) ${strength}%, transparent), color-mix(in oklab, var(${color}) ${strength * 0.45}%, transparent) 45%, transparent 100%)`;
54
+ var cloud = ({ rx, ry, x, y }, { color, strength }) => `radial-gradient(ellipse ${rx}% ${ry}% at ${x}% ${y}%, color-mix(in oklab, var(${color}) ${strength}%, transparent), color-mix(in oklab, var(${color}) ${strength * 0.45}%, transparent) 45%, transparent 100%)`;
58
55
  var CLOUDS = [
59
56
  {
60
- at: { rx: 42, ry: 34, x: 30, y: 64 },
61
- dark: { color: "--color-purple-400", strength: 9 },
62
- light: { color: "--color-purple-200", strength: 14 },
63
- drift: { x: "6vw", y: "-4vh", scale: 1.12, fade: 0.7, duration: "70s", delay: "-20s" }
57
+ // Moved down-left, narrowed and brightened (9 → 17) against Figma's « Background / Cosmos »,
58
+ // whose lower-left glows violet behind the first column (2026-10-29).
59
+ at: { rx: 35, ry: 34, x: 23, y: 72 },
60
+ dark: { color: "--color-purple-400", strength: 17 },
61
+ light: { color: "--color-purple-200", strength: 14 }
64
62
  },
65
63
  {
66
64
  at: { rx: 60, ry: 38, x: 42, y: 104 },
67
65
  dark: { color: "--color-purple-800", strength: 20 },
68
- light: { color: "--color-purple-200", strength: 26 },
69
- drift: { x: "-8vw", y: "-3vh", scale: 1.08, fade: 0.85, duration: "95s", delay: "-50s" }
66
+ light: { color: "--color-purple-200", strength: 26 }
70
67
  },
71
68
  {
72
69
  at: { rx: 40, ry: 34, x: 92, y: 4 },
73
70
  dark: { color: "--color-purple-800", strength: 22 },
74
- light: { color: "--color-purple-200", strength: 28 },
75
- drift: { x: "-5vw", y: "5vh", scale: 1.15, fade: 0.8, duration: "85s", delay: "-10s" }
71
+ light: { color: "--color-purple-200", strength: 28 }
76
72
  },
77
73
  {
78
74
  at: { rx: 46, ry: 40, x: 24, y: 20 },
79
75
  dark: { color: "--color-brand-700", strength: 18 },
80
- light: { color: "--color-brand-200", strength: 24 },
81
- drift: { x: "7vw", y: "4vh", scale: 1.1, fade: 0.85, duration: "110s", delay: "-70s" }
76
+ light: { color: "--color-brand-200", strength: 24 }
82
77
  },
83
78
  {
84
79
  at: { rx: 36, ry: 30, x: 4, y: 92 },
85
80
  dark: { color: "--color-pink-800", strength: 10 },
86
- light: { color: "--color-pink-200", strength: 16 },
87
- drift: { x: "5vw", y: "-6vh", scale: 1.2, fade: 0.6, duration: "75s", delay: "-35s" }
81
+ light: { color: "--color-pink-200", strength: 16 }
88
82
  }
89
83
  ];
90
- var cloudStyle = ({ at, dark, light, drift }) => ({
84
+ var cloudStyle = ({ at, dark, light }) => ({
91
85
  "--nebula-light": cloud(at, light),
92
86
  "--nebula-dark": cloud(at, dark),
93
- "--drift-x": drift.x,
94
- "--drift-y": drift.y,
95
- "--drift-scale": drift.scale,
96
- "--drift-fade": drift.fade,
97
- inset: `-${BLEED}%`,
98
- animationDuration: drift.duration,
99
- animationDelay: drift.delay
87
+ inset: 0
100
88
  });
101
89
  var METEORS = [
102
90
  { x: "72%", y: "8%", angle: "152deg", duration: "37s", delay: "9s" },
@@ -115,7 +103,7 @@ var Starfield = ({
115
103
  "aria-hidden": "true",
116
104
  className: cn(
117
105
  LAYER,
118
- "[background-image:var(--nebula-light)] motion-safe:animate-ambient-nebula-drift dark:[background-image:var(--nebula-dark)]",
106
+ "[background-image:var(--nebula-light)] dark:[background-image:var(--nebula-dark)]",
119
107
  classNames?.nebula
120
108
  ),
121
109
  style: cloudStyle(c),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/ambient-background/starfield.tsx","../../../src/components/ambient-background/ambient-background.tsx"],"names":["jsxs","Fragment","jsx"],"mappings":";;;;;AAoBA,IAAM,IAAA,GAAO,CAAC,IAAA,KAAiB,MAAM;AACnC,EAAA,IAAA,GAAQ,OAAO,UAAA,GAAc,CAAA;AAC7B,EAAA,IAAI,IAAI,IAAA,CAAK,IAAA,CAAK,OAAQ,IAAA,KAAS,EAAA,EAAK,IAAI,IAAI,CAAA;AAChD,EAAA,CAAA,GAAK,CAAA,GAAI,KAAK,IAAA,CAAK,CAAA,GAAK,MAAM,CAAA,EAAI,EAAA,GAAK,CAAC,CAAA,GAAK,CAAA;AAC7C,EAAA,OAAA,CAAA,CAAS,CAAA,GAAK,CAAA,KAAM,EAAA,MAAS,CAAA,IAAK,UAAA;AACpC,CAAA;AAEA,IAAM,QAAQ,CAAC,CAAA,KAAc,KAAK,KAAA,CAAM,CAAA,GAAI,GAAG,CAAA,GAAI,GAAA;AAMnD,IAAM,KAAA,GAAQ;AAAA,EACZ,oCAAA;AAAA,EACA,sCAAA;AAAA,EACA;AACF,CAAA;AAIA,IAAM,QAAA,GAAW,CAAC,CAAA,KAAqB,CAAA,GAAI,OAAO,KAAA,CAAM,CAAC,CAAA,GAAI,CAAA,GAAI,IAAA,GAAO,KAAA,CAAM,CAAC,CAAA,GAAI,MAAM,CAAC,CAAA;AAO1F,IAAM,SAAA,GAAY;AAAA,EAChB,EAAE,QAAA,EAAU,KAAA,EAAO,KAAA,EAAO,KAAA,EAAM;AAAA,EAChC,EAAE,QAAA,EAAU,KAAA,EAAO,KAAA,EAAO,MAAA,EAAO;AAAA,EACjC,EAAE,QAAA,EAAU,KAAA,EAAO,KAAA,EAAO,KAAA;AAC5B,CAAA;AAIA,IAAM,OAAA,GAAU,CAAC,IAAA,EAAc,IAAA,EAAc,KAAA,KAAkB;AAC7D,EAAA,MAAM,MAAA,GAAS,KAAK,IAAI,CAAA;AAExB,EAAA,MAAM,KAAA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AAA,EAAgB;AAAA,GAAA,EACvE,CAAA;AAEJ","file":"index.js","sourcesContent":["import type { CSSProperties } from \"react\"\nimport { cn } from \"../../lib/cn\"\nimport { props } from \"../../lib/props\"\n\n// The starfield AmbientBackground draws with `withStarfield`: a starry sky over\n// soft violet nebulae, stacked on the glow and noise (the noise is what\n// dithers these gradients so they never band). Every layer takes the same\n// recipe as glow and noise (fixed, -z-10, no shared wrapper) and paints over\n// them, still under every piece of the app.\n//\n// Everything is computed once at module load from a seeded PRNG, so the sky\n// is identical on every render, on the server and the client, and on every\n// visit. It moves, slowly: the clouds drift and swell, the dust dims and comes\n// back, the brighter stars breathe, and now and then a meteor crosses. All of\n// it is CSS animation of transform and opacity (keyframes in theme.css), so\n// the compositor runs it and no script does per frame; and all of it sits\n// behind `motion-safe:` and the `data-motion=\"reduced\"` rule in theme.css, so\n// with reduced motion the sky is a still picture, without the meteors.\n\n// mulberry32: tiny, fast, and good enough to scatter dots.\nconst prng = (seed: number) => () => {\n seed = (seed + 0x6d2b79f5) | 0\n let t = Math.imul(seed ^ (seed >>> 15), 1 | seed)\n t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t\n return ((t ^ (t >>> 14)) >>> 0) / 4294967296\n}\n\nconst round = (n: number) => Math.round(n * 100) / 100\n\ntype Star = { x: number; y: number; r: number; opacity: number }\n\n// Most stars are a cool white; a few lean violet or pink, as in the design.\n// On a light sky the same hues go dark, so the dots read as ink, not glare.\nconst TONES = [\n \"fill-brand-500 dark:fill-brand-100\",\n \"fill-purple-500 dark:fill-purple-200\",\n \"fill-pink-500 dark:fill-pink-200\",\n] as const\n\ntype Tone = (typeof TONES)[number]\n\nconst pickTone = (n: number): Tone => (n < 0.78 ? TONES[0] : n < 0.95 ? TONES[1] : TONES[2])\n\n// The dust dims in a few groups, each on its own slow beat, so at any moment\n// some stars are fading and others coming back. A group is a whole layer\n// fading (cheap: the compositor does it), and its stars are scattered all\n// over, so it reads as single stars dimming, not as a region pulsing. The\n// beats share no common factor, so the groups never line up into one blink.\nconst DIM_BEATS = [\n { duration: \"11s\", delay: \"-3s\" },\n { duration: \"17s\", delay: \"-11s\" },\n { duration: \"23s\", delay: \"-7s\" },\n] as const\n\n// Dots for one repeating tile, by dimming group, then by tone so each tone\n// is one <g>.\nconst scatter = (seed: number, size: number, count: number) => {\n const random = prng(seed)\n // Its own sequence, so sorting the dots into groups doesn't move them.\n const group = prng(seed + 1)\n const phases = DIM_BEATS.map(() => new Map<Tone, Star[]>(TONES.map((tone) => [tone, []])))\n for (let i = 0; i < count; i++) {\n // Skewed towards the faintest, smallest dots: a real sky is mostly dust.\n const weight = random() ** 2.4\n const star = {\n // Kept off the tile's edge so no dot is cut in half where tiles meet.\n x: round(2 + random() * (size - 4)),\n y: round(2 + random() * (size - 4)),\n r: round(0.4 + weight * 0.75),\n opacity: round(0.22 + weight * 0.4 + random() * 0.1),\n }\n phases[Math.floor(group() * phases.length)]?.get(pickTone(random()))?.push(star)\n }\n return { size, phases: phases.map((phase) => [...phase]) }\n}\n\n// Two tiles of coprime-ish sizes overlap into a pattern that only repeats\n// every few thousand pixels, so the eye never catches the tiling. Fixed pixel\n// tiles (not a scaled viewBox) keep the same density on a phone and a wide\n// screen. Together about one dot per 6000px², the design's own density.\nconst TILES = [scatter(42, 509, 26), scatter(1337, 733, 38)]\n\n// The few brighter stars, placed by viewport percentage so they spread over\n// any screen. A soft halo rather than a hard disc; the three with `sparkle`\n// carry the design's diffraction spikes, kept thin and short.\nconst BRIGHT_STARS = [\n { x: \"8%\", y: \"14%\", sparkle: true, delay: \"0s\", duration: \"7s\" },\n { x: \"31%\", y: \"6%\", sparkle: false, delay: \"-2s\", duration: \"9s\" },\n { x: \"62%\", y: \"11%\", sparkle: false, delay: \"-5s\", duration: \"8s\" },\n { x: \"88%\", y: \"22%\", sparkle: true, delay: \"-3s\", duration: \"10s\" },\n { x: \"18%\", y: \"58%\", sparkle: false, delay: \"-6s\", duration: \"8s\" },\n { x: \"47%\", y: \"41%\", sparkle: false, delay: \"-1s\", duration: \"11s\" },\n { x: \"76%\", y: \"63%\", sparkle: true, delay: \"-4s\", duration: \"9s\" },\n { x: \"36%\", y: \"86%\", sparkle: false, delay: \"-7s\", duration: \"10s\" },\n { x: \"93%\", y: \"90%\", sparkle: false, delay: \"-2.5s\", duration: \"7s\" },\n] as const\n\n// A four-point sparkle with concave sides: reads as a lens glint, not a shape.\nconst SPARKLE = \"M0 -6Q0 0 6 0Q0 0 0 6Q0 0 -6 0Q0 0 0 -6Z\"\n\n// Each cloud's layer overhangs the viewport by this much on every side, so a\n// cloud cut by the screen's edge (several are) can drift without the cut\n// ever coming into view.\nconst BLEED = 15\nconst SPAN = 100 + 2 * BLEED\n\n// A length or a position given in viewport %, as % of the overhanging layer.\nconst inLayer = (viewport: number, offset = 0) => `${round(((viewport + offset) / SPAN) * 100)}%`\n\ntype Ellipse = { rx: number; ry: number; x: number; y: number }\ntype Hue = { color: string; strength: number }\n\n// Violet and indigo clouds after the design's \"Nébuleuse\", softened: wide\n// ellipses that fade out over their whole radius so no edge ever shows. The\n// design's blue core is already the kit's ambient glow; this adds the purple.\nconst cloud = ({ rx, ry, x, y }: Ellipse, { color, strength }: Hue) =>\n `radial-gradient(ellipse ${inLayer(rx)} ${inLayer(ry)} at ${inLayer(x, BLEED)} ${inLayer(y, BLEED)}, color-mix(in oklab, var(${color}) ${strength}%, transparent), color-mix(in oklab, var(${color}) ${strength * 0.45}%, transparent) 45%, transparent 100%)`\n\n// Each cloud drifts on its own long, slow swing (there and back, eased at\n// both ends), swelling a little and thinning as it goes: a few px a second,\n// so the sky is never seen moving, only found changed. On a light sky the\n// same clouds are pale tints, so the light theme keeps the violet without\n// muddying the page.\nconst CLOUDS: {\n at: Ellipse\n dark: Hue\n light: Hue\n drift: { x: string; y: string; scale: number; fade: number; duration: string; delay: string }\n}[] = [\n {\n at: { rx: 42, ry: 34, x: 30, y: 64 },\n dark: { color: \"--color-purple-400\", strength: 9 },\n light: { color: \"--color-purple-200\", strength: 14 },\n drift: { x: \"6vw\", y: \"-4vh\", scale: 1.12, fade: 0.7, duration: \"70s\", delay: \"-20s\" },\n },\n {\n at: { rx: 60, ry: 38, x: 42, y: 104 },\n dark: { color: \"--color-purple-800\", strength: 20 },\n light: { color: \"--color-purple-200\", strength: 26 },\n drift: { x: \"-8vw\", y: \"-3vh\", scale: 1.08, fade: 0.85, duration: \"95s\", delay: \"-50s\" },\n },\n {\n at: { rx: 40, ry: 34, x: 92, y: 4 },\n dark: { color: \"--color-purple-800\", strength: 22 },\n light: { color: \"--color-purple-200\", strength: 28 },\n drift: { x: \"-5vw\", y: \"5vh\", scale: 1.15, fade: 0.8, duration: \"85s\", delay: \"-10s\" },\n },\n {\n at: { rx: 46, ry: 40, x: 24, y: 20 },\n dark: { color: \"--color-brand-700\", strength: 18 },\n light: { color: \"--color-brand-200\", strength: 24 },\n drift: { x: \"7vw\", y: \"4vh\", scale: 1.1, fade: 0.85, duration: \"110s\", delay: \"-70s\" },\n },\n {\n at: { rx: 36, ry: 30, x: 4, y: 92 },\n dark: { color: \"--color-pink-800\", strength: 10 },\n light: { color: \"--color-pink-200\", strength: 16 },\n drift: { x: \"5vw\", y: \"-6vh\", scale: 1.2, fade: 0.6, duration: \"75s\", delay: \"-35s\" },\n },\n]\n\n// The cloud's picture per theme and its drift, as variables the classes and\n// the ambient-nebula-drift keyframes (theme.css) read.\nconst cloudStyle = ({ at, dark, light, drift }: (typeof CLOUDS)[number]) =>\n ({\n \"--nebula-light\": cloud(at, light),\n \"--nebula-dark\": cloud(at, dark),\n \"--drift-x\": drift.x,\n \"--drift-y\": drift.y,\n \"--drift-scale\": drift.scale,\n \"--drift-fade\": drift.fade,\n inset: `-${BLEED}%`,\n animationDuration: drift.duration,\n animationDelay: drift.delay,\n }) as CSSProperties\n\n// The meteors: three, each on its own long cycle and visible for about a\n// second of it, so one crosses every twenty seconds or so, never on arrival\n// and almost never two at once. Thin, short and faint, high in the sky,\n// falling down and to the left. Seen from the corner of the eye, not watched.\nconst METEORS = [\n { x: \"72%\", y: \"8%\", angle: \"152deg\", duration: \"37s\", delay: \"9s\" },\n { x: \"50%\", y: \"20%\", angle: \"160deg\", duration: \"53s\", delay: \"24s\" },\n { x: \"92%\", y: \"30%\", angle: \"148deg\", duration: \"71s\", delay: \"41s\" },\n] as const\n\n// The halo's stops, per theme: a gradient stop takes no `dark:` class.\nconst HALO_THEME =\n \"[--star-halo-core:var(--color-brand-400)] [--star-halo-rim:var(--color-purple-400)] dark:[--star-halo-core:var(--color-brand-100)] dark:[--star-halo-rim:var(--color-purple-300)]\"\n\n// Every layer's recipe: decorative, out of the pointer's way and out of a\n// forced palette's. `ambient-starfield` is the hook theme.css's\n// `data-motion=\"reduced\"` rule stills it by.\nconst LAYER = \"ambient-starfield pointer-events-none fixed -z-10 forced-colors:hidden\"\n\nexport type StarfieldClassNames = {\n /** Each nebula cloud's layer. */\n nebula?: string\n /** The layer holding the dust and the brighter stars. */\n stars?: string\n /** The meteors' layer. */\n meteors?: string\n}\n\nexport const Starfield = ({\n classNames,\n testId,\n}: {\n classNames?: StarfieldClassNames\n testId?: string\n}) => (\n <>\n {CLOUDS.map((c, i) => (\n <div\n key={`${c.at.x}-${c.at.y}`}\n aria-hidden=\"true\"\n className={cn(\n LAYER,\n \"[background-image:var(--nebula-light)] motion-safe:animate-ambient-nebula-drift dark:[background-image:var(--nebula-dark)]\",\n classNames?.nebula,\n )}\n style={cloudStyle(c)}\n {...props({ \"data-testid\": testId && `${testId}-nebula-${i}` })}\n />\n ))}\n\n {/* Fainter on a light sky: dark dots at the dark sky's strength read\n as specks rather than dust. Set on the wrapper, because the layers\n inside animate their own opacity. */}\n <div\n aria-hidden=\"true\"\n className={cn(LAYER, \"inset-0 opacity-70 dark:opacity-100\", HALO_THEME, classNames?.stars)}\n {...props({ \"data-testid\": testId && `${testId}-stars` })}\n >\n <svg aria-hidden=\"true\" className=\"absolute size-0\">\n <defs>\n {TILES.flatMap(({ size, phases }, i) =>\n phases.map((groups, phase) => (\n <pattern\n // biome-ignore lint/suspicious/noArrayIndexKey: a static, never-reordered list\n key={`${i}-${phase}`}\n id={`ambient-starfield-tile-${i}-${phase}`}\n width={size}\n height={size}\n patternUnits=\"userSpaceOnUse\"\n >\n {groups.map(([tone, stars]) => (\n <g key={tone} className={tone}>\n {stars.map(({ x, y, r, opacity }) => (\n <circle key={`${x}-${y}`} cx={x} cy={y} r={r} fillOpacity={opacity} />\n ))}\n </g>\n ))}\n </pattern>\n )),\n )}\n <radialGradient id=\"ambient-starfield-halo\">\n <stop offset=\"0%\" style={{ stopColor: \"var(--star-halo-core)\" }} stopOpacity={0.32} />\n <stop offset=\"35%\" style={{ stopColor: \"var(--star-halo-rim)\" }} stopOpacity={0.1} />\n <stop offset=\"100%\" style={{ stopColor: \"var(--star-halo-rim)\" }} stopOpacity={0} />\n </radialGradient>\n </defs>\n </svg>\n\n {DIM_BEATS.map(({ duration, delay }, phase) => (\n <svg\n key={duration}\n aria-hidden=\"true\"\n className=\"absolute inset-0 size-full motion-safe:animate-ambient-star-dim\"\n style={{ animationDuration: duration, animationDelay: delay }}\n >\n {TILES.map(({ size }, i) => (\n <rect\n key={size}\n width=\"100%\"\n height=\"100%\"\n fill={`url(#ambient-starfield-tile-${i}-${phase})`}\n />\n ))}\n </svg>\n ))}\n\n <svg aria-hidden=\"true\" className=\"absolute inset-0 size-full\">\n {BRIGHT_STARS.map(({ x, y, sparkle, delay, duration }) => (\n <svg key={`${x}-${y}`} aria-hidden=\"true\" x={x} y={y} overflow=\"visible\">\n <g\n className=\"motion-safe:animate-ambient-star-twinkle\"\n style={{ animationDelay: delay, animationDuration: duration }}\n >\n <circle r={7} fill=\"url(#ambient-starfield-halo)\" />\n {sparkle ? (\n <path\n d={SPARKLE}\n className=\"fill-purple-400 dark:fill-purple-100\"\n fillOpacity={0.4}\n />\n ) : null}\n <circle r={1.1} className=\"fill-brand-500 dark:fill-brand-50\" fillOpacity={0.85} />\n </g>\n </svg>\n ))}\n </svg>\n </div>\n\n {/* Only where motion is welcome: a meteor standing still is a scratch. */}\n <div\n aria-hidden=\"true\"\n className={cn(\n LAYER,\n \"ambient-starfield-meteors inset-0 hidden overflow-hidden motion-safe:block\",\n classNames?.meteors,\n )}\n {...props({ \"data-testid\": testId && `${testId}-meteors` })}\n >\n {METEORS.map(({ x, y, angle, duration, delay }) => (\n // A zero-size anchor turned to the meteor's heading; the streak\n // ends at it, head first, and flies along that heading.\n <span\n key={`${x}-${y}`}\n className=\"absolute size-0\"\n style={{ left: x, top: y, rotate: angle }}\n >\n <span\n className=\"absolute top-0 right-0 h-px w-28 origin-right rounded-full bg-linear-to-r from-transparent to-brand-500/50 opacity-0 motion-safe:animate-ambient-meteor dark:to-white/60\"\n style={{ animationDuration: duration, animationDelay: delay }}\n />\n </span>\n ))}\n </div>\n </>\n)\n","import { cn } from \"../../lib/cn\"\nimport { warnRenamedProp } from \"../../lib/dev-warn\"\nimport { props } from \"../../lib/props\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { Starfield, type StarfieldClassNames } from \"./starfield\"\n\n/**\n * AmbientBackground — a decorative, brand-tinted page background: a soft\n * radial glow plus a fine film-grain noise texture, so a flat page fill reads\n * as a considered surface instead of a plain color.\n *\n * Render it once, as the first child of your root layout (so later content\n * naturally paints over it) — both layers are `position: fixed`, so a single\n * instance covers the whole viewport regardless of scroll position or page\n * height. It renders nothing interactive: `aria-hidden`, `pointer-events-none`,\n * and hidden under `forced-colors` (Windows High Contrast), since a decorative\n * background has no place overriding a user's forced palette.\n *\n * Glow and noise render as two *independent* fixed elements rather than one\n * wrapper containing two children, so either can be toggled/overridden\n * without the other, and neither traps a future blend-mode override inside\n * an isolated stacking context (`position: fixed` always creates one,\n * regardless of z-index — nesting a blended layer inside another `fixed`\n * wrapper would cut off what it can blend against).\n *\n * `withStarfield` adds a third, opt-in layer set: a slowly moving starry sky\n * over soft violet nebulae (dimming dust, breathing bright stars, a rare\n * meteor), seeded so it is identical on every render. It follows the same\n * recipe — separate fixed layers, no shared wrapper — and stills under reduced\n * motion, either the OS setting or `data-motion=\"reduced\"` on `<html>`.\n *\n * The actual glow/noise values are CSS custom properties (`--ambient-glow` /\n * `--ambient-noise`, defined in `theme.css`, brand-tinted and theme-aware via\n * `data-theme`) rather than hardcoded here — override either on `:root` to\n * reskin it without forking this component.\n *\n * Pure Server Component: no state, no client JS.\n *\n * @example\n * ```tsx\n * // app/layout.tsx\n * <body>\n * <AmbientBackground />\n * {children}\n * </body>\n * ```\n */\n/**\n * There is no root element, so `testId` lands on each layer with its part as a\n * suffix: `` `${testId}-glow` `` and `` `${testId}-noise` ``, and with the\n * starfield `` `${testId}-nebula-<n>` ``, `` `${testId}-stars` `` and\n * `` `${testId}-meteors` ``.\n */\nexport type AmbientBackgroundProps = WithTestId & {\n /** Render the radial glow layer. Default `true`. */\n withGlow?: boolean\n /** Render the film-grain noise layer. Default `true`. */\n withNoise?: boolean\n /** Render the starfield over the glow and noise: nebulae, stars and meteors. Default `false`. */\n withStarfield?: boolean\n /** @deprecated Renamed `withGlow`. Removed in the next minor. `withGlow` wins when both are set. */\n glow?: boolean\n /** @deprecated Renamed `withNoise`. Removed in the next minor. `withNoise` wins when both are set. */\n noise?: boolean\n /** Extra classes for each layer. */\n classNames?: StarfieldClassNames & {\n glow?: string\n noise?: string\n }\n}\n\nexport const AmbientBackground = ({\n glow,\n noise,\n withGlow = glow ?? true,\n withNoise = noise ?? true,\n withStarfield = false,\n classNames,\n testId,\n}: AmbientBackgroundProps) => {\n if (glow !== undefined) warnRenamedProp(\"AmbientBackground\", \"glow\", \"withGlow\")\n if (noise !== undefined) warnRenamedProp(\"AmbientBackground\", \"noise\", \"withNoise\")\n return (\n <>\n {withGlow && (\n <div\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none fixed inset-0 -z-10 forced-colors:hidden\",\n classNames?.glow,\n )}\n style={{ backgroundImage: \"var(--ambient-glow)\" }}\n {...props({ \"data-testid\": testId && `${testId}-glow` })}\n />\n )}\n {withNoise && (\n <div\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none fixed inset-0 -z-10 bg-repeat forced-colors:hidden\",\n classNames?.noise,\n )}\n style={{ backgroundImage: \"var(--ambient-noise)\" }}\n {...props({ \"data-testid\": testId && `${testId}-noise` })}\n />\n )}\n {withStarfield && <Starfield classNames={classNames} testId={testId} />}\n </>\n )\n}\n"]}
1
+ {"version":3,"sources":["../../../src/components/ambient-background/starfield.tsx","../../../src/components/ambient-background/ambient-background.tsx"],"names":["jsxs","Fragment","jsx"],"mappings":";;;;;AAsBA,IAAM,IAAA,GAAO,CAAC,IAAA,KAAiB,MAAM;AACnC,EAAA,IAAA,GAAQ,OAAO,UAAA,GAAc,CAAA;AAC7B,EAAA,IAAI,IAAI,IAAA,CAAK,IAAA,CAAK,OAAQ,IAAA,KAAS,EAAA,EAAK,IAAI,IAAI,CAAA;AAChD,EAAA,CAAA,GAAK,CAAA,GAAI,KAAK,IAAA,CAAK,CAAA,GAAK,MAAM,CAAA,EAAI,EAAA,GAAK,CAAC,CAAA,GAAK,CAAA;AAC7C,EAAA,OAAA,CAAA,CAAS,CAAA,GAAK,CAAA,KAAM,EAAA,MAAS,CAAA,IAAK,UAAA;AACpC,CAAA;AAEA,IAAM,QAAQ,CAAC,CAAA,KAAc,KAAK,KAAA,CAAM,CAAA,GAAI,GAAG,CAAA,GAAI,GAAA;AAMnD,IAAM,KAAA,GAAQ;AAAA,EACZ,oCAAA;AAAA,EACA,sCAAA;AAAA,EACA;AACF,CAAA;AAIA,IAAM,QAAA,GAAW,CAAC,CAAA,KAAqB,CAAA,GAAI,OAAO,KAAA,CAAM,CAAC,CAAA,GAAI,CAAA,GAAI,IAAA,GAAO,KAAA,CAAM,CAAC,CAAA,GAAI,MAAM,CAAC,CAAA;AAO1F,IAAM,SAAA,GAAY;AAAA,EAChB,EAAE,QAAA,EAAU,KAAA,EAAO,KAAA,EAAO,KAAA,EAAM;AAAA,EAChC,EAAE,QAAA,EAAU,KAAA,E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G,MAAM,UAAU;AAAA;AAAA,KAC1D;AAAA,IAED,aAAA,oBAAiBA,GAAAA,CAAC,SAAA,EAAA,EAAU,YAAwB,MAAA,EAAgB;AAAA,GAAA,EACvE,CAAA;AAEJ","file":"index.js","sourcesContent":["import type { CSSProperties } from \"react\"\nimport { cn } from \"../../lib/cn\"\nimport { props } from \"../../lib/props\"\n\n// The starfield AmbientBackground draws with `withStarfield`: a starry sky over\n// soft violet nebulae, stacked on the glow and noise (the noise is what\n// dithers these gradients so they never band). Every layer takes the same\n// recipe as glow and noise (fixed, -z-10, no shared wrapper) and paints over\n// them, still under every piece of the app.\n//\n// Everything is computed once at module load from a seeded PRNG, so the sky\n// is identical on every render, on the server and the client, and on every\n// visit. The clouds hold still: a drifting full-screen gradient is redrawn\n// whole on every frame in Firefox, which kept its GPU busy for as long as a\n// page was open. The rest moves, slowly: the dust dims and comes back, the\n// brighter stars breathe, and now and then a meteor crosses. All of it is CSS\n// animation of opacity and transform (keyframes in theme.css), so the\n// compositor runs it and no script does per frame; and all of it sits\n// behind `motion-safe:` and the `data-motion=\"reduced\"` rule in theme.css, so\n// with reduced motion the sky is a still picture, without the meteors.\n\n// mulberry32: tiny, fast, and good enough to scatter dots.\nconst prng = (seed: number) => () => {\n seed = (seed + 0x6d2b79f5) | 0\n let t = Math.imul(seed ^ (seed >>> 15), 1 | seed)\n t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t\n return ((t ^ (t >>> 14)) >>> 0) / 4294967296\n}\n\nconst round = (n: number) => Math.round(n * 100) / 100\n\ntype Star = { x: number; y: number; r: number; opacity: number }\n\n// Most stars are a cool white; a few lean violet or pink, as in the design.\n// On a light sky the same hues go dark, so the dots read as ink, not glare.\nconst TONES = [\n \"fill-brand-500 dark:fill-brand-100\",\n \"fill-purple-500 dark:fill-purple-200\",\n \"fill-pink-500 dark:fill-pink-200\",\n] as const\n\ntype Tone = (typeof TONES)[number]\n\nconst pickTone = (n: number): Tone => (n < 0.78 ? TONES[0] : n < 0.95 ? TONES[1] : TONES[2])\n\n// The dust dims in a few groups, each on its own slow beat, so at any moment\n// some stars are fading and others coming back. A group is a whole layer\n// fading (cheap: the compositor does it), and its stars are scattered all\n// over, so it reads as single stars dimming, not as a region pulsing. The\n// beats share no common factor, so the groups never line up into one blink.\nconst DIM_BEATS = [\n { duration: \"11s\", delay: \"-3s\" },\n { duration: \"17s\", delay: \"-11s\" },\n { duration: \"23s\", delay: \"-7s\" },\n] as const\n\n// Dots for one repeating tile, by dimming group, then by tone so each tone\n// is one <g>.\nconst scatter = (seed: number, size: number, count: number) => {\n const random = prng(seed)\n // Its own sequence, so sorting the dots into groups doesn't move them.\n const group = prng(seed + 1)\n const phases = DIM_BEATS.map(() => new Map<Tone, Star[]>(TONES.map((tone) => [tone, []])))\n for (let i = 0; i < count; i++) {\n // Skewed towards the faintest, smallest dots: a real sky is mostly dust.\n const weight = random() ** 2.4\n const star = {\n // Kept off the tile's edge so no dot is cut in half where tiles meet.\n x: round(2 + random() * (size - 4)),\n y: round(2 + random() * (size - 4)),\n r: round(0.4 + weight * 0.75),\n opacity: round(0.22 + weight * 0.4 + random() * 0.1),\n }\n phases[Math.floor(group() * phases.length)]?.get(pickTone(random()))?.push(star)\n }\n return { size, phases: phases.map((phase) => [...phase]) }\n}\n\n// Two tiles of coprime-ish sizes overlap into a pattern that only repeats\n// every few thousand pixels, so the eye never catches the tiling. Fixed pixel\n// tiles (not a scaled viewBox) keep the same density on a phone and a wide\n// screen. Together about one dot per 6000px², the design's own density.\nconst TILES = [scatter(42, 509, 26), scatter(1337, 733, 38)]\n\n// The few brighter stars, placed by viewport percentage so they spread over\n// any screen. A soft halo rather than a hard disc; the three with `sparkle`\n// carry the design's diffraction spikes, kept thin and short.\nconst BRIGHT_STARS = [\n { x: \"8%\", y: \"14%\", sparkle: true, delay: \"0s\", duration: \"7s\" },\n { x: \"31%\", y: \"6%\", sparkle: false, delay: \"-2s\", duration: \"9s\" },\n { x: \"62%\", y: \"11%\", sparkle: false, delay: \"-5s\", duration: \"8s\" },\n { x: \"88%\", y: \"22%\", sparkle: true, delay: \"-3s\", duration: \"10s\" },\n { x: \"18%\", y: \"58%\", sparkle: false, delay: \"-6s\", duration: \"8s\" },\n { x: \"47%\", y: \"41%\", sparkle: false, delay: \"-1s\", duration: \"11s\" },\n { x: \"76%\", y: \"63%\", sparkle: true, delay: \"-4s\", duration: \"9s\" },\n { x: \"36%\", y: \"86%\", sparkle: false, delay: \"-7s\", duration: \"10s\" },\n { x: \"93%\", y: \"90%\", sparkle: false, delay: \"-2.5s\", duration: \"7s\" },\n] as const\n\n// A four-point sparkle with concave sides: reads as a lens glint, not a shape.\nconst SPARKLE = \"M0 -6Q0 0 6 0Q0 0 0 6Q0 0 -6 0Q0 0 0 -6Z\"\n\ntype Ellipse = { rx: number; ry: number; x: number; y: number }\ntype Hue = { color: string; strength: number }\n\n// Violet and indigo clouds after the design's \"Nébuleuse\", softened: wide\n// ellipses that fade out over their whole radius so no edge ever shows. The\n// design's blue core is already the kit's ambient glow; this adds the purple.\nconst cloud = ({ rx, ry, x, y }: Ellipse, { color, strength }: Hue) =>\n `radial-gradient(ellipse ${rx}% ${ry}% at ${x}% ${y}%, color-mix(in oklab, var(${color}) ${strength}%, transparent), color-mix(in oklab, var(${color}) ${strength * 0.45}%, transparent) 45%, transparent 100%)`\n\n// On a light sky the same clouds are pale tints, so the light theme keeps\n// the violet without muddying the page.\nconst CLOUDS: { at: Ellipse; dark: Hue; light: Hue }[] = [\n {\n // Moved down-left, narrowed and brightened (9 → 17) against Figma's « Background / Cosmos »,\n // whose lower-left glows violet behind the first column (2026-10-29).\n at: { rx: 35, ry: 34, x: 23, y: 72 },\n dark: { color: \"--color-purple-400\", strength: 17 },\n light: { color: \"--color-purple-200\", strength: 14 },\n },\n {\n at: { rx: 60, ry: 38, x: 42, y: 104 },\n dark: { color: \"--color-purple-800\", strength: 20 },\n light: { color: \"--color-purple-200\", strength: 26 },\n },\n {\n at: { rx: 40, ry: 34, x: 92, y: 4 },\n dark: { color: \"--color-purple-800\", strength: 22 },\n light: { color: \"--color-purple-200\", strength: 28 },\n },\n {\n at: { rx: 46, ry: 40, x: 24, y: 20 },\n dark: { color: \"--color-brand-700\", strength: 18 },\n light: { color: \"--color-brand-200\", strength: 24 },\n },\n {\n at: { rx: 36, ry: 30, x: 4, y: 92 },\n dark: { color: \"--color-pink-800\", strength: 10 },\n light: { color: \"--color-pink-200\", strength: 16 },\n },\n]\n\n// The cloud's picture per theme, as variables the classes read.\nconst cloudStyle = ({ at, dark, light }: (typeof CLOUDS)[number]) =>\n ({\n \"--nebula-light\": cloud(at, light),\n \"--nebula-dark\": cloud(at, dark),\n inset: 0,\n }) as CSSProperties\n\n// The meteors: three, each on its own long cycle and visible for about a\n// second of it, so one crosses every twenty seconds or so, never on arrival\n// and almost never two at once. Thin, short and faint, high in the sky,\n// falling down and to the left. Seen from the corner of the eye, not watched.\nconst METEORS = [\n { x: \"72%\", y: \"8%\", angle: \"152deg\", duration: \"37s\", delay: \"9s\" },\n { x: \"50%\", y: \"20%\", angle: \"160deg\", duration: \"53s\", delay: \"24s\" },\n { x: \"92%\", y: \"30%\", angle: \"148deg\", duration: \"71s\", delay: \"41s\" },\n] as const\n\n// The halo's stops, per theme: a gradient stop takes no `dark:` class.\nconst HALO_THEME =\n \"[--star-halo-core:var(--color-brand-400)] [--star-halo-rim:var(--color-purple-400)] dark:[--star-halo-core:var(--color-brand-100)] dark:[--star-halo-rim:var(--color-purple-300)]\"\n\n// Every layer's recipe: decorative, out of the pointer's way and out of a\n// forced palette's. `ambient-starfield` is the hook theme.css's\n// `data-motion=\"reduced\"` rule stills it by.\nconst LAYER = \"ambient-starfield pointer-events-none fixed -z-10 forced-colors:hidden\"\n\nexport type StarfieldClassNames = {\n /** Each nebula cloud's layer. */\n nebula?: string\n /** The layer holding the dust and the brighter stars. */\n stars?: string\n /** The meteors' layer. */\n meteors?: string\n}\n\nexport const Starfield = ({\n classNames,\n testId,\n}: {\n classNames?: StarfieldClassNames\n testId?: string\n}) => (\n <>\n {CLOUDS.map((c, i) => (\n <div\n key={`${c.at.x}-${c.at.y}`}\n aria-hidden=\"true\"\n className={cn(\n LAYER,\n \"[background-image:var(--nebula-light)] dark:[background-image:var(--nebula-dark)]\",\n classNames?.nebula,\n )}\n style={cloudStyle(c)}\n {...props({ \"data-testid\": testId && `${testId}-nebula-${i}` })}\n />\n ))}\n\n {/* Fainter on a light sky: dark dots at the dark sky's strength read\n as specks rather than dust. Set on the wrapper, because the layers\n inside animate their own opacity. */}\n <div\n aria-hidden=\"true\"\n className={cn(LAYER, \"inset-0 opacity-70 dark:opacity-100\", HALO_THEME, classNames?.stars)}\n {...props({ \"data-testid\": testId && `${testId}-stars` })}\n >\n <svg aria-hidden=\"true\" className=\"absolute size-0\">\n <defs>\n {TILES.flatMap(({ size, phases }, i) =>\n phases.map((groups, phase) => (\n <pattern\n // biome-ignore lint/suspicious/noArrayIndexKey: a static, never-reordered list\n key={`${i}-${phase}`}\n id={`ambient-starfield-tile-${i}-${phase}`}\n width={size}\n height={size}\n patternUnits=\"userSpaceOnUse\"\n >\n {groups.map(([tone, stars]) => (\n <g key={tone} className={tone}>\n {stars.map(({ x, y, r, opacity }) => (\n <circle key={`${x}-${y}`} cx={x} cy={y} r={r} fillOpacity={opacity} />\n ))}\n </g>\n ))}\n </pattern>\n )),\n )}\n <radialGradient id=\"ambient-starfield-halo\">\n <stop offset=\"0%\" style={{ stopColor: \"var(--star-halo-core)\" }} stopOpacity={0.32} />\n <stop offset=\"35%\" style={{ stopColor: \"var(--star-halo-rim)\" }} stopOpacity={0.1} />\n <stop offset=\"100%\" style={{ stopColor: \"var(--star-halo-rim)\" }} stopOpacity={0} />\n </radialGradient>\n </defs>\n </svg>\n\n {DIM_BEATS.map(({ duration, delay }, phase) => (\n <svg\n key={duration}\n aria-hidden=\"true\"\n className=\"absolute inset-0 size-full motion-safe:animate-ambient-star-dim\"\n style={{ animationDuration: duration, animationDelay: delay }}\n >\n {TILES.map(({ size }, i) => (\n <rect\n key={size}\n width=\"100%\"\n height=\"100%\"\n fill={`url(#ambient-starfield-tile-${i}-${phase})`}\n />\n ))}\n </svg>\n ))}\n\n <svg aria-hidden=\"true\" className=\"absolute inset-0 size-full\">\n {BRIGHT_STARS.map(({ x, y, sparkle, delay, duration }) => (\n <svg key={`${x}-${y}`} aria-hidden=\"true\" x={x} y={y} overflow=\"visible\">\n <g\n className=\"motion-safe:animate-ambient-star-twinkle\"\n style={{ animationDelay: delay, animationDuration: duration }}\n >\n <circle r={7} fill=\"url(#ambient-starfield-halo)\" />\n {sparkle ? (\n <path\n d={SPARKLE}\n className=\"fill-purple-400 dark:fill-purple-100\"\n fillOpacity={0.4}\n />\n ) : null}\n <circle r={1.1} className=\"fill-brand-500 dark:fill-brand-50\" fillOpacity={0.85} />\n </g>\n </svg>\n ))}\n </svg>\n </div>\n\n {/* Only where motion is welcome: a meteor standing still is a scratch. */}\n <div\n aria-hidden=\"true\"\n className={cn(\n LAYER,\n \"ambient-starfield-meteors inset-0 hidden overflow-hidden motion-safe:block\",\n classNames?.meteors,\n )}\n {...props({ \"data-testid\": testId && `${testId}-meteors` })}\n >\n {METEORS.map(({ x, y, angle, duration, delay }) => (\n // A zero-size anchor turned to the meteor's heading; the streak\n // ends at it, head first, and flies along that heading.\n <span\n key={`${x}-${y}`}\n className=\"absolute size-0\"\n style={{ left: x, top: y, rotate: angle }}\n >\n <span\n className=\"absolute top-0 right-0 h-px w-28 origin-right rounded-full bg-linear-to-r from-transparent to-brand-500/50 opacity-0 motion-safe:animate-ambient-meteor dark:to-white/60\"\n style={{ animationDuration: duration, animationDelay: delay }}\n />\n </span>\n ))}\n </div>\n </>\n)\n","import { cn } from \"../../lib/cn\"\nimport { warnRenamedProp } from \"../../lib/dev-warn\"\nimport { props } from \"../../lib/props\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { Starfield, type StarfieldClassNames } from \"./starfield\"\n\n/**\n * AmbientBackground — a decorative, brand-tinted page background: a soft\n * radial glow plus a fine film-grain noise texture, so a flat page fill reads\n * as a considered surface instead of a plain color.\n *\n * Render it once, as the first child of your root layout (so later content\n * naturally paints over it) — both layers are `position: fixed`, so a single\n * instance covers the whole viewport regardless of scroll position or page\n * height. It renders nothing interactive: `aria-hidden`, `pointer-events-none`,\n * and hidden under `forced-colors` (Windows High Contrast), since a decorative\n * background has no place overriding a user's forced palette.\n *\n * Glow and noise render as two *independent* fixed elements rather than one\n * wrapper containing two children, so either can be toggled/overridden\n * without the other, and neither traps a future blend-mode override inside\n * an isolated stacking context (`position: fixed` always creates one,\n * regardless of z-index — nesting a blended layer inside another `fixed`\n * wrapper would cut off what it can blend against).\n *\n * `withStarfield` adds a third, opt-in layer set: a slowly moving starry sky\n * over soft violet nebulae (dimming dust, breathing bright stars, a rare\n * meteor), seeded so it is identical on every render. It follows the same\n * recipe — separate fixed layers, no shared wrapper — and stills under reduced\n * motion, either the OS setting or `data-motion=\"reduced\"` on `<html>`.\n *\n * The actual glow/noise values are CSS custom properties (`--ambient-glow` /\n * `--ambient-noise`, defined in `theme.css`, brand-tinted and theme-aware via\n * `data-theme`) rather than hardcoded here — override either on `:root` to\n * reskin it without forking this component.\n *\n * Pure Server Component: no state, no client JS.\n *\n * @example\n * ```tsx\n * // app/layout.tsx\n * <body>\n * <AmbientBackground />\n * {children}\n * </body>\n * ```\n */\n/**\n * There is no root element, so `testId` lands on each layer with its part as a\n * suffix: `` `${testId}-glow` `` and `` `${testId}-noise` ``, and with the\n * starfield `` `${testId}-nebula-<n>` ``, `` `${testId}-stars` `` and\n * `` `${testId}-meteors` ``.\n */\nexport type AmbientBackgroundProps = WithTestId & {\n /** Render the radial glow layer. Default `true`. */\n withGlow?: boolean\n /** Render the film-grain noise layer. Default `true`. */\n withNoise?: boolean\n /** Render the starfield over the glow and noise: nebulae, stars and meteors. Default `false`. */\n withStarfield?: boolean\n /** @deprecated Renamed `withGlow`. Removed in the next minor. `withGlow` wins when both are set. */\n glow?: boolean\n /** @deprecated Renamed `withNoise`. Removed in the next minor. `withNoise` wins when both are set. */\n noise?: boolean\n /** Extra classes for each layer. */\n classNames?: StarfieldClassNames & {\n glow?: string\n noise?: string\n }\n}\n\nexport const AmbientBackground = ({\n glow,\n noise,\n withGlow = glow ?? true,\n withNoise = noise ?? true,\n withStarfield = false,\n classNames,\n testId,\n}: AmbientBackgroundProps) => {\n if (glow !== undefined) warnRenamedProp(\"AmbientBackground\", \"glow\", \"withGlow\")\n if (noise !== undefined) warnRenamedProp(\"AmbientBackground\", \"noise\", \"withNoise\")\n return (\n <>\n {withGlow && (\n <div\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none fixed inset-0 -z-10 forced-colors:hidden\",\n classNames?.glow,\n )}\n style={{ backgroundImage: \"var(--ambient-glow)\" }}\n {...props({ \"data-testid\": testId && `${testId}-glow` })}\n />\n )}\n {withNoise && (\n <div\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none fixed inset-0 -z-10 bg-repeat forced-colors:hidden\",\n classNames?.noise,\n )}\n style={{ backgroundImage: \"var(--ambient-noise)\" }}\n {...props({ \"data-testid\": testId && `${testId}-noise` })}\n />\n )}\n {withStarfield && <Starfield classNames={classNames} testId={testId} />}\n </>\n )\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"starfield.d.ts","sourceRoot":"","sources":["../../../src/components/ambient-background/starfield.tsx"],"names":[],"mappings":"AAmMA,MAAM,MAAM,mBAAmB,GAAG;IAChC,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,SAAS,4BAGnB;IACD,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,gCAwHA,CAAA"}
1
+ {"version":3,"file":"starfield.d.ts","sourceRoot":"","sources":["../../../src/components/ambient-background/starfield.tsx"],"names":[],"mappings":"AA0KA,MAAM,MAAM,mBAAmB,GAAG;IAChC,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,SAAS,4BAGnB;IACD,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,gCAwHA,CAAA"}