react-cosmos-ui 6.0.0-alpha.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 +21 -0
- package/dist/components/BaseSvg.d.ts +9 -0
- package/dist/components/BaseSvg.js +8 -0
- package/dist/components/Icon.d.ts +7 -0
- package/dist/components/Icon.js +5 -0
- package/dist/components/Illustration.d.ts +8 -0
- package/dist/components/Illustration.js +5 -0
- package/dist/components/KeyBox.d.ts +9 -0
- package/dist/components/KeyBox.js +28 -0
- package/dist/components/SidePanel.d.ts +10 -0
- package/dist/components/SidePanel.js +52 -0
- package/dist/components/Space.d.ts +7 -0
- package/dist/components/Space.js +8 -0
- package/dist/components/TreeView.d.ts +19 -0
- package/dist/components/TreeView.js +26 -0
- package/dist/components/ValueInputTree/ExpandCollapseValues.d.ts +9 -0
- package/dist/components/ValueInputTree/ExpandCollapseValues.js +11 -0
- package/dist/components/ValueInputTree/ValueInput/BooleanValueInput.d.ts +8 -0
- package/dist/components/ValueInputTree/ValueInput/BooleanValueInput.js +32 -0
- package/dist/components/ValueInputTree/ValueInput/NullValueInput.d.ts +5 -0
- package/dist/components/ValueInputTree/ValueInput/NullValueInput.js +9 -0
- package/dist/components/ValueInputTree/ValueInput/NumberValueInput.d.ts +8 -0
- package/dist/components/ValueInputTree/ValueInput/NumberValueInput.js +14 -0
- package/dist/components/ValueInputTree/ValueInput/StringValueInput.d.ts +8 -0
- package/dist/components/ValueInputTree/ValueInput/StringValueInput.js +18 -0
- package/dist/components/ValueInputTree/ValueInput/UndefinedValueInput.d.ts +5 -0
- package/dist/components/ValueInputTree/ValueInput/UndefinedValueInput.js +9 -0
- package/dist/components/ValueInputTree/ValueInput/UnserializableValueInput.d.ts +6 -0
- package/dist/components/ValueInputTree/ValueInput/UnserializableValueInput.js +11 -0
- package/dist/components/ValueInputTree/ValueInput/ValueInput.d.ts +11 -0
- package/dist/components/ValueInputTree/ValueInput/ValueInput.js +30 -0
- package/dist/components/ValueInputTree/ValueInput/shared.d.ts +6 -0
- package/dist/components/ValueInputTree/ValueInput/shared.js +41 -0
- package/dist/components/ValueInputTree/ValueInputDir.d.ts +9 -0
- package/dist/components/ValueInputTree/ValueInputDir.js +68 -0
- package/dist/components/ValueInputTree/ValueInputTree.d.ts +12 -0
- package/dist/components/ValueInputTree/ValueInputTree.js +32 -0
- package/dist/components/ValueInputTree/index.d.ts +4 -0
- package/dist/components/ValueInputTree/index.js +4 -0
- package/dist/components/ValueInputTree/shared.d.ts +16 -0
- package/dist/components/ValueInputTree/shared.js +15 -0
- package/dist/components/ValueInputTree/valueGroups.d.ts +8 -0
- package/dist/components/ValueInputTree/valueGroups.js +10 -0
- package/dist/components/ValueInputTree/valueTree.d.ts +3 -0
- package/dist/components/ValueInputTree/valueTree.js +20 -0
- package/dist/components/ValueInputTree/valueTreeExpansion.d.ts +7 -0
- package/dist/components/ValueInputTree/valueTreeExpansion.js +16 -0
- package/dist/components/buttons/Button32.d.ts +11 -0
- package/dist/components/buttons/Button32.js +8 -0
- package/dist/components/buttons/Button8.d.ts +11 -0
- package/dist/components/buttons/Button8.js +8 -0
- package/dist/components/buttons/IconButton32.d.ts +10 -0
- package/dist/components/buttons/IconButton32.js +7 -0
- package/dist/components/buttons/IconButton8.d.ts +10 -0
- package/dist/components/buttons/IconButton8.js +7 -0
- package/dist/components/buttons/index.d.ts +4 -0
- package/dist/components/buttons/index.js +4 -0
- package/dist/components/buttons/shared.d.ts +15 -0
- package/dist/components/buttons/shared.js +52 -0
- package/dist/components/icons/index.d.ts +33 -0
- package/dist/components/icons/index.js +107 -0
- package/dist/components/illustrations/ArtificialIntelligence.d.ts +3 -0
- package/dist/components/illustrations/ArtificialIntelligence.js +123 -0
- package/dist/components/illustrations/Astronaut.d.ts +3 -0
- package/dist/components/illustrations/Astronaut.js +72 -0
- package/dist/components/illustrations/BlankCanvas.d.ts +3 -0
- package/dist/components/illustrations/BlankCanvas.js +75 -0
- package/dist/components/inputs/NumberInput.d.ts +15 -0
- package/dist/components/inputs/NumberInput.js +79 -0
- package/dist/components/inputs/Select.d.ts +16 -0
- package/dist/components/inputs/Select.js +69 -0
- package/dist/components/inputs/shared.d.ts +14 -0
- package/dist/components/inputs/shared.js +43 -0
- package/dist/cosmos.decorator.d.ts +5 -0
- package/dist/cosmos.decorator.js +6 -0
- package/dist/cosmos.loadPlugins.d.ts +1 -0
- package/dist/cosmos.loadPlugins.js +17 -0
- package/dist/hooks/useDrag.d.ts +14 -0
- package/dist/hooks/useDrag.js +58 -0
- package/dist/hooks/useFocus.d.ts +5 -0
- package/dist/hooks/useFocus.js +7 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +36 -0
- package/dist/playground.bundle.js +1358 -0
- package/dist/playground.bundle.js.LICENSE.txt +64 -0
- package/dist/playground.bundle.js.map +1 -0
- package/dist/playground.d.ts +11 -0
- package/dist/playground.js +36 -0
- package/dist/playgroundConfig.d.ts +10 -0
- package/dist/playgroundConfig.js +1 -0
- package/dist/plugins/BuildNotifications/index.d.ts +2 -0
- package/dist/plugins/BuildNotifications/index.js +35 -0
- package/dist/plugins/BuildNotifications/spec.d.ts +3 -0
- package/dist/plugins/BuildNotifications/spec.js +1 -0
- package/dist/plugins/ClassStatePanel/ClassStatePanel/ComponentClassState.d.ts +10 -0
- package/dist/plugins/ClassStatePanel/ClassStatePanel/ComponentClassState.js +36 -0
- package/dist/plugins/ClassStatePanel/ClassStatePanel/index.d.ts +11 -0
- package/dist/plugins/ClassStatePanel/ClassStatePanel/index.js +13 -0
- package/dist/plugins/ClassStatePanel/ClassStatePanel/shared.d.ts +2 -0
- package/dist/plugins/ClassStatePanel/ClassStatePanel/shared.js +16 -0
- package/dist/plugins/ClassStatePanel/index.d.ts +2 -0
- package/dist/plugins/ClassStatePanel/index.js +30 -0
- package/dist/plugins/ClassStatePanel/shared.d.ts +1 -0
- package/dist/plugins/ClassStatePanel/shared.js +1 -0
- package/dist/plugins/ClassStatePanel/spec.d.ts +3 -0
- package/dist/plugins/ClassStatePanel/spec.js +1 -0
- package/dist/plugins/ContentOverlay/ContentOverlay.d.ts +13 -0
- package/dist/plugins/ContentOverlay/ContentOverlay.js +34 -0
- package/dist/plugins/ContentOverlay/KeyShortcut.d.ts +6 -0
- package/dist/plugins/ContentOverlay/KeyShortcut.js +30 -0
- package/dist/plugins/ContentOverlay/NoFixtureSelected.d.ts +5 -0
- package/dist/plugins/ContentOverlay/NoFixtureSelected.js +34 -0
- package/dist/plugins/ContentOverlay/RendererNotResponding.d.ts +1 -0
- package/dist/plugins/ContentOverlay/RendererNotResponding.js +109 -0
- package/dist/plugins/ContentOverlay/WelcomeCosmos.d.ts +5 -0
- package/dist/plugins/ContentOverlay/WelcomeCosmos.js +158 -0
- package/dist/plugins/ContentOverlay/cosmos.decorator.d.ts +5 -0
- package/dist/plugins/ContentOverlay/cosmos.decorator.js +13 -0
- package/dist/plugins/ContentOverlay/index.d.ts +2 -0
- package/dist/plugins/ContentOverlay/index.js +19 -0
- package/dist/plugins/ContentOverlay/shared.d.ts +9 -0
- package/dist/plugins/ContentOverlay/shared.js +75 -0
- package/dist/plugins/ContentOverlay/spec.d.ts +3 -0
- package/dist/plugins/ContentOverlay/spec.js +1 -0
- package/dist/plugins/ContentOverlay/welcomeDismiss.d.ts +7 -0
- package/dist/plugins/ContentOverlay/welcomeDismiss.js +17 -0
- package/dist/plugins/ControlPanel/ControlPanel.d.ts +8 -0
- package/dist/plugins/ControlPanel/ControlPanel.js +37 -0
- package/dist/plugins/ControlPanel/index.d.ts +2 -0
- package/dist/plugins/ControlPanel/index.js +17 -0
- package/dist/plugins/ControlPanel/spec.d.ts +6 -0
- package/dist/plugins/ControlPanel/spec.js +1 -0
- package/dist/plugins/ControlSelect/SelectValueInput.d.ts +8 -0
- package/dist/plugins/ControlSelect/SelectValueInput.js +15 -0
- package/dist/plugins/ControlSelect/index.d.ts +2 -0
- package/dist/plugins/ControlSelect/index.js +22 -0
- package/dist/plugins/ControlSelect/spec.d.ts +3 -0
- package/dist/plugins/ControlSelect/spec.js +1 -0
- package/dist/plugins/Core/index.d.ts +2 -0
- package/dist/plugins/Core/index.js +68 -0
- package/dist/plugins/Core/spec.d.ts +25 -0
- package/dist/plugins/Core/spec.js +1 -0
- package/dist/plugins/FixtureBookmark/BookmarkFixtureButton.d.ts +6 -0
- package/dist/plugins/FixtureBookmark/BookmarkFixtureButton.js +6 -0
- package/dist/plugins/FixtureBookmark/FixtureBookmarks.d.ts +10 -0
- package/dist/plugins/FixtureBookmark/FixtureBookmarks.js +123 -0
- package/dist/plugins/FixtureBookmark/index.d.ts +2 -0
- package/dist/plugins/FixtureBookmark/index.js +46 -0
- package/dist/plugins/FixtureBookmark/spec.d.ts +3 -0
- package/dist/plugins/FixtureBookmark/spec.js +1 -0
- package/dist/plugins/FixtureSearch/FixtureSearchHeader.d.ts +7 -0
- package/dist/plugins/FixtureSearch/FixtureSearchHeader.js +66 -0
- package/dist/plugins/FixtureSearch/FixtureSearchOverlay.d.ts +13 -0
- package/dist/plugins/FixtureSearch/FixtureSearchOverlay.js +312 -0
- package/dist/plugins/FixtureSearch/FixtureSearchResult.d.ts +9 -0
- package/dist/plugins/FixtureSearch/FixtureSearchResult.js +48 -0
- package/dist/plugins/FixtureSearch/FixtureSearchShortcuts.d.ts +1 -0
- package/dist/plugins/FixtureSearch/FixtureSearchShortcuts.js +60 -0
- package/dist/plugins/FixtureSearch/index.d.ts +2 -0
- package/dist/plugins/FixtureSearch/index.js +72 -0
- package/dist/plugins/FixtureSearch/spec.d.ts +7 -0
- package/dist/plugins/FixtureSearch/spec.js +1 -0
- package/dist/plugins/FixtureTree/BlankState.d.ts +8 -0
- package/dist/plugins/FixtureTree/BlankState.js +75 -0
- package/dist/plugins/FixtureTree/FixtureTree/FixtureButton.d.ts +12 -0
- package/dist/plugins/FixtureTree/FixtureTree/FixtureButton.js +16 -0
- package/dist/plugins/FixtureTree/FixtureTree/FixtureDir.d.ts +9 -0
- package/dist/plugins/FixtureTree/FixtureTree/FixtureDir.js +46 -0
- package/dist/plugins/FixtureTree/FixtureTree/FixtureLink.d.ts +9 -0
- package/dist/plugins/FixtureTree/FixtureTree/FixtureLink.js +34 -0
- package/dist/plugins/FixtureTree/FixtureTree/FixtureTree.d.ts +13 -0
- package/dist/plugins/FixtureTree/FixtureTree/FixtureTree.js +37 -0
- package/dist/plugins/FixtureTree/FixtureTree/FixtureTreeItem.d.ts +6 -0
- package/dist/plugins/FixtureTree/FixtureTree/FixtureTreeItem.js +24 -0
- package/dist/plugins/FixtureTree/FixtureTree/MultiFixtureButton.d.ts +13 -0
- package/dist/plugins/FixtureTree/FixtureTree/MultiFixtureButton.js +46 -0
- package/dist/plugins/FixtureTree/FixtureTree/MultiFixtureChildButton.d.ts +12 -0
- package/dist/plugins/FixtureTree/FixtureTree/MultiFixtureChildButton.js +26 -0
- package/dist/plugins/FixtureTree/FixtureTreeContainer.d.ts +14 -0
- package/dist/plugins/FixtureTree/FixtureTreeContainer.js +28 -0
- package/dist/plugins/FixtureTree/FixtureTreeHeader.d.ts +11 -0
- package/dist/plugins/FixtureTree/FixtureTreeHeader.js +33 -0
- package/dist/plugins/FixtureTree/index.d.ts +2 -0
- package/dist/plugins/FixtureTree/index.js +25 -0
- package/dist/plugins/FixtureTree/revealFixture.d.ts +3 -0
- package/dist/plugins/FixtureTree/revealFixture.js +48 -0
- package/dist/plugins/FixtureTree/shared.d.ts +7 -0
- package/dist/plugins/FixtureTree/shared.js +8 -0
- package/dist/plugins/FixtureTree/spec.d.ts +7 -0
- package/dist/plugins/FixtureTree/spec.js +1 -0
- package/dist/plugins/FixtureTree/useScrollToSelected.d.ts +6 -0
- package/dist/plugins/FixtureTree/useScrollToSelected.js +18 -0
- package/dist/plugins/FullScreenButton/FullScreenButton.d.ts +5 -0
- package/dist/plugins/FullScreenButton/FullScreenButton.js +6 -0
- package/dist/plugins/FullScreenButton/index.d.ts +2 -0
- package/dist/plugins/FullScreenButton/index.js +25 -0
- package/dist/plugins/FullScreenButton/spec.d.ts +3 -0
- package/dist/plugins/FullScreenButton/spec.js +1 -0
- package/dist/plugins/MessageHandler/index.d.ts +2 -0
- package/dist/plugins/MessageHandler/index.js +12 -0
- package/dist/plugins/MessageHandler/shared.d.ts +3 -0
- package/dist/plugins/MessageHandler/shared.js +1 -0
- package/dist/plugins/MessageHandler/socket.d.ts +4 -0
- package/dist/plugins/MessageHandler/socket.js +45 -0
- package/dist/plugins/MessageHandler/spec.d.ts +11 -0
- package/dist/plugins/MessageHandler/spec.js +1 -0
- package/dist/plugins/Notifications/Notifications.d.ts +6 -0
- package/dist/plugins/Notifications/Notifications.js +75 -0
- package/dist/plugins/Notifications/index.d.ts +2 -0
- package/dist/plugins/Notifications/index.js +36 -0
- package/dist/plugins/Notifications/pushNotification.d.ts +6 -0
- package/dist/plugins/Notifications/pushNotification.js +40 -0
- package/dist/plugins/Notifications/shared.d.ts +3 -0
- package/dist/plugins/Notifications/shared.js +1 -0
- package/dist/plugins/Notifications/spec.d.ts +22 -0
- package/dist/plugins/Notifications/spec.js +1 -0
- package/dist/plugins/PluginList/PluginList.d.ts +10 -0
- package/dist/plugins/PluginList/PluginList.js +38 -0
- package/dist/plugins/PluginList/index.d.ts +2 -0
- package/dist/plugins/PluginList/index.js +12 -0
- package/dist/plugins/PluginList/spec.d.ts +3 -0
- package/dist/plugins/PluginList/spec.js +1 -0
- package/dist/plugins/PropsPanel/BlankState.d.ts +3 -0
- package/dist/plugins/PropsPanel/BlankState.js +47 -0
- package/dist/plugins/PropsPanel/PropsPanel/ComponentProps.d.ts +10 -0
- package/dist/plugins/PropsPanel/PropsPanel/ComponentProps.js +40 -0
- package/dist/plugins/PropsPanel/PropsPanel/index.d.ts +11 -0
- package/dist/plugins/PropsPanel/PropsPanel/index.js +13 -0
- package/dist/plugins/PropsPanel/PropsPanel/shared.d.ts +2 -0
- package/dist/plugins/PropsPanel/PropsPanel/shared.js +16 -0
- package/dist/plugins/PropsPanel/index.d.ts +2 -0
- package/dist/plugins/PropsPanel/index.js +55 -0
- package/dist/plugins/PropsPanel/shared.d.ts +1 -0
- package/dist/plugins/PropsPanel/shared.js +1 -0
- package/dist/plugins/PropsPanel/spec.d.ts +3 -0
- package/dist/plugins/PropsPanel/spec.js +1 -0
- package/dist/plugins/RemoteRenderer/RemoteButton/copyToClipboard.d.ts +1 -0
- package/dist/plugins/RemoteRenderer/RemoteButton/copyToClipboard.js +24 -0
- package/dist/plugins/RemoteRenderer/RemoteButton/index.d.ts +8 -0
- package/dist/plugins/RemoteRenderer/RemoteButton/index.js +37 -0
- package/dist/plugins/RemoteRenderer/index.d.ts +2 -0
- package/dist/plugins/RemoteRenderer/index.js +36 -0
- package/dist/plugins/RemoteRenderer/shared.d.ts +3 -0
- package/dist/plugins/RemoteRenderer/shared.js +1 -0
- package/dist/plugins/RemoteRenderer/spec.d.ts +3 -0
- package/dist/plugins/RemoteRenderer/spec.js +1 -0
- package/dist/plugins/RendererCore/index.d.ts +2 -0
- package/dist/plugins/RendererCore/index.js +47 -0
- package/dist/plugins/RendererCore/isValidFixtureSelected.d.ts +2 -0
- package/dist/plugins/RendererCore/isValidFixtureSelected.js +16 -0
- package/dist/plugins/RendererCore/onRouterFixtureChange.d.ts +3 -0
- package/dist/plugins/RendererCore/onRouterFixtureChange.js +18 -0
- package/dist/plugins/RendererCore/receiveResponse/fixtureListUpdate.d.ts +3 -0
- package/dist/plugins/RendererCore/receiveResponse/fixtureListUpdate.js +11 -0
- package/dist/plugins/RendererCore/receiveResponse/fixtureStateChange.d.ts +3 -0
- package/dist/plugins/RendererCore/receiveResponse/fixtureStateChange.js +30 -0
- package/dist/plugins/RendererCore/receiveResponse/index.d.ts +3 -0
- package/dist/plugins/RendererCore/receiveResponse/index.js +20 -0
- package/dist/plugins/RendererCore/receiveResponse/playgroundCommand.d.ts +3 -0
- package/dist/plugins/RendererCore/receiveResponse/playgroundCommand.js +5 -0
- package/dist/plugins/RendererCore/receiveResponse/rendererReady.d.ts +3 -0
- package/dist/plugins/RendererCore/receiveResponse/rendererReady.js +49 -0
- package/dist/plugins/RendererCore/setFixtureState.d.ts +3 -0
- package/dist/plugins/RendererCore/setFixtureState.js +22 -0
- package/dist/plugins/RendererCore/shared/index.d.ts +4 -0
- package/dist/plugins/RendererCore/shared/index.js +1 -0
- package/dist/plugins/RendererCore/shared/postRequest.d.ts +5 -0
- package/dist/plugins/RendererCore/shared/postRequest.js +31 -0
- package/dist/plugins/RendererCore/shared/router.d.ts +2 -0
- package/dist/plugins/RendererCore/shared/router.js +3 -0
- package/dist/plugins/RendererCore/spec.d.ts +25 -0
- package/dist/plugins/RendererCore/spec.js +1 -0
- package/dist/plugins/RendererPreview/RendererPreview.d.ts +8 -0
- package/dist/plugins/RendererPreview/RendererPreview.js +25 -0
- package/dist/plugins/RendererPreview/checkRendererStatus.d.ts +2 -0
- package/dist/plugins/RendererPreview/checkRendererStatus.js +31 -0
- package/dist/plugins/RendererPreview/handleRendererRequests.d.ts +6 -0
- package/dist/plugins/RendererPreview/handleRendererRequests.js +76 -0
- package/dist/plugins/RendererPreview/handleWindowMessages.d.ts +2 -0
- package/dist/plugins/RendererPreview/handleWindowMessages.js +56 -0
- package/dist/plugins/RendererPreview/index.d.ts +2 -0
- package/dist/plugins/RendererPreview/index.js +49 -0
- package/dist/plugins/RendererPreview/shared.d.ts +9 -0
- package/dist/plugins/RendererPreview/shared.js +1 -0
- package/dist/plugins/RendererPreview/spec.d.ts +13 -0
- package/dist/plugins/RendererPreview/spec.js +1 -0
- package/dist/plugins/RendererSelect/index.d.ts +2 -0
- package/dist/plugins/RendererSelect/index.js +27 -0
- package/dist/plugins/RendererSelect/spec.d.ts +3 -0
- package/dist/plugins/RendererSelect/spec.js +1 -0
- package/dist/plugins/ResponsivePreview/ResponsivePreview/Header.d.ts +13 -0
- package/dist/plugins/ResponsivePreview/ResponsivePreview/Header.js +97 -0
- package/dist/plugins/ResponsivePreview/ResponsivePreview/ResponsivePreview.d.ts +14 -0
- package/dist/plugins/ResponsivePreview/ResponsivePreview/ResponsivePreview.js +152 -0
- package/dist/plugins/ResponsivePreview/ResponsivePreview/style.d.ts +45 -0
- package/dist/plugins/ResponsivePreview/ResponsivePreview/style.js +79 -0
- package/dist/plugins/ResponsivePreview/ToggleButton/index.d.ts +6 -0
- package/dist/plugins/ResponsivePreview/ToggleButton/index.js +6 -0
- package/dist/plugins/ResponsivePreview/index.d.ts +2 -0
- package/dist/plugins/ResponsivePreview/index.js +79 -0
- package/dist/plugins/ResponsivePreview/shared.d.ts +21 -0
- package/dist/plugins/ResponsivePreview/shared.js +19 -0
- package/dist/plugins/ResponsivePreview/spec.d.ts +13 -0
- package/dist/plugins/ResponsivePreview/spec.js +1 -0
- package/dist/plugins/Root/GlobalHeader.d.ts +9 -0
- package/dist/plugins/Root/GlobalHeader.js +59 -0
- package/dist/plugins/Root/RendererHeader.d.ts +16 -0
- package/dist/plugins/Root/RendererHeader.js +79 -0
- package/dist/plugins/Root/Root.d.ts +28 -0
- package/dist/plugins/Root/Root.js +120 -0
- package/dist/plugins/Root/SidePanel.d.ts +10 -0
- package/dist/plugins/Root/SidePanel.js +26 -0
- package/dist/plugins/Root/ToggleNavButton.d.ts +7 -0
- package/dist/plugins/Root/ToggleNavButton.js +6 -0
- package/dist/plugins/Root/index.d.ts +2 -0
- package/dist/plugins/Root/index.js +73 -0
- package/dist/plugins/Root/navOpen.d.ts +4 -0
- package/dist/plugins/Root/navOpen.js +11 -0
- package/dist/plugins/Root/navWidth.d.ts +5 -0
- package/dist/plugins/Root/navWidth.js +14 -0
- package/dist/plugins/Root/panelOpen.d.ts +4 -0
- package/dist/plugins/Root/panelOpen.js +16 -0
- package/dist/plugins/Root/panelWidth.d.ts +5 -0
- package/dist/plugins/Root/panelWidth.js +14 -0
- package/dist/plugins/Root/shared.d.ts +3 -0
- package/dist/plugins/Root/shared.js +1 -0
- package/dist/plugins/Root/spec.d.ts +14 -0
- package/dist/plugins/Root/spec.js +1 -0
- package/dist/plugins/Router/index.d.ts +2 -0
- package/dist/plugins/Router/index.js +56 -0
- package/dist/plugins/Router/spec.d.ts +15 -0
- package/dist/plugins/Router/spec.js +1 -0
- package/dist/plugins/StandardControl/index.d.ts +2 -0
- package/dist/plugins/StandardControl/index.js +43 -0
- package/dist/plugins/StandardControl/spec.d.ts +3 -0
- package/dist/plugins/StandardControl/spec.js +1 -0
- package/dist/plugins/StandardControl/storage.d.ts +7 -0
- package/dist/plugins/StandardControl/storage.js +10 -0
- package/dist/plugins/Storage/index.d.ts +2 -0
- package/dist/plugins/Storage/index.js +40 -0
- package/dist/plugins/Storage/spec.d.ts +18 -0
- package/dist/plugins/Storage/spec.js +1 -0
- package/dist/plugins/pluginEntry.d.ts +23 -0
- package/dist/plugins/pluginEntry.js +29 -0
- package/dist/shared/defaultPluginConfig.d.ts +13 -0
- package/dist/shared/defaultPluginConfig.js +13 -0
- package/dist/shared/fixtureTree.d.ts +3 -0
- package/dist/shared/fixtureTree.js +12 -0
- package/dist/shared/treeExpansion.d.ts +7 -0
- package/dist/shared/treeExpansion.js +24 -0
- package/dist/shared/url.d.ts +5 -0
- package/dist/shared/url.js +33 -0
- package/dist/slots/ControlActionSlot.d.ts +10 -0
- package/dist/slots/ControlActionSlot.js +5 -0
- package/dist/slots/ControlSlot.d.ts +11 -0
- package/dist/slots/ControlSlot.js +5 -0
- package/dist/slots/FixtureActionSlot.d.ts +10 -0
- package/dist/slots/FixtureActionSlot.js +5 -0
- package/dist/slots/NavRowSlot.d.ts +9 -0
- package/dist/slots/NavRowSlot.js +5 -0
- package/dist/slots/RendererActionSlot.d.ts +10 -0
- package/dist/slots/RendererActionSlot.js +5 -0
- package/dist/slots/SidePanelRowSlot.d.ts +12 -0
- package/dist/slots/SidePanelRowSlot.js +5 -0
- package/dist/slots/ValueInputSlot.d.ts +16 -0
- package/dist/slots/ValueInputSlot.js +5 -0
- package/dist/style/colors.d.ts +37 -0
- package/dist/style/colors.js +43 -0
- package/dist/style/globalStyle.d.ts +2 -0
- package/dist/style/globalStyle.js +49 -0
- package/dist/style/vars.d.ts +2 -0
- package/dist/style/vars.js +2 -0
- package/dist/testHelpers/pluginHelpers.d.ts +5 -0
- package/dist/testHelpers/pluginHelpers.js +25 -0
- package/dist/testHelpers/pluginMocks.d.ts +116 -0
- package/dist/testHelpers/pluginMocks.js +139 -0
- package/package.json +24 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { screenGrey4, screenGrey5, screenPrimary3, } from '../../style/colors.js';
|
|
3
|
+
import { Illustration } from '../Illustration.js';
|
|
4
|
+
export const AstronautIllustration = ({ title }) => (React.createElement(Illustration, { viewBox: "0 0 995.79 756.3" },
|
|
5
|
+
React.createElement("defs", null,
|
|
6
|
+
React.createElement("linearGradient", { id: "afc558c8-c8c4-43a0-9ff8-36c738bcadf8", x1: "263.72", y1: "238.68", x2: "263.72", y2: "208.45", gradientUnits: "userSpaceOnUse" },
|
|
7
|
+
React.createElement("stop", { offset: "0", stopColor: screenGrey4, stopOpacity: "0.25" }),
|
|
8
|
+
React.createElement("stop", { offset: "0.54", stopColor: screenGrey4, stopOpacity: "0.12" }),
|
|
9
|
+
React.createElement("stop", { offset: "1", stopColor: screenGrey4, stopOpacity: "0.1" })),
|
|
10
|
+
React.createElement("linearGradient", { id: "be82fdd5-66ab-49fc-8aef-9500b2c1a08e", x1: "537.72", y1: "134.68", x2: "537.72", y2: "104.45", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
11
|
+
React.createElement("linearGradient", { id: "b48d588d-308d-4a6b-9b06-bb920dd362b3", x1: "814.72", y1: "181.68", x2: "814.72", y2: "151.45", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
12
|
+
React.createElement("linearGradient", { id: "fc40df44-a3eb-403a-93a3-c2e14ff8183d", x1: "358.87", y1: "217.6", x2: "358.87", y2: "193.82", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
13
|
+
React.createElement("linearGradient", { id: "b9a74a8c-4f86-4b12-a01e-b38b12640f79", x1: "708.87", y1: "160.6", x2: "708.87", y2: "136.82", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
14
|
+
React.createElement("linearGradient", { id: "e1cc7b1e-4a38-4d88-bc31-d957dc0e789b", x1: "909.87", y1: "160.6", x2: "909.87", y2: "136.82", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
15
|
+
React.createElement("linearGradient", { id: "a786e464-0004-4162-bf9c-1c77ea556f3f", x1: "343.18", y1: "57.12", x2: "343.18", y2: "44.98", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
16
|
+
React.createElement("linearGradient", { id: "ed7113af-a3f6-4b83-ad2a-4145c0897ac0", x1: "344.18", y1: "133.12", x2: "344.18", y2: "120.98", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
17
|
+
React.createElement("linearGradient", { id: "bcce56f4-6100-452c-94c0-0e4dd07d63d7", x1: "663.18", y1: "41.12", x2: "663.18", y2: "28.98", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
18
|
+
React.createElement("linearGradient", { id: "f80e6619-6a6a-4d27-b58b-13c487a3d966", x1: "802.18", y1: "149.12", x2: "802.18", y2: "136.98", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
19
|
+
React.createElement("linearGradient", { id: "f9495c88-7725-4ca5-9368-72e54c981d92", x1: "490.73", y1: "580.9", x2: "490.73", y2: "313.1", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
20
|
+
React.createElement("linearGradient", { id: "b82d2768-795c-4dc2-9de8-934b40644624", x1: "592.83", y1: "800.34", x2: "592.83", y2: "416.27", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
21
|
+
React.createElement("linearGradient", { id: "e991d392-04f4-4018-b9d8-24ee41179e03", x1: "593.61", y1: "431.93", x2: "593.61", y2: "298.81", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
22
|
+
React.createElement("linearGradient", { id: "f4033a33-768d-491b-9f07-cdde246aef8f", x1: "551.03", y1: "816.05", x2: "551.03", y2: "767.07", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
23
|
+
React.createElement("linearGradient", { id: "bd26dae2-ae14-4e05-844d-7f17be67c7f9", x1: "635.59", y1: "816.05", x2: "635.59", y2: "767.07", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
24
|
+
React.createElement("linearGradient", { id: "a2f70ec8-8dd0-4c65-80e1-e3da54a3f4f7", x1: "745.34", y1: "828.15", x2: "745.34", y2: "252.93", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
25
|
+
React.createElement("linearGradient", { id: "e5b0ae8b-f5f0-41eb-bef6-53438e13ac16", x1: "924.91", y1: "439.7", x2: "924.91", y2: "234.67", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
26
|
+
React.createElement("linearGradient", { id: "f0273ade-576a-4ad8-9a6f-7fc7971c2987", x1: "436.34", y1: "828.15", x2: "436.34", y2: "252.93", gradientTransform: "matrix(-1, 0, 0, 1, 891, 0)", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
27
|
+
React.createElement("linearGradient", { id: "e88a7565-ba81-4ab7-95f1-6629f0af5c08", x1: "615.91", y1: "439.7", x2: "615.91", y2: "234.67", gradientTransform: "matrix(-1, 0, 0, 1, 891, 0)", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
28
|
+
React.createElement("linearGradient", { id: "bf514d7a-d100-48d8-89e1-e526b58397db", x1: "492.29", y1: "513.56", x2: "492.29", y2: "403.93", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
29
|
+
React.createElement("linearGradient", { id: "a76115cf-cd8c-4176-9a3c-9a73b10c4903", x1: "798.43", y1: "18.6", x2: "798.43", y2: "0", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
30
|
+
React.createElement("linearGradient", { id: "a32a47df-12b4-443d-9765-8cd8524a5228", x1: "765.43", y1: "143.6", x2: "765.43", y2: "125", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
31
|
+
React.createElement("linearGradient", { id: "be475b5a-0363-4725-9e86-39c6835f7bb0", x1: "630.43", y1: "160.6", x2: "630.43", y2: "142", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
32
|
+
React.createElement("linearGradient", { id: "ba4f5741-eaf0-4ada-8124-dbf7ca11ac85", x1: "545.43", y1: "61.6", x2: "545.43", y2: "43", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
33
|
+
React.createElement("linearGradient", { id: "ed21139e-2a95-41cd-b755-047a620bfa49", x1: "436.43", y1: "115.6", x2: "436.43", y2: "97", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
34
|
+
React.createElement("linearGradient", { id: "e90eae1c-1fda-4179-aacd-c7bc40fa73b9", x1: "247.43", y1: "75.6", x2: "247.43", y2: "57", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
35
|
+
React.createElement("linearGradient", { id: "abb092bc-1b17-4de6-b635-8e2be4eed0bd", x1: "214.43", y1: "234.6", x2: "214.43", y2: "216", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
36
|
+
React.createElement("linearGradient", { id: "e8540004-522d-4b52-801f-b41ff9acf3f2", x1: "736.95", y1: "40.66", x2: "736.95", y2: "30.61", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
37
|
+
React.createElement("linearGradient", { id: "a5f9757d-6ad9-4e45-a734-ac7d7f2fecf7", x1: "185.95", y1: "97.66", x2: "185.95", y2: "87.61", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
38
|
+
React.createElement("linearGradient", { id: "a1b47319-948d-4901-bb26-91f5cee31525", x1: "250.95", y1: "224.66", x2: "250.95", y2: "214.61", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
39
|
+
React.createElement("linearGradient", { id: "b1659724-cb8a-4fa8-b312-9f444de5ed18", x1: "364.95", y1: "207.66", x2: "364.95", y2: "197.61", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" }),
|
|
40
|
+
React.createElement("linearGradient", { id: "ec4cfa8f-50ab-441a-b17a-cb383eba365e", x1: "529.95", y1: "128.66", x2: "529.95", y2: "118.61", xlinkHref: "#afc558c8-c8c4-43a0-9ff8-36c738bcadf8" })),
|
|
41
|
+
React.createElement("title", null, title),
|
|
42
|
+
React.createElement("rect", { x: "411.64", y: "313.1", width: "158.17", height: "267.8", rx: "13", fill: "url(#f9495c88-7725-4ca5-9368-72e54c981d92)" }),
|
|
43
|
+
React.createElement("rect", { x: "416.17", y: "318.74", width: "150.17", height: "255.21", rx: "13", fill: screenPrimary3 }),
|
|
44
|
+
React.createElement("polyline", { points: "416.17 664.36 482.49 664.36 466.18 730.97", fill: "none" }),
|
|
45
|
+
React.createElement("polygon", { points: "536.72 380.06 450.94 381.83 427.19 354.54 555.07 352.24 536.72 380.06", fill: screenGrey5 }),
|
|
46
|
+
React.createElement("polygon", { points: "555.07 354.37 427.19 354.37 452.71 340.72 527.86 338.24 555.07 354.37", fill: screenGrey5 }),
|
|
47
|
+
React.createElement("path", { d: "M751.58,462.48c-12.09-5.36-28.3,2-31.74,14.37-9.09-25.88-31.1-47-57.54-56.54-4.37-1.58-16.5-6.39-19.86-2.64-1.56,1.74-4.57,8.61-4.38,14.34H548.13c0-1.12,0-2.24,0-3.36,0-13.07-10.51-13.52-23.21-10.47a70.4,70.4,0,0,0-29.63,15.92c-13.51,11.91-22.9,27.45-32.08,42.72l-16-15.89c-1.76-1.75-3.86-3.63-6.39-3.51-2.68.13-4.62,2.44-6.18,4.54-7.06,9.52-14.34,19.53-16,31.12-1.66,11.41,2.31,22.81,6.23,33.69,3.82,10.64,8.9,25.68,19.89,29.47,11.83,4.09,24.31,4.57,34.55-2.44,16-11,32.49-22.37,44.17-37.42V630.64h1.35l-11,169.7,73.54-.38,5.25-169.32h2.16L598.31,800l74.82.38-11.21-169.7h2.32V515.24l2,1.66,36.29,30.35c7.55,6.32,16.19,13,26.17,12.51,7.17-.36,13.67-12.38,18.25-17.71s7.55-11.75,10.46-18.09c4.82-10.49,9.73-21.33,10.06-32.8S762.4,467.27,751.58,462.48Z", transform: "translate(-102.11 -71.85)", fill: "url(#b82d2768-795c-4dc2-9de8-934b40644624)" }),
|
|
48
|
+
React.createElement("path", { d: "M744.7,465.12c-11.57-5.31-27.07,2-30.36,14.27-8.7-25.69-29.75-46.61-55-56.1-4.19-1.57-14.29-6.34-17.5-2.63-1.5,1.73-1.38,8.55-1.2,14.24h-95c0-1.12,0-2.23,0-3.34-.05-13-5.57-13.41-17.72-10.38-10.59,2.64-20.33,8.46-28.34,15.79-12.93,11.82-21.91,27.23-30.68,42.39l-15.32-15.77c-1.69-1.73-3.7-3.61-6.12-3.49s-4.41,2.42-5.91,4.51c-6.75,9.45-13.71,19.38-15.33,30.88-1.59,11.32,2.21,22.63,5.95,33.43,3.66,10.55,8.52,22.36,19,26.13,11.31,4.05,23.25-3.24,33-10.19,15.34-10.88,31.07-22.2,42.25-37.13V632h1.29l-10.5,168.37h67.34l8-168.37h2.06l6.22,168.37h68.76L658.94,632h2.21V509.71l1.89,1.64,34.71,30.11c7.22,6.27,15.49,12.92,25,12.42,6.87-.36,13.08-4.52,17.47-9.81s7.22-11.66,10-17.94c4.61-10.41,9.31-21.16,9.62-32.55S755.05,469.88,744.7,465.12Z", transform: "translate(-102.11 -71.85)", fill: "#fff" }),
|
|
49
|
+
React.createElement("path", { d: "M668.79,348.62H655.31c-7.93-29.27-32.62-49.81-61.87-49.81s-53.93,20.54-61.86,49.81H518.44V379h11.24c4.84,31.84,31.54,52.94,63.76,52.94s58.93-21.1,63.77-52.94h11.58Z", transform: "translate(-102.11 -71.85)", fill: "url(#e991d392-04f4-4018-b9d8-24ee41179e03)" }),
|
|
50
|
+
React.createElement("path", { d: "M665,350.54h-12.8c-7.53-26.66-31-48.21-58.77-48.21s-51.23,21.55-58.77,48.21H522.21v27.64h10.67c4.6,29,30,48.21,60.57,48.21s56-19.22,60.58-48.21h11Z", transform: "translate(-102.11 -71.85)", fill: "#fff" }),
|
|
51
|
+
React.createElement("circle", { cx: "490.99", cy: "297.12", r: "49.62", fill: screenPrimary3 }),
|
|
52
|
+
React.createElement("path", { d: "M588.92,802.13c0,16.57-17,13.73-37.89,13.73s-37.89,2.84-37.89-13.73,17-35.06,37.89-35.06S588.92,785.56,588.92,802.13Z", transform: "translate(-102.11 -71.85)", fill: "url(#f4033a33-768d-491b-9f07-cdde246aef8f)" }),
|
|
53
|
+
React.createElement("path", { d: "M673.48,802.13c0,16.57-17,13.73-37.89,13.73s-37.89,2.84-37.89-13.73,17-35.06,37.89-35.06S673.48,785.56,673.48,802.13Z", transform: "translate(-102.11 -71.85)", fill: "url(#bd26dae2-ae14-4e05-844d-7f17be67c7f9)" }),
|
|
54
|
+
React.createElement("path", { d: "M586.11,801.23c0,15.17-15.71,12.58-35.08,12.58s-35.09,2.59-35.09-12.58,15.71-32.08,35.09-32.08S586.11,786.06,586.11,801.23Z", transform: "translate(-102.11 -71.85)", fill: screenGrey4 }),
|
|
55
|
+
React.createElement("path", { d: "M671.18,801.23c0,15.17-15.71,12.57-35.08,12.57S601,816.53,601,801.36s15.71-32.09,35.09-32.08S671.18,786.06,671.18,801.23Z", transform: "translate(-102.11 -71.85)", fill: screenGrey4 }),
|
|
56
|
+
React.createElement("path", { d: "M758.05,265.64a12.72,12.72,0,1,0-21.92,8.76V823.6a4.56,4.56,0,0,0,4.55,4.55h8.13a4.57,4.57,0,0,0,4.55-4.55V275.51A12.69,12.69,0,0,0,758.05,265.64Z", transform: "translate(-102.11 -71.85)", fill: "url(#a2f70ec8-8dd0-4c65-80e1-e3da54a3f4f7)" }),
|
|
57
|
+
React.createElement("path", { d: "M756.5,265.64a11.17,11.17,0,1,0-17,9.5V821A4.55,4.55,0,0,0,744,825.5h3.25a4.56,4.56,0,0,0,4.55-4.54V274.71A11.15,11.15,0,0,0,756.5,265.64Z", transform: "translate(-102.11 -71.85)", fill: screenGrey5 }),
|
|
58
|
+
React.createElement("path", { d: "M738.29,472.72c-2,3.09-6,5.66-9.33,4-2.68-1.33-3.54-4.69-3.88-7.66a61.27,61.27,0,0,1,.95-19.94c.86-4,2.69-8.47,6.62-9.52,2.46-.65,5.07.28,7.23,1.63s4,3.1,6.23,4.37c4.24,2.44,9.4,2.88,14.24,2.17,2.4-.35,4.76-1,7.17-1.17a11.94,11.94,0,0,1,7.05,1.23,6.37,6.37,0,0,1,3.32,6c-.3,2.41-2.84,4.45-5.17,3.77a14.85,14.85,0,0,1,5.18,4.71,6.73,6.73,0,0,1,.38,6.71c-1.2,2-4.16,3-6.07,1.61,1.95,1.6,4,3.3,4.88,5.65s.17,5.53-2.18,6.45a20.37,20.37,0,0,1-3,.56c-1,.24-2,.92-2.13,1.95-.09,1.19,1.1,2,1.8,3,1.57,2.12.7,5.31-1.19,7.14s-4.52,2.65-7,3.41c-3.76,1.13-7.52,2.26-11.3,3.32-4.14,1.16-8.48,2.24-12.68,1.34a13.86,13.86,0,0,1-5.16-24.83c2.07-1.48,2.45-4,4.12-5.89a12.78,12.78,0,0,0,3.05-8.77c0-4.72,1.8-9.28.7-13.87-.26,0-.45.05-.71.1C741.14,458.07,743,465.57,738.29,472.72Z", transform: "translate(-102.11 -71.85)", fill: screenPrimary3 }),
|
|
59
|
+
React.createElement("path", { d: "M1097.89,402.18c-115.32-130-230.64,130-346,0v-130c115.32,130,230.64-130,346,0Z", transform: "translate(-102.11 -71.85)", fill: "url(#e5b0ae8b-f5f0-41eb-bef6-53438e13ac16)" }),
|
|
60
|
+
React.createElement("path", { d: "M1094.18,397.32C980.1,278.94,866,515.71,751.93,397.32V278.94c114.08,118.38,228.17-118.39,342.25,0Z", transform: "translate(-102.11 -71.85)", fill: screenPrimary3 }),
|
|
61
|
+
React.createElement("path", { d: "M442,265.64a12.72,12.72,0,1,1,21.92,8.76V823.6a4.56,4.56,0,0,1-4.55,4.55h-8.13a4.57,4.57,0,0,1-4.55-4.55V275.51A12.69,12.69,0,0,1,442,265.64Z", transform: "translate(-102.11 -71.85)", fill: "url(#f0273ade-576a-4ad8-9a6f-7fc7971c2987)" }),
|
|
62
|
+
React.createElement("path", { d: "M443.5,265.64a11.17,11.17,0,1,1,17,9.5V821A4.55,4.55,0,0,1,456,825.5h-3.25a4.56,4.56,0,0,1-4.55-4.54V274.71A11.15,11.15,0,0,1,443.5,265.64Z", transform: "translate(-102.11 -71.85)", fill: screenGrey5 }),
|
|
63
|
+
React.createElement("path", { d: "M102.11,402.18c115.32,130,230.64-130,346,0v-130c-115.32-130-230.64,130-346,0Z", transform: "translate(-102.11 -71.85)", fill: "url(#e88a7565-ba81-4ab7-95f1-6629f0af5c08)" }),
|
|
64
|
+
React.createElement("path", { d: "M105.82,397.32c114.08,118.39,228.17-118.38,342.25,0V278.94C334,160.55,219.9,397.32,105.82,278.94Z", transform: "translate(-102.11 -71.85)", fill: screenPrimary3 }),
|
|
65
|
+
React.createElement("rect", { x: "441.39", y: "403.93", width: "101.8", height: "109.63", rx: "6.38", fill: "url(#bf514d7a-d100-48d8-89e1-e526b58397db)" }),
|
|
66
|
+
React.createElement("rect", { x: "443.48", y: "407.32", width: "97.13", height: "102.82", rx: "6.38", fill: screenPrimary3 }),
|
|
67
|
+
React.createElement("rect", { x: "456.08", y: "426.88", width: "17.8", height: "47.46", opacity: "0.2" }),
|
|
68
|
+
React.createElement("rect", { x: "494.72", y: "444.2", width: "23.41", height: "16.02", opacity: "0.2" }),
|
|
69
|
+
React.createElement("rect", { x: "511.73", y: "418.88", width: "12.94", height: "11.51", opacity: "0.2" }),
|
|
70
|
+
React.createElement("circle", { cx: "519.08", cy: "482.23", r: "14.09", opacity: "0.2" }),
|
|
71
|
+
React.createElement("path", { d: "M599.36,330.31A49.55,49.55,0,0,1,639,350.05a49.63,49.63,0,1,0-85.5,48.8,49.64,49.64,0,0,1,45.88-68.54Z", transform: "translate(-102.11 -71.85)", opacity: "0.2" }),
|
|
72
|
+
React.createElement("path", { d: "M467.71,472.72c2.05,3.09,6,5.66,9.33,4,2.68-1.33,3.54-4.69,3.88-7.66a61.27,61.27,0,0,0-.95-19.94c-.86-4-2.69-8.47-6.62-9.52-2.46-.65-5.07.28-7.23,1.63s-4,3.1-6.23,4.37c-4.24,2.44-9.4,2.88-14.24,2.17-2.4-.35-4.76-1-7.17-1.17a11.94,11.94,0,0,0-7.05,1.23,6.37,6.37,0,0,0-3.32,6c.3,2.41,2.84,4.45,5.17,3.77a14.85,14.85,0,0,0-5.18,4.71,6.73,6.73,0,0,0-.38,6.71c1.2,2,4.16,3,6.07,1.61-2,1.6-4,3.3-4.88,5.65s-.17,5.53,2.18,6.45a20.37,20.37,0,0,0,3,.56c1,.24,2.05.92,2.13,1.95.09,1.19-1.1,2-1.8,3-1.57,2.12-.7,5.31,1.19,7.14s4.52,2.65,7,3.41c3.76,1.13,7.52,2.26,11.3,3.32,4.14,1.16,8.48,2.24,12.68,1.34a13.86,13.86,0,0,0,5.16-24.83c-2.07-1.48-2.45-4-4.12-5.89a12.78,12.78,0,0,1-3-8.77c0-4.72-1.8-9.28-.7-13.87.26,0,.45.05.71.1C464.86,458.07,463,465.57,467.71,472.72Z", transform: "translate(-102.11 -71.85)", fill: screenPrimary3 })));
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { screenPrimary3 } from '../../style/colors.js';
|
|
3
|
+
import { Illustration } from '../Illustration.js';
|
|
4
|
+
export const BlankCanvasIllustration = ({ title }) => (React.createElement(Illustration, { viewBox: "0 0 998.95 833.99" },
|
|
5
|
+
React.createElement("defs", null,
|
|
6
|
+
React.createElement("linearGradient", { id: "8849c9b4-5ff8-40d0-8d32-f1e3227b06d9", x1: "499.14", y1: "857.42", x2: "499.14", y2: "171.42", gradientUnits: "userSpaceOnUse" },
|
|
7
|
+
React.createElement("stop", { offset: "0", stopColor: "gray", stopOpacity: "0.25" }),
|
|
8
|
+
React.createElement("stop", { offset: "0.54", stopColor: "gray", stopOpacity: "0.12" }),
|
|
9
|
+
React.createElement("stop", { offset: "1", stopColor: "gray", stopOpacity: "0.1" }))),
|
|
10
|
+
React.createElement("title", null, title),
|
|
11
|
+
React.createElement("path", { d: "M424.35,62.67c29.21-26,75.06-31.33,116.8-29.26,131.09,6.52,249.42,69.8,351.78,141.39,37.06,25.91,73.54,53.84,97.59,89.53,49,72.65,34.44,173.29-33.64,233.14-23.17,20.36-51.25,36-80.08,49.81-51.26,24.6-106.57,44.35-164.75,50-41.48,4-83.48.75-124.73-4.84C472.09,576.78,359,542.22,264.17,483.1,222.59,457.17,183.4,424.93,166.26,383S160.09,287.87,202.55,263c17.56-10.27,38.56-14.91,59.11-19.27,30.26-6.41,61-12.73,88.3-25.76,28.21-13.46,61.6-39.49,56-69.29C400,116.75,395.18,88.67,424.35,62.67Z", transform: "translate(-100.52 -33.01)", fill: screenPrimary3, opacity: "0.1" }),
|
|
12
|
+
React.createElement("ellipse", { cx: "374.17", cy: "814.05", rx: "118.88", ry: "19.93", fill: screenPrimary3, opacity: "0.1" }),
|
|
13
|
+
React.createElement("ellipse", { cx: "608.16", cy: "661.06", rx: "118.88", ry: "19.93", fill: screenPrimary3, opacity: "0.1" }),
|
|
14
|
+
React.createElement("polygon", { points: "616.05 398.03 615.94 401.92 609.18 640.44 597.82 640.44 603.39 401.92 603.5 397.43 616.05 398.03", fill: "#b77b7f" }),
|
|
15
|
+
React.createElement("polygon", { points: "681.82 600.09 673.31 600.07 546.87 599.8 540.13 599.79 543.72 588.73 680.92 588.73 681.82 600.09", fill: "#dda2a6" }),
|
|
16
|
+
React.createElement("polygon", { points: "616.05 398.03 615.94 401.92 603.39 401.92 603.5 397.43 616.05 398.03", opacity: "0.1" }),
|
|
17
|
+
React.createElement("rect", { x: "599.77", y: "392.2", width: "21.07", height: "7.93", fill: "#b77b7f" }),
|
|
18
|
+
React.createElement("polygon", { points: "547.99 588.73 546.87 599.8 540.13 599.79 543.72 588.73 547.99 588.73", opacity: "0.1" }),
|
|
19
|
+
React.createElement("polygon", { points: "566.14 392.05 565.79 395.49 537.74 672.13 524.89 671.52 554.45 395.49 554.78 392.35 566.14 392.05", fill: "#dda2a6" }),
|
|
20
|
+
React.createElement("polygon", { points: "681.82 600.09 673.31 600.07 672.16 588.73 680.92 588.73 681.82 600.09", opacity: "0.1" }),
|
|
21
|
+
React.createElement("polygon", { points: "695.27 671.52 682.41 672.13 654.37 395.49 654.02 392.05 665.37 392.35 665.7 395.49 695.27 671.52", fill: "#dda2a6" }),
|
|
22
|
+
React.createElement("rect", { x: "466.6", y: "119.3", width: "283.36", height: "271.7", fill: "#fff" }),
|
|
23
|
+
React.createElement("path", { d: "M714.33,61.44v65.61H703.28V61.44a5.53,5.53,0,1,1,11.05,0Z", transform: "translate(-100.52 -33.01)", fill: "#dda2a6" }),
|
|
24
|
+
React.createElement("rect", { x: "602.75", y: "88.07", width: "11.06", height: "5.97", opacity: "0.1" }),
|
|
25
|
+
React.createElement("path", { d: "M718.67,125.56v21.66H699V125.56a2.68,2.68,0,0,1,2.69-2.69H716A2.69,2.69,0,0,1,718.67,125.56Z", transform: "translate(-100.52 -33.01)", fill: "#dda2a6" }),
|
|
26
|
+
React.createElement("circle", { cx: "608.28", cy: "103.61", r: "4.18", opacity: "0.1" }),
|
|
27
|
+
React.createElement("circle", { cx: "608.28", cy: "102.71", r: "4.18", fill: "#b77b7f" }),
|
|
28
|
+
React.createElement("rect", { x: "598.42", y: "111.53", width: "19.73", height: "2.69", opacity: "0.1" }),
|
|
29
|
+
React.createElement("rect", { x: "590.35", y: "115.12", width: "35.87", height: "5.98", opacity: "0.1" }),
|
|
30
|
+
React.createElement("rect", { x: "590.35", y: "113.32", width: "35.87", height: "5.98", fill: "#dda2a6" }),
|
|
31
|
+
React.createElement("path", { d: "M535.72,384H686.37a6.5,6.5,0,0,1,6.5,6.5v1.42a0,0,0,0,1,0,0H529.22a0,0,0,0,1,0,0v-1.42A6.5,6.5,0,0,1,535.72,384Z", opacity: "0.1" }),
|
|
32
|
+
React.createElement("polygon", { points: "554.78 392.35 566.14 392.05 565.79 395.49 554.45 395.49 554.78 392.35", opacity: "0.1" }),
|
|
33
|
+
React.createElement("rect", { x: "599.77", y: "392.2", width: "21.07", height: "3.29", opacity: "0.1" }),
|
|
34
|
+
React.createElement("polygon", { points: "665.7 395.49 654.37 395.49 654.02 392.05 665.37 392.35 665.7 395.49", opacity: "0.1" }),
|
|
35
|
+
React.createElement("path", { d: "M535.72,385.77H686.37a6.5,6.5,0,0,1,6.5,6.5v1.42a0,0,0,0,1,0,0H529.22a0,0,0,0,1,0,0v-1.42A6.5,6.5,0,0,1,535.72,385.77Z", fill: "#dda2a6" }),
|
|
36
|
+
React.createElement("path", { d: "M603.21,292.64c-2.27-1.2-27-19.88-27-19.88l-39.91-25.31s-.21-.6-.59-1.63c10.95-12.43,8.56-30.47-2.58-43.15-13.5-15.38-74.5-48.49-92.88-20.17-2.57,4-2.66,8.54-3.33,12.94-1.57,10.27-6.63,20.22-14.57,28.6-6.12,6.47-14.15,12.43-17.67,19.75,0-.09-.07-.18-.1-.28a18.36,18.36,0,0,0-1.83,5C401,257.44,407,266,410.19,274.69a47.5,47.5,0,0,1,2.32,9.08c.08-.62.15-1.23.22-1.85a58.06,58.06,0,0,1,.79,13.36c-22.15,4.51-22.16,42.4-22.16,42.4s-2.73,15.06-2.27,20.49.45,17.17.45,20-2.73,20.48-3,22.6a.51.51,0,0,1,0,.09c-.4,2.32-4.55,13.5,5.48,16,.7.18,1.44.33,2.21.47.43,9.05,1.21,28,.52,32.22,0,0,3.65,25.46,6.68,31.93a73.44,73.44,0,0,0,6.7,10.82,11.92,11.92,0,0,1-1.54,4.39c-1.55,2.23-.75,4.06,1.84,4.85-.09.77-.19,1.64-.3,2.62-1.11,9.82-2.77,29.34.05,39.23,3.87,13.56,4.1,18.08,4.1,18.08s0,4.06,1.6,6.32,4.55,23.28,4.55,26.67,7.74,33.89,5.46,41.12-.45,17.4-.45,17.4-1.37,17.85-3,21.69-2.28,65.75.22,81.79,4.1,29.37,4.1,29.37-1.59,14.69-.23,16.72,3.87,14.24,2.05,14.91-2.73,5.65-2.73,5.65a50.39,50.39,0,0,0,3.11,4.23,17,17,0,0,1-2.05-.87c.72,1,1.8,2.42,3.13,4l-1.25,16.25a2.72,2.72,0,0,0,2,2.85,22.87,22.87,0,0,0,22.62-6.36c11.38-11.52,15.25-9.94,17.3-16.94.22-.75.41-1.49.57-2.19,1.47-6.24-5.18-10.88-10.47-8.22.73-4.94,1.3-10.55.75-13.72-1.14-6.55-.91-23.72-.91-23.72l-1.59-82.25s2.95-16.27,6.37-22.59,3-28.47,3-28.47l3.87-72.76,3.64-35.47s3.64-12.2,8.19,1.36c0,0-2.5,27.33-1.36,33.89s2.73,38.41,1.59,45.41-6.14,45.42-3,55.13S486,694.15,485.3,698s-3,87.21-3,87.21,6.15,16,1.6,21.24-.23,26-.23,26,.55.39,1.49.93l-.13,1.73-1.43,18.69a2.74,2.74,0,0,0,2,2.86,22.86,22.86,0,0,0,22.62-6.36c11.38-11.53,15.25-9.94,17.3-16.95.22-.75.41-1.48.58-2.19,1.6-6.81-6.5-11.75-11.92-7.3l-.27.23a9.41,9.41,0,0,1-.89.67,4.3,4.3,0,0,1-.45.29c1.14-5.16,2.8-14,2-18.14-1.14-6.1,1.13-24.62,1.13-24.62s6.6-22.15,6.83-31l1.82-70.49s-.22-28.7.69-35.7,8.19-67.56,15.47-85.64c5.59-13.84,8.09-49.16,6.61-67.07-.08-.88-.16-1.73-.26-2.52,8.93-6.59,9.82-17.55,9.82-17.55s-8.2-15.66-16.09-22.29S531,432,531.28,427.15a11.88,11.88,0,0,0-2.73-8.13s-3.64-11.75-6.07-12.95a1.9,1.9,0,0,1-.53-.4c-1.65-1.77-.38-6.83-.38-6.83l0-.16c.29-1.17,2-8.75,1.49-10.69-.61-2.1.3-12.05.3-12.05s5.77-17.17,4.86-30.73,11.84-12.35,11.84-12.35l39.37-.41,4.48,0a31.53,31.53,0,0,0,4.31-4.46c7.5-.89,22.67-3.72,24.37-12C614.9,305,605.49,293.85,603.21,292.64ZM420.81,418l.27-6.89c.93.8,1.55,1.31,1.55,1.31a10.78,10.78,0,0,1,.07,5.52,5.89,5.89,0,0,1-3.41,3.82,4.14,4.14,0,0,0-.55.29l-.38-3.89Zm142.8-121c-1.67-.75-7.29-.6-10.18-.6s-7.58-2.41-7.58-2.41c-1-1.95-6.53-3.11-11.45-3.77-3.74-9.22-9-18.21-9.71-27.82,0-.35,0-.7-.05-1.05l.57,1s22.92,14.62,25.5,19c2,3.34,11.63,10.8,16.09,14.14a4.59,4.59,0,0,1-2.45,1.64A1.35,1.35,0,0,1,563.61,297Z", transform: "translate(-100.52 -33.01)", fill: "url(#8849c9b4-5ff8-40d0-8d32-f1e3227b06d9)" }),
|
|
37
|
+
React.createElement("path", { d: "M525.76,831.22c-.17.7-.35,1.43-.57,2.17-2,7-5.83,5.38-17,16.81a22.38,22.38,0,0,1-22.27,6.32,2.7,2.7,0,0,1-2-2.84l1.41-18.54.67-8.92s17.84,5,26.92-1.35a10.77,10.77,0,0,0,.88-.67A2.75,2.75,0,0,0,514,824,7.29,7.29,0,0,1,525.76,831.22Z", transform: "translate(-100.52 -33.01)", fill: "#67647e" }),
|
|
38
|
+
React.createElement("path", { d: "M469.76,824.22c-.17.7-.35,1.43-.57,2.17-2,7-5.83,5.38-17,16.81a22.38,22.38,0,0,1-22.27,6.32,2.7,2.7,0,0,1-2-2.84l1.41-18.54.67-8.92s17.84,5,26.92-1.35a10.77,10.77,0,0,0,.88-.67A2.75,2.75,0,0,0,458,817,7.29,7.29,0,0,1,469.76,824.22Z", transform: "translate(-100.52 -33.01)", fill: "#67647e" }),
|
|
39
|
+
React.createElement("path", { d: "M451.33,827l.72,9.64c-10.24,10.23-22.43-5-26-10C435.44,831.48,451.33,827,451.33,827Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
40
|
+
React.createElement("path", { d: "M511.52,830.92l1.34-.89c-9.35,14.22-23.24,7.66-27.57,5.11l.67-8.92s17.84,5,26.92-1.35C512.17,828.35,511.52,830.92,511.52,830.92Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
41
|
+
React.createElement("path", { d: "M540,561.69c-7.18,17.93-14.35,78-15.25,85s-.67,35.42-.67,35.42L522.28,752c-.23,8.75-6.73,30.72-6.73,30.72s-2.24,18.38-1.12,24.43-2.91,22-2.91,22l1.34-.9c-11.21,17-28.92,4.26-28.92,4.26s-4.26-20.62.23-25.78-1.57-21.07-1.57-21.07,2.24-82.72,2.91-86.53-2.69-15.47-5.83-25.11,1.8-47.75,2.92-54.7-.45-38.56-1.57-45.06,1.34-33.63,1.34-33.63c-4.48-13.45-8.07-1.34-8.07-1.34l-3.59,35.19-3.81,72.19s.45,22-2.91,28.25-6.28,22.41-6.28,22.41l1.57,81.61s-.22,17,.9,23.53-2.47,23.32-2.47,23.32C445.16,855.36,425,823.3,425,823.3s.9-4.93,2.69-5.6-.67-12.78-2-14.8.22-16.59.22-16.59-1.57-13.22-4-29.14-1.79-77.34-.22-81.15,2.91-21.52,2.91-21.52-1.79-10.09.45-17.27-5.38-37.43-5.38-40.8-2.91-24.21-4.48-26.45-1.57-6.28-1.57-6.28-.22-4.48-4-17.93c-2.78-9.82-1.14-29.18-.05-38.93.39-3.61.73-5.91.73-5.91S538.87,480.08,544,484.79c1.2,1.11,2,4.92,2.47,10.35C548,512.9,545.48,548,540,561.69Z", transform: "translate(-100.52 -33.01)", fill: "#444053" }),
|
|
42
|
+
React.createElement("path", { d: "M491.34,662.49c.6,0,14.8,1.2,20,.15S491.34,662.49,491.34,662.49Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
43
|
+
React.createElement("path", { d: "M492.39,670.86S512,674.3,513,672.51,492.39,670.86,492.39,670.86Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
44
|
+
React.createElement("path", { d: "M432.46,667.27s10.16.45,15.69,3S432.46,667.27,432.46,667.27Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
45
|
+
React.createElement("path", { d: "M395.54,415.9s1.64,31.23.75,36.76c0,0,3.58,25.26,6.57,31.68s9.42,14.5,9.42,14.5l8.82-62L419,415.6Z", transform: "translate(-100.52 -33.01)", fill: "#efb7b9" }),
|
|
46
|
+
React.createElement("circle", { cx: "387.68", cy: "206.09", r: "34.52", fill: "#efb7b9" }),
|
|
47
|
+
React.createElement("path", { d: "M470.27,255.23s-10.76,21.08-21.52,30.94,64.56,21.07,66.35,21.07S501.65,262.41,504.34,257,470.27,255.23,470.27,255.23Z", transform: "translate(-100.52 -33.01)", fill: "#efb7b9" }),
|
|
48
|
+
React.createElement("path", { d: "M546.49,495.14a22.43,22.43,0,0,1-5.54,3.1c-13.74,5.38-28.69,12.85-38.85,9.87s-31.68,0-31.68,0-43.35-3.59-52-1.5c-3.94.95-7,.91-9,.23.39-3.61.73-5.91.73-5.91S538.87,480.08,544,484.79C545.22,485.9,546,489.71,546.49,495.14Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
49
|
+
React.createElement("path", { d: "M555.9,475.22s-1.19,14.95-14.95,20.33-28.69,12.85-38.85,9.87-31.68,0-31.68,0-43.35-3.59-52-1.5-13.16-.59-10.47-4.48,2.4-16.74,2.4-22.12-3-27.2-.31-31.09S415.12,427.4,420.5,425a5.86,5.86,0,0,0,3.36-3.79,10.84,10.84,0,0,0-.07-5.47s-.91-.75-2.16-1.86c-3.17-2.83-8.53-8.08-6.81-9.8,2.39-2.4,0-17.94,0-17.94s-5.68-11.95-3.58-16.43S393,341.61,393,341.61s0-40.64,24.51-42.44c0,0,17.34.6,19.43-7.17s15.84-12.26,15.84-12.26l31.39,6.88s27.79,6,32.88,2.39,9,4.78,9,4.78,17.33.9,19.12,4.49-5.67,38.55-5.67,38.55-12.56-1.19-11.66,12.26S523,379.58,523,379.58s-.9,9.86-.3,11.95c.56,1.93-1.18,9.45-1.46,10.61l0,.15s-1.25,5,.37,6.78a2,2,0,0,0,.52.4c2.4,1.19,6,12.85,6,12.85a11.83,11.83,0,0,1,2.69,8.07c-.29,4.79,1.5,16.14,9.27,22.72S555.9,475.22,555.9,475.22Z", transform: "translate(-100.52 -33.01)", fill: "#a36468" }),
|
|
50
|
+
React.createElement("path", { d: "M422.59,406l0,1.27-.54,14s-18.39,1.49-28.4-1-5.8-13.6-5.4-15.9a.37.37,0,0,0,0-.09c.29-2.1,3-19.58,3-22.42s0-14.5-.45-19.88S393,341.61,393,341.61l1.94-2.38L416,347.3Z", transform: "translate(-100.52 -33.01)", fill: "#a36468" }),
|
|
51
|
+
React.createElement("path", { d: "M422.54,407.3l-.54,14s-18.39,1.49-28.4-1-5.8-13.6-5.4-15.9Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
52
|
+
React.createElement("path", { d: "M423.86,421.22a10.84,10.84,0,0,0-.07-5.47s-.91-.75-2.16-1.86c15.83-2.21,78.52-10.81,99.63-11.75l0,.15s-1.25,5,.37,6.78Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
53
|
+
React.createElement("path", { d: "M523.62,432s3.89,22-10.61,29.74C513,461.78,521.23,450.87,523.62,432Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
54
|
+
React.createElement("path", { d: "M428.72,462.37s35-6,41.85-1.34S428.72,462.37,428.72,462.37Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
55
|
+
React.createElement("path", { d: "M511.52,326.22s-5.38,22.12-1.35,27.2S511.52,326.22,511.52,326.22Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
56
|
+
React.createElement("path", { d: "M410.19,308.14s4.93,8.22,1.94,16.74S410.19,308.14,410.19,308.14Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
57
|
+
React.createElement("path", { d: "M400,380.18s6.28,3.73,4.19,9.56S400,380.18,400,380.18Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
58
|
+
React.createElement("path", { d: "M399.43,363.14s5.82,3.14,6.57,7.77S399.43,363.14,399.43,363.14Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
59
|
+
React.createElement("path", { d: "M485.81,541.88s36.62,3.74,43.94-4.93C529.75,537,496.72,543.53,485.81,541.88Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
60
|
+
React.createElement("path", { d: "M422.59,539.79s39.31,9.27,47.08,1.94C469.67,541.73,435.89,544.27,422.59,539.79Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
61
|
+
React.createElement("path", { d: "M488.65,554s16.44,0,24.06.45S488.65,554,488.65,554Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
62
|
+
React.createElement("path", { d: "M425.28,561s8.07,9.12,17.19,7.48S425.28,561,425.28,561Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
63
|
+
React.createElement("path", { d: "M441.13,187.65c-2.53,3.93-2.62,8.48-3.28,12.84-1.54,10.19-6.53,20.06-14.34,28.38-7.17,7.62-17,14.53-18.86,23.84-1.76,8.84,4.21,17.35,7.34,26,8.25,22.69-3.27,46.49-6.63,69.91-.93,6.47.19,14.74,8.16,16.89,2.49.68,5.34.59,7.58,1.67,3,1.44,3.92,4.43,4.47,7.12a108.82,108.82,0,0,1,2.06,29.28c-.36,5.5-.76,11.83,4.44,15.61,2.36,1.73,5.54,2.61,8.61,3.44,8.19,2.21,18.78,4,24.3-1.19,2.32-2.17,3.19-5.23,6.08-6.95,4.33-2.57,10.47-.83,15.92-.56,11.19.56,21.47-6,25.88-13.91s4-17,2.4-25.53-4.46-17-4.66-25.66c-.07-3,.2-6.05,1.92-8.71,3.33-5.15,11.08-7.49,16.38-11.54,9.93-7.6,9.9-20.05,6.29-30.47S525.1,277.7,524.3,266.93a11.87,11.87,0,0,1,1.47-7.53c1.42-2.19,3.9-3.83,6-5.64,14.49-12.24,12.78-32.34.8-46.1C519.31,192.41,459.23,159.56,441.13,187.65Z", transform: "translate(-100.52 -33.01)", fill: "#e3787d" }),
|
|
64
|
+
React.createElement("g", { opacity: "0.1" },
|
|
65
|
+
React.createElement("path", { d: "M413.83,288.13c1.13-9.09.92-18.1-2.29-26.95-1.58-4.34-3.87-8.65-5.54-13a18.76,18.76,0,0,0-1.8,5c-1.76,8.84,4.21,17.35,7.34,26A47.28,47.28,0,0,1,413.83,288.13Z", transform: "translate(-100.52 -33.01)" }),
|
|
66
|
+
React.createElement("path", { d: "M427.18,386.05a109.22,109.22,0,0,0-2.05-29.28c-.56-2.69-1.48-5.67-4.48-7.11-2.24-1.08-5.09-1-7.58-1.67a10.33,10.33,0,0,1-7-5.78c-.46,2.28-.86,4.55-1.19,6.83-.93,6.47.19,14.74,8.16,16.89,2.49.67,5.34.58,7.58,1.66,3,1.44,3.92,4.43,4.48,7.12a110.81,110.81,0,0,1,1.92,13.52C427.09,387.49,427.13,386.77,427.18,386.05Z", transform: "translate(-100.52 -33.01)" }),
|
|
67
|
+
React.createElement("path", { d: "M512.42,382.5c-4.42,7.94-14.7,14.47-25.89,13.91-5.45-.28-11.59-2-15.91.56-2.89,1.71-3.77,4.78-6.09,6.95-5.52,5.15-16.11,3.4-24.3,1.19-3.07-.84-6.24-1.71-8.61-3.44a10.8,10.8,0,0,1-4.25-6.9c.06,3.07,0,6.15-.19,9.22-.36,5.5-.76,11.83,4.44,15.62,2.37,1.72,5.54,2.6,8.61,3.43,8.19,2.21,18.78,4,24.3-1.19,2.32-2.17,3.2-5.23,6.09-7,4.32-2.57,10.46-.83,15.91-.56,11.19.56,21.47-6,25.89-13.91,4.24-7.64,4.05-16.28,2.57-24.53A26.87,26.87,0,0,1,512.42,382.5Z", transform: "translate(-100.52 -33.01)" }),
|
|
68
|
+
React.createElement("path", { d: "M531.36,236.28c-2.14,1.8-4.62,3.45-6,5.64a11.87,11.87,0,0,0-1.47,7.53,40.06,40.06,0,0,0,2.06,9.6,39.94,39.94,0,0,1,5.45-4.84c9.8-8.27,12.18-20.14,9-31.22A28.54,28.54,0,0,1,531.36,236.28Z", transform: "translate(-100.52 -33.01)" }),
|
|
69
|
+
React.createElement("path", { d: "M528.45,311.05c-5.29,4.05-13.05,6.4-16.37,11.55-1.73,2.66-2,5.73-1.93,8.7a60.08,60.08,0,0,0,1.28,10.4,9.62,9.62,0,0,1,.65-1.17c3.32-5.15,11.08-7.49,16.37-11.54,9.07-6.94,9.83-17.92,7.15-27.71A20.76,20.76,0,0,1,528.45,311.05Z", transform: "translate(-100.52 -33.01)" })),
|
|
70
|
+
React.createElement("path", { d: "M582.8,332.35s25.86-1.34,28.1-12.25-7-22-9.26-23.17S575,277.2,575,277.2l-39.3-25.1s-18.83-54-23-33.33,12.11,48.12,12.11,48.12,22.56,14.5,25.1,18.83S568,301.41,568,301.41Z", transform: "translate(-100.52 -33.01)", fill: "#efb7b9" }),
|
|
71
|
+
React.createElement("path", { d: "M596.7,314.71c-6.12,15.55-14.05,21.68-14.05,21.68l-4.41,0-38.77.4L535,324.58l6.28-26.46,3.88.16s4.64,2.39,7.47,2.39,8.38-.15,10,.59a1.23,1.23,0,0,0,.73.11c1.47-.15,3-2.35,3-2.35S602.83,299.17,596.7,314.71Z", transform: "translate(-100.52 -33.01)", fill: "#a36468" }),
|
|
72
|
+
React.createElement("path", { d: "M596.7,314.71c-6.12,15.55-14.05,21.68-14.05,21.68l-4.41,0c2.3-6.16,7.15-18.8,9-21.72,1.81-2.76-14.43-9.63-23.93-13.34,1.47-.15,3-2.35,3-2.35S602.83,299.17,596.7,314.71Z", transform: "translate(-100.52 -33.01)", opacity: "0.1" }),
|
|
73
|
+
React.createElement("circle", { cx: "179.99", cy: "124.52", r: "31.5", fill: screenPrimary3, opacity: "0.1" }),
|
|
74
|
+
React.createElement("circle", { cx: "113.99", cy: "49.52", r: "19.5", fill: screenPrimary3, opacity: "0.1" }),
|
|
75
|
+
React.createElement("circle", { cx: "12", cy: "93.02", r: "12", fill: screenPrimary3, opacity: "0.1" })));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type NumberInputStyles = {
|
|
2
|
+
focusedColor: string;
|
|
3
|
+
focusedBg: string;
|
|
4
|
+
focusedBoxShadow: string;
|
|
5
|
+
};
|
|
6
|
+
type Props = {
|
|
7
|
+
id?: string;
|
|
8
|
+
value: number;
|
|
9
|
+
minValue?: number;
|
|
10
|
+
maxValue?: number;
|
|
11
|
+
styles: NumberInputStyles;
|
|
12
|
+
onChange: (newValue: number) => unknown;
|
|
13
|
+
};
|
|
14
|
+
export declare function NumberInput({ id, value, minValue, maxValue, styles, onChange, }: Props): JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { KEY_DOWN, KEY_UP } from 'react-cosmos-core';
|
|
3
|
+
import { useFocus } from '../../hooks/useFocus.js';
|
|
4
|
+
import { TextContainer, TextField, TextInputContainer, TextMirror, } from './shared.js';
|
|
5
|
+
const maxNumber = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
6
|
+
export function NumberInput({ id, value, minValue = -maxNumber, maxValue = maxNumber, styles, onChange, }) {
|
|
7
|
+
const [rawValue, setRawValue] = useState(String(value));
|
|
8
|
+
const { focused, onFocus, onBlur } = useFocus();
|
|
9
|
+
// Reset raw value when value prop changes
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
setRawValue(String(value));
|
|
12
|
+
}, [value]);
|
|
13
|
+
function trimMinMax(input) {
|
|
14
|
+
return Math.max(minValue, Math.min(maxValue, input));
|
|
15
|
+
}
|
|
16
|
+
function trimDecimals(input) {
|
|
17
|
+
// Don't allow floating point to exceed 6 decimal points.
|
|
18
|
+
// This prevents values like 1463.1000000000001
|
|
19
|
+
return input % 1 === 0 ? input : Number(input.toFixed(6));
|
|
20
|
+
}
|
|
21
|
+
function trim(input) {
|
|
22
|
+
return trimDecimals(trimMinMax(input));
|
|
23
|
+
}
|
|
24
|
+
function handleChange(e) {
|
|
25
|
+
const input = e.currentTarget.value;
|
|
26
|
+
// Allowed inputs: "", "123", "-123", "-", "123.456", ".456", "."
|
|
27
|
+
if (!input.match(/^(-?[0-9]*|(-?[0-9]+)?\.[0-9]*)$/))
|
|
28
|
+
return;
|
|
29
|
+
// Valid numbers are propagated to the parent component immediately, while
|
|
30
|
+
// invalid ones are discarded on blur
|
|
31
|
+
const parsed = parseFloat(input);
|
|
32
|
+
if (isNaN(parsed))
|
|
33
|
+
// Typing an invalid number is temporarily allowed, as it might be part of
|
|
34
|
+
// a valid number that the user is in the process of typing. Eg. A minus
|
|
35
|
+
// sign or a dot.
|
|
36
|
+
return setRawValue(input);
|
|
37
|
+
const trimmed = trim(parsed);
|
|
38
|
+
// Unless the value exceeds the [min,max] bounds and needs to be trimmed,
|
|
39
|
+
// preserve the raw value as is. This allows transitioning from integers to
|
|
40
|
+
// floats. Eg. A "1." raw value is just "1" when parsed, but the dot has
|
|
41
|
+
// to be preserved to be able to input the decimals.
|
|
42
|
+
setRawValue(trimmed === parsed ? input : String(trimmed));
|
|
43
|
+
if (trimmed !== value)
|
|
44
|
+
onChange(trimmed);
|
|
45
|
+
}
|
|
46
|
+
function handleBlur() {
|
|
47
|
+
onBlur();
|
|
48
|
+
// Reset the raw value. Eg. "1." becomes "1", or an empty raw value is
|
|
49
|
+
// replaced with the current value prop.
|
|
50
|
+
setRawValue(String(value));
|
|
51
|
+
}
|
|
52
|
+
function increment(step, direction) {
|
|
53
|
+
let parsed = parseFloat(rawValue);
|
|
54
|
+
if (isNaN(parsed))
|
|
55
|
+
parsed = value;
|
|
56
|
+
onChange(trim(parsed + step * direction));
|
|
57
|
+
}
|
|
58
|
+
function handleKeyDown(e) {
|
|
59
|
+
function getStep() {
|
|
60
|
+
// Jump value by 100 when CMD is pressed
|
|
61
|
+
// Jump value by 10 when SHIFT is pressed
|
|
62
|
+
// Jump value by 0.1 when ALT is pressed
|
|
63
|
+
// Jump value by 1 by default
|
|
64
|
+
return e.metaKey ? 100 : e.shiftKey ? 10 : e.altKey ? 0.1 : 1;
|
|
65
|
+
}
|
|
66
|
+
switch (e.keyCode) {
|
|
67
|
+
case KEY_UP:
|
|
68
|
+
e.preventDefault();
|
|
69
|
+
return increment(getStep(), 1);
|
|
70
|
+
case KEY_DOWN:
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
return increment(getStep(), -1);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return (React.createElement(TextInputContainer, { focused: focused, focusedBg: styles.focusedBg, focusedBoxShadow: styles.focusedBoxShadow },
|
|
76
|
+
React.createElement(TextContainer, null,
|
|
77
|
+
React.createElement(TextMirror, { minWidth: 8, focused: focused }, rawValue),
|
|
78
|
+
React.createElement(TextField, { rows: 1, id: id, value: rawValue, focused: focused, color: styles.focusedColor, onChange: handleChange, onFocus: onFocus, onBlur: handleBlur, onKeyDown: handleKeyDown }))));
|
|
79
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type BaseOption = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
type Props<Option extends BaseOption> = {
|
|
6
|
+
id?: string;
|
|
7
|
+
testId?: string;
|
|
8
|
+
options: Option[];
|
|
9
|
+
value: string;
|
|
10
|
+
color: string;
|
|
11
|
+
height: number;
|
|
12
|
+
padding: number;
|
|
13
|
+
onChange: (newValue: Option) => unknown;
|
|
14
|
+
};
|
|
15
|
+
export declare function Select<Option extends BaseOption>({ id, testId, options, value, color, height, padding, onChange, }: Props<Option>): JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { useFocus } from '../../hooks/useFocus.js';
|
|
4
|
+
import { blue, grey32 } from '../../style/colors.js';
|
|
5
|
+
import { ChevronDownIcon } from '../icons/index.js';
|
|
6
|
+
const CUSTOM_LABEL = 'Custom';
|
|
7
|
+
export function Select({ id, testId, options, value, color, height, padding, onChange, }) {
|
|
8
|
+
const { focused, onFocus, onBlur } = useFocus();
|
|
9
|
+
const onInputChange = useCallback((e) => {
|
|
10
|
+
const option = options.find(o => o.value === e.target.value);
|
|
11
|
+
if (!option) {
|
|
12
|
+
throw new Error(`Select value doesn't match any option`);
|
|
13
|
+
}
|
|
14
|
+
onChange(option);
|
|
15
|
+
}, [onChange, options]);
|
|
16
|
+
const selectedOption = options.find(o => o.value === value);
|
|
17
|
+
const selectedLabel = selectedOption ? selectedOption.label : CUSTOM_LABEL;
|
|
18
|
+
return (React.createElement(Container, { focused: focused, bg: grey32 },
|
|
19
|
+
React.createElement(VisibleButton, { height: height, padding: padding },
|
|
20
|
+
React.createElement(Label, { height: height, color: color }, selectedLabel),
|
|
21
|
+
React.createElement(IconContainer, { color: color },
|
|
22
|
+
React.createElement(ChevronDownIcon, null))),
|
|
23
|
+
React.createElement(SelectInput, { id: id, "data-testid": testId, value: value, onFocus: onFocus, onBlur: onBlur, onChange: onInputChange },
|
|
24
|
+
!selectedOption && (React.createElement("option", { key: "custom-option", value: value }, CUSTOM_LABEL)),
|
|
25
|
+
options.map((option, idx) => {
|
|
26
|
+
return (React.createElement("option", { key: idx, value: option.value }, option.label));
|
|
27
|
+
}))));
|
|
28
|
+
}
|
|
29
|
+
const Container = styled.div `
|
|
30
|
+
position: relative;
|
|
31
|
+
border-radius: 3px;
|
|
32
|
+
background: ${props => props.bg};
|
|
33
|
+
box-shadow: ${props => (props.focused ? `0 0 0.5px 1px ${blue}` : 'none')};
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
`;
|
|
36
|
+
const VisibleButton = styled.div `
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
align-items: center;
|
|
40
|
+
padding: 0 ${props => props.padding - 2}px 0 ${props => props.padding}px;
|
|
41
|
+
height: ${props => props.height}px;
|
|
42
|
+
`;
|
|
43
|
+
const Label = styled.span `
|
|
44
|
+
color: ${props => props.color};
|
|
45
|
+
line-height: ${props => props.height}px;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
`;
|
|
50
|
+
const iconSize = 16;
|
|
51
|
+
const IconContainer = styled.span `
|
|
52
|
+
flex-shrink: 0;
|
|
53
|
+
width: ${iconSize}px;
|
|
54
|
+
height: ${iconSize}px;
|
|
55
|
+
padding: 2px 0 0 2px;
|
|
56
|
+
color: ${props => props.color};
|
|
57
|
+
opacity: 0.7;
|
|
58
|
+
`;
|
|
59
|
+
const SelectInput = styled.select `
|
|
60
|
+
position: absolute;
|
|
61
|
+
z-index: 1;
|
|
62
|
+
top: 0;
|
|
63
|
+
left: 0;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
-webkit-appearance: none;
|
|
67
|
+
outline: none;
|
|
68
|
+
opacity: 0;
|
|
69
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const TextInputContainer: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
focused: boolean;
|
|
3
|
+
focusedBg: string;
|
|
4
|
+
focusedBoxShadow: string;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const TextContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const TextField: import("styled-components").StyledComponent<"textarea", any, {
|
|
8
|
+
focused: boolean;
|
|
9
|
+
color: string;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const TextMirror: import("styled-components").StyledComponent<"div", any, {
|
|
12
|
+
focused: boolean;
|
|
13
|
+
minWidth: number;
|
|
14
|
+
}, never>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { lightBlue } from '../../style/colors.js';
|
|
3
|
+
export const TextInputContainer = styled.div `
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
padding: 2px 5px;
|
|
7
|
+
border-radius: 3px;
|
|
8
|
+
background: ${props => (props.focused ? props.focusedBg : 'transparent')};
|
|
9
|
+
box-shadow: ${props => (props.focused ? props.focusedBoxShadow : 'none')};
|
|
10
|
+
`;
|
|
11
|
+
export const TextContainer = styled.div `
|
|
12
|
+
position: relative;
|
|
13
|
+
`;
|
|
14
|
+
export const TextField = styled.textarea `
|
|
15
|
+
position: absolute;
|
|
16
|
+
z-index: 1;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
padding: 0;
|
|
22
|
+
border: 0;
|
|
23
|
+
background: none;
|
|
24
|
+
color: ${props => props.color};
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
line-height: 20px;
|
|
27
|
+
white-space: pre;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
outline: none;
|
|
30
|
+
resize: none;
|
|
31
|
+
opacity: ${props => (props.focused ? 1 : 0)};
|
|
32
|
+
`;
|
|
33
|
+
export const TextMirror = styled.div `
|
|
34
|
+
color: ${lightBlue};
|
|
35
|
+
opacity: ${props => (props.focused ? 0 : 1)};
|
|
36
|
+
min-width: ${props => props.minWidth}px;
|
|
37
|
+
min-height: 20px;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
line-height: 20px;
|
|
40
|
+
white-space: pre;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
text-overflow: ellipsis;
|
|
43
|
+
`;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CosmosGlobalStyle, GlobalStyle } from './style/globalStyle.js';
|
|
3
|
+
export default ({ children }) => (React.createElement(React.Fragment, null,
|
|
4
|
+
React.createElement(GlobalStyle, null),
|
|
5
|
+
React.createElement(CosmosGlobalStyle, null),
|
|
6
|
+
children));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './plugins/pluginEntry.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { loadPlugins } from 'react-plugin';
|
|
2
|
+
import './plugins/pluginEntry.js';
|
|
3
|
+
import { DEFAULT_PLUGIN_CONFIG } from './shared/defaultPluginConfig.js';
|
|
4
|
+
// This file is required to run globally with side effects for the "inception"
|
|
5
|
+
// fixture to work.
|
|
6
|
+
loadPlugins({
|
|
7
|
+
config: {
|
|
8
|
+
...DEFAULT_PLUGIN_CONFIG,
|
|
9
|
+
core: {
|
|
10
|
+
projectId: 'testProjectId',
|
|
11
|
+
fixturesDir: '__fixtures__',
|
|
12
|
+
fixtureFileSuffix: 'fixture',
|
|
13
|
+
devServerOn: true,
|
|
14
|
+
webRendererUrl: '/_renderer.html',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type UseDragArgs = {
|
|
2
|
+
value: number;
|
|
3
|
+
direction?: 'horizontal' | 'vertical';
|
|
4
|
+
reverse?: boolean;
|
|
5
|
+
double?: boolean;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
onChange: (value: number) => unknown;
|
|
9
|
+
};
|
|
10
|
+
export declare function useDrag({ value, direction, reverse, double, min, max, onChange, }: UseDragArgs): {
|
|
11
|
+
dragElRef: (elRef: HTMLElement | null) => void;
|
|
12
|
+
dragging: boolean;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
+
export function useDrag({ value, direction = 'horizontal', reverse = false, double = false, min = 0, max = 99999, onChange, }) {
|
|
3
|
+
const [dragState, setDragState] = useState(null);
|
|
4
|
+
const handleDrag = useCallback((e) => {
|
|
5
|
+
if (dragState) {
|
|
6
|
+
const { startValue, startOffset } = dragState;
|
|
7
|
+
let diff = direction === 'horizontal'
|
|
8
|
+
? e.clientX - startOffset
|
|
9
|
+
: e.clientY - startOffset;
|
|
10
|
+
if (reverse)
|
|
11
|
+
diff *= -1;
|
|
12
|
+
if (double)
|
|
13
|
+
diff *= 2;
|
|
14
|
+
const curValue = Math.min(max, Math.max(min, startValue + diff));
|
|
15
|
+
onChange(curValue);
|
|
16
|
+
}
|
|
17
|
+
}, [direction, double, dragState, max, min, onChange, reverse]);
|
|
18
|
+
const handleDragEnd = useCallback(() => {
|
|
19
|
+
setDragState(null);
|
|
20
|
+
}, []);
|
|
21
|
+
const handleDragStart = useCallback((e) => {
|
|
22
|
+
setDragState({
|
|
23
|
+
startValue: value,
|
|
24
|
+
startOffset: direction === 'horizontal' ? e.clientX : e.clientY,
|
|
25
|
+
});
|
|
26
|
+
}, [direction, value]);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (dragState) {
|
|
29
|
+
document.addEventListener('mousemove', handleDrag);
|
|
30
|
+
document.addEventListener('mouseup', handleDragEnd);
|
|
31
|
+
return () => {
|
|
32
|
+
document.removeEventListener('mousemove', handleDrag);
|
|
33
|
+
document.removeEventListener('mouseup', handleDragEnd);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}, [dragState, handleDrag, handleDragEnd]);
|
|
37
|
+
// The returned ref callback will be re-created whenever the "value" arg
|
|
38
|
+
// changes (because handleDragStart depends on it). Even if a DOM node stays
|
|
39
|
+
// constant, whenever we pass a new ref callback to its element React will
|
|
40
|
+
// call it again. The following code ensures:
|
|
41
|
+
// 1. Proper cleanup on unmount
|
|
42
|
+
// 2. The 'mousedown' events is never attached more than once
|
|
43
|
+
// Safety aside, if re-creating the ref callback so often proves to be a perf
|
|
44
|
+
// concern, we can make handleDragStart depend on a constant ref that stays
|
|
45
|
+
// in sync with "value".
|
|
46
|
+
const onUnmount = useRef(null);
|
|
47
|
+
const dragElRef = useCallback((elRef) => {
|
|
48
|
+
if (elRef) {
|
|
49
|
+
elRef.addEventListener('mousedown', handleDragStart);
|
|
50
|
+
onUnmount.current = () => elRef.removeEventListener('mousedown', handleDragStart);
|
|
51
|
+
}
|
|
52
|
+
else if (onUnmount.current) {
|
|
53
|
+
onUnmount.current();
|
|
54
|
+
onUnmount.current = null;
|
|
55
|
+
}
|
|
56
|
+
}, [handleDragStart]);
|
|
57
|
+
return { dragElRef, dragging: dragState !== null };
|
|
58
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useCallback, useState } from 'react';
|
|
2
|
+
export function useFocus() {
|
|
3
|
+
const [focused, setFocused] = useState(false);
|
|
4
|
+
const onFocus = useCallback(() => setFocused(true), []);
|
|
5
|
+
const onBlur = useCallback(() => setFocused(false), []);
|
|
6
|
+
return { focused, onFocus, onBlur };
|
|
7
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from './components/buttons/index.js';
|
|
2
|
+
export * from './components/icons/index.js';
|
|
3
|
+
export * from './playgroundConfig.js';
|
|
4
|
+
export * from './plugins/BuildNotifications/spec.js';
|
|
5
|
+
export * from './plugins/ClassStatePanel/spec.js';
|
|
6
|
+
export * from './plugins/ContentOverlay/spec.js';
|
|
7
|
+
export * from './plugins/ControlPanel/spec.js';
|
|
8
|
+
export * from './plugins/ControlSelect/spec.js';
|
|
9
|
+
export * from './plugins/Core/spec.js';
|
|
10
|
+
export * from './plugins/FixtureBookmark/spec.js';
|
|
11
|
+
export * from './plugins/FixtureSearch/spec.js';
|
|
12
|
+
export * from './plugins/FixtureTree/spec.js';
|
|
13
|
+
export * from './plugins/FullScreenButton/spec.js';
|
|
14
|
+
export * from './plugins/MessageHandler/spec.js';
|
|
15
|
+
export * from './plugins/Notifications/spec.js';
|
|
16
|
+
export * from './plugins/PluginList/spec.js';
|
|
17
|
+
export * from './plugins/PropsPanel/spec.js';
|
|
18
|
+
export * from './plugins/RemoteRenderer/spec.js';
|
|
19
|
+
export * from './plugins/RendererCore/spec.js';
|
|
20
|
+
export * from './plugins/RendererPreview/spec.js';
|
|
21
|
+
export * from './plugins/RendererSelect/spec.js';
|
|
22
|
+
export * from './plugins/ResponsivePreview/spec.js';
|
|
23
|
+
export * from './plugins/Root/spec.js';
|
|
24
|
+
export * from './plugins/Router/spec.js';
|
|
25
|
+
export * from './plugins/StandardControl/spec.js';
|
|
26
|
+
export * from './plugins/Storage/spec.js';
|
|
27
|
+
export * from './slots/ControlActionSlot.js';
|
|
28
|
+
export * from './slots/ControlSlot.js';
|
|
29
|
+
export * from './slots/FixtureActionSlot.js';
|
|
30
|
+
export * from './slots/NavRowSlot.js';
|
|
31
|
+
export * from './slots/RendererActionSlot.js';
|
|
32
|
+
export * from './slots/SidePanelRowSlot.js';
|
|
33
|
+
export * from './slots/ValueInputSlot.js';
|
|
34
|
+
export * from './style/colors.js';
|
|
35
|
+
export * from './style/vars.js';
|
|
36
|
+
export * from './testHelpers/pluginMocks.js';
|