From 4537d0b114778a7bd2452cee1c75fc1c0cb8b3c1 Mon Sep 17 00:00:00 2001 From: Felix <67233923+DasProffi@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:27:04 +0100 Subject: [PATCH] feat: remove Span component in favor of a twind class (#1141) * feat: remove Span component in favor of a twind class * fix: fix Tile component usage of classnames * fix: fix lint * fix: fix lint --- landing-page/components/Footer.tsx | 3 +- landing-page/components/Header.tsx | 31 +++++----- landing-page/components/NewsLetterForm.tsx | 5 +- landing-page/components/PartnerList.tsx | 3 +- .../sections/landing/MarketStatsSection.tsx | 7 +-- .../sections/landing/StartSection.tsx | 5 +- .../landing/StepsToDigitalizationSection.tsx | 5 +- .../sections/landing/TasksDemoSection.tsx | 3 +- .../sections/landing/VisionSection.tsx | 5 +- .../mediQuu/BrandInformationSection.tsx | 8 +-- .../sections/mediQuu/ContactSection.tsx | 13 ++--- .../components/sections/mediQuu/Header.tsx | 5 +- .../sections/mediQuu/InformationSection.tsx | 9 ++- .../sections/mediQuu/MediQuuFAQ.tsx | 5 +- .../sections/mediQuu/RoadmapSection.tsx | 11 ++-- .../sections/mediQuu/TeamSection.tsx | 5 +- .../components/sections/story/StoryHeader.tsx | 5 +- .../sections/story/StoryInUseAtSection.tsx | 3 +- .../sections/story/StoryStartSection.tsx | 58 +++++++++---------- .../tasks/ConnectOrganizationFeature.tsx | 7 +-- .../sections/tasks/FeatureSection.tsx | 9 ++- .../sections/tasks/MobileFeatureSection.tsx | 9 ++- .../sections/tasks/PatientSection.tsx | 7 +-- .../sections/tasks/PropertiesSection.tsx | 7 +-- .../sections/tasks/StartSection.tsx | 7 +-- .../sections/tasks/TasksKanbanSection.tsx | 7 +-- .../sections/tasks/TasksTemplatesSection.tsx | 7 +-- .../sections/tasks/TrustedBySection.tsx | 3 +- landing-page/pages/credits/index.tsx | 13 ++--- landing-page/pages/join/index.tsx | 5 +- lib/components/AvatarGroup.tsx | 3 +- lib/components/BreadCrumb.tsx | 3 +- lib/components/DescriptionWithAction.tsx | 5 +- lib/components/HelpwaveBadge.tsx | 4 +- lib/components/InputGroup.tsx | 3 +- lib/components/Profile.tsx | 13 ++--- lib/components/Span.tsx | 45 -------------- lib/components/TextImage.tsx | 7 +-- lib/components/date/YearMonthPicker.tsx | 3 +- .../examples/MultiSelectExample.tsx | 3 +- lib/components/examples/TableExample.tsx | 9 ++- lib/components/examples/Title.tsx | 44 -------------- lib/components/layout/FAQSection.tsx | 3 +- lib/components/layout/Tile.tsx | 10 ++-- lib/components/modals/Modal.tsx | 7 +-- .../properties/CheckboxProperty.tsx | 5 +- .../properties/MultiSelectProperty.tsx | 3 +- lib/components/properties/NumberProperty.tsx | 3 +- lib/components/user-input/Label.tsx | 12 +++- lib/components/user-input/MultiSelect.tsx | 3 +- lib/components/user-input/Select.tsx | 3 +- lib/stories/layout/tile/Tile.stories.ts | 4 +- .../layout/tile/TileWithImage.stories.tsx | 2 +- lib/stories/other/SearchableList.stories.tsx | 3 +- lib/stories/other/Translation.stories.tsx | 47 ++++++++++++++- lib/stories/other/Translation.tsx | 16 ----- .../input/select/SearchableSelect.stories.tsx | 3 +- .../input/select/Select.stories.tsx | 3 +- lib/twind/config.ts | 38 ++---------- lib/twind/textstyles.ts | 19 ++++++ lib/twind/typography.ts | 30 ++++++++++ tasks/components/BedInRoomIndicator.tsx | 5 +- tasks/components/ColumnTitle.tsx | 5 +- tasks/components/Header.tsx | 3 +- tasks/components/KanbanHeader.tsx | 3 +- tasks/components/MobileInterceptor.tsx | 3 +- tasks/components/NewsDisplay.tsx | 5 +- tasks/components/OrganizationForm.tsx | 17 +++--- .../components/OrganizationInvitationList.tsx | 7 +-- tasks/components/OrganizationMemberList.tsx | 15 +++-- tasks/components/RoomList.tsx | 11 ++-- tasks/components/RoomOverview.tsx | 3 +- tasks/components/SubtaskView.tsx | 5 +- tasks/components/TaskTemplateListColumn.tsx | 5 +- tasks/components/TaskTemplateWardPreview.tsx | 3 +- tasks/components/UserInvitationList.tsx | 5 +- tasks/components/WardForm.tsx | 5 +- tasks/components/cards/AddCard.tsx | 3 +- tasks/components/cards/BedCard.tsx | 5 +- tasks/components/cards/PatientCard.tsx | 5 +- tasks/components/cards/TaskCard.tsx | 7 +-- tasks/components/cards/TaskTemplateCard.tsx | 5 +- tasks/components/cards/WardCard.tsx | 5 +- tasks/components/layout/DashboardDisplay.tsx | 7 +-- .../components/layout/OrganizationDetails.tsx | 5 +- tasks/components/layout/PatientList.tsx | 17 +++--- tasks/components/layout/TaskDetailView.tsx | 15 +++-- .../components/layout/TaskTemplateDetails.tsx | 3 +- .../components/layout/TaskTemplateDisplay.tsx | 8 +-- tasks/components/layout/WardDetails.tsx | 7 +-- tasks/components/layout/WardRoomList.tsx | 5 +- .../layout/property/PropertyDetails.tsx | 3 +- .../layout/property/PropertyDetailsField.tsx | 5 +- .../layout/property/PropertyDetailsRules.tsx | 2 +- .../layout/property/PropertyDisplay.tsx | 13 ++--- .../layout/property/PropertyList.tsx | 5 +- tasks/components/modals/AddPatientModal.tsx | 7 +-- tasks/components/modals/ManageBedsModal.tsx | 9 ++- .../modals/PatientDischargeModal.tsx | 5 +- tasks/components/modals/ReSignInModal.tsx | 3 +- tasks/components/pill/PillLabel.tsx | 3 +- tasks/components/selects/RoomBedSelect.tsx | 21 ++++--- tasks/pages/ward/[wardId].tsx | 6 +- 103 files changed, 389 insertions(+), 516 deletions(-) delete mode 100644 lib/stories/other/Translation.tsx create mode 100644 lib/twind/textstyles.ts create mode 100644 lib/twind/typography.ts diff --git a/landing-page/components/Footer.tsx b/landing-page/components/Footer.tsx index 66845e31..a8e09a82 100644 --- a/landing-page/components/Footer.tsx +++ b/landing-page/components/Footer.tsx @@ -1,7 +1,6 @@ import { useEffect } from 'react' import { useTranslation } from '@helpwave/common/hooks/useTranslation' import * as CookieConsent from 'vanilla-cookieconsent' -import { Span } from '@helpwave/common/components/Span' import { Helpwave } from '@helpwave/common/icons/Helpwave' import { tw } from '@helpwave/common/twind' import type { Languages } from '@helpwave/common/hooks/useLanguage' @@ -116,7 +115,7 @@ const Footer = () => {