@marimo-team/islands 0.25.3-dev17 → 0.25.3-dev170
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-CNMliVzw.js → ConnectedDataExplorerComponent-BbSXV-Xa.js} +21 -19
- package/dist/{ErrorBoundary-jaGao4LA.js → ErrorBoundary-NE86qEWZ.js} +18 -18
- package/dist/{abnfDiagram-VCTEODGH-D-Ez91gV.js → abnfDiagram-VCTEODGH-D7n07nXf.js} +2 -2
- package/dist/any-language-editor-3E24SnCV.js +75 -0
- package/dist/{architectureDiagram-5GKGNRK7-CTpcNtO8.js → architectureDiagram-5GKGNRK7-D6CjRib5.js} +1 -1
- package/dist/{arrays-CN1djC4k.js → arrays-R6JsImiT.js} +8 -0
- package/dist/assets/__vite-browser-external-DVeFf2e7.js +1 -0
- package/dist/assets/worker-C1pfNBsx.js +113 -0
- package/dist/{button-CvjkwdSk.js → button-BQRdqQi1.js} +199 -192
- package/dist/{capabilities-CQ5IjhzL.js → capabilities-CI4xUPsp.js} +2 -2
- package/dist/{chat-ui-DaHynk8g.js → chat-ui-CC7GekpG.js} +1144 -1143
- package/dist/{check-EDwSwP89.js → check-SpOMoCLP.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DGxi-zeo.js → chunk-IMKFNOWR-6dtPz7uS.js} +1 -1
- package/dist/{chunk-SHT3W25Y-CV9J3rAB.js → chunk-SHT3W25Y-BwnFNKDA.js} +1 -1
- package/dist/{chunk-SVP7TREG-BL-9Fqgg.js → chunk-SVP7TREG-D2eV4vBJ.js} +1 -1
- package/dist/{chunk-TICWLB2K-Cu_XMjDM.js → chunk-TICWLB2K-BDs4-_-r.js} +1 -1
- package/dist/{chunk-YOKDWASO-DPZk8vhS.js → chunk-YOKDWASO-DKplTrBY.js} +20 -20
- package/dist/{classDiagram-ZZMXUADV-BXXV13Hq.js → classDiagram-ZZMXUADV-DCJnf_8v.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-B7FXJ1Cp.js → classDiagram-v2-VYDZK3BY-BOmSzPBD.js} +2 -2
- package/dist/{code-visibility-Bub8tnaA.js → code-visibility-Bzvc6ajl.js} +25 -25
- package/dist/{common-CdT0nyN1.js → common-Ciw4zkh2.js} +6933 -6754
- package/dist/{copy-icon-Ft7t9bqz.js → copy-icon-C1trdvVt.js} +3 -3
- package/dist/{cynefinDiagram-5FMLGOSQ-CH96rwba.js → cynefinDiagram-5FMLGOSQ-Bln_Soky.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-BD3PmpFY.js → dagre-GXQ25YYZ-D-nf7WzW.js} +1 -1
- package/dist/{data-grid-overlay-editor-Dbcss6_2.js → data-grid-overlay-editor-AQREmxI7.js} +5 -5
- package/dist/{data-grid-types-BH_r7g7l.js → data-grid-types-0PJ-9N5n.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BsSJJldB.js → diagram-S7CK7UJ4-PsgSMkY2.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-muQtNZc4.js → diagram-UQ7AKVKN-DfwfUuSw.js} +1 -1
- package/dist/{diagram-VX7I27RA-CdhuZAqR.js → diagram-VX7I27RA-C9_e-oMc.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BD8mXjOj.js → diagram-Z3DM3KII-CWLa5tuY.js} +1 -1
- package/dist/{dialog-CEBFZNyc.js → dialog-DgeqyrEZ.js} +3 -3
- package/dist/{dist-DpBpA_n1.js → dist-Lm-D-Vr6.js} +3 -3
- package/dist/{dropdown-menu-CP_qCYHC.js → dropdown-menu-B6ftyzOg.js} +1277 -1229
- package/dist/{ebnfDiagram-PWID7BFC-BIN1sweE.js → ebnfDiagram-PWID7BFC-B1QRM58v.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Ctp5cfoN.js → erDiagram-RLTQ6QDP-DJK_FqvW.js} +1 -1
- package/dist/{error-banner-D-WCIiMt.js → error-banner-D40pmfQQ.js} +83 -83
- package/dist/{error-entries-Bv6bZPF3.js → error-entries-DgK3wUJR.js} +5728 -5638
- package/dist/{feedback-button-B3Wrnsf_.js → feedback-button-8a6SETmT.js} +23 -23
- package/dist/{flowDiagram-HODETNUW-3EfLrlFb.js → flowDiagram-HODETNUW-Uxc25XSJ.js} +2 -2
- package/dist/{formats-27CW_UP4.js → formats-DQCyPd5Z.js} +3 -3
- package/dist/{ganttDiagram-EL5Y4UJY-BQT16JSc.js → ganttDiagram-EL5Y4UJY-Dh_4cBJZ.js} +2 -2
- package/dist/{glide-data-editor-BDYKJdqK.js → glide-data-editor-B70oke_v.js} +370 -368
- package/dist/{glide-utils-DJyqh0EM.js → glide-utils-Dz_F4pAY.js} +16 -16
- package/dist/{globals-DGTE1S0_.js → globals-Cxd5hNlI.js} +3 -3
- package/dist/{highlighted-body-KPVGNVTW-zwjq21tf.js → highlighted-body-KPVGNVTW-3Ziwfz-V.js} +2 -2
- package/dist/{html-to-image-Bf8QMGi4.js → html-to-image-D4yG5Ru0.js} +631 -594
- package/dist/{infoDiagram-27XIBGKW-DipQoHxl.js → infoDiagram-27XIBGKW-DmjxqwL0.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DgFMjSGz.js → ishikawaDiagram-5VMMS53U-NgCLHqQi.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-w1ACVjgl.js → kanban-definition-UXKFOSKX-CZaG-iam.js} +1 -1
- package/dist/{label-BDKF3Afc.js → label-D9_-zSg-.js} +3 -3
- package/dist/{linear-Cnaq3Tfb.js → linear-DWERh7eI.js} +121 -73
- package/dist/{loader-BQOfjTIJ.js → loader-DOVB0Syl.js} +12 -12
- package/dist/main.js +7689 -7342
- package/dist/{mermaid-CHo49Yv-.js → mermaid-CSvw7c71.js} +38 -38
- package/dist/mermaid-HWGCJPDP-Du3-HPQA.js +2 -0
- package/dist/{mindmap-definition-YA3MSWOX-CrT0KSfX.js → mindmap-definition-YA3MSWOX-DJYQBDH_.js} +1 -1
- package/dist/{number-overlay-editor-S8UJY0i5.js → number-overlay-editor-ChK-SKUk.js} +3 -3
- package/dist/{objects-CzUgoMIF.js → objects-DCmMvZtn.js} +1 -3
- package/dist/{once-BtE-wKRL.js → once-eG8Vmvjd.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-BqvywNJA.js → pegDiagram-XKGWAZYB-CHKO_dAe.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BfxJ_XCc.js → pieDiagram-E7YTZNPT-DVevbMAo.js} +1 -1
- package/dist/precisionRound-DhAzeRcm.js +49 -0
- package/dist/{process-output-BZg56CCb.js → process-output-DxvBAeL3.js} +4 -4
- package/dist/{quadrantDiagram-AXDQQJYC-Ccw0xMjN.js → quadrantDiagram-AXDQQJYC-Blrm7V7_.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-8vFLVTPu.js → railroadDiagram-O6MQD6OU-Detj1kcB.js} +2 -2
- package/dist/{react-vega-BED0DjiB.js → react-vega-C4T9Rb_w.js} +12284 -12270
- package/dist/{requirementDiagram-BXWQKSXE-a_MxGvxe.js → requirementDiagram-BXWQKSXE-BLFD0T_Z.js} +1 -1
- package/dist/{reveal-component-De4Pvf4V.js → reveal-component-CXMXeDZD.js} +14 -14
- package/dist/{select-BButFi-d.js → select-CkF_GBxO.js} +537 -458
- package/dist/{sequenceDiagram-WJ2MYXX4-CXFMnxGh.js → sequenceDiagram-WJ2MYXX4-BZBgatQV.js} +1 -1
- package/dist/{spec-BwarBpUJ.js → spec-Mnkn3XEr.js} +41 -11
- package/dist/{stateDiagram-D77RDMKH-DQeA_CwI.js → stateDiagram-D77RDMKH-4BZW9-6_.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-BxxQucm1.js → stateDiagram-v2-MP3YSRHH-C4sKC8Iq.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Do6L-cYg.js → swimlanes-42K2YHIH-SL5yeGe2.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-DUzPvSVU.js → swimlanesDiagram-VR7AAH4N-DqPmAYUv.js} +2 -2
- package/dist/{swiper-component-DKntyn8p.js → swiper-component-BkCm-kLg.js} +2 -2
- package/dist/{time-BieKwdYS.js → time-BaMbJs4z.js} +18 -18
- package/dist/{timeline-definition-24CTP7MA-D3c46WM5.js → timeline-definition-24CTP7MA-BfXUMWkq.js} +1 -1
- package/dist/{toDate-UtiwmnH2.js → toDate-TMubKIVL.js} +37 -36
- package/dist/{toast-B9UMEi8u.js → toast-Btbve3Lm.js} +231 -213
- package/dist/{tooltip-BO1REbqs.js → tooltip-CJ4Rqasp.js} +327 -303
- package/dist/{use-restore-focus-BEM7sFWl.js → use-restore-focus-CmGwRNId.js} +1482 -1433
- package/dist/{useAsyncData-Deh5kszT.js → useAsyncData-DjMGFzFy.js} +15 -14
- package/dist/{useDateFormatter-D8XruNGG.js → useDateFormatter-eCL_SdeG.js} +2 -2
- package/dist/{useDeepCompareMemoize-DXwzRINI.js → useDeepCompareMemoize-BQR5TJot.js} +1 -1
- package/dist/{useIframeCapabilities-DBETvvPl.js → useIframeCapabilities-CSdWn6NP.js} +1 -1
- package/dist/{useLifecycle-j7D9uD1o.js → useLifecycle-C_GvKWbQ.js} +28 -25
- package/dist/{useTheme-CRnjkku0.js → useTheme-Bns2gJZ6.js} +224 -220
- package/dist/{vega-component-BeF9dfyO.js → vega-component-BsVptuhz.js} +148 -148
- package/dist/{vega-embed-container-BNHE18G9.js → vega-embed-container--LYZqguO.js} +2 -2
- package/dist/{vega-loader.browser-DNST6uVf.js → vega-loader.browser-B9Pz0EGP.js} +298 -507
- package/dist/{vennDiagram-4TSXK5OY-BSZD8JcZ.js → vennDiagram-4TSXK5OY-CH65znGa.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-48cUWkfA.js → wardleyDiagram-VM6X3IG4-z9pWKb2_.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-CswYgYeu.js → xychartDiagram-S5SC5T6Z-MxyaWjjq.js} +2 -2
- package/package.json +16 -16
- package/src/__mocks__/requests.ts +0 -1
- package/src/__tests__/module-entry.test.ts +44 -0
- package/src/__tests__/mount.test.ts +1 -21
- package/src/__tests__/{host-imports.test.ts → replica-imports.test.ts} +12 -11
- package/src/components/ai/__tests__/ai-model-dropdown.test.tsx +63 -0
- package/src/components/ai/ai-model-dropdown.tsx +11 -6
- package/src/components/app-config/ai-config.tsx +7 -2
- package/src/components/app-config/user-config-form.tsx +35 -0
- package/src/components/chat/__tests__/message-queue.test.tsx +17 -0
- package/src/components/chat/acp/__tests__/session-tabs.test.tsx +43 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/blocks.tsx +3 -2
- package/src/components/chat/acp/session-tabs.tsx +8 -3
- package/src/components/chat/chat-components.tsx +2 -0
- package/src/components/chat/chat-panel.tsx +9 -8
- package/src/components/chat/chat-utils.ts +4 -8
- package/src/components/data-table/TableBottomBar.tsx +4 -1
- package/src/components/data-table/TableTopBar.tsx +2 -0
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +195 -195
- package/src/components/data-table/__tests__/column-explorer.test.tsx +27 -1
- package/src/components/data-table/__tests__/columns.test.tsx +105 -0
- package/src/components/data-table/__tests__/context-menu-interaction.test.tsx +130 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +1 -0
- package/src/components/data-table/__tests__/date-popover.test.tsx +72 -0
- package/src/components/data-table/__tests__/export-actions.test.tsx +105 -0
- package/src/components/data-table/__tests__/keyboard-selection.test.tsx +188 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +28 -1
- package/src/components/data-table/__tests__/search-highlight.test.tsx +109 -0
- package/src/components/data-table/__tests__/url-detector.test.tsx +74 -0
- package/src/components/data-table/cell-selection/feature.ts +2 -2
- package/src/components/data-table/cell-selection/types.ts +2 -2
- package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +74 -1
- package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +20 -20
- package/src/components/data-table/charts/__tests__/spec.test.ts +78 -52
- package/src/components/data-table/charts/__tests__/storage.test.ts +4 -1
- package/src/components/data-table/charts/chart-spec/spec.ts +68 -43
- package/src/components/data-table/charts/charts.tsx +40 -30
- package/src/components/data-table/charts/storage.ts +16 -5
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
- package/src/components/data-table/column-summary/chart-spec-model.tsx +23 -16
- package/src/components/data-table/column-summary/column-summary.tsx +2 -4
- package/src/components/data-table/column-visibility-dropdown.tsx +8 -13
- package/src/components/data-table/columns.tsx +45 -46
- package/src/components/data-table/context-menu.tsx +36 -20
- package/src/components/data-table/data-table.tsx +17 -1
- package/src/components/data-table/date-popover.tsx +6 -4
- package/src/components/data-table/export-actions.tsx +76 -48
- package/src/components/data-table/pagination.tsx +44 -33
- package/src/components/data-table/range-focus/atoms.ts +4 -6
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +65 -38
- package/src/components/data-table/range-focus/use-scroll-into-view.ts +21 -2
- package/src/components/data-table/renderers.tsx +16 -7
- package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +24 -1
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +4 -4
- package/src/components/data-table/search-highlight.tsx +79 -0
- package/src/components/data-table/types.ts +1 -0
- package/src/components/data-table/url-detector.tsx +49 -9
- package/src/components/datasources/__tests__/column-actions.test.tsx +97 -0
- package/src/components/datasources/__tests__/column-preview.test.tsx +98 -5
- package/src/components/datasources/__tests__/datasources-interactions.test.tsx +181 -0
- package/src/components/datasources/__tests__/table-list.test.tsx +118 -0
- package/src/components/datasources/__tests__/utils.test.ts +57 -6
- package/src/components/datasources/column-preview.tsx +13 -4
- package/src/components/datasources/datasources.tsx +51 -39
- package/src/components/datasources/utils.ts +32 -23
- package/src/components/debugger/debugger-code.tsx +5 -0
- package/src/components/dependency-graph/dependency-graph-tree.tsx +8 -8
- package/src/components/dependency-graph/elements.ts +24 -21
- package/src/components/dependency-graph/panels.tsx +2 -1
- package/src/components/dependency-graph/utils/__tests__/layout.test.ts +18 -11
- package/src/components/editor/SortableCell.tsx +1 -3
- package/src/{core/attachments/__tests__/toast.test.tsx → components/editor/__tests__/agent-toast.test.tsx} +1 -1
- package/src/components/editor/__tests__/data-attributes.test.tsx +6 -2
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +111 -18
- package/src/components/editor/__tests__/package-alert.test.tsx +22 -1
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +24 -0
- package/src/components/editor/actions/pair-with-agent-modal.tsx +18 -15
- package/src/components/editor/actions/useRestartKernel.tsx +1 -1
- package/src/components/editor/ai/add-cell-with-ai.tsx +3 -3
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -0
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +1 -1
- package/src/components/editor/alerts/connection-notice.tsx +1 -1
- package/src/components/editor/alerts/startup-logs-alert.tsx +1 -0
- package/src/components/editor/app-container.tsx +1 -1
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +1 -1
- package/src/components/editor/cell/CreateCellButton.tsx +10 -12
- package/src/components/editor/cell/DeleteButton.tsx +3 -2
- package/src/components/editor/cell/RunButton.tsx +2 -2
- package/src/components/editor/cell/StagedAICell.tsx +10 -2
- package/src/components/editor/cell/StopButton.tsx +2 -2
- package/src/components/editor/cell/__tests__/useShouldShowInterrupt.test.ts +39 -0
- package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +54 -0
- package/src/components/editor/cell/code/cell-editor.tsx +9 -16
- package/src/components/editor/cell/code/language-toggle.tsx +8 -7
- package/src/components/editor/cell/collapse.tsx +5 -3
- package/src/components/editor/cell/useShouldShowInterrupt.ts +2 -12
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +1 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +1 -1
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +31 -2
- package/src/components/editor/chrome/panels/__tests__/runtime-details.test.tsx +1 -1
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +1 -1
- package/src/components/editor/chrome/panels/cache-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +84 -0
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +39 -14
- package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +3 -2
- package/src/components/editor/chrome/panels/packages-panel.tsx +4 -7
- package/src/components/editor/chrome/panels/secrets-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/snippets-panel.tsx +5 -1
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +9 -18
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +92 -0
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +58 -1
- package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +4 -4
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +1 -7
- package/src/components/editor/chrome/wrapper/footer.tsx +2 -0
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +12 -2
- package/src/components/editor/chrome/wrapper/storage.ts +1 -1
- package/src/components/editor/connections/components.tsx +1 -1
- package/src/components/editor/controls/Controls.tsx +2 -2
- package/src/components/editor/controls/__tests__/command-palette.test.tsx +53 -0
- package/src/components/editor/controls/__tests__/keyboard-shortcuts.test.tsx +61 -0
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +1 -1
- package/src/components/editor/controls/command-palette.tsx +22 -10
- package/src/components/editor/controls/keyboard-shortcuts.tsx +14 -5
- package/src/components/editor/dynamic-favicon.tsx +21 -40
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +9 -23
- package/src/components/editor/errors/send-error-report-button.tsx +3 -6
- package/src/components/editor/file-tree/__tests__/file-explorer-interactions.test.tsx +6 -0
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +47 -0
- package/src/components/editor/file-tree/__tests__/use-file-search.test.tsx +91 -0
- package/src/components/editor/file-tree/file-explorer.tsx +45 -8
- package/src/components/editor/file-tree/file-name-input.tsx +1 -0
- package/src/components/editor/file-tree/file-viewer.tsx +4 -2
- package/src/components/editor/file-tree/use-file-search.ts +35 -21
- package/src/components/editor/header/__tests__/status.test.tsx +5 -3
- package/src/components/editor/header/app-header.tsx +1 -1
- package/src/components/editor/header/status.tsx +40 -20
- package/src/components/editor/links/__tests__/cell-link.test.tsx +146 -0
- package/src/components/editor/links/cell-link.tsx +14 -5
- package/src/components/editor/navigation/focus-utils.ts +4 -4
- package/src/components/editor/notebook-banner.tsx +1 -0
- package/src/components/editor/notebook-cell.tsx +12 -3
- package/src/components/editor/output/MarimoErrorOutput.tsx +2 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +19 -17
- package/src/components/editor/output/Outputs.css +8 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
- package/src/components/editor/output/ansi-reduce.ts +33 -20
- package/src/components/editor/output/console/ConsoleOutput.tsx +19 -25
- package/src/components/editor/package-alert.tsx +14 -7
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +12 -6
- package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +7 -1
- package/src/components/home/components.tsx +17 -31
- package/src/components/icons/__tests__/large-spinner.test.tsx +39 -0
- package/src/components/icons/large-spinner.tsx +3 -14
- package/src/components/icons/spinner.tsx +1 -1
- package/src/components/mcp/mcp-status-indicator.tsx +1 -1
- package/src/components/pages/__tests__/home-page.test.tsx +116 -0
- package/src/components/pages/home-page.tsx +164 -91
- package/src/components/scratchpad/scratchpad.test.tsx +95 -0
- package/src/components/scratchpad/scratchpad.tsx +16 -3
- package/src/components/slides/reveal-component.tsx +4 -2
- package/src/components/slides/slide-cell-view.tsx +1 -1
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/tracing/tracing-keyboard.test.tsx +85 -0
- package/src/components/tracing/tracing.tsx +45 -41
- package/src/components/ui/__tests__/draggable-popover.test.tsx +24 -0
- package/src/components/ui/__tests__/range-slider.test.tsx +165 -0
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/draggable-popover.tsx +24 -2
- package/src/components/ui/range-slider.tsx +22 -9
- package/src/core/ai/__tests__/staged-cells.test.ts +8 -5
- package/src/core/ai/context/providers/datasource.ts +6 -2
- package/src/core/ai/staged-cells.ts +7 -2
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +3 -15
- package/src/core/ai/tools/base.ts +16 -7
- package/src/core/ai/tools/edit-notebook-tool.ts +61 -48
- package/src/core/ai/tools/registry.ts +13 -8
- package/src/core/ai/tools/sample-tool.ts +6 -7
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +4 -0
- package/src/core/cells/__tests__/cell.test.ts +39 -0
- package/src/core/cells/__tests__/cells.test.ts +3 -298
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +54 -0
- package/src/core/cells/__tests__/document.test.ts +410 -0
- package/src/core/cells/__tests__/flush-document.test.ts +40 -0
- package/src/core/cells/__tests__/notebook-outline.test.ts +108 -0
- package/src/core/cells/__tests__/session.test.ts +117 -36
- package/src/core/cells/__tests__/with-document-save.test.ts +67 -0
- package/src/core/cells/cell.ts +14 -3
- package/src/core/cells/cells.ts +30 -159
- package/src/core/cells/columns.ts +38 -0
- package/src/core/cells/document.ts +360 -0
- package/src/core/cells/pending-delete-service.ts +2 -6
- package/src/core/cells/session.ts +1 -1
- package/src/core/cells/types.ts +22 -1
- package/src/core/codemirror/__tests__/setup.test.ts +29 -29
- package/src/core/codemirror/ai/__tests__/resources.test.ts +117 -0
- package/src/core/codemirror/ai/resources.ts +1 -1
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +42 -1
- package/src/core/codemirror/cells/extensions.ts +21 -3
- package/src/core/codemirror/format.ts +6 -5
- package/src/core/codemirror/keymaps/vim.ts +2 -6
- package/src/core/codemirror/language/__tests__/sql.test.ts +22 -20
- package/src/core/codemirror/language/__tests__/utils.test.ts +187 -15
- package/src/core/codemirror/language/cell-code.ts +114 -0
- package/src/core/codemirror/language/extension.ts +52 -35
- package/src/core/codemirror/language/languages/markdown.ts +8 -6
- package/src/core/codemirror/language/languages/python.ts +16 -10
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -24
- package/src/core/codemirror/language/panel/panel.tsx +1 -0
- package/src/core/codemirror/language/types.ts +7 -7
- package/src/core/codemirror/language/utils.ts +9 -39
- package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +1 -1
- package/src/core/codemirror/readonly/extension.ts +2 -2
- package/src/core/codemirror/rtc/extension.ts +24 -13
- package/src/core/codemirror/rtc/loro/awareness.ts +34 -19
- package/src/core/codemirror/rtc/loro/sync.ts +1 -0
- package/src/core/codemirror/utils.ts +1 -0
- package/src/core/config/__tests__/config-schema.test.ts +5 -3
- package/src/core/config/config-schema.ts +3 -0
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +5 -5
- package/src/core/datasets/data-source-discovery.ts +4 -6
- package/src/core/edit-app.tsx +6 -5
- package/src/core/errors/error-entries.ts +3 -0
- package/src/core/export/hooks.ts +1 -1
- package/src/core/export/layout.ts +2 -2
- package/src/core/hotkeys/actions.ts +2 -4
- package/src/core/islands/__tests__/bootstrap.test.ts +16 -42
- package/src/core/islands/__tests__/bridge.test.ts +31 -26
- package/src/core/islands/bootstrap.ts +22 -52
- package/src/core/islands/bridge.ts +31 -21
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +7 -5
- package/src/core/islands/worker/__tests__/controller.test.ts +62 -4
- package/src/core/islands/worker/controller.ts +4 -10
- package/src/core/islands/worker/worker.tsx +33 -33
- package/src/core/kernel/__tests__/RuntimeState.test.ts +1 -1
- package/src/core/network/__tests__/connection.test.ts +1 -1
- package/src/core/network/connection-notice.ts +1 -1
- package/src/core/network/connection.ts +5 -3
- package/src/core/network/requests-lazy.ts +1 -2
- package/src/core/network/requests-network.ts +0 -9
- package/src/core/network/requests-static.ts +0 -1
- package/src/core/network/requests-toasting.tsx +0 -1
- package/src/core/network/types.ts +0 -5
- package/src/core/network/useConnectionNotice.ts +8 -2
- package/src/core/notebook/attachments.ts +38 -0
- package/src/core/notebook/document/__tests__/codemirror.test.ts +547 -0
- package/src/core/notebook/document/__tests__/draft.test.ts +322 -0
- package/src/core/notebook/document/__tests__/fixtures.ts +92 -0
- package/src/core/notebook/document/__tests__/hold.test.ts +88 -0
- package/src/core/notebook/document/__tests__/hooks.test.tsx +391 -0
- package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +61 -0
- package/src/core/notebook/document/__tests__/model.test.ts +247 -0
- package/src/core/notebook/document/__tests__/protocol-fixtures.ts +38 -0
- package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +230 -0
- package/src/core/notebook/document/__tests__/scenario-fixture.ts +43 -0
- package/src/core/notebook/document/__tests__/scenarios.test.ts +205 -0
- package/src/core/notebook/document/__tests__/state.test.ts +438 -0
- package/src/core/notebook/document/__tests__/submission.test.ts +203 -0
- package/src/core/notebook/document/__tests__/test-host.test.ts +92 -0
- package/src/core/notebook/document/__tests__/test-host.ts +247 -0
- package/src/core/notebook/document/__tests__/test-notebook.ts +149 -0
- package/src/core/notebook/document/__tests__/user.ts +61 -0
- package/src/core/notebook/document/codemirror.ts +216 -0
- package/src/core/notebook/document/draft.ts +472 -0
- package/src/core/notebook/document/hooks.tsx +118 -0
- package/src/core/notebook/document/index.ts +23 -0
- package/src/core/notebook/document/model.ts +105 -0
- package/src/core/notebook/document/select.ts +41 -0
- package/src/core/notebook/document/state.ts +374 -0
- package/src/core/notebook/document/sync.ts +418 -0
- package/src/core/notebook/index.ts +18 -0
- package/src/core/notebook/replica/AGENTS.md +11 -0
- package/src/core/notebook/replica/__tests__/attachments.test.ts +56 -0
- package/src/core/notebook/replica/__tests__/document.test.ts +126 -0
- package/src/core/notebook/replica/__tests__/fixtures.ts +79 -0
- package/src/core/notebook/replica/__tests__/replica.test.ts +550 -0
- package/src/core/notebook/replica/backend.ts +19 -0
- package/src/core/notebook/replica/connection.ts +42 -0
- package/src/core/notebook/replica/index.ts +13 -0
- package/src/core/notebook/replica/replica.ts +286 -0
- package/src/core/notebook/replica/resources/attachments.ts +22 -0
- package/src/core/notebook/replica/resources/document.ts +101 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +1 -1
- package/src/core/packages/useSandboxController.ts +1 -1
- package/src/core/run-app.tsx +47 -44
- package/src/core/runtime/__tests__/adapter.test.ts +1 -1
- package/src/core/runtime/__tests__/createWsUrl.test.ts +77 -7
- package/src/core/runtime/__tests__/runtime.test.ts +32 -58
- package/src/core/runtime/adapter.ts +1 -1
- package/src/core/runtime/config.ts +2 -2
- package/src/core/runtime/runtime.ts +38 -42
- package/src/core/runtime/types.ts +0 -2
- package/src/core/saving/filename.ts +1 -1
- package/src/core/saving/save-component.tsx +10 -4
- package/src/core/saving/useAutoSave.ts +1 -1
- package/src/core/session/__tests__/backend.test.ts +235 -0
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +183 -0
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +669 -0
- package/src/core/session/active-notebook.ts +11 -0
- package/src/core/session/backend.ts +125 -0
- package/src/core/{websocket → session}/types.ts +2 -2
- package/src/core/session/useNotebookReplica.ts +72 -0
- package/src/core/{websocket → session}/useNotebookSession.tsx +56 -43
- package/src/core/state/__tests__/jotai.test.tsx +108 -0
- package/src/core/state/jotai.ts +1 -1
- package/src/core/static/__tests__/files.test.ts +38 -10
- package/src/core/static/files.ts +2 -0
- package/src/core/{websocket → transports}/__tests__/connection-state.test.ts +1 -13
- package/src/core/transports/__tests__/server.test.ts +408 -0
- package/src/core/transports/__tests__/static.test.ts +175 -0
- package/src/core/transports/__tests__/wasm.test.ts +166 -0
- package/src/core/{websocket → transports}/connection-state.ts +9 -16
- package/src/core/transports/server.ts +152 -0
- package/src/core/transports/static.ts +84 -0
- package/src/core/transports/wasm.ts +97 -0
- package/src/core/wasm/__tests__/bridge.test.ts +213 -50
- package/src/core/wasm/__tests__/worker.test.ts +187 -0
- package/src/core/wasm/bridge.ts +75 -53
- package/src/core/wasm/rpc.ts +15 -3
- package/src/core/wasm/store.ts +3 -3
- package/src/core/wasm/worker/bootstrap.ts +55 -51
- package/src/core/wasm/worker/getMarimoWheel.ts +1 -1
- package/src/core/wasm/worker/save-worker.ts +9 -10
- package/src/core/wasm/worker/types.ts +29 -18
- package/src/core/wasm/worker/worker.ts +88 -44
- package/src/css/globals.css +10 -0
- package/src/hooks/__tests__/useAsyncData.test.tsx +148 -0
- package/src/hooks/__tests__/useDebounce.test.tsx +51 -0
- package/src/hooks/__tests__/useDeepCompareMemoize.test.tsx +39 -0
- package/src/hooks/__tests__/useDelayElapsed.test.tsx +28 -0
- package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +20 -0
- package/src/hooks/__tests__/useScript.test.tsx +77 -0
- package/src/hooks/__tests__/useStateForKey.test.tsx +257 -0
- package/src/hooks/useAsyncData.ts +3 -3
- package/src/hooks/useDataSourceDiscovery.ts +6 -4
- package/src/hooks/useDebounce.ts +6 -10
- package/src/hooks/useDeepCompareMemoize.ts +1 -1
- package/src/hooks/useDelayElapsed.ts +14 -10
- package/src/hooks/useElapsedTime.ts +3 -3
- package/src/hooks/useEventListener.ts +1 -2
- package/src/hooks/useInputHistory.ts +4 -7
- package/src/hooks/useInternalStateWithSync.ts +6 -6
- package/src/hooks/useResizeObserver.ts +4 -7
- package/src/hooks/useScript.ts +67 -70
- package/src/hooks/useStateForKey.ts +93 -0
- package/src/mount.tsx +1 -5
- package/src/plugins/__tests__/plugin-object-schemas.test.ts +104 -0
- package/src/plugins/core/registerReactComponent.tsx +1 -1
- package/src/plugins/impl/CodeEditorPlugin.tsx +1 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +1 -1
- package/src/plugins/impl/DataTablePlugin.tsx +69 -37
- package/src/plugins/impl/DropdownPlugin.tsx +2 -6
- package/src/plugins/impl/FileBrowserPlugin.tsx +4 -16
- package/src/plugins/impl/FormPlugin.tsx +1 -1
- package/src/plugins/impl/RangeSliderPlugin.tsx +16 -2
- package/src/plugins/impl/RefreshPlugin.tsx +1 -0
- package/src/plugins/impl/SliderPlugin.tsx +6 -8
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +387 -1
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +45 -0
- package/src/plugins/impl/__tests__/RangeSliderPlugin.test.tsx +109 -0
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +24 -3
- package/src/plugins/impl/anywidget/__tests__/registry.test.ts +153 -0
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +241 -2
- package/src/plugins/impl/anywidget/model.ts +3 -1
- package/src/plugins/impl/anywidget/registry.ts +18 -14
- package/src/plugins/impl/anywidget/runtime.ts +21 -9
- package/src/plugins/impl/anywidget/widget-binding.ts +160 -82
- package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +93 -0
- package/src/plugins/impl/chat/chat-ui.tsx +14 -11
- package/src/plugins/impl/code/any-language-editor.tsx +2 -2
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +8 -5
- package/src/plugins/impl/data-editor/glide-utils.ts +3 -1
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +1 -1
- package/src/plugins/impl/data-explorer/components/column-summary.tsx +4 -2
- package/src/plugins/impl/data-explorer/state/reducer.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -2
- package/src/plugins/impl/data-frames/__tests__/sidebar.test.tsx +160 -0
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +66 -66
- package/src/plugins/impl/data-frames/panel.tsx +43 -16
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +5 -3
- package/src/plugins/impl/panel/PanelPlugin.tsx +16 -17
- package/src/plugins/impl/panel/__tests__/utils.test.ts +39 -1
- package/src/plugins/impl/panel/utils.ts +17 -0
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +2 -5
- package/src/plugins/impl/plotly/selection.ts +25 -19
- package/src/plugins/impl/vega/VegaPlugin.tsx +2 -3
- package/src/plugins/impl/vega/make-selectable.ts +4 -7
- package/src/plugins/layout/RoutesPlugin.tsx +1 -1
- package/src/stories/__tests__/editor-story.test.tsx +33 -0
- package/src/stories/button.stories.tsx +1 -0
- package/src/stories/cell.stories.tsx +1 -1
- package/src/stories/data-table.stories.tsx +31 -0
- package/src/stories/editor.stories.tsx +24 -17
- package/src/stories/form-wrapper.stories.tsx +2 -2
- package/src/stories/layout/vertical/one-column.stories.tsx +1 -1
- package/src/stories/runtime-story.tsx +1 -1
- package/src/stories/select.stories.tsx +2 -2
- package/src/stories/switchable-multi-select.stories.tsx +1 -1
- package/src/utils/__tests__/arrays.test.ts +35 -0
- package/src/utils/__tests__/batch-requests.test.ts +3 -3
- package/src/utils/__tests__/{createReducer.test.ts → createReducer.test.tsx} +29 -0
- package/src/utils/__tests__/numbers.test.ts +105 -1
- package/src/utils/__tests__/objects.test.ts +21 -0
- package/src/utils/arrays.ts +11 -2
- package/src/utils/blob.ts +1 -1
- package/src/utils/createReducer.ts +53 -26
- package/src/utils/maps.ts +0 -3
- package/src/utils/numbers.ts +79 -18
- package/src/utils/objects.ts +4 -9
- package/src/utils/once.ts +19 -19
- package/src/utils/tracer.ts +9 -5
- package/src/utils/zod-utils.ts +1 -3
- package/dist/any-language-editor-DZ_YTVus.js +0 -76
- package/dist/assets/__vite-browser-external-BXYkiFsk.js +0 -1
- package/dist/assets/worker-HPY9fbhz.js +0 -114
- package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +0 -2
- package/dist/precisionRound-DMIVQrt2.js +0 -97
- package/src/core/attachments/state.ts +0 -21
- package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
- package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
- package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
- package/src/core/cells/document-changes.ts +0 -944
- package/src/core/host/AGENTS.md +0 -6
- package/src/core/host/__tests__/events.test.ts +0 -46
- package/src/core/host/__tests__/notebook-client.test.ts +0 -191
- package/src/core/host/__tests__/protocol.test.ts +0 -214
- package/src/core/host/connection.ts +0 -81
- package/src/core/host/events.ts +0 -60
- package/src/core/host/notebook-client.ts +0 -226
- package/src/core/host/protocol.ts +0 -1943
- package/src/core/state/__tests__/jotai.test.ts +0 -25
- package/src/core/wasm/worker/message-buffer.ts +0 -33
- package/src/core/websocket/__tests__/createConnectionTransport.test.ts +0 -49
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +0 -140
- package/src/core/websocket/__tests__/useNotebookSession.hook.test.tsx +0 -883
- package/src/core/websocket/transports/__tests__/basic.test.ts +0 -275
- package/src/core/websocket/transports/__tests__/sse.test.ts +0 -335
- package/src/core/websocket/transports/__tests__/transport.test.ts +0 -308
- package/src/core/websocket/transports/__tests__/ws.test.ts +0 -125
- package/src/core/websocket/transports/basic.ts +0 -102
- package/src/core/websocket/transports/create.ts +0 -31
- package/src/core/websocket/transports/sse.ts +0 -308
- package/src/core/websocket/transports/transport.ts +0 -50
- package/src/core/websocket/transports/ws.ts +0 -98
- package/src/core/websocket/useNotebookClient.ts +0 -80
- /package/src/{core/attachments/toast.ts → components/editor/agent-toast.ts} +0 -0
- /package/src/core/{websocket → session}/connection-utils.ts +0 -0
|
@@ -3,7 +3,7 @@ import { t } from "./react-sHtZdjeP.js";
|
|
|
3
3
|
import { t as n } from "./compiler-runtime-CldRdSsv.js";
|
|
4
4
|
import { t as r } from "./clsx-CoeGtWvn.js";
|
|
5
5
|
import { t as i } from "./jsx-runtime-3BD1kT0s.js";
|
|
6
|
-
import { t as a } from "./objects-
|
|
6
|
+
import { t as a } from "./objects-DCmMvZtn.js";
|
|
7
7
|
//#region src/utils/functions.ts
|
|
8
8
|
var o = {
|
|
9
9
|
NOOP: () => {},
|
|
@@ -61,11 +61,11 @@ function d() {
|
|
|
61
61
|
return typeof window < "u" && window.Logger || l;
|
|
62
62
|
}
|
|
63
63
|
var f = d(), p = /* @__PURE__ */ e(t(), 1), m = n(), h = "-", g = (e) => {
|
|
64
|
-
let t =
|
|
64
|
+
let t = y(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
65
65
|
return {
|
|
66
66
|
getClassGroupId: (e) => {
|
|
67
67
|
let n = e.split(h);
|
|
68
|
-
return n[0] === "" && n.length !== 1 && n.shift(), _(n, t) ||
|
|
68
|
+
return n[0] === "" && n.length !== 1 && n.shift(), _(n, t) || ee(e);
|
|
69
69
|
},
|
|
70
70
|
getConflictingClassGroupIds: (e, t) => {
|
|
71
71
|
let i = n[e] || [];
|
|
@@ -79,29 +79,29 @@ var f = d(), p = /* @__PURE__ */ e(t(), 1), m = n(), h = "-", g = (e) => {
|
|
|
79
79
|
if (t.validators.length === 0) return;
|
|
80
80
|
let a = e.join(h);
|
|
81
81
|
return t.validators.find(({ validator: e }) => e(a))?.classGroupId;
|
|
82
|
-
}, v = /^\[(.+)\]$/,
|
|
82
|
+
}, v = /^\[(.+)\]$/, ee = (e) => {
|
|
83
83
|
if (v.test(e)) {
|
|
84
84
|
let t = v.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
|
|
85
85
|
if (n) return "arbitrary.." + n;
|
|
86
86
|
}
|
|
87
|
-
},
|
|
87
|
+
}, y = (e) => {
|
|
88
88
|
let { theme: t, prefix: n } = e, r = {
|
|
89
89
|
nextPart: /* @__PURE__ */ new Map(),
|
|
90
90
|
validators: []
|
|
91
91
|
};
|
|
92
|
-
return
|
|
93
|
-
|
|
92
|
+
return ne(Object.entries(e.classGroups), n).forEach(([e, n]) => {
|
|
93
|
+
b(n, r, e, t);
|
|
94
94
|
}), r;
|
|
95
|
-
},
|
|
95
|
+
}, b = (e, t, n, r) => {
|
|
96
96
|
e.forEach((e) => {
|
|
97
97
|
if (typeof e == "string") {
|
|
98
|
-
let r = e === "" ? t :
|
|
98
|
+
let r = e === "" ? t : x(t, e);
|
|
99
99
|
r.classGroupId = n;
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
if (typeof e == "function") {
|
|
103
|
-
if (
|
|
104
|
-
|
|
103
|
+
if (te(e)) {
|
|
104
|
+
b(e(r), t, n, r);
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
t.validators.push({
|
|
@@ -111,10 +111,10 @@ var f = d(), p = /* @__PURE__ */ e(t(), 1), m = n(), h = "-", g = (e) => {
|
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
Object.entries(e).forEach(([e, i]) => {
|
|
114
|
-
|
|
114
|
+
b(i, x(t, e), n, r);
|
|
115
115
|
});
|
|
116
116
|
});
|
|
117
|
-
},
|
|
117
|
+
}, x = (e, t) => {
|
|
118
118
|
let n = e;
|
|
119
119
|
return t.split(h).forEach((e) => {
|
|
120
120
|
n.nextPart.has(e) || n.nextPart.set(e, {
|
|
@@ -122,7 +122,7 @@ var f = d(), p = /* @__PURE__ */ e(t(), 1), m = n(), h = "-", g = (e) => {
|
|
|
122
122
|
validators: []
|
|
123
123
|
}), n = n.nextPart.get(e);
|
|
124
124
|
}), n;
|
|
125
|
-
},
|
|
125
|
+
}, te = (e) => e.isThemeGetter, ne = (e, t) => t ? e.map(([e, n]) => [e, n.map((e) => typeof e == "string" ? t + e : typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([e, n]) => [t + e, n])) : e)]) : e, S = (e) => {
|
|
126
126
|
if (e < 1) return {
|
|
127
127
|
get: () => void 0,
|
|
128
128
|
set: () => {}
|
|
@@ -140,7 +140,7 @@ var f = d(), p = /* @__PURE__ */ e(t(), 1), m = n(), h = "-", g = (e) => {
|
|
|
140
140
|
n.has(e) ? n.set(e, t) : i(e, t);
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
},
|
|
143
|
+
}, C = "!", w = (e) => {
|
|
144
144
|
let { separator: t, experimentalParseClassName: n } = e, r = t.length === 1, i = t[0], a = t.length, o = (e) => {
|
|
145
145
|
let n = [], o = 0, s = 0, c;
|
|
146
146
|
for (let l = 0; l < e.length; l++) {
|
|
@@ -157,7 +157,7 @@ var f = d(), p = /* @__PURE__ */ e(t(), 1), m = n(), h = "-", g = (e) => {
|
|
|
157
157
|
}
|
|
158
158
|
u === "[" ? o++ : u === "]" && o--;
|
|
159
159
|
}
|
|
160
|
-
let l = n.length === 0 ? e : e.substring(s), u = l.startsWith(
|
|
160
|
+
let l = n.length === 0 ? e : e.substring(s), u = l.startsWith(C);
|
|
161
161
|
return {
|
|
162
162
|
modifiers: n,
|
|
163
163
|
hasImportantModifier: u,
|
|
@@ -169,18 +169,18 @@ var f = d(), p = /* @__PURE__ */ e(t(), 1), m = n(), h = "-", g = (e) => {
|
|
|
169
169
|
className: e,
|
|
170
170
|
parseClassName: o
|
|
171
171
|
}) : o;
|
|
172
|
-
},
|
|
172
|
+
}, T = (e) => {
|
|
173
173
|
if (e.length <= 1) return e;
|
|
174
174
|
let t = [], n = [];
|
|
175
175
|
return e.forEach((e) => {
|
|
176
176
|
e[0] === "[" ? (t.push(...n.sort(), e), n = []) : n.push(e);
|
|
177
177
|
}), t.push(...n.sort()), t;
|
|
178
|
-
},
|
|
179
|
-
cache:
|
|
180
|
-
parseClassName:
|
|
178
|
+
}, re = (e) => ({
|
|
179
|
+
cache: S(e.cacheSize),
|
|
180
|
+
parseClassName: w(e),
|
|
181
181
|
...g(e)
|
|
182
|
-
}),
|
|
183
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i } = t, a = [], o = e.trim().split(
|
|
182
|
+
}), E = /\s+/, D = (e, t) => {
|
|
183
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i } = t, a = [], o = e.trim().split(E), s = "";
|
|
184
184
|
for (let e = o.length - 1; e >= 0; --e) {
|
|
185
185
|
let t = o[e], { modifiers: c, hasImportantModifier: l, baseClassName: u, maybePostfixModifierPosition: d } = n(t), f = !!d, p = r(f ? u.substring(0, d) : u);
|
|
186
186
|
if (!p) {
|
|
@@ -194,7 +194,7 @@ var f = d(), p = /* @__PURE__ */ e(t(), 1), m = n(), h = "-", g = (e) => {
|
|
|
194
194
|
}
|
|
195
195
|
f = !1;
|
|
196
196
|
}
|
|
197
|
-
let m =
|
|
197
|
+
let m = T(c).join(":"), h = l ? m + C : m, g = h + p;
|
|
198
198
|
if (a.includes(g)) continue;
|
|
199
199
|
a.push(g);
|
|
200
200
|
let _ = i(p, f);
|
|
@@ -206,70 +206,70 @@ var f = d(), p = /* @__PURE__ */ e(t(), 1), m = n(), h = "-", g = (e) => {
|
|
|
206
206
|
}
|
|
207
207
|
return s;
|
|
208
208
|
};
|
|
209
|
-
function
|
|
209
|
+
function O() {
|
|
210
210
|
let e = 0, t, n, r = "";
|
|
211
|
-
for (; e < arguments.length;) (t = arguments[e++]) && (n =
|
|
211
|
+
for (; e < arguments.length;) (t = arguments[e++]) && (n = k(t)) && (r && (r += " "), r += n);
|
|
212
212
|
return r;
|
|
213
213
|
}
|
|
214
|
-
var
|
|
214
|
+
var k = (e) => {
|
|
215
215
|
if (typeof e == "string") return e;
|
|
216
216
|
let t, n = "";
|
|
217
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
217
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = k(e[r])) && (n && (n += " "), n += t);
|
|
218
218
|
return n;
|
|
219
219
|
};
|
|
220
|
-
function
|
|
220
|
+
function A(e, ...t) {
|
|
221
221
|
let n, r, i, a = o;
|
|
222
222
|
function o(o) {
|
|
223
|
-
return n =
|
|
223
|
+
return n = re(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o);
|
|
224
224
|
}
|
|
225
225
|
function s(e) {
|
|
226
226
|
let t = r(e);
|
|
227
227
|
if (t) return t;
|
|
228
|
-
let a =
|
|
228
|
+
let a = D(e, n);
|
|
229
229
|
return i(e, a), a;
|
|
230
230
|
}
|
|
231
231
|
return function() {
|
|
232
|
-
return a(
|
|
232
|
+
return a(O.apply(null, arguments));
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var j = (e) => {
|
|
236
236
|
let t = (t) => t[e] || [];
|
|
237
237
|
return t.isThemeGetter = !0, t;
|
|
238
|
-
},
|
|
238
|
+
}, M = /^\[(?:([a-z-]+):)?(.+)\]$/i, N = /^\d+\/\d+$/, P = /*#__PURE__*/ new Set([
|
|
239
239
|
"px",
|
|
240
240
|
"full",
|
|
241
241
|
"screen"
|
|
242
|
-
]),
|
|
242
|
+
]), ie = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ae = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, oe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, se = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ce = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, F = (e) => L(e) || P.has(e) || N.test(e), I = (e) => U(e, "length", ge), L = (e) => !!e && !Number.isNaN(Number(e)), R = (e) => U(e, "number", L), z = (e) => !!e && Number.isInteger(Number(e)), le = (e) => e.endsWith("%") && L(e.slice(0, -1)), B = (e) => M.test(e), V = (e) => ie.test(e), ue = /*#__PURE__*/ new Set([
|
|
243
243
|
"length",
|
|
244
244
|
"size",
|
|
245
245
|
"percentage"
|
|
246
246
|
]), de = (e) => U(e, ue, _e), fe = (e) => U(e, "position", _e), pe = /*#__PURE__*/ new Set(["image", "url"]), me = (e) => U(e, pe, ye), he = (e) => U(e, "", ve), H = () => !0, U = (e, t, n) => {
|
|
247
|
-
let r =
|
|
247
|
+
let r = M.exec(e);
|
|
248
248
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
249
|
-
}, ge = (e) =>
|
|
250
|
-
let e =
|
|
249
|
+
}, ge = (e) => ae.test(e) && !oe.test(e), _e = () => !1, ve = (e) => se.test(e), ye = (e) => ce.test(e), be = /*#__PURE__*/ A(() => {
|
|
250
|
+
let e = j("colors"), t = j("spacing"), n = j("blur"), r = j("brightness"), i = j("borderColor"), a = j("borderRadius"), o = j("borderSpacing"), s = j("borderWidth"), c = j("contrast"), l = j("grayscale"), u = j("hueRotate"), d = j("invert"), f = j("gap"), p = j("gradientColorStops"), m = j("gradientColorStopPositions"), h = j("inset"), g = j("margin"), _ = j("opacity"), v = j("padding"), ee = j("saturate"), y = j("scale"), b = j("sepia"), x = j("skew"), te = j("space"), ne = j("translate"), S = () => [
|
|
251
251
|
"auto",
|
|
252
252
|
"contain",
|
|
253
253
|
"none"
|
|
254
|
-
],
|
|
254
|
+
], C = () => [
|
|
255
255
|
"auto",
|
|
256
256
|
"hidden",
|
|
257
257
|
"clip",
|
|
258
258
|
"visible",
|
|
259
259
|
"scroll"
|
|
260
|
-
],
|
|
260
|
+
], w = () => [
|
|
261
261
|
"auto",
|
|
262
262
|
B,
|
|
263
263
|
t
|
|
264
|
-
],
|
|
264
|
+
], T = () => [B, t], re = () => [
|
|
265
265
|
"",
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
],
|
|
266
|
+
F,
|
|
267
|
+
I
|
|
268
|
+
], E = () => [
|
|
269
269
|
"auto",
|
|
270
|
-
|
|
270
|
+
L,
|
|
271
271
|
B
|
|
272
|
-
],
|
|
272
|
+
], D = () => [
|
|
273
273
|
"bottom",
|
|
274
274
|
"center",
|
|
275
275
|
"left",
|
|
@@ -279,13 +279,13 @@ var M = (e) => {
|
|
|
279
279
|
"right-bottom",
|
|
280
280
|
"right-top",
|
|
281
281
|
"top"
|
|
282
|
-
],
|
|
282
|
+
], O = () => [
|
|
283
283
|
"solid",
|
|
284
284
|
"dashed",
|
|
285
285
|
"dotted",
|
|
286
286
|
"double",
|
|
287
287
|
"none"
|
|
288
|
-
],
|
|
288
|
+
], k = () => [
|
|
289
289
|
"normal",
|
|
290
290
|
"multiply",
|
|
291
291
|
"screen",
|
|
@@ -302,7 +302,7 @@ var M = (e) => {
|
|
|
302
302
|
"saturation",
|
|
303
303
|
"color",
|
|
304
304
|
"luminosity"
|
|
305
|
-
],
|
|
305
|
+
], A = () => [
|
|
306
306
|
"start",
|
|
307
307
|
"end",
|
|
308
308
|
"center",
|
|
@@ -310,11 +310,11 @@ var M = (e) => {
|
|
|
310
310
|
"around",
|
|
311
311
|
"evenly",
|
|
312
312
|
"stretch"
|
|
313
|
-
],
|
|
313
|
+
], M = () => [
|
|
314
314
|
"",
|
|
315
315
|
"0",
|
|
316
316
|
B
|
|
317
|
-
],
|
|
317
|
+
], N = () => [
|
|
318
318
|
"auto",
|
|
319
319
|
"avoid",
|
|
320
320
|
"all",
|
|
@@ -323,20 +323,20 @@ var M = (e) => {
|
|
|
323
323
|
"left",
|
|
324
324
|
"right",
|
|
325
325
|
"column"
|
|
326
|
-
],
|
|
326
|
+
], P = () => [L, B];
|
|
327
327
|
return {
|
|
328
328
|
cacheSize: 500,
|
|
329
329
|
separator: ":",
|
|
330
330
|
theme: {
|
|
331
331
|
colors: [H],
|
|
332
|
-
spacing: [
|
|
332
|
+
spacing: [F, I],
|
|
333
333
|
blur: [
|
|
334
334
|
"none",
|
|
335
335
|
"",
|
|
336
336
|
V,
|
|
337
337
|
B
|
|
338
338
|
],
|
|
339
|
-
brightness:
|
|
339
|
+
brightness: P(),
|
|
340
340
|
borderColor: [e],
|
|
341
341
|
borderRadius: [
|
|
342
342
|
"none",
|
|
@@ -345,25 +345,25 @@ var M = (e) => {
|
|
|
345
345
|
V,
|
|
346
346
|
B
|
|
347
347
|
],
|
|
348
|
-
borderSpacing:
|
|
349
|
-
borderWidth:
|
|
350
|
-
contrast:
|
|
351
|
-
grayscale:
|
|
352
|
-
hueRotate:
|
|
353
|
-
invert:
|
|
354
|
-
gap:
|
|
348
|
+
borderSpacing: T(),
|
|
349
|
+
borderWidth: re(),
|
|
350
|
+
contrast: P(),
|
|
351
|
+
grayscale: M(),
|
|
352
|
+
hueRotate: P(),
|
|
353
|
+
invert: M(),
|
|
354
|
+
gap: T(),
|
|
355
355
|
gradientColorStops: [e],
|
|
356
|
-
gradientColorStopPositions: [le,
|
|
357
|
-
inset:
|
|
358
|
-
margin:
|
|
359
|
-
opacity:
|
|
360
|
-
padding:
|
|
361
|
-
saturate:
|
|
362
|
-
scale:
|
|
363
|
-
sepia:
|
|
364
|
-
skew:
|
|
365
|
-
space:
|
|
366
|
-
translate:
|
|
356
|
+
gradientColorStopPositions: [le, I],
|
|
357
|
+
inset: w(),
|
|
358
|
+
margin: w(),
|
|
359
|
+
opacity: P(),
|
|
360
|
+
padding: T(),
|
|
361
|
+
saturate: P(),
|
|
362
|
+
scale: P(),
|
|
363
|
+
sepia: M(),
|
|
364
|
+
skew: P(),
|
|
365
|
+
space: T(),
|
|
366
|
+
translate: T()
|
|
367
367
|
},
|
|
368
368
|
classGroups: {
|
|
369
369
|
aspect: [{ aspect: [
|
|
@@ -374,8 +374,8 @@ var M = (e) => {
|
|
|
374
374
|
] }],
|
|
375
375
|
container: ["container"],
|
|
376
376
|
columns: [{ columns: [V] }],
|
|
377
|
-
"break-after": [{ "break-after":
|
|
378
|
-
"break-before": [{ "break-before":
|
|
377
|
+
"break-after": [{ "break-after": N() }],
|
|
378
|
+
"break-before": [{ "break-before": N() }],
|
|
379
379
|
"break-inside": [{ "break-inside": [
|
|
380
380
|
"auto",
|
|
381
381
|
"avoid",
|
|
@@ -430,13 +430,13 @@ var M = (e) => {
|
|
|
430
430
|
"none",
|
|
431
431
|
"scale-down"
|
|
432
432
|
] }],
|
|
433
|
-
"object-position": [{ object: [...
|
|
434
|
-
overflow: [{ overflow:
|
|
435
|
-
"overflow-x": [{ "overflow-x":
|
|
436
|
-
"overflow-y": [{ "overflow-y":
|
|
437
|
-
overscroll: [{ overscroll:
|
|
438
|
-
"overscroll-x": [{ "overscroll-x":
|
|
439
|
-
"overscroll-y": [{ "overscroll-y":
|
|
433
|
+
"object-position": [{ object: [...D(), B] }],
|
|
434
|
+
overflow: [{ overflow: C() }],
|
|
435
|
+
"overflow-x": [{ "overflow-x": C() }],
|
|
436
|
+
"overflow-y": [{ "overflow-y": C() }],
|
|
437
|
+
overscroll: [{ overscroll: S() }],
|
|
438
|
+
"overscroll-x": [{ "overscroll-x": S() }],
|
|
439
|
+
"overscroll-y": [{ "overscroll-y": S() }],
|
|
440
440
|
position: [
|
|
441
441
|
"static",
|
|
442
442
|
"fixed",
|
|
@@ -463,7 +463,7 @@ var M = (e) => {
|
|
|
463
463
|
z,
|
|
464
464
|
B
|
|
465
465
|
] }],
|
|
466
|
-
basis: [{ basis:
|
|
466
|
+
basis: [{ basis: w() }],
|
|
467
467
|
"flex-direction": [{ flex: [
|
|
468
468
|
"row",
|
|
469
469
|
"row-reverse",
|
|
@@ -482,8 +482,8 @@ var M = (e) => {
|
|
|
482
482
|
"none",
|
|
483
483
|
B
|
|
484
484
|
] }],
|
|
485
|
-
grow: [{ grow:
|
|
486
|
-
shrink: [{ shrink:
|
|
485
|
+
grow: [{ grow: M() }],
|
|
486
|
+
shrink: [{ shrink: M() }],
|
|
487
487
|
order: [{ order: [
|
|
488
488
|
"first",
|
|
489
489
|
"last",
|
|
@@ -501,16 +501,16 @@ var M = (e) => {
|
|
|
501
501
|
] },
|
|
502
502
|
B
|
|
503
503
|
] }],
|
|
504
|
-
"col-start": [{ "col-start":
|
|
505
|
-
"col-end": [{ "col-end":
|
|
504
|
+
"col-start": [{ "col-start": E() }],
|
|
505
|
+
"col-end": [{ "col-end": E() }],
|
|
506
506
|
"grid-rows": [{ "grid-rows": [H] }],
|
|
507
507
|
"row-start-end": [{ row: [
|
|
508
508
|
"auto",
|
|
509
509
|
{ span: [z, B] },
|
|
510
510
|
B
|
|
511
511
|
] }],
|
|
512
|
-
"row-start": [{ "row-start":
|
|
513
|
-
"row-end": [{ "row-end":
|
|
512
|
+
"row-start": [{ "row-start": E() }],
|
|
513
|
+
"row-end": [{ "row-end": E() }],
|
|
514
514
|
"grid-flow": [{ "grid-flow": [
|
|
515
515
|
"row",
|
|
516
516
|
"col",
|
|
@@ -535,7 +535,7 @@ var M = (e) => {
|
|
|
535
535
|
gap: [{ gap: [f] }],
|
|
536
536
|
"gap-x": [{ "gap-x": [f] }],
|
|
537
537
|
"gap-y": [{ "gap-y": [f] }],
|
|
538
|
-
"justify-content": [{ justify: ["normal", ...
|
|
538
|
+
"justify-content": [{ justify: ["normal", ...A()] }],
|
|
539
539
|
"justify-items": [{ "justify-items": [
|
|
540
540
|
"start",
|
|
541
541
|
"end",
|
|
@@ -551,7 +551,7 @@ var M = (e) => {
|
|
|
551
551
|
] }],
|
|
552
552
|
"align-content": [{ content: [
|
|
553
553
|
"normal",
|
|
554
|
-
...
|
|
554
|
+
...A(),
|
|
555
555
|
"baseline"
|
|
556
556
|
] }],
|
|
557
557
|
"align-items": [{ items: [
|
|
@@ -569,7 +569,7 @@ var M = (e) => {
|
|
|
569
569
|
"stretch",
|
|
570
570
|
"baseline"
|
|
571
571
|
] }],
|
|
572
|
-
"place-content": [{ "place-content": [...
|
|
572
|
+
"place-content": [{ "place-content": [...A(), "baseline"] }],
|
|
573
573
|
"place-items": [{ "place-items": [
|
|
574
574
|
"start",
|
|
575
575
|
"end",
|
|
@@ -602,9 +602,9 @@ var M = (e) => {
|
|
|
602
602
|
mr: [{ mr: [g] }],
|
|
603
603
|
mb: [{ mb: [g] }],
|
|
604
604
|
ml: [{ ml: [g] }],
|
|
605
|
-
"space-x": [{ "space-x": [
|
|
605
|
+
"space-x": [{ "space-x": [te] }],
|
|
606
606
|
"space-x-reverse": ["space-x-reverse"],
|
|
607
|
-
"space-y": [{ "space-y": [
|
|
607
|
+
"space-y": [{ "space-y": [te] }],
|
|
608
608
|
"space-y-reverse": ["space-y-reverse"],
|
|
609
609
|
w: [{ w: [
|
|
610
610
|
"auto",
|
|
@@ -678,7 +678,7 @@ var M = (e) => {
|
|
|
678
678
|
"font-size": [{ text: [
|
|
679
679
|
"base",
|
|
680
680
|
V,
|
|
681
|
-
|
|
681
|
+
I
|
|
682
682
|
] }],
|
|
683
683
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
684
684
|
"font-style": ["italic", "not-italic"],
|
|
@@ -692,7 +692,7 @@ var M = (e) => {
|
|
|
692
692
|
"bold",
|
|
693
693
|
"extrabold",
|
|
694
694
|
"black",
|
|
695
|
-
|
|
695
|
+
R
|
|
696
696
|
] }],
|
|
697
697
|
"font-family": [{ font: [H] }],
|
|
698
698
|
"fvn-normal": ["normal-nums"],
|
|
@@ -712,8 +712,8 @@ var M = (e) => {
|
|
|
712
712
|
] }],
|
|
713
713
|
"line-clamp": [{ "line-clamp": [
|
|
714
714
|
"none",
|
|
715
|
-
|
|
716
|
-
|
|
715
|
+
L,
|
|
716
|
+
R
|
|
717
717
|
] }],
|
|
718
718
|
leading: [{ leading: [
|
|
719
719
|
"none",
|
|
@@ -722,7 +722,7 @@ var M = (e) => {
|
|
|
722
722
|
"normal",
|
|
723
723
|
"relaxed",
|
|
724
724
|
"loose",
|
|
725
|
-
|
|
725
|
+
F,
|
|
726
726
|
B
|
|
727
727
|
] }],
|
|
728
728
|
"list-image": [{ "list-image": ["none", B] }],
|
|
@@ -751,16 +751,16 @@ var M = (e) => {
|
|
|
751
751
|
"line-through",
|
|
752
752
|
"no-underline"
|
|
753
753
|
],
|
|
754
|
-
"text-decoration-style": [{ decoration: [...
|
|
754
|
+
"text-decoration-style": [{ decoration: [...O(), "wavy"] }],
|
|
755
755
|
"text-decoration-thickness": [{ decoration: [
|
|
756
756
|
"auto",
|
|
757
757
|
"from-font",
|
|
758
|
-
|
|
759
|
-
|
|
758
|
+
F,
|
|
759
|
+
I
|
|
760
760
|
] }],
|
|
761
761
|
"underline-offset": [{ "underline-offset": [
|
|
762
762
|
"auto",
|
|
763
|
-
|
|
763
|
+
F,
|
|
764
764
|
B
|
|
765
765
|
] }],
|
|
766
766
|
"text-decoration-color": [{ decoration: [e] }],
|
|
@@ -781,7 +781,7 @@ var M = (e) => {
|
|
|
781
781
|
"balance",
|
|
782
782
|
"pretty"
|
|
783
783
|
] }],
|
|
784
|
-
indent: [{ indent:
|
|
784
|
+
indent: [{ indent: T() }],
|
|
785
785
|
"vertical-align": [{ align: [
|
|
786
786
|
"baseline",
|
|
787
787
|
"top",
|
|
@@ -830,7 +830,7 @@ var M = (e) => {
|
|
|
830
830
|
"padding",
|
|
831
831
|
"content"
|
|
832
832
|
] }],
|
|
833
|
-
"bg-position": [{ bg: [...
|
|
833
|
+
"bg-position": [{ bg: [...D(), fe] }],
|
|
834
834
|
"bg-repeat": [{ bg: ["no-repeat", { repeat: [
|
|
835
835
|
"",
|
|
836
836
|
"x",
|
|
@@ -890,13 +890,13 @@ var M = (e) => {
|
|
|
890
890
|
"border-w-b": [{ "border-b": [s] }],
|
|
891
891
|
"border-w-l": [{ "border-l": [s] }],
|
|
892
892
|
"border-opacity": [{ "border-opacity": [_] }],
|
|
893
|
-
"border-style": [{ border: [...
|
|
893
|
+
"border-style": [{ border: [...O(), "hidden"] }],
|
|
894
894
|
"divide-x": [{ "divide-x": [s] }],
|
|
895
895
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
896
896
|
"divide-y": [{ "divide-y": [s] }],
|
|
897
897
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
898
898
|
"divide-opacity": [{ "divide-opacity": [_] }],
|
|
899
|
-
"divide-style": [{ divide:
|
|
899
|
+
"divide-style": [{ divide: O() }],
|
|
900
900
|
"border-color": [{ border: [i] }],
|
|
901
901
|
"border-color-x": [{ "border-x": [i] }],
|
|
902
902
|
"border-color-y": [{ "border-y": [i] }],
|
|
@@ -907,15 +907,15 @@ var M = (e) => {
|
|
|
907
907
|
"border-color-b": [{ "border-b": [i] }],
|
|
908
908
|
"border-color-l": [{ "border-l": [i] }],
|
|
909
909
|
"divide-color": [{ divide: [i] }],
|
|
910
|
-
"outline-style": [{ outline: ["", ...
|
|
911
|
-
"outline-offset": [{ "outline-offset": [
|
|
912
|
-
"outline-w": [{ outline: [
|
|
910
|
+
"outline-style": [{ outline: ["", ...O()] }],
|
|
911
|
+
"outline-offset": [{ "outline-offset": [F, B] }],
|
|
912
|
+
"outline-w": [{ outline: [F, I] }],
|
|
913
913
|
"outline-color": [{ outline: [e] }],
|
|
914
|
-
"ring-w": [{ ring:
|
|
914
|
+
"ring-w": [{ ring: re() }],
|
|
915
915
|
"ring-w-inset": ["ring-inset"],
|
|
916
916
|
"ring-color": [{ ring: [e] }],
|
|
917
917
|
"ring-opacity": [{ "ring-opacity": [_] }],
|
|
918
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
918
|
+
"ring-offset-w": [{ "ring-offset": [F, I] }],
|
|
919
919
|
"ring-offset-color": [{ "ring-offset": [e] }],
|
|
920
920
|
shadow: [{ shadow: [
|
|
921
921
|
"",
|
|
@@ -927,11 +927,11 @@ var M = (e) => {
|
|
|
927
927
|
"shadow-color": [{ shadow: [H] }],
|
|
928
928
|
opacity: [{ opacity: [_] }],
|
|
929
929
|
"mix-blend": [{ "mix-blend": [
|
|
930
|
-
...
|
|
930
|
+
...k(),
|
|
931
931
|
"plus-lighter",
|
|
932
932
|
"plus-darker"
|
|
933
933
|
] }],
|
|
934
|
-
"bg-blend": [{ "bg-blend":
|
|
934
|
+
"bg-blend": [{ "bg-blend": k() }],
|
|
935
935
|
filter: [{ filter: ["", "none"] }],
|
|
936
936
|
blur: [{ blur: [n] }],
|
|
937
937
|
brightness: [{ brightness: [r] }],
|
|
@@ -945,8 +945,8 @@ var M = (e) => {
|
|
|
945
945
|
grayscale: [{ grayscale: [l] }],
|
|
946
946
|
"hue-rotate": [{ "hue-rotate": [u] }],
|
|
947
947
|
invert: [{ invert: [d] }],
|
|
948
|
-
saturate: [{ saturate: [
|
|
949
|
-
sepia: [{ sepia: [
|
|
948
|
+
saturate: [{ saturate: [ee] }],
|
|
949
|
+
sepia: [{ sepia: [b] }],
|
|
950
950
|
"backdrop-filter": [{ "backdrop-filter": ["", "none"] }],
|
|
951
951
|
"backdrop-blur": [{ "backdrop-blur": [n] }],
|
|
952
952
|
"backdrop-brightness": [{ "backdrop-brightness": [r] }],
|
|
@@ -955,8 +955,8 @@ var M = (e) => {
|
|
|
955
955
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [u] }],
|
|
956
956
|
"backdrop-invert": [{ "backdrop-invert": [d] }],
|
|
957
957
|
"backdrop-opacity": [{ "backdrop-opacity": [_] }],
|
|
958
|
-
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
959
|
-
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
958
|
+
"backdrop-saturate": [{ "backdrop-saturate": [ee] }],
|
|
959
|
+
"backdrop-sepia": [{ "backdrop-sepia": [b] }],
|
|
960
960
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
961
961
|
"border-spacing": [{ "border-spacing": [o] }],
|
|
962
962
|
"border-spacing-x": [{ "border-spacing-x": [o] }],
|
|
@@ -973,7 +973,7 @@ var M = (e) => {
|
|
|
973
973
|
"transform",
|
|
974
974
|
B
|
|
975
975
|
] }],
|
|
976
|
-
duration: [{ duration:
|
|
976
|
+
duration: [{ duration: P() }],
|
|
977
977
|
ease: [{ ease: [
|
|
978
978
|
"linear",
|
|
979
979
|
"in",
|
|
@@ -981,7 +981,7 @@ var M = (e) => {
|
|
|
981
981
|
"in-out",
|
|
982
982
|
B
|
|
983
983
|
] }],
|
|
984
|
-
delay: [{ delay:
|
|
984
|
+
delay: [{ delay: P() }],
|
|
985
985
|
animate: [{ animate: [
|
|
986
986
|
"none",
|
|
987
987
|
"spin",
|
|
@@ -995,14 +995,14 @@ var M = (e) => {
|
|
|
995
995
|
"gpu",
|
|
996
996
|
"none"
|
|
997
997
|
] }],
|
|
998
|
-
scale: [{ scale: [
|
|
999
|
-
"scale-x": [{ "scale-x": [
|
|
1000
|
-
"scale-y": [{ "scale-y": [
|
|
998
|
+
scale: [{ scale: [y] }],
|
|
999
|
+
"scale-x": [{ "scale-x": [y] }],
|
|
1000
|
+
"scale-y": [{ "scale-y": [y] }],
|
|
1001
1001
|
rotate: [{ rotate: [z, B] }],
|
|
1002
|
-
"translate-x": [{ "translate-x": [
|
|
1003
|
-
"translate-y": [{ "translate-y": [
|
|
1004
|
-
"skew-x": [{ "skew-x": [
|
|
1005
|
-
"skew-y": [{ "skew-y": [
|
|
1002
|
+
"translate-x": [{ "translate-x": [ne] }],
|
|
1003
|
+
"translate-y": [{ "translate-y": [ne] }],
|
|
1004
|
+
"skew-x": [{ "skew-x": [x] }],
|
|
1005
|
+
"skew-y": [{ "skew-y": [x] }],
|
|
1006
1006
|
"transform-origin": [{ origin: [
|
|
1007
1007
|
"center",
|
|
1008
1008
|
"top",
|
|
@@ -1065,24 +1065,24 @@ var M = (e) => {
|
|
|
1065
1065
|
""
|
|
1066
1066
|
] }],
|
|
1067
1067
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1068
|
-
"scroll-m": [{ "scroll-m":
|
|
1069
|
-
"scroll-mx": [{ "scroll-mx":
|
|
1070
|
-
"scroll-my": [{ "scroll-my":
|
|
1071
|
-
"scroll-ms": [{ "scroll-ms":
|
|
1072
|
-
"scroll-me": [{ "scroll-me":
|
|
1073
|
-
"scroll-mt": [{ "scroll-mt":
|
|
1074
|
-
"scroll-mr": [{ "scroll-mr":
|
|
1075
|
-
"scroll-mb": [{ "scroll-mb":
|
|
1076
|
-
"scroll-ml": [{ "scroll-ml":
|
|
1077
|
-
"scroll-p": [{ "scroll-p":
|
|
1078
|
-
"scroll-px": [{ "scroll-px":
|
|
1079
|
-
"scroll-py": [{ "scroll-py":
|
|
1080
|
-
"scroll-ps": [{ "scroll-ps":
|
|
1081
|
-
"scroll-pe": [{ "scroll-pe":
|
|
1082
|
-
"scroll-pt": [{ "scroll-pt":
|
|
1083
|
-
"scroll-pr": [{ "scroll-pr":
|
|
1084
|
-
"scroll-pb": [{ "scroll-pb":
|
|
1085
|
-
"scroll-pl": [{ "scroll-pl":
|
|
1068
|
+
"scroll-m": [{ "scroll-m": T() }],
|
|
1069
|
+
"scroll-mx": [{ "scroll-mx": T() }],
|
|
1070
|
+
"scroll-my": [{ "scroll-my": T() }],
|
|
1071
|
+
"scroll-ms": [{ "scroll-ms": T() }],
|
|
1072
|
+
"scroll-me": [{ "scroll-me": T() }],
|
|
1073
|
+
"scroll-mt": [{ "scroll-mt": T() }],
|
|
1074
|
+
"scroll-mr": [{ "scroll-mr": T() }],
|
|
1075
|
+
"scroll-mb": [{ "scroll-mb": T() }],
|
|
1076
|
+
"scroll-ml": [{ "scroll-ml": T() }],
|
|
1077
|
+
"scroll-p": [{ "scroll-p": T() }],
|
|
1078
|
+
"scroll-px": [{ "scroll-px": T() }],
|
|
1079
|
+
"scroll-py": [{ "scroll-py": T() }],
|
|
1080
|
+
"scroll-ps": [{ "scroll-ps": T() }],
|
|
1081
|
+
"scroll-pe": [{ "scroll-pe": T() }],
|
|
1082
|
+
"scroll-pt": [{ "scroll-pt": T() }],
|
|
1083
|
+
"scroll-pr": [{ "scroll-pr": T() }],
|
|
1084
|
+
"scroll-pb": [{ "scroll-pb": T() }],
|
|
1085
|
+
"scroll-pl": [{ "scroll-pl": T() }],
|
|
1086
1086
|
"snap-align": [{ snap: [
|
|
1087
1087
|
"start",
|
|
1088
1088
|
"end",
|
|
@@ -1128,9 +1128,9 @@ var M = (e) => {
|
|
|
1128
1128
|
] }],
|
|
1129
1129
|
fill: [{ fill: [e, "none"] }],
|
|
1130
1130
|
"stroke-w": [{ stroke: [
|
|
1131
|
+
F,
|
|
1131
1132
|
I,
|
|
1132
|
-
|
|
1133
|
-
ce
|
|
1133
|
+
R
|
|
1134
1134
|
] }],
|
|
1135
1135
|
stroke: [{ stroke: [e, "none"] }],
|
|
1136
1136
|
sr: ["sr-only", "not-sr-only"],
|
|
@@ -1335,7 +1335,7 @@ function Y(...e) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
K(Y, "useComposedRefs");
|
|
1337
1337
|
//#endregion
|
|
1338
|
-
//#region ../node_modules/.pnpm/@radix-ui+react-slot@1.
|
|
1338
|
+
//#region ../node_modules/.pnpm/@radix-ui+react-slot@1.5.0_@types+react@19.3.0_react@19.3.0/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
1339
1339
|
var Se = Object.defineProperty, X = (e, t) => Se(e, "name", {
|
|
1340
1340
|
value: t,
|
|
1341
1341
|
configurable: !0
|
|
@@ -1344,16 +1344,17 @@ var Se = Object.defineProperty, X = (e, t) => Se(e, "name", {
|
|
|
1344
1344
|
function Ce(e) {
|
|
1345
1345
|
let t = p.forwardRef((t, n) => {
|
|
1346
1346
|
let { children: r, ...i } = t, a = null, o = !1, s = [];
|
|
1347
|
-
|
|
1347
|
+
r = Pe(r), p.Children.forEach(r, (e) => {
|
|
1348
1348
|
if (Ae(e)) {
|
|
1349
1349
|
o = !0;
|
|
1350
1350
|
let t = e, n = "child" in t.props ? t.props.child : t.props.children;
|
|
1351
|
-
Me(n) && typeof Z == "function"
|
|
1351
|
+
for (; Me(n) && typeof Z == "function";) n = Z(n._payload);
|
|
1352
|
+
a = De(t, n), s.push(a?.props?.children);
|
|
1352
1353
|
} else s.push(e);
|
|
1353
1354
|
}), a ? a = p.cloneElement(a, void 0, s) : !o && p.Children.count(r) === 1 && p.isValidElement(r) && (a = r);
|
|
1354
1355
|
let c = a ? ke(a) : void 0, l = Y(n, c);
|
|
1355
1356
|
if (!a) {
|
|
1356
|
-
if (r || r === 0) throw Error(o ?
|
|
1357
|
+
if (r || r === 0) throw Error(o ? Le(e) : Ie(e));
|
|
1357
1358
|
return r;
|
|
1358
1359
|
}
|
|
1359
1360
|
let u = Oe(i, a.props ?? {});
|
|
@@ -1369,13 +1370,7 @@ function Ee(e) {
|
|
|
1369
1370
|
return t.displayName = `${e}.Slottable`, t.__radixId = Te, t;
|
|
1370
1371
|
}
|
|
1371
1372
|
X(Ee, "createSlottable");
|
|
1372
|
-
var De = /* @__PURE__ */ X((e, t) =>
|
|
1373
|
-
if ("child" in e.props) {
|
|
1374
|
-
let t = e.props.child;
|
|
1375
|
-
return p.isValidElement(t) ? p.cloneElement(t, void 0, e.props.children(t.props.children)) : null;
|
|
1376
|
-
}
|
|
1377
|
-
return p.isValidElement(t) ? t : null;
|
|
1378
|
-
}, "getSlottableElementFromSlottable");
|
|
1373
|
+
var De = /* @__PURE__ */ X((e, t) => "child" in e.props ? p.isValidElement(t) ? p.cloneElement(t, void 0, e.props.children(t.props.children)) : null : p.isValidElement(t) ? t : null, "getSlottableElementFromSlottable");
|
|
1379
1374
|
function Oe(e, t) {
|
|
1380
1375
|
let n = { ...t };
|
|
1381
1376
|
for (let r in t) {
|
|
@@ -1386,7 +1381,7 @@ function Oe(e, t) {
|
|
|
1386
1381
|
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
1387
1382
|
...i,
|
|
1388
1383
|
...a
|
|
1389
|
-
} : r === "className"
|
|
1384
|
+
} : r === "className" ? n[r] = [i, a].filter(Boolean).join(" ") : r === "aria-describedby" && (n[r] = Fe(a, i));
|
|
1390
1385
|
}
|
|
1391
1386
|
return {
|
|
1392
1387
|
...e,
|
|
@@ -1412,20 +1407,32 @@ function Ne(e) {
|
|
|
1412
1407
|
return typeof e == "object" && !!e && "then" in e;
|
|
1413
1408
|
}
|
|
1414
1409
|
X(Ne, "isPromiseLike");
|
|
1415
|
-
|
|
1410
|
+
function Pe(e) {
|
|
1411
|
+
let t = e;
|
|
1412
|
+
for (; Me(t) && typeof Z == "function";) t = Z(t._payload);
|
|
1413
|
+
return t;
|
|
1414
|
+
}
|
|
1415
|
+
X(Pe, "useUnwrappedLazy");
|
|
1416
|
+
function Fe(...e) {
|
|
1417
|
+
let t = /* @__PURE__ */ new Set();
|
|
1418
|
+
for (let n of e) if (typeof n == "string") for (let e of String(n).trim().split(/\s+/)) e && t.add(e);
|
|
1419
|
+
return t.size > 0 ? Array.from(t).join(" ") : void 0;
|
|
1420
|
+
}
|
|
1421
|
+
X(Fe, "concatAriaDescribedby");
|
|
1422
|
+
var Ie = /* @__PURE__ */ X((e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), Le = /* @__PURE__ */ X((e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), Z = p.use;
|
|
1416
1423
|
//#endregion
|
|
1417
1424
|
//#region src/hooks/useEventListener.ts
|
|
1418
|
-
function
|
|
1425
|
+
function Re(e) {
|
|
1419
1426
|
return typeof e == "object" && !!e && !("addEventListener" in e) && "current" in e;
|
|
1420
1427
|
}
|
|
1421
|
-
function
|
|
1428
|
+
function ze(e, t, n, r) {
|
|
1422
1429
|
let i = (0, m.c)(8), a = (0, p.useRef)(n), o, s;
|
|
1423
1430
|
i[0] === n ? (o = i[1], s = i[2]) : (o = () => {
|
|
1424
1431
|
a.current = n;
|
|
1425
1432
|
}, s = [n], i[0] = n, i[1] = o, i[2] = s), (0, p.useEffect)(o, s);
|
|
1426
1433
|
let c, l;
|
|
1427
1434
|
i[3] !== r || i[4] !== e || i[5] !== t ? (c = () => {
|
|
1428
|
-
let n =
|
|
1435
|
+
let n = Re(e) ? e.current : e;
|
|
1429
1436
|
if (!n) return;
|
|
1430
1437
|
let i = (e) => a.current(e);
|
|
1431
1438
|
return n.addEventListener(t, i, r), () => {
|
|
@@ -1439,17 +1446,17 @@ function Le(e, t, n, r) {
|
|
|
1439
1446
|
}
|
|
1440
1447
|
//#endregion
|
|
1441
1448
|
//#region src/core/hotkeys/shortcuts.ts
|
|
1442
|
-
function
|
|
1449
|
+
function Be() {
|
|
1443
1450
|
if (typeof window > "u") return f.warn("isPlatformMac() called without window"), !1;
|
|
1444
1451
|
let e = window.navigator.userAgentData ? window.navigator.userAgentData.platform : window.navigator.platform;
|
|
1445
1452
|
return /mac/i.test(e);
|
|
1446
1453
|
}
|
|
1447
|
-
function
|
|
1454
|
+
function Ve() {
|
|
1448
1455
|
if (typeof window > "u") return f.warn("isPlatformWindows() called without window"), !1;
|
|
1449
1456
|
let e = window.navigator.userAgentData ? window.navigator.userAgentData.platform : window.navigator.platform;
|
|
1450
1457
|
return /win/i.test(e);
|
|
1451
1458
|
}
|
|
1452
|
-
function
|
|
1459
|
+
function He(e, t) {
|
|
1453
1460
|
let n = !0;
|
|
1454
1461
|
for (let r of e) {
|
|
1455
1462
|
switch (r) {
|
|
@@ -1477,7 +1484,7 @@ function Be(e, t) {
|
|
|
1477
1484
|
}
|
|
1478
1485
|
return e.includes("shift") || (n &&= !t.shiftKey), !e.includes("ctrl") && !e.includes("mod") && (n &&= !t.ctrlKey), !e.includes("meta") && !e.includes("mod") && (n &&= !t.metaKey), e.includes("alt") || (n &&= !t.altKey), n;
|
|
1479
1486
|
}
|
|
1480
|
-
function
|
|
1487
|
+
function Ue(e) {
|
|
1481
1488
|
return {
|
|
1482
1489
|
control: "ctrl",
|
|
1483
1490
|
command: "mod",
|
|
@@ -1486,17 +1493,17 @@ function Ve(e) {
|
|
|
1486
1493
|
return: "enter"
|
|
1487
1494
|
}[e.toLowerCase()] || e.toLowerCase();
|
|
1488
1495
|
}
|
|
1489
|
-
function
|
|
1496
|
+
function We(e) {
|
|
1490
1497
|
if (e === Q || e === "") return () => !1;
|
|
1491
|
-
let t = e.includes("+") ? "+" : "-", n = e.split(t).map(
|
|
1492
|
-
return (e) =>
|
|
1498
|
+
let t = e.includes("+") ? "+" : "-", n = e.split(t).map(Ue);
|
|
1499
|
+
return (e) => He(n, e);
|
|
1493
1500
|
}
|
|
1494
|
-
function
|
|
1495
|
-
return
|
|
1501
|
+
function Ge() {
|
|
1502
|
+
return Be() ? "mac" : Ve() ? "windows" : "linux";
|
|
1496
1503
|
}
|
|
1497
1504
|
//#endregion
|
|
1498
1505
|
//#region src/core/hotkeys/hotkeys.ts
|
|
1499
|
-
var Q = Symbol("NOT_SET"),
|
|
1506
|
+
var Q = Symbol("NOT_SET"), Ke = {
|
|
1500
1507
|
"cell.focusUp": {
|
|
1501
1508
|
name: "Go to previous cell",
|
|
1502
1509
|
group: "Navigation",
|
|
@@ -1927,15 +1934,15 @@ var Q = Symbol("NOT_SET"), We = {
|
|
|
1927
1934
|
group: "Command",
|
|
1928
1935
|
key: "v"
|
|
1929
1936
|
}
|
|
1930
|
-
},
|
|
1937
|
+
}, qe = class e {
|
|
1931
1938
|
mod;
|
|
1932
1939
|
platform;
|
|
1933
1940
|
static create(t) {
|
|
1934
|
-
return new e(
|
|
1941
|
+
return new e(Ke, { platform: t });
|
|
1935
1942
|
}
|
|
1936
1943
|
hotkeys;
|
|
1937
1944
|
constructor(e, t = {}) {
|
|
1938
|
-
this.hotkeys = e, this.platform = t.platform ??
|
|
1945
|
+
this.hotkeys = e, this.platform = t.platform ?? Ge(), this.mod = this.platform === "mac" ? "Cmd" : "Ctrl";
|
|
1939
1946
|
}
|
|
1940
1947
|
iterate() {
|
|
1941
1948
|
return a.keys(this.hotkeys);
|
|
@@ -1965,38 +1972,38 @@ var Q = Symbol("NOT_SET"), We = {
|
|
|
1965
1972
|
getHotkeyGroups() {
|
|
1966
1973
|
return a.groupBy(a.entries(this.hotkeys), ([, e]) => e.group, ([e]) => e);
|
|
1967
1974
|
}
|
|
1968
|
-
},
|
|
1975
|
+
}, Je = class extends qe {
|
|
1969
1976
|
overrides;
|
|
1970
1977
|
constructor(e, t = {}) {
|
|
1971
|
-
super(
|
|
1978
|
+
super(Ke, t), this.overrides = e;
|
|
1972
1979
|
}
|
|
1973
1980
|
getHotkey(e) {
|
|
1974
1981
|
let t = super.getHotkey(e), n = this.overrides[e];
|
|
1975
1982
|
return {
|
|
1976
1983
|
name: t.name,
|
|
1977
|
-
key: n ?
|
|
1984
|
+
key: n ? Xe(n) : t.key,
|
|
1978
1985
|
additionalKeywords: t.additionalKeywords
|
|
1979
1986
|
};
|
|
1980
1987
|
}
|
|
1981
|
-
},
|
|
1982
|
-
function
|
|
1988
|
+
}, Ye = /^(cmd|ctrl|alt|shift|meta|mod)$/i;
|
|
1989
|
+
function Xe(e) {
|
|
1983
1990
|
let t = e.split("-"), n = t[t.length - 1];
|
|
1984
|
-
return n.length > 1 && !
|
|
1991
|
+
return n.length > 1 && !Ye.test(n) && (t[t.length - 1] = n.charAt(0).toUpperCase() + n.slice(1)), t.join("-");
|
|
1985
1992
|
}
|
|
1986
1993
|
//#endregion
|
|
1987
1994
|
//#region ../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
1988
|
-
var
|
|
1989
|
-
if (t?.variants == null) return
|
|
1995
|
+
var Ze = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qe = r, $e = (e, t) => (n) => {
|
|
1996
|
+
if (t?.variants == null) return Qe(e, n?.class, n?.className);
|
|
1990
1997
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
1991
1998
|
let t = n?.[e], a = i?.[e];
|
|
1992
1999
|
if (t === null) return null;
|
|
1993
|
-
let o =
|
|
2000
|
+
let o = Ze(t) || Ze(a);
|
|
1994
2001
|
return r[e][o];
|
|
1995
2002
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
1996
2003
|
let [n, r] = t;
|
|
1997
2004
|
return r === void 0 || (e[n] = r), e;
|
|
1998
2005
|
}, {});
|
|
1999
|
-
return
|
|
2006
|
+
return Qe(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
2000
2007
|
let { class: n, className: r, ...a } = t;
|
|
2001
2008
|
return Object.entries(a).every((e) => {
|
|
2002
2009
|
let [t, n] = e;
|
|
@@ -2013,7 +2020,7 @@ var Ye = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xe = r, Ze =
|
|
|
2013
2020
|
r
|
|
2014
2021
|
] : e;
|
|
2015
2022
|
}, []), n?.class, n?.className);
|
|
2016
|
-
},
|
|
2023
|
+
}, et = i(), $ = "active:shadow-none", tt = $e(W("disabled:opacity-50 disabled:pointer-events-none", "inline-flex items-center justify-center rounded-md text-sm font-medium focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background", "forced-color-adjust-none forced-colors:border-[ButtonText] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText] forced-colors:hover:bg-[Highlight] forced-colors:hover:text-[HighlightText] forced-colors:disabled:border-[GrayText] forced-colors:disabled:text-[GrayText]"), {
|
|
2017
2024
|
variants: {
|
|
2018
2025
|
variant: {
|
|
2019
2026
|
default: W("bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs border border-primary", $),
|
|
@@ -2042,29 +2049,29 @@ var Ye = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Xe = r, Ze =
|
|
|
2042
2049
|
variant: "default",
|
|
2043
2050
|
size: "sm"
|
|
2044
2051
|
}
|
|
2045
|
-
}),
|
|
2052
|
+
}), nt = p.forwardRef((e, t) => {
|
|
2046
2053
|
let n = (0, m.c)(19), r, i, a, o, s, c;
|
|
2047
2054
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5], c = n[6]) : ({className: r, variant: c, size: o, asChild: s, keyboardShortcut: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s, n[6] = c);
|
|
2048
2055
|
let l = s !== void 0 && s, u = p.useRef(null), d;
|
|
2049
2056
|
n[7] === Symbol.for("react.memo_cache_sentinel") ? (d = () => u.current, n[7] = d) : d = n[7], p.useImperativeHandle(t, d);
|
|
2050
2057
|
let f;
|
|
2051
2058
|
n[8] === i ? f = n[9] : (f = (e) => {
|
|
2052
|
-
!i || e.defaultPrevented || G.shouldIgnoreKeyboardEvent(e) ||
|
|
2053
|
-
}, n[8] = i, n[9] = f),
|
|
2059
|
+
!i || e.defaultPrevented || G.shouldIgnoreKeyboardEvent(e) || We(i)(e) && (e.preventDefault(), e.stopPropagation(), u?.current && !u.current.disabled && u.current.click());
|
|
2060
|
+
}, n[8] = i, n[9] = f), ze(document, "keydown", f);
|
|
2054
2061
|
let h = l ? we : "button", g;
|
|
2055
|
-
n[10] !== r || n[11] !== a.disabled || n[12] !== o || n[13] !== c ? (g = W(
|
|
2062
|
+
n[10] !== r || n[11] !== a.disabled || n[12] !== o || n[13] !== c ? (g = W(tt({
|
|
2056
2063
|
variant: c,
|
|
2057
2064
|
size: o,
|
|
2058
2065
|
className: r,
|
|
2059
2066
|
disabled: a.disabled
|
|
2060
2067
|
}), r), n[10] = r, n[11] = a.disabled, n[12] = o, n[13] = c, n[14] = g) : g = n[14];
|
|
2061
2068
|
let _;
|
|
2062
|
-
return n[15] !== h || n[16] !== a || n[17] !== g ? (_ = /* @__PURE__ */ (0,
|
|
2069
|
+
return n[15] !== h || n[16] !== a || n[17] !== g ? (_ = /* @__PURE__ */ (0, et.jsx)(h, {
|
|
2063
2070
|
className: g,
|
|
2064
2071
|
ref: u,
|
|
2065
2072
|
...a
|
|
2066
2073
|
}), n[15] = h, n[16] = a, n[17] = g, n[18] = _) : _ = n[18], _;
|
|
2067
2074
|
});
|
|
2068
|
-
|
|
2075
|
+
nt.displayName = "Button";
|
|
2069
2076
|
//#endregion
|
|
2070
|
-
export { o as _,
|
|
2077
|
+
export { o as _, Je as a, ze as c, Ee as d, J as f, f as g, W as h, Q as i, we as l, G as m, tt as n, Be as o, Y as p, $e as r, Ge as s, nt as t, Ce as u, s as v };
|