From dd8d4fe622756d91f73369398f5dc9c4341f69df Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Thu, 19 Jun 2025 12:44:58 +0300 Subject: [PATCH] F: Upgrade hover animations pt2 --- .../src/app/navigation/toggle-navigation.tsx | 16 ++++++++++---- .../src/components/control/mini-button.tsx | 8 +++---- .../src/components/input/combo-box.tsx | 7 ++++++- .../src/components/input/combo-multi.tsx | 2 +- .../src/components/input/select-tree.tsx | 3 +-- .../frontend/src/components/input/select.tsx | 4 ++-- .../src/components/view/value-icon.tsx | 2 +- .../features/help/components/badge-help.tsx | 2 +- .../components/editor-library-item.tsx | 1 - .../features/library/components/menu-role.tsx | 3 +-- .../library/components/select-location.tsx | 1 - .../dlg-edit-editors/dlg-edit-editors.tsx | 3 +-- .../dlg-edit-versions/table-versions.tsx | 1 - .../pages/library-page/library-page.tsx | 1 - .../library-page/use-library-columns.tsx | 5 ++--- .../pages/library-page/view-side-location.tsx | 3 +-- .../features/oss/components/pick-contents.tsx | 3 --- .../oss/components/pick-multi-operation.tsx | 3 --- .../oss/dialogs/dlg-change-input-schema.tsx | 1 - .../tab-input-operation.tsx | 1 - .../oss/pages/oss-page/menu-edit-oss.tsx | 2 +- .../features/oss/pages/oss-page/menu-main.tsx | 2 +- .../rsform/components/pick-substitutions.tsx | 3 --- .../dlg-cst-template/tab-arguments.tsx | 3 --- .../dlg-edit-word-forms.tsx | 5 ----- .../dlg-edit-word-forms/table-word-forms.tsx | 1 - .../editor-constituenta/form-constituenta.tsx | 6 ++---- .../toolbar-constituenta.tsx | 5 ++--- .../toolbar-rsexpression.tsx | 3 --- .../editor-rslist/editor-rslist.tsx | 2 +- .../editor-term-graph/toolbar-term-graph.tsx | 3 +-- .../editor-term-graph/view-hidden.tsx | 1 - .../pages/rsform-page/menu-edit-schema.tsx | 3 +-- .../rsform/pages/rsform-page/menu-main.tsx | 2 +- .../view-constituents/constituents-search.tsx | 1 - .../features/users/components/table-users.tsx | 1 - .../users/pages/register-page/form-signup.tsx | 2 +- rsconcept/frontend/src/styling/components.css | 7 ------- rsconcept/frontend/src/styling/utilities.css | 21 +++++++++++++++++++ 39 files changed, 65 insertions(+), 78 deletions(-) diff --git a/rsconcept/frontend/src/app/navigation/toggle-navigation.tsx b/rsconcept/frontend/src/app/navigation/toggle-navigation.tsx index a35f2d6f..8be5cd7f 100644 --- a/rsconcept/frontend/src/app/navigation/toggle-navigation.tsx +++ b/rsconcept/frontend/src/app/navigation/toggle-navigation.tsx @@ -25,8 +25,12 @@ export function ToggleNavigation() { data-tooltip-content={noNavigationAnimation ? 'Показать навигацию' : 'Скрыть навигацию'} aria-label={noNavigationAnimation ? 'Показать навигацию' : 'Скрыть навигацию'} > - {!noNavigationAnimation ? : null} - {noNavigationAnimation ? : null} + {!noNavigationAnimation ? ( + + ) : null} + {noNavigationAnimation ? ( + + ) : null} {!noNavigationAnimation ? ( ) : null} diff --git a/rsconcept/frontend/src/components/control/mini-button.tsx b/rsconcept/frontend/src/components/control/mini-button.tsx index 1030e3ac..963ab76e 100644 --- a/rsconcept/frontend/src/components/control/mini-button.tsx +++ b/rsconcept/frontend/src/components/control/mini-button.tsx @@ -1,8 +1,7 @@ -import clsx from 'clsx'; - import { globalIDs } from '@/utils/constants'; import { type Button } from '../props'; +import { cn } from '../utils'; interface MiniButtonProps extends Button { /** Button type. */ @@ -37,11 +36,12 @@ export function MiniButton({