@crisp-ui-kit/crisp 0.2.0 → 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 (590) hide show
  1. package/README.md +20 -0
  2. package/dist/accordion.css +9 -1
  3. package/dist/appshell.css +12 -4
  4. package/dist/authshell.css +57 -0
  5. package/dist/authshell.d.ts +7 -0
  6. package/dist/avatargroup.css +2 -2
  7. package/dist/badge.css +4 -4
  8. package/dist/barchart.css +13 -5
  9. package/dist/base.css +25 -0
  10. package/dist/board.css +9 -1
  11. package/dist/bulkbar.css +11 -3
  12. package/dist/button.css +16 -2
  13. package/dist/button.d.ts +2 -1
  14. package/dist/card.css +8 -0
  15. package/dist/checkbox.css +17 -1
  16. package/dist/cjs/components/accordion/accordion.js +69 -0
  17. package/dist/cjs/components/accordion/accordion.recipe.js +26 -0
  18. package/dist/cjs/components/accordion/index.js +7 -0
  19. package/dist/cjs/components/avatar/avatar.js +44 -0
  20. package/dist/cjs/components/avatar/avatar.recipe.js +42 -0
  21. package/dist/cjs/components/avatar/index.js +7 -0
  22. package/dist/cjs/components/avatargroup/avatargroup.js +52 -0
  23. package/dist/cjs/components/avatargroup/avatargroup.recipe.js +18 -0
  24. package/dist/cjs/components/avatargroup/index.js +7 -0
  25. package/dist/cjs/components/badge/badge.js +44 -0
  26. package/dist/cjs/components/badge/badge.recipe.js +68 -0
  27. package/dist/cjs/components/badge/index.js +7 -0
  28. package/dist/cjs/components/barchart/barchart.js +45 -0
  29. package/dist/cjs/components/barchart/barchart.recipe.js +34 -0
  30. package/dist/cjs/components/barchart/index.js +7 -0
  31. package/dist/cjs/components/breadcrumb/breadcrumb.js +53 -0
  32. package/dist/cjs/components/breadcrumb/breadcrumb.recipe.js +21 -0
  33. package/dist/cjs/components/breadcrumb/index.js +7 -0
  34. package/dist/cjs/components/bulkbar/bulkbar.js +53 -0
  35. package/dist/cjs/components/bulkbar/bulkbar.recipe.js +31 -0
  36. package/dist/cjs/components/bulkbar/index.js +8 -0
  37. package/dist/cjs/components/button/button.js +62 -0
  38. package/dist/cjs/components/button/button.recipe.js +58 -0
  39. package/dist/cjs/components/button/index.js +7 -0
  40. package/dist/cjs/components/callout/callout.js +25 -0
  41. package/dist/cjs/components/callout/callout.recipe.js +29 -0
  42. package/dist/cjs/components/callout/index.js +7 -0
  43. package/dist/cjs/components/card/card.js +54 -0
  44. package/dist/cjs/components/card/card.recipe.js +31 -0
  45. package/dist/cjs/components/card/index.js +10 -0
  46. package/dist/cjs/components/checkbox/checkbox.js +56 -0
  47. package/dist/cjs/components/checkbox/checkbox.recipe.js +34 -0
  48. package/dist/cjs/components/checkbox/index.js +7 -0
  49. package/dist/cjs/components/columncalc/columncalc.js +139 -0
  50. package/dist/cjs/components/columncalc/columncalc.recipe.js +33 -0
  51. package/dist/cjs/components/columncalc/index.js +10 -0
  52. package/dist/cjs/components/contextmenu/contextmenu.js +78 -0
  53. package/dist/cjs/components/contextmenu/contextmenu.recipe.js +24 -0
  54. package/dist/cjs/components/contextmenu/index.js +7 -0
  55. package/dist/cjs/components/datatable/datatable.js +508 -0
  56. package/dist/cjs/components/datatable/datatable.recipe.js +113 -0
  57. package/dist/cjs/components/datatable/index.js +7 -0
  58. package/dist/cjs/components/datepicker/datepicker.js +153 -0
  59. package/dist/cjs/components/datepicker/datepicker.recipe.js +180 -0
  60. package/dist/cjs/components/datepicker/index.js +19 -0
  61. package/dist/cjs/components/datepickerfield/datepickerfield.js +85 -0
  62. package/dist/cjs/components/datepickerfield/datepickerfield.recipe.js +44 -0
  63. package/dist/cjs/components/datepickerfield/index.js +7 -0
  64. package/dist/cjs/components/dialog/dialog.js +86 -0
  65. package/dist/cjs/components/dialog/dialog.recipe.js +35 -0
  66. package/dist/cjs/components/dialog/index.js +9 -0
  67. package/dist/cjs/components/divider/divider.js +10 -0
  68. package/dist/cjs/components/divider/divider.recipe.js +17 -0
  69. package/dist/cjs/components/divider/index.js +7 -0
  70. package/dist/cjs/components/donutchart/donutchart.js +41 -0
  71. package/dist/cjs/components/donutchart/donutchart.recipe.js +30 -0
  72. package/dist/cjs/components/donutchart/index.js +7 -0
  73. package/dist/cjs/components/drawer/drawer.js +80 -0
  74. package/dist/cjs/components/drawer/drawer.recipe.js +30 -0
  75. package/dist/cjs/components/drawer/index.js +9 -0
  76. package/dist/cjs/components/emptystate/emptystate.js +10 -0
  77. package/dist/cjs/components/emptystate/emptystate.recipe.js +34 -0
  78. package/dist/cjs/components/emptystate/index.js +7 -0
  79. package/dist/cjs/components/formfield/formfield.js +50 -0
  80. package/dist/cjs/components/formfield/formfield.recipe.js +22 -0
  81. package/dist/cjs/components/formfield/index.js +7 -0
  82. package/dist/cjs/components/input/index.js +7 -0
  83. package/dist/cjs/components/input/input.js +47 -0
  84. package/dist/cjs/components/input/input.recipe.js +59 -0
  85. package/dist/cjs/components/kbd/index.js +7 -0
  86. package/dist/cjs/components/kbd/kbd.js +44 -0
  87. package/dist/cjs/components/kbd/kbd.recipe.js +23 -0
  88. package/dist/cjs/components/linechart/index.js +7 -0
  89. package/dist/cjs/components/linechart/linechart.js +57 -0
  90. package/dist/cjs/components/linechart/linechart.recipe.js +35 -0
  91. package/dist/cjs/components/menu/index.js +14 -0
  92. package/dist/cjs/components/menu/menu-keyboard.js +117 -0
  93. package/dist/cjs/components/menu/menu.js +144 -0
  94. package/dist/cjs/components/menu/menu.recipe.js +54 -0
  95. package/dist/cjs/components/multiselect/index.js +7 -0
  96. package/dist/cjs/components/multiselect/multiselect.js +161 -0
  97. package/dist/cjs/components/multiselect/multiselect.recipe.js +71 -0
  98. package/dist/cjs/components/popover/index.js +7 -0
  99. package/dist/cjs/components/popover/popover.js +106 -0
  100. package/dist/cjs/components/popover/popover.recipe.js +21 -0
  101. package/dist/cjs/components/progress/index.js +7 -0
  102. package/dist/cjs/components/progress/progress.js +26 -0
  103. package/dist/cjs/components/progress/progress.recipe.js +20 -0
  104. package/dist/cjs/components/radiogroup/index.js +8 -0
  105. package/dist/cjs/components/radiogroup/radiogroup.js +83 -0
  106. package/dist/cjs/components/radiogroup/radiogroup.recipe.js +40 -0
  107. package/dist/cjs/components/resizablepanel/index.js +12 -0
  108. package/dist/cjs/components/resizablepanel/resizablepanel.js +176 -0
  109. package/dist/cjs/components/resizablepanel/resizablepanel.recipe.js +69 -0
  110. package/dist/cjs/components/segmented/index.js +7 -0
  111. package/dist/cjs/components/segmented/segmented.js +95 -0
  112. package/dist/cjs/components/segmented/segmented.recipe.js +23 -0
  113. package/dist/cjs/components/select/index.js +7 -0
  114. package/dist/cjs/components/select/select.js +180 -0
  115. package/dist/cjs/components/select/select.recipe.js +79 -0
  116. package/dist/cjs/components/skeleton/index.js +7 -0
  117. package/dist/cjs/components/skeleton/skeleton.js +13 -0
  118. package/dist/cjs/components/skeleton/skeleton.recipe.js +17 -0
  119. package/dist/cjs/components/spinner/index.js +7 -0
  120. package/dist/cjs/components/spinner/spinner.js +15 -0
  121. package/dist/cjs/components/spinner/spinner.recipe.js +16 -0
  122. package/dist/cjs/components/stagebar/index.js +7 -0
  123. package/dist/cjs/components/stagebar/stagebar.js +26 -0
  124. package/dist/cjs/components/stagebar/stagebar.recipe.js +17 -0
  125. package/dist/cjs/components/statcard/index.js +7 -0
  126. package/dist/cjs/components/statcard/statcard.js +15 -0
  127. package/dist/cjs/components/statcard/statcard.recipe.js +37 -0
  128. package/dist/cjs/components/switch/index.js +7 -0
  129. package/dist/cjs/components/switch/switch.js +58 -0
  130. package/dist/cjs/components/switch/switch.recipe.js +29 -0
  131. package/dist/cjs/components/table/index.js +14 -0
  132. package/dist/cjs/components/table/table.js +66 -0
  133. package/dist/cjs/components/table/table.recipe.js +43 -0
  134. package/dist/cjs/components/tabletoolbar/index.js +20 -0
  135. package/dist/cjs/components/tabletoolbar/tabletoolbar.chrome.js +84 -0
  136. package/dist/cjs/components/tabletoolbar/tabletoolbar.js +237 -0
  137. package/dist/cjs/components/tabletoolbar/tabletoolbar.recipe.js +26 -0
  138. package/dist/cjs/components/tabs/index.js +7 -0
  139. package/dist/cjs/components/tabs/tabs.js +106 -0
  140. package/dist/cjs/components/tabs/tabs.recipe.js +36 -0
  141. package/dist/cjs/components/textarea/index.js +7 -0
  142. package/dist/cjs/components/textarea/textarea.js +56 -0
  143. package/dist/cjs/components/textarea/textarea.recipe.js +46 -0
  144. package/dist/cjs/components/toast/index.js +8 -0
  145. package/dist/cjs/components/toast/toast.js +95 -0
  146. package/dist/cjs/components/toast/toast.recipe.js +31 -0
  147. package/dist/cjs/components/tooltip/index.js +7 -0
  148. package/dist/cjs/components/tooltip/tooltip.js +95 -0
  149. package/dist/cjs/components/tooltip/tooltip.recipe.js +16 -0
  150. package/dist/cjs/components/wheelpicker/index.js +7 -0
  151. package/dist/cjs/components/wheelpicker/wheelpicker.js +134 -0
  152. package/dist/cjs/components/wheelpicker/wheelpicker.recipe.js +95 -0
  153. package/dist/cjs/core/cx.js +8 -0
  154. package/dist/cjs/core/define.js +6 -0
  155. package/dist/cjs/core/index.js +11 -0
  156. package/dist/cjs/core/primitive.js +49 -0
  157. package/dist/cjs/core/resolve.js +44 -0
  158. package/dist/cjs/core/types.js +2 -0
  159. package/dist/cjs/index.js +92 -0
  160. package/dist/cjs/package.json +3 -0
  161. package/dist/cjs/product/appshell/appshell.js +104 -0
  162. package/dist/cjs/product/appshell/appshell.recipe.js +30 -0
  163. package/dist/cjs/product/appshell/index.js +7 -0
  164. package/dist/cjs/product/authshell/authshell.js +21 -0
  165. package/dist/cjs/product/authshell/authshell.recipe.js +67 -0
  166. package/dist/cjs/product/authshell/index.js +7 -0
  167. package/dist/cjs/product/board/board.js +78 -0
  168. package/dist/cjs/product/board/board.recipe.js +31 -0
  169. package/dist/cjs/product/board/index.js +7 -0
  170. package/dist/cjs/product/command/command.js +238 -0
  171. package/dist/cjs/product/command/command.recipe.js +47 -0
  172. package/dist/cjs/product/command/index.js +8 -0
  173. package/dist/cjs/product/entitycard/entitycard.js +14 -0
  174. package/dist/cjs/product/entitycard/entitycard.recipe.js +32 -0
  175. package/dist/cjs/product/entitycard/index.js +7 -0
  176. package/dist/cjs/product/flowcanvas/flowcanvas.js +121 -0
  177. package/dist/cjs/product/flowcanvas/flowcanvas.recipe.js +28 -0
  178. package/dist/cjs/product/flowcanvas/index.js +7 -0
  179. package/dist/cjs/product/inbox/inbox.js +16 -0
  180. package/dist/cjs/product/inbox/inbox.recipe.js +46 -0
  181. package/dist/cjs/product/inbox/index.js +7 -0
  182. package/dist/cjs/product/listpage/index.js +8 -0
  183. package/dist/cjs/product/listpage/listpage.js +25 -0
  184. package/dist/cjs/product/listpage/listpage.recipe.js +46 -0
  185. package/dist/cjs/product/navitem/index.js +5 -0
  186. package/dist/cjs/product/navitem/navitem.js +44 -0
  187. package/dist/cjs/product/navitem/navitem.recipe.js +36 -0
  188. package/dist/cjs/product/onboarding/index.js +7 -0
  189. package/dist/cjs/product/onboarding/onboarding.js +17 -0
  190. package/dist/cjs/product/onboarding/onboarding.recipe.js +44 -0
  191. package/dist/cjs/product/recordpage/index.js +7 -0
  192. package/dist/cjs/product/recordpage/recordpage.js +409 -0
  193. package/dist/cjs/product/recordpage/recordpage.recipe.js +162 -0
  194. package/dist/cjs/product/recordpanel/index.js +7 -0
  195. package/dist/cjs/product/recordpanel/recordpanel.js +83 -0
  196. package/dist/cjs/product/recordpanel/recordpanel.recipe.js +51 -0
  197. package/dist/cjs/product/recordstable/company-logos.js +29 -0
  198. package/dist/cjs/product/recordstable/index.js +10 -0
  199. package/dist/cjs/product/recordstable/recordstable.js +1092 -0
  200. package/dist/cjs/product/recordstable/recordstable.recipe.js +152 -0
  201. package/dist/cjs/product/recordstable/recordstable.tag.js +21 -0
  202. package/dist/cjs/product/richtext/index.js +7 -0
  203. package/dist/cjs/product/richtext/richtext.js +147 -0
  204. package/dist/cjs/product/richtext/richtext.recipe.js +43 -0
  205. package/dist/cjs/product/settingssection/index.js +7 -0
  206. package/dist/cjs/product/settingssection/settingssection.js +14 -0
  207. package/dist/cjs/product/settingssection/settingssection.recipe.js +23 -0
  208. package/dist/cjs/product/settingsshell/index.js +7 -0
  209. package/dist/cjs/product/settingsshell/settingsshell.js +59 -0
  210. package/dist/cjs/product/settingsshell/settingsshell.recipe.js +46 -0
  211. package/dist/cjs/product/sidebar/index.js +13 -0
  212. package/dist/cjs/product/sidebar/sidebar.js +148 -0
  213. package/dist/cjs/product/sidebar/sidebar.recipe.js +46 -0
  214. package/dist/cjs/product/tasklist/index.js +7 -0
  215. package/dist/cjs/product/tasklist/tasklist.js +19 -0
  216. package/dist/cjs/product/tasklist/tasklist.recipe.js +38 -0
  217. package/dist/cjs/product/trialbanner/index.js +7 -0
  218. package/dist/cjs/product/trialbanner/trialbanner.js +13 -0
  219. package/dist/cjs/product/trialbanner/trialbanner.recipe.js +32 -0
  220. package/dist/cjs/product/viewtoggle/index.js +7 -0
  221. package/dist/cjs/product/viewtoggle/viewtoggle.js +55 -0
  222. package/dist/cjs/product/viewtoggle/viewtoggle.recipe.js +27 -0
  223. package/dist/cjs/tokens/contract.js +21 -0
  224. package/dist/cjs/tokens/elevation.js +47 -0
  225. package/dist/cjs/tokens/index.js +18 -0
  226. package/dist/cjs/tokens/palette.js +63 -0
  227. package/dist/cjs/tokens/scale.js +70 -0
  228. package/dist/cjs/tokens/semantic.js +57 -0
  229. package/dist/columncalc.css +26 -0
  230. package/dist/columncalc.d.ts +7 -0
  231. package/dist/command.css +34 -1
  232. package/dist/contextmenu.css +11 -3
  233. package/dist/datatable.css +106 -0
  234. package/dist/datatable.d.ts +7 -0
  235. package/dist/datepicker.css +165 -19
  236. package/dist/datepicker.d.ts +2 -2
  237. package/dist/datepickerfield.css +27 -0
  238. package/dist/datepickerfield.d.ts +7 -0
  239. package/dist/dialog.css +11 -3
  240. package/dist/donutchart.css +8 -0
  241. package/dist/drawer.css +13 -5
  242. package/dist/entitycard.css +10 -2
  243. package/dist/esm/components/accordion/accordion.js +33 -0
  244. package/dist/esm/components/accordion/accordion.recipe.js +23 -0
  245. package/dist/esm/components/accordion/index.js +2 -0
  246. package/dist/esm/components/avatar/avatar.js +8 -0
  247. package/dist/esm/components/avatar/avatar.recipe.js +39 -0
  248. package/dist/esm/components/avatar/index.js +2 -0
  249. package/dist/esm/components/avatargroup/avatargroup.js +16 -0
  250. package/dist/esm/components/avatargroup/avatargroup.recipe.js +15 -0
  251. package/dist/esm/components/avatargroup/index.js +2 -0
  252. package/dist/esm/components/badge/badge.js +8 -0
  253. package/dist/esm/components/badge/badge.recipe.js +65 -0
  254. package/dist/esm/components/badge/index.js +2 -0
  255. package/dist/esm/components/barchart/barchart.js +42 -0
  256. package/dist/esm/components/barchart/barchart.recipe.js +31 -0
  257. package/dist/esm/components/barchart/index.js +2 -0
  258. package/dist/esm/components/breadcrumb/breadcrumb.js +17 -0
  259. package/dist/esm/components/breadcrumb/breadcrumb.recipe.js +18 -0
  260. package/dist/esm/components/breadcrumb/index.js +2 -0
  261. package/dist/esm/components/bulkbar/bulkbar.js +16 -0
  262. package/dist/esm/components/bulkbar/bulkbar.recipe.js +28 -0
  263. package/dist/esm/components/bulkbar/index.js +2 -0
  264. package/dist/esm/components/button/button.js +26 -0
  265. package/dist/esm/components/button/button.recipe.js +55 -0
  266. package/dist/esm/components/button/index.js +2 -0
  267. package/dist/esm/components/callout/callout.js +22 -0
  268. package/dist/esm/components/callout/callout.recipe.js +26 -0
  269. package/dist/esm/components/callout/index.js +2 -0
  270. package/dist/esm/components/card/card.js +15 -0
  271. package/dist/esm/components/card/card.recipe.js +28 -0
  272. package/dist/esm/components/card/index.js +2 -0
  273. package/dist/esm/components/checkbox/checkbox.js +20 -0
  274. package/dist/esm/components/checkbox/checkbox.recipe.js +31 -0
  275. package/dist/esm/components/checkbox/index.js +2 -0
  276. package/dist/esm/components/columncalc/columncalc.js +100 -0
  277. package/dist/esm/components/columncalc/columncalc.recipe.js +30 -0
  278. package/dist/esm/components/columncalc/index.js +1 -0
  279. package/dist/esm/components/contextmenu/contextmenu.js +42 -0
  280. package/dist/esm/components/contextmenu/contextmenu.recipe.js +21 -0
  281. package/dist/esm/components/contextmenu/index.js +2 -0
  282. package/dist/esm/components/datatable/datatable.js +472 -0
  283. package/dist/esm/components/datatable/datatable.recipe.js +110 -0
  284. package/dist/esm/components/datatable/index.js +2 -0
  285. package/dist/esm/components/datepicker/datepicker.js +108 -0
  286. package/dist/esm/components/datepicker/datepicker.recipe.js +177 -0
  287. package/dist/esm/components/datepicker/index.js +2 -0
  288. package/dist/esm/components/datepickerfield/datepickerfield.js +49 -0
  289. package/dist/esm/components/datepickerfield/datepickerfield.recipe.js +41 -0
  290. package/dist/esm/components/datepickerfield/index.js +2 -0
  291. package/dist/esm/components/dialog/dialog.js +48 -0
  292. package/dist/esm/components/dialog/dialog.recipe.js +32 -0
  293. package/dist/esm/components/dialog/index.js +2 -0
  294. package/dist/esm/components/divider/divider.js +7 -0
  295. package/dist/esm/components/divider/divider.recipe.js +14 -0
  296. package/dist/esm/components/divider/index.js +2 -0
  297. package/dist/esm/components/donutchart/donutchart.js +38 -0
  298. package/dist/esm/components/donutchart/donutchart.recipe.js +27 -0
  299. package/dist/esm/components/donutchart/index.js +2 -0
  300. package/dist/esm/components/drawer/drawer.js +42 -0
  301. package/dist/esm/components/drawer/drawer.recipe.js +27 -0
  302. package/dist/esm/components/drawer/index.js +2 -0
  303. package/dist/esm/components/emptystate/emptystate.js +7 -0
  304. package/dist/esm/components/emptystate/emptystate.recipe.js +31 -0
  305. package/dist/esm/components/emptystate/index.js +2 -0
  306. package/dist/esm/components/formfield/formfield.js +14 -0
  307. package/dist/esm/components/formfield/formfield.recipe.js +19 -0
  308. package/dist/esm/components/formfield/index.js +2 -0
  309. package/dist/esm/components/input/index.js +2 -0
  310. package/dist/esm/components/input/input.js +11 -0
  311. package/dist/esm/components/input/input.recipe.js +56 -0
  312. package/dist/esm/components/kbd/index.js +2 -0
  313. package/dist/esm/components/kbd/kbd.js +8 -0
  314. package/dist/esm/components/kbd/kbd.recipe.js +20 -0
  315. package/dist/esm/components/linechart/index.js +2 -0
  316. package/dist/esm/components/linechart/linechart.js +54 -0
  317. package/dist/esm/components/linechart/linechart.recipe.js +32 -0
  318. package/dist/esm/components/menu/index.js +3 -0
  319. package/dist/esm/components/menu/menu-keyboard.js +80 -0
  320. package/dist/esm/components/menu/menu.js +104 -0
  321. package/dist/esm/components/menu/menu.recipe.js +51 -0
  322. package/dist/esm/components/multiselect/index.js +2 -0
  323. package/dist/esm/components/multiselect/multiselect.js +125 -0
  324. package/dist/esm/components/multiselect/multiselect.recipe.js +68 -0
  325. package/dist/esm/components/popover/index.js +2 -0
  326. package/dist/esm/components/popover/popover.js +70 -0
  327. package/dist/esm/components/popover/popover.recipe.js +18 -0
  328. package/dist/esm/components/progress/index.js +2 -0
  329. package/dist/esm/components/progress/progress.js +23 -0
  330. package/dist/esm/components/progress/progress.recipe.js +17 -0
  331. package/dist/esm/components/radiogroup/index.js +2 -0
  332. package/dist/esm/components/radiogroup/radiogroup.js +46 -0
  333. package/dist/esm/components/radiogroup/radiogroup.recipe.js +37 -0
  334. package/dist/esm/components/resizablepanel/index.js +2 -0
  335. package/dist/esm/components/resizablepanel/resizablepanel.js +135 -0
  336. package/dist/esm/components/resizablepanel/resizablepanel.recipe.js +66 -0
  337. package/dist/esm/components/segmented/index.js +2 -0
  338. package/dist/esm/components/segmented/segmented.js +59 -0
  339. package/dist/esm/components/segmented/segmented.recipe.js +20 -0
  340. package/dist/esm/components/select/index.js +2 -0
  341. package/dist/esm/components/select/select.js +144 -0
  342. package/dist/esm/components/select/select.recipe.js +76 -0
  343. package/dist/esm/components/skeleton/index.js +2 -0
  344. package/dist/esm/components/skeleton/skeleton.js +10 -0
  345. package/dist/esm/components/skeleton/skeleton.recipe.js +14 -0
  346. package/dist/esm/components/spinner/index.js +2 -0
  347. package/dist/esm/components/spinner/spinner.js +12 -0
  348. package/dist/esm/components/spinner/spinner.recipe.js +13 -0
  349. package/dist/esm/components/stagebar/index.js +2 -0
  350. package/dist/esm/components/stagebar/stagebar.js +23 -0
  351. package/dist/esm/components/stagebar/stagebar.recipe.js +14 -0
  352. package/dist/esm/components/statcard/index.js +2 -0
  353. package/dist/esm/components/statcard/statcard.js +12 -0
  354. package/dist/esm/components/statcard/statcard.recipe.js +34 -0
  355. package/dist/esm/components/switch/index.js +2 -0
  356. package/dist/esm/components/switch/switch.js +22 -0
  357. package/dist/esm/components/switch/switch.recipe.js +26 -0
  358. package/dist/esm/components/table/index.js +2 -0
  359. package/dist/esm/components/table/table.js +30 -0
  360. package/dist/esm/components/table/table.recipe.js +40 -0
  361. package/dist/esm/components/tabletoolbar/index.js +2 -0
  362. package/dist/esm/components/tabletoolbar/tabletoolbar.chrome.js +79 -0
  363. package/dist/esm/components/tabletoolbar/tabletoolbar.js +199 -0
  364. package/dist/esm/components/tabletoolbar/tabletoolbar.recipe.js +23 -0
  365. package/dist/esm/components/tabs/index.js +2 -0
  366. package/dist/esm/components/tabs/tabs.js +70 -0
  367. package/dist/esm/components/tabs/tabs.recipe.js +33 -0
  368. package/dist/esm/components/textarea/index.js +2 -0
  369. package/dist/esm/components/textarea/textarea.js +20 -0
  370. package/dist/esm/components/textarea/textarea.recipe.js +43 -0
  371. package/dist/esm/components/toast/index.js +2 -0
  372. package/dist/esm/components/toast/toast.js +58 -0
  373. package/dist/esm/components/toast/toast.recipe.js +28 -0
  374. package/dist/esm/components/tooltip/index.js +2 -0
  375. package/dist/esm/components/tooltip/tooltip.js +59 -0
  376. package/dist/esm/components/tooltip/tooltip.recipe.js +13 -0
  377. package/dist/esm/components/wheelpicker/index.js +2 -0
  378. package/dist/esm/components/wheelpicker/wheelpicker.js +98 -0
  379. package/dist/esm/components/wheelpicker/wheelpicker.recipe.js +92 -0
  380. package/dist/esm/core/cx.js +1 -0
  381. package/dist/esm/core/define.js +3 -0
  382. package/dist/esm/core/index.js +4 -0
  383. package/dist/esm/core/primitive.js +13 -0
  384. package/dist/esm/core/resolve.js +41 -0
  385. package/dist/esm/core/types.js +1 -0
  386. package/dist/esm/index.js +76 -0
  387. package/dist/esm/product/appshell/appshell.js +68 -0
  388. package/dist/esm/product/appshell/appshell.recipe.js +27 -0
  389. package/dist/esm/product/appshell/index.js +2 -0
  390. package/dist/esm/product/authshell/authshell.js +18 -0
  391. package/dist/esm/product/authshell/authshell.recipe.js +64 -0
  392. package/dist/esm/product/authshell/index.js +2 -0
  393. package/dist/esm/product/board/board.js +42 -0
  394. package/dist/esm/product/board/board.recipe.js +28 -0
  395. package/dist/esm/product/board/index.js +2 -0
  396. package/dist/esm/product/command/command.js +201 -0
  397. package/dist/esm/product/command/command.recipe.js +44 -0
  398. package/dist/esm/product/command/index.js +2 -0
  399. package/dist/esm/product/entitycard/entitycard.js +11 -0
  400. package/dist/esm/product/entitycard/entitycard.recipe.js +29 -0
  401. package/dist/esm/product/entitycard/index.js +2 -0
  402. package/dist/esm/product/flowcanvas/flowcanvas.js +85 -0
  403. package/dist/esm/product/flowcanvas/flowcanvas.recipe.js +25 -0
  404. package/dist/esm/product/flowcanvas/index.js +2 -0
  405. package/dist/esm/product/inbox/inbox.js +13 -0
  406. package/dist/esm/product/inbox/inbox.recipe.js +43 -0
  407. package/dist/esm/product/inbox/index.js +2 -0
  408. package/dist/esm/product/listpage/index.js +2 -0
  409. package/dist/esm/product/listpage/listpage.js +21 -0
  410. package/dist/esm/product/listpage/listpage.recipe.js +43 -0
  411. package/dist/esm/product/navitem/index.js +1 -0
  412. package/dist/esm/product/navitem/navitem.js +8 -0
  413. package/dist/esm/product/navitem/navitem.recipe.js +33 -0
  414. package/dist/esm/product/onboarding/index.js +2 -0
  415. package/dist/esm/product/onboarding/onboarding.js +14 -0
  416. package/dist/esm/product/onboarding/onboarding.recipe.js +41 -0
  417. package/dist/esm/product/recordpage/index.js +2 -0
  418. package/dist/esm/product/recordpage/recordpage.js +372 -0
  419. package/dist/esm/product/recordpage/recordpage.recipe.js +159 -0
  420. package/dist/esm/product/recordpanel/index.js +2 -0
  421. package/dist/esm/product/recordpanel/recordpanel.js +47 -0
  422. package/dist/esm/product/recordpanel/recordpanel.recipe.js +48 -0
  423. package/dist/esm/product/recordstable/company-logos.js +26 -0
  424. package/dist/esm/product/recordstable/index.js +2 -0
  425. package/dist/esm/product/recordstable/recordstable.js +1054 -0
  426. package/dist/esm/product/recordstable/recordstable.recipe.js +149 -0
  427. package/dist/esm/product/recordstable/recordstable.tag.js +18 -0
  428. package/dist/esm/product/richtext/index.js +2 -0
  429. package/dist/esm/product/richtext/richtext.js +111 -0
  430. package/dist/esm/product/richtext/richtext.recipe.js +40 -0
  431. package/dist/esm/product/settingssection/index.js +2 -0
  432. package/dist/esm/product/settingssection/settingssection.js +11 -0
  433. package/dist/esm/product/settingssection/settingssection.recipe.js +20 -0
  434. package/dist/esm/product/settingsshell/index.js +2 -0
  435. package/dist/esm/product/settingsshell/settingsshell.js +23 -0
  436. package/dist/esm/product/settingsshell/settingsshell.recipe.js +43 -0
  437. package/dist/esm/product/sidebar/index.js +2 -0
  438. package/dist/esm/product/sidebar/sidebar.js +112 -0
  439. package/dist/esm/product/sidebar/sidebar.recipe.js +43 -0
  440. package/dist/esm/product/tasklist/index.js +2 -0
  441. package/dist/esm/product/tasklist/tasklist.js +16 -0
  442. package/dist/esm/product/tasklist/tasklist.recipe.js +35 -0
  443. package/dist/esm/product/trialbanner/index.js +2 -0
  444. package/dist/esm/product/trialbanner/trialbanner.js +10 -0
  445. package/dist/esm/product/trialbanner/trialbanner.recipe.js +29 -0
  446. package/dist/esm/product/viewtoggle/index.js +2 -0
  447. package/dist/esm/product/viewtoggle/viewtoggle.js +19 -0
  448. package/dist/esm/product/viewtoggle/viewtoggle.recipe.js +24 -0
  449. package/dist/esm/tokens/contract.js +18 -0
  450. package/dist/esm/tokens/elevation.js +44 -0
  451. package/dist/esm/tokens/index.js +5 -0
  452. package/dist/esm/tokens/palette.js +60 -0
  453. package/dist/esm/tokens/scale.js +67 -0
  454. package/dist/esm/tokens/semantic.js +54 -0
  455. package/dist/inbox.css +9 -1
  456. package/dist/input.css +32 -4
  457. package/dist/linechart.css +5 -5
  458. package/dist/listpage.css +11 -3
  459. package/dist/menu.css +13 -5
  460. package/dist/multiselect.css +17 -9
  461. package/dist/native/tokens.d.ts +16 -0
  462. package/dist/native/tokens.js +221 -0
  463. package/dist/navitem.css +21 -1
  464. package/dist/onboarding.css +10 -2
  465. package/dist/popover.css +9 -1
  466. package/dist/progress.css +8 -0
  467. package/dist/radiogroup.css +9 -1
  468. package/dist/recordpage.css +26 -16
  469. package/dist/recordpanel.css +25 -15
  470. package/dist/recordstable.css +41 -27
  471. package/dist/resizablepanel.css +53 -0
  472. package/dist/resizablepanel.d.ts +7 -0
  473. package/dist/richtext.css +11 -3
  474. package/dist/segmented.css +8 -0
  475. package/dist/select.css +22 -8
  476. package/dist/select.d.ts +2 -1
  477. package/dist/settingsshell.css +15 -2
  478. package/dist/sidebar.css +34 -1
  479. package/dist/skeleton.css +8 -0
  480. package/dist/spinner.css +8 -0
  481. package/dist/stagebar.css +8 -0
  482. package/dist/statcard.css +6 -0
  483. package/dist/statcard.d.ts +2 -2
  484. package/dist/styles.css +2134 -999
  485. package/dist/switch.css +8 -0
  486. package/dist/table.css +34 -0
  487. package/dist/table.d.ts +8 -0
  488. package/dist/tabletoolbar.css +78 -0
  489. package/dist/tabletoolbar.d.ts +7 -0
  490. package/dist/tabs.css +12 -4
  491. package/dist/tasklist.css +8 -0
  492. package/dist/textarea.css +23 -3
  493. package/dist/toast.css +10 -2
  494. package/dist/tokens.css +53 -0
  495. package/dist/tokens.json +217 -0
  496. package/dist/tooltip.css +8 -0
  497. package/dist/trialbanner.css +8 -0
  498. package/dist/types/components/accordion/accordion.d.ts +10 -8
  499. package/dist/types/components/avatargroup/avatargroup.d.ts +2 -2
  500. package/dist/types/components/barchart/barchart.d.ts +4 -2
  501. package/dist/types/components/breadcrumb/breadcrumb.d.ts +2 -2
  502. package/dist/types/components/bulkbar/bulkbar.d.ts +4 -2
  503. package/dist/types/components/button/button.d.ts +8 -0
  504. package/dist/types/components/button/button.recipe.d.ts +12 -0
  505. package/dist/types/components/callout/callout.d.ts +2 -2
  506. package/dist/types/components/columncalc/columncalc.d.ts +49 -0
  507. package/dist/types/components/columncalc/columncalc.recipe.d.ts +3 -0
  508. package/dist/types/components/columncalc/index.d.ts +1 -0
  509. package/dist/types/components/datatable/datatable.d.ts +153 -0
  510. package/dist/types/components/datatable/datatable.recipe.d.ts +3 -0
  511. package/dist/types/components/datatable/index.d.ts +2 -0
  512. package/dist/types/components/datepicker/datepicker.d.ts +41 -18
  513. package/dist/types/components/datepicker/datepicker.recipe.d.ts +25 -2
  514. package/dist/types/components/datepicker/index.d.ts +1 -1
  515. package/dist/types/components/datepickerfield/datepickerfield.d.ts +35 -0
  516. package/dist/types/components/datepickerfield/datepickerfield.recipe.d.ts +5 -0
  517. package/dist/types/components/datepickerfield/index.d.ts +2 -0
  518. package/dist/types/components/dialog/dialog.d.ts +3 -1
  519. package/dist/types/components/divider/divider.d.ts +2 -2
  520. package/dist/types/components/donutchart/donutchart.d.ts +2 -2
  521. package/dist/types/components/drawer/drawer.d.ts +3 -1
  522. package/dist/types/components/emptystate/emptystate.d.ts +2 -2
  523. package/dist/types/components/formfield/formfield.d.ts +7 -4
  524. package/dist/types/components/input/input.d.ts +8 -2
  525. package/dist/types/components/linechart/linechart.d.ts +4 -2
  526. package/dist/types/components/menu/index.d.ts +1 -0
  527. package/dist/types/components/menu/menu-keyboard.d.ts +33 -0
  528. package/dist/types/components/menu/menu.d.ts +7 -1
  529. package/dist/types/components/multiselect/multiselect.d.ts +8 -4
  530. package/dist/types/components/popover/popover.d.ts +4 -1
  531. package/dist/types/components/progress/progress.d.ts +2 -2
  532. package/dist/types/components/radiogroup/radiogroup.d.ts +2 -2
  533. package/dist/types/components/resizablepanel/index.d.ts +2 -0
  534. package/dist/types/components/resizablepanel/resizablepanel.d.ts +75 -0
  535. package/dist/types/components/resizablepanel/resizablepanel.recipe.d.ts +3 -0
  536. package/dist/types/components/segmented/segmented.d.ts +2 -2
  537. package/dist/types/components/select/select.d.ts +4 -2
  538. package/dist/types/components/select/select.recipe.d.ts +12 -0
  539. package/dist/types/components/skeleton/skeleton.d.ts +2 -2
  540. package/dist/types/components/spinner/spinner.d.ts +2 -2
  541. package/dist/types/components/stagebar/stagebar.d.ts +2 -2
  542. package/dist/types/components/statcard/statcard.d.ts +7 -2
  543. package/dist/types/components/statcard/statcard.recipe.d.ts +12 -2
  544. package/dist/types/components/table/index.d.ts +2 -0
  545. package/dist/types/components/table/table.d.ts +53 -0
  546. package/dist/types/components/table/table.recipe.d.ts +21 -0
  547. package/dist/types/components/tabletoolbar/index.d.ts +2 -0
  548. package/dist/types/components/tabletoolbar/tabletoolbar.chrome.d.ts +2 -0
  549. package/dist/types/components/tabletoolbar/tabletoolbar.d.ts +89 -0
  550. package/dist/types/components/tabletoolbar/tabletoolbar.recipe.d.ts +3 -0
  551. package/dist/types/components/tabs/tabs.d.ts +2 -2
  552. package/dist/types/components/toast/toast.d.ts +7 -1
  553. package/dist/types/components/tooltip/tooltip.d.ts +8 -1
  554. package/dist/types/components/wheelpicker/index.d.ts +2 -0
  555. package/dist/types/components/wheelpicker/wheelpicker.d.ts +37 -0
  556. package/dist/types/components/wheelpicker/wheelpicker.recipe.d.ts +26 -0
  557. package/dist/types/index.d.ts +8 -0
  558. package/dist/types/product/appshell/appshell.d.ts +16 -2
  559. package/dist/types/product/authshell/authshell.d.ts +28 -0
  560. package/dist/types/product/authshell/authshell.recipe.d.ts +3 -0
  561. package/dist/types/product/authshell/index.d.ts +2 -0
  562. package/dist/types/product/board/board.d.ts +2 -2
  563. package/dist/types/product/command/command.d.ts +25 -1
  564. package/dist/types/product/entitycard/entitycard.d.ts +2 -2
  565. package/dist/types/product/flowcanvas/flowcanvas.d.ts +9 -1
  566. package/dist/types/product/onboarding/onboarding.d.ts +7 -1
  567. package/dist/types/product/recordpage/recordpage.d.ts +65 -1
  568. package/dist/types/product/recordpanel/recordpanel.d.ts +8 -2
  569. package/dist/types/product/recordstable/company-logos.d.ts +1 -0
  570. package/dist/types/product/recordstable/recordstable.d.ts +131 -1
  571. package/dist/types/product/recordstable/recordstable.tag.d.ts +10 -0
  572. package/dist/types/product/richtext/richtext.d.ts +5 -1
  573. package/dist/types/product/settingssection/settingssection.d.ts +2 -2
  574. package/dist/types/product/settingsshell/settingsshell.d.ts +6 -2
  575. package/dist/types/product/sidebar/index.d.ts +1 -1
  576. package/dist/types/product/sidebar/sidebar.d.ts +93 -0
  577. package/dist/types/product/tasklist/tasklist.d.ts +5 -1
  578. package/dist/types/product/trialbanner/trialbanner.d.ts +2 -2
  579. package/dist/types/product/viewtoggle/viewtoggle.d.ts +11 -5
  580. package/dist/types/tokens/contract.d.ts +26 -3
  581. package/dist/types/tokens/elevation.d.ts +44 -0
  582. package/dist/types/tokens/index.d.ts +1 -0
  583. package/dist/types/tokens/palette.d.ts +88 -0
  584. package/dist/types/tokens/scale.d.ts +7 -0
  585. package/dist/types/tokens/semantic.d.ts +31 -0
  586. package/dist/viewtoggle.css +11 -3
  587. package/dist/wheelpicker.css +68 -0
  588. package/dist/wheelpicker.d.ts +7 -0
  589. package/package.json +351 -9
  590. package/dist/index.js +0 -9690
@@ -0,0 +1,59 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { createPortal } from "react-dom";
4
+ import { tooltipRecipe } from "./tooltip.recipe.js";
5
+ /**
6
+ * A hover/focus tooltip — a dark hint chip measured from Attio. Wraps its
7
+ * trigger in an inline element, shows after `delay` on pointer-enter / focus,
8
+ * and hides on leave / blur / Escape. The bubble is portaled and positioned
9
+ * above the trigger (flipping below near the top edge).
10
+ */
11
+ export function Tooltip({ content, children, side = "top", delay = 350, open: openProp, defaultOpen, onOpenChange, }) {
12
+ const triggerRef = React.useRef(null);
13
+ const timer = React.useRef(undefined);
14
+ const [pos, setPos] = React.useState(null);
15
+ const [internalOpen, setInternalOpen] = React.useState(defaultOpen ?? false);
16
+ const open = openProp ?? internalOpen;
17
+ const setOpen = React.useCallback((next) => {
18
+ if (openProp === undefined)
19
+ setInternalOpen(next);
20
+ onOpenChange?.(next);
21
+ }, [openProp, onOpenChange]);
22
+ // Measuring is separate from opening, so a controlled consumer that flips
23
+ // `open` gets placed against the trigger exactly as a hover would.
24
+ React.useLayoutEffect(() => {
25
+ if (!open) {
26
+ setPos(null);
27
+ return;
28
+ }
29
+ const el = triggerRef.current;
30
+ if (!el)
31
+ return;
32
+ const r = el.getBoundingClientRect();
33
+ const below = side === "bottom" || r.top < 48;
34
+ setPos({
35
+ left: Math.round(r.left + r.width / 2),
36
+ top: Math.round(below ? r.bottom + 6 : r.top - 6),
37
+ below,
38
+ });
39
+ }, [open, side]);
40
+ const openAfterDelay = () => {
41
+ clearTimeout(timer.current);
42
+ timer.current = setTimeout(() => setOpen(true), delay);
43
+ };
44
+ const close = () => {
45
+ clearTimeout(timer.current);
46
+ setOpen(false);
47
+ };
48
+ React.useEffect(() => () => clearTimeout(timer.current), []);
49
+ return (_jsxs(_Fragment, { children: [_jsx("span", { ref: triggerRef, style: { display: "inline-flex" }, onPointerEnter: openAfterDelay, onPointerLeave: close, onFocusCapture: openAfterDelay, onBlurCapture: close, onKeyDown: (e) => e.key === "Escape" && close(), children: children }), open &&
50
+ pos != null &&
51
+ createPortal(_jsx("div", { role: "tooltip", className: tooltipRecipe(), style: {
52
+ left: pos.left,
53
+ top: pos.top,
54
+ transform: pos.below
55
+ ? "translate(-50%, 0)"
56
+ : "translate(-50%, -100%)",
57
+ }, children: content }), document.body)] }));
58
+ }
59
+ Tooltip.displayName = "Tooltip";
@@ -0,0 +1,13 @@
1
+ import { defineRecipe, resolveRecipe } from "../../core/index.js";
2
+ import { contract as c } from "../../tokens/index.js";
3
+ // The floating bubble for a Tooltip — Attio's dark hint chip. Applied to the
4
+ // portaled bubble itself (not a wrapper), so its styles survive the portal.
5
+ const config = defineRecipe({
6
+ name: "tooltip",
7
+ base: `position: fixed; z-index: 70; box-sizing: border-box; pointer-events: none; max-width: 260px; padding: ${c.space["1"]} ${c.space["2"]}; border-radius: ${c.radius.sm}; background: #20242c; color: #fff; font-family: ${c.font.sans}; font-size: ${c.text.sm}; font-weight: ${c.weight.medium}; line-height: 1.45; box-shadow: 0 4px 14px -2px rgba(28,40,64,0.28), 0 0 0 1px rgba(255,255,255,0.04); opacity: 1; transition: opacity 0.12s ease; @starting-style { opacity: 0; }`,
8
+ variants: {},
9
+ defaultVariants: {},
10
+ compoundVariants: [],
11
+ });
12
+ export const tooltipRecipe = resolveRecipe(config);
13
+ export default config;
@@ -0,0 +1,2 @@
1
+ export { WheelPicker, } from "./wheelpicker.js";
2
+ export { wheelpickerRecipe } from "./wheelpicker.recipe.js";
@@ -0,0 +1,98 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { wheelpickerRecipe } from "./wheelpicker.recipe.js";
4
+ const ITEM_HEIGHT = { small: 36, medium: 44 };
5
+ /**
6
+ * A scroll-snapping wheel, measured from seed-design. Each column snaps its
7
+ * rows to a centred selection band; the momentum is the browser's own, because
8
+ * the column is an ordinary scroll container with `scroll-snap-type: y
9
+ * mandatory` rather than a JavaScript animation.
10
+ *
11
+ * Keyboard: each column is a `listbox` that takes focus, with ↑/↓ moving the
12
+ * selection, Home/End jumping to the ends, and a visible ring on the selected
13
+ * row for keyboard focus only.
14
+ */
15
+ export function WheelPicker({ columns, value: valueProp, defaultValue, onValueChange, size = "medium", className, ...rest }) {
16
+ const firstOf = React.useCallback(() => Object.fromEntries(columns.map((c) => [c.key, c.options[0]?.value ?? ""])), [columns]);
17
+ const [internal, setInternal] = React.useState(() => ({ ...firstOf(), ...defaultValue }));
18
+ const value = valueProp ?? internal;
19
+ const itemHeight = ITEM_HEIGHT[size];
20
+ // the listbox owns focus and points at the active row with
21
+ // aria-activedescendant; options are not individually tabbable, which is the
22
+ // ARIA listbox pattern and what lets ↑/↓ work without focus leaving the column
23
+ const baseId = React.useId();
24
+ const optionId = (colKey, value) => `${baseId}-${colKey}-${value}`;
25
+ const refs = React.useRef(new Map());
26
+ // set while a programmatic scroll is settling, so the scroll handler does not
27
+ // read a half-finished position and report a selection nobody picked
28
+ const settling = React.useRef(new Set());
29
+ const commit = (key, next) => {
30
+ if (value[key] === next)
31
+ return;
32
+ const merged = { ...value, [key]: next };
33
+ if (valueProp === undefined)
34
+ setInternal(merged);
35
+ onValueChange?.(merged);
36
+ };
37
+ const scrollTo = React.useCallback((key, index, behavior) => {
38
+ const el = refs.current.get(key);
39
+ if (!el || index < 0)
40
+ return;
41
+ settling.current.add(key);
42
+ el.scrollTo({ top: index * itemHeight, behavior });
43
+ // a smooth scroll has no completion event; one frame past the animation
44
+ // is enough for the snap to land
45
+ setTimeout(() => settling.current.delete(key), behavior === "smooth" ? 300 : 0);
46
+ }, [itemHeight]);
47
+ // keep each column parked on its selected row, including on first paint
48
+ React.useEffect(() => {
49
+ for (const col of columns) {
50
+ const i = col.options.findIndex((o) => o.value === value[col.key]);
51
+ scrollTo(col.key, i, "auto");
52
+ }
53
+ }, [columns, value, scrollTo]);
54
+ const onScroll = (col) => {
55
+ if (settling.current.has(col.key))
56
+ return;
57
+ const el = refs.current.get(col.key);
58
+ if (!el)
59
+ return;
60
+ const i = Math.round(el.scrollTop / itemHeight);
61
+ const opt = col.options[Math.max(0, Math.min(i, col.options.length - 1))];
62
+ if (opt)
63
+ commit(col.key, opt.value);
64
+ };
65
+ const onKeyDown = (e, col) => {
66
+ const i = col.options.findIndex((o) => o.value === value[col.key]);
67
+ const go = (next) => {
68
+ e.preventDefault();
69
+ const clamped = Math.max(0, Math.min(next, col.options.length - 1));
70
+ const opt = col.options[clamped];
71
+ if (!opt)
72
+ return;
73
+ commit(col.key, opt.value);
74
+ scrollTo(col.key, clamped, "smooth");
75
+ };
76
+ if (e.key === "ArrowDown")
77
+ go(i + 1);
78
+ else if (e.key === "ArrowUp")
79
+ go(i - 1);
80
+ else if (e.key === "Home")
81
+ go(0);
82
+ else if (e.key === "End")
83
+ go(col.options.length - 1);
84
+ };
85
+ return (_jsxs("div", { className: wheelpickerRecipe({ size, className }), ...rest, children: [_jsx("div", { className: "wheelpicker-indicator", "aria-hidden": "true" }), _jsx("div", { className: "wheelpicker-fog", children: _jsx("div", { className: "wheelpicker-columns", children: columns.map((col) => (_jsx("div", { role: "listbox", "aria-label": col.label, "aria-activedescendant": optionId(col.key, value[col.key] ?? ""), tabIndex: 0, className: "wheelpicker-column", ref: (el) => {
86
+ if (el)
87
+ refs.current.set(col.key, el);
88
+ else
89
+ refs.current.delete(col.key);
90
+ }, onScroll: () => onScroll(col), onKeyDown: (e) => onKeyDown(e, col), children: col.options.map((opt) => {
91
+ const selected = opt.value === value[col.key];
92
+ return (_jsx("div", { id: optionId(col.key, opt.value), role: "option", "aria-selected": selected, "data-selected": selected ? "" : undefined, className: "wheelpicker-item", onClick: () => {
93
+ commit(col.key, opt.value);
94
+ scrollTo(col.key, col.options.indexOf(opt), "smooth");
95
+ }, children: opt.label }, opt.value));
96
+ }) }, col.key))) }) })] }));
97
+ }
98
+ WheelPicker.displayName = "WheelPicker";
@@ -0,0 +1,92 @@
1
+ import { defineRecipe, resolveRecipe } from "../../core/index.js";
2
+ import { contract as c } from "../../tokens/index.js";
3
+ // seed-design's wheel picker, measured from @seed-design/css.
4
+ //
5
+ // The wheel physics are CSS, not JavaScript: each column is a scroll container
6
+ // with `scroll-snap-type: y mandatory` and items that snap centred, so the
7
+ // browser's own momentum and rubber-banding do the work. Half a viewport of
8
+ // padding above and below is what lets the first and last item reach the
9
+ // centre band.
10
+ //
11
+ // small medium
12
+ // viewport height 180px 220px
13
+ // item height 36px 44px
14
+ // font / line 20/27 26/35
15
+ // fog max height 108px 132px
16
+ // centre offset 72px 88px ((viewport - item) / 2)
17
+ const config = defineRecipe({
18
+ name: "wheelpicker",
19
+ base: `
20
+ position: relative; box-sizing: border-box; width: 100%; overflow: hidden;
21
+ background: ${c.bgSurface}; font-family: ${c.font.sans};
22
+
23
+ /* the band the selected row sits in; behind the items, never hit-tested */
24
+ & .wheelpicker-indicator {
25
+ position: absolute; z-index: 0; inset-inline: ${c.space["4"]}; top: 50%;
26
+ transform: translateY(-50%); border-radius: ${c.radius.md};
27
+ background: ${c.bgNeutralWeak}; pointer-events: none;
28
+ }
29
+
30
+ /* fades the rows furthest from the centre, so the column reads as a wheel
31
+ rather than a list. 40% of the viewport, capped, top and bottom. */
32
+ & .wheelpicker-fog {
33
+ position: relative; z-index: 1; height: 100%; overflow: hidden;
34
+ mask-image: linear-gradient(
35
+ to bottom,
36
+ transparent 0,
37
+ #000 var(--wheelpicker-fog),
38
+ #000 calc(100% - var(--wheelpicker-fog)),
39
+ transparent 100%
40
+ );
41
+ }
42
+ & .wheelpicker-columns { display: flex; width: 100%; height: 100%; justify-content: center; }
43
+
44
+ & .wheelpicker-column {
45
+ box-sizing: border-box; flex: 0 0 auto; width: max-content; height: 100%;
46
+ overflow-x: hidden; overflow-y: auto;
47
+ overscroll-behavior-y: contain; overscroll-behavior-x: none;
48
+ scroll-snap-type: y mandatory; touch-action: pan-y;
49
+ scrollbar-width: none; -ms-overflow-style: none; outline: none;
50
+ padding-block: var(--wheelpicker-offset);
51
+ }
52
+ & .wheelpicker-column::-webkit-scrollbar { display: none; }
53
+
54
+ & .wheelpicker-item {
55
+ display: flex; align-items: center; justify-content: center;
56
+ scroll-snap-align: center; user-select: none; white-space: nowrap;
57
+ padding-inline: ${c.space["4"]}; color: ${c.fgDisabled};
58
+ background: none; border: none; font: inherit; cursor: pointer;
59
+ }
60
+ & .wheelpicker-item[data-selected] { color: ${c.fgPrimary}; }
61
+
62
+ /* the ring is drawn on the SELECTED row, and only for keyboard focus:
63
+ a pointer user has just tapped the row they meant and does not need it */
64
+ & .wheelpicker-column:focus-visible .wheelpicker-item[data-selected] {
65
+ outline: 2px solid ${c.strokeFocusRing}; outline-offset: -2px;
66
+ border-radius: ${c.radius.md};
67
+ }
68
+ `,
69
+ variants: {
70
+ size: {
71
+ small: `
72
+ height: 180px; --wheelpicker-offset: 72px;
73
+ --wheelpicker-fog: min(40%, 108px);
74
+ & .wheelpicker-indicator { height: 36px; }
75
+ & .wheelpicker-item { height: 36px; min-height: 36px; font-size: 20px; line-height: 27px; }
76
+ `,
77
+ medium: `
78
+ height: 220px; --wheelpicker-offset: 88px;
79
+ --wheelpicker-fog: min(40%, 132px);
80
+ & .wheelpicker-indicator { height: 44px; }
81
+ & .wheelpicker-item { height: 44px; min-height: 44px; font-size: 26px; line-height: 35px; }
82
+ `,
83
+ },
84
+ },
85
+ defaultVariants: { size: "medium" },
86
+ compoundVariants: [],
87
+ });
88
+ export const wheelpickerRecipe = Object.assign(resolveRecipe(config), {
89
+ config,
90
+ meta: { medium: { height: "220px", itemHeight: "44px" } },
91
+ });
92
+ export default config;
@@ -0,0 +1 @@
1
+ export { default as cx } from "clsx";
@@ -0,0 +1,3 @@
1
+ export function defineRecipe(config) {
2
+ return config;
3
+ }
@@ -0,0 +1,4 @@
1
+ export { cx } from "./cx.js";
2
+ export { defineRecipe } from "./define.js";
3
+ export { Primitive } from "./primitive.js";
4
+ export { resolveRecipe } from "./resolve.js";
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Slot } from "@radix-ui/react-slot";
3
+ import * as React from "react";
4
+ const NODES = ["button", "div", "span", "a", "input", "p"];
5
+ export const Primitive = NODES.reduce((acc, node) => {
6
+ const Component = React.forwardRef(({ asChild, ...props }, ref) => {
7
+ const Comp = asChild ? Slot : node;
8
+ return _jsx(Comp, { ref: ref, ...props });
9
+ });
10
+ Component.displayName = `Primitive.${node}`;
11
+ acc[node] = Component;
12
+ return acc;
13
+ }, {});
@@ -0,0 +1,41 @@
1
+ import { cx } from "./cx.js";
2
+ const falsyToString = (v) => typeof v === "boolean" ? `${v}` : v === 0 ? "0" : v;
3
+ export function resolveRecipe(config) {
4
+ const { name, base, variants, defaultVariants, compoundVariants } = config;
5
+ return (props) => {
6
+ const classes = [];
7
+ if (base)
8
+ classes.push(name);
9
+ if (variants) {
10
+ for (const variant of Object.keys(variants)) {
11
+ const variantProp = props?.[variant];
12
+ if (variantProp === null)
13
+ continue;
14
+ const defaultProp = defaultVariants?.[variant];
15
+ const key = falsyToString(variantProp) ?? falsyToString(defaultProp);
16
+ if (key == null)
17
+ continue;
18
+ if (variants[variant]?.[key] !== undefined) {
19
+ classes.push(`${name}--${variant}_${key}`);
20
+ }
21
+ }
22
+ const withoutUndefined = props
23
+ ? Object.fromEntries(Object.entries(props).filter(([, v]) => v !== undefined))
24
+ : {};
25
+ const merged = {
26
+ ...defaultVariants,
27
+ ...withoutUndefined,
28
+ };
29
+ compoundVariants?.forEach((cv, i) => {
30
+ const matches = Object.entries(cv).every(([k, val]) => k === "css"
31
+ ? true
32
+ : Array.isArray(val)
33
+ ? val.includes(merged[k])
34
+ : merged[k] === val);
35
+ if (matches)
36
+ classes.push(`${name}--compound_${i}`);
37
+ });
38
+ }
39
+ return cx(classes, props?.class, props?.className);
40
+ };
41
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,76 @@
1
+ // Public API barrel for @crisp-ui-kit/crisp — generated: re-exports every
2
+ // component, the design tokens, and the recipe core. Consumers also import the
3
+ // stylesheet once: import "@crisp-ui-kit/crisp/styles.css";
4
+ // primitives (components/)
5
+ export * from "./components/accordion/index.js";
6
+ export * from "./components/avatar/index.js";
7
+ export * from "./components/avatargroup/index.js";
8
+ export * from "./components/badge/index.js";
9
+ export * from "./components/barchart/index.js";
10
+ export * from "./components/breadcrumb/index.js";
11
+ export * from "./components/bulkbar/index.js";
12
+ export * from "./components/button/index.js";
13
+ export * from "./components/callout/index.js";
14
+ export * from "./components/card/index.js";
15
+ export * from "./components/checkbox/index.js";
16
+ export * from "./components/columncalc/index.js";
17
+ export * from "./components/contextmenu/index.js";
18
+ export * from "./components/datatable/index.js";
19
+ export * from "./components/datepicker/index.js";
20
+ export * from "./components/datepickerfield/index.js";
21
+ export * from "./components/dialog/index.js";
22
+ export * from "./components/divider/index.js";
23
+ export * from "./components/donutchart/index.js";
24
+ export * from "./components/drawer/index.js";
25
+ export * from "./components/emptystate/index.js";
26
+ export * from "./components/formfield/index.js";
27
+ export * from "./components/input/index.js";
28
+ export * from "./components/kbd/index.js";
29
+ export * from "./components/linechart/index.js";
30
+ export * from "./components/menu/index.js";
31
+ export * from "./components/multiselect/index.js";
32
+ export * from "./components/popover/index.js";
33
+ export * from "./components/progress/index.js";
34
+ export * from "./components/radiogroup/index.js";
35
+ export * from "./components/resizablepanel/index.js";
36
+ export * from "./components/segmented/index.js";
37
+ export * from "./components/select/index.js";
38
+ export * from "./components/skeleton/index.js";
39
+ export * from "./components/spinner/index.js";
40
+ export * from "./components/stagebar/index.js";
41
+ export * from "./components/statcard/index.js";
42
+ export * from "./components/switch/index.js";
43
+ export * from "./components/table/index.js";
44
+ export * from "./components/tabletoolbar/index.js";
45
+ export * from "./components/tabs/index.js";
46
+ export * from "./components/textarea/index.js";
47
+ export * from "./components/toast/index.js";
48
+ export * from "./components/tooltip/index.js";
49
+ export * from "./components/wheelpicker/index.js";
50
+ export * from "./core/index.js";
51
+ // product surfaces (product/) — faithful, pixel-measured rebuilds of specific
52
+ // Attio screens (Sidebar, RecordsTable, RecordPage, Inbox, …). Use them as-is
53
+ // or as composition references for your own data; `components/` above holds
54
+ // the generic primitives (Table, DataTable, Button, …) to build your own UI from.
55
+ export * from "./product/appshell/index.js";
56
+ export * from "./product/authshell/index.js";
57
+ export * from "./product/board/index.js";
58
+ export * from "./product/command/index.js";
59
+ export * from "./product/entitycard/index.js";
60
+ export * from "./product/flowcanvas/index.js";
61
+ export * from "./product/inbox/index.js";
62
+ export * from "./product/listpage/index.js";
63
+ export * from "./product/navitem/index.js";
64
+ export * from "./product/onboarding/index.js";
65
+ export * from "./product/recordpage/index.js";
66
+ export * from "./product/recordpanel/index.js";
67
+ export * from "./product/recordstable/index.js";
68
+ export * from "./product/richtext/index.js";
69
+ export * from "./product/settingssection/index.js";
70
+ export * from "./product/settingsshell/index.js";
71
+ export * from "./product/sidebar/index.js";
72
+ export * from "./product/tasklist/index.js";
73
+ export * from "./product/trialbanner/index.js";
74
+ export * from "./product/viewtoggle/index.js";
75
+ // design tokens + recipe core (for building custom components)
76
+ export * from "./tokens/index.js";
@@ -0,0 +1,68 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { PanelLeft } from "lucide-react";
3
+ import * as React from "react";
4
+ import { appshellRecipe } from "./appshell.recipe.js";
5
+ /**
6
+ * App-shell layout with a collapsible + resizable sidebar, mirroring Attio's
7
+ * window: drag the sidebar's right edge to resize, press the sidebar's
8
+ * collapse button to slide it away (a floating button brings it back). The
9
+ * sidebar pane clips rather than squishing, so its content never reflows.
10
+ */
11
+ export function AppShell({ sidebar, children, width: widthProp, defaultWidth = 275, onWidthChange, collapsed: collapsedProp, defaultCollapsed = false, onCollapsedChange, minWidth = 220, maxWidth = 350, className, expandLabel = "Expand sidebar", ...rest }) {
12
+ const [internalCollapsed, setInternalCollapsed] = React.useState(defaultCollapsed);
13
+ const collapsed = collapsedProp ?? internalCollapsed;
14
+ const setCollapsed = (next) => {
15
+ onCollapsedChange?.(next);
16
+ if (collapsedProp === undefined)
17
+ setInternalCollapsed(next);
18
+ };
19
+ const [internalWidth, setInternalWidth] = React.useState(defaultWidth);
20
+ // Live width while the pointer is down, so a controlled shell still tracks
21
+ // the drag instead of waiting for the parent to echo each move back.
22
+ const [dragWidth, setDragWidth] = React.useState(null);
23
+ const width = dragWidth ?? widthProp ?? internalWidth;
24
+ const [dragging, setDragging] = React.useState(false);
25
+ const startResize = (e) => {
26
+ e.preventDefault();
27
+ const startX = e.clientX;
28
+ const startW = width;
29
+ // Attio only enters the drag state once the pointer has actually moved — a
30
+ // click on the handle is not a drag, so the blue bar must not flash on press.
31
+ let moved = false;
32
+ let last = startW;
33
+ const prevSelect = document.body.style.userSelect;
34
+ const prevCursor = document.body.style.cursor;
35
+ document.body.style.userSelect = "none";
36
+ document.body.style.cursor = "col-resize";
37
+ const onMove = (ev) => {
38
+ if (!moved) {
39
+ moved = true;
40
+ setDragging(true);
41
+ }
42
+ const w = Math.round(Math.min(maxWidth, Math.max(minWidth, startW + (ev.clientX - startX))));
43
+ setDragWidth(w);
44
+ last = w;
45
+ };
46
+ const onUp = () => {
47
+ setDragging(false);
48
+ setDragWidth(null);
49
+ if (last !== startW) {
50
+ onWidthChange?.(last);
51
+ if (widthProp === undefined)
52
+ setInternalWidth(last);
53
+ }
54
+ document.body.style.userSelect = prevSelect;
55
+ document.body.style.cursor = prevCursor;
56
+ window.removeEventListener("pointermove", onMove);
57
+ window.removeEventListener("pointerup", onUp);
58
+ };
59
+ window.addEventListener("pointermove", onMove);
60
+ window.addEventListener("pointerup", onUp);
61
+ };
62
+ const toggleCollapse = () => setCollapsed(!collapsed);
63
+ return (_jsxs("div", { className: appshellRecipe({ className }), ...rest, children: [_jsxs("div", { className: "appshell-side", "data-collapsed": collapsed ? "" : undefined, style: {
64
+ width: collapsed ? 0 : width,
65
+ transition: dragging ? "none" : "width .14s ease",
66
+ }, children: [_jsx("div", { className: "appshell-side-inner", style: { width }, children: sidebar(toggleCollapse) }), !collapsed && (_jsx("div", { className: "appshell-resize", "data-dragging": dragging ? "" : undefined, "aria-hidden": "true", onPointerDown: startResize }))] }), _jsxs("div", { className: "appshell-main", children: [collapsed && (_jsx("button", { type: "button", className: "appshell-expand", "aria-label": expandLabel, onClick: () => setCollapsed(false), children: _jsx(PanelLeft, { size: 15, strokeWidth: 1.75 }) })), children] })] }));
67
+ }
68
+ AppShell.displayName = "AppShell";
@@ -0,0 +1,27 @@
1
+ import { defineRecipe, resolveRecipe } from "../../core/index.js";
2
+ import { contract as c } from "../../tokens/index.js";
3
+ // App-shell layout: a collapsible + resizable sidebar pane next to a main pane,
4
+ // mirroring how Attio's window works. The sidebar pane clips (never squishes)
5
+ // when collapsing, and a drag handle on its edge resizes it.
6
+ const config = defineRecipe({
7
+ name: "appshell",
8
+ base: `
9
+ display: flex; height: 100%; width: 100%; overflow: hidden; background: ${c.bgSurface}; font-family: ${c.font.sans}; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
10
+ & .appshell-side { position: relative; flex-shrink: 0; overflow: hidden; }
11
+ & .appshell-side-inner { height: 100%; }
12
+ & .appshell-resize { position: absolute; top: 0; right: 0; width: 10px; height: 100%; cursor: col-resize; z-index: 5; touch-action: none; }
13
+ & .appshell-resize::after { content: ""; position: absolute; top: 0; right: 0; width: 1px; height: 100%; background: ${c.borderSubtle}; transition: background-color .16s, height .16s; }
14
+ & .appshell-resize:hover::after, & .appshell-resize[data-dragging]::after { width: 2px; background: ${c.bgBrandSolid}; }
15
+ & .appshell-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
16
+ & .appshell-expand { position: absolute; top: ${c.space["2"]}; inset-inline-start: ${c.space["2"]}; z-index: 6; display: inline-flex; align-items: center; justify-content: center; width: ${c.size.row}; height: ${c.size.row}; padding: 0; border: none; border-radius: ${c.radius.md}; box-shadow: inset 0 0 0 1px ${c.borderSubtle}; background: ${c.bgSurface}; color: ${c.fgMuted}; font-family: inherit; cursor: pointer; transition: background-color .12s; }
17
+ & .appshell-expand:hover { background: ${c.bgRaised}; color: ${c.fgPrimary}; }
18
+ `,
19
+ variants: {},
20
+ defaultVariants: {},
21
+ compoundVariants: [],
22
+ });
23
+ export const appshellRecipe = Object.assign(resolveRecipe(config), {
24
+ config,
25
+ meta: { sidebar: { defaultWidth: "275px" } },
26
+ });
27
+ export default config;
@@ -0,0 +1,2 @@
1
+ export { AppShell } from "./appshell.js";
2
+ export { appshellRecipe } from "./appshell.recipe.js";
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { authshellRecipe } from "./authshell.recipe.js";
3
+ /**
4
+ * The Attio welcome/auth layout (app.attio.com/welcome/*) — measured live.
5
+ * A centered page frame: an optional top progress bar, a logo, a two-pane
6
+ * card (the form + an optional product preview, hidden under 1200px), and
7
+ * a footer. Auth-surface Input/FormField/Button treatment (flatter fields,
8
+ * 36px buttons) applies automatically to those crisp components when
9
+ * rendered as `children` — see authshell.recipe.ts.
10
+ */
11
+ export function AuthShell({ progress, logo, title, children, preview, footer, className, ...rest }) {
12
+ const hasProgress = typeof progress === "number";
13
+ const pct = hasProgress
14
+ ? Math.round(Math.max(0, Math.min(1, progress)) * 100)
15
+ : 0;
16
+ return (_jsxs("div", { className: authshellRecipe({ className }), ...rest, children: [hasProgress && (_jsx("div", { className: "authshell-progress", role: "progressbar", "aria-valuenow": pct, "aria-valuemin": 0, "aria-valuemax": 100, children: _jsx("div", { className: "authshell-progress-fill", style: { width: `${pct}%` } }) })), logo != null && _jsx("div", { className: "authshell-logo", children: logo }), _jsxs("div", { className: "authshell-card", children: [_jsx("div", { className: "authshell-pane", children: _jsxs("div", { className: "authshell-body", children: [title != null && _jsx("div", { className: "authshell-title", children: title }), _jsx("div", { className: "authshell-form", children: children })] }) }), preview != null && _jsx("div", { className: "authshell-preview", children: preview })] }), footer != null && _jsx("div", { className: "authshell-footer", children: footer })] }));
17
+ }
18
+ AuthShell.displayName = "AuthShell";
@@ -0,0 +1,64 @@
1
+ import { defineRecipe, resolveRecipe } from "../../core/index.js";
2
+ import { contract as c } from "../../tokens/index.js";
3
+ // Attio's welcome/auth surface (app.attio.com/welcome/*) — measured live,
4
+ // 2026-09-15. A centered page frame holding a two-pane card: the form on the
5
+ // left, an optional product preview on the right, with an optional top
6
+ // progress bar and a footer under the card. Every value below is measured
7
+ // from the live app, EXCEPT the 1200px preview-hiding breakpoint (called out
8
+ // at the container query below) — Attio drops the pane in JS somewhere between a
9
+ // measured 954px and 1393px viewport width, so 1200px is chosen, not measured.
10
+ const config = defineRecipe({
11
+ name: "authshell",
12
+ base: `min-height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; position: relative;
13
+ background: ${c.bgSurface}; font-family: ${c.font.sans}; font-size: ${c.text.lg}; line-height: 20px; color: ${c.fgPrimary};
14
+ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
15
+
16
+ & .authshell-progress { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: ${c.borderDefault}; }
17
+ & .authshell-progress-fill { height: 2px; background: ${c.fgPrimary}; border-radius: 4px; transition: width .2s; }
18
+
19
+ & .authshell-logo { margin-top: ${c.space["8"]}; height: 24px; display: flex; align-items: center; }
20
+
21
+ & .authshell-card { margin-top: ${c.space["6"]}; display: flex; height: 692px; border-radius: 20px; border: 1px solid ${c.borderSubtle}; overflow: hidden; }
22
+
23
+ & .authshell-pane { flex: 0 0 564px; padding: 72px; display: flex; flex-direction: column; box-sizing: border-box; }
24
+
25
+ & .authshell-preview { flex: 0 0 564px; padding: 96px 64px; background: ${c.bgSubtle}; border-inline-start: 1px solid color-mix(in srgb, ${c.fgPrimary} 5%, transparent); position: relative; overflow: hidden; box-sizing: border-box; }
26
+ & .authshell-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(color-mix(in srgb, ${c.bgSubtle} 0%, transparent) 0%, ${c.bgSubtle} 100%); pointer-events: none; }
27
+
28
+ & .authshell-body { width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: ${c.space["8"]}; align-items: center; }
29
+
30
+ & .authshell-title { font-size: 20px; line-height: 24px; font-weight: ${c.weight.semibold}; letter-spacing: -0.4px; color: ${c.fgPrimary}; align-self: stretch; }
31
+
32
+ & .authshell-form { align-self: stretch; display: flex; flex-direction: column; gap: 28px; }
33
+
34
+ & .authshell-footer { margin-top: ${c.space["6"]}; display: flex; align-items: center; gap: ${c.space["1"]}; font-size: ${c.text.sm}; line-height: 16px; color: color-mix(in srgb, ${c.fgPrimary} 63%, transparent); }
35
+ & .authshell-footer a { color: inherit; font-weight: ${c.weight.medium}; text-decoration: underline; }
36
+
37
+ /* Auth-surface control treatment: flatter than the in-app chrome — a plain
38
+ hairline ring instead of elevation.field's soft glow, and a 36px (not
39
+ 40px) submit. Scoped to .authshell-body so a consumer keeps using
40
+ crisp's Input / FormField / Button and gets the auth treatment for free. */
41
+ & .authshell-body .formfield-label { font-size: ${c.text.sm}; line-height: 16px; font-weight: ${c.weight.medium}; letter-spacing: -0.12px; color: color-mix(in srgb, ${c.fgPrimary} 50%, transparent); padding-inline-start: ${c.space["1"]}; }
42
+ & .authshell-body .formfield { gap: ${c.space["1"]}; }
43
+ & .authshell-body .input { height: 34px; padding-inline: ${c.space["2.5"]}; border-radius: 10px; background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, ${c.fgPrimary} 6%, transparent); font-size: ${c.text.lg}; font-weight: ${c.weight.medium}; letter-spacing: -0.14px; transition: box-shadow .14s, background-color .14s; }
44
+ & .authshell-body .input:focus { box-shadow: inset 0 0 0 1px ${c.bgBrandSolid}; }
45
+ /* Same three-layer brand shadow as Button's primary intent, but the auth
46
+ button's inset ring is measured at rgba(0,0,0,0.06) — a hairline, not
47
+ the in-app button's rgba(255,255,255,0.07) highlight. */
48
+ & .authshell-body .button { height: 36px; padding-inline: ${c.space["3"]}; border-radius: 10px; }
49
+ & .authshell-body .button--intent_primary { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(38,109,240,0.12), 0 3px 6px -2px rgba(38,109,240,0.08); }
50
+
51
+ /* Attio drops the preview pane in JS on narrow viewports (measured: two
52
+ panes at 1393px, one at 954px), so 1200px is a chosen threshold inside
53
+ that bracket, not a measured value. A CONTAINER query, not a media
54
+ query: the shell is embedded in the docs inside an ~800px column, where
55
+ a viewport query would keep the 1130px card and overflow it. Asking the
56
+ shell's own width is what "there isn't room for the preview" means. */
57
+ container-type: inline-size;
58
+ @container (max-width: 1200px) { & .authshell-preview { display: none; } }`,
59
+ variants: {},
60
+ defaultVariants: {},
61
+ compoundVariants: [],
62
+ });
63
+ export const authshellRecipe = resolveRecipe(config);
64
+ export default config;
@@ -0,0 +1,2 @@
1
+ export { AuthShell } from "./authshell.js";
2
+ export { authshellRecipe } from "./authshell.recipe.js";