@arbidocs/blocks 0.5.153 → 0.5.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.
- package/dist/{ConnectedNativeDocxComparison-244UIHSM.cjs → ConnectedNativeDocxComparison-2DAQX5GX.cjs} +9 -9
- package/dist/{ConnectedStreamedWordArtifact-V6BRZMEQ.cjs.map → ConnectedNativeDocxComparison-2DAQX5GX.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-JUXIXKYN.cjs → ConnectedPresentation-J42JPUVR.cjs} +13 -13
- package/dist/{ConnectedPresentation-JUXIXKYN.cjs.map → ConnectedPresentation-J42JPUVR.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-JA3VB66W.cjs → ConnectedSlidesTab-BYS7HFNK.cjs} +12 -12
- package/dist/{ConnectedSlidesTab-JA3VB66W.cjs.map → ConnectedSlidesTab-BYS7HFNK.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-V6BRZMEQ.cjs → ConnectedStreamedWordArtifact-LTYB62VM.cjs} +9 -9
- package/dist/{ConnectedNativeDocxComparison-244UIHSM.cjs.map → ConnectedStreamedWordArtifact-LTYB62VM.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-5W2QQWKA.cjs → DocumentReviewCard-ILDLYZ5A.cjs} +15 -13
- package/dist/DocumentReviewCard-ILDLYZ5A.cjs.map +1 -0
- package/dist/{FilesViewerDialog-63QUTG4L.cjs → FilesViewerDialog-YLD5YFP2.cjs} +25 -22
- package/dist/FilesViewerDialog-YLD5YFP2.cjs.map +1 -0
- package/dist/{RechartsRenderer-NU6WUZJS.cjs → RechartsRenderer-EPVL5QZA.cjs} +2 -2
- package/dist/{RechartsRenderer-NU6WUZJS.cjs.map → RechartsRenderer-EPVL5QZA.cjs.map} +1 -1
- package/dist/{SpotlightStrip-HXQFPAAL.cjs → SpotlightStrip-JE6MXUBT.cjs} +6 -6
- package/dist/{SpotlightStrip-HXQFPAAL.cjs.map → SpotlightStrip-JE6MXUBT.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-2QP2HJLK.cjs → WorkspaceTableView-V3N64LJG.cjs} +13 -11
- package/dist/WorkspaceTableView-V3N64LJG.cjs.map +1 -0
- package/dist/agents/index.cjs +245 -244
- package/dist/agents/workflows/WorkflowLauncher.d.ts +3 -1
- package/dist/agents/workflows/WorkflowLauncher.js +2 -0
- package/dist/agents/workflows/WorkflowLauncher.js.map +2 -2
- package/dist/{ai-ODGRIL6Y.cjs → ai-QFY4LYQZ.cjs} +16 -16
- package/dist/ai-QFY4LYQZ.cjs.map +1 -0
- package/dist/calls/index.cjs +25 -24
- package/dist/calls/index.cjs.map +1 -1
- package/dist/{chunk-MAKCWF45.cjs → chunk-6GKCGCMT.cjs} +4 -4
- package/dist/{chunk-MAKCWF45.cjs.map → chunk-6GKCGCMT.cjs.map} +1 -1
- package/dist/{chunk-LYKT336H.cjs → chunk-6I5HHWCD.cjs} +5 -5
- package/dist/{chunk-LYKT336H.cjs.map → chunk-6I5HHWCD.cjs.map} +1 -1
- package/dist/{chunk-KWJW5TMH.cjs → chunk-6OPDKROP.cjs} +4 -41
- package/dist/chunk-6OPDKROP.cjs.map +1 -0
- package/dist/{chunk-QWOPEBH2.cjs → chunk-6P4U63HO.cjs} +4 -4
- package/dist/{chunk-QWOPEBH2.cjs.map → chunk-6P4U63HO.cjs.map} +1 -1
- package/dist/{chunk-QKCFV36K.cjs → chunk-7UPEFZCV.cjs} +9 -9
- package/dist/{chunk-QKCFV36K.cjs.map → chunk-7UPEFZCV.cjs.map} +1 -1
- package/dist/{chunk-DUNXLT63.cjs → chunk-AHUEBRLX.cjs} +2 -238
- package/dist/chunk-AHUEBRLX.cjs.map +1 -0
- package/dist/{chunk-B5BGVPQ5.cjs → chunk-AURL2KT5.cjs} +4 -4
- package/dist/{chunk-B5BGVPQ5.cjs.map → chunk-AURL2KT5.cjs.map} +1 -1
- package/dist/chunk-BH322H5B.cjs +594 -0
- package/dist/chunk-BH322H5B.cjs.map +1 -0
- package/dist/{chunk-ZCQXQIBA.cjs → chunk-BNDIMTWJ.cjs} +28 -28
- package/dist/{chunk-ZCQXQIBA.cjs.map → chunk-BNDIMTWJ.cjs.map} +1 -1
- package/dist/{chunk-AG6KAGAX.cjs → chunk-BTQ7IAOH.cjs} +4 -4
- package/dist/{chunk-AG6KAGAX.cjs.map → chunk-BTQ7IAOH.cjs.map} +1 -1
- package/dist/{chunk-FCT62ZPE.cjs → chunk-BZVK7JW5.cjs} +5 -5
- package/dist/{chunk-FCT62ZPE.cjs.map → chunk-BZVK7JW5.cjs.map} +1 -1
- package/dist/{chunk-WUM76MJU.cjs → chunk-CNBYM5Q7.cjs} +7 -7
- package/dist/{chunk-WUM76MJU.cjs.map → chunk-CNBYM5Q7.cjs.map} +1 -1
- package/dist/{chunk-HNLNRAEU.cjs → chunk-DSLMJ24E.cjs} +2 -261
- package/dist/chunk-DSLMJ24E.cjs.map +1 -0
- package/dist/chunk-DWRUGOTQ.cjs +35 -0
- package/dist/chunk-DWRUGOTQ.cjs.map +1 -0
- package/dist/{chunk-GAA222SK.cjs → chunk-EG3DPKXM.cjs} +5 -5
- package/dist/{chunk-GAA222SK.cjs.map → chunk-EG3DPKXM.cjs.map} +1 -1
- package/dist/chunk-FEAHTNTY.cjs +1447 -0
- package/dist/chunk-FEAHTNTY.cjs.map +1 -0
- package/dist/{chunk-VSDD5TH5.cjs → chunk-G3MRW4WB.cjs} +10 -8
- package/dist/chunk-G3MRW4WB.cjs.map +1 -0
- package/dist/{chunk-TFRCNIUY.cjs → chunk-GF6AYAMI.cjs} +9 -9
- package/dist/{chunk-TFRCNIUY.cjs.map → chunk-GF6AYAMI.cjs.map} +1 -1
- package/dist/{chunk-4ZR4O5SP.cjs → chunk-GK3U3FWY.cjs} +60 -28
- package/dist/chunk-GK3U3FWY.cjs.map +1 -0
- package/dist/{chunk-3CJTO6RV.cjs → chunk-GXRD5OSU.cjs} +8 -8
- package/dist/{chunk-3CJTO6RV.cjs.map → chunk-GXRD5OSU.cjs.map} +1 -1
- package/dist/{chunk-JLNKD56X.cjs → chunk-GYI4UXX6.cjs} +4 -4
- package/dist/{chunk-JLNKD56X.cjs.map → chunk-GYI4UXX6.cjs.map} +1 -1
- package/dist/{chunk-4I2PCP7O.cjs → chunk-I3XTTTPZ.cjs} +41 -40
- package/dist/chunk-I3XTTTPZ.cjs.map +1 -0
- package/dist/chunk-JWCVA4LC.cjs +248 -0
- package/dist/chunk-JWCVA4LC.cjs.map +1 -0
- package/dist/{chunk-UM3EWCDE.cjs → chunk-K5F2VNCX.cjs} +35 -10
- package/dist/chunk-K5F2VNCX.cjs.map +1 -0
- package/dist/chunk-KD66CBYO.cjs +44 -0
- package/dist/chunk-KD66CBYO.cjs.map +1 -0
- package/dist/chunk-LLVE5TST.cjs +318 -0
- package/dist/chunk-LLVE5TST.cjs.map +1 -0
- package/dist/{chunk-JCFXS336.cjs → chunk-NRGLF4J4.cjs} +2 -466
- package/dist/chunk-NRGLF4J4.cjs.map +1 -0
- package/dist/{chunk-CVVQHFLR.cjs → chunk-O7U6KL2W.cjs} +72 -650
- package/dist/chunk-O7U6KL2W.cjs.map +1 -0
- package/dist/{chunk-Z3N32LL4.cjs → chunk-OOANNOH4.cjs} +35 -33
- package/dist/chunk-OOANNOH4.cjs.map +1 -0
- package/dist/chunk-SGYURQ23.cjs +271 -0
- package/dist/chunk-SGYURQ23.cjs.map +1 -0
- package/dist/{chunk-A5SKK3CU.cjs → chunk-SLCH5JRI.cjs} +64 -35
- package/dist/chunk-SLCH5JRI.cjs.map +1 -0
- package/dist/chunk-T26UYA6Q.cjs +64 -0
- package/dist/chunk-T26UYA6Q.cjs.map +1 -0
- package/dist/chunk-T3Y3LZ4Y.cjs +477 -0
- package/dist/chunk-T3Y3LZ4Y.cjs.map +1 -0
- package/dist/{chunk-4XNP27N4.cjs → chunk-T7BUGVSG.cjs} +36 -36
- package/dist/{chunk-4XNP27N4.cjs.map → chunk-T7BUGVSG.cjs.map} +1 -1
- package/dist/{chunk-SMO4SPPB.cjs → chunk-TD5V5BZ3.cjs} +5 -5
- package/dist/{chunk-SMO4SPPB.cjs.map → chunk-TD5V5BZ3.cjs.map} +1 -1
- package/dist/{chunk-IXTDOPSB.cjs → chunk-TSAZWUPZ.cjs} +4 -4
- package/dist/{chunk-IXTDOPSB.cjs.map → chunk-TSAZWUPZ.cjs.map} +1 -1
- package/dist/{chunk-5DGNJ6VJ.cjs → chunk-UD3LPATQ.cjs} +6 -6
- package/dist/{chunk-5DGNJ6VJ.cjs.map → chunk-UD3LPATQ.cjs.map} +1 -1
- package/dist/{chunk-OF7KMG6R.cjs → chunk-UJHQ4DA4.cjs} +5 -5
- package/dist/{chunk-OF7KMG6R.cjs.map → chunk-UJHQ4DA4.cjs.map} +1 -1
- package/dist/{chunk-NUFZFWHZ.cjs → chunk-W5QSKW7T.cjs} +3 -29
- package/dist/chunk-W5QSKW7T.cjs.map +1 -0
- package/dist/{chunk-NNZFZYTI.cjs → chunk-WOVNXJK5.cjs} +4 -54
- package/dist/chunk-WOVNXJK5.cjs.map +1 -0
- package/dist/{chunk-E6BM5ENI.cjs → chunk-WRTEKOQP.cjs} +2 -309
- package/dist/chunk-WRTEKOQP.cjs.map +1 -0
- package/dist/{chunk-KRQCUVH7.cjs → chunk-YSAUOJA7.cjs} +9 -3
- package/dist/chunk-YSAUOJA7.cjs.map +1 -0
- package/dist/{chunk-6ZZWQ3OL.cjs → chunk-YXY52OGU.cjs} +4 -4
- package/dist/{chunk-6ZZWQ3OL.cjs.map → chunk-YXY52OGU.cjs.map} +1 -1
- package/dist/{chunk-D5DOK2AE.cjs → chunk-ZW2ZFC3Q.cjs} +58 -58
- package/dist/{chunk-D5DOK2AE.cjs.map → chunk-ZW2ZFC3Q.cjs.map} +1 -1
- package/dist/components/gestures/usePointerGesture.d.ts +13 -1
- package/dist/components/gestures/usePointerGesture.js +33 -8
- package/dist/components/gestures/usePointerGesture.js.map +2 -2
- package/dist/connect/docx.cjs +12 -12
- package/dist/connect/index.cjs +1281 -2346
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -0
- package/dist/connect/index.js +1 -0
- package/dist/connect/index.js.map +2 -2
- package/dist/connect/viewer.cjs +15 -12
- package/dist/connection/dashboards/DashboardPanel.d.ts +2 -0
- package/dist/connection/dashboards/DashboardPanel.js +4 -0
- package/dist/connection/dashboards/DashboardPanel.js.map +2 -2
- package/dist/connection/dashboards/index.d.ts +1 -1
- package/dist/connection/dashboards/index.js +2 -0
- package/dist/connection/dashboards/index.js.map +2 -2
- package/dist/connection/dashboards/templates.d.ts +10 -5
- package/dist/connection/dashboards/templates.js +7 -1
- package/dist/connection/dashboards/templates.js.map +2 -2
- package/dist/connection/live-blocks/ConnectedAgendaBlock.d.ts +13 -0
- package/dist/connection/live-blocks/ConnectedAgendaBlock.js +19 -0
- package/dist/connection/live-blocks/ConnectedAgendaBlock.js.map +7 -0
- package/dist/connection/live-blocks/ConnectedCarouselBlock.d.ts +7 -0
- package/dist/connection/live-blocks/ConnectedCarouselBlock.js +84 -0
- package/dist/connection/live-blocks/ConnectedCarouselBlock.js.map +7 -0
- package/dist/connection/live-blocks/ConnectedListBlock.d.ts +29 -0
- package/dist/connection/live-blocks/ConnectedListBlock.js +193 -0
- package/dist/connection/live-blocks/ConnectedListBlock.js.map +7 -0
- package/dist/connection/live-blocks/ConnectedStartBlock.d.ts +7 -0
- package/dist/connection/live-blocks/ConnectedStartBlock.js +16 -0
- package/dist/connection/live-blocks/ConnectedStartBlock.js.map +7 -0
- package/dist/connection/live-blocks/DashboardAgenda.d.ts +10 -0
- package/dist/connection/{workspace-dashboard → live-blocks}/DashboardAgenda.js +10 -2
- package/dist/connection/live-blocks/DashboardAgenda.js.map +7 -0
- package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.js.map +1 -1
- package/dist/connection/live-blocks/LiveBlockRoot.d.ts +11 -0
- package/dist/connection/live-blocks/LiveBlockRoot.js +22 -0
- package/dist/connection/live-blocks/LiveBlockRoot.js.map +7 -0
- package/dist/connection/live-blocks/index.d.ts +5 -0
- package/dist/connection/live-blocks/index.js +20 -0
- package/dist/connection/live-blocks/index.js.map +7 -0
- package/dist/connection/{workspace-dashboard/dashboard-rows.d.ts → live-blocks/list-rows.d.ts} +22 -4
- package/dist/connection/{workspace-dashboard/dashboard-rows.js → live-blocks/list-rows.js} +13 -8
- package/dist/connection/live-blocks/list-rows.js.map +7 -0
- package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.js.map +1 -1
- package/dist/connection/live-blocks/workspace-dashboard-blocks.d.ts +23 -0
- package/dist/connection/live-blocks/workspace-dashboard-blocks.js +58 -0
- package/dist/connection/live-blocks/workspace-dashboard-blocks.js.map +7 -0
- package/dist/connection/pages/BlockEditor.d.ts +3 -1
- package/dist/connection/pages/BlockEditor.js +18 -1
- package/dist/connection/pages/BlockEditor.js.map +2 -2
- package/dist/connection/pages/ConnectedPagesPage.d.ts +5 -4
- package/dist/connection/pages/ConnectedPagesPage.js +122 -46
- package/dist/connection/pages/ConnectedPagesPage.js.map +2 -2
- package/dist/connection/pages/EditablePageGrid.d.ts +25 -15
- package/dist/connection/pages/EditablePageGrid.js +145 -50
- package/dist/connection/pages/EditablePageGrid.js.map +2 -2
- package/dist/connection/pages/LiveBlockEditor.d.ts +30 -0
- package/dist/connection/pages/LiveBlockEditor.js +175 -0
- package/dist/connection/pages/LiveBlockEditor.js.map +7 -0
- package/dist/connection/pages/PageBlockView.d.ts +5 -3
- package/dist/connection/pages/PageBlockView.js +69 -4
- package/dist/connection/pages/PageBlockView.js.map +2 -2
- package/dist/connection/pages/PageGrid.d.ts +4 -3
- package/dist/connection/pages/PageGrid.js +4 -2
- package/dist/connection/pages/PageGrid.js.map +2 -2
- package/dist/connection/pages/PagesList.d.ts +4 -3
- package/dist/connection/pages/PagesList.js.map +2 -2
- package/dist/connection/pages/grid-layout.d.ts +44 -12
- package/dist/connection/pages/grid-layout.js +71 -27
- package/dist/connection/pages/grid-layout.js.map +2 -2
- package/dist/connection/pages/index.d.ts +4 -2
- package/dist/connection/pages/index.js +34 -5
- package/dist/connection/pages/index.js.map +2 -2
- package/dist/connection/pages/labels.js +5 -1
- package/dist/connection/pages/labels.js.map +2 -2
- package/dist/connection/pages/page-templates.d.ts +10 -0
- package/dist/connection/pages/page-templates.js +16 -0
- package/dist/connection/pages/page-templates.js.map +7 -0
- package/dist/connection/workflows/ConnectedWorkflowStart.d.ts +2 -0
- package/dist/connection/workflows/ConnectedWorkflowStart.js.map +2 -2
- package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.d.ts +10 -7
- package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.js +31 -171
- package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.js.map +3 -3
- package/dist/dashboards/ChartRenderer.d.ts +5 -3
- package/dist/dashboards/ChartRenderer.js +29 -18
- package/dist/dashboards/ChartRenderer.js.map +2 -2
- package/dist/dashboards/PanelView.d.ts +6 -1
- package/dist/dashboards/PanelView.js +24 -7
- package/dist/dashboards/PanelView.js.map +2 -2
- package/dist/dashboards/RechartsRenderer.d.ts +2 -1
- package/dist/dashboards/RechartsRenderer.js.map +2 -2
- package/dist/dashboards/index.cjs +25 -21
- package/dist/embed/index.cjs +23 -20
- package/dist/files/index.cjs +250 -249
- package/dist/home/FactsStrip.d.ts +3 -1
- package/dist/home/FactsStrip.js +3 -2
- package/dist/home/FactsStrip.js.map +2 -2
- package/dist/home/RecentList.d.ts +4 -2
- package/dist/home/RecentList.js +3 -2
- package/dist/home/RecentList.js.map +2 -2
- package/dist/home/StartTiles.d.ts +6 -1
- package/dist/home/StartTiles.js +55 -33
- package/dist/home/StartTiles.js.map +2 -2
- package/dist/home/index.cjs +62 -57
- package/dist/home/index.d.ts +1 -1
- package/dist/home/index.js +2 -1
- package/dist/home/index.js.map +2 -2
- package/dist/home/sections.d.ts +5 -0
- package/dist/home/sections.js +7 -0
- package/dist/home/sections.js.map +2 -2
- package/dist/index.cjs +339 -337
- package/dist/index.cjs.map +1 -1
- package/dist/pages/index.cjs +620 -139
- package/dist/pages/index.cjs.map +1 -1
- package/dist/settings/index.cjs +170 -169
- package/dist/shell/index.cjs +35 -34
- package/dist/studio/index.cjs +12 -12
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +33 -29
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workspaces/index.cjs +49 -47
- package/dist/workspaces/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/DocumentReviewCard-5W2QQWKA.cjs.map +0 -1
- package/dist/FilesViewerDialog-63QUTG4L.cjs.map +0 -1
- package/dist/WorkspaceTableView-2QP2HJLK.cjs.map +0 -1
- package/dist/ai-ODGRIL6Y.cjs.map +0 -1
- package/dist/chunk-4I2PCP7O.cjs.map +0 -1
- package/dist/chunk-4ZR4O5SP.cjs.map +0 -1
- package/dist/chunk-A5SKK3CU.cjs.map +0 -1
- package/dist/chunk-CVVQHFLR.cjs.map +0 -1
- package/dist/chunk-DUNXLT63.cjs.map +0 -1
- package/dist/chunk-E6BM5ENI.cjs.map +0 -1
- package/dist/chunk-HNLNRAEU.cjs.map +0 -1
- package/dist/chunk-JCFXS336.cjs.map +0 -1
- package/dist/chunk-KRQCUVH7.cjs.map +0 -1
- package/dist/chunk-KWJW5TMH.cjs.map +0 -1
- package/dist/chunk-NNZFZYTI.cjs.map +0 -1
- package/dist/chunk-NUFZFWHZ.cjs.map +0 -1
- package/dist/chunk-UM3EWCDE.cjs.map +0 -1
- package/dist/chunk-VSDD5TH5.cjs.map +0 -1
- package/dist/chunk-Z3N32LL4.cjs.map +0 -1
- package/dist/connection/workspace-dashboard/DashboardAgenda.d.ts +0 -1
- package/dist/connection/workspace-dashboard/DashboardAgenda.js.map +0 -7
- package/dist/connection/workspace-dashboard/dashboard-rows.js.map +0 -7
- /package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.d.ts +0 -0
- /package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.js +0 -0
- /package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.d.ts +0 -0
- /package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.js +0 -0
|
@@ -30,6 +30,8 @@ export interface FactsStripProps {
|
|
|
30
30
|
action?: ReactNode;
|
|
31
31
|
groups: FactsStripGroup[];
|
|
32
32
|
empty?: FactsStripEmpty;
|
|
33
|
+
/** Still loading with nothing to show: placeholder rows instead of the empty state. */
|
|
34
|
+
loading?: boolean;
|
|
33
35
|
className?: string;
|
|
34
36
|
/** Root test id; the title button gets `${testId}-open`. */
|
|
35
37
|
testId?: string;
|
|
@@ -38,4 +40,4 @@ export interface FactsStripProps {
|
|
|
38
40
|
* A glanceable band of captioned groups (facts: upcoming, recently created).
|
|
39
41
|
* Not a third list page: callers hand it a few rows per group.
|
|
40
42
|
*/
|
|
41
|
-
export declare function FactsStrip({ icon, title, count, onOpen, action, groups, empty, className, testId, }: FactsStripProps): import("react").JSX.Element;
|
|
43
|
+
export declare function FactsStrip({ icon, title, count, onOpen, action, groups, empty, loading, className, testId, }: FactsStripProps): import("react").JSX.Element;
|
package/dist/home/FactsStrip.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from "@arbidocs/react/ui";
|
|
4
|
-
import { EmptyStrip, SectionHeader } from "./sections.js";
|
|
4
|
+
import { EmptyStrip, LoadingRows, SectionHeader } from "./sections.js";
|
|
5
5
|
function FactsStrip({
|
|
6
6
|
icon,
|
|
7
7
|
title,
|
|
@@ -10,6 +10,7 @@ function FactsStrip({
|
|
|
10
10
|
action,
|
|
11
11
|
groups,
|
|
12
12
|
empty,
|
|
13
|
+
loading = false,
|
|
13
14
|
className,
|
|
14
15
|
testId
|
|
15
16
|
}) {
|
|
@@ -32,7 +33,7 @@ function FactsStrip({
|
|
|
32
33
|
action
|
|
33
34
|
}
|
|
34
35
|
),
|
|
35
|
-
filled.length === 0 ? empty && /* @__PURE__ */ jsx(
|
|
36
|
+
filled.length === 0 && loading ? /* @__PURE__ */ jsx(LoadingRows, { testId: testId && `${testId}-loading` }) : filled.length === 0 ? empty && /* @__PURE__ */ jsx(
|
|
36
37
|
EmptyStrip,
|
|
37
38
|
{
|
|
38
39
|
icon: empty.icon,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/home/FactsStrip.tsx"],
|
|
4
|
-
"sourcesContent": ["import type { ReactNode } from 'react'\nimport type { LucideIcon } from 'lucide-react'\nimport { cn } from '@arbidocs/react/ui'\nimport { EmptyStrip, SectionHeader } from './sections'\n\nexport interface FactsStripRow {\n id: string\n leading?: ReactNode\n title: string\n /** Right-aligned stamp: a date or a time. */\n time?: string\n onSelect?: () => void\n}\n\nexport interface FactsStripGroup {\n /** Captions the group (\"Upcoming\", \"Created\"); an empty group is not rendered. */\n caption: string\n rows: FactsStripRow[]\n /** Test id of every row in this group. Defaults to `${testId}-row`. */\n rowTestId?: string\n}\n\nexport interface FactsStripEmpty {\n icon: LucideIcon\n label: ReactNode\n description?: ReactNode\n onSelect?: () => void\n testId?: string\n}\n\nexport interface FactsStripProps {\n icon?: LucideIcon\n title: string\n count?: number\n onOpen?: () => void\n action?: ReactNode\n groups: FactsStripGroup[]\n empty?: FactsStripEmpty\n className?: string\n /** Root test id; the title button gets `${testId}-open`. */\n testId?: string\n}\n\n/**\n * A glanceable band of captioned groups (facts: upcoming, recently created).\n * Not a third list page: callers hand it a few rows per group.\n */\nexport function FactsStrip({\n icon,\n title,\n count,\n onOpen,\n action,\n groups,\n empty,\n className,\n testId,\n}: FactsStripProps) {\n const filled = groups.filter((g) => g.rows.length > 0)\n return (\n <section\n className={cn('flex min-w-0 flex-col gap-1', className)}\n data-slot=\"facts-strip\"\n data-testid={testId}\n >\n <SectionHeader\n icon={icon}\n title={title}\n count={count}\n onOpen={onOpen}\n openTestId={testId && `${testId}-open`}\n action={action}\n />\n {filled.length === 0\n ? empty && (\n
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import type { ReactNode } from 'react'\nimport type { LucideIcon } from 'lucide-react'\nimport { cn } from '@arbidocs/react/ui'\nimport { EmptyStrip, LoadingRows, SectionHeader } from './sections'\n\nexport interface FactsStripRow {\n id: string\n leading?: ReactNode\n title: string\n /** Right-aligned stamp: a date or a time. */\n time?: string\n onSelect?: () => void\n}\n\nexport interface FactsStripGroup {\n /** Captions the group (\"Upcoming\", \"Created\"); an empty group is not rendered. */\n caption: string\n rows: FactsStripRow[]\n /** Test id of every row in this group. Defaults to `${testId}-row`. */\n rowTestId?: string\n}\n\nexport interface FactsStripEmpty {\n icon: LucideIcon\n label: ReactNode\n description?: ReactNode\n onSelect?: () => void\n testId?: string\n}\n\nexport interface FactsStripProps {\n icon?: LucideIcon\n title: string\n count?: number\n onOpen?: () => void\n action?: ReactNode\n groups: FactsStripGroup[]\n empty?: FactsStripEmpty\n /** Still loading with nothing to show: placeholder rows instead of the empty state. */\n loading?: boolean\n className?: string\n /** Root test id; the title button gets `${testId}-open`. */\n testId?: string\n}\n\n/**\n * A glanceable band of captioned groups (facts: upcoming, recently created).\n * Not a third list page: callers hand it a few rows per group.\n */\nexport function FactsStrip({\n icon,\n title,\n count,\n onOpen,\n action,\n groups,\n empty,\n loading = false,\n className,\n testId,\n}: FactsStripProps) {\n const filled = groups.filter((g) => g.rows.length > 0)\n return (\n <section\n className={cn('flex min-w-0 flex-col gap-1', className)}\n data-slot=\"facts-strip\"\n data-testid={testId}\n >\n <SectionHeader\n icon={icon}\n title={title}\n count={count}\n onOpen={onOpen}\n openTestId={testId && `${testId}-open`}\n action={action}\n />\n {filled.length === 0 && loading ? (\n <LoadingRows testId={testId && `${testId}-loading`} />\n ) : filled.length === 0 ? (\n empty && (\n <EmptyStrip\n icon={empty.icon}\n label={empty.label}\n description={empty.description}\n onSelect={empty.onSelect}\n testId={empty.testId}\n />\n )\n ) : (\n filled.map((group) => (\n <div key={group.caption} className=\"min-w-0\">\n <p className=\"px-3 pb-1 pt-1 text-right text-xs text-muted-foreground\">\n {group.caption}\n </p>\n <ul>\n {group.rows.map((row) => (\n <li key={row.id}>\n <button\n type=\"button\"\n onClick={row.onSelect}\n disabled={!row.onSelect}\n title={row.title}\n 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\"\n data-testid={group.rowTestId ?? (testId && `${testId}-row`)}\n >\n {row.leading}\n <span className=\"min-w-0 flex-1 truncate text-sm text-foreground\">\n {row.title}\n </span>\n {row.time && (\n <span className=\"shrink-0 text-xs tabular-nums text-muted-foreground\">\n {row.time}\n </span>\n )}\n </button>\n </li>\n ))}\n </ul>\n </div>\n ))\n )}\n </section>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAoEM,cA6BY,YA7BZ;AAlEN,SAAS,UAAU;AACnB,SAAS,YAAY,aAAa,qBAAqB;AA8ChD,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA;AACF,GAAoB;AAClB,QAAM,SAAS,OAAO,OAAO,CAAC,MAAM,EAAE,KAAK,SAAS,CAAC;AACrD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,+BAA+B,SAAS;AAAA,MACtD,aAAU;AAAA,MACV,eAAa;AAAA,MAEb;AAAA;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,YAAY,UAAU,GAAG,MAAM;AAAA,YAC/B;AAAA;AAAA,QACF;AAAA,QACC,OAAO,WAAW,KAAK,UACtB,oBAAC,eAAY,QAAQ,UAAU,GAAG,MAAM,YAAY,IAClD,OAAO,WAAW,IACpB,SACE;AAAA,UAAC;AAAA;AAAA,YACC,MAAM,MAAM;AAAA,YACZ,OAAO,MAAM;AAAA,YACb,aAAa,MAAM;AAAA,YACnB,UAAU,MAAM;AAAA,YAChB,QAAQ,MAAM;AAAA;AAAA,QAChB,IAGF,OAAO,IAAI,CAAC,UACV,qBAAC,SAAwB,WAAU,WACjC;AAAA,8BAAC,OAAE,WAAU,2DACV,gBAAM,SACT;AAAA,UACA,oBAAC,QACE,gBAAM,KAAK,IAAI,CAAC,QACf,oBAAC,QACC;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,SAAS,IAAI;AAAA,cACb,UAAU,CAAC,IAAI;AAAA,cACf,OAAO,IAAI;AAAA,cACX,WAAU;AAAA,cACV,eAAa,MAAM,cAAc,UAAU,GAAG,MAAM;AAAA,cAEnD;AAAA,oBAAI;AAAA,gBACL,oBAAC,UAAK,WAAU,mDACb,cAAI,OACP;AAAA,gBACC,IAAI,QACH,oBAAC,UAAK,WAAU,uDACb,cAAI,MACP;AAAA;AAAA;AAAA,UAEJ,KAlBO,IAAI,EAmBb,CACD,GACH;AAAA,aA3BQ,MAAM,OA4BhB,CACD;AAAA;AAAA;AAAA,EAEL;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -37,12 +37,14 @@ export interface RecentListProps {
|
|
|
37
37
|
caption?: string;
|
|
38
38
|
/** What an empty section says. A plain muted line unless `onSelect` is set. */
|
|
39
39
|
empty?: RecentListEmpty;
|
|
40
|
+
/** Still loading with nothing to show: placeholder rows instead of the empty state. */
|
|
41
|
+
loading?: boolean;
|
|
40
42
|
className?: string;
|
|
41
|
-
/** Root test id; derived ids: `-open`, `-caption`, `-row`, `-empty-action`. */
|
|
43
|
+
/** Root test id; derived ids: `-open`, `-caption`, `-row`, `-empty-action`, `-loading`. */
|
|
42
44
|
testId?: string;
|
|
43
45
|
}
|
|
44
46
|
/**
|
|
45
47
|
* A titled list of recent items (files, chats): plain rows under a quiet
|
|
46
48
|
* header. An empty list is one tonal strip that invites the first item.
|
|
47
49
|
*/
|
|
48
|
-
export declare function RecentList({ icon, title, count, onOpen, openHref, action, rows, caption, empty, className, testId, }: RecentListProps): import("react").JSX.Element;
|
|
50
|
+
export declare function RecentList({ icon, title, count, onOpen, openHref, action, rows, caption, empty, loading, className, testId, }: RecentListProps): import("react").JSX.Element;
|
package/dist/home/RecentList.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from "@arbidocs/react/ui";
|
|
4
4
|
import { ActionLink } from "../components/ActionLink.js";
|
|
5
|
-
import { EmptyStrip, SectionHeader } from "./sections.js";
|
|
5
|
+
import { EmptyStrip, LoadingRows, SectionHeader } from "./sections.js";
|
|
6
6
|
function RecentList({
|
|
7
7
|
icon,
|
|
8
8
|
title,
|
|
@@ -13,6 +13,7 @@ function RecentList({
|
|
|
13
13
|
rows,
|
|
14
14
|
caption,
|
|
15
15
|
empty,
|
|
16
|
+
loading = false,
|
|
16
17
|
className,
|
|
17
18
|
testId
|
|
18
19
|
}) {
|
|
@@ -35,7 +36,7 @@ function RecentList({
|
|
|
35
36
|
action
|
|
36
37
|
}
|
|
37
38
|
),
|
|
38
|
-
rows.length === 0 ? empty?.onSelect ? /* @__PURE__ */ jsx(
|
|
39
|
+
rows.length === 0 && loading ? /* @__PURE__ */ jsx(LoadingRows, { testId: testId && `${testId}-loading` }) : rows.length === 0 ? empty?.onSelect ? /* @__PURE__ */ jsx(
|
|
39
40
|
EmptyStrip,
|
|
40
41
|
{
|
|
41
42
|
icon: empty.icon,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/home/RecentList.tsx"],
|
|
4
|
-
"sourcesContent": ["import type { ReactNode } from 'react'\nimport type { LucideIcon } from 'lucide-react'\nimport { cn } from '@arbidocs/react/ui'\nimport { ActionLink } from '../components/ActionLink'\nimport { EmptyStrip, SectionHeader } from './sections'\n\n/** One listed item. Source-agnostic: a chat, a file. */\nexport interface RecentRow {\n id: string\n /** Bare entity mark (an icon carries its own identity; no tinted box). */\n leading?: ReactNode\n title: string\n subtitle?: string\n /** Pinned right on the title line, like a message time. Hidden when `trailing` is set. */\n time?: string\n onSelect?: () => void\n /** Real link target; `onSelect` still fires on a plain click (see `ActionLink`). */\n href?: string\n /** A control rendered beside the row, outside its button. */\n trailing?: ReactNode\n}\n\nexport interface RecentListEmpty {\n icon?: LucideIcon\n label: ReactNode\n description?: ReactNode\n /** Makes the empty strip an invitation button. */\n onSelect?: () => void\n}\n\nexport interface RecentListProps {\n icon?: LucideIcon\n title: string\n count?: number\n /** Opens the full list; makes the header title a button. */\n onOpen?: () => void\n /** Real link target of the header title (with `onOpen`, plain clicks call `onOpen`). */\n openHref?: string\n /** The section's one quiet header action. */\n action?: ReactNode\n rows: RecentRow[]\n /** Names the right-hand column (\"Added\", \"Messaged\"). */\n caption?: string\n /** What an empty section says. A plain muted line unless `onSelect` is set. */\n empty?: RecentListEmpty\n className?: string\n /** Root test id; derived ids: `-open`, `-caption`, `-row`, `-empty-action`. */\n testId?: string\n}\n\n/**\n * A titled list of recent items (files, chats): plain rows under a quiet\n * header. An empty list is one tonal strip that invites the first item.\n */\nexport function RecentList({\n icon,\n title,\n count,\n onOpen,\n openHref,\n action,\n rows,\n caption,\n empty,\n className,\n testId,\n}: RecentListProps) {\n return (\n <section\n className={cn('flex min-w-0 flex-col gap-1', className)}\n data-slot=\"recent-list\"\n data-testid={testId}\n >\n <SectionHeader\n icon={icon}\n title={title}\n count={count}\n onOpen={onOpen}\n openHref={openHref}\n openTestId={testId && `${testId}-open`}\n action={action}\n />\n {rows.length === 0 ? (\n empty?.onSelect ? (\n <EmptyStrip\n icon={empty.icon}\n label={empty.label}\n description={empty.description}\n onSelect={empty.onSelect}\n testId={testId && `${testId}-empty-action`}\n />\n ) : (\n <p className=\"px-1 py-3 text-sm text-muted-foreground\">\n {empty?.description ?? empty?.label}\n </p>\n )\n ) : (\n <>\n {caption && (\n <p className=\"sr-only\" data-testid={testId && `${testId}-caption`}>\n {caption}\n </p>\n )}\n <ul>\n {rows.map((row) => (\n <li\n key={row.id}\n className=\"relative flex items-center rounded-md transition-colors [&:hover]:bg-muted has-[:focus-visible]:bg-muted\"\n data-slot=\"recent-row\"\n >\n <ActionLink\n href={row.href}\n onSelect={row.onSelect}\n title={row.title}\n className={cn(\n 'flex min-w-0 flex-1 items-start gap-3 rounded-md px-3 py-2 text-left focus-visible:outline-none',\n row.onSelect && 'cursor-pointer',\n 'pointer-coarse:min-h-11'\n )}\n data-testid={testId && `${testId}-row`}\n >\n {row.leading}\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-baseline gap-2\">\n <span className=\"min-w-0 flex-1 truncate text-sm font-medium text-foreground\">\n {row.title}\n </span>\n {!row.trailing && row.time && (\n <span className=\"shrink-0 text-xs tabular-nums text-muted-foreground\">\n {row.time}\n </span>\n )}\n </div>\n {row.subtitle && (\n <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">\n {row.subtitle}\n </p>\n )}\n </div>\n </ActionLink>\n {row.trailing ? <div className=\"shrink-0 pr-3\">{row.trailing}</div> : null}\n </li>\n ))}\n </ul>\n </>\n )}\n </section>\n )\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import type { ReactNode } from 'react'\nimport type { LucideIcon } from 'lucide-react'\nimport { cn } from '@arbidocs/react/ui'\nimport { ActionLink } from '../components/ActionLink'\nimport { EmptyStrip, LoadingRows, SectionHeader } from './sections'\n\n/** One listed item. Source-agnostic: a chat, a file. */\nexport interface RecentRow {\n id: string\n /** Bare entity mark (an icon carries its own identity; no tinted box). */\n leading?: ReactNode\n title: string\n subtitle?: string\n /** Pinned right on the title line, like a message time. Hidden when `trailing` is set. */\n time?: string\n onSelect?: () => void\n /** Real link target; `onSelect` still fires on a plain click (see `ActionLink`). */\n href?: string\n /** A control rendered beside the row, outside its button. */\n trailing?: ReactNode\n}\n\nexport interface RecentListEmpty {\n icon?: LucideIcon\n label: ReactNode\n description?: ReactNode\n /** Makes the empty strip an invitation button. */\n onSelect?: () => void\n}\n\nexport interface RecentListProps {\n icon?: LucideIcon\n title: string\n count?: number\n /** Opens the full list; makes the header title a button. */\n onOpen?: () => void\n /** Real link target of the header title (with `onOpen`, plain clicks call `onOpen`). */\n openHref?: string\n /** The section's one quiet header action. */\n action?: ReactNode\n rows: RecentRow[]\n /** Names the right-hand column (\"Added\", \"Messaged\"). */\n caption?: string\n /** What an empty section says. A plain muted line unless `onSelect` is set. */\n empty?: RecentListEmpty\n /** Still loading with nothing to show: placeholder rows instead of the empty state. */\n loading?: boolean\n className?: string\n /** Root test id; derived ids: `-open`, `-caption`, `-row`, `-empty-action`, `-loading`. */\n testId?: string\n}\n\n/**\n * A titled list of recent items (files, chats): plain rows under a quiet\n * header. An empty list is one tonal strip that invites the first item.\n */\nexport function RecentList({\n icon,\n title,\n count,\n onOpen,\n openHref,\n action,\n rows,\n caption,\n empty,\n loading = false,\n className,\n testId,\n}: RecentListProps) {\n return (\n <section\n className={cn('flex min-w-0 flex-col gap-1', className)}\n data-slot=\"recent-list\"\n data-testid={testId}\n >\n <SectionHeader\n icon={icon}\n title={title}\n count={count}\n onOpen={onOpen}\n openHref={openHref}\n openTestId={testId && `${testId}-open`}\n action={action}\n />\n {rows.length === 0 && loading ? (\n <LoadingRows testId={testId && `${testId}-loading`} />\n ) : rows.length === 0 ? (\n empty?.onSelect ? (\n <EmptyStrip\n icon={empty.icon}\n label={empty.label}\n description={empty.description}\n onSelect={empty.onSelect}\n testId={testId && `${testId}-empty-action`}\n />\n ) : (\n <p className=\"px-1 py-3 text-sm text-muted-foreground\">\n {empty?.description ?? empty?.label}\n </p>\n )\n ) : (\n <>\n {caption && (\n <p className=\"sr-only\" data-testid={testId && `${testId}-caption`}>\n {caption}\n </p>\n )}\n <ul>\n {rows.map((row) => (\n <li\n key={row.id}\n className=\"relative flex items-center rounded-md transition-colors [&:hover]:bg-muted has-[:focus-visible]:bg-muted\"\n data-slot=\"recent-row\"\n >\n <ActionLink\n href={row.href}\n onSelect={row.onSelect}\n title={row.title}\n className={cn(\n 'flex min-w-0 flex-1 items-start gap-3 rounded-md px-3 py-2 text-left focus-visible:outline-none',\n row.onSelect && 'cursor-pointer',\n 'pointer-coarse:min-h-11'\n )}\n data-testid={testId && `${testId}-row`}\n >\n {row.leading}\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-baseline gap-2\">\n <span className=\"min-w-0 flex-1 truncate text-sm font-medium text-foreground\">\n {row.title}\n </span>\n {!row.trailing && row.time && (\n <span className=\"shrink-0 text-xs tabular-nums text-muted-foreground\">\n {row.time}\n </span>\n )}\n </div>\n {row.subtitle && (\n <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">\n {row.subtitle}\n </p>\n )}\n </div>\n </ActionLink>\n {row.trailing ? <div className=\"shrink-0 pr-3\">{row.trailing}</div> : null}\n </li>\n ))}\n </ul>\n </>\n )}\n </section>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AA4EM,SA0BE,UA1BF,KAoDc,YApDd;AA1EN,SAAS,UAAU;AACnB,SAAS,kBAAkB;AAC3B,SAAS,YAAY,aAAa,qBAAqB;AAoDhD,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA;AACF,GAAoB;AAClB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,+BAA+B,SAAS;AAAA,MACtD,aAAU;AAAA,MACV,eAAa;AAAA,MAEb;AAAA;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,YAAY,UAAU,GAAG,MAAM;AAAA,YAC/B;AAAA;AAAA,QACF;AAAA,QACC,KAAK,WAAW,KAAK,UACpB,oBAAC,eAAY,QAAQ,UAAU,GAAG,MAAM,YAAY,IAClD,KAAK,WAAW,IAClB,OAAO,WACL;AAAA,UAAC;AAAA;AAAA,YACC,MAAM,MAAM;AAAA,YACZ,OAAO,MAAM;AAAA,YACb,aAAa,MAAM;AAAA,YACnB,UAAU,MAAM;AAAA,YAChB,QAAQ,UAAU,GAAG,MAAM;AAAA;AAAA,QAC7B,IAEA,oBAAC,OAAE,WAAU,2CACV,iBAAO,eAAe,OAAO,OAChC,IAGF,iCACG;AAAA,qBACC,oBAAC,OAAE,WAAU,WAAU,eAAa,UAAU,GAAG,MAAM,YACpD,mBACH;AAAA,UAEF,oBAAC,QACE,eAAK,IAAI,CAAC,QACT;AAAA,YAAC;AAAA;AAAA,cAEC,WAAU;AAAA,cACV,aAAU;AAAA,cAEV;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAM,IAAI;AAAA,oBACV,UAAU,IAAI;AAAA,oBACd,OAAO,IAAI;AAAA,oBACX,WAAW;AAAA,sBACT;AAAA,sBACA,IAAI,YAAY;AAAA,sBAChB;AAAA,oBACF;AAAA,oBACA,eAAa,UAAU,GAAG,MAAM;AAAA,oBAE/B;AAAA,0BAAI;AAAA,sBACL,qBAAC,SAAI,WAAU,kBACb;AAAA,6CAAC,SAAI,WAAU,6BACb;AAAA,8CAAC,UAAK,WAAU,+DACb,cAAI,OACP;AAAA,0BACC,CAAC,IAAI,YAAY,IAAI,QACpB,oBAAC,UAAK,WAAU,uDACb,cAAI,MACP;AAAA,2BAEJ;AAAA,wBACC,IAAI,YACH,oBAAC,OAAE,WAAU,iDACV,cAAI,UACP;AAAA,yBAEJ;AAAA;AAAA;AAAA,gBACF;AAAA,gBACC,IAAI,WAAW,oBAAC,SAAI,WAAU,iBAAiB,cAAI,UAAS,IAAS;AAAA;AAAA;AAAA,YAlCjE,IAAI;AAAA,UAmCX,CACD,GACH;AAAA,WACF;AAAA;AAAA;AAAA,EAEJ;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -19,6 +19,11 @@ export interface StartTile {
|
|
|
19
19
|
}
|
|
20
20
|
export interface StartTilesProps {
|
|
21
21
|
items: StartTile[];
|
|
22
|
+
/**
|
|
23
|
+
* `grid` (default): balanced columns that reflow by the band's width. `carousel`: one row of
|
|
24
|
+
* fixed-width tiles that scrolls sideways (a page's carousel block).
|
|
25
|
+
*/
|
|
26
|
+
layout?: 'grid' | 'carousel';
|
|
22
27
|
/** Optional band label above the tiles ("Start"). */
|
|
23
28
|
caption?: string;
|
|
24
29
|
captionTestId?: string;
|
|
@@ -30,4 +35,4 @@ export interface StartTilesProps {
|
|
|
30
35
|
* the AI-driven starts. Nothing is hover-only: tiles are always rendered, hover
|
|
31
36
|
* only nudges tone, and touch targets are at least 44px.
|
|
32
37
|
*/
|
|
33
|
-
export declare function StartTiles({ items, caption, captionTestId, className, testId }: StartTilesProps): import("react").JSX.Element | null;
|
|
38
|
+
export declare function StartTiles({ items, layout, caption, captionTestId, className, testId, }: StartTilesProps): import("react").JSX.Element | null;
|
package/dist/home/StartTiles.js
CHANGED
|
@@ -6,17 +6,24 @@ import { ActionLink } from "../components/ActionLink.js";
|
|
|
6
6
|
import { balancedColumns } from "../lib/balanced-columns.js";
|
|
7
7
|
import { observeResize } from "../lib/observe-resize.js";
|
|
8
8
|
import { SectionLabel } from "./sections.js";
|
|
9
|
-
function StartTiles({
|
|
9
|
+
function StartTiles({
|
|
10
|
+
items,
|
|
11
|
+
layout = "grid",
|
|
12
|
+
caption,
|
|
13
|
+
captionTestId,
|
|
14
|
+
className,
|
|
15
|
+
testId
|
|
16
|
+
}) {
|
|
10
17
|
const gridRef = useRef(null);
|
|
11
18
|
const [columns, setColumns] = useState(null);
|
|
12
19
|
const count = items.length;
|
|
13
20
|
useEffect(() => {
|
|
14
21
|
const grid = gridRef.current;
|
|
15
|
-
if (!grid || count === 0) return;
|
|
22
|
+
if (!grid || count === 0 || layout === "carousel") return;
|
|
16
23
|
const measure = () => setColumns(balancedColumns(count, grid.clientWidth));
|
|
17
24
|
measure();
|
|
18
25
|
return observeResize(grid, measure);
|
|
19
|
-
}, [count]);
|
|
26
|
+
}, [count, layout]);
|
|
20
27
|
if (count === 0) return null;
|
|
21
28
|
return /* @__PURE__ */ jsxs(
|
|
22
29
|
"section",
|
|
@@ -26,7 +33,21 @@ function StartTiles({ items, caption, captionTestId, className, testId }) {
|
|
|
26
33
|
"data-testid": testId,
|
|
27
34
|
children: [
|
|
28
35
|
caption && /* @__PURE__ */ jsx(SectionLabel, { testId: captionTestId, children: caption }),
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
36
|
+
layout === "carousel" ? /* @__PURE__ */ jsx(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
"data-slot": "start-tiles-carousel",
|
|
40
|
+
className: "-mx-1 flex snap-x snap-mandatory gap-3 overflow-x-auto px-1 pb-1",
|
|
41
|
+
children: items.map((item) => /* @__PURE__ */ jsx(
|
|
42
|
+
StartTileCard,
|
|
43
|
+
{
|
|
44
|
+
item,
|
|
45
|
+
className: "w-60 shrink-0 snap-start pointer-coarse:w-56"
|
|
46
|
+
},
|
|
47
|
+
item.id
|
|
48
|
+
))
|
|
49
|
+
}
|
|
50
|
+
) : /* @__PURE__ */ jsx(
|
|
30
51
|
"div",
|
|
31
52
|
{
|
|
32
53
|
ref: gridRef,
|
|
@@ -36,41 +57,42 @@ function StartTiles({ items, caption, captionTestId, className, testId }) {
|
|
|
36
57
|
style: {
|
|
37
58
|
gridTemplateColumns: columns === null ? "repeat(auto-fit, minmax(200px, 1fr))" : `repeat(${columns}, minmax(0, 1fr))`
|
|
38
59
|
},
|
|
39
|
-
children: items.map((item) => {
|
|
40
|
-
const Icon = item.icon;
|
|
41
|
-
return /* @__PURE__ */ jsxs(
|
|
42
|
-
ActionLink,
|
|
43
|
-
{
|
|
44
|
-
href: item.href,
|
|
45
|
-
onSelect: item.onSelect,
|
|
46
|
-
disabled: item.disabled,
|
|
47
|
-
title: item.disabled ? item.disabledReason : void 0,
|
|
48
|
-
className: cn(
|
|
49
|
-
"flex h-full flex-col items-start gap-3 rounded-lg p-4 text-left",
|
|
50
|
-
"border border-border bg-card shadow-xs transition-colors hover:border-ring/50 hover:bg-accent/40",
|
|
51
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
52
|
-
"disabled:cursor-default disabled:opacity-55 disabled:hover:bg-card disabled:hover:border-border",
|
|
53
|
-
"pointer-coarse:min-h-11"
|
|
54
|
-
),
|
|
55
|
-
"data-slot": "start-tile",
|
|
56
|
-
"data-testid": item.testId,
|
|
57
|
-
children: [
|
|
58
|
-
item.iconNode ? /* @__PURE__ */ jsx("span", { className: "shrink-0 text-ai-ink [&>svg]:size-5", "aria-hidden": "true", children: item.iconNode }) : Icon && /* @__PURE__ */ jsx(Icon, { className: "size-5 shrink-0 text-ai-ink", "aria-hidden": "true" }),
|
|
59
|
-
/* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
|
|
60
|
-
/* @__PURE__ */ jsx("span", { className: "block text-sm font-semibold text-foreground", children: item.title }),
|
|
61
|
-
/* @__PURE__ */ jsx("span", { className: "mt-1 block text-sm leading-snug text-muted-foreground", children: item.disabled && item.disabledReason ? item.disabledReason : item.description })
|
|
62
|
-
] })
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
item.id
|
|
66
|
-
);
|
|
67
|
-
})
|
|
60
|
+
children: items.map((item) => /* @__PURE__ */ jsx(StartTileCard, { item }, item.id))
|
|
68
61
|
}
|
|
69
62
|
)
|
|
70
63
|
]
|
|
71
64
|
}
|
|
72
65
|
);
|
|
73
66
|
}
|
|
67
|
+
function StartTileCard({ item, className }) {
|
|
68
|
+
const Icon = item.icon;
|
|
69
|
+
return /* @__PURE__ */ jsxs(
|
|
70
|
+
ActionLink,
|
|
71
|
+
{
|
|
72
|
+
href: item.href,
|
|
73
|
+
onSelect: item.onSelect,
|
|
74
|
+
disabled: item.disabled,
|
|
75
|
+
title: item.disabled ? item.disabledReason : void 0,
|
|
76
|
+
className: cn(
|
|
77
|
+
"flex h-full flex-col items-start gap-3 rounded-lg p-4 text-left",
|
|
78
|
+
"border border-border bg-card shadow-xs transition-colors hover:border-ring/50 hover:bg-accent/40",
|
|
79
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
80
|
+
"disabled:cursor-default disabled:opacity-55 disabled:hover:bg-card disabled:hover:border-border",
|
|
81
|
+
"pointer-coarse:min-h-11",
|
|
82
|
+
className
|
|
83
|
+
),
|
|
84
|
+
"data-slot": "start-tile",
|
|
85
|
+
"data-testid": item.testId,
|
|
86
|
+
children: [
|
|
87
|
+
item.iconNode ? /* @__PURE__ */ jsx("span", { className: "shrink-0 text-ai-ink [&>svg]:size-5", "aria-hidden": "true", children: item.iconNode }) : Icon && /* @__PURE__ */ jsx(Icon, { className: "size-5 shrink-0 text-ai-ink", "aria-hidden": "true" }),
|
|
88
|
+
/* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
|
|
89
|
+
/* @__PURE__ */ jsx("span", { className: "block text-sm font-semibold text-foreground", children: item.title }),
|
|
90
|
+
/* @__PURE__ */ jsx("span", { className: "mt-1 block text-sm leading-snug text-muted-foreground", children: item.disabled && item.disabledReason ? item.disabledReason : item.description })
|
|
91
|
+
] })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
}
|
|
74
96
|
export {
|
|
75
97
|
StartTiles
|
|
76
98
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/home/StartTiles.tsx"],
|
|
4
|
-
"sourcesContent": ["import { useEffect, useRef, useState, type ReactNode } from 'react'\nimport type { LucideIcon } from 'lucide-react'\nimport { cn } from '@arbidocs/react/ui'\nimport { ActionLink } from '../components/ActionLink'\nimport { balancedColumns } from '../lib/balanced-columns'\nimport { observeResize } from '../lib/observe-resize'\nimport { SectionLabel } from './sections'\n\n/** One \"start something\" tile: an AI-driven action, one click from underway. */\nexport interface StartTile {\n id: string\n /** A Lucide glyph; `iconNode` wins when both are given. */\n icon?: LucideIcon\n /** A ready-made mark (host icon maps), wearing the same AI ink. */\n iconNode?: ReactNode\n title: string\n description: string\n onSelect: () => void\n /** Real link target (ctrl-click / new tab, in-SPA through the host environment's `linkComponent`). `onSelect` still fires on a plain click. */\n href?: string\n /** Rendered non-interactive and dimmed; `disabledReason` replaces the description. */\n disabled?: boolean\n disabledReason?: string\n testId?: string\n}\n\nexport interface StartTilesProps {\n items: StartTile[]\n /** Optional band label above the tiles (\"Start\"). */\n caption?: string\n captionTestId?: string\n className?: string\n testId?: string\n}\n\n/**\n * A band of tonal action tiles. The glyph wears the AI ink, because these are\n * the AI-driven starts. Nothing is hover-only: tiles are always rendered, hover\n * only nudges tone, and touch targets are at least 44px.\n */\nexport function StartTiles({
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { useEffect, useRef, useState, type ReactNode } from 'react'\nimport type { LucideIcon } from 'lucide-react'\nimport { cn } from '@arbidocs/react/ui'\nimport { ActionLink } from '../components/ActionLink'\nimport { balancedColumns } from '../lib/balanced-columns'\nimport { observeResize } from '../lib/observe-resize'\nimport { SectionLabel } from './sections'\n\n/** One \"start something\" tile: an AI-driven action, one click from underway. */\nexport interface StartTile {\n id: string\n /** A Lucide glyph; `iconNode` wins when both are given. */\n icon?: LucideIcon\n /** A ready-made mark (host icon maps), wearing the same AI ink. */\n iconNode?: ReactNode\n title: string\n description: string\n onSelect: () => void\n /** Real link target (ctrl-click / new tab, in-SPA through the host environment's `linkComponent`). `onSelect` still fires on a plain click. */\n href?: string\n /** Rendered non-interactive and dimmed; `disabledReason` replaces the description. */\n disabled?: boolean\n disabledReason?: string\n testId?: string\n}\n\nexport interface StartTilesProps {\n items: StartTile[]\n /**\n * `grid` (default): balanced columns that reflow by the band's width. `carousel`: one row of\n * fixed-width tiles that scrolls sideways (a page's carousel block).\n */\n layout?: 'grid' | 'carousel'\n /** Optional band label above the tiles (\"Start\"). */\n caption?: string\n captionTestId?: string\n className?: string\n testId?: string\n}\n\n/**\n * A band of tonal action tiles. The glyph wears the AI ink, because these are\n * the AI-driven starts. Nothing is hover-only: tiles are always rendered, hover\n * only nudges tone, and touch targets are at least 44px.\n */\nexport function StartTiles({\n items,\n layout = 'grid',\n caption,\n captionTestId,\n className,\n testId,\n}: StartTilesProps) {\n // The tiles reflow by their own container width (a docked tablet sidebar narrows it without\n // changing the viewport), choosing a column count that never leaves one tile alone on a row.\n const gridRef = useRef<HTMLDivElement>(null)\n const [columns, setColumns] = useState<number | null>(null)\n const count = items.length\n useEffect(() => {\n const grid = gridRef.current\n if (!grid || count === 0 || layout === 'carousel') return\n const measure = () => setColumns(balancedColumns(count, grid.clientWidth))\n measure()\n return observeResize(grid, measure)\n }, [count, layout])\n\n if (count === 0) return null\n return (\n <section\n className={cn('flex flex-col gap-3', className)}\n data-slot=\"start-tiles\"\n data-testid={testId}\n >\n {caption && <SectionLabel testId={captionTestId}>{caption}</SectionLabel>}\n {layout === 'carousel' ? (\n <div\n data-slot=\"start-tiles-carousel\"\n className=\"-mx-1 flex snap-x snap-mandatory gap-3 overflow-x-auto px-1 pb-1\"\n >\n {items.map((item) => (\n <StartTileCard\n key={item.id}\n item={item}\n className=\"w-60 shrink-0 snap-start pointer-coarse:w-56\"\n />\n ))}\n </div>\n ) : (\n <div\n ref={gridRef}\n data-slot=\"start-tiles-grid\"\n data-columns={columns ?? undefined}\n className=\"grid gap-3\"\n style={{\n gridTemplateColumns:\n columns === null\n ? 'repeat(auto-fit, minmax(200px, 1fr))'\n : `repeat(${columns}, minmax(0, 1fr))`,\n }}\n >\n {items.map((item) => (\n <StartTileCard key={item.id} item={item} />\n ))}\n </div>\n )}\n </section>\n )\n}\n\n/** One tile: the glyph in the AI ink, the title, and what it does (or why it cannot run now). */\nfunction StartTileCard({ item, className }: { item: StartTile; className?: string }) {\n const Icon = item.icon\n return (\n <ActionLink\n href={item.href}\n onSelect={item.onSelect}\n disabled={item.disabled}\n title={item.disabled ? item.disabledReason : undefined}\n className={cn(\n 'flex h-full flex-col items-start gap-3 rounded-lg p-4 text-left',\n 'border border-border bg-card shadow-xs transition-colors hover:border-ring/50 hover:bg-accent/40',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',\n 'disabled:cursor-default disabled:opacity-55 disabled:hover:bg-card disabled:hover:border-border',\n 'pointer-coarse:min-h-11',\n className\n )}\n data-slot=\"start-tile\"\n data-testid={item.testId}\n >\n {item.iconNode ? (\n <span className=\"shrink-0 text-ai-ink [&>svg]:size-5\" aria-hidden=\"true\">\n {item.iconNode}\n </span>\n ) : (\n Icon && <Icon className=\"size-5 shrink-0 text-ai-ink\" aria-hidden=\"true\" />\n )}\n <span className=\"min-w-0\">\n <span className=\"block text-sm font-semibold text-foreground\">{item.title}</span>\n <span className=\"mt-1 block text-sm leading-snug text-muted-foreground\">\n {item.disabled && item.disabledReason ? item.disabledReason : item.description}\n </span>\n </span>\n </ActionLink>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAoEI,SAKc,KALd;AApEJ,SAAS,WAAW,QAAQ,gBAAgC;AAE5D,SAAS,UAAU;AACnB,SAAS,kBAAkB;AAC3B,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAuCtB,SAAS,WAAW;AAAA,EACzB;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAoB;AAGlB,QAAM,UAAU,OAAuB,IAAI;AAC3C,QAAM,CAAC,SAAS,UAAU,IAAI,SAAwB,IAAI;AAC1D,QAAM,QAAQ,MAAM;AACpB,YAAU,MAAM;AACd,UAAM,OAAO,QAAQ;AACrB,QAAI,CAAC,QAAQ,UAAU,KAAK,WAAW,WAAY;AACnD,UAAM,UAAU,MAAM,WAAW,gBAAgB,OAAO,KAAK,WAAW,CAAC;AACzE,YAAQ;AACR,WAAO,cAAc,MAAM,OAAO;AAAA,EACpC,GAAG,CAAC,OAAO,MAAM,CAAC;AAElB,MAAI,UAAU,EAAG,QAAO;AACxB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,uBAAuB,SAAS;AAAA,MAC9C,aAAU;AAAA,MACV,eAAa;AAAA,MAEZ;AAAA,mBAAW,oBAAC,gBAAa,QAAQ,eAAgB,mBAAQ;AAAA,QACzD,WAAW,aACV;AAAA,UAAC;AAAA;AAAA,YACC,aAAU;AAAA,YACV,WAAU;AAAA,YAET,gBAAM,IAAI,CAAC,SACV;AAAA,cAAC;AAAA;AAAA,gBAEC;AAAA,gBACA,WAAU;AAAA;AAAA,cAFL,KAAK;AAAA,YAGZ,CACD;AAAA;AAAA,QACH,IAEA;AAAA,UAAC;AAAA;AAAA,YACC,KAAK;AAAA,YACL,aAAU;AAAA,YACV,gBAAc,WAAW;AAAA,YACzB,WAAU;AAAA,YACV,OAAO;AAAA,cACL,qBACE,YAAY,OACR,yCACA,UAAU,OAAO;AAAA,YACzB;AAAA,YAEC,gBAAM,IAAI,CAAC,SACV,oBAAC,iBAA4B,QAAT,KAAK,EAAgB,CAC1C;AAAA;AAAA,QACH;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAGA,SAAS,cAAc,EAAE,MAAM,UAAU,GAA4C;AACnF,QAAM,OAAO,KAAK;AAClB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM,KAAK;AAAA,MACX,UAAU,KAAK;AAAA,MACf,UAAU,KAAK;AAAA,MACf,OAAO,KAAK,WAAW,KAAK,iBAAiB;AAAA,MAC7C,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,aAAU;AAAA,MACV,eAAa,KAAK;AAAA,MAEjB;AAAA,aAAK,WACJ,oBAAC,UAAK,WAAU,uCAAsC,eAAY,QAC/D,eAAK,UACR,IAEA,QAAQ,oBAAC,QAAK,WAAU,+BAA8B,eAAY,QAAO;AAAA,QAE3E,qBAAC,UAAK,WAAU,WACd;AAAA,8BAAC,UAAK,WAAU,+CAA+C,eAAK,OAAM;AAAA,UAC1E,oBAAC,UAAK,WAAU,yDACb,eAAK,YAAY,KAAK,iBAAiB,KAAK,iBAAiB,KAAK,aACrE;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/home/index.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkDSLMJ24E_cjs = require('../chunk-DSLMJ24E.cjs');
|
|
5
5
|
var chunkE5TPRRAW_cjs = require('../chunk-E5TPRRAW.cjs');
|
|
6
6
|
var chunkUMMZNZV3_cjs = require('../chunk-UMMZNZV3.cjs');
|
|
7
7
|
var chunkAEQT2QQX_cjs = require('../chunk-AEQT2QQX.cjs');
|
|
8
|
+
var chunkSGYURQ23_cjs = require('../chunk-SGYURQ23.cjs');
|
|
8
9
|
require('../chunk-PCB2BPN3.cjs');
|
|
9
|
-
var
|
|
10
|
+
var chunkSLCH5JRI_cjs = require('../chunk-SLCH5JRI.cjs');
|
|
10
11
|
require('../chunk-YA6GXWC2.cjs');
|
|
11
12
|
require('../chunk-IPSHAMO2.cjs');
|
|
12
13
|
require('../chunk-PPCATBOY.cjs');
|
|
@@ -17,73 +18,37 @@ require('../chunk-PLIF5CUV.cjs');
|
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
Object.defineProperty(exports, "ActionMenuDialog", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return chunkHNLNRAEU_cjs.ActionMenuDialog; }
|
|
23
|
-
});
|
|
24
21
|
Object.defineProperty(exports, "CreateTile", {
|
|
25
22
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "DASHBOARD_QUIET_ACTION_CLASS", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () { return chunkHNLNRAEU_cjs.DASHBOARD_QUIET_ACTION_CLASS; }
|
|
23
|
+
get: function () { return chunkDSLMJ24E_cjs.CreateTile; }
|
|
31
24
|
});
|
|
32
25
|
Object.defineProperty(exports, "DEFAULT_GETTING_STARTED_STRIP_LABELS", {
|
|
33
26
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "DashboardAction", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () { return chunkHNLNRAEU_cjs.DashboardAction; }
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, "DashboardBand", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () { return chunkHNLNRAEU_cjs.DashboardBand; }
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(exports, "DashboardColumns", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () { return chunkHNLNRAEU_cjs.DashboardColumns; }
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "DashboardRoot", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () { return chunkHNLNRAEU_cjs.DashboardRoot; }
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(exports, "FactMark", {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function () { return chunkHNLNRAEU_cjs.FactMark; }
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(exports, "FactsStrip", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
get: function () { return chunkHNLNRAEU_cjs.FactsStrip; }
|
|
27
|
+
get: function () { return chunkDSLMJ24E_cjs.DEFAULT_GETTING_STARTED_STRIP_LABELS; }
|
|
59
28
|
});
|
|
60
29
|
Object.defineProperty(exports, "GettingStartedStrip", {
|
|
61
30
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkDSLMJ24E_cjs.GettingStartedStrip; }
|
|
63
32
|
});
|
|
64
33
|
Object.defineProperty(exports, "HomeCenteredColumn", {
|
|
65
34
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkDSLMJ24E_cjs.HomeCenteredColumn; }
|
|
67
36
|
});
|
|
68
37
|
Object.defineProperty(exports, "HomeCenteredScroll", {
|
|
69
38
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkDSLMJ24E_cjs.HomeCenteredScroll; }
|
|
71
40
|
});
|
|
72
41
|
Object.defineProperty(exports, "HomeFrame", {
|
|
73
42
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkDSLMJ24E_cjs.HomeFrame; }
|
|
75
44
|
});
|
|
76
45
|
Object.defineProperty(exports, "HomeLoadError", {
|
|
77
46
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkDSLMJ24E_cjs.HomeLoadError; }
|
|
79
48
|
});
|
|
80
49
|
Object.defineProperty(exports, "HomeMain", {
|
|
81
50
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "RecentList", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function () { return chunkHNLNRAEU_cjs.RecentList; }
|
|
51
|
+
get: function () { return chunkDSLMJ24E_cjs.HomeMain; }
|
|
87
52
|
});
|
|
88
53
|
Object.defineProperty(exports, "BulkDeleteButton", {
|
|
89
54
|
enumerable: true,
|
|
@@ -129,49 +94,89 @@ Object.defineProperty(exports, "KeyValueRow", {
|
|
|
129
94
|
enumerable: true,
|
|
130
95
|
get: function () { return chunkAEQT2QQX_cjs.KeyValueRow; }
|
|
131
96
|
});
|
|
97
|
+
Object.defineProperty(exports, "ActionMenuDialog", {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
get: function () { return chunkSGYURQ23_cjs.ActionMenuDialog; }
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, "DASHBOARD_QUIET_ACTION_CLASS", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () { return chunkSGYURQ23_cjs.DASHBOARD_QUIET_ACTION_CLASS; }
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(exports, "DashboardAction", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function () { return chunkSGYURQ23_cjs.DashboardAction; }
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(exports, "DashboardBand", {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () { return chunkSGYURQ23_cjs.DashboardBand; }
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, "DashboardColumns", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function () { return chunkSGYURQ23_cjs.DashboardColumns; }
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(exports, "DashboardRoot", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () { return chunkSGYURQ23_cjs.DashboardRoot; }
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(exports, "FactMark", {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
get: function () { return chunkSGYURQ23_cjs.FactMark; }
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(exports, "FactsStrip", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function () { return chunkSGYURQ23_cjs.FactsStrip; }
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, "RecentList", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () { return chunkSGYURQ23_cjs.RecentList; }
|
|
132
|
+
});
|
|
132
133
|
Object.defineProperty(exports, "AddFilesFirst", {
|
|
133
134
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkSLCH5JRI_cjs.AddFilesFirst; }
|
|
135
136
|
});
|
|
136
137
|
Object.defineProperty(exports, "DEFAULT_ADD_FILES_FIRST_LABELS", {
|
|
137
138
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkSLCH5JRI_cjs.DEFAULT_ADD_FILES_FIRST_LABELS; }
|
|
139
140
|
});
|
|
140
141
|
Object.defineProperty(exports, "DEFAULT_SCOPE_PICKER_LABELS", {
|
|
141
142
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkSLCH5JRI_cjs.DEFAULT_SCOPE_PICKER_LABELS; }
|
|
143
144
|
});
|
|
144
145
|
Object.defineProperty(exports, "EmptyStrip", {
|
|
145
146
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkSLCH5JRI_cjs.EmptyStrip; }
|
|
147
148
|
});
|
|
148
149
|
Object.defineProperty(exports, "FoldSection", {
|
|
149
150
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkSLCH5JRI_cjs.FoldSection; }
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, "LoadingRows", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () { return chunkSLCH5JRI_cjs.LoadingRows; }
|
|
151
156
|
});
|
|
152
157
|
Object.defineProperty(exports, "QuickActionDialogHeader", {
|
|
153
158
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkSLCH5JRI_cjs.QuickActionDialogHeader; }
|
|
155
160
|
});
|
|
156
161
|
Object.defineProperty(exports, "ScopePicker", {
|
|
157
162
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkSLCH5JRI_cjs.ScopePicker; }
|
|
159
164
|
});
|
|
160
165
|
Object.defineProperty(exports, "SectionHeader", {
|
|
161
166
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkSLCH5JRI_cjs.SectionHeader; }
|
|
163
168
|
});
|
|
164
169
|
Object.defineProperty(exports, "SectionLabel", {
|
|
165
170
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkSLCH5JRI_cjs.SectionLabel; }
|
|
167
172
|
});
|
|
168
173
|
Object.defineProperty(exports, "StartTiles", {
|
|
169
174
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkSLCH5JRI_cjs.StartTiles; }
|
|
171
176
|
});
|
|
172
177
|
Object.defineProperty(exports, "useScopeSelection", {
|
|
173
178
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkSLCH5JRI_cjs.useScopeSelection; }
|
|
175
180
|
});
|
|
176
181
|
//# sourceMappingURL=index.cjs.map
|
|
177
182
|
//# sourceMappingURL=index.cjs.map
|
package/dist/home/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SectionLabel, SectionHeader, EmptyStrip } from './sections';
|
|
1
|
+
export { SectionLabel, SectionHeader, EmptyStrip, LoadingRows } from './sections';
|
|
2
2
|
export type { SectionHeaderProps, EmptyStripProps } from './sections';
|
|
3
3
|
export { CreateTile } from './CreateTile';
|
|
4
4
|
export type { CreateTileProps } from './CreateTile';
|
package/dist/home/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { SectionLabel, SectionHeader, EmptyStrip } from "./sections.js";
|
|
2
|
+
import { SectionLabel, SectionHeader, EmptyStrip, LoadingRows } from "./sections.js";
|
|
3
3
|
import { CreateTile } from "./CreateTile.js";
|
|
4
4
|
import { StartTiles } from "./StartTiles.js";
|
|
5
5
|
import { RecentList } from "./RecentList.js";
|
|
@@ -66,6 +66,7 @@ export {
|
|
|
66
66
|
HomeLoadError,
|
|
67
67
|
HomeMain,
|
|
68
68
|
KeyValueRow,
|
|
69
|
+
LoadingRows,
|
|
69
70
|
PlainBandTitle,
|
|
70
71
|
ProjectBandTitle,
|
|
71
72
|
ProjectBreakdown,
|
package/dist/home/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/home/index.ts"],
|
|
4
|
-
"sourcesContent": ["// @arbidocs/blocks/home: public API of this area (view-models + parts).\nexport { SectionLabel, SectionHeader, EmptyStrip } from './sections'\nexport type { SectionHeaderProps, EmptyStripProps } from './sections'\n\n// Workspace tiles and their groups\nexport { CreateTile } from './CreateTile'\nexport type { CreateTileProps } from './CreateTile'\n\n// Dashboard bands\nexport { StartTiles } from './StartTiles'\nexport type { StartTile, StartTilesProps } from './StartTiles'\nexport { RecentList } from './RecentList'\nexport type { RecentRow, RecentListEmpty, RecentListProps } from './RecentList'\nexport { FactsStrip } from './FactsStrip'\nexport type { FactsStripRow, FactsStripGroup, FactsStripEmpty, FactsStripProps } from './FactsStrip'\nexport { GettingStartedStrip, DEFAULT_GETTING_STARTED_STRIP_LABELS } from './GettingStartedStrip'\nexport type {\n JourneyStep,\n GettingStartedStripProps,\n GettingStartedStripLabels,\n} from './GettingStartedStrip'\n\n// Quick-action dialog scaffolding\nexport { QuickActionDialogHeader } from './QuickActionDialogHeader'\nexport type { QuickActionDialogHeaderProps } from './QuickActionDialogHeader'\nexport { ActionMenuDialog } from './ActionMenuDialog'\nexport type { ActionMenuDialogProps, ActionMenuItem } from './ActionMenuDialog'\nexport { AddFilesFirst, DEFAULT_ADD_FILES_FIRST_LABELS } from './AddFilesFirst'\nexport type { AddFilesFirstProps, AddFilesFirstLabels } from './AddFilesFirst'\nexport { ScopePicker, DEFAULT_SCOPE_PICKER_LABELS } from './ScopePicker'\nexport type { ScopePickerProps, ScopePickerLabels, ScopeFolder, ScopeLabel } from './ScopePicker'\nexport { useScopeSelection } from '../lib/useScopeSelection'\nexport type { DocumentScope, UseScopeSelectionOptions } from '../lib/useScopeSelection'\n\n// Generic building blocks\nexport { CollapsibleSection, DEFAULT_COLLAPSIBLE_SECTION_LABELS } from './CollapsibleSection'\nexport type { CollapsibleSectionProps, CollapsibleSectionLabels } from './CollapsibleSection'\nexport { FoldSection } from './FoldSection'\nexport type { FoldSectionProps } from './FoldSection'\nexport { KeyValueRow, DEFAULT_KEY_VALUE_ROW_LABELS } from './KeyValueRow'\nexport type { KeyValueRowProps, KeyValueRowLabels } from './KeyValueRow'\nexport {\n DashboardRoot,\n DashboardBand,\n DashboardColumns,\n DashboardAction,\n FactMark,\n DASHBOARD_QUIET_ACTION_CLASS,\n} from './DashboardParts'\nexport type { DashboardActionProps } from './DashboardParts'\nexport {\n PlainBandTitle,\n ProjectBandTitle,\n ProjectBreakdown,\n ProjectReadout,\n GridWithSelectionBar,\n BulkDeleteButton,\n GridCellRow,\n} from './ProjectBandParts'\nexport type {\n ProjectBandTitleProps,\n ProjectBreakdownProps,\n ProjectReadoutProps,\n BulkDeleteButtonProps,\n} from './ProjectBandParts'\nexport {\n HomeFrame,\n HomeMain,\n HomeCenteredScroll,\n HomeCenteredColumn,\n HomeLoadError,\n} from './HomeLayout'\n"],
|
|
5
|
-
"mappings": ";AACA,SAAS,cAAc,eAAe,
|
|
4
|
+
"sourcesContent": ["// @arbidocs/blocks/home: public API of this area (view-models + parts).\nexport { SectionLabel, SectionHeader, EmptyStrip, LoadingRows } from './sections'\nexport type { SectionHeaderProps, EmptyStripProps } from './sections'\n\n// Workspace tiles and their groups\nexport { CreateTile } from './CreateTile'\nexport type { CreateTileProps } from './CreateTile'\n\n// Dashboard bands\nexport { StartTiles } from './StartTiles'\nexport type { StartTile, StartTilesProps } from './StartTiles'\nexport { RecentList } from './RecentList'\nexport type { RecentRow, RecentListEmpty, RecentListProps } from './RecentList'\nexport { FactsStrip } from './FactsStrip'\nexport type { FactsStripRow, FactsStripGroup, FactsStripEmpty, FactsStripProps } from './FactsStrip'\nexport { GettingStartedStrip, DEFAULT_GETTING_STARTED_STRIP_LABELS } from './GettingStartedStrip'\nexport type {\n JourneyStep,\n GettingStartedStripProps,\n GettingStartedStripLabels,\n} from './GettingStartedStrip'\n\n// Quick-action dialog scaffolding\nexport { QuickActionDialogHeader } from './QuickActionDialogHeader'\nexport type { QuickActionDialogHeaderProps } from './QuickActionDialogHeader'\nexport { ActionMenuDialog } from './ActionMenuDialog'\nexport type { ActionMenuDialogProps, ActionMenuItem } from './ActionMenuDialog'\nexport { AddFilesFirst, DEFAULT_ADD_FILES_FIRST_LABELS } from './AddFilesFirst'\nexport type { AddFilesFirstProps, AddFilesFirstLabels } from './AddFilesFirst'\nexport { ScopePicker, DEFAULT_SCOPE_PICKER_LABELS } from './ScopePicker'\nexport type { ScopePickerProps, ScopePickerLabels, ScopeFolder, ScopeLabel } from './ScopePicker'\nexport { useScopeSelection } from '../lib/useScopeSelection'\nexport type { DocumentScope, UseScopeSelectionOptions } from '../lib/useScopeSelection'\n\n// Generic building blocks\nexport { CollapsibleSection, DEFAULT_COLLAPSIBLE_SECTION_LABELS } from './CollapsibleSection'\nexport type { CollapsibleSectionProps, CollapsibleSectionLabels } from './CollapsibleSection'\nexport { FoldSection } from './FoldSection'\nexport type { FoldSectionProps } from './FoldSection'\nexport { KeyValueRow, DEFAULT_KEY_VALUE_ROW_LABELS } from './KeyValueRow'\nexport type { KeyValueRowProps, KeyValueRowLabels } from './KeyValueRow'\nexport {\n DashboardRoot,\n DashboardBand,\n DashboardColumns,\n DashboardAction,\n FactMark,\n DASHBOARD_QUIET_ACTION_CLASS,\n} from './DashboardParts'\nexport type { DashboardActionProps } from './DashboardParts'\nexport {\n PlainBandTitle,\n ProjectBandTitle,\n ProjectBreakdown,\n ProjectReadout,\n GridWithSelectionBar,\n BulkDeleteButton,\n GridCellRow,\n} from './ProjectBandParts'\nexport type {\n ProjectBandTitleProps,\n ProjectBreakdownProps,\n ProjectReadoutProps,\n BulkDeleteButtonProps,\n} from './ProjectBandParts'\nexport {\n HomeFrame,\n HomeMain,\n HomeCenteredScroll,\n HomeCenteredColumn,\n HomeLoadError,\n} from './HomeLayout'\n"],
|
|
5
|
+
"mappings": ";AACA,SAAS,cAAc,eAAe,YAAY,mBAAmB;AAIrE,SAAS,kBAAkB;AAI3B,SAAS,kBAAkB;AAE3B,SAAS,kBAAkB;AAE3B,SAAS,kBAAkB;AAE3B,SAAS,qBAAqB,4CAA4C;AAQ1E,SAAS,+BAA+B;AAExC,SAAS,wBAAwB;AAEjC,SAAS,eAAe,sCAAsC;AAE9D,SAAS,aAAa,mCAAmC;AAEzD,SAAS,yBAAyB;AAIlC,SAAS,oBAAoB,0CAA0C;AAEvE,SAAS,mBAAmB;AAE5B,SAAS,aAAa,oCAAoC;AAE1D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/home/sections.d.ts
CHANGED
|
@@ -31,3 +31,8 @@ export interface EmptyStripProps {
|
|
|
31
31
|
}
|
|
32
32
|
/** One tonal strip that stands in for an empty section: an invitation, not a void. */
|
|
33
33
|
export declare function EmptyStrip({ icon: Icon, label, description, onSelect, testId, }: EmptyStripProps): import("react").JSX.Element;
|
|
34
|
+
/** A section still loading: a few quiet placeholder rows, so it does not invite a first item yet. */
|
|
35
|
+
export declare function LoadingRows({ rows, testId }: {
|
|
36
|
+
rows?: number;
|
|
37
|
+
testId?: string;
|
|
38
|
+
}): import("react").JSX.Element;
|
package/dist/home/sections.js
CHANGED
|
@@ -83,8 +83,15 @@ function EmptyStrip({
|
|
|
83
83
|
}
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
|
+
function LoadingRows({ rows = 3, testId }) {
|
|
87
|
+
return /* @__PURE__ */ jsx("ul", { "aria-busy": "true", "data-slot": "loading-rows", "data-testid": testId, children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-3 px-3 py-2", children: [
|
|
88
|
+
/* @__PURE__ */ jsx("span", { className: "size-5 shrink-0 animate-pulse rounded bg-muted" }),
|
|
89
|
+
/* @__PURE__ */ jsx("span", { className: "h-4 flex-1 animate-pulse rounded bg-muted" })
|
|
90
|
+
] }, i)) });
|
|
91
|
+
}
|
|
86
92
|
export {
|
|
87
93
|
EmptyStrip,
|
|
94
|
+
LoadingRows,
|
|
88
95
|
SectionHeader,
|
|
89
96
|
SectionLabel
|
|
90
97
|
};
|