@arbidocs/blocks 0.4.153 → 0.4.154

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 (221) hide show
  1. package/dist/{ConnectedNativeDocxComparison-OFPIXNJB.js → ConnectedNativeDocxComparison-OLWRQSRS.js} +11 -11
  2. package/dist/{ConnectedNativeDocxComparison-OFPIXNJB.js.map → ConnectedNativeDocxComparison-OLWRQSRS.js.map} +1 -1
  3. package/dist/{ConnectedNativeDocxComparison-Y5BNLNH6.cjs → ConnectedNativeDocxComparison-YORMOPPN.cjs} +12 -12
  4. package/dist/{ConnectedNativeDocxComparison-Y5BNLNH6.cjs.map → ConnectedNativeDocxComparison-YORMOPPN.cjs.map} +1 -1
  5. package/dist/{ConnectedNativeDocxEditor-LRYU5HPA.js → ConnectedNativeDocxEditor-34EBIIFS.js} +10 -10
  6. package/dist/{ConnectedNativeDocxEditor-LRYU5HPA.js.map → ConnectedNativeDocxEditor-34EBIIFS.js.map} +1 -1
  7. package/dist/{ConnectedNativeDocxEditor-HTEW5JAH.cjs → ConnectedNativeDocxEditor-EHTWGGX3.cjs} +12 -12
  8. package/dist/{ConnectedNativeDocxEditor-HTEW5JAH.cjs.map → ConnectedNativeDocxEditor-EHTWGGX3.cjs.map} +1 -1
  9. package/dist/{ConnectedStreamedWordArtifact-QW74LKHN.cjs → ConnectedStreamedWordArtifact-5DK6QGYN.cjs} +12 -12
  10. package/dist/ConnectedStreamedWordArtifact-5DK6QGYN.cjs.map +1 -0
  11. package/dist/{ConnectedStreamedWordArtifact-QAUVUCSX.js → ConnectedStreamedWordArtifact-GLIDLSAS.js} +11 -11
  12. package/dist/{ConnectedStreamedWordArtifact-QAUVUCSX.js.map → ConnectedStreamedWordArtifact-GLIDLSAS.js.map} +1 -1
  13. package/dist/WorkspaceTableView-5OWX53R5.js +376 -0
  14. package/dist/WorkspaceTableView-5OWX53R5.js.map +1 -0
  15. package/dist/WorkspaceTableView-ZFMAYHUD.cjs +378 -0
  16. package/dist/WorkspaceTableView-ZFMAYHUD.cjs.map +1 -0
  17. package/dist/agents/index.cjs +282 -282
  18. package/dist/agents/index.js +7 -7
  19. package/dist/{chunk-RQ2Y7USX.cjs → chunk-2VHYOTWW.cjs} +3 -3
  20. package/dist/chunk-2VHYOTWW.cjs.map +1 -0
  21. package/dist/{chunk-DTROMMDX.cjs → chunk-3VULDTNL.cjs} +4 -4
  22. package/dist/{chunk-DTROMMDX.cjs.map → chunk-3VULDTNL.cjs.map} +1 -1
  23. package/dist/{chunk-UTTTJSQU.cjs → chunk-4RPBUMHB.cjs} +4 -4
  24. package/dist/{chunk-UTTTJSQU.cjs.map → chunk-4RPBUMHB.cjs.map} +1 -1
  25. package/dist/chunk-53RCZPMR.cjs +496 -0
  26. package/dist/chunk-53RCZPMR.cjs.map +1 -0
  27. package/dist/chunk-5TDGVOR5.js +142 -0
  28. package/dist/chunk-5TDGVOR5.js.map +1 -0
  29. package/dist/{chunk-CU2O32Z4.cjs → chunk-6QAAIDQQ.cjs} +62 -99
  30. package/dist/chunk-6QAAIDQQ.cjs.map +1 -0
  31. package/dist/chunk-7HHYMDPE.js +431 -0
  32. package/dist/chunk-7HHYMDPE.js.map +1 -0
  33. package/dist/{chunk-SMN32BQ3.cjs → chunk-7NL6WJER.cjs} +3 -160
  34. package/dist/chunk-7NL6WJER.cjs.map +1 -0
  35. package/dist/{chunk-T74Q3MCZ.cjs → chunk-BDA3RHYD.cjs} +4 -4
  36. package/dist/{chunk-T74Q3MCZ.cjs.map → chunk-BDA3RHYD.cjs.map} +1 -1
  37. package/dist/{chunk-IXWJGOM2.js → chunk-BQ77KSXU.js} +3 -3
  38. package/dist/{chunk-IXWJGOM2.js.map → chunk-BQ77KSXU.js.map} +1 -1
  39. package/dist/chunk-BTF4AZMG.js +148 -0
  40. package/dist/chunk-BTF4AZMG.js.map +1 -0
  41. package/dist/{chunk-HALD6ZB5.cjs → chunk-C3SMTA3C.cjs} +4 -4
  42. package/dist/{chunk-HALD6ZB5.cjs.map → chunk-C3SMTA3C.cjs.map} +1 -1
  43. package/dist/{chunk-GAYMJWTC.cjs → chunk-CB4TIDEX.cjs} +6 -6
  44. package/dist/{chunk-GAYMJWTC.cjs.map → chunk-CB4TIDEX.cjs.map} +1 -1
  45. package/dist/{chunk-KPZZ5FHE.cjs → chunk-CNHUJRQ4.cjs} +10 -6
  46. package/dist/chunk-CNHUJRQ4.cjs.map +1 -0
  47. package/dist/{chunk-Q4BY2CQQ.cjs → chunk-CQCNU5KT.cjs} +28 -28
  48. package/dist/{chunk-Q4BY2CQQ.cjs.map → chunk-CQCNU5KT.cjs.map} +1 -1
  49. package/dist/{chunk-GRGS5M6O.cjs → chunk-CROGFB46.cjs} +160 -3
  50. package/dist/chunk-CROGFB46.cjs.map +1 -0
  51. package/dist/{chunk-QN47Q4N7.js → chunk-CU6LDQ57.js} +3 -3
  52. package/dist/{chunk-QN47Q4N7.js.map → chunk-CU6LDQ57.js.map} +1 -1
  53. package/dist/{chunk-EF4ZLKRM.js → chunk-DEPF5LQI.js} +3 -3
  54. package/dist/{chunk-EF4ZLKRM.js.map → chunk-DEPF5LQI.js.map} +1 -1
  55. package/dist/{chunk-JAANWQGB.js → chunk-ETZ5A3GU.js} +3 -3
  56. package/dist/{chunk-JAANWQGB.js.map → chunk-ETZ5A3GU.js.map} +1 -1
  57. package/dist/{chunk-TBEVGWY3.js → chunk-F57LNUSZ.js} +10 -6
  58. package/dist/chunk-F57LNUSZ.js.map +1 -0
  59. package/dist/{chunk-GFNELPDP.cjs → chunk-FM3IRQJW.cjs} +10 -5
  60. package/dist/chunk-FM3IRQJW.cjs.map +1 -0
  61. package/dist/chunk-FPHTSNOE.js +465 -0
  62. package/dist/chunk-FPHTSNOE.js.map +1 -0
  63. package/dist/{chunk-OVR3XMYL.js → chunk-FYZXDZM7.js} +3 -3
  64. package/dist/{chunk-OVR3XMYL.js.map → chunk-FYZXDZM7.js.map} +1 -1
  65. package/dist/{chunk-2FLWPM3B.cjs → chunk-GC2FSPSQ.cjs} +7 -7
  66. package/dist/{chunk-2FLWPM3B.cjs.map → chunk-GC2FSPSQ.cjs.map} +1 -1
  67. package/dist/{chunk-DB2OXRQC.js → chunk-GO3BN76C.js} +7 -7
  68. package/dist/{chunk-DB2OXRQC.js.map → chunk-GO3BN76C.js.map} +1 -1
  69. package/dist/{chunk-XZIYRKLW.cjs → chunk-H32DV7XS.cjs} +5 -139
  70. package/dist/chunk-H32DV7XS.cjs.map +1 -0
  71. package/dist/{chunk-4236BRZK.js → chunk-HP2C4MD3.js} +29 -3
  72. package/dist/chunk-HP2C4MD3.js.map +1 -0
  73. package/dist/{chunk-ZP6Q3KXU.cjs → chunk-HUATKA3M.cjs} +4 -4
  74. package/dist/{chunk-ZP6Q3KXU.cjs.map → chunk-HUATKA3M.cjs.map} +1 -1
  75. package/dist/chunk-ISHFVKVU.js +304 -0
  76. package/dist/chunk-ISHFVKVU.js.map +1 -0
  77. package/dist/chunk-JUUOJP7I.cjs +164 -0
  78. package/dist/chunk-JUUOJP7I.cjs.map +1 -0
  79. package/dist/{chunk-4KMLM3GY.cjs → chunk-KBO75NLM.cjs} +7 -7
  80. package/dist/{chunk-4KMLM3GY.cjs.map → chunk-KBO75NLM.cjs.map} +1 -1
  81. package/dist/{chunk-Z4NQ3TED.js → chunk-KCSIX7CY.js} +3 -3
  82. package/dist/{chunk-Z4NQ3TED.js.map → chunk-KCSIX7CY.js.map} +1 -1
  83. package/dist/{chunk-DN2KI4BU.js → chunk-KDLX5AA7.js} +3 -3
  84. package/dist/{chunk-DN2KI4BU.js.map → chunk-KDLX5AA7.js.map} +1 -1
  85. package/dist/{chunk-WFA2GVZJ.js → chunk-MF5KQ4PS.js} +3 -3
  86. package/dist/{chunk-WFA2GVZJ.js.map → chunk-MF5KQ4PS.js.map} +1 -1
  87. package/dist/{chunk-YXNNNP57.js → chunk-MNG7N6M2.js} +4 -4
  88. package/dist/{chunk-YXNNNP57.js.map → chunk-MNG7N6M2.js.map} +1 -1
  89. package/dist/chunk-MSFQDELO.cjs +482 -0
  90. package/dist/chunk-MSFQDELO.cjs.map +1 -0
  91. package/dist/{chunk-KSHKTOY2.js → chunk-NUSBINUM.js} +3 -3
  92. package/dist/chunk-NUSBINUM.js.map +1 -0
  93. package/dist/{chunk-EYKISBDO.cjs → chunk-OALEDG67.cjs} +5 -5
  94. package/dist/{chunk-EYKISBDO.cjs.map → chunk-OALEDG67.cjs.map} +1 -1
  95. package/dist/{chunk-COCGRJLA.cjs → chunk-OFV3PRF2.cjs} +7 -7
  96. package/dist/{chunk-COCGRJLA.cjs.map → chunk-OFV3PRF2.cjs.map} +1 -1
  97. package/dist/chunk-OOU4QLRK.cjs +319 -0
  98. package/dist/chunk-OOU4QLRK.cjs.map +1 -0
  99. package/dist/chunk-OU3RGQFX.cjs +136 -0
  100. package/dist/chunk-OU3RGQFX.cjs.map +1 -0
  101. package/dist/{chunk-3PCBYOIZ.js → chunk-P6RIBIVN.js} +38 -7
  102. package/dist/chunk-P6RIBIVN.js.map +1 -0
  103. package/dist/{chunk-LXTOOUEN.cjs → chunk-Q7CQYYZW.cjs} +5 -5
  104. package/dist/{chunk-LXTOOUEN.cjs.map → chunk-Q7CQYYZW.cjs.map} +1 -1
  105. package/dist/{chunk-CROTH2BS.js → chunk-QKR5LWDO.js} +9 -40
  106. package/dist/{chunk-CROTH2BS.js.map → chunk-QKR5LWDO.js.map} +1 -1
  107. package/dist/{chunk-HUJF2XM2.js → chunk-RE7NULEY.js} +3 -3
  108. package/dist/{chunk-HUJF2XM2.js.map → chunk-RE7NULEY.js.map} +1 -1
  109. package/dist/chunk-REH7PX3N.cjs +145 -0
  110. package/dist/chunk-REH7PX3N.cjs.map +1 -0
  111. package/dist/chunk-RQKWYKZY.js +127 -0
  112. package/dist/chunk-RQKWYKZY.js.map +1 -0
  113. package/dist/{chunk-U6JQ4KMX.cjs → chunk-SN2GZ4ZM.cjs} +29 -2
  114. package/dist/chunk-SN2GZ4ZM.cjs.map +1 -0
  115. package/dist/{chunk-R6VCPDPF.js → chunk-SZSJGZSO.js} +156 -6
  116. package/dist/chunk-SZSJGZSO.js.map +1 -0
  117. package/dist/{chunk-US3S4DCB.js → chunk-TF7HN5EU.js} +10 -5
  118. package/dist/chunk-TF7HN5EU.js.map +1 -0
  119. package/dist/{chunk-YKQ2DPIP.js → chunk-VF5EUAIV.js} +3 -3
  120. package/dist/{chunk-YKQ2DPIP.js.map → chunk-VF5EUAIV.js.map} +1 -1
  121. package/dist/{chunk-KMZWKSKO.cjs → chunk-VZPFYZZU.cjs} +4 -4
  122. package/dist/{chunk-KMZWKSKO.cjs.map → chunk-VZPFYZZU.cjs.map} +1 -1
  123. package/dist/{chunk-ZLEYLCE4.js → chunk-WK6FVIF7.js} +6 -156
  124. package/dist/chunk-WK6FVIF7.js.map +1 -0
  125. package/dist/{chunk-COA3S3CZ.js → chunk-XI37A7HH.js} +4 -4
  126. package/dist/{chunk-COA3S3CZ.js.map → chunk-XI37A7HH.js.map} +1 -1
  127. package/dist/{chunk-LGBAZD37.js → chunk-XRL4R2TT.js} +7 -139
  128. package/dist/chunk-XRL4R2TT.js.map +1 -0
  129. package/dist/{chunk-4JNKXOFZ.cjs → chunk-YBJ4QGNH.cjs} +11 -11
  130. package/dist/{chunk-4JNKXOFZ.cjs.map → chunk-YBJ4QGNH.cjs.map} +1 -1
  131. package/dist/{chunk-GFOEWPAP.cjs → chunk-YF3QUHKN.cjs} +49 -12
  132. package/dist/chunk-YF3QUHKN.cjs.map +1 -0
  133. package/dist/{chunk-H4D7WKDY.js → chunk-YNMO3DSR.js} +3 -3
  134. package/dist/{chunk-H4D7WKDY.js.map → chunk-YNMO3DSR.js.map} +1 -1
  135. package/dist/citations/index.cjs +10 -10
  136. package/dist/citations/index.js +2 -2
  137. package/dist/collaboration/index.cjs +77 -77
  138. package/dist/collaboration/index.js +2 -2
  139. package/dist/connect/docx.cjs +14 -14
  140. package/dist/connect/docx.js +10 -10
  141. package/dist/connect/index.cjs +1577 -962
  142. package/dist/connect/index.cjs.map +1 -1
  143. package/dist/connect/index.d.ts +3 -0
  144. package/dist/connect/index.js +1014 -450
  145. package/dist/connect/index.js.map +1 -1
  146. package/dist/connect/viewer.cjs +66 -66
  147. package/dist/connect/viewer.js +10 -10
  148. package/dist/connection/ConnectionProvider.d.ts +7 -0
  149. package/dist/connection/projects/ConnectedProjectsPanel.d.ts +34 -0
  150. package/dist/connection/projects/index.d.ts +1 -0
  151. package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.d.ts +37 -0
  152. package/dist/connection/workspace-dashboard/dashboard-rows.d.ts +42 -0
  153. package/dist/connection/workspace-dashboard/index.d.ts +1 -0
  154. package/dist/connection/workspace-list/ConnectedWorkspaceList.d.ts +37 -0
  155. package/dist/connection/workspace-list/WorkspaceCardsView.d.ts +15 -0
  156. package/dist/connection/workspace-list/WorkspaceFilterMenu.d.ts +4 -0
  157. package/dist/connection/workspace-list/WorkspaceTableView.d.ts +13 -0
  158. package/dist/connection/workspace-list/index.d.ts +5 -0
  159. package/dist/connection/workspace-list/projectBilling.d.ts +21 -0
  160. package/dist/connection/workspace-list/useConnectedWorkspaceList.d.ts +251 -0
  161. package/dist/connection/workspace-list/workspaceTable.d.ts +58 -0
  162. package/dist/connection/workspace-settings/ConnectedWorkspaceMembers.d.ts +26 -0
  163. package/dist/connection/workspace-settings/ConnectedWorkspaceSettings.d.ts +7 -9
  164. package/dist/connection/workspace-settings/index.d.ts +2 -1
  165. package/dist/connection/workspace-settings/useConnectedWorkspaceSettings.d.ts +0 -1
  166. package/dist/facts/index.cjs +3 -3
  167. package/dist/facts/index.js +2 -2
  168. package/dist/files/index.cjs +169 -169
  169. package/dist/files/index.js +3 -3
  170. package/dist/home/index.cjs +119 -459
  171. package/dist/home/index.cjs.map +1 -1
  172. package/dist/home/index.js +13 -419
  173. package/dist/home/index.js.map +1 -1
  174. package/dist/index.cjs +510 -510
  175. package/dist/index.js +18 -18
  176. package/dist/provider/BlocksProvider.d.ts +9 -1
  177. package/dist/retrieval/index.cjs +4 -4
  178. package/dist/retrieval/index.js +2 -2
  179. package/dist/settings/index.cjs +169 -165
  180. package/dist/settings/index.d.ts +1 -0
  181. package/dist/settings/index.js +2 -2
  182. package/dist/settings/tri-state-filters.d.ts +13 -0
  183. package/dist/shell/index.cjs +44 -44
  184. package/dist/shell/index.js +3 -3
  185. package/dist/site/index.cjs +5 -5
  186. package/dist/site/index.js +1 -1
  187. package/dist/studio/index.cjs +14 -14
  188. package/dist/studio/index.js +6 -6
  189. package/dist/workflow-canvas/index.cjs +27 -27
  190. package/dist/workflow-canvas/index.js +9 -9
  191. package/dist/workspaces/index.cjs +110 -369
  192. package/dist/workspaces/index.cjs.map +1 -1
  193. package/dist/workspaces/index.d.ts +2 -0
  194. package/dist/workspaces/index.js +12 -350
  195. package/dist/workspaces/index.js.map +1 -1
  196. package/dist/workspaces/workspace-groups.d.ts +90 -0
  197. package/dist/workspaces/workspace-roles.d.ts +11 -0
  198. package/node_modules/@arbidocs/coedit/package.json +1 -1
  199. package/package.json +5 -5
  200. package/dist/ConnectedStreamedWordArtifact-QW74LKHN.cjs.map +0 -1
  201. package/dist/chunk-3PCBYOIZ.js.map +0 -1
  202. package/dist/chunk-4236BRZK.js.map +0 -1
  203. package/dist/chunk-CU2O32Z4.cjs.map +0 -1
  204. package/dist/chunk-EV7W64B6.js +0 -134
  205. package/dist/chunk-EV7W64B6.js.map +0 -1
  206. package/dist/chunk-GFNELPDP.cjs.map +0 -1
  207. package/dist/chunk-GFOEWPAP.cjs.map +0 -1
  208. package/dist/chunk-GRGS5M6O.cjs.map +0 -1
  209. package/dist/chunk-KPZZ5FHE.cjs.map +0 -1
  210. package/dist/chunk-KSHKTOY2.js.map +0 -1
  211. package/dist/chunk-LGBAZD37.js.map +0 -1
  212. package/dist/chunk-R6VCPDPF.js.map +0 -1
  213. package/dist/chunk-RQ2Y7USX.cjs.map +0 -1
  214. package/dist/chunk-RXK3XP62.cjs +0 -144
  215. package/dist/chunk-RXK3XP62.cjs.map +0 -1
  216. package/dist/chunk-SMN32BQ3.cjs.map +0 -1
  217. package/dist/chunk-TBEVGWY3.js.map +0 -1
  218. package/dist/chunk-U6JQ4KMX.cjs.map +0 -1
  219. package/dist/chunk-US3S4DCB.js.map +0 -1
  220. package/dist/chunk-XZIYRKLW.cjs.map +0 -1
  221. package/dist/chunk-ZLEYLCE4.js.map +0 -1
@@ -1,62 +1,22 @@
1
1
  "use client";
2
- export { CollapsibleSection, DEFAULT_COLLAPSIBLE_SECTION_LABELS, DEFAULT_KEY_VALUE_ROW_LABELS, KeyValueContainer, KeyValueRow } from '../chunk-LGBAZD37.js';
3
- import { Callout } from '../chunk-UJE32SST.js';
4
- import { SectionHeader, EmptyStrip, QuickActionDialogHeader } from '../chunk-IXWJGOM2.js';
5
- export { AddFilesFirst, DEFAULT_ADD_FILES_FIRST_LABELS, DEFAULT_SCOPE_PICKER_LABELS, EmptyStrip, FoldSection, QuickActionDialogHeader, ScopePicker, SectionHeader, SectionLabel, StartTiles, useScopeSelection } from '../chunk-IXWJGOM2.js';
6
- import { ActionLink } from '../chunk-YKQ2DPIP.js';
2
+ export { DEFAULT_KEY_VALUE_ROW_LABELS, KeyValueContainer, KeyValueRow } from '../chunk-XRL4R2TT.js';
3
+ export { CreateTile, DASHBOARD_QUIET_ACTION_CLASS, DashboardAction, DashboardBand, DashboardColumns, DashboardRoot, FactMark, FactsStrip, HomeCenteredColumn, HomeCenteredScroll, HomeFrame, HomeLoadError, HomeMain, RecentList } from '../chunk-ISHFVKVU.js';
4
+ export { BulkDeleteButton, EmptyCellDash, GridCellRow, GridWithSelectionBar, PlainBandTitle, ProjectBandTitle, ProjectBreakdown, ProjectReadout } from '../chunk-RQKWYKZY.js';
5
+ export { CollapsibleSection, DEFAULT_COLLAPSIBLE_SECTION_LABELS } from '../chunk-5TDGVOR5.js';
6
+ import '../chunk-UJE32SST.js';
7
+ import { QuickActionDialogHeader } from '../chunk-BQ77KSXU.js';
8
+ export { AddFilesFirst, DEFAULT_ADD_FILES_FIRST_LABELS, DEFAULT_SCOPE_PICKER_LABELS, EmptyStrip, FoldSection, QuickActionDialogHeader, ScopePicker, SectionHeader, SectionLabel, StartTiles, useScopeSelection } from '../chunk-BQ77KSXU.js';
9
+ import '../chunk-VF5EUAIV.js';
7
10
  import '../chunk-NPLYHR2E.js';
8
11
  import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
9
- import '../chunk-TBEVGWY3.js';
12
+ import '../chunk-F57LNUSZ.js';
10
13
  import '../chunk-TX2ZICS7.js';
11
14
  import '../chunk-OXF2IFXG.js';
12
15
  import '../chunk-VUNV25KB.js';
13
- import { Plus, PartyPopper, X, Trash2 } from 'lucide-react';
14
- import { cn, Dialog, DialogContent, Button, Tooltip, TooltipTrigger, TooltipContent } from '@arbidocs/react/ui';
15
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
16
+ import { cn, Dialog, DialogContent } from '@arbidocs/react/ui';
17
+ import { jsx, jsxs } from 'react/jsx-runtime';
18
+ import { PartyPopper, X } from 'lucide-react';
16
19
 
17
- function CreateTile({
18
- label,
19
- ariaLabel,
20
- onSelect,
21
- help,
22
- disabledReason,
23
- className,
24
- testId
25
- }) {
26
- const disabled = !!disabledReason;
27
- const select = disabled ? void 0 : onSelect;
28
- return /* @__PURE__ */ jsxs(
29
- "div",
30
- {
31
- className: cn(
32
- "flex min-h-40 w-full flex-col items-center justify-center gap-1 rounded-lg p-4 text-muted-foreground border border-border bg-card shadow-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
33
- disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer hover:border-ring/50 hover:bg-accent/40 hover:text-foreground",
34
- className
35
- ),
36
- onClick: select,
37
- onKeyDown: (event) => {
38
- if (event.key === "Enter" || event.key === " ") {
39
- event.preventDefault();
40
- select?.();
41
- }
42
- },
43
- role: "button",
44
- tabIndex: 0,
45
- "aria-disabled": disabled || void 0,
46
- title: disabledReason,
47
- "aria-label": ariaLabel ?? label,
48
- "data-slot": "create-tile",
49
- "data-testid": testId,
50
- children: [
51
- /* @__PURE__ */ jsxs("span", { className: "inline-flex flex-col items-center gap-2 text-sm font-medium", children: [
52
- /* @__PURE__ */ jsx(Plus, { className: "size-6", "aria-hidden": "true" }),
53
- label
54
- ] }),
55
- (disabledReason ?? help) && /* @__PURE__ */ jsx("p", { className: "max-w-64 px-4 text-center text-xs leading-snug text-muted-foreground", children: disabledReason ?? help })
56
- ]
57
- }
58
- );
59
- }
60
20
  function Greeting({
61
21
  eyebrow,
62
22
  title,
@@ -92,150 +52,6 @@ function Greeting({
92
52
  }
93
53
  ) });
94
54
  }
95
- function RecentList({
96
- icon,
97
- title,
98
- count,
99
- onOpen,
100
- openHref,
101
- action,
102
- rows,
103
- caption,
104
- empty,
105
- className,
106
- testId
107
- }) {
108
- return /* @__PURE__ */ jsxs(
109
- "section",
110
- {
111
- className: cn("flex min-w-0 flex-col gap-1", className),
112
- "data-slot": "recent-list",
113
- "data-testid": testId,
114
- children: [
115
- /* @__PURE__ */ jsx(
116
- SectionHeader,
117
- {
118
- icon,
119
- title,
120
- count,
121
- onOpen,
122
- openHref,
123
- openTestId: testId && `${testId}-open`,
124
- action
125
- }
126
- ),
127
- rows.length === 0 ? empty?.onSelect ? /* @__PURE__ */ jsx(
128
- EmptyStrip,
129
- {
130
- icon: empty.icon,
131
- label: empty.label,
132
- description: empty.description,
133
- onSelect: empty.onSelect,
134
- testId: testId && `${testId}-empty-action`
135
- }
136
- ) : /* @__PURE__ */ jsx("p", { className: "px-1 py-3 text-sm text-muted-foreground", children: empty?.description ?? empty?.label }) : /* @__PURE__ */ jsxs(Fragment, { children: [
137
- caption && /* @__PURE__ */ jsx("p", { className: "sr-only", "data-testid": testId && `${testId}-caption`, children: caption }),
138
- /* @__PURE__ */ jsx("ul", { children: rows.map((row) => /* @__PURE__ */ jsxs(
139
- "li",
140
- {
141
- className: "relative flex items-center rounded-md transition-colors [&:hover]:bg-muted has-[:focus-visible]:bg-muted",
142
- "data-slot": "recent-row",
143
- children: [
144
- /* @__PURE__ */ jsxs(
145
- ActionLink,
146
- {
147
- href: row.href,
148
- onSelect: row.onSelect,
149
- title: row.title,
150
- className: cn(
151
- "flex min-w-0 flex-1 items-start gap-3 rounded-md px-3 py-2 text-left focus-visible:outline-none",
152
- row.onSelect && "cursor-pointer",
153
- "pointer-coarse:min-h-11"
154
- ),
155
- "data-testid": testId && `${testId}-row`,
156
- children: [
157
- row.leading,
158
- /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
159
- /* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-2", children: [
160
- /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-sm font-medium text-foreground", children: row.title }),
161
- !row.trailing && row.time && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs tabular-nums text-muted-foreground", children: row.time })
162
- ] }),
163
- row.subtitle && /* @__PURE__ */ jsx("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: row.subtitle })
164
- ] })
165
- ]
166
- }
167
- ),
168
- row.trailing ? /* @__PURE__ */ jsx("div", { className: "shrink-0 pr-3", children: row.trailing }) : null
169
- ]
170
- },
171
- row.id
172
- )) })
173
- ] })
174
- ]
175
- }
176
- );
177
- }
178
- function FactsStrip({
179
- icon,
180
- title,
181
- count,
182
- onOpen,
183
- action,
184
- groups,
185
- empty,
186
- className,
187
- testId
188
- }) {
189
- const filled = groups.filter((g) => g.rows.length > 0);
190
- return /* @__PURE__ */ jsxs(
191
- "section",
192
- {
193
- className: cn("flex min-w-0 flex-col gap-1", className),
194
- "data-slot": "facts-strip",
195
- "data-testid": testId,
196
- children: [
197
- /* @__PURE__ */ jsx(
198
- SectionHeader,
199
- {
200
- icon,
201
- title,
202
- count,
203
- onOpen,
204
- openTestId: testId && `${testId}-open`,
205
- action
206
- }
207
- ),
208
- filled.length === 0 ? empty && /* @__PURE__ */ jsx(
209
- EmptyStrip,
210
- {
211
- icon: empty.icon,
212
- label: empty.label,
213
- description: empty.description,
214
- onSelect: empty.onSelect,
215
- testId: empty.testId
216
- }
217
- ) : filled.map((group) => /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
218
- /* @__PURE__ */ jsx("p", { className: "px-3 pb-1 pt-1 text-right text-xs text-muted-foreground", children: group.caption }),
219
- /* @__PURE__ */ jsx("ul", { children: group.rows.map((row) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
220
- "button",
221
- {
222
- type: "button",
223
- onClick: row.onSelect,
224
- title: row.title,
225
- className: "flex w-full min-w-0 items-center gap-3 rounded-md px-3 py-2 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&:hover]:bg-muted pointer-coarse:min-h-11",
226
- "data-testid": group.rowTestId ?? (testId && `${testId}-row`),
227
- children: [
228
- row.leading,
229
- /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-sm text-foreground", children: row.title }),
230
- row.time && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs tabular-nums text-muted-foreground", children: row.time })
231
- ]
232
- }
233
- ) }, row.id)) })
234
- ] }, group.caption))
235
- ]
236
- }
237
- );
238
- }
239
55
  var DEFAULT_GETTING_STARTED_STRIP_LABELS = {
240
56
  allSet: (firstName) => `You\u2019re all set${firstName ? `, ${firstName}` : ""}!`,
241
57
  finished: (stepCount) => `You\u2019ve finished the ${stepCount} getting-started steps \u2014 explore away.`,
@@ -551,229 +367,7 @@ function CardHeaderBar({
551
367
  }
552
368
  );
553
369
  }
554
- var DASHBOARD_QUIET_ACTION_CLASS = "h-8 gap-1.5 px-2 text-sm bg-transparent text-muted-foreground hover:bg-muted hover:text-foreground pointer-coarse:h-11";
555
- function DashboardRoot({
556
- testId,
557
- className,
558
- children
559
- }) {
560
- return /* @__PURE__ */ jsx(
561
- "div",
562
- {
563
- "data-slot": "dashboard",
564
- "data-testid": testId,
565
- className: cn("flex flex-col gap-6", className),
566
- children
567
- }
568
- );
569
- }
570
- function DashboardBand({
571
- kind,
572
- children
573
- }) {
574
- return /* @__PURE__ */ jsx(
575
- "div",
576
- {
577
- "data-slot": "dashboard-band",
578
- "data-kind": kind,
579
- className: kind === "start" ? "mt-2" : "mt-4 flex flex-col gap-3",
580
- children
581
- }
582
- );
583
- }
584
- function DashboardColumns({ children }) {
585
- return /* @__PURE__ */ jsx("div", { "data-slot": "dashboard-columns", className: "grid gap-8 @2xl:grid-cols-2", children });
586
- }
587
- function FactMark() {
588
- return /* @__PURE__ */ jsx(
589
- "span",
590
- {
591
- "data-slot": "fact-mark",
592
- className: "mx-1 size-1.5 shrink-0 rounded-full bg-muted-foreground/40",
593
- "aria-hidden": true
594
- }
595
- );
596
- }
597
- function DashboardAction({ emphasis, icon, label, onClick, testId }) {
598
- return /* @__PURE__ */ jsxs(
599
- Button,
600
- {
601
- variant: emphasis === "primary" ? "default" : "ghost",
602
- size: "sm",
603
- className: emphasis === "primary" ? "h-8 gap-1.5 px-3 text-sm pointer-coarse:h-11" : DASHBOARD_QUIET_ACTION_CLASS,
604
- onClick,
605
- "data-testid": testId,
606
- children: [
607
- icon,
608
- label
609
- ]
610
- }
611
- );
612
- }
613
- function PlainBandTitle({
614
- title,
615
- count,
616
- hint
617
- }) {
618
- return /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", "data-slot": "band-title", children: [
619
- /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold text-foreground", children: title }),
620
- /* @__PURE__ */ jsx("span", { className: "text-sm tabular-nums text-muted-foreground", children: count }),
621
- hint && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: hint })
622
- ] });
623
- }
624
- function ProjectBandTitle({
625
- name,
626
- count,
627
- nameTestId,
628
- breakdown,
629
- readout
630
- }) {
631
- return /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1", "data-slot": "band-title", children: [
632
- /* @__PURE__ */ jsxs(Tooltip, { children: [
633
- /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold text-foreground", "data-testid": nameTestId, children: name }) }),
634
- breakdown && /* @__PURE__ */ jsx(TooltipContent, { side: "top", children: breakdown })
635
- ] }),
636
- /* @__PURE__ */ jsx("span", { className: "text-sm tabular-nums text-muted-foreground", children: count }),
637
- readout
638
- ] });
639
- }
640
- function ProjectBreakdown({ name, badge, meters, dailyCap }) {
641
- return /* @__PURE__ */ jsxs("div", { className: "w-64 space-y-2.5", "data-slot": "project-breakdown", children: [
642
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
643
- /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground", children: name }),
644
- badge
645
- ] }),
646
- meters && /* @__PURE__ */ jsxs("div", { className: "space-y-2.5 border-t border-border/50 pt-2.5", children: [
647
- meters,
648
- dailyCap && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-6 text-xs", children: [
649
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: dailyCap.label }),
650
- /* @__PURE__ */ jsx("span", { className: "font-medium tabular-nums text-foreground", children: dailyCap.value })
651
- ] })
652
- ] })
653
- ] });
654
- }
655
- function ProjectReadout({ plan, usageLabel = "Usage:", usage }) {
656
- return /* @__PURE__ */ jsxs(Fragment, { children: [
657
- plan && /* @__PURE__ */ jsx(
658
- "span",
659
- {
660
- className: "flex items-center whitespace-nowrap",
661
- "data-testid": plan.testId,
662
- "data-slot": "project-plan",
663
- children: plan.badge
664
- }
665
- ),
666
- /* @__PURE__ */ jsxs(
667
- "span",
668
- {
669
- className: "flex items-center gap-1.5 text-sm text-muted-foreground",
670
- "data-testid": usage.testId,
671
- "data-slot": "project-usage",
672
- children: [
673
- /* @__PURE__ */ jsx("span", { children: usageLabel }),
674
- usage.node
675
- ]
676
- }
677
- )
678
- ] });
679
- }
680
- function GridWithSelectionBar({
681
- className,
682
- grid,
683
- bar
684
- }) {
685
- return /* @__PURE__ */ jsxs(
686
- "div",
687
- {
688
- className: cn("flex h-full min-h-0 flex-col", className),
689
- "data-slot": "grid-with-selection-bar",
690
- children: [
691
- /* @__PURE__ */ jsx("div", { className: "relative min-h-0 flex-1", children: grid }),
692
- bar
693
- ]
694
- }
695
- );
696
- }
697
- function BulkDeleteButton({
698
- count,
699
- isCompact,
700
- disabled,
701
- onClick,
702
- label = "Delete"
703
- }) {
704
- return /* @__PURE__ */ jsxs(
705
- Button,
706
- {
707
- variant: "outline",
708
- size: "sm",
709
- onClick,
710
- disabled,
711
- title: label,
712
- className: "border-destructive/30 text-destructive hover:bg-destructive hover:text-destructive-foreground pointer-coarse:h-11",
713
- children: [
714
- /* @__PURE__ */ jsx(Trash2, { className: "size-4" }),
715
- isCompact ? /* @__PURE__ */ jsx("span", { className: "sr-only", children: label }) : /* @__PURE__ */ jsxs("span", { className: "ml-1", children: [
716
- label,
717
- " ",
718
- count > 0 ? `(${count})` : ""
719
- ] })
720
- ]
721
- }
722
- );
723
- }
724
- function GridCellRow({ testId, children }) {
725
- return /* @__PURE__ */ jsx("div", { "data-slot": "grid-cell-row", "data-testid": testId, className: "flex items-center", children });
726
- }
727
- function EmptyCellDash() {
728
- return /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", "aria-label": "None", children: "\u2014" });
729
- }
730
- function HomeFrame({
731
- testId = "home-page",
732
- children
733
- }) {
734
- return /* @__PURE__ */ jsx("div", { "data-slot": "home-frame", "data-testid": testId, className: "flex h-full flex-col", children });
735
- }
736
- function HomeMain({ children }) {
737
- return /* @__PURE__ */ jsx(
738
- "main",
739
- {
740
- "data-slot": "home-main",
741
- className: "min-h-0 min-w-sidebar flex-1 overflow-hidden bg-background",
742
- children
743
- }
744
- );
745
- }
746
- function HomeCenteredScroll({ children }) {
747
- return /* @__PURE__ */ jsx("div", { "data-slot": "home-scroll", className: "h-full overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-6xl", children }) });
748
- }
749
- function HomeCenteredColumn({
750
- className,
751
- children
752
- }) {
753
- return /* @__PURE__ */ jsx(
754
- "div",
755
- {
756
- "data-slot": "home-column",
757
- className: cn("mx-auto h-full max-w-6xl px-4 pb-4 sm:px-8", className),
758
- children
759
- }
760
- );
761
- }
762
- function HomeLoadError({
763
- title,
764
- body,
765
- testId
766
- }) {
767
- return /* @__PURE__ */ jsx(
768
- "div",
769
- {
770
- "data-slot": "home-load-error",
771
- className: "flex h-full flex-col items-center justify-center p-8",
772
- children: /* @__PURE__ */ jsx("div", { className: "w-full max-w-md", children: /* @__PURE__ */ jsx(Callout, { variant: "danger", title, body, testId }) })
773
- }
774
- );
775
- }
776
370
 
777
- export { ActionMenuDialog, BulkDeleteButton, CardHeaderBar, CreateTile, DASHBOARD_QUIET_ACTION_CLASS, DEFAULT_GETTING_STARTED_STRIP_LABELS, DashboardAction, DashboardBand, DashboardColumns, DashboardRoot, EmptyCellDash, FactMark, FactsStrip, GettingStartedStrip, Greeting, GridCellRow, GridWithSelectionBar, HomeCenteredColumn, HomeCenteredScroll, HomeFrame, HomeLoadError, HomeMain, PlainBandTitle, ProjectBandTitle, ProjectBreakdown, ProjectReadout, RecentList };
371
+ export { ActionMenuDialog, CardHeaderBar, DEFAULT_GETTING_STARTED_STRIP_LABELS, GettingStartedStrip, Greeting };
778
372
  //# sourceMappingURL=index.js.map
779
373
  //# sourceMappingURL=index.js.map