From 54442dc9a1d5011f66a2a629f175cd26fbccf748 Mon Sep 17 00:00:00 2001
From: Carlos Valente <34649812+cpvalente@users.noreply.github.com>
Date: Wed, 26 Oct 2022 15:12:57 +0200
Subject: [PATCH] V2 styles part2 (#233)
* style: create tag to display network messages
* style: create button style for playback
* style: review style for QuickEntry
* style: review style for Info panel
* style: review style for Event blocks
* style: review style for Message control panel
* style: review style for Playback control
* style: review application styles
* style: review block styles
* refactor: TapButton has active state
* style: small style tweaks
* refactor: type checks
---
.../components/buttons/ActionButtons.tsx | 8 +-
.../buttons/TooltipLoadingActionBtn.jsx | 34 ------
.../buttons/TooltipLoadingActionBtn.tsx | 33 +++++
.../collapseBar/CollapseBar.module.scss | 9 +-
.../src/common/components/input/TimeInput.jsx | 47 ++++++--
.../components/osc-tag/CopyTag.module.scss | 26 ++++
.../src/common/components/osc-tag/CopyTag.tsx | 34 ++++++
client/src/common/utils/dateConfig.js | 5 +-
client/src/common/utils/time.js | 2 +-
.../control/message/MessageControl.jsx | 8 +-
.../message/MessageControl.module.scss | 29 +++--
.../features/control/playback/Playback.jsx | 43 -------
.../features/control/playback/Playback.tsx | 61 ++++++++++
.../playback/PlaybackControl.module.scss | 21 ++--
...laybackControl.jsx => PlaybackControl.tsx} | 7 +-
.../{PlaybackTimer.jsx => PlaybackTimer.tsx} | 113 ++++++++----------
.../control/playback/TapButton.module.scss | 65 ++++++++++
.../features/control/playback/TapButton.tsx | 31 +++++
.../features/control/playback/Transport.jsx | 53 --------
.../features/control/playback/Transport.tsx | 63 ++++++++++
.../src/features/editors/Editor.module.scss | 8 +-
client/src/features/editors/_blockMixins.scss | 4 +-
.../editors/block-block/BlockBlock.jsx | 6 +-
.../block-block/BlockBlock.module.scss | 15 +--
.../editors/delay-block/DelayBlock.jsx | 10 +-
.../delay-block/DelayBlock.module.scss | 14 +--
.../event-block/EventBlock.module.scss | 10 +-
.../editors/event-block/EventBlock.tsx | 18 ++-
.../composite/EventBlockActionMenu.jsx | 4 +-
.../src/features/editors/list/EventList.jsx | 4 +-
.../features/editors/list/List.module.scss | 2 +-
.../QuickAddBlock.module.scss} | 3 +-
.../QuickAddBlock.tsx} | 8 +-
.../src/features/event-editor/EventEditor.jsx | 90 ++++++++------
.../event-editor/EventEditor.module.scss | 32 +++--
client/src/features/info/Info.jsx | 4 +-
client/src/features/info/Info.module.scss | 15 ---
.../src/features/info/InfoLogger.module.scss | 5 +-
.../features/menu/EventListMenu.module.scss | 6 +
client/src/features/menu/EventListMenu.tsx | 39 +++---
client/src/theme/_main.scss | 20 ++--
client/src/theme/_mixins.scss | 7 --
42 files changed, 611 insertions(+), 405 deletions(-)
delete mode 100644 client/src/common/components/buttons/TooltipLoadingActionBtn.jsx
create mode 100644 client/src/common/components/buttons/TooltipLoadingActionBtn.tsx
create mode 100644 client/src/common/components/osc-tag/CopyTag.module.scss
create mode 100644 client/src/common/components/osc-tag/CopyTag.tsx
delete mode 100644 client/src/features/control/playback/Playback.jsx
create mode 100644 client/src/features/control/playback/Playback.tsx
rename client/src/features/control/playback/{PlaybackControl.jsx => PlaybackControl.tsx} (74%)
rename client/src/features/control/playback/{PlaybackTimer.jsx => PlaybackTimer.tsx} (50%)
create mode 100644 client/src/features/control/playback/TapButton.module.scss
create mode 100644 client/src/features/control/playback/TapButton.tsx
delete mode 100644 client/src/features/control/playback/Transport.jsx
create mode 100644 client/src/features/control/playback/Transport.tsx
rename client/src/features/editors/{entry-block/EntryBlock.module.scss => quick-add-block/QuickAddBlock.module.scss} (97%)
rename client/src/features/editors/{entry-block/EntryBlock.tsx => quick-add-block/QuickAddBlock.tsx} (95%)
diff --git a/client/src/common/components/buttons/ActionButtons.tsx b/client/src/common/components/buttons/ActionButtons.tsx
index 056dfebe8..62344a52c 100644
--- a/client/src/common/components/buttons/ActionButtons.tsx
+++ b/client/src/common/components/buttons/ActionButtons.tsx
@@ -3,8 +3,6 @@ import { FiClock } from '@react-icons/all-files/fi/FiClock';
import { FiMinusCircle } from '@react-icons/all-files/fi/FiMinusCircle';
import { FiPlus } from '@react-icons/all-files/fi/FiPlus';
-import { tooltipDelayMid } from '../../../ontimeConfig';
-
interface ActionButtonProps {
showAdd?: boolean;
showDelay?: boolean;
@@ -22,14 +20,14 @@ export default function ActionButtons(props: ActionButtonProps) {
return (