@kujoforall/paper-ui 0.1.0 → 0.2.1

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 (553) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/README.md +50 -7
  3. package/dist/components/editor/block-text.d.ts.map +1 -1
  4. package/dist/components/editor/block-text.js +52 -17
  5. package/dist/components/editor/block-text.js.map +1 -1
  6. package/dist/components/editor/blocks.d.ts.map +1 -1
  7. package/dist/components/editor/blocks.js +17 -13
  8. package/dist/components/editor/blocks.js.map +1 -1
  9. package/dist/components/editor/document-editor.d.ts.map +1 -1
  10. package/dist/components/editor/document-editor.js +4 -2
  11. package/dist/components/editor/document-editor.js.map +1 -1
  12. package/dist/components/editor/document-view.d.ts.map +1 -1
  13. package/dist/components/editor/document-view.js +17 -12
  14. package/dist/components/editor/document-view.js.map +1 -1
  15. package/dist/components/editor/editor-state.d.ts +7 -0
  16. package/dist/components/editor/editor-state.d.ts.map +1 -1
  17. package/dist/components/editor/editor-state.js +28 -3
  18. package/dist/components/editor/editor-state.js.map +1 -1
  19. package/dist/components/editor/extensions/kit-blocks.d.ts +34 -0
  20. package/dist/components/editor/extensions/kit-blocks.d.ts.map +1 -0
  21. package/dist/components/editor/extensions/kit-blocks.js +201 -0
  22. package/dist/components/editor/extensions/kit-blocks.js.map +1 -0
  23. package/dist/components/editor/extensions/spoiler.d.ts.map +1 -1
  24. package/dist/components/editor/extensions/spoiler.js +2 -2
  25. package/dist/components/editor/extensions/spoiler.js.map +1 -1
  26. package/dist/components/editor/index.d.ts +1 -0
  27. package/dist/components/editor/index.d.ts.map +1 -1
  28. package/dist/components/editor/index.js +1 -0
  29. package/dist/components/editor/index.js.map +1 -1
  30. package/dist/components/editor/kinds.js +1 -1
  31. package/dist/components/editor/kinds.js.map +1 -1
  32. package/dist/components/editor/look.d.ts +18 -0
  33. package/dist/components/editor/look.d.ts.map +1 -0
  34. package/dist/components/editor/look.js +21 -0
  35. package/dist/components/editor/look.js.map +1 -0
  36. package/dist/components/three/model-viewer.d.ts +36 -0
  37. package/dist/components/three/model-viewer.d.ts.map +1 -0
  38. package/dist/components/three/model-viewer.js +338 -0
  39. package/dist/components/three/model-viewer.js.map +1 -0
  40. package/dist/components/ui/accent-picker.js +1 -1
  41. package/dist/components/ui/accent-picker.js.map +1 -1
  42. package/dist/components/ui/alert-dialog.d.ts +29 -0
  43. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  44. package/dist/components/ui/alert-dialog.js +72 -0
  45. package/dist/components/ui/alert-dialog.js.map +1 -0
  46. package/dist/components/ui/animated-height.d.ts +6 -0
  47. package/dist/components/ui/animated-height.d.ts.map +1 -0
  48. package/dist/components/ui/animated-height.js +26 -0
  49. package/dist/components/ui/animated-height.js.map +1 -0
  50. package/dist/components/ui/app-shell.d.ts +1 -0
  51. package/dist/components/ui/app-shell.d.ts.map +1 -1
  52. package/dist/components/ui/app-shell.js +5 -3
  53. package/dist/components/ui/app-shell.js.map +1 -1
  54. package/dist/components/ui/avatar.d.ts +30 -0
  55. package/dist/components/ui/avatar.d.ts.map +1 -0
  56. package/dist/components/ui/avatar.js +50 -0
  57. package/dist/components/ui/avatar.js.map +1 -0
  58. package/dist/components/ui/badge.d.ts +3 -3
  59. package/dist/components/ui/badge.d.ts.map +1 -1
  60. package/dist/components/ui/badge.js +2 -2
  61. package/dist/components/ui/badge.js.map +1 -1
  62. package/dist/components/ui/banner.d.ts +33 -0
  63. package/dist/components/ui/banner.d.ts.map +1 -0
  64. package/dist/components/ui/banner.js +21 -0
  65. package/dist/components/ui/banner.js.map +1 -0
  66. package/dist/components/ui/breadcrumbs.js +1 -1
  67. package/dist/components/ui/breadcrumbs.js.map +1 -1
  68. package/dist/components/ui/button.d.ts +8 -6
  69. package/dist/components/ui/button.d.ts.map +1 -1
  70. package/dist/components/ui/button.js +91 -26
  71. package/dist/components/ui/button.js.map +1 -1
  72. package/dist/components/ui/calendar.d.ts.map +1 -1
  73. package/dist/components/ui/calendar.js +6 -5
  74. package/dist/components/ui/calendar.js.map +1 -1
  75. package/dist/components/ui/callout.d.ts +23 -4
  76. package/dist/components/ui/callout.d.ts.map +1 -1
  77. package/dist/components/ui/callout.js +28 -15
  78. package/dist/components/ui/callout.js.map +1 -1
  79. package/dist/components/ui/card.d.ts +13 -8
  80. package/dist/components/ui/card.d.ts.map +1 -1
  81. package/dist/components/ui/card.js +10 -9
  82. package/dist/components/ui/card.js.map +1 -1
  83. package/dist/components/ui/checkbox.d.ts +9 -4
  84. package/dist/components/ui/checkbox.d.ts.map +1 -1
  85. package/dist/components/ui/checkbox.js +25 -5
  86. package/dist/components/ui/checkbox.js.map +1 -1
  87. package/dist/components/ui/choice-label.d.ts +13 -0
  88. package/dist/components/ui/choice-label.d.ts.map +1 -0
  89. package/dist/components/ui/choice-label.js +17 -0
  90. package/dist/components/ui/choice-label.js.map +1 -0
  91. package/dist/components/ui/collapsible.d.ts +10 -0
  92. package/dist/components/ui/collapsible.d.ts.map +1 -0
  93. package/dist/components/ui/collapsible.js +21 -0
  94. package/dist/components/ui/collapsible.js.map +1 -0
  95. package/dist/components/ui/collection-layout.d.ts +24 -0
  96. package/dist/components/ui/collection-layout.d.ts.map +1 -0
  97. package/dist/components/ui/collection-layout.js +16 -0
  98. package/dist/components/ui/collection-layout.js.map +1 -0
  99. package/dist/components/ui/combobox.d.ts +10 -0
  100. package/dist/components/ui/combobox.d.ts.map +1 -0
  101. package/dist/components/ui/combobox.js +93 -0
  102. package/dist/components/ui/combobox.js.map +1 -0
  103. package/dist/components/ui/command-menu.d.ts +5 -2
  104. package/dist/components/ui/command-menu.d.ts.map +1 -1
  105. package/dist/components/ui/command-menu.js +31 -6
  106. package/dist/components/ui/command-menu.js.map +1 -1
  107. package/dist/components/ui/context-menu.d.ts +19 -0
  108. package/dist/components/ui/context-menu.d.ts.map +1 -0
  109. package/dist/components/ui/context-menu.js +42 -0
  110. package/dist/components/ui/context-menu.js.map +1 -0
  111. package/dist/components/ui/copy-button.d.ts +11 -0
  112. package/dist/components/ui/copy-button.d.ts.map +1 -0
  113. package/dist/components/ui/copy-button.js +48 -0
  114. package/dist/components/ui/copy-button.js.map +1 -0
  115. package/dist/components/ui/database/calendar-view.d.ts +10 -0
  116. package/dist/components/ui/database/calendar-view.d.ts.map +1 -0
  117. package/dist/components/ui/database/calendar-view.js +65 -0
  118. package/dist/components/ui/database/calendar-view.js.map +1 -0
  119. package/dist/components/ui/database/card-views.d.ts +22 -0
  120. package/dist/components/ui/database/card-views.d.ts.map +1 -0
  121. package/dist/components/ui/database/card-views.js +74 -0
  122. package/dist/components/ui/database/card-views.js.map +1 -0
  123. package/dist/components/ui/database/cells.d.ts +20 -0
  124. package/dist/components/ui/database/cells.d.ts.map +1 -0
  125. package/dist/components/ui/database/cells.js +132 -0
  126. package/dist/components/ui/database/cells.js.map +1 -0
  127. package/dist/components/ui/database/database.d.ts +19 -0
  128. package/dist/components/ui/database/database.d.ts.map +1 -0
  129. package/dist/components/ui/database/database.js +102 -0
  130. package/dist/components/ui/database/database.js.map +1 -0
  131. package/dist/components/ui/database/icons.d.ts +5 -0
  132. package/dist/components/ui/database/icons.d.ts.map +1 -0
  133. package/dist/components/ui/database/icons.js +13 -0
  134. package/dist/components/ui/database/icons.js.map +1 -0
  135. package/dist/components/ui/database/table-view.d.ts +11 -0
  136. package/dist/components/ui/database/table-view.d.ts.map +1 -0
  137. package/dist/components/ui/database/table-view.js +157 -0
  138. package/dist/components/ui/database/table-view.js.map +1 -0
  139. package/dist/components/ui/date-picker.d.ts +6 -1
  140. package/dist/components/ui/date-picker.d.ts.map +1 -1
  141. package/dist/components/ui/date-picker.js +20 -12
  142. package/dist/components/ui/date-picker.js.map +1 -1
  143. package/dist/components/ui/date-time-picker.d.ts +3 -1
  144. package/dist/components/ui/date-time-picker.d.ts.map +1 -1
  145. package/dist/components/ui/date-time-picker.js +17 -15
  146. package/dist/components/ui/date-time-picker.js.map +1 -1
  147. package/dist/components/ui/dialog.d.ts +13 -9
  148. package/dist/components/ui/dialog.d.ts.map +1 -1
  149. package/dist/components/ui/dialog.js +33 -3
  150. package/dist/components/ui/dialog.js.map +1 -1
  151. package/dist/components/ui/document-layout.d.ts +15 -0
  152. package/dist/components/ui/document-layout.d.ts.map +1 -0
  153. package/dist/components/ui/document-layout.js +15 -0
  154. package/dist/components/ui/document-layout.js.map +1 -0
  155. package/dist/components/ui/dropdown-menu.d.ts +14 -10
  156. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  157. package/dist/components/ui/dropdown-menu.js +22 -13
  158. package/dist/components/ui/dropdown-menu.js.map +1 -1
  159. package/dist/components/ui/editable-text.d.ts +9 -2
  160. package/dist/components/ui/editable-text.d.ts.map +1 -1
  161. package/dist/components/ui/editable-text.js +27 -10
  162. package/dist/components/ui/editable-text.js.map +1 -1
  163. package/dist/components/ui/empty-state.d.ts +11 -0
  164. package/dist/components/ui/empty-state.d.ts.map +1 -0
  165. package/dist/components/ui/empty-state.js +9 -0
  166. package/dist/components/ui/empty-state.js.map +1 -0
  167. package/dist/components/ui/error-state.d.ts +20 -0
  168. package/dist/components/ui/error-state.d.ts.map +1 -0
  169. package/dist/components/ui/error-state.js +17 -0
  170. package/dist/components/ui/error-state.js.map +1 -0
  171. package/dist/components/ui/field-button.d.ts +2 -1
  172. package/dist/components/ui/field-button.d.ts.map +1 -1
  173. package/dist/components/ui/field-button.js +7 -5
  174. package/dist/components/ui/field-button.js.map +1 -1
  175. package/dist/components/ui/file-preview.js +1 -1
  176. package/dist/components/ui/file-preview.js.map +1 -1
  177. package/dist/components/ui/file-uploader.d.ts.map +1 -1
  178. package/dist/components/ui/file-uploader.js +5 -4
  179. package/dist/components/ui/file-uploader.js.map +1 -1
  180. package/dist/components/ui/filter-builder.d.ts +18 -0
  181. package/dist/components/ui/filter-builder.d.ts.map +1 -0
  182. package/dist/components/ui/filter-builder.js +98 -0
  183. package/dist/components/ui/filter-builder.js.map +1 -0
  184. package/dist/components/ui/focus-shell.d.ts +14 -0
  185. package/dist/components/ui/focus-shell.d.ts.map +1 -0
  186. package/dist/components/ui/focus-shell.js +13 -0
  187. package/dist/components/ui/focus-shell.js.map +1 -0
  188. package/dist/components/ui/handle-row.d.ts +11 -1
  189. package/dist/components/ui/handle-row.d.ts.map +1 -1
  190. package/dist/components/ui/handle-row.js +101 -32
  191. package/dist/components/ui/handle-row.js.map +1 -1
  192. package/dist/components/ui/header-bar.d.ts +5 -0
  193. package/dist/components/ui/header-bar.d.ts.map +1 -0
  194. package/dist/components/ui/header-bar.js +10 -0
  195. package/dist/components/ui/header-bar.js.map +1 -0
  196. package/dist/components/ui/hover-card.d.ts +6 -0
  197. package/dist/components/ui/hover-card.d.ts.map +1 -0
  198. package/dist/components/ui/hover-card.js +13 -0
  199. package/dist/components/ui/hover-card.js.map +1 -0
  200. package/dist/components/ui/image-block.js +4 -4
  201. package/dist/components/ui/image-block.js.map +1 -1
  202. package/dist/components/ui/image-card.d.ts.map +1 -1
  203. package/dist/components/ui/image-card.js +5 -4
  204. package/dist/components/ui/image-card.js.map +1 -1
  205. package/dist/components/ui/image-framer.d.ts +24 -0
  206. package/dist/components/ui/image-framer.d.ts.map +1 -0
  207. package/dist/components/ui/image-framer.js +89 -0
  208. package/dist/components/ui/image-framer.js.map +1 -0
  209. package/dist/components/ui/image-viewer.d.ts.map +1 -1
  210. package/dist/components/ui/image-viewer.js +38 -5
  211. package/dist/components/ui/image-viewer.js.map +1 -1
  212. package/dist/components/ui/image.d.ts +25 -3
  213. package/dist/components/ui/image.d.ts.map +1 -1
  214. package/dist/components/ui/image.js +50 -21
  215. package/dist/components/ui/image.js.map +1 -1
  216. package/dist/components/ui/index.d.ts +54 -11
  217. package/dist/components/ui/index.d.ts.map +1 -1
  218. package/dist/components/ui/index.js +53 -10
  219. package/dist/components/ui/index.js.map +1 -1
  220. package/dist/components/ui/input.d.ts +71 -12
  221. package/dist/components/ui/input.d.ts.map +1 -1
  222. package/dist/components/ui/input.js +236 -23
  223. package/dist/components/ui/input.js.map +1 -1
  224. package/dist/components/ui/link-block.d.ts.map +1 -1
  225. package/dist/components/ui/link-block.js +1 -1
  226. package/dist/components/ui/link-block.js.map +1 -1
  227. package/dist/components/ui/list-detail.d.ts +23 -0
  228. package/dist/components/ui/list-detail.d.ts.map +1 -0
  229. package/dist/components/ui/list-detail.js +33 -0
  230. package/dist/components/ui/list-detail.js.map +1 -0
  231. package/dist/components/ui/listbox.d.ts +7 -0
  232. package/dist/components/ui/listbox.d.ts.map +1 -0
  233. package/dist/components/ui/listbox.js +29 -0
  234. package/dist/components/ui/listbox.js.map +1 -0
  235. package/dist/components/ui/mac-card.js +1 -1
  236. package/dist/components/ui/mac-card.js.map +1 -1
  237. package/dist/components/ui/month-picker.d.ts +13 -0
  238. package/dist/components/ui/month-picker.d.ts.map +1 -0
  239. package/dist/components/ui/month-picker.js +53 -0
  240. package/dist/components/ui/month-picker.js.map +1 -0
  241. package/dist/components/ui/multi-select.d.ts +22 -0
  242. package/dist/components/ui/multi-select.d.ts.map +1 -0
  243. package/dist/components/ui/multi-select.js +88 -0
  244. package/dist/components/ui/multi-select.js.map +1 -0
  245. package/dist/components/ui/nav-tree.d.ts.map +1 -1
  246. package/dist/components/ui/nav-tree.js +10 -3
  247. package/dist/components/ui/nav-tree.js.map +1 -1
  248. package/dist/components/ui/page.d.ts +16 -5
  249. package/dist/components/ui/page.d.ts.map +1 -1
  250. package/dist/components/ui/page.js +23 -10
  251. package/dist/components/ui/page.js.map +1 -1
  252. package/dist/components/ui/pagination.d.ts +26 -0
  253. package/dist/components/ui/pagination.d.ts.map +1 -0
  254. package/dist/components/ui/pagination.js +54 -0
  255. package/dist/components/ui/pagination.js.map +1 -0
  256. package/dist/components/ui/picker-panel.d.ts +13 -0
  257. package/dist/components/ui/picker-panel.d.ts.map +1 -0
  258. package/dist/components/ui/picker-panel.js +19 -0
  259. package/dist/components/ui/picker-panel.js.map +1 -0
  260. package/dist/components/ui/popover.d.ts +2 -2
  261. package/dist/components/ui/popover.d.ts.map +1 -1
  262. package/dist/components/ui/popover.js +1 -1
  263. package/dist/components/ui/popover.js.map +1 -1
  264. package/dist/components/ui/progress.d.ts +11 -1
  265. package/dist/components/ui/progress.d.ts.map +1 -1
  266. package/dist/components/ui/progress.js +17 -4
  267. package/dist/components/ui/progress.js.map +1 -1
  268. package/dist/components/ui/property.d.ts +2 -6
  269. package/dist/components/ui/property.d.ts.map +1 -1
  270. package/dist/components/ui/property.js +6 -22
  271. package/dist/components/ui/property.js.map +1 -1
  272. package/dist/components/ui/radio-group.d.ts +8 -0
  273. package/dist/components/ui/radio-group.d.ts.map +1 -0
  274. package/dist/components/ui/radio-group.js +18 -0
  275. package/dist/components/ui/radio-group.js.map +1 -0
  276. package/dist/components/ui/rating.d.ts +14 -0
  277. package/dist/components/ui/rating.d.ts.map +1 -0
  278. package/dist/components/ui/rating.js +61 -0
  279. package/dist/components/ui/rating.js.map +1 -0
  280. package/dist/components/ui/save-status.d.ts +8 -0
  281. package/dist/components/ui/save-status.d.ts.map +1 -0
  282. package/dist/components/ui/save-status.js +31 -0
  283. package/dist/components/ui/save-status.js.map +1 -0
  284. package/dist/components/ui/segmented.d.ts +15 -7
  285. package/dist/components/ui/segmented.d.ts.map +1 -1
  286. package/dist/components/ui/segmented.js +8 -6
  287. package/dist/components/ui/segmented.js.map +1 -1
  288. package/dist/components/ui/select-menu.d.ts +3 -1
  289. package/dist/components/ui/select-menu.d.ts.map +1 -1
  290. package/dist/components/ui/select-menu.js +2 -2
  291. package/dist/components/ui/select-menu.js.map +1 -1
  292. package/dist/components/ui/select.d.ts +7 -2
  293. package/dist/components/ui/select.d.ts.map +1 -1
  294. package/dist/components/ui/select.js +19 -5
  295. package/dist/components/ui/select.js.map +1 -1
  296. package/dist/components/ui/selection-bar.js +1 -1
  297. package/dist/components/ui/selection-bar.js.map +1 -1
  298. package/dist/components/ui/settings-layout.d.ts +34 -0
  299. package/dist/components/ui/settings-layout.d.ts.map +1 -0
  300. package/dist/components/ui/settings-layout.js +16 -0
  301. package/dist/components/ui/settings-layout.js.map +1 -0
  302. package/dist/components/ui/share-link.d.ts +14 -0
  303. package/dist/components/ui/share-link.d.ts.map +1 -0
  304. package/dist/components/ui/share-link.js +16 -0
  305. package/dist/components/ui/share-link.js.map +1 -0
  306. package/dist/components/ui/sheet.d.ts +21 -0
  307. package/dist/components/ui/sheet.d.ts.map +1 -0
  308. package/dist/components/ui/sheet.js +53 -0
  309. package/dist/components/ui/sheet.js.map +1 -0
  310. package/dist/components/ui/sidebar.d.ts +82 -0
  311. package/dist/components/ui/sidebar.d.ts.map +1 -0
  312. package/dist/components/ui/sidebar.js +258 -0
  313. package/dist/components/ui/sidebar.js.map +1 -0
  314. package/dist/components/ui/skeleton.d.ts +8 -0
  315. package/dist/components/ui/skeleton.d.ts.map +1 -0
  316. package/dist/components/ui/skeleton.js +15 -0
  317. package/dist/components/ui/skeleton.js.map +1 -0
  318. package/dist/components/ui/spinner.d.ts +12 -0
  319. package/dist/components/ui/spinner.d.ts.map +1 -0
  320. package/dist/components/ui/spinner.js +14 -0
  321. package/dist/components/ui/spinner.js.map +1 -0
  322. package/dist/components/ui/spotlight.d.ts.map +1 -1
  323. package/dist/components/ui/spotlight.js +14 -11
  324. package/dist/components/ui/spotlight.js.map +1 -1
  325. package/dist/components/ui/step-dialog.js +3 -3
  326. package/dist/components/ui/step-dialog.js.map +1 -1
  327. package/dist/components/ui/steps-layout.d.ts +20 -0
  328. package/dist/components/ui/steps-layout.d.ts.map +1 -0
  329. package/dist/components/ui/steps-layout.js +26 -0
  330. package/dist/components/ui/steps-layout.js.map +1 -0
  331. package/dist/components/ui/switch.d.ts +8 -0
  332. package/dist/components/ui/switch.d.ts.map +1 -0
  333. package/dist/components/ui/switch.js +21 -0
  334. package/dist/components/ui/switch.js.map +1 -0
  335. package/dist/components/ui/table.d.ts +13 -5
  336. package/dist/components/ui/table.d.ts.map +1 -1
  337. package/dist/components/ui/table.js +65 -12
  338. package/dist/components/ui/table.js.map +1 -1
  339. package/dist/components/ui/tabs.d.ts +7 -0
  340. package/dist/components/ui/tabs.d.ts.map +1 -0
  341. package/dist/components/ui/tabs.js +19 -0
  342. package/dist/components/ui/tabs.js.map +1 -0
  343. package/dist/components/ui/theme-toggle.d.ts +14 -0
  344. package/dist/components/ui/theme-toggle.d.ts.map +1 -1
  345. package/dist/components/ui/theme-toggle.js +69 -41
  346. package/dist/components/ui/theme-toggle.js.map +1 -1
  347. package/dist/components/ui/time-list.d.ts +16 -0
  348. package/dist/components/ui/time-list.d.ts.map +1 -0
  349. package/dist/components/ui/time-list.js +49 -0
  350. package/dist/components/ui/time-list.js.map +1 -0
  351. package/dist/components/ui/time-picker.d.ts +37 -11
  352. package/dist/components/ui/time-picker.d.ts.map +1 -1
  353. package/dist/components/ui/time-picker.js +130 -52
  354. package/dist/components/ui/time-picker.js.map +1 -1
  355. package/dist/components/ui/toast.d.ts +18 -0
  356. package/dist/components/ui/toast.d.ts.map +1 -0
  357. package/dist/components/ui/toast.js +77 -0
  358. package/dist/components/ui/toast.js.map +1 -0
  359. package/dist/components/ui/toggle.d.ts +15 -0
  360. package/dist/components/ui/toggle.d.ts.map +1 -0
  361. package/dist/components/ui/toggle.js +55 -0
  362. package/dist/components/ui/toggle.js.map +1 -0
  363. package/dist/components/ui/tooltip.d.ts +1 -1
  364. package/dist/components/ui/tooltip.d.ts.map +1 -1
  365. package/dist/components/ui/tooltip.js +13 -2
  366. package/dist/components/ui/tooltip.js.map +1 -1
  367. package/dist/components/ui/top-bar.d.ts +25 -0
  368. package/dist/components/ui/top-bar.d.ts.map +1 -0
  369. package/dist/components/ui/top-bar.js +23 -0
  370. package/dist/components/ui/top-bar.js.map +1 -0
  371. package/dist/components/ui/typography.d.ts +11 -5
  372. package/dist/components/ui/typography.d.ts.map +1 -1
  373. package/dist/components/ui/typography.js +31 -5
  374. package/dist/components/ui/typography.js.map +1 -1
  375. package/dist/components/ui/video-block.d.ts.map +1 -1
  376. package/dist/components/ui/video-block.js +5 -1
  377. package/dist/components/ui/video-block.js.map +1 -1
  378. package/dist/hooks/use-dismiss.d.ts +5 -0
  379. package/dist/hooks/use-dismiss.d.ts.map +1 -0
  380. package/dist/hooks/use-dismiss.js +23 -0
  381. package/dist/hooks/use-dismiss.js.map +1 -0
  382. package/dist/hooks/use-escape-first.d.ts +3 -0
  383. package/dist/hooks/use-escape-first.d.ts.map +1 -0
  384. package/dist/hooks/use-escape-first.js +27 -0
  385. package/dist/hooks/use-escape-first.js.map +1 -0
  386. package/dist/hooks/use-media-query.d.ts +5 -0
  387. package/dist/hooks/use-media-query.d.ts.map +1 -0
  388. package/dist/hooks/use-media-query.js +16 -0
  389. package/dist/hooks/use-media-query.js.map +1 -0
  390. package/dist/hooks/use-save-queue.d.ts.map +1 -1
  391. package/dist/hooks/use-save-queue.js +19 -7
  392. package/dist/hooks/use-save-queue.js.map +1 -1
  393. package/dist/hooks/use-selection.d.ts.map +1 -1
  394. package/dist/hooks/use-selection.js +10 -1
  395. package/dist/hooks/use-selection.js.map +1 -1
  396. package/dist/lib/database.d.ts +92 -0
  397. package/dist/lib/database.d.ts.map +1 -0
  398. package/dist/lib/database.js +272 -0
  399. package/dist/lib/database.js.map +1 -0
  400. package/dist/lib/dates.d.ts +16 -0
  401. package/dist/lib/dates.d.ts.map +1 -1
  402. package/dist/lib/dates.js +27 -0
  403. package/dist/lib/dates.js.map +1 -1
  404. package/dist/lib/keys.d.ts +18 -0
  405. package/dist/lib/keys.d.ts.map +1 -0
  406. package/dist/lib/keys.js +66 -0
  407. package/dist/lib/keys.js.map +1 -0
  408. package/dist/lib/number.d.ts +4 -0
  409. package/dist/lib/number.d.ts.map +1 -0
  410. package/dist/lib/number.js +33 -0
  411. package/dist/lib/number.js.map +1 -0
  412. package/dist/lib/pointer.d.ts +2 -0
  413. package/dist/lib/pointer.d.ts.map +1 -0
  414. package/dist/lib/pointer.js +4 -0
  415. package/dist/lib/pointer.js.map +1 -0
  416. package/dist/lib/prepare-image.d.ts +43 -0
  417. package/dist/lib/prepare-image.d.ts.map +1 -0
  418. package/dist/lib/prepare-image.js +105 -0
  419. package/dist/lib/prepare-image.js.map +1 -0
  420. package/dist/lib/rich-text-dom.d.ts +2 -0
  421. package/dist/lib/rich-text-dom.d.ts.map +1 -1
  422. package/dist/lib/rich-text-dom.js +5 -3
  423. package/dist/lib/rich-text-dom.js.map +1 -1
  424. package/dist/lib/theme.d.ts +6 -0
  425. package/dist/lib/theme.d.ts.map +1 -0
  426. package/dist/lib/theme.js +15 -0
  427. package/dist/lib/theme.js.map +1 -0
  428. package/dist/lib/time.d.ts +19 -0
  429. package/dist/lib/time.d.ts.map +1 -0
  430. package/dist/lib/time.js +91 -0
  431. package/dist/lib/time.js.map +1 -0
  432. package/dist/lib/utils.d.ts.map +1 -1
  433. package/dist/lib/utils.js +20 -2
  434. package/dist/lib/utils.js.map +1 -1
  435. package/dist/styles/notion.css +342 -51
  436. package/package.json +27 -4
  437. package/src/components/editor/block-text.tsx +58 -17
  438. package/src/components/editor/blocks.tsx +19 -14
  439. package/src/components/editor/document-editor.tsx +7 -2
  440. package/src/components/editor/document-view.tsx +37 -24
  441. package/src/components/editor/editor-state.tsx +31 -3
  442. package/src/components/editor/extensions/kit-blocks.tsx +452 -0
  443. package/src/components/editor/extensions/spoiler.tsx +9 -4
  444. package/src/components/editor/index.ts +1 -0
  445. package/src/components/editor/kinds.ts +1 -1
  446. package/src/components/editor/look.tsx +36 -0
  447. package/src/components/three/model-viewer.tsx +514 -0
  448. package/src/components/ui/accent-picker.tsx +2 -2
  449. package/src/components/ui/alert-dialog.tsx +136 -0
  450. package/src/components/ui/animated-height.tsx +34 -0
  451. package/src/components/ui/app-shell.tsx +9 -7
  452. package/src/components/ui/avatar.tsx +106 -0
  453. package/src/components/ui/badge.tsx +4 -4
  454. package/src/components/ui/banner.tsx +53 -0
  455. package/src/components/ui/breadcrumbs.tsx +1 -1
  456. package/src/components/ui/button.tsx +115 -41
  457. package/src/components/ui/calendar.tsx +8 -7
  458. package/src/components/ui/callout.tsx +41 -42
  459. package/src/components/ui/card.tsx +27 -58
  460. package/src/components/ui/checkbox.tsx +53 -19
  461. package/src/components/ui/choice-label.tsx +43 -0
  462. package/src/components/ui/collapsible.tsx +58 -0
  463. package/src/components/ui/collection-layout.tsx +69 -0
  464. package/src/components/ui/combobox.tsx +155 -0
  465. package/src/components/ui/command-menu.tsx +61 -31
  466. package/src/components/ui/context-menu.tsx +89 -0
  467. package/src/components/ui/copy-button.tsx +80 -0
  468. package/src/components/ui/database/calendar-view.tsx +180 -0
  469. package/src/components/ui/database/card-views.tsx +221 -0
  470. package/src/components/ui/database/cells.tsx +237 -0
  471. package/src/components/ui/database/database.tsx +279 -0
  472. package/src/components/ui/database/icons.ts +15 -0
  473. package/src/components/ui/database/table-view.tsx +311 -0
  474. package/src/components/ui/date-picker.tsx +99 -61
  475. package/src/components/ui/date-time-picker.tsx +68 -62
  476. package/src/components/ui/dialog.tsx +48 -21
  477. package/src/components/ui/document-layout.tsx +52 -0
  478. package/src/components/ui/dropdown-menu.tsx +33 -31
  479. package/src/components/ui/editable-text.tsx +40 -7
  480. package/src/components/ui/empty-state.tsx +35 -0
  481. package/src/components/ui/error-state.tsx +67 -0
  482. package/src/components/ui/field-button.tsx +11 -9
  483. package/src/components/ui/file-preview.tsx +1 -1
  484. package/src/components/ui/file-uploader.tsx +23 -24
  485. package/src/components/ui/filter-builder.tsx +304 -0
  486. package/src/components/ui/focus-shell.tsx +48 -0
  487. package/src/components/ui/handle-row.tsx +176 -40
  488. package/src/components/ui/header-bar.tsx +15 -0
  489. package/src/components/ui/hover-card.tsx +30 -0
  490. package/src/components/ui/image-block.tsx +6 -6
  491. package/src/components/ui/image-card.tsx +18 -25
  492. package/src/components/ui/image-framer.tsx +160 -0
  493. package/src/components/ui/image-viewer.tsx +53 -10
  494. package/src/components/ui/image.tsx +133 -29
  495. package/src/components/ui/index.ts +106 -11
  496. package/src/components/ui/input.tsx +437 -65
  497. package/src/components/ui/link-block.tsx +5 -2
  498. package/src/components/ui/list-detail.tsx +115 -0
  499. package/src/components/ui/listbox.ts +26 -0
  500. package/src/components/ui/mac-card.tsx +5 -5
  501. package/src/components/ui/month-picker.tsx +119 -0
  502. package/src/components/ui/multi-select.tsx +221 -0
  503. package/src/components/ui/nav-tree.tsx +11 -5
  504. package/src/components/ui/page.tsx +63 -15
  505. package/src/components/ui/pagination.tsx +143 -0
  506. package/src/components/ui/picker-panel.tsx +69 -0
  507. package/src/components/ui/popover.tsx +3 -3
  508. package/src/components/ui/progress.tsx +56 -16
  509. package/src/components/ui/property.tsx +6 -37
  510. package/src/components/ui/radio-group.tsx +61 -0
  511. package/src/components/ui/rating.tsx +122 -0
  512. package/src/components/ui/save-status.tsx +53 -0
  513. package/src/components/ui/segmented.tsx +48 -16
  514. package/src/components/ui/select-menu.tsx +11 -3
  515. package/src/components/ui/select.tsx +33 -10
  516. package/src/components/ui/selection-bar.tsx +1 -1
  517. package/src/components/ui/settings-layout.tsx +117 -0
  518. package/src/components/ui/share-link.tsx +66 -0
  519. package/src/components/ui/sheet.tsx +90 -0
  520. package/src/components/ui/sidebar.tsx +627 -0
  521. package/src/components/ui/skeleton.tsx +22 -0
  522. package/src/components/ui/spinner.tsx +28 -0
  523. package/src/components/ui/spotlight.tsx +21 -21
  524. package/src/components/ui/step-dialog.tsx +6 -6
  525. package/src/components/ui/steps-layout.tsx +91 -0
  526. package/src/components/ui/switch.tsx +55 -0
  527. package/src/components/ui/table.tsx +75 -18
  528. package/src/components/ui/tabs.tsx +41 -0
  529. package/src/components/ui/theme-toggle.tsx +74 -83
  530. package/src/components/ui/time-list.tsx +106 -0
  531. package/src/components/ui/time-picker.tsx +305 -134
  532. package/src/components/ui/toast.tsx +132 -0
  533. package/src/components/ui/toggle.tsx +76 -0
  534. package/src/components/ui/tooltip.tsx +20 -6
  535. package/src/components/ui/top-bar.tsx +118 -0
  536. package/src/components/ui/typography.tsx +45 -9
  537. package/src/components/ui/video-block.tsx +9 -3
  538. package/src/hooks/use-dismiss.ts +24 -0
  539. package/src/hooks/use-escape-first.ts +25 -0
  540. package/src/hooks/use-media-query.ts +23 -0
  541. package/src/hooks/use-save-queue.ts +19 -7
  542. package/src/hooks/use-selection.ts +8 -1
  543. package/src/lib/database.ts +322 -0
  544. package/src/lib/dates.ts +36 -0
  545. package/src/lib/keys.ts +72 -0
  546. package/src/lib/number.ts +29 -0
  547. package/src/lib/pointer.ts +3 -0
  548. package/src/lib/prepare-image.ts +141 -0
  549. package/src/lib/rich-text-dom.ts +5 -3
  550. package/src/lib/theme.ts +18 -0
  551. package/src/lib/time.ts +83 -0
  552. package/src/lib/utils.ts +21 -2
  553. package/src/styles/notion.css +342 -51
@@ -1,45 +1,110 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Slot } from "@radix-ui/react-slot";
4
4
  import { cva } from "class-variance-authority";
5
+ import { Children, isValidElement } from "react";
5
6
  import { cn } from "../../lib/utils.js";
6
- /* Buttons are small (28–32px), lightly weighted and 4px-rounded. The
7
- loudest thing a Notion button ever does is fill with accent blue, and
8
- only one button per view earns that. Everything else is a tint. */
7
+ import { Spinner } from "./spinner.js";
8
+ /* Buttons are small (28–40px), lightly weighted and 4px-rounded. The loudest thing a
9
+ Notion button ever does is fill with the accent, and only one button per view
10
+ earns that. Everything else is a tint.
11
+
12
+ Every variant has its rest, hover, pressed, focus (the kit's ring) and disabled
13
+ look; a filled one's white text passes WCAG AA on every colour theme because it
14
+ sits on the deeper `-solid` fill. A link styled as a button is disabled with
15
+ aria-disabled, which looks and behaves the same. */
9
16
  const buttonVariants = cva([
10
- "inline-flex items-center justify-center gap-1.5 shrink-0",
17
+ "inline-flex items-center justify-center gap-1.5 shrink-0 min-w-0 max-w-full relative",
11
18
  "rounded-control font-medium whitespace-nowrap select-none",
12
- "transition-[background-color,box-shadow,opacity] duration-100 ease-out-notion",
13
- "disabled:pointer-events-none disabled:text-ink-disabled disabled:shadow-none",
19
+ "transition-[background-color,box-shadow,color] duration-(--duration-fast) ease-out-notion",
20
+ // Written out in full, so Tailwind finds them.
21
+ "disabled:pointer-events-none disabled:text-ink-disabled aria-disabled:pointer-events-none aria-disabled:text-ink-disabled",
14
22
  "[&_svg]:shrink-0 [&_svg]:pointer-events-none",
15
23
  ], {
16
24
  variants: {
17
25
  variant: {
18
- /** The one loud option. Max one per view. */
19
- primary: "bg-accent text-accent-ink hover:bg-accent-hover disabled:bg-tint-active disabled:text-ink-disabled",
20
- /** The workhorse: white, hairline ring, whisper of lift. */
21
- secondary: "bg-surface text-ink shadow-xs hover:bg-tint-hover disabled:bg-surface",
22
- /** Invisible until hovered — toolbars, row actions. */
23
- ghost: "text-ink hover:bg-tint-hover",
24
- /** Pre-tinted, for a secondary action that needs weight. */
25
- subtle: "bg-tint-hover text-ink hover:bg-tint-active",
26
- danger: "bg-danger text-white hover:bg-danger-hover",
27
- "danger-ghost": "text-danger hover:bg-danger-tint disabled:text-ink-disabled",
28
- link: "text-ink underline decoration-ink-tertiary underline-offset-2 hover:decoration-ink",
26
+ /** The one loud option. At most one per view. */
27
+ primary: [
28
+ "bg-accent-solid text-accent-ink hover:bg-accent-solid-hover active:bg-accent-solid-active",
29
+ "disabled:bg-tint-active aria-disabled:bg-tint-active",
30
+ ],
31
+ /** The workhorse: the page's surface, a hairline ring, a whisper of lift. */
32
+ secondary: "bg-surface text-ink shadow-xs hover:bg-tint-hover active:bg-tint-active",
33
+ /** Invisible until hovered: toolbars, a row's actions. */
34
+ ghost: "text-ink hover:bg-tint-hover active:bg-tint-active",
35
+ /** Already tinted, for a second action that needs weight. */
36
+ subtle: "bg-tint-hover text-ink hover:bg-tint-active active:bg-tint-active active:shadow-edge",
37
+ /** Cannot be undone. Filled, like primary, so it is never the quiet choice. */
38
+ danger: [
39
+ "bg-danger-solid text-danger-ink hover:bg-danger-solid-hover active:bg-danger-solid-active",
40
+ "disabled:bg-tint-active aria-disabled:bg-tint-active",
41
+ ],
42
+ /** Cannot be undone, in a menu or a row where a fill would shout. */
43
+ "danger-ghost": "text-danger hover:bg-danger-tint active:bg-danger-tint active:shadow-edge",
44
+ /** Over a picture: round, dark and blurred, so it reads against a bright sky as well as a dark one. */
45
+ "on-media": "rounded-full bg-on-media text-on-media-ink backdrop-blur-sm hover:bg-on-media-strong active:scale-90 transition-[opacity,scale,background-color]",
46
+ /** Words in a sentence that act. */
47
+ link: "link text-ink px-0! h-auto!",
29
48
  },
30
49
  size: {
31
- sm: "h-7 px-2 text-sm [&_svg]:size-3.5",
32
- md: "h-8 px-3 text-sm [&_svg]:size-4",
33
- lg: "h-10 px-4 text-body [&_svg]:size-4",
34
- icon: "size-8 [&_svg]:size-4",
35
- "icon-sm": "size-7 [&_svg]:size-3.5",
50
+ /* A leading icon carries its own empty margin, so the left of the
51
+ button reads as roomier than the right. A little more on the right
52
+ evens the two out. */
53
+ sm: "h-control-sm px-2 text-sm [&_svg]:size-3.5 has-[>svg:first-child]:pr-2.5",
54
+ md: "h-control-md px-3 text-sm [&_svg]:size-4 has-[>svg:first-child]:pr-3.5",
55
+ lg: "h-control-lg px-4 text-body [&_svg]:size-4 has-[>svg:first-child]:pr-5",
56
+ /** Icon only, at each control height. Name it with aria-label. */
57
+ "icon-sm": "size-control-sm [&_svg]:size-3.5",
58
+ icon: "size-control-md [&_svg]:size-4",
59
+ "icon-lg": "size-control-lg [&_svg]:size-5",
36
60
  },
37
61
  },
38
62
  defaultVariants: { variant: "secondary", size: "md" },
39
63
  });
40
- export function Button({ className, variant, size, asChild = false, ...props }) {
41
- const Comp = asChild ? Slot : "button";
42
- return (_jsx(Comp, { className: cn(buttonVariants({ variant, size }), className), ...props }));
64
+ /* The colour a spinner takes in place of the label, per variant. */
65
+ const SPINNER_INK = {
66
+ primary: "text-accent-ink",
67
+ danger: "text-danger-ink",
68
+ "danger-ghost": "text-danger",
69
+ };
70
+ /* A label is wrapped so a long one can shorten with an ellipsis instead of pushing
71
+ out of its container; icons stay direct children for the padding rule above.
72
+ Neighbouring words ("Upload", 3, "photos") share one span: as separate flex
73
+ items the spaces between them would collapse. */
74
+ function labelled(children) {
75
+ const out = [];
76
+ let words = [];
77
+ const flush = () => {
78
+ if (words.length)
79
+ out.push(_jsx("span", { className: "min-w-0 truncate", children: words.join("") }, `label-${out.length}`));
80
+ words = [];
81
+ };
82
+ // toArray drops empty children and keys the rest, so the list needs no keys of its own.
83
+ for (const child of Children.toArray(children)) {
84
+ if (typeof child === "string" || typeof child === "number")
85
+ words.push(child);
86
+ else {
87
+ flush();
88
+ out.push(child);
89
+ }
90
+ }
91
+ flush();
92
+ return out;
93
+ }
94
+ export function Button({ className, variant, size, asChild = false, loading = false, type, children, onClick, ...props }) {
95
+ const iconOnly = typeof size === "string" && size.startsWith("icon");
96
+ if (process.env.NODE_ENV !== "production" && iconOnly && !props["aria-label"] && !props["aria-labelledby"] && !props.title) {
97
+ console.warn("paper-ui: an icon-only Button needs an aria-label (or aria-labelledby, or title) so a screen reader can name it.");
98
+ }
99
+ const classes = cn(buttonVariants({ variant, size }), loading && "text-transparent! [&>svg]:invisible", className);
100
+ if (asChild) {
101
+ const child = Children.only(children);
102
+ return (_jsx(Slot, { className: classes, "aria-busy": loading || undefined, onClick: onClick, ...props, children: isValidElement(child) ? child : children }));
103
+ }
104
+ return (_jsxs("button", { type: type ?? "button", className: classes, "aria-busy": loading || undefined, "data-loading": loading || undefined,
105
+ // Not `disabled` while loading: that would drop focus from the button the
106
+ // person just pressed, and grey it. It ignores presses instead.
107
+ onClick: loading ? (e) => e.preventDefault() : onClick, ...props, children: [labelled(children), loading && (_jsx("span", { className: "absolute inset-0 flex justify-center items-center", children: _jsx(Spinner, { className: cn("size-4", SPINNER_INK[variant ?? "secondary"] ?? "text-ink") }) }))] }));
43
108
  }
44
109
  export { buttonVariants };
45
110
  //# sourceMappingURL=button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/ui/button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,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAkB,MAAM,kBAAkB,CAAC;AAQ7D,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,+BAuCzG;AA6CD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAGnD"}
1
+ {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAkB,MAAM,kBAAkB,CAAC;AAS7D,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,+BAuCzG;AA6CD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAGnD"}
@@ -5,7 +5,8 @@ import { useEffect, useRef } from "react";
5
5
  import { DayPicker } from "react-day-picker";
6
6
  import { cn } from "../../lib/utils.js";
7
7
  /* A month of days, on react-day-picker: it supplies the grid, the keyboard and the
8
- screen-reader labels; everything visible is here. Its own stylesheet is not
8
+ screen-reader labels; everything visible is here. Days are 32px with a mouse and
9
+ 40px on a touch screen (seven of them still fit a 320px phone). Its own stylesheet is not
9
10
  imported, so every part it draws has a class below.
10
11
 
11
12
  The week starts on Monday. Pass `weekStartsOn={0}` for Sunday. */
@@ -22,8 +23,8 @@ export function Calendar({ className, classNames, components, ...props }) {
22
23
  button_previous: NAV_BUTTON,
23
24
  button_next: NAV_BUTTON,
24
25
  month_grid: "border-collapse",
25
- weekday: "size-8 p-0 text-caption font-normal text-ink-tertiary",
26
- day: "size-8 p-0 text-center",
26
+ weekday: "size-8 [@media(pointer:coarse)]:size-10 p-0 text-caption font-normal text-ink-tertiary",
27
+ day: "size-8 [@media(pointer:coarse)]:size-10 p-0 text-center",
27
28
  range_start: "rounded-l-control bg-accent-tint",
28
29
  range_middle: "bg-accent-tint",
29
30
  range_end: "rounded-r-control bg-accent-tint",
@@ -35,7 +36,7 @@ export function Calendar({ className, classNames, components, ...props }) {
35
36
  ...components,
36
37
  }, ...props }));
37
38
  }
38
- const NAV_BUTTON = "pointer-events-auto inline-flex size-7 items-center justify-center rounded-control text-ink-secondary transition-colors duration-100 hover:bg-tint-hover hover:text-ink aria-disabled:pointer-events-none aria-disabled:text-ink-disabled";
39
+ const NAV_BUTTON = "pointer-events-auto inline-flex size-7 [@media(pointer:coarse)]:size-10 items-center justify-center rounded-control text-ink-secondary transition-colors duration-(--duration-fast) hover:bg-tint-hover hover:text-ink aria-disabled:pointer-events-none aria-disabled:text-ink-disabled";
39
40
  /* The day itself. The states are resolved here, in order, rather than as classes on
40
41
  the cell, because several hold at once (today, outside the month, chosen) and the
41
42
  last one named has to win whatever order the stylesheet was built in. */
@@ -48,7 +49,7 @@ function CalendarDayButton({ className, day: _day, modifiers, ...props }) {
48
49
  }, [modifiers.focused]);
49
50
  const inRange = modifiers.range_middle === true;
50
51
  const chosen = modifiers.selected === true && !inRange;
51
- return (_jsx("button", { ref: ref, type: "button", className: cn("inline-flex size-8 items-center justify-center rounded-control text-sm text-ink tabular-nums cursor-pointer", "transition-colors duration-75 hover:bg-tint-hover", modifiers.outside && "text-ink-tertiary", modifiers.today && "font-semibold shadow-[inset_0_0_0_1px_var(--hairline-strong)]", inRange && "rounded-none hover:bg-accent-tint", chosen && "bg-accent font-medium text-accent-ink shadow-none hover:bg-accent-hover", modifiers.disabled && "pointer-events-none text-ink-disabled shadow-none", className), ...props }));
52
+ return (_jsx("button", { ref: ref, type: "button", className: cn("inline-flex size-8 [@media(pointer:coarse)]:size-10 items-center justify-center rounded-control text-sm text-ink tabular-nums cursor-pointer", "transition-colors duration-(--duration-instant) hover:bg-tint-hover", modifiers.outside && "text-ink-tertiary", modifiers.today && "font-semibold shadow-[inset_0_0_0_1px_var(--hairline-strong)]", inRange && "rounded-none hover:bg-accent-tint", chosen && "bg-accent-solid font-medium text-accent-ink shadow-none hover:bg-accent-solid-hover", modifiers.disabled && "pointer-events-none text-ink-disabled shadow-none", className), ...props }));
52
53
  }
53
54
  /* For `onOpenAutoFocus` on a popover that holds a calendar: puts focus on the day
54
55
  the arrow keys start from (the chosen one, or today) rather than on the first
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAuB,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAkB,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;;oEAIoE;AACpE,MAAM,UAAU,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,KAAK,EAAoC;IACtG,OAAO,CACH,KAAC,SAAS,IACN,eAAe;QACf,4EAA4E;QAC5E,UAAU,QACV,YAAY,EAAE,CAAC,EACf,SAAS,EAAE,EAAE,CAAC,gCAAgC,EAAE,SAAS,CAAC,EAC1D,UAAU,EAAE;YACR,MAAM,EAAE,iCAAiC;YACzC,KAAK,EAAE,qBAAqB;YAC5B,aAAa,EAAE,2CAA2C;YAC1D,aAAa,EAAE,8BAA8B;YAC7C,yFAAyF;YACzF,GAAG,EAAE,oFAAoF;YACzF,eAAe,EAAE,UAAU;YAC3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G,EAAE,GAAG,EACR,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,EAAE,CACT,8IAA8I,EAC9I,qEAAqE,EACrE,SAAS,CAAC,OAAO,IAAI,mBAAmB,EACxC,SAAS,CAAC,KAAK,IAAI,+DAA+D,EAClF,OAAO,IAAI,mCAAmC,EAC9C,MAAM,IAAI,qFAAqF,EAC/F,SAAS,CAAC,QAAQ,IAAI,mDAAmD,EACzE,SAAS,CACZ,KACG,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED;;;;;;2CAM2C;AAC3C,MAAM,UAAU,gBAAgB,CAAC,KAAY;IACzC,KAAK,CAAC,cAAc,EAAE,CAAC;IACtB,KAAK,CAAC,aAAoC,EAAE,aAAa,CAAc,yBAAyB,CAAC,EAAE,KAAK,EAAE,CAAC;AAChH,CAAC"}
@@ -1,13 +1,32 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
- import type { ComponentPropsWithoutRef, ReactNode } from "react";
2
+ import type { ComponentProps, ReactNode } from "react";
3
3
  declare const calloutVariants: (props?: ({
4
4
  color?: "blue" | "brown" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "yellow" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- export interface CalloutProps extends Omit<ComponentPropsWithoutRef<"div">, "color" | "title">, VariantProps<typeof calloutVariants> {
7
- /** An emoji string or a lucide icon element. */
6
+ declare const TONES: {
7
+ readonly success: {
8
+ readonly color: "green";
9
+ readonly icon: import("react").JSX.Element;
10
+ };
11
+ readonly warning: {
12
+ readonly color: "yellow";
13
+ readonly icon: import("react").JSX.Element;
14
+ };
15
+ readonly info: {
16
+ readonly color: "blue";
17
+ readonly icon: import("react").JSX.Element;
18
+ };
19
+ readonly danger: {
20
+ readonly color: "red";
21
+ readonly icon: import("react").JSX.Element;
22
+ };
23
+ };
24
+ export interface CalloutProps extends Omit<ComponentProps<"div">, "color" | "title">, VariantProps<typeof calloutVariants> {
25
+ /** An emoji or an icon. */
8
26
  icon?: ReactNode;
9
27
  title?: ReactNode;
28
+ tone?: keyof typeof TONES;
10
29
  }
11
- export declare function Callout({ className, color, icon, title, children, ...props }: CalloutProps): import("react").JSX.Element;
30
+ export declare function Callout({ className, color, tone, icon, title, children, ...props }: CalloutProps): import("react").JSX.Element;
12
31
  export { calloutVariants };
13
32
  //# sourceMappingURL=callout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"callout.d.ts","sourceRoot":"","sources":["../../../src/components/ui/callout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOjE,QAAA,MAAM,eAAe;;8EAkBpB,CAAC;AAEF,MAAM,WAAW,YACb,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,EAC5D,YAAY,CAAC,OAAO,eAAe,CAAC;IACxC,gDAAgD;IAChD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,OAAO,CAAC,EACpB,SAAS,EACT,KAAK,EACL,IAAW,EACX,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACX,EAAE,YAAY,+BAgBd;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"callout.d.ts","sourceRoot":"","sources":["../../../src/components/ui/callout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvD,QAAA,MAAM,eAAe;;8EAenB,CAAC;AAEH,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;CAKD,CAAC;AAEX,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,eAAe,CAAC;IACtH,2BAA2B;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,OAAO,KAAK,CAAC;CAC7B;AAED,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+BAahG;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1,27 +1,40 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cva } from "class-variance-authority";
3
+ import { CircleAlert, CircleCheck, Info, TriangleAlert } from "lucide-react";
3
4
  import { cn } from "../../lib/utils.js";
4
- /* Notion's callout block. A tinted panel with an emoji or icon in the
5
- gutter. It reuses the nine so a callout never introduces a new colour
6
- into the page — it just borrows one. */
7
- const calloutVariants = cva("flex gap-3 rounded-surface p-4 text-sm leading-[1.6]", {
5
+ /* Notion's callout block: a tinted panel with an emoji or icon in the gutter. It
6
+ borrows one of the nine, so a callout never brings a new colour to the page. The
7
+ words are in the page's own ink (on a tinted ground the secondary ink read at
8
+ 3.9:1); the icon is decoration and is hidden from assistive technology.
9
+
10
+ `tone` is the short way to a status: success, warning, info or danger, each its
11
+ colour and an icon. `color` and `icon` choose freely. A callout is a note
12
+ (role="note"); for something that must be heard at once, a Toast. */
13
+ const calloutVariants = cva("flex gap-3 p-4 rounded-surface text-ink text-sm leading-prose", {
8
14
  variants: {
9
15
  color: {
10
- gray: "bg-tag-gray-bg text-ink",
11
- brown: "bg-tag-brown-bg text-ink",
12
- orange: "bg-tag-orange-bg text-ink",
13
- yellow: "bg-tag-yellow-bg text-ink",
14
- green: "bg-tag-green-bg text-ink",
15
- blue: "bg-tag-blue-bg text-ink",
16
- purple: "bg-tag-purple-bg text-ink",
17
- pink: "bg-tag-pink-bg text-ink",
18
- red: "bg-tag-red-bg text-ink",
16
+ gray: "bg-tag-gray-bg",
17
+ brown: "bg-tag-brown-bg",
18
+ orange: "bg-tag-orange-bg",
19
+ yellow: "bg-tag-yellow-bg",
20
+ green: "bg-tag-green-bg",
21
+ blue: "bg-tag-blue-bg",
22
+ purple: "bg-tag-purple-bg",
23
+ pink: "bg-tag-pink-bg",
24
+ red: "bg-tag-red-bg",
19
25
  },
20
26
  },
21
27
  defaultVariants: { color: "gray" },
22
28
  });
23
- export function Callout({ className, color, icon = "💡", title, children, ...props }) {
24
- return (_jsxs("div", { className: cn(calloutVariants({ color }), className), ...props, children: [_jsx("span", { className: "flex-shrink-0 mt-px text-base leading-[1.4] [&_svg]:size-4 [&_svg]:mt-0.5", children: icon }), _jsxs("div", { className: "min-w-0", children: [title && (_jsx("p", { className: "mb-1 font-semibold text-ink", children: title })), _jsx("div", { className: "text-ink-secondary [&_p+p]:mt-2", children: children })] })] }));
29
+ const TONES = {
30
+ success: { color: "green", icon: _jsx(CircleCheck, { className: "text-success" }) },
31
+ warning: { color: "yellow", icon: _jsx(TriangleAlert, { className: "text-warning" }) },
32
+ info: { color: "blue", icon: _jsx(Info, { className: "text-info" }) },
33
+ danger: { color: "red", icon: _jsx(CircleAlert, { className: "text-danger" }) },
34
+ };
35
+ export function Callout({ className, color, tone, icon, title, children, ...props }) {
36
+ const t = tone ? TONES[tone] : undefined;
37
+ return (_jsxs("div", { role: "note", className: cn(calloutVariants({ color: color ?? t?.color }), className), ...props, children: [_jsx("span", { "aria-hidden": true, className: "flex-shrink-0 mt-px text-body leading-snug [&_svg]:size-4 [&_svg]:mt-0.5", children: icon ?? t?.icon ?? "💡" }), _jsxs("div", { className: "min-w-0", children: [title && _jsx("p", { className: "mb-1 font-semibold", children: title }), _jsx("div", { className: "[&_p+p]:mt-2", children: children })] })] }));
25
38
  }
26
39
  export { calloutVariants };
27
40
  //# sourceMappingURL=callout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"callout.js","sourceRoot":"","sources":["../../../src/components/ui/callout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;0CAE0C;AAE1C,MAAM,eAAe,GAAG,GAAG,CACvB,sDAAsD,EACtD;IACI,QAAQ,EAAE;QACN,KAAK,EAAE;YACH,IAAI,EAAE,yBAAyB;YAC/B,KAAK,EAAE,0BAA0B;YACjC,MAAM,EAAE,2BAA2B;YACnC,MAAM,EAAE,2BAA2B;YACnC,KAAK,EAAE,0BAA0B;YACjC,IAAI,EAAE,yBAAyB;YAC/B,MAAM,EAAE,2BAA2B;YACnC,IAAI,EAAE,yBAAyB;YAC/B,GAAG,EAAE,wBAAwB;SAChC;KACJ;IACD,eAAe,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;CACrC,CACJ,CAAC;AAUF,MAAM,UAAU,OAAO,CAAC,EACpB,SAAS,EACT,KAAK,EACL,IAAI,GAAG,IAAI,EACX,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACG;IACX,OAAO,CACH,eAAK,SAAS,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,KAAM,KAAK,aAChE,eAAM,SAAS,EAAC,2EAA2E,YACtF,IAAI,GACF,EACP,eAAK,SAAS,EAAC,SAAS,aACnB,KAAK,IAAI,CACN,YAAG,SAAS,EAAC,6BAA6B,YAAE,KAAK,GAAK,CACzD,EACD,cAAK,SAAS,EAAC,iCAAiC,YAC3C,QAAQ,GACP,IACJ,IACJ,CACT,CAAC;AACN,CAAC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"callout.js","sourceRoot":"","sources":["../../../src/components/ui/callout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAqB,M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AK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACzC,OAAO,CACH,eAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,KAAM,KAAK,aAC/F,oCAAkB,SAAS,EAAC,0EAA0E,YACjG,IAAI,IAAI,CAAC,EAAE,IAAI,IAAI,IAAI,GACrB,EACP,eAAK,SAAS,EAAC,SAAS,aACnB,KAAK,IAAI,YAAG,SAAS,EAAC,oBAAoB,YAAE,KAAK,GAAK,EACvD,cAAK,SAAS,EAAC,cAAc,YAAE,QAAQ,GAAO,IAC5C,IACJ,CACT,CAAC;AACN,CAAC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1,13 +1,18 @@
1
- import type { ComponentPropsWithoutRef } from "react";
2
- export interface CardProps extends ComponentPropsWithoutRef<"div"> {
1
+ import type { ComponentProps, ElementType } from "react";
2
+ export interface CardProps extends ComponentProps<"div"> {
3
3
  interactive?: boolean;
4
4
  /** Sit flush on a sunken surface with no lift of its own. */
5
5
  flat?: boolean;
6
+ /** Render as the single child (a link, a button) instead of a div. */
7
+ asChild?: boolean;
6
8
  }
7
- export declare function Card({ className, interactive, flat, ...props }: CardProps): import("react").JSX.Element;
8
- export declare function CardHeader({ className, ...props }: ComponentPropsWithoutRef<"div">): import("react").JSX.Element;
9
- export declare function CardTitle({ className, ...props }: ComponentPropsWithoutRef<"h3">): import("react").JSX.Element;
10
- export declare function CardDescription({ className, ...props }: ComponentPropsWithoutRef<"p">): import("react").JSX.Element;
11
- export declare function CardContent({ className, ...props }: ComponentPropsWithoutRef<"div">): import("react").JSX.Element;
12
- export declare function CardFooter({ className, ...props }: ComponentPropsWithoutRef<"div">): import("react").JSX.Element;
9
+ export declare function Card({ className, interactive, flat, asChild, ...props }: CardProps): import("react").JSX.Element;
10
+ export declare function CardHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
11
+ /** The card's name. An h3 unless `as` says otherwise, to fit the page's outline. */
12
+ export declare function CardTitle({ className, as: Tag, ...props }: ComponentProps<"h3"> & {
13
+ as?: ElementType;
14
+ }): import("react").JSX.Element;
15
+ export declare function CardDescription({ className, ...props }: ComponentProps<"p">): import("react").JSX.Element;
16
+ export declare function CardContent({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
17
+ export declare function CardFooter({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
13
18
  //# sourceMappingURL=card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAOtD,MAAM,WAAW,SAAU,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IAC9D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,IAAI,CAAC,EACjB,SAAS,EACT,WAAW,EACX,IAAI,EACJ,GAAG,KAAK,EACX,EAAE,SAAS,+BAkBX;AAED,wBAAgB,UAAU,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACX,EAAE,wBAAwB,CAAC,KAAK,CAAC,+BAEjC;AAED,wBAAgB,SAAS,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACX,EAAE,wBAAwB,CAAC,IAAI,CAAC,+BAOhC;AAED,wBAAgB,eAAe,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACX,EAAE,wBAAwB,CAAC,GAAG,CAAC,+BAO/B;AAED,wBAAgB,WAAW,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACX,EAAE,wBAAwB,CAAC,KAAK,CAAC,+BAEjC;AAED,wBAAgB,UAAU,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACX,EAAE,wBAAwB,CAAC,KAAK,CAAC,+BAUjC"}
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAWzD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,KAAK,CAAC;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,OAAe,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAiB1F;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAExE;AAED,oFAAoF;AACpF,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,GAAU,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,WAAW,CAAA;CAAE,+BAE7G;AAED,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,GAAG,CAAC,+BAE3E;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAEzE;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAExE"}
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Slot } from "@radix-ui/react-slot";
2
3
  import { cn } from "../../lib/utils.js";
3
- export function Card({ className, interactive, flat, ...props }) {
4
- return (_jsx("div", { className: cn("bg-surface-raised rounded-surface overflow-hidden", flat
5
- ? "border border-hairline"
6
- : "shadow-sm", interactive && [
7
- "transition-[box-shadow,transform] duration-150 ease-out-notion",
4
+ export function Card({ className, interactive, flat, asChild = false, ...props }) {
5
+ const Comp = asChild ? Slot : "div";
6
+ return (_jsx(Comp, { className: cn("block bg-surface-raised rounded-surface overflow-hidden text-left", flat ? "border border-hairline" : "shadow-sm", interactive && [
7
+ "transition-[box-shadow,transform] duration-(--duration-base) ease-out-notion outline-offset-2",
8
8
  "hover:shadow-md hover:-translate-y-px cursor-pointer",
9
9
  "active:translate-y-0 active:shadow-sm",
10
10
  ], className), ...props }));
@@ -12,16 +12,17 @@ export function Card({ className, interactive, flat, ...props }) {
12
12
  export function CardHeader({ className, ...props }) {
13
13
  return _jsx("div", { className: cn("px-4 pt-4 pb-0", className), ...props });
14
14
  }
15
- export function CardTitle({ className, ...props }) {
16
- return (_jsx("h3", { className: cn("font-semibold text-ink text-h3 my-0", className), ...props }));
15
+ /** The card's name. An h3 unless `as` says otherwise, to fit the page's outline. */
16
+ export function CardTitle({ className, as: Tag = "h3", ...props }) {
17
+ return _jsx(Tag, { className: cn("my-0 font-semibold text-h3 text-ink", className), ...props });
17
18
  }
18
19
  export function CardDescription({ className, ...props }) {
19
- return (_jsx("p", { className: cn("mt-1 text-ink-secondary text-sm", className), ...props }));
20
+ return _jsx("p", { className: cn("mt-1 text-ink-secondary text-sm", className), ...props });
20
21
  }
21
22
  export function CardContent({ className, ...props }) {
22
23
  return _jsx("div", { className: cn("p-4", className), ...props });
23
24
  }
24
25
  export function CardFooter({ className, ...props }) {
25
- return (_jsx("div", { className: cn("flex items-center gap-2 px-4 py-3 border-hairline border-t", className), ...props }));
26
+ return _jsx("div", { className: cn("flex flex-wrap items-center gap-2 px-4 py-3 border-hairline border-t", className), ...props });
26
27
  }
27
28
  //# sourceMappingURL=card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src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AACzF,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyB;IACtE,OAAO,cAAK,SAAS,EAAE,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyB;IACrE,OAAO,cAAK,SAAS,EAAE,EAAE,CAAC,sEAAsE,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAChI,CAAC"}
@@ -1,6 +1,11 @@
1
- export declare function Checkbox({ checked, onCheckedChange, className, }: {
2
- checked: boolean;
3
- onCheckedChange: (checked: boolean) => void;
4
- className?: string;
1
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
2
+ import type { ComponentProps, ReactNode } from "react";
3
+ export declare const checkboxBox: string[];
4
+ export declare function Checkbox({ checked, onCheckedChange, label, description, className, ...props }: Omit<ComponentProps<typeof CheckboxPrimitive.Root>, "onCheckedChange" | "checked"> & {
5
+ checked?: boolean | "indeterminate";
6
+ /** Ticked or not. A partly ticked box becomes ticked when pressed. */
7
+ onCheckedChange?: (checked: boolean) => void;
8
+ label?: ReactNode;
9
+ description?: ReactNode;
5
10
  }): import("react").JSX.Element;
6
11
  //# sourceMappingURL=checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAOA,wBAAgB,QAAQ,CAAC,EACrB,OAAO,EACP,eAAe,EACf,SAAS,GACZ,EAAE;IACC,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAgBA"}
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWvD,eAAO,MAAM,WAAW,UAYvB,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACrB,OAAO,EACP,eAAe,EACf,KAAK,EACL,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACX,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC,GAAG;IACpF,OAAO,CAAC,EAAE,OAAO,GAAG,eAAe,CAAC;IACpC,sEAAsE;IACtE,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B,+BAuBA"}
@@ -1,10 +1,30 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Check } from "lucide-react";
3
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
4
+ import { Check, Minus } from "lucide-react";
4
5
  import { cn } from "../../lib/utils.js";
5
- /* Notion's to-do box: a 16px square with a strong hairline that fills with accent
6
- when ticked. */
7
- export function Checkbox({ checked, onCheckedChange, className, }) {
8
- return (_jsx("button", { type: "button", role: "checkbox", "aria-checked": checked, onClick: () => onCheckedChange(!checked), className: cn("flex size-4 items-center justify-center rounded-[3px] transition-colors duration-100", checked ? "bg-accent text-accent-ink hover:bg-accent-hover" : "inset-shadow-field hover:bg-tint-hover", className), children: checked && _jsx(Check, { className: "size-3", strokeWidth: 3 }) }));
6
+ import { ChoiceLabel } from "./choice-label.js";
7
+ import { fromField, useField } from "./input.js";
8
+ /* Notion's to-do box: a 16px square whose empty edge reads at 3:1 (--control-edge)
9
+ and that fills with the accent when ticked. Its pressable area is 24px. It can be
10
+ partly ticked ("indeterminate"), for a row that stands for several. With `name`
11
+ it sends its value with a form; inside a Field it takes the Field's label and
12
+ error. With `label` (and `description`) it draws its own words, pressable too. */
13
+ export const checkboxBox = [
14
+ "peer relative flex justify-center items-center rounded-small size-4 shrink-0 outline-offset-2",
15
+ "shadow-[inset_0_0_0_1.5px_var(--control-edge)] transition-[background-color,box-shadow] duration-(--duration-fast)",
16
+ "hover:bg-tint-hover",
17
+ "data-[state=checked]:bg-accent-solid data-[state=checked]:text-accent-ink data-[state=checked]:shadow-none data-[state=checked]:hover:bg-accent-solid-hover",
18
+ "data-[state=indeterminate]:bg-accent-solid data-[state=indeterminate]:text-accent-ink data-[state=indeterminate]:shadow-none",
19
+ "aria-invalid:shadow-[inset_0_0_0_1.5px_var(--danger)]",
20
+ "disabled:cursor-not-allowed disabled:bg-tint-hover disabled:shadow-[inset_0_0_0_1.5px_var(--hairline-strong)] disabled:text-ink-disabled",
21
+ // Ticked but disabled: grey, so it never looks like a choice that can be changed.
22
+ "disabled:data-[state=checked]:bg-tint-active disabled:data-[state=checked]:text-ink-disabled disabled:data-[state=indeterminate]:bg-tint-active disabled:data-[state=indeterminate]:text-ink-disabled",
23
+ // 24px to press, around the 16px box.
24
+ "after:absolute after:-inset-1 after:content-['']",
25
+ ];
26
+ export function Checkbox({ checked, onCheckedChange, label, description, className, ...props }) {
27
+ const own = fromField(useField(), props);
28
+ return (_jsx(ChoiceLabel, { label: label, description: description, disabled: own.disabled, control: ({ labelId, descriptionId }) => (_jsx(CheckboxPrimitive.Root, { checked: checked, onCheckedChange: (next) => onCheckedChange?.(next === true), "aria-labelledby": own["aria-labelledby"] ?? labelId, ...own, "aria-describedby": [own["aria-describedby"], descriptionId].filter(Boolean).join(" ") || undefined, className: cn(checkboxBox, className), children: _jsx(CheckboxPrimitive.Indicator, { className: "flex", children: checked === "indeterminate" ? _jsx(Minus, { className: "size-3", strokeWidth: 3 }) : _jsx(Check, { className: "size-3", strokeWidth: 3 }) }) })) }));
9
29
  }
10
30
  //# sourceMappingURL=checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;qBACqB;AACrB,MAAM,UAAU,QAAQ,CAAC,EACrB,OAAO,EACP,eAAe,EACf,SAAS,GAKZ;IACG,OAAO,CACH,iBACI,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,UAAU,kBACD,OAAO,EACrB,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,EACxC,SAAS,EAAE,EAAE,CACT,sFAAsF,EACtF,OAAO,CAAC,CAAC,CAAC,iDAAiD,CAAC,CAAC,CAAC,wCAAwC,EACtG,SAAS,CACZ,YAEA,OAAO,IAAI,KAAC,KAAK,IAAC,SAAS,EAAC,QAAQ,EAAC,WAAW,EAAE,CAAC,GAAI,GACnD,CACZ,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,YAAa,CAAC;AAElD;;;;oFAIoF;AAEpF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,+FAA+F;IAC/F,oHAAoH;IACpH,qBAAqB;IACrB,6JAA6J;IAC7J,8HAA8H;IAC9H,uDAAuD;IACvD,0IAA0I;IAC1I,kFAAkF;IAClF,uMAAuM;IACvM,sCAAsC;IACtC,kDAAkD;CACrD,CAAC;AAEF,MAAM,UAAU,QAAQ,CAAC,EACrB,OAAO,EACP,eAAe,EACf,KAAK,EACL,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EAOX;IACG,MAAM,GAAG,GAAG,SAAS,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,CAAC;IACzC,OAAO,CACH,KAAC,WAAW,IACR,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,GAAG,CAAC,QAAQ,EACtB,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,CACrC,KAAC,iBAAiB,CAAC,IAAI,IACnB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,qBAC1C,GAAG,CAAC,iBAAiB,CAAC,IAAI,OAAO,KAC9C,GAAG,sBACW,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,SAAS,EACjG,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,YAErC,KAAC,iBAAiB,CAAC,SAAS,IAAC,SAAS,EAAC,MAAM,YACxC,OAAO,KAAK,eAAe,CAAC,CAAC,CAAC,KAAC,KAAK,IAAC,SAAS,EAAC,QAAQ,EAAC,WAAW,EAAE,CAAC,GAAI,CAAC,CAAC,CAAC,KAAC,KAAK,IAAC,SAAS,EAAC,QAAQ,EAAC,WAAW,EAAE,CAAC,GAAI,GAChG,GACT,CAC5B,GACH,CACL,CAAC;AACN,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function ChoiceLabel({ control, label, description, disabled, end, className, }: {
3
+ control: (ids: {
4
+ labelId?: string;
5
+ descriptionId?: string;
6
+ }) => ReactNode;
7
+ label?: ReactNode;
8
+ description?: ReactNode;
9
+ disabled?: boolean;
10
+ end?: boolean;
11
+ className?: string;
12
+ }): import("react").JSX.Element;
13
+ //# sourceMappingURL=choice-label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice-label.d.ts","sourceRoot":"","sources":["../../../src/components/ui/choice-label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM9C,wBAAgB,WAAW,CAAC,EACxB,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,GAAW,EACX,SAAS,GACZ,EAAE;IACC,OAAO,EAAE,CAAC,GAAG,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IAC1E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAsBA"}
@@ -0,0 +1,17 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from "react";
3
+ import { cn } from "../../lib/utils.js";
4
+ /* The words beside a checkbox, switch or radio: a label that is part of the
5
+ control (pressing it presses the control) and an optional line under it. The
6
+ control comes first for a checkbox or radio, last for a switch. */
7
+ export function ChoiceLabel({ control, label, description, disabled, end = false, className, }) {
8
+ const id = useId();
9
+ if (label === undefined)
10
+ return _jsx(_Fragment, { children: control({}) });
11
+ const labelId = `${id}-label`;
12
+ const descriptionId = description !== undefined ? `${id}-description` : undefined;
13
+ return (
14
+ // A <label> around both: a press anywhere on the words presses the control.
15
+ _jsxs("label", { className: cn("group/choice flex items-start gap-2.5 text-sm cursor-pointer", disabled && "cursor-not-allowed", end && "flex-row-reverse justify-between", className), children: [_jsx("span", { className: "flex items-center h-[1.3125rem] shrink-0", children: control({ labelId, descriptionId }) }), _jsxs("span", { className: "min-w-0", children: [_jsx("span", { id: labelId, className: cn("block text-ink", disabled && "text-ink-disabled"), children: label }), description !== undefined && (_jsx("span", { id: descriptionId, className: cn("block mt-0.5 text-caption text-ink-tertiary", disabled && "text-ink-disabled"), children: description }))] })] }));
16
+ }
17
+ //# sourceMappingURL=choice-label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice-label.js","sourceRoot":"","sources":["../../../src/components/ui/choice-label.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAkB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;qEAEqE;AACrE,MAAM,UAAU,WAAW,CAAC,EACxB,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,GAAG,GAAG,KAAK,EACX,SAAS,GAQZ;IACG,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;IACnB,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,4BAAG,OAAO,CAAC,EAAE,CAAC,GAAI,CAAC;IACnD,MAAM,OAAO,GAAG,GAAG,EAAE,QAAQ,CAAC;IAC9B,MAAM,aAAa,GAAG,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;IAClF,OAAO;IACH,4EAA4E;IAC5E,iBAAO,SAAS,EAAE,EAAE,CAAC,8DAA8D,EAAE,QAAQ,IAAI,oBAAoB,EAAE,GAAG,IAAI,kCAAkC,EAAE,SAAS,CAAC,aAExK,eAAM,SAAS,EAAC,0CAA0C,YAAE,OAAO,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,GAAQ,EACvG,gBAAM,SAAS,EAAC,SAAS,aACrB,eAAM,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC,gBAAgB,EAAE,QAAQ,IAAI,mBAAmB,CAAC,YAC9E,KAAK,GACH,EACN,WAAW,KAAK,SAAS,IAAI,CAC1B,eAAM,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,CAAC,6CAA6C,EAAE,QAAQ,IAAI,mBAAmB,CAAC,YACjH,WAAW,GACT,CACV,IACE,IACH,CACX,CAAC;AACN,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
2
+ import type { ComponentProps, ReactNode } from "react";
3
+ export declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare function CollapsibleTrigger({ className, children, ...props }: ComponentProps<typeof CollapsiblePrimitive.Trigger>): import("react").JSX.Element;
5
+ export declare function CollapsibleContent({ className, ...props }: ComponentProps<typeof CollapsiblePrimitive.Content>): import("react").JSX.Element;
6
+ /** A titled toggle in one: closed unless `defaultOpen` (or controlled with `open`). */
7
+ export declare function Disclosure({ title, children, className, ...props }: Omit<ComponentProps<typeof CollapsiblePrimitive.Root>, "title"> & {
8
+ title: ReactNode;
9
+ }): import("react").JSX.Element;
10
+ //# sourceMappingURL=collapsible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvD,eAAO,MAAM,WAAW,kIAA4B,CAAC;AAErD,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,+BAiBxH;AAED,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,+BAO9G;AAED,uFAAuF;AACvF,wBAAgB,UAAU,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACX,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,GAAG;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,+BASxF"}
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
4
+ import { ChevronRight } from "lucide-react";
5
+ import { cn } from "../../lib/utils.js";
6
+ /* Something folded away: Notion's toggle. A trigger with a chevron that turns, and
7
+ the content easing open to its own height. The trigger says whether it is open
8
+ (aria-expanded) and what it opens. The parts are Radix's; `Disclosure` is the
9
+ whole thing in one. */
10
+ export const Collapsible = CollapsiblePrimitive.Root;
11
+ export function CollapsibleTrigger({ className, children, ...props }) {
12
+ return (_jsxs(CollapsiblePrimitive.Trigger, { className: cn("group/trigger flex items-center gap-1 -ml-1 px-1 rounded-control min-h-control-sm font-medium text-ink text-sm text-left", "hover:bg-tint-hover transition-colors duration-(--duration-instant)", className), ...props, children: [_jsx(ChevronRight, { "aria-hidden": true, className: "size-4 text-ink-tertiary group-data-[state=open]/trigger:rotate-90 transition-transform duration-(--duration-fast) shrink-0" }), children] }));
13
+ }
14
+ export function CollapsibleContent({ className, ...props }) {
15
+ return (_jsx(CollapsiblePrimitive.Content, { className: cn("overflow-hidden data-[state=closed]:animate-collapse-up data-[state=open]:animate-collapse-down", className), ...props }));
16
+ }
17
+ /** A titled toggle in one: closed unless `defaultOpen` (or controlled with `open`). */
18
+ export function Disclosure({ title, children, className, ...props }) {
19
+ return (_jsxs(Collapsible, { className: className, ...props, children: [_jsx(CollapsibleTrigger, { children: title }), _jsx(CollapsibleContent, { children: _jsx("div", { className: "pt-1 pb-2 pl-5 text-ink-secondary text-sm", children: children }) })] }));
20
+ }
21
+ //# sourceMappingURL=collapsible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.js","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;yBAGyB;AAEzB,MAAM,CAAC,MAAM,WAAW,GAAG,oBAAoB,CAAC,IAAI,CAAC;AAErD,MAAM,UAAU,kBAAkB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAuD;IACrH,OAAO,CACH,MAAC,oBAAoB,CAAC,OAAO,IACzB,SAAS,EAAE,EAAE,CACT,0HAA0H,EAC1H,qEAAqE,EACrE,SAAS,CACZ,KACG,KAAK,aAET,KAAC,YAAY,yBAET,SAAS,EAAC,6HAA6H,GACzI,EACD,QAAQ,IACkB,CAClC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAuD;IAC3G,OAAO,CACH,KAAC,oBAAoB,CAAC,OAAO,IACzB,SAAS,EAAE,EAAE,CAAC,iGAAiG,EAAE,SAAS,CAAC,KACvH,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,uFAAuF;AACvF,MAAM,UAAU,UAAU,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EAC6E;IACrF,OAAO,CACH,MAAC,WAAW,IAAC,SAAS,EAAE,SAAS,KAAM,KAAK,aACxC,KAAC,kBAAkB,cAAE,KAAK,GAAsB,EAChD,KAAC,kBAAkB,cACf,cAAK,SAAS,EAAC,2CAA2C,YAAE,QAAQ,GAAO,GAC1D,IACX,CACjB,CAAC;AACN,CAAC"}