@marimo-team/islands 0.22.1-dev4 → 0.22.1-dev40
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/{ConnectedDataExplorerComponent-Dl1grr8z.js → ConnectedDataExplorerComponent-DuD8BVl6.js} +54 -54
- package/dist/{Plot-WhbJAbBh.js → Plot-BxlSHo0G.js} +47 -38
- package/dist/_basePickBy-Sow3pJjS.js +41 -0
- package/dist/{_baseUniq-B4eL5sTC.js → _baseUniq-C87CckHL.js} +15 -54
- package/dist/{any-language-editor-CT_9yBde.js → any-language-editor-BHH_pQ6M.js} +21 -21
- package/dist/architecture-7HQA4BMR-BHdkAMvZ.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-vxgYGIMP.js → architectureDiagram-VXUJARFQ-B3YQo9At.js} +15 -15
- package/dist/{arrays-Du-jRBAy.js → arrays-beUWo8RF.js} +1 -1
- package/dist/assets/__vite-browser-external-WSlCcXn_.js +1 -0
- package/dist/assets/{worker-D10K3OOz.js → worker-DUYMdbtA.js} +2 -2
- package/dist/{blockDiagram-VD42YOAC-C7x6YTH7.js → blockDiagram-VD42YOAC-CpQ3TKEN.js} +7 -7
- package/dist/{button-qsiIHncQ.js → button-DNlNlZY_.js} +82 -84
- package/dist/{c4Diagram-YG6GDRKO-Cx4oseGg.js → c4Diagram-YG6GDRKO-CZSU4uqU.js} +4 -4
- package/dist/{capabilities-26mwv03y.js → capabilities-Coe9eM9T.js} +2 -2
- package/dist/{channel-C_50jIAn.js → channel-X3JKk8gE.js} +1 -1
- package/dist/{chat-ui-CtqUthFR.js → chat-ui-Cel1kBfc.js} +147 -146
- package/dist/{check-D_YwHEgY.js → check-CWUkiHmb.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-Dvo_CFnR.js → chunk-4F5CHEZ2-D5mClyDv.js} +1 -1
- package/dist/{chunk-ABZYJK2D-D5YIs71w.js → chunk-ABZYJK2D-CZYCCtLy.js} +1 -1
- package/dist/{chunk-ATLVNIR6-CyOjzOcf.js → chunk-ATLVNIR6-DaOzLLgN.js} +1 -1
- package/dist/{chunk-B2363JML-BzZqINRO.js → chunk-B2363JML-Br0eA2T3.js} +1 -1
- package/dist/{chunk-B4BG7PRW-ZJeV3KdD.js → chunk-B4BG7PRW-4BjV11Br.js} +4 -4
- package/dist/{chunk-DI55MBZ5-Dx_wwX6l.js → chunk-DI55MBZ5-DITY3EyP.js} +4 -4
- package/dist/{chunk-EXTU4WIE-CgefpSXQ.js → chunk-EXTU4WIE-jUPSAk3i.js} +1 -1
- package/dist/{chunk-FRFDVMJY-Derq8UzY.js → chunk-FRFDVMJY-DnEvEFRR.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-CcIOIFpc.js → chunk-JA3XYJ7Z-BcPEfxk_.js} +2 -2
- package/dist/{chunk-JZLCHNYA-CgO0GG1p.js → chunk-JZLCHNYA-2bnLL3xL.js} +4 -4
- package/dist/{chunk-N4CR4FBY-2qzGzAxT.js → chunk-N4CR4FBY-CpZSuGSU.js} +5 -5
- package/dist/{chunk-PL6DKKU2-KoG71Zin.js → chunk-PL6DKKU2-DnId6G-x.js} +1 -1
- package/dist/{chunk-QN33PNHL-Dp1qBo28.js → chunk-QN33PNHL-B9p5ojHB.js} +1 -1
- package/dist/{chunk-QXUST7PY-BxmmeIwf.js → chunk-QXUST7PY-Ch6F5Obl.js} +5 -5
- package/dist/{chunk-S3R3BYOJ-D3Rys9ZW.js → chunk-S3R3BYOJ-B0UOFJwq.js} +3 -3
- package/dist/{chunk-SJTYNZTY-Co-DhKAG.js → chunk-SJTYNZTY-BsBZnJUj.js} +1 -1
- package/dist/{chunk-TCCFYFTB-BAhzIqBO.js → chunk-TCCFYFTB-Clbl-fTg.js} +8 -7
- package/dist/{chunk-TQ3KTPDO-DxYI735Z.js → chunk-TQ3KTPDO-CFkSQ30e.js} +1 -1
- package/dist/{chunk-TZMSLE5B-Dxumt0wv.js → chunk-TZMSLE5B-D45397J2.js} +1 -1
- package/dist/{chunk-UMXZTB3W-CuahpKin.js → chunk-UMXZTB3W-D-A834Bq.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-CYoFMQKE.js → classDiagram-2ON5EDUG-C8-zE3Zv.js} +10 -10
- package/dist/{classDiagram-2ON5EDUG-DkOvXRlx.js → classDiagram-v2-WZHVMYZB-DrmbGANl.js} +10 -10
- package/dist/{clone-DDndUqI0.js → clone-DZFQCtFJ.js} +1 -1
- package/dist/{constants-D1Am36hX.js → constants-CvyfaCvs.js} +3 -3
- package/dist/{copy-CBo9JcJW.js → copy-B7781WJ3.js} +2 -2
- package/dist/{dagre-6UL2VRFP-BXBaU8PB.js → dagre-6UL2VRFP-OMItEBnY.js} +12 -12
- package/dist/{dagre-D3dlYz-r.js → dagre-QVd-lCXU.js} +13 -23
- package/dist/{data-grid-overlay-editor-nZux6_d2.js → data-grid-overlay-editor-lKF301ME.js} +1 -1
- package/dist/{diagram-PSM6KHXK-CJxjk4LG.js → diagram-PSM6KHXK-CkKbohWI.js} +16 -16
- package/dist/{diagram-QEK2KX5R-IMILPh_p.js → diagram-QEK2KX5R-DjUMpVcx.js} +14 -14
- package/dist/{diagram-S2PKOQOG-6O0g6Boj.js → diagram-S2PKOQOG-b-c0d-wZ.js} +14 -14
- package/dist/{dist-BkXs8bw0.js → dist--6TSlp8H.js} +1 -1
- package/dist/dist-7K5doRvB.js +6 -0
- package/dist/{dist-CQidOwep.js → dist-B43sbpd0.js} +3 -3
- package/dist/dist-B6I_A2-E.js +8 -0
- package/dist/dist-BEQsmaZY.js +5 -0
- package/dist/dist-BasY2RHp.js +8 -0
- package/dist/{dist-BemtTYzN.js → dist-Bfp1XXWt.js} +5 -5
- package/dist/{dist-v-1kgqZ3.js → dist-BjDuO5JW.js} +1 -1
- package/dist/dist-Bosc00dY.js +5 -0
- package/dist/{dist-DLNKBPsk.js → dist-BrxqmS9Q.js} +4 -4
- package/dist/{dist-DBYL08Lu.js → dist-BvhGByxL.js} +4 -4
- package/dist/{dist-CVqlhD3M.js → dist-C4bq5Ioy.js} +2 -2
- package/dist/{dist-DwmxBUOe.js → dist-CFKdzOIu.js} +2 -2
- package/dist/{dist-5nTQE2yt.js → dist-CIB8w0Fl.js} +2 -2
- package/dist/{dist-C-EcLtO9.js → dist-CNF0QBLR.js} +1 -1
- package/dist/dist-CQMZOn-_.js +8 -0
- package/dist/dist-CViQhWZ8.js +5 -0
- package/dist/{dist-Dg65j0em.js → dist-CcMfr7jD.js} +1 -1
- package/dist/{dist-C0XYIHKJ.js → dist-Ci0CXEFt.js} +1 -1
- package/dist/dist-Cz6rLfwY.js +5 -0
- package/dist/dist-D8eq8st3.js +6 -0
- package/dist/{dist-qoCY8giM.js → dist-DAfcmt-d.js} +2 -2
- package/dist/{dist-B6Op2ogv.js → dist-DD_cYHOl.js} +2 -2
- package/dist/{dist-BUSLKXcu.js → dist-DFK94vuS.js} +2 -2
- package/dist/{dist-DBXPlQ0D.js → dist-DGNtjMZu.js} +1 -1
- package/dist/{dist-C9qF7MRB.js → dist-DJ9F1eHs.js} +2 -2
- package/dist/{dist-Ci_jEudG.js → dist-DJKubHDd.js} +1 -1
- package/dist/{dist-CnFp2Kcl.js → dist-DLafRu9s.js} +2 -2
- package/dist/dist-DM1UDXdl.js +5 -0
- package/dist/dist-DNrtWPgS.js +5 -0
- package/dist/dist-D_UjpfOY.js +1381 -0
- package/dist/{dist-DmFS6KZW.js → dist-DbnBiLNH.js} +3 -3
- package/dist/{dist-BiZZAo22.js → dist-DlSUOIm9.js} +1 -1
- package/dist/{dist-DStU8He1.js → dist-Doy0mQDg.js} +2 -2
- package/dist/{dist-CxAX99oC.js → dist-DpkJHKB8.js} +2 -2
- package/dist/{dist-DjaZNkZ7.js → dist-LhQNUe5A.js} +3 -3
- package/dist/dist-V7q2qnpA.js +5 -0
- package/dist/{dist-BJ3fhRYu.js → dist-VqF3W_ue.js} +2 -2
- package/dist/dist-a5_hPgu2.js +8 -0
- package/dist/{dist-B9KLrfoh.js → dist-ej6AQKaS.js} +1 -1
- package/dist/{dist-Brb6VNc4.js → dist-m9tsXsFf.js} +2 -2
- package/dist/{dist-CBwMSFDu.js → dist-tGk0aZ--.js} +2 -2
- package/dist/dist-uVyZcV1-.js +5 -0
- package/dist/{erDiagram-Q2GNP2WA-sho7Cl9f.js → erDiagram-Q2GNP2WA-CDhLaOZ1.js} +10 -10
- package/dist/{error-banner-Bx9kIgrs.js → error-banner-Cjf0RU9I.js} +79 -79
- package/dist/{esm-CMg2ABu6.js → esm-4wmsH2lp.js} +6 -6
- package/dist/{esm-cqK9POGH.js → esm-CD1iby2n.js} +23 -23
- package/dist/{flowDiagram-NV44I4VS-C4nY4Fbz.js → flowDiagram-NV44I4VS-BDi4O4CL.js} +10 -10
- package/dist/{ganttDiagram-JELNMOA3-CtxNcCM2.js → ganttDiagram-JELNMOA3-BpZE6kVp.js} +3 -3
- package/dist/{gitGraph-G5XIXVHT-SL6TDof6.js → gitGraph-G5XIXVHT-B_c6xFJv.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-D9885mxd.js → gitGraphDiagram-V2S2FVAM-iQnXzbPM.js} +13 -13
- package/dist/{glide-data-editor-CkVEV-Gk.js → glide-data-editor-BqnvTmDo.js} +1739 -1708
- package/dist/{graphlib-CxWdvYQt.js → graphlib-BV1_gi0C.js} +4 -3
- package/dist/hasIn-DnfJcYpY.js +108 -0
- package/dist/{info-VBDWY6EO-6MXPTSmi.js → info-VBDWY6EO-BTyzxmhr.js} +3 -3
- package/dist/{infoDiagram-HS3SLOUP-Bw2FlRwF.js → infoDiagram-HS3SLOUP-OYrX6uO3.js} +13 -13
- package/dist/{input-BSde8uV4.js → input-CFY9gApZ.js} +5055 -5055
- package/dist/{isEmpty-BQtUinxJ.js → isEmpty-B7FX9wKt.js} +1 -1
- package/dist/{isSymbol-DFp8040B.js → isSymbol-DCbjQG_U.js} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-BXlCEth8.js → journeyDiagram-XKPGCS4Q-ClPC94aN.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-CorxzSYm.js → kanban-definition-3W4ZIXB7-DHEAKdZt.js} +7 -7
- package/dist/{label-DTNqw9tv.js → label-DbZGAoCH.js} +538 -569
- package/dist/{loader-3c9hT4kT.js → loader-Bd1kgLn7.js} +19 -16
- package/dist/main.js +3203 -3105
- package/dist/{memoize-CuHciEBb.js → memoize-CSTI9eOX.js} +1 -1
- package/dist/{merge-CA_buyY3.js → merge-CVhG7q_o.js} +1 -1
- package/dist/{mermaid-CEKslOkI.js → mermaid-B2HDLx2g.js} +54 -54
- package/dist/{mermaid-parser.core-cq4YDee-.js → mermaid-parser.core-ntCgyx0x.js} +8 -8
- package/dist/min-Ds3gG0Ff.js +96 -0
- package/dist/{mindmap-definition-VGOIOE7T-DRsT8UaN.js → mindmap-definition-VGOIOE7T-CxEUZZvY.js} +9 -9
- package/dist/{now-CXAdKY5k.js → now-nrrrOr01.js} +1 -1
- package/dist/{once-CZno0h-b.js → once-C_TIu-kR.js} +1 -1
- package/dist/{packet-DYOGHKS2-Dw08gMaZ.js → packet-DYOGHKS2-BhvnpoGi.js} +3 -3
- package/dist/{pie-VRWISCQL-C5SPSvT8.js → pie-VRWISCQL-dILuA3iG.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-DhJ1Cx2O.js → pieDiagram-ADFJNKIX-U3LrUqAS.js} +14 -14
- package/dist/{process-output-KyzWazB-.js → process-output-DC1TOnIl.js} +3184 -3207
- package/dist/{quadrantDiagram-AYHSOK5B-DXUFIWlz.js → quadrantDiagram-AYHSOK5B-BVWuq-3R.js} +2 -2
- package/dist/{radar-ZZBFDIW7-BvY0bgSg.js → radar-ZZBFDIW7-DwFrOJDj.js} +3 -3
- package/dist/range-fJeId9Ri.js +30 -0
- package/dist/{requirementDiagram-UZGBJVZJ-DO_gtQIb.js → requirementDiagram-UZGBJVZJ-D0zpQnKC.js} +9 -9
- package/dist/{sankeyDiagram-TZEHDZUN-OZzXEkuG.js → sankeyDiagram-TZEHDZUN-CExy1joT.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-K7nZRifV.js → sequenceDiagram-WL72ISMW-D1BJxLjH.js} +4 -4
- package/dist/{slides-component-CIcSvFh7.js → slides-component-CX2JC-Ws.js} +2 -2
- package/dist/{spec-DYaR1rJh.js → spec-CD7QaCV-.js} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-DzXJZAq7.js → stateDiagram-FKZM4ZOC-B1S8jGMn.js} +12 -12
- package/dist/{stateDiagram-v2-4FDKWEC3-BZBPUmyF.js → stateDiagram-v2-4FDKWEC3-BH5ozUbc.js} +10 -10
- package/dist/stex-CQDv3aS8.js +4 -0
- package/dist/style.css +1 -1
- package/dist/{timeline-definition-IT6M3QCI-DNoLAh-i.js → timeline-definition-IT6M3QCI-BDT9JAmn.js} +2 -2
- package/dist/{toDate-D6VXexnV.js → toDate-CUqpEbBS.js} +5 -5
- package/dist/{toNumber-xFPoy1OI.js → toNumber-55tjPCWr.js} +2 -2
- package/dist/tooltip-BXEpXV3R.js +404 -0
- package/dist/{treemap-GDKQZRPO-C5OoxpmV.js → treemap-GDKQZRPO-bx2ngsgN.js} +3 -3
- package/dist/{types-CQ-RbYxp.js → types-D_ntCXg0.js} +3 -3
- package/dist/{useAsyncData-Cd4Urlww.js → useAsyncData-rN1nzPaS.js} +2 -2
- package/dist/{useDeepCompareMemoize-X7clcrcQ.js → useDeepCompareMemoize-Ch-7Rk2x.js} +4 -4
- package/dist/{useIframeCapabilities-BVQrlRBd.js → useIframeCapabilities-CqhrVue6.js} +1 -1
- package/dist/useLifecycle-4fA1pHoh.js +177 -0
- package/dist/{useTheme-Dm1WaAGy.js → useTheme-MWfxn4oz.js} +4 -5
- package/dist/{vega-component-A6unyUJS.js → vega-component-CPhNLfZZ.js} +25 -25
- package/dist/{xychartDiagram-PRI3JC2R-ehVeySMW.js → xychartDiagram-PRI3JC2R-CuAZiqHS.js} +5 -5
- package/dist/{Combination-B--d1_LV.js → zod-C6UGQ3fz.js} +8085 -8151
- package/package.json +8 -41
- package/src/__mocks__/common.ts +4 -4
- package/src/__tests__/main.test.tsx +12 -14
- package/src/components/ai/ai-provider-icon.tsx +3 -2
- package/src/components/app-config/user-config-form.tsx +0 -27
- package/src/components/chat/acp/agent-docs.tsx +3 -3
- package/src/components/chat/acp/agent-panel.tsx +71 -24
- package/src/components/chat/acp/agent-selector.tsx +2 -11
- package/src/components/chat/acp/state.ts +15 -3
- package/src/components/chat/chat-history-popover.tsx +1 -1
- package/src/components/chat/chat-panel.tsx +2 -1
- package/src/components/data-table/TableBottomBar.tsx +12 -1
- package/src/components/data-table/TableTopBar.tsx +31 -35
- package/src/components/data-table/__tests__/columns.test.tsx +7 -7
- package/src/components/data-table/cell-hover-template/types.ts +1 -1
- package/src/components/data-table/cell-hover-text/types.ts +1 -1
- package/src/components/data-table/cell-selection/__tests__/feature.test.ts +1 -1
- package/src/components/data-table/cell-selection/types.ts +4 -3
- package/src/components/data-table/cell-styling/types.ts +1 -1
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +2 -2
- package/src/components/data-table/charts/charts.tsx +42 -13
- package/src/components/data-table/charts/components/chart-items.tsx +1 -1
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
- package/src/components/data-table/column-formatting/types.ts +5 -4
- package/src/components/data-table/column-header.tsx +4 -2
- package/src/components/data-table/column-summary/legacy-chart-spec.ts +1 -1
- package/src/components/data-table/column-wrapping/types.ts +4 -3
- package/src/components/data-table/columns.tsx +4 -1
- package/src/components/data-table/copy-column/types.ts +4 -3
- package/src/components/data-table/data-table.tsx +16 -11
- package/src/components/data-table/focus-row/types.ts +4 -3
- package/src/components/data-table/loading-table.tsx +5 -2
- package/src/components/data-table/pagination.tsx +1 -1
- package/src/components/data-table/range-focus/__tests__/atoms.test.ts +13 -13
- package/src/components/data-table/range-focus/__tests__/use-cell-range-selection.test.ts +9 -11
- package/src/components/data-table/range-focus/atoms.ts +2 -2
- package/src/components/data-table/range-focus/cell-selection-stats.tsx +3 -1
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +1 -1
- package/src/components/data-table/table-explorer-panel/table-explorer-panel.tsx +2 -2
- package/src/components/dependency-graph/dependency-graph-tree.tsx +1 -1
- package/src/components/editor/__tests__/data-attributes.test.tsx +93 -94
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +1 -1
- package/src/components/editor/actions/name-cell-input.tsx +4 -2
- package/src/components/editor/actions/pair-with-agent-modal.tsx +142 -0
- package/src/components/editor/actions/useCellActionButton.tsx +4 -2
- package/src/components/editor/actions/useNotebookActions.tsx +10 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +2 -1
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
- package/src/components/editor/app-container.tsx +1 -1
- package/src/components/editor/cell/CellStatus.tsx +4 -5
- package/src/components/editor/cell/cell-context-menu.tsx +4 -2
- package/src/components/editor/cell/code/cell-editor.tsx +3 -2
- package/src/components/editor/cell/toolbar.tsx +2 -1
- package/src/components/editor/chrome/components/contribute-snippet-button.tsx +4 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +4 -1
- package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/empty-state.tsx +1 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +0 -10
- package/src/components/editor/chrome/panels/snippets-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +1 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +4 -1
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +2 -1
- package/src/components/editor/chrome/wrapper/storage.ts +2 -2
- package/src/components/editor/connections/database/as-code.ts +1 -1
- package/src/components/editor/connections/form-renderers.tsx +1 -1
- package/src/components/editor/connections/storage/as-code.ts +1 -1
- package/src/components/editor/controls/keyboard-shortcuts.tsx +1 -1
- package/src/components/editor/header/filename-input.tsx +4 -1
- package/src/components/editor/links/cell-link-list.tsx +1 -1
- package/src/components/editor/navigation/__tests__/navigation.test.ts +1 -1
- package/src/components/editor/navigation/clipboard.ts +1 -1
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +2 -2
- package/src/components/editor/navigation/navigation.ts +3 -3
- package/src/components/editor/notebook-cell.tsx +1 -1
- package/src/components/editor/output/JsonOutput.tsx +6 -6
- package/src/components/editor/output/ansi-reduce.ts +2 -2
- package/src/components/editor/output/console/ConsoleOutput.tsx +2 -2
- package/src/components/editor/renderers/cells-renderer.tsx +1 -1
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +1 -1
- package/src/components/editor/renderers/plugins.ts +1 -1
- package/src/components/editor/renderers/slides-layout/types.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +1 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -13
- package/src/components/find-replace/find-replace.tsx +3 -1
- package/src/components/forms/form.tsx +1 -1
- package/src/components/forms/options.ts +1 -1
- package/src/components/pages/gallery-page.tsx +1 -1
- package/src/components/static-html/static-banner.tsx +2 -2
- package/src/components/storage/__tests__/storage-snippets.test.ts +4 -6
- package/src/components/terminal/terminal.tsx +4 -4
- package/src/components/tracing/tracing.test.tsx +30 -30
- package/src/components/ui/accordion.tsx +1 -1
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/badge.tsx +2 -1
- package/src/components/ui/button.tsx +5 -4
- package/src/components/ui/calendar.tsx +3 -2
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +2 -1
- package/src/components/ui/command.tsx +5 -2
- package/src/components/ui/context-menu.tsx +1 -1
- package/src/components/ui/date-input.tsx +7 -6
- package/src/components/ui/date-picker.tsx +6 -4
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/draggable-popover.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +2 -1
- package/src/components/ui/field.tsx +1 -2
- package/src/components/ui/form.tsx +4 -5
- package/src/components/ui/fullscreen.tsx +4 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/navigation.tsx +1 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +4 -3
- package/src/components/ui/query-param-preserving-link.tsx +4 -2
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/range-slider.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/sheet.tsx +3 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -2
- package/src/components/ui/toast.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/components/variables/variables-table.tsx +1 -1
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +1 -1
- package/src/core/ai/context/providers/__tests__/error.test.ts +1 -1
- package/src/core/ai/context/providers/__tests__/variable.test.ts +1 -1
- package/src/core/ai/context/providers/cell-output.ts +1 -2
- package/src/core/ai/context/registry.ts +2 -2
- package/src/core/ai/tools/edit-notebook-tool.ts +4 -3
- package/src/core/ai/tools/registry.ts +1 -1
- package/src/core/ai/tools/run-cells-tool.ts +4 -3
- package/src/core/cells/__tests__/add-missing-import.test.ts +23 -22
- package/src/core/cells/__tests__/cell.test.ts +14 -13
- package/src/core/cells/__tests__/cells.test.ts +2 -2
- package/src/core/cells/__tests__/scrollCellIntoView.test.ts +1 -1
- package/src/core/cells/__tests__/session.test.ts +1 -1
- package/src/core/cells/__tests__/utils.test.ts +1 -1
- package/src/core/cells/cells.ts +2 -2
- package/src/core/cells/ids.ts +1 -1
- package/src/core/cells/logs.ts +1 -1
- package/src/core/codemirror/ai/request.ts +1 -1
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +15 -17
- package/src/core/codemirror/cells/traceback-decorations.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +129 -3
- package/src/core/codemirror/copilot/client.ts +9 -2
- package/src/core/codemirror/copilot/getCodes.ts +1 -1
- package/src/core/codemirror/copilot/language-server.ts +12 -1
- package/src/core/codemirror/copilot/transport.ts +34 -8
- package/src/core/codemirror/copilot/types.ts +1 -1
- package/src/core/codemirror/facet.ts +1 -1
- package/src/core/codemirror/language/__tests__/sql.test.ts +4 -4
- package/src/core/codemirror/language/languages/markdown.ts +1 -3
- package/src/core/codemirror/language/languages/python.ts +4 -0
- package/src/core/codemirror/language/languages/sql/completion-builder.ts +1 -1
- package/src/core/codemirror/language/languages/sql/completion-sources.tsx +4 -6
- package/src/core/codemirror/language/languages/sql/sql.ts +1 -3
- package/src/core/codemirror/language/metadata.ts +1 -1
- package/src/core/codemirror/language/panel/sql.tsx +4 -1
- package/src/core/codemirror/language/types.ts +1 -1
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -1
- package/src/core/codemirror/lsp/notebook-lsp.ts +1 -1
- package/src/core/codemirror/misc/__tests__/dnd.test.ts +1 -1
- package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +28 -42
- package/src/core/codemirror/rtc/loro/awareness.ts +1 -1
- package/src/core/config/__tests__/config-schema.test.ts +2 -6
- package/src/core/config/config-schema.ts +0 -1
- package/src/core/config/feature-flag.tsx +1 -3
- package/src/core/datasets/data-source-connections.ts +4 -2
- package/src/core/datasets/state.ts +1 -1
- package/src/core/dom/__tests__/htmlUtils.test.ts +8 -14
- package/src/core/dom/__tests__/outline.test.ts +2 -3
- package/src/core/dom/outline.ts +1 -1
- package/src/core/edit-app.tsx +4 -1
- package/src/core/export/__tests__/hooks.test.ts +1 -1
- package/src/core/hotkeys/__tests__/hotkeys.test.ts +1 -1
- package/src/core/hotkeys/shortcuts.ts +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +2 -2
- package/src/core/islands/__tests__/parse.test.ts +8 -7
- package/src/core/islands/bridge.ts +2 -2
- package/src/core/islands/components/output-wrapper.tsx +1 -1
- package/src/core/islands/parse.ts +1 -1
- package/src/core/lsp/__tests__/transport.test.ts +1 -1
- package/src/core/network/CachingRequestRegistry.ts +1 -1
- package/src/core/network/DeferredRequestRegistry.ts +1 -1
- package/src/core/network/__tests__/requests-network.test.ts +1 -1
- package/src/core/network/api.ts +2 -2
- package/src/core/network/requests-lazy.ts +1 -1
- package/src/core/network/requests-toasting.tsx +1 -1
- package/src/core/runtime/runtime.ts +1 -0
- package/src/core/saving/__tests__/filename.test.ts +7 -6
- package/src/core/static/__tests__/download-html.test.ts +16 -15
- package/src/core/static/__tests__/files.test.ts +30 -28
- package/src/core/static/files.ts +1 -1
- package/src/core/vscode/vscode-bindings.ts +1 -1
- package/src/core/wasm/bridge.ts +3 -3
- package/src/core/wasm/worker/tracer.ts +1 -1
- package/src/core/websocket/useWebSocket.tsx +5 -3
- package/src/css/app/Cell.css +25 -1
- package/src/css/globals.css +18 -16
- package/src/css/table.css +17 -0
- package/src/custom.d.ts +1 -1
- package/src/hooks/__tests__/useDuplicateShortcuts.test.ts +3 -3
- package/src/hooks/debug.ts +3 -3
- package/src/hooks/useDebounce.ts +1 -1
- package/src/hooks/useEventListener.ts +1 -1
- package/src/hooks/useHotkey.ts +1 -1
- package/src/hooks/useLifecycle.ts +2 -2
- package/src/hooks/useNonce.ts +1 -1
- package/src/hooks/useResizeObserver.ts +2 -2
- package/src/main.tsx +1 -1
- package/src/plugins/core/BadPlugin.tsx +7 -6
- package/src/plugins/core/RenderHTML.tsx +3 -3
- package/src/plugins/core/__test__/registerReactComponent.test.ts +1 -1
- package/src/plugins/core/registerReactComponent.tsx +4 -4
- package/src/plugins/core/rpc.ts +1 -1
- package/src/plugins/impl/CheckboxPlugin.tsx +4 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +8 -3
- package/src/plugins/impl/DataTablePlugin.tsx +6 -2
- package/src/plugins/impl/FileBrowserPlugin.tsx +1 -1
- package/src/plugins/impl/FormPlugin.tsx +2 -3
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +4 -1
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +1 -1
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +43 -15
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +3 -12
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +2 -2
- package/src/plugins/impl/anywidget/model.ts +1 -1
- package/src/plugins/impl/anywidget/types.ts +2 -2
- package/src/plugins/impl/anywidget/widget-binding.ts +1 -1
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +5 -2
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +2 -2
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +2 -2
- package/src/plugins/impl/data-explorer/components/query-form.tsx +1 -1
- package/src/plugins/impl/data-explorer/functions/function.ts +1 -1
- package/src/plugins/impl/data-explorer/queries/types.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
- package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +7 -9
- package/src/plugins/impl/data-frames/forms/renderers.tsx +1 -1
- package/src/plugins/impl/data-frames/utils/operators.ts +1 -1
- package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +1 -1
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +1 -1
- package/src/plugins/impl/panel/PanelPlugin.tsx +2 -2
- package/src/plugins/impl/plotly/Plot.tsx +3 -3
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +65 -103
- package/src/plugins/impl/plotly/__tests__/PlotlyPlugin.test.tsx +114 -0
- package/src/plugins/impl/plotly/__tests__/selection.test.ts +199 -0
- package/src/plugins/impl/plotly/selection.ts +333 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +13 -14
- package/src/plugins/impl/vega/__tests__/utils.test.ts +68 -0
- package/src/plugins/impl/vega/batched.ts +1 -1
- package/src/plugins/impl/vega/make-selectable.ts +3 -3
- package/src/plugins/impl/vega/types.ts +1 -1
- package/src/plugins/impl/vega/utils.ts +14 -5
- package/src/plugins/impl/vega/vega.css +2 -1
- package/src/plugins/layout/DownloadPlugin.tsx +1 -1
- package/src/plugins/layout/ImageComparisonPlugin.tsx +1 -3
- package/src/plugins/layout/LazyPlugin.tsx +1 -1
- package/src/plugins/layout/RoutesPlugin.tsx +1 -1
- package/src/plugins/layout/mermaid/mermaid.tsx +1 -1
- package/src/plugins/plugins.ts +1 -1
- package/src/plugins/stateless-plugin.ts +4 -2
- package/src/stories/data-explorer.stories.tsx +1 -1
- package/src/stories/dataframe.stories.tsx +1 -1
- package/src/stories/editor.stories.tsx +1 -1
- package/src/stories/select.stories.tsx +1 -1
- package/src/stories/switchable-multi-select.stories.tsx +1 -1
- package/src/utils/Logger.ts +1 -1
- package/src/utils/__tests__/arrays.test.ts +1 -1
- package/src/utils/__tests__/blob.test.ts +1 -1
- package/src/utils/__tests__/cell-urls.test.ts +24 -21
- package/src/utils/__tests__/dates.test.ts +1 -1
- package/src/utils/__tests__/errors.test.ts +1 -1
- package/src/utils/__tests__/filenames.test.ts +15 -14
- package/src/utils/__tests__/json-parser.test.ts +14 -21
- package/src/utils/__tests__/multi-map.test.ts +3 -3
- package/src/utils/__tests__/objects.test.ts +3 -3
- package/src/utils/__tests__/path.test.ts +34 -31
- package/src/utils/__tests__/urls.test.ts +19 -18
- package/src/utils/__tests__/versions.test.ts +5 -5
- package/src/utils/__tests__/waitForWs.test.ts +1 -1
- package/src/utils/arrays.ts +2 -2
- package/src/utils/assertNever.ts +1 -1
- package/src/utils/batch-requests.ts +2 -2
- package/src/utils/createReducer.ts +2 -2
- package/src/utils/id-tree.tsx +2 -2
- package/src/utils/idle.ts +1 -1
- package/src/utils/invariant.ts +1 -2
- package/src/utils/json/base64.ts +2 -5
- package/src/utils/maps.ts +1 -1
- package/src/utils/math.ts +0 -1
- package/src/utils/mime-types.ts +1 -1
- package/src/utils/multi-map.ts +1 -1
- package/src/utils/objects.ts +1 -1
- package/src/utils/once.ts +2 -2
- package/src/utils/staticImplements.ts +1 -1
- package/src/utils/storage/jotai.ts +1 -1
- package/src/utils/tracer.ts +3 -2
- package/dist/_basePickBy-QjOmBDRE.js +0 -110
- package/dist/_baseSet-xgn1IbGV.js +0 -27
- package/dist/architecture-7HQA4BMR-BRyVh_Za.js +0 -6
- package/dist/assets/__vite-browser-external-Us1ds95c.js +0 -1
- package/dist/dist-B0R_ZM4-.js +0 -6
- package/dist/dist-B4a9_9pj.js +0 -5
- package/dist/dist-BCSUKEwO.js +0 -5
- package/dist/dist-BONIDQq6.js +0 -5
- package/dist/dist-BYeRx2hb.js +0 -5
- package/dist/dist-D2Rk1j4R.js +0 -1381
- package/dist/dist-DZjX5TYv.js +0 -5
- package/dist/dist-Dkw9x6kc.js +0 -5
- package/dist/dist-Ds6UaXGR.js +0 -6
- package/dist/dist-KuEJ1Q53.js +0 -8
- package/dist/dist-S72WNyTZ.js +0 -5
- package/dist/dist-bTG-yssT.js +0 -5
- package/dist/dist-diF0sguc.js +0 -8
- package/dist/dist-mJ84BIgu.js +0 -8
- package/dist/dist-wSIhFWQz.js +0 -8
- package/dist/get-CqrzlV1v.js +0 -68
- package/dist/range-CYz5jI--.js +0 -17
- package/dist/stex-CZyTRGVB.js +0 -4
- package/dist/tooltip-DGHTbHl5.js +0 -404
- package/dist/useLifecycle-Dids8BPm.js +0 -173
- /package/dist/{dist-KZI_BHqV.js → dist-CxZvoNao.js} +0 -0
- /package/dist/{invariant-D4hPsZFI.js → invariant-e8eBgdux.js} +0 -0
- /package/dist/{isArrayLikeObject-C-hFPChh.js → isArrayLikeObject-LXbTYiBa.js} +0 -0
- /package/dist/{main-CvkAPtaq.js → main-XimWhSi_.js} +0 -0
- /package/dist/{purify.es-ukiMXY-F.js → purify.es-hTCfRGdl.js} +0 -0
- /package/dist/{react-dom-BKwCWYPW.js → react-dom-BSUuJjCR.js} +0 -0
- /package/dist/{stex-Ze8D4R_5.js → stex-D887Ylhf.js} +0 -0
package/dist/dist-DZjX5TYv.js
DELETED
package/dist/dist-Dkw9x6kc.js
DELETED
package/dist/dist-Ds6UaXGR.js
DELETED
package/dist/dist-KuEJ1Q53.js
DELETED
package/dist/dist-S72WNyTZ.js
DELETED
package/dist/dist-bTG-yssT.js
DELETED
package/dist/dist-diF0sguc.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "./dist-KZI_BHqV.js";
|
|
2
|
-
import "./dist-CQidOwep.js";
|
|
3
|
-
import "./dist-C0XYIHKJ.js";
|
|
4
|
-
import "./dist-C9qF7MRB.js";
|
|
5
|
-
import { i as liquidLanguage, n as liquid, r as liquidCompletionSource, t as closePercentBrace } from "./dist-BUSLKXcu.js";
|
|
6
|
-
export {
|
|
7
|
-
liquid
|
|
8
|
-
};
|
package/dist/dist-mJ84BIgu.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "./dist-KZI_BHqV.js";
|
|
2
|
-
import "./dist-CQidOwep.js";
|
|
3
|
-
import "./dist-C0XYIHKJ.js";
|
|
4
|
-
import "./dist-C9qF7MRB.js";
|
|
5
|
-
import { i as jinjaLanguage, n as jinja, r as jinjaCompletionSource, t as closePercentBrace } from "./dist-5nTQE2yt.js";
|
|
6
|
-
export {
|
|
7
|
-
jinja
|
|
8
|
-
};
|
package/dist/dist-wSIhFWQz.js
DELETED
package/dist/get-CqrzlV1v.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { B as isArray_default, U as _Symbol_default } from "./isArrayLikeObject-C-hFPChh.js";
|
|
2
|
-
import { t as isSymbol_default } from "./isSymbol-DFp8040B.js";
|
|
3
|
-
import { t as memoize_default } from "./memoize-CuHciEBb.js";
|
|
4
|
-
function arrayMap(t, O) {
|
|
5
|
-
for (var k = -1, A = t == null ? 0 : t.length, j = Array(A); ++k < A; ) j[k] = O(t[k], k, t);
|
|
6
|
-
return j;
|
|
7
|
-
}
|
|
8
|
-
var _arrayMap_default = arrayMap, INFINITY$1 = Infinity, symbolProto = _Symbol_default ? _Symbol_default.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
9
|
-
function baseToString(O) {
|
|
10
|
-
if (typeof O == "string") return O;
|
|
11
|
-
if (isArray_default(O)) return _arrayMap_default(O, baseToString) + "";
|
|
12
|
-
if (isSymbol_default(O)) return symbolToString ? symbolToString.call(O) : "";
|
|
13
|
-
var A = O + "";
|
|
14
|
-
return A == "0" && 1 / O == -INFINITY$1 ? "-0" : A;
|
|
15
|
-
}
|
|
16
|
-
var _baseToString_default = baseToString, reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
17
|
-
function isKey(O, A) {
|
|
18
|
-
if (isArray_default(O)) return false;
|
|
19
|
-
var j = typeof O;
|
|
20
|
-
return j == "number" || j == "symbol" || j == "boolean" || O == null || isSymbol_default(O) ? true : reIsPlainProp.test(O) || !reIsDeepProp.test(O) || A != null && O in Object(A);
|
|
21
|
-
}
|
|
22
|
-
var _isKey_default = isKey, MAX_MEMOIZE_SIZE = 500;
|
|
23
|
-
function memoizeCapped(t) {
|
|
24
|
-
var O = memoize_default(t, function(t2) {
|
|
25
|
-
return k.size === MAX_MEMOIZE_SIZE && k.clear(), t2;
|
|
26
|
-
}), k = O.cache;
|
|
27
|
-
return O;
|
|
28
|
-
}
|
|
29
|
-
var _memoizeCapped_default = memoizeCapped, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, _stringToPath_default = _memoizeCapped_default(function(t) {
|
|
30
|
-
var O = [];
|
|
31
|
-
return t.charCodeAt(0) === 46 && O.push(""), t.replace(rePropName, function(t2, k, A, j) {
|
|
32
|
-
O.push(A ? j.replace(reEscapeChar, "$1") : k || t2);
|
|
33
|
-
}), O;
|
|
34
|
-
});
|
|
35
|
-
function toString(t) {
|
|
36
|
-
return t == null ? "" : _baseToString_default(t);
|
|
37
|
-
}
|
|
38
|
-
var toString_default = toString;
|
|
39
|
-
function castPath(O, k) {
|
|
40
|
-
return isArray_default(O) ? O : _isKey_default(O, k) ? [O] : _stringToPath_default(toString_default(O));
|
|
41
|
-
}
|
|
42
|
-
var _castPath_default = castPath, INFINITY = Infinity;
|
|
43
|
-
function toKey(t) {
|
|
44
|
-
if (typeof t == "string" || isSymbol_default(t)) return t;
|
|
45
|
-
var O = t + "";
|
|
46
|
-
return O == "0" && 1 / t == -INFINITY ? "-0" : O;
|
|
47
|
-
}
|
|
48
|
-
var _toKey_default = toKey;
|
|
49
|
-
function baseGet(t, O) {
|
|
50
|
-
O = _castPath_default(O, t);
|
|
51
|
-
for (var k = 0, A = O.length; t != null && k < A; ) t = t[_toKey_default(O[k++])];
|
|
52
|
-
return k && k == A ? t : void 0;
|
|
53
|
-
}
|
|
54
|
-
var _baseGet_default = baseGet;
|
|
55
|
-
function get(t, O, k) {
|
|
56
|
-
var A = t == null ? void 0 : _baseGet_default(t, O);
|
|
57
|
-
return A === void 0 ? k : A;
|
|
58
|
-
}
|
|
59
|
-
var get_default = get;
|
|
60
|
-
export {
|
|
61
|
-
toString_default as a,
|
|
62
|
-
_castPath_default as i,
|
|
63
|
-
_baseGet_default as n,
|
|
64
|
-
_isKey_default as o,
|
|
65
|
-
_toKey_default as r,
|
|
66
|
-
_arrayMap_default as s,
|
|
67
|
-
get_default as t
|
|
68
|
-
};
|
package/dist/range-CYz5jI--.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { S as _isIterateeCall_default } from "./isArrayLikeObject-C-hFPChh.js";
|
|
2
|
-
import { n as toFinite_default } from "./_baseSet-xgn1IbGV.js";
|
|
3
|
-
var nativeCeil = Math.ceil, nativeMax = Math.max;
|
|
4
|
-
function baseRange(e, t, i, a) {
|
|
5
|
-
for (var o = -1, s = nativeMax(nativeCeil((t - e) / (i || 1)), 0), c = Array(s); s--; ) c[a ? s : ++o] = e, e += i;
|
|
6
|
-
return c;
|
|
7
|
-
}
|
|
8
|
-
var _baseRange_default = baseRange;
|
|
9
|
-
function createRange(n) {
|
|
10
|
-
return function(r, i, o) {
|
|
11
|
-
return o && typeof o != "number" && _isIterateeCall_default(r, i, o) && (i = o = void 0), r = toFinite_default(r), i === void 0 ? (i = r, r = 0) : i = toFinite_default(i), o = o === void 0 ? r < i ? 1 : -1 : toFinite_default(o), _baseRange_default(r, i, o, n);
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
var range_default = createRange();
|
|
15
|
-
export {
|
|
16
|
-
range_default as t
|
|
17
|
-
};
|
package/dist/stex-CZyTRGVB.js
DELETED
package/dist/tooltip-DGHTbHl5.js
DELETED
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { t as require_react } from "./react-Bs6Z0kvn.js";
|
|
3
|
-
import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
|
|
4
|
-
import { a as Content, i as Arrow, o as Root2, r as Anchor, s as createPopperScope, t as Root } from "./dist-D2Rk1j4R.js";
|
|
5
|
-
import { p as useComposedRefs, v as cn } from "./button-qsiIHncQ.js";
|
|
6
|
-
import { _t as createContextScope, at as useControllableState, ct as useId, ft as Primitive, ht as createSlottable, it as StyleNamespace, nt as withSmartCollisionBoundary, ot as Presence, st as Portal, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-B--d1_LV.js";
|
|
7
|
-
import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
|
|
8
|
-
var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [createPopperScope]), usePopperScope = createPopperScope(), PROVIDER_NAME = "TooltipProvider", DEFAULT_DELAY_DURATION = 700, TOOLTIP_OPEN = "tooltip.open", [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME), TooltipProvider$1 = (t) => {
|
|
9
|
-
let { __scopeTooltip: k, delayDuration: A = DEFAULT_DELAY_DURATION, skipDelayDuration: j = 300, disableHoverableContent: M = false, children: N } = t, P = import_react.useRef(true), F = import_react.useRef(false), I = import_react.useRef(0);
|
|
10
|
-
return import_react.useEffect(() => {
|
|
11
|
-
let t2 = I.current;
|
|
12
|
-
return () => window.clearTimeout(t2);
|
|
13
|
-
}, []), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipProviderContextProvider, {
|
|
14
|
-
scope: k,
|
|
15
|
-
isOpenDelayedRef: P,
|
|
16
|
-
delayDuration: A,
|
|
17
|
-
onOpen: import_react.useCallback(() => {
|
|
18
|
-
window.clearTimeout(I.current), P.current = false;
|
|
19
|
-
}, []),
|
|
20
|
-
onClose: import_react.useCallback(() => {
|
|
21
|
-
window.clearTimeout(I.current), I.current = window.setTimeout(() => P.current = true, j);
|
|
22
|
-
}, [j]),
|
|
23
|
-
isPointerInTransitRef: F,
|
|
24
|
-
onPointerInTransitChange: import_react.useCallback((t2) => {
|
|
25
|
-
F.current = t2;
|
|
26
|
-
}, []),
|
|
27
|
-
disableHoverableContent: M,
|
|
28
|
-
children: N
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
TooltipProvider$1.displayName = PROVIDER_NAME;
|
|
32
|
-
var TOOLTIP_NAME = "Tooltip", [TooltipContextProvider, useTooltipContext] = createTooltipContext(TOOLTIP_NAME), Tooltip$1 = (t) => {
|
|
33
|
-
let { __scopeTooltip: k, children: A, open: j, defaultOpen: M, onOpenChange: P, disableHoverableContent: F, delayDuration: I } = t, L = useTooltipProviderContext(TOOLTIP_NAME, t.__scopeTooltip), R = usePopperScope(k), [z, H] = import_react.useState(null), U = useId(), W = import_react.useRef(0), G = F ?? L.disableHoverableContent, K = I ?? L.delayDuration, q = import_react.useRef(false), [J, Y] = useControllableState({
|
|
34
|
-
prop: j,
|
|
35
|
-
defaultProp: M ?? false,
|
|
36
|
-
onChange: (t2) => {
|
|
37
|
-
t2 ? (L.onOpen(), document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN))) : L.onClose(), P == null ? void 0 : P(t2);
|
|
38
|
-
},
|
|
39
|
-
caller: TOOLTIP_NAME
|
|
40
|
-
}), X = import_react.useMemo(() => J ? q.current ? "delayed-open" : "instant-open" : "closed", [J]), Z = import_react.useCallback(() => {
|
|
41
|
-
window.clearTimeout(W.current), W.current = 0, q.current = false, Y(true);
|
|
42
|
-
}, [Y]), Q = import_react.useCallback(() => {
|
|
43
|
-
window.clearTimeout(W.current), W.current = 0, Y(false);
|
|
44
|
-
}, [Y]), $ = import_react.useCallback(() => {
|
|
45
|
-
window.clearTimeout(W.current), W.current = window.setTimeout(() => {
|
|
46
|
-
q.current = true, Y(true), W.current = 0;
|
|
47
|
-
}, K);
|
|
48
|
-
}, [K, Y]);
|
|
49
|
-
return import_react.useEffect(() => () => {
|
|
50
|
-
W.current && (W.current = (window.clearTimeout(W.current), 0));
|
|
51
|
-
}, []), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2, {
|
|
52
|
-
...R,
|
|
53
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContextProvider, {
|
|
54
|
-
scope: k,
|
|
55
|
-
contentId: U,
|
|
56
|
-
open: J,
|
|
57
|
-
stateAttribute: X,
|
|
58
|
-
trigger: z,
|
|
59
|
-
onTriggerChange: H,
|
|
60
|
-
onTriggerEnter: import_react.useCallback(() => {
|
|
61
|
-
L.isOpenDelayedRef.current ? $() : Z();
|
|
62
|
-
}, [
|
|
63
|
-
L.isOpenDelayedRef,
|
|
64
|
-
$,
|
|
65
|
-
Z
|
|
66
|
-
]),
|
|
67
|
-
onTriggerLeave: import_react.useCallback(() => {
|
|
68
|
-
G ? Q() : (window.clearTimeout(W.current), W.current = 0);
|
|
69
|
-
}, [Q, G]),
|
|
70
|
-
onOpen: Z,
|
|
71
|
-
onClose: Q,
|
|
72
|
-
disableHoverableContent: G,
|
|
73
|
-
children: A
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
Tooltip$1.displayName = TOOLTIP_NAME;
|
|
78
|
-
var TRIGGER_NAME = "TooltipTrigger", TooltipTrigger$1 = import_react.forwardRef((t, k) => {
|
|
79
|
-
let { __scopeTooltip: A, ...j } = t, M = useTooltipContext(TRIGGER_NAME, A), N = useTooltipProviderContext(TRIGGER_NAME, A), F = usePopperScope(A), I = useComposedRefs(k, import_react.useRef(null), M.onTriggerChange), R = import_react.useRef(false), z = import_react.useRef(false), B = import_react.useCallback(() => R.current = false, []);
|
|
80
|
-
return import_react.useEffect(() => () => document.removeEventListener("pointerup", B), [B]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Anchor, {
|
|
81
|
-
asChild: true,
|
|
82
|
-
...F,
|
|
83
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
84
|
-
"aria-describedby": M.open ? M.contentId : void 0,
|
|
85
|
-
"data-state": M.stateAttribute,
|
|
86
|
-
...j,
|
|
87
|
-
ref: I,
|
|
88
|
-
onPointerMove: composeEventHandlers(t.onPointerMove, (t2) => {
|
|
89
|
-
t2.pointerType !== "touch" && !z.current && !N.isPointerInTransitRef.current && (M.onTriggerEnter(), z.current = true);
|
|
90
|
-
}),
|
|
91
|
-
onPointerLeave: composeEventHandlers(t.onPointerLeave, () => {
|
|
92
|
-
M.onTriggerLeave(), z.current = false;
|
|
93
|
-
}),
|
|
94
|
-
onPointerDown: composeEventHandlers(t.onPointerDown, () => {
|
|
95
|
-
M.open && M.onClose(), R.current = true, document.addEventListener("pointerup", B, { once: true });
|
|
96
|
-
}),
|
|
97
|
-
onFocus: composeEventHandlers(t.onFocus, () => {
|
|
98
|
-
R.current || M.onOpen();
|
|
99
|
-
}),
|
|
100
|
-
onBlur: composeEventHandlers(t.onBlur, M.onClose),
|
|
101
|
-
onClick: composeEventHandlers(t.onClick, M.onClose)
|
|
102
|
-
})
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
TooltipTrigger$1.displayName = TRIGGER_NAME;
|
|
106
|
-
var PORTAL_NAME = "TooltipPortal", [PortalProvider, usePortalContext] = createTooltipContext(PORTAL_NAME, { forceMount: void 0 }), TooltipPortal$1 = (t) => {
|
|
107
|
-
let { __scopeTooltip: k, forceMount: A, children: j, container: M } = t, N = useTooltipContext(PORTAL_NAME, k);
|
|
108
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalProvider, {
|
|
109
|
-
scope: k,
|
|
110
|
-
forceMount: A,
|
|
111
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
|
|
112
|
-
present: A || N.open,
|
|
113
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal, {
|
|
114
|
-
asChild: true,
|
|
115
|
-
container: M,
|
|
116
|
-
children: j
|
|
117
|
-
})
|
|
118
|
-
})
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
TooltipPortal$1.displayName = PORTAL_NAME;
|
|
122
|
-
var CONTENT_NAME = "TooltipContent", TooltipContent$1 = import_react.forwardRef((t, k) => {
|
|
123
|
-
let A = usePortalContext(CONTENT_NAME, t.__scopeTooltip), { forceMount: j = A.forceMount, side: M = "top", ...N } = t, P = useTooltipContext(CONTENT_NAME, t.__scopeTooltip);
|
|
124
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
|
|
125
|
-
present: j || P.open,
|
|
126
|
-
children: P.disableHoverableContent ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContentImpl, {
|
|
127
|
-
side: M,
|
|
128
|
-
...N,
|
|
129
|
-
ref: k
|
|
130
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContentHoverable, {
|
|
131
|
-
side: M,
|
|
132
|
-
...N,
|
|
133
|
-
ref: k
|
|
134
|
-
})
|
|
135
|
-
});
|
|
136
|
-
}), TooltipContentHoverable = import_react.forwardRef((t, k) => {
|
|
137
|
-
let A = useTooltipContext(CONTENT_NAME, t.__scopeTooltip), j = useTooltipProviderContext(CONTENT_NAME, t.__scopeTooltip), M = import_react.useRef(null), N = useComposedRefs(k, M), [P, F] = import_react.useState(null), { trigger: I, onClose: R } = A, z = M.current, { onPointerInTransitChange: B } = j, V = import_react.useCallback(() => {
|
|
138
|
-
F(null), B(false);
|
|
139
|
-
}, [B]), H = import_react.useCallback((t2, k2) => {
|
|
140
|
-
let A2 = t2.currentTarget, j2 = {
|
|
141
|
-
x: t2.clientX,
|
|
142
|
-
y: t2.clientY
|
|
143
|
-
}, M2 = getPaddedExitPoints(j2, getExitSideFromRect(j2, A2.getBoundingClientRect())), N2 = getPointsFromRect(k2.getBoundingClientRect());
|
|
144
|
-
F(getHull([...M2, ...N2])), B(true);
|
|
145
|
-
}, [B]);
|
|
146
|
-
return import_react.useEffect(() => () => V(), [V]), import_react.useEffect(() => {
|
|
147
|
-
if (I && z) {
|
|
148
|
-
let t2 = (t3) => H(t3, z), k2 = (t3) => H(t3, I);
|
|
149
|
-
return I.addEventListener("pointerleave", t2), z.addEventListener("pointerleave", k2), () => {
|
|
150
|
-
I.removeEventListener("pointerleave", t2), z.removeEventListener("pointerleave", k2);
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
}, [
|
|
154
|
-
I,
|
|
155
|
-
z,
|
|
156
|
-
H,
|
|
157
|
-
V
|
|
158
|
-
]), import_react.useEffect(() => {
|
|
159
|
-
if (P) {
|
|
160
|
-
let t2 = (t3) => {
|
|
161
|
-
let k2 = t3.target, A2 = {
|
|
162
|
-
x: t3.clientX,
|
|
163
|
-
y: t3.clientY
|
|
164
|
-
}, j2 = (I == null ? void 0 : I.contains(k2)) || (z == null ? void 0 : z.contains(k2)), M2 = !isPointInPolygon(A2, P);
|
|
165
|
-
j2 ? V() : M2 && (V(), R());
|
|
166
|
-
};
|
|
167
|
-
return document.addEventListener("pointermove", t2), () => document.removeEventListener("pointermove", t2);
|
|
168
|
-
}
|
|
169
|
-
}, [
|
|
170
|
-
I,
|
|
171
|
-
z,
|
|
172
|
-
P,
|
|
173
|
-
R,
|
|
174
|
-
V
|
|
175
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContentImpl, {
|
|
176
|
-
...t,
|
|
177
|
-
ref: N
|
|
178
|
-
});
|
|
179
|
-
}), [VisuallyHiddenContentContextProvider, useVisuallyHiddenContentContext] = createTooltipContext(TOOLTIP_NAME, { isInside: false }), Slottable = createSlottable("TooltipContent"), TooltipContentImpl = import_react.forwardRef((t, k) => {
|
|
180
|
-
let { __scopeTooltip: A, children: M, "aria-label": N, onEscapeKeyDown: P, onPointerDownOutside: F, ...L } = t, R = useTooltipContext(CONTENT_NAME, A), z = usePopperScope(A), { onClose: B } = R;
|
|
181
|
-
return import_react.useEffect(() => (document.addEventListener(TOOLTIP_OPEN, B), () => document.removeEventListener(TOOLTIP_OPEN, B)), [B]), import_react.useEffect(() => {
|
|
182
|
-
if (R.trigger) {
|
|
183
|
-
let t2 = (t3) => {
|
|
184
|
-
var _a;
|
|
185
|
-
((_a = t3.target) == null ? void 0 : _a.contains(R.trigger)) && B();
|
|
186
|
-
};
|
|
187
|
-
return window.addEventListener("scroll", t2, { capture: true }), () => window.removeEventListener("scroll", t2, { capture: true });
|
|
188
|
-
}
|
|
189
|
-
}, [R.trigger, B]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DismissableLayer, {
|
|
190
|
-
asChild: true,
|
|
191
|
-
disableOutsidePointerEvents: false,
|
|
192
|
-
onEscapeKeyDown: P,
|
|
193
|
-
onPointerDownOutside: F,
|
|
194
|
-
onFocusOutside: (t2) => t2.preventDefault(),
|
|
195
|
-
onDismiss: B,
|
|
196
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content, {
|
|
197
|
-
"data-state": R.stateAttribute,
|
|
198
|
-
...z,
|
|
199
|
-
...L,
|
|
200
|
-
ref: k,
|
|
201
|
-
style: {
|
|
202
|
-
...L.style,
|
|
203
|
-
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
204
|
-
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
205
|
-
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
206
|
-
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
207
|
-
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
208
|
-
},
|
|
209
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slottable, { children: M }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VisuallyHiddenContentContextProvider, {
|
|
210
|
-
scope: A,
|
|
211
|
-
isInside: true,
|
|
212
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, {
|
|
213
|
-
id: R.contentId,
|
|
214
|
-
role: "tooltip",
|
|
215
|
-
children: N || M
|
|
216
|
-
})
|
|
217
|
-
})]
|
|
218
|
-
})
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
TooltipContent$1.displayName = CONTENT_NAME;
|
|
222
|
-
var ARROW_NAME = "TooltipArrow", TooltipArrow = import_react.forwardRef((t, k) => {
|
|
223
|
-
let { __scopeTooltip: A, ...j } = t, N = usePopperScope(A);
|
|
224
|
-
return useVisuallyHiddenContentContext(ARROW_NAME, A).isInside ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {
|
|
225
|
-
...N,
|
|
226
|
-
...j,
|
|
227
|
-
ref: k
|
|
228
|
-
});
|
|
229
|
-
});
|
|
230
|
-
TooltipArrow.displayName = ARROW_NAME;
|
|
231
|
-
function getExitSideFromRect(t, k) {
|
|
232
|
-
let A = Math.abs(k.top - t.y), j = Math.abs(k.bottom - t.y), M = Math.abs(k.right - t.x), N = Math.abs(k.left - t.x);
|
|
233
|
-
switch (Math.min(A, j, M, N)) {
|
|
234
|
-
case N:
|
|
235
|
-
return "left";
|
|
236
|
-
case M:
|
|
237
|
-
return "right";
|
|
238
|
-
case A:
|
|
239
|
-
return "top";
|
|
240
|
-
case j:
|
|
241
|
-
return "bottom";
|
|
242
|
-
default:
|
|
243
|
-
throw Error("unreachable");
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
function getPaddedExitPoints(t, k, A = 5) {
|
|
247
|
-
let j = [];
|
|
248
|
-
switch (k) {
|
|
249
|
-
case "top":
|
|
250
|
-
j.push({
|
|
251
|
-
x: t.x - A,
|
|
252
|
-
y: t.y + A
|
|
253
|
-
}, {
|
|
254
|
-
x: t.x + A,
|
|
255
|
-
y: t.y + A
|
|
256
|
-
});
|
|
257
|
-
break;
|
|
258
|
-
case "bottom":
|
|
259
|
-
j.push({
|
|
260
|
-
x: t.x - A,
|
|
261
|
-
y: t.y - A
|
|
262
|
-
}, {
|
|
263
|
-
x: t.x + A,
|
|
264
|
-
y: t.y - A
|
|
265
|
-
});
|
|
266
|
-
break;
|
|
267
|
-
case "left":
|
|
268
|
-
j.push({
|
|
269
|
-
x: t.x + A,
|
|
270
|
-
y: t.y - A
|
|
271
|
-
}, {
|
|
272
|
-
x: t.x + A,
|
|
273
|
-
y: t.y + A
|
|
274
|
-
});
|
|
275
|
-
break;
|
|
276
|
-
case "right":
|
|
277
|
-
j.push({
|
|
278
|
-
x: t.x - A,
|
|
279
|
-
y: t.y - A
|
|
280
|
-
}, {
|
|
281
|
-
x: t.x - A,
|
|
282
|
-
y: t.y + A
|
|
283
|
-
});
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
return j;
|
|
287
|
-
}
|
|
288
|
-
function getPointsFromRect(t) {
|
|
289
|
-
let { top: k, right: A, bottom: j, left: M } = t;
|
|
290
|
-
return [
|
|
291
|
-
{
|
|
292
|
-
x: M,
|
|
293
|
-
y: k
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
x: A,
|
|
297
|
-
y: k
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
x: A,
|
|
301
|
-
y: j
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
x: M,
|
|
305
|
-
y: j
|
|
306
|
-
}
|
|
307
|
-
];
|
|
308
|
-
}
|
|
309
|
-
function isPointInPolygon(t, k) {
|
|
310
|
-
let { x: A, y: j } = t, M = false;
|
|
311
|
-
for (let t2 = 0, N = k.length - 1; t2 < k.length; N = t2++) {
|
|
312
|
-
let P = k[t2], F = k[N], I = P.x, L = P.y, R = F.x, z = F.y;
|
|
313
|
-
L > j != z > j && A < (R - I) * (j - L) / (z - L) + I && (M = !M);
|
|
314
|
-
}
|
|
315
|
-
return M;
|
|
316
|
-
}
|
|
317
|
-
function getHull(t) {
|
|
318
|
-
let k = t.slice();
|
|
319
|
-
return k.sort((t2, k2) => t2.x < k2.x ? -1 : t2.x > k2.x ? 1 : t2.y < k2.y ? -1 : t2.y > k2.y ? 1 : 0), getHullPresorted(k);
|
|
320
|
-
}
|
|
321
|
-
function getHullPresorted(t) {
|
|
322
|
-
if (t.length <= 1) return t.slice();
|
|
323
|
-
let k = [];
|
|
324
|
-
for (let A2 = 0; A2 < t.length; A2++) {
|
|
325
|
-
let j = t[A2];
|
|
326
|
-
for (; k.length >= 2; ) {
|
|
327
|
-
let t2 = k[k.length - 1], A3 = k[k.length - 2];
|
|
328
|
-
if ((t2.x - A3.x) * (j.y - A3.y) >= (t2.y - A3.y) * (j.x - A3.x)) k.pop();
|
|
329
|
-
else break;
|
|
330
|
-
}
|
|
331
|
-
k.push(j);
|
|
332
|
-
}
|
|
333
|
-
k.pop();
|
|
334
|
-
let A = [];
|
|
335
|
-
for (let k2 = t.length - 1; k2 >= 0; k2--) {
|
|
336
|
-
let j = t[k2];
|
|
337
|
-
for (; A.length >= 2; ) {
|
|
338
|
-
let t2 = A[A.length - 1], k3 = A[A.length - 2];
|
|
339
|
-
if ((t2.x - k3.x) * (j.y - k3.y) >= (t2.y - k3.y) * (j.x - k3.x)) A.pop();
|
|
340
|
-
else break;
|
|
341
|
-
}
|
|
342
|
-
A.push(j);
|
|
343
|
-
}
|
|
344
|
-
return A.pop(), k.length === 1 && A.length === 1 && k[0].x === A[0].x && k[0].y === A[0].y ? k : k.concat(A);
|
|
345
|
-
}
|
|
346
|
-
var Provider = TooltipProvider$1, Root3 = Tooltip$1, Trigger = TooltipTrigger$1, Portal$1 = TooltipPortal$1, Content2 = TooltipContent$1, import_compiler_runtime = require_compiler_runtime(), TooltipProvider = (t) => {
|
|
347
|
-
let k = (0, import_compiler_runtime.c)(6), A, j;
|
|
348
|
-
k[0] === t ? (A = k[1], j = k[2]) : ({ delayDuration: j, ...A } = t, k[0] = t, k[1] = A, k[2] = j);
|
|
349
|
-
let M = j === void 0 ? 400 : j, N;
|
|
350
|
-
return k[3] !== M || k[4] !== A ? (N = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, {
|
|
351
|
-
delayDuration: M,
|
|
352
|
-
...A
|
|
353
|
-
}), k[3] = M, k[4] = A, k[5] = N) : N = k[5], N;
|
|
354
|
-
}, TooltipPortal = withFullScreenAsRoot(Portal$1), TooltipRoot = Root3, InternalTooltipContent = withSmartCollisionBoundary(Content2), TooltipTrigger = Trigger, TooltipContent = import_react.forwardRef((t, k) => {
|
|
355
|
-
let A = (0, import_compiler_runtime.c)(11), j, M, N;
|
|
356
|
-
A[0] === t ? (j = A[1], M = A[2], N = A[3]) : ({ className: j, sideOffset: N, ...M } = t, A[0] = t, A[1] = j, A[2] = M, A[3] = N);
|
|
357
|
-
let P = N === void 0 ? 4 : N, F;
|
|
358
|
-
A[4] === j ? F = A[5] : (F = cn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-xs data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1", j), A[4] = j, A[5] = F);
|
|
359
|
-
let I;
|
|
360
|
-
return A[6] !== M || A[7] !== k || A[8] !== P || A[9] !== F ? (I = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyleNamespace, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InternalTooltipContent, {
|
|
361
|
-
ref: k,
|
|
362
|
-
sideOffset: P,
|
|
363
|
-
className: F,
|
|
364
|
-
...M
|
|
365
|
-
}) }), A[6] = M, A[7] = k, A[8] = P, A[9] = F, A[10] = I) : I = A[10], I;
|
|
366
|
-
});
|
|
367
|
-
TooltipContent.displayName = Content2.displayName;
|
|
368
|
-
var Tooltip = (t) => {
|
|
369
|
-
let k = (0, import_compiler_runtime.c)(22), A, j, M, N, P, F, I, L;
|
|
370
|
-
k[0] === t ? (A = k[1], j = k[2], M = k[3], N = k[4], P = k[5], F = k[6], I = k[7], L = k[8]) : ({ content: M, children: j, usePortal: F, asChild: I, tabIndex: L, side: P, align: A, ...N } = t, k[0] = t, k[1] = A, k[2] = j, k[3] = M, k[4] = N, k[5] = P, k[6] = F, k[7] = I, k[8] = L);
|
|
371
|
-
let R = F === void 0 ? true : F, z = I === void 0 ? true : I;
|
|
372
|
-
if (M == null || M === "") return j;
|
|
373
|
-
let B;
|
|
374
|
-
k[9] !== z || k[10] !== j || k[11] !== L ? (B = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
375
|
-
asChild: z,
|
|
376
|
-
tabIndex: L,
|
|
377
|
-
children: j
|
|
378
|
-
}), k[9] = z, k[10] = j, k[11] = L, k[12] = B) : B = k[12];
|
|
379
|
-
let V;
|
|
380
|
-
k[13] !== A || k[14] !== M || k[15] !== P || k[16] !== R ? (V = R ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
381
|
-
side: P,
|
|
382
|
-
align: A,
|
|
383
|
-
children: M
|
|
384
|
-
}) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
385
|
-
side: P,
|
|
386
|
-
align: A,
|
|
387
|
-
children: M
|
|
388
|
-
}), k[13] = A, k[14] = M, k[15] = P, k[16] = R, k[17] = V) : V = k[17];
|
|
389
|
-
let H;
|
|
390
|
-
return k[18] !== N || k[19] !== B || k[20] !== V ? (H = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
391
|
-
disableHoverableContent: true,
|
|
392
|
-
...N,
|
|
393
|
-
children: [B, V]
|
|
394
|
-
}), k[18] = N, k[19] = B, k[20] = V, k[21] = H) : H = k[21], H;
|
|
395
|
-
};
|
|
396
|
-
export {
|
|
397
|
-
TooltipRoot as a,
|
|
398
|
-
TooltipProvider as i,
|
|
399
|
-
TooltipContent as n,
|
|
400
|
-
TooltipTrigger as o,
|
|
401
|
-
TooltipPortal as r,
|
|
402
|
-
TooltipProvider$1 as s,
|
|
403
|
-
Tooltip as t
|
|
404
|
-
};
|