From d38070025cd496b17765585af19f3a203b3988d4 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Mon, 9 Aug 2021 13:11:51 +0200 Subject: [PATCH] Renamed `ObjectEditorPanel` to `DetailPanel` --- theatre/studio/src/UIRoot/PanelsRoot.tsx | 2 +- .../ObjectEditorPanel.tsx | 0 .../propEditors/BooleanPropEditor.tsx | 0 .../propEditors/CompoundPropEditor.tsx | 0 .../propEditors/DeterminePropEditor.tsx | 0 .../propEditors/NumberPropEditor.tsx | 0 .../propEditors/StringLiteralPropEditor.tsx | 0 .../propEditors/utils/DefaultValueIndicator.tsx | 0 .../propEditors/utils/NextPrevKeyframeCursors.tsx | 0 .../propEditors/utils/SingleRowPropEditor.tsx | 4 ++-- .../propEditors/utils/useEditingToolsForPrimitiveProp.tsx | 0 theatre/studio/src/panels/OutlinePanel/BaseItem.tsx | 2 +- .../SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.tsx | 2 +- .../SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.tsx | 6 +++--- .../DopeSheet/Right/LengthIndicator/LengthEditorPopover.tsx | 2 +- 15 files changed, 9 insertions(+), 9 deletions(-) rename theatre/studio/src/panels/{ObjectEditorPanel => DetailPanel}/ObjectEditorPanel.tsx (100%) rename theatre/studio/src/panels/{ObjectEditorPanel => DetailPanel}/propEditors/BooleanPropEditor.tsx (100%) rename theatre/studio/src/panels/{ObjectEditorPanel => DetailPanel}/propEditors/CompoundPropEditor.tsx (100%) rename theatre/studio/src/panels/{ObjectEditorPanel => DetailPanel}/propEditors/DeterminePropEditor.tsx (100%) rename theatre/studio/src/panels/{ObjectEditorPanel => DetailPanel}/propEditors/NumberPropEditor.tsx (100%) rename theatre/studio/src/panels/{ObjectEditorPanel => DetailPanel}/propEditors/StringLiteralPropEditor.tsx (100%) rename theatre/studio/src/panels/{ObjectEditorPanel => DetailPanel}/propEditors/utils/DefaultValueIndicator.tsx (100%) rename theatre/studio/src/panels/{ObjectEditorPanel => DetailPanel}/propEditors/utils/NextPrevKeyframeCursors.tsx (100%) rename theatre/studio/src/panels/{ObjectEditorPanel => DetailPanel}/propEditors/utils/SingleRowPropEditor.tsx (94%) rename theatre/studio/src/panels/{ObjectEditorPanel => DetailPanel}/propEditors/utils/useEditingToolsForPrimitiveProp.tsx (100%) diff --git a/theatre/studio/src/UIRoot/PanelsRoot.tsx b/theatre/studio/src/UIRoot/PanelsRoot.tsx index 52a3a00..33e76fd 100644 --- a/theatre/studio/src/UIRoot/PanelsRoot.tsx +++ b/theatre/studio/src/UIRoot/PanelsRoot.tsx @@ -1,5 +1,5 @@ import OutlinePanel from '@theatre/studio/panels/OutlinePanel/OutlinePanel' -import ObjectEditorPanel from '@theatre/studio/panels/ObjectEditorPanel/ObjectEditorPanel' +import ObjectEditorPanel from '@theatre/studio/panels/DetailPanel/ObjectEditorPanel' import React from 'react' import getStudio from '@theatre/studio/getStudio' import {useVal} from '@theatre/dataverse-react' diff --git a/theatre/studio/src/panels/ObjectEditorPanel/ObjectEditorPanel.tsx b/theatre/studio/src/panels/DetailPanel/ObjectEditorPanel.tsx similarity index 100% rename from theatre/studio/src/panels/ObjectEditorPanel/ObjectEditorPanel.tsx rename to theatre/studio/src/panels/DetailPanel/ObjectEditorPanel.tsx diff --git a/theatre/studio/src/panels/ObjectEditorPanel/propEditors/BooleanPropEditor.tsx b/theatre/studio/src/panels/DetailPanel/propEditors/BooleanPropEditor.tsx similarity index 100% rename from theatre/studio/src/panels/ObjectEditorPanel/propEditors/BooleanPropEditor.tsx rename to theatre/studio/src/panels/DetailPanel/propEditors/BooleanPropEditor.tsx diff --git a/theatre/studio/src/panels/ObjectEditorPanel/propEditors/CompoundPropEditor.tsx b/theatre/studio/src/panels/DetailPanel/propEditors/CompoundPropEditor.tsx similarity index 100% rename from theatre/studio/src/panels/ObjectEditorPanel/propEditors/CompoundPropEditor.tsx rename to theatre/studio/src/panels/DetailPanel/propEditors/CompoundPropEditor.tsx diff --git a/theatre/studio/src/panels/ObjectEditorPanel/propEditors/DeterminePropEditor.tsx b/theatre/studio/src/panels/DetailPanel/propEditors/DeterminePropEditor.tsx similarity index 100% rename from theatre/studio/src/panels/ObjectEditorPanel/propEditors/DeterminePropEditor.tsx rename to theatre/studio/src/panels/DetailPanel/propEditors/DeterminePropEditor.tsx diff --git a/theatre/studio/src/panels/ObjectEditorPanel/propEditors/NumberPropEditor.tsx b/theatre/studio/src/panels/DetailPanel/propEditors/NumberPropEditor.tsx similarity index 100% rename from theatre/studio/src/panels/ObjectEditorPanel/propEditors/NumberPropEditor.tsx rename to theatre/studio/src/panels/DetailPanel/propEditors/NumberPropEditor.tsx diff --git a/theatre/studio/src/panels/ObjectEditorPanel/propEditors/StringLiteralPropEditor.tsx b/theatre/studio/src/panels/DetailPanel/propEditors/StringLiteralPropEditor.tsx similarity index 100% rename from theatre/studio/src/panels/ObjectEditorPanel/propEditors/StringLiteralPropEditor.tsx rename to theatre/studio/src/panels/DetailPanel/propEditors/StringLiteralPropEditor.tsx diff --git a/theatre/studio/src/panels/ObjectEditorPanel/propEditors/utils/DefaultValueIndicator.tsx b/theatre/studio/src/panels/DetailPanel/propEditors/utils/DefaultValueIndicator.tsx similarity index 100% rename from theatre/studio/src/panels/ObjectEditorPanel/propEditors/utils/DefaultValueIndicator.tsx rename to theatre/studio/src/panels/DetailPanel/propEditors/utils/DefaultValueIndicator.tsx diff --git a/theatre/studio/src/panels/ObjectEditorPanel/propEditors/utils/NextPrevKeyframeCursors.tsx b/theatre/studio/src/panels/DetailPanel/propEditors/utils/NextPrevKeyframeCursors.tsx similarity index 100% rename from theatre/studio/src/panels/ObjectEditorPanel/propEditors/utils/NextPrevKeyframeCursors.tsx rename to theatre/studio/src/panels/DetailPanel/propEditors/utils/NextPrevKeyframeCursors.tsx diff --git a/theatre/studio/src/panels/ObjectEditorPanel/propEditors/utils/SingleRowPropEditor.tsx b/theatre/studio/src/panels/DetailPanel/propEditors/utils/SingleRowPropEditor.tsx similarity index 94% rename from theatre/studio/src/panels/ObjectEditorPanel/propEditors/utils/SingleRowPropEditor.tsx rename to theatre/studio/src/panels/DetailPanel/propEditors/utils/SingleRowPropEditor.tsx index 9a3043e..8c93d11 100644 --- a/theatre/studio/src/panels/ObjectEditorPanel/propEditors/utils/SingleRowPropEditor.tsx +++ b/theatre/studio/src/panels/DetailPanel/propEditors/utils/SingleRowPropEditor.tsx @@ -5,8 +5,8 @@ import useContextMenu from '@theatre/studio/uiComponents/simpleContextMenu/useCo import useRefAndState from '@theatre/studio/utils/useRefAndState' import {last} from 'lodash-es' import React from 'react' -import type {useEditingToolsForPrimitiveProp} from '@theatre/studio/panels/ObjectEditorPanel/propEditors/utils/useEditingToolsForPrimitiveProp' -import {shadeToColor} from '@theatre/studio/panels/ObjectEditorPanel/propEditors/utils/useEditingToolsForPrimitiveProp' +import type {useEditingToolsForPrimitiveProp} from '@theatre/studio/panels/DetailPanel/propEditors/utils/useEditingToolsForPrimitiveProp' +import {shadeToColor} from '@theatre/studio/panels/DetailPanel/propEditors/utils/useEditingToolsForPrimitiveProp' import styled, {css} from 'styled-components' import {transparentize} from 'polished' import {pointerEventsAutoInNormalMode} from '@theatre/studio/css' diff --git a/theatre/studio/src/panels/ObjectEditorPanel/propEditors/utils/useEditingToolsForPrimitiveProp.tsx b/theatre/studio/src/panels/DetailPanel/propEditors/utils/useEditingToolsForPrimitiveProp.tsx similarity index 100% rename from theatre/studio/src/panels/ObjectEditorPanel/propEditors/utils/useEditingToolsForPrimitiveProp.tsx rename to theatre/studio/src/panels/DetailPanel/propEditors/utils/useEditingToolsForPrimitiveProp.tsx diff --git a/theatre/studio/src/panels/OutlinePanel/BaseItem.tsx b/theatre/studio/src/panels/OutlinePanel/BaseItem.tsx index d3aaaf8..d47be71 100644 --- a/theatre/studio/src/panels/OutlinePanel/BaseItem.tsx +++ b/theatre/studio/src/panels/OutlinePanel/BaseItem.tsx @@ -4,7 +4,7 @@ import {GoChevronRight, DiHtml53DEffects} from 'react-icons/all' import styled, {css} from 'styled-components' import noop from '@theatre/shared/utils/noop' import {transparentize, darken, opacify, lighten} from 'polished' -import {rowBgColor} from '@theatre/studio/panels/ObjectEditorPanel/propEditors/utils/SingleRowPropEditor' +import {rowBgColor} from '@theatre/studio/panels/DetailPanel/propEditors/utils/SingleRowPropEditor' import {pointerEventsAutoInNormalMode} from '@theatre/studio/css' export const Container = styled.li` diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.tsx index baa49ea..e5bf72b 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/AnyCompositeRow.tsx @@ -4,7 +4,7 @@ import type {VoidFn} from '@theatre/shared/utils/types' import React from 'react' import {HiOutlineChevronRight} from 'react-icons/all' import styled from 'styled-components' -import {propNameText} from '@theatre/studio/panels/ObjectEditorPanel/propEditors/utils/SingleRowPropEditor' +import {propNameText} from '@theatre/studio/panels/DetailPanel/propEditors/utils/SingleRowPropEditor' export const Container = styled.li<{depth: number}>` --depth: ${(props) => props.depth}; diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.tsx index 28ee373..4efb8c8 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Left/PrimitivePropRow.tsx @@ -8,11 +8,11 @@ import type {Pointer} from '@theatre/dataverse' import {val} from '@theatre/dataverse' import React, {useCallback, useRef} from 'react' import styled from 'styled-components' -import {useEditingToolsForPrimitiveProp} from '@theatre/studio/panels/ObjectEditorPanel/propEditors/utils/useEditingToolsForPrimitiveProp' -import {nextPrevCursorsTheme} from '@theatre/studio/panels/ObjectEditorPanel/propEditors/utils/NextPrevKeyframeCursors' +import {useEditingToolsForPrimitiveProp} from '@theatre/studio/panels/DetailPanel/propEditors/utils/useEditingToolsForPrimitiveProp' +import {nextPrevCursorsTheme} from '@theatre/studio/panels/DetailPanel/propEditors/utils/NextPrevKeyframeCursors' import {graphEditorColors} from '@theatre/studio/panels/SequenceEditorPanel/GraphEditor/GraphEditor' import {BaseHeader, Container as BaseContainer} from './AnyCompositeRow' -import {propNameText} from '@theatre/studio/panels/ObjectEditorPanel/propEditors/utils/SingleRowPropEditor' +import {propNameText} from '@theatre/studio/panels/DetailPanel/propEditors/utils/SingleRowPropEditor' const theme = { label: { diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthEditorPopover.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthEditorPopover.tsx index f06ff99..85206eb 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthEditorPopover.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/LengthIndicator/LengthEditorPopover.tsx @@ -6,7 +6,7 @@ import {usePrism, useVal} from '@theatre/dataverse-react' import getStudio from '@theatre/studio/getStudio' import BasicNumberInput from '@theatre/studio/uiComponents/form/BasicNumberInput' import type {CommitOrDiscard} from '@theatre/studio/StudioStore/StudioStore' -import {propNameText} from '@theatre/studio/panels/ObjectEditorPanel/propEditors/utils/SingleRowPropEditor' +import {propNameText} from '@theatre/studio/panels/DetailPanel/propEditors/utils/SingleRowPropEditor' const greaterThanZero = (v: number) => isFinite(v) && v > 0