@asymmetric-effort/specifyjs 0.2.98 → 0.2.103
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/esm/chunks/chunk-3J4RXW7E.js +3 -0
- package/dist/esm/chunks/chunk-3J4RXW7E.js.map +7 -0
- package/dist/esm/chunks/chunk-3SXNLMCH.js +3 -0
- package/dist/esm/chunks/chunk-3SXNLMCH.js.map +7 -0
- package/dist/esm/chunks/chunk-A7AAS5ZR.js +3 -0
- package/dist/esm/chunks/chunk-A7AAS5ZR.js.map +7 -0
- package/dist/esm/chunks/chunk-E43OK6IZ.js +3 -0
- package/dist/esm/chunks/chunk-E43OK6IZ.js.map +7 -0
- package/dist/esm/chunks/chunk-LWOMFZ4C.js +3 -0
- package/dist/esm/chunks/chunk-LWOMFZ4C.js.map +7 -0
- package/dist/esm/chunks/chunk-MCXU6QF3.js +3 -0
- package/dist/esm/chunks/chunk-MCXU6QF3.js.map +7 -0
- package/dist/esm/chunks/chunk-ODCBJ22O.js +3 -0
- package/dist/esm/chunks/chunk-ODCBJ22O.js.map +7 -0
- package/dist/esm/chunks/chunk-TVDAY42P.js +3 -0
- package/dist/esm/chunks/chunk-TVDAY42P.js.map +7 -0
- package/dist/esm/chunks/chunk-VAF4KNDP.js +3 -0
- package/dist/esm/chunks/chunk-VAF4KNDP.js.map +7 -0
- package/dist/esm/chunks/chunk-ZDPD2MPQ.js +3 -0
- package/dist/esm/chunks/chunk-ZDPD2MPQ.js.map +7 -0
- package/dist/esm/chunks/metrics-56RIK7JQ.js +3 -0
- package/dist/esm/chunks/metrics-56RIK7JQ.js.map +7 -0
- package/dist/esm/client/index.js +3 -0
- package/dist/esm/components-barrel.js +9 -0
- package/dist/esm/dom/index.js +3 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/jsx-dev-runtime.js +3 -0
- package/dist/esm/jsx-runtime.js +3 -0
- package/dist/esm/server/index.js +3 -0
- package/dist/esm/telemetry/index.js +3 -0
- package/dist/specifyjs-build.cjs.js +160 -1
- package/dist/specifyjs-build.cjs.js.map +7 -1
- package/dist/specifyjs-build.d.ts +1 -110
- package/dist/specifyjs-build.esm.js +160 -1
- package/dist/specifyjs-build.esm.js.map +7 -1
- package/dist/specifyjs-client.cjs.js +2 -1
- package/dist/specifyjs-client.cjs.js.map +7 -1
- package/dist/specifyjs-client.d.ts +1 -159
- package/dist/specifyjs-client.esm.js +3 -2
- package/dist/specifyjs-client.esm.js.map +7 -1
- package/dist/specifyjs-components.cjs.js +8 -1
- package/dist/specifyjs-components.cjs.js.map +7 -1
- package/dist/specifyjs-components.d.ts +1 -3334
- package/dist/specifyjs-components.esm.js +9 -2
- package/dist/specifyjs-components.esm.js.map +7 -1
- package/dist/specifyjs-dom.cjs.js +2 -1
- package/dist/specifyjs-dom.cjs.js.map +7 -1
- package/dist/specifyjs-dom.d.ts +1 -107
- package/dist/specifyjs-dom.esm.js +3 -2
- package/dist/specifyjs-dom.esm.js.map +7 -1
- package/dist/specifyjs-jsx-dev-runtime.cjs.js +2 -1
- package/dist/specifyjs-jsx-dev-runtime.cjs.js.map +7 -1
- package/dist/specifyjs-jsx-dev-runtime.esm.js +3 -2
- package/dist/specifyjs-jsx-dev-runtime.esm.js.map +7 -1
- package/dist/specifyjs-jsx-runtime.cjs.js +2 -1
- package/dist/specifyjs-jsx-runtime.cjs.js.map +7 -1
- package/dist/specifyjs-jsx-runtime.esm.js +3 -2
- package/dist/specifyjs-jsx-runtime.esm.js.map +7 -1
- package/dist/specifyjs-server.cjs.js +2 -1
- package/dist/specifyjs-server.cjs.js.map +7 -1
- package/dist/specifyjs-server.d.ts +1 -136
- package/dist/specifyjs-server.esm.js +3 -2
- package/dist/specifyjs-server.esm.js.map +7 -1
- package/dist/specifyjs-telemetry.cjs.js +2 -1
- package/dist/specifyjs-telemetry.cjs.js.map +7 -1
- package/dist/specifyjs-telemetry.d.ts +1 -165
- package/dist/specifyjs-telemetry.esm.js +3 -2
- package/dist/specifyjs-telemetry.esm.js.map +7 -1
- package/dist/specifyjs.cjs.js +2 -1
- package/dist/specifyjs.cjs.js.map +7 -1
- package/dist/specifyjs.d.ts +1 -581
- package/dist/specifyjs.esm.js +3 -2
- package/dist/specifyjs.esm.js.map +7 -1
- package/dist/types/build/index.d.ts +5 -0
- package/dist/types/build/index.d.ts.map +1 -0
- package/dist/types/build/noscript-plugin.d.ts +63 -0
- package/dist/types/build/noscript-plugin.d.ts.map +1 -0
- package/dist/types/build/seo-plugin.d.ts +43 -0
- package/dist/types/build/seo-plugin.d.ts.map +1 -0
- package/dist/types/client/graphql.d.ts +64 -0
- package/dist/types/client/graphql.d.ts.map +1 -0
- package/dist/types/client/index.d.ts +4 -0
- package/dist/types/client/index.d.ts.map +1 -0
- package/dist/types/client/protobuf.d.ts +40 -0
- package/dist/types/client/protobuf.d.ts.map +1 -0
- package/dist/types/client/rest.d.ts +61 -0
- package/dist/types/client/rest.d.ts.map +1 -0
- package/dist/types/components/ad/adsense/src/AdSense.d.ts +19 -0
- package/dist/types/components/ad/adsense/src/index.d.ts +2 -0
- package/dist/types/components/analytics/google-analytics/src/GoogleAnalytics.d.ts +13 -0
- package/dist/types/components/analytics/google-analytics/src/index.d.ts +2 -0
- package/dist/types/components/component.d.ts +39 -0
- package/dist/types/components/component.d.ts.map +1 -0
- package/dist/types/components/data/analog-clock/src/AnalogClock.d.ts +17 -0
- package/dist/types/components/data/analog-clock/src/index.d.ts +2 -0
- package/dist/types/components/data/avatar/src/Avatar.d.ts +19 -0
- package/dist/types/components/data/avatar/src/index.d.ts +2 -0
- package/dist/types/components/data/badge/src/Badge.d.ts +17 -0
- package/dist/types/components/data/badge/src/index.d.ts +2 -0
- package/dist/types/components/data/data-grid/src/DataGrid.d.ts +47 -0
- package/dist/types/components/data/data-grid/src/index.d.ts +2 -0
- package/dist/types/components/data/digital-clock/src/DigitalClock.d.ts +15 -0
- package/dist/types/components/data/digital-clock/src/index.d.ts +2 -0
- package/dist/types/components/data/list-view/src/ListView.d.ts +23 -0
- package/dist/types/components/data/list-view/src/index.d.ts +2 -0
- package/dist/types/components/data/tag/src/Tag.d.ts +21 -0
- package/dist/types/components/data/tag/src/index.d.ts +2 -0
- package/dist/types/components/data/virtual-scroll/src/VirtualScroll.d.ts +13 -0
- package/dist/types/components/data/virtual-scroll/src/index.d.ts +2 -0
- package/dist/types/components/error-boundary.d.ts +23 -0
- package/dist/types/components/error-boundary.d.ts.map +1 -0
- package/dist/types/components/errors/_shared/src/HttpErrorPage.d.ts +15 -0
- package/dist/types/components/errors/_shared/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-400/src/Http400.d.ts +9 -0
- package/dist/types/components/errors/http-400/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-401/src/Http401.d.ts +9 -0
- package/dist/types/components/errors/http-401/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-403/src/Http403.d.ts +9 -0
- package/dist/types/components/errors/http-403/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-404/src/Http404.d.ts +9 -0
- package/dist/types/components/errors/http-404/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-405/src/Http405.d.ts +9 -0
- package/dist/types/components/errors/http-405/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-408/src/Http408.d.ts +9 -0
- package/dist/types/components/errors/http-408/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-429/src/Http429.d.ts +9 -0
- package/dist/types/components/errors/http-429/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-500/src/Http500.d.ts +9 -0
- package/dist/types/components/errors/http-500/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-502/src/Http502.d.ts +9 -0
- package/dist/types/components/errors/http-502/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-503/src/Http503.d.ts +9 -0
- package/dist/types/components/errors/http-503/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-504/src/Http504.d.ts +9 -0
- package/dist/types/components/errors/http-504/src/index.d.ts +2 -0
- package/dist/types/components/feedback/alert/src/Alert.d.ts +25 -0
- package/dist/types/components/feedback/alert/src/index.d.ts +2 -0
- package/dist/types/components/feedback/empty-state/src/EmptyState.d.ts +17 -0
- package/dist/types/components/feedback/empty-state/src/index.d.ts +2 -0
- package/dist/types/components/feedback/progress-bar/src/ProgressBar.d.ts +23 -0
- package/dist/types/components/feedback/progress-bar/src/index.d.ts +2 -0
- package/dist/types/components/feedback/skeleton/src/Skeleton.d.ts +15 -0
- package/dist/types/components/feedback/skeleton/src/index.d.ts +2 -0
- package/dist/types/components/feedback/spinner/src/Spinner.d.ts +13 -0
- package/dist/types/components/feedback/spinner/src/index.d.ts +2 -0
- package/dist/types/components/form/button/src/Button.d.ts +25 -0
- package/dist/types/components/form/button/src/index.d.ts +2 -0
- package/dist/types/components/form/checkbox/src/Checkbox.d.ts +19 -0
- package/dist/types/components/form/checkbox/src/index.d.ts +2 -0
- package/dist/types/components/form/color-picker/src/ColorPicker.d.ts +19 -0
- package/dist/types/components/form/color-picker/src/index.d.ts +2 -0
- package/dist/types/components/form/color-wheel/src/ColorWheel.d.ts +17 -0
- package/dist/types/components/form/color-wheel/src/index.d.ts +2 -0
- package/dist/types/components/form/datepicker/src/DatePicker.d.ts +23 -0
- package/dist/types/components/form/datepicker/src/index.d.ts +2 -0
- package/dist/types/components/form/file-upload/src/FileUpload.d.ts +19 -0
- package/dist/types/components/form/file-upload/src/index.d.ts +2 -0
- package/dist/types/components/form/multiline/src/MultilineField.d.ts +41 -0
- package/dist/types/components/form/multiline/src/index.d.ts +2 -0
- package/dist/types/components/form/number-spinner/src/NumberSpinner.d.ts +25 -0
- package/dist/types/components/form/number-spinner/src/index.d.ts +2 -0
- package/dist/types/components/form/radio/src/RadioGroup.d.ts +26 -0
- package/dist/types/components/form/radio/src/index.d.ts +2 -0
- package/dist/types/components/form/select/src/Select.d.ts +33 -0
- package/dist/types/components/form/select/src/index.d.ts +2 -0
- package/dist/types/components/form/slider/src/Slider.d.ts +33 -0
- package/dist/types/components/form/slider/src/index.d.ts +2 -0
- package/dist/types/components/form/texteditor/src/TextEditor.d.ts +46 -0
- package/dist/types/components/form/texteditor/src/index.d.ts +2 -0
- package/dist/types/components/form/textfield/src/TextField.d.ts +48 -0
- package/dist/types/components/form/textfield/src/index.d.ts +2 -0
- package/dist/types/components/form/timepicker/src/TimePicker.d.ts +29 -0
- package/dist/types/components/form/timepicker/src/index.d.ts +2 -0
- package/dist/types/components/form/toggle/src/Toggle.d.ts +19 -0
- package/dist/types/components/form/toggle/src/index.d.ts +2 -0
- package/dist/types/components/form/wrapper/src/FormFieldWrapper.d.ts +67 -0
- package/dist/types/components/form/wrapper/src/index.d.ts +2 -0
- package/dist/types/components/layout/card/src/Card.d.ts +31 -0
- package/dist/types/components/layout/card/src/index.d.ts +2 -0
- package/dist/types/components/layout/desktop-background/src/DesktopBackground.d.ts +23 -0
- package/dist/types/components/layout/desktop-background/src/index.d.ts +2 -0
- package/dist/types/components/layout/draggable-window/src/DraggableWindow.d.ts +59 -0
- package/dist/types/components/layout/draggable-window/src/index.d.ts +2 -0
- package/dist/types/components/layout/flex-container/src/FlexContainer.d.ts +42 -0
- package/dist/types/components/layout/flex-container/src/index.d.ts +2 -0
- package/dist/types/components/layout/footer/src/Footer.d.ts +25 -0
- package/dist/types/components/layout/footer/src/index.d.ts +2 -0
- package/dist/types/components/layout/grid/src/Grid.d.ts +54 -0
- package/dist/types/components/layout/grid/src/index.d.ts +2 -0
- package/dist/types/components/layout/panel/src/Panel.d.ts +23 -0
- package/dist/types/components/layout/panel/src/index.d.ts +2 -0
- package/dist/types/components/layout/scroll-container/src/ScrollContainer.d.ts +21 -0
- package/dist/types/components/layout/scroll-container/src/index.d.ts +2 -0
- package/dist/types/components/layout/splitter/src/Splitter.d.ts +19 -0
- package/dist/types/components/layout/splitter/src/index.d.ts +2 -0
- package/dist/types/components/layout/tabs/src/Tabs.d.ts +29 -0
- package/dist/types/components/layout/tabs/src/index.d.ts +2 -0
- package/dist/types/components/layout/window-manager/src/WindowManager.d.ts +106 -0
- package/dist/types/components/layout/window-manager/src/index.d.ts +2 -0
- package/dist/types/components/math/src/index.d.ts +5 -0
- package/dist/types/components/math/src/mat.d.ts +71 -0
- package/dist/types/components/math/src/mat4.d.ts +101 -0
- package/dist/types/components/math/src/quaternion.d.ts +62 -0
- package/dist/types/components/math/src/solver.d.ts +55 -0
- package/dist/types/components/math/src/vec.d.ts +54 -0
- package/dist/types/components/media/carousel/src/Carousel.d.ts +23 -0
- package/dist/types/components/media/carousel/src/index.d.ts +2 -0
- package/dist/types/components/media/image/src/Image.d.ts +23 -0
- package/dist/types/components/media/image/src/index.d.ts +2 -0
- package/dist/types/components/media/video-player/src/VideoPlayer.d.ts +27 -0
- package/dist/types/components/media/video-player/src/index.d.ts +2 -0
- package/dist/types/components/nav/accordion/src/Accordion.d.ts +52 -0
- package/dist/types/components/nav/accordion/src/index.d.ts +2 -0
- package/dist/types/components/nav/breadcrumb/src/Breadcrumb.d.ts +20 -0
- package/dist/types/components/nav/breadcrumb/src/index.d.ts +2 -0
- package/dist/types/components/nav/dock/src/Dock.d.ts +46 -0
- package/dist/types/components/nav/dock/src/index.d.ts +2 -0
- package/dist/types/components/nav/dropdown/src/Dropdown.d.ts +36 -0
- package/dist/types/components/nav/dropdown/src/index.d.ts +2 -0
- package/dist/types/components/nav/menubar/src/Menubar.d.ts +27 -0
- package/dist/types/components/nav/menubar/src/index.d.ts +2 -0
- package/dist/types/components/nav/pagination/src/Pagination.d.ts +19 -0
- package/dist/types/components/nav/pagination/src/index.d.ts +2 -0
- package/dist/types/components/nav/sidebar/src/Sidebar.d.ts +29 -0
- package/dist/types/components/nav/sidebar/src/index.d.ts +2 -0
- package/dist/types/components/nav/stepper/src/Stepper.d.ts +25 -0
- package/dist/types/components/nav/stepper/src/index.d.ts +2 -0
- package/dist/types/components/nav/system-tray/src/SystemTray.d.ts +47 -0
- package/dist/types/components/nav/system-tray/src/index.d.ts +2 -0
- package/dist/types/components/nav/toolbar/src/Toolbar.d.ts +27 -0
- package/dist/types/components/nav/toolbar/src/index.d.ts +2 -0
- package/dist/types/components/nav/treenav/src/TreeNav.d.ts +34 -0
- package/dist/types/components/nav/treenav/src/TreeNode.d.ts +74 -0
- package/dist/types/components/nav/treenav/src/index.d.ts +4 -0
- package/dist/types/components/nav/wrapper/src/NavWrapper.d.ts +73 -0
- package/dist/types/components/nav/wrapper/src/index.d.ts +2 -0
- package/dist/types/components/overlay/context-menu/src/ContextMenu.d.ts +21 -0
- package/dist/types/components/overlay/context-menu/src/index.d.ts +2 -0
- package/dist/types/components/overlay/drawer/src/Drawer.d.ts +22 -0
- package/dist/types/components/overlay/drawer/src/index.d.ts +2 -0
- package/dist/types/components/overlay/modal/src/Modal.d.ts +22 -0
- package/dist/types/components/overlay/modal/src/index.d.ts +2 -0
- package/dist/types/components/overlay/popover/src/Popover.d.ts +20 -0
- package/dist/types/components/overlay/popover/src/index.d.ts +2 -0
- package/dist/types/components/overlay/toast/src/Toast.d.ts +59 -0
- package/dist/types/components/overlay/toast/src/index.d.ts +2 -0
- package/dist/types/components/overlay/tooltip/src/Tooltip.d.ts +14 -0
- package/dist/types/components/overlay/tooltip/src/index.d.ts +2 -0
- package/dist/types/components/page/ide/src/IDE.d.ts +5 -0
- package/dist/types/components/page/ide/src/index.d.ts +2 -0
- package/dist/types/components/page/trading-dashboard/src/TradingDashboard.d.ts +5 -0
- package/dist/types/components/page/trading-dashboard/src/index.d.ts +2 -0
- package/dist/types/components/page/unity-desktop/src/UnityApp.d.ts +30 -0
- package/dist/types/components/page/unity-desktop/src/UnityDesktop.d.ts +30 -0
- package/dist/types/components/page/unity-desktop/src/index.d.ts +4 -0
- package/dist/types/components/page/word-processor/src/WordProcessor.d.ts +7 -0
- package/dist/types/components/page/word-processor/src/index.d.ts +2 -0
- package/dist/types/components/profiler.d.ts +6 -0
- package/dist/types/components/profiler.d.ts.map +1 -0
- package/dist/types/components/strict-mode.d.ts +6 -0
- package/dist/types/components/strict-mode.d.ts.map +1 -0
- package/dist/types/components/suspense.d.ts +6 -0
- package/dist/types/components/suspense.d.ts.map +1 -0
- package/dist/types/components/viz/2D-bar-graph/src/BarGraph.d.ts +61 -0
- package/dist/types/components/viz/2D-bar-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-cartesian-raw/src/CartesianGraph2D.d.ts +40 -0
- package/dist/types/components/viz/2D-cartesian-raw/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-complex-graph/src/ComplexGraph2D.d.ts +33 -0
- package/dist/types/components/viz/2D-complex-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-discrete-cartesian/src/DiscreteCartesian2D.d.ts +31 -0
- package/dist/types/components/viz/2D-discrete-cartesian/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-line-graph/src/LineGraph.d.ts +53 -0
- package/dist/types/components/viz/2D-line-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-pie-graph/src/PieGraph.d.ts +49 -0
- package/dist/types/components/viz/2D-pie-graph/src/index.d.ts +3 -0
- package/dist/types/components/viz/2D-polar-graph/src/PolarGraph2D.d.ts +35 -0
- package/dist/types/components/viz/2D-polar-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/3d-force-graph/src/ForceGraph3D.d.ts +123 -0
- package/dist/types/components/viz/3d-force-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/3d-layers/src/ThreeDLayers.d.ts +35 -0
- package/dist/types/components/viz/3d-layers/src/index.d.ts +2 -0
- package/dist/types/components/viz/3dSpace/src/Space3D.d.ts +63 -0
- package/dist/types/components/viz/3dSpace/src/animation.d.ts +75 -0
- package/dist/types/components/viz/3dSpace/src/bounds.d.ts +36 -0
- package/dist/types/components/viz/3dSpace/src/camera-controller.d.ts +59 -0
- package/dist/types/components/viz/3dSpace/src/camera.d.ts +43 -0
- package/dist/types/components/viz/3dSpace/src/collision.d.ts +54 -0
- package/dist/types/components/viz/3dSpace/src/cpu-pipeline.d.ts +47 -0
- package/dist/types/components/viz/3dSpace/src/index.d.ts +32 -0
- package/dist/types/components/viz/3dSpace/src/light.d.ts +23 -0
- package/dist/types/components/viz/3dSpace/src/lighting-model.d.ts +34 -0
- package/dist/types/components/viz/3dSpace/src/material.d.ts +12 -0
- package/dist/types/components/viz/3dSpace/src/mesh.d.ts +35 -0
- package/dist/types/components/viz/3dSpace/src/picking.d.ts +51 -0
- package/dist/types/components/viz/3dSpace/src/render-pipeline.d.ts +12 -0
- package/dist/types/components/viz/3dSpace/src/scene-graph.d.ts +20 -0
- package/dist/types/components/viz/3dSpace/src/scene-object.d.ts +31 -0
- package/dist/types/components/viz/3dSpace/src/terrain.d.ts +34 -0
- package/dist/types/components/viz/3dSpace/src/texture.d.ts +22 -0
- package/dist/types/components/viz/3dSpace/src/types.d.ts +42 -0
- package/dist/types/components/viz/3dSpace/src/viewport.d.ts +19 -0
- package/dist/types/components/viz/3dSpace/src/webgl-pipeline.d.ts +54 -0
- package/dist/types/components/viz/big-number/src/BigNumber.d.ts +29 -0
- package/dist/types/components/viz/big-number/src/index.d.ts +2 -0
- package/dist/types/components/viz/bloch-sphere/src/BlochSphere.d.ts +73 -0
- package/dist/types/components/viz/bloch-sphere/src/index.d.ts +2 -0
- package/dist/types/components/viz/box-plot/src/BoxPlot.d.ts +47 -0
- package/dist/types/components/viz/box-plot/src/index.d.ts +2 -0
- package/dist/types/components/viz/bubble-chart/src/BubbleChart.d.ts +38 -0
- package/dist/types/components/viz/bubble-chart/src/index.d.ts +2 -0
- package/dist/types/components/viz/calendar-heat-map/src/CalendarHeatMap.d.ts +29 -0
- package/dist/types/components/viz/calendar-heat-map/src/index.d.ts +2 -0
- package/dist/types/components/viz/chord/src/ChordDiagram.d.ts +25 -0
- package/dist/types/components/viz/chord/src/index.d.ts +2 -0
- package/dist/types/components/viz/decomposition-tree/src/DecompositionTree.d.ts +33 -0
- package/dist/types/components/viz/decomposition-tree/src/index.d.ts +2 -0
- package/dist/types/components/viz/earth-globe/src/EarthGlobe.d.ts +62 -0
- package/dist/types/components/viz/earth-globe/src/globe-data.d.ts +23 -0
- package/dist/types/components/viz/earth-globe/src/index.d.ts +5 -0
- package/dist/types/components/viz/force-graph/src/ForceGraph.d.ts +99 -0
- package/dist/types/components/viz/force-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/funnel/src/FunnelChart.d.ts +28 -0
- package/dist/types/components/viz/funnel/src/index.d.ts +2 -0
- package/dist/types/components/viz/gantt-chart/src/GanttChart.d.ts +33 -0
- package/dist/types/components/viz/gantt-chart/src/index.d.ts +2 -0
- package/dist/types/components/viz/gauge/src/Gauge.d.ts +37 -0
- package/dist/types/components/viz/gauge/src/index.d.ts +2 -0
- package/dist/types/components/viz/graph/src/HypercubeGraph.d.ts +43 -0
- package/dist/types/components/viz/graph/src/hypercube.d.ts +78 -0
- package/dist/types/components/viz/graph/src/index.d.ts +4 -0
- package/dist/types/components/viz/heat-map/src/HeatMap.d.ts +29 -0
- package/dist/types/components/viz/heat-map/src/index.d.ts +2 -0
- package/dist/types/components/viz/histogram/src/Histogram.d.ts +27 -0
- package/dist/types/components/viz/histogram/src/index.d.ts +2 -0
- package/dist/types/components/viz/lollipop/src/LollipopChart.d.ts +32 -0
- package/dist/types/components/viz/lollipop/src/index.d.ts +2 -0
- package/dist/types/components/viz/matrix/src/Matrix.d.ts +29 -0
- package/dist/types/components/viz/matrix/src/index.d.ts +2 -0
- package/dist/types/components/viz/partition/src/Partition.d.ts +31 -0
- package/dist/types/components/viz/partition/src/index.d.ts +2 -0
- package/dist/types/components/viz/pivot-table/src/PivotTable.d.ts +25 -0
- package/dist/types/components/viz/pivot-table/src/index.d.ts +2 -0
- package/dist/types/components/viz/radar-chart/src/RadarChart.d.ts +35 -0
- package/dist/types/components/viz/radar-chart/src/index.d.ts +2 -0
- package/dist/types/components/viz/sankey/src/SankeyDiagram.d.ts +38 -0
- package/dist/types/components/viz/sankey/src/index.d.ts +2 -0
- package/dist/types/components/viz/sunburst/src/Sunburst.d.ts +27 -0
- package/dist/types/components/viz/sunburst/src/index.d.ts +2 -0
- package/dist/types/components/viz/tree-map/src/TreeMap.d.ts +29 -0
- package/dist/types/components/viz/tree-map/src/index.d.ts +2 -0
- package/dist/types/components/viz/us-state-map/src/USStateMap.d.ts +23 -0
- package/dist/types/components/viz/us-state-map/src/index.d.ts +4 -0
- package/dist/types/components/viz/us-state-map/src/us-state-paths.d.ts +10 -0
- package/dist/types/components/viz/vector-field/src/VectorField.d.ts +61 -0
- package/dist/types/components/viz/vector-field/src/index.d.ts +2 -0
- package/dist/types/components/viz/waterfall/src/WaterfallChart.d.ts +32 -0
- package/dist/types/components/viz/waterfall/src/index.d.ts +2 -0
- package/dist/types/components/viz/word-cloud/src/WordCloud.d.ts +30 -0
- package/dist/types/components/viz/word-cloud/src/index.d.ts +2 -0
- package/dist/types/components/viz/wrapper/src/VizWrapper.d.ts +60 -0
- package/dist/types/components/viz/wrapper/src/index.d.ts +2 -0
- package/dist/types/compute/context.d.ts +20 -0
- package/dist/types/compute/context.d.ts.map +1 -0
- package/dist/types/compute/cpu-backend.d.ts +15 -0
- package/dist/types/compute/cpu-backend.d.ts.map +1 -0
- package/dist/types/compute/index.d.ts +3 -0
- package/dist/types/compute/index.d.ts.map +1 -0
- package/dist/types/compute/types.d.ts +57 -0
- package/dist/types/compute/types.d.ts.map +1 -0
- package/dist/types/compute/webgl-backend.d.ts +33 -0
- package/dist/types/compute/webgl-backend.d.ts.map +1 -0
- package/dist/types/compute/webgpu-backend.d.ts +50 -0
- package/dist/types/compute/webgpu-backend.d.ts.map +1 -0
- package/dist/types/context/create-context.d.ts +15 -0
- package/dist/types/context/create-context.d.ts.map +1 -0
- package/dist/types/core/children.d.ts +15 -0
- package/dist/types/core/children.d.ts.map +1 -0
- package/dist/types/core/clone-element.d.ts +10 -0
- package/dist/types/core/clone-element.d.ts.map +1 -0
- package/dist/types/core/create-element.d.ts +20 -0
- package/dist/types/core/create-element.d.ts.map +1 -0
- package/dist/types/core/create-ref.d.ts +7 -0
- package/dist/types/core/create-ref.d.ts.map +1 -0
- package/dist/types/core/fiber.d.ts +30 -0
- package/dist/types/core/fiber.d.ts.map +1 -0
- package/dist/types/core/forward-ref.d.ts +16 -0
- package/dist/types/core/forward-ref.d.ts.map +1 -0
- package/dist/types/core/fragment.d.ts +6 -0
- package/dist/types/core/fragment.d.ts.map +1 -0
- package/dist/types/core/is-valid-element.d.ts +7 -0
- package/dist/types/core/is-valid-element.d.ts.map +1 -0
- package/dist/types/core/lanes.d.ts +47 -0
- package/dist/types/core/lanes.d.ts.map +1 -0
- package/dist/types/core/lazy.d.ts +20 -0
- package/dist/types/core/lazy.d.ts.map +1 -0
- package/dist/types/core/memo.d.ts +13 -0
- package/dist/types/core/memo.d.ts.map +1 -0
- package/dist/types/core/reconciler.d.ts +12 -0
- package/dist/types/core/reconciler.d.ts.map +1 -0
- package/dist/types/core/scheduler-host-config.d.ts +37 -0
- package/dist/types/core/scheduler-host-config.d.ts.map +1 -0
- package/dist/types/core/scheduler.d.ts +29 -0
- package/dist/types/core/scheduler.d.ts.map +1 -0
- package/dist/types/core/src/build/index.d.ts +4 -0
- package/dist/types/core/src/build/noscript-plugin.d.ts +62 -0
- package/dist/types/core/src/build/seo-plugin.d.ts +42 -0
- package/dist/types/core/src/client/graphql.d.ts +63 -0
- package/dist/types/core/src/client/index.d.ts +3 -0
- package/dist/types/core/src/client/protobuf.d.ts +39 -0
- package/dist/types/core/src/client/rest.d.ts +60 -0
- package/dist/types/core/src/components/component.d.ts +38 -0
- package/dist/types/core/src/components/error-boundary.d.ts +22 -0
- package/dist/types/core/src/components/profiler.d.ts +5 -0
- package/dist/types/core/src/components/strict-mode.d.ts +5 -0
- package/dist/types/core/src/components/suspense.d.ts +5 -0
- package/dist/types/core/src/components-barrel.d.ts +100 -0
- package/dist/types/core/src/compute/context.d.ts +19 -0
- package/dist/types/core/src/compute/cpu-backend.d.ts +14 -0
- package/dist/types/core/src/compute/index.d.ts +2 -0
- package/dist/types/core/src/compute/types.d.ts +56 -0
- package/dist/types/core/src/compute/webgl-backend.d.ts +32 -0
- package/dist/types/core/src/compute/webgpu-backend.d.ts +49 -0
- package/dist/types/core/src/context/create-context.d.ts +14 -0
- package/dist/types/core/src/core/children.d.ts +14 -0
- package/dist/types/core/src/core/clone-element.d.ts +9 -0
- package/dist/types/core/src/core/create-element.d.ts +19 -0
- package/dist/types/core/src/core/create-ref.d.ts +6 -0
- package/dist/types/core/src/core/fiber.d.ts +29 -0
- package/dist/types/core/src/core/forward-ref.d.ts +15 -0
- package/dist/types/core/src/core/fragment.d.ts +5 -0
- package/dist/types/core/src/core/is-valid-element.d.ts +6 -0
- package/dist/types/core/src/core/lanes.d.ts +46 -0
- package/dist/types/core/src/core/lazy.d.ts +19 -0
- package/dist/types/core/src/core/memo.d.ts +12 -0
- package/dist/types/core/src/core/reconciler.d.ts +11 -0
- package/dist/types/core/src/core/scheduler-host-config.d.ts +36 -0
- package/dist/types/core/src/core/scheduler.d.ts +28 -0
- package/dist/types/core/src/core/transitions.d.ts +31 -0
- package/dist/types/core/src/devtools/index.d.ts +21 -0
- package/dist/types/core/src/dom/create-portal.d.ts +6 -0
- package/dist/types/core/src/dom/create-root.d.ts +23 -0
- package/dist/types/core/src/dom/flush-sync.d.ts +1 -0
- package/dist/types/core/src/dom/index.d.ts +4 -0
- package/dist/types/core/src/dom/legacy.d.ts +16 -0
- package/dist/types/core/src/dom/synthetic-event.d.ts +90 -0
- package/dist/types/core/src/dom/work-loop.d.ts +34 -0
- package/dist/types/core/src/features/feature-flags.d.ts +38 -0
- package/dist/types/core/src/features/index.d.ts +27 -0
- package/dist/types/core/src/hooks/dispatcher.d.ts +26 -0
- package/dist/types/core/src/hooks/hook-state.d.ts +46 -0
- package/dist/types/core/src/hooks/index.d.ts +47 -0
- package/dist/types/core/src/hooks/install-dispatcher.d.ts +2 -0
- package/dist/types/core/src/hooks/use-head.d.ts +54 -0
- package/dist/types/core/src/index.d.ts +23 -0
- package/dist/types/core/src/jsx-dev-runtime.d.ts +1 -0
- package/dist/types/core/src/jsx-runtime.d.ts +7 -0
- package/dist/types/core/src/router/index.d.ts +12 -0
- package/dist/types/core/src/router/link-component.d.ts +16 -0
- package/dist/types/core/src/router/match-path.d.ts +28 -0
- package/dist/types/core/src/router/route-component.d.ts +12 -0
- package/dist/types/core/src/router/router-component.d.ts +5 -0
- package/dist/types/core/src/router/router-context.d.ts +13 -0
- package/dist/types/core/src/router/router-store.d.ts +22 -0
- package/dist/types/core/src/router/use-navigate.d.ts +4 -0
- package/dist/types/core/src/router/use-params.d.ts +2 -0
- package/dist/types/core/src/router/use-router.d.ts +3 -0
- package/dist/types/core/src/server/index.d.ts +3 -0
- package/dist/types/core/src/server/render-to-pipeable-stream.d.ts +31 -0
- package/dist/types/core/src/server/render-to-readable-stream.d.ts +19 -0
- package/dist/types/core/src/server/render-to-string.d.ts +25 -0
- package/dist/types/core/src/shared/act.d.ts +1 -0
- package/dist/types/core/src/shared/aria-warnings.d.ts +1 -0
- package/dist/types/core/src/shared/async-compute.d.ts +63 -0
- package/dist/types/core/src/shared/component-registry.d.ts +53 -0
- package/dist/types/core/src/shared/render-guard.d.ts +47 -0
- package/dist/types/core/src/shared/secure-fetch.d.ts +21 -0
- package/dist/types/core/src/shared/types.d.ts +127 -0
- package/dist/types/core/src/shared/warnings.d.ts +19 -0
- package/dist/types/core/src/telemetry/index.d.ts +2 -0
- package/dist/types/core/src/telemetry/metrics.d.ts +67 -0
- package/dist/types/core/src/telemetry/tracing.d.ts +95 -0
- package/dist/types/core/transitions.d.ts +32 -0
- package/dist/types/core/transitions.d.ts.map +1 -0
- package/dist/types/devtools/index.d.ts +22 -0
- package/dist/types/devtools/index.d.ts.map +1 -0
- package/dist/types/dom/create-portal.d.ts +7 -0
- package/dist/types/dom/create-portal.d.ts.map +1 -0
- package/dist/types/dom/create-root.d.ts +24 -0
- package/dist/types/dom/create-root.d.ts.map +1 -0
- package/dist/types/dom/flush-sync.d.ts +2 -0
- package/dist/types/dom/flush-sync.d.ts.map +1 -0
- package/dist/types/dom/index.d.ts +5 -0
- package/dist/types/dom/index.d.ts.map +1 -0
- package/dist/types/dom/legacy.d.ts +17 -0
- package/dist/types/dom/legacy.d.ts.map +1 -0
- package/dist/types/dom/synthetic-event.d.ts +91 -0
- package/dist/types/dom/synthetic-event.d.ts.map +1 -0
- package/dist/types/dom/work-loop.d.ts +35 -0
- package/dist/types/dom/work-loop.d.ts.map +1 -0
- package/dist/types/features/feature-flags.d.ts +39 -0
- package/dist/types/features/feature-flags.d.ts.map +1 -0
- package/dist/types/features/index.d.ts +28 -0
- package/dist/types/features/index.d.ts.map +1 -0
- package/dist/types/hooks/dispatcher.d.ts +27 -0
- package/dist/types/hooks/dispatcher.d.ts.map +1 -0
- package/dist/types/hooks/hook-state.d.ts +47 -0
- package/dist/types/hooks/hook-state.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +48 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/install-dispatcher.d.ts +3 -0
- package/dist/types/hooks/install-dispatcher.d.ts.map +1 -0
- package/dist/types/hooks/use-head.d.ts +55 -0
- package/dist/types/hooks/use-head.d.ts.map +1 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/jsx-dev-runtime.d.ts +2 -0
- package/dist/types/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/types/jsx-runtime.d.ts +8 -0
- package/dist/types/jsx-runtime.d.ts.map +1 -0
- package/dist/types/router/index.d.ts +13 -0
- package/dist/types/router/index.d.ts.map +1 -0
- package/dist/types/router/link-component.d.ts +17 -0
- package/dist/types/router/link-component.d.ts.map +1 -0
- package/dist/types/router/match-path.d.ts +29 -0
- package/dist/types/router/match-path.d.ts.map +1 -0
- package/dist/types/router/route-component.d.ts +13 -0
- package/dist/types/router/route-component.d.ts.map +1 -0
- package/dist/types/router/router-component.d.ts +6 -0
- package/dist/types/router/router-component.d.ts.map +1 -0
- package/dist/types/router/router-context.d.ts +14 -0
- package/dist/types/router/router-context.d.ts.map +1 -0
- package/dist/types/router/router-store.d.ts +23 -0
- package/dist/types/router/router-store.d.ts.map +1 -0
- package/dist/types/router/use-navigate.d.ts +5 -0
- package/dist/types/router/use-navigate.d.ts.map +1 -0
- package/dist/types/router/use-params.d.ts +3 -0
- package/dist/types/router/use-params.d.ts.map +1 -0
- package/dist/types/router/use-router.d.ts +4 -0
- package/dist/types/router/use-router.d.ts.map +1 -0
- package/dist/types/server/index.d.ts +4 -0
- package/dist/types/server/index.d.ts.map +1 -0
- package/dist/types/server/render-to-pipeable-stream.d.ts +32 -0
- package/dist/types/server/render-to-pipeable-stream.d.ts.map +1 -0
- package/dist/types/server/render-to-readable-stream.d.ts +20 -0
- package/dist/types/server/render-to-readable-stream.d.ts.map +1 -0
- package/dist/types/server/render-to-string.d.ts +26 -0
- package/dist/types/server/render-to-string.d.ts.map +1 -0
- package/dist/types/shared/act.d.ts +2 -0
- package/dist/types/shared/act.d.ts.map +1 -0
- package/dist/types/shared/aria-warnings.d.ts +2 -0
- package/dist/types/shared/aria-warnings.d.ts.map +1 -0
- package/dist/types/shared/async-compute.d.ts +64 -0
- package/dist/types/shared/async-compute.d.ts.map +1 -0
- package/dist/types/shared/component-registry.d.ts +54 -0
- package/dist/types/shared/component-registry.d.ts.map +1 -0
- package/dist/types/shared/render-guard.d.ts +48 -0
- package/dist/types/shared/render-guard.d.ts.map +1 -0
- package/dist/types/shared/secure-fetch.d.ts +22 -0
- package/dist/types/shared/secure-fetch.d.ts.map +1 -0
- package/dist/types/shared/types.d.ts +128 -0
- package/dist/types/shared/types.d.ts.map +1 -0
- package/dist/types/shared/warnings.d.ts +20 -0
- package/dist/types/shared/warnings.d.ts.map +1 -0
- package/dist/types/telemetry/index.d.ts +3 -0
- package/dist/types/telemetry/index.d.ts.map +1 -0
- package/dist/types/telemetry/metrics.d.ts +68 -0
- package/dist/types/telemetry/metrics.d.ts.map +1 -0
- package/dist/types/telemetry/tracing.d.ts +96 -0
- package/dist/types/telemetry/tracing.d.ts.map +1 -0
- package/package.json +8 -17
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dock -- Application launcher bar component.
|
|
3
|
+
*
|
|
4
|
+
* A configurable vertical or horizontal icon bar that displays application
|
|
5
|
+
* launchers with active/running indicators, badges, tooltips, and
|
|
6
|
+
* click-to-open behavior. Inspired by the Ubuntu Unity launcher and macOS dock.
|
|
7
|
+
*/
|
|
8
|
+
import { type SpecNode } from '../../../../core/src/index';
|
|
9
|
+
export interface DockItem {
|
|
10
|
+
/** Unique identifier for this dock entry */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Icon source -- URL to an image/SVG, or an emoji/text character */
|
|
13
|
+
icon: string;
|
|
14
|
+
/** Tooltip label shown on hover */
|
|
15
|
+
label: string;
|
|
16
|
+
/** Whether this item's application is currently running/open. Displays a dot indicator. Default: false */
|
|
17
|
+
active?: boolean;
|
|
18
|
+
/** Optional badge count (e.g., unread messages). Renders a small number badge on the icon. */
|
|
19
|
+
badge?: number;
|
|
20
|
+
/** Whether this icon is disabled (greyed out, non-clickable). Default: false */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface DockProps {
|
|
24
|
+
/** The dock items to display */
|
|
25
|
+
items: DockItem[];
|
|
26
|
+
/** Orientation of the dock. Default: 'vertical' */
|
|
27
|
+
orientation?: 'vertical' | 'horizontal';
|
|
28
|
+
/** Position on the screen edge. Default: 'left' */
|
|
29
|
+
position?: 'left' | 'right' | 'top' | 'bottom';
|
|
30
|
+
/** Icon size in pixels. Default: 36 */
|
|
31
|
+
iconSize?: number;
|
|
32
|
+
/** Whether to auto-hide the dock (slides out on hover, hidden otherwise). Default: false */
|
|
33
|
+
autoHide?: boolean;
|
|
34
|
+
/** Whether to show a separator before the last item (e.g., "Show Applications" grid button). Default: false */
|
|
35
|
+
showTrailingSeparator?: boolean;
|
|
36
|
+
/** Called when a dock item is clicked */
|
|
37
|
+
onItemClick?: (id: string) => void;
|
|
38
|
+
/** Called when a dock item is right-clicked (for context menu integration) */
|
|
39
|
+
onItemContextMenu?: (id: string, event: {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
}) => void;
|
|
43
|
+
/** Extra children rendered at the bottom/end of the dock (e.g., a "Show Applications" button) */
|
|
44
|
+
children?: unknown;
|
|
45
|
+
}
|
|
46
|
+
export declare function Dock(props: DockProps): SpecNode;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { NavWrapperStyle, NavItemStyle } from '../../wrapper/src/NavWrapper';
|
|
2
|
+
export interface DropdownItem {
|
|
3
|
+
/** Unique identifier for the item */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Display label */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Optional icon rendered as a text span before the label (emoji or text) */
|
|
8
|
+
icon?: string;
|
|
9
|
+
/** Whether the item is disabled (grayed out, non-interactive) */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Render as a thin horizontal divider instead of a menu item */
|
|
12
|
+
divider?: boolean;
|
|
13
|
+
/** Click handler */
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
/** Nested submenu items — shows a right chevron and expands on hover */
|
|
16
|
+
children?: DropdownItem[];
|
|
17
|
+
}
|
|
18
|
+
export interface DropdownProps {
|
|
19
|
+
/** Trigger button text */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Menu items */
|
|
22
|
+
items: DropdownItem[];
|
|
23
|
+
/** Custom styles for the trigger button */
|
|
24
|
+
triggerStyle?: Record<string, string>;
|
|
25
|
+
/** Styling passed to NavWrapper for the dropdown panel */
|
|
26
|
+
menuStyle?: NavWrapperStyle;
|
|
27
|
+
/** Styling for menu items */
|
|
28
|
+
itemStyle?: NavItemStyle;
|
|
29
|
+
/** Placement of the dropdown relative to the trigger (default: 'bottom-start') */
|
|
30
|
+
placement?: 'bottom-start' | 'bottom-end';
|
|
31
|
+
/** Close the dropdown when an item is selected (default: true) */
|
|
32
|
+
closeOnSelect?: boolean;
|
|
33
|
+
/** Width of the dropdown panel (default: '220px') */
|
|
34
|
+
width?: string | number;
|
|
35
|
+
}
|
|
36
|
+
export declare function Dropdown(props: DropdownProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface MenuItem {
|
|
2
|
+
/** Display label */
|
|
3
|
+
label: string;
|
|
4
|
+
/** Click handler */
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
/** Keyboard shortcut hint (e.g. 'Ctrl+S') */
|
|
7
|
+
shortcut?: string;
|
|
8
|
+
/** Icon text (emoji or character) */
|
|
9
|
+
icon?: string;
|
|
10
|
+
/** Render as a divider line */
|
|
11
|
+
divider?: boolean;
|
|
12
|
+
/** Whether the item is disabled */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Nested submenu items */
|
|
15
|
+
children?: MenuItem[];
|
|
16
|
+
}
|
|
17
|
+
export interface MenuDefinition {
|
|
18
|
+
/** Top-level menu label */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Items in this menu */
|
|
21
|
+
items: MenuItem[];
|
|
22
|
+
}
|
|
23
|
+
export interface MenubarProps {
|
|
24
|
+
/** Array of top-level menu definitions */
|
|
25
|
+
menus: MenuDefinition[];
|
|
26
|
+
}
|
|
27
|
+
export declare function Menubar(props: MenubarProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface PaginationProps {
|
|
2
|
+
/** Total number of items */
|
|
3
|
+
total: number;
|
|
4
|
+
/** Items per page */
|
|
5
|
+
pageSize: number;
|
|
6
|
+
/** Current active page (1-based) */
|
|
7
|
+
currentPage: number;
|
|
8
|
+
/** Called when page changes */
|
|
9
|
+
onChange: (page: number) => void;
|
|
10
|
+
/** Number of sibling pages shown around the current page (default: 1) */
|
|
11
|
+
siblingCount?: number;
|
|
12
|
+
/** Show First/Last buttons (default: true) */
|
|
13
|
+
showFirstLast?: boolean;
|
|
14
|
+
/** Show Prev/Next buttons (default: true) */
|
|
15
|
+
showPrevNext?: boolean;
|
|
16
|
+
/** Disable all controls */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function Pagination(props: PaginationProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface SidebarItem {
|
|
2
|
+
/** Unique identifier */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Display label */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Optional icon (emoji or text character) */
|
|
7
|
+
icon?: string;
|
|
8
|
+
/** Nested child items */
|
|
9
|
+
children?: SidebarItem[];
|
|
10
|
+
/** Optional badge text (e.g. count) */
|
|
11
|
+
badge?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SidebarProps {
|
|
14
|
+
/** Navigation items */
|
|
15
|
+
items: SidebarItem[];
|
|
16
|
+
/** Whether the sidebar is collapsed to icon-only mode */
|
|
17
|
+
collapsed?: boolean;
|
|
18
|
+
/** Called to toggle collapse state */
|
|
19
|
+
onToggleCollapse?: () => void;
|
|
20
|
+
/** Currently selected item id */
|
|
21
|
+
selectedId?: string;
|
|
22
|
+
/** Called when an item is selected */
|
|
23
|
+
onSelect?: (id: string) => void;
|
|
24
|
+
/** Expanded width (default: '240px') */
|
|
25
|
+
width?: string | number;
|
|
26
|
+
/** Collapsed width (default: '56px') */
|
|
27
|
+
collapsedWidth?: string | number;
|
|
28
|
+
}
|
|
29
|
+
export declare function Sidebar(props: SidebarProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface StepItem {
|
|
2
|
+
/** Step label */
|
|
3
|
+
label: string;
|
|
4
|
+
/** Optional description shown below the label */
|
|
5
|
+
description?: string;
|
|
6
|
+
/** Optional icon text (emoji or character) shown inside the circle */
|
|
7
|
+
icon?: string;
|
|
8
|
+
}
|
|
9
|
+
export type StepperOrientation = 'horizontal' | 'vertical';
|
|
10
|
+
export type StepperVariant = 'circle' | 'dot';
|
|
11
|
+
export interface StepperProps {
|
|
12
|
+
/** Array of step definitions */
|
|
13
|
+
steps: StepItem[];
|
|
14
|
+
/** Current active step (0-based index) */
|
|
15
|
+
currentStep: number;
|
|
16
|
+
/** Orientation (default: 'horizontal') */
|
|
17
|
+
orientation?: StepperOrientation;
|
|
18
|
+
/** Called when a step is clicked — receives the step index */
|
|
19
|
+
onChange?: (step: number) => void;
|
|
20
|
+
/** Whether steps are clickable (default: false) */
|
|
21
|
+
clickable?: boolean;
|
|
22
|
+
/** Visual variant (default: 'circle') */
|
|
23
|
+
variant?: StepperVariant;
|
|
24
|
+
}
|
|
25
|
+
export declare function Stepper(props: StepperProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface SystemTrayIndicator {
|
|
2
|
+
/** Unique identifier */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Icon -- emoji, text character, or image URL */
|
|
5
|
+
icon: string;
|
|
6
|
+
/** Optional label shown next to the icon */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Click handler */
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface SystemTrayUser {
|
|
12
|
+
/** Display name */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Avatar URL or emoji fallback */
|
|
15
|
+
avatar?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SystemTrayProps {
|
|
18
|
+
/** Text shown on the left -- typically the active application name */
|
|
19
|
+
activeAppName?: string;
|
|
20
|
+
/** Optional left-most button (e.g., "Activities"). Fires onClick. */
|
|
21
|
+
activitiesButton?: {
|
|
22
|
+
label: string;
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
};
|
|
25
|
+
/** Clock format. Default: '24h'. Options: '12h', '24h' */
|
|
26
|
+
clockFormat?: '12h' | '24h';
|
|
27
|
+
/** Whether to show seconds in the clock. Default: true */
|
|
28
|
+
showSeconds?: boolean;
|
|
29
|
+
/** Whether to show the date below/beside the clock. Default: true */
|
|
30
|
+
showDate?: boolean;
|
|
31
|
+
/** System status indicators displayed in the right section */
|
|
32
|
+
indicators?: SystemTrayIndicator[];
|
|
33
|
+
/** User profile -- shown at the far right with avatar and name */
|
|
34
|
+
user?: SystemTrayUser;
|
|
35
|
+
/** Items in the user dropdown menu (shown on click) */
|
|
36
|
+
userMenuItems?: Array<{
|
|
37
|
+
label: string;
|
|
38
|
+
icon?: string;
|
|
39
|
+
onClick: () => void;
|
|
40
|
+
divider?: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
/** Panel height in pixels. Default: 28 */
|
|
43
|
+
height?: number;
|
|
44
|
+
/** Children -- additional elements to render in the center area */
|
|
45
|
+
children?: unknown;
|
|
46
|
+
}
|
|
47
|
+
export declare function SystemTray(props: SystemTrayProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ToolbarItem {
|
|
2
|
+
/** Unique identifier */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Display label (optional if icon provided) */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Icon text (emoji or character) */
|
|
7
|
+
icon?: string;
|
|
8
|
+
/** Item type — 'button' has momentary press, 'toggle' stays pressed until clicked again */
|
|
9
|
+
type: 'button' | 'toggle' | 'separator' | 'dropdown' | 'spacer';
|
|
10
|
+
/** Click handler */
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
/** Whether the item is disabled */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Whether the item is in an active/pressed state (used by toggle) */
|
|
15
|
+
active?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type ToolbarSize = 'sm' | 'md' | 'lg';
|
|
18
|
+
export type ToolbarVariant = 'flat' | 'raised';
|
|
19
|
+
export interface ToolbarProps {
|
|
20
|
+
/** Toolbar items */
|
|
21
|
+
items: ToolbarItem[];
|
|
22
|
+
/** Size (default: 'md') */
|
|
23
|
+
size?: ToolbarSize;
|
|
24
|
+
/** Visual variant (default: 'flat') */
|
|
25
|
+
variant?: ToolbarVariant;
|
|
26
|
+
}
|
|
27
|
+
export declare function Toolbar(props: ToolbarProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { NavItemStyle, NavWrapperStyle } from '../../wrapper/src/NavWrapper';
|
|
2
|
+
import { TreeNode } from './TreeNode';
|
|
3
|
+
import type { TreeNodeData } from './TreeNode';
|
|
4
|
+
export interface TreeNavProps {
|
|
5
|
+
/** Tree data structure */
|
|
6
|
+
root: TreeNodeData;
|
|
7
|
+
/** Fired when a node label is clicked */
|
|
8
|
+
onNodeClick?: (node: TreeNode) => void;
|
|
9
|
+
/** Fired when a node is expanded */
|
|
10
|
+
onNodeExpand?: (node: TreeNode) => void;
|
|
11
|
+
/** Fired when a node is collapsed */
|
|
12
|
+
onNodeCollapse?: (node: TreeNode) => void;
|
|
13
|
+
/** Id of the currently selected node */
|
|
14
|
+
selectedId?: string;
|
|
15
|
+
/** Start with all nodes expanded (default: false) */
|
|
16
|
+
expandAll?: boolean;
|
|
17
|
+
/** Color of connector lines (default: '#000') */
|
|
18
|
+
lineColor?: string;
|
|
19
|
+
/** Width of connector lines in px (default: 1) */
|
|
20
|
+
lineWidth?: number;
|
|
21
|
+
/** Pixels of indentation per depth level (default: 20) */
|
|
22
|
+
indentPx?: number;
|
|
23
|
+
/** Icon shown for expanded non-leaf nodes (default: '\u2212') */
|
|
24
|
+
iconExpanded?: string;
|
|
25
|
+
/** Icon shown for collapsed non-leaf nodes (default: '+') */
|
|
26
|
+
iconCollapsed?: string;
|
|
27
|
+
/** Styling for individual node items */
|
|
28
|
+
nodeStyle?: NavItemStyle;
|
|
29
|
+
/** Styling for the outer NavWrapper */
|
|
30
|
+
wrapperStyle?: NavWrapperStyle;
|
|
31
|
+
/** Custom node renderer for full control over node appearance */
|
|
32
|
+
renderNode?: (node: TreeNode, isSelected: boolean) => unknown;
|
|
33
|
+
}
|
|
34
|
+
export declare function TreeNav(props: TreeNavProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TreeNode — Extensible data model for tree navigation nodes.
|
|
3
|
+
*
|
|
4
|
+
* Represents a single node in a hierarchical tree structure. Supports
|
|
5
|
+
* arbitrary metadata for extensibility, parent/child traversal, and
|
|
6
|
+
* expand/collapse state management. Developers can subclass TreeNode or
|
|
7
|
+
* attach custom data via the `metadata` field.
|
|
8
|
+
*/
|
|
9
|
+
export interface TreeNodeData {
|
|
10
|
+
/** Unique identifier for the node */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Display label */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Nested child nodes */
|
|
15
|
+
children?: TreeNodeData[];
|
|
16
|
+
/** Whether the node starts expanded (default: false) */
|
|
17
|
+
expanded?: boolean;
|
|
18
|
+
/** Text or emoji icon displayed alongside the label */
|
|
19
|
+
icon?: string;
|
|
20
|
+
/** Extensible payload — attach arbitrary data here */
|
|
21
|
+
metadata?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
export declare class TreeNode {
|
|
24
|
+
id: string;
|
|
25
|
+
label: string;
|
|
26
|
+
children: TreeNode[];
|
|
27
|
+
expanded: boolean;
|
|
28
|
+
icon: string | null;
|
|
29
|
+
metadata: Record<string, unknown>;
|
|
30
|
+
parent: TreeNode | null;
|
|
31
|
+
depth: number;
|
|
32
|
+
constructor(data: TreeNodeData, parent?: TreeNode);
|
|
33
|
+
/**
|
|
34
|
+
* Build a full TreeNode tree from nested data.
|
|
35
|
+
*/
|
|
36
|
+
static fromData(data: TreeNodeData): TreeNode;
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the node has no children.
|
|
39
|
+
*/
|
|
40
|
+
isLeaf(): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the node has no parent (root of the tree).
|
|
43
|
+
*/
|
|
44
|
+
isRoot(): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Depth-first walk of this node and all descendants.
|
|
47
|
+
* The callback receives each node and its depth.
|
|
48
|
+
*/
|
|
49
|
+
walk(fn: (node: TreeNode, depth: number) => void): void;
|
|
50
|
+
/**
|
|
51
|
+
* Find a descendant (or self) by id. Returns null if not found.
|
|
52
|
+
*/
|
|
53
|
+
find(id: string): TreeNode | null;
|
|
54
|
+
/**
|
|
55
|
+
* Toggle the expanded/collapsed state.
|
|
56
|
+
*/
|
|
57
|
+
toggle(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Expand this node (show children).
|
|
60
|
+
*/
|
|
61
|
+
expand(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Collapse this node (hide children).
|
|
64
|
+
*/
|
|
65
|
+
collapse(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Add a child node from data. Returns the newly created TreeNode.
|
|
68
|
+
*/
|
|
69
|
+
addChild(data: TreeNodeData): TreeNode;
|
|
70
|
+
/**
|
|
71
|
+
* Remove a direct child by id. Returns true if a child was removed.
|
|
72
|
+
*/
|
|
73
|
+
removeChild(id: string): boolean;
|
|
74
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type NavOrientation = 'horizontal' | 'vertical';
|
|
2
|
+
export interface NavWrapperStyle {
|
|
3
|
+
/** Background color (default: '#ffffff') */
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
/** Text color (default: '#1f2937') */
|
|
6
|
+
color?: string;
|
|
7
|
+
/** Font family (default: inherit) */
|
|
8
|
+
fontFamily?: string;
|
|
9
|
+
/** Font size (default: '14px') */
|
|
10
|
+
fontSize?: string;
|
|
11
|
+
/** Border (default: '1px solid #e5e7eb') */
|
|
12
|
+
border?: string;
|
|
13
|
+
/** Border radius (default: '8px') */
|
|
14
|
+
borderRadius?: string;
|
|
15
|
+
/** Padding (default: '0') */
|
|
16
|
+
padding?: string;
|
|
17
|
+
/** Box shadow (default: none) */
|
|
18
|
+
boxShadow?: string;
|
|
19
|
+
/** Width (default: 'auto') */
|
|
20
|
+
width?: string | number;
|
|
21
|
+
/** Max height for scrollable content (default: none) */
|
|
22
|
+
maxHeight?: string | number;
|
|
23
|
+
/** Custom inline styles merged last */
|
|
24
|
+
custom?: Record<string, string>;
|
|
25
|
+
}
|
|
26
|
+
export interface NavWrapperProps {
|
|
27
|
+
/** Orientation of child items (default: 'vertical') */
|
|
28
|
+
orientation?: NavOrientation;
|
|
29
|
+
/** ARIA role (default: 'navigation') */
|
|
30
|
+
role?: string;
|
|
31
|
+
/** ARIA label */
|
|
32
|
+
ariaLabel?: string;
|
|
33
|
+
/** Styling configuration */
|
|
34
|
+
styling?: NavWrapperStyle;
|
|
35
|
+
/** Extra CSS class name */
|
|
36
|
+
className?: string;
|
|
37
|
+
/** Enable keyboard navigation with arrow keys (default: true) */
|
|
38
|
+
keyboardNav?: boolean;
|
|
39
|
+
/** Children */
|
|
40
|
+
children?: unknown;
|
|
41
|
+
}
|
|
42
|
+
export declare function NavWrapper(props: NavWrapperProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
43
|
+
export interface NavItemStyle {
|
|
44
|
+
/** Padding (default: '10px 16px') */
|
|
45
|
+
padding?: string;
|
|
46
|
+
/** Hover background (default: '#f3f4f6') */
|
|
47
|
+
hoverBackground?: string;
|
|
48
|
+
/** Active/selected background (default: '#eff6ff') */
|
|
49
|
+
activeBackground?: string;
|
|
50
|
+
/** Active text color (default: '#2563eb') */
|
|
51
|
+
activeColor?: string;
|
|
52
|
+
/** Border bottom between items (default: none) */
|
|
53
|
+
separator?: string;
|
|
54
|
+
/** Cursor (default: 'pointer') */
|
|
55
|
+
cursor?: string;
|
|
56
|
+
/** Transition (default: 'background-color 0.15s') */
|
|
57
|
+
transition?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Build common inline styles for a navigation item.
|
|
61
|
+
*/
|
|
62
|
+
export declare function buildNavItemStyle(s: NavItemStyle, state: {
|
|
63
|
+
hover: boolean;
|
|
64
|
+
active: boolean;
|
|
65
|
+
}): Record<string, string>;
|
|
66
|
+
/**
|
|
67
|
+
* useHover — simple hover state hook for nav items.
|
|
68
|
+
*/
|
|
69
|
+
export declare function useHover(): {
|
|
70
|
+
hover: boolean;
|
|
71
|
+
onMouseEnter: () => void;
|
|
72
|
+
onMouseLeave: () => void;
|
|
73
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ContextMenuItem {
|
|
2
|
+
/** Display label */
|
|
3
|
+
label?: string;
|
|
4
|
+
/** Click handler */
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
/** Optional icon (rendered as text/emoji) */
|
|
7
|
+
icon?: string;
|
|
8
|
+
/** Disabled state */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Render as a divider instead of a menu item */
|
|
11
|
+
divider?: boolean;
|
|
12
|
+
/** Nested submenu items */
|
|
13
|
+
children?: ContextMenuItem[];
|
|
14
|
+
}
|
|
15
|
+
export interface ContextMenuProps {
|
|
16
|
+
/** Menu item definitions */
|
|
17
|
+
items: ContextMenuItem[];
|
|
18
|
+
/** Trigger area children */
|
|
19
|
+
children?: unknown;
|
|
20
|
+
}
|
|
21
|
+
export declare function ContextMenu(props: ContextMenuProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
2
|
+
export interface DrawerProps {
|
|
3
|
+
/** Whether the drawer is open */
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** Called when the drawer requests to close */
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
/** Edge the drawer slides in from */
|
|
8
|
+
position?: DrawerPosition;
|
|
9
|
+
/** Width (left/right) or height (top/bottom) in px or % */
|
|
10
|
+
size?: string;
|
|
11
|
+
/** Drawer title */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** Show overlay backdrop behind the drawer */
|
|
14
|
+
overlay?: boolean;
|
|
15
|
+
/** Close when clicking the overlay */
|
|
16
|
+
closeOnOverlay?: boolean;
|
|
17
|
+
/** Close on Escape key */
|
|
18
|
+
closeOnEscape?: boolean;
|
|
19
|
+
/** Drawer body children */
|
|
20
|
+
children?: unknown;
|
|
21
|
+
}
|
|
22
|
+
export declare function Drawer(props: DrawerProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props> | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type ModalSize = 'sm' | 'md' | 'lg' | 'full';
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
/** Whether the modal is open */
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** Called when the modal requests to close */
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
/** Modal title rendered in the header */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** Modal width preset */
|
|
10
|
+
size?: ModalSize;
|
|
11
|
+
/** Close when clicking the overlay backdrop (default true) */
|
|
12
|
+
closeOnOverlay?: boolean;
|
|
13
|
+
/** Close when pressing Escape (default true) */
|
|
14
|
+
closeOnEscape?: boolean;
|
|
15
|
+
/** Footer slot content */
|
|
16
|
+
footer?: unknown;
|
|
17
|
+
/** Show the X close button in the header (default true) */
|
|
18
|
+
showCloseButton?: boolean;
|
|
19
|
+
/** Modal body children */
|
|
20
|
+
children?: unknown;
|
|
21
|
+
}
|
|
22
|
+
export declare function Modal(props: ModalProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props> | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
2
|
+
export interface PopoverProps {
|
|
3
|
+
/** Trigger element slot */
|
|
4
|
+
trigger: unknown;
|
|
5
|
+
/** Popover content slot */
|
|
6
|
+
content: unknown;
|
|
7
|
+
/** Controlled open state (if provided, disables auto-toggle) */
|
|
8
|
+
open?: boolean;
|
|
9
|
+
/** Placement relative to trigger */
|
|
10
|
+
placement?: PopoverPlacement;
|
|
11
|
+
/** Offset from trigger in px */
|
|
12
|
+
offset?: number;
|
|
13
|
+
/** Show an arrow pointing to the trigger */
|
|
14
|
+
arrow?: boolean;
|
|
15
|
+
/** Close when clicking outside the popover */
|
|
16
|
+
closeOnClickOutside?: boolean;
|
|
17
|
+
/** Callback when open state changes (for controlled mode) */
|
|
18
|
+
onOpenChange?: (open: boolean) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function Popover(props: PopoverProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
|
|
2
|
+
export type ToastType = 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
export interface ToastAction {
|
|
4
|
+
label: string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface ToastOptions {
|
|
8
|
+
/** Toast type for styling */
|
|
9
|
+
type?: ToastType;
|
|
10
|
+
/** Duration in ms before auto-dismiss (0 = persistent) */
|
|
11
|
+
duration?: number;
|
|
12
|
+
/** Optional action button */
|
|
13
|
+
action?: ToastAction;
|
|
14
|
+
}
|
|
15
|
+
export interface ToasterConfig {
|
|
16
|
+
/** Position of the toast stack */
|
|
17
|
+
position?: ToastPosition;
|
|
18
|
+
/** Maximum visible toasts */
|
|
19
|
+
maxToasts?: number;
|
|
20
|
+
/** Default auto-dismiss duration in ms */
|
|
21
|
+
defaultDuration?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface ToastItem {
|
|
24
|
+
id: string;
|
|
25
|
+
message: string;
|
|
26
|
+
type: ToastType;
|
|
27
|
+
duration: number;
|
|
28
|
+
action?: ToastAction;
|
|
29
|
+
createdAt: number;
|
|
30
|
+
}
|
|
31
|
+
export interface Toaster {
|
|
32
|
+
toast: (message: string, opts?: ToastOptions) => string;
|
|
33
|
+
dismiss: (id: string) => void;
|
|
34
|
+
dismissAll: () => void;
|
|
35
|
+
subscribe: (listener: () => void) => () => void;
|
|
36
|
+
getToasts: () => ToastItem[];
|
|
37
|
+
config: Required<ToasterConfig>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Creates a toaster instance that manages toast state externally.
|
|
41
|
+
*/
|
|
42
|
+
export declare function createToaster(config?: ToasterConfig): Toaster;
|
|
43
|
+
/**
|
|
44
|
+
* ToastContainer — Renders all toasts from a given toaster.
|
|
45
|
+
*/
|
|
46
|
+
export declare function ToastContainer(props: {
|
|
47
|
+
toaster: Toaster;
|
|
48
|
+
}): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props> | null;
|
|
49
|
+
/**
|
|
50
|
+
* useToast — Hook that creates a toaster and returns toast() + ToastContainer.
|
|
51
|
+
*/
|
|
52
|
+
export declare function useToast(config?: ToasterConfig): {
|
|
53
|
+
toast: (message: string, opts?: ToastOptions) => string;
|
|
54
|
+
dismiss: (id: string) => void;
|
|
55
|
+
dismissAll: () => void;
|
|
56
|
+
ToastContainer: () => import("specifyjs/shared/types").SpecElement<{
|
|
57
|
+
toaster: Toaster;
|
|
58
|
+
}>;
|
|
59
|
+
};
|