@synnaxlabs/pluto 0.12.0
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/LICENSE +4 -0
- package/README.md +34 -0
- package/dist/Center-ZAcURh-3.cjs +148 -0
- package/dist/Center-ZAcURh-3.cjs.map +1 -0
- package/dist/Center-gEKkAkdh.js +149 -0
- package/dist/Center-gEKkAkdh.js.map +1 -0
- package/dist/Header-5YX6FUn6.cjs +35 -0
- package/dist/Header-5YX6FUn6.cjs.map +1 -0
- package/dist/Header-7x6367IV.js +36 -0
- package/dist/Header-7x6367IV.js.map +1 -0
- package/dist/Item-EDdYN2NK.js +171 -0
- package/dist/Item-EDdYN2NK.js.map +1 -0
- package/dist/Item-HWzX7RK2.cjs +170 -0
- package/dist/Item-HWzX7RK2.cjs.map +1 -0
- package/dist/Item-owLU4Xop.js +97 -0
- package/dist/Item-owLU4Xop.js.map +1 -0
- package/dist/Item-rkSKzZoh.cjs +96 -0
- package/dist/Item-rkSKzZoh.cjs.map +1 -0
- package/dist/Keyboard-mE03PKwA.js +14 -0
- package/dist/Keyboard-mE03PKwA.js.map +1 -0
- package/dist/Keyboard-w372197S.cjs +13 -0
- package/dist/Keyboard-w372197S.cjs.map +1 -0
- package/dist/Link-laNlv47N.js +13 -0
- package/dist/Link-laNlv47N.js.map +1 -0
- package/dist/Link-xlTZan29.cjs +12 -0
- package/dist/Link-xlTZan29.cjs.map +1 -0
- package/dist/SelectLevel-bGb0dRXh.cjs +152 -0
- package/dist/SelectLevel-bGb0dRXh.cjs.map +1 -0
- package/dist/SelectLevel-cewIWtOv.js +153 -0
- package/dist/SelectLevel-cewIWtOv.js.map +1 -0
- package/dist/Selector-R3lL41_i.js +267 -0
- package/dist/Selector-R3lL41_i.js.map +1 -0
- package/dist/Selector-hQLSIYum.cjs +266 -0
- package/dist/Selector-hQLSIYum.cjs.map +1 -0
- package/dist/TimeRangeChip-XXXLMCrf.cjs +9316 -0
- package/dist/TimeRangeChip-XXXLMCrf.cjs.map +1 -0
- package/dist/TimeRangeChip-eDCX5pUC.js +9301 -0
- package/dist/TimeRangeChip-eDCX5pUC.js.map +1 -0
- package/dist/Toggle-eOKYw1OT.cjs +13664 -0
- package/dist/Toggle-eOKYw1OT.cjs.map +1 -0
- package/dist/Toggle-kLunfJtR.js +13665 -0
- package/dist/Toggle-kLunfJtR.js.map +1 -0
- package/dist/Video-Vpwp5ao1.js +12 -0
- package/dist/Video-Vpwp5ao1.js.map +1 -0
- package/dist/Video-a7BUKvzF.cjs +11 -0
- package/dist/Video-a7BUKvzF.cjs.map +1 -0
- package/dist/Video-k52RqIHf.cjs +2 -0
- package/dist/Video-k52RqIHf.cjs.map +1 -0
- package/dist/Video-w40geAFS.js +2 -0
- package/dist/Video-w40geAFS.js.map +1 -0
- package/dist/accordion/Accordion.d.ts +38 -0
- package/dist/accordion/Accordion.spec.d.ts +1 -0
- package/dist/accordion/Accordion.stories.d.ts +5 -0
- package/dist/accordion/index.d.ts +1 -0
- package/dist/aether/aether/aether.d.ts +247 -0
- package/dist/aether/aether/index.d.ts +2 -0
- package/dist/aether/aether/worker.spec.d.ts +8 -0
- package/dist/aether/index.d.ts +1 -0
- package/dist/aether/main.d.ts +96 -0
- package/dist/aether/main.spec.d.ts +8 -0
- package/dist/aether/message.d.ts +17 -0
- package/dist/aether.cjs +90 -0
- package/dist/aether.cjs.map +1 -0
- package/dist/aether.js +93 -0
- package/dist/aether.js.map +1 -0
- package/dist/aetherIndex.d.ts +14 -0
- package/dist/alamos/Provider.d.ts +12 -0
- package/dist/alamos/aether/alamos.d.ts +39 -0
- package/dist/alamos/aether/index.d.ts +1 -0
- package/dist/alamos/index.d.ts +1 -0
- package/dist/align/Center.d.ts +8 -0
- package/dist/align/Pack.d.ts +23 -0
- package/dist/align/Pack.stories.d.ts +8 -0
- package/dist/align/Space.d.ts +54 -0
- package/dist/align/Space.spec.d.ts +1 -0
- package/dist/align/Space.stories.d.ts +5 -0
- package/dist/align/external.d.ts +3 -0
- package/dist/align/index.d.ts +1 -0
- package/dist/align.cjs +10 -0
- package/dist/align.cjs.map +1 -0
- package/dist/align.js +10 -0
- package/dist/align.js.map +1 -0
- package/dist/button/Button.d.ts +46 -0
- package/dist/button/Button.spec.d.ts +1 -0
- package/dist/button/Button.stories.d.ts +9 -0
- package/dist/button/Icon.d.ts +19 -0
- package/dist/button/Link.d.ts +16 -0
- package/dist/button/Toggle.d.ts +34 -0
- package/dist/button/color.d.ts +3 -0
- package/dist/button/external.d.ts +4 -0
- package/dist/button/index.d.ts +1 -0
- package/dist/button.cjs +15 -0
- package/dist/button.cjs.map +1 -0
- package/dist/button.js +15 -0
- package/dist/button.js.map +1 -0
- package/dist/channel/AliasProvider.d.ts +24 -0
- package/dist/channel/ChannelSelect.stories.d.ts +7 -0
- package/dist/channel/LinePlot.d.ts +72 -0
- package/dist/channel/LinePlot.stories.d.ts +6 -0
- package/dist/channel/Select.d.ts +11 -0
- package/dist/channel/external.d.ts +3 -0
- package/dist/channel/index.d.ts +1 -0
- package/dist/channel/types.d.ts +1 -0
- package/dist/color/Picker/Picker.d.ts +6 -0
- package/dist/color/Picker/Picker.stories.d.ts +6 -0
- package/dist/color/Picker/index.d.ts +1 -0
- package/dist/color/Swatch/Swatch.d.ts +8 -0
- package/dist/color/Swatch/index.d.ts +1 -0
- package/dist/color/core/color.d.ts +128 -0
- package/dist/color/core/color.spec.d.ts +1 -0
- package/dist/color/core/index.d.ts +2 -0
- package/dist/color/external.d.ts +4 -0
- package/dist/color/index.d.ts +1 -0
- package/dist/component-joFaJiQW.cjs +24719 -0
- package/dist/component-joFaJiQW.cjs.map +1 -0
- package/dist/component-k78Jq9I7.js +24720 -0
- package/dist/component-k78Jq9I7.js.map +1 -0
- package/dist/css/bem.d.ts +14 -0
- package/dist/css/bem.spec.d.ts +1 -0
- package/dist/css/color.d.ts +10 -0
- package/dist/css/css.d.ts +27 -0
- package/dist/css/grid.d.ts +14 -0
- package/dist/css/index.d.ts +4 -0
- package/dist/css/units.d.ts +1 -0
- package/dist/css/vars.d.ts +1 -0
- package/dist/css-NTD4Xm8x.js +9206 -0
- package/dist/css-NTD4Xm8x.js.map +1 -0
- package/dist/css-V3VUT_Js.cjs +9204 -0
- package/dist/css-V3VUT_Js.cjs.map +1 -0
- package/dist/cursor/cursor.d.ts +3 -0
- package/dist/cursor/index.d.ts +1 -0
- package/dist/dimensions-Sej0Zly9.cjs +26 -0
- package/dist/dimensions-Sej0Zly9.cjs.map +1 -0
- package/dist/dimensions-guJ5PHmb.js +27 -0
- package/dist/dimensions-guJ5PHmb.js.map +1 -0
- package/dist/divider/Divider.d.ts +14 -0
- package/dist/divider/index.d.ts +2 -0
- package/dist/dropdown/Dropdown.d.ts +49 -0
- package/dist/dropdown/Dropdown.spec.d.ts +1 -0
- package/dist/dropdown/Dropdown.stories.d.ts +5 -0
- package/dist/dropdown/index.d.ts +2 -0
- package/dist/dropdown.cjs +13 -0
- package/dist/dropdown.cjs.map +1 -0
- package/dist/dropdown.js +13 -0
- package/dist/dropdown.js.map +1 -0
- package/dist/external-2Aicsb3l.js +88 -0
- package/dist/external-2Aicsb3l.js.map +1 -0
- package/dist/external-9Ncn2J9B.cjs +93 -0
- package/dist/external-9Ncn2J9B.cjs.map +1 -0
- package/dist/external-9RCzxzgZ.js +30 -0
- package/dist/external-9RCzxzgZ.js.map +1 -0
- package/dist/external-9pS8-DvV.js +15 -0
- package/dist/external-9pS8-DvV.js.map +1 -0
- package/dist/external-KxlyA74C.js +20 -0
- package/dist/external-KxlyA74C.js.map +1 -0
- package/dist/external-OSLzuRs1.cjs +14 -0
- package/dist/external-OSLzuRs1.cjs.map +1 -0
- package/dist/external-PS3nzqUn.cjs +23 -0
- package/dist/external-PS3nzqUn.cjs.map +1 -0
- package/dist/external-QRmqSjV0.js +18 -0
- package/dist/external-QRmqSjV0.js.map +1 -0
- package/dist/external-QuVTCnGl.js +71 -0
- package/dist/external-QuVTCnGl.js.map +1 -0
- package/dist/external-U5HRPaDI.cjs +17 -0
- package/dist/external-U5HRPaDI.cjs.map +1 -0
- package/dist/external-_CtRDtih.js +17 -0
- package/dist/external-_CtRDtih.js.map +1 -0
- package/dist/external-eQU48hM4.cjs +87 -0
- package/dist/external-eQU48hM4.cjs.map +1 -0
- package/dist/external-kbDFnfuk.js +24 -0
- package/dist/external-kbDFnfuk.js.map +1 -0
- package/dist/external-oX1JmOFf.js +17 -0
- package/dist/external-oX1JmOFf.js.map +1 -0
- package/dist/external-oZe6tF4A.cjs +14 -0
- package/dist/external-oZe6tF4A.cjs.map +1 -0
- package/dist/external-tVcmKSsT.cjs +19 -0
- package/dist/external-tVcmKSsT.cjs.map +1 -0
- package/dist/external-up1sE3F6.js +94 -0
- package/dist/external-up1sE3F6.js.map +1 -0
- package/dist/external-uvx0b-Jw.cjs +16 -0
- package/dist/external-uvx0b-Jw.cjs.map +1 -0
- package/dist/external-vXBQOmKv.js +15 -0
- package/dist/external-vXBQOmKv.js.map +1 -0
- package/dist/external-yiqRIIvW.cjs +16 -0
- package/dist/external-yiqRIIvW.cjs.map +1 -0
- package/dist/external-zBiIxeDG.cjs +70 -0
- package/dist/external-zBiIxeDG.cjs.map +1 -0
- package/dist/external-zw9fckWT.cjs +29 -0
- package/dist/external-zw9fckWT.cjs.map +1 -0
- package/dist/font-t7KoGNFX.js +17 -0
- package/dist/font-t7KoGNFX.js.map +1 -0
- package/dist/font-wlgaMRYN.cjs +16 -0
- package/dist/font-wlgaMRYN.cjs.map +1 -0
- package/dist/fontString-RKvYIr5H.js +13 -0
- package/dist/fontString-RKvYIr5H.js.map +1 -0
- package/dist/fontString-i24UxKCQ.cjs +12 -0
- package/dist/fontString-i24UxKCQ.cjs.map +1 -0
- package/dist/generic/Generic.d.ts +13 -0
- package/dist/generic/index.d.ts +1 -0
- package/dist/haul/Haul.d.ts +60 -0
- package/dist/haul/index.d.ts +1 -0
- package/dist/header/Actions.d.ts +15 -0
- package/dist/header/ButtonTitle.d.ts +13 -0
- package/dist/header/Header.d.ts +28 -0
- package/dist/header/Header.spec.d.ts +1 -0
- package/dist/header/Header.stories.d.ts +6 -0
- package/dist/header/Title.d.ts +13 -0
- package/dist/header/external.d.ts +4 -0
- package/dist/header/index.d.ts +1 -0
- package/dist/header.cjs +15 -0
- package/dist/header.cjs.map +1 -0
- package/dist/header.js +15 -0
- package/dist/header.js.map +1 -0
- package/dist/hooks/effect.d.ts +14 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/ref.d.ts +31 -0
- package/dist/hooks/useClickOutside.d.ts +9 -0
- package/dist/hooks/useCursorDrag/index.d.ts +2 -0
- package/dist/hooks/useCursorDrag/types.d.ts +5 -0
- package/dist/hooks/useCursorDrag/useCursorDrag.d.ts +10 -0
- package/dist/hooks/useCursorDrag/useVirtualCursorDrag.d.ts +1 -0
- package/dist/hooks/useCursorDrag/useVirtualCursorDragWebKit.d.ts +2 -0
- package/dist/hooks/useCursorDrag/useVirtualCursorDragWebView.d.ts +2 -0
- package/dist/hooks/useDebouncedCallback.d.ts +2 -0
- package/dist/hooks/useFilter.d.ts +21 -0
- package/dist/hooks/useResize.d.ts +24 -0
- package/dist/hooks/useSelectMultiple.d.ts +51 -0
- package/dist/hooks/useTransforms.d.ts +15 -0
- package/dist/hooks/useUniqueKey.d.ts +6 -0
- package/dist/index.cjs +1175 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +1182 -0
- package/dist/index.js.map +1 -0
- package/dist/input/Date.d.ts +28 -0
- package/dist/input/DragButton.d.ts +14 -0
- package/dist/input/HelpText.d.ts +19 -0
- package/dist/input/Input.spec.d.ts +1 -0
- package/dist/input/Input.stories.d.ts +9 -0
- package/dist/input/Item.d.ts +23 -0
- package/dist/input/Label.d.ts +13 -0
- package/dist/input/Number.d.ts +30 -0
- package/dist/input/Switch.d.ts +15 -0
- package/dist/input/Text.d.ts +18 -0
- package/dist/input/Time.d.ts +30 -0
- package/dist/input/Time.spec.d.ts +1 -0
- package/dist/input/external.d.ts +10 -0
- package/dist/input/index.d.ts +1 -0
- package/dist/input/types.d.ts +19 -0
- package/dist/input.cjs +15 -0
- package/dist/input.cjs.map +1 -0
- package/dist/input.js +15 -0
- package/dist/input.js.map +1 -0
- package/dist/jsx-runtime-N1ikfypN.cjs +931 -0
- package/dist/jsx-runtime-N1ikfypN.cjs.map +1 -0
- package/dist/jsx-runtime-rX5tAIG2.js +932 -0
- package/dist/jsx-runtime-rX5tAIG2.js.map +1 -0
- package/dist/list/Column.d.ts +24 -0
- package/dist/list/Context.d.ts +45 -0
- package/dist/list/Core.d.ts +40 -0
- package/dist/list/Filter.d.ts +22 -0
- package/dist/list/KeyHover.d.ts +4 -0
- package/dist/list/List.d.ts +19 -0
- package/dist/list/List.spec.d.ts +1 -0
- package/dist/list/List.stories.d.ts +7 -0
- package/dist/list/Search.d.ts +12 -0
- package/dist/list/Selector.d.ts +11 -0
- package/dist/list/external.d.ts +9 -0
- package/dist/list/index.d.ts +1 -0
- package/dist/list/types.d.ts +38 -0
- package/dist/list.cjs +27 -0
- package/dist/list.cjs.map +1 -0
- package/dist/list.js +27 -0
- package/dist/list.js.map +1 -0
- package/dist/memo/index.d.ts +2 -0
- package/dist/memo/proxyMemo.d.ts +2 -0
- package/dist/memo/useMemoCompare.d.ts +5 -0
- package/dist/menu/ContextMenu.d.ts +78 -0
- package/dist/menu/Item.d.ts +35 -0
- package/dist/menu/Menu.d.ts +26 -0
- package/dist/menu/external.d.ts +3 -0
- package/dist/menu/index.d.ts +1 -0
- package/dist/menu.cjs +16 -0
- package/dist/menu.cjs.map +1 -0
- package/dist/menu.js +16 -0
- package/dist/menu.js.map +1 -0
- package/dist/mock/MockGLBufferController.d.ts +20 -0
- package/dist/mock/setuptests.d.ts +1 -0
- package/dist/mosaic/Mosaic.d.ts +35 -0
- package/dist/mosaic/Mosaic.spec.d.ts +1 -0
- package/dist/mosaic/Mosaic.stories.d.ts +5 -0
- package/dist/mosaic/external.d.ts +4 -0
- package/dist/mosaic/index.d.ts +1 -0
- package/dist/mosaic/tree.d.ts +70 -0
- package/dist/mosaic/types.d.ts +50 -0
- package/dist/mosaic/use.d.ts +24 -0
- package/dist/nav/Bar.d.ts +25 -0
- package/dist/nav/Drawer.d.ts +24 -0
- package/dist/nav/Nav.spec.d.ts +1 -0
- package/dist/nav/Nav.stories.d.ts +6 -0
- package/dist/nav/external.d.ts +2 -0
- package/dist/nav/index.d.ts +1 -0
- package/dist/os/Controls/Controls.d.ts +7 -0
- package/dist/os/Controls/Controls.stories.d.ts +6 -0
- package/dist/os/Controls/Mac.d.ts +8 -0
- package/dist/os/Controls/Windows.d.ts +3 -0
- package/dist/os/Controls/index.d.ts +3 -0
- package/dist/os/Controls/types.d.ts +12 -0
- package/dist/os/external.d.ts +2 -0
- package/dist/os/index.d.ts +1 -0
- package/dist/os/use.d.ts +2 -0
- package/dist/pluto/Pluto.d.ts +18 -0
- package/dist/pluto/aether/ pluto.d.ts +1 -0
- package/dist/pluto/aether/index.d.ts +1 -0
- package/dist/pluto/defaultWorker.d.ts +1 -0
- package/dist/pluto/index.d.ts +1 -0
- package/dist/ranger/SelectLabel.d.ts +6 -0
- package/dist/ranger/TimeRangeChip.d.ts +6 -0
- package/dist/ranger/TimeRangeChip.stories.d.ts +6 -0
- package/dist/ranger/external.d.ts +2 -0
- package/dist/ranger/index.d.ts +1 -0
- package/dist/resize/Core.d.ts +10 -0
- package/dist/resize/Multiple.d.ts +63 -0
- package/dist/resize/Single.d.ts +23 -0
- package/dist/resize/Single.spec.d.ts +1 -0
- package/dist/resize/Single.stories.d.ts +6 -0
- package/dist/resize/external.d.ts +3 -0
- package/dist/resize/index.d.ts +1 -0
- package/dist/select/Button.d.ts +18 -0
- package/dist/select/ClearButton.d.ts +3 -0
- package/dist/select/Direction.d.ts +11 -0
- package/dist/select/List.d.ts +7 -0
- package/dist/select/Multiple.d.ts +45 -0
- package/dist/select/Select.spec.d.ts +1 -0
- package/dist/select/Select.stories.d.ts +14 -0
- package/dist/select/Single.d.ts +37 -0
- package/dist/select/external.d.ts +4 -0
- package/dist/select/index.d.ts +1 -0
- package/dist/state/index.d.ts +1 -0
- package/dist/state/state.d.ts +27 -0
- package/dist/status/Aggregator.d.ts +27 -0
- package/dist/status/Circle.d.ts +6 -0
- package/dist/status/Text.d.ts +21 -0
- package/dist/status/aether/aggregator.d.ts +86 -0
- package/dist/status/aether/external.d.ts +2 -0
- package/dist/status/aether/index.d.ts +1 -0
- package/dist/status/aether/types.d.ts +26 -0
- package/dist/status/colors.d.ts +2 -0
- package/dist/status/external.d.ts +4 -0
- package/dist/status/index.d.ts +1 -0
- package/dist/style.css +3119 -0
- package/dist/synnax/Provider.d.ts +10 -0
- package/dist/synnax/aether/index.d.ts +1 -0
- package/dist/synnax/aether/provider.d.ts +225 -0
- package/dist/synnax/index.d.ts +1 -0
- package/dist/table-8MFXzE4C.js +13664 -0
- package/dist/table-8MFXzE4C.js.map +1 -0
- package/dist/table-VNkSG_Cj.cjs +13661 -0
- package/dist/table-VNkSG_Cj.cjs.map +1 -0
- package/dist/tabs/Selector.d.ts +23 -0
- package/dist/tabs/Tabs.d.ts +40 -0
- package/dist/tabs/Tabs.spec.d.ts +1 -0
- package/dist/tabs/Tabs.stories.d.ts +5 -0
- package/dist/tabs/external.d.ts +2 -0
- package/dist/tabs/index.d.ts +1 -0
- package/dist/tabs.cjs +15 -0
- package/dist/tabs.cjs.map +1 -0
- package/dist/tabs.js +15 -0
- package/dist/tabs.js.map +1 -0
- package/dist/tag/Tag.d.ts +12 -0
- package/dist/tag/Tag.spec.d.ts +1 -0
- package/dist/tag/Tag.stories.d.ts +5 -0
- package/dist/tag/index.d.ts +1 -0
- package/dist/telem/Pipeline.d.ts +2 -0
- package/dist/telem/Provider.d.ts +6 -0
- package/dist/telem/aether/context.d.ts +16 -0
- package/dist/telem/aether/convertSeries.d.ts +9 -0
- package/dist/telem/aether/external.d.ts +9 -0
- package/dist/telem/aether/factory.d.ts +14 -0
- package/dist/telem/aether/index.d.ts +1 -0
- package/dist/telem/aether/noop.d.ts +12 -0
- package/dist/telem/aether/pipeline.d.ts +263 -0
- package/dist/telem/aether/provider.d.ts +24 -0
- package/dist/telem/aether/remote.d.ts +154 -0
- package/dist/telem/aether/remote.spec.d.ts +1 -0
- package/dist/telem/aether/static.d.ts +98 -0
- package/dist/telem/aether/telem.d.ts +376 -0
- package/dist/telem/aether/telem.spec.d.ts +1 -0
- package/dist/telem/aether/transformers.d.ts +197 -0
- package/dist/telem/client/cache/cache.d.ts +14 -0
- package/dist/telem/client/cache/dynamic.d.ts +32 -0
- package/dist/telem/client/cache/dynamic.spec.d.ts +1 -0
- package/dist/telem/client/cache/external.d.ts +1 -0
- package/dist/telem/client/cache/index.d.ts +2 -0
- package/dist/telem/client/cache/static.d.ts +31 -0
- package/dist/telem/client/cache/static.spec.d.ts +1 -0
- package/dist/telem/client/client.d.ts +104 -0
- package/dist/telem/client/index.d.ts +1 -0
- package/dist/telem/control/Chip.d.ts +8 -0
- package/dist/telem/control/Controller.d.ts +15 -0
- package/dist/telem/control/Indicator.d.ts +8 -0
- package/dist/telem/control/Legend.d.ts +7 -0
- package/dist/telem/control/StateProvider.d.ts +8 -0
- package/dist/telem/control/aether/chip.d.ts +229 -0
- package/dist/telem/control/aether/controller.d.ts +166 -0
- package/dist/telem/control/aether/external.d.ts +6 -0
- package/dist/telem/control/aether/index.d.ts +1 -0
- package/dist/telem/control/aether/indicator.d.ts +248 -0
- package/dist/telem/control/aether/legend.d.ts +216 -0
- package/dist/telem/control/aether/registry.d.ts +2 -0
- package/dist/telem/control/aether/state.d.ts +113 -0
- package/dist/telem/control/external.d.ts +6 -0
- package/dist/telem/control/index.d.ts +1 -0
- package/dist/telem/index.d.ts +1 -0
- package/dist/testutil/dom.d.ts +2 -0
- package/dist/text/DateTime.d.ts +19 -0
- package/dist/text/Editable.d.ts +15 -0
- package/dist/text/Keyboard.d.ts +5 -0
- package/dist/text/Link.d.ts +17 -0
- package/dist/text/SelectLevel.d.ts +11 -0
- package/dist/text/Text.d.ts +12 -0
- package/dist/text/Text.spec.d.ts +1 -0
- package/dist/text/Text.stories.d.ts +8 -0
- package/dist/text/WithIcon.d.ts +13 -0
- package/dist/text/dimensions.d.ts +2 -0
- package/dist/text/external.d.ts +10 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/symbols.d.ts +5 -0
- package/dist/text/types.d.ts +24 -0
- package/dist/text.cjs +17 -0
- package/dist/text.cjs.map +1 -0
- package/dist/text.js +17 -0
- package/dist/text.js.map +1 -0
- package/dist/theming/aether/external.d.ts +3 -0
- package/dist/theming/aether/index.d.ts +2 -0
- package/dist/theming/aether/provider.d.ts +9808 -0
- package/dist/theming/context.d.ts +22 -0
- package/dist/theming/core/fontString.d.ts +4 -0
- package/dist/theming/core/theme.d.ts +3830 -0
- package/dist/theming/css.d.ts +2 -0
- package/dist/theming/external.d.ts +5 -0
- package/dist/theming/font.d.ts +8 -0
- package/dist/theming/index.d.ts +1 -0
- package/dist/theming/theming.spec.d.ts +1 -0
- package/dist/theming.cjs +16 -0
- package/dist/theming.cjs.map +1 -0
- package/dist/theming.js +16 -0
- package/dist/theming.js.map +1 -0
- package/dist/tooltip/Config.d.ts +29 -0
- package/dist/tooltip/Dialog.d.ts +36 -0
- package/dist/tooltip/Tooltip.stories.d.ts +5 -0
- package/dist/tooltip/external.d.ts +3 -0
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/wrap.d.ts +29 -0
- package/dist/tree/Tree.d.ts +73 -0
- package/dist/tree/Tree.stories.d.ts +5 -0
- package/dist/tree/index.d.ts +1 -0
- package/dist/tree.cjs +26 -0
- package/dist/tree.cjs.map +1 -0
- package/dist/tree.js +26 -0
- package/dist/tree.js.map +1 -0
- package/dist/triggers/Provider.d.ts +13 -0
- package/dist/triggers/Status.d.ts +5 -0
- package/dist/triggers/Text.d.ts +7 -0
- package/dist/triggers/Triggers.spec.d.ts +1 -0
- package/dist/triggers/Triggers.stories.d.ts +6 -0
- package/dist/triggers/external.d.ts +6 -0
- package/dist/triggers/hooks.d.ts +25 -0
- package/dist/triggers/index.d.ts +1 -0
- package/dist/triggers/triggers.d.ts +130 -0
- package/dist/triggers/useDrag.d.ts +17 -0
- package/dist/triggers.cjs +16 -0
- package/dist/triggers.cjs.map +1 -0
- package/dist/triggers.js +16 -0
- package/dist/triggers.js.map +1 -0
- package/dist/useDrag-KRQ7DTg1.cjs +48 -0
- package/dist/useDrag-KRQ7DTg1.cjs.map +1 -0
- package/dist/useDrag-rQt5hv4R.js +49 -0
- package/dist/useDrag-rQt5hv4R.js.map +1 -0
- package/dist/util/case.d.ts +1 -0
- package/dist/util/children.d.ts +3 -0
- package/dist/util/component.d.ts +5 -0
- package/dist/util/event.d.ts +6 -0
- package/dist/util/renderProp.d.ts +7 -0
- package/dist/util/zod.d.ts +2 -0
- package/dist/video/Video.d.ts +5 -0
- package/dist/video/Video.stories.d.ts +5 -0
- package/dist/video/index.d.ts +1 -0
- package/dist/video.cjs +10 -0
- package/dist/video.cjs.map +1 -0
- package/dist/video.js +10 -0
- package/dist/video.js.map +1 -0
- package/dist/viewport/Mask.d.ts +7 -0
- package/dist/viewport/SelectMode.d.ts +8 -0
- package/dist/viewport/Viewport.stories.d.ts +6 -0
- package/dist/viewport/external.d.ts +3 -0
- package/dist/viewport/index.d.ts +1 -0
- package/dist/viewport/use.d.ts +35 -0
- package/dist/vis/axis/axis.d.ts +97 -0
- package/dist/vis/axis/canvas.d.ts +18 -0
- package/dist/vis/axis/external.d.ts +3 -0
- package/dist/vis/axis/index.d.ts +1 -0
- package/dist/vis/axis/ticks.d.ts +33 -0
- package/dist/vis/button/aether/button.d.ts +94 -0
- package/dist/vis/button/aether/index.d.ts +1 -0
- package/dist/vis/button/index.d.ts +1 -0
- package/dist/vis/button/use.d.ts +9 -0
- package/dist/vis/canvas/Canvas.d.ts +11 -0
- package/dist/vis/canvas/aether/canvas.d.ts +230 -0
- package/dist/vis/canvas/aether/index.d.ts +1 -0
- package/dist/vis/canvas/index.d.ts +1 -0
- package/dist/vis/diagram/Diagram.d.ts +52 -0
- package/dist/vis/diagram/Diagram.stories.d.ts +5 -0
- package/dist/vis/diagram/aether/Diagram.d.ts +587 -0
- package/dist/vis/diagram/aether/index.d.ts +1 -0
- package/dist/vis/diagram/align.d.ts +3 -0
- package/dist/vis/diagram/align.spec.d.ts +1 -0
- package/dist/vis/diagram/edge/Edge.d.ts +14 -0
- package/dist/vis/diagram/edge/connector/connector.d.ts +59 -0
- package/dist/vis/diagram/edge/connector/connector.spec.d.ts +1 -0
- package/dist/vis/diagram/edge/connector/index.d.ts +1 -0
- package/dist/vis/diagram/edge/index.d.ts +1 -0
- package/dist/vis/diagram/external.d.ts +4 -0
- package/dist/vis/diagram/index.d.ts +1 -0
- package/dist/vis/diagram/types.d.ts +71 -0
- package/dist/vis/diagram/util.d.ts +21 -0
- package/dist/vis/draw2d/canvas.d.ts +106 -0
- package/dist/vis/draw2d/index.d.ts +60 -0
- package/dist/vis/eraser/aether/eraser.d.ts +194 -0
- package/dist/vis/eraser/aether/index.d.ts +1 -0
- package/dist/vis/eraser/index.d.ts +1 -0
- package/dist/vis/eraser/use.d.ts +11 -0
- package/dist/vis/legend/Container.d.ts +11 -0
- package/dist/vis/legend/Simple.d.ts +16 -0
- package/dist/vis/legend/external.d.ts +2 -0
- package/dist/vis/legend/index.d.ts +1 -0
- package/dist/vis/line/Line.d.ts +8 -0
- package/dist/vis/line/aether/index.d.ts +1 -0
- package/dist/vis/line/aether/line.d.ts +184 -0
- package/dist/vis/line/index.d.ts +1 -0
- package/dist/vis/lineplot/Axis.d.ts +17 -0
- package/dist/vis/lineplot/Legend.d.ts +7 -0
- package/dist/vis/lineplot/Line.d.ts +7 -0
- package/dist/vis/lineplot/LinePlot.d.ts +32 -0
- package/dist/vis/lineplot/LinePlot.stories.d.ts +5 -0
- package/dist/vis/lineplot/Title.d.ts +4 -0
- package/dist/vis/lineplot/Viewport.d.ts +6 -0
- package/dist/vis/lineplot/aether/LinePlot.d.ts +622 -0
- package/dist/vis/lineplot/aether/XAxis.d.ts +211 -0
- package/dist/vis/lineplot/aether/YAxis.d.ts +218 -0
- package/dist/vis/lineplot/aether/axis.d.ts +144 -0
- package/dist/vis/lineplot/aether/external.d.ts +3 -0
- package/dist/vis/lineplot/aether/grid.d.ts +22 -0
- package/dist/vis/lineplot/aether/index.d.ts +2 -0
- package/dist/vis/lineplot/external.d.ts +6 -0
- package/dist/vis/lineplot/index.d.ts +1 -0
- package/dist/vis/lineplot/tooltip/Tooltip.d.ts +8 -0
- package/dist/vis/lineplot/tooltip/aether/index.d.ts +1 -0
- package/dist/vis/lineplot/tooltip/aether/tooltip.d.ts +185 -0
- package/dist/vis/lineplot/tooltip/index.d.ts +1 -0
- package/dist/vis/measure/Measure.d.ts +6 -0
- package/dist/vis/measure/aether/index.d.ts +1 -0
- package/dist/vis/measure/aether/measure.d.ts +307 -0
- package/dist/vis/measure/index.d.ts +1 -0
- package/dist/vis/pid/Forms.d.ts +32 -0
- package/dist/vis/pid/Labeled.d.ts +15 -0
- package/dist/vis/pid/SelectOrientation.d.ts +15 -0
- package/dist/vis/pid/SelectOrientation.stories.d.ts +5 -0
- package/dist/vis/pid/Symbols.d.ts +205 -0
- package/dist/vis/pid/index.d.ts +1 -0
- package/dist/vis/pid/primitives/Primitives.d.ts +98 -0
- package/dist/vis/pid/primitives/Primitives.stories.d.ts +5 -0
- package/dist/vis/pid/primitives/index.d.ts +1 -0
- package/dist/vis/pid/registry.d.ts +17 -0
- package/dist/vis/render/GLProgram.d.ts +44 -0
- package/dist/vis/render/clear/index.d.ts +1 -0
- package/dist/vis/render/clear/program.d.ts +14 -0
- package/dist/vis/render/context.d.ts +61 -0
- package/dist/vis/render/controller.d.ts +14 -0
- package/dist/vis/render/eraser.d.ts +19 -0
- package/dist/vis/render/external.d.ts +5 -0
- package/dist/vis/render/index.d.ts +1 -0
- package/dist/vis/render/loop.d.ts +73 -0
- package/dist/vis/rule/Rule.d.ts +12 -0
- package/dist/vis/rule/aether/aether.d.ts +121 -0
- package/dist/vis/rule/aether/index.d.ts +1 -0
- package/dist/vis/rule/index.d.ts +1 -0
- package/dist/vis/table/Table.d.ts +25 -0
- package/dist/vis/table/Table.stories.d.ts +5 -0
- package/dist/vis/table/aether/index.d.ts +1 -0
- package/dist/vis/table/aether/table.d.ts +353 -0
- package/dist/vis/table/cell/Label.d.ts +7 -0
- package/dist/vis/table/cell/element.d.ts +18 -0
- package/dist/vis/table/cell/external.d.ts +3 -0
- package/dist/vis/table/cell/index.d.ts +1 -0
- package/dist/vis/table/cell/registry.d.ts +2 -0
- package/dist/vis/table/cell/value.d.ts +9 -0
- package/dist/vis/table/external.d.ts +2 -0
- package/dist/vis/table/index.d.ts +1 -0
- package/dist/vis/table/use.d.ts +101 -0
- package/dist/vis/toggle/aether/index.d.ts +1 -0
- package/dist/vis/toggle/aether/toggle.d.ts +170 -0
- package/dist/vis/toggle/index.d.ts +1 -0
- package/dist/vis/toggle/use.d.ts +9 -0
- package/dist/vis/value/aether/index.d.ts +1 -0
- package/dist/vis/value/aether/value.d.ts +462 -0
- package/dist/vis/value/external.d.ts +1 -0
- package/dist/vis/value/index.d.ts +1 -0
- package/dist/vis/value/use.d.ts +151 -0
- package/dist/worker/Context.d.ts +15 -0
- package/dist/worker/index.d.ts +1 -0
- package/package.json +181 -0
package/dist/aether.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { R as RoutedWorker } from "./css-NTD4Xm8x.js";
|
|
2
|
+
import { c } from "./css-NTD4Xm8x.js";
|
|
3
|
+
import { P as Provider, R as REGISTRY, s as synnaxDark, a as synnaxLight, t as themeZ, b as themes, u as use, e as REGISTRY$d, r as render$1 } from "./component-k78Jq9I7.js";
|
|
4
|
+
import { f } from "./component-k78Jq9I7.js";
|
|
5
|
+
import { aq as Context$1, ar as Controller, as as Eraser$1, at as GLProgram, au as Loop, av as REASON_DATA, aw as REASON_LAYOUT, ax as REASON_TOOL, ay as LinePlot, az as REGISTRY$1, aA as XAxis, aB as YAxis, aC as linePlotStateZ, aD as xAxisStateZ, aE as yAxisStateZ, aF as REGISTRY$2, aG as REGISTRY$3, R as REGISTRY$4, aH as REGISTRY$5, aI as REGISTRY$6, aJ as REGISTRY$7, aK as REGISTRY$8, aL as REGISTRY$9, aM as REGISTRY$a, aN as REGISTRY$b, aO as REGISTRY$c, aP as REGISTRY$e, aQ as REGISTRY$f, aR as REGISTRY$g, aS as REGISTRY$h } from "./table-8MFXzE4C.js";
|
|
6
|
+
import { aZ, aV, aU, aW, aT, aX, aY } from "./table-8MFXzE4C.js";
|
|
7
|
+
import { f as fontString } from "./fontString-RKvYIr5H.js";
|
|
8
|
+
import { e } from "./external-2Aicsb3l.js";
|
|
9
|
+
import "zod";
|
|
10
|
+
import "react";
|
|
11
|
+
import "react-dom";
|
|
12
|
+
import "./dimensions-guJ5PHmb.js";
|
|
13
|
+
const external$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14
|
+
__proto__: null,
|
|
15
|
+
Provider,
|
|
16
|
+
REGISTRY,
|
|
17
|
+
fontString,
|
|
18
|
+
synnaxDark,
|
|
19
|
+
synnaxLight,
|
|
20
|
+
themeZ,
|
|
21
|
+
themes,
|
|
22
|
+
use
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
24
|
+
const external$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
Context: Context$1,
|
|
27
|
+
Controller,
|
|
28
|
+
Eraser: Eraser$1,
|
|
29
|
+
GLProgram,
|
|
30
|
+
Loop,
|
|
31
|
+
REASON_DATA,
|
|
32
|
+
REASON_LAYOUT,
|
|
33
|
+
REASON_TOOL
|
|
34
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
35
|
+
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
36
|
+
__proto__: null,
|
|
37
|
+
LinePlot,
|
|
38
|
+
REGISTRY: REGISTRY$1,
|
|
39
|
+
XAxis,
|
|
40
|
+
YAxis,
|
|
41
|
+
linePlotStateZ,
|
|
42
|
+
xAxisStateZ,
|
|
43
|
+
yAxisStateZ
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
45
|
+
const render = () => {
|
|
46
|
+
const w = new RoutedWorker((data, transfer) => postMessage(data, transfer));
|
|
47
|
+
onmessage = w.handle.bind(w);
|
|
48
|
+
const REGISTRY$i = {
|
|
49
|
+
...REGISTRY$1,
|
|
50
|
+
...REGISTRY$2,
|
|
51
|
+
...REGISTRY$3,
|
|
52
|
+
...REGISTRY$4,
|
|
53
|
+
...REGISTRY$5,
|
|
54
|
+
...REGISTRY$6,
|
|
55
|
+
...REGISTRY$7,
|
|
56
|
+
...REGISTRY$8,
|
|
57
|
+
...REGISTRY$9,
|
|
58
|
+
...REGISTRY$a,
|
|
59
|
+
...REGISTRY$b,
|
|
60
|
+
...REGISTRY$c,
|
|
61
|
+
...REGISTRY,
|
|
62
|
+
...REGISTRY$d,
|
|
63
|
+
...REGISTRY$e,
|
|
64
|
+
...REGISTRY$f,
|
|
65
|
+
...REGISTRY$g,
|
|
66
|
+
...REGISTRY$h
|
|
67
|
+
};
|
|
68
|
+
render$1({
|
|
69
|
+
worker: w.route("vis"),
|
|
70
|
+
registry: REGISTRY$i
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
const _pluto = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
74
|
+
__proto__: null,
|
|
75
|
+
render
|
|
76
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
77
|
+
export {
|
|
78
|
+
f as aether,
|
|
79
|
+
aZ as canvas,
|
|
80
|
+
c as color,
|
|
81
|
+
aV as diagram,
|
|
82
|
+
external as lineplot,
|
|
83
|
+
aU as measure,
|
|
84
|
+
_pluto as pluto,
|
|
85
|
+
external$1 as render,
|
|
86
|
+
aW as rule,
|
|
87
|
+
aT as synnax,
|
|
88
|
+
e as telem,
|
|
89
|
+
external$2 as theming,
|
|
90
|
+
aX as tooltip,
|
|
91
|
+
aY as value
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=aether.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aether.js","sources":["../src/pluto/aether/ pluto.ts"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { RoutedWorker } from \"@synnaxlabs/x\";\n\nimport { aether } from \"@/aether/aether\";\nimport { alamos } from \"@/alamos/aether\";\nimport { status } from \"@/status/aether\";\nimport { synnax } from \"@/synnax/aether\";\nimport { telem } from \"@/telem/aether\";\nimport { control } from \"@/telem/control/aether\";\nimport { theming } from \"@/theming/aether\";\nimport { button } from \"@/vis/button/aether\";\nimport { canvas } from \"@/vis/canvas/aether\";\nimport { diagram } from \"@/vis/diagram/aether\";\nimport { eraser } from \"@/vis/eraser/aether\";\nimport { line } from \"@/vis/line/aether\";\nimport { lineplot } from \"@/vis/lineplot/aether\";\nimport { tooltip } from \"@/vis/lineplot/tooltip/aether\";\nimport { measure } from \"@/vis/measure/aether\";\nimport { rule } from \"@/vis/rule/aether\";\nimport { table } from \"@/vis/table/aether\";\nimport { toggle } from \"@/vis/toggle/aether\";\nimport { value } from \"@/vis/value/aether\";\n\nexport const render = (): void => {\n // @ts-expect-error - for some reason post-message can't type transfer correctly\n const w = new RoutedWorker((data, transfer) => postMessage(data, transfer));\n onmessage = w.handle.bind(w);\n\n const REGISTRY: aether.ComponentRegistry = {\n ...lineplot.REGISTRY,\n ...canvas.REGISTRY,\n ...synnax.REGISTRY,\n ...telem.REGISTRY,\n ...line.REGISTRY,\n ...value.REGISTRY,\n ...toggle.REGISTRY,\n ...diagram.REGISTRY,\n ...rule.REGISTRY,\n ...tooltip.REGISTRY,\n ...measure.REGISTRY,\n ...control.REGISTRY,\n ...theming.REGISTRY,\n ...status.REGISTRY,\n ...button.REGISTRY,\n ...alamos.REGISTRY,\n ...eraser.REGISTRY,\n ...table.REGISTRY,\n };\n\n aether.render({\n worker: w.route(\"vis\"),\n registry: REGISTRY,\n });\n};\n"],"names":["REGISTRY","lineplot.REGISTRY","canvas.REGISTRY","synnax.REGISTRY","telem.REGISTRY","line.REGISTRY","value.REGISTRY","toggle.REGISTRY","diagram.REGISTRY","rule.REGISTRY","tooltip.REGISTRY","measure.REGISTRY","control.REGISTRY","theming.REGISTRY","status.REGISTRY","button.REGISTRY","alamos.REGISTRY","eraser.REGISTRY","table.REGISTRY","aether.render"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BO,MAAM,SAAS,MAAY;AAE1B,QAAA,IAAI,IAAI,aAAa,CAAC,MAAM,aAAa,YAAY,MAAM,QAAQ,CAAC;AAC9D,cAAA,EAAE,OAAO,KAAK,CAAC;AAE3B,QAAMA,aAAqC;AAAA,IACzC,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,IACH,GAAGC;AAAAA,EAAM;AAGXC,WAAc;AAAA,IACZ,QAAQ,EAAE,MAAM,KAAK;AAAA,IACrB,UAAUnB;AAAAA,EAAA,CACX;AACH;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { pluto } from './pluto/aether';
|
|
2
|
+
export { aether } from './aether/aether';
|
|
3
|
+
export { color } from './color/core';
|
|
4
|
+
export { synnax } from './synnax/aether';
|
|
5
|
+
export { theming } from './theming/aether';
|
|
6
|
+
export { measure } from './vis/measure/aether';
|
|
7
|
+
export { diagram } from './vis/diagram/aether';
|
|
8
|
+
export { telem } from './telem/aether';
|
|
9
|
+
export { rule } from './vis/rule/aether';
|
|
10
|
+
export { tooltip } from './vis/lineplot/tooltip/aether';
|
|
11
|
+
export { render } from './vis/render';
|
|
12
|
+
export { value } from './vis/value/aether';
|
|
13
|
+
export { lineplot } from './vis/lineplot/aether';
|
|
14
|
+
export { canvas } from './vis/canvas/aether';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type PropsWithChildren } from "react";
|
|
2
|
+
import { Instrumentation } from "@synnaxlabs/alamos";
|
|
3
|
+
import { alamos } from '../alamos/aether';
|
|
4
|
+
export interface ContextValue {
|
|
5
|
+
instrumentation: Instrumentation;
|
|
6
|
+
}
|
|
7
|
+
export interface ProviderProps extends PropsWithChildren, alamos.ProviderState {
|
|
8
|
+
}
|
|
9
|
+
export declare const useInstrumentation: () => Instrumentation;
|
|
10
|
+
export declare const Provider: import("react").FC<ProviderProps & {
|
|
11
|
+
aetherKey?: string | undefined;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { alamos } from "@synnaxlabs/alamos";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { aether } from '../../aether/aether';
|
|
4
|
+
export declare const providerStateZ: z.ZodObject<{
|
|
5
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["debug", "info", "warn", "error"]>>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
level: "error" | "info" | "debug" | "warn";
|
|
10
|
+
include?: string[] | undefined;
|
|
11
|
+
exclude?: string[] | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
include?: string[] | undefined;
|
|
14
|
+
exclude?: string[] | undefined;
|
|
15
|
+
level?: "error" | "info" | "debug" | "warn" | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export type ProviderState = z.input<typeof providerStateZ>;
|
|
18
|
+
export interface InternalState {
|
|
19
|
+
ins: alamos.Instrumentation;
|
|
20
|
+
}
|
|
21
|
+
export declare class Provider extends aether.Composite<typeof providerStateZ, InternalState> {
|
|
22
|
+
static readonly TYPE = "AlamosProvider";
|
|
23
|
+
schema: z.ZodObject<{
|
|
24
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
+
level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["debug", "info", "warn", "error"]>>>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
level: "error" | "info" | "debug" | "warn";
|
|
29
|
+
include?: string[] | undefined;
|
|
30
|
+
exclude?: string[] | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
include?: string[] | undefined;
|
|
33
|
+
exclude?: string[] | undefined;
|
|
34
|
+
level?: "error" | "info" | "debug" | "warn" | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
afterUpdate(): void;
|
|
37
|
+
}
|
|
38
|
+
export declare const useInstrumentation: (ctx: aether.Context, name?: string) => alamos.Instrumentation;
|
|
39
|
+
export declare const REGISTRY: aether.ComponentRegistry;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as alamos from '../../alamos/aether/alamos';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Alamos from '../alamos/Provider';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ForwardedRef, type ReactElement } from "react";
|
|
2
|
+
import { type SpaceElementType, type SpaceProps } from '../align/Space';
|
|
3
|
+
export declare const CoreCenter: <E extends SpaceElementType = "div">({ className, justify, align, ...props }: SpaceProps<E>, ref: ForwardedRef<JSX.IntrinsicElements[E]>) => ReactElement;
|
|
4
|
+
/**
|
|
5
|
+
* An element whose width and height is 100% and whose alignment and justification
|
|
6
|
+
* is centered. Props are the same as {@link Space}.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Center: <E extends SpaceElementType = "div">(props: SpaceProps<E>) => ReactElement;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type SpaceElementType, type SpaceProps } from '../align/Space';
|
|
3
|
+
/** Props for the {@link Pack} component. */
|
|
4
|
+
export type PackProps<E extends SpaceElementType = "div"> = Omit<SpaceProps<E>, "empty"> & {
|
|
5
|
+
shadow?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Packs elements together, setting their size and styling the borders between them so
|
|
9
|
+
* that they appear as a single element. This is useful for buttons that represent a
|
|
10
|
+
* selection state, for example.
|
|
11
|
+
*
|
|
12
|
+
* @param props - The props for the pack. Any extra props will be passed to the
|
|
13
|
+
* underlying Space component.
|
|
14
|
+
* @param props.children - The children to pack together. These must satisfy the
|
|
15
|
+
* {@link PackChildProps} interface.
|
|
16
|
+
* @param props.direction - The direction to pack the children in. Defaults to
|
|
17
|
+
* "x".
|
|
18
|
+
* @param props.size - The size to set on the children. Any sizes already set on the
|
|
19
|
+
* children will be overridden. Defaults to "medium".
|
|
20
|
+
* @param props.el - The element type to use as the root element for the Pack.
|
|
21
|
+
* Defaults to "div".
|
|
22
|
+
*/
|
|
23
|
+
export declare const Pack: <E extends SpaceElementType = "div">(props: PackProps<E>) => ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from "@storybook/react";
|
|
2
|
+
import { Align } from '../align';
|
|
3
|
+
declare const story: Meta<typeof Align.Pack>;
|
|
4
|
+
export declare const Horizontal: StoryFn<typeof Align.Pack>;
|
|
5
|
+
export declare const Vertical: StoryFn<typeof Align.Pack>;
|
|
6
|
+
export declare const Nested: StoryFn<typeof Align.Pack>;
|
|
7
|
+
export declare const NestedX: StoryFn<typeof Align.Pack>;
|
|
8
|
+
export default story;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { direction } from "@synnaxlabs/x";
|
|
3
|
+
import { Generic } from '../generic';
|
|
4
|
+
import { type ComponentSize } from '../util/component';
|
|
5
|
+
/** All possible alignments for the cross axis of a space */
|
|
6
|
+
export declare const ALIGNMENTS: readonly ["start", "center", "end", "stretch"];
|
|
7
|
+
/** The alignments for the cross axis of a space */
|
|
8
|
+
export type Alignment = (typeof ALIGNMENTS)[number];
|
|
9
|
+
/** All possible justifications for the main axis of a space */
|
|
10
|
+
export declare const JUSTIFICATIONS: readonly ["start", "center", "end", "spaceBetween", "spaceAround", "spaceEvenly"];
|
|
11
|
+
/** The justification for the main axis of a space */
|
|
12
|
+
export type Justification = (typeof JUSTIFICATIONS)[number];
|
|
13
|
+
export type SpaceElementType = "div" | "header" | "nav" | "section" | "article" | "aside" | "footer" | "button" | "dialog" | "a";
|
|
14
|
+
export interface SpaceExtensionProps {
|
|
15
|
+
empty?: boolean;
|
|
16
|
+
size?: ComponentSize | number;
|
|
17
|
+
direction?: direction.Crude;
|
|
18
|
+
reverse?: boolean;
|
|
19
|
+
justify?: Justification;
|
|
20
|
+
align?: Alignment;
|
|
21
|
+
grow?: boolean | number;
|
|
22
|
+
shrink?: boolean | number;
|
|
23
|
+
wrap?: boolean;
|
|
24
|
+
el?: SpaceElementType;
|
|
25
|
+
bordered?: boolean;
|
|
26
|
+
rounded?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type SpaceProps<E extends SpaceElementType = "div"> = Omit<Generic.ElementProps<E>, "el"> & SpaceExtensionProps;
|
|
29
|
+
export declare const shouldReverse: (direction: "bottom" | "left" | "right" | "top" | "x" | "y" | "center", reverse?: boolean) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* A component that orients its children in a row or column and adds
|
|
32
|
+
* space between them. This is essentially a thin wrapped around a
|
|
33
|
+
* flex component that makes it more 'reacty' to use.
|
|
34
|
+
*
|
|
35
|
+
* @param props - The props for the component. All unlisted props will be passed
|
|
36
|
+
* to the underlying root element.
|
|
37
|
+
* @param props.align - The off axis alignment of the children. The 'off' axis is the
|
|
38
|
+
* opposite direction of props.direction. For example, if direction is 'x', then the
|
|
39
|
+
* off axis is 'y'. See the {@link Alignment} for available options.
|
|
40
|
+
* @param props.justify - The main axis justification of the children. The 'main' axis
|
|
41
|
+
* is the same direction as props.direction. For example, if direction is 'x', then the
|
|
42
|
+
* main axis is 'x'. See the {@link Justification} for available options.
|
|
43
|
+
* @param props.grow - A boolean or number value that determines if the space should
|
|
44
|
+
* grow in the flex-box sense. A value of true will set css flex-grow to 1. A value of
|
|
45
|
+
* false will leave the css flex-grow unset. A number value will set the css flex-grow
|
|
46
|
+
* to that number.
|
|
47
|
+
* @param props.size - A string or number value that determines the amount of spacing
|
|
48
|
+
* between items. If set to "small", "medium", or "large", the spacing will be determined
|
|
49
|
+
* by the theme. If set to a number, the spacing will be that number of rem.
|
|
50
|
+
* @param props.wrap - A boolean value that determines if the space should wrap its
|
|
51
|
+
* children.
|
|
52
|
+
* @param props.el - The element type to render as. Defaults to 'div'.
|
|
53
|
+
*/
|
|
54
|
+
export declare const Space: <E extends SpaceElementType = "div">(props: SpaceProps<E>) => ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Align from '../align/external';
|
package/dist/align.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const external = require("./external-OSLzuRs1.cjs");
|
|
4
|
+
require("./Center-ZAcURh-3.cjs");
|
|
5
|
+
require("./jsx-runtime-N1ikfypN.cjs");
|
|
6
|
+
require("react");
|
|
7
|
+
require("./css-V3VUT_Js.cjs");
|
|
8
|
+
require("zod");
|
|
9
|
+
exports.Align = external.external;
|
|
10
|
+
//# sourceMappingURL=align.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"align.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
package/dist/align.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"align.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactElement } from "react";
|
|
2
|
+
import { type Optional } from "@synnaxlabs/x";
|
|
3
|
+
import { type Align } from '../align';
|
|
4
|
+
import { type SpaceElementType } from '../align/Space';
|
|
5
|
+
import { Text } from '../text';
|
|
6
|
+
import { Tooltip } from '../tooltip';
|
|
7
|
+
import { type ComponentSize } from '../util/component';
|
|
8
|
+
/** The variant of button */
|
|
9
|
+
export type Variant = "filled" | "outlined" | "text";
|
|
10
|
+
export interface ButtonExtensionProps {
|
|
11
|
+
variant?: Variant;
|
|
12
|
+
size?: ComponentSize;
|
|
13
|
+
sharp?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** The base props accepted by all button types in this directory. */
|
|
17
|
+
export interface BaseProps extends ComponentPropsWithoutRef<"button">, ButtonExtensionProps {
|
|
18
|
+
}
|
|
19
|
+
/** The props for the {@link Button} component. */
|
|
20
|
+
export type ButtonProps<E extends SpaceElementType = "button"> = Optional<Omit<Text.WithIconProps<E>, "size" | "startIcon" | "endIcon">, "level"> & ButtonExtensionProps & {
|
|
21
|
+
startIcon?: ReactElement | ReactElement[];
|
|
22
|
+
endIcon?: ReactElement | ReactElement[];
|
|
23
|
+
iconSpacing?: Align.SpaceProps["size"];
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Use is a basic button component.
|
|
28
|
+
*
|
|
29
|
+
* @param props - Props for the component, which are passed down to the underlying button
|
|
30
|
+
* element.
|
|
31
|
+
* @param props.size - The size of button render.
|
|
32
|
+
* @param props.variant - The variant to render for the button. Options are "filled"
|
|
33
|
+
* (default), "outlined", and "text".
|
|
34
|
+
* @param props.startIcon - An optional icon to render before the start of the button
|
|
35
|
+
* text. This can be a single icon or an array of icons. The icons will be formatted
|
|
36
|
+
* to match the color and size of the button.
|
|
37
|
+
* @param props.endIcon - The same as {@link startIcon}, but renders after the button
|
|
38
|
+
* text.
|
|
39
|
+
*/
|
|
40
|
+
export declare const Core: import("react").ForwardRefExoticComponent<Omit<Pick<Partial<Omit<Text.WithIconProps<Align.SpaceElementType, "h1">, "size" | "startIcon" | "endIcon">>, "level"> & Omit<Omit<Text.WithIconProps<Align.SpaceElementType, "h1">, "size" | "startIcon" | "endIcon">, "level"> & ButtonExtensionProps & {
|
|
41
|
+
startIcon?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | undefined;
|
|
42
|
+
endIcon?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | undefined;
|
|
43
|
+
iconSpacing?: Align.SpaceProps["size"];
|
|
44
|
+
disabled?: boolean | undefined;
|
|
45
|
+
} & Tooltip.WrapProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
46
|
+
export declare const Button: <E extends Align.SpaceElementType = "button">(props: ButtonProps<E>) => ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type { Meta, StoryFn } from "@storybook/react";
|
|
3
|
+
import { Button } from '../button';
|
|
4
|
+
declare const story: Meta<typeof Button.Button>;
|
|
5
|
+
export declare const Primary: StoryFn<typeof Button.Button>;
|
|
6
|
+
export declare const Outlined: () => ReactElement;
|
|
7
|
+
export declare const Toggle: () => ReactElement;
|
|
8
|
+
export declare const IconOnly: () => ReactElement;
|
|
9
|
+
export default story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type { BaseProps } from '../button/Button';
|
|
3
|
+
import { Tooltip } from '../tooltip';
|
|
4
|
+
/** The props for the {@link Icon} */
|
|
5
|
+
export interface IconProps extends BaseProps {
|
|
6
|
+
children: ReactElement;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Use.Icon a button that only renders an icon without any text.
|
|
11
|
+
*
|
|
12
|
+
* @param props - Props for the component, which are passed down to the underlying
|
|
13
|
+
* element.
|
|
14
|
+
* @param props.size - The size of button to render.
|
|
15
|
+
* @param props.variant - The variant of button to render. Options are "filled" (default),
|
|
16
|
+
* "outlined", and "text".
|
|
17
|
+
* @param props.children - A ReactElement representing the icon to render.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Icon: import("react").ForwardRefExoticComponent<Omit<IconProps & import("react").RefAttributes<HTMLButtonElement> & Tooltip.WrapProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type ButtonProps } from '../button/Button';
|
|
3
|
+
import { type Text } from '../text';
|
|
4
|
+
/** Props for the {@link Link} component. */
|
|
5
|
+
export interface LinkProps<L extends Text.Level = "h1"> extends ButtonProps, Pick<Text.LinkProps<L>, "href" | "target"> {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Use.Link renders a button that looks like a link and redirects to the given href
|
|
9
|
+
* when clicked.
|
|
10
|
+
*
|
|
11
|
+
* @param props - Props for the component. Identical to the props for the Use component,
|
|
12
|
+
* excluding 'variant', and adding the following:
|
|
13
|
+
* @param props.href - The URL to redirect to when the button is clicked.
|
|
14
|
+
* @param props.target - The target of the link. Defaults to "_self".
|
|
15
|
+
*/
|
|
16
|
+
export declare const Link: <L extends "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p" = "h1">({ href, target, ...props }: LinkProps<L>) => ReactElement;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type FunctionComponent } from "react";
|
|
2
|
+
import { type ButtonProps } from '../button/Button';
|
|
3
|
+
import { type Input } from '../input';
|
|
4
|
+
export interface ToggleExtensionProps extends Input.Control<boolean> {
|
|
5
|
+
checkedVariant?: ButtonProps["variant"];
|
|
6
|
+
uncheckedVariant?: ButtonProps["variant"];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Use.Toggle renders a button that can be toggled on and off. It implements the
|
|
10
|
+
* InputControlProps interface, so it can be used as an input control in a form.
|
|
11
|
+
*
|
|
12
|
+
* @param props - Props for the component. Identical to the props for the Use
|
|
13
|
+
* component, excluding 'variant', and adding the following:
|
|
14
|
+
* @param props.value - The boolean value of the button. If true, the button will be
|
|
15
|
+
* rendered as "filled". If false, it will be rendered as "outlined".
|
|
16
|
+
* @param props.onChange - A callback function that will be called when the button is
|
|
17
|
+
* toggled. The callback will be passed the new value of the button.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Toggle: FunctionComponent<Omit<ButtonProps<import("../align/Space").SpaceElementType>, "value" | "onChange"> & ToggleExtensionProps>;
|
|
20
|
+
export type ToggleProps = Omit<Parameters<typeof Toggle>[0], "value" | "onChange"> & ToggleExtensionProps;
|
|
21
|
+
/**
|
|
22
|
+
* Use.IconToggle renders a button that can be toggled on and off, and only
|
|
23
|
+
* renders an icon. It implements the InputControlProps interface, so it can be used
|
|
24
|
+
* as an input control in a form.
|
|
25
|
+
*
|
|
26
|
+
* @param props - Props for the component. Identical to the props for the Use.Icon
|
|
27
|
+
* component, excluding 'variant', and adding the following:
|
|
28
|
+
* @param props.value - The boolean value of the button. If true, the button will be
|
|
29
|
+
* rendered as "filled". If false, it will be rendered as "outlined".
|
|
30
|
+
* @param props.onChange - A callback function that will be called when the button is
|
|
31
|
+
* toggled. The callback will be passed the new value of the button.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ToggleIcon: FunctionComponent<Omit<Omit<import('../button/Icon').IconProps & import("react").RefAttributes<HTMLButtonElement> & import("../tooltip/wrap").WrapProps, "ref"> & import("react").RefAttributes<HTMLElement>, "value" | "onChange"> & ToggleExtensionProps>;
|
|
34
|
+
export type ToggleIconProps = Omit<Parameters<typeof ToggleIcon>[0], "value" | "onChange"> & ToggleExtensionProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Button from '../button/external';
|
package/dist/button.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const external = require("./external-oZe6tF4A.cjs");
|
|
4
|
+
require("./Toggle-eOKYw1OT.cjs");
|
|
5
|
+
require("./jsx-runtime-N1ikfypN.cjs");
|
|
6
|
+
require("react");
|
|
7
|
+
require("./css-V3VUT_Js.cjs");
|
|
8
|
+
require("zod");
|
|
9
|
+
require("./component-joFaJiQW.cjs");
|
|
10
|
+
require("react-dom");
|
|
11
|
+
require("./Center-ZAcURh-3.cjs");
|
|
12
|
+
require("react-hook-form");
|
|
13
|
+
require("./Link-xlTZan29.cjs");
|
|
14
|
+
exports.Button = external.external;
|
|
15
|
+
//# sourceMappingURL=button.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/button.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { e } from "./external-9pS8-DvV.js";
|
|
2
|
+
import "./Toggle-kLunfJtR.js";
|
|
3
|
+
import "./jsx-runtime-rX5tAIG2.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./css-NTD4Xm8x.js";
|
|
6
|
+
import "zod";
|
|
7
|
+
import "./component-k78Jq9I7.js";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "./Center-gEKkAkdh.js";
|
|
10
|
+
import "react-hook-form";
|
|
11
|
+
import "./Link-laNlv47N.js";
|
|
12
|
+
export {
|
|
13
|
+
e as Button
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type PropsWithChildren, type ReactElement } from "react";
|
|
2
|
+
import { type channel } from "@synnaxlabs/client";
|
|
3
|
+
import { Input } from '../input';
|
|
4
|
+
interface AliasContextValue {
|
|
5
|
+
aliases: Record<channel.Key, string>;
|
|
6
|
+
getName: (key: channel.Key) => Promise<string | undefined>;
|
|
7
|
+
setAlias: ((key: channel.Key, alias: string) => Promise<void>) | null;
|
|
8
|
+
activeRange?: string | null;
|
|
9
|
+
}
|
|
10
|
+
export declare const useContext: () => AliasContextValue;
|
|
11
|
+
export interface AliasProviderProps extends PropsWithChildren {
|
|
12
|
+
activeRange?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export declare const useAlias: (key: channel.Key) => string | null;
|
|
15
|
+
export declare const useAliases: () => Record<channel.Key, string>;
|
|
16
|
+
export declare const useName: (key: channel.Key, def?: string) => string;
|
|
17
|
+
export declare const useActiveRange: () => string | undefined;
|
|
18
|
+
export declare const AliasProvider: ({ activeRange, children, }: AliasProviderProps) => ReactElement;
|
|
19
|
+
export interface AliasInputProps extends Input.TextProps {
|
|
20
|
+
channelKey: channel.Key;
|
|
21
|
+
shadow?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const AliasInput: ({ channelKey, value, shadow, className, ...props }: AliasInputProps) => ReactElement;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type { Meta } from "@storybook/react";
|
|
3
|
+
import { SelectMultiple } from "./Select";
|
|
4
|
+
declare const story: Meta<typeof SelectMultiple>;
|
|
5
|
+
export declare const Multiple: () => ReactElement;
|
|
6
|
+
export declare const Default: () => ReactElement;
|
|
7
|
+
export default story;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type channel } from "@synnaxlabs/client";
|
|
3
|
+
import { type TimeRange, type TimeSpan } from "@synnaxlabs/x";
|
|
4
|
+
import { type Color } from '../color';
|
|
5
|
+
import { type Text } from '../text';
|
|
6
|
+
import { type Viewport } from '../viewport';
|
|
7
|
+
import { LinePlot as Core } from '../vis/lineplot';
|
|
8
|
+
/** Props for an axis in {@link LinePlot} */
|
|
9
|
+
export interface AxisProps extends Core.AxisProps {
|
|
10
|
+
/** A unique identifier for the axis */
|
|
11
|
+
key: string;
|
|
12
|
+
}
|
|
13
|
+
export interface BaseLineProps {
|
|
14
|
+
key: string;
|
|
15
|
+
axes: {
|
|
16
|
+
x: string;
|
|
17
|
+
y: string;
|
|
18
|
+
};
|
|
19
|
+
channels: {
|
|
20
|
+
y: number;
|
|
21
|
+
x?: number;
|
|
22
|
+
};
|
|
23
|
+
color: Color.Crude;
|
|
24
|
+
strokeWidth?: number;
|
|
25
|
+
label?: string;
|
|
26
|
+
downsample?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface StaticLineProps extends BaseLineProps {
|
|
29
|
+
variant: "static";
|
|
30
|
+
timeRange: TimeRange;
|
|
31
|
+
}
|
|
32
|
+
export interface DynamicLineProps extends BaseLineProps {
|
|
33
|
+
variant: "dynamic";
|
|
34
|
+
timeSpan: TimeSpan;
|
|
35
|
+
}
|
|
36
|
+
export type LineProps = StaticLineProps | DynamicLineProps;
|
|
37
|
+
export interface RuleProps {
|
|
38
|
+
key: string;
|
|
39
|
+
position: number;
|
|
40
|
+
color: Color.Crude;
|
|
41
|
+
axis: string;
|
|
42
|
+
label: string;
|
|
43
|
+
lineWidth?: number;
|
|
44
|
+
lineDash?: number;
|
|
45
|
+
units?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface LinePlotProps extends Core.LinePlotProps {
|
|
48
|
+
axes: AxisProps[];
|
|
49
|
+
onAxisChannelDrop?: (axis: string, channels: channel.Key[]) => void;
|
|
50
|
+
onAxisChange?: (axis: Partial<AxisProps> & {
|
|
51
|
+
key: string;
|
|
52
|
+
}) => void;
|
|
53
|
+
lines: LineProps[];
|
|
54
|
+
onLineChange?: (line: Partial<LineProps> & {
|
|
55
|
+
key: string;
|
|
56
|
+
}) => void;
|
|
57
|
+
rules?: RuleProps[];
|
|
58
|
+
onRuleChange?: (rule: Partial<RuleProps> & {
|
|
59
|
+
key: string;
|
|
60
|
+
}) => void;
|
|
61
|
+
title?: string;
|
|
62
|
+
showTitle?: boolean;
|
|
63
|
+
onTitleChange?: (value: string) => void;
|
|
64
|
+
titleLevel?: Text.Level;
|
|
65
|
+
showLegend?: boolean;
|
|
66
|
+
enableTooltip?: boolean;
|
|
67
|
+
enableMeasure?: boolean;
|
|
68
|
+
initialViewport?: Viewport.UseProps["initial"];
|
|
69
|
+
onViewportChange?: Viewport.UseProps["onChange"];
|
|
70
|
+
viewportTriggers?: Viewport.UseProps["triggers"];
|
|
71
|
+
}
|
|
72
|
+
export declare const LinePlot: ({ lines, axes, showTitle, title, onTitleChange, showLegend, titleLevel, onLineChange, onRuleChange, onAxisChannelDrop, onAxisChange, rules, enableTooltip, enableMeasure, initialViewport, onViewportChange, viewportTriggers, ...restProps }: LinePlotProps) => ReactElement;
|