@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Cursor from '../cursor/cursor';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const css = require("./css-V3VUT_Js.cjs");
|
|
3
|
+
let canvas = null;
|
|
4
|
+
const getCanvas = () => {
|
|
5
|
+
if (canvas == null)
|
|
6
|
+
canvas = document.createElement("canvas");
|
|
7
|
+
return canvas;
|
|
8
|
+
};
|
|
9
|
+
const dimensions = (text, font, context) => {
|
|
10
|
+
if (css.external$1.RUNTIME === "node")
|
|
11
|
+
return { width: 0, height: 0 };
|
|
12
|
+
if (context == null)
|
|
13
|
+
context = getCanvas().getContext("2d");
|
|
14
|
+
context.font = font;
|
|
15
|
+
const metrics = context.measureText(text);
|
|
16
|
+
return {
|
|
17
|
+
width: Math.trunc(
|
|
18
|
+
Math.abs(metrics.actualBoundingBoxLeft) + Math.abs(metrics.actualBoundingBoxRight)
|
|
19
|
+
),
|
|
20
|
+
height: Math.trunc(
|
|
21
|
+
Math.abs(metrics.actualBoundingBoxAscent) + Math.abs(metrics.actualBoundingBoxDescent)
|
|
22
|
+
)
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
exports.dimensions = dimensions;
|
|
26
|
+
//# sourceMappingURL=dimensions-Sej0Zly9.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dimensions-Sej0Zly9.cjs","sources":["../src/text/dimensions.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 { type dimensions as core, runtime } from \"@synnaxlabs/x\";\n\nlet canvas: HTMLCanvasElement | null = null;\n\nconst getCanvas = (): HTMLCanvasElement => {\n if (canvas == null) canvas = document.createElement(\"canvas\");\n return canvas;\n};\n\nexport const dimensions = (\n text: string,\n font: string,\n context?: OffscreenCanvasRenderingContext2D | CanvasRenderingContext2D,\n): core.Dimensions => {\n if (runtime.RUNTIME === \"node\") return { width: 0, height: 0 };\n if (context == null)\n context = getCanvas().getContext(\"2d\") as CanvasRenderingContext2D;\n context.font = font;\n const metrics = context.measureText(text);\n return {\n width: Math.trunc(\n Math.abs(metrics.actualBoundingBoxLeft) +\n Math.abs(metrics.actualBoundingBoxRight),\n ),\n height: Math.trunc(\n Math.abs(metrics.actualBoundingBoxAscent) +\n Math.abs(metrics.actualBoundingBoxDescent),\n ),\n };\n};\n"],"names":["runtime"],"mappings":";;AAWA,IAAI,SAAmC;AAEvC,MAAM,YAAY,MAAyB;AACzC,MAAI,UAAU;AAAe,aAAA,SAAS,cAAc,QAAQ;AACrD,SAAA;AACT;AAEO,MAAM,aAAa,CACxB,MACA,MACA,YACoB;AACpB,MAAIA,IAAAA,WAAQ,YAAY;AAAQ,WAAO,EAAE,OAAO,GAAG,QAAQ,EAAE;AAC7D,MAAI,WAAW;AACH,cAAA,UAAA,EAAY,WAAW,IAAI;AACvC,UAAQ,OAAO;AACT,QAAA,UAAU,QAAQ,YAAY,IAAI;AACjC,SAAA;AAAA,IACL,OAAO,KAAK;AAAA,MACV,KAAK,IAAI,QAAQ,qBAAqB,IACpC,KAAK,IAAI,QAAQ,sBAAsB;AAAA,IAC3C;AAAA,IACA,QAAQ,KAAK;AAAA,MACX,KAAK,IAAI,QAAQ,uBAAuB,IACtC,KAAK,IAAI,QAAQ,wBAAwB;AAAA,IAC7C;AAAA,EAAA;AAEJ;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { e as external$1 } from "./css-NTD4Xm8x.js";
|
|
2
|
+
let canvas = null;
|
|
3
|
+
const getCanvas = () => {
|
|
4
|
+
if (canvas == null)
|
|
5
|
+
canvas = document.createElement("canvas");
|
|
6
|
+
return canvas;
|
|
7
|
+
};
|
|
8
|
+
const dimensions = (text, font, context) => {
|
|
9
|
+
if (external$1.RUNTIME === "node")
|
|
10
|
+
return { width: 0, height: 0 };
|
|
11
|
+
if (context == null)
|
|
12
|
+
context = getCanvas().getContext("2d");
|
|
13
|
+
context.font = font;
|
|
14
|
+
const metrics = context.measureText(text);
|
|
15
|
+
return {
|
|
16
|
+
width: Math.trunc(
|
|
17
|
+
Math.abs(metrics.actualBoundingBoxLeft) + Math.abs(metrics.actualBoundingBoxRight)
|
|
18
|
+
),
|
|
19
|
+
height: Math.trunc(
|
|
20
|
+
Math.abs(metrics.actualBoundingBoxAscent) + Math.abs(metrics.actualBoundingBoxDescent)
|
|
21
|
+
)
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
dimensions as d
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=dimensions-guJ5PHmb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dimensions-guJ5PHmb.js","sources":["../src/text/dimensions.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 { type dimensions as core, runtime } from \"@synnaxlabs/x\";\n\nlet canvas: HTMLCanvasElement | null = null;\n\nconst getCanvas = (): HTMLCanvasElement => {\n if (canvas == null) canvas = document.createElement(\"canvas\");\n return canvas;\n};\n\nexport const dimensions = (\n text: string,\n font: string,\n context?: OffscreenCanvasRenderingContext2D | CanvasRenderingContext2D,\n): core.Dimensions => {\n if (runtime.RUNTIME === \"node\") return { width: 0, height: 0 };\n if (context == null)\n context = getCanvas().getContext(\"2d\") as CanvasRenderingContext2D;\n context.font = font;\n const metrics = context.measureText(text);\n return {\n width: Math.trunc(\n Math.abs(metrics.actualBoundingBoxLeft) +\n Math.abs(metrics.actualBoundingBoxRight),\n ),\n height: Math.trunc(\n Math.abs(metrics.actualBoundingBoxAscent) +\n Math.abs(metrics.actualBoundingBoxDescent),\n ),\n };\n};\n"],"names":["runtime"],"mappings":";AAWA,IAAI,SAAmC;AAEvC,MAAM,YAAY,MAAyB;AACzC,MAAI,UAAU;AAAe,aAAA,SAAS,cAAc,QAAQ;AACrD,SAAA;AACT;AAEO,MAAM,aAAa,CACxB,MACA,MACA,YACoB;AACpB,MAAIA,WAAQ,YAAY;AAAQ,WAAO,EAAE,OAAO,GAAG,QAAQ,EAAE;AAC7D,MAAI,WAAW;AACH,cAAA,UAAA,EAAY,WAAW,IAAI;AACvC,UAAQ,OAAO;AACT,QAAA,UAAU,QAAQ,YAAY,IAAI;AACjC,SAAA;AAAA,IACL,OAAO,KAAK;AAAA,MACV,KAAK,IAAI,QAAQ,qBAAqB,IACpC,KAAK,IAAI,QAAQ,sBAAsB;AAAA,IAC3C;AAAA,IACA,QAAQ,KAAK;AAAA,MACX,KAAK,IAAI,QAAQ,uBAAuB,IACtC,KAAK,IAAI,QAAQ,wBAAwB;AAAA,IAC7C;AAAA,EAAA;AAEJ;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type HTMLAttributes, type PropsWithChildren, type ReactElement } from "react";
|
|
2
|
+
import { type direction } from "@synnaxlabs/x";
|
|
3
|
+
/** The props for the {@link Divider} component. */
|
|
4
|
+
export interface DividerProps extends PropsWithChildren<HTMLAttributes<HTMLDivElement>> {
|
|
5
|
+
direction?: direction.Direction;
|
|
6
|
+
padded?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Divider renders a vertical or horizontal divided to separate content.
|
|
10
|
+
*
|
|
11
|
+
* @param props - The props for the component.
|
|
12
|
+
* @param props.direction - The direction to render the divider in.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Divider: ({ direction, className, padded, ...props }: DividerProps) => ReactElement;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type ReactElement, type RefObject } from "react";
|
|
2
|
+
import { location as loc } from "@synnaxlabs/x";
|
|
3
|
+
import { Align } from '../align';
|
|
4
|
+
/** Props for the {@link use} hook. */
|
|
5
|
+
export interface UseProps {
|
|
6
|
+
initialVisible?: boolean;
|
|
7
|
+
onVisibleChange?: (vis: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
/** Return type for the {@link use} hook. */
|
|
10
|
+
export interface UseReturn {
|
|
11
|
+
visible: boolean;
|
|
12
|
+
ref: RefObject<HTMLDivElement>;
|
|
13
|
+
close: () => void;
|
|
14
|
+
open: () => void;
|
|
15
|
+
toggle: (vis?: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Implements basic dropdown behavior, and should be preferred when using
|
|
19
|
+
* the {@link Dialog} component. Opens the dropdown whenever the 'open' function is
|
|
20
|
+
* called, and closes it whenever the 'close' function is called OR the user clicks
|
|
21
|
+
* outside of the dropdown parent wrapped,which includes the dropdown trigger (often
|
|
22
|
+
* a button or input).
|
|
23
|
+
*
|
|
24
|
+
* @param initialVisible - Whether the dropdown should be visible on mount.
|
|
25
|
+
* @returns visible - Whether the dropdown is visible.
|
|
26
|
+
* @returns ref - The ref to the dropdown parent.
|
|
27
|
+
* @returns close - A function to close the dropdown.
|
|
28
|
+
* @returns open - A function to open the dropdown.
|
|
29
|
+
* @returns toggle - A function to toggle the dropdown.
|
|
30
|
+
*/
|
|
31
|
+
export declare const use: (props?: UseProps) => UseReturn;
|
|
32
|
+
/** Props for the {@link Dialog} component. */
|
|
33
|
+
export interface DialogProps extends Pick<UseReturn, "visible">, Partial<Omit<UseReturn, "visible" | "ref">>, Omit<Align.PackProps, "ref" | "reverse" | "size" | "empty"> {
|
|
34
|
+
location?: loc.Y;
|
|
35
|
+
children: [ReactElement, ReactElement];
|
|
36
|
+
keepMounted?: boolean;
|
|
37
|
+
matchTriggerWidth?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A controlled dropdown dialog component that wraps its children. For the simplest case, use
|
|
41
|
+
* the {@link use} hook (more behavioral details explained there).
|
|
42
|
+
*
|
|
43
|
+
* @param props - The props for the dropdown component. Unlisted props are passed to the
|
|
44
|
+
* parent elment.
|
|
45
|
+
* @param props.visible - Whether the dropdown is visible or not. This is a controlled
|
|
46
|
+
* @param props.children - Two children are expected: the dropdown trigger (often a button
|
|
47
|
+
* or input) and the dropdown content.
|
|
48
|
+
*/
|
|
49
|
+
export declare const Dialog: import("react").ForwardRefExoticComponent<DialogProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const Toggle = require("./Toggle-eOKYw1OT.cjs");
|
|
4
|
+
require("./jsx-runtime-N1ikfypN.cjs");
|
|
5
|
+
require("react");
|
|
6
|
+
require("./css-V3VUT_Js.cjs");
|
|
7
|
+
require("zod");
|
|
8
|
+
require("./component-joFaJiQW.cjs");
|
|
9
|
+
require("react-dom");
|
|
10
|
+
require("./Center-ZAcURh-3.cjs");
|
|
11
|
+
require("react-hook-form");
|
|
12
|
+
exports.Dropdown = Toggle.Dropdown;
|
|
13
|
+
//# sourceMappingURL=dropdown.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/dropdown.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { D } from "./Toggle-kLunfJtR.js";
|
|
2
|
+
import "./jsx-runtime-rX5tAIG2.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "./css-NTD4Xm8x.js";
|
|
5
|
+
import "zod";
|
|
6
|
+
import "./component-k78Jq9I7.js";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import "./Center-gEKkAkdh.js";
|
|
9
|
+
import "react-hook-form";
|
|
10
|
+
export {
|
|
11
|
+
D as Dropdown
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=dropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { A as AbstractSink, a as AbstractSource, B as Base, b as BaseProvider, c as BooleanStatus, C as ChannelData, d as CompoundTelemFactory, F as FixedNumber, e as FixedString, I as IterativeSeries, M as Mean, f as MultiSourceTransformer, N as NoopFactory, P as PipelineFactory, R as REGISTRY, g as RemoteFactory, S as Setpoint, h as SinkPipeline, i as SourcePipeline, j as StaticFactory, k as StreamChannelData, l as StreamChannelValue, m as StringifyNumber, T as TransformerFactory, U as UnarySinkTransformer, n as UnarySourceTransformer, W as WithinBounds, o as booleanSinkSpecZ, p as booleanSinkTransformerSpecZ, q as booleanSourceSpecZ, r as booleanSourceTransformerSpecZ, s as booleanStatus, t as booleanStatusProps, u as channelData, v as colorSourceSpecZ, w as factory, x as fixedArray, y as fixedNumber, z as fixedNumberPropsZ, D as fixedSeriesPropsZ, E as fixedString, G as fixedStringPropsZ, H as iterativeArray, J as iterativeSeriesPropsZ, K as mean, L as noopBooleanSinkSpec, O as noopBooleanSourceSpec, Q as noopColorSourceSpec, V as noopNumericSinkSpec, X as noopNumericSourceSpec, Y as noopStatusSourceSpec, Z as noopStringSourceSpec, _ as numberSinkSpecZ, $ as numberSourceSpecZ, a0 as providerStateZ, a1 as registerFactory, a2 as seriesSourceSpecZ, a3 as setProvider, a4 as setpoint, a5 as shouldUpdate, a6 as sinkPipeline, a7 as sinkPipelinePropsZ, a8 as sinkSpecZ, a9 as sinkTransformerSpecZ, aa as sourcePipeline, ab as sourcePipelinePropsZ, ac as sourceSpecZ, ad as sourceTransformerSpecZ, ae as specZ, af as statusSourceSpecZ, ag as streamChannelData, ah as streamChannelValue, ai as streamChannelValuePropsZ, aj as stringSourceSpecZ, ak as stringifyNumber, al as stringifyNumberProps, am as useProvider, an as useSink, ao as useSource, ap as withinBounds } from "./table-8MFXzE4C.js";
|
|
2
|
+
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
AbstractSink,
|
|
5
|
+
AbstractSource,
|
|
6
|
+
Base,
|
|
7
|
+
BaseProvider,
|
|
8
|
+
BooleanStatus,
|
|
9
|
+
ChannelData,
|
|
10
|
+
CompoundTelemFactory,
|
|
11
|
+
FixedNumber,
|
|
12
|
+
FixedString,
|
|
13
|
+
IterativeSeries,
|
|
14
|
+
Mean,
|
|
15
|
+
MultiSourceTransformer,
|
|
16
|
+
NoopFactory,
|
|
17
|
+
PipelineFactory,
|
|
18
|
+
REGISTRY,
|
|
19
|
+
RemoteFactory,
|
|
20
|
+
Setpoint,
|
|
21
|
+
SinkPipeline,
|
|
22
|
+
SourcePipeline,
|
|
23
|
+
StaticFactory,
|
|
24
|
+
StreamChannelData,
|
|
25
|
+
StreamChannelValue,
|
|
26
|
+
StringifyNumber,
|
|
27
|
+
TransformerFactory,
|
|
28
|
+
UnarySinkTransformer,
|
|
29
|
+
UnarySourceTransformer,
|
|
30
|
+
WithinBounds,
|
|
31
|
+
booleanSinkSpecZ,
|
|
32
|
+
booleanSinkTransformerSpecZ,
|
|
33
|
+
booleanSourceSpecZ,
|
|
34
|
+
booleanSourceTransformerSpecZ,
|
|
35
|
+
booleanStatus,
|
|
36
|
+
booleanStatusProps,
|
|
37
|
+
channelData,
|
|
38
|
+
colorSourceSpecZ,
|
|
39
|
+
factory,
|
|
40
|
+
fixedArray,
|
|
41
|
+
fixedNumber,
|
|
42
|
+
fixedNumberPropsZ,
|
|
43
|
+
fixedSeriesPropsZ,
|
|
44
|
+
fixedString,
|
|
45
|
+
fixedStringPropsZ,
|
|
46
|
+
iterativeArray,
|
|
47
|
+
iterativeSeriesPropsZ,
|
|
48
|
+
mean,
|
|
49
|
+
noopBooleanSinkSpec,
|
|
50
|
+
noopBooleanSourceSpec,
|
|
51
|
+
noopColorSourceSpec,
|
|
52
|
+
noopNumericSinkSpec,
|
|
53
|
+
noopNumericSourceSpec,
|
|
54
|
+
noopStatusSourceSpec,
|
|
55
|
+
noopStringSourceSpec,
|
|
56
|
+
numberSinkSpecZ,
|
|
57
|
+
numberSourceSpecZ,
|
|
58
|
+
providerStateZ,
|
|
59
|
+
registerFactory,
|
|
60
|
+
seriesSourceSpecZ,
|
|
61
|
+
setProvider,
|
|
62
|
+
setpoint,
|
|
63
|
+
shouldUpdate,
|
|
64
|
+
sinkPipeline,
|
|
65
|
+
sinkPipelinePropsZ,
|
|
66
|
+
sinkSpecZ,
|
|
67
|
+
sinkTransformerSpecZ,
|
|
68
|
+
sourcePipeline,
|
|
69
|
+
sourcePipelinePropsZ,
|
|
70
|
+
sourceSpecZ,
|
|
71
|
+
sourceTransformerSpecZ,
|
|
72
|
+
specZ,
|
|
73
|
+
statusSourceSpecZ,
|
|
74
|
+
streamChannelData,
|
|
75
|
+
streamChannelValue,
|
|
76
|
+
streamChannelValuePropsZ,
|
|
77
|
+
stringSourceSpecZ,
|
|
78
|
+
stringifyNumber,
|
|
79
|
+
stringifyNumberProps,
|
|
80
|
+
useProvider,
|
|
81
|
+
useSink,
|
|
82
|
+
useSource,
|
|
83
|
+
withinBounds
|
|
84
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
85
|
+
export {
|
|
86
|
+
external as e
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=external-2Aicsb3l.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-2Aicsb3l.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("./jsx-runtime-N1ikfypN.cjs");
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const css = require("./css-V3VUT_Js.cjs");
|
|
5
|
+
const Center = require("./Center-ZAcURh-3.cjs");
|
|
6
|
+
const Toggle = require("./Toggle-eOKYw1OT.cjs");
|
|
7
|
+
const Header = require("./Header-5YX6FUn6.cjs");
|
|
8
|
+
const component = require("./component-joFaJiQW.cjs");
|
|
9
|
+
const Actions = ({ children = [] }) => {
|
|
10
|
+
const { level, divided } = Header.useContext();
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
12
|
+
Center.Space,
|
|
13
|
+
{
|
|
14
|
+
direction: "x",
|
|
15
|
+
size: "small",
|
|
16
|
+
align: "center",
|
|
17
|
+
className: css.CSS.BE("header", "actions"),
|
|
18
|
+
children: css.toArray(children).map((action, i) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Action, { index: i, level, divided, children: action }, i))
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
const Action = ({ index, level, children, divided }) => {
|
|
23
|
+
let content = children;
|
|
24
|
+
if (!React.isValidElement(children)) {
|
|
25
|
+
const props = children;
|
|
26
|
+
content = /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
27
|
+
Toggle.Icon,
|
|
28
|
+
{
|
|
29
|
+
onClick: (e) => {
|
|
30
|
+
var _a;
|
|
31
|
+
e.stopPropagation();
|
|
32
|
+
e.preventDefault();
|
|
33
|
+
(_a = props.onClick) == null ? void 0 : _a.call(props, e);
|
|
34
|
+
},
|
|
35
|
+
size: component.LevelComponentSizes[level],
|
|
36
|
+
...props
|
|
37
|
+
},
|
|
38
|
+
index
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(React.Fragment, { children: [
|
|
42
|
+
divided && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Divider, {}),
|
|
43
|
+
content
|
|
44
|
+
] }, index);
|
|
45
|
+
};
|
|
46
|
+
const ButtonTitle = ({
|
|
47
|
+
children = "",
|
|
48
|
+
className,
|
|
49
|
+
onClick,
|
|
50
|
+
...props
|
|
51
|
+
}) => {
|
|
52
|
+
const { level } = Header.useContext();
|
|
53
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
54
|
+
Toggle.Button,
|
|
55
|
+
{
|
|
56
|
+
variant: "text",
|
|
57
|
+
size: component.LevelComponentSizes[level],
|
|
58
|
+
onClick,
|
|
59
|
+
className: css.CSS(css.CSS.B("header-button-title"), className),
|
|
60
|
+
sharp: true,
|
|
61
|
+
...props,
|
|
62
|
+
children
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
const Title = ({
|
|
67
|
+
className,
|
|
68
|
+
level: propsLevel,
|
|
69
|
+
...props
|
|
70
|
+
}) => {
|
|
71
|
+
const { level, divided } = Header.useContext();
|
|
72
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
73
|
+
Toggle.WithIcon,
|
|
74
|
+
{
|
|
75
|
+
className: css.CSS(css.CSS.BE("header", "text"), className),
|
|
76
|
+
level: propsLevel ?? level,
|
|
77
|
+
divided,
|
|
78
|
+
...props
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83
|
+
__proto__: null,
|
|
84
|
+
Actions,
|
|
85
|
+
ButtonTitle,
|
|
86
|
+
Header: Header.Header,
|
|
87
|
+
Title,
|
|
88
|
+
useContext: Header.useContext
|
|
89
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
90
|
+
exports.Actions = Actions;
|
|
91
|
+
exports.ButtonTitle = ButtonTitle;
|
|
92
|
+
exports.external = external;
|
|
93
|
+
//# sourceMappingURL=external-9Ncn2J9B.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-9Ncn2J9B.cjs","sources":["../src/header/Actions.tsx","../src/header/ButtonTitle.tsx","../src/header/Title.tsx"],"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 { Fragment, isValidElement, type ReactElement } from \"react\";\n\nimport { toArray } from \"@synnaxlabs/x\";\n\nimport { Align } from \"@/align\";\nimport { Button } from \"@/button\";\nimport { CSS } from \"@/css\";\nimport { Divider } from \"@/divider\";\nimport { useContext } from \"@/header/Header\";\nimport { Text } from \"@/text\";\n\nexport type ActionSpec = Button.IconProps | ReactElement;\n\nexport interface ActionsProps {\n children?: ActionSpec | ActionSpec[];\n}\n\n/**\n * Custom actions to render on the right side of the header.\n *\n * @param children - The actions to render. If the action is of type\n * {@link ButtonIconProps}, a correectly sized {@link ButtonIconOnly} is rendered\n * using the given props. If the action is a JSX element, it is renderered directly.\n * It's a good idea to prefer the latter in almost all cases for simplicity.\n */\nexport const Actions = ({ children = [] }: ActionsProps): ReactElement => {\n const { level, divided } = useContext();\n return (\n <Align.Space\n direction=\"x\"\n size=\"small\"\n align=\"center\"\n className={CSS.BE(\"header\", \"actions\")}\n >\n {toArray(children).map((action, i) => (\n <Action key={i} index={i} level={level} divided={divided}>\n {action}\n </Action>\n ))}\n </Align.Space>\n );\n};\n\ninterface ActionProps {\n index: number;\n level: Text.Level;\n children: ReactElement | Button.IconProps;\n divided: boolean;\n}\n\nconst Action = ({ index, level, children, divided }: ActionProps): ReactElement => {\n let content: ReactElement = children as ReactElement;\n if (!isValidElement(children)) {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n const props = children as Button.IconProps;\n content = (\n <Button.Icon\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n props.onClick?.(e);\n }}\n key={index}\n size={Text.LevelComponentSizes[level]}\n {...props}\n />\n );\n }\n return (\n <Fragment key={index}>\n {divided && <Divider.Divider />}\n {content}\n </Fragment>\n );\n};\n","// 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 { type ReactElement } from \"react\";\n\nimport { Button } from \"@/button\";\nimport { CSS } from \"@/css\";\nimport { useContext } from \"@/header/Header\";\nimport { Text } from \"@/text\";\n\nexport interface ButtonTitleProps\n extends Omit<Button.ButtonProps, \"variant\" | \"size\"> {}\n\n/**\n * Header.Title.Use renders a clickable header title.\n *\n * @param props - The comonent props. The props for this component are identical\n * to {@link Button}, except the variant is always 'outlined' and that the component size\n * is automatically inferred from the 'level' prop passsed to the parent {@link Header}\n * component.\n */\nexport const ButtonTitle = ({\n children = \"\",\n className,\n onClick,\n ...props\n}: ButtonTitleProps): ReactElement => {\n const { level } = useContext();\n return (\n <Button.Button\n variant=\"text\"\n size={Text.LevelComponentSizes[level]}\n onClick={onClick}\n className={CSS(CSS.B(\"header-button-title\"), className)}\n sharp\n {...props}\n >\n {children}\n </Button.Button>\n );\n};\n","// 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 { type ReactElement } from \"react\";\n\nimport { type Optional } from \"@synnaxlabs/x\";\n\nimport { CSS } from \"@/css\";\nimport { useContext } from \"@/header/Header\";\nimport { Text } from \"@/text\";\n\nexport interface TitleProps\n extends Optional<Omit<Text.WithIconProps, \"divided\">, \"level\"> {}\n\n/**\n * Renders the title for the header component.\n *\n * @param props - The component props. The props for this component are identical\n * to the {@link Typography.TextWithIcon} component, except that the 'level', and\n * 'divider' props are inherited from the parent {@link Header} component.\n */\nexport const Title = ({\n className,\n level: propsLevel,\n ...props\n}: TitleProps): ReactElement => {\n const { level, divided } = useContext();\n return (\n <Text.WithIcon\n className={CSS(CSS.BE(\"header\", \"text\"), className)}\n level={propsLevel ?? level}\n divided={divided}\n {...props}\n />\n );\n};\n"],"names":["useContext","jsx","Align.Space","CSS","toArray","isValidElement","Button.Icon","Text.LevelComponentSizes","Fragment","Divider.Divider","Button.Button","Text.WithIcon"],"mappings":";;;;;;;;AAkCO,MAAM,UAAU,CAAC,EAAE,WAAW,CAAA,QAAqC;AACxE,QAAM,EAAE,OAAO,QAAQ,IAAIA,OAAW,WAAA;AAEpC,SAAAC,2BAAA,kBAAA;AAAA,IAACC,OAAM;AAAA,IAAN;AAAA,MACC,WAAU;AAAA,MACV,MAAK;AAAA,MACL,OAAM;AAAA,MACN,WAAWC,IAAA,IAAI,GAAG,UAAU,SAAS;AAAA,MAEpC,UAAQC,IAAA,QAAA,QAAQ,EAAE,IAAI,CAAC,QAAQ,MAC7BH,iDAAA,QAAA,EAAe,OAAO,GAAG,OAAc,SACrC,UAAA,OAAA,GADU,CAEb,CACD;AAAA,IAAA;AAAA,EAAA;AAGP;AASA,MAAM,SAAS,CAAC,EAAE,OAAO,OAAO,UAAU,cAAyC;AACjF,MAAI,UAAwB;AACxB,MAAA,CAACI,MAAAA,eAAe,QAAQ,GAAG;AAE7B,UAAM,QAAQ;AAEZ,cAAAJ,2BAAA,kBAAA;AAAA,MAACK,OAAO;AAAA,MAAP;AAAA,QACC,SAAS,CAAC,MAAM;;AACd,YAAE,gBAAgB;AAClB,YAAE,eAAe;AACjB,sBAAM,YAAN,+BAAgB;AAAA,QAClB;AAAA,QAEA,MAAMC,UAAK,oBAAoB,KAAK;AAAA,QACnC,GAAG;AAAA,MAAA;AAAA,MAFC;AAAA,IAAA;AAAA,EAKX;AACA,2DACGC,gBACE,EAAA,UAAA;AAAA,IAAW,WAAAP,2BAAAA,kBAAAA,IAACQ,OAAQ,SAAR,EAAgB;AAAA,IAC5B;AAAA,EAAA,EAAA,GAFY,KAGf;AAEJ;ACxDO,MAAM,cAAc,CAAC;AAAA,EAC1B,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAsC;AAC9B,QAAA,EAAE,UAAUT,OAAAA;AAEhB,SAAAC,2BAAA,kBAAA;AAAA,IAACS,OAAO;AAAA,IAAP;AAAA,MACC,SAAQ;AAAA,MACR,MAAMH,UAAK,oBAAoB,KAAK;AAAA,MACpC;AAAA,MACA,WAAWJ,IAAI,IAAAA,IAAA,IAAI,EAAE,qBAAqB,GAAG,SAAS;AAAA,MACtD,OAAK;AAAA,MACJ,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EAAA;AAGP;ACnBO,MAAM,QAAQ,CAAC;AAAA,EACpB;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,MAAgC;AAC9B,QAAM,EAAE,OAAO,QAAQ,IAAIH,OAAW,WAAA;AAEpC,SAAAC,2BAAA,kBAAA;AAAA,IAACU,OAAK;AAAA,IAAL;AAAA,MACC,WAAWR,IAAI,IAAAA,QAAI,GAAG,UAAU,MAAM,GAAG,SAAS;AAAA,MAClD,OAAO,cAAc;AAAA,MACrB;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { d as CoreDateTime, e as DateTime, E as Editable, L as Link, M as MaybeEditable, f as Symbols, g as Text, W as WithIcon, h as edit, i as formatChildren } from "./Toggle-kLunfJtR.js";
|
|
2
|
+
import { d as dimensions } from "./dimensions-guJ5PHmb.js";
|
|
3
|
+
import { K as Keyboard } from "./Keyboard-mE03PKwA.js";
|
|
4
|
+
import { C as ComponentSizeLevels, L as LEVELS, c as LevelComponentSizes, l as levelZ, d as specZ } from "./component-k78Jq9I7.js";
|
|
5
|
+
import { S as SelectLevel } from "./SelectLevel-cewIWtOv.js";
|
|
6
|
+
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
|
+
__proto__: null,
|
|
8
|
+
ComponentSizeLevels,
|
|
9
|
+
CoreDateTime,
|
|
10
|
+
DateTime,
|
|
11
|
+
Editable,
|
|
12
|
+
Keyboard,
|
|
13
|
+
LEVELS,
|
|
14
|
+
LevelComponentSizes,
|
|
15
|
+
Link,
|
|
16
|
+
MaybeEditable,
|
|
17
|
+
SelectLevel,
|
|
18
|
+
Symbols,
|
|
19
|
+
Text,
|
|
20
|
+
WithIcon,
|
|
21
|
+
dimensions,
|
|
22
|
+
edit,
|
|
23
|
+
formatChildren,
|
|
24
|
+
levelZ,
|
|
25
|
+
specZ
|
|
26
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
27
|
+
export {
|
|
28
|
+
external as e
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=external-9RCzxzgZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-9RCzxzgZ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { B as Button, C as Core, I as Icon, T as Toggle, c as ToggleIcon } from "./Toggle-kLunfJtR.js";
|
|
2
|
+
import { L as Link } from "./Link-laNlv47N.js";
|
|
3
|
+
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
|
+
__proto__: null,
|
|
5
|
+
Button,
|
|
6
|
+
Core,
|
|
7
|
+
Icon,
|
|
8
|
+
Link,
|
|
9
|
+
Toggle,
|
|
10
|
+
ToggleIcon
|
|
11
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
12
|
+
export {
|
|
13
|
+
external as e
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=external-9pS8-DvV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-9pS8-DvV.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { j as Date, k as DragButton, N as Numeric, l as Switch, m as Text, n as Time, o as combineDateAndTimeValue } from "./Toggle-kLunfJtR.js";
|
|
2
|
+
import { H as HelpText, I as Item, a as ItemControlled, L as Label } from "./Item-owLU4Xop.js";
|
|
3
|
+
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
|
+
__proto__: null,
|
|
5
|
+
Date,
|
|
6
|
+
DragButton,
|
|
7
|
+
HelpText,
|
|
8
|
+
Item,
|
|
9
|
+
ItemControlled,
|
|
10
|
+
Label,
|
|
11
|
+
Numeric,
|
|
12
|
+
Switch,
|
|
13
|
+
Text,
|
|
14
|
+
Time,
|
|
15
|
+
combineDateAndTimeValue
|
|
16
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
export {
|
|
18
|
+
external as e
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=external-KxlyA74C.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-KxlyA74C.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Center = require("./Center-ZAcURh-3.cjs");
|
|
3
|
+
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
|
+
__proto__: null,
|
|
5
|
+
ALIGNMENTS: Center.ALIGNMENTS,
|
|
6
|
+
Center: Center.Center,
|
|
7
|
+
CoreCenter: Center.CoreCenter,
|
|
8
|
+
JUSTIFICATIONS: Center.JUSTIFICATIONS,
|
|
9
|
+
Pack: Center.Pack,
|
|
10
|
+
Space: Center.Space,
|
|
11
|
+
shouldReverse: Center.shouldReverse
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
13
|
+
exports.external = external;
|
|
14
|
+
//# sourceMappingURL=external-OSLzuRs1.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-OSLzuRs1.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Toggle = require("./Toggle-eOKYw1OT.cjs");
|
|
3
|
+
const font = require("./font-wlgaMRYN.cjs");
|
|
4
|
+
const component = require("./component-joFaJiQW.cjs");
|
|
5
|
+
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
|
+
__proto__: null,
|
|
7
|
+
Provider: Toggle.Provider,
|
|
8
|
+
Switch: Toggle.Switch,
|
|
9
|
+
get Theming() {
|
|
10
|
+
return external;
|
|
11
|
+
},
|
|
12
|
+
synnaxDark: component.synnaxDark,
|
|
13
|
+
synnaxLight: component.synnaxLight,
|
|
14
|
+
themeZ: component.themeZ,
|
|
15
|
+
themes: component.themes,
|
|
16
|
+
toCSSVars: Toggle.toCSSVars,
|
|
17
|
+
use: Toggle.use,
|
|
18
|
+
useContext: Toggle.useContext,
|
|
19
|
+
useProvider: Toggle.useProvider,
|
|
20
|
+
useTypography: font.useTypography
|
|
21
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
22
|
+
exports.external = external;
|
|
23
|
+
//# sourceMappingURL=external-PS3nzqUn.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-PS3nzqUn.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { C as Column, a as Context, b as Core, F as Filter, H as Hover, L as List, P as Provider, S as Search, c as Selector, u as useContext } from "./TimeRangeChip-eDCX5pUC.js";
|
|
2
|
+
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
Column,
|
|
5
|
+
Context,
|
|
6
|
+
Core,
|
|
7
|
+
Filter,
|
|
8
|
+
Hover,
|
|
9
|
+
List,
|
|
10
|
+
Provider,
|
|
11
|
+
Search,
|
|
12
|
+
Selector,
|
|
13
|
+
useContext
|
|
14
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
15
|
+
export {
|
|
16
|
+
external as e
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=external-QRmqSjV0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-QRmqSjV0.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { q as useContext, r as Text$1, f as Symbols, s as Icon$1, A as ALPHANUMERIC_KEYS, v as ALPHANUMERIC_KEYS_SET, K as KEYS, w as MOUSE_KEYS, x as Provider, y as compareModeConfigs, z as determineMode, F as diff, G as eventKey, H as filter, J as flattenConfig, O as keyZ, Q as keyboardKey, R as match, U as mouseKey, V as mouseKeyZ, X as purge, Y as purgeMouse, Z as triggerZ, p as use, _ as useFlattenedMemoConfig, $ as useHeld, a0 as useHeldRef } from "./Toggle-kLunfJtR.js";
|
|
2
|
+
import { j as jsxRuntimeExports } from "./jsx-runtime-rX5tAIG2.js";
|
|
3
|
+
import { useState, useEffect } from "react";
|
|
4
|
+
import "./component-k78Jq9I7.js";
|
|
5
|
+
import { u as useDrag } from "./useDrag-rQt5hv4R.js";
|
|
6
|
+
import { S as Space } from "./Center-gEKkAkdh.js";
|
|
7
|
+
import "./css-NTD4Xm8x.js";
|
|
8
|
+
import { K as Keyboard } from "./Keyboard-mE03PKwA.js";
|
|
9
|
+
const Status = (props) => {
|
|
10
|
+
const { listen } = useContext();
|
|
11
|
+
const [trigger, setTrigger] = useState([]);
|
|
12
|
+
useEffect(
|
|
13
|
+
() => listen(({ next: [trigger2] }) => setTrigger(trigger2 ?? [])),
|
|
14
|
+
[listen, setTrigger]
|
|
15
|
+
);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Text$1, { hideIcon: true, ...props, children: trigger.join(" ") });
|
|
17
|
+
};
|
|
18
|
+
const Text = ({
|
|
19
|
+
className,
|
|
20
|
+
style,
|
|
21
|
+
trigger,
|
|
22
|
+
...props
|
|
23
|
+
}) => {
|
|
24
|
+
const CUSTOM_TEXT = {
|
|
25
|
+
Control: /* @__PURE__ */ jsxRuntimeExports.jsx(Symbols.Meta, {}),
|
|
26
|
+
Alt: /* @__PURE__ */ jsxRuntimeExports.jsx(Symbols.Alt, {}),
|
|
27
|
+
Shift: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1.Keyboard.Shift, {}),
|
|
28
|
+
MouseLeft: "Left Click",
|
|
29
|
+
MouseRight: "Right Click",
|
|
30
|
+
MouseMiddle: "Middle Click"
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Space, { className, style, direction: "x", children: trigger.map((t) => (
|
|
33
|
+
// @ts-expect-error
|
|
34
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Keyboard, { ...props, children: CUSTOM_TEXT[t] ?? t }, t)
|
|
35
|
+
)) });
|
|
36
|
+
};
|
|
37
|
+
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
|
+
__proto__: null,
|
|
39
|
+
ALPHANUMERIC_KEYS,
|
|
40
|
+
ALPHANUMERIC_KEYS_SET,
|
|
41
|
+
KEYS,
|
|
42
|
+
MOUSE_KEYS,
|
|
43
|
+
Provider,
|
|
44
|
+
Status,
|
|
45
|
+
Text,
|
|
46
|
+
compareModeConfigs,
|
|
47
|
+
determineMode,
|
|
48
|
+
diff,
|
|
49
|
+
eventKey,
|
|
50
|
+
filter,
|
|
51
|
+
flattenConfig,
|
|
52
|
+
keyZ,
|
|
53
|
+
keyboardKey,
|
|
54
|
+
match,
|
|
55
|
+
mouseKey,
|
|
56
|
+
mouseKeyZ,
|
|
57
|
+
purge,
|
|
58
|
+
purgeMouse,
|
|
59
|
+
triggerZ,
|
|
60
|
+
use,
|
|
61
|
+
useContext,
|
|
62
|
+
useDrag,
|
|
63
|
+
useFlattenedMemoConfig,
|
|
64
|
+
useHeld,
|
|
65
|
+
useHeldRef
|
|
66
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
67
|
+
export {
|
|
68
|
+
Text as T,
|
|
69
|
+
external as e
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=external-QuVTCnGl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-QuVTCnGl.js","sources":["../src/triggers/Status.tsx","../src/triggers/Text.tsx"],"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 { type ReactElement, useEffect, useState } from \"react\";\n\nimport { Status as CoreStatus } from \"@/status\";\nimport { useContext } from \"@/triggers/Provider\";\nimport { type Trigger } from \"@/triggers/triggers\";\n\nexport interface StatusProps extends CoreStatus.TextProps {}\n\nexport const Status = (props: StatusProps): ReactElement => {\n const { listen } = useContext();\n const [trigger, setTrigger] = useState<Trigger>([]);\n\n useEffect(\n () => listen(({ next: [trigger] }) => setTrigger(trigger ?? [])),\n [listen, setTrigger],\n );\n\n return (\n <CoreStatus.Text hideIcon {...props}>\n {trigger.join(\" \")}\n </CoreStatus.Text>\n );\n};\n","// 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 { type ReactElement } from \"react\";\n\nimport { Icon } from \"@synnaxlabs/media\";\n\nimport { Align } from \"@/align\";\nimport { Text as Core } from \"@/text\";\nimport { type Key, type Trigger } from \"@/triggers/triggers\";\n\nexport type TextProps<L extends Core.Level> = Core.KeyboardProps<L> & {\n trigger: Trigger;\n};\n\nexport const Text = <L extends Core.Level>({\n className,\n style,\n trigger,\n ...props\n}: TextProps<L>): ReactElement => {\n const CUSTOM_TEXT: Partial<Record<Key, ReactElement | string>> = {\n Control: <Core.Symbols.Meta />,\n Alt: <Core.Symbols.Alt />,\n Shift: <Icon.Keyboard.Shift />,\n MouseLeft: \"Left Click\",\n MouseRight: \"Right Click\",\n MouseMiddle: \"Middle Click\",\n };\n return (\n <Align.Space className={className} style={style} direction=\"x\">\n {trigger.map((t) => (\n // @ts-expect-error\n <Core.Keyboard<L> key={t} {...props}>\n {CUSTOM_TEXT[t] ?? t}\n </Core.Keyboard>\n ))}\n </Align.Space>\n );\n};\n"],"names":["trigger","jsx","CoreStatus.Text","Core.Symbols","Icon","Align.Space","Core.Keyboard"],"mappings":";;;;;;;;AAiBa,MAAA,SAAS,CAAC,UAAqC;AACpD,QAAA,EAAE,WAAW;AACnB,QAAM,CAAC,SAAS,UAAU,IAAI,SAAkB,CAAE,CAAA;AAElD;AAAA,IACE,MAAM,OAAO,CAAC,EAAE,MAAM,CAACA,QAAO,EAAA,MAAQ,WAAWA,YAAW,CAAA,CAAE,CAAC;AAAA,IAC/D,CAAC,QAAQ,UAAU;AAAA,EAAA;AAInB,SAAAC,sCAACC,QAAA,EAAgB,UAAQ,MAAE,GAAG,OAC3B,UAAA,QAAQ,KAAK,GAAG,EACnB,CAAA;AAEJ;ACVO,MAAM,OAAO,CAAuB;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAkC;AAChC,QAAM,cAA2D;AAAA,IAC/D,SAASD,kCAAA,IAACE,QAAa,MAAb,CAAA,CAAkB;AAAA,IAC5B,KAAKF,kCAAA,IAACE,QAAa,KAAb,CAAA,CAAiB;AAAA,IACvB,OAAOF,kCAAAA,IAACG,OAAK,SAAS,OAAd,CAAA,CAAoB;AAAA,IAC5B,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,aAAa;AAAA,EAAA;AAGb,SAAAH,sCAACI,OAAA,EAAY,WAAsB,OAAc,WAAU,KACxD,UAAQ,QAAA,IAAI,CAAC;AAAA;AAAA,IAEZJ,sCAACK,UAAA,EAA0B,GAAG,OAC3B,UAAY,YAAA,CAAC,KAAK,EAAA,GADE,CAEvB;AAAA,GACD,EACH,CAAA;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|