torch-glare 2.5.5 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/README.md +4 -3
  2. package/dist/bin/index.js +9 -24
  3. package/dist/bin/index.js.map +1 -1
  4. package/dist/src/commands/add.d.ts +2 -2
  5. package/dist/src/commands/add.d.ts.map +1 -1
  6. package/dist/src/commands/add.js +4 -70
  7. package/dist/src/commands/add.js.map +1 -1
  8. package/dist/src/commands/hook.d.ts +5 -4
  9. package/dist/src/commands/hook.d.ts.map +1 -1
  10. package/dist/src/commands/hook.js +7 -75
  11. package/dist/src/commands/hook.js.map +1 -1
  12. package/dist/src/commands/init.js +1 -1
  13. package/dist/src/commands/init.js.map +1 -1
  14. package/dist/src/commands/layout.d.ts +5 -4
  15. package/dist/src/commands/layout.d.ts.map +1 -1
  16. package/dist/src/commands/layout.js +7 -75
  17. package/dist/src/commands/layout.js.map +1 -1
  18. package/dist/src/commands/provider.d.ts +5 -4
  19. package/dist/src/commands/provider.d.ts.map +1 -1
  20. package/dist/src/commands/provider.js +7 -75
  21. package/dist/src/commands/provider.js.map +1 -1
  22. package/dist/src/commands/update.d.ts.map +1 -1
  23. package/dist/src/commands/update.js +78 -43
  24. package/dist/src/commands/update.js.map +1 -1
  25. package/dist/src/commands/utils.d.ts +5 -4
  26. package/dist/src/commands/utils.d.ts.map +1 -1
  27. package/dist/src/commands/utils.js +7 -80
  28. package/dist/src/commands/utils.js.map +1 -1
  29. package/dist/src/shared/addFromRegistry.d.ts +16 -0
  30. package/dist/src/shared/addFromRegistry.d.ts.map +1 -0
  31. package/dist/src/shared/addFromRegistry.js +88 -0
  32. package/dist/src/shared/addFromRegistry.js.map +1 -0
  33. package/dist/src/shared/getInstallCommand.d.ts.map +1 -1
  34. package/dist/src/shared/getInstallCommand.js +5 -0
  35. package/dist/src/shared/getInstallCommand.js.map +1 -1
  36. package/dist/src/shared/installDependencies.d.ts +0 -10
  37. package/dist/src/shared/installDependencies.d.ts.map +1 -1
  38. package/dist/src/shared/installDependencies.js +0 -17
  39. package/dist/src/shared/installDependencies.js.map +1 -1
  40. package/dist/src/shared/installFromPlan.d.ts +7 -5
  41. package/dist/src/shared/installFromPlan.d.ts.map +1 -1
  42. package/dist/src/shared/installFromPlan.js +103 -36
  43. package/dist/src/shared/installFromPlan.js.map +1 -1
  44. package/dist/src/shared/loadRegistry.d.ts +12 -3
  45. package/dist/src/shared/loadRegistry.d.ts.map +1 -1
  46. package/dist/src/shared/loadRegistry.js +19 -20
  47. package/dist/src/shared/loadRegistry.js.map +1 -1
  48. package/dist/src/shared/registryClient.d.ts +19 -0
  49. package/dist/src/shared/registryClient.d.ts.map +1 -0
  50. package/dist/src/shared/registryClient.js +128 -0
  51. package/dist/src/shared/registryClient.js.map +1 -0
  52. package/dist/src/shared/resolveEntry.d.ts +10 -7
  53. package/dist/src/shared/resolveEntry.d.ts.map +1 -1
  54. package/dist/src/shared/resolveEntry.js +18 -13
  55. package/dist/src/shared/resolveEntry.js.map +1 -1
  56. package/dist/src/shared/suggestOtherCommand.d.ts +7 -1
  57. package/dist/src/shared/suggestOtherCommand.d.ts.map +1 -1
  58. package/dist/src/shared/suggestOtherCommand.js +29 -23
  59. package/dist/src/shared/suggestOtherCommand.js.map +1 -1
  60. package/dist/src/types/main.d.ts +31 -2
  61. package/dist/src/types/main.d.ts.map +1 -1
  62. package/package.json +6 -11
  63. package/apps/lib/components/ActionButton.tsx +0 -93
  64. package/apps/lib/components/ActionsGroup.tsx +0 -27
  65. package/apps/lib/components/AlertDialog.tsx +0 -204
  66. package/apps/lib/components/Avatar.tsx +0 -46
  67. package/apps/lib/components/Badge.tsx +0 -250
  68. package/apps/lib/components/BadgeField.tsx +0 -338
  69. package/apps/lib/components/Breadcrumb.tsx +0 -280
  70. package/apps/lib/components/Button.tsx +0 -317
  71. package/apps/lib/components/ButtonGroup.tsx +0 -190
  72. package/apps/lib/components/Calendar.tsx +0 -115
  73. package/apps/lib/components/Card.tsx +0 -95
  74. package/apps/lib/components/Checkbox.tsx +0 -42
  75. package/apps/lib/components/ColorPicker.tsx +0 -441
  76. package/apps/lib/components/ConclusionHeader.tsx +0 -148
  77. package/apps/lib/components/ContextMenu.tsx +0 -571
  78. package/apps/lib/components/CountBadge.tsx +0 -52
  79. package/apps/lib/components/DataTable.tsx +0 -213
  80. package/apps/lib/components/DataViews/badge.ts +0 -49
  81. package/apps/lib/components/DataViews/cell.tsx +0 -324
  82. package/apps/lib/components/DataViews/context.ts +0 -144
  83. package/apps/lib/components/DataViews/data-views.tsx +0 -383
  84. package/apps/lib/components/DataViews/filters/children.tsx +0 -98
  85. package/apps/lib/components/DataViews/filters/custom.tsx +0 -34
  86. package/apps/lib/components/DataViews/filters/filters.tsx +0 -157
  87. package/apps/lib/components/DataViews/filters/index.ts +0 -4
  88. package/apps/lib/components/DataViews/filters/labelled.tsx +0 -20
  89. package/apps/lib/components/DataViews/filters/presets.tsx +0 -65
  90. package/apps/lib/components/DataViews/filters/sync.tsx +0 -35
  91. package/apps/lib/components/DataViews/filters/values.ts +0 -173
  92. package/apps/lib/components/DataViews/header.tsx +0 -220
  93. package/apps/lib/components/DataViews/hooks/index.ts +0 -5
  94. package/apps/lib/components/DataViews/hooks/useActiveRow.ts +0 -22
  95. package/apps/lib/components/DataViews/hooks/useControllable.ts +0 -52
  96. package/apps/lib/components/DataViews/index.ts +0 -84
  97. package/apps/lib/components/DataViews/panel/columns.tsx +0 -153
  98. package/apps/lib/components/DataViews/panel/controls.tsx +0 -106
  99. package/apps/lib/components/DataViews/panel/index.ts +0 -3
  100. package/apps/lib/components/DataViews/panel/panel.tsx +0 -164
  101. package/apps/lib/components/DataViews/panel/saved-views.tsx +0 -67
  102. package/apps/lib/components/DataViews/panel/section.tsx +0 -81
  103. package/apps/lib/components/DataViews/panel/sort.tsx +0 -42
  104. package/apps/lib/components/DataViews/panel/tab.tsx +0 -31
  105. package/apps/lib/components/DataViews/slots.ts +0 -63
  106. package/apps/lib/components/DataViews/states.tsx +0 -38
  107. package/apps/lib/components/DataViews/types.ts +0 -510
  108. package/apps/lib/components/DataViews/views/board-view.tsx +0 -381
  109. package/apps/lib/components/DataViews/views/card-rows.tsx +0 -36
  110. package/apps/lib/components/DataViews/views/inbox-view.tsx +0 -260
  111. package/apps/lib/components/DataViews/views/pane-views.tsx +0 -196
  112. package/apps/lib/components/DataViews/views/table-view.tsx +0 -493
  113. package/apps/lib/components/DataViews/views/tree-view.tsx +0 -367
  114. package/apps/lib/components/DatePicker.tsx +0 -232
  115. package/apps/lib/components/Dialog.tsx +0 -116
  116. package/apps/lib/components/Divider.tsx +0 -28
  117. package/apps/lib/components/Drawer.tsx +0 -420
  118. package/apps/lib/components/DropdownMenu.tsx +0 -540
  119. package/apps/lib/components/FieldHint.tsx +0 -69
  120. package/apps/lib/components/Form.tsx +0 -182
  121. package/apps/lib/components/FormBuilder/context.ts +0 -73
  122. package/apps/lib/components/FormBuilder/field-kind.ts +0 -28
  123. package/apps/lib/components/FormBuilder/fields/ChoiceFields.tsx +0 -60
  124. package/apps/lib/components/FormBuilder/fields/ColorField.tsx +0 -59
  125. package/apps/lib/components/FormBuilder/fields/CustomField.tsx +0 -11
  126. package/apps/lib/components/FormBuilder/fields/DateField.tsx +0 -32
  127. package/apps/lib/components/FormBuilder/fields/FieldArray.tsx +0 -74
  128. package/apps/lib/components/FormBuilder/fields/FieldShell.tsx +0 -163
  129. package/apps/lib/components/FormBuilder/fields/FileField.tsx +0 -39
  130. package/apps/lib/components/FormBuilder/fields/OptionListFields.tsx +0 -132
  131. package/apps/lib/components/FormBuilder/fields/OtpField.tsx +0 -31
  132. package/apps/lib/components/FormBuilder/fields/PhoneField.tsx +0 -109
  133. package/apps/lib/components/FormBuilder/fields/RichTextEditorField.tsx +0 -31
  134. package/apps/lib/components/FormBuilder/fields/SelectField.tsx +0 -91
  135. package/apps/lib/components/FormBuilder/fields/SignatureField.tsx +0 -157
  136. package/apps/lib/components/FormBuilder/fields/SliderField.tsx +0 -67
  137. package/apps/lib/components/FormBuilder/fields/SwitchBoxField.tsx +0 -41
  138. package/apps/lib/components/FormBuilder/fields/TableField.tsx +0 -336
  139. package/apps/lib/components/FormBuilder/fields/TextField.tsx +0 -213
  140. package/apps/lib/components/FormBuilder/fields/TreeSelectField.tsx +0 -43
  141. package/apps/lib/components/FormBuilder/fields/countries.ts +0 -303
  142. package/apps/lib/components/FormBuilder/fields/index.ts +0 -25
  143. package/apps/lib/components/FormBuilder/form-builder.tsx +0 -198
  144. package/apps/lib/components/FormBuilder/index.ts +0 -31
  145. package/apps/lib/components/FormBuilder/numberFormat.ts +0 -16
  146. package/apps/lib/components/FormBuilder/submit.tsx +0 -47
  147. package/apps/lib/components/FormBuilder/types.ts +0 -311
  148. package/apps/lib/components/FormRenderer/FormDrawer.tsx +0 -128
  149. package/apps/lib/components/FormRenderer/detail.tsx +0 -207
  150. package/apps/lib/components/FormRenderer/form-renderer.tsx +0 -297
  151. package/apps/lib/components/FormRenderer/header.tsx +0 -88
  152. package/apps/lib/components/FormRenderer/index.ts +0 -15
  153. package/apps/lib/components/FormRenderer/section.tsx +0 -39
  154. package/apps/lib/components/FormRenderer/stepper.tsx +0 -339
  155. package/apps/lib/components/FormRenderer/types.ts +0 -78
  156. package/apps/lib/components/FormSummary.tsx +0 -282
  157. package/apps/lib/components/HeaderBar.tsx +0 -117
  158. package/apps/lib/components/ImageAttachment.tsx +0 -209
  159. package/apps/lib/components/InnerLabelField.tsx +0 -154
  160. package/apps/lib/components/Input.tsx +0 -224
  161. package/apps/lib/components/InputField.tsx +0 -147
  162. package/apps/lib/components/InputOTP.tsx +0 -84
  163. package/apps/lib/components/Label.tsx +0 -129
  164. package/apps/lib/components/LabelField.tsx +0 -76
  165. package/apps/lib/components/LabeledCheckBox.tsx +0 -51
  166. package/apps/lib/components/LabeledRadio.tsx +0 -51
  167. package/apps/lib/components/LinkButton.tsx +0 -94
  168. package/apps/lib/components/LoginButton.tsx +0 -51
  169. package/apps/lib/components/PasswordLevel.tsx +0 -58
  170. package/apps/lib/components/Popover.tsx +0 -312
  171. package/apps/lib/components/ProfileMenu.tsx +0 -85
  172. package/apps/lib/components/Radio.tsx +0 -59
  173. package/apps/lib/components/RadioCard.tsx +0 -50
  174. package/apps/lib/components/ScrollArea.tsx +0 -54
  175. package/apps/lib/components/SearchField.tsx +0 -62
  176. package/apps/lib/components/SearchableSelect.tsx +0 -318
  177. package/apps/lib/components/SearchableTable.tsx +0 -344
  178. package/apps/lib/components/SearchableTree.tsx +0 -485
  179. package/apps/lib/components/SearchableTreeDialog.tsx +0 -502
  180. package/apps/lib/components/SectionBlock.tsx +0 -147
  181. package/apps/lib/components/Select.tsx +0 -347
  182. package/apps/lib/components/SimpleSelect.tsx +0 -225
  183. package/apps/lib/components/Skeleton.tsx +0 -12
  184. package/apps/lib/components/SlideDatePicker.tsx +0 -253
  185. package/apps/lib/components/SpinLoading.tsx +0 -174
  186. package/apps/lib/components/Stepper.tsx +0 -480
  187. package/apps/lib/components/Switch.tsx +0 -82
  188. package/apps/lib/components/TabFormItem.tsx +0 -153
  189. package/apps/lib/components/TabSwitch.tsx +0 -172
  190. package/apps/lib/components/Table.tsx +0 -610
  191. package/apps/lib/components/TextEditor/ChartBlockTool.ts +0 -676
  192. package/apps/lib/components/TextEditor/RichTextField.tsx +0 -46
  193. package/apps/lib/components/TextEditor/TableDnDWrapper.ts +0 -462
  194. package/apps/lib/components/TextEditor/TextEditor.tsx +0 -1164
  195. package/apps/lib/components/TextEditor/TextEditorToolbar.tsx +0 -429
  196. package/apps/lib/components/TextEditor/editor-tools/AlignmentTune.ts +0 -70
  197. package/apps/lib/components/TextEditor/editor-tools/ColorInlineTool.ts +0 -50
  198. package/apps/lib/components/TextEditor/editor-tools/StrikethroughInlineTool.ts +0 -48
  199. package/apps/lib/components/TextEditor/editor-tools/inlineFormat.ts +0 -98
  200. package/apps/lib/components/TextEditor/editorjs.d.ts +0 -60
  201. package/apps/lib/components/TextEditor/index.ts +0 -7
  202. package/apps/lib/components/TextEditor/markdownParser.ts +0 -346
  203. package/apps/lib/components/Textarea.tsx +0 -117
  204. package/apps/lib/components/Timeline.tsx +0 -263
  205. package/apps/lib/components/Toast.tsx +0 -87
  206. package/apps/lib/components/Toggle.tsx +0 -125
  207. package/apps/lib/components/ToggleButton.tsx +0 -140
  208. package/apps/lib/components/Tooltip.tsx +0 -116
  209. package/apps/lib/components/TransparentLabel.tsx +0 -71
  210. package/apps/lib/components/TreeDropDown.tsx +0 -115
  211. package/apps/lib/components/TreeFolder/TreeFolder.tsx +0 -380
  212. package/apps/lib/components/TreeFolder/TreeFolderBreadcrumb.tsx +0 -75
  213. package/apps/lib/components/TreeFolder/TreeFolderRow.tsx +0 -354
  214. package/apps/lib/components/TreeFolder/TreeFolderStyles.tsx +0 -60
  215. package/apps/lib/components/TreeFolder/icons.tsx +0 -60
  216. package/apps/lib/components/TreeFolder/index.ts +0 -24
  217. package/apps/lib/components/TreeFolder/treeFolderUtils.ts +0 -109
  218. package/apps/lib/components/TreeFolder/types.ts +0 -77
  219. package/apps/lib/components/TreeFolder/useTreeFolderDnD.ts +0 -118
  220. package/apps/lib/hooks/useActiveTreeItem.ts +0 -58
  221. package/apps/lib/hooks/useClickOutside.ts +0 -27
  222. package/apps/lib/hooks/useDragDrop.tsx +0 -365
  223. package/apps/lib/hooks/useInfiniteScroll.ts +0 -108
  224. package/apps/lib/hooks/useIsMobile.ts +0 -21
  225. package/apps/lib/hooks/useResize.ts +0 -67
  226. package/apps/lib/hooks/useTagSelection.ts +0 -214
  227. package/apps/lib/layouts/CNLayout.tsx +0 -372
  228. package/apps/lib/layouts/DataViewCard.tsx +0 -62
  229. package/apps/lib/layouts/FieldSection.tsx +0 -91
  230. package/apps/lib/layouts/TreeSubLayout.tsx +0 -173
  231. package/apps/lib/providers/ThemeProvider.tsx +0 -84
  232. package/apps/lib/registry.json +0 -1201
  233. package/apps/lib/tsconfig.json +0 -9
  234. package/apps/lib/tsconfig.tsbuildinfo +0 -1
  235. package/apps/lib/utils/cn.ts +0 -6
  236. package/apps/lib/utils/color.ts +0 -175
  237. package/apps/lib/utils/dataViews/path.ts +0 -67
  238. package/apps/lib/utils/dataViews/query.ts +0 -73
  239. package/apps/lib/utils/dataViews/types.ts +0 -187
  240. package/apps/lib/utils/dateFormat.ts +0 -108
  241. package/apps/lib/utils/resize.ts +0 -31
  242. package/apps/lib/utils/types.ts +0 -16
  243. package/docs/BLOCKS.md +0 -129
  244. package/docs/CHANGELOG-1.1.16.md +0 -108
  245. package/docs/Cover.png +0 -0
  246. package/docs/README.md +0 -215
  247. package/docs/components/action-button.md +0 -638
  248. package/docs/components/actions-group.md +0 -708
  249. package/docs/components/alert-dialog.md +0 -920
  250. package/docs/components/avatar.md +0 -709
  251. package/docs/components/badge-field.md +0 -712
  252. package/docs/components/badge.md +0 -301
  253. package/docs/components/breadcrumb.md +0 -930
  254. package/docs/components/button-group.md +0 -650
  255. package/docs/components/button.md +0 -639
  256. package/docs/components/calendar.md +0 -555
  257. package/docs/components/card.md +0 -622
  258. package/docs/components/chart-block-tool.md +0 -129
  259. package/docs/components/checkbox.md +0 -699
  260. package/docs/components/cn-layout.md +0 -854
  261. package/docs/components/color-picker.md +0 -101
  262. package/docs/components/conclusion-header.md +0 -80
  263. package/docs/components/context-menu.md +0 -483
  264. package/docs/components/count-badge.md +0 -560
  265. package/docs/components/data-table.md +0 -854
  266. package/docs/components/data-views/backend-response.md +0 -324
  267. package/docs/components/data-views/examples/a11y-rtl.md +0 -250
  268. package/docs/components/data-views/examples/api-orders-route.md +0 -130
  269. package/docs/components/data-views/examples/fields.md +0 -362
  270. package/docs/components/data-views/examples/filters.md +0 -307
  271. package/docs/components/data-views/examples/inbox-routing.md +0 -218
  272. package/docs/components/data-views/examples/index.md +0 -29
  273. package/docs/components/data-views/examples/overview.md +0 -244
  274. package/docs/components/data-views/examples/panel.md +0 -212
  275. package/docs/components/data-views/examples/scale.md +0 -231
  276. package/docs/components/data-views/examples/server-side.md +0 -210
  277. package/docs/components/data-views/examples/state.md +0 -250
  278. package/docs/components/data-views/examples/tree-custom.md +0 -388
  279. package/docs/components/data-views/examples/view-registry.md +0 -313
  280. package/docs/components/data-views/examples/views.md +0 -534
  281. package/docs/components/data-views/guide.md +0 -405
  282. package/docs/components/data-views/index.md +0 -1495
  283. package/docs/components/data-views/migration.md +0 -79
  284. package/docs/components/date-picker.md +0 -857
  285. package/docs/components/dialog.md +0 -929
  286. package/docs/components/divider.md +0 -766
  287. package/docs/components/drawer.md +0 -654
  288. package/docs/components/dropdown-menu.md +0 -668
  289. package/docs/components/field-hint.md +0 -898
  290. package/docs/components/field-section.md +0 -781
  291. package/docs/components/form-builder.md +0 -276
  292. package/docs/components/form-renderer.md +0 -326
  293. package/docs/components/form-summary.md +0 -138
  294. package/docs/components/form.md +0 -785
  295. package/docs/components/header-bar.md +0 -188
  296. package/docs/components/image-attachment.md +0 -906
  297. package/docs/components/inner-label-field.md +0 -819
  298. package/docs/components/input-field.md +0 -623
  299. package/docs/components/input-otp.md +0 -756
  300. package/docs/components/input.md +0 -634
  301. package/docs/components/label-field.md +0 -770
  302. package/docs/components/label.md +0 -761
  303. package/docs/components/labeled-check-box.md +0 -642
  304. package/docs/components/labeled-radio.md +0 -796
  305. package/docs/components/link-button.md +0 -685
  306. package/docs/components/login-button.md +0 -872
  307. package/docs/components/password-level.md +0 -803
  308. package/docs/components/popover.md +0 -649
  309. package/docs/components/profile-menu.md +0 -656
  310. package/docs/components/radio-card.md +0 -801
  311. package/docs/components/radio.md +0 -735
  312. package/docs/components/scroll-area.md +0 -691
  313. package/docs/components/search-field.md +0 -702
  314. package/docs/components/searchable-select.md +0 -368
  315. package/docs/components/searchable-table.md +0 -438
  316. package/docs/components/searchable-tree-dialog.md +0 -190
  317. package/docs/components/searchable-tree.md +0 -200
  318. package/docs/components/section-block.md +0 -477
  319. package/docs/components/select.md +0 -709
  320. package/docs/components/simple-select.md +0 -741
  321. package/docs/components/skeleton.md +0 -706
  322. package/docs/components/slide-date-picker.md +0 -837
  323. package/docs/components/spin-loading.md +0 -696
  324. package/docs/components/stepper.md +0 -316
  325. package/docs/components/switch.md +0 -770
  326. package/docs/components/tab-form-item.md +0 -773
  327. package/docs/components/tab-switch.md +0 -170
  328. package/docs/components/table-dnd-wrapper.md +0 -107
  329. package/docs/components/table.md +0 -1088
  330. package/docs/components/text-editor.md +0 -735
  331. package/docs/components/textarea.md +0 -681
  332. package/docs/components/timeline.md +0 -254
  333. package/docs/components/toast.md +0 -773
  334. package/docs/components/toggle-button.md +0 -643
  335. package/docs/components/toggle.md +0 -882
  336. package/docs/components/tooltip.md +0 -513
  337. package/docs/components/transparent-label.md +0 -721
  338. package/docs/components/tree-drop-down.md +0 -740
  339. package/docs/components/tree-folder.md +0 -110
  340. package/docs/components/tree-sub-layout.md +0 -707
  341. package/docs/explanation/architecture.md +0 -54
  342. package/docs/explanation/design-system.md +0 -52
  343. package/docs/how-to/form-and-list-recipes.md +0 -386
  344. package/docs/how-to/forms-with-form-builder.md +0 -472
  345. package/docs/how-to/guides.md +0 -1027
  346. package/docs/migration/changelog.md +0 -54
  347. package/docs/migration/form-builder-2.5.2.md +0 -113
  348. package/docs/reference/cli.md +0 -112
  349. package/docs/reference/components.md +0 -572
  350. package/docs/reference/hooks.md +0 -1500
  351. package/docs/reference/providers.md +0 -866
  352. package/docs/reference/tailwind-plugins.md +0 -942
  353. package/docs/reference/theme.md +0 -85
  354. package/docs/reference/types.md +0 -1016
  355. package/docs/reference/utilities.md +0 -704
  356. package/docs/tutorials/building-first-form.md +0 -846
  357. package/docs/tutorials/component-composition.md +0 -882
  358. package/docs/tutorials/getting-started.md +0 -302
  359. package/docs/tutorials/theming-basics.md +0 -785
@@ -1,381 +0,0 @@
1
- "use client";
2
-
3
- import React, { useMemo } from "react";
4
- import { MoreHorizontal } from "lucide-react";
5
- import { cn } from "../../../utils/cn";
6
- import type { ColumnColor, RowGroup } from "../../../utils/dataViews/types";
7
- import { Button } from "../../Button";
8
- import { DataViewCard } from "../../../layouts/DataViewCard";
9
- import {
10
- DragGhost,
11
- DragList,
12
- useDragDrop,
13
- useDragItem,
14
- useDropContainer,
15
- } from "../../../hooks/useDragDrop";
16
- import { Cell } from "../cell";
17
- import { SkeletonBar, skeletonKeys } from "../states";
18
- import { buildCardRows } from "./card-rows";
19
- import { useInfiniteScroll } from "../../../hooks/useInfiniteScroll";
20
- import { useDataViewsData, useDataViewsView } from "../context";
21
- import { markView } from "../slots";
22
- import type { BoardViewProps } from "../types";
23
-
24
- /**
25
- * The Figma column pills are deeply saturated dark fills (#131415, #330C69, #532200, #002F66).
26
- * Each is matched to the closest raw-colour token; purple has no close presentation-layer match,
27
- * so it stays the exact Figma hex.
28
- */
29
- const COLUMN_BG: Record<ColumnColor, string> = {
30
- gray: "bg-black-900",
31
- purple: "bg-[#330C69]",
32
- orange: "bg-orange-900",
33
- blue: "bg-blue-sparkle-900",
34
- green: "bg-green-cyan-900",
35
- red: "bg-red-orange-900",
36
- };
37
-
38
- /**
39
- * `DataViews.Board` — a kanban board.
40
- *
41
- * You hand it `groups`; it never groups rows itself. That is deliberate: grouping is a query, and
42
- * which statuses exist (including the empty ones you still want a column for) is knowledge the
43
- * board does not have.
44
- *
45
- * Dragging emits `onRowMove` and **does not move the card**. The card moves when you update
46
- * `rows`/`groups` in response — so a failed save leaves the board showing the truth instead of a
47
- * lie. If nothing seems to happen on drop, that round-trip is what is missing.
48
- */
49
- function BoardViewImpl({
50
- groups,
51
- titlePath,
52
- renderCard,
53
- onRowMove,
54
- onColumnAction,
55
- className,
56
- }: BoardViewProps) {
57
- const { visibleFields, getRowId, loading } = useDataViewsData();
58
- const { activeId, setActiveId } = useDataViewsView();
59
-
60
- const titleField = titlePath ? visibleFields.find((f) => f.path === titlePath) : visibleFields[0];
61
- const bodyFields = visibleFields.filter((f) => f.path !== titleField?.path);
62
-
63
- /**
64
- * Where every card currently sits. A drop reports only what it landed *on* — which may be a
65
- * column or another card — so this is what turns that into "which column, at what index".
66
- */
67
- const placement = useMemo(() => {
68
- const map = new Map<string, { group: string; index: number }>();
69
- for (const group of groups) {
70
- group.rows.forEach((row, index) => {
71
- map.set(getRowId(row, index), { group: group.id, index });
72
- });
73
- }
74
- return map;
75
- }, [groups, getRowId]);
76
-
77
- const { DndContext, contextProps, activeId: draggingId, overId } = useDragDrop({
78
- mode: "board",
79
- disabled: !onRowMove,
80
- containerOf: (id) => placement.get(id)?.group ?? null,
81
- onMove: ({ id, from, to }) => {
82
- if (!to) return;
83
- // Dropped on a card: take that card's column and slot in at its position. Dropped on the
84
- // column itself — which is what an empty column offers — append.
85
- const onCard = placement.get(to);
86
- onRowMove?.({
87
- id,
88
- from,
89
- to: onCard ? onCard.group : to,
90
- ...(onCard ? { index: onCard.index } : null),
91
- });
92
- },
93
- });
94
-
95
- /**
96
- * Which column the drop would land in. Not `useDropContainer`'s `isOver`: the nearest droppable
97
- * to the pointer is almost always a *card*, so a column with anything in it would never light
98
- * up. The card's own column is the answer.
99
- */
100
- const targetGroup = overId ? (placement.get(overId)?.group ?? overId) : null;
101
-
102
- /** The row under the pointer, so the ghost can be the card itself rather than an outline. */
103
- const dragging = draggingId
104
- ? groups
105
- .flatMap((group) =>
106
- group.rows.map((row, index) => ({ row, group, index, id: getRowId(row, index) })),
107
- )
108
- .find((r) => r.id === draggingId)
109
- : undefined;
110
-
111
- return (
112
- <DndContext {...contextProps}>
113
- <div
114
- className={cn(
115
- "bg-background-presentation-body-primary h-full overflow-x-auto p-2",
116
- className,
117
- )}
118
- >
119
- <div className="flex h-full gap-4" style={{ minWidth: "max-content" }}>
120
- {groups.map((group, i) => (
121
- <React.Fragment key={group.id}>
122
- <BoardColumn
123
- group={group}
124
- isTarget={targetGroup === group.id}
125
- onColumnAction={onColumnAction}
126
- ids={group.rows.map((row, index) => getRowId(row, index))}
127
- >
128
- {loading && <SkeletonCards />}
129
- {!loading && group.rows.map((row, index) => {
130
- // `index` is the position within this column. It only reaches `getRowId` as the
131
- // last-resort fallback for rows with no id of their own — give those a stable
132
- // `getRowId` if you drag them, or two columns will hand out the same key.
133
- const id = getRowId(row, index);
134
- return (
135
- <BoardCard
136
- key={id}
137
- id={id}
138
- draggable={Boolean(onRowMove)}
139
- isActive={activeId === id}
140
- onClick={() => setActiveId(activeId === id ? null : id)}
141
- >
142
- {(isDragging) =>
143
- renderCard ? (
144
- renderCard({
145
- row,
146
- id,
147
- index,
148
- fields: visibleFields,
149
- group,
150
- isActive: activeId === id,
151
- isDragging,
152
- })
153
- ) : (
154
- <DataViewCard
155
- title={titleField ? <Cell field={titleField} row={row} /> : undefined}
156
- rows={buildCardRows(bodyFields, row)}
157
- className={cn(
158
- onRowMove
159
- ? "cursor-grab transition-shadow hover:shadow-md active:cursor-grabbing"
160
- : "cursor-pointer",
161
- activeId === id && "border-border-presentation-state-focus",
162
- )}
163
- />
164
- )
165
- }
166
- </BoardCard>
167
- );
168
- })}
169
- </BoardColumn>
170
-
171
- {i < groups.length - 1 && (
172
- // Starts below the column header rather than at the top of the board.
173
- <div
174
- aria-hidden
175
- className="border-border-presentation-global-primary mt-[42px] self-stretch border-l-[2px] border-dashed"
176
- />
177
- )}
178
- </React.Fragment>
179
- ))}
180
- </div>
181
- </div>
182
-
183
- {/* The ghost is the card, drawn through whatever renders the real one — a custom
184
- `renderCard` included, or the ghost would announce itself as a different object. */}
185
- <DragGhost>
186
- {dragging && (
187
- <div className="w-[271px] cursor-grabbing opacity-95 shadow-lg">
188
- {renderCard ? (
189
- renderCard({
190
- row: dragging.row,
191
- id: dragging.id,
192
- index: dragging.index,
193
- fields: visibleFields,
194
- group: dragging.group,
195
- isActive: activeId === dragging.id,
196
- isDragging: true,
197
- })
198
- ) : (
199
- <DataViewCard
200
- title={titleField ? <Cell field={titleField} row={dragging.row} /> : undefined}
201
- rows={buildCardRows(bodyFields, dragging.row)}
202
- className="border-border-presentation-state-focus"
203
- />
204
- )}
205
- </div>
206
- )}
207
- </DragGhost>
208
- </DndContext>
209
- );
210
- }
211
-
212
- /**
213
- * Asks for the next page when *this* column is scrolled to its end.
214
- *
215
- * Every column calls the same `onLoadMore`, because the board is fed one shared page of rows and
216
- * regroups them — so a short column can end up asking for more on behalf of a long one. That is
217
- * the trade for not having to page each column separately.
218
- */
219
- function ColumnSentinel() {
220
- const { loading, loadingMore, hasMore, onLoadMore } = useDataViewsData();
221
- const { sentinelRef } = useInfiniteScroll({
222
- onLoadMore,
223
- hasMore,
224
- loading: loading || loadingMore,
225
- });
226
- if (!hasMore || loading) return null;
227
- return (
228
- <>
229
- <div ref={sentinelRef as React.Ref<HTMLDivElement>} aria-hidden className="h-px shrink-0" />
230
- {loadingMore && <SkeletonCards count={1} />}
231
- </>
232
- );
233
- }
234
-
235
- /** Per column. Two is enough to read as "cards are coming" without pretending to know how many. */
236
- const SKELETON_CARDS = 2;
237
-
238
- /**
239
- * The loading column.
240
- *
241
- * A real `DataViewCard` with shimmer where its text goes, so the card's radius, border and padding
242
- * are the ones the data will land in. The column header above keeps its label and colour — only
243
- * the cards are unknown.
244
- */
245
- function SkeletonCards({ count = SKELETON_CARDS }: { count?: number }) {
246
- return (
247
- <>
248
- {skeletonKeys(count).map((i) => (
249
- <DataViewCard
250
- key={`skeleton-${i}`}
251
- title={<SkeletonBar className="h-[18px] w-[60%]" />}
252
- rows={[
253
- [
254
- { key: "a", label: <SkeletonBar className="w-[54px]" />, value: <SkeletonBar className="w-[64px]" /> },
255
- { key: "b", label: <SkeletonBar className="w-[44px]" />, value: <SkeletonBar className="w-[72px]" /> },
256
- ],
257
- ]}
258
- />
259
- ))}
260
- </>
261
- );
262
- }
263
-
264
- /**
265
- * A column: a drop target in its own right, so a card can be dropped on an empty one.
266
- *
267
- * `DragList` is what lets a card be dropped *between* two others rather than only onto the column.
268
- */
269
- function BoardColumn({
270
- group,
271
- ids,
272
- isTarget,
273
- onColumnAction,
274
- children,
275
- }: {
276
- group: RowGroup;
277
- ids: string[];
278
- isTarget: boolean;
279
- onColumnAction?: (groupId: string) => void;
280
- children: React.ReactNode;
281
- }) {
282
- const { ref, isOver, containerProps } = useDropContainer(group.id);
283
-
284
- return (
285
- <div
286
- ref={ref}
287
- {...containerProps}
288
- className={cn(
289
- // The transparent 2px border is permanent so the drop-target state costs no layout shift.
290
- "flex w-[279px] flex-col gap-2 rounded-[12px] border-2 border-transparent p-1",
291
- "transition-colors duration-150 ease-in-out",
292
- (isOver || isTarget) &&
293
- "bg-background-presentation-cardbutton-blue-hover border-border-presentation-state-focus border-dashed",
294
- )}
295
- >
296
- <ColumnHeader group={group} onAction={onColumnAction} />
297
- <div className="flex flex-col gap-2 overflow-y-auto py-1">
298
- <DragList ids={ids}>{children}</DragList>
299
- <ColumnSentinel />
300
- </div>
301
- </div>
302
- );
303
- }
304
-
305
- /**
306
- * The wrapper around a card — ours whichever card is shown, because dragging and the click that
307
- * opens a row are board behaviour, not card decoration.
308
- *
309
- * `children` is a function so a custom card can be told whether it is the one being dragged
310
- * without this component knowing what it renders.
311
- */
312
- function BoardCard({
313
- id,
314
- draggable,
315
- isActive,
316
- onClick,
317
- children,
318
- }: {
319
- id: string;
320
- draggable: boolean;
321
- isActive: boolean;
322
- onClick: () => void;
323
- children: (isDragging: boolean) => React.ReactNode;
324
- }) {
325
- const { ref, handleProps, style, isDragging } = useDragItem(id, !draggable);
326
-
327
- return (
328
- <div
329
- ref={ref}
330
- style={style}
331
- {...handleProps}
332
- onClick={onClick}
333
- data-active={isActive || undefined}
334
- className={cn(
335
- draggable ? "cursor-grab active:cursor-grabbing" : "cursor-pointer",
336
- isDragging && "opacity-40",
337
- )}
338
- >
339
- {children(isDragging)}
340
- </div>
341
- );
342
- }
343
-
344
- /** The solid dark pill at the top of a column. No dot, no count — just the title and an action. */
345
- function ColumnHeader({
346
- group,
347
- onAction,
348
- }: {
349
- group: RowGroup;
350
- onAction?: (groupId: string) => void;
351
- }) {
352
- return (
353
- <div
354
- className={cn(
355
- "flex items-center justify-between rounded-[8px] px-[6px] py-[4px]",
356
- COLUMN_BG[group.color ?? "gray"],
357
- )}
358
- >
359
- {/* `min-w-0` because this is a flex item: without it the heading refuses to shrink below its
360
- text and a long group name pushes the action button out of the column. */}
361
- <h3 className="typography-headers-small-medium text-content-presentation-global-primary-light min-w-0 truncate">
362
- {group.label}
363
- </h3>
364
- {onAction && (
365
- <Button
366
- variant="BorderStyle"
367
- buttonType="icon"
368
- className="text-content-presentation-global-primary-light h-5 w-5 border-0 bg-transparent hover:bg-white/10"
369
- onClick={() => onAction(group.id)}
370
- >
371
- <MoreHorizontal className="h-3.5 w-3.5" />
372
- </Button>
373
- )}
374
- </div>
375
- );
376
- }
377
-
378
- export const BoardView = markView(BoardViewImpl, {
379
- defaultId: "board",
380
- defaultLabel: "Board",
381
- });
@@ -1,36 +0,0 @@
1
- "use client";
2
-
3
- import { getByPath } from "../../../utils/dataViews/path";
4
- import type { FieldConfig, Row } from "../../../utils/dataViews/types";
5
- import type { DataViewCardRow } from "../../../layouts/DataViewCard";
6
- import { Cell } from "../cell";
7
-
8
- /**
9
- * Turn a row's fields into the `DataViewCard` body.
10
- *
11
- * Shared by the board's cards and the tree pane's, so the same row looks the same in both rather
12
- * than drifting into two nearly-identical builders.
13
- *
14
- * Pair the body fields two per row so the card grid keeps its rhythm even when one side is
15
- * missing: a lone survivor spans both columns, and fully empty pairs are dropped rather than
16
- * rendering a phantom row of hairlines.
17
- */
18
- export function buildCardRows(fields: readonly FieldConfig[], row: Row): DataViewCardRow[] {
19
- const rows: DataViewCardRow[] = [];
20
- for (let i = 0; i < fields.length; i += 2) {
21
- const pair = [fields[i], fields[i + 1]];
22
- const cells: DataViewCardRow = [];
23
- for (const [offset, field] of pair.entries()) {
24
- if (!field) continue;
25
- if (getByPath(row, field.path) == null) continue;
26
- cells.push({
27
- // Position, not path — two fields may share one.
28
- key: `${field.path}-${i + offset}`,
29
- label: field.label ?? field.path,
30
- value: <Cell field={field} row={row} />,
31
- });
32
- }
33
- if (cells.length > 0) rows.push(cells);
34
- }
35
- return rows;
36
- }
@@ -1,260 +0,0 @@
1
- "use client";
2
-
3
- import React from "react";
4
- import { cn } from "../../../utils/cn";
5
- import type { FieldConfig } from "../../../utils/dataViews/types";
6
- import { Divider } from "../../Divider";
7
- import { Cell } from "../cell";
8
- import { SkeletonBar, skeletonKeys } from "../states";
9
- import { useInfiniteScroll } from "../../../hooks/useInfiniteScroll";
10
- import { useDataViewsData, useDataViewsView } from "../context";
11
- import { useActiveRow } from "../hooks/useActiveRow";
12
- import { markView } from "../slots";
13
- import type { InboxViewProps } from "../types";
14
-
15
- /**
16
- * `DataViews.Inbox` — a list of record cards on the left, the one you picked on the right.
17
- *
18
- * The rows are not mail-style title/preview lines: each card is a stack of `label : value` rows
19
- * with a date pill in the corner, so an inbox of orders reads as orders rather than as email.
20
- *
21
- * The right pane is `children`: the inbox knows which row is active (`activeId`) but not how you
22
- * want it displayed, so it hands the decision back rather than inventing a detail layout.
23
- */
24
- function InboxViewImpl({
25
- children,
26
- renderItem,
27
- titlePath,
28
- datePath,
29
- itemHref,
30
- linkComponent,
31
- placeholder,
32
- className,
33
- }: InboxViewProps) {
34
- const { rows, visibleFields, getRowId, loading, loadingMore, hasMore, onLoadMore } =
35
- useDataViewsData();
36
- const { sentinelRef } = useInfiniteScroll({
37
- onLoadMore,
38
- hasMore,
39
- loading: loading || loadingMore,
40
- });
41
- const { activeId, setActiveId } = useDataViewsView();
42
- // "Is a row open?", not "is an id set?". `activeId` is shared with the other views, so it can
43
- // outlive the row it named — after a refetch, or after the tree selected a grouping node that
44
- // is not a row at all. Keying off the row keeps the pane and the placeholder consistent.
45
- const activeRow = useActiveRow();
46
-
47
- const byPath = (path: string | undefined) =>
48
- path ? visibleFields.find((f) => f.path === path) : undefined;
49
-
50
- // The date is pulled out of the card body and shown as a pill; everything else becomes a
51
- // label/value row.
52
- const dateField = byPath(datePath) ?? visibleFields.find((f) => f.type === "date" || f.type === "date-format");
53
- const titleField = byPath(titlePath);
54
- const rowFields = visibleFields.filter(
55
- (f) => f.path !== dateField?.path && f.type !== "hidden",
56
- );
57
-
58
- const Link = linkComponent ?? "a";
59
-
60
- return (
61
- // Split, like the tree: the gap shows the shell's black and the two panels sit on it.
62
- <div className={cn("flex h-full flex-col gap-2 bg-black md:flex-row", className)}>
63
- <ul
64
- className={cn(
65
- "border-border-presentation-global-primary flex w-full flex-col overflow-hidden rounded-[16px] border",
66
- "bg-background-presentation-form-base md:w-96",
67
- )}
68
- >
69
- <li className="border-border-presentation-global-primary border-b px-3 py-2">
70
- {/* `block` before `truncate`: the parent is a plain `<li>`, so this span would otherwise
71
- be inline — and `overflow` has no effect on an inline box, which would leave the
72
- ellipsis silently doing nothing. */}
73
- <span
74
- style={{ fontFeatureSettings: "'cv05' on" }}
75
- className="typography-display-medium-medium text-content-presentation-global-primary block truncate uppercase"
76
- >
77
- {titleField?.label ?? "inbox"}
78
- </span>
79
- </li>
80
-
81
- <div className="bg-background-presentation-button-disabled flex flex-1 flex-col gap-1 overflow-y-auto py-1">
82
- {loading && <SkeletonItems count={rowFields.length || 2} />}
83
- {!loading && rows.map((row, index) => {
84
- const id = getRowId(row, index);
85
- const selected = activeId === id;
86
- const href = itemHref?.(row, id);
87
-
88
- const card = renderItem ? (
89
- renderItem({ row, id, index, fields: visibleFields, isActive: selected })
90
- ) : (
91
- <>
92
- <div className="flex w-full flex-col gap-1">
93
- {rowFields.map((field, i) => (
94
- <div key={`${field.path}-${i}`} className="flex flex-col">
95
- <div className="flex items-center gap-2">
96
- <span className="typography-body-large-semibold text-content-presentation-global-secondary w-[100px] shrink-0">
97
- {field.label ?? field.path}:
98
- </span>
99
- <span className="flex h-full items-center py-0.5">
100
- <span className="bg-black-alpha-15 block h-full w-px" />
101
- </span>
102
- <span className="typography-body-large-medium text-content-presentation-global-primary min-w-0 flex-1 truncate">
103
- <Cell field={field} row={row} />
104
- </span>
105
- </div>
106
- {i < rowFields.length - 1 && <Divider className="mt-1" />}
107
- </div>
108
- ))}
109
- </div>
110
-
111
- {dateField && (
112
- <div className="flex items-center justify-end">
113
- <div className="bg-black-alpha-10 inline-flex items-center gap-0.5 rounded-md p-0.5">
114
- <div className="rounded-sm px-1">
115
- <span className="typography-labels-medium-semibold text-content-presentation-global-primary">
116
- {dateField.label ?? "Created at"}:
117
- </span>
118
- </div>
119
- <div className="bg-black-alpha-075 rounded-sm px-1">
120
- <span className="typography-labels-medium-semibold text-content-presentation-global-primary">
121
- <Cell field={dateField} row={row} />
122
- </span>
123
- </div>
124
- </div>
125
- </div>
126
- )}
127
- </>
128
- );
129
-
130
- const cardClass = cn(
131
- "flex cursor-pointer flex-col gap-2 p-3 transition-colors",
132
- "bg-background-presentation-form-base",
133
- // The transparent 2px edges are permanent so hover and selection never shift the row.
134
- "border-y-2 border-transparent",
135
- !selected &&
136
- "hover:bg-[image:linear-gradient(0deg,rgba(151,72,255,0.05)_0%,rgba(151,72,255,0.05)_100%)] hover:border-y-[#AE71FF]",
137
- selected &&
138
- "bg-[image:linear-gradient(0deg,rgba(0,117,255,0.05)_0%,rgba(0,117,255,0.05)_100%)] border-y-border-presentation-state-focus",
139
- );
140
-
141
- return (
142
- <li key={id}>
143
- {href ? (
144
- <Link
145
- href={href}
146
- onClick={() => setActiveId(id)}
147
- className={cn(cardClass, "text-inherit no-underline")}
148
- >
149
- {card}
150
- </Link>
151
- ) : (
152
- <div
153
- role="button"
154
- tabIndex={0}
155
- aria-current={selected || undefined}
156
- onClick={() => setActiveId(id)}
157
- onKeyDown={(e) => {
158
- if (e.key !== "Enter" && e.key !== " ") return;
159
- e.preventDefault();
160
- setActiveId(id);
161
- }}
162
- className={cardClass}
163
- >
164
- {card}
165
- </div>
166
- )}
167
- </li>
168
- );
169
- })}
170
- {/* Asks for the next page as the list nears its end. Inside the scroller, so it is the
171
- list's own scrolling that triggers it. */}
172
- {hasMore && !loading && (
173
- <li ref={sentinelRef as React.Ref<HTMLLIElement>} aria-hidden className="h-px" />
174
- )}
175
- {loadingMore && <SkeletonItems count={rowFields.length || 2} items={2} />}
176
- </div>
177
- </ul>
178
-
179
- <div
180
- className={cn(
181
- "bg-background-presentation-form-base flex flex-1 flex-col overflow-hidden rounded-[16px]",
182
- activeRow === null && "border-border-presentation-global-primary items-center justify-center border",
183
- )}
184
- >
185
- {activeRow === null
186
- ? (placeholder ?? (
187
- <p className="text-content-presentation-global-tertiary">
188
- Select an item to view details
189
- </p>
190
- ))
191
- : children}
192
- </div>
193
- </div>
194
- );
195
- }
196
-
197
- /** Enough items to fill the list's fold. */
198
- const SKELETON_ITEMS = 5;
199
-
200
- /**
201
- * The loading list.
202
- *
203
- * Mirrors a real item: the same `p-3` card with `border-y-2` transparent edges, and the same
204
- * label / divider / value row at the 100px label column — so items do not reflow when the messages
205
- * arrive. `count` is the number of field rows a real item will have.
206
- */
207
- function SkeletonItems({ count, items = SKELETON_ITEMS }: { count: number; items?: number }) {
208
- return (
209
- <>
210
- {skeletonKeys(items).map((item) => (
211
- <li key={`skeleton-${item}`}>
212
- <div className="bg-background-presentation-form-base flex flex-col gap-2 border-y-2 border-transparent p-3">
213
- <div className="flex w-full flex-col gap-1">
214
- {skeletonKeys(count).map((i) => (
215
- <div key={i} className="flex items-center gap-2">
216
- <SkeletonBar className="w-[100px] shrink-0" />
217
- <span className="flex h-full items-center py-0.5">
218
- <span className="bg-black-alpha-15 block h-full w-px" />
219
- </span>
220
- <SkeletonBar className={["w-[60%]", "w-[40%]", "w-[75%]"][(item + i) % 3]} />
221
- </div>
222
- ))}
223
- </div>
224
- </div>
225
- </li>
226
- ))}
227
- </>
228
- );
229
- }
230
-
231
- /**
232
- * `DataViews.Detail` — the default detail pane: every visible field as a label/value row. Drop it
233
- * in when you want something reasonable immediately, and replace it with your own JSX when you
234
- * do not.
235
- */
236
- export function Detail({ className }: { className?: string }) {
237
- const { visibleFields } = useDataViewsData();
238
- const row = useActiveRow();
239
- if (!row) return null;
240
-
241
- return (
242
- <dl className={cn("flex flex-col gap-3 p-6", className)}>
243
- {visibleFields.map((f: FieldConfig, i) => (
244
- <div key={`${f.path}-${i}`} className="flex flex-col gap-[2px]">
245
- <dt className="typography-body-small-regular text-content-presentation-global-tertiary">
246
- {f.label ?? f.path}
247
- </dt>
248
- <dd className="typography-body-medium-medium text-content-presentation-global-primary">
249
- <Cell field={f} row={row} />
250
- </dd>
251
- </div>
252
- ))}
253
- </dl>
254
- );
255
- }
256
-
257
- export const InboxView = markView(InboxViewImpl, {
258
- defaultId: "inbox",
259
- defaultLabel: "Inbox",
260
- });