@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
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import * as SelectPrimitive from "@radix-ui/react-select";
4
4
  import { Check, ChevronDown } from "lucide-react";
5
- import { fieldBase } from "./input.js";
5
+ import { fieldVariants, fromField, useField } from "./input.js";
6
6
  import { cn } from "../../lib/utils.js";
7
7
  /* Pick one of a list, in a form. The trigger is the same sunken well as Input and
8
8
  the list is the same surface as a menu, so it belongs to both. For a value shown
@@ -13,14 +13,16 @@ import { cn } from "../../lib/utils.js";
13
13
  export const Select = SelectPrimitive.Root;
14
14
  export const SelectGroup = SelectPrimitive.Group;
15
15
  export const SelectValue = SelectPrimitive.Value;
16
- export function SelectTrigger({ className, children, ...props }) {
17
- return (_jsxs(SelectPrimitive.Trigger, { className: cn(fieldBase, "flex h-8 items-center justify-between gap-2 text-left text-sm cursor-pointer", "data-[placeholder]:text-ink-tertiary", "data-[state=open]:bg-surface data-[state=open]:shadow-[inset_0_0_0_1px_var(--accent),0_0_0_3px_var(--accent-tint)]", "[&>span]:min-w-0 [&>span]:truncate", className), ...props, children: [children, _jsx(SelectPrimitive.Icon, { asChild: true, children: _jsx(ChevronDown, { className: "size-4 shrink-0 text-ink-tertiary" }) })] }));
16
+ export function SelectTrigger({ className, children, size, ...props }) {
17
+ // Inside a Field: its id (so the label names this), description and invalid.
18
+ const own = fromField(useField(), props);
19
+ return (_jsxs(SelectPrimitive.Trigger, { ...own, className: cn(fieldVariants({ size }), "flex items-center justify-between gap-2 text-left cursor-pointer", "data-[placeholder]:text-ink-placeholder", "data-[state=open]:bg-surface data-[state=open]:shadow-[inset_0_0_0_1px_var(--accent),0_0_0_3px_var(--accent-tint)]", "[&>span]:min-w-0 [&>span]:truncate", className), children: [children, _jsx(SelectPrimitive.Icon, { asChild: true, children: _jsx(ChevronDown, { className: "size-4 shrink-0 text-ink-tertiary" }) })] }));
18
20
  }
19
21
  export function SelectContent({ className, children, sideOffset = 6, ...props }) {
20
- return (_jsx(SelectPrimitive.Portal, { children: _jsx(SelectPrimitive.Content, { position: "popper", sideOffset: sideOffset, collisionPadding: 8, className: cn("z-50 overflow-hidden bg-surface-overlay shadow-popover rounded-overlay", "min-w-[max(var(--radix-select-trigger-width),8rem)] max-h-[min(var(--radix-select-content-available-height),20rem)]", "data-[state=open]:animate-slide-in data-[state=closed]:animate-fade-out", "origin-[--radix-select-content-transform-origin]", className), ...props, children: _jsx(SelectPrimitive.Viewport, { className: "p-1.5", children: children }) }) }));
22
+ return (_jsx(SelectPrimitive.Portal, { children: _jsx(SelectPrimitive.Content, { position: "popper", sideOffset: sideOffset, collisionPadding: 8, className: cn("z-(--z-overlay) overflow-hidden bg-surface-overlay shadow-popover rounded-overlay", "min-w-[max(var(--radix-select-trigger-width),8rem)] max-h-[min(var(--radix-select-content-available-height),20rem)]", "data-[state=open]:animate-slide-in data-[state=closed]:animate-fade-out", "origin-[--radix-select-content-transform-origin]", className), ...props, children: _jsx(SelectPrimitive.Viewport, { className: "p-1.5", children: children }) }) }));
21
23
  }
22
24
  export function SelectItem({ className, children, ...props }) {
23
- return (_jsxs(SelectPrimitive.Item, { className: cn("relative flex items-center gap-2 cursor-default select-none", "min-h-7 py-1 pr-8 pl-2 rounded-control text-sm text-ink outline-none", "transition-colors duration-75", "data-[highlighted]:bg-tint-hover", "data-[disabled]:pointer-events-none data-[disabled]:text-ink-disabled", className), ...props, children: [_jsx(SelectPrimitive.ItemText, { children: children }), _jsx("span", { className: "right-2 absolute flex justify-center items-center size-4", children: _jsx(SelectPrimitive.ItemIndicator, { children: _jsx(Check, { className: "size-4 text-ink-secondary" }) }) })] }));
25
+ return (_jsxs(SelectPrimitive.Item, { className: cn("relative flex items-center gap-2 cursor-default select-none", "min-h-control-sm py-1 pr-8 pl-2 rounded-control text-sm text-ink outline-none", "transition-colors duration-(--duration-instant)", "data-[highlighted]:bg-tint-hover", "data-[disabled]:pointer-events-none data-[disabled]:text-ink-disabled", className), ...props, children: [_jsx(SelectPrimitive.ItemText, { children: children }), _jsx("span", { className: "right-2 absolute flex justify-center items-center size-4", children: _jsx(SelectPrimitive.ItemIndicator, { children: _jsx(Check, { className: "size-4 text-ink-secondary" }) }) })] }));
24
26
  }
25
27
  export function SelectLabel({ className, ...props }) {
26
28
  return (_jsx(SelectPrimitive.Label, { className: cn("px-2 pt-1.5 pb-1 font-medium text-ink-tertiary text-caption", className), ...props }));
@@ -28,4 +30,16 @@ export function SelectLabel({ className, ...props }) {
28
30
  export function SelectSeparator({ className, ...props }) {
29
31
  return (_jsx(SelectPrimitive.Separator, { className: cn("-mx-1.5 my-1.5 bg-hairline h-px", className), ...props }));
30
32
  }
33
+ /* The browser's own select, dressed as the same field. On a phone it opens the
34
+ system's picker, which is the better one there; it needs no script to work and
35
+ sends its value with a form like any field. The browser's arrow sits flush
36
+ against the edge and cannot be padded, so it is hidden and one is drawn where it
37
+ belongs. Options are plain <option> elements.
38
+
39
+ From endgame, 2026-12-05. */
40
+ export function NativeSelect({ className, children, size, ...props }) {
41
+ // 16px on a phone (from the field's size), or iOS zooms into it like an input.
42
+ const own = fromField(useField(), props);
43
+ return (_jsxs("div", { className: "relative", children: [_jsx("select", { className: cn(fieldVariants({ size }), "appearance-none pr-8", className), ...own, children: children }), _jsx(ChevronDown, { className: "top-1/2 right-2.5 absolute size-4 text-ink-tertiary -translate-y-1/2 pointer-events-none" })] }));
44
+ }
31
45
  //# sourceMappingURL=select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAa,CAAC;AACxC,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;;;6CAK6C;AAE7C,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC;AAC3C,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC;AACjD,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC;AAEjD,MAAM,UAAU,aAAa,CAAC,EAC1B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAC+C;IACvD,OAAO,CACH,MAAC,eAAe,CAAC,OAAO,IACpB,SAAS,EAAE,EAAE,CACT,SAAS,EACT,8EAA8E,EAC9E,sCAAsC,EACtC,oHAAoH,EACpH,oCAAoC,EACpC,SAAS,CACZ,KACG,KAAK,aAER,QAAQ,EACT,KAAC,eAAe,CAAC,IAAI,IAAC,OAAO,kBACzB,KAAC,WAAW,IAAC,SAAS,EAAC,mCAAmC,GAAG,GAC1C,IACD,CAC7B,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,EAC1B,SAAS,EACT,QAAQ,EACR,UAAU,GAAG,CAAC,EACd,GAAG,KAAK,EAC+C;IACvD,OAAO,CACH,KAAC,eAAe,CAAC,MAAM,cAInB,KAAC,eAAe,CAAC,OAAO,IACpB,QAAQ,EAAC,QAAQ,EACjB,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,CAAC,EACnB,SAAS,EAAE,EAAE,CACT,wEAAwE,EACxE,qHAAqH,EACrH,yEAAyE,EACzE,kDAAkD,EAClD,SAAS,CACZ,KACG,KAAK,YAET,KAAC,eAAe,CAAC,QAAQ,IAAC,SAAS,EAAC,OAAO,YAAE,QAAQ,GAA4B,GAC3D,GACL,CAC5B,CAAC;AACN,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAC4C;IACpD,OAAO,CACH,MAAC,eAAe,CAAC,IAAI,IACjB,SAAS,EAAE,EAAE,CACT,6DAA6D,EAC7D,sEAAsE,EACtE,+BAA+B,EAC/B,kCAAkC,EAClC,uEAAuE,EACvE,SAAS,CACZ,KACG,KAAK,aAET,KAAC,eAAe,CAAC,QAAQ,cAAE,QAAQ,GAA4B,EAC/D,eAAM,SAAS,EAAC,0DAA0D,YACtE,KAAC,eAAe,CAAC,aAAa,cAC1B,KAAC,KAAK,IAAC,SAAS,EAAC,2BAA2B,GAAG,GACnB,GAC7B,IACY,CAC1B,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EAC6C;IACrD,OAAO,CACH,KAAC,eAAe,CAAC,KAAK,IAClB,SAAS,EAAE,EAAE,CAAC,6DAA6D,EAAE,SAAS,CAAC,KACnF,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACiD;IACzD,OAAO,CACH,KAAC,eAAe,CAAC,SAAS,IACtB,SAAS,EAAE,EAAE,CAAC,iCAAiC,EAAE,SAAS,CAAC,KACvD,KAAK,GACX,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE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E,EAAE,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,sBAAsB,EAAE,SAAS,CAAC,KAAM,GAAG,YACrF,QAAQ,GACJ,EACT,KAAC,WAAW,IAAC,SAAS,EAAC,0FAA0F,GAAG,IAClH,CACT,CAAC;AACN,CAAC"}
@@ -10,6 +10,6 @@ import { cn } from "../../lib/utils.js";
10
10
  It centres on the page, not the window: if the app sets `--sidebar-w` (as
11
11
  `AppShell` does) it clears the sidebar. Pair it with `useSelection`. */
12
12
  export function SelectionBar({ count, noun = "item", empty = "Pick some", onDone, children, className, }) {
13
- return (_jsxs("div", { role: "toolbar", "aria-label": "Selection", className: cn("fixed bottom-5 left-[calc(50%+var(--sidebar-w,0px)/2)] z-40 flex max-w-[calc(100vw-2rem)] -translate-x-1/2 animate-slide-in items-center gap-1", "rounded-overlay bg-surface-overlay py-1.5 pr-1.5 pl-4 shadow-popover", className), children: [_jsx("span", { className: "mr-2 text-sm font-medium whitespace-nowrap text-ink tabular-nums", "aria-live": "polite", children: count === 0 ? empty : `${count.toLocaleString()} ${noun}${count === 1 ? "" : "s"} selected` }), children, _jsx(Button, { variant: "ghost", size: "icon-sm", "aria-label": "Stop selecting", onClick: onDone, className: "ml-1", children: _jsx(X, {}) })] }));
13
+ return (_jsxs("div", { role: "toolbar", "aria-label": "Selection", className: cn("fixed bottom-5 left-[calc(50%+var(--sidebar-w,0px)/2)] z-(--z-sticky) flex max-w-[calc(100vw-var(--sidebar-w,0px)-2rem)] -translate-x-1/2 animate-slide-in items-center gap-1", "rounded-overlay bg-surface-overlay py-1.5 pr-1.5 pl-4 shadow-popover", className), children: [_jsx("span", { className: "mr-2 text-sm font-medium whitespace-nowrap text-ink tabular-nums", "aria-live": "polite", children: count === 0 ? empty : `${count.toLocaleString()} ${noun}${count === 1 ? "" : "s"} selected` }), children, _jsx(Button, { variant: "ghost", size: "icon-sm", "aria-label": "Stop selecting", onClick: onDone, className: "ml-1", children: _jsx(X, {}) })] }));
14
14
  }
15
15
  //# sourceMappingURL=selection-bar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"selection-bar.js","sourceRoot":"","sources":["../../../src/components/ui/selection-bar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAc,CAAC;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;;;0EAK0E;AAC1E,MAAM,UAAU,YAAY,CAAC,EACzB,KAAK,EACL,IAAI,GAAG,MAAM,EACb,KAAK,GAAG,WAAW,EACnB,MAAM,EACN,QAAQ,EACR,SAAS,GAUZ;IACG,OAAO,CACH,eACI,IAAI,EAAC,SAAS,gBACH,WAAW,EACtB,SAAS,EAAE,EAAE,CACT,gJAAgJ,EAChJ,sEAAsE,EACtE,SAAS,CACZ,aAED,eAAM,SAAS,EAAC,kEAAkE,eAAW,QAAQ,YAChG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,cAAc,EAAE,IAAI,IAAI,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,WAAW,GACzF,EACN,QAAQ,EACT,KAAC,MAAM,IAAC,OAAO,EAAC,OAAO,EAAC,IAAI,EAAC,SAAS,gBAAY,gBAAgB,EAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAC,MAAM,YAChG,KAAC,CAAC,KAAG,GACA,IACP,CACT,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"selection-bar.js","sourceRoot":"","sources":["../../../src/components/ui/selection-bar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAc,CAAC;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;;;0EAK0E;AAC1E,MAAM,UAAU,YAAY,CAAC,EACzB,KAAK,EACL,IAAI,GAAG,MAAM,EACb,KAAK,GAAG,WAAW,EACnB,MAAM,EACN,QAAQ,EACR,SAAS,GAUZ;IACG,OAAO,CACH,eACI,IAAI,EAAC,SAAS,gBACH,WAAW,EACtB,SAAS,EAAE,EAAE,CACT,+KAA+K,EAC/K,sEAAsE,EACtE,SAAS,CACZ,aAED,eAAM,SAAS,EAAC,kEAAkE,eAAW,QAAQ,YAChG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,cAAc,EAAE,IAAI,IAAI,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,WAAW,GACzF,EACN,QAAQ,EACT,KAAC,MAAM,IAAC,OAAO,EAAC,OAAO,EAAC,IAAI,EAAC,SAAS,gBAAY,gBAAgB,EAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAC,MAAM,YAChG,KAAC,CAAC,KAAG,GACA,IACP,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { LucideIcon } from "lucide-react";
2
+ import type { ReactNode } from "react";
3
+ export type SettingsSectionLink = {
4
+ id: string;
5
+ label: string;
6
+ icon?: LucideIcon;
7
+ };
8
+ export declare function SettingsLayout({ title, sections, current, onSelect, onBack, children, className, }: {
9
+ title?: string;
10
+ sections: readonly SettingsSectionLink[];
11
+ /** The open section, or null for the menu (on a narrow screen). */
12
+ current: string | null;
13
+ onSelect: (id: string) => void;
14
+ /** Back to the menu, on a narrow screen. */
15
+ onBack: () => void;
16
+ /** The open section's content. */
17
+ children: ReactNode;
18
+ className?: string;
19
+ }): import("react").JSX.Element;
20
+ /** A titled group of settings, with a line under the title. */
21
+ export declare function SettingsSection({ title, description, children, className, }: {
22
+ title: ReactNode;
23
+ description?: ReactNode;
24
+ children: ReactNode;
25
+ className?: string;
26
+ }): import("react").JSX.Element;
27
+ /** One setting: its name and what it does on the left, its control on the right (under them when it does not fit beside). */
28
+ export declare function SettingsRow({ label, description, children, htmlFor }: {
29
+ label: ReactNode;
30
+ description?: ReactNode;
31
+ children: ReactNode;
32
+ htmlFor?: string;
33
+ }): import("react").JSX.Element;
34
+ //# sourceMappingURL=settings-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-layout.d.ts","sourceRoot":"","sources":["../../../src/components/ui/settings-layout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,MAAM,MAAM,mBAAmB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAC3B,KAAkB,EAClB,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,SAAS,GACZ,EAAE;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACzC,mEAAmE;IACnE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,4CAA4C;IAC5C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,kCAAkC;IAClC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAkCA;AAED,+DAA+D;AAC/D,wBAAgB,eAAe,CAAC,EAC5B,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,GACZ,EAAE;IACC,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAQA;AAED,6HAA6H;AAC7H,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,WAAW,CAAC,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,+BAoB1J"}
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { cn } from "../../lib/utils.js";
4
+ import { ListDetail } from "./list-detail.js";
5
+ export function SettingsLayout({ title = "Settings", sections, current, onSelect, onBack, children, className, }) {
6
+ return (_jsx(ListDetail, { className: className, listWidth: "15rem", listLabel: title, detailLabel: sections.find((s) => s.id === current)?.label ?? title, showDetail: current !== null, onBack: onBack, backLabel: title, list: _jsxs("nav", { "aria-label": title, className: "flex flex-col gap-px p-3", children: [_jsx("h2", { className: "px-2 pt-1 pb-2 font-semibold text-h3", children: title }), sections.map(({ id, label, icon: Icon }) => (_jsxs("button", { type: "button", "data-list-item": true, "aria-current": id === current ? "page" : undefined, onClick: () => onSelect(id), className: cn("flex items-center gap-2 px-2 rounded-control h-control-sm [@media(pointer:coarse)]:h-11 text-sm text-left transition-colors duration-(--duration-instant)", id === current ? "bg-tint-active font-medium text-ink" : "text-ink-secondary hover:bg-tint-hover hover:text-ink"), children: [Icon && _jsx(Icon, { className: "size-4 text-ink-tertiary shrink-0" }), _jsx("span", { className: "truncate", children: label })] }, id)))] }), detail: _jsx("div", { className: "mx-auto px-5 @xl:px-8 py-6 @xl:py-8 w-full max-w-measure", children: children }) }));
7
+ }
8
+ /** A titled group of settings, with a line under the title. */
9
+ export function SettingsSection({ title, description, children, className, }) {
10
+ return (_jsxs("section", { className: cn("mb-10 last:mb-0", className), children: [_jsx("h3", { className: "font-semibold text-h3", children: title }), description !== undefined && _jsx("p", { className: "mt-1 text-ink-secondary text-sm", children: description }), _jsx("div", { className: "mt-3 border-hairline border-t", children: children })] }));
11
+ }
12
+ /** One setting: its name and what it does on the left, its control on the right (under them when it does not fit beside). */
13
+ export function SettingsRow({ label, description, children, htmlFor }) {
14
+ return (_jsx("div", { className: "py-3.5 border-hairline border-b", children: _jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-2.5", children: [_jsxs("div", { className: "flex-1 min-w-[min(12rem,100%)]", children: [htmlFor ? (_jsx("label", { htmlFor: htmlFor, className: "font-medium text-ink text-sm", children: label })) : (_jsx("div", { className: "font-medium text-ink text-sm", children: label })), description !== undefined && _jsx("p", { className: "mt-0.5 text-ink-secondary text-sm", children: description })] }), _jsx("div", { className: "flex items-center gap-2 max-w-full", children: children })] }) }));
15
+ }
16
+ //# sourceMappingURL=settings-layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-layout.js","sourceRoot":"","sources":["../../../src/components/ui/settings-layout.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAmB,CAAC;AAc/C,MAAM,UAAU,cAAc,CAAC,EAC3B,KAAK,GAAG,UAAU,EAClB,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,SAAS,GAYZ;IACG,OAAO,CACH,KAAC,UAAU,IACP,SAAS,EAAE,SAAS,EACpB,SAAS,EAAC,OAAO,EACjB,SAAS,EAAE,KAAK,EAChB,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE,KAAK,IAAI,KAAK,EACnE,UAAU,EAAE,OAAO,KAAK,IAAI,EAC5B,MAAM,EAAE,MAAM,EACd,S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AAO,EAAwF;IACvJ,OAAO,CACH,cAAK,SAAS,EAAC,iCAAiC,YAG5C,eAAK,SAAS,EAAC,+CAA+C,aAC1D,eAAK,SAAS,EAAC,gCAAgC,aAC1C,OAAO,CAAC,CAAC,CAAC,CACP,gBAAO,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,8BAA8B,YAC5D,KAAK,GACF,CACX,CAAC,CAAC,CAAC,CACA,cAAK,SAAS,EAAC,8BAA8B,YAAE,KAAK,GAAO,CAC9D,EACA,WAAW,KAAK,SAAS,IAAI,YAAG,SAAS,EAAC,mCAAmC,YAAE,WAAW,GAAK,IAC9F,EACN,cAAK,SAAS,EAAC,oCAAoC,YAAE,QAAQ,GAAO,IAClE,GACJ,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function ShareLink({ url, enabled, onEnabledChange, title, description, privateText, busy, children, className, }: {
3
+ url: string | null;
4
+ enabled: boolean;
5
+ onEnabledChange: (enabled: boolean) => void;
6
+ title?: ReactNode;
7
+ description?: ReactNode;
8
+ privateText?: ReactNode;
9
+ /** Turning it on or off is saving: the switch is held. */
10
+ busy?: boolean;
11
+ children?: ReactNode;
12
+ className?: string;
13
+ }): import("react").JSX.Element;
14
+ //# sourceMappingURL=share-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share-link.d.ts","sourceRoot":"","sources":["../../../src/components/ui/share-link.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAS9C,wBAAgB,SAAS,CAAC,EACtB,GAAG,EACH,OAAO,EACP,eAAe,EACf,KAA0B,EAC1B,WAA8C,EAC9C,WAAsC,EACtC,IAAY,EACZ,QAAQ,EACR,SAAS,GACZ,EAAE;IACC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAgCA"}
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Globe, Lock } from "lucide-react";
4
+ import { useId } from "react";
5
+ import { cn } from "../../lib/utils.js";
6
+ import { CopyButton } from "./copy-button.js";
7
+ import { Switch } from "./switch.js";
8
+ /* Sharing one thing by a public link (a trip, a vault): a switch that turns the
9
+ link on, and while on, the link itself, selectable and copied with a press. Off,
10
+ it says who can see the thing instead. `children` for anything more (who has
11
+ opened it, an expiry). */
12
+ export function ShareLink({ url, enabled, onEnabledChange, title = "Share to the web", description = "Anyone with the link can view.", privateText = "Only you can see this.", busy = false, children, className, }) {
13
+ const field = useId();
14
+ return (_jsxs("div", { className: cn("flex flex-col gap-3", className), children: [_jsxs("div", { className: "flex items-start gap-3", children: [_jsx("span", { "aria-hidden": true, className: cn("flex justify-center items-center rounded-full size-8 shrink-0", enabled ? "bg-accent-tint text-accent-text" : "bg-tint-hover text-ink-tertiary"), children: enabled ? _jsx(Globe, { className: "size-4" }) : _jsx(Lock, { className: "size-4" }) }), _jsx("div", { className: "flex-1 min-w-0", children: _jsx(Switch, { checked: enabled, onCheckedChange: onEnabledChange, disabled: busy, label: title, description: enabled ? description : privateText }) })] }), enabled && url && (_jsxs("div", { className: "flex items-center gap-1 bg-surface-sunken p-1 pl-3 rounded-control", children: [_jsx("label", { htmlFor: field, className: "sr-only", children: "Link" }), _jsx("input", { id: field, readOnly: true, value: url, onFocus: (e) => e.currentTarget.select(), className: "flex-1 bg-transparent outline-none min-w-0 text-ink-secondary text-sm truncate" }), _jsx(CopyButton, { value: url, variant: "secondary", label: "Copy link", children: "Copy link" })] })), children] }));
15
+ }
16
+ //# sourceMappingURL=share-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share-link.js","sourceRoot":"","sources":["../../../src/components/ui/share-link.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAkB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAc,CAAC;AAEtC;;;4BAG4B;AAC5B,MAAM,UAAU,SAAS,CAAC,EACtB,GAAG,EACH,OAAO,EACP,eAAe,EACf,KAAK,GAAG,kBAAkB,EAC1B,WAAW,GAAG,gCAAgC,EAC9C,WAAW,GAAG,wBAAwB,EACtC,IAAI,GAAG,KAAK,EACZ,QAAQ,EACR,SAAS,GAYZ;IACG,MAAM,KAAK,GAAG,KAAK,EAAE,CAAC;IACtB,OAAO,CACH,eAAK,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,aAChD,eAAK,SAAS,EAAC,wBAAwB,aACnC,oCAAkB,SAAS,EAAE,EAAE,CAAC,+DAA+D,EAAE,OAAO,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC,iCAAiC,CAAC,YAC5K,OAAO,CAAC,CAAC,CAAC,KAAC,KAAK,IAAC,SAAS,EAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,GAAG,GAClE,EACP,cAAK,SAAS,EAAC,gBAAgB,YAC3B,KAAC,MAAM,IAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,GAAI,GAC5I,IACJ,EACL,OAAO,IAAI,GAAG,IAAI,CACf,eAAK,SAAS,EAAC,oEAAoE,aAC/E,gBAAO,OAAO,EAAE,KAAK,EAAE,SAAS,EAAC,SAAS,qBAElC,EACR,gBACI,EAAE,EAAE,KAAK,EACT,QAAQ,QACR,KAAK,EAAE,GAAG,EACV,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,EACxC,SAAS,EAAC,gFAAgF,GAC5F,EACF,KAAC,UAAU,IAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,WAAW,0BAEhD,IACX,CACT,EACA,QAAQ,IACP,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,21 @@
1
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
2
+ import type { ComponentProps } from "react";
3
+ export declare const Sheet: import("react").FC<DialogPrimitive.DialogProps>;
4
+ export declare const SheetTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export declare const SheetClose: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
6
+ declare const SIDES: {
7
+ readonly right: "inset-y-0 right-0 w-[min(28rem,100vw)] max-sm:w-full rounded-l-overlay max-sm:rounded-none";
8
+ readonly left: "inset-y-0 left-0 w-[min(28rem,100vw)] max-sm:w-full rounded-r-overlay max-sm:rounded-none";
9
+ readonly bottom: "inset-x-0 bottom-0 max-h-[85dvh] rounded-t-overlay pb-[env(safe-area-inset-bottom)]";
10
+ };
11
+ export declare function SheetContent({ side, showClose, className, style, children, onOpenAutoFocus, ...props }: ComponentProps<typeof DialogPrimitive.Content> & {
12
+ side?: keyof typeof SIDES;
13
+ showClose?: boolean;
14
+ }): import("react").JSX.Element;
15
+ export declare function SheetHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
16
+ export declare function SheetTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): import("react").JSX.Element;
17
+ export declare function SheetDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): import("react").JSX.Element;
18
+ export declare function SheetBody({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
19
+ export declare function SheetFooter({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
20
+ export {};
21
+ //# sourceMappingURL=sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,OAAO,CAAC;AAW3D,eAAO,MAAM,KAAK,iDAAuB,CAAC;AAC1C,eAAO,MAAM,YAAY,kIAA0B,CAAC;AACpD,eAAO,MAAM,UAAU,gIAAwB,CAAC;AAEhD,QAAA,MAAM,KAAK;;;;CAID,CAAC;AAEX,wBAAgB,YAAY,CAAC,EACzB,IAAc,EACd,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,eAAe,EACf,GAAG,KAAK,EACX,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,OAAO,KAAK,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,+BAoCrG;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,OAAO,eAAe,CAAC,KAAK,CAAC,+BAE/F;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,+BAE3G;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAEvE;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAEzE"}
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
4
+ import { X } from "lucide-react";
5
+ import { finePointer } from "../../lib/pointer.js";
6
+ import { cn } from "../../lib/utils.js";
7
+ import { DialogOverlay } from "./dialog.js";
8
+ /* A panel that slides in from an edge over the page: details beside a list,
9
+ filters, settings for one thing. A dialog underneath (focus held inside, Escape
10
+ and a press outside close it, focus goes back to what opened it), over the
11
+ scrim. From the right by default, or the left; `bottom` for a tray. On a phone
12
+ a side sheet takes the whole width. Its parts are Dialog's: SheetTitle names it. */
13
+ export const Sheet = DialogPrimitive.Root;
14
+ export const SheetTrigger = DialogPrimitive.Trigger;
15
+ export const SheetClose = DialogPrimitive.Close;
16
+ const SIDES = {
17
+ right: "inset-y-0 right-0 w-[min(28rem,100vw)] max-sm:w-full rounded-l-overlay max-sm:rounded-none",
18
+ left: "inset-y-0 left-0 w-[min(28rem,100vw)] max-sm:w-full rounded-r-overlay max-sm:rounded-none",
19
+ bottom: "inset-x-0 bottom-0 max-h-[85dvh] rounded-t-overlay pb-[env(safe-area-inset-bottom)]",
20
+ };
21
+ export function SheetContent({ side = "right", showClose = true, className, style, children, onOpenAutoFocus, ...props }) {
22
+ return (_jsxs(DialogPrimitive.Portal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content
23
+ // As a Dialog: on a touch screen the sheet itself takes focus, so the
24
+ // keyboard does not come up over a panel nobody has looked at yet.
25
+ , {
26
+ // As a Dialog: on a touch screen the sheet itself takes focus, so the
27
+ // keyboard does not come up over a panel nobody has looked at yet.
28
+ onOpenAutoFocus: (event) => {
29
+ onOpenAutoFocus?.(event);
30
+ if (event.defaultPrevented || finePointer())
31
+ return;
32
+ event.preventDefault();
33
+ event.currentTarget.focus({ preventScroll: true });
34
+ }, style: { "--drawer-from": side === "left" ? "-100%" : "100%", ...style }, className: cn("z-(--z-overlay) fixed flex flex-col bg-surface-overlay shadow-dialog overflow-y-auto overscroll-contain outline-none", SIDES[side], side === "bottom"
35
+ ? "data-[state=open]:animate-sheet-in data-[state=closed]:animate-sheet-out"
36
+ : "data-[state=open]:animate-drawer-in data-[state=closed]:animate-drawer-out", className), ...props, children: [children, showClose && (_jsx(DialogPrimitive.Close, { "aria-label": "Close", className: "top-3 right-3 absolute inline-flex justify-center items-center hover:bg-tint-hover rounded-control size-7 text-ink-tertiary hover:text-ink transition-colors duration-(--duration-fast)", children: _jsx(X, { className: "size-4" }) }))] })] }));
37
+ }
38
+ export function SheetHeader({ className, ...props }) {
39
+ return _jsx("div", { className: cn("px-5 pt-5 pr-12", className), ...props });
40
+ }
41
+ export function SheetTitle({ className, ...props }) {
42
+ return _jsx(DialogPrimitive.Title, { className: cn("font-semibold text-h3 text-ink", className), ...props });
43
+ }
44
+ export function SheetDescription({ className, ...props }) {
45
+ return _jsx(DialogPrimitive.Description, { className: cn("mt-1.5 text-ink-secondary text-sm", className), ...props });
46
+ }
47
+ export function SheetBody({ className, ...props }) {
48
+ return _jsx("div", { className: cn("flex-1 px-5 py-4", className), ...props });
49
+ }
50
+ export function SheetFooter({ className, ...props }) {
51
+ return _jsx("div", { className: cn("flex flex-wrap justify-end items-center gap-2 px-5 py-3.5 border-hairline border-t", className), ...props });
52
+ }
53
+ //# sourceMappingURL=sheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../../src/components/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,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyB;IACtE,OAAO,cAAK,SAAS,EAAE,EAAE,CAAC,oFAAoF,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAC9I,CAAC"}
@@ -0,0 +1,82 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import { type ComponentProps, type ReactNode } from "react";
3
+ import { Button } from "./button.js";
4
+ type SidebarContextValue = {
5
+ /** "expanded" or "collapsed" on a wide screen. */
6
+ state: "expanded" | "collapsed";
7
+ open: boolean;
8
+ setOpen: (open: boolean) => void;
9
+ /** The drawer on a phone, apart from the column's state. */
10
+ openMobile: boolean;
11
+ setOpenMobile: (open: boolean) => void;
12
+ isMobile: boolean;
13
+ /** Opens or closes whichever applies at this width. */
14
+ toggleSidebar: () => void;
15
+ closeOnNavigate: boolean;
16
+ width?: string;
17
+ widthIcon?: string;
18
+ };
19
+ /** The sidebar's state, for any part of an app inside a SidebarProvider. */
20
+ export declare function useSidebar(): SidebarContextValue;
21
+ export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange, storageKey, closeOnNavigate, width, widthIcon, className, style, children, ...props }: ComponentProps<"div"> & {
22
+ defaultOpen?: boolean;
23
+ open?: boolean;
24
+ onOpenChange?: (open: boolean) => void;
25
+ /** Where open or closed is remembered; `null` remembers nothing. */
26
+ storageKey?: string | null;
27
+ /** On a phone, close the drawer when an entry is chosen. */
28
+ closeOnNavigate?: boolean;
29
+ /** Overrides --sidebar-width (15rem in the stylesheet). */
30
+ width?: string;
31
+ /** Overrides --sidebar-width-icon (3rem). */
32
+ widthIcon?: string;
33
+ }): import("react").JSX.Element;
34
+ export declare function Sidebar({ side, variant, collapsible, label, className, children, ...props }: ComponentProps<"div"> & {
35
+ side?: "left" | "right";
36
+ variant?: "sidebar" | "floating" | "inset";
37
+ collapsible?: "offcanvas" | "icon" | "none";
38
+ /** Named for screen readers: the drawer's title and the landmark's label. */
39
+ label?: string;
40
+ }): import("react").JSX.Element;
41
+ export declare function SidebarTrigger({ className, onClick, ...props }: ComponentProps<typeof Button>): import("react").JSX.Element;
42
+ export declare function SidebarRail({ className, ...props }: ComponentProps<"button">): import("react").JSX.Element;
43
+ export declare function SidebarInset({ className, ...props }: ComponentProps<"main">): import("react").JSX.Element;
44
+ export declare function SidebarHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
45
+ export declare function SidebarFooter({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
46
+ export declare function SidebarSeparator({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
47
+ export declare function SidebarContent({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
48
+ export declare function SidebarGroup({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
49
+ export declare function SidebarGroupLabel({ className, asChild, ...props }: ComponentProps<"div"> & {
50
+ asChild?: boolean;
51
+ }): import("react").JSX.Element;
52
+ export declare function SidebarGroupAction({ className, asChild, ...props }: ComponentProps<"button"> & {
53
+ asChild?: boolean;
54
+ }): import("react").JSX.Element;
55
+ export declare function SidebarGroupContent({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
56
+ export declare function SidebarMenu({ className, ...props }: ComponentProps<"ul">): import("react").JSX.Element;
57
+ export declare function SidebarMenuItem({ className, ...props }: ComponentProps<"li">): import("react").JSX.Element;
58
+ declare const menuButtonVariants: (props?: ({
59
+ size?: "md" | "sm" | "lg" | null | undefined;
60
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
61
+ export declare function SidebarMenuButton({ asChild, isActive, size, tooltip, className, onClick, ...props }: ComponentProps<"button"> & VariantProps<typeof menuButtonVariants> & {
62
+ asChild?: boolean;
63
+ isActive?: boolean;
64
+ tooltip?: ReactNode;
65
+ }): import("react").JSX.Element;
66
+ export declare function SidebarMenuAction({ asChild, showOnHover, className, ...props }: ComponentProps<"button"> & {
67
+ asChild?: boolean;
68
+ showOnHover?: boolean;
69
+ }): import("react").JSX.Element;
70
+ export declare function SidebarMenuBadge({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
71
+ export declare function SidebarMenuSkeleton({ showIcon, className, ...props }: ComponentProps<"div"> & {
72
+ showIcon?: boolean;
73
+ }): import("react").JSX.Element;
74
+ export declare function SidebarMenuSub({ className, ...props }: ComponentProps<"ul">): import("react").JSX.Element;
75
+ export declare function SidebarMenuSubItem({ className, ...props }: ComponentProps<"li">): import("react").JSX.Element;
76
+ export declare function SidebarMenuSubButton({ asChild, isActive, size, className, onClick, ...props }: ComponentProps<"a"> & {
77
+ asChild?: boolean;
78
+ isActive?: boolean;
79
+ size?: "sm" | "md";
80
+ }): import("react").JSX.Element;
81
+ export {};
82
+ //# sourceMappingURL=sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAOH,KAAK,cAAc,EAGnB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAStC,KAAK,mBAAmB,GAAG;IACvB,kDAAkD;IAClD,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,4DAA4D;IAC5D,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,uDAAuD;IACvD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAIF,4EAA4E;AAC5E,wBAAgB,UAAU,IAAI,mBA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