@eluan/core 0.5.1 → 0.7.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 (417) hide show
  1. package/README.md +41 -3
  2. package/bin/eluan.mjs +75 -0
  3. package/bin/lib/check.mjs +271 -0
  4. package/bin/lib/skill.mjs +123 -0
  5. package/dist/{action-popover-D6K9aVFk.cjs → action-popover-Bt7U0g8y.cjs} +1 -1
  6. package/dist/{action-popover-BVJQBuky.js → action-popover-jEeycwXM.js} +2 -2
  7. package/dist/action-popover.cjs +1 -1
  8. package/dist/action-popover.js +1 -1
  9. package/dist/{avatar-CS5f1irF.js → avatar-C1LUOzjw.js} +1 -1
  10. package/dist/{avatar-Co-k8KqV.cjs → avatar-SwIO4oyt.cjs} +1 -1
  11. package/dist/avatar.cjs +1 -1
  12. package/dist/avatar.js +1 -1
  13. package/dist/badge-BLInSFM-.cjs +1 -0
  14. package/dist/{badge-D9NYZFWH.js → badge-Bj7i1Xf5.js} +20 -18
  15. package/dist/badge.cjs +1 -1
  16. package/dist/badge.js +1 -1
  17. package/dist/{banner-CyYFLZXw.js → banner-BqEziMp4.js} +11 -12
  18. package/dist/banner-C8OECYHz.cjs +1 -0
  19. package/dist/banner.cjs +1 -1
  20. package/dist/banner.js +1 -1
  21. package/dist/box-DG-tkaYi.cjs +1 -0
  22. package/dist/box-DKbNgGGG.js +17 -0
  23. package/dist/box.cjs +1 -0
  24. package/dist/box.d.ts +1 -0
  25. package/dist/box.js +5 -0
  26. package/dist/{breadcrumb-NWXeCH5q.cjs → breadcrumb-BGH_YhOZ.cjs} +1 -1
  27. package/dist/{breadcrumb-Cm1nb9Xj.js → breadcrumb-BVXSOA4Z.js} +2 -2
  28. package/dist/breadcrumb.cjs +1 -1
  29. package/dist/breadcrumb.js +1 -1
  30. package/dist/button-BUHQOcAo.cjs +1 -0
  31. package/dist/{button-ANAPDrvs.js → button-fCYiYUPE.js} +69 -60
  32. package/dist/button.cjs +1 -1
  33. package/dist/button.js +1 -1
  34. package/dist/calendar-2s_jGUBa.cjs +76 -0
  35. package/dist/{calendar-BpBsomy5.js → calendar-BN9BkjO_.js} +22 -22
  36. package/dist/calendar.cjs +1 -1
  37. package/dist/calendar.js +1 -1
  38. package/dist/card-CfSvhkGH.js +81 -0
  39. package/dist/card-DlP39QSZ.cjs +1 -0
  40. package/dist/card.cjs +1 -1
  41. package/dist/card.js +1 -1
  42. package/dist/{carousel-DuP0hvF-.js → carousel-BO6KUdP8.js} +1 -1
  43. package/dist/{carousel-BfL7oy_q.cjs → carousel-dypuabh8.cjs} +1 -1
  44. package/dist/carousel.cjs +1 -1
  45. package/dist/carousel.js +1 -1
  46. package/dist/{checkbox-Bi0Kmuut.js → checkbox-CGUTGery.js} +1 -1
  47. package/dist/{checkbox-M8DmWKiC.cjs → checkbox-Cq9sHU_S.cjs} +1 -1
  48. package/dist/{checkbox-group-KBwPhjmW.cjs → checkbox-group-DGXZ4o2-.cjs} +1 -1
  49. package/dist/{checkbox-group-CQMEJnhD.js → checkbox-group-Tkio3IhK.js} +1 -1
  50. package/dist/checkbox-group.cjs +1 -1
  51. package/dist/checkbox-group.js +1 -1
  52. package/dist/checkbox.cjs +1 -1
  53. package/dist/checkbox.js +1 -1
  54. package/dist/{code-block-C9u140Ob.js → code-block-CAXUOKNI.js} +10 -10
  55. package/dist/{code-block-_dFw7Su1.cjs → code-block-Co8uGXiG.cjs} +2 -2
  56. package/dist/code-block.cjs +1 -1
  57. package/dist/code-block.js +1 -1
  58. package/dist/command-C50Jkuv7.js +132 -0
  59. package/dist/command-DqNgPVsf.cjs +9 -0
  60. package/dist/command.cjs +1 -1
  61. package/dist/command.js +1 -1
  62. package/dist/components/box.d.ts +12 -0
  63. package/dist/components/card.d.ts +7 -2
  64. package/dist/components/grid.d.ts +35 -0
  65. package/dist/components/icon.d.ts +26 -0
  66. package/dist/components/input.d.ts +1 -1
  67. package/dist/components/layout-shared.d.ts +307 -0
  68. package/dist/components/navigation-drawer.d.ts +25 -5
  69. package/dist/components/row.d.ts +18 -0
  70. package/dist/components/stack.d.ts +14 -0
  71. package/dist/components/table.d.ts +8 -4
  72. package/dist/components/tone-shared.d.ts +39 -0
  73. package/dist/components/typography.d.ts +22 -2
  74. package/dist/components/visually-hidden.d.ts +11 -0
  75. package/dist/{context-menu-Bd6m1RYU.js → context-menu-CTyczUjx.js} +34 -34
  76. package/dist/context-menu-oQ6xMN6t.cjs +1 -0
  77. package/dist/context-menu.cjs +1 -1
  78. package/dist/context-menu.js +1 -1
  79. package/dist/{credit-card-input-CUqA9CX3.cjs → credit-card-input-C6oNQBAl.cjs} +1 -1
  80. package/dist/{credit-card-input-DN-8vaFj.js → credit-card-input-aYftFdRo.js} +1 -1
  81. package/dist/credit-card-input.cjs +1 -1
  82. package/dist/credit-card-input.js +1 -1
  83. package/dist/{date-picker-ni8td8Ru.js → date-picker-DK-G61Nn.js} +3 -3
  84. package/dist/{date-picker-DGBsfZXx.cjs → date-picker-D_aU_P3A.cjs} +1 -1
  85. package/dist/date-picker.cjs +1 -1
  86. package/dist/date-picker.js +1 -1
  87. package/dist/{datetime-picker-C1d63MaA.cjs → datetime-picker-897BvwxW.cjs} +1 -1
  88. package/dist/{datetime-picker-DsnHYRK-.js → datetime-picker-CECtSobs.js} +4 -4
  89. package/dist/datetime-picker.cjs +1 -1
  90. package/dist/datetime-picker.js +1 -1
  91. package/dist/decimal-input-B7IHYVXP.cjs +1 -0
  92. package/dist/decimal-input-ohejnbQg.js +177 -0
  93. package/dist/decimal-input.cjs +1 -1
  94. package/dist/decimal-input.js +1 -1
  95. package/dist/dialog-DIGW7qln.cjs +1 -0
  96. package/dist/dialog-DVhnZFqE.js +64 -0
  97. package/dist/dialog.cjs +1 -1
  98. package/dist/dialog.js +1 -1
  99. package/dist/dropdown-menu-BV2rX_ow.cjs +1 -0
  100. package/dist/dropdown-menu-C6NPtU9J.js +115 -0
  101. package/dist/dropdown-menu.cjs +1 -1
  102. package/dist/dropdown-menu.js +1 -1
  103. package/dist/{email-input-pX0hlYV3.js → email-input-CRd87a_c.js} +1 -1
  104. package/dist/{email-input-DFI4h_KN.cjs → email-input-Dvj1xSzJ.cjs} +1 -1
  105. package/dist/email-input.cjs +1 -1
  106. package/dist/email-input.js +1 -1
  107. package/dist/{fieldset-5V8wx-KE.js → fieldset-BxINrO_H.js} +6 -6
  108. package/dist/fieldset-C6cahGeV.cjs +1 -0
  109. package/dist/fieldset.cjs +1 -1
  110. package/dist/fieldset.js +1 -1
  111. package/dist/file-input-BzYcnore.cjs +1 -0
  112. package/dist/{file-input-B_aBgxmT.js → file-input-Ch16hNA1.js} +55 -55
  113. package/dist/file-input.cjs +1 -1
  114. package/dist/file-input.js +1 -1
  115. package/dist/{footer-DB0_-IwN.cjs → footer-B-fRLhqP.cjs} +1 -1
  116. package/dist/{footer-B3KUIwXW.js → footer-BiiV6-ZD.js} +9 -9
  117. package/dist/footer.cjs +1 -1
  118. package/dist/footer.js +1 -1
  119. package/dist/grid-BDz4Xs6M.cjs +1 -0
  120. package/dist/grid-BX5vZjDo.js +612 -0
  121. package/dist/grid.cjs +1 -0
  122. package/dist/grid.d.ts +1 -0
  123. package/dist/grid.js +5 -0
  124. package/dist/header-CvhqGcuo.cjs +1 -0
  125. package/dist/{header-CDOWlOAR.js → header-DwvyTpRi.js} +22 -22
  126. package/dist/header.cjs +1 -1
  127. package/dist/header.js +1 -1
  128. package/dist/hover-card-BQpzaazK.js +21 -0
  129. package/dist/{hover-card-C5KsTSZR.cjs → hover-card-V5A1HzEu.cjs} +1 -1
  130. package/dist/hover-card.cjs +1 -1
  131. package/dist/hover-card.js +1 -1
  132. package/dist/icon-BmLOodCQ.cjs +1 -0
  133. package/dist/icon-BwDfkIdR.js +153 -0
  134. package/dist/icon.cjs +1 -0
  135. package/dist/icon.d.ts +1 -0
  136. package/dist/icon.js +5 -0
  137. package/dist/index.cjs +10 -5
  138. package/dist/index.d.ts +6 -0
  139. package/dist/index.js +593 -516
  140. package/dist/input-Dtr0tlf7.cjs +1 -0
  141. package/dist/input-Zs45H33i.js +131 -0
  142. package/dist/input-otp-D-T32R3O.cjs +1 -0
  143. package/dist/{input-otp-DmEGB1nu.js → input-otp-DwdX6VlR.js} +33 -33
  144. package/dist/input-otp.cjs +1 -1
  145. package/dist/input-otp.js +1 -1
  146. package/dist/input.cjs +1 -1
  147. package/dist/input.js +1 -1
  148. package/dist/layout-shared-B_1iX4Hj.js +319 -0
  149. package/dist/layout-shared-CsBZcT4V.cjs +1 -0
  150. package/dist/{menubar-F1_bhmku.js → menubar-CodcV4b7.js} +28 -28
  151. package/dist/menubar-bOYi1jKo.cjs +1 -0
  152. package/dist/menubar.cjs +1 -1
  153. package/dist/menubar.js +1 -1
  154. package/dist/multi-select-ChfbxrG3.js +85 -0
  155. package/dist/multi-select-D573XqUT.cjs +1 -0
  156. package/dist/multi-select.cjs +1 -1
  157. package/dist/multi-select.js +1 -1
  158. package/dist/navigation-drawer-C7YYtBXz.js +198 -0
  159. package/dist/navigation-drawer-Cu2q1NMn.cjs +1 -0
  160. package/dist/navigation-drawer.cjs +1 -1
  161. package/dist/navigation-drawer.js +1 -1
  162. package/dist/{navigation-menu-BjA-PdMY.js → navigation-menu-BEp603xA.js} +16 -16
  163. package/dist/{navigation-menu-BtpLfxHN.cjs → navigation-menu-tw5cD7mL.cjs} +2 -2
  164. package/dist/navigation-menu.cjs +1 -1
  165. package/dist/navigation-menu.js +1 -1
  166. package/dist/number-input-C1RS-p2C.js +66 -0
  167. package/dist/number-input-N3-IvxZT.cjs +1 -0
  168. package/dist/number-input.cjs +1 -1
  169. package/dist/number-input.js +1 -1
  170. package/dist/{pagination-4IuE_APs.cjs → pagination-C6e9oVes.cjs} +1 -1
  171. package/dist/{pagination-DTWRjiOm.js → pagination-XlaE-Plb.js} +32 -32
  172. package/dist/pagination.cjs +1 -1
  173. package/dist/pagination.js +1 -1
  174. package/dist/{password-input-B9V45d3Q.js → password-input-CR6FT6Rh.js} +2 -2
  175. package/dist/{password-input-BwnlHPbX.cjs → password-input-CZ19HPZd.cjs} +1 -1
  176. package/dist/password-input.cjs +1 -1
  177. package/dist/password-input.js +1 -1
  178. package/dist/{phone-input-BQjZj5jI.cjs → phone-input-BZhkLmI6.cjs} +1 -1
  179. package/dist/{phone-input-CSBpGHvI.js → phone-input-CT9W87M7.js} +2 -2
  180. package/dist/phone-input.cjs +1 -1
  181. package/dist/phone-input.js +1 -1
  182. package/dist/popover-CE0n5BQv.cjs +1 -0
  183. package/dist/popover-CguR4kP7.js +70 -0
  184. package/dist/popover.cjs +1 -1
  185. package/dist/popover.js +1 -1
  186. package/dist/{progress-Dz_it5I-.js → progress-BpUNvswZ.js} +8 -7
  187. package/dist/progress-DSy_jRee.cjs +1 -0
  188. package/dist/progress.cjs +1 -1
  189. package/dist/progress.js +1 -1
  190. package/dist/providers/create-theme.d.ts +11 -2
  191. package/dist/providers/eluan-provider.d.ts +8 -6
  192. package/dist/{radio-group-C--1neiq.cjs → radio-group-9gozRouT.cjs} +1 -1
  193. package/dist/{radio-group-CNMPZx_2.js → radio-group-Bs9933bk.js} +6 -6
  194. package/dist/radio-group.cjs +1 -1
  195. package/dist/radio-group.js +1 -1
  196. package/dist/{rich-text-BZSyuYSo.js → rich-text-CuAa5WkV.js} +21 -21
  197. package/dist/{rich-text-DerWxzdn.cjs → rich-text-p7H-0qE7.cjs} +2 -2
  198. package/dist/rich-text.cjs +1 -1
  199. package/dist/rich-text.js +1 -1
  200. package/dist/row-BYAk7G5d.js +37 -0
  201. package/dist/row-Bjn-GQAC.cjs +1 -0
  202. package/dist/row.cjs +1 -0
  203. package/dist/row.d.ts +1 -0
  204. package/dist/row.js +5 -0
  205. package/dist/{search-input-bFNW6oiE.js → search-input-CxKLBmii.js} +53 -53
  206. package/dist/{search-input-Dmmo-BEL.cjs → search-input-XmoL2YjY.cjs} +1 -1
  207. package/dist/search-input.cjs +1 -1
  208. package/dist/search-input.js +1 -1
  209. package/dist/select-BCDam7PR.cjs +1 -0
  210. package/dist/select-QgjG43ye.js +119 -0
  211. package/dist/select.cjs +1 -1
  212. package/dist/select.js +1 -1
  213. package/dist/sheet-BxNmBMti.cjs +1 -0
  214. package/dist/{sheet-D5HWF66e.js → sheet-D0hVuH9a.js} +7 -7
  215. package/dist/sheet.cjs +1 -1
  216. package/dist/sheet.js +1 -1
  217. package/dist/slider-Cv7uIp4z.js +16 -0
  218. package/dist/slider-Dci7KGjg.cjs +1 -0
  219. package/dist/slider.cjs +1 -1
  220. package/dist/slider.js +1 -1
  221. package/dist/stack-Ck1w2iJu.cjs +1 -0
  222. package/dist/stack-D2btWM1t.js +27 -0
  223. package/dist/stack.cjs +1 -0
  224. package/dist/stack.d.ts +1 -0
  225. package/dist/stack.js +5 -0
  226. package/dist/{stepper-D5nDwJUz.cjs → stepper-ByYKX7qw.cjs} +1 -1
  227. package/dist/{stepper-BtlKiHtd.js → stepper-Copsj87A.js} +4 -4
  228. package/dist/stepper.cjs +1 -1
  229. package/dist/stepper.js +1 -1
  230. package/dist/styles.css +1205 -189
  231. package/dist/switch-DQ4R-gjR.cjs +1 -0
  232. package/dist/switch-WaESqUuN.js +9 -0
  233. package/dist/switch.cjs +1 -1
  234. package/dist/switch.js +1 -1
  235. package/dist/table-YKEWGYnI.js +149 -0
  236. package/dist/table-zbkgP43L.cjs +1 -0
  237. package/dist/table.cjs +1 -1
  238. package/dist/table.js +1 -1
  239. package/dist/tabs-BwNIi7Dl.js +22 -0
  240. package/dist/tabs-DItFd2o9.cjs +1 -0
  241. package/dist/tabs.cjs +1 -1
  242. package/dist/tabs.js +1 -1
  243. package/dist/textarea-BWAPWDRt.js +8 -0
  244. package/dist/textarea-CniUTipL.cjs +1 -0
  245. package/dist/textarea.cjs +1 -1
  246. package/dist/textarea.js +1 -1
  247. package/dist/{time-input-BPoFvoeM.js → time-input-CeJVQKWO.js} +68 -68
  248. package/dist/time-input-eVFFYo10.cjs +1 -0
  249. package/dist/time-input.cjs +1 -1
  250. package/dist/time-input.js +1 -1
  251. package/dist/{toast-BK0ulAzi.cjs → toast-84RpQJtn.cjs} +1 -1
  252. package/dist/{toast-hI3pdZ2X.js → toast-BGKaAZwf.js} +1 -1
  253. package/dist/toast.cjs +1 -1
  254. package/dist/toast.js +1 -1
  255. package/dist/{toggle-Dv1VZ5Le.js → toggle-CxHqX2-V.js} +11 -11
  256. package/dist/toggle-DrJJAflI.cjs +1 -0
  257. package/dist/toggle-group-DvoxSJMq.cjs +1 -0
  258. package/dist/{toggle-group-DE8BPZih.js → toggle-group-k-kiBnEe.js} +21 -21
  259. package/dist/toggle-group.cjs +1 -1
  260. package/dist/toggle-group.js +1 -1
  261. package/dist/toggle.cjs +1 -1
  262. package/dist/toggle.js +1 -1
  263. package/dist/{tooltip-DZqn4wKl.js → tooltip-1Biy6A0m.js} +3 -3
  264. package/dist/{tooltip-faf1dIXp.cjs → tooltip-DIerl2vz.cjs} +1 -1
  265. package/dist/tooltip.cjs +1 -1
  266. package/dist/tooltip.js +1 -1
  267. package/dist/{tree-view-CyeJR7cW.js → tree-view-Bswh2RGr.js} +37 -37
  268. package/dist/tree-view-DDX9QjzF.cjs +1 -0
  269. package/dist/tree-view.cjs +1 -1
  270. package/dist/tree-view.js +1 -1
  271. package/dist/visually-hidden-BQMRYGxP.js +14 -0
  272. package/dist/visually-hidden-DzxxOswl.cjs +1 -0
  273. package/dist/visually-hidden.cjs +1 -0
  274. package/dist/visually-hidden.d.ts +1 -0
  275. package/dist/visually-hidden.js +5 -0
  276. package/package.json +12 -8
  277. package/skills/eluan/DESIGN.md +411 -0
  278. package/skills/eluan/SKILL.md +202 -0
  279. package/skills/eluan/components/accordion.md +212 -0
  280. package/skills/eluan/components/action-popover.md +266 -0
  281. package/skills/eluan/components/aspect-ratio.md +169 -0
  282. package/skills/eluan/components/avatar.md +277 -0
  283. package/skills/eluan/components/badge.md +190 -0
  284. package/skills/eluan/components/banner.md +247 -0
  285. package/skills/eluan/components/box.md +166 -0
  286. package/skills/eluan/components/breadcrumb.md +240 -0
  287. package/skills/eluan/components/button.md +214 -0
  288. package/skills/eluan/components/calendar.md +192 -0
  289. package/skills/eluan/components/card.md +271 -0
  290. package/skills/eluan/components/carousel.md +274 -0
  291. package/skills/eluan/components/checkbox-group.md +228 -0
  292. package/skills/eluan/components/checkbox.md +226 -0
  293. package/skills/eluan/components/code-block.md +193 -0
  294. package/skills/eluan/components/collapsible.md +240 -0
  295. package/skills/eluan/components/command.md +359 -0
  296. package/skills/eluan/components/context-menu.md +296 -0
  297. package/skills/eluan/components/credit-card-input.md +217 -0
  298. package/skills/eluan/components/date-picker.md +255 -0
  299. package/skills/eluan/components/date-time-picker.md +196 -0
  300. package/skills/eluan/components/decimal-input.md +232 -0
  301. package/skills/eluan/components/dialog.md +322 -0
  302. package/skills/eluan/components/drawer.md +292 -0
  303. package/skills/eluan/components/dropdown-menu.md +450 -0
  304. package/skills/eluan/components/email-input.md +200 -0
  305. package/skills/eluan/components/fieldset.md +219 -0
  306. package/skills/eluan/components/file-input.md +249 -0
  307. package/skills/eluan/components/footer.md +290 -0
  308. package/skills/eluan/components/form-label.md +254 -0
  309. package/skills/eluan/components/grid.md +192 -0
  310. package/skills/eluan/components/header.md +242 -0
  311. package/skills/eluan/components/hover-card.md +215 -0
  312. package/skills/eluan/components/icon.md +161 -0
  313. package/skills/eluan/components/input-otp.md +227 -0
  314. package/skills/eluan/components/input.md +249 -0
  315. package/skills/eluan/components/kbd.md +216 -0
  316. package/skills/eluan/components/media.md +244 -0
  317. package/skills/eluan/components/menubar.md +300 -0
  318. package/skills/eluan/components/multi-select.md +221 -0
  319. package/skills/eluan/components/navigation-drawer.md +297 -0
  320. package/skills/eluan/components/navigation-menu.md +291 -0
  321. package/skills/eluan/components/number-input.md +190 -0
  322. package/skills/eluan/components/pagination.md +262 -0
  323. package/skills/eluan/components/password-input.md +218 -0
  324. package/skills/eluan/components/phone-input.md +205 -0
  325. package/skills/eluan/components/popover.md +250 -0
  326. package/skills/eluan/components/progress.md +185 -0
  327. package/skills/eluan/components/radio-group.md +232 -0
  328. package/skills/eluan/components/rich-text.md +195 -0
  329. package/skills/eluan/components/row.md +174 -0
  330. package/skills/eluan/components/scroll-area.md +203 -0
  331. package/skills/eluan/components/search-input.md +281 -0
  332. package/skills/eluan/components/segmented-control.md +201 -0
  333. package/skills/eluan/components/select.md +296 -0
  334. package/skills/eluan/components/separator.md +179 -0
  335. package/skills/eluan/components/sheet.md +326 -0
  336. package/skills/eluan/components/skeleton.md +202 -0
  337. package/skills/eluan/components/slider.md +195 -0
  338. package/skills/eluan/components/spinner.md +187 -0
  339. package/skills/eluan/components/stack.md +158 -0
  340. package/skills/eluan/components/stepper.md +236 -0
  341. package/skills/eluan/components/switch.md +218 -0
  342. package/skills/eluan/components/table.md +348 -0
  343. package/skills/eluan/components/tabs.md +277 -0
  344. package/skills/eluan/components/textarea.md +202 -0
  345. package/skills/eluan/components/time-input.md +181 -0
  346. package/skills/eluan/components/toast.md +251 -0
  347. package/skills/eluan/components/toggle-group.md +241 -0
  348. package/skills/eluan/components/toggle.md +198 -0
  349. package/skills/eluan/components/tooltip.md +222 -0
  350. package/skills/eluan/components/tree-view.md +213 -0
  351. package/skills/eluan/components/typography.md +210 -0
  352. package/skills/eluan/components/visually-hidden.md +132 -0
  353. package/skills/eluan/foundations/colour.md +257 -0
  354. package/skills/eluan/foundations/elevation.md +86 -0
  355. package/skills/eluan/foundations/iconography.md +70 -0
  356. package/skills/eluan/foundations/look.md +135 -0
  357. package/skills/eluan/foundations/motion.md +60 -0
  358. package/skills/eluan/foundations/radius.md +73 -0
  359. package/skills/eluan/foundations/spacing.md +98 -0
  360. package/skills/eluan/foundations/theming.md +212 -0
  361. package/skills/eluan/foundations/typography.md +169 -0
  362. package/skills/eluan/patterns/app-shell.md +222 -0
  363. package/skills/eluan/patterns/dashboard.md +249 -0
  364. package/skills/eluan/patterns/empty-states.md +78 -0
  365. package/skills/eluan/patterns/feedback.md +95 -0
  366. package/skills/eluan/patterns/forms.md +138 -0
  367. package/skills/eluan/patterns/navigation.md +96 -0
  368. package/skills/eluan/patterns/page-layout.md +185 -0
  369. package/dist/badge-DXKWztL-.cjs +0 -1
  370. package/dist/banner-COlEFRuK.cjs +0 -1
  371. package/dist/button-Ny6OF8Un.cjs +0 -1
  372. package/dist/calendar-7LX5YGGT.cjs +0 -76
  373. package/dist/card-BC_4C3ns.js +0 -70
  374. package/dist/card-C88--zB4.cjs +0 -1
  375. package/dist/command-BCl0seLL.cjs +0 -9
  376. package/dist/command-Chs5VlBL.js +0 -132
  377. package/dist/context-menu-1WehRCpR.cjs +0 -1
  378. package/dist/decimal-input-BLmifKF2.cjs +0 -1
  379. package/dist/decimal-input-yTk35W_5.js +0 -177
  380. package/dist/dialog-B8eWKqzS.js +0 -64
  381. package/dist/dialog-DWYtFhZl.cjs +0 -1
  382. package/dist/dropdown-menu-_h_fqgvS.cjs +0 -1
  383. package/dist/dropdown-menu-p0NkOoTP.js +0 -115
  384. package/dist/fieldset-C3aAINhi.cjs +0 -1
  385. package/dist/file-input-D62FEnKg.cjs +0 -1
  386. package/dist/header-CiZQY_7S.cjs +0 -1
  387. package/dist/hover-card-C_FCzE41.js +0 -21
  388. package/dist/input-BrGJn-D9.cjs +0 -1
  389. package/dist/input-Cccufiqn.js +0 -128
  390. package/dist/input-otp-DcZ7wyjs.cjs +0 -1
  391. package/dist/menubar-CKWQEl7c.cjs +0 -1
  392. package/dist/multi-select-B6NBbDCW.js +0 -85
  393. package/dist/multi-select-kcoUbSwE.cjs +0 -1
  394. package/dist/navigation-drawer-BbeDYPhu.js +0 -171
  395. package/dist/navigation-drawer-DOOHfbY3.cjs +0 -1
  396. package/dist/number-input-Bc7jUsu-.cjs +0 -1
  397. package/dist/number-input-vICbRc2y.js +0 -66
  398. package/dist/popover-DPc4rRsR.js +0 -70
  399. package/dist/popover-Db6VOysz.cjs +0 -1
  400. package/dist/progress-DpQjGEyn.cjs +0 -1
  401. package/dist/select-1Eb3NSrR.cjs +0 -1
  402. package/dist/select-DDSYjKtj.js +0 -119
  403. package/dist/sheet-7NP1LuHy.cjs +0 -1
  404. package/dist/slider-CZQBAXup.js +0 -16
  405. package/dist/slider-DdEOapYP.cjs +0 -1
  406. package/dist/switch-C7EBLT5H.js +0 -9
  407. package/dist/switch-KzBijHMJ.cjs +0 -1
  408. package/dist/table-DopzfXYj.js +0 -101
  409. package/dist/table-xNu_KUaU.cjs +0 -1
  410. package/dist/tabs-C9NKBmH0.js +0 -22
  411. package/dist/tabs-DztJ2iVc.cjs +0 -1
  412. package/dist/textarea-DXUk1b_-.js +0 -8
  413. package/dist/textarea-Dl-daLHR.cjs +0 -1
  414. package/dist/time-input-DR2snTgB.cjs +0 -1
  415. package/dist/toggle-Bvh1v32T.cjs +0 -1
  416. package/dist/toggle-group-SyHMwO90.cjs +0 -1
  417. package/dist/tree-view-CNvEc1TT.cjs +0 -1
@@ -0,0 +1,138 @@
1
+ ---
2
+ name: forms
3
+ ---
4
+
5
+ # Forms
6
+
7
+ ## When this applies
8
+
9
+ Any task that collects input: sign-up and sign-in, settings, filters, checkout, create and edit flows. The router sends "Collect input from the user" here.
10
+
11
+ ## Choosing components
12
+
13
+ | Situation | Use | Not |
14
+ | --- | --- | --- |
15
+ | Short free text | [Input](../components/input.md) | Textarea: one line is expected |
16
+ | Long free text | [Textarea](../components/textarea.md) | Input: it won't wrap |
17
+ | Email, password, phone, number, money, card | [EmailInput](../components/email-input.md), [PasswordInput](../components/password-input.md), [PhoneInput](../components/phone-input.md), [NumberInput](../components/number-input.md), [DecimalInput](../components/decimal-input.md), [CreditCardInput](../components/credit-card-input.md) | Input with your own validation or masking |
18
+ | One choice from a short visible list | [RadioGroup](../components/radio-group.md) | Select: hides options that fit on screen |
19
+ | One choice from a long list | [Select](../components/select.md) | RadioGroup: too tall |
20
+ | Several choices | [CheckboxGroup](../components/checkbox-group.md), or [MultiSelect](../components/multi-select.md) for long lists | several Switches |
21
+ | One yes/no submitted with the form (accept terms) | [Checkbox](../components/checkbox.md) | Switch: implies an immediate effect |
22
+ | An on/off setting that applies immediately | [Switch](../components/switch.md) | Checkbox plus a Save button |
23
+ | A date, range or time | [DatePicker](../components/date-picker.md) and its siblings | Input with `type="date"` |
24
+ | A value on a continuous range | [Slider](../components/slider.md) | NumberInput, unless exact values matter |
25
+ | A one-time code | [InputOTP](../components/input-otp.md) | six Inputs |
26
+ | A file | [FileInput](../components/file-input.md) | a bare `<input type="file">` |
27
+ | A label, hint or error for a field | [Label](../components/form-label.md), FormDescription, FormMessage | Typography or a plain `<p>` |
28
+ | A group of related fields | [Fieldset](../components/fieldset.md) with FieldsetLegend | a Card with a heading |
29
+ | Submit and cancel | [Button](../components/button.md) | links or styled divs |
30
+ | An error for the whole form (server rejected it) | [Banner](../components/banner.md) `variant="destructive"` `position="inline"` at the top of the form | a Toast: it disappears and isn't tied to the form |
31
+
32
+ ## Structure
33
+
34
+ 1. Optional form-level Banner at the top, shown only after a failed submit.
35
+ 2. Fields in one column, in the order the user thinks about them. Each field is a stack: Label, the control, then FormDescription or FormMessage. (`FormLabel` is a deprecated alias of `Label`.)
36
+ 3. Related fields grouped in a Fieldset with a FieldsetLegend.
37
+ 4. Actions last, in a row aligned to the end: secondary (`outline`) first, the one primary (`default`) last.
38
+
39
+ Spacing: stack fields with `gap: var(--spacing-lg)` (the gap Fieldset uses between its children). Inside a field, keep the label, control and message in a stack with `gap: var(--spacing-sm)`. Separate fieldsets with `--spacing-2xl`.
40
+
41
+ ## Rules
42
+
43
+ 1. Give every control a visible Label tied by `htmlFor` and `id`. Use `aria-label` only where a visible label would be redundant (a search field in a toolbar). DatePicker, DateTimePicker, TimeInput, MultiSelect, InputOTP and Slider can't all be tied to a Label this way; follow the labelling workaround in each component's file.
44
+ 2. Mark required fields with Label `required`, or mark the few optional ones with `optional`. Pick one convention per form.
45
+ 3. Show a field error with FormMessage under the field. Set `aria-invalid` on the control (plus `validationTone="destructive"` on a plain Input, the only one that accepts it), and point `aria-describedby` at the FormMessage `id`.
46
+ 4. Validate on submit and on blur, not on every keystroke. Keep the error until the value is fixed.
47
+ 5. Show a form-level error in an inline destructive Banner with `role="alert"`, above the fields. Never use a Toast for an error that blocks the user.
48
+ 6. Use one primary Button per form. Give it `type="submit"`; give every other button `type="button"`.
49
+ 7. Use `autoComplete` attributes on identity fields (`email`, `new-password`, `current-password`, `name`).
50
+ 8. Don't disable the submit button to signal invalid input. Let the user submit and show the errors.
51
+ 9. Settings with Switches save immediately; don't add a Save button for them. Confirm with a Toast if the change isn't visible.
52
+ 10. Never build your own input chrome, error colours or required asterisks. The components already draw them.
53
+
54
+ ## Example
55
+
56
+ ```tsx
57
+ import { useState, type FormEvent } from "react";
58
+ import {
59
+ Banner,
60
+ Button,
61
+ Checkbox,
62
+ EmailInput,
63
+ FormMessage,
64
+ Label,
65
+ Input,
66
+ PasswordInput,
67
+ } from "@eluan/core";
68
+
69
+ export function SignupForm({ onSubmit }: { onSubmit: (data: FormData) => Promise<string | null> }) {
70
+ const [serverError, setServerError] = useState<string | null>(null);
71
+ const [termsError, setTermsError] = useState(false);
72
+
73
+ async function handleSubmit(event: FormEvent<HTMLFormElement>) {
74
+ event.preventDefault();
75
+ const data = new FormData(event.currentTarget);
76
+ if (!data.get("terms")) return setTermsError(true);
77
+ setTermsError(false);
78
+ setServerError(await onSubmit(data));
79
+ }
80
+
81
+ const field = { display: "flex", flexDirection: "column", gap: "var(--spacing-sm)" } as const;
82
+
83
+ return (
84
+ <form onSubmit={handleSubmit} noValidate style={{ display: "flex", flexDirection: "column", gap: "var(--spacing-lg)" }}>
85
+ {serverError && (
86
+ <Banner variant="destructive" position="inline" role="alert">
87
+ {serverError}
88
+ </Banner>
89
+ )}
90
+
91
+ <div style={field}>
92
+ <Label htmlFor="name" required>Name</Label>
93
+ <Input id="name" name="name" autoComplete="name" required />
94
+ </div>
95
+
96
+ <div style={field}>
97
+ <Label htmlFor="email" required>Email</Label>
98
+ <EmailInput id="email" name="email" autoComplete="email" required />
99
+ </div>
100
+
101
+ <div style={field}>
102
+ <Label htmlFor="password" required>Password</Label>
103
+ <PasswordInput id="password" name="password" autoComplete="new-password" required />
104
+ </div>
105
+
106
+ <div style={field}>
107
+ <div style={{ display: "flex", alignItems: "center", gap: "var(--spacing-sm)" }}>
108
+ <Checkbox id="terms" name="terms" aria-invalid={termsError} aria-describedby={termsError ? "terms-error" : undefined} />
109
+ <Label htmlFor="terms">I agree to the terms of service</Label>
110
+ </div>
111
+ {termsError && <FormMessage id="terms-error">Accept the terms to create an account.</FormMessage>}
112
+ </div>
113
+
114
+ <div style={{ display: "flex", justifyContent: "flex-end" }}>
115
+ <Button type="submit">Create account</Button>
116
+ </div>
117
+ </form>
118
+ );
119
+ }
120
+ ```
121
+
122
+ ## Dos and don'ts
123
+
124
+ **Do:** tie each label, control and error together with `htmlFor`, `id` and `aria-describedby`.
125
+
126
+ **Don't:** use placeholder text as the only label.
127
+
128
+ **Do:** put a server error in an inline destructive Banner at the top of the form.
129
+
130
+ **Don't:** report it with a Toast that disappears.
131
+
132
+ **Do:** use a Switch for a setting that takes effect at once.
133
+
134
+ **Don't:** use a Switch for a choice that only applies after Submit; use a Checkbox.
135
+
136
+ ## Common agent mistakes
137
+
138
+ _Filled from evals._
@@ -0,0 +1,96 @@
1
+ ---
2
+ name: navigation
3
+ ---
4
+
5
+ # Navigation
6
+
7
+ ## When this applies
8
+
9
+ Moving between pages, sections or views: app shells, top bars, sidebars, in-page tabs, breadcrumbs and paging. The router sends "Let the user move between views" here.
10
+
11
+ ## Choosing components
12
+
13
+ | Situation | Use | Not |
14
+ | --- | --- | --- |
15
+ | Site or app top bar with logo, links and actions | [Header](../components/header.md) (`logo`, `items`, `actions`) | a hand-built `<nav>` |
16
+ | Top-bar menus with rich dropdown panels | [NavigationMenu](../components/navigation-menu.md) | DropdownMenu: that's for actions, not destinations |
17
+ | App sidebar with sections, collapsible on desktop and a sheet on mobile | [NavigationDrawer](../components/navigation-drawer.md) inside `NavigationDrawerLayout` | Drawer or Sheet with your own links |
18
+ | Switching views of the same object on one page (Overview, Activity, Settings) | [Tabs](../components/tabs.md) | Buttons or links styled as tabs |
19
+ | Switching a mode or filter of the same view (Day, Week, Month) | [SegmentedControl](../components/segmented-control.md) | Tabs: no panels to switch |
20
+ | Showing where the page sits in a hierarchy | [Breadcrumb](../components/breadcrumb.md) | a row of links with slashes |
21
+ | Moving through pages of results | [Pagination](../components/pagination.md) | Previous/Next Buttons you wire yourself |
22
+ | A step-by-step flow | [Stepper](../components/stepper.md) | Tabs: steps have an order |
23
+ | Application menus (File, Edit, View) | [Menubar](../components/menubar.md) | NavigationMenu |
24
+ | A link inside text or a single link-styled action | your router's link, or [Button](../components/button.md) `variant="link"` with `asChild` | Button with an `onClick` that changes the URL |
25
+
26
+ ## Structure
27
+
28
+ - One primary navigation per app: a Header for marketing sites and simple apps, a NavigationDrawer for apps with many sections. Don't stack both as primary nav. For the whole frame of an app (sidebar, content column, page header) read [app-shell.md](./app-shell.md).
29
+ - Breadcrumb sits at the top of the content area, above the page title.
30
+ - Tabs sit directly under the heading of the thing they switch, and their panels follow.
31
+ - Pagination sits under the collection it pages, aligned to the end.
32
+
33
+ ## Rules
34
+
35
+ 1. Navigate with real links (`href`), so middle-click, copy link and the back button work. Use `asChild` on Eluan parts to render your router's link.
36
+ 2. Mark the current page: `active` on Header `NavItem`s and NavigationDrawer items, `BreadcrumbPage` for the last crumb, `aria-current="page"` on any link you compose.
37
+ 3. Use Tabs only when every tab has a panel on the same page. If a tab changes the URL to a different page, it's navigation; use links.
38
+ 4. Never style Buttons or links to look like tabs; keyboard and screen-reader behaviour won't match.
39
+ 5. Keep top-level labels to one or two words, in sentence case.
40
+ 6. Don't hide primary navigation behind a hover-only control. Every menu must open by click and keyboard.
41
+
42
+ ## Example
43
+
44
+ ```tsx
45
+ import {
46
+ Header,
47
+ Stack,
48
+ Tabs,
49
+ TabsContent,
50
+ TabsList,
51
+ TabsTrigger,
52
+ Typography,
53
+ } from "@eluan/core";
54
+
55
+ export function ProjectPage({ name }: { name: string }) {
56
+ return (
57
+ <>
58
+ <Header
59
+ logo={<a href="/">Acme</a>}
60
+ items={[
61
+ { label: "Projects", href: "/projects", active: true },
62
+ { label: "Reports", href: "/reports" },
63
+ { label: "Team", href: "/team" },
64
+ ]}
65
+ />
66
+ <Stack as="main" pad="xl" gap="lg">
67
+ <Typography variant="title" as="h1" size="xl">{name}</Typography>
68
+ <Tabs defaultValue="overview">
69
+ <TabsList>
70
+ <TabsTrigger value="overview">Overview</TabsTrigger>
71
+ <TabsTrigger value="activity">Activity</TabsTrigger>
72
+ <TabsTrigger value="settings">Settings</TabsTrigger>
73
+ </TabsList>
74
+ <TabsContent value="overview">Summary of the project.</TabsContent>
75
+ <TabsContent value="activity">Recent changes.</TabsContent>
76
+ <TabsContent value="settings">Project settings.</TabsContent>
77
+ </Tabs>
78
+ </Stack>
79
+ </>
80
+ );
81
+ }
82
+ ```
83
+
84
+ ## Dos and don'ts
85
+
86
+ **Do:** use Tabs for views of one object on one page.
87
+
88
+ **Don't:** use a row of Buttons with a selected style; Tabs carry the roles and arrow-key behaviour.
89
+
90
+ **Do:** use NavigationDrawer for an app sidebar; it already handles collapse and the mobile sheet.
91
+
92
+ **Don't:** build a sidebar from a Sheet and a list of links.
93
+
94
+ ## Common agent mistakes
95
+
96
+ _Filled from evals._
@@ -0,0 +1,185 @@
1
+ ---
2
+ name: page-layout
3
+ ---
4
+
5
+ # Page layout
6
+
7
+ ## When this applies
8
+
9
+ Laying out any page or screen, and choosing how to show a collection of items. The router sends "Lay out a content page or show a collection" here. For the frame around an app's screens read [app-shell.md](./app-shell.md), and for a screen of figures, charts and tables read [dashboard.md](./dashboard.md); both build on this file.
10
+
11
+ Lay out with the layout primitives: [Stack](../components/stack.md) for vertical flow, [Row](../components/row.md) for a line, [Grid](../components/grid.md) for columns and [Box](../components/box.md) for padding or a child that takes the remaining space. Their `gap` and `pad` props take `--spacing-*` steps by name, so the page re-flows with `data-spacing` along with its components. Positioning, overflow and fixed widths aren't props: put those on a wrapper element you own.
12
+
13
+ ## Two kinds of page
14
+
15
+ Decide which kind you're building before you set any text. The two use different type ramps, and mixing them is the most common way a screen goes wrong.
16
+
17
+ | Kind | What it is | Sits in |
18
+ | --- | --- | --- |
19
+ | **App screen** | A place to work: dashboards, lists, tables, settings, detail views. Dense, full of controls, visited every day. | An app shell with a [NavigationDrawer](../components/navigation-drawer.md) or a compact [Header](../components/header.md). |
20
+ | **Content page** | A place to read: marketing, landing, docs, articles, long-form help. | A site [Header](../components/header.md) and [Footer](../components/footer.md). |
21
+
22
+ When unsure: if the page has a sidebar, a table, filters or stat tiles, it's an app screen.
23
+
24
+ ### Type ramp
25
+
26
+ Eluan has two type scales. The default is fluid and grows by a ratio, for reading. The app typeset is pinned to whole pixels (11, 12, 13, 14, 16, 20, 24) with line heights on a 4px grid, for working. An app of app screens pins it once, at the provider:
27
+
28
+ ```tsx
29
+ <EluanProvider defaultTypeset="app">
30
+ ```
31
+
32
+ On an app screen each variant keeps its role and takes a `size`, which puts headings on the same scale as the controls and tables beside them. Density doesn't change any of these sizes: `data-spacing` moves the room around text, never the text.
33
+
34
+ | Role | Content page | App screen | App typeset |
35
+ | --- | --- | --- | --- |
36
+ | Page title | `variant="title" as="h1"` | `variant="title" as="h1" size="xl"` | 20px, semibold |
37
+ | Line under the title | `variant="lead"` | `size="sm" tone="muted"` | 13px |
38
+ | Section heading | `variant="heading" as="h2"` | `variant="heading" as="h2" size="lg"` | 16px, semibold |
39
+ | Card, panel or group heading | `variant="subheading" as="h3"`, or CardTitle | `variant="subheading" as="h3" size="base"` | 14px, semibold |
40
+ | Body text | `variant="body"` | `size="sm"` | 13px |
41
+ | Meta, timestamps, helper text | `variant="caption" tone="muted"` | `variant="caption" tone="muted"` | 12px |
42
+ | A headline figure (a stat) | — | CardTitle in a stat tile, see [dashboard.md](./dashboard.md) | 20px, semibold |
43
+
44
+ `display` and `lead` are content-page variants. Don't use them on an app screen.
45
+
46
+ Without the app typeset pinned, the same `size` props still work, on the fluid scale: about 28, 22, 18, 14 and 12 pixels on a desktop. Pin the typeset; an app screen on the fluid scale sets every size between pixels.
47
+
48
+ On an app screen keep CardTitle for the figure in a stat tile; name any other card with the card heading from the table, placed in CardHeader, which also gives it a real heading element.
49
+
50
+ ## Choosing components
51
+
52
+ | Situation | Use | Not |
53
+ | --- | --- | --- |
54
+ | Sections, fields or items one above another | [Stack](../components/stack.md) with a `gap` | margins on the children |
55
+ | A title with its actions, a row of buttons | [Row](../components/row.md), `justify="between"` for the ends | a flex spacer `div` |
56
+ | Cards or tiles in columns; a main and side column | [Grid](../components/grid.md) with `cols={{ base: 1, m: 2, l: 4 }}` | a Row that wraps: items don't line up |
57
+ | Items compared across the same attributes (users, invoices) | [Table](../components/table.md) | a grid of Cards: hard to scan across |
58
+ | Items that stand alone and are browsed (projects, plans, articles) | [Card](../components/card.md) in a grid | Table: crams rich content into cells |
59
+ | A few plans or options side by side with one recommended | Cards in a row, one primary Button in the recommended Card, the others `outline` | a Table with Buttons in cells |
60
+ | Long secondary content the user may skip (FAQ, advanced settings) | [Accordion](../components/accordion.md) | many headings on one long page |
61
+ | One collapsible region | [Collapsible](../components/collapsible.md) | Accordion with one item |
62
+ | Settings grouped into sections | headings with [Typography](../components/typography.md), groups in [Fieldset](../components/fieldset.md) or [Card](../components/card.md), [Separator](../components/separator.md) between sections | nested Cards |
63
+ | Hierarchical data | [TreeView](../components/tree-view.md) | nested lists you build |
64
+ | Scrollable region inside a fixed panel | [ScrollArea](../components/scroll-area.md) | `overflow: auto` with custom scrollbars |
65
+ | Media at a fixed ratio | [AspectRatio](../components/aspect-ratio.md) or Image from [Media](../components/media.md) | padding-top hacks |
66
+ | Nothing to show yet | [empty-states.md](./empty-states.md) | an empty Table |
67
+
68
+ ## Structure
69
+
70
+ Every page, top to bottom:
71
+
72
+ 1. Header or NavigationDrawer (see [navigation.md](./navigation.md) and [app-shell.md](./app-shell.md)).
73
+ 2. Optional page Banner.
74
+ 3. Page heading: Breadcrumb if the page sits two or more levels deep, then the page title, then an optional line under it, with page actions aligned to the end of the title row.
75
+ 4. Sections, each with a section heading and its content.
76
+
77
+ Take the title, the line under it and the section headings from the type ramp for the kind of page.
78
+
79
+ Spacing is the same for both kinds: the page is `<Stack as="main" pad="xl" gap="3xl">`; each section is `<Stack as="section" gap="md">` (heading to content); Cards in a grid are `<Grid gap="lg">`; a page header is `<Row justify="between" wrap gap="lg">`.
80
+
81
+ A settings screen (eval t03) is an app screen: one column, sections for Profile, Notifications and Billing, each a heading plus a Fieldset or Card; Switches for notification toggles that save immediately; a Separator between sections.
82
+
83
+ ## Rules
84
+
85
+ 1. Decide whether the page is an app screen or a content page first, and take every text style from that ramp. Never mix the two ramps on one page. An app of app screens pins `defaultTypeset="app"` on EluanProvider.
86
+ 2. Use Stack, Row and Grid for every gap and Box or `pad` for padding, with `--spacing-*` steps. Never put margins on children.
87
+ 3. Limit reading width for text-heavy pages with a max width on your wrapper.
88
+ 4. Use one `h1` per page and keep heading levels in order.
89
+ 5. Don't nest Cards inside Cards. Use Separator or headings to divide a Card.
90
+ 6. Use Table when users compare rows; use Cards when each item is looked at on its own.
91
+ 7. Put one primary action per section at most.
92
+ 8. In an existing app, reuse its page header, section and tile pieces before composing new ones. See [app-shell.md](./app-shell.md).
93
+
94
+ ## Example
95
+
96
+ An app screen: a settings page.
97
+
98
+ ```tsx
99
+ import { Card, CardContent, CardHeader, Label, Row, Separator, Stack, Switch, Typography } from "@eluan/core";
100
+
101
+ export function SettingsScreen() {
102
+ return (
103
+ <Stack as="main" pad="xl" gap="3xl">
104
+ <Stack as="header" gap="xs">
105
+ <Typography variant="title" as="h1" size="xl">Settings</Typography>
106
+ <Typography size="sm" tone="muted">Changes save as you make them.</Typography>
107
+ </Stack>
108
+
109
+ <Stack as="section" gap="md" aria-labelledby="notifications-heading">
110
+ <Typography variant="heading" as="h2" size="lg" id="notifications-heading">Notifications</Typography>
111
+ <Card>
112
+ <CardHeader>
113
+ <Typography variant="subheading" as="h3" size="base">Email</Typography>
114
+ </CardHeader>
115
+ <CardContent>
116
+ <Stack gap="md">
117
+ <Row justify="between">
118
+ <Label htmlFor="product-updates">Product updates</Label>
119
+ <Switch id="product-updates" defaultChecked />
120
+ </Row>
121
+ <Separator />
122
+ <Row justify="between">
123
+ <Label htmlFor="weekly-digest">Weekly digest</Label>
124
+ <Switch id="weekly-digest" />
125
+ </Row>
126
+ </Stack>
127
+ </CardContent>
128
+ </Card>
129
+ </Stack>
130
+ </Stack>
131
+ );
132
+ }
133
+ ```
134
+
135
+ A content page: the top of an article.
136
+
137
+ ```tsx
138
+ import { Stack, Typography } from "@eluan/core";
139
+
140
+ export function ArticleIntro() {
141
+ return (
142
+ <Stack as="main" pad="xl" gap="3xl">
143
+ <Stack as="header" gap="sm">
144
+ <Typography variant="title" as="h1">Moving the billing run to Fridays</Typography>
145
+ <Typography variant="lead">What changes for invoices raised late in the week, and what stays the same.</Typography>
146
+ </Stack>
147
+
148
+ <Stack as="section" gap="md" aria-labelledby="what-changes-heading">
149
+ <Typography variant="heading" as="h2" id="what-changes-heading">What changes</Typography>
150
+ <Typography>Invoices approved after Thursday noon now go out with the following week's run.</Typography>
151
+ </Stack>
152
+ </Stack>
153
+ );
154
+ }
155
+ ```
156
+
157
+ ## Dos and don'ts
158
+
159
+ **Do:** set an app screen's title with `size`, so it sits on the same scale as its controls.
160
+
161
+ ```tsx
162
+ <Typography variant="title" as="h1" size="xl">Invoices</Typography>
163
+ <Typography size="sm" tone="muted">Every invoice raised this quarter.</Typography>
164
+ ```
165
+
166
+ **Don't:** use the content ramp on an app screen. The title and lead tower over the table and filters they introduce.
167
+
168
+ ```tsx
169
+ <Typography variant="title" as="h1">Invoices</Typography>
170
+ <Typography variant="lead" tone="muted">Every invoice raised this quarter.</Typography>
171
+ ```
172
+
173
+ **Do:** pick Table or Card by whether users compare or browse.
174
+
175
+ **Don't:** build a pricing comparison as three Cards each with a primary Button; give only the recommended plan the primary Button.
176
+
177
+ **Do:** lay out with Stack, Row and Grid, and wrap them in your own element only for position, overflow or width.
178
+
179
+ **Don't:** pass `className` or `style` to Card or other components for layout; they're dropped.
180
+
181
+ ## Common agent mistakes
182
+
183
+ - Using `title`, `lead` and `heading` at their content sizes on a dashboard, next to navigation and tables set four steps smaller.
184
+ - Using CardTitle to name a panel on an app screen, which makes the panel's name as large as the page title.
185
+ - Adding a screen to an existing app by copying another screen's markup, instead of reusing the app's shared page header and section pieces.
@@ -1 +0,0 @@
1
- "use client";"use strict";const i=require("react/jsx-runtime"),n=require("@stylexjs/stylex"),o=require("lucide-react");function c(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const x=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(a,e,x.get?x:{enumerable:!0,get:()=>r[e]})}}return a.default=r,Object.freeze(a)}const l=c(n),t={root:{kGNEyG:"x6s0dn4",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",k1xSpc:"x3nfvp2",k63SB2:"xo1l8bm",kIyJzY:"xx6bhzk",k1ekBW:"x1oy24xj",kAMwcw:"xwwtwea",kaRX1h:"xhlp2gg",kZs9gx:"xizkvv5",kiEn40:"x13iak60",k7shQP:"x9v5kkp",kPJHz1:"x4xl6zf",$$css:!0},variantDefault:{kWkggS:"x16e9imx",kVAM5u:"x9r1u3d",kMwMTN:"xiqjl67",$$css:!0},variantSecondary:{kWkggS:"xxajf5l",kVAM5u:"x9r1u3d",kMwMTN:"xwa5xuj",$$css:!0},variantDestructive:{kWkggS:"x186czme",kVAM5u:"x9r1u3d",kMwMTN:"x2lv0vp",$$css:!0},variantOutline:{kWkggS:"xjbqb8w",kVAM5u:"xsdfdjn",kMwMTN:"xwa5xuj",$$css:!0},variantPositive:{kWkggS:"xb41lrr",kVAM5u:"x9r1u3d",kMwMTN:"x31tm2b",$$css:!0},variantCaution:{kWkggS:"xmo15d4",kVAM5u:"x9r1u3d",kMwMTN:"xbonnel",$$css:!0},variantInformative:{kWkggS:"x1jyr6fd",kVAM5u:"x9r1u3d",kMwMTN:"xy06lox",$$css:!0},variantImportant:{kWkggS:"x112gqpl",kVAM5u:"x9r1u3d",kMwMTN:"xjz4iwm",$$css:!0},sizeDefault:{kaIpWk:"x1brvnfc",kGuDYH:"x51wmvv",kOIVth:"x10ci2pi",k8WAf4:"x14aypoh",kg3NbH:"x16ic5xr",$$css:!0},sizeMicrodot:{kaIpWk:"xvowokw",kMzoRj:"xc342km",kGVxlE:"xvsa30g",kZKoxP:"x11su2f7",kmVPX3:"x1717udv",kzqmXN:"xdo0s9d",$$css:!0}},d={default:t.variantDefault,secondary:t.variantSecondary,destructive:t.variantDestructive,outline:t.variantOutline,positive:t.variantPositive,caution:t.variantCaution,informative:t.variantInformative,important:t.variantImportant},v={default:t.sizeDefault,microdot:t.sizeMicrodot};function g({variant:r="default",size:a="default",onRemove:e,removable:x,children:s,...u}){return i.jsxs("span",{...u,...l.props(t.root,d[r],v[a]),children:[a!=="microdot"&&s,a!=="microdot"&&(x||e)&&i.jsx("button",{type:"button",onClick:k=>{k.stopPropagation(),e==null||e()},"aria-label":"Remove",className:"xjbqb8w xc342km x121dvvf x1heor9g x1ypdohk x1tp9seo x146viv x197sbye x1717udv xx6bhzk x19991ni xwwtwea x1o7uuvo xhlp2gg",children:i.jsx(o.X,{"aria-hidden":"true",className:"xwvkxvr xosxg9m"})})]})}exports.Badge=g;
@@ -1 +0,0 @@
1
- "use client";"use strict";const i=require("react/jsx-runtime"),m=require("react"),p=require("@stylexjs/stylex"),v=require("lucide-react");function a(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const x=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,x.get?x:{enumerable:!0,get:()=>t[s]})}}return n.default=t,Object.freeze(n)}const d=a(m),y=a(p),e={root:{kGNEyG:"x6s0dn4",k1xSpc:"x78zum5",kGuDYH:"x1eqnyfr",k63SB2:"xk50ysn",kOIVth:"xpfqfdi",k8WAf4:"x136oad8",kg3NbH:"x1wu0y3b",kVAEAm:"x1n2onr6",kzqmXN:"xh8yej3",$$css:!0},variantDefault:{kWkggS:"x1es4us3",kMwMTN:"x1jcino",$$css:!0},variantDestructive:{kWkggS:"x186czme",kVAM5u:"x1s6lupp",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"x2lv0vp",$$css:!0},variantCaution:{kWkggS:"xt9e4iy",kVAM5u:"xx0afp6",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"xbonnel",$$css:!0},variantPositive:{kWkggS:"x1usg630",kVAM5u:"xwt0pdp",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"x31tm2b",$$css:!0},variantInformative:{kWkggS:"xi08xqc",kVAM5u:"xuo1nyc",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"xy06lox",$$css:!0},variantNeutral:{kWkggS:"x1cqd74s",kVAM5u:"x10cbhzu",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"xwa5xuj",$$css:!0},positionTop:{kkqhue:"x17y0mx6",kVAEAm:"xixxii4",k87sOh:"x13vifvy",kY2c9j:"xa9119d",$$css:!0},positionBottom:{krVfgx:"x1ey2m1c",kkqhue:"x17y0mx6",kVAEAm:"xixxii4",kY2c9j:"xa9119d",$$css:!0},positionInline:{kaIpWk:"x1kcekj6",kVAEAm:"x1n2onr6",$$css:!0}},f={default:e.variantDefault,destructive:e.variantDestructive,caution:e.variantCaution,positive:e.variantPositive,informative:e.variantInformative,neutral:e.variantNeutral},g={top:e.positionTop,bottom:e.positionBottom,inline:e.positionInline},o=d.forwardRef(({variant:t="informative",position:n="inline",icon:s,action:x,dismissible:r=!1,onDismiss:k,children:u,...c},l)=>i.jsxs("div",{ref:l,role:"banner",...c,...y.props(e.root,f[t],g[n]),children:[s&&i.jsx("span",{className:"x2lah0s",children:s}),i.jsx("div",{className:"x98rzlu",children:u}),x&&i.jsx("div",{className:"x2lah0s",children:x}),r&&i.jsx("button",{type:"button",onClick:k,"aria-label":"Dismiss",className:"xjbqb8w xc342km x13pslko x1heor9g x1ypdohk x2lah0s x197sbye x1717udv xx6bhzk x19991ni xwwtwea x1o7uuvo xhlp2gg xpd6547 x13iak60 x9v5kkp x4xl6zf",children:i.jsx(v.X,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})})]}));o.displayName="Banner";exports.Banner=o;
@@ -1 +0,0 @@
1
- "use client";"use strict";const g=require("react/jsx-runtime"),l=require("react"),z=require("@radix-ui/react-slot"),$=require("@stylexjs/stylex");function a(e){const x=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const k in e)if(k!=="default"){const s=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(x,k,s.get?s:{enumerable:!0,get:()=>e[k]})}}return x.default=e,Object.freeze(x)}const m=a(l),w=a($),b=new Set(["default","destructive","caution","positive","secondary"]),t={base:{kGNEyG:"x6s0dn4",kMzoRj:"xc342km",ksu8eU:"x1y0btm7",kVAM5u:"x9r1u3d",kaIpWk:"x1brvnfc",kB7OPa:"x9f619",k1xSpc:"x3nfvp2",kGuDYH:"x1eqnyfr",k63SB2:"xo1l8bm",kOIVth:"x10ci2pi",kjj79g:"xl56j7k",kMnn75:"xkrqix3",kIyJzY:"xx6bhzk",k1ekBW:"xfagghw",kAMwcw:"xwwtwea",khDVqt:"xuxw1ft",kZs9gx:"x9hpe06",kiEn40:"x13iak60",k7shQP:"x9v5kkp",kPJHz1:"x4xl6zf",kWCcOm:"xijokvz",k7HAVu:"xaqnwrm",$$css:!0},variantDefault:{kWkggS:"x16e9imx",kMwMTN:"xiqjl67",kGzVvX:"xpbv5yk",kSReZ0:"xm7h292",$$css:!0},pressNudge:{kOGhaW:"x1wbh0v9",$$css:!0},variantDestructive:{kWkggS:"x8x6dkn",kMwMTN:"x2lv0vp",kGzVvX:"x1xi5543",kSReZ0:"x187msjq",$$css:!0},variantCaution:{kWkggS:"xmo15d4",kVAM5u:"x9r1u3d",kMwMTN:"xbonnel",kGzVvX:"x1s9mtqr",$$css:!0},variantPositive:{kWkggS:"xb41lrr",kVAM5u:"x9r1u3d",kMwMTN:"x31tm2b",kGzVvX:"x10r5eqd",$$css:!0},variantOutline:{kWkggS:"xjbqb8w",kVAM5u:"x13x5e4c",kMzoRj:"xmkeg23",kMwMTN:"x11s2c99",kGzVvX:"x1hatfrw",kSReZ0:"x1mndqio",kc7ZrP:"xsu37zp",$$css:!0},variantDashed:{kWkggS:"xjbqb8w",kVAM5u:"x13x5e4c",ksu8eU:"xbsl7fq",kMzoRj:"xmkeg23",kMwMTN:"xwa5xuj",kGzVvX:"x1hatfrw",kDPRdz:"x8k5dal",kSReZ0:"x1mndqio",$$css:!0},variantSecondary:{kWkggS:"x10u1gfx",kMwMTN:"x9jv8i",kGzVvX:"x94zbfo",$$css:!0},variantGhost:{kWkggS:"xjbqb8w",kMwMTN:"x1yywp0w",kGzVvX:"xcoizge",kDPRdz:"x1disg9r",$$css:!0},variantMutedGhost:{kWkggS:"xjbqb8w",kMwMTN:"xwa5xuj",kGzVvX:"xcoizge",kDPRdz:"x8k5dal",$$css:!0},variantDangerGhost:{kWkggS:"xjbqb8w",kMwMTN:"x1yywp0w",kGzVvX:"x7s1nhc",kDPRdz:"xiv09dq",$$css:!0},variantFadedGhost:{kWkggS:"xjbqb8w",kMwMTN:"x1yywp0w",kSiTet:"x197sbye",kGzVvX:"xcoizge",kDPRdz:"x1disg9r",kKhh5M:"x1o7uuvo",$$css:!0},variantInput:{kWkggS:"xjbqb8w",kVAM5u:"x1suburk",kMzoRj:"xmkeg23",kMwMTN:"x1sjp1m2",k63SB2:"xo1l8bm",kGzVvX:"xcoizge",kD2jPA:"xvp245x",kdODIN:"xhf5aj7",kWC4TW:"x1qg2s8m",kWCcOm:"x1fzehxr",$$css:!0},variantInputMuted:{kWkggS:"xjbqb8w",kVAM5u:"x1suburk",kMzoRj:"xmkeg23",kMwMTN:"x1uuraw0",k63SB2:"xo1l8bm",kGzVvX:"xcoizge",kD2jPA:"xvp245x",kdODIN:"xhf5aj7",kWC4TW:"x1qg2s8m",kWCcOm:"x1fzehxr",$$css:!0},variantLink:{kWkggS:"xjbqb8w",kGVxlE:"x1gnnqk1",kMwMTN:"xcuvo5l",kZKoxP:"xt7dq6l",kmVPX3:"x1717udv",kcSHmL:"x4hby74",kdSwXR:"x1sur9pj",$$css:!0},sizeDefault:{kZKoxP:"x1h5pcsu",k8WAf4:"xrtip4p",kg3NbH:"x16pzmsl",$$css:!0},sizeSm:{kaIpWk:"x1kcekj6",kGuDYH:"x51wmvv",kZKoxP:"x1k4gd0d",kg3NbH:"x1wu0y3b",$$css:!0},sizeLg:{kaIpWk:"x1brvnfc",kGuDYH:"x1j29vfg",kZKoxP:"xlev6zl",kg3NbH:"x1oh0jwc",$$css:!0},sizeIcon:{kZKoxP:"x1h5pcsu",kzqmXN:"xyp5bzy",$$css:!0},sizeIconSm:{kZKoxP:"x1k4gd0d",kzqmXN:"xgszm5s",$$css:!0},sizeIconXs:{kZKoxP:"x5qp8vs",kmVPX3:"x1717udv",kzqmXN:"x1jch5md",$$css:!0},sizeIconInline:{kZKoxP:"xt7dq6l",kmVPX3:"x2k5h2x",kzqmXN:"x14atkfc",$$css:!0},alignStart:{kjj79g:"x1nhvcw1",$$css:!0},fullWidth:{kzqmXN:"xh8yej3",$$css:!0},round:{kaIpWk:"xvowokw",$$css:!0},textLeft:{k9WMMc:"xdpxx8g",$$css:!0},attachmentStart:{kWqL5O:"xgfja2r",ksF3WI:"x1a2w583",kYm2EN:"xjppbhk",$$css:!0},attachmentEnd:{kaZRDh:"xee8mhv",kZ1KPB:"xe0pwq",kIxVMA:"x1ia1hqs",kqGeR4:"xfrllxf",kg3NbH:"x16ic5xr",$$css:!0}},f={default:t.variantDefault,destructive:t.variantDestructive,caution:t.variantCaution,positive:t.variantPositive,outline:t.variantOutline,dashed:t.variantDashed,secondary:t.variantSecondary,ghost:t.variantGhost,mutedGhost:t.variantMutedGhost,dangerGhost:t.variantDangerGhost,fadedGhost:t.variantFadedGhost,input:t.variantInput,inputMuted:t.variantInputMuted,link:t.variantLink},M={default:t.sizeDefault,sm:t.sizeSm,lg:t.sizeLg,icon:t.sizeIcon,iconSm:t.sizeIconSm,iconXs:t.sizeIconXs,iconInline:t.sizeIconInline},n=m.forwardRef(({align:e="center",attachment:x="none",variant:k="default",size:s="default",asChild:r=!1,fullWidth:u=!1,shape:i="default",textAlign:c="center",...o},d)=>{const v=r?z.Slot:"button";return g.jsx(v,{ref:d,...o,...w.props(t.base,M[s],f[k],b.has(k)&&t.pressNudge,e==="start"&&t.alignStart,u&&t.fullWidth,i==="round"&&t.round,c==="left"&&t.textLeft,x==="start"&&t.attachmentStart,x==="end"&&t.attachmentEnd)})});n.displayName="Button";exports.Button=n;
@@ -1,76 +0,0 @@
1
- "use client";"use strict";const e=require("react/jsx-runtime"),S=require("react"),z=require("@stylexjs/stylex"),m=require("lucide-react"),M=require("react-day-picker"),v=require("./button-Ny6OF8Un.cjs"),d=require("./select-1Eb3NSrR.cjs"),N=require("./use-controllable-state-D1HvlFwL.cjs"),q=require("./inject-stylesheet-j6SkUo-d.cjs");function y(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const c=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>n[o]})}}return t.default=n,Object.freeze(t)}const k=y(S),C=y(z),I=["January","February","March","April","May","June","July","August","September","October","November","December"],D=Array.from({length:10},(n,t)=>new Date().getFullYear()-5+t),b=k.createContext(null);function P({calendarMonth:n}){var c;const t=(c=k.useContext(b))==null?void 0:c.setMonth,o=n.date;return e.jsxs("div",{className:"x6s0dn4 x78zum5 xpfqfdi xl56j7k xl6wn3m",children:[e.jsxs(d.Select,{value:String(o.getMonth()),onValueChange:s=>{const l=new Date(o);l.setMonth(Number(s)),t==null||t(l)},children:[e.jsx(d.SelectTrigger,{variant:"calendarCaption",children:e.jsx(d.SelectValue,{})}),e.jsx(d.SelectContent,{layout:"auto",children:I.map((s,l)=>e.jsx(d.SelectItem,{value:String(l),size:"sm",children:s},l))})]}),e.jsxs(d.Select,{value:String(o.getFullYear()),onValueChange:s=>{const l=new Date(o);l.setFullYear(Number(s)),t==null||t(l)},children:[e.jsx(d.SelectTrigger,{variant:"calendarCaption",children:e.jsx(d.SelectValue,{})}),e.jsx(d.SelectContent,{layout:"auto",children:D.map(s=>e.jsx(d.SelectItem,{value:String(s),size:"sm",children:s},s))})]})]})}function p({showOutsideDays:n=!0,disabled:t,components:o,month:c,defaultMonth:s,onMonthChange:l,...h}){const[g,x]=N.useControllableState({value:c,defaultValue:s??new Date,onChange:l});k.useInsertionEffect(()=>{q.ensureStyleSheet("eluan-calendar-styles",T)},[]);const f=k.useMemo(()=>({setMonth:x}),[x]),j=()=>{const i=new Date(g);i.setMonth(i.getMonth()-1),x(i)},w=()=>{const i=new Date(g);i.setMonth(i.getMonth()+1),x(i)},u=h.selected,$=!!(h.mode==="range"&&u&&typeof u=="object"&&"from"in u&&"to"in u&&u.from&&u.to);return e.jsx(b.Provider,{value:f,children:e.jsxs("div",{...{0:{className:"x6s0dn4 x78zum5 xxhr3t xv0kgt4"},1:{className:"x6s0dn4 x78zum5 xxhr3t xv0kgt4 xbyyjgo x47corl"}}[!!t<<0],"aria-disabled":t||void 0,"data-range-complete":$?"":void 0,children:[e.jsx("span",{className:"x2lah0s xj3b58b",children:e.jsx(v.Button,{variant:"ghost",size:"iconXs",onClick:j,disabled:t,"aria-label":"Go to previous month",children:e.jsx(m.ChevronLeft,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})})}),e.jsx(M.DayPicker,{showOutsideDays:n,disabled:t||void 0,month:g,onMonthChange:t?void 0:x,hideNavigation:!0,...h,className:a(r.dayPicker),classNames:{months:a(r.months),month:a(r.month),month_caption:a(r.monthCaption),caption_label:a(r.captionLabel),month_grid:a(r.monthGrid),weekdays:a(r.weekdays),weekday:a(r.weekday),week:a(r.week),day:`${a(r.day)} eluan-calendar-day`,day_button:`${a(r.dayButton)} eluan-calendar-day-button`,range_start:`${a(r.rangeStart)} day-range-start eluan-calendar-range-start`,range_end:`${a(r.rangeEnd)} day-range-end eluan-calendar-range-end`,selected:`${a(r.selected)} eluan-calendar-selected`,today:`${a(r.today)} eluan-calendar-today`,outside:`${a(r.outside)} day-outside`,disabled:a(r.dayDisabled),range_middle:"eluan-calendar-range-middle",hidden:a(r.hidden)},components:{...o,MonthCaption:P}}),e.jsx("span",{className:"x2lah0s x1yf7rl7",children:e.jsx(v.Button,{variant:"ghost",size:"iconXs",onClick:w,disabled:t,"aria-label":"Go to next month",children:e.jsx(m.ChevronRight,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})})})]})})}p.displayName="Calendar";function a(...n){return C.props(...n).className??""}const r={dayPicker:{kzQI83:"x1iyjqo2",k7Eaqz:"xeuugli",k8WAf4:"x10dr8xq",kg3NbH:"xfn1xvj",$$css:!0},months:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf x2kc0e2",kOIVth:"x5p2hoq",kzqmXN:"xh8yej3",$$css:!0},month:{k1xSpc:"x78zum5",kCS8Yb:"x1r8uery",kXwgrk:"xdt5ytf",kzQI83:"x1iyjqo2",kOIVth:"x1e094fc",$$css:!0},monthCaption:{kGNEyG:"x6s0dn4",k1xSpc:"x78zum5",kOIVth:"x10ci2pi",kjj79g:"xl56j7k",kLKAdn:"x1dcz4t3",$$css:!0},captionLabel:{k1xSpc:"x1s85apg",$$css:!0},monthGrid:{kLvRdT:"x1mwwwfo",kzqmXN:"xh8yej3",$$css:!0},weekdays:{k1xSpc:"x78zum5",kzqmXN:"xh8yej3",$$css:!0},weekday:{kaIpWk:"x9nsp9x",kMwMTN:"x1uuraw0",kCS8Yb:"xygxfav",kzQI83:"x1iyjqo2",kmuXW:"x2lah0s",kGuDYH:"xboafo0",k63SB2:"x1iikomf",k7Eaqz:"xeuugli",k9WMMc:"x2b8uid",$$css:!0},week:{k1xSpc:"x78zum5",keoZOQ:"x1gslohp",kzqmXN:"xh8yej3",$$css:!0},day:{kCS8Yb:"xygxfav",kzQI83:"x1iyjqo2",kmuXW:"x2lah0s",kGuDYH:"x1eqnyfr",kZKoxP:"x1k4gd0d",k7Eaqz:"xeuugli",kmVPX3:"x1717udv",kVAEAm:"x1n2onr6",k9WMMc:"x2b8uid",$$css:!0},dayButton:{kGNEyG:"x6s0dn4",kaIpWk:"x1pjcqnp",k1xSpc:"x3nfvp2",kMv6JI:"xpw0y0u",kGuDYH:"x1eqnyfr",k63SB2:"xo1l8bm",kZKoxP:"x1k4gd0d",kjj79g:"xl56j7k",kmVPX3:"x1717udv",kIyJzY:"xx6bhzk",k1ekBW:"x1uwm30f",kAMwcw:"xwji4o3",khDVqt:"xuxw1ft",kzqmXN:"xh8yej3",kGzVvX:"x3wwfir",k4Z53h:"x1u0k1uu",kZs9gx:"x9hpe06",kiEn40:"x13iak60",k7shQP:"x9v5kkp",kPJHz1:"x4xl6zf",$$css:!0},rangeStart:{kWkggS:"x11tn5dx",kaIpWk:"x9nsp9x",kMwMTN:"x1vmo3ik",$$css:!0},rangeEnd:{kWkggS:"x11tn5dx",kqGeR4:"xfrllxf",kYm2EN:"x171lvyb",kIxVMA:"x1ia1hqs",ksF3WI:"x1lodlvp",kMwMTN:"x1vmo3ik",$$css:!0},selected:{kWkggS:"x11tn5dx",kaIpWk:"x9nsp9x",kMwMTN:"x1vmo3ik",$$css:!0},today:{k63SB2:"x1s688f",$$css:!0},outside:{kMwMTN:"x1vkukiw",$$css:!0},dayDisabled:{kMwMTN:"x1vkukiw",kkrTdU:"x1h6gzvc",$$css:!0},hidden:{k33iCy:"xlshs6z",$$css:!0}},T=`
2
- @media (min-width: 640px) {
3
- .${a(r.months)} > div + div {
4
- border-left: 1px solid var(--backgrounds-quaternary);
5
- padding-left: var(--spacing-lg);
6
- }
7
- }
8
- .eluan-calendar-day:has([aria-selected].day-range-end) {
9
- border-bottom-right-radius: var(--curves-lg);
10
- border-top-right-radius: var(--curves-lg);
11
- }
12
- .eluan-calendar-day:has([aria-selected].day-range-end) {
13
- border-bottom-left-radius: 0;
14
- border-top-left-radius: 0;
15
- }
16
- .eluan-calendar-day:has([aria-selected].day-outside) {
17
- background-color: var(--interactive-bg-alt2);
18
- }
19
- .eluan-calendar-day:first-child:has([aria-selected]) {
20
- border-bottom-left-radius: var(--curves-lg);
21
- border-top-left-radius: var(--curves-lg);
22
- }
23
- .eluan-calendar-day:last-child:has([aria-selected]) {
24
- border-bottom-right-radius: var(--curves-lg);
25
- border-top-right-radius: var(--curves-lg);
26
- }
27
- .eluan-calendar-day:focus-within {
28
- position: relative;
29
- z-index: 20;
30
- }
31
- [data-range-complete] .eluan-calendar-range-start {
32
- border-bottom-left-radius: var(--curves-lg);
33
- border-bottom-right-radius: 0;
34
- border-top-left-radius: var(--curves-lg);
35
- border-top-right-radius: 0;
36
- }
37
- .eluan-calendar-selected > button:hover {
38
- background-color: var(--action-primary-bg-hover);
39
- color: var(--interactive-fg-selected);
40
- }
41
- .eluan-calendar-today > button {
42
- position: relative;
43
- }
44
- .eluan-calendar-today > button::after {
45
- background-color: currentColor;
46
- border-radius: var(--radius-radius-full);
47
- content: "";
48
- height: 0.125rem;
49
- left: 50%;
50
- position: absolute;
51
- /* Anchor the keyline just below the digit's baseline rather than a fixed
52
- offset from the cell's bottom edge. 0.6em scales with --font-size-sm
53
- (which is density-driven), so the gap between number and keyline stays
54
- consistent — and clear of the digit — in compact, standard, and wide. */
55
- top: calc(50% + 0.6em);
56
- transform: translateX(-50%);
57
- width: 0.75rem;
58
- }
59
- .day-outside[aria-selected] {
60
- background-color: var(--interactive-bg-alt2);
61
- color: var(--interactive-fg-selected);
62
- }
63
- .eluan-calendar-range-middle[aria-selected] {
64
- background-color: var(--interactive-bg-alt2);
65
- border-radius: 0;
66
- color: var(--interactive-fg-alt);
67
- }
68
- .eluan-calendar-range-middle > button,
69
- .eluan-calendar-range-middle > button:hover {
70
- border-radius: 0;
71
- }
72
- .eluan-calendar-range-middle > button:hover {
73
- background-color: var(--interactive-bg-hover);
74
- color: var(--interactive-fg);
75
- }
76
- `;exports.Calendar=p;
@@ -1,70 +0,0 @@
1
- "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import * as r from "react";
4
- import * as d from "@stylexjs/stylex";
5
- const s = {
6
- root: {
7
- kWkggS: "x1dyo0bm",
8
- kVAM5u: "x1suburk",
9
- kaIpWk: "x9nsp9x",
10
- ksu8eU: "x1y0btm7",
11
- kMzoRj: "xmkeg23",
12
- kMwMTN: "xa18zv3",
13
- $$css: !0
14
- },
15
- elevationNone: {
16
- kGVxlE: "x1gnnqk1",
17
- $$css: !0
18
- },
19
- elevationSm: {
20
- kGVxlE: "xv186zg",
21
- $$css: !0
22
- },
23
- elevationMd: {
24
- kGVxlE: "x1g5awrf",
25
- $$css: !0
26
- },
27
- elevationLg: {
28
- kGVxlE: "xalsa2k",
29
- $$css: !0
30
- },
31
- clickable: {
32
- kkrTdU: "x1ypdohk",
33
- kIyJzY: "x13dflua",
34
- k1ekBW: "xfagghw",
35
- kAMwcw: "xwwtwea",
36
- kwh8RV: "x1jm693o",
37
- kwmNyF: "x14ow2ja",
38
- kSCi1o: "x1gvliiy",
39
- kOGhaW: "x3kbueh",
40
- $$css: !0
41
- }
42
- }, l = {
43
- none: s.elevationNone,
44
- sm: s.elevationSm,
45
- md: s.elevationMd,
46
- lg: s.elevationLg
47
- }, n = r.forwardRef(({
48
- clickable: a = !1,
49
- elevation: e = "sm",
50
- ...t
51
- }, x) => /* @__PURE__ */ o("div", { ref: x, ...t, ...d.props(s.root, l[e], a && s.clickable) }));
52
- n.displayName = "Card";
53
- const i = r.forwardRef((a, e) => /* @__PURE__ */ o("div", { ref: e, ...a, className: "x78zum5 xdt5ytf x1a82l55 xtby20q" }));
54
- i.displayName = "CardHeader";
55
- const m = r.forwardRef((a, e) => /* @__PURE__ */ o("div", { ref: e, ...a, className: "xylgur7 x1wqms48 x1s688f x12oo3zp x1pujyh6" }));
56
- m.displayName = "CardTitle";
57
- const k = r.forwardRef((a, e) => /* @__PURE__ */ o("div", { ref: e, ...a, className: "x4ovqov x1eqnyfr x1ksxc8v" }));
58
- k.displayName = "CardDescription";
59
- const c = r.forwardRef((a, e) => /* @__PURE__ */ o("div", { ref: e, ...a, className: "xn5nh2m x1spb4g1" }));
60
- c.displayName = "CardContent";
61
- const f = r.forwardRef((a, e) => /* @__PURE__ */ o("div", { ref: e, ...a, className: "x6s0dn4 x78zum5 xn5nh2m x1spb4g1" }));
62
- f.displayName = "CardFooter";
63
- export {
64
- n as C,
65
- c as a,
66
- k as b,
67
- f as c,
68
- i as d,
69
- m as e
70
- };
@@ -1 +0,0 @@
1
- "use client";"use strict";const r=require("react/jsx-runtime"),u=require("react"),f=require("@stylexjs/stylex");function d(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const o=d(u),p=d(f),s={root:{kWkggS:"x1dyo0bm",kVAM5u:"x1suburk",kaIpWk:"x9nsp9x",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"xa18zv3",$$css:!0},elevationNone:{kGVxlE:"x1gnnqk1",$$css:!0},elevationSm:{kGVxlE:"xv186zg",$$css:!0},elevationMd:{kGVxlE:"x1g5awrf",$$css:!0},elevationLg:{kGVxlE:"xalsa2k",$$css:!0},clickable:{kkrTdU:"x1ypdohk",kIyJzY:"x13dflua",k1ekBW:"xfagghw",kAMwcw:"xwwtwea",kwh8RV:"x1jm693o",kwmNyF:"x14ow2ja",kSCi1o:"x1gvliiy",kOGhaW:"x3kbueh",$$css:!0}},y={none:s.elevationNone,sm:s.elevationSm,md:s.elevationMd,lg:s.elevationLg},l=o.forwardRef(({clickable:e=!1,elevation:a="sm",...t},n)=>r.jsx("div",{ref:n,...t,...p.props(s.root,y[a],e&&s.clickable)}));l.displayName="Card";const x=o.forwardRef((e,a)=>r.jsx("div",{ref:a,...e,className:"x78zum5 xdt5ytf x1a82l55 xtby20q"}));x.displayName="CardHeader";const c=o.forwardRef((e,a)=>r.jsx("div",{ref:a,...e,className:"xylgur7 x1wqms48 x1s688f x12oo3zp x1pujyh6"}));c.displayName="CardTitle";const i=o.forwardRef((e,a)=>r.jsx("div",{ref:a,...e,className:"x4ovqov x1eqnyfr x1ksxc8v"}));i.displayName="CardDescription";const k=o.forwardRef((e,a)=>r.jsx("div",{ref:a,...e,className:"xn5nh2m x1spb4g1"}));k.displayName="CardContent";const m=o.forwardRef((e,a)=>r.jsx("div",{ref:a,...e,className:"x6s0dn4 x78zum5 xn5nh2m x1spb4g1"}));m.displayName="CardFooter";exports.Card=l;exports.CardContent=k;exports.CardDescription=i;exports.CardFooter=m;exports.CardHeader=x;exports.CardTitle=c;
@@ -1,9 +0,0 @@
1
- "use client";"use strict";const e=require("react/jsx-runtime"),k=require("react"),s=require("cmdk"),g=require("lucide-react"),t=require("./dialog-DWYtFhZl.cjs"),N=require("./separator-CBuhe8MC.cjs");function b(a){const x=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const m in a)if(m!=="default"){const o=Object.getOwnPropertyDescriptor(a,m);Object.defineProperty(x,m,o.get?o:{enumerable:!0,get:()=>a[m]})}}return x.default=a,Object.freeze(x)}const n=b(k),r=n.createContext("default"),h=`
2
- .eluan-command [cmdk-group-heading] {
3
- color: var(--container-fg-alt);
4
- font-size: var(--font-size-xs);
5
- font-weight: 500;
6
- padding-block: var(--spacing-xs);
7
- padding-inline: var(--spacing-xs);
8
- }
9
- `,d=n.forwardRef(({children:a,...x},m)=>{const o=n.useContext(r),{className:j,style:C}={0:{className:"x1dyo0bm x1brvnfc xa18zv3 x78zum5 xdt5ytf x5yr21d xb3r6kr xh8yej3"},1:{className:"x1dyo0bm x1brvnfc xa18zv3 x78zum5 xdt5ytf x5yr21d xb3r6kr xh8yej3 xsdfdjn x1y0btm7 xmkeg23 x1g5awrf"}}[(o==="default")<<0];return e.jsxs(s.Command,{ref:m,...x,className:`${j??""} eluan-command`,style:C,children:[e.jsx("style",{children:h}),a]})});d.displayName=s.Command.displayName;const v=({children:a,title:x="Command Menu",description:m="Search for a command to run.",...o})=>e.jsx(t.Dialog,{...o,children:e.jsxs(t.DialogContent,{layout:"command",children:[e.jsxs("div",{className:"xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s",children:[e.jsx(t.DialogTitle,{children:x}),e.jsx(t.DialogDescription,{children:m})]}),e.jsx(r.Provider,{value:"dialog",children:e.jsx(d,{children:a})})]})}),c=n.forwardRef(({density:a="default",...x},m)=>{const o=n.useContext(r);return e.jsxs("div",{className:"x6s0dn4 x1dyd9yc x1q0q8m5 xso031l x78zum5 x1wu0y3b","cmdk-input-wrapper":"",children:[e.jsx(g.Search,{"aria-hidden":"true",...{0:{className:"x2lah0s xkive58 x1mcl426 xbyyjgo x1vfp87d"},1:{className:"x2lah0s x1mcl426 xbyyjgo xybwzzh x1gtyvus"}}[(o==="dialog")<<0]}),e.jsx(s.Command.Input,{ref:m,...x,...{0:{className:"xjbqb8w xc342km x1brvnfc x1sjp1m2 x78zum5 x1eqnyfr xlev6zl x1t137rt xv0kgt4 xh8yej3 x1ha2oyl xvp245x x1qg2s8m x1s07b3s"},1:{className:"xjbqb8w xc342km x1brvnfc x1sjp1m2 x78zum5 x1eqnyfr x1t137rt xv0kgt4 xh8yej3 x1ha2oyl xvp245x x1qg2s8m x1s07b3s x1h5pcsu"}}[(a==="compact")<<0]})]})});c.displayName=s.Command.Input.displayName;const l=n.forwardRef(({...a},x)=>e.jsx(s.Command.List,{ref:x,...a,className:"xje9jw6 x6ikm8r x1odjw0f"}));l.displayName=s.Command.List.displayName;const i=n.forwardRef(({tone:a="default",...x},m)=>e.jsx(s.Command.Empty,{ref:m,...x,...{0:{className:"x1eqnyfr x18ykd1o x2b8uid"},1:{className:"x1eqnyfr x2b8uid x1uuraw0 xv0kgt4"}}[(a==="muted")<<0]}));i.displayName=s.Command.Empty.displayName;const p=n.forwardRef(({...a},x)=>e.jsx(s.Command.Group,{ref:x,...a,className:"x1sjp1m2 xb3r6kr x1mae58o"}));p.displayName=s.Command.Group.displayName;const u=n.forwardRef(({...a},x)=>e.jsx(s.Command.Separator,{asChild:!0,...a,children:e.jsx(N.Separator,{ref:x,variant:"command"})}));u.displayName=s.Command.Separator.displayName;const y=n.forwardRef(({selected:a=!1,...x},m)=>{const o=n.useContext(r);return e.jsx(s.Command.Item,{ref:m,...x,...{0:{className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x10ci2pi x1t137rt x136oad8 x16ic5xr x1n2onr6 x87ps6o xg6y555 x6cohk3 x12meyfc x1xd8k93 x1m42rp4"},2:{className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x10ci2pi x1t137rt x1n2onr6 x87ps6o xg6y555 x6cohk3 x12meyfc x1xd8k93 x1m42rp4 xrtip4p x1wu0y3b"},1:{className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x10ci2pi x1t137rt x136oad8 x16ic5xr x1n2onr6 x87ps6o xg6y555 x6cohk3 x12meyfc x1xd8k93 x1m42rp4 x1sjp1m2 xk50ysn"},3:{className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x10ci2pi x1t137rt x1n2onr6 x87ps6o xg6y555 x6cohk3 x12meyfc x1xd8k93 x1m42rp4 xrtip4p x1wu0y3b x1sjp1m2 xk50ysn"}}[(o==="dialog")<<1|!!a<<0]})});y.displayName=s.Command.Item.displayName;const f=({...a})=>e.jsx("span",{...a,className:"xwa5xuj x51wmvv x1dor1uw x8x9d4c"});f.displayName="CommandShortcut";exports.Command=d;exports.CommandDialog=v;exports.CommandEmpty=i;exports.CommandGroup=p;exports.CommandInput=c;exports.CommandItem=y;exports.CommandList=l;exports.CommandSeparator=u;exports.CommandShortcut=f;