From 5c863f13077ff91608e54f785d602bb40d9a0bd4 Mon Sep 17 00:00:00 2001
From: Nick Funk
Date: Wed, 15 Jul 2020 12:20:25 -0600
Subject: [PATCH] [CORL-1155] Fix theming for rebranded stream/admin (#3012)
* Repair theming and CSS variables for the rebrand
This separates the CSS variables into three sections
for admin, stream, as well as a shared set between
them.
This also adds injection of the raw colours from the
design team into post css variables.
Lastly, this re-maps the existing theme variables to
a new consolidated set with fallbacks for compatibility.
Since this is a singular commit from various WIP commits,
I am crediting @cvle as well as myself for this work.
Thank you all who helped make this rebrand with theming
possible!
CORL-1155
Co-authored-by: Chi Vinh Le
* Convert old css variables in CallOut
* Rename postive/negative => success/error
CORL-1155
* Change some CSS Variable names
* fix TextField/PasswordField colors
Co-authored-by: Chi Vinh Le
---
CSS_VARIABLES.md | 295 +++++++++
gatsby-node.js | 6 +-
package-lock.json | 112 ++--
package.json | 4 +
scripts/generateCSSVariablesDocs.ts | 306 +++++++++
src/core/build/paths.ts | 4 +-
src/core/build/postcss.config.js | 26 +-
src/core/client/account/App/MainLayout.css | 4 +-
.../client/account/components/Loading.tsx | 2 +-
src/core/client/account/index.tsx | 2 +-
src/core/client/account/routes/NotFound.css | 10 +-
.../download/Download/DownloadDescription.css | 32 +-
.../download/Download/DownloadRoute.css | 4 +-
.../download/Download/DownloadRoute.tsx | 2 +-
.../account/routes/email/Confirm/Confirm.css | 52 +-
.../notifications/Unsubscribe/Unsubscribe.css | 52 +-
.../account/routes/password/Reset/Reset.css | 52 +-
.../App/DecisionHistory/ApprovedIcon.css | 2 +-
.../DecisionHistory/DecisionHistoryButton.css | 2 +-
.../App/DecisionHistory/DecisionItem.css | 4 +-
.../App/DecisionHistory/DecisionList.css | 2 +-
.../admin/App/DecisionHistory/DotDivider.css | 8 +-
.../admin/App/DecisionHistory/Empty.css | 8 +-
.../admin/App/DecisionHistory/Footer.css | 2 +-
.../App/DecisionHistory/GoToCommentLink.css | 12 +-
.../client/admin/App/DecisionHistory/Info.css | 10 +-
.../App/DecisionHistory/RejectedIcon.css | 2 +-
.../App/DecisionHistory/ShowMoreButton.css | 18 +-
.../admin/App/DecisionHistory/Timestamp.css | 10 +-
.../admin/App/DecisionHistory/Title.css | 20 +-
.../admin/App/DecisionHistory/Username.css | 10 +-
.../NotificationContainer.tsx | 1 +
src/core/client/admin/App/Main.tsx | 2 +-
.../client/admin/App/UserMenu/UserMenu.css | 6 +-
src/core/client/admin/App/Version.css | 4 +-
src/core/client/admin/App/Version.tsx | 2 +-
src/core/client/admin/components/AuthBox.css | 6 +-
.../components/Comment/CommentContent.css | 20 +-
.../admin/components/Comment/InReplyTo.css | 26 +-
.../admin/components/Comment/Username.css | 10 +-
.../components/Comment/UsernameButton.css | 10 +-
.../components/Comment/UsernameButton.tsx | 1 +
.../ConversationModal/ConversationModal.tsx | 2 +-
.../ConversationModalCommentContainer.css | 22 +-
.../ConversationModalContainer.css | 4 +-
.../ConversationModalHeaderContainer.css | 14 +-
.../ConversationModalQuery.css | 2 +-
.../ConversationModalRepliesContainer.css | 4 +-
.../client/admin/components/ModalBodyText.css | 10 +-
.../client/admin/components/ModalHeader.css | 10 +-
.../admin/components/ModalHeaderUsername.css | 6 +-
.../components/ModerateCard/ApproveButton.css | 24 +-
.../ModerateCard/CommentAuthorContainer.css | 2 +-
.../components/ModerateCard/FeatureButton.css | 32 +-
.../ModerateCard/FlagDetailsCategory.css | 10 +-
.../ModerateCard/FlagDetailsContainer.css | 2 +-
.../ModerateCard/FlagDetailsEntry.css | 35 +-
.../ModerateCard/LinkDetailsContainer.css | 8 +-
.../admin/components/ModerateCard/Markers.css | 9 +-
.../admin/components/ModerateCard/Media.css | 12 +-
.../components/ModerateCard/ModerateCard.css | 110 ++--
.../ModerateCardDetailsContainer.css | 2 +-
.../ModerateCard/ModeratedByContainer.css | 20 +-
.../components/ModerateCard/RejectButton.css | 22 +-
.../components/ModerateCard/ToxicityLabel.css | 12 +-
.../client/admin/components/NotAvailable.css | 2 +-
.../client/admin/components/NotAvailable.tsx | 2 +
.../PaginatedSelect/PaginatedSelect.css | 12 +-
.../admin/components/Timeline/Circle.css | 4 +-
.../client/admin/components/Timeline/Line.css | 4 +-
.../UserHistoryDrawer/ModeratorNote.css | 44 +-
.../UserHistoryDrawer/RecentHistory.css | 40 +-
.../components/UserHistoryDrawer/Tabs.css | 10 +-
.../UserDrawerAccountHistory.css | 2 +-
.../UserDrawerAccountHistoryQuery.css | 2 +-
.../UserDrawerNotesContainer.css | 6 +-
.../UserDrawerNotesQuery.css | 6 +-
.../UserHistoryDrawer/UserHistoryDrawer.css | 2 +-
.../UserHistoryDrawer/UserHistoryDrawer.tsx | 3 +-
.../UserHistoryDrawerAllComments.css | 4 +-
.../UserHistoryDrawerAllCommentsQuery.css | 4 +-
.../UserHistoryDrawerContainer.css | 34 +-
.../UserHistoryDrawerQuery.css | 2 +-
.../UserHistoryDrawerRejectedComments.css | 4 +-
...UserHistoryDrawerRejectedCommentsQuery.css | 4 +-
.../UserStatusDetailsContainer.css | 14 +-
.../UsernameChangeAction.css | 4 +-
.../UserRole/SiteModeratorModal.css | 4 +-
.../components/UserRole/UserRoleText.css | 8 +-
.../admin/components/UserStatus/BanModal.css | 10 +-
.../UserStatus/ChangeStatusModal.css | 4 +-
.../components/UserStatus/SuspendForm.css | 11 +
.../components/UserStatus/SuspendModal.css | 37 ++
.../components/UserStatus/UserStatus.css | 18 +-
.../UserStatus/UserStatusChange.css | 4 +-
src/core/client/admin/index.tsx | 2 +-
.../admin/routes/AuthCheck/NetworkError.tsx | 2 +-
.../admin/routes/AuthCheck/Restricted.css | 52 +-
.../admin/routes/Community/EmptyMessage.css | 8 +-
.../Community/InviteUsers/InviteUsers.css | 2 +-
.../Community/InviteUsers/InviteUsersForm.css | 10 +-
.../InviteUsers/InviteUsersModal.css | 14 +-
.../Community/InviteUsers/RoleField.css | 9 +
.../routes/Community/InviteUsers/Success.css | 10 +-
.../routes/Community/InviteUsers/Success.tsx | 6 +-
.../client/admin/routes/Community/UserRow.css | 10 +-
.../routes/Community/UserTableFilter.tsx | 5 +-
.../admin/routes/Configure/ConfigBox.css | 8 +-
.../client/admin/routes/Configure/Header.css | 12 +-
.../admin/routes/Configure/HelperText.css | 10 +-
.../admin/routes/Configure/HorizontalRule.css | 2 +-
.../client/admin/routes/Configure/Link.css | 26 +-
.../admin/routes/Configure/SectionContent.css | 4 +-
.../admin/routes/Configure/Subheader.css | 14 +-
.../Configure/TextFieldWithValidation.tsx | 2 +-
.../routes/Configure/ValidationMessage.tsx | 1 -
.../Advanced/AdvancedConfigContainer.tsx | 2 +-
.../sections/Auth/AccountFeaturesConfig.css | 2 +-
.../SSOSigningSecretRotation/DateField.css | 10 +-
.../RotationDropdown.css | 2 +-
.../SSOSigningSecretCard.css | 8 +-
.../SSOSigningSecretRotation/StatusField.css | 34 +-
.../General/AnnouncementFormModal.css | 14 +-
.../General/AnnouncementFormModal.tsx | 7 +-
.../sections/General/CommentLengthConfig.css | 10 +-
.../General/GeneralConfigContainer.css | 2 +-
.../General/GeneralConfigContainer.tsx | 2 +-
.../sections/General/MediaLinksConfig.css | 8 +-
.../Configure/sections/General/RTEConfig.css | 10 +-
.../sections/General/ReactionConfig.css | 2 +-
.../Moderation/ModerationConfigContainer.tsx | 2 +-
.../RotateSigningSecretModal.css | 8 +-
.../ExternalModerationPhaseRow.css | 8 +-
.../ModerationPhases/StatusMarker.css | 14 +-
.../Configure/sections/Slack/SlackChannel.css | 24 +-
.../sections/Slack/SlackConfigContainer.css | 4 +-
.../sections/Slack/SlackConfigRoute.tsx | 5 +-
.../RotateSigningSecretModal.css | 8 +-
.../EventsSelectField.tsx | 2 +-
.../WebhookEndpoints/StatusMarker.css | 14 +-
.../WebhookEndpoints/WebhookEndpointRow.css | 8 +-
.../WordList/WordListConfigContainer.tsx | 2 +-
.../routes/Dashboard/DashboardContainer.css | 16 +-
.../Dashboard/DashboardSiteContainer.css | 2 +-
.../Dashboard/components/DashboardBox.css | 6 +-
.../components/DashboardComponentHeading.css | 6 +-
.../components/SiteDashboardTimestamp.css | 10 +-
.../components/SiteDashboardTimestamp.tsx | 2 +-
.../components/TodayCompareValue.css | 6 +-
.../components/TodayDashboardBox.css | 16 +-
.../Dashboard/components/TodayValue.css | 10 +-
.../Dashboard/sections/CommentActivity.css | 18 +-
.../sections/CommentActivityTooltip.css | 24 +-
.../Dashboard/sections/SignupActivity.css | 8 +-
.../admin/routes/Dashboard/sections/Today.css | 26 +-
.../routes/ForgotPassword/CheckEmail.tsx | 2 +-
.../ForgotPasswordContainer.css | 13 +-
.../ForgotPasswordContainer.tsx | 2 +-
.../ForgotPassword/ForgotPasswordForm.tsx | 4 +-
.../routes/Invite/InviteCompleteForm.tsx | 6 +-
.../admin/routes/Invite/InviteLayout.tsx | 4 +-
.../admin/routes/Invite/InviteRoute.tsx | 2 +-
.../admin/routes/Invite/SetPasswordField.tsx | 2 +-
.../admin/routes/Invite/SetUsernameField.tsx | 2 +-
src/core/client/admin/routes/Invite/Sorry.tsx | 2 +-
.../client/admin/routes/Invite/Success.css | 4 +-
.../client/admin/routes/Invite/Success.tsx | 2 +-
.../admin/routes/Login/CompleteAccountBox.css | 34 +-
.../admin/routes/Login/CompleteAccountBox.tsx | 15 +-
.../CompleteAccountBox.spec.tsx.snap | 15 +-
.../views/AddEmailAddress/AddEmailAddress.tsx | 15 +-
.../AddEmailAddress/ConfirmEmailField.tsx | 2 +-
.../views/AddEmailAddress/EmailField.tsx | 2 +-
.../UnorderedList/ListItem.tsx | 2 +-
.../views/CreatePassword/CreatePassword.tsx | 15 +-
.../views/CreatePassword/SetPasswordField.tsx | 6 +-
.../views/CreateUsername/CreateUsername.tsx | 15 +-
.../views/CreateUsername/UsernameField.tsx | 2 +-
.../views/LinkAccount/HorizontalSeparator.css | 8 +-
.../views/LinkAccount/HorizontalSeparator.tsx | 2 +-
.../LinkAccount/LinkAccountContainer.tsx | 14 +-
.../views/SignIn/HorizontalSeparator.css | 10 +-
.../routes/Login/views/SignIn/SignIn.css | 16 +-
.../Login/views/SignIn/SignInWithEmail.css | 16 +-
.../routes/Login/views/SignIn/Version.css | 22 +-
.../admin/routes/Moderate/HotkeysModal.css | 40 +-
.../client/admin/routes/Moderate/Moderate.css | 2 +-
.../routes/Moderate/ModerateSearchBar/Bar.css | 4 +-
.../Moderate/ModerateSearchBar/Field.css | 36 +-
.../Moderate/ModerateSearchBar/Group.css | 8 +-
.../ModerateSearchBar/ModerateAllOption.css | 14 +-
.../Moderate/ModerateSearchBar/Option.css | 22 +-
.../ModerateSearchBar/OptionDetail.css | 6 +-
.../ModerateSearchBar/SeeAllOption.css | 13 +-
.../Moderate/ModerateSearchBar/variables.css | 38 +-
.../routes/Moderate/Queue/EmptyMessage.css | 8 +-
.../routes/Moderate/Queue/QueueWrapper.tsx | 5 +-
.../SectionSelectorSection.css | 16 +-
.../SingleModerate/SingleModerate.css | 14 +-
.../Moderate/SiteSelector/SiteSelector.css | 1 +
.../SiteSelectorCurrentSiteQuery.tsx | 3 +-
.../SiteSelector/SiteSelectorSite.css | 16 +-
src/core/client/admin/routes/NotFound.css | 8 +-
.../admin/routes/Stories/EmptyMessage.css | 8 +-
.../admin/routes/Stories/NoMatchMessage.css | 8 +-
.../routes/Stories/SiteFilter/SiteFilter.css | 4 +-
.../Stories/SiteFilter/SiteFilterOption.css | 6 +-
.../Stories/SiteFilter/SiteFilterSelected.css | 2 +-
.../client/admin/routes/Stories/StoryRow.css | 6 +-
.../Stories/StoryStatus/StoryStatusText.css | 8 +-
.../admin/routes/Stories/StoryTable.css | 6 +-
.../addEmailAddress.spec.tsx.snap | 132 ++--
.../createPassword.spec.tsx.snap | 122 ++--
.../createUsername.spec.tsx.snap | 122 ++--
.../__snapshots__/linkAccount.spec.tsx.snap | 35 +-
.../__snapshots__/general.spec.tsx.snap | 36 +-
.../invite/__snapshots__/invite.spec.tsx.snap | 275 +++++++-
.../client/auth/components/Header/Bar.css | 2 +-
.../client/auth/components/Header/Bar.tsx | 2 +-
.../client/auth/components/Header/SubBar.tsx | 2 +-
.../auth/components/Header/Subtitle.css | 2 +-
.../auth/components/Header/Subtitle.tsx | 2 +-
.../client/auth/components/Header/Title.css | 2 +-
.../client/auth/components/Header/Title.tsx | 2 +-
.../auth/components/HorizontalSeparator.css | 16 -
.../components/HorizontalSeparator.spec.tsx | 10 -
.../auth/components/HorizontalSeparator.tsx | 18 -
.../client/auth/components/OrSeparator.css | 14 +-
.../client/auth/components/OrSeparator.tsx | 4 +-
.../auth/components/SetPasswordField.css | 10 +-
.../client/auth/components/UsernameField.css | 10 +-
.../HorizontalSeparator.spec.tsx.snap | 18 -
src/core/client/auth/index.tsx | 2 +-
.../addEmailAddress.spec.tsx.snap | 10 +-
.../createUsername.spec.tsx.snap | 6 +-
.../forgotPassword.spec.tsx.snap | 2 +-
.../test/__snapshots__/signIn.spec.tsx.snap | 4 +-
.../test/__snapshots__/signUp.spec.tsx.snap | 8 +-
.../views/AddEmailAddress/AddEmailAddress.css | 52 +-
.../UnorderedList/ListItem.tsx | 2 +-
.../views/CreatePassword/CreatePassword.css | 32 +-
.../views/CreateUsername/CreateUsername.css | 32 +-
.../auth/views/ForgotPassword/CheckEmail.css | 48 +-
.../ForgotPassword/ForgotPasswordForm.css | 46 +-
.../LinkAccount/LinkAccountContainer.css | 52 +-
src/core/client/auth/views/SignIn/SignIn.css | 40 +-
.../auth/views/SignIn/SignInWithEmail.css | 16 +-
.../SignIn/__snapshots__/SignIn.spec.tsx.snap | 12 +-
src/core/client/auth/views/SignUp/SignUp.css | 40 +-
.../auth/views/SignUp/SignUpWithEmail.css | 6 +-
.../SignUp/__snapshots__/SignUp.spec.tsx.snap | 6 +-
.../framework/components/DurationField.tsx | 2 +-
.../framework/components/FacebookButton.css | 10 +-
.../framework/components/GoogleButton.css | 10 +-
.../framework/components/LocaleField.tsx | 2 +-
.../client/framework/components/Markdown.css | 42 +-
.../framework/components/OIDCButton.css | 20 +-
.../FacebookButton.spec.tsx.snap | 4 +-
.../__snapshots__/GoogleButton.spec.tsx.snap | 4 +-
.../__snapshots__/OIDCButton.spec.tsx.snap | 4 +-
.../MarkdownEditor/MarkdownEditor.css | 39 +-
.../framework/helpers/getModerationLink.ts | 4 +-
.../framework/helpers/potentiallyInjectAxe.ts | 1 +
.../framework/lib/bootstrap/CoralContext.tsx | 2 +-
.../framework/lib/bootstrap/createManaged.tsx | 2 +-
src/core/client/framework/lib/events.ts | 1 +
.../lib/form/components/ValidationMessage.tsx | 8 +-
.../lib/i18n/components/ExternalLink.css | 2 +-
.../framework/lib/i18n/generateBundles.ts | 2 +-
.../framework/lib/router/withRouteConfig.ts | 1 +
src/core/client/framework/lib/validation.tsx | 10 +
.../client/framework/utils/parseHashQuery.ts | 1 -
src/core/client/install/App/App.css | 4 +-
src/core/client/install/App/App.tsx | 2 +-
src/core/client/install/App/Header.tsx | 2 +-
src/core/client/install/App/MainBar.css | 10 +-
src/core/client/install/App/MainBar.tsx | 2 +-
src/core/client/install/App/Wizard.tsx | 2 +-
.../install/App/steps/AddOrganizationStep.tsx | 12 +-
.../client/install/App/steps/BackButton.tsx | 7 +-
.../App/steps/CreateYourAccountStep.tsx | 16 +-
.../client/install/App/steps/FinalStep.tsx | 6 +-
.../client/install/App/steps/InitialStep.tsx | 6 +-
.../client/install/App/steps/NextButton.tsx | 7 +-
.../App/steps/PermittedDomainsStep.tsx | 9 +-
.../install/App/steps/SelectLanguageStep.tsx | 6 +-
src/core/client/install/index.tsx | 2 +-
src/core/client/stream/App/App.css | 1 +
src/core/client/stream/App/App.tsx | 2 +-
src/core/client/stream/App/TabBar.css | 16 +-
src/core/client/stream/common/Counter.ts | 2 +-
.../client/stream/common/Media/OEmbed.css | 4 +-
.../stream/common/MessageBox/MessageBox.css | 8 +-
.../common/MessageBox/MessageBoxContent.css | 10 +-
.../common/MessageBox/MessageBoxIcon.css | 2 +-
.../common/MessageBox/MessageBoxIcon.tsx | 2 +-
src/core/client/stream/common/Spinner.ts | 2 +-
.../common/UserBox/UserBoxAuthenticated.css | 30 +-
.../common/UserBox/UserBoxContainer.tsx | 2 +-
.../common/UserBox/UserBoxUnauthenticated.css | 18 +-
.../UserBoxAuthenticated.spec.tsx.snap | 2 +-
.../UserBoxUnauthenticated.spec.tsx.snap | 12 +-
src/core/client/stream/index.tsx | 2 +-
src/core/client/stream/shared/htmlContent.css | 24 +-
.../tabs/Comments/Comment/AnsweredTag.css | 4 +-
.../stream/tabs/Comments/Comment/Comment.css | 12 +-
.../stream/tabs/Comments/Comment/Comment.tsx | 2 +-
.../Comments/Comment/CommentContainer.css | 12 +-
.../tabs/Comments/Comment/CommentToggle.css | 18 +-
.../EditCommentForm/EditCommentForm.css | 4 +-
.../EditCommentForm/EditCommentMutation.ts | 2 +-
.../tabs/Comments/Comment/EditedMarker.css | 10 +-
.../tabs/Comments/Comment/FeaturedTag.css | 2 +-
.../tabs/Comments/Comment/InReplyTo.css | 22 +-
.../tabs/Comments/Comment/IndentedComment.css | 10 +-
.../tabs/Comments/Comment/IndentedComment.tsx | 41 +-
.../MediaConfirmation/MediaConfirmPrompt.css | 22 +-
.../MediaConfirmation/MediaConfirmation.css | 20 +-
.../MediaConfirmation/MediaPreview.css | 18 +-
.../ModerationDropdown/CaretContainer.css | 6 +-
.../ModerationActionBanContainer.css | 16 +-
.../ModerationActionBanContainer.tsx | 3 +-
.../ModerationActionsContainer.css | 36 +-
.../RejectedTombstoneContainer.css | 2 +-
.../PermalinkButton/PermalinkButton.css | 3 +
.../PermalinkButton/PermalinkButton.tsx | 28 +-
.../PermalinkButton/PermalinkPopover.css | 32 +-
.../CreateCommentReactionMutation.ts | 2 +-
.../Comment/ReactionButton/ReactionButton.css | 14 +-
.../Comment/ReactionButton/ReactionButton.tsx | 62 +-
.../tabs/Comments/Comment/ReplyButton.css | 4 +-
.../tabs/Comments/Comment/ReplyButton.tsx | 29 +-
.../ReplyCommentForm/ReplyCommentForm.css | 8 +-
.../Comment/ReplyCommentForm/ReplyTo.css | 26 +-
.../Comment/ReportFlow/ReportButton.css | 12 +-
.../Comment/ReportFlow/ReportButton.tsx | 2 +-
.../Comment/ReportFlow/ReportCommentForm.css | 72 ++-
.../Comment/ReportFlow/ReportCommentForm.tsx | 51 +-
.../tabs/Comments/Comment/RootParent.tsx | 2 +-
.../Comments/Comment/ShowConversationLink.css | 6 +-
.../tabs/Comments/Comment/TopBarLeft.spec.tsx | 2 +-
.../tabs/Comments/Comment/TopBarLeft.tsx | 2 +-
.../UserBanPopoverContainer.css | 24 +-
.../UserIgnorePopoverContainer.css | 24 +-
.../UserPopoverOverviewContainer.css | 12 +-
.../Comments/Comment/UserTagsContainer.css | 6 +-
.../Comments/Comment/Username/Username.css | 6 +-
.../IndentedComment.spec.tsx.snap | 19 -
.../__snapshots__/ReplyButton.spec.tsx.snap | 39 +-
.../__snapshots__/TopBarLeft.spec.tsx.snap | 2 +-
.../tabs/Comments/GifSelector/GifPreview.css | 6 +-
.../tabs/Comments/GifSelector/GifSelector.css | 20 +-
.../IgnoredTombstoneOrHideContainer.css | 24 +-
.../client/stream/tabs/Comments/Indent.css | 18 +-
.../ConversationThreadContainer.css | 16 +-
.../Comments/PermalinkView/PermalinkView.css | 24 +-
.../PermalinkView/PermalinkViewQuery.tsx | 3 +-
.../PermalinkView/Timeline/Circle.css | 12 +-
.../Comments/PermalinkView/Timeline/Line.css | 6 +-
.../__snapshots__/PermalinkView.spec.tsx.snap | 8 +-
.../PermalinkViewQuery.spec.tsx.snap | 2 +-
.../client/stream/tabs/Comments/RTE/RTE.css | 24 +-
.../client/stream/tabs/Comments/RTE/RTE.tsx | 3 +-
.../RTE/__snapshots__/RTE.spec.tsx.snap | 2 +-
.../RemainingCharacters.tsx | 2 +-
.../tabs/Comments/ReplyList/ReplyList.css | 2 +-
.../tabs/Comments/ReplyList/ReplyList.tsx | 5 +-
.../__snapshots__/ReplyList.spec.tsx.snap | 2 +
.../AllCommentsTabContainer.tsx | 6 +-
.../AllCommentsTab/AllCommentsTabQuery.tsx | 3 +-
.../Stream/AllCommentsTab/NoComments.tsx | 2 +-
.../AllCommentsTab/SpinnerWhileRendering.tsx | 3 +-
.../Stream/Announcement/Announcement.css | 16 +-
.../Stream/Announcement/Announcement.tsx | 10 +-
.../AnsweredCommentContainer.css | 10 +-
.../AnsweredCommentContainer.tsx | 2 +-
.../AnsweredCommentsContainer.tsx | 4 +-
.../AnsweredCommentsQuery.tsx | 3 +-
.../tabs/Comments/Stream/BannedInfo.css | 2 +-
.../Stream/CommentForm/CommentForm.css | 4 +-
.../CommunityGuidelines.css | 12 +-
.../StreamDeletionRequestCalloutContainer.css | 2 +-
.../Stream/FeaturedCommentTooltip.css | 2 +-
.../FeaturedCommentContainer.css | 32 +-
.../FeaturedCommentsContainer.tsx | 4 +-
.../FeaturedCommentsQuery.tsx | 3 +-
.../PostCommentForm/PostCommentForm.css | 10 +-
.../PostCommentForm/PostCommentFormFake.css | 11 +-
.../PostCommentForm/PostCommentFormFake.tsx | 3 +-
.../PostCommentForm/PostCommentInput.css | 6 +-
.../PostCommentRejectedMessage.css | 7 -
.../PostCommentRejectedMessage.tsx | 30 +-
.../stream/tabs/Comments/Stream/SortMenu.css | 20 +-
.../tabs/Comments/Stream/SortMenu.spec.tsx | 2 +-
.../tabs/Comments/Stream/StreamContainer.css | 20 +-
.../tabs/Comments/Stream/StreamQuery.tsx | 3 +-
.../Stream/SuspendedInfo/SuspendedInfo.css | 8 +-
.../SpinnerWhileRendering.tsx | 3 +-
.../UnansweredCommentsTabContainer.css | 2 +-
.../UnansweredCommentsTabContainer.tsx | 6 +-
.../UnansweredCommentsTabQuery.tsx | 3 +-
.../AddMessage/AddMessageContainer.css | 6 +-
.../Configure/AddMessage/AddMessageOpen.css | 10 +-
.../Configure/AddMessage/MessageBoxConfig.tsx | 12 +-
.../tabs/Configure/AddMessage/shared.css | 32 +-
.../stream/tabs/Configure/ConfigureQuery.tsx | 3 +-
.../ConfigureStream/ConfigureStream.css | 22 +-
.../ConfigureStream/ToggleConfig.css | 6 +-
.../UpdateStorySettingsMutation.ts | 2 +-
.../WidthLimitedDescription.css | 12 +-
.../LiveUpdatesConfig/DisableLiveUpdates.css | 32 +-
.../LiveUpdatesConfig/EnableLiveUpdates.css | 32 +-
.../LiveUpdatesConfigContainer.css | 6 +-
.../OpenOrCloseStream/CloseStream.css | 26 +-
.../OpenOrCloseStreamContainer.css | 6 +-
.../OpenOrCloseStreamContainer.tsx | 4 +-
.../OpenOrCloseStream/OpenStream.css | 26 +-
.../stream/tabs/Configure/Q&A/DisableQA.css | 32 +-
.../stream/tabs/Configure/Q&A/EnableQA.css | 32 +-
.../tabs/Configure/Q&A/ExpertListItem.css | 32 +-
.../tabs/Configure/Q&A/ExpertSearchItem.css | 26 +-
.../tabs/Configure/Q&A/ExpertSearchList.css | 21 +-
.../Q&A/ExpertSelectionContainer.css | 66 +-
.../Q&A/ExpertSelectionContainer.tsx | 2 +-
.../Configure/Q&A/ExpertSelectionQuery.tsx | 2 +-
.../tabs/Configure/Q&A/NoLongerAnExpert.css | 30 +-
.../tabs/Configure/Q&A/QAConfigContainer.css | 6 +-
.../DeletionRequestCalloutContainer.css | 14 +-
.../Profile/MyComments/CommentHistory.css | 40 +-
.../MyComments/DownloadCommentsContainer.css | 44 +-
.../Profile/MyComments/HistoryComment.css | 72 +--
.../MyComments/MyCommentsContainer.css | 2 +-
.../Preferences/IgnoreUserListItem.css | 42 +-
.../IgnoreUserSettingsContainer.css | 42 +-
.../NotificationSettingsContainer.css | 48 +-
.../stream/tabs/Profile/ProfileQuery.tsx | 3 +-
.../Settings/AccountSettingsContainer.tsx | 4 +-
.../ChangeEmail/ChangeEmailContainer.css | 66 +-
.../tabs/Profile/Settings/ChangePassword.css | 38 +-
.../Settings/ChangePasswordContainer.tsx | 2 +-
.../ChangeUsernameContainer.css | 78 +--
.../ChangeUsername/UpdateUsernameMutation.tsx | 2 +-
.../DeleteAccount/DeleteAccountContainer.css | 32 +-
.../DeleteAccount/DeleteAccountModal.tsx | 2 +-
.../DeleteAccountModalContents.tsx | 2 +-
.../DeleteAccount/Pages/Common/Page.css | 64 +-
.../DeleteAccount/Pages/ConfirmPage.css | 6 +-
.../stream/tabs/Profile/Settings/Username.css | 10 +-
.../renderFeaturedStream.spec.tsx.snap | 41 +-
.../__snapshots__/permalinkView.spec.tsx.snap | 356 +++++-----
...permalinkViewLoadMoreParents.spec.tsx.snap | 390 +++++------
.../__snapshots__/editComment.spec.tsx.snap | 248 +++----
.../__snapshots__/loadMore.spec.tsx.snap | 126 ++--
.../__snapshots__/postComment.spec.tsx.snap | 61 +-
.../postLocalReply.spec.tsx.snap | 347 +++++-----
.../__snapshots__/postReply.spec.tsx.snap | 122 ++--
.../__snapshots__/reaction.spec.tsx.snap | 42 +-
.../renderCommunityGuidelines.spec.tsx.snap | 127 ++--
.../renderMessageBox.spec.tsx.snap | 5 +-
.../__snapshots__/renderReplies.spec.tsx.snap | 244 +++----
.../__snapshots__/renderStream.spec.tsx.snap | 127 ++--
.../__snapshots__/reportComment.spec.tsx.snap | 73 ++-
.../showAllReplies.spec.tsx.snap | 65 +-
.../showConversation.spec.tsx.snap | 61 +-
.../__snapshots__/sortStream.spec.tsx.snap | 122 ++--
.../comments/stream/reportComment.spec.tsx | 8 +-
.../client/stream/test/helpers/waitForRTE.ts | 3 +-
.../components/AbsoluteTime/AbsoluteTime.css | 2 -
.../components/AbsoluteTime/AbsoluteTime.tsx | 31 -
.../ui/components/AbsoluteTime/index.ts | 1 -
.../client/ui/components/AppBar/AppBar.css | 18 -
.../ui/components/AppBar/AppBar.spec.tsx | 18 -
.../client/ui/components/AppBar/AppBar.tsx | 38 --
.../client/ui/components/AppBar/Begin.css | 3 -
.../ui/components/AppBar/Begin.spec.tsx | 17 -
.../client/ui/components/AppBar/Begin.tsx | 27 -
.../client/ui/components/AppBar/Divider.css | 4 -
.../ui/components/AppBar/Divider.spec.tsx | 10 -
.../client/ui/components/AppBar/Divider.tsx | 17 -
src/core/client/ui/components/AppBar/End.css | 4 -
.../client/ui/components/AppBar/End.spec.tsx | 17 -
src/core/client/ui/components/AppBar/End.tsx | 27 -
.../ui/components/AppBar/Navigation.css | 11 -
.../ui/components/AppBar/Navigation.spec.tsx | 15 -
.../ui/components/AppBar/Navigation.tsx | 24 -
.../ui/components/AppBar/NavigationItem.css | 23 -
.../components/AppBar/NavigationItem.spec.tsx | 20 -
.../ui/components/AppBar/NavigationItem.tsx | 41 --
.../client/ui/components/AppBar/README.mdx | 37 --
.../AppBar/__snapshots__/AppBar.spec.tsx.snap | 19 -
.../AppBar/__snapshots__/Begin.spec.tsx.snap | 15 -
.../__snapshots__/Divider.spec.tsx.snap | 11 -
.../AppBar/__snapshots__/End.spec.tsx.snap | 15 -
.../__snapshots__/Navigation.spec.tsx.snap | 14 -
.../NavigationItem.spec.tsx.snap | 19 -
src/core/client/ui/components/AppBar/index.ts | 6 -
.../ui/components/AriaInfo/AriaInfo.css | 10 -
.../ui/components/AriaInfo/AriaInfo.spec.tsx | 14 -
.../ui/components/AriaInfo/AriaInfo.tsx | 36 --
.../client/ui/components/AriaInfo/README.mdx | 18 -
.../client/ui/components/AriaInfo/index.ts | 1 -
.../ui/components/Backdrop/Backdrop.css | 15 -
.../ui/components/Backdrop/Backdrop.spec.tsx | 16 -
.../ui/components/Backdrop/Backdrop.tsx | 34 -
.../client/ui/components/Backdrop/README.mdx | 32 -
.../__snapshots__/Backdrop.spec.tsx.snap | 24 -
.../client/ui/components/Backdrop/index.ts | 1 -
.../ui/components/BaseButton/BaseButton.css | 10 -
.../components/BaseButton/BaseButton.spec.tsx | 24 -
.../ui/components/BaseButton/BaseButton.tsx | 99 ---
.../ui/components/BaseButton/README.mdx | 28 -
.../__snapshots__/BaseButton.spec.tsx.snap | 29 -
.../client/ui/components/BaseButton/index.ts | 1 -
src/core/client/ui/components/Box/Box.css | 240 -------
src/core/client/ui/components/Box/Box.tsx | 164 -----
src/core/client/ui/components/Box/README.mdx | 30 -
src/core/client/ui/components/Box/index.ts | 1 -
.../client/ui/components/Brand/BrandMark.css | 12 -
.../client/ui/components/Brand/BrandMark.tsx | 44 --
.../client/ui/components/Brand/BrandName.css | 15 -
.../ui/components/Brand/BrandName.spec.tsx | 17 -
.../client/ui/components/Brand/BrandName.tsx | 45 --
.../ui/components/Brand/LogoHorizontal.css | 14 -
.../ui/components/Brand/LogoHorizontal.tsx | 33 -
.../client/ui/components/Brand/README.mdx | 20 -
.../__snapshots__/BrandName.spec.tsx.snap | 16 -
src/core/client/ui/components/Brand/index.ts | 3 -
.../client/ui/components/Brand/logo@2x.png | Bin 9319 -> 0 bytes
.../client/ui/components/Button/Button.css | 612 ------------------
.../ui/components/Button/Button.spec.tsx | 62 --
.../client/ui/components/Button/Button.tsx | 126 ----
.../ui/components/Button/ButtonIcon.css | 8 -
.../ui/components/Button/ButtonIcon.spec.tsx | 30 -
.../ui/components/Button/ButtonIcon.tsx | 38 --
.../client/ui/components/Button/README.mdx | 206 ------
.../Button/__snapshots__/Button.spec.tsx.snap | 51 --
.../__snapshots__/ButtonIcon.spec.tsx.snap | 19 -
src/core/client/ui/components/Button/index.ts | 2 -
.../client/ui/components/CallOut/CallOut.css | 49 --
.../ui/components/CallOut/CallOut.spec.tsx | 16 -
.../client/ui/components/CallOut/CallOut.tsx | 73 ---
.../client/ui/components/CallOut/README.mdx | 23 -
.../__snapshots__/CallOut.spec.tsx.snap | 13 -
.../client/ui/components/CallOut/index.ts | 1 -
src/core/client/ui/components/Card/Card.css | 18 -
.../client/ui/components/Card/Card.spec.tsx | 15 -
src/core/client/ui/components/Card/Card.tsx | 39 --
.../client/ui/components/Card/CloseButton.css | 13 -
.../client/ui/components/Card/CloseButton.tsx | 38 --
src/core/client/ui/components/Card/README.mdx | 37 --
.../Card/__snapshots__/Card.spec.tsx.snap | 9 -
src/core/client/ui/components/Card/index.ts | 2 -
.../client/ui/components/Check/CheckIcon.css | 2 -
.../client/ui/components/Check/CheckIcon.tsx | 35 -
src/core/client/ui/components/Check/index.ts | 1 -
.../ui/components/CheckBox/CheckBox.css | 84 ---
.../ui/components/CheckBox/CheckBox.spec.tsx | 17 -
.../ui/components/CheckBox/CheckBox.tsx | 90 ---
.../client/ui/components/CheckBox/README.mdx | 19 -
.../__snapshots__/CheckBox.spec.tsx.snap | 26 -
.../client/ui/components/CheckBox/index.ts | 2 -
.../ClickOutside/ClickOutside.spec.tsx | 122 ----
.../components/ClickOutside/ClickOutside.tsx | 80 ---
.../ui/components/ClickOutside/README.mdx | 30 -
.../__snapshots__/ClickOutside.spec.tsx.snap | 3 -
.../ui/components/ClickOutside/index.ts | 1 -
.../client/ui/components/Counter/Counter.css | 44 --
.../ui/components/Counter/Counter.spec.tsx | 10 -
.../client/ui/components/Counter/Counter.tsx | 54 --
.../client/ui/components/Counter/README.mdx | 34 -
.../__snapshots__/Counter.spec.tsx.snap | 21 -
.../client/ui/components/Counter/index.ts | 1 -
.../client/ui/components/Delay/Delay.spec.tsx | 22 -
src/core/client/ui/components/Delay/Delay.tsx | 37 --
.../client/ui/components/Delay/README.mdx | 22 -
.../Delay/__snapshots__/Delay.spec.tsx.snap | 5 -
src/core/client/ui/components/Delay/index.ts | 1 -
.../client/ui/components/Dropdown/Button.css | 53 --
.../ui/components/Dropdown/Button.spec.tsx | 32 -
.../client/ui/components/Dropdown/Button.tsx | 77 ---
.../client/ui/components/Dropdown/Divider.css | 5 -
.../ui/components/Dropdown/Divider.spec.tsx | 10 -
.../client/ui/components/Dropdown/Divider.tsx | 17 -
.../ui/components/Dropdown/Dropdown.css | 3 -
.../ui/components/Dropdown/Dropdown.spec.tsx | 30 -
.../ui/components/Dropdown/Dropdown.tsx | 27 -
.../client/ui/components/Dropdown/README.mdx | 58 --
.../__snapshots__/Button.spec.tsx.snap | 44 --
.../__snapshots__/Divider.spec.tsx.snap | 11 -
.../__snapshots__/Dropdown.spec.tsx.snap | 32 -
.../client/ui/components/Dropdown/index.ts | 3 -
.../ui/components/FieldSet/FieldSet.css | 4 -
.../ui/components/FieldSet/FieldSet.spec.tsx | 14 -
.../ui/components/FieldSet/FieldSet.tsx | 26 -
.../client/ui/components/FieldSet/README.mdx | 10 -
.../__snapshots__/FieldSet.spec.tsx.snap | 9 -
.../client/ui/components/FieldSet/index.ts | 1 -
src/core/client/ui/components/Flex/Flex.css | 574 ----------------
.../client/ui/components/Flex/Flex.spec.tsx | 68 --
src/core/client/ui/components/Flex/Flex.tsx | 119 ----
src/core/client/ui/components/Flex/README.mdx | 60 --
.../Flex/__snapshots__/Flex.spec.tsx.snap | 51 --
src/core/client/ui/components/Flex/index.ts | 1 -
.../ui/components/FormField/FormField.css | 2 -
.../components/FormField/FormField.spec.tsx | 25 -
.../ui/components/FormField/FormField.tsx | 33 -
.../client/ui/components/FormField/README.mdx | 22 -
.../__snapshots__/FormField.spec.tsx.snap | 35 -
.../client/ui/components/FormField/index.ts | 1 -
.../HorizontalGutter/HorizontalGutter.css | 85 ---
.../HorizontalGutter.spec.tsx | 22 -
.../HorizontalGutter/HorizontalGutter.tsx | 72 ---
.../ui/components/HorizontalGutter/README.mdx | 36 --
.../HorizontalGutter.spec.tsx.snap | 13 -
.../ui/components/HorizontalGutter/index.ts | 1 -
src/core/client/ui/components/Icon/Icon.css | 60 --
.../client/ui/components/Icon/Icon.spec.tsx | 23 -
src/core/client/ui/components/Icon/Icon.tsx | 60 --
src/core/client/ui/components/Icon/README.mdx | 21 -
.../Icon/__snapshots__/Icon.spec.tsx.snap | 19 -
src/core/client/ui/components/Icon/index.ts | 1 -
.../InputDescription/InputDescription.css | 2 -
.../InputDescription.spec.tsx.snap | 9 -
.../ui/components/InputLabel/InputLabel.css | 4 -
.../components/InputLabel/InputLabel.spec.tsx | 16 -
.../ui/components/InputLabel/InputLabel.tsx | 42 --
.../ui/components/InputLabel/README.mdx | 19 -
.../__snapshots__/InputLabel.spec.tsx.snap | 9 -
.../client/ui/components/InputLabel/index.ts | 1 -
.../client/ui/components/Marker/Count.css | 10 -
.../ui/components/Marker/Count.spec.tsx | 15 -
.../client/ui/components/Marker/Count.tsx | 29 -
.../client/ui/components/Marker/Marker.css | 38 --
.../ui/components/Marker/Marker.spec.tsx | 17 -
.../client/ui/components/Marker/Marker.tsx | 47 --
.../client/ui/components/Marker/README.mdx | 43 --
.../Marker/__snapshots__/Count.spec.tsx.snap | 9 -
.../Marker/__snapshots__/Marker.spec.tsx.snap | 9 -
src/core/client/ui/components/Marker/index.ts | 2 -
.../components/MatchMedia/MatchMedia.spec.tsx | 60 --
.../ui/components/MatchMedia/MatchMedia.tsx | 75 ---
.../ui/components/MatchMedia/README.mdx | 40 --
.../__snapshots__/MatchMedia.spec.tsx.snap | 35 -
.../client/ui/components/MatchMedia/index.ts | 1 -
.../client/ui/components/Message/Message.css | 46 --
.../ui/components/Message/Message.spec.tsx | 25 -
.../client/ui/components/Message/Message.tsx | 59 --
.../ui/components/Message/MessageIcon.css | 8 -
.../ui/components/Message/MessageIcon.tsx | 36 --
.../client/ui/components/Message/README.mdx | 38 --
.../__snapshots__/Message.spec.tsx.snap | 23 -
.../client/ui/components/Message/index.ts | 2 -
src/core/client/ui/components/Modal/Modal.css | 31 -
.../client/ui/components/Modal/Modal.mdx.css | 3 -
.../client/ui/components/Modal/Modal.spec.tsx | 92 ---
src/core/client/ui/components/Modal/Modal.tsx | 140 ----
.../client/ui/components/Modal/README.mdx | 66 --
.../Modal/__snapshots__/Modal.spec.tsx.snap | 49 --
src/core/client/ui/components/Modal/index.ts | 1 -
.../ui/components/NoScroll/NoScroll.css | 3 -
.../ui/components/NoScroll/NoScroll.spec.tsx | 54 --
.../ui/components/NoScroll/NoScroll.tsx | 41 --
.../client/ui/components/NoScroll/README.mdx | 35 -
.../client/ui/components/NoScroll/index.ts | 1 -
.../PasswordField/PasswordField.css | 62 --
.../PasswordField/PasswordField.spec.tsx | 18 -
.../PasswordField/PasswordField.tsx | 162 -----
.../ui/components/PasswordField/README.mdx | 25 -
.../__snapshots__/PasswordField.spec.tsx.snap | 73 ---
.../ui/components/PasswordField/index.ts | 2 -
.../client/ui/components/Popover/Arrow.css | 142 ----
.../client/ui/components/Popover/Arrow.tsx | 25 -
.../client/ui/components/Popover/Popover.css | 30 -
.../client/ui/components/Popover/Popover.tsx | 202 ------
.../client/ui/components/Popover/README.mdx | 88 ---
.../client/ui/components/Popover/index.ts | 1 -
.../ui/components/RadioButton/README.mdx | 20 -
.../ui/components/RadioButton/RadioButton.css | 76 ---
.../RadioButton/RadioButton.spec.tsx | 18 -
.../ui/components/RadioButton/RadioButton.tsx | 89 ---
.../__snapshots__/RadioButton.spec.tsx.snap | 23 -
.../client/ui/components/RadioButton/index.ts | 2 -
.../ui/components/RelativeTime/README.mdx | 17 -
.../components/RelativeTime/RelativeTime.css | 2 -
.../RelativeTime/RelativeTime.spec.tsx | 42 --
.../components/RelativeTime/RelativeTime.tsx | 43 --
.../__snapshots__/RelativeTime.spec.tsx.snap | 31 -
.../ui/components/RelativeTime/index.ts | 1 -
.../components/SelectField/OptGroup.spec.tsx | 15 -
.../ui/components/SelectField/OptGroup.tsx | 12 -
.../ui/components/SelectField/Option.spec.tsx | 17 -
.../ui/components/SelectField/Option.tsx | 14 -
.../ui/components/SelectField/README.mdx | 55 --
.../ui/components/SelectField/SelectField.css | 64 --
.../SelectField/SelectField.spec.tsx | 22 -
.../ui/components/SelectField/SelectField.tsx | 93 ---
.../__snapshots__/OptGroup.spec.tsx.snap | 9 -
.../__snapshots__/Option.spec.tsx.snap | 11 -
.../__snapshots__/SelectField.spec.tsx.snap | 30 -
.../client/ui/components/SelectField/index.ts | 3 -
.../client/ui/components/Spinner/README.mdx | 15 -
.../client/ui/components/Spinner/Spinner.css | 63 --
.../ui/components/Spinner/Spinner.spec.tsx | 9 -
.../client/ui/components/Spinner/Spinner.tsx | 68 --
.../__snapshots__/Spinner.spec.tsx.snap | 21 -
.../client/ui/components/Spinner/index.ts | 1 -
.../client/ui/components/Steps/Circle.css | 23 -
.../client/ui/components/Steps/Circle.tsx | 25 -
src/core/client/ui/components/Steps/Line.css | 12 -
src/core/client/ui/components/Steps/Line.tsx | 22 -
.../client/ui/components/Steps/README.mdx | 19 -
src/core/client/ui/components/Steps/Step.css | 11 -
src/core/client/ui/components/Steps/Step.tsx | 49 --
.../client/ui/components/Steps/StepBar.css | 6 -
.../client/ui/components/Steps/StepBar.tsx | 43 --
src/core/client/ui/components/Steps/index.ts | 2 -
.../ui/components/SubBar/Navigation.css | 21 -
.../ui/components/SubBar/Navigation.spec.tsx | 15 -
.../ui/components/SubBar/Navigation.tsx | 24 -
.../ui/components/SubBar/NavigationItem.css | 30 -
.../components/SubBar/NavigationItem.spec.tsx | 20 -
.../ui/components/SubBar/NavigationItem.tsx | 41 --
.../client/ui/components/SubBar/README.mdx | 40 --
.../client/ui/components/SubBar/SubBar.css | 19 -
.../ui/components/SubBar/SubBar.spec.tsx | 18 -
.../client/ui/components/SubBar/SubBar.tsx | 44 --
.../__snapshots__/Navigation.spec.tsx.snap | 14 -
.../NavigationItem.spec.tsx.snap | 19 -
.../SubBar/__snapshots__/SubBar.spec.tsx.snap | 19 -
src/core/client/ui/components/SubBar/index.ts | 3 -
.../client/ui/components/Table/README.mdx | 36 --
src/core/client/ui/components/Table/Table.css | 8 -
.../client/ui/components/Table/Table.spec.tsx | 32 -
src/core/client/ui/components/Table/Table.tsx | 36 --
.../client/ui/components/Table/TableBody.css | 2 -
.../client/ui/components/Table/TableBody.tsx | 31 -
.../client/ui/components/Table/TableCell.css | 23 -
.../client/ui/components/Table/TableCell.tsx | 44 --
.../client/ui/components/Table/TableHead.css | 5 -
.../client/ui/components/Table/TableHead.tsx | 35 -
.../client/ui/components/Table/TableRow.css | 15 -
.../client/ui/components/Table/TableRow.tsx | 36 --
.../Table/__snapshots__/Table.spec.tsx.snap | 51 --
src/core/client/ui/components/Table/index.ts | 5 -
src/core/client/ui/components/Tabs/README.mdx | 85 ---
src/core/client/ui/components/Tabs/Tab.css | 59 --
.../client/ui/components/Tabs/Tab.spec.tsx | 9 -
src/core/client/ui/components/Tabs/Tab.tsx | 79 ---
src/core/client/ui/components/Tabs/TabBar.css | 14 -
.../client/ui/components/Tabs/TabBar.spec.tsx | 34 -
src/core/client/ui/components/Tabs/TabBar.tsx | 82 ---
.../ui/components/Tabs/TabContent.spec.tsx | 31 -
.../client/ui/components/Tabs/TabContent.tsx | 33 -
.../ui/components/Tabs/TabPane.spec.tsx | 9 -
.../client/ui/components/Tabs/TabPane.tsx | 30 -
.../Tabs/__snapshots__/Tab.spec.tsx.snap | 24 -
.../Tabs/__snapshots__/TabBar.spec.tsx.snap | 72 ---
.../__snapshots__/TabContent.spec.tsx.snap | 12 -
.../Tabs/__snapshots__/TabPane.spec.tsx.snap | 11 -
src/core/client/ui/components/Tabs/index.ts | 4 -
src/core/client/ui/components/Tag/README.mdx | 35 -
src/core/client/ui/components/Tag/Tag.css | 50 --
.../client/ui/components/Tag/Tag.spec.tsx | 15 -
src/core/client/ui/components/Tag/Tag.tsx | 45 --
.../Tag/__snapshots__/Tag.spec.tsx.snap | 9 -
src/core/client/ui/components/Tag/index.ts | 1 -
.../client/ui/components/TextField/README.mdx | 43 --
.../ui/components/TextField/TextField.css | 68 --
.../components/TextField/TextField.spec.tsx | 16 -
.../ui/components/TextField/TextField.tsx | 132 ----
.../__snapshots__/TextField.spec.tsx.snap | 19 -
.../client/ui/components/TextField/index.ts | 2 -
.../client/ui/components/TextLink/README.mdx | 19 -
.../ui/components/TextLink/TextLink.css | 10 -
.../ui/components/TextLink/TextLink.spec.tsx | 14 -
.../ui/components/TextLink/TextLink.tsx | 39 --
.../__snapshots__/TextLink.spec.tsx.snap | 10 -
.../client/ui/components/TextLink/index.ts | 1 -
.../ui/components/TileSelector/TileOption.css | 27 -
.../ui/components/Timestamp/Timestamp.css | 7 -
.../components/Timestamp/Timestamp.spec.tsx | 15 -
.../ui/components/Timestamp/Timestamp.tsx | 59 --
.../__snapshots__/Timestamp.spec.tsx.snap | 13 -
.../client/ui/components/Timestamp/index.ts | 1 -
.../ui/components/ToggleShow/README.mdx | 26 -
.../components/ToggleShow/ToggleShow.spec.tsx | 35 -
.../ui/components/ToggleShow/ToggleShow.tsx | 33 -
.../__snapshots__/ToggleShow.spec.tsx.snap | 24 -
.../client/ui/components/Tooltip/Tooltip.css | 13 -
.../client/ui/components/Tooltip/Tooltip.tsx | 62 --
.../ui/components/Tooltip/TooltipButton.css | 5 -
.../ui/components/Tooltip/TooltipButton.tsx | 42 --
.../client/ui/components/Tooltip/index.ts | 2 -
.../client/ui/components/TrapFocus/README.mdx | 27 -
.../components/TrapFocus/TrapFocus.spec.tsx | 94 ---
.../ui/components/TrapFocus/TrapFocus.tsx | 59 --
.../__snapshots__/TrapFocus.spec.tsx.snap | 23 -
.../client/ui/components/TrapFocus/index.ts | 1 -
.../ui/components/Typography/Typography.css | 153 -----
.../ui/components/UIContext/UIContext.ts | 25 -
.../client/ui/components/UIContext/index.ts | 1 -
.../components/ValidationMessage/README.mdx | 20 -
.../ValidationMessage.spec.tsx | 15 -
.../ValidationMessage/ValidationMessage.tsx | 43 --
.../ValidationMessage.spec.tsx.snap | 15 -
.../ui/components/ValidationMessage/index.ts | 1 -
src/core/client/ui/components/index.ts | 68 --
.../client/ui/components/v2/AppBar/AppBar.css | 4 +-
.../client/ui/components/v2/AppBar/AppBar.tsx | 2 +-
.../client/ui/components/v2/AppBar/Begin.tsx | 2 +-
.../ui/components/v2/AppBar/Divider.css | 2 +-
.../client/ui/components/v2/AppBar/End.tsx | 2 +-
.../components/v2/AppBar/NavigationItem.css | 24 +-
.../v2/AppNotification/AppNotification.css | 10 +-
src/core/client/ui/components/v2/Box/Box.css | 144 ++---
src/core/client/ui/components/v2/Box/Box.tsx | 2 +-
.../ui/components/v2/Brand/BrandName.css | 6 +-
.../client/ui/components/v2/Button/Button.css | 226 +++----
.../ui/components/v2/CallOut/CallOut.css | 32 +-
.../client/ui/components/v2/Card/Card.css | 4 +-
.../ui/components/v2/CheckBox/CheckBox.css | 36 +-
.../ui/components/v2/CheckIcon/CheckIcon.css | 5 +
.../ui/components/v2/CheckIcon/CheckIcon.tsx | 31 +
.../{Check => v2/CheckIcon}/README.mdx | 0
.../ui/components/v2/CheckIcon/index.ts | 1 +
.../ui/components/v2/Counter/Counter.css | 32 +-
.../ui/components/v2/Divider/Divider.css | 10 +-
.../ui/components/v2/Dropdown/Button.css | 26 +-
.../ui/components/v2/Dropdown/Divider.css | 2 +-
.../v2/DurationField/DurationField.css | 6 +-
.../v2/DurationField/DurationField.tsx | 2 +-
.../client/ui/components/v2/Flex/Flex.css | 144 ++---
.../client/ui/components/v2/Flex/Flex.tsx | 2 +-
.../ui/components/v2/FormField/FormField.tsx | 3 +-
.../FormFieldDescription.css | 10 +-
.../v2/FormFieldFooter/FormFieldFooter.css | 10 +-
.../v2/FormFieldFooter/FormFieldFooter.tsx | 3 +-
.../v2/FormFieldHeader/FormFieldHeader.tsx | 3 +-
.../components/v2/HelperText/HelperText.css | 10 +-
.../v2/HorizontalGutter/HorizontalGutter.tsx | 2 +-
.../v2/HorizontalRule/HorizontalRule.css | 2 +-
.../client/ui/components/v2/Icon/Icon.css | 28 +-
.../v2/InputDescription/InputDescription.css | 8 +
.../InputDescription.spec.tsx | 0
.../InputDescription/InputDescription.tsx | 15 +-
.../{ => v2}/InputDescription/README.mdx | 0
.../InputDescription.spec.tsx.snap} | 4 +-
.../{ => v2}/InputDescription/index.ts | 0
.../components/v2/InputLabel/InputLabel.css | 10 +-
.../client/ui/components/v2/Label/Label.css | 10 +-
.../ui/components/v2/ListGroup/ListGroup.css | 2 +-
.../components/v2/ListGroup/ListGroupRow.css | 4 +-
.../client/ui/components/v2/Marker/Count.css | 4 +-
.../client/ui/components/v2/Marker/Marker.css | 10 +-
.../components/v2/MatchMedia/MatchMedia.tsx | 12 +-
.../ui/components/v2/Message/Message.css | 30 +-
.../ui/components/v2/Message/MessageIcon.tsx | 3 +-
.../client/ui/components/v2/Modal/Modal.css | 2 +-
.../ui/components/v2/Modal/ModalHeader.css | 4 +-
.../v2/PasswordField/PasswordField.css | 83 +--
.../v2/PasswordField/PasswordField.tsx | 3 +-
.../client/ui/components/v2/Popover/Arrow.css | 8 +-
.../ui/components/v2/Popover/Popover.css | 12 +-
.../ui/components/v2/Popover/Popover.tsx | 4 +-
.../ui/components/{ => v2}/Popup/Popup.ts | 0
.../ui/components/{ => v2}/Popup/README.mdx | 0
.../ui/components/{ => v2}/Popup/index.ts | 0
.../components/v2/RadioButton/RadioButton.css | 30 +-
.../components/v2/RadioButton/RadioButton.tsx | 2 +-
.../v2/SelectField/OptGroup.spec.tsx | 1 +
.../components/v2/SelectField/Option.spec.tsx | 1 +
.../components/v2/SelectField/SelectField.css | 29 +-
.../v2/SelectField/SelectField.spec.tsx | 1 +
.../components/v2/SelectField/SelectField.tsx | 10 +-
.../ui/components/v2/Spinner/Spinner.css | 6 +-
.../client/ui/components/v2/Steps/Circle.css | 10 +-
.../client/ui/components/v2/Steps/Line.css | 4 +-
.../client/ui/components/v2/Steps/Step.css | 10 +-
.../components/v2/SubBar/NavigationItem.css | 12 +-
.../client/ui/components/v2/SubBar/SubBar.css | 4 +-
.../client/ui/components/v2/SubBar/SubBar.tsx | 2 +-
.../ui/components/v2/Table/Table.spec.tsx | 2 +-
.../ui/components/v2/Table/TableCell.css | 22 +-
.../ui/components/v2/Table/TableHead.css | 2 +-
.../ui/components/v2/Table/TableRow.css | 4 +-
src/core/client/ui/components/v2/Tabs/Tab.css | 88 +--
.../client/ui/components/v2/Tabs/TabBar.css | 6 +-
src/core/client/ui/components/v2/Tag/Tag.css | 36 +-
.../ui/components/v2/TextField/TextField.css | 44 +-
.../ui/components/v2/TextField/TextField.tsx | 1 +
.../TextFieldAdornment/TextFieldAdornment.css | 10 +-
.../ui/components/v2/TextLink/TextLink.css | 2 +-
.../ui/components/v2/TextLink/TextLink.tsx | 2 +-
.../ui/components/v2/Textarea/Textarea.css | 27 +-
.../{ => v2}/TileSelector/README.mdx | 2 +-
.../components/v2/TileSelector/TileOption.css | 31 +
.../{ => v2}/TileSelector/TileOption.tsx | 0
.../{ => v2}/TileSelector/TileSelector.css | 0
.../{ => v2}/TileSelector/TileSelector.tsx | 2 +-
.../components/{ => v2}/TileSelector/index.ts | 0
.../ui/components/v2/Timestamp/Timestamp.css | 10 +-
.../ui/components/v2/Tooltip/Tooltip.css | 20 +-
.../ui/components/v2/Tooltip/Tooltip.tsx | 3 +-
.../components/v2/Tooltip/TooltipButton.css | 2 +-
.../components/v2/Tooltip/TooltipButton.tsx | 3 +-
.../components/{ => v2}/Typography/README.mdx | 2 +-
.../components/v2/Typography/Typography.css | 232 +++++++
.../{ => v2}/Typography/Typography.spec.tsx | 0
.../{ => v2}/Typography/Typography.tsx | 5 +-
.../__snapshots__/Typography.spec.tsx.snap | 0
.../components/{ => v2}/Typography/index.ts | 0
src/core/client/ui/components/v2/index.ts | 7 +-
.../client/ui/components/v3/Button/Button.css | 274 ++++----
.../client/ui/components/v3/Button/Button.tsx | 14 +-
.../ui/components/v3/CallOut/CallOut.css | 74 +--
.../v3/ExperimentalTag/ExperimentalTag.css | 26 +-
.../ui/components/v3/Tombstone/Tombstone.css | 14 +-
.../ValidationMessage/ValidationMessage.css | 14 +-
.../ValidationMessage/ValidationMessage.tsx | 23 +-
src/core/client/ui/hooks/useDateTimeFormat.ts | 2 +-
src/core/client/ui/shared/buttonReset.css | 37 --
src/core/client/ui/shared/typography.css | 384 -----------
src/core/client/ui/theme/admin.css.ts | 41 ++
src/core/client/ui/theme/adminVariables.ts | 22 +
src/core/client/ui/theme/breakpoints.ts | 9 +
src/core/client/ui/theme/colors.ts | 87 +++
src/core/client/ui/theme/compatibility.ts | 7 +
src/core/client/ui/theme/mixins.css | 122 ----
src/core/client/ui/theme/sassLikeVariables.ts | 8 +
src/core/client/ui/theme/sharedVariables.ts | 143 ++++
src/core/client/ui/theme/stream.css.ts | 41 ++
src/core/client/ui/theme/streamVariables.ts | 24 +
src/core/client/ui/theme/typography.css | 154 +++++
src/core/client/ui/theme/variables.css.ts | 47 --
src/core/client/ui/theme/variables.ts | 156 -----
src/core/client/ui/theme/variables2.ts | 202 ------
src/core/client/ui/theme/zIndex.ts | 6 +
src/core/common/utils/isBeforeDate.spec.ts | 1 +
.../app/handlers/api/account/confirm.ts | 3 +-
src/core/server/app/handlers/api/install.ts | 1 -
src/core/server/app/handlers/api/version.ts | 3 +-
src/core/server/app/helpers/entrypoints.ts | 3 +-
.../middleware/graphql/graphqlMiddleware.ts | 5 +-
.../graphql/persistedQueryMiddleware.ts | 3 +-
.../middleware/passport/strategies/local.ts | 2 +-
src/core/server/app/router/index.ts | 1 -
src/core/server/app/url.spec.ts | 3 +-
src/core/server/app/url.ts | 3 +-
src/core/server/cron/notificationDigesting.ts | 3 +-
src/core/server/errors/index.spec.ts | 2 +-
.../server/events/listeners/slack/slack.ts | 4 +-
.../extensions/ErrorWrappingExtension.ts | 1 +
.../graph/loaders/CommentModerationActions.ts | 3 +-
src/core/server/graph/loaders/Users.ts | 11 +-
src/core/server/graph/mutators/Sites.ts | 5 +-
src/core/server/graph/resolvers/BanStatus.ts | 3 +-
.../graph/resolvers/BanStatusHistory.ts | 3 +-
.../server/graph/resolvers/CloseCommenting.ts | 3 +-
.../server/graph/resolvers/CommentRevision.ts | 3 +-
.../graph/resolvers/DisableCommenting.ts | 3 +-
src/core/server/graph/resolvers/Flag.ts | 3 +-
src/core/server/graph/resolvers/Invite.ts | 3 +-
.../server/graph/resolvers/ModerationQueue.ts | 1 +
.../server/graph/resolvers/ModeratorNote.ts | 3 +-
.../server/graph/resolvers/PremodStatus.ts | 3 +-
.../graph/resolvers/PremodStatusHistory.ts | 3 +-
src/core/server/graph/resolvers/Profile.ts | 3 +-
.../graph/resolvers/SuspensionStatus.ts | 3 +-
.../resolvers/SuspensionStatusHistory.ts | 3 +-
src/core/server/graph/resolvers/Tag.ts | 3 +-
src/core/server/graph/resolvers/UserStatus.ts | 3 +-
.../server/graph/resolvers/UsernameHistory.ts | 3 +-
.../server/graph/resolvers/UsernameStatus.ts | 3 +-
src/core/server/graph/scalars/locale.ts | 3 +-
src/core/server/logger/serializers.ts | 2 +-
src/core/server/logger/streams/index.ts | 3 +-
src/core/server/models/action/comment.ts | 19 +-
.../models/action/moderation/comment.ts | 3 +-
src/core/server/models/helpers/query.ts | 1 -
src/core/server/models/invite.ts | 3 +-
src/core/server/queue/tasks/mailer/content.ts | 2 +-
src/core/server/services/comments/actions.ts | 1 +
src/core/server/services/comments/comments.ts | 3 +-
.../comments/moderation/counts.spec.ts | 1 +
.../comments/pipeline/phases/detectLinks.ts | 9 +-
.../comments/pipeline/phases/preModerate.ts | 9 +-
.../pipeline/phases/preModerateUser.ts | 3 +-
.../pipeline/phases/premodNewCommenter.ts | 9 +-
.../pipeline/phases/recentCommentHistory.ts | 9 +-
.../pipeline/phases/storyClosed.spec.ts | 3 +-
.../comments/pipeline/pipeline.spec.ts | 3 +-
.../server/services/i18n/translation.spec.ts | 2 +-
src/core/server/services/jwt/index.ts | 1 -
.../services/migrate/migration_sample.ts | 1 -
.../server/services/notifications/context.ts | 3 +-
src/core/server/services/users/auth/reset.ts | 4 +-
src/index.ts | 9 +-
src/locales/en-US/stream.ftl | 1 +
src/types/postcss-js.d.ts | 1 +
999 files changed, 7189 insertions(+), 17786 deletions(-)
create mode 100644 CSS_VARIABLES.md
create mode 100644 scripts/generateCSSVariablesDocs.ts
create mode 100644 src/core/client/admin/components/UserStatus/SuspendModal.css
create mode 100644 src/core/client/admin/routes/Community/InviteUsers/RoleField.css
delete mode 100644 src/core/client/auth/components/HorizontalSeparator.css
delete mode 100644 src/core/client/auth/components/HorizontalSeparator.spec.tsx
delete mode 100644 src/core/client/auth/components/HorizontalSeparator.tsx
delete mode 100644 src/core/client/auth/components/__snapshots__/HorizontalSeparator.spec.tsx.snap
create mode 100644 src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkButton.css
delete mode 100644 src/core/client/stream/tabs/Comments/Stream/PostCommentForm/PostCommentRejectedMessage.css
delete mode 100644 src/core/client/ui/components/AbsoluteTime/AbsoluteTime.css
delete mode 100644 src/core/client/ui/components/AbsoluteTime/AbsoluteTime.tsx
delete mode 100644 src/core/client/ui/components/AbsoluteTime/index.ts
delete mode 100644 src/core/client/ui/components/AppBar/AppBar.css
delete mode 100644 src/core/client/ui/components/AppBar/AppBar.spec.tsx
delete mode 100644 src/core/client/ui/components/AppBar/AppBar.tsx
delete mode 100644 src/core/client/ui/components/AppBar/Begin.css
delete mode 100644 src/core/client/ui/components/AppBar/Begin.spec.tsx
delete mode 100644 src/core/client/ui/components/AppBar/Begin.tsx
delete mode 100644 src/core/client/ui/components/AppBar/Divider.css
delete mode 100644 src/core/client/ui/components/AppBar/Divider.spec.tsx
delete mode 100644 src/core/client/ui/components/AppBar/Divider.tsx
delete mode 100644 src/core/client/ui/components/AppBar/End.css
delete mode 100644 src/core/client/ui/components/AppBar/End.spec.tsx
delete mode 100644 src/core/client/ui/components/AppBar/End.tsx
delete mode 100644 src/core/client/ui/components/AppBar/Navigation.css
delete mode 100644 src/core/client/ui/components/AppBar/Navigation.spec.tsx
delete mode 100644 src/core/client/ui/components/AppBar/Navigation.tsx
delete mode 100644 src/core/client/ui/components/AppBar/NavigationItem.css
delete mode 100644 src/core/client/ui/components/AppBar/NavigationItem.spec.tsx
delete mode 100644 src/core/client/ui/components/AppBar/NavigationItem.tsx
delete mode 100644 src/core/client/ui/components/AppBar/README.mdx
delete mode 100644 src/core/client/ui/components/AppBar/__snapshots__/AppBar.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/AppBar/__snapshots__/Begin.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/AppBar/__snapshots__/Divider.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/AppBar/__snapshots__/End.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/AppBar/__snapshots__/Navigation.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/AppBar/__snapshots__/NavigationItem.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/AppBar/index.ts
delete mode 100644 src/core/client/ui/components/AriaInfo/AriaInfo.css
delete mode 100644 src/core/client/ui/components/AriaInfo/AriaInfo.spec.tsx
delete mode 100644 src/core/client/ui/components/AriaInfo/AriaInfo.tsx
delete mode 100644 src/core/client/ui/components/AriaInfo/README.mdx
delete mode 100644 src/core/client/ui/components/AriaInfo/index.ts
delete mode 100644 src/core/client/ui/components/Backdrop/Backdrop.css
delete mode 100644 src/core/client/ui/components/Backdrop/Backdrop.spec.tsx
delete mode 100644 src/core/client/ui/components/Backdrop/Backdrop.tsx
delete mode 100644 src/core/client/ui/components/Backdrop/README.mdx
delete mode 100644 src/core/client/ui/components/Backdrop/__snapshots__/Backdrop.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Backdrop/index.ts
delete mode 100644 src/core/client/ui/components/BaseButton/BaseButton.css
delete mode 100644 src/core/client/ui/components/BaseButton/BaseButton.spec.tsx
delete mode 100644 src/core/client/ui/components/BaseButton/BaseButton.tsx
delete mode 100644 src/core/client/ui/components/BaseButton/README.mdx
delete mode 100644 src/core/client/ui/components/BaseButton/__snapshots__/BaseButton.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/BaseButton/index.ts
delete mode 100644 src/core/client/ui/components/Box/Box.css
delete mode 100644 src/core/client/ui/components/Box/Box.tsx
delete mode 100644 src/core/client/ui/components/Box/README.mdx
delete mode 100644 src/core/client/ui/components/Box/index.ts
delete mode 100644 src/core/client/ui/components/Brand/BrandMark.css
delete mode 100644 src/core/client/ui/components/Brand/BrandMark.tsx
delete mode 100644 src/core/client/ui/components/Brand/BrandName.css
delete mode 100644 src/core/client/ui/components/Brand/BrandName.spec.tsx
delete mode 100644 src/core/client/ui/components/Brand/BrandName.tsx
delete mode 100644 src/core/client/ui/components/Brand/LogoHorizontal.css
delete mode 100644 src/core/client/ui/components/Brand/LogoHorizontal.tsx
delete mode 100644 src/core/client/ui/components/Brand/README.mdx
delete mode 100644 src/core/client/ui/components/Brand/__snapshots__/BrandName.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Brand/index.ts
delete mode 100644 src/core/client/ui/components/Brand/logo@2x.png
delete mode 100644 src/core/client/ui/components/Button/Button.css
delete mode 100644 src/core/client/ui/components/Button/Button.spec.tsx
delete mode 100644 src/core/client/ui/components/Button/Button.tsx
delete mode 100644 src/core/client/ui/components/Button/ButtonIcon.css
delete mode 100644 src/core/client/ui/components/Button/ButtonIcon.spec.tsx
delete mode 100644 src/core/client/ui/components/Button/ButtonIcon.tsx
delete mode 100644 src/core/client/ui/components/Button/README.mdx
delete mode 100644 src/core/client/ui/components/Button/__snapshots__/Button.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Button/__snapshots__/ButtonIcon.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Button/index.ts
delete mode 100644 src/core/client/ui/components/CallOut/CallOut.css
delete mode 100644 src/core/client/ui/components/CallOut/CallOut.spec.tsx
delete mode 100644 src/core/client/ui/components/CallOut/CallOut.tsx
delete mode 100644 src/core/client/ui/components/CallOut/README.mdx
delete mode 100644 src/core/client/ui/components/CallOut/__snapshots__/CallOut.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/CallOut/index.ts
delete mode 100644 src/core/client/ui/components/Card/Card.css
delete mode 100644 src/core/client/ui/components/Card/Card.spec.tsx
delete mode 100644 src/core/client/ui/components/Card/Card.tsx
delete mode 100644 src/core/client/ui/components/Card/CloseButton.css
delete mode 100644 src/core/client/ui/components/Card/CloseButton.tsx
delete mode 100644 src/core/client/ui/components/Card/README.mdx
delete mode 100644 src/core/client/ui/components/Card/__snapshots__/Card.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Card/index.ts
delete mode 100644 src/core/client/ui/components/Check/CheckIcon.css
delete mode 100644 src/core/client/ui/components/Check/CheckIcon.tsx
delete mode 100644 src/core/client/ui/components/Check/index.ts
delete mode 100644 src/core/client/ui/components/CheckBox/CheckBox.css
delete mode 100644 src/core/client/ui/components/CheckBox/CheckBox.spec.tsx
delete mode 100644 src/core/client/ui/components/CheckBox/CheckBox.tsx
delete mode 100644 src/core/client/ui/components/CheckBox/README.mdx
delete mode 100644 src/core/client/ui/components/CheckBox/__snapshots__/CheckBox.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/CheckBox/index.ts
delete mode 100644 src/core/client/ui/components/ClickOutside/ClickOutside.spec.tsx
delete mode 100644 src/core/client/ui/components/ClickOutside/ClickOutside.tsx
delete mode 100644 src/core/client/ui/components/ClickOutside/README.mdx
delete mode 100644 src/core/client/ui/components/ClickOutside/__snapshots__/ClickOutside.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/ClickOutside/index.ts
delete mode 100644 src/core/client/ui/components/Counter/Counter.css
delete mode 100644 src/core/client/ui/components/Counter/Counter.spec.tsx
delete mode 100644 src/core/client/ui/components/Counter/Counter.tsx
delete mode 100644 src/core/client/ui/components/Counter/README.mdx
delete mode 100644 src/core/client/ui/components/Counter/__snapshots__/Counter.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Counter/index.ts
delete mode 100644 src/core/client/ui/components/Delay/Delay.spec.tsx
delete mode 100644 src/core/client/ui/components/Delay/Delay.tsx
delete mode 100644 src/core/client/ui/components/Delay/README.mdx
delete mode 100644 src/core/client/ui/components/Delay/__snapshots__/Delay.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Delay/index.ts
delete mode 100644 src/core/client/ui/components/Dropdown/Button.css
delete mode 100644 src/core/client/ui/components/Dropdown/Button.spec.tsx
delete mode 100644 src/core/client/ui/components/Dropdown/Button.tsx
delete mode 100644 src/core/client/ui/components/Dropdown/Divider.css
delete mode 100644 src/core/client/ui/components/Dropdown/Divider.spec.tsx
delete mode 100644 src/core/client/ui/components/Dropdown/Divider.tsx
delete mode 100644 src/core/client/ui/components/Dropdown/Dropdown.css
delete mode 100644 src/core/client/ui/components/Dropdown/Dropdown.spec.tsx
delete mode 100644 src/core/client/ui/components/Dropdown/Dropdown.tsx
delete mode 100644 src/core/client/ui/components/Dropdown/README.mdx
delete mode 100644 src/core/client/ui/components/Dropdown/__snapshots__/Button.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Dropdown/__snapshots__/Divider.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Dropdown/__snapshots__/Dropdown.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Dropdown/index.ts
delete mode 100644 src/core/client/ui/components/FieldSet/FieldSet.css
delete mode 100644 src/core/client/ui/components/FieldSet/FieldSet.spec.tsx
delete mode 100644 src/core/client/ui/components/FieldSet/FieldSet.tsx
delete mode 100644 src/core/client/ui/components/FieldSet/README.mdx
delete mode 100644 src/core/client/ui/components/FieldSet/__snapshots__/FieldSet.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/FieldSet/index.ts
delete mode 100644 src/core/client/ui/components/Flex/Flex.css
delete mode 100644 src/core/client/ui/components/Flex/Flex.spec.tsx
delete mode 100644 src/core/client/ui/components/Flex/Flex.tsx
delete mode 100644 src/core/client/ui/components/Flex/README.mdx
delete mode 100644 src/core/client/ui/components/Flex/__snapshots__/Flex.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Flex/index.ts
delete mode 100644 src/core/client/ui/components/FormField/FormField.css
delete mode 100644 src/core/client/ui/components/FormField/FormField.spec.tsx
delete mode 100644 src/core/client/ui/components/FormField/FormField.tsx
delete mode 100644 src/core/client/ui/components/FormField/README.mdx
delete mode 100644 src/core/client/ui/components/FormField/__snapshots__/FormField.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/FormField/index.ts
delete mode 100644 src/core/client/ui/components/HorizontalGutter/HorizontalGutter.css
delete mode 100644 src/core/client/ui/components/HorizontalGutter/HorizontalGutter.spec.tsx
delete mode 100644 src/core/client/ui/components/HorizontalGutter/HorizontalGutter.tsx
delete mode 100644 src/core/client/ui/components/HorizontalGutter/README.mdx
delete mode 100644 src/core/client/ui/components/HorizontalGutter/__snapshots__/HorizontalGutter.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/HorizontalGutter/index.ts
delete mode 100644 src/core/client/ui/components/Icon/Icon.css
delete mode 100644 src/core/client/ui/components/Icon/Icon.spec.tsx
delete mode 100644 src/core/client/ui/components/Icon/Icon.tsx
delete mode 100644 src/core/client/ui/components/Icon/README.mdx
delete mode 100644 src/core/client/ui/components/Icon/__snapshots__/Icon.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Icon/index.ts
delete mode 100644 src/core/client/ui/components/InputDescription/InputDescription.css
delete mode 100644 src/core/client/ui/components/InputDescription/__snapshots__/InputDescription.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/InputLabel/InputLabel.css
delete mode 100644 src/core/client/ui/components/InputLabel/InputLabel.spec.tsx
delete mode 100644 src/core/client/ui/components/InputLabel/InputLabel.tsx
delete mode 100644 src/core/client/ui/components/InputLabel/README.mdx
delete mode 100644 src/core/client/ui/components/InputLabel/__snapshots__/InputLabel.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/InputLabel/index.ts
delete mode 100644 src/core/client/ui/components/Marker/Count.css
delete mode 100644 src/core/client/ui/components/Marker/Count.spec.tsx
delete mode 100644 src/core/client/ui/components/Marker/Count.tsx
delete mode 100644 src/core/client/ui/components/Marker/Marker.css
delete mode 100644 src/core/client/ui/components/Marker/Marker.spec.tsx
delete mode 100644 src/core/client/ui/components/Marker/Marker.tsx
delete mode 100644 src/core/client/ui/components/Marker/README.mdx
delete mode 100644 src/core/client/ui/components/Marker/__snapshots__/Count.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Marker/__snapshots__/Marker.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Marker/index.ts
delete mode 100644 src/core/client/ui/components/MatchMedia/MatchMedia.spec.tsx
delete mode 100644 src/core/client/ui/components/MatchMedia/MatchMedia.tsx
delete mode 100644 src/core/client/ui/components/MatchMedia/README.mdx
delete mode 100644 src/core/client/ui/components/MatchMedia/__snapshots__/MatchMedia.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/MatchMedia/index.ts
delete mode 100644 src/core/client/ui/components/Message/Message.css
delete mode 100644 src/core/client/ui/components/Message/Message.spec.tsx
delete mode 100644 src/core/client/ui/components/Message/Message.tsx
delete mode 100644 src/core/client/ui/components/Message/MessageIcon.css
delete mode 100644 src/core/client/ui/components/Message/MessageIcon.tsx
delete mode 100644 src/core/client/ui/components/Message/README.mdx
delete mode 100644 src/core/client/ui/components/Message/__snapshots__/Message.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Message/index.ts
delete mode 100644 src/core/client/ui/components/Modal/Modal.css
delete mode 100644 src/core/client/ui/components/Modal/Modal.mdx.css
delete mode 100644 src/core/client/ui/components/Modal/Modal.spec.tsx
delete mode 100644 src/core/client/ui/components/Modal/Modal.tsx
delete mode 100644 src/core/client/ui/components/Modal/README.mdx
delete mode 100644 src/core/client/ui/components/Modal/__snapshots__/Modal.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Modal/index.ts
delete mode 100644 src/core/client/ui/components/NoScroll/NoScroll.css
delete mode 100644 src/core/client/ui/components/NoScroll/NoScroll.spec.tsx
delete mode 100644 src/core/client/ui/components/NoScroll/NoScroll.tsx
delete mode 100644 src/core/client/ui/components/NoScroll/README.mdx
delete mode 100644 src/core/client/ui/components/NoScroll/index.ts
delete mode 100644 src/core/client/ui/components/PasswordField/PasswordField.css
delete mode 100644 src/core/client/ui/components/PasswordField/PasswordField.spec.tsx
delete mode 100644 src/core/client/ui/components/PasswordField/PasswordField.tsx
delete mode 100644 src/core/client/ui/components/PasswordField/README.mdx
delete mode 100644 src/core/client/ui/components/PasswordField/__snapshots__/PasswordField.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/PasswordField/index.ts
delete mode 100644 src/core/client/ui/components/Popover/Arrow.css
delete mode 100644 src/core/client/ui/components/Popover/Arrow.tsx
delete mode 100644 src/core/client/ui/components/Popover/Popover.css
delete mode 100644 src/core/client/ui/components/Popover/Popover.tsx
delete mode 100644 src/core/client/ui/components/Popover/README.mdx
delete mode 100644 src/core/client/ui/components/Popover/index.ts
delete mode 100644 src/core/client/ui/components/RadioButton/README.mdx
delete mode 100644 src/core/client/ui/components/RadioButton/RadioButton.css
delete mode 100644 src/core/client/ui/components/RadioButton/RadioButton.spec.tsx
delete mode 100644 src/core/client/ui/components/RadioButton/RadioButton.tsx
delete mode 100644 src/core/client/ui/components/RadioButton/__snapshots__/RadioButton.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/RadioButton/index.ts
delete mode 100644 src/core/client/ui/components/RelativeTime/README.mdx
delete mode 100644 src/core/client/ui/components/RelativeTime/RelativeTime.css
delete mode 100644 src/core/client/ui/components/RelativeTime/RelativeTime.spec.tsx
delete mode 100644 src/core/client/ui/components/RelativeTime/RelativeTime.tsx
delete mode 100644 src/core/client/ui/components/RelativeTime/__snapshots__/RelativeTime.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/RelativeTime/index.ts
delete mode 100644 src/core/client/ui/components/SelectField/OptGroup.spec.tsx
delete mode 100644 src/core/client/ui/components/SelectField/OptGroup.tsx
delete mode 100644 src/core/client/ui/components/SelectField/Option.spec.tsx
delete mode 100644 src/core/client/ui/components/SelectField/Option.tsx
delete mode 100644 src/core/client/ui/components/SelectField/README.mdx
delete mode 100644 src/core/client/ui/components/SelectField/SelectField.css
delete mode 100644 src/core/client/ui/components/SelectField/SelectField.spec.tsx
delete mode 100644 src/core/client/ui/components/SelectField/SelectField.tsx
delete mode 100644 src/core/client/ui/components/SelectField/__snapshots__/OptGroup.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/SelectField/__snapshots__/Option.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/SelectField/__snapshots__/SelectField.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/SelectField/index.ts
delete mode 100644 src/core/client/ui/components/Spinner/README.mdx
delete mode 100644 src/core/client/ui/components/Spinner/Spinner.css
delete mode 100644 src/core/client/ui/components/Spinner/Spinner.spec.tsx
delete mode 100644 src/core/client/ui/components/Spinner/Spinner.tsx
delete mode 100644 src/core/client/ui/components/Spinner/__snapshots__/Spinner.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Spinner/index.ts
delete mode 100644 src/core/client/ui/components/Steps/Circle.css
delete mode 100644 src/core/client/ui/components/Steps/Circle.tsx
delete mode 100644 src/core/client/ui/components/Steps/Line.css
delete mode 100644 src/core/client/ui/components/Steps/Line.tsx
delete mode 100644 src/core/client/ui/components/Steps/README.mdx
delete mode 100644 src/core/client/ui/components/Steps/Step.css
delete mode 100644 src/core/client/ui/components/Steps/Step.tsx
delete mode 100644 src/core/client/ui/components/Steps/StepBar.css
delete mode 100644 src/core/client/ui/components/Steps/StepBar.tsx
delete mode 100644 src/core/client/ui/components/Steps/index.ts
delete mode 100644 src/core/client/ui/components/SubBar/Navigation.css
delete mode 100644 src/core/client/ui/components/SubBar/Navigation.spec.tsx
delete mode 100644 src/core/client/ui/components/SubBar/Navigation.tsx
delete mode 100644 src/core/client/ui/components/SubBar/NavigationItem.css
delete mode 100644 src/core/client/ui/components/SubBar/NavigationItem.spec.tsx
delete mode 100644 src/core/client/ui/components/SubBar/NavigationItem.tsx
delete mode 100644 src/core/client/ui/components/SubBar/README.mdx
delete mode 100644 src/core/client/ui/components/SubBar/SubBar.css
delete mode 100644 src/core/client/ui/components/SubBar/SubBar.spec.tsx
delete mode 100644 src/core/client/ui/components/SubBar/SubBar.tsx
delete mode 100644 src/core/client/ui/components/SubBar/__snapshots__/Navigation.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/SubBar/__snapshots__/NavigationItem.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/SubBar/__snapshots__/SubBar.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/SubBar/index.ts
delete mode 100644 src/core/client/ui/components/Table/README.mdx
delete mode 100644 src/core/client/ui/components/Table/Table.css
delete mode 100644 src/core/client/ui/components/Table/Table.spec.tsx
delete mode 100644 src/core/client/ui/components/Table/Table.tsx
delete mode 100644 src/core/client/ui/components/Table/TableBody.css
delete mode 100644 src/core/client/ui/components/Table/TableBody.tsx
delete mode 100644 src/core/client/ui/components/Table/TableCell.css
delete mode 100644 src/core/client/ui/components/Table/TableCell.tsx
delete mode 100644 src/core/client/ui/components/Table/TableHead.css
delete mode 100644 src/core/client/ui/components/Table/TableHead.tsx
delete mode 100644 src/core/client/ui/components/Table/TableRow.css
delete mode 100644 src/core/client/ui/components/Table/TableRow.tsx
delete mode 100644 src/core/client/ui/components/Table/__snapshots__/Table.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Table/index.ts
delete mode 100644 src/core/client/ui/components/Tabs/README.mdx
delete mode 100644 src/core/client/ui/components/Tabs/Tab.css
delete mode 100644 src/core/client/ui/components/Tabs/Tab.spec.tsx
delete mode 100644 src/core/client/ui/components/Tabs/Tab.tsx
delete mode 100644 src/core/client/ui/components/Tabs/TabBar.css
delete mode 100644 src/core/client/ui/components/Tabs/TabBar.spec.tsx
delete mode 100644 src/core/client/ui/components/Tabs/TabBar.tsx
delete mode 100644 src/core/client/ui/components/Tabs/TabContent.spec.tsx
delete mode 100644 src/core/client/ui/components/Tabs/TabContent.tsx
delete mode 100644 src/core/client/ui/components/Tabs/TabPane.spec.tsx
delete mode 100644 src/core/client/ui/components/Tabs/TabPane.tsx
delete mode 100644 src/core/client/ui/components/Tabs/__snapshots__/Tab.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Tabs/__snapshots__/TabBar.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Tabs/__snapshots__/TabContent.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Tabs/__snapshots__/TabPane.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Tabs/index.ts
delete mode 100644 src/core/client/ui/components/Tag/README.mdx
delete mode 100644 src/core/client/ui/components/Tag/Tag.css
delete mode 100644 src/core/client/ui/components/Tag/Tag.spec.tsx
delete mode 100644 src/core/client/ui/components/Tag/Tag.tsx
delete mode 100644 src/core/client/ui/components/Tag/__snapshots__/Tag.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Tag/index.ts
delete mode 100644 src/core/client/ui/components/TextField/README.mdx
delete mode 100644 src/core/client/ui/components/TextField/TextField.css
delete mode 100644 src/core/client/ui/components/TextField/TextField.spec.tsx
delete mode 100644 src/core/client/ui/components/TextField/TextField.tsx
delete mode 100644 src/core/client/ui/components/TextField/__snapshots__/TextField.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/TextField/index.ts
delete mode 100644 src/core/client/ui/components/TextLink/README.mdx
delete mode 100644 src/core/client/ui/components/TextLink/TextLink.css
delete mode 100644 src/core/client/ui/components/TextLink/TextLink.spec.tsx
delete mode 100644 src/core/client/ui/components/TextLink/TextLink.tsx
delete mode 100644 src/core/client/ui/components/TextLink/__snapshots__/TextLink.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/TextLink/index.ts
delete mode 100644 src/core/client/ui/components/TileSelector/TileOption.css
delete mode 100644 src/core/client/ui/components/Timestamp/Timestamp.css
delete mode 100644 src/core/client/ui/components/Timestamp/Timestamp.spec.tsx
delete mode 100644 src/core/client/ui/components/Timestamp/Timestamp.tsx
delete mode 100644 src/core/client/ui/components/Timestamp/__snapshots__/Timestamp.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Timestamp/index.ts
delete mode 100644 src/core/client/ui/components/ToggleShow/README.mdx
delete mode 100644 src/core/client/ui/components/ToggleShow/ToggleShow.spec.tsx
delete mode 100644 src/core/client/ui/components/ToggleShow/ToggleShow.tsx
delete mode 100644 src/core/client/ui/components/ToggleShow/__snapshots__/ToggleShow.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/Tooltip/Tooltip.css
delete mode 100644 src/core/client/ui/components/Tooltip/Tooltip.tsx
delete mode 100644 src/core/client/ui/components/Tooltip/TooltipButton.css
delete mode 100644 src/core/client/ui/components/Tooltip/TooltipButton.tsx
delete mode 100644 src/core/client/ui/components/Tooltip/index.ts
delete mode 100644 src/core/client/ui/components/TrapFocus/README.mdx
delete mode 100644 src/core/client/ui/components/TrapFocus/TrapFocus.spec.tsx
delete mode 100644 src/core/client/ui/components/TrapFocus/TrapFocus.tsx
delete mode 100644 src/core/client/ui/components/TrapFocus/__snapshots__/TrapFocus.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/TrapFocus/index.ts
delete mode 100644 src/core/client/ui/components/Typography/Typography.css
delete mode 100644 src/core/client/ui/components/UIContext/UIContext.ts
delete mode 100644 src/core/client/ui/components/UIContext/index.ts
delete mode 100644 src/core/client/ui/components/ValidationMessage/README.mdx
delete mode 100644 src/core/client/ui/components/ValidationMessage/ValidationMessage.spec.tsx
delete mode 100644 src/core/client/ui/components/ValidationMessage/ValidationMessage.tsx
delete mode 100644 src/core/client/ui/components/ValidationMessage/__snapshots__/ValidationMessage.spec.tsx.snap
delete mode 100644 src/core/client/ui/components/ValidationMessage/index.ts
delete mode 100644 src/core/client/ui/components/index.ts
create mode 100644 src/core/client/ui/components/v2/CheckIcon/CheckIcon.css
create mode 100644 src/core/client/ui/components/v2/CheckIcon/CheckIcon.tsx
rename src/core/client/ui/components/{Check => v2/CheckIcon}/README.mdx (100%)
create mode 100644 src/core/client/ui/components/v2/CheckIcon/index.ts
create mode 100644 src/core/client/ui/components/v2/InputDescription/InputDescription.css
rename src/core/client/ui/components/{ => v2}/InputDescription/InputDescription.spec.tsx (100%)
rename src/core/client/ui/components/{ => v2}/InputDescription/InputDescription.tsx (70%)
rename src/core/client/ui/components/{ => v2}/InputDescription/README.mdx (100%)
rename src/core/client/ui/components/{AriaInfo/__snapshots__/AriaInfo.spec.tsx.snap => v2/InputDescription/__snapshots__/InputDescription.spec.tsx.snap} (58%)
rename src/core/client/ui/components/{ => v2}/InputDescription/index.ts (100%)
rename src/core/client/ui/components/{ => v2}/Popup/Popup.ts (100%)
rename src/core/client/ui/components/{ => v2}/Popup/README.mdx (100%)
rename src/core/client/ui/components/{ => v2}/Popup/index.ts (100%)
rename src/core/client/ui/components/{ => v2}/TileSelector/README.mdx (98%)
create mode 100644 src/core/client/ui/components/v2/TileSelector/TileOption.css
rename src/core/client/ui/components/{ => v2}/TileSelector/TileOption.tsx (100%)
rename src/core/client/ui/components/{ => v2}/TileSelector/TileSelector.css (100%)
rename src/core/client/ui/components/{ => v2}/TileSelector/TileSelector.tsx (96%)
rename src/core/client/ui/components/{ => v2}/TileSelector/index.ts (100%)
rename src/core/client/ui/components/{ => v2}/Typography/README.mdx (99%)
create mode 100644 src/core/client/ui/components/v2/Typography/Typography.css
rename src/core/client/ui/components/{ => v2}/Typography/Typography.spec.tsx (100%)
rename src/core/client/ui/components/{ => v2}/Typography/Typography.tsx (99%)
rename src/core/client/ui/components/{ => v2}/Typography/__snapshots__/Typography.spec.tsx.snap (100%)
rename src/core/client/ui/components/{ => v2}/Typography/index.ts (100%)
delete mode 100644 src/core/client/ui/shared/buttonReset.css
delete mode 100644 src/core/client/ui/shared/typography.css
create mode 100644 src/core/client/ui/theme/admin.css.ts
create mode 100644 src/core/client/ui/theme/adminVariables.ts
create mode 100644 src/core/client/ui/theme/breakpoints.ts
create mode 100644 src/core/client/ui/theme/colors.ts
create mode 100644 src/core/client/ui/theme/compatibility.ts
create mode 100644 src/core/client/ui/theme/sassLikeVariables.ts
create mode 100644 src/core/client/ui/theme/sharedVariables.ts
create mode 100644 src/core/client/ui/theme/stream.css.ts
create mode 100644 src/core/client/ui/theme/streamVariables.ts
create mode 100644 src/core/client/ui/theme/typography.css
delete mode 100644 src/core/client/ui/theme/variables.css.ts
delete mode 100644 src/core/client/ui/theme/variables.ts
delete mode 100644 src/core/client/ui/theme/variables2.ts
create mode 100644 src/core/client/ui/theme/zIndex.ts
create mode 100644 src/types/postcss-js.d.ts
diff --git a/CSS_VARIABLES.md b/CSS_VARIABLES.md
new file mode 100644
index 000000000..9f77e28e5
--- /dev/null
+++ b/CSS_VARIABLES.md
@@ -0,0 +1,295 @@
+
+# CSS Variables
+
+Coral defines a set of CSS Variables that you can use to broadly customize the
+look and feel of your comment stream. For example you can easily redefine the colors
+or fonts that are being used.
+
+To change the CSS Variables, use the following example in your custom CSS file:
+
+```
+:root {
+ --font-family-primary: 'Verdana';
+ --round-corners: 0px;
+}
+```
+
+The following list contains the CSS Variables that can be customized.
+
+**Info**: *Before 6.3.0 Coral uses a different set of CSS Variables. If you are still using
+the old CSS Variables, please upgrade. Currently we have a compatibility layer to bridge the old CSS Variables to the new ones. This mechanism will be removed in the future.*
+
+
+
+### Index
+- Variables
+ - palette
+ - palette-primary
+ - palette-background
+ - palette-text
+ - palette-grey
+ - palette-error
+ - palette-success
+ - palette-warning
+ - font-family
+ - font-weight
+ - font-weight-primary
+ - font-weight-secondary
+ - font-size
+ - line-height
+ - shadow
+ - spacing
+ - mini-unit
+
+
+### Variables
+
+Use this to remove round corners or make them more round.
+
+`--round-corners: 3px;`
+
+### palette
+
+`--palette-divider: rgba(0, 0, 0, 0.12);`
+
+#### palette-primary
+
+Color palette that is used as the primary color.
+
+`--palette-primary-100: #EBF6FF; /* Before 6.3.0: --palette-primary-lightest */`
+
+`--palette-primary-200: #B7DCFF; /* Before 6.3.0: --palette-primary-lighter */`
+
+`--palette-primary-300: #61B3FF; /* Before 6.3.0: --palette-primary-light */`
+
+`--palette-primary-400: #2897FF; /* Before 6.3.0: --palette-primary-main */`
+
+`--palette-primary-500: #0070D9; /* Before 6.3.0: --palette-primary-main */`
+
+`--palette-primary-600: #0062BE; /* Before 6.3.0: --palette-primary-main */`
+
+`--palette-primary-700: #005AAE; /* Before 6.3.0: --palette-primary-main */`
+
+`--palette-primary-800: #004688; /* Before 6.3.0: --palette-primary-dark */`
+
+`--palette-primary-900: #00386D; /* Before 6.3.0: --palette-primary-darkest */`
+
+#### palette-background
+
+Color palette that is used for background colors.
+
+`--palette-background-body: #FFFFFF;`
+
+`--palette-background-popover: #FFFFFF;`
+
+`--palette-background-tooltip: #65696B;`
+
+`--palette-background-input: #FFFFFF;`
+
+`--palette-background-input-disabled: #EFEFEF;`
+
+#### palette-text
+
+Color palette that is used for text.
+
+`--palette-text-000: #FFFFFF; /* Before 6.3.0: --palette-text-light */`
+
+`--palette-text-100: #65696B; /* Before 6.3.0: --palette-text-secondary */`
+
+`--palette-text-500: #353F44; /* Before 6.3.0: --palette-text-primary */`
+
+`--palette-text-900: #14171A; /* Before 6.3.0: --palette-text-dark */`
+
+`--palette-text-placeholder: #9FA4A6; /* Before 6.3.0: --palette-grey-lighter */`
+
+`--palette-text-input-disabled: #9FA4A6; /* Before 6.3.0: --palette-grey-lighter */`
+
+#### palette-grey
+
+Color palette that is used for grey shades.
+
+`--palette-grey-100: #F4F7F7; /* Before 6.3.0: --palette-grey-lightest */`
+
+`--palette-grey-200: #EAEFF0; /* Before 6.3.0: --palette-grey-lightest */`
+
+`--palette-grey-300: #CBD1D2; /* Before 6.3.0: --palette-grey-lighter */`
+
+`--palette-grey-400: #9FA4A6; /* Before 6.3.0: --palette-grey-lighter */`
+
+`--palette-grey-500: #65696B; /* Before 6.3.0: --palette-grey-main */`
+
+`--palette-grey-600: #49545C; /* Before 6.3.0: --palette-grey-dark */`
+
+`--palette-grey-700: #32404D; /* Before 6.3.0: --palette-grey-darkest */`
+
+`--palette-grey-800: #202E3E; /* Before 6.3.0: --palette-grey-darkest */`
+
+`--palette-grey-900: #132033; /* Before 6.3.0: --palette-grey-darkest */`
+
+#### palette-error
+
+Color palette that is used for indicating something negative and is usually red.
+
+`--palette-error-100: #FCE5D9; /* Before 6.3.0: --palette-error-lightest */`
+
+`--palette-error-200: #FAC6B4; /* Before 6.3.0: --palette-error-lighter */`
+
+`--palette-error-300: #F29D8B; /* Before 6.3.0: --palette-error-lighter */`
+
+`--palette-error-400: #E5766C; /* Before 6.3.0: --palette-error-light */`
+
+`--palette-error-500: #D53F3F; /* Before 6.3.0: --palette-error-main */`
+
+`--palette-error-600: #B72E39; /* Before 6.3.0: --palette-error-main */`
+
+`--palette-error-700: #991F34; /* Before 6.3.0: --palette-error-dark */`
+
+`--palette-error-800: #7B142E; /* Before 6.3.0: --palette-error-darkest */`
+
+`--palette-error-900: #660C2B; /* Before 6.3.0: --palette-error-darkest */`
+
+#### palette-success
+
+Color palette that is used for indicating something positive and is usually green.
+
+`--palette-success-100: #D8F9D5; /* Before 6.3.0: --palette-success-lightest */`
+
+`--palette-success-200: #ADF3AD; /* Before 6.3.0: --palette-success-lighter */`
+
+`--palette-success-300: #7CDB85; /* Before 6.3.0: --palette-success-lighter */`
+
+`--palette-success-400: #54B767; /* Before 6.3.0: --palette-success-light */`
+
+`--palette-success-500: #268742; /* Before 6.3.0: --palette-success-main */`
+
+`--palette-success-600: #1B743D; /* Before 6.3.0: --palette-success-main */`
+
+`--palette-success-700: #136138; /* Before 6.3.0: --palette-success-dark */`
+
+`--palette-success-800: #0C4E32; /* Before 6.3.0: --palette-success-darkest */`
+
+`--palette-success-900: #07402E; /* Before 6.3.0: --palette-success-darkest */`
+
+#### palette-warning
+
+Color palette that is used for indicating a warning and is usually yellow.
+
+`--palette-warning-100: #FFFACC; /* Before 6.3.0: --palette-warning-main */`
+
+`--palette-warning-500: #FFE91F; /* Before 6.3.0: --palette-warning-main */`
+
+### font-family
+
+Different font families currently in use.
+
+`--font-family-primary: "Open Sans"; /* Before 6.3.0: --font-family-sans-serif */`
+
+`--font-family-secondary: "Nunito"; /* Before 6.3.0: --font-family-serif */`
+
+### font-weight
+
+Different font weights with matching values for the fonts.
+
+#### font-weight-primary
+
+`--font-weight-primary-bold: 700; /* Before 6.3.0: --font-weight-sans-bold */`
+
+`--font-weight-primary-semi-bold: 600; /* Before 6.3.0: --font-weight-sans-medium */`
+
+`--font-weight-primary-regular: 300; /* Before 6.3.0: --font-weight-sans-regular */`
+
+#### font-weight-secondary
+
+`--font-weight-secondary-bold: 700; /* Before 6.3.0: --font-weight-serif-bold */`
+
+`--font-weight-secondary-regular: 300; /* Before 6.3.0: --font-weight-serif-regular */`
+
+### font-size
+
+`--font-size-1: 0.75rem;`
+
+`--font-size-2: 0.875rem;`
+
+`--font-size-3: 1rem;`
+
+`--font-size-4: 1.125rem;`
+
+`--font-size-5: 1.25rem;`
+
+`--font-size-6: 1.5rem;`
+
+`--font-size-7: 1.75rem;`
+
+`--font-size-8: 2rem;`
+
+`--font-size-9: 2.25rem;`
+
+`--font-size-icon-xl: 2.25rem;`
+
+`--font-size-icon-lg: 1.5rem;`
+
+`--font-size-icon-md: 1.125rem;`
+
+`--font-size-icon-sm: 0.875rem;`
+
+`--font-size-icon-xs: 0.75rem;`
+
+### line-height
+
+`--line-height-comment-body: 1.45rem;`
+
+`--line-height-field-description: 1.3rem;`
+
+`--line-height-1: 0.75rem;`
+
+`--line-height-2: 0.875rem;`
+
+`--line-height-3: 1rem;`
+
+`--line-height-4: 1.125rem;`
+
+`--line-height-5: 1.25rem;`
+
+`--line-height-6: 1.5rem;`
+
+`--line-height-7: 1.75rem;`
+
+`--line-height-8: 2rem;`
+
+### shadow
+
+Different shadows that are currently used in Coral.
+
+`--shadow-popover: 1px 0px 4px rgba(0, 0, 0, 0.25); /* Before 6.3.0: --elevation-main */`
+
+### spacing
+
+Different spacing units currenty used in Coral.
+
+`--spacing-1: 4px;`
+
+`--spacing-2: 8px;`
+
+`--spacing-3: 12px;`
+
+`--spacing-4: 16px;`
+
+`--spacing-5: 24px;`
+
+`--spacing-6: 32px;`
+
+`--spacing-7: 44px;`
+
+`--spacing-8: 60px;`
+
+`--spacing-9: 84px;`
+
+### mini-unit
+
+Grid units for smaller and larger screens.
+
+`--mini-unit-small: 4;`
+
+`--mini-unit-large: 8;`
+
+
diff --git a/gatsby-node.js b/gatsby-node.js
index 4b87ad0e4..bf2214957 100644
--- a/gatsby-node.js
+++ b/gatsby-node.js
@@ -42,8 +42,8 @@ exports.onCreateWebpackConfig = ({
if (stage === "develop") {
config.entry.commons.push(
- // Add our global css variables file.
- `${srcDir}/core/client/ui/theme/variables.css.ts`
+ // Add our stream css variables file.
+ `${srcDir}/core/client/ui/theme/stream.css.ts`
);
}
@@ -52,7 +52,7 @@ exports.onCreateWebpackConfig = ({
if (stage === "build-javascript") {
config.entry.app = [
config.entry.app,
- `${appDir}/core/client/ui/theme/variables.css.ts`,
+ `${appDir}/core/client/ui/theme/stream.css.ts`,
];
}
*/
diff --git a/package-lock.json b/package-lock.json
index 52c5d5cdc..fbc04fc51 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -22020,28 +22020,28 @@
"dependencies": {
"abbrev": {
"version": "1.1.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
"dev": true,
"optional": true
},
"ansi-regex": {
"version": "2.1.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
"integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
"dev": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
"integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
"dev": true,
"optional": true
},
"are-we-there-yet": {
"version": "1.1.5",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
"integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
"dev": true,
"optional": true,
@@ -22052,14 +22052,14 @@
},
"balanced-match": {
"version": "1.0.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
"dev": true,
"optional": true
},
"brace-expansion": {
"version": "1.1.11",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"dev": true,
"optional": true,
@@ -22077,35 +22077,35 @@
},
"code-point-at": {
"version": "1.1.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
"integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
"dev": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
"dev": true,
"optional": true
},
"console-control-strings": {
"version": "1.1.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
"integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
"dev": true,
"optional": true
},
"core-util-is": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
"dev": true,
"optional": true
},
"debug": {
"version": "4.1.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"dev": true,
"optional": true,
@@ -22115,21 +22115,21 @@
},
"deep-extend": {
"version": "0.6.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
"dev": true,
"optional": true
},
"delegates": {
"version": "1.0.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
"integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",
"dev": true,
"optional": true
},
"detect-libc": {
"version": "1.0.3",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
"integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=",
"dev": true,
"optional": true
@@ -22159,7 +22159,7 @@
},
"gauge": {
"version": "2.7.4",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
"integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
"dev": true,
"optional": true,
@@ -22176,7 +22176,7 @@
},
"glob": {
"version": "7.1.3",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
"integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
"dev": true,
"optional": true,
@@ -22191,14 +22191,14 @@
},
"has-unicode": {
"version": "2.0.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
"integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
"dev": true,
"optional": true
},
"iconv-lite": {
"version": "0.4.24",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"dev": true,
"optional": true,
@@ -22208,7 +22208,7 @@
},
"ignore-walk": {
"version": "3.0.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz",
"integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==",
"dev": true,
"optional": true,
@@ -22218,7 +22218,7 @@
},
"inflight": {
"version": "1.0.6",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
"dev": true,
"optional": true,
@@ -22229,21 +22229,21 @@
},
"inherits": {
"version": "2.0.3",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
"dev": true,
"optional": true
},
"ini": {
"version": "1.3.5",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
"integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
"dev": true,
"optional": true
},
"is-fullwidth-code-point": {
"version": "1.0.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
"integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
"dev": true,
"optional": true,
@@ -22253,14 +22253,14 @@
},
"isarray": {
"version": "1.0.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
"dev": true,
"optional": true
},
"minimatch": {
"version": "3.0.4",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"dev": true,
"optional": true,
@@ -22308,7 +22308,7 @@
},
"ms": {
"version": "2.1.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
"dev": true,
"optional": true
@@ -22322,7 +22322,7 @@
},
"needle": {
"version": "2.3.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/needle/-/needle-2.3.0.tgz",
"integrity": "sha512-QBZu7aAFR0522EyaXZM0FZ9GLpq6lvQ3uq8gteiDUp7wKdy0lSd2hPlgFwVuW1CBkfEs9PfDQsQzZghLs/psdg==",
"dev": true,
"optional": true,
@@ -22334,7 +22334,7 @@
},
"node-pre-gyp": {
"version": "0.12.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz",
"integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==",
"dev": true,
"optional": true,
@@ -22353,7 +22353,7 @@
},
"nopt": {
"version": "4.0.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz",
"integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=",
"dev": true,
"optional": true,
@@ -22364,14 +22364,14 @@
},
"npm-bundled": {
"version": "1.0.6",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.6.tgz",
"integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==",
"dev": true,
"optional": true
},
"npm-packlist": {
"version": "1.4.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.1.tgz",
"integrity": "sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw==",
"dev": true,
"optional": true,
@@ -22382,7 +22382,7 @@
},
"npmlog": {
"version": "4.1.2",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
"integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
"dev": true,
"optional": true,
@@ -22395,21 +22395,21 @@
},
"number-is-nan": {
"version": "1.0.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
"integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
"dev": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
"dev": true,
"optional": true
},
"once": {
"version": "1.4.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"dev": true,
"optional": true,
@@ -22419,21 +22419,21 @@
},
"os-homedir": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
"integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
"dev": true,
"optional": true
},
"os-tmpdir": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
"dev": true,
"optional": true
},
"osenv": {
"version": "0.1.5",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
"integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
"dev": true,
"optional": true,
@@ -22444,21 +22444,21 @@
},
"path-is-absolute": {
"version": "1.0.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
"dev": true,
"optional": true
},
"process-nextick-args": {
"version": "2.0.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
"integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==",
"dev": true,
"optional": true
},
"rc": {
"version": "1.2.8",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
"integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
"dev": true,
"optional": true,
@@ -22480,7 +22480,7 @@
},
"readable-stream": {
"version": "2.3.6",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
"integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
"dev": true,
"optional": true,
@@ -22496,7 +22496,7 @@
},
"rimraf": {
"version": "2.6.3",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
"integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
"dev": true,
"optional": true,
@@ -22506,49 +22506,49 @@
},
"safe-buffer": {
"version": "5.1.2",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
"dev": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
"dev": true,
"optional": true
},
"sax": {
"version": "1.2.4",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
"dev": true,
"optional": true
},
"semver": {
"version": "5.7.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz",
"integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==",
"dev": true,
"optional": true
},
"set-blocking": {
"version": "2.0.0",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
"integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
"dev": true,
"optional": true
},
"signal-exit": {
"version": "3.0.2",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
"integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
"dev": true,
"optional": true
},
"string-width": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
"integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
"dev": true,
"optional": true,
@@ -22560,7 +22560,7 @@
},
"string_decoder": {
"version": "1.1.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"dev": true,
"optional": true,
@@ -22570,7 +22570,7 @@
},
"strip-ansi": {
"version": "3.0.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
"integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
"dev": true,
"optional": true,
@@ -22580,7 +22580,7 @@
},
"strip-json-comments": {
"version": "2.0.1",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
"integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
"dev": true,
"optional": true
@@ -22603,14 +22603,14 @@
},
"util-deprecate": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
"dev": true,
"optional": true
},
"wide-align": {
"version": "1.1.3",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
"integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
"dev": true,
"optional": true,
@@ -22620,7 +22620,7 @@
},
"wrappy": {
"version": "1.0.2",
- "resolved": false,
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
"dev": true,
"optional": true
diff --git a/package.json b/package.json
index fa579a0f6..24c4b1cad 100644
--- a/package.json
+++ b/package.json
@@ -28,6 +28,7 @@
"build:server": "gulp server",
"migration:create": "ts-node --transpile-only ./scripts/migration/create.ts",
"docs:events": "ts-node ./scripts/generateEventDocs.ts ./src/core/client/stream/events.ts ./CLIENT_EVENTS.md",
+ "docs:css-variables": "ts-node ./scripts/generateCSSVariablesDocs.ts ./src/core/client/ui/theme/streamVariables.ts ./CSS_VARIABLES.md",
"doctoc": "doctoc --maxlevel=3 --title '## Table of Contents' README.md CLIENT_EVENTS.md CONTRIBUTING.md WEBHOOKS.md EXTERNAL_MODERATION_PHASES.md",
"generate": "npm-run-all generate:css-types generate:schema generate:relay",
"generate-persist": "npm-run-all generate:css-types generate:schema generate:relay-persist",
@@ -425,6 +426,9 @@
"{src/core/client/stream/events.ts,scripts/generateEventDocs.ts,CLIENT_EVENTS.md}": [
"npm run docs:events -- --verify"
],
+ "{src/core/client/ui/theme/sharedVariables.ts,src/core/client/ui/theme/streamVariables.ts,scripts/generateCSSVariablesDocs.ts,CSS_VARIABLES.md}": [
+ "npm run docs:css-variables -- --verify"
+ ],
"{README,CLIENT_EVENTS,CONTRIBUTING,WEBHOOKS,EXTERNAL_MODERATION_PHASES}.md": [
"npm run doctoc"
]
diff --git a/scripts/generateCSSVariablesDocs.ts b/scripts/generateCSSVariablesDocs.ts
new file mode 100644
index 000000000..1e9e79ea4
--- /dev/null
+++ b/scripts/generateCSSVariablesDocs.ts
@@ -0,0 +1,306 @@
+import { stripIndent } from "common-tags";
+import fs from "fs";
+import { kebabCase, trim } from "lodash";
+import path from "path";
+import ts from "typescript";
+
+import colors from "../src/core/client/ui/theme/colors";
+
+/** We collect inforamtion from the AST and put it into DocEntry */
+interface DocEntry {
+ /** Name of property */
+ key: string;
+ /** Documentation if available */
+ docs?: string;
+ /** Value if it is a leaf */
+ value?: string;
+ /** Children if it is a node */
+ children?: DocEntry[];
+}
+
+/**
+ * We use this regexp to find a previous block that we
+ * are going to update in the readme file.
+ */
+const BLOCK_REGEXP = /(.|\n)*/gm;
+
+/** Sort doc entries will sort childrenless entries first */
+function sortDocEntries(data: DocEntry[]) {
+ data.forEach((d) => {
+ if (d.children) {
+ d.children = sortDocEntries(d.children);
+ }
+ });
+ return data.sort((a, b) => {
+ if (a.children && !b.children) {
+ return 1;
+ }
+ if (b.children && !a.children) {
+ return -1;
+ }
+ return 0;
+ });
+}
+
+/** Generate documentation for all classes in a set of .ts files */
+function gatherEntries(
+ fileName: string,
+ options: ts.CompilerOptions
+): DocEntry[] {
+ // Build a program using the set of root file names in fileNames
+ const program = ts.createProgram([fileName], options);
+
+ // Get the checker, we will use it to find more about classes
+ const checker = program.getTypeChecker();
+
+ const data: DocEntry[] = [];
+ const currentSourceFile = program.getSourceFile(fileName)!;
+
+ ts.forEachChild(currentSourceFile, visit);
+
+ return sortDocEntries(data);
+
+ /** visit nodes finding css variables */
+ function visit(node: ts.Node) {
+ if (ts.isVariableStatement(node)) {
+ // TODO (cvle) - Currently the variable name is hardcoded. We might want to change that.
+ if (!node.getFullText().includes("streamVariables")) {
+ return;
+ }
+ const firstChild = node.declarationList.declarations[0];
+ if (ts.isVariableDeclaration(firstChild)) {
+ const symbol = checker.getSymbolAtLocation(firstChild.name);
+ if (symbol) {
+ const type = checker.getTypeOfSymbolAtLocation(
+ symbol,
+ symbol.valueDeclaration
+ );
+ type.getProperties().forEach((property) => {
+ serializePropertySymbol(property);
+ });
+ }
+ }
+ }
+ }
+
+ /** This will evaluate `symbol` and addthe doc entries */
+ function serializePropertySymbol(symbol: ts.Symbol, parent?: DocEntry) {
+ const entry: DocEntry = { key: symbol.name };
+ const pt = checker.getTypeOfSymbolAtLocation(
+ symbol,
+ symbol.valueDeclaration
+ );
+ if (pt.symbol?.name === "__object") {
+ pt.getProperties().forEach((p2) => {
+ serializePropertySymbol(p2, entry);
+ });
+ } else {
+ entry.value = symbol.valueDeclaration
+ // Last child contains value.
+ .getChildAt(symbol.valueDeclaration.getChildCount() - 1)!
+ .getFullText();
+ }
+ entry.docs = ts.displayPartsToString(
+ symbol.getDocumentationComment(checker)
+ );
+ if (parent) {
+ if (parent.children) {
+ parent.children.push(entry);
+ } else {
+ parent.children = [entry];
+ }
+ } else {
+ data.push(entry);
+ }
+ }
+}
+
+/**
+ * Finds any references to `object` by `variableName` and replaces the text
+ * with the actual value.
+ *
+ * E.g. `replaceObjectVariablesInText("colors.teal100", colors, "colors") === "#E2FAF7"`;
+ */
+function replaceObjectVariablesInText(
+ text: string,
+ object: any,
+ variableName: string
+) {
+ let result = text;
+ Object.keys(object).forEach((c: string) => {
+ if (typeof object[c] === "object") {
+ result = replaceObjectVariablesInText(
+ result,
+ object[c],
+ `${variableName}.${c}`
+ );
+ } else {
+ result = result.replace(`${variableName}.${c}`, object[c]);
+ }
+ });
+ return result;
+}
+
+/**
+ * transforms value to be used in the documentation.
+ */
+function transformValue(value: string) {
+ let compat = "";
+ value = trim(value);
+ // Detect compat value.
+ if (value.startsWith("compat")) {
+ const result = /compat\((.*), *"(.*)"\)/.exec(value);
+ if (!result) {
+ throw new Error("Unrecognized compat format");
+ }
+ value = result[1];
+ compat = result[2];
+ }
+ // If it's a raw string, evaluate it to get rid of the initial quotes.
+ if (value[0] === '"' || value[0] === "'") {
+ // eslint-disable-next-line no-eval
+ value = eval(value);
+ }
+ // Replace all references to colors.
+ value = replaceObjectVariablesInText(value, colors, "colors");
+ if (compat) {
+ // add compat information.
+ return `${value}; /* Before 6.3.0: --${compat} */`;
+ }
+ return `${value};`;
+}
+
+function prefixLines(text: string, prefix: string) {
+ return text.split("\n").join(`\n${prefix}`);
+}
+
+function entries2Summary(
+ entries: DocEntry[],
+ keyprefix = "",
+ nestprefix = ""
+): string {
+ let doc = "";
+ entries.forEach((entry) => {
+ if (!entry.children) {
+ return;
+ }
+ const header = kebabCase(keyprefix + entry.key);
+ doc += `${nestprefix}- ${header} \n`;
+ if (entry.children) {
+ doc += entries2Summary(
+ entry.children,
+ keyprefix + entry.key + "-",
+ nestprefix + " "
+ );
+ }
+ });
+ return doc;
+}
+
+function entries2Doc(entries: DocEntry[], header = "###", prefix = ""): string {
+ let doc = "";
+ entries.forEach((entry) => {
+ if (entry.children) {
+ doc += `\n${header} ${kebabCase(prefix + entry.key)}\n`;
+ if (entry.docs) {
+ doc += `\n${entry.docs}\n`;
+ }
+ doc += entries2Doc(
+ entry.children,
+ header + "#",
+ `${prefix}${entry.key}-`
+ );
+ } else {
+ if (entry.docs) {
+ doc += `\n${entry.docs}\n`;
+ }
+ doc += `\n\`--${kebabCase(prefix + entry.key)}: ${transformValue(
+ entry.value!
+ )}\`\n`;
+ }
+ });
+ return doc;
+}
+
+/**
+ * Append or update previous documention in markdownFile.
+ *
+ * @param markdownFile The markdown file we want to inject the docs too.
+ * @param entries data as returned by gatherEntries.
+ */
+function emitDocs(markdownFile: string, entries: DocEntry[], verify = false) {
+ const previousContent = fs.existsSync(markdownFile)
+ ? fs.readFileSync(markdownFile).toString()
+ : "";
+
+ const summary = entries2Summary(entries, "", " ");
+ const list = entries2Doc(entries);
+
+ const output = stripIndent`
+
+
+ ### Index
+ - Variables
+ ${prefixLines(summary, " ")}
+
+ ### Variables
+ ${prefixLines(list, " ")}
+
+ `;
+
+ let newContent;
+ // Find previous block.
+ if (BLOCK_REGEXP.test(previousContent)) {
+ newContent = previousContent.replace(BLOCK_REGEXP, output);
+ } else {
+ newContent = previousContent + "\n" + output;
+ }
+ if (previousContent === newContent) {
+ // eslint-disable-next-line no-console
+ console.log(`${markdownFile} is up to date`);
+ return;
+ }
+ if (verify) {
+ // eslint-disable-next-line no-console
+ console.error(
+ `${markdownFile} is outdated, please run \`npm run docs:css-variables\``
+ );
+ process.exit(1);
+ }
+
+ fs.writeFileSync(markdownFile, newContent);
+ // eslint-disable-next-line no-console
+ console.log(`Successfully injected documentation into ${markdownFile}`);
+}
+
+function main() {
+ if (process.argv.length < 4) {
+ throw new Error("Must provide path to css variables and a markdown file.");
+ }
+
+ const variableFile = process.argv[2];
+ const markdownFile = process.argv[3];
+
+ // Find tsconfig file.
+ const configFile = ts.findConfigFile(variableFile, fs.existsSync);
+ if (!configFile) {
+ throw new Error("tsconfig file not found");
+ }
+ const configText = fs.readFileSync(configFile).toString();
+ const result = ts.parseConfigFileTextToJson(configFile, configText);
+ if (result.error) {
+ throw result.error;
+ }
+
+ // Parse the JSON raw data into actual consumable compiler options.
+ const config = ts.parseJsonConfigFileContent(
+ result.config,
+ ts.sys,
+ path.dirname(configFile)
+ );
+
+ const entries = gatherEntries(variableFile, config.options);
+ emitDocs(markdownFile, entries, process.argv[4] === "--verify");
+}
+
+main();
diff --git a/src/core/build/paths.ts b/src/core/build/paths.ts
index dfbe3d789..e593349d4 100644
--- a/src/core/build/paths.ts
+++ b/src/core/build/paths.ts
@@ -20,7 +20,9 @@ export default {
appPublicPath: resolveSrc("core/build/publicPath.js"),
appLocales: resolveSrc("locales"),
appThemeVariables: resolveSrc("core/client/ui/theme/variables.ts"),
- appThemeVariablesCSS: resolveSrc("core/client/ui/theme/variables.css"),
+ appSassLikeVariables: resolveSrc("core/client/ui/theme/sassLikeVariables.ts"),
+ appThemeStreamCSS: resolveSrc("core/client/ui/theme/stream.css"),
+ appThemeAdminCSS: resolveSrc("core/client/ui/theme/admin.css"),
appThemeMixinsCSS: resolveSrc("core/client/ui/theme/mixins.css"),
appStreamHTML: resolveSrc("core/client/stream/index.html"),
diff --git a/src/core/build/postcss.config.js b/src/core/build/postcss.config.js
index 8b8b69804..969b681d6 100644
--- a/src/core/build/postcss.config.js
+++ b/src/core/build/postcss.config.js
@@ -3,7 +3,6 @@ require("ts-node/register");
const kebabCase = require("lodash/kebabCase");
const mapKeys = require("lodash/mapKeys");
const mapValues = require("lodash/mapValues");
-const pickBy = require("lodash/pickBy");
const flat = require("flat");
const paths = require("./paths").default;
const autoprefixer = require("autoprefixer");
@@ -17,23 +16,28 @@ const postcssMixins = require("postcss-mixins");
const postcssPrependImports = require("postcss-prepend-imports");
const postcssAdvancedVariables = require("postcss-advanced-variables");
-delete require.cache[paths.appThemeVariables];
-const variables = require(paths.appThemeVariables).default;
-const flatKebabVariables = mapKeys(
- mapValues(flat(variables, { delimiter: "-" }), (v) => v.toString()),
+delete require.cache[paths.appSassLikeVariables];
+const sassLikeVariables = require(paths.appSassLikeVariables).default;
+
+const kebabs = mapKeys(
+ mapValues(flat(sassLikeVariables, { delimiter: "-" }), (v) => v.toString()),
(_, k) => kebabCase(k)
);
-// These are sass style variables used in media queries.
-const mediaQueryVariables = mapValues(
- pickBy(flatKebabVariables, (v, k) => k.startsWith("breakpoints-")),
+// Generate sass-style variables to inject into css
+const postCssVariables = mapValues(kebabs, (value, key) => {
// Add unit to breakpoints.
// Add 1 to support mobile first approach where we start
// with the smallest screen and gradually add styling for the
// next bigger screen. This is realized using `min-width` without
// ever using `max-width`.
- (v) => `${Number.parseInt(v, 10) + 1}px`
-);
+ if (key.toString().startsWith("breakpoints-")) {
+ return `${Number.parseInt(value, 10) + 1}px`;
+ }
+
+ // Default return the raw value
+ return value;
+});
module.exports = {
// Necessary for external CSS imports to work
@@ -52,7 +56,7 @@ module.exports = {
// Support nesting.
postcssNested(),
// Sass style variables to be used in media queries.
- postcssAdvancedVariables({ variables: mediaQueryVariables }),
+ postcssAdvancedVariables({ variables: postCssVariables }),
// Reduce some calc()
postcssCalcFunction(),
// Provides a modern CSS environment.
diff --git a/src/core/client/account/App/MainLayout.css b/src/core/client/account/App/MainLayout.css
index 9c0c33277..4d49b7852 100644
--- a/src/core/client/account/App/MainLayout.css
+++ b/src/core/client/account/App/MainLayout.css
@@ -1,10 +1,10 @@
.bar {
height: calc(6 * var(--mini-unit));
- background-color: var(--palette-text-primary);
+ background-color: var(--palette-text-500);
}
.centered {
margin: 10% auto;
padding: 0 calc(0.5 * var(--mini-unit));
box-sizing: border-box;
-}
\ No newline at end of file
+}
diff --git a/src/core/client/account/components/Loading.tsx b/src/core/client/account/components/Loading.tsx
index b59e92dac..e75c6dadb 100644
--- a/src/core/client/account/components/Loading.tsx
+++ b/src/core/client/account/components/Loading.tsx
@@ -1,6 +1,6 @@
import React, { FunctionComponent } from "react";
-import { Delay, Flex, Spinner } from "coral-ui/components";
+import { Delay, Flex, Spinner } from "coral-ui/components/v2";
const Loading: FunctionComponent = () => (
diff --git a/src/core/client/account/index.tsx b/src/core/client/account/index.tsx
index 0d76d7884..e31c248d0 100644
--- a/src/core/client/account/index.tsx
+++ b/src/core/client/account/index.tsx
@@ -10,7 +10,7 @@ import { initLocalState } from "./local";
import localesData from "./locales";
// Import css variables.
-import "coral-ui/theme/variables.css";
+import "coral-ui/theme/stream.css";
async function main() {
await injectConditionalPolyfills();
diff --git a/src/core/client/account/routes/NotFound.css b/src/core/client/account/routes/NotFound.css
index d4ff4b1ca..c2d433fe0 100644
--- a/src/core/client/account/routes/NotFound.css
+++ b/src/core/client/account/routes/NotFound.css
@@ -1,11 +1,11 @@
.content {
- font-family: var(--v2-font-family-secondary);
+ font-family: var(--font-family-secondary);
font-style: normal;
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-6);
- line-height: var(--v2-line-height-7);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-6);
+ line-height: var(--line-height-7);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
text-align: center;
}
diff --git a/src/core/client/account/routes/download/Download/DownloadDescription.css b/src/core/client/account/routes/download/Download/DownloadDescription.css
index 528a6529e..cf9cb0241 100644
--- a/src/core/client/account/routes/download/Download/DownloadDescription.css
+++ b/src/core/client/account/routes/download/Download/DownloadDescription.css
@@ -1,38 +1,38 @@
.title {
- font-family: var(--v2-font-family-secondary);
+ font-family: var(--font-family-secondary);
font-style: normal;
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-6);
- line-height: var(--v2-line-height-7);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-6);
+ line-height: var(--line-height-7);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- padding-left: var(--v2-spacing-2);
+ padding-left: var(--spacing-2);
}
.content {
- padding: var(--v2-spacing-2) var(--v2-spacing-3) var(--v2-spacing-3) var(--v2-spacing-3);
+ padding: var(--spacing-2) var(--spacing-3) var(--spacing-3) var(--spacing-3);
}
.section {
- margin-bottom: var(--v2-spacing-4);
+ margin-bottom: var(--spacing-4);
}
.sectionText {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-5);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-5);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-3);
+ margin-bottom: var(--spacing-3);
}
.list {
list-style: none;
- margin-left: calc(-1 * var(--v2-spacing-5));
+ margin-left: calc(-1 * var(--spacing-5));
}
.list li {
@@ -46,5 +46,5 @@
.bullet {
display: inline-block;
min-width: 16px;
- margin-right: var(--v2-spacing-2);
+ margin-right: var(--spacing-2);
}
diff --git a/src/core/client/account/routes/download/Download/DownloadRoute.css b/src/core/client/account/routes/download/Download/DownloadRoute.css
index c34afdecf..e370d17c5 100644
--- a/src/core/client/account/routes/download/Download/DownloadRoute.css
+++ b/src/core/client/account/routes/download/Download/DownloadRoute.css
@@ -6,10 +6,10 @@
.root {
display: inline-block;
- max-width: calc(70 * var(--v2-spacing-2));
+ max-width: calc(70 * var(--spacing-2));
@media (min-width: $breakpoints-xs) {
- max-width: calc(60 * var(--v2-spacing-2));
+ max-width: calc(60 * var(--spacing-2));
}
text-align: left;
diff --git a/src/core/client/account/routes/download/Download/DownloadRoute.tsx b/src/core/client/account/routes/download/Download/DownloadRoute.tsx
index 01b03b440..986d183a4 100644
--- a/src/core/client/account/routes/download/Download/DownloadRoute.tsx
+++ b/src/core/client/account/routes/download/Download/DownloadRoute.tsx
@@ -6,7 +6,7 @@ import { useToken } from "coral-framework/hooks";
import { createFetch } from "coral-framework/lib/relay";
import { withRouteConfig } from "coral-framework/lib/router";
import { parseHashQuery } from "coral-framework/utils";
-import { HorizontalGutter } from "coral-ui/components";
+import { HorizontalGutter } from "coral-ui/components/v2";
import DownloadDescription from "./DownloadDescription";
import DownloadForm from "./DownloadForm";
diff --git a/src/core/client/account/routes/email/Confirm/Confirm.css b/src/core/client/account/routes/email/Confirm/Confirm.css
index fd7f3063c..3216ddebc 100644
--- a/src/core/client/account/routes/email/Confirm/Confirm.css
+++ b/src/core/client/account/routes/email/Confirm/Confirm.css
@@ -1,52 +1,52 @@
.title {
- font-family: var(--v2-font-family-secondary);
+ font-family: var(--font-family-secondary);
font-style: normal;
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-6);
- line-height: var(--v2-line-height-7);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-6);
+ line-height: var(--line-height-7);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
.description {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-5);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-5);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-3);
+ margin-bottom: var(--spacing-3);
}
.label {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-1);
+ margin-bottom: var(--spacing-1);
}
.labelDescription {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-4);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-4);
- color: var(--v2-colors-mono-100);
+ color: var(--palette-text-100);
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
.submit {
- margin-top: var(--v2-spacing-5);
- margin-bottom: var(--v2-spacing-1);
+ margin-top: var(--spacing-5);
+ margin-bottom: var(--spacing-1);
}
diff --git a/src/core/client/account/routes/notifications/Unsubscribe/Unsubscribe.css b/src/core/client/account/routes/notifications/Unsubscribe/Unsubscribe.css
index fd7f3063c..3216ddebc 100644
--- a/src/core/client/account/routes/notifications/Unsubscribe/Unsubscribe.css
+++ b/src/core/client/account/routes/notifications/Unsubscribe/Unsubscribe.css
@@ -1,52 +1,52 @@
.title {
- font-family: var(--v2-font-family-secondary);
+ font-family: var(--font-family-secondary);
font-style: normal;
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-6);
- line-height: var(--v2-line-height-7);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-6);
+ line-height: var(--line-height-7);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
.description {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-5);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-5);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-3);
+ margin-bottom: var(--spacing-3);
}
.label {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-1);
+ margin-bottom: var(--spacing-1);
}
.labelDescription {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-4);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-4);
- color: var(--v2-colors-mono-100);
+ color: var(--palette-text-100);
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
.submit {
- margin-top: var(--v2-spacing-5);
- margin-bottom: var(--v2-spacing-1);
+ margin-top: var(--spacing-5);
+ margin-bottom: var(--spacing-1);
}
diff --git a/src/core/client/account/routes/password/Reset/Reset.css b/src/core/client/account/routes/password/Reset/Reset.css
index fd7f3063c..3216ddebc 100644
--- a/src/core/client/account/routes/password/Reset/Reset.css
+++ b/src/core/client/account/routes/password/Reset/Reset.css
@@ -1,52 +1,52 @@
.title {
- font-family: var(--v2-font-family-secondary);
+ font-family: var(--font-family-secondary);
font-style: normal;
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-6);
- line-height: var(--v2-line-height-7);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-6);
+ line-height: var(--line-height-7);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
.description {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-5);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-5);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-3);
+ margin-bottom: var(--spacing-3);
}
.label {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-1);
+ margin-bottom: var(--spacing-1);
}
.labelDescription {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-4);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-4);
- color: var(--v2-colors-mono-100);
+ color: var(--palette-text-100);
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
.submit {
- margin-top: var(--v2-spacing-5);
- margin-bottom: var(--v2-spacing-1);
+ margin-top: var(--spacing-5);
+ margin-bottom: var(--spacing-1);
}
diff --git a/src/core/client/admin/App/DecisionHistory/ApprovedIcon.css b/src/core/client/admin/App/DecisionHistory/ApprovedIcon.css
index f9cae42f2..2c6a9b728 100644
--- a/src/core/client/admin/App/DecisionHistory/ApprovedIcon.css
+++ b/src/core/client/admin/App/DecisionHistory/ApprovedIcon.css
@@ -1,3 +1,3 @@
.root {
- color: var(--v2-palette-success-main);
+ color: var(--palette-success-500);
}
diff --git a/src/core/client/admin/App/DecisionHistory/DecisionHistoryButton.css b/src/core/client/admin/App/DecisionHistory/DecisionHistoryButton.css
index 91a29eff9..4629d0df8 100644
--- a/src/core/client/admin/App/DecisionHistory/DecisionHistoryButton.css
+++ b/src/core/client/admin/App/DecisionHistory/DecisionHistoryButton.css
@@ -3,6 +3,6 @@
}
.historyIcon {
- color: var(--v2-palette-text-secondary);
+ color: var(--palette-text-100);
margin-right: 10px;
}
diff --git a/src/core/client/admin/App/DecisionHistory/DecisionItem.css b/src/core/client/admin/App/DecisionHistory/DecisionItem.css
index de4a66b9f..85afd1539 100644
--- a/src/core/client/admin/App/DecisionHistory/DecisionItem.css
+++ b/src/core/client/admin/App/DecisionHistory/DecisionItem.css
@@ -1,5 +1,5 @@
.root {
- padding: var(--v2-spacing-2) var(--v2-spacing-1);
+ padding: var(--spacing-2) var(--spacing-1);
}
.leftCol {
@@ -8,5 +8,5 @@
flex-grow: 0;
flex-shrink: 0;
padding-top: 3px;
- margin-right: var(--v2-spacing-2);
+ margin-right: var(--spacing-2);
}
diff --git a/src/core/client/admin/App/DecisionHistory/DecisionList.css b/src/core/client/admin/App/DecisionHistory/DecisionList.css
index 852382c95..366875f51 100644
--- a/src/core/client/admin/App/DecisionHistory/DecisionList.css
+++ b/src/core/client/admin/App/DecisionHistory/DecisionList.css
@@ -1,4 +1,4 @@
-$decisionHistoryBorderColor: var(--v2-colors-grey-300);
+$decisionHistoryBorderColor: var(--palette-grey-300);
.root {
margin: 0;
diff --git a/src/core/client/admin/App/DecisionHistory/DotDivider.css b/src/core/client/admin/App/DecisionHistory/DotDivider.css
index b2b104229..be47cc6fd 100644
--- a/src/core/client/admin/App/DecisionHistory/DotDivider.css
+++ b/src/core/client/admin/App/DecisionHistory/DotDivider.css
@@ -1,7 +1,7 @@
.root {
height: 100%;
- font-size: var(--v2-font-size-1);
- line-height: var(--v2-line-height-reset);
- color: var(--v2-colors-mono-100);
- padding: 0 var(--v2-spacing-1);
+ font-size: var(--font-size-1);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-100);
+ padding: 0 var(--spacing-1);
}
diff --git a/src/core/client/admin/App/DecisionHistory/Empty.css b/src/core/client/admin/App/DecisionHistory/Empty.css
index 79dc92187..2d413e1f9 100644
--- a/src/core/client/admin/App/DecisionHistory/Empty.css
+++ b/src/core/client/admin/App/DecisionHistory/Empty.css
@@ -3,8 +3,8 @@
}
.text {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-body-short);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-4);
}
diff --git a/src/core/client/admin/App/DecisionHistory/Footer.css b/src/core/client/admin/App/DecisionHistory/Footer.css
index 0dbf825ea..23f5a062f 100644
--- a/src/core/client/admin/App/DecisionHistory/Footer.css
+++ b/src/core/client/admin/App/DecisionHistory/Footer.css
@@ -1,3 +1,3 @@
.root {
- margin-top: var(--v2-spacing-1);
+ margin-top: var(--spacing-1);
}
diff --git a/src/core/client/admin/App/DecisionHistory/GoToCommentLink.css b/src/core/client/admin/App/DecisionHistory/GoToCommentLink.css
index 914577b73..5b7079999 100644
--- a/src/core/client/admin/App/DecisionHistory/GoToCommentLink.css
+++ b/src/core/client/admin/App/DecisionHistory/GoToCommentLink.css
@@ -1,10 +1,10 @@
-$moderateCardDecisionHistoryLinkTextColor: var(--v2-colors-teal-700);
+$moderateCardDecisionHistoryLinkTextColor: $colors-teal-700;
.root {
- line-height: var(--v2-line-height-reset);
- font-weight: var(--v2-font-weight-primary-bold);
- font-family: var(--v2-font-family-primary);
- font-size: var(--v2-font-size-1);
+ line-height: var(--line-height-3);
+ font-weight: var(--font-weight-primary-bold);
+ font-family: var(--font-family-primary);
+ font-size: var(--font-size-1);
color: $moderateCardDecisionHistoryLinkTextColor;
- font-style: var(--v2-font-style-underline);
+ font-style: var(--font-style-underline);
}
diff --git a/src/core/client/admin/App/DecisionHistory/Info.css b/src/core/client/admin/App/DecisionHistory/Info.css
index 942637a82..b867c45f5 100644
--- a/src/core/client/admin/App/DecisionHistory/Info.css
+++ b/src/core/client/admin/App/DecisionHistory/Info.css
@@ -8,9 +8,9 @@
word-break: break-all;
/* Fallback end */
word-break: break-word;
- color: var(--v2-palette-text-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-body-short);
- font-size: var(--v2-font-size-2);
+ color: var(--palette-text-500);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ font-size: var(--font-size-2);
}
diff --git a/src/core/client/admin/App/DecisionHistory/RejectedIcon.css b/src/core/client/admin/App/DecisionHistory/RejectedIcon.css
index c5bddba45..9b1a73195 100644
--- a/src/core/client/admin/App/DecisionHistory/RejectedIcon.css
+++ b/src/core/client/admin/App/DecisionHistory/RejectedIcon.css
@@ -1,3 +1,3 @@
.root {
- color: var(--v2-palette-error-main);
+ color: var(--palette-error-500);
}
diff --git a/src/core/client/admin/App/DecisionHistory/ShowMoreButton.css b/src/core/client/admin/App/DecisionHistory/ShowMoreButton.css
index 96fec5916..a3f9619c4 100644
--- a/src/core/client/admin/App/DecisionHistory/ShowMoreButton.css
+++ b/src/core/client/admin/App/DecisionHistory/ShowMoreButton.css
@@ -1,20 +1,20 @@
-$moderateCardDecisionHistoryLinkTextColor: var(--v2-colors-teal-700);
-$moderateCardDecisionHistoryBorderColor: var(--v2-colors-grey-300);
+$moderateCardDecisionHistoryLinkTextColor: $colors-teal-700;
+$moderateCardDecisionHistoryBorderColor: var(--palette-grey-300);
.root {
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-primary-bold);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
text-transform: uppercase;
color: $moderateCardDecisionHistoryLinkTextColor;
width: 100%;
border-top: 1px solid $moderateCardDecisionHistoryBorderColor;
text-align: center;
- padding-top: var(--v2-spacing-1);
- padding-bottom: var(--v2-spacing-1);
+ padding-top: var(--spacing-1);
+ padding-bottom: var(--spacing-1);
&:disabled {
- color: var(--v2-palette-grey-lighter);
+ color: var(--palette-grey-300);
}
}
diff --git a/src/core/client/admin/App/DecisionHistory/Timestamp.css b/src/core/client/admin/App/DecisionHistory/Timestamp.css
index 69ea87457..30a60c664 100644
--- a/src/core/client/admin/App/DecisionHistory/Timestamp.css
+++ b/src/core/client/admin/App/DecisionHistory/Timestamp.css
@@ -1,9 +1,9 @@
-$timestampColor: var(--v2-colors-mono-100);
+$timestampColor: var(--palette-text-100);
.root {
color: $timestampColor;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-1);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-1);
+ line-height: var(--line-height-3);
}
diff --git a/src/core/client/admin/App/DecisionHistory/Title.css b/src/core/client/admin/App/DecisionHistory/Title.css
index 2f3ba9dd7..8a3b8fd71 100644
--- a/src/core/client/admin/App/DecisionHistory/Title.css
+++ b/src/core/client/admin/App/DecisionHistory/Title.css
@@ -1,23 +1,23 @@
-$decisionHistoryBorderColor: var(--v2-colors-grey-300);
-$decisionHistoryTitleBackgroundColor: var(--v2-colors-grey-200);
+$decisionHistoryBorderColor: var(--palette-grey-300);
+$decisionHistoryTitleBackgroundColor: var(--palette-grey-200);
.root {
background: $decisionHistoryTitleBackgroundColor;
- padding: var(--v2-spacing-1);
- color: var(--v2-palette-text-primary);
+ padding: var(--spacing-1);
+ color: var(--palette-text-500);
border-bottom: 1px solid $decisionHistoryBorderColor;
- font-size: var(--v2-font-size-icon-medium);
}
.icon {
- margin-right: var(--v2-spacing-2);
+ font-size: var(--font-size-icon-md);
+ margin-right: var(--spacing-2);
}
.text {
text-transform: uppercase;
- font-weight: var(--v2-font-weight-primary-bold);
- color: var(--v2-palette-text-primary);
- font-size: var(--v2-font-size-2);
+ font-weight: var(--font-weight-primary-bold);
+ color: var(--palette-text-500);
+ font-size: var(--font-size-2);
line-height: 1;
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
}
diff --git a/src/core/client/admin/App/DecisionHistory/Username.css b/src/core/client/admin/App/DecisionHistory/Username.css
index 9417d59a8..204e4a4a0 100644
--- a/src/core/client/admin/App/DecisionHistory/Username.css
+++ b/src/core/client/admin/App/DecisionHistory/Username.css
@@ -1,9 +1,9 @@
-$moderateCardDecisionHistoryColor: var(--v2-colors-mono-900);
+$moderateCardDecisionHistoryColor: var(--palette-text-900);
.root {
color: $moderateCardDecisionHistoryColor;
- font-weight: var(--v2-font-weight-secondary-bold);
- font-family: var(--v2-font-family-secondary);
- line-height: var(--v2-line-height-body-short);
- font-size: var(--v2-font-size-3);
+ font-weight: var(--font-weight-secondary-bold);
+ font-family: var(--font-family-secondary);
+ line-height: var(--line-height-field-description);
+ font-size: var(--font-size-3);
}
diff --git a/src/core/client/admin/App/GlobalNotification/NotificationContainer.tsx b/src/core/client/admin/App/GlobalNotification/NotificationContainer.tsx
index 6a9da2619..035da4c54 100644
--- a/src/core/client/admin/App/GlobalNotification/NotificationContainer.tsx
+++ b/src/core/client/admin/App/GlobalNotification/NotificationContainer.tsx
@@ -1,4 +1,5 @@
import React, { FunctionComponent } from "react";
+
import useNotification from "./useNotification";
const NotificationContainer: FunctionComponent<{}> = () => {
diff --git a/src/core/client/admin/App/Main.tsx b/src/core/client/admin/App/Main.tsx
index 99d77a780..1108c0af8 100644
--- a/src/core/client/admin/App/Main.tsx
+++ b/src/core/client/admin/App/Main.tsx
@@ -1,7 +1,7 @@
import React, { FunctionComponent } from "react";
import { PropTypesOf } from "coral-framework/types";
-import { LogoHorizontal } from "coral-ui/components";
+import { LogoHorizontal } from "coral-ui/components/v2";
import { AppBar, Begin, Divider, End } from "coral-ui/components/v2/AppBar";
import { DecisionHistoryButton } from "./DecisionHistory";
diff --git a/src/core/client/admin/App/UserMenu/UserMenu.css b/src/core/client/admin/App/UserMenu/UserMenu.css
index 4cfb0cd0f..afd9ecd09 100644
--- a/src/core/client/admin/App/UserMenu/UserMenu.css
+++ b/src/core/client/admin/App/UserMenu/UserMenu.css
@@ -1,4 +1,4 @@
-$userMenuButtonColor: var(--v2-colors-mono-100);
+$userMenuButtonColor: var(--palette-text-100);
.button {
padding-top: 0;
@@ -11,9 +11,9 @@ $userMenuButtonColor: var(--v2-colors-mono-100);
}
.buttonText {
- font-family: var(--v2-font-family-secondary);
+ font-family: var(--font-family-secondary);
color: $userMenuButtonColor;
- font-size: var(--v2-font-size-4);
+ font-size: var(--font-size-4);
margin-left: 2px;
margin-right: 1px;
}
diff --git a/src/core/client/admin/App/Version.css b/src/core/client/admin/App/Version.css
index 237804df6..d4eb418fd 100644
--- a/src/core/client/admin/App/Version.css
+++ b/src/core/client/admin/App/Version.css
@@ -1,6 +1,6 @@
.version {
- font-size: calc(10rem / var(--rem-base));
- color: var(--palette-text-secondary);
+ font-size: 0.625rem;
+ color: var(--palette-text-100);
text-align: center;
padding-bottom: var(--spacing-3);
}
diff --git a/src/core/client/admin/App/Version.tsx b/src/core/client/admin/App/Version.tsx
index 2d5a368e4..8f81860e6 100644
--- a/src/core/client/admin/App/Version.tsx
+++ b/src/core/client/admin/App/Version.tsx
@@ -1,6 +1,6 @@
import React, { FunctionComponent } from "react";
-import { Typography } from "coral-ui/components";
+import { Typography } from "coral-ui/components/v2";
import styles from "./Version.css";
diff --git a/src/core/client/admin/components/AuthBox.css b/src/core/client/admin/components/AuthBox.css
index c414eb4b9..57c5d07d3 100644
--- a/src/core/client/admin/components/AuthBox.css
+++ b/src/core/client/admin/components/AuthBox.css
@@ -1,8 +1,8 @@
.container {
width: 385px;
- background-color: var(--v2-colors-grey-100);
- border: 1px solid var(--v2-colors-grey-300);
+ background-color: var(--palette-grey-100);
+ border: 1px solid var(--palette-grey-300);
margin-top: 70px;
- padding: var(--v2-spacing-6);
+ padding: var(--spacing-6);
box-sizing: border-box;
}
diff --git a/src/core/client/admin/components/Comment/CommentContent.css b/src/core/client/admin/components/Comment/CommentContent.css
index dc42794ec..214d1d287 100644
--- a/src/core/client/admin/components/Comment/CommentContent.css
+++ b/src/core/client/admin/components/Comment/CommentContent.css
@@ -1,20 +1,20 @@
-$comment-content: var(--v2-colors-mono-900);
-$comment-blockquote-bg: var(--v2-colors-grey-100);
-$comment-highlight-bg: var(--v2-colors-yellow-500);
-$comment-link: var(--v2-palette-primary-main);
-$comment-link-active: var(--v2-palette-primary-darkest);
+$comment-content: var(--palette-text-900);
+$comment-blockquote-bg: var(--palette-grey-100);
+$comment-highlight-bg: var(--palette-warning-500);
+$comment-link: $colors-teal-700;
+$comment-link-active: $colors-teal-900;
.root {
- composes: bodyCommentV2 from "~coral-ui/shared/typography.css";
- font-family: var(--v2-font-family-primary);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-body-comment);
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-comment-body);
color: $comment-content;
overflow-wrap: break-word;
b,
strong {
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
}
i,
em {
diff --git a/src/core/client/admin/components/Comment/InReplyTo.css b/src/core/client/admin/components/Comment/InReplyTo.css
index 23d3f2bdc..811bfeb4a 100644
--- a/src/core/client/admin/components/Comment/InReplyTo.css
+++ b/src/core/client/admin/components/Comment/InReplyTo.css
@@ -1,24 +1,24 @@
-$moderateCardIconColor: var(--v2-colors-mono-100);
-$moderateCardInReplyToColor: var(--v2-colors-mono-100);
-$moderateCardInReplyToUsernameColor: var(--v2-colors-mono-500);
-$moderateCardUsernameBackgroundHover: var(--v2-colors-grey-200);
+$moderateCardIconColor: var(--palette-text-100);
+$moderateCardInReplyToColor: var(--palette-text-100);
+$moderateCardInReplyToUsernameColor: var(--palette-text-500);
+$moderateCardUsernameBackgroundHover: var(--palette-grey-200);
.icon {
color: $moderateCardIconColor;
}
.inReplyTo {
color: $moderateCardInReplyToColor;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
}
.username {
color: $moderateCardInReplyToUsernameColor;
- font-family: var(--v2-font-family-secondary);
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-secondary);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
padding: var(--spacing-1);
@@ -38,5 +38,5 @@ $moderateCardUsernameBackgroundHover: var(--v2-colors-grey-200);
.usernameButton {
vertical-align: baseline;
- margin-left: calc(-1 * var(--v2-spacing-1));
+ margin-left: calc(-1 * var(--spacing-1));
}
diff --git a/src/core/client/admin/components/Comment/Username.css b/src/core/client/admin/components/Comment/Username.css
index ca2ac55a1..e7149caf2 100644
--- a/src/core/client/admin/components/Comment/Username.css
+++ b/src/core/client/admin/components/Comment/Username.css
@@ -1,9 +1,9 @@
-$moderateCardUsernameColor: var(--v2-colors-mono-900);
+$moderateCardUsernameColor: var(--palette-text-900);
.root {
- font-size: var(--v2-font-size-3);
- font-weight: var(--v2-font-weight-secondary-bold);
- font-family: var(--v2-font-family-secondary);
- line-height: var(--v2-line-height-reset);
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-secondary-bold);
+ font-family: var(--font-family-secondary);
+ line-height: var(--line-height-3);
color: $moderateCardUsernameColor;
}
diff --git a/src/core/client/admin/components/Comment/UsernameButton.css b/src/core/client/admin/components/Comment/UsernameButton.css
index 8c60902e0..6376e66d5 100644
--- a/src/core/client/admin/components/Comment/UsernameButton.css
+++ b/src/core/client/admin/components/Comment/UsernameButton.css
@@ -1,21 +1,21 @@
-$moderateCardUsernameBackgroundHover: var(--v2-colors-grey-200);
+$moderateCardUsernameBackgroundHover: var(--palette-grey-200);
.root {
margin-right: var(--mini-unit);
padding: var(--spacing-1);
- margin-left: calc(-1 * var(--v2-spacing-1));
+ margin-left: calc(-1 * var(--spacing-1));
- line-height: var(--v2-line-height-reset);
+ line-height: var(--line-height-3);
&:hover {
background-color: $moderateCardUsernameBackgroundHover;
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
border-style: none;
}
&:active {
background-color: $moderateCardUsernameBackgroundHover;
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
border-style: none;
}
}
diff --git a/src/core/client/admin/components/Comment/UsernameButton.tsx b/src/core/client/admin/components/Comment/UsernameButton.tsx
index 13d6cbbbf..e86828892 100644
--- a/src/core/client/admin/components/Comment/UsernameButton.tsx
+++ b/src/core/client/admin/components/Comment/UsernameButton.tsx
@@ -2,6 +2,7 @@ import cn from "classnames";
import React, { FunctionComponent } from "react";
import { BaseButton } from "coral-ui/components/v2";
+
import Username from "./Username";
import styles from "./UsernameButton.css";
diff --git a/src/core/client/admin/components/ConversationModal/ConversationModal.tsx b/src/core/client/admin/components/ConversationModal/ConversationModal.tsx
index 75e6988d1..b5aee4cc8 100644
--- a/src/core/client/admin/components/ConversationModal/ConversationModal.tsx
+++ b/src/core/client/admin/components/ConversationModal/ConversationModal.tsx
@@ -1,6 +1,6 @@
import React, { FunctionComponent } from "react";
-import { Modal } from "coral-ui/components";
+import { Modal } from "coral-ui/components/v2";
import ConversationModalQuery from "./ConversationModalQuery";
diff --git a/src/core/client/admin/components/ConversationModal/ConversationModalCommentContainer.css b/src/core/client/admin/components/ConversationModal/ConversationModalCommentContainer.css
index 5427cd3ed..f0a55205d 100644
--- a/src/core/client/admin/components/ConversationModal/ConversationModalCommentContainer.css
+++ b/src/core/client/admin/components/ConversationModal/ConversationModalCommentContainer.css
@@ -1,31 +1,31 @@
-$conversationModalHighlightBackground: var(--v2-colors-teal-100);
-$conversationModalCommentText: var(--v2-colors-mono-500);
+$conversationModalHighlightBackground: $colors-teal-100;
+$conversationModalCommentText: var(--palette-text-500);
.root {
flex: 1;
}
.line {
- border-color: var(--v2-colors-grey-400);
+ border-color: var(--palette-grey-400);
}
.adornments {
- margin-right: var(--v2-spacing-2);
+ margin-right: var(--spacing-2);
}
.circle {
- margin-top: var(--v2-spacing-2);
- margin-bottom: var(--v2-spacing-2);
+ margin-top: var(--spacing-2);
+ margin-bottom: var(--spacing-2);
}
.highlightedCircle {
- margin-top: var(--v2-spacing-1);
+ margin-top: var(--spacing-1);
}
.highlighted {
background-color: $conversationModalHighlightBackground;
- padding: var(--v2-spacing-2);
- padding-top: var(--v2-spacing-1);
- margin-bottom: var(--v2-spacing-2);
+ padding: var(--spacing-2);
+ padding-top: var(--spacing-1);
+ margin-bottom: var(--spacing-2);
}
.commentText {
@@ -33,5 +33,5 @@ $conversationModalCommentText: var(--v2-colors-mono-500);
}
.showReplies {
- padding-left: var(--v2-spacing-2);
+ padding-left: var(--spacing-2);
}
diff --git a/src/core/client/admin/components/ConversationModal/ConversationModalContainer.css b/src/core/client/admin/components/ConversationModal/ConversationModalContainer.css
index c766250b4..426c0381d 100644
--- a/src/core/client/admin/components/ConversationModal/ConversationModalContainer.css
+++ b/src/core/client/admin/components/ConversationModal/ConversationModalContainer.css
@@ -1,10 +1,10 @@
.root {
}
.topCircle {
- margin-right: var(--v2-spacing-2);
+ margin-right: var(--spacing-2);
}
.bottomCircleContainer {
width: 8px;
- padding-top: var(--v2-spacing-1);
+ padding-top: var(--spacing-1);
}
diff --git a/src/core/client/admin/components/ConversationModal/ConversationModalHeaderContainer.css b/src/core/client/admin/components/ConversationModal/ConversationModalHeaderContainer.css
index 7b684b1ea..f5539e475 100644
--- a/src/core/client/admin/components/ConversationModal/ConversationModalHeaderContainer.css
+++ b/src/core/client/admin/components/ConversationModal/ConversationModalHeaderContainer.css
@@ -1,17 +1,17 @@
-$modal-header-text: var(--v2-colors-mono-900);
+$modal-header-text: var(--palette-text-900);
.title {
- font-size: var(--v2-font-size-4);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- line-height: var(--v2-line-height-title);
+ font-size: var(--font-size-4);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ line-height: var(--line-height-5);
color: $modal-header-text;
margin: 0;
}
.conversationTitle {
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-weight: var(--font-weight-primary-semi-bold);
text-transform: uppercase;
display: block;
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
diff --git a/src/core/client/admin/components/ConversationModal/ConversationModalQuery.css b/src/core/client/admin/components/ConversationModal/ConversationModalQuery.css
index 55178ed52..fccef0abc 100644
--- a/src/core/client/admin/components/ConversationModal/ConversationModalQuery.css
+++ b/src/core/client/admin/components/ConversationModal/ConversationModalQuery.css
@@ -4,5 +4,5 @@
}
.body {
- padding: var(--v2-spacing-4);
+ padding: var(--spacing-4);
}
diff --git a/src/core/client/admin/components/ConversationModal/ConversationModalRepliesContainer.css b/src/core/client/admin/components/ConversationModal/ConversationModalRepliesContainer.css
index 6b4688b11..274ca73b5 100644
--- a/src/core/client/admin/components/ConversationModal/ConversationModalRepliesContainer.css
+++ b/src/core/client/admin/components/ConversationModal/ConversationModalRepliesContainer.css
@@ -1,7 +1,7 @@
.comment {
- padding-left: calc(var(--v2-spacing-4));
+ padding-left: calc(var(--spacing-4));
}
.footer {
- padding-left: calc(var(--v2-spacing-4));
+ padding-left: calc(var(--spacing-4));
}
diff --git a/src/core/client/admin/components/ModalBodyText.css b/src/core/client/admin/components/ModalBodyText.css
index 62ae84c8d..c90d133d2 100644
--- a/src/core/client/admin/components/ModalBodyText.css
+++ b/src/core/client/admin/components/ModalBodyText.css
@@ -1,9 +1,9 @@
-$modal-body-text: var(--v2-colors-mono-500);
+$modal-body-text: $colors-mono-500;
.root {
- font-size: var(--v2-font-size-3);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- line-height: var(--v2-line-height-body-short);
+ font-size: var(--font-size-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ line-height: var(--line-height-field-description);
color: $modal-body-text;
}
diff --git a/src/core/client/admin/components/ModalHeader.css b/src/core/client/admin/components/ModalHeader.css
index b5e9408ca..23c8ef641 100644
--- a/src/core/client/admin/components/ModalHeader.css
+++ b/src/core/client/admin/components/ModalHeader.css
@@ -1,10 +1,10 @@
-$modal-text: var(--v2-colors-mono-500);
+$modal-text: $colors-mono-500;
.root {
- font-size: var(--v2-font-size-5);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- line-height: var(--v2-line-height-title);
+ font-size: var(--font-size-5);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ line-height: var(--line-height-title);
color: $modal-text;
margin: 0;
}
diff --git a/src/core/client/admin/components/ModalHeaderUsername.css b/src/core/client/admin/components/ModalHeaderUsername.css
index c2d58ce09..0b55b4ad8 100644
--- a/src/core/client/admin/components/ModalHeaderUsername.css
+++ b/src/core/client/admin/components/ModalHeaderUsername.css
@@ -1,8 +1,8 @@
-$status-modal-username: var(--v2-colors-mono-900);
+$status-modal-username: $colors-mono-900;
.root {
- font-weight: var(--v2-font-weight-secondary-bold);
- font-family: var(--v2-font-family-secondary);
+ font-weight: var(--font-weight-secondary-bold);
+ font-family: var(--font-family-secondary);
color: $status-modal-username;
font-size: 1.4rem;
}
diff --git a/src/core/client/admin/components/ModerateCard/ApproveButton.css b/src/core/client/admin/components/ModerateCard/ApproveButton.css
index 052169cce..490edde4c 100644
--- a/src/core/client/admin/components/ModerateCard/ApproveButton.css
+++ b/src/core/client/admin/components/ModerateCard/ApproveButton.css
@@ -1,9 +1,9 @@
-$moderateCardButtonOutlineApproveColor: var(--v2-colors-green-500);
+$moderateCardButtonOutlineApproveColor: var(--palette-success-500);
.root {
border: 1px solid $moderateCardButtonOutlineApproveColor;
box-sizing: border-box;
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
width: 65px;
height: 50px;
display: flex;
@@ -12,14 +12,24 @@ $moderateCardButtonOutlineApproveColor: var(--v2-colors-green-500);
color: $moderateCardButtonOutlineApproveColor;
&:not(:disabled):active {
background-color: $moderateCardButtonOutlineApproveColor;
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
}
}
.readOnly {
background-color: transparent;
- border-color: var(--v2-colors-grey-300);
- color: var(--v2-colors-grey-300);
+ border-color: $colors-grey-300);
+ color: $colors-grey-300);
+
+ &:hover {
+ cursor: not-allowed;
+ }
+}
+
+.readOnly {
+ background-color: transparent;
+ border-color: $colors-grey-300;
+ color: $colors-grey-300;
&:hover {
cursor: not-allowed;
@@ -29,10 +39,10 @@ $moderateCardButtonOutlineApproveColor: var(--v2-colors-green-500);
.invert {
background-color: $moderateCardButtonOutlineApproveColor;
border-color: $moderateCardButtonOutlineApproveColor;
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
}
.icon {
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-weight: var(--font-weight-primary-semi-bold);
color: inherit;
}
diff --git a/src/core/client/admin/components/ModerateCard/CommentAuthorContainer.css b/src/core/client/admin/components/ModerateCard/CommentAuthorContainer.css
index 8e19d96fc..8cf3a2a40 100644
--- a/src/core/client/admin/components/ModerateCard/CommentAuthorContainer.css
+++ b/src/core/client/admin/components/ModerateCard/CommentAuthorContainer.css
@@ -1,3 +1,3 @@
.authorStatus {
padding-right: var(--spacing-2);
-}
\ No newline at end of file
+}
diff --git a/src/core/client/admin/components/ModerateCard/FeatureButton.css b/src/core/client/admin/components/ModerateCard/FeatureButton.css
index 34cb3e9c5..fab0ed5a8 100644
--- a/src/core/client/admin/components/ModerateCard/FeatureButton.css
+++ b/src/core/client/admin/components/ModerateCard/FeatureButton.css
@@ -3,7 +3,7 @@
right: 0px;
top: 2px;
- border: 1px solid var(--v2-palette-grey-main);
+ border: 1px solid var(--palette-grey-500);
box-sizing: border-box;
border-radius: var(--round-corners);
padding: 2px var(--spacing-2) 2px var(--spacing-2);
@@ -11,34 +11,34 @@
justify-content: center;
align-items: center;
- color: var(--v2-palette-grey-main);
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-primary-regular);
- font-family: var(--v2-font-family-primary);
+ color: var(--palette-grey-500);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
line-height: 1.2;
&:active {
- background-color: var(--v2-palette-primary-lightest);
- border-color: var(--v2-palette-primary-main);
- color: var(--v2-palette-primary-main);
+ background-color: $colors-teal-100;
+ border-color: $colors-teal-700;
+ color: $colors-teal-700;
}
&:disabled {
cursor: not-allowed;
background-color: transparent;
- border-color: var(--v2-colors-grey-300);
- color: var(--v2-colors-grey-300);
+ border-color: var(--palette-grey-300);
+ color: var(--palette-grey-300);
}
}
.invert {
- background-color: var(--v2-palette-primary-main);
- border-color: var(--v2-palette-primary-main);
- color: var(--v2-palette-text-light);
+ background-color: $colors-teal-700;
+ border-color: $colors-teal-700;
+ color: var(--palette-text-000);
&:disabled {
- color: var(--v2-colors-pure-white);
- border-color: var(--v2-colors-grey-300);
- background-color: var(--v2-colors-grey-300);
+ color: var(--palette-text-000);
+ border-color: var(--palette-grey-300);
+ background-color: var(--palette-grey-300);
}
}
diff --git a/src/core/client/admin/components/ModerateCard/FlagDetailsCategory.css b/src/core/client/admin/components/ModerateCard/FlagDetailsCategory.css
index 2a56a7375..12ea52f67 100644
--- a/src/core/client/admin/components/ModerateCard/FlagDetailsCategory.css
+++ b/src/core/client/admin/components/ModerateCard/FlagDetailsCategory.css
@@ -1,9 +1,9 @@
-$moderateCardFlagsCategoryColor: var(--v2-colors-mono-500);
+$moderateCardFlagsCategoryColor: var(--palette-text-500);
.category {
- font-size: var(--v2-font-size-3);
- font-weight: var(--v2-font-weight-primary-bold);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-body-short);
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-6);
color: $moderateCardFlagsCategoryColor;
}
diff --git a/src/core/client/admin/components/ModerateCard/FlagDetailsContainer.css b/src/core/client/admin/components/ModerateCard/FlagDetailsContainer.css
index e39d1fa3b..19df0f47f 100644
--- a/src/core/client/admin/components/ModerateCard/FlagDetailsContainer.css
+++ b/src/core/client/admin/components/ModerateCard/FlagDetailsContainer.css
@@ -1,3 +1,3 @@
.detailsDivider {
- border-top: 1px solid var(--v2-colors-grey-100);
+ border-top: 1px solid $colors-grey-100;
}
diff --git a/src/core/client/admin/components/ModerateCard/FlagDetailsEntry.css b/src/core/client/admin/components/ModerateCard/FlagDetailsEntry.css
index 19860f94b..840639e46 100644
--- a/src/core/client/admin/components/ModerateCard/FlagDetailsEntry.css
+++ b/src/core/client/admin/components/ModerateCard/FlagDetailsEntry.css
@@ -1,39 +1,40 @@
-$moderateCardFlagUsernameColor: var(--v2-colors-mono-900);
-$moderateCardReasonTextColor: var(--v2-colors-mono-500);
+$moderateCardFlagUsernameColor: var(--palette-text-900);
+$moderateCardReasonTextColor: var(--palette-text-500);
.user {
color: $moderateCardFlagUsernameColor;
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-secondary-bold);
- font-family: var(--v2-font-family-secondary);
- line-height: var(--v2-line-height-title);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-secondary-bold);
+ font-family: var(--font-family-secondary);
+ line-height: var(--line-height-3);
padding-right: calc(0.5 * var(--mini-unit));
}
.details {
color: $moderateCardReasonTextColor;
+
display: block;
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-primary-regular);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-title);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
}
.flagger {
- line-height: var(--v2-line-height-reset);
+ line-height: var(--line-height-3);
margin-right: var(--mini-unit);
- padding: var(--v2-spacing-1);
- margin-left: calc(-1 * var(--v2-spacing-1));
+ padding: var(--spacing-1);
+ margin-left: calc(-1 * var(--spacing-1));
&:hover {
- background-color: var(--v2-palette-grey-lightest);
- border-radius: var(--v2-round-corners);
+ background-color: var(--palette-grey-200);
+ border-radius: var(--round-corners);
border-style: none;
}
&:active {
- background-color: var(--v2-palette-grey-lighter);
- border-radius: var(--v2-round-corners);
+ background-color: var(--palette-grey-300);
+ border-radius: var(--round-corners);
border-style: none;
}
}
diff --git a/src/core/client/admin/components/ModerateCard/LinkDetailsContainer.css b/src/core/client/admin/components/ModerateCard/LinkDetailsContainer.css
index 19fcecace..9e48a5864 100644
--- a/src/core/client/admin/components/ModerateCard/LinkDetailsContainer.css
+++ b/src/core/client/admin/components/ModerateCard/LinkDetailsContainer.css
@@ -1,8 +1,8 @@
.label {
- font-size: calc(16rem / var(--rem-base));
- font-weight: var(--font-weight-regular);
- font-family: var(--font-family-sans-serif);
- color: var(--palette-text-primary);
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ color: var(--palette-text-500);
}
.buttonContainer {
diff --git a/src/core/client/admin/components/ModerateCard/Markers.css b/src/core/client/admin/components/ModerateCard/Markers.css
index 906915db4..04f328391 100644
--- a/src/core/client/admin/components/ModerateCard/Markers.css
+++ b/src/core/client/admin/components/ModerateCard/Markers.css
@@ -1,9 +1,10 @@
-$moderateCardDetailsHeaderColor: var(--v2-colors-mono-500);
+$moderateCardDetailsHeaderColor: var(--palette-text-500);
+$moderateCardDetailsDividerColor: var(--palette-grey-100);
.detailsButton {
- font-size: var(--v2-font-size-1);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-size: var(--font-size-1);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
line-height: 1.28;
height: 100%;
padding: 2px 0px;
diff --git a/src/core/client/admin/components/ModerateCard/Media.css b/src/core/client/admin/components/ModerateCard/Media.css
index 20c2e5644..bcafb9cac 100644
--- a/src/core/client/admin/components/ModerateCard/Media.css
+++ b/src/core/client/admin/components/ModerateCard/Media.css
@@ -1,5 +1,5 @@
.embed {
- margin: var(--v2-spacing-2) 0;
+ margin: var(--spacing-2) 0;
}
.toggle {
@@ -16,14 +16,14 @@
}
.playIcon {
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
}
.playText {
- color: var(--v2-colors-pure-white);
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-primary-bold);
- font-family: var(--v2-font-family-primary);
+ color: var(--palette-text-000);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-bold);
+ font-family: var(--font-family-primary);
text-transform: uppercase;
margin: 0;
}
diff --git a/src/core/client/admin/components/ModerateCard/ModerateCard.css b/src/core/client/admin/components/ModerateCard/ModerateCard.css
index 02506bb9b..05f04033c 100644
--- a/src/core/client/admin/components/ModerateCard/ModerateCard.css
+++ b/src/core/client/admin/components/ModerateCard/ModerateCard.css
@@ -1,18 +1,18 @@
-$moderateCardTimestampColor: var(--v2-colors-mono-100);
-$moderateCardEditedColor: var(--v2-colors-mono-100);
-$moderateCardAuthorStatusColor: var(--v2-colors-mono-100);
-$moderateCardDecisionColor: var(--v2-colors-mono-500);
-$moderateCardStoryTitleColor: var(--v2-colors-mono-500);
-$moderateCardUsernameBackgroundHover: var(--v2-colors-grey-200);
-$moderateCardLinkTextColor: var(--v2-colors-teal-700);
+$moderateCardTimestampColor: var(--palette-text-100);
+$moderateCardEditedColor: var(--palette-text-100);
+$moderateCardAuthorStatusColor: var(--palette-text-100);
+$moderateCardDecisionColor: var(--palette-text-500);
+$moderateCardStoryTitleColor: var(--palette-text-500);
+$moderateCardUsernameBackgroundHover: var(--palette-grey-200);
+$moderateCardLinkTextColor: $colors-teal-700;
.topBar {
position: relative;
- margin-bottom: var(--v2-spacing-1);
+ margin-bottom: var(--spacing-1);
}
.topBarMini {
- margin-bottom: var(--v2-spacing-4);
+ margin-bottom: var(--spacing-4);
}
.inReplyTo {
@@ -25,7 +25,7 @@ $moderateCardLinkTextColor: var(--v2-colors-teal-700);
.mainContainer {
flex-grow: 1;
- margin-right: calc(2 * var(--v2-spacing-5));
+ margin-right: calc(2 * var(--spacing-5));
}
.contentArea {
@@ -52,7 +52,7 @@ $moderateCardLinkTextColor: var(--v2-colors-teal-700);
No reply to field, so we align below the fattest element
which is the feature button.
*/
- padding-top: calc(var(--v2-font-size-2) + 7px + var(--v2-spacing-4));
+ padding-top: calc(var(--font-size-2) + 7px + var(--spacing-4));
}
.asideMiniWithReplyTo {
@@ -60,14 +60,14 @@ $moderateCardLinkTextColor: var(--v2-colors-teal-700);
We have reply to field, so we align below the fattest
element plus the reply to field.
*/
- padding-top: calc(2 * var(--v2-font-size-2) + 5px + var(--v2-spacing-4));
+ padding-top: calc(2 * var(--font-size-2) + 5px + var(--spacing-4));
}
.decision {
color: $moderateCardDecisionColor;
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-primary-bold);
- font-family: var(--v2-font-family-primary);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-bold);
+ font-family: var(--font-family-primary);
line-height: 1.14;
text-transform: uppercase;
}
@@ -75,13 +75,13 @@ $moderateCardLinkTextColor: var(--v2-colors-teal-700);
.separator {
position: absolute;
top: 0;
- right: calc(-1 * var(--v2-spacing-5));
+ right: calc(-1 * var(--spacing-5));
bottom: 0;
width: 2px;
}
.ruledSeparator {
- border-right: 1px solid var(--v2-colors-grey-400);
+ border-right: 1px solid var(--palette-grey-400);
}
.root {
@@ -93,53 +93,53 @@ $moderateCardLinkTextColor: var(--v2-colors-teal-700);
}
.dangling {
- background-color: var(--v2-palette-grey-lightest);
+ background-color: var(--palette-grey-200);
box-shadow: none;
}
.link {
- font-size: var(--v2-font-size-1);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
+ font-size: var(--font-size-1);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
color: $moderateCardLinkTextColor;
text-transform: uppercase;
}
.viewContext {
- padding-bottom: var(--v2-spacing-1);
+ padding-bottom: var(--spacing-1);
}
.storyLabel {
- color: var(--v2-palette-grey-main);
- font-size: var(--v2-font-size-1);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
- margin-bottom: var(--v2-spacing-1);
+ color: var(--palette-grey-500);
+ font-size: var(--font-size-1);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ margin-bottom: var(--spacing-1);
text-transform: uppercase;
}
.commentOn {
- font-size: var(--v2-font-size-2);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
- margin-bottom: var(--v2-spacing-1);
+ font-size: var(--font-size-2);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ margin-bottom: var(--spacing-1);
}
.siteName {
- font-weight: var(--v2-font-weight-primary-regular);
+ font-weight: var(--font-weight-primary-regular);
}
.storyTitle {
+ font-weight: var(--font-weight-primary-semi-bold);
color: $moderateCardStoryTitleColor;
- font-weight: var(--v2-font-weight-primary-semi-bold);
}
.borderless {
border-width: 0px;
box-shadow: none;
- padding: var(--v2-spacing-2) 0;
+ padding: var(--spacing-2) 0;
}
.miniButton {
@@ -149,19 +149,19 @@ $moderateCardLinkTextColor: var(--v2-colors-teal-700);
.timestamp {
color: $moderateCardTimestampColor;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-1);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-1);
+ line-height: var(--line-height-3);
}
.edited {
color: $moderateCardEditedColor;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-1);
- line-height: var(--v2-line-height-reset);
- padding-left: var(--v2-spacing-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-1);
+ line-height: var(--line-height-3);
+ padding-left: var(--spacing-2);
}
.selected {
@@ -171,17 +171,17 @@ $moderateCardLinkTextColor: var(--v2-colors-teal-700);
.authorStatus {
padding-right: var(--spacing-2);
color: $moderateCardAuthorStatusColor;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-1);
- line-height: var(--v2-line-height-reset);
- padding-left: var(--v2-spacing-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-1);
+ line-height: var(--line-height-3);
+ padding-left: var(--spacing-2);
}
.deleted {
- background: var(--v2-palette-grey-lightest);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-body-short);
+ background: var(--palette-grey-200);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-4);
}
diff --git a/src/core/client/admin/components/ModerateCard/ModerateCardDetailsContainer.css b/src/core/client/admin/components/ModerateCard/ModerateCardDetailsContainer.css
index 5829d7c28..5886f8d3f 100644
--- a/src/core/client/admin/components/ModerateCard/ModerateCardDetailsContainer.css
+++ b/src/core/client/admin/components/ModerateCard/ModerateCardDetailsContainer.css
@@ -1,4 +1,4 @@
.button {
text-transform: uppercase;
- font-size: var(--v2-font-size-2);
+ font-size: var(--font-size-2);
}
diff --git a/src/core/client/admin/components/ModerateCard/ModeratedByContainer.css b/src/core/client/admin/components/ModerateCard/ModeratedByContainer.css
index 6ea3d6448..9e44da4a6 100644
--- a/src/core/client/admin/components/ModerateCard/ModeratedByContainer.css
+++ b/src/core/client/admin/components/ModerateCard/ModeratedByContainer.css
@@ -1,20 +1,20 @@
-$moderated-by: var(--v2-colors-mono-100);
-$moderated-by-username: var(--v2-colors-mono-900);
+$moderated-by: var(--palette-text-100);
+$moderated-by-username: var(--palette-text-900);
.moderatedBy {
- font-size: var(--v2-font-size-1);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
+ font-size: var(--font-size-1);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
color: $moderated-by;
text-transform: uppercase;
}
.moderatedByUsername {
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-secondary-bold);
- font-family: var(--v2-font-family-secondary);
- line-height: var(--v2-line-height-reset);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-secondary-bold);
+ font-family: var(--font-family-secondary);
+ line-height: var(--line-height-3);
color: $moderated-by-username;
text-align: center;
padding-top: 1px;
diff --git a/src/core/client/admin/components/ModerateCard/RejectButton.css b/src/core/client/admin/components/ModerateCard/RejectButton.css
index aa247e4a7..2acecfb24 100644
--- a/src/core/client/admin/components/ModerateCard/RejectButton.css
+++ b/src/core/client/admin/components/ModerateCard/RejectButton.css
@@ -1,9 +1,9 @@
-$moderateCardButtonOutlineRejectColor: var(--v2-colors-red-500);
+$moderateCardButtonOutlineRejectColor: var(--palette-error-500);
.root {
border: 1px solid $moderateCardButtonOutlineRejectColor;
box-sizing: border-box;
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
width: 65px;
height: 50px;
display: flex;
@@ -12,14 +12,24 @@ $moderateCardButtonOutlineRejectColor: var(--v2-colors-red-500);
color: $moderateCardButtonOutlineRejectColor;
&:not(:disabled):active {
background-color: $moderateCardButtonOutlineRejectColor;
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
}
}
.readOnly {
background-color: transparent;
- border-color: var(--v2-colors-grey-300);
- color: var(--v2-colors-grey-300);
+ border-color: $colors-grey-300);
+ color: $colors-grey-300);
+
+ &:hover {
+ cursor: not-allowed;
+ }
+}
+
+.readOnly {
+ background-color: transparent;
+ border-color: $colors-grey-300;
+ color: $colors-grey-300;
&:hover {
cursor: not-allowed;
@@ -28,8 +38,8 @@ $moderateCardButtonOutlineRejectColor: var(--v2-colors-red-500);
.invert {
background-color: $moderateCardButtonOutlineRejectColor;
+ color: var(--palette-text-000);
border-color: $moderateCardButtonOutlineRejectColor;
- color: var(--v2-colors-pure-white);
}
.icon {
diff --git a/src/core/client/admin/components/ModerateCard/ToxicityLabel.css b/src/core/client/admin/components/ModerateCard/ToxicityLabel.css
index 7fe636398..a7052e98e 100644
--- a/src/core/client/admin/components/ModerateCard/ToxicityLabel.css
+++ b/src/core/client/admin/components/ModerateCard/ToxicityLabel.css
@@ -1,11 +1,11 @@
-$moderateCardCounterBadgeBackgroundAlert: var(--v2-colors-red-500);
-$moderateCardToxicityColor: var(--v2-colors-mono-500);
+$moderateCardCounterBadgeBackgroundAlert: var(--palette-error-500);
+$moderateCardToxicityColor: var(--palette-text-500);
.root {
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-body-short);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
color: $moderateCardToxicityColor;
}
diff --git a/src/core/client/admin/components/NotAvailable.css b/src/core/client/admin/components/NotAvailable.css
index daf0826cf..02037cd62 100644
--- a/src/core/client/admin/components/NotAvailable.css
+++ b/src/core/client/admin/components/NotAvailable.css
@@ -1,4 +1,4 @@
-$tableBodyDisabledColor: var(--v2-colors-mono-100);
+$tableBodyDisabledColor: var(--palette-text-100);
.root {
color: $tableBodyDisabledColor;
diff --git a/src/core/client/admin/components/NotAvailable.tsx b/src/core/client/admin/components/NotAvailable.tsx
index 3953603f9..07aaf1c33 100644
--- a/src/core/client/admin/components/NotAvailable.tsx
+++ b/src/core/client/admin/components/NotAvailable.tsx
@@ -3,6 +3,8 @@ import React, { FunctionComponent } from "react";
import styles from "./NotAvailable.css";
+// TODO: (cvle) remove color styles from here. Color should be applied externally.
+
const NotAvailable: FunctionComponent = (props) => (
Not available
diff --git a/src/core/client/admin/components/PaginatedSelect/PaginatedSelect.css b/src/core/client/admin/components/PaginatedSelect/PaginatedSelect.css
index acd4b5af6..d227007bc 100644
--- a/src/core/client/admin/components/PaginatedSelect/PaginatedSelect.css
+++ b/src/core/client/admin/components/PaginatedSelect/PaginatedSelect.css
@@ -1,5 +1,5 @@
.root {
- margin-top: var(--v2-spacing-2);
+ margin-top: var(--spacing-2);
}
.dropdown {
@@ -15,18 +15,18 @@
}
.button {
- color: var(--v2-colors-mono-500) !important;
+ color: var(--palette-text-500) !important;
border-width: 0;
width: calc(20 * var(--mini-unit));
- margin-right: calc(var(--v2-spacing-1) / 2);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-min);
+ margin-right: calc(var(--spacing-1) / 2);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-min);
justify-content: space-between;
}
.buttonIconLeft {
width: 20px;
- margin-right: calc(var(--v2-spacing-1) / 2);
+ margin-right: calc(var(--spacing-1) / 2);
}
.buttonIconRight {
diff --git a/src/core/client/admin/components/Timeline/Circle.css b/src/core/client/admin/components/Timeline/Circle.css
index 0bab4c48a..600019fd0 100644
--- a/src/core/client/admin/components/Timeline/Circle.css
+++ b/src/core/client/admin/components/Timeline/Circle.css
@@ -9,11 +9,11 @@
}
.colorReg {
- color: var(--v2-colors-grey-500);
+ color: var(--palette-grey-500);
}
.colorLight {
- color: var(--v2-colors-grey-400);
+ color: var(--palette-grey-400);
}
.root {
diff --git a/src/core/client/admin/components/Timeline/Line.css b/src/core/client/admin/components/Timeline/Line.css
index 4dee7a2c0..af6f18403 100644
--- a/src/core/client/admin/components/Timeline/Line.css
+++ b/src/core/client/admin/components/Timeline/Line.css
@@ -1,6 +1,6 @@
.root {
- border-left: 1px solid var(--palette-grey-main);
- border-right: 1px solid var(--palette-grey-main);
+ border-left: 1px solid var(--palette-grey-500);
+ border-right: 1px solid var(--palette-grey-500);
flex: 1;
}
diff --git a/src/core/client/admin/components/UserHistoryDrawer/ModeratorNote.css b/src/core/client/admin/components/UserHistoryDrawer/ModeratorNote.css
index 006c84d68..93586b917 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/ModeratorNote.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/ModeratorNote.css
@@ -1,33 +1,33 @@
-$moderator-note-bg: var(--v2-colors-grey-100);
-$moderator-note-body: var(--v2-colors-mono-500);
-$moderator-note-dot: var(--v2-colors-mono-100);
-$moderator-note-username: var(--v2-colors-mono-900);
+$moderator-note-bg: var(--palette-grey-100);
+$moderator-note-body: var(--palette-text-500);
+$moderator-note-dot: var(--palette-text-100);
+$moderator-note-username: var(--palette-text-900);
.root {
}
.body {
- font-family: var(--v2-font-family-primary);
- font-size: var(--v2-font-size-3);
- font-weight: var(--v2-font-weight-primary-regular);
- line-height: var(--v2-line-height-body-short);
+ font-family: var(--font-family-primary);
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ line-height: var(--line-height-field-description);
background-color: $moderator-note-bg;
border-radius: 4px;
- padding: var(--v2-spacing-3);
+ padding: var(--spacing-3);
color: $moderator-note-body;
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
.bodyType {
}
.leftBy {
- font-family: var(--v2-font-family-primary);
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-primary-regular);
- line-height: var(--v2-line-height-reset);
- padding-left: var(--v2-spacing-4);
- padding-right: var(--v2-spacing-1);
+ font-family: var(--font-family-primary);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-regular);
+ line-height: var(--line-height-3);
+ padding-left: var(--spacing-4);
+ padding-right: var(--spacing-1);
position: relative;
color: $moderator-note-body;
}
@@ -39,19 +39,19 @@ $moderator-note-username: var(--v2-colors-mono-900);
background-color: ;
position: absolute;
border-radius: 50%;
- left: var(--v2-spacing-1);
+ left: var(--spacing-1);
background-color: $moderator-note-dot;
top: 50%;
}
.username {
- font-family: var(--v2-font-family-secondary);
- font-weight: var(--v2-font-weight-secondary-bold);
- line-height: var(--v2-line-height-reset);
- font-size: var(--v2-font-size-3);
+ font-family: var(--font-family-secondary);
+ font-weight: var(--font-weight-secondary-bold);
+ line-height: var(--line-height-3);
+ font-size: var(--font-size-3);
color: $moderator-note-username;
}
.footerLeft {
- padding-left: var(--v2-spacing-3);
+ padding-left: var(--spacing-3);
}
diff --git a/src/core/client/admin/components/UserHistoryDrawer/RecentHistory.css b/src/core/client/admin/components/UserHistoryDrawer/RecentHistory.css
index 481cc7e2b..af8329fb9 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/RecentHistory.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/RecentHistory.css
@@ -1,44 +1,44 @@
-$recent-history-title: var(--v2-colors-mono-500);
-$recent-history-subtitle: var(--v2-colors-mono-100);
-$recent-history-info: var(--v2-colors-mono-500);
-$recent-history-triggered: var(--v2-palette-error-main);
+$recent-history-title: var(--palette-text-500);
+$recent-history-subtitle: var(--palette-text-100);
+$recent-history-info: var(--palette-text-500);
+$recent-history-triggered: var(--palette-error-500);
.title {
text-transform: uppercase;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-3);
margin: 0;
- line-height: var(--v2-line-height-body-short);
+ line-height: var(--line-height-field-description);
color: $recent-history-title;
}
.subTitle {
color: $recent-history-subtitle;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
margin: 0;
- line-height: var(--v2-line-height-body-short);
+ line-height: var(--line-height-4);
}
.info {
}
.amount {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-6);
- line-height: var(--v2-line-height-reset);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-6);
+ line-height: var(--line-height-3);
+ line-height: var(--line-height-3);
color: $recent-history-info;
margin: 0;
}
.amountLabel {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
color: $recent-history-info;
margin: 0;
}
diff --git a/src/core/client/admin/components/UserHistoryDrawer/Tabs.css b/src/core/client/admin/components/UserHistoryDrawer/Tabs.css
index 378dcd443..63d31d116 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/Tabs.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/Tabs.css
@@ -1,4 +1,4 @@
-$indicator-dot: var(--v2-colors-blue-400);
+$indicator-dot: $colors-teal-500;
.root {
height: 100%;
@@ -23,7 +23,7 @@ $indicator-dot: var(--v2-colors-blue-400);
}
.tabIcon {
- margin-right: var(--v2-spacing-1);
+ margin-right: var(--spacing-1);
}
.tabContent {
@@ -32,7 +32,7 @@ $indicator-dot: var(--v2-colors-blue-400);
}
.container {
- height: calc(100% - var(--v2-spacing-2) - var(--v2-spacing-3));
+ height: calc(100% - var(--spacing-2) - var(--spacing-3));
display: flex;
flex-direction: column;
@@ -41,8 +41,8 @@ $indicator-dot: var(--v2-colors-blue-400);
overflow: hidden;
- margin-bottom: var(--v2-spacing-2);
- margin-top: var(--v2-spacing-3);
+ margin-bottom: var(--spacing-2);
+ margin-top: var(--spacing-3);
}
.scrollable {
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserDrawerAccountHistory.css b/src/core/client/admin/components/UserHistoryDrawer/UserDrawerAccountHistory.css
index f5d851fea..3b69a25a0 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserDrawerAccountHistory.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserDrawerAccountHistory.css
@@ -1,7 +1,7 @@
.tableHeader {
border-width: 0px;
border-style: none;
- background-color: var(--palette-grey-lightest);
+ background-color: var(--palette-grey-200);
}
.row:first-child:hover {
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserDrawerAccountHistoryQuery.css b/src/core/client/admin/components/UserHistoryDrawer/UserDrawerAccountHistoryQuery.css
index cbe167f43..e12130714 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserDrawerAccountHistoryQuery.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserDrawerAccountHistoryQuery.css
@@ -4,7 +4,7 @@
.callout {
width: 100%;
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
align-content: center;
text-align: center;
}
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserDrawerNotesContainer.css b/src/core/client/admin/components/UserHistoryDrawer/UserDrawerNotesContainer.css
index 1014dba9e..e844c07bd 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserDrawerNotesContainer.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserDrawerNotesContainer.css
@@ -3,7 +3,7 @@
.textArea {
width: 100%;
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
.textArea:focus {
@@ -11,6 +11,6 @@
}
.form {
- padding: var(--v2-spacing-2) 0;
- margin-bottom: var(--v2-spacing-4);
+ padding: var(--spacing-2) 0;
+ margin-bottom: var(--spacing-4);
}
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserDrawerNotesQuery.css b/src/core/client/admin/components/UserHistoryDrawer/UserDrawerNotesQuery.css
index 3cdb5c5b9..6aca9a4f4 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserDrawerNotesQuery.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserDrawerNotesQuery.css
@@ -1,5 +1,5 @@
.root {
-
+
}
.spinner {
@@ -8,7 +8,7 @@
.callout {
width: 100%;
- font-family: var(--font-family-sans-serif);
+ font-family: var(--font-family-primary);
align-content: center;
text-align: center;
-}
\ No newline at end of file
+}
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawer.css b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawer.css
index c47715169..751c4fdd3 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawer.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawer.css
@@ -1,4 +1,4 @@
-$user-drawer-background: var(--v2-colors-pure-white);
+$user-drawer-background: $colors-pure-white;
.root {
position: fixed;
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawer.tsx b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawer.tsx
index 26adf4170..c865bc272 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawer.tsx
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawer.tsx
@@ -1,7 +1,6 @@
import React, { FunctionComponent } from "react";
-import { Modal } from "coral-ui/components";
-import { Card } from "coral-ui/components/v2";
+import { Card, Modal } from "coral-ui/components/v2";
import UserHistoryDrawerQuery from "./UserHistoryDrawerQuery";
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerAllComments.css b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerAllComments.css
index 39cba9e19..f3550cd6a 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerAllComments.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerAllComments.css
@@ -4,11 +4,11 @@
.loadMore {
width: 100%;
- background-color: var(--palette-common-white);
+ background-color: $colors-pure-white;
border-width: 1px;
border-style: solid;
- border-color: var(--palette-grey-lighter);
+ border-color: var(--palette-grey-300);
border-radius: var(--round-corners);
margin-top: var(--spacing-1);
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerAllCommentsQuery.css b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerAllCommentsQuery.css
index db131eca4..655faccf2 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerAllCommentsQuery.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerAllCommentsQuery.css
@@ -4,7 +4,7 @@
.callout {
width: 100%;
- font-family: var(--font-family-sans-serif);
+ font-family: var(--font-family-primary);
align-content: center;
text-align: center;
-}
\ No newline at end of file
+}
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerContainer.css b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerContainer.css
index 168e712e4..7b60fade2 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerContainer.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerContainer.css
@@ -1,7 +1,7 @@
-$user-drawer-background: var(--v2-colors-pure-white);
-$user-drawer-account-info: var(--v2-colors-mono-500);
-$user-drawer-divider: var(--v2-colors-grey-300);
-$user-drawer-status-label: var(--v2-colors-mono-500);
+$user-drawer-background: $colors-pure-white;
+$user-drawer-account-info: var(--palette-text-500);
+$user-drawer-divider: var(--palette-grey-300);
+$user-drawer-status-label: var(--palette-text-500);
.comments {
flex: auto;
@@ -26,20 +26,20 @@ $user-drawer-status-label: var(--v2-colors-mono-500);
}
.username {
- font-family: var(--v2-font-family-secondary);
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-6);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-secondary);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-6);
+ line-height: var(--line-height-3);
}
.userDetail {
}
.userDetailValue {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
color: $user-drawer-account-info;
}
@@ -58,12 +58,12 @@ $user-drawer-status-label: var(--v2-colors-mono-500);
}
.userStatusLabel {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
color: $user-drawer-status-label;
- margin-right: var(--v2-spacing-1);
+ margin-right: var(--spacing-1);
}
.userStatusChange {
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerQuery.css b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerQuery.css
index 19541723b..93e4d908a 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerQuery.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerQuery.css
@@ -1,6 +1,6 @@
.root {
width: 100%;
- font-family: var(--font-family-sans-serif);
+ font-family: var(--font-family-primary);
align-content: center;
text-align: center;
}
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerRejectedComments.css b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerRejectedComments.css
index 39cba9e19..f3550cd6a 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerRejectedComments.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerRejectedComments.css
@@ -4,11 +4,11 @@
.loadMore {
width: 100%;
- background-color: var(--palette-common-white);
+ background-color: $colors-pure-white;
border-width: 1px;
border-style: solid;
- border-color: var(--palette-grey-lighter);
+ border-color: var(--palette-grey-300);
border-radius: var(--round-corners);
margin-top: var(--spacing-1);
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerRejectedCommentsQuery.css b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerRejectedCommentsQuery.css
index db131eca4..655faccf2 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerRejectedCommentsQuery.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserHistoryDrawerRejectedCommentsQuery.css
@@ -4,7 +4,7 @@
.callout {
width: 100%;
- font-family: var(--font-family-sans-serif);
+ font-family: var(--font-family-primary);
align-content: center;
text-align: center;
-}
\ No newline at end of file
+}
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UserStatusDetailsContainer.css b/src/core/client/admin/components/UserHistoryDrawer/UserStatusDetailsContainer.css
index dfa88f4e3..b82130d3b 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UserStatusDetailsContainer.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UserStatusDetailsContainer.css
@@ -1,14 +1,14 @@
-$user-status-details: var(--v2-colors-mono-500);
+$user-status-details: var(--palette-text-500);
.root {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
color: $user-status-details;
- line-height: var(--v2-line-height-body-short);
- margin: 0 0 var(--v2-spacing-1) 0;
+ line-height: var(--line-height-4);
+ margin: 0 0 var(--spacing-1) 0;
}
.root strong {
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
}
diff --git a/src/core/client/admin/components/UserHistoryDrawer/UsernameChangeAction.css b/src/core/client/admin/components/UserHistoryDrawer/UsernameChangeAction.css
index d9018a722..958129a20 100644
--- a/src/core/client/admin/components/UserHistoryDrawer/UsernameChangeAction.css
+++ b/src/core/client/admin/components/UserHistoryDrawer/UsernameChangeAction.css
@@ -1,7 +1,7 @@
.tableLight {
- font-weight: var(--font-weight-regular);
+ font-weight: var(--font-weight-primary-regular);
}
.usernameCell {
line-height: calc(18em / 14);
-}
\ No newline at end of file
+}
diff --git a/src/core/client/admin/components/UserRole/SiteModeratorModal.css b/src/core/client/admin/components/UserRole/SiteModeratorModal.css
index 91838626b..6165b387e 100644
--- a/src/core/client/admin/components/UserRole/SiteModeratorModal.css
+++ b/src/core/client/admin/components/UserRole/SiteModeratorModal.css
@@ -1,5 +1,5 @@
.root {
max-width: 500px;
- padding: var(--v2-spacing-2) var(--v2-spacing-3) var(--v2-spacing-3)
- var(--v2-spacing-3);
+ padding: var(--spacing-2) var(--spacing-3) var(--spacing-3)
+ var(--spacing-3);
}
diff --git a/src/core/client/admin/components/UserRole/UserRoleText.css b/src/core/client/admin/components/UserRole/UserRoleText.css
index 5c4275b27..7b0b7acc3 100644
--- a/src/core/client/admin/components/UserRole/UserRoleText.css
+++ b/src/core/client/admin/components/UserRole/UserRoleText.css
@@ -1,12 +1,12 @@
-$tableBodyTextColor: var(--v2-colors-mono-500);
+$tableBodyTextColor: var(--palette-text-500);
.root {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
color: $tableBodyTextColor;
}
.commenter {
color: $tableBodyTextColor;
- font-weight: var(--v2-font-weight-primary-regular);
+ font-weight: var(--font-weight-primary-regular);
}
diff --git a/src/core/client/admin/components/UserStatus/BanModal.css b/src/core/client/admin/components/UserStatus/BanModal.css
index 4a4d28e0e..a453f0453 100644
--- a/src/core/client/admin/components/UserStatus/BanModal.css
+++ b/src/core/client/admin/components/UserStatus/BanModal.css
@@ -1,10 +1,10 @@
-$ban-modal-text: var(--v2-colors-mono-500);
+$ban-modal-text: var(--palette-text-500);
.bodyText {
- font-size: var(--v2-font-size-3);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- line-height: var(--v2-line-height-body-short);
+ font-size: var(--font-size-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ line-height: var(--line-height-field-description);
color: $ban-modal-text;
}
diff --git a/src/core/client/admin/components/UserStatus/ChangeStatusModal.css b/src/core/client/admin/components/UserStatus/ChangeStatusModal.css
index 91838626b..6165b387e 100644
--- a/src/core/client/admin/components/UserStatus/ChangeStatusModal.css
+++ b/src/core/client/admin/components/UserStatus/ChangeStatusModal.css
@@ -1,5 +1,5 @@
.root {
max-width: 500px;
- padding: var(--v2-spacing-2) var(--v2-spacing-3) var(--v2-spacing-3)
- var(--v2-spacing-3);
+ padding: var(--spacing-2) var(--spacing-3) var(--spacing-3)
+ var(--spacing-3);
}
diff --git a/src/core/client/admin/components/UserStatus/SuspendForm.css b/src/core/client/admin/components/UserStatus/SuspendForm.css
index 95549ad7e..a6cb39b11 100644
--- a/src/core/client/admin/components/UserStatus/SuspendForm.css
+++ b/src/core/client/admin/components/UserStatus/SuspendForm.css
@@ -1,3 +1,5 @@
+$suspend-modal-text: var(--palette-text-500);
+
.radioButton {
margin: 0 var(--spacing-1) 0 0 !important;
}
@@ -13,6 +15,15 @@
margin: 0 0 var(--spacing-3) 0 !important;
}
+.subTitle {
+ font-size: var(--font-size-4);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ line-height: var(--line-height-5);
+ color: $suspend-modal-text;
+ margin: 0;
+}
+
.footer {
margin-top: var(--spacing-3);
}
diff --git a/src/core/client/admin/components/UserStatus/SuspendModal.css b/src/core/client/admin/components/UserStatus/SuspendModal.css
new file mode 100644
index 000000000..0e4547822
--- /dev/null
+++ b/src/core/client/admin/components/UserStatus/SuspendModal.css
@@ -0,0 +1,37 @@
+$suspend-modal-text: var(--palette-text-500);
+
+.bodyText {
+ font-size: var(--font-size-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ line-height: var(--line-height-field-description);
+ color: $suspend-modal-text;
+}
+
+.subTitle {
+ font-size: var(--font-size-4);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ line-height: var(--line-height-5);
+ color: $suspend-modal-text;
+ margin: 0;
+}
+
+.radioButton {
+ margin: 0 var(--spacing-1) 0 0 !important;
+}
+
+.textArea {
+ width: 100%;
+ box-sizing: border-box;
+ height: calc(12 * var(--mini-unit));
+ padding: calc(0.5 * var(--mini-unit));
+}
+
+.header {
+ margin: 0 0 var(--spacing-3) 0 !important;
+}
+
+.footer {
+ margin-top: var(--spacing-3);
+}
diff --git a/src/core/client/admin/components/UserStatus/UserStatus.css b/src/core/client/admin/components/UserStatus/UserStatus.css
index b3c2e614d..d0eb67503 100644
--- a/src/core/client/admin/components/UserStatus/UserStatus.css
+++ b/src/core/client/admin/components/UserStatus/UserStatus.css
@@ -1,20 +1,20 @@
.root {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
}
.success {
- color: var(--v2-palette-success-main);
+ color: var(--palette-success-500);
}
.warning {
- color: var(--v2-palette-error-main);
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ color: var(--palette-error-500);
+ font-weight: var(--font-weight-primary-semi-bold);
}
.error {
- color: var(--v2-palette-error-darkest);
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ color: var(--palette-error-700);
+ font-weight: var(--font-weight-primary-semi-bold);
}
diff --git a/src/core/client/admin/components/UserStatus/UserStatusChange.css b/src/core/client/admin/components/UserStatus/UserStatusChange.css
index ef1d4679c..579b26de4 100644
--- a/src/core/client/admin/components/UserStatus/UserStatusChange.css
+++ b/src/core/client/admin/components/UserStatus/UserStatusChange.css
@@ -1,4 +1,4 @@
-$status-change-button-border: var(--v2-colors-grey-400);
+$status-change-button-border: var(--palette-grey-400);
.button {
justify-content: space-between;
@@ -6,7 +6,7 @@ $status-change-button-border: var(--v2-colors-grey-400);
}
.bordered {
- padding: 0 var(--v2-spacing-2);
+ padding: 0 var(--spacing-2);
border: 1px solid $status-change-button-border;
}
diff --git a/src/core/client/admin/index.tsx b/src/core/client/admin/index.tsx
index c0ad3549d..223ef05ed 100644
--- a/src/core/client/admin/index.tsx
+++ b/src/core/client/admin/index.tsx
@@ -11,7 +11,7 @@ import { initLocalState } from "./local";
import localesData from "./locales";
// Import css variables.
-import "coral-ui/theme/variables.css";
+import "coral-ui/theme/admin.css";
async function main() {
await injectConditionalPolyfills();
diff --git a/src/core/client/admin/routes/AuthCheck/NetworkError.tsx b/src/core/client/admin/routes/AuthCheck/NetworkError.tsx
index 6a35ef14b..567a5a2c2 100644
--- a/src/core/client/admin/routes/AuthCheck/NetworkError.tsx
+++ b/src/core/client/admin/routes/AuthCheck/NetworkError.tsx
@@ -1,7 +1,7 @@
import { Localized } from "@fluent/react/compat";
import React, { FunctionComponent } from "react";
-import { Message } from "coral-ui/components";
+import { Message } from "coral-ui/components/v2";
import styles from "./NetworkError.css";
diff --git a/src/core/client/admin/routes/AuthCheck/Restricted.css b/src/core/client/admin/routes/AuthCheck/Restricted.css
index 28854f043..af31aff80 100644
--- a/src/core/client/admin/routes/AuthCheck/Restricted.css
+++ b/src/core/client/admin/routes/AuthCheck/Restricted.css
@@ -1,52 +1,52 @@
.title {
- font-weight: var(--v2-font-weight-secondary-bold);
- font-family: var(--v2-font-family-secondary);
- color: var(--v2-colors-mono-100);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-title);
+ font-weight: var(--font-weight-secondary-bold);
+ font-family: var(--font-family-secondary);
+ color: var(--palette-text-100);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-4);
- padding-bottom: var(--v2-spacing-3);
+ padding-bottom: var(--spacing-3);
}
.username {
- font-size: var(--v2-font-size-6);
- font-weight: var(--v2-font-weight-secondary-bold);
- font-family: var(--v2-font-family-secondary);
- line-height: var(--v2-line-height-reset);
- color: var(--v2-colors-mono-900);
+ font-size: var(--font-size-6);
+ font-weight: var(--font-weight-secondary-bold);
+ font-family: var(--font-family-secondary);
+ line-height: var(--line-height-7);
+ color: var(--palette-text-900);
text-align: center;
- padding-bottom: var(--v2-spacing-5);
+ padding-bottom: var(--spacing-5);
}
.copy {
- font-size: var(--v2-font-size-3);
- font-weight: var(--v2-font-weight-primary-regular);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
- color: var(--v2-colors-mono-500);
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
text-align: center;
}
.lockIcon {
- color: var(--v2-colors-mono-900);
- padding-bottom: var(--v2-spacing-2);
+ color: var(--palette-text-900);
+ padding-bottom: var(--spacing-2);
}
.noPermission {
- font-size: var(--v2-font-size-4);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
- color: var(--v2-colors-mono-900);
+ font-size: var(--font-size-4);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-900);
text-align: center;
- padding-bottom: var(--v2-spacing-5);
+ padding-bottom: var(--spacing-5);
}
.contactAdmin {
- padding-top: var(--v2-spacing-3);
+ padding-top: var(--spacing-3);
}
diff --git a/src/core/client/admin/routes/Community/EmptyMessage.css b/src/core/client/admin/routes/Community/EmptyMessage.css
index ab1f5bda1..8a356e313 100644
--- a/src/core/client/admin/routes/Community/EmptyMessage.css
+++ b/src/core/client/admin/routes/Community/EmptyMessage.css
@@ -1,7 +1,7 @@
.root {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-body-short);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-field-description);
text-align: center;
}
diff --git a/src/core/client/admin/routes/Community/InviteUsers/InviteUsers.css b/src/core/client/admin/routes/Community/InviteUsers/InviteUsers.css
index 7d0c23f97..a62dc0749 100644
--- a/src/core/client/admin/routes/Community/InviteUsers/InviteUsers.css
+++ b/src/core/client/admin/routes/Community/InviteUsers/InviteUsers.css
@@ -1,3 +1,3 @@
.button {
- padding: var(--v2-spacing-2);
+ padding: var(--spacing-2);
}
diff --git a/src/core/client/admin/routes/Community/InviteUsers/InviteUsersForm.css b/src/core/client/admin/routes/Community/InviteUsers/InviteUsersForm.css
index 5daf0aed7..3c153da83 100644
--- a/src/core/client/admin/routes/Community/InviteUsers/InviteUsersForm.css
+++ b/src/core/client/admin/routes/Community/InviteUsers/InviteUsersForm.css
@@ -1,9 +1,9 @@
-$invite-form-text: var(--v2-colors-mono-500);
+$invite-form-text: var(--palette-text-500);
.bodyText {
- font-size: var(--v2-font-size-3);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- line-height: var(--v2-line-height-body-short);
+ font-size: var(--font-size-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ line-height: var(--line-height-field-description);
color: $invite-form-text;
}
diff --git a/src/core/client/admin/routes/Community/InviteUsers/InviteUsersModal.css b/src/core/client/admin/routes/Community/InviteUsers/InviteUsersModal.css
index ca5b60c79..33752ab12 100644
--- a/src/core/client/admin/routes/Community/InviteUsers/InviteUsersModal.css
+++ b/src/core/client/admin/routes/Community/InviteUsers/InviteUsersModal.css
@@ -1,16 +1,16 @@
-$invite-modal-text: var(--v2-colors-mono-500);
+$invite-modal-text: var(--palette-text-500);
.root {
width: 400px;
- padding: var(--v2-spacing-2) var(--v2-spacing-3) var(--v2-spacing-3)
- var(--v2-spacing-3);
+ padding: var(--spacing-2) var(--spacing-3) var(--spacing-3)
+ var(--spacing-3);
}
.title {
- font-size: var(--v2-font-size-5);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- line-height: var(--v2-line-height-title);
+ font-size: var(--font-size-5);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ line-height: var(--line-height-6);
color: $invite-modal-text;
margin: 0;
}
diff --git a/src/core/client/admin/routes/Community/InviteUsers/RoleField.css b/src/core/client/admin/routes/Community/InviteUsers/RoleField.css
new file mode 100644
index 000000000..62c39bda7
--- /dev/null
+++ b/src/core/client/admin/routes/Community/InviteUsers/RoleField.css
@@ -0,0 +1,9 @@
+$role-field-text: var(--palette-text-500);
+
+.legend {
+ font-size: var(--font-size-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ line-height: var(--line-height-field-description);
+ color: $role-field-text;
+}
diff --git a/src/core/client/admin/routes/Community/InviteUsers/Success.css b/src/core/client/admin/routes/Community/InviteUsers/Success.css
index 71d281861..439d1fe33 100644
--- a/src/core/client/admin/routes/Community/InviteUsers/Success.css
+++ b/src/core/client/admin/routes/Community/InviteUsers/Success.css
@@ -1,13 +1,13 @@
-$success-text: var(--v2-colors-mono-500);
+$success-text: var(--palette-text-500);
.box {
width: 100%;
}
.title {
- font-size: var(--v2-font-size-5);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- line-height: var(--v2-line-height-title);
+ font-size: var(--font-size-5);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ line-height: var(--line-height-6);
color: $success-text;
margin: 0;
}
diff --git a/src/core/client/admin/routes/Community/InviteUsers/Success.tsx b/src/core/client/admin/routes/Community/InviteUsers/Success.tsx
index 4aa289eb3..f87977e3e 100644
--- a/src/core/client/admin/routes/Community/InviteUsers/Success.tsx
+++ b/src/core/client/admin/routes/Community/InviteUsers/Success.tsx
@@ -1,7 +1,7 @@
import { Localized } from "@fluent/react/compat";
import React, { FunctionComponent } from "react";
-import { Box, Button, CheckIcon, Flex } from "coral-ui/components";
+import { Box, Button, CheckIcon, Flex } from "coral-ui/components/v2";
import * as styles from "./Success.css";
@@ -30,8 +30,8 @@ const Success: FunctionComponent = ({ lastFocusableRef, onClose }) => (
-
- icon
-
+
+ icon
+
+
diff --git a/src/core/client/admin/test/invite/__snapshots__/invite.spec.tsx.snap b/src/core/client/admin/test/invite/__snapshots__/invite.spec.tsx.snap
index 08e14c5b5..6d608ee3e 100644
--- a/src/core/client/admin/test/invite/__snapshots__/invite.spec.tsx.snap
+++ b/src/core/client/admin/test/invite/__snapshots__/invite.spec.tsx.snap
@@ -23,11 +23,127 @@ exports[`renders form 1`] = `
>
Coral
-
+ data-name="Layer 1"
+ id="Layer_1"
+ viewBox="0 0 1011.23 388.38"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+
+ Coral by Vox Media
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -65,19 +181,19 @@ exports[`renders form 1`] = `
className="Box-root HorizontalGutter-root InviteCompleteForm-root HorizontalGutter-double Box-pt-4"
>
Username
-
You may use “_” and “.”
-
+
@@ -96,19 +212,19 @@ exports[`renders form 1`] = `
Password
-
Must be at least 8 characters
-
+
@@ -120,6 +236,7 @@ exports[`renders form 1`] = `
autoComplete="new-password"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-fullWidth PasswordField-input"
+ data-testid="password-field"
disabled={false}
id="password"
name="password"
@@ -150,9 +267,9 @@ exports[`renders form 1`] = `
Coral
-
+ data-name="Layer 1"
+ id="Layer_1"
+ viewBox="0 0 1011.23 388.38"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+
+ Coral by Vox Media
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/core/client/auth/components/Header/Bar.css b/src/core/client/auth/components/Header/Bar.css
index 23774e87b..68befed19 100644
--- a/src/core/client/auth/components/Header/Bar.css
+++ b/src/core/client/auth/components/Header/Bar.css
@@ -1,6 +1,6 @@
.root {
min-height: calc(var(--mini-unit) * 8);
padding: var(--mini-unit);
- background-color: var(--palette-text-primary);
+ background-color: var(--palette-text-500);
box-sizing: border-box;
}
diff --git a/src/core/client/auth/components/Header/Bar.tsx b/src/core/client/auth/components/Header/Bar.tsx
index 6382ab424..6b008c330 100644
--- a/src/core/client/auth/components/Header/Bar.tsx
+++ b/src/core/client/auth/components/Header/Bar.tsx
@@ -1,6 +1,6 @@
import React, { FunctionComponent } from "react";
-import { Flex } from "coral-ui/components";
+import { Flex } from "coral-ui/components/v2";
import styles from "./Bar.css";
diff --git a/src/core/client/auth/components/Header/SubBar.tsx b/src/core/client/auth/components/Header/SubBar.tsx
index 5301b8cd4..d171adbde 100644
--- a/src/core/client/auth/components/Header/SubBar.tsx
+++ b/src/core/client/auth/components/Header/SubBar.tsx
@@ -1,6 +1,6 @@
import React, { FunctionComponent } from "react";
-import { Flex } from "coral-ui/components";
+import { Flex } from "coral-ui/components/v2";
import styles from "./SubBar.css";
diff --git a/src/core/client/auth/components/Header/Subtitle.css b/src/core/client/auth/components/Header/Subtitle.css
index 6e1f50d51..3000b88a5 100644
--- a/src/core/client/auth/components/Header/Subtitle.css
+++ b/src/core/client/auth/components/Header/Subtitle.css
@@ -1,3 +1,3 @@
.root {
- color: var(--palette-text-light);
+ color: var(--palette-text-000);
}
diff --git a/src/core/client/auth/components/Header/Subtitle.tsx b/src/core/client/auth/components/Header/Subtitle.tsx
index 5033860dc..8d76509f8 100644
--- a/src/core/client/auth/components/Header/Subtitle.tsx
+++ b/src/core/client/auth/components/Header/Subtitle.tsx
@@ -1,6 +1,6 @@
import React, { FunctionComponent } from "react";
-import { Typography } from "coral-ui/components";
+import { Typography } from "coral-ui/components/v2";
import styles from "./Subtitle.css";
diff --git a/src/core/client/auth/components/Header/Title.css b/src/core/client/auth/components/Header/Title.css
index 6e1f50d51..3000b88a5 100644
--- a/src/core/client/auth/components/Header/Title.css
+++ b/src/core/client/auth/components/Header/Title.css
@@ -1,3 +1,3 @@
.root {
- color: var(--palette-text-light);
+ color: var(--palette-text-000);
}
diff --git a/src/core/client/auth/components/Header/Title.tsx b/src/core/client/auth/components/Header/Title.tsx
index 17d554e84..c1c8b1549 100644
--- a/src/core/client/auth/components/Header/Title.tsx
+++ b/src/core/client/auth/components/Header/Title.tsx
@@ -1,6 +1,6 @@
import React, { FunctionComponent } from "react";
-import { Typography } from "coral-ui/components";
+import { Typography } from "coral-ui/components/v2";
import styles from "./Title.css";
diff --git a/src/core/client/auth/components/HorizontalSeparator.css b/src/core/client/auth/components/HorizontalSeparator.css
deleted file mode 100644
index 8893e76ee..000000000
--- a/src/core/client/auth/components/HorizontalSeparator.css
+++ /dev/null
@@ -1,16 +0,0 @@
-.root {
- position: relative;
-}
-.hr {
- position: absolute;
- border: 0;
- border-top: 1px solid var(--palette-divider);
- width: 100%;
- margin: 0;
-}
-.text {
- composes: heading3 from "~coral-ui/shared/typography.css";
- position: relative;
- background-color: var(--palette-common-white);
- padding: 0 var(--mini-unit);
-}
diff --git a/src/core/client/auth/components/HorizontalSeparator.spec.tsx b/src/core/client/auth/components/HorizontalSeparator.spec.tsx
deleted file mode 100644
index 043540aeb..000000000
--- a/src/core/client/auth/components/HorizontalSeparator.spec.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import React from "react";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import HorizontalSeparator from "./HorizontalSeparator";
-
-it("renders correctly", () => {
- const renderer = createRenderer();
- renderer.render(Or );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
diff --git a/src/core/client/auth/components/HorizontalSeparator.tsx b/src/core/client/auth/components/HorizontalSeparator.tsx
deleted file mode 100644
index 2e394e259..000000000
--- a/src/core/client/auth/components/HorizontalSeparator.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import React, { FunctionComponent } from "react";
-
-import { Flex } from "coral-ui/components";
-
-import styles from "./HorizontalSeparator.css";
-
-interface Props {
- children: string;
-}
-
-const HorizontalSeparator: FunctionComponent = (props) => (
-
-
- {props.children}
-
-);
-
-export default HorizontalSeparator;
diff --git a/src/core/client/auth/components/OrSeparator.css b/src/core/client/auth/components/OrSeparator.css
index 51de23a03..63ed4d649 100644
--- a/src/core/client/auth/components/OrSeparator.css
+++ b/src/core/client/auth/components/OrSeparator.css
@@ -1,14 +1,14 @@
.or {
- font-family: var(--v2-font-family-secondary);
+ font-family: var(--font-family-secondary);
font-style: normal;
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-top: var(--v2-spacing-3);
- margin-bottom: var(--v2-spacing-3);
+ margin-top: var(--spacing-3);
+ margin-bottom: var(--spacing-3);
text-align: center;
}
diff --git a/src/core/client/auth/components/OrSeparator.tsx b/src/core/client/auth/components/OrSeparator.tsx
index d40fc4856..75bd5902e 100644
--- a/src/core/client/auth/components/OrSeparator.tsx
+++ b/src/core/client/auth/components/OrSeparator.tsx
@@ -2,10 +2,10 @@ import { Localized } from "@fluent/react/compat";
import cn from "classnames";
import React, { FunctionComponent } from "react";
-import styles from "./OrSeparator.css";
-
import CLASSES from "coral-stream/classes";
+import styles from "./OrSeparator.css";
+
const OrSeparator: FunctionComponent = () => (
Or
diff --git a/src/core/client/auth/components/SetPasswordField.css b/src/core/client/auth/components/SetPasswordField.css
index 020897566..b1420e932 100644
--- a/src/core/client/auth/components/SetPasswordField.css
+++ b/src/core/client/auth/components/SetPasswordField.css
@@ -1,8 +1,8 @@
.description {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-family-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-4);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-family-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-4);
- color: var(--v2-colors-mono-100);
+ color: var(--palette-text-100);
}
diff --git a/src/core/client/auth/components/UsernameField.css b/src/core/client/auth/components/UsernameField.css
index 020897566..b1420e932 100644
--- a/src/core/client/auth/components/UsernameField.css
+++ b/src/core/client/auth/components/UsernameField.css
@@ -1,8 +1,8 @@
.description {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-family-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-4);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-family-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-4);
- color: var(--v2-colors-mono-100);
+ color: var(--palette-text-100);
}
diff --git a/src/core/client/auth/components/__snapshots__/HorizontalSeparator.spec.tsx.snap b/src/core/client/auth/components/__snapshots__/HorizontalSeparator.spec.tsx.snap
deleted file mode 100644
index a5a6fd47a..000000000
--- a/src/core/client/auth/components/__snapshots__/HorizontalSeparator.spec.tsx.snap
+++ /dev/null
@@ -1,18 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
-
- Or
-
-
-`;
diff --git a/src/core/client/auth/index.tsx b/src/core/client/auth/index.tsx
index 0d76d7884..e31c248d0 100644
--- a/src/core/client/auth/index.tsx
+++ b/src/core/client/auth/index.tsx
@@ -10,7 +10,7 @@ import { initLocalState } from "./local";
import localesData from "./locales";
// Import css variables.
-import "coral-ui/theme/variables.css";
+import "coral-ui/theme/stream.css";
async function main() {
await injectConditionalPolyfills();
diff --git a/src/core/client/auth/test/__snapshots__/addEmailAddress.spec.tsx.snap b/src/core/client/auth/test/__snapshots__/addEmailAddress.spec.tsx.snap
index 959f2b5ca..62203a8ec 100644
--- a/src/core/client/auth/test/__snapshots__/addEmailAddress.spec.tsx.snap
+++ b/src/core/client/auth/test/__snapshots__/addEmailAddress.spec.tsx.snap
@@ -95,7 +95,7 @@ Your email address will be used to:
className="TextField-root TextField-fullWidth"
>
Don't have an account?
-
Sign Up
-
+
@@ -141,7 +141,7 @@ exports[`renders error 1`] = `
Don't have an account?
-
Sign Up
-
+
diff --git a/src/core/client/auth/views/SignUp/SignUp.css b/src/core/client/auth/views/SignUp/SignUp.css
index 2254c2525..83d0eed15 100644
--- a/src/core/client/auth/views/SignUp/SignUp.css
+++ b/src/core/client/auth/views/SignUp/SignUp.css
@@ -1,31 +1,31 @@
.bar {
- background-color: var(--v2-colors-grey-600);
- padding: var(--v2-spacing-4);
+ background-color: var(--palette-grey-600);
+ padding: var(--spacing-4);
text-align: center;
}
.title {
- font-family: var(--v2-font-family-secondary);
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-6);
- line-height: var(--v2-line-height-9);
+ font-family: var(--font-family-secondary);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-6);
+ line-height: var(--line-height-9);
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
}
.header {
- font-family: var(--v2-font-family-secondary);
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-4);
- line-height: var(--v2-line-height-6);
+ font-family: var(--font-family-secondary);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-4);
+ line-height: var(--line-height-6);
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
}
.subBar {
- background-color: var(--v2-colors-grey-100);
- padding: var(--v2-spacing-3);
+ background-color: var(--palette-grey-100);
+ padding: var(--spacing-3);
text-align: center;
}
@@ -35,15 +35,15 @@
justify-content: center;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
}
.signIn {
margin-top: 1px;
- margin-left: var(--v2-spacing-1);
+ margin-left: var(--spacing-1);
}
diff --git a/src/core/client/auth/views/SignUp/SignUpWithEmail.css b/src/core/client/auth/views/SignUp/SignUpWithEmail.css
index 0ec97b9fb..a1b4a0ce9 100644
--- a/src/core/client/auth/views/SignUp/SignUpWithEmail.css
+++ b/src/core/client/auth/views/SignUp/SignUpWithEmail.css
@@ -1,11 +1,11 @@
.icon {
- margin-right: var(--v2-spacing-2);
+ margin-right: var(--spacing-2);
}
.field {
- margin-bottom: var(--v2-spacing-3);
+ margin-bottom: var(--spacing-3);
}
.actions {
- padding-top: var(--v2-spacing-2);
+ padding-top: var(--spacing-2);
}
diff --git a/src/core/client/auth/views/SignUp/__snapshots__/SignUp.spec.tsx.snap b/src/core/client/auth/views/SignUp/__snapshots__/SignUp.spec.tsx.snap
index 3bd06dae2..d64b79e3c 100644
--- a/src/core/client/auth/views/SignUp/__snapshots__/SignUp.spec.tsx.snap
+++ b/src/core/client/auth/views/SignUp/__snapshots__/SignUp.spec.tsx.snap
@@ -43,7 +43,7 @@ exports[`renders correctly 1`] = `
Already have an account?
-
Sign In
-
+
diff --git a/src/core/client/framework/components/DurationField.tsx b/src/core/client/framework/components/DurationField.tsx
index 57db99382..79c4647a2 100644
--- a/src/core/client/framework/components/DurationField.tsx
+++ b/src/core/client/framework/components/DurationField.tsx
@@ -15,7 +15,7 @@ import {
SelectField,
TextField,
Typography,
-} from "coral-ui/components";
+} from "coral-ui/components/v2";
import styles from "./DurationField.css";
diff --git a/src/core/client/framework/components/FacebookButton.css b/src/core/client/framework/components/FacebookButton.css
index 2f6a66d26..9ea3aaf42 100644
--- a/src/core/client/framework/components/FacebookButton.css
+++ b/src/core/client/framework/components/FacebookButton.css
@@ -1,5 +1,5 @@
.icon {
- margin-right: var(--v2-spacing-2);
+ margin-right: var(--spacing-2);
height: 1rem;
overflow: hidden;
@@ -9,7 +9,7 @@
border-style: solid;
border-width: 1px;
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
&:not(.disabled),
&:not(:disabled) {
@@ -26,8 +26,8 @@
border-color: #6583c3;
}
&.disabled {
- color: var(--v2-colors-grey-400);
- background-color: var(--v2-colors-grey-200);
- border-color: var(--v2-colors-grey-200);
+ color: var(--palette-grey-400);
+ background-color: var(--palette-grey-200);
+ border-color: var(--palette-grey-200);
}
}
diff --git a/src/core/client/framework/components/GoogleButton.css b/src/core/client/framework/components/GoogleButton.css
index b34e64098..31dc852bf 100644
--- a/src/core/client/framework/components/GoogleButton.css
+++ b/src/core/client/framework/components/GoogleButton.css
@@ -1,5 +1,5 @@
.icon {
- margin-right: var(--v2-spacing-2);
+ margin-right: var(--spacing-2);
height: 1rem;
overflow: hidden;
@@ -9,7 +9,7 @@
border-style: solid;
border-width: 1px;
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
&:not(.disabled),
&:not(:disabled) {
@@ -26,9 +26,9 @@
border-color: #e57a71;
}
&.disabled {
- color: var(--v2-colors-grey-400);
- background-color: var(--v2-colors-grey-200);
- border-color: var(--v2-colors-grey-200);
+ color: var(--palette-grey-400);
+ background-color: var(--palette-grey-200);
+ border-color: var(--palette-grey-200);
}
}
diff --git a/src/core/client/framework/components/LocaleField.tsx b/src/core/client/framework/components/LocaleField.tsx
index 730560dd0..fee538c5e 100644
--- a/src/core/client/framework/components/LocaleField.tsx
+++ b/src/core/client/framework/components/LocaleField.tsx
@@ -2,7 +2,7 @@ import React, { FunctionComponent } from "react";
import { LanguageCode, LOCALES_MAP } from "coral-common/helpers/i18n";
import { PropTypesOf } from "coral-framework/types";
-import { Option, SelectField } from "coral-ui/components";
+import { Option, SelectField } from "coral-ui/components/v2";
interface Props extends Omit, "ref"> {
value: LanguageCode;
diff --git a/src/core/client/framework/components/Markdown.css b/src/core/client/framework/components/Markdown.css
index f8f6762de..6b2e1a27d 100644
--- a/src/core/client/framework/components/Markdown.css
+++ b/src/core/client/framework/components/Markdown.css
@@ -1,29 +1,49 @@
.root {
- font-size: var(--v2-font-size-3);
- font-weight: var(--v2-font-weight-primary-regular);
- font-family: var(--v2-font-family-primary);
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
line-height: 1.375rem;
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
b,
strong {
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
}
h1 {
- @mixin heading1;
+ font-size: var(--font-size-6);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-6);
+ color: var(--palette-text-500);
}
h2 {
- @mixin heading2;
+ font-size: var(--font-size-5);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-5);
+ color: var(--palette-text-500);
}
h3 {
- @mixin heading3;
+ font-size: var(--font-size-4);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
}
h4 {
- @mixin heading4;
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-500);
}
h5 {
- @mixin heading5;
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-2);
+ color: var(--palette-text-500);
}
*:first-child {
@@ -37,7 +57,7 @@
padding: var(--mini-unit);
margin: calc(2 * var(--mini-unit)) 0 calc(2 * var(--mini-unit))
var(--mini-unit);
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
&::after {
content: none;
}
diff --git a/src/core/client/framework/components/OIDCButton.css b/src/core/client/framework/components/OIDCButton.css
index 810b94aae..d0896e033 100644
--- a/src/core/client/framework/components/OIDCButton.css
+++ b/src/core/client/framework/components/OIDCButton.css
@@ -2,25 +2,25 @@
border-style: solid;
border-width: 1px;
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
&:not(.disabled),
&:not(:disabled) {
- background-color: var(--v2-colors-grey-500);
- border-color: var(--v2-colors-grey-500);
+ background-color: var(--palette-grey-500);
+ border-color: var(--palette-grey-500);
}
&:hover, &.mouseHover {
- background-color: var(--v2-colors-grey-400);
- border-color: var(--v2-colors-grey-400);
+ background-color: var(--palette-grey-400);
+ border-color: var(--palette-grey-400);
}
&:active, &.active {
- background-color: var(--v2-colors-grey-300);
- border-color: var(--v2-colors-grey-300);
+ background-color: var(--palette-grey-300);
+ border-color: var(--palette-grey-300);
}
&.disabled {
- color: var(--v2-colors-grey-400);
- background-color: var(--v2-colors-grey-200);
- border-color: var(--v2-colors-grey-200);
+ color: var(--palette-grey-400);
+ background-color: var(--palette-grey-200);
+ border-color: var(--palette-grey-200);
}
}
diff --git a/src/core/client/framework/components/__snapshots__/FacebookButton.spec.tsx.snap b/src/core/client/framework/components/__snapshots__/FacebookButton.spec.tsx.snap
index 266cad799..ee96f26e6 100644
--- a/src/core/client/framework/components/__snapshots__/FacebookButton.spec.tsx.snap
+++ b/src/core/client/framework/components/__snapshots__/FacebookButton.spec.tsx.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
-
-
+
`;
diff --git a/src/core/client/framework/components/__snapshots__/GoogleButton.spec.tsx.snap b/src/core/client/framework/components/__snapshots__/GoogleButton.spec.tsx.snap
index 6b2b3706e..c2bd83bb3 100644
--- a/src/core/client/framework/components/__snapshots__/GoogleButton.spec.tsx.snap
+++ b/src/core/client/framework/components/__snapshots__/GoogleButton.spec.tsx.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
-
-
+
`;
diff --git a/src/core/client/framework/components/__snapshots__/OIDCButton.spec.tsx.snap b/src/core/client/framework/components/__snapshots__/OIDCButton.spec.tsx.snap
index 1a4b99562..c93c23545 100644
--- a/src/core/client/framework/components/__snapshots__/OIDCButton.spec.tsx.snap
+++ b/src/core/client/framework/components/__snapshots__/OIDCButton.spec.tsx.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
-
Login with OIDC
-
+
`;
diff --git a/src/core/client/framework/components/loadables/MarkdownEditor/MarkdownEditor.css b/src/core/client/framework/components/loadables/MarkdownEditor/MarkdownEditor.css
index 56fda9913..ee67a7dd2 100644
--- a/src/core/client/framework/components/loadables/MarkdownEditor/MarkdownEditor.css
+++ b/src/core/client/framework/components/loadables/MarkdownEditor/MarkdownEditor.css
@@ -2,29 +2,54 @@ $minHeight: 200px;
$fullscreenZIndex: 10;
.wrapper {
- @mixin bodyCopy;
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
+
i
em {
font-style: italic;
}
b,
strong {
- font-weight: var(--font-weight-medium);
+ font-weight: var(--font-weight-primary-semi-bold);
}
h1 {
- @mixin heading1;
+ font-size: var(--font-size-6);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-6);
+ color: var(--palette-text-500);
}
h2 {
- @mixin heading2;
+ font-size: var(--font-size-5);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-5);
+ color: var(--palette-text-500);
}
h3 {
- @mixin heading3;
+ font-size: var(--font-size-4);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
}
h4 {
- @mixin heading4;
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-500);
}
h5 {
- @mixin heading5;
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-2);
+ color: var(--palette-text-500);
}
*:first-child {
margin-top: 0;
diff --git a/src/core/client/framework/helpers/getModerationLink.ts b/src/core/client/framework/helpers/getModerationLink.ts
index ec53944ee..f1e5e422c 100644
--- a/src/core/client/framework/helpers/getModerationLink.ts
+++ b/src/core/client/framework/helpers/getModerationLink.ts
@@ -1,7 +1,7 @@
-import urls from "./urls";
-
import { SectionFilter } from "coral-common/section";
+import urls from "./urls";
+
export type QUEUE_NAME =
| "reported"
| "pending"
diff --git a/src/core/client/framework/helpers/potentiallyInjectAxe.ts b/src/core/client/framework/helpers/potentiallyInjectAxe.ts
index 5e3dd1ba3..9159640a0 100644
--- a/src/core/client/framework/helpers/potentiallyInjectAxe.ts
+++ b/src/core/client/framework/helpers/potentiallyInjectAxe.ts
@@ -2,6 +2,7 @@ import React from "react";
import ReactDOM from "react-dom";
import { parseQuery } from "coral-common/utils";
+
import { getBrowserInfo } from "../lib/browserInfo";
import { areWeInIframe } from "../utils";
diff --git a/src/core/client/framework/lib/bootstrap/CoralContext.tsx b/src/core/client/framework/lib/bootstrap/CoralContext.tsx
index 3591c9ee6..93cca2971 100644
--- a/src/core/client/framework/lib/bootstrap/CoralContext.tsx
+++ b/src/core/client/framework/lib/bootstrap/CoralContext.tsx
@@ -13,8 +13,8 @@ import { PostMessageService } from "coral-framework/lib/postMessage";
import { RestClient } from "coral-framework/lib/rest";
import { PromisifiedStorage } from "coral-framework/lib/storage";
import { TransitionControlData } from "coral-framework/testHelpers";
-import { ClickFarAwayRegister } from "coral-ui/components/ClickOutside";
import { UIContext } from "coral-ui/components/v2";
+import { ClickFarAwayRegister } from "coral-ui/components/v2/ClickOutside";
export interface CoralContext {
/** relayEnvironment for our relay framework. */
diff --git a/src/core/client/framework/lib/bootstrap/createManaged.tsx b/src/core/client/framework/lib/bootstrap/createManaged.tsx
index 20c8fe00e..84edf1de7 100644
--- a/src/core/client/framework/lib/bootstrap/createManaged.tsx
+++ b/src/core/client/framework/lib/bootstrap/createManaged.tsx
@@ -17,7 +17,7 @@ import {
createSessionStorage,
PromisifiedStorage,
} from "coral-framework/lib/storage";
-import { ClickFarAwayRegister } from "coral-ui/components/ClickOutside";
+import { ClickFarAwayRegister } from "coral-ui/components/v2/ClickOutside";
import {
AccessTokenProvider,
diff --git a/src/core/client/framework/lib/events.ts b/src/core/client/framework/lib/events.ts
index b32925f7d..65d8e4a0d 100644
--- a/src/core/client/framework/lib/events.ts
+++ b/src/core/client/framework/lib/events.ts
@@ -1,4 +1,5 @@
import { EventEmitter2 } from "eventemitter2";
+
import { useCoralContext } from "./bootstrap";
/**
diff --git a/src/core/client/framework/lib/form/components/ValidationMessage.tsx b/src/core/client/framework/lib/form/components/ValidationMessage.tsx
index d670f39e1..67e0f7edd 100644
--- a/src/core/client/framework/lib/form/components/ValidationMessage.tsx
+++ b/src/core/client/framework/lib/form/components/ValidationMessage.tsx
@@ -1,11 +1,11 @@
import React, { FunctionComponent } from "react";
import { FieldMeta, hasError } from "coral-framework/lib/form/helpers";
+import { PropTypesOf } from "coral-framework/types";
+import { ValidationMessage as UIValidationMessage } from "coral-ui/components/v2";
-import { ValidationMessage as UIValidationMessage } from "coral-ui/components";
-import { ValidationMessageProps } from "coral-ui/components/ValidationMessage";
-
-interface Props extends Omit {
+interface Props
+ extends Omit, "children" | "ref"> {
meta: FieldMeta;
}
diff --git a/src/core/client/framework/lib/i18n/components/ExternalLink.css b/src/core/client/framework/lib/i18n/components/ExternalLink.css
index 16383e5c7..a240d8bf1 100644
--- a/src/core/client/framework/lib/i18n/components/ExternalLink.css
+++ b/src/core/client/framework/lib/i18n/components/ExternalLink.css
@@ -1,3 +1,3 @@
.root {
- color: var(--palette-primary-main);
+ color: $colors-teal-700;
}
diff --git a/src/core/client/framework/lib/i18n/generateBundles.ts b/src/core/client/framework/lib/i18n/generateBundles.ts
index f69c4ec36..c7ed0910c 100644
--- a/src/core/client/framework/lib/i18n/generateBundles.ts
+++ b/src/core/client/framework/lib/i18n/generateBundles.ts
@@ -1,7 +1,7 @@
import { FluentBundle, FluentResource } from "@fluent/bundle/compat";
-import { LocalesData } from "./locales";
import * as functions from "./functions";
+import { LocalesData } from "./locales";
// Don't warn in production.
let decorateWarnMissing = (bundle: FluentBundle) => bundle;
diff --git a/src/core/client/framework/lib/router/withRouteConfig.ts b/src/core/client/framework/lib/router/withRouteConfig.ts
index 9f08845b5..128622c09 100644
--- a/src/core/client/framework/lib/router/withRouteConfig.ts
+++ b/src/core/client/framework/lib/router/withRouteConfig.ts
@@ -1,5 +1,6 @@
import { RouteMatch, RouteProps } from "found";
import React from "react";
+
import { resolveModule } from "../relay/helpers";
type RouteConfig = Partial<
diff --git a/src/core/client/framework/lib/validation.tsx b/src/core/client/framework/lib/validation.tsx
index 42c1a58c2..11604b3f5 100644
--- a/src/core/client/framework/lib/validation.tsx
+++ b/src/core/client/framework/lib/validation.tsx
@@ -299,3 +299,13 @@ export function validateWhenOtherwise(
: falsy(value, values);
};
}
+
+/**
+ * Use custom message for validator.
+ */
+export const customMessage = (
+ validator: Validator,
+ msg: ReactNode
+): Validator => {
+ return (v: T, values: V) => (validator(v, values) ? msg : undefined);
+};
diff --git a/src/core/client/framework/utils/parseHashQuery.ts b/src/core/client/framework/utils/parseHashQuery.ts
index e88c80a23..c8d029608 100644
--- a/src/core/client/framework/utils/parseHashQuery.ts
+++ b/src/core/client/framework/utils/parseHashQuery.ts
@@ -1,5 +1,4 @@
import { parseQuery } from "coral-common/utils";
-
import startsWith from "coral-common/utils/startsWith";
export default function parseQueryHash(
diff --git a/src/core/client/install/App/App.css b/src/core/client/install/App/App.css
index 6b7d0a554..fd03d9bb1 100644
--- a/src/core/client/install/App/App.css
+++ b/src/core/client/install/App/App.css
@@ -7,8 +7,8 @@
-webkit-font-smoothing: antialiased;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
- background-color: var(--palette-background-light);
- color: var(--palette-text-primary);
+ background-color: var(--palette-grey-300);
+ color: var(--palette-text-500);
}
input::-ms-clear, input::-ms-reveal {
display: none;
diff --git a/src/core/client/install/App/App.tsx b/src/core/client/install/App/App.tsx
index 1c7835929..e802f94e4 100644
--- a/src/core/client/install/App/App.tsx
+++ b/src/core/client/install/App/App.tsx
@@ -3,7 +3,7 @@ import React, { FunctionComponent, useEffect, useState } from "react";
import { ERROR_CODES } from "coral-common/errors";
import { useCoralContext } from "coral-framework/lib/bootstrap";
import { useFetch } from "coral-framework/lib/relay";
-import { CallOut, Flex, Typography } from "coral-ui/components";
+import { CallOut, Flex, Typography } from "coral-ui/components/v2";
import CheckInstallFetch from "./CheckInstallFetch";
import InstallWizard from "./InstallWizard";
diff --git a/src/core/client/install/App/Header.tsx b/src/core/client/install/App/Header.tsx
index 8834703ef..50085c86e 100644
--- a/src/core/client/install/App/Header.tsx
+++ b/src/core/client/install/App/Header.tsx
@@ -2,7 +2,7 @@ import { Localized } from "@fluent/react/compat";
import cn from "classnames";
import React, { FunctionComponent } from "react";
-import { Flex, Typography } from "coral-ui/components";
+import { Flex, Typography } from "coral-ui/components/v2";
import styles from "./Header.css";
diff --git a/src/core/client/install/App/MainBar.css b/src/core/client/install/App/MainBar.css
index c3688d99c..ab6ea386c 100644
--- a/src/core/client/install/App/MainBar.css
+++ b/src/core/client/install/App/MainBar.css
@@ -1,13 +1,13 @@
.root {
width: 100%;
- border-bottom: 2px solid var(--palette-grey-main);
+ border-bottom: 2px solid var(--palette-grey-500);
padding: var(--mini-unit);
box-sizing: border-box;
- background: var(--palette-text-primary);
+ background: var(--palette-text-500);
background: linear-gradient(
to right,
- var(--palette-text-primary) 0%,
- var(--palette-grey-main) 100%
+ var(--palette-text-500) 0%,
+ var(--palette-grey-500) 100%
);
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14),
0 1px 10px 0 rgba(0, 0, 0, 0.12);
@@ -22,5 +22,5 @@
}
.title {
- color: var(--palette-text-light);
+ color: var(--palette-text-000);
}
diff --git a/src/core/client/install/App/MainBar.tsx b/src/core/client/install/App/MainBar.tsx
index 2613260bf..a810ce0ad 100644
--- a/src/core/client/install/App/MainBar.tsx
+++ b/src/core/client/install/App/MainBar.tsx
@@ -1,6 +1,6 @@
import React from "react";
-import { Typography } from "coral-ui/components";
+import { Typography } from "coral-ui/components/v2";
import styles from "./MainBar.css";
diff --git a/src/core/client/install/App/Wizard.tsx b/src/core/client/install/App/Wizard.tsx
index 8369b87a3..d901545be 100644
--- a/src/core/client/install/App/Wizard.tsx
+++ b/src/core/client/install/App/Wizard.tsx
@@ -2,7 +2,7 @@ import { Localized } from "@fluent/react/compat";
import cn from "classnames";
import React, { Component, ReactNode } from "react";
-import { Step, StepBar } from "coral-ui/components";
+import { Step, StepBar } from "coral-ui/components/v2";
import Header from "./Header";
diff --git a/src/core/client/install/App/steps/AddOrganizationStep.tsx b/src/core/client/install/App/steps/AddOrganizationStep.tsx
index 1a8624768..ceb89d0db 100644
--- a/src/core/client/install/App/steps/AddOrganizationStep.tsx
+++ b/src/core/client/install/App/steps/AddOrganizationStep.tsx
@@ -22,7 +22,7 @@ import {
InputLabel,
TextField,
Typography,
-} from "coral-ui/components";
+} from "coral-ui/components/v2";
import BackButton from "./BackButton";
import NextButton from "./NextButton";
@@ -85,7 +85,7 @@ class AddOrganizationStep extends React.Component {
{({ input, meta }) => (
- }>
+
Organization name
@@ -114,7 +114,7 @@ class AddOrganizationStep extends React.Component {
{({ input, meta }) => (
- }>
+
Contact email
@@ -146,7 +146,7 @@ class AddOrganizationStep extends React.Component {
{({ input, meta }) => (
- }>
+
Organization URL
@@ -181,9 +181,7 @@ class AddOrganizationStep extends React.Component {
{({ input, meta }) => (
- }>
- Site name
-
+ Site name
diff --git a/src/core/client/install/App/steps/BackButton.tsx b/src/core/client/install/App/steps/BackButton.tsx
index 01e95e385..7b4304657 100644
--- a/src/core/client/install/App/steps/BackButton.tsx
+++ b/src/core/client/install/App/steps/BackButton.tsx
@@ -1,7 +1,7 @@
import { Localized } from "@fluent/react/compat";
import React, { FunctionComponent } from "react";
-import { Button } from "coral-ui/components";
+import { Button } from "coral-ui/components/v2";
export interface BackButtonProps {
submitting: boolean;
@@ -16,9 +16,8 @@ const BackButton: FunctionComponent = ({
Back
diff --git a/src/core/client/install/App/steps/CreateYourAccountStep.tsx b/src/core/client/install/App/steps/CreateYourAccountStep.tsx
index 849315f1d..919992b41 100644
--- a/src/core/client/install/App/steps/CreateYourAccountStep.tsx
+++ b/src/core/client/install/App/steps/CreateYourAccountStep.tsx
@@ -24,7 +24,7 @@ import {
InputLabel,
TextField,
Typography,
-} from "coral-ui/components";
+} from "coral-ui/components/v2";
import BackButton from "./BackButton";
import NextButton from "./NextButton";
@@ -79,9 +79,7 @@ class CreateYourAccountStep extends Component {
{({ input, meta }) => (
- }>
- Email
-
+ Email
{
{({ input, meta }) => (
- }>
- Username
-
+ Username
@@ -148,9 +144,7 @@ class CreateYourAccountStep extends Component {
{({ input, meta }) => (
- }>
- Password
-
+ Password
@@ -183,7 +177,7 @@ class CreateYourAccountStep extends Component {
{({ input, meta }) => (
- }>
+
Confirm password
diff --git a/src/core/client/install/App/steps/FinalStep.tsx b/src/core/client/install/App/steps/FinalStep.tsx
index 3265ba3bb..7655c27e1 100644
--- a/src/core/client/install/App/steps/FinalStep.tsx
+++ b/src/core/client/install/App/steps/FinalStep.tsx
@@ -3,7 +3,7 @@ import { Link } from "found";
import React, { Component } from "react";
import { urls } from "coral-framework/helpers";
-import { Button, Flex, Typography } from "coral-ui/components";
+import { Button, Flex, Typography } from "coral-ui/components/v2";
class FinalStep extends Component {
public render() {
@@ -23,8 +23,8 @@ class FinalStep extends Component {
Go to Admin
diff --git a/src/core/client/install/App/steps/InitialStep.tsx b/src/core/client/install/App/steps/InitialStep.tsx
index 1b1ea25d4..aefee97d7 100644
--- a/src/core/client/install/App/steps/InitialStep.tsx
+++ b/src/core/client/install/App/steps/InitialStep.tsx
@@ -1,7 +1,7 @@
import { Localized } from "@fluent/react/compat";
import React, { Component } from "react";
-import { Button, Flex, Typography } from "coral-ui/components";
+import { Button, Flex, Typography } from "coral-ui/components/v2";
interface InitialStepProps {
onGoToNextStep: () => void;
@@ -21,8 +21,8 @@ class InitialStep extends Component {
Get Started
diff --git a/src/core/client/install/App/steps/NextButton.tsx b/src/core/client/install/App/steps/NextButton.tsx
index 33a1f57af..94306aad7 100644
--- a/src/core/client/install/App/steps/NextButton.tsx
+++ b/src/core/client/install/App/steps/NextButton.tsx
@@ -1,7 +1,7 @@
import { Localized } from "@fluent/react/compat";
import React, { FunctionComponent } from "react";
-import { Button, ButtonIcon } from "coral-ui/components";
+import { Button, ButtonIcon } from "coral-ui/components/v2";
export interface NextButtonProps {
submitting: boolean;
@@ -10,9 +10,8 @@ export interface NextButtonProps {
const NextButton: FunctionComponent = (props) => {
return (
diff --git a/src/core/client/install/App/steps/PermittedDomainsStep.tsx b/src/core/client/install/App/steps/PermittedDomainsStep.tsx
index c44a791ca..075afaa1a 100644
--- a/src/core/client/install/App/steps/PermittedDomainsStep.tsx
+++ b/src/core/client/install/App/steps/PermittedDomainsStep.tsx
@@ -22,7 +22,7 @@ import {
InputLabel,
TextField,
Typography,
-} from "coral-ui/components";
+} from "coral-ui/components/v2";
import BackButton from "./BackButton";
@@ -91,7 +91,7 @@ class PermittedDomainsStep extends Component {
{({ input, meta }) => (
- }>
+
Permitted Domains
@@ -121,9 +121,8 @@ class PermittedDomainsStep extends Component {
diff --git a/src/core/client/install/App/steps/SelectLanguageStep.tsx b/src/core/client/install/App/steps/SelectLanguageStep.tsx
index f9b67c1ba..1140b23cd 100644
--- a/src/core/client/install/App/steps/SelectLanguageStep.tsx
+++ b/src/core/client/install/App/steps/SelectLanguageStep.tsx
@@ -14,7 +14,7 @@ import {
HorizontalGutter,
InputLabel,
Typography,
-} from "coral-ui/components";
+} from "coral-ui/components/v2";
import NextButton from "./NextButton";
@@ -73,9 +73,7 @@ const SelectLanguageStep: FunctionComponent = (props) => {
{({ input, meta }) => (
- }>
- Language
-
+ Language
-
Register
-
+
-
Sign in
-
+
@@ -73,7 +73,7 @@ exports[`renders correctly hides showRegisterButton 1`] = `
-
Sign in
-
+
diff --git a/src/core/client/stream/index.tsx b/src/core/client/stream/index.tsx
index 9d842b5ae..ff8ff6c1e 100644
--- a/src/core/client/stream/index.tsx
+++ b/src/core/client/stream/index.tsx
@@ -11,7 +11,7 @@ import { initLocalState } from "./local";
import localesData from "./locales";
// Import css variables.
-import "coral-ui/theme/variables.css";
+import "coral-ui/theme/stream.css";
async function main() {
const pym = new PymChild({
diff --git a/src/core/client/stream/shared/htmlContent.css b/src/core/client/stream/shared/htmlContent.css
index 478b32747..e6c4e0915 100644
--- a/src/core/client/stream/shared/htmlContent.css
+++ b/src/core/client/stream/shared/htmlContent.css
@@ -1,20 +1,20 @@
-$commentsQuoteBackground: var(--v2-colors-grey-200);
-$commentsLinkColor: var(--v2-colors-stream-blue-500);
-$commentsLinkColorHovered: var(--v2-colors-stream-blue-700);
+$commentsQuoteBackground: var(--palette-grey-200);
+$commentsLinkColor: var(--palette-primary-500);
+$commentsLinkColorHovered: var(--palette-primary-700);
.root {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: 1.45rem;
- color: var(--v2-colors-mono-500);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-comment-body);
+ color: var(--palette-text-500);
overflow-wrap: break-word;
b,
strong {
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-weight: var(--font-weight-primary-semi-bold);
}
i
@@ -26,7 +26,7 @@ $commentsLinkColorHovered: var(--v2-colors-stream-blue-700);
padding: var(--mini-unit);
margin: calc(2 * var(--mini-unit)) 0 calc(2 * var(--mini-unit))
var(--mini-unit);
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
&::after {
content: none;
}
@@ -41,7 +41,7 @@ $commentsLinkColorHovered: var(--v2-colors-stream-blue-700);
}
}
& :global(.coral-rte-spoiler) {
- background-color: var(--palette-text-dark);
+ background-color: var(--palette-text-900);
transition: background 300ms;
border-radius: var(--round-corners);
color: rgba(0, 0, 0, 0);
@@ -49,7 +49,7 @@ $commentsLinkColorHovered: var(--v2-colors-stream-blue-700);
}
& :global(.coral-rte-spoiler-reveal) {
opacity: 1.0;
- color: var(--palette-text-dark);
+ color: var(--palette-text-900);
background-color: transparent;
cursor: text;
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/AnsweredTag.css b/src/core/client/stream/tabs/Comments/Comment/AnsweredTag.css
index 69d654dc4..27809b55f 100644
--- a/src/core/client/stream/tabs/Comments/Comment/AnsweredTag.css
+++ b/src/core/client/stream/tabs/Comments/Comment/AnsweredTag.css
@@ -11,6 +11,6 @@
}
.tagIcon {
- margin-right: var(--v2-spacing-1);
- color: var(--v2-colors-green-500);
+ margin-right: var(--spacing-1);
+ color: var(--palette-success-500);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/Comment.css b/src/core/client/stream/tabs/Comments/Comment/Comment.css
index adb02edb9..a2f657663 100644
--- a/src/core/client/stream/tabs/Comments/Comment/Comment.css
+++ b/src/core/client/stream/tabs/Comments/Comment/Comment.css
@@ -1,11 +1,11 @@
-$commentTimestampColor: var(--v2-colors-grey-500);
+$commentTimestampColor: var(--palette-grey-500);
.root {
flex: 1;
}
.highlight {
- background-color: var(--palette-primary-lightest);
+ background-color: var(--palette-primary-100);
padding: var(--mini-unit);
}
.subBar {
@@ -16,10 +16,10 @@ $commentTimestampColor: var(--v2-colors-grey-500);
}
.timestamp {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
color: $commentTimestampColor;
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/Comment.tsx b/src/core/client/stream/tabs/Comments/Comment/Comment.tsx
index 18be31d66..0eb316adf 100644
--- a/src/core/client/stream/tabs/Comments/Comment/Comment.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/Comment.tsx
@@ -4,7 +4,7 @@ import React, { FunctionComponent } from "react";
import CLASSES from "coral-stream/classes";
import HTMLContent from "coral-stream/common/HTMLContent";
import Timestamp from "coral-stream/common/Timestamp";
-import { Flex, HorizontalGutter } from "coral-ui/components";
+import { Flex, HorizontalGutter } from "coral-ui/components/v2";
import EditedMarker from "./EditedMarker";
import InReplyTo from "./InReplyTo";
diff --git a/src/core/client/stream/tabs/Comments/Comment/CommentContainer.css b/src/core/client/stream/tabs/Comments/Comment/CommentContainer.css
index 25ded7b35..2d096259b 100644
--- a/src/core/client/stream/tabs/Comments/Comment/CommentContainer.css
+++ b/src/core/client/stream/tabs/Comments/Comment/CommentContainer.css
@@ -1,8 +1,8 @@
-$commenterActionEditColor: var(--v2-colors-stream-blue-500);
-$commenterActionEditColorActive: var(--v2-colors-stream-blue-300);
+$commenterActionEditColor: var(--palette-primary-500);
+$commenterActionEditColorActive: var(--palette-primary-300);
.tagIcon {
- margin-right: var(--v2-spacing-1);
+ margin-right: var(--spacing-1);
}
.answeredTag {
@@ -34,7 +34,7 @@ $commenterActionEditColorActive: var(--v2-colors-stream-blue-300);
}
.editIcon {
- margin-right: var(--v2-spacing-1);
+ margin-right: var(--spacing-1);
}
.actionBar {
@@ -42,9 +42,9 @@ $commenterActionEditColorActive: var(--v2-colors-stream-blue-300);
}
.actionButton {
- padding: var(--v2-spacing-1);
+ padding: var(--spacing-1);
}
.staticUsername {
- color: var(--v2-colors-mono-100);
+ color: var(--palette-text-100);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/CommentToggle.css b/src/core/client/stream/tabs/Comments/Comment/CommentToggle.css
index acc7a2294..87be56ccf 100644
--- a/src/core/client/stream/tabs/Comments/Comment/CommentToggle.css
+++ b/src/core/client/stream/tabs/Comments/Comment/CommentToggle.css
@@ -1,25 +1,25 @@
.root {
- padding: var(--v2-spacing-2);
+ padding: var(--spacing-2);
width: 100%;
- background: var(--v2-colors-grey-100);
+ background: var(--palette-grey-100);
&.mouseHover,
&:hover {
- background: var(--v2-colors-grey-200);
+ background: var(--palette-grey-200);
}
}
.icon {
- color: var(--v2-colors-grey-500);
+ color: var(--palette-grey-500);
}
.timestamp {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
- color: var(--v2-colors-grey-500);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
+ color: var(--palette-grey-500);
}
.inner {
diff --git a/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentForm.css b/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentForm.css
index e8233ad14..69b054ad2 100644
--- a/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentForm.css
+++ b/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentForm.css
@@ -1,6 +1,6 @@
-$commentsBorder: var(--v2-colors-grey-300);
+$commentsBorder: var(--palette-grey-300);
.commentFormBox {
border: 1px solid $commentsBorder;
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentMutation.ts b/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentMutation.ts
index a3e80e449..9f539843a 100644
--- a/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentMutation.ts
+++ b/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentMutation.ts
@@ -11,9 +11,9 @@ import {
MutationResponsePromise,
} from "coral-framework/lib/relay";
import { GQLComment } from "coral-framework/schema";
+import { EditCommentEvent } from "coral-stream/events";
import { EditCommentMutation as MutationTypes } from "coral-stream/__generated__/EditCommentMutation.graphql";
-import { EditCommentEvent } from "coral-stream/events";
export type EditCommentInput = MutationInput;
diff --git a/src/core/client/stream/tabs/Comments/Comment/EditedMarker.css b/src/core/client/stream/tabs/Comments/Comment/EditedMarker.css
index 6cf9f0e2f..3f7ef3351 100644
--- a/src/core/client/stream/tabs/Comments/Comment/EditedMarker.css
+++ b/src/core/client/stream/tabs/Comments/Comment/EditedMarker.css
@@ -1,10 +1,10 @@
-$editedTextDefaultColor: var(--v2-colors-grey-500);
+$editedTextDefaultColor: var(--palette-grey-500);
.root {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
color: $editedTextDefaultColor;
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/FeaturedTag.css b/src/core/client/stream/tabs/Comments/Comment/FeaturedTag.css
index 6c925e4f4..b03d02b50 100644
--- a/src/core/client/stream/tabs/Comments/Comment/FeaturedTag.css
+++ b/src/core/client/stream/tabs/Comments/Comment/FeaturedTag.css
@@ -1,3 +1,3 @@
.root {
- color: var(--v2-colors-stream-blue-500);
+ color: var(--palette-primary-500);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/InReplyTo.css b/src/core/client/stream/tabs/Comments/Comment/InReplyTo.css
index 5fddb4c1c..ac2a06cb0 100644
--- a/src/core/client/stream/tabs/Comments/Comment/InReplyTo.css
+++ b/src/core/client/stream/tabs/Comments/Comment/InReplyTo.css
@@ -1,24 +1,24 @@
-$commentsInReplyToUsernameColor: var(--v2-colors-mono-500);
-$commentsInReplyToLabelColor: var(--v2-colors-mono-100);
-$commentsInReplyToIconColor: var(--v2-colors-mono-100);
+$commentsInReplyToUsernameColor: var(--palette-text-500);
+$commentsInReplyToLabelColor: var(--palette-text-100);
+$commentsInReplyToIconColor: var(--palette-text-100);
.icon {
color: $commentsInReplyToIconColor;
}
.username {
- font-family: var(--v2-font-family-secondary);
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ font-family: var(--font-family-secondary);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
color: $commentsInReplyToUsernameColor;
}
.inReplyTo {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-2);
color: $commentsInReplyToLabelColor;
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/IndentedComment.css b/src/core/client/stream/tabs/Comments/Comment/IndentedComment.css
index ef10a18de..578d1e862 100644
--- a/src/core/client/stream/tabs/Comments/Comment/IndentedComment.css
+++ b/src/core/client/stream/tabs/Comments/Comment/IndentedComment.css
@@ -5,19 +5,19 @@
}
.toggleButton {
- padding: calc(var(--v2-spacing-1) / 2) var(--v2-spacing-1) var(--v2-spacing-1);
+ padding: calc(var(--spacing-1) / 2) var(--spacing-1) var(--spacing-1);
&.mouseHover,
&:hover {
- background: var(--v2-colors-grey-100);
- border-radius: var(--v2-border-radius);
+ background: var(--palette-grey-100);
+ border-radius: var(--border-radius);
}
}
.open {
- padding-bottom: var(--v2-spacing-2);
+ padding-bottom: var(--spacing-2);
}
.icon {
- color: var(--v2-colors-grey-400);
+ color: var(--palette-grey-400);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/IndentedComment.tsx b/src/core/client/stream/tabs/Comments/Comment/IndentedComment.tsx
index 886d39a2c..69bb4021d 100644
--- a/src/core/client/stream/tabs/Comments/Comment/IndentedComment.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/IndentedComment.tsx
@@ -3,9 +3,9 @@ import cn from "classnames";
import React, { FunctionComponent } from "react";
import { PropTypesOf } from "coral-framework/types";
+import CLASSES from "coral-stream/classes";
import { BaseButton, ButtonIcon, Flex } from "coral-ui/components/v2";
-import CLASSES from "coral-stream/classes";
import Indent from "../Indent";
import Comment from "./Comment";
import CommentToggle from "./CommentToggle";
@@ -55,25 +55,30 @@ const IndentedComment: FunctionComponent = (props) => {
CommentToggleElement
) : (
-
+
+ remove
+
+
+
+ )}
{CommentElement}
)}
diff --git a/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaConfirmPrompt.css b/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaConfirmPrompt.css
index d83458e2b..a35bbc5d3 100644
--- a/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaConfirmPrompt.css
+++ b/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaConfirmPrompt.css
@@ -1,10 +1,10 @@
.root {
- font-family: var(--v2-font-family-primary);
- font-size: var(--v2-font-size-2);
- color: var(--v2-colors-mono-500);
- border-top: 1px solid var(--v2-colors-grey-200);
- margin: 0 var(--v2-spacing-2);
- padding: var(--v2-spacing-2) 0;
+ font-family: var(--font-family-primary);
+ font-size: var(--font-size-2);
+ color: var(--palette-text-500);
+ border-top: 1px solid var(--palette-grey-200);
+ margin: 0 var(--spacing-2);
+ padding: var(--spacing-2) 0;
@media (min-width: $breakpoints-xs) {
display: flex;
}
@@ -12,7 +12,7 @@
.prompt {
margin: 0;
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-weight: var(--font-weight-primary-semi-bold);
}
.buttons {
@@ -26,8 +26,8 @@
flex: 1;
}
@media (min-width: $breakpoints-xs) {
- padding-top: var(--v2-spacing-1) !important;
- padding-bottom: var(--v2-spacing-1) !important;
+ padding-top: var(--spacing-1) !important;
+ padding-bottom: var(--spacing-1) !important;
}
}
@@ -49,11 +49,11 @@
.icon {
@media (max-width: $breakpoints-xs) {
}
- margin-right: var(--v2-spacing-2);
+ margin-right: var(--spacing-2);
}
.url {
- color: var(--v2-colors-mono-100);
+ color: var(--palette-text-100);
margin: 0;
@media (min-width: $breakpoints-xs) {
diff --git a/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaConfirmation.css b/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaConfirmation.css
index 71bfc53fa..9bb42b04b 100644
--- a/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaConfirmation.css
+++ b/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaConfirmation.css
@@ -1,23 +1,23 @@
.root {
- font-family: var(--v2-font-family-primary);
- font-size: var(--v2-font-size-2);
- color: var(--v2-colors-mono-500);
- border-top: 1px solid var(--v2-colors-grey-200);
- margin: 0 var(--v2-spacing-2);
- padding: var(--v2-spacing-2) 0;
+ font-family: var(--font-family-primary);
+ font-size: var(--font-size-2);
+ color: var(--palette-text-500);
+ border-top: 1px solid var(--palette-grey-200);
+ margin: 0 var(--spacing-2);
+ padding: var(--spacing-2) 0;
}
.prompt {
margin: 0;
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-weight: var(--font-weight-primary-semi-bold);
}
.url {
- color: var(--v2-colors-mono-100);
+ color: var(--palette-text-100);
margin: 0;
}
.boldURL {
- font-weight: var(--v2-font-weight-primary-semi-bold);
- color: var(--v2-colors-mono-500);
+ font-weight: var(--font-weight-primary-semi-bold);
+ color: var(--palette-text-500);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaPreview.css b/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaPreview.css
index 3b743b35f..47d6df165 100644
--- a/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaPreview.css
+++ b/src/core/client/stream/tabs/Comments/Comment/MediaConfirmation/MediaPreview.css
@@ -1,24 +1,24 @@
.root {
- font-family: var(--v2-font-family-primary);
- font-size: var(--v2-font-size-2);
- color: var(--v2-colors-mono-500);
- border-top: 1px solid var(--v2-colors-grey-200);
- margin: 0 var(--v2-spacing-2);
- padding: var(--v2-spacing-2) 0;
+ font-family: var(--font-family-primary);
+ font-size: var(--font-size-2);
+ color: var(--palette-text-500);
+ border-top: 1px solid var(--palette-grey-200);
+ margin: 0 var(--spacing-2);
+ padding: var(--spacing-2) 0;
flex: 1;
}
.url {
- color: var(--v2-colors-stream-blue-500);
+ color: var(--palette-primary-500);
margin: 0;
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-weight: var(--font-weight-primary-semi-bold);
}
.removeButton {
flex: 1;
display: block;
width: 100%;
- margin-top: var(--v2-spacing-1);
+ margin-top: var(--spacing-1);
}
.icon {
diff --git a/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/CaretContainer.css b/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/CaretContainer.css
index 31a8e26e9..af3ef6366 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/CaretContainer.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/CaretContainer.css
@@ -1,6 +1,6 @@
-$commentsModerationCaretColor: var(--v2-colors-pure-white);
-$commentsModerationCaretBorderColor: var(--v2-colors-grey-500);
-$commentsModerationCaretBackground: var(--v2-colors-grey-500);
+$commentsModerationCaretColor: var(--palette-text-000);
+$commentsModerationCaretBorderColor: var(--palette-grey-500);
+$commentsModerationCaretBackground: var(--palette-grey-500);
.root {
padding: 2px 4px;
diff --git a/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionBanContainer.css b/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionBanContainer.css
index 28446c7d4..8cf82ecb3 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionBanContainer.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionBanContainer.css
@@ -1,11 +1,11 @@
-$commentsModerationBannedColor: var(--v2-colors-red-500);
+$commentsModerationBannedColor: var(--palette-error-500);
.label {
- color: var(--v2-colors-mono-500);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ color: var(--palette-text-500);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
text-align: left;
}
@@ -15,7 +15,7 @@ $commentsModerationBannedColor: var(--v2-colors-red-500);
opacity: 1.0;
}
color: $commentsModerationBannedColor;
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
}
.banIcon {
@@ -30,5 +30,5 @@ $commentsModerationBannedColor: var(--v2-colors-red-500);
}
.mouseHover {
- background-color: var(--v2-colors-stream-blue-100);
+ background-color: var(--palette-primary-100);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionBanContainer.tsx b/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionBanContainer.tsx
index ddbcfad67..230d7565d 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionBanContainer.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionBanContainer.tsx
@@ -5,8 +5,7 @@ import { graphql } from "react-relay";
import { withFragmentContainer } from "coral-framework/lib/relay";
import CLASSES from "coral-stream/classes";
-import Spinner from "coral-stream/common/Spinner";
-import { DropdownButton, Icon } from "coral-ui/components/v2";
+import { DropdownButton, Icon, Spinner } from "coral-ui/components/v2";
import { ModerationActionBanContainer_user } from "coral-stream/__generated__/ModerationActionBanContainer_user.graphql";
diff --git a/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionsContainer.css b/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionsContainer.css
index 8a37de0e0..8a2b10778 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionsContainer.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/ModerationActionsContainer.css
@@ -1,25 +1,25 @@
-$commentsModerationApprovedColor: var(--v2-colors-green-500);
-$commentsModerationRejectedColor: var(--v2-colors-red-500);
-$commentsModerationFeaturedColor: var(--v2-colors-stream-blue-500);
+$commentsModerationApprovedColor: var(--palette-success-500);
+$commentsModerationRejectedColor: var(--palette-error-500);
+$commentsModerationFeaturedColor: var(--palette-primary-500);
.label {
- color: var(--v2-colors-mono-500);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ color: var(--palette-text-500);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
text-align: left;
}
.featured {
color: $commentsModerationFeaturedColor;
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
}
.approved {
color: $commentsModerationApprovedColor;
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
&:disabled {
opacity: 1.0;
}
@@ -32,7 +32,7 @@ $commentsModerationFeaturedColor: var(--v2-colors-stream-blue-500);
.rejected {
color: $commentsModerationRejectedColor;
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
&:disabled {
opacity: 1.0;
}
@@ -44,21 +44,21 @@ $commentsModerationFeaturedColor: var(--v2-colors-stream-blue-500);
}
.link {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-stream-blue-500);
+ color: var(--palette-primary-500);
text-decoration: underline;
}
.mouseHover {
- background-color: var(--v2-colors-stream-blue-100);
+ background-color: var(--palette-primary-100);
}
.linkIcon {
padding-top: 1px;
- color: var(--v2-colors-stream-blue-500);
+ color: var(--palette-primary-500);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/RejectedTombstoneContainer.css b/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/RejectedTombstoneContainer.css
index 6d13f511a..c6d47a18f 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/RejectedTombstoneContainer.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ModerationDropdown/RejectedTombstoneContainer.css
@@ -1,3 +1,3 @@
.icon {
- margin-left: var(--v2-spacing-1);
+ margin-left: var(--spacing-1);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkButton.css b/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkButton.css
new file mode 100644
index 000000000..c5e6dca24
--- /dev/null
+++ b/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkButton.css
@@ -0,0 +1,3 @@
+.icon {
+ margin-right: var(--spacing-1);
+}
diff --git a/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkButton.tsx b/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkButton.tsx
index fce44d509..bd302bd32 100644
--- a/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkButton.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkButton.tsx
@@ -2,15 +2,18 @@ import { Localized } from "@fluent/react/compat";
import React, { FunctionComponent } from "react";
import {
- Button,
ClickOutside,
+ Flex,
Icon,
MatchMedia,
Popover,
} from "coral-ui/components/v2";
+import { Button } from "coral-ui/components/v3";
import PermalinkPopover from "./PermalinkPopover";
+import styles from "./PermalinkButton.css";
+
interface PermalinkProps {
commentID: string;
url: string;
@@ -53,18 +56,21 @@ const Permalink: FunctionComponent = ({
onClick={toggleVisibility}
aria-controls={popoverID}
ref={ref}
- variant="text"
active={visible}
- size="regular"
- color="mono"
- className={className}
+ variant="flat"
+ color="secondary"
+ fontSize="small"
+ fontWeight="semiBold"
+ paddingSize="extraSmall"
>
- share
-
-
-
+
+ share
+
+
+
+
)}
diff --git a/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkPopover.css b/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkPopover.css
index b8b95231d..4498bf100 100644
--- a/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkPopover.css
+++ b/src/core/client/stream/tabs/Comments/Comment/PermalinkButton/PermalinkPopover.css
@@ -3,35 +3,35 @@
}
.buttonRoot {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
- padding-top: var(--v2-spacing-2);
- padding-bottom: var(--v2-spacing-2);
- padding-left: var(--v2-spacing-3);
- padding-right: var(--v2-spacing-3);
+ padding-top: var(--spacing-2);
+ padding-bottom: var(--spacing-2);
+ padding-left: var(--spacing-3);
+ padding-right: var(--spacing-3);
}
.icon {
- margin-right: var(--v2-spacing-1);
+ margin-right: var(--spacing-1);
}
.copy {
- background-color: var(--v2-colors-pure-white);
- color: var(--v2-colors-mono-500);
+ background-color: inherit;
+ color: var(--palette-text-500);
&:hovered, &.mouseHover {
- background-color: var(--v2-colors-stream-blue-100);
- color: var(--v2-colors-mono-500);
+ background-color: var(--palette-primary-100);
+ color: var(--palette-text-500);
}
}
.copied {
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-weight: var(--font-weight-primary-semi-bold);
- background-color: var(--v2-colors-green-100);
- color: var(--v2-colors-green-500);
+ background-color: var(--palette-success-100);
+ color: var(--palette-success-500);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReactionButton/CreateCommentReactionMutation.ts b/src/core/client/stream/tabs/Comments/Comment/ReactionButton/CreateCommentReactionMutation.ts
index 01bd45bdb..ba902ab87 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReactionButton/CreateCommentReactionMutation.ts
+++ b/src/core/client/stream/tabs/Comments/Comment/ReactionButton/CreateCommentReactionMutation.ts
@@ -11,9 +11,9 @@ import {
MutationResponsePromise,
} from "coral-framework/lib/relay";
import { GQLComment } from "coral-framework/schema";
+import { CreateCommentReactionEvent } from "coral-stream/events";
import { CreateCommentReactionMutation as MutationTypes } from "coral-stream/__generated__/CreateCommentReactionMutation.graphql";
-import { CreateCommentReactionEvent } from "coral-stream/events";
export type CreateCommentReactionInput = MutationInput;
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReactionButton/ReactionButton.css b/src/core/client/stream/tabs/Comments/Comment/ReactionButton/ReactionButton.css
index cedfefe81..93c2565a1 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReactionButton/ReactionButton.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ReactionButton/ReactionButton.css
@@ -1,6 +1,6 @@
.readOnly {
cursor: not-allowed !important;
- color: var(--palette-text-primary) !important;
+ color: var(--palette-text-500) !important;
opacity: 1 !important;
}
@@ -9,6 +9,14 @@
}
.reacted {
- color: var(--v2-colors-stream-blue-500);
- font-weight: var(--v2-font-weight-primary-bold);
+ color: var(--palette-primary-500);
+ font-weight: var(--font-weight-primary-bold);
+}
+
+.icon {
+ margin-right: var(--spacing-1);
+}
+
+.totalReactions {
+ margin-left: var(--spacing-1);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReactionButton/ReactionButton.tsx b/src/core/client/stream/tabs/Comments/Comment/ReactionButton/ReactionButton.tsx
index 7c880775d..b77231924 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReactionButton/ReactionButton.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/ReactionButton/ReactionButton.tsx
@@ -2,8 +2,8 @@ import { Localized } from "@fluent/react/compat";
import cn from "classnames";
import React from "react";
-import { Button, Icon, MatchMedia } from "coral-ui/components/v2";
-import { ButtonProps } from "coral-ui/components/v2/Button";
+import { Flex, Icon, MatchMedia } from "coral-ui/components/v2";
+import { Button } from "coral-ui/components/v3";
import styles from "./ReactionButton.css";
@@ -17,7 +17,6 @@ interface ReactionButtonProps {
iconActive: string | null;
readOnly?: boolean;
className?: string;
- color?: typeof styles & ButtonProps["color"];
isQA?: boolean;
}
@@ -36,41 +35,48 @@ function render(props: ReactionButtonProps) {
return (
- {props.isQA ? (
- arrow_upward
- ) : (
-
- {reacted ? (iconActive ? iconActive : icon) : icon}
-
- )}
-
+
{props.isQA ? (
-
- {reacted ? (
- Voted
- ) : (
- Vote
- )}
-
+ arrow_upward
) : (
-
- {reacted ? labelActive : label}
+
+ {reacted ? (iconActive ? iconActive : icon) : icon}
+
+ )}
+
+ {props.isQA ? (
+
+ {reacted ? (
+ Voted
+ ) : (
+ Vote
+ )}
+
+ ) : (
+
+ {reacted ? labelActive : label}
+
+ )}
+
+ {!!totalReactions && (
+
+ {totalReactions}
)}
-
-
- {!!totalReactions && (
- {totalReactions}
- )}
+
);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReplyButton.css b/src/core/client/stream/tabs/Comments/Comment/ReplyButton.css
index c8dbfd977..c5e6dca24 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReplyButton.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ReplyButton.css
@@ -1 +1,3 @@
-.root {}
\ No newline at end of file
+.icon {
+ margin-right: var(--spacing-1);
+}
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReplyButton.tsx b/src/core/client/stream/tabs/Comments/Comment/ReplyButton.tsx
index 64919bd52..c4b80bb95 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReplyButton.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/ReplyButton.tsx
@@ -1,7 +1,10 @@
import { Localized } from "@fluent/react/compat";
import React, { EventHandler, FunctionComponent, MouseEvent } from "react";
-import { Button, Icon, MatchMedia } from "coral-ui/components/v2";
+import { Flex, Icon, MatchMedia } from "coral-ui/components/v2";
+import { Button } from "coral-ui/components/v3";
+
+import styles from "./ReplyButton.css";
interface Props {
id?: string;
@@ -17,19 +20,23 @@ const ReplyButton: FunctionComponent = (props) => (
className={props.className}
id={props.id}
onClick={props.onClick}
- variant="text"
- color="mono"
- size="regular"
- active={props.active}
disabled={props.disabled}
data-testid="comment-reply-button"
+ active={props.active}
+ variant="flat"
+ color="secondary"
+ fontSize="small"
+ fontWeight="semiBold"
+ paddingSize="extraSmall"
>
- reply
-
-
-
+
+ reply
+
+
+
+
);
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReplyCommentForm/ReplyCommentForm.css b/src/core/client/stream/tabs/Comments/Comment/ReplyCommentForm/ReplyCommentForm.css
index 811a74d9a..1bd06c886 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReplyCommentForm/ReplyCommentForm.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ReplyCommentForm/ReplyCommentForm.css
@@ -1,11 +1,15 @@
+$commentsBorder: var(--palette-grey-300);
+
.rteContent {
border-top-left-radius: 0px;
border-top-right-radius: 0px;
}
-$commentsBorder: var(--v2-colors-grey-300);
+.warnIcon {
+ color: var(--palette-text-500);
+}
.commentFormBox {
border: 1px solid $commentsBorder;
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReplyCommentForm/ReplyTo.css b/src/core/client/stream/tabs/Comments/Comment/ReplyCommentForm/ReplyTo.css
index d633bbb7a..819efbf36 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReplyCommentForm/ReplyTo.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ReplyCommentForm/ReplyTo.css
@@ -1,6 +1,6 @@
-$commentsReplyToBackground: var(--v2-colors-grey-500);
-$commentsReplyToColor: var(--v2-colors-pure-white);
-$commentsReplyToBorderColor: var(--v2-colors-grey-500);
+$commentsReplyToBackground: var(--palette-grey-500);
+$commentsReplyToColor: var(--palette-text-000);
+$commentsReplyToBorderColor: var(--palette-grey-500);
.root {
padding: calc(0.5 * var(--mini-unit));
@@ -11,24 +11,24 @@ $commentsReplyToBorderColor: var(--v2-colors-grey-500);
background-color: $commentsReplyToBackground;
color: $commentsReplyToColor;
- border-top-left-radius: var(--v2-round-corners);
- border-top-right-radius: var(--v2-round-corners);
+ border-top-left-radius: var(--round-corners);
+ border-top-right-radius: var(--round-corners);
}
.text {
color: $commentsReplyToColor;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-2);
}
.username {
color: $commentsReplyToColor;
- font-family: var(--v2-font-family-secondary);
- font-weight: var(--v2-font-weight-secondary-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-2);
+ font-family: var(--font-family-secondary);
+ font-weight: var(--font-weight-secondary-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-2);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportButton.css b/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportButton.css
index 384b0f4c0..3d24e2885 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportButton.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportButton.css
@@ -1,12 +1,12 @@
.icon {
- margin-right: var(--v2-spacing-1);
+ margin-right: var(--spacing-1);
}
.reported {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-red-500);
+ color: var(--palette-error-500);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportButton.tsx b/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportButton.tsx
index a07a0d08c..2a0cad515 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportButton.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportButton.tsx
@@ -83,7 +83,7 @@ const ReportButton: FunctionComponent = ({
onClick={isLoggedIn ? onClickReport : signIn}
data-testid="comment-report-button"
>
-
+
flag
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportCommentForm.css b/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportCommentForm.css
index a853d0c35..1ab4c0d9c 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportCommentForm.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportCommentForm.css
@@ -1,45 +1,45 @@
.root {
- background-color: var(--v2-colors-grey-100);
- padding: var(--v2-spacing-3);
+ background-color: var(--palette-grey-100);
+ padding: var(--spacing-3);
}
.title {
display: block;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-3);
+ margin-bottom: var(--spacing-3);
}
.heading {
display: block;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-1);
+ margin-bottom: var(--spacing-1);
}
.detail {
display: inline-block;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-1);
+ margin-bottom: var(--spacing-1);
}
.list {
@@ -47,35 +47,43 @@
padding: 0;
margin: 0;
- margin-top: var(--v2-spacing-2);
- margin-bottom: var(--v2-spacing-3);
+ margin-top: var(--spacing-2);
+ margin-bottom: var(--spacing-3);
}
.textAreaContainer {
- margin-top: var(--v2-spacing-2);
- margin-bottom: var(--v2-spacing-3);
+ margin-top: var(--spacing-2);
+ margin-bottom: var(--spacing-3);
}
.textareaInfo {
margin-top: -2px;
text-align: right;
+
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
+
+ color: var(--palette-text-100);
}
.textarea {
width: 100%;
height: 60px;
box-sizing: border-box;
- border: 1px solid var(--v2-colors-grey-300);
- border-radius: var(--v2-round-corners);
+ border: 1px solid var(--palette-grey-300);
+ border-radius: var(--round-corners);
+ padding: var(--spacing-1);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
}
.cancel {
- margin-right: var(--v2-spacing-2);
+ margin-right: var(--spacing-2);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportCommentForm.tsx b/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportCommentForm.tsx
index 046d068ac..affff6872 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportCommentForm.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/ReportFlow/ReportCommentForm.tsx
@@ -5,7 +5,10 @@ import React, { FunctionComponent } from "react";
import { Field, FieldProps, Form } from "react-final-form";
import { OnSubmit } from "coral-framework/lib/form";
-import { validateMaxLength } from "coral-framework/lib/validation";
+import {
+ customMessage,
+ validateMaxLength,
+} from "coral-framework/lib/validation";
import CLASSES from "coral-stream/classes";
import { Flex, RadioButton } from "coral-ui/components/v2";
import { Button, ValidationMessage } from "coral-ui/components/v3";
@@ -150,34 +153,42 @@ class ReportCommentForm extends React.Component {
)}
diff --git a/src/core/client/stream/tabs/Comments/Comment/RootParent.tsx b/src/core/client/stream/tabs/Comments/Comment/RootParent.tsx
index e789aa76a..c2b8b73a7 100644
--- a/src/core/client/stream/tabs/Comments/Comment/RootParent.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/RootParent.tsx
@@ -2,7 +2,7 @@ import React, { FunctionComponent } from "react";
import CLASSES from "coral-stream/classes";
import Timestamp from "coral-stream/common/Timestamp";
-import { Flex } from "coral-ui/components";
+import { Flex } from "coral-ui/components/v2";
import TopBarLeft from "./TopBarLeft";
import Username from "./Username";
diff --git a/src/core/client/stream/tabs/Comments/Comment/ShowConversationLink.css b/src/core/client/stream/tabs/Comments/Comment/ShowConversationLink.css
index 795c33462..e2cf2f594 100644
--- a/src/core/client/stream/tabs/Comments/Comment/ShowConversationLink.css
+++ b/src/core/client/stream/tabs/Comments/Comment/ShowConversationLink.css
@@ -1,6 +1,6 @@
-$commentsConversationLinkColor: var(--v2-colors-stream-blue-500);
-$commentsConversationLinkColorHovered: var(--v2-colors-stream-blue-700);
-$commentsConversationLinkColorActive: var(--v2-colors-stream-blue-800);
+$commentsConversationLinkColor: var(--palette-primary-500);
+$commentsConversationLinkColorHovered: var(--palette-primary-700);
+$commentsConversationLinkColorActive: var(--palette-primary-800);
.conversationLink {
&.colorRegular {
diff --git a/src/core/client/stream/tabs/Comments/Comment/TopBarLeft.spec.tsx b/src/core/client/stream/tabs/Comments/Comment/TopBarLeft.spec.tsx
index e003a6019..c1481e6b4 100644
--- a/src/core/client/stream/tabs/Comments/Comment/TopBarLeft.spec.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/TopBarLeft.spec.tsx
@@ -2,7 +2,7 @@ import React from "react";
import TestRenderer from "react-test-renderer";
import { PropTypesOf } from "coral-framework/types";
-import { UIContext, UIContextProps } from "coral-ui/components";
+import { UIContext, UIContextProps } from "coral-ui/components/v2";
import TopBarLeft from "./TopBarLeft";
diff --git a/src/core/client/stream/tabs/Comments/Comment/TopBarLeft.tsx b/src/core/client/stream/tabs/Comments/Comment/TopBarLeft.tsx
index b8ceea506..97c084656 100644
--- a/src/core/client/stream/tabs/Comments/Comment/TopBarLeft.tsx
+++ b/src/core/client/stream/tabs/Comments/Comment/TopBarLeft.tsx
@@ -1,7 +1,7 @@
import cn from "classnames";
import React, { FunctionComponent } from "react";
-import { Flex, MatchMedia } from "coral-ui/components";
+import { Flex, MatchMedia } from "coral-ui/components/v2";
export interface TopBarLeftProps {
className?: string;
diff --git a/src/core/client/stream/tabs/Comments/Comment/UserBanPopover/UserBanPopoverContainer.css b/src/core/client/stream/tabs/Comments/Comment/UserBanPopover/UserBanPopoverContainer.css
index a53fe202d..cd0fc4e81 100644
--- a/src/core/client/stream/tabs/Comments/Comment/UserBanPopover/UserBanPopoverContainer.css
+++ b/src/core/client/stream/tabs/Comments/Comment/UserBanPopover/UserBanPopoverContainer.css
@@ -4,25 +4,25 @@
}
.title {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-3);
+ margin-bottom: var(--spacing-3);
}
.description {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
}
.actions {
- padding-top: var(--v2-spacing-3);
+ padding-top: var(--spacing-3);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/UserIgnorePopover/UserIgnorePopoverContainer.css b/src/core/client/stream/tabs/Comments/Comment/UserIgnorePopover/UserIgnorePopoverContainer.css
index 47d6771a2..34cf0d765 100644
--- a/src/core/client/stream/tabs/Comments/Comment/UserIgnorePopover/UserIgnorePopoverContainer.css
+++ b/src/core/client/stream/tabs/Comments/Comment/UserIgnorePopover/UserIgnorePopoverContainer.css
@@ -4,21 +4,21 @@
}
.title {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
- color: var(--v2-colors-mono-500);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-3);
+ margin-bottom: var(--spacing-3);
}
.description {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
- color: var(--v2-colors-mono-500);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-500);
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/UserPopover/UserPopoverOverviewContainer.css b/src/core/client/stream/tabs/Comments/Comment/UserPopover/UserPopoverOverviewContainer.css
index 9424861b0..a5cc67d14 100644
--- a/src/core/client/stream/tabs/Comments/Comment/UserPopover/UserPopoverOverviewContainer.css
+++ b/src/core/client/stream/tabs/Comments/Comment/UserPopover/UserPopoverOverviewContainer.css
@@ -1,13 +1,13 @@
.root {
min-width: 192px;
max-width: 80vw;
- padding: var(--v2-spacing-3);
+ padding: var(--spacing-3);
}
.memberSince {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-2);
- color: var(--v2-colors-mono-500);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-2);
+ color: var(--palette-text-500);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/UserTagsContainer.css b/src/core/client/stream/tabs/Comments/Comment/UserTagsContainer.css
index 391a9559c..482007a8f 100644
--- a/src/core/client/stream/tabs/Comments/Comment/UserTagsContainer.css
+++ b/src/core/client/stream/tabs/Comments/Comment/UserTagsContainer.css
@@ -1,8 +1,8 @@
.icon {
- margin-right: var(--v2-spacing-1);
+ margin-right: var(--spacing-1);
}
.tag {
- margin-right: var(--v2-spacing-1);
- font-weight: var(--v2-font-weight-primary-bold);
+ margin-right: var(--spacing-1);
+ font-weight: var(--font-weight-primary-bold);
}
diff --git a/src/core/client/stream/tabs/Comments/Comment/Username/Username.css b/src/core/client/stream/tabs/Comments/Comment/Username/Username.css
index 3d8799ddd..132bf75b8 100644
--- a/src/core/client/stream/tabs/Comments/Comment/Username/Username.css
+++ b/src/core/client/stream/tabs/Comments/Comment/Username/Username.css
@@ -1,11 +1,11 @@
.root {
line-height: 1;
- font-family: var(--v2-font-family-secondary);
+ font-family: var(--font-family-secondary);
font-style: normal;
font-weight: bold;
- font-size: var(--v2-font-size-4);
- line-height: var(--v2-line-height-4);
+ font-size: var(--font-size-4);
+ line-height: var(--line-height-4);
}
.popover {
diff --git a/src/core/client/stream/tabs/Comments/Comment/__snapshots__/IndentedComment.spec.tsx.snap b/src/core/client/stream/tabs/Comments/Comment/__snapshots__/IndentedComment.spec.tsx.snap
index 4c56d941e..144df58ec 100644
--- a/src/core/client/stream/tabs/Comments/Comment/__snapshots__/IndentedComment.spec.tsx.snap
+++ b/src/core/client/stream/tabs/Comments/Comment/__snapshots__/IndentedComment.spec.tsx.snap
@@ -9,25 +9,6 @@ exports[`renders correctly 1`] = `
alignItems="flex-start"
spacing={1}
>
-
-
- reply
-
-
-
-
+ reply
+
+
+
+
+
`;
diff --git a/src/core/client/stream/tabs/Comments/Comment/__snapshots__/TopBarLeft.spec.tsx.snap b/src/core/client/stream/tabs/Comments/Comment/__snapshots__/TopBarLeft.spec.tsx.snap
index 6b9941c63..6b535aff8 100644
--- a/src/core/client/stream/tabs/Comments/Comment/__snapshots__/TopBarLeft.spec.tsx.snap
+++ b/src/core/client/stream/tabs/Comments/Comment/__snapshots__/TopBarLeft.spec.tsx.snap
@@ -2,7 +2,7 @@
exports[`renders correctly on big screens 1`] = `
Hello World
diff --git a/src/core/client/stream/tabs/Comments/GifSelector/GifPreview.css b/src/core/client/stream/tabs/Comments/GifSelector/GifPreview.css
index 8bcf94852..37cc92cc3 100644
--- a/src/core/client/stream/tabs/Comments/GifSelector/GifPreview.css
+++ b/src/core/client/stream/tabs/Comments/GifSelector/GifPreview.css
@@ -1,11 +1,11 @@
.root {
- padding: var(--v2-spacing-2);
+ padding: var(--spacing-2);
padding-top: 0;
}
.imageWrapper {
- padding-top: var(--v2-spacing-2);
- border-top: 1px solid var(--v2-colors-grey-200);
+ padding-top: var(--spacing-2);
+ border-top: 1px solid var(--palette-grey-200);
position: relative;
display: inline-block;
}
diff --git a/src/core/client/stream/tabs/Comments/GifSelector/GifSelector.css b/src/core/client/stream/tabs/Comments/GifSelector/GifSelector.css
index d6635106e..d80654ef9 100644
--- a/src/core/client/stream/tabs/Comments/GifSelector/GifSelector.css
+++ b/src/core/client/stream/tabs/Comments/GifSelector/GifSelector.css
@@ -1,5 +1,5 @@
.root {
- padding: var(--v2-spacing-2);
+ padding: var(--spacing-2);
}
.input {
@@ -13,22 +13,22 @@
}
.noResults {
- font-family: var(--v2-font-family-primary);
- font-size: var(--v2-font-size-3);
- color: var(--v2-colors-mono-100);
+ font-family: var(--font-family-primary);
+ font-size: var(--font-size-3);
+ color: var(--palette-text-100);
}
.loading {
- font-family: var(--v2-font-family-primary);
- font-size: var(--v2-font-size-3);
- color: var(--v2-colors-mono-100);
+ font-family: var(--font-family-primary);
+ font-size: var(--font-size-3);
+ color: var(--palette-text-100);
text-align: center;
}
.error {
- font-family: var(--v2-font-family-primary);
- font-size: var(--v2-font-size-3);
- color: var(--v2-colors-red-500);
+ font-family: var(--font-family-primary);
+ font-size: var(--font-size-3);
+ color: var(--palette-error-500);
}
.results {
diff --git a/src/core/client/stream/tabs/Comments/IgnoredTombstoneOrHideContainer.css b/src/core/client/stream/tabs/Comments/IgnoredTombstoneOrHideContainer.css
index 968fa8d80..212969c1d 100644
--- a/src/core/client/stream/tabs/Comments/IgnoredTombstoneOrHideContainer.css
+++ b/src/core/client/stream/tabs/Comments/IgnoredTombstoneOrHideContainer.css
@@ -1,5 +1,5 @@
.showCommentButton {
- margin-top: var(--v2-spacing-3);
+ margin-top: var(--spacing-3);
}
.outlined {
@@ -10,24 +10,24 @@
&:not(.disabled),
&:not(:disabled) {
background-color: transparent;
- border-color: var(--v2-colors-grey-500);
- color: var(--v2-colors-grey-500);
+ border-color: var(--palette-grey-500);
+ color: var(--palette-grey-500);
}
&:hover, &.mouseHover {
- background-color: var(--v2-colors-grey-500);
- border-color: var(--v2-colors-grey-500);
- color: var(--v2-colors-pure-white);
+ background-color: var(--palette-grey-500);
+ border-color: var(--palette-grey-500);
+ color: var(--palette-text-000);
}
&:active, &.active {
- background-color: var(--v2-colors-grey-600);
- border-color: var(--v2-colors-grey-600);
- color: var(--v2-colors-pure-white);
+ background-color: var(--palette-grey-600);
+ border-color: var(--palette-grey-600);
+ color: var(--palette-text-000);
}
&.disabled {
- background-color: var(--v2-colors-pure-white);
- border-color: var(--v2-colors-grey-400);
- color: var(--v2-colors-grey-400);
+ background-color: inherit;
+ border-color: var(--palette-grey-400);
+ color: var(--palette-grey-400);
}
}
}
diff --git a/src/core/client/stream/tabs/Comments/Indent.css b/src/core/client/stream/tabs/Comments/Indent.css
index e0745f802..b5c81d627 100644
--- a/src/core/client/stream/tabs/Comments/Indent.css
+++ b/src/core/client/stream/tabs/Comments/Indent.css
@@ -5,36 +5,36 @@
}
.open {
- padding-left: var(--v2-spacing-1);
+ padding-left: var(--spacing-1);
}
.level1 {
- margin-left: var(--v2-spacing-5);
- border-left: 2px solid var(--v2-colors-grey-600);
+ margin-left: var(--spacing-5);
+ border-left: 2px solid var(--palette-grey-600);
}
.level2 {
- margin-left: calc(var(--v2-spacing-5) + var(--v2-spacing-2));
- border-left: 2px solid var(--v2-colors-grey-500);
+ margin-left: calc(var(--spacing-5) + var(--spacing-2));
+ border-left: 2px solid var(--palette-grey-500);
}
.level3 {
- margin-left: calc(var(--v2-spacing-5) + 2 * var(--v2-spacing-2));
+ margin-left: calc(var(--spacing-5) + 2 * var(--spacing-2));
border-left: 2px solid #8e9ba5;
}
.level4 {
- margin-left: calc(var(--v2-spacing-5) + 3 * var(--v2-spacing-2));
+ margin-left: calc(var(--spacing-5) + 3 * var(--spacing-2));
border-left: 2px solid #b8bcbd;
}
.level5 {
- margin-left: calc(var(--v2-spacing-5) + 4 * var(--v2-spacing-2));
+ margin-left: calc(var(--spacing-5) + 4 * var(--spacing-2));
border-left: 2px solid #cccfd0;
}
.level6 {
- margin-left: calc(var(--v2-spacing-5) + 5 * var(--v2-spacing-2));
+ margin-left: calc(var(--spacing-5) + 5 * var(--spacing-2));
border-left: 2px solid #e1e2e3;
}
diff --git a/src/core/client/stream/tabs/Comments/PermalinkView/ConversationThreadContainer.css b/src/core/client/stream/tabs/Comments/PermalinkView/ConversationThreadContainer.css
index a8e0f8de1..27e1f608a 100644
--- a/src/core/client/stream/tabs/Comments/PermalinkView/ConversationThreadContainer.css
+++ b/src/core/client/stream/tabs/Comments/PermalinkView/ConversationThreadContainer.css
@@ -2,32 +2,32 @@
}
.rootParent {
- padding-bottom: var(--v2-spacing-2);
+ padding-bottom: var(--spacing-2);
}
.parentList {
- padding-bottom: var(--v2-spacing-2);
+ padding-bottom: var(--spacing-2);
}
.parentContainer {
- margin-bottom: var(--v2-spacing-2);
+ margin-bottom: var(--spacing-2);
}
.targetComment {
- margin-left: calc(var(--v2-spacing-4) - 1.5px);
+ margin-left: calc(var(--spacing-4) - 1.5px);
}
.loadMore {
- padding-left: var(--v2-spacing-2);
- padding-bottom: var(--v2-spacing-2);
+ padding-left: var(--spacing-2);
+ padding-bottom: var(--spacing-2);
}
.showMoreContainer {
margin-left: -7px;
- padding-bottom: var(--v2-spacing-2);
+ padding-bottom: var(--spacing-2);
}
.showMoreIcon {
- color: var(--v2-colors-mono-100);
+ color: var(--palette-text-100);
}
diff --git a/src/core/client/stream/tabs/Comments/PermalinkView/PermalinkView.css b/src/core/client/stream/tabs/Comments/PermalinkView/PermalinkView.css
index 4a87098ca..a62fee8f6 100644
--- a/src/core/client/stream/tabs/Comments/PermalinkView/PermalinkView.css
+++ b/src/core/client/stream/tabs/Comments/PermalinkView/PermalinkView.css
@@ -8,30 +8,30 @@
}
.header {
- padding-top: var(--v2-spacing-2);
- padding-bottom: var(--v2-spacing-2);
+ padding-top: var(--spacing-2);
+ padding-bottom: var(--spacing-2);
}
.title {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
text-align: center;
}
@media (min-width: $breakpoints-xs) {
.title {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
font-style: normal;
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
}
}
diff --git a/src/core/client/stream/tabs/Comments/PermalinkView/PermalinkViewQuery.tsx b/src/core/client/stream/tabs/Comments/PermalinkView/PermalinkViewQuery.tsx
index 78c08a351..ed507d19f 100644
--- a/src/core/client/stream/tabs/Comments/PermalinkView/PermalinkViewQuery.tsx
+++ b/src/core/client/stream/tabs/Comments/PermalinkView/PermalinkViewQuery.tsx
@@ -7,9 +7,8 @@ import {
QueryRenderer,
withLocalStateContainer,
} from "coral-framework/lib/relay";
-import Spinner from "coral-stream/common/Spinner";
import useHandleIncompleteAccount from "coral-stream/common/useHandleIncompleteAccount";
-import { Delay } from "coral-ui/components";
+import { Delay, Spinner } from "coral-ui/components/v2";
import { PermalinkViewQuery as QueryTypes } from "coral-stream/__generated__/PermalinkViewQuery.graphql";
import { PermalinkViewQueryLocal as Local } from "coral-stream/__generated__/PermalinkViewQueryLocal.graphql";
diff --git a/src/core/client/stream/tabs/Comments/PermalinkView/Timeline/Circle.css b/src/core/client/stream/tabs/Comments/PermalinkView/Timeline/Circle.css
index bb9c9b696..3f66c5570 100644
--- a/src/core/client/stream/tabs/Comments/PermalinkView/Timeline/Circle.css
+++ b/src/core/client/stream/tabs/Comments/PermalinkView/Timeline/Circle.css
@@ -7,11 +7,11 @@
display: flex;
justify-content: center;
align-items: center;
- left: calc(-1 * var(--v2-spacing-2) - var(--v2-spacing-2) - 1px);
- background-color: var(--v2-colors-pure-white);
- width: calc(2 * var(--v2-spacing-2));
+ left: calc(-1 * var(--spacing-2) - var(--spacing-2) - 1px);
+ background-color: $colors-pure-white;
+ width: calc(2 * var(--spacing-2));
height: 23px;
- color: var(--v2-colors-grey-500);
+ color: var(--palette-grey-500);
}
.end {
@@ -24,8 +24,8 @@
}
.circle {
- width: var(--v2-spacing-2);
- height: var(--v2-spacing-2);
+ width: var(--spacing-2);
+ height: var(--spacing-2);
fill: currentColor;
stroke: currentColor;
}
diff --git a/src/core/client/stream/tabs/Comments/PermalinkView/Timeline/Line.css b/src/core/client/stream/tabs/Comments/PermalinkView/Timeline/Line.css
index 95d2c5fc4..b8276764d 100644
--- a/src/core/client/stream/tabs/Comments/PermalinkView/Timeline/Line.css
+++ b/src/core/client/stream/tabs/Comments/PermalinkView/Timeline/Line.css
@@ -1,7 +1,7 @@
.root {
- border-left: 2px solid var(--v2-colors-grey-500);
- padding-left: var(--v2-spacing-2);
- margin-left: calc(0.5 * var(--v2-spacing-2));
+ border-left: 2px solid var(--palette-grey-500);
+ padding-left: var(--spacing-2);
+ margin-left: calc(0.5 * var(--spacing-2));
}
.dotted {
diff --git a/src/core/client/stream/tabs/Comments/PermalinkView/__snapshots__/PermalinkView.spec.tsx.snap b/src/core/client/stream/tabs/Comments/PermalinkView/__snapshots__/PermalinkView.spec.tsx.snap
index 283c4492b..4aa95f07c 100644
--- a/src/core/client/stream/tabs/Comments/PermalinkView/__snapshots__/PermalinkView.spec.tsx.snap
+++ b/src/core/client/stream/tabs/Comments/PermalinkView/__snapshots__/PermalinkView.spec.tsx.snap
@@ -27,7 +27,7 @@ exports[`renders comment not found 1`] = `
@@ -80,7 +80,7 @@ exports[`renders correctly 1`] = `
diff --git a/src/core/client/stream/tabs/Comments/PermalinkView/__snapshots__/PermalinkViewQuery.spec.tsx.snap b/src/core/client/stream/tabs/Comments/PermalinkView/__snapshots__/PermalinkViewQuery.spec.tsx.snap
index 121051467..45a9c24f5 100644
--- a/src/core/client/stream/tabs/Comments/PermalinkView/__snapshots__/PermalinkViewQuery.spec.tsx.snap
+++ b/src/core/client/stream/tabs/Comments/PermalinkView/__snapshots__/PermalinkViewQuery.spec.tsx.snap
@@ -10,7 +10,7 @@ exports[`renders loading 1`] = `
-
+
`;
diff --git a/src/core/client/stream/tabs/Comments/RTE/RTE.css b/src/core/client/stream/tabs/Comments/RTE/RTE.css
index 879d8f6ca..86d654eef 100644
--- a/src/core/client/stream/tabs/Comments/RTE/RTE.css
+++ b/src/core/client/stream/tabs/Comments/RTE/RTE.css
@@ -1,6 +1,6 @@
-$commentsRTEBorder: var(--v2-colors-grey-300);
-$commentsRTEContentBackground: var(--v2-colors-pure-white);
-$commentsRTEPlaceholder: var(--v2-colors-grey-400);
+$commentsRTEBorder: var(--palette-grey-300);
+$commentsRTEContentBackground: var(--palette-background-input);
+$commentsRTEPlaceholder: var(--palette-text-placeholder);
.container {
background-color: transparent;
@@ -8,6 +8,7 @@ $commentsRTEPlaceholder: var(--v2-colors-grey-400);
.content {
composes: root from "~coral-stream/shared/htmlContent.css";
+
border: 0;
& :global(.coral-rte-spoiler) {
@@ -20,8 +21,10 @@ $commentsRTEPlaceholder: var(--v2-colors-grey-400);
.toolbar {
background-color: $commentsRTEContentBackground;
+
border: 0;
}
+
.toolbarHidden {
display: none;
}
@@ -29,11 +32,16 @@ $commentsRTEPlaceholder: var(--v2-colors-grey-400);
.placeholder {
margin: 10px 0 0 calc(10px);
- border-radius: var(--v2-rounded-corners);
+ border-radius: var(--rounded-corners);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-6);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-6);
color: $commentsRTEPlaceholder;
}
+
+.disabled {
+ background: var(--palette-background-input-disabled);
+ color: var(--palette-text-input-disabled);
+}
diff --git a/src/core/client/stream/tabs/Comments/RTE/RTE.tsx b/src/core/client/stream/tabs/Comments/RTE/RTE.tsx
index 1a9fdac16..6487e68da 100644
--- a/src/core/client/stream/tabs/Comments/RTE/RTE.tsx
+++ b/src/core/client/stream/tabs/Comments/RTE/RTE.tsx
@@ -19,7 +19,7 @@ import React, {
import { createSanitize } from "coral-common/helpers/sanitize";
import CLASSES from "coral-stream/classes";
-import { Icon } from "coral-ui/components";
+import { Icon } from "coral-ui/components/v2";
import { PropTypesOf } from "coral-ui/types";
import styles from "./RTE.css";
@@ -273,6 +273,7 @@ const RTE: FunctionComponent = (props) => {
CLASSES.rte.container,
containerClassName
)}
+ contentClassNameDisabled={styles.disabled}
onChange={onChange}
value={value || defaultValue || "
"}
disabled={disabled}
diff --git a/src/core/client/stream/tabs/Comments/RTE/__snapshots__/RTE.spec.tsx.snap b/src/core/client/stream/tabs/Comments/RTE/__snapshots__/RTE.spec.tsx.snap
index 664d44cd7..5253646e0 100644
--- a/src/core/client/stream/tabs/Comments/RTE/__snapshots__/RTE.spec.tsx.snap
+++ b/src/core/client/stream/tabs/Comments/RTE/__snapshots__/RTE.spec.tsx.snap
@@ -6,7 +6,7 @@ exports[`renders correctly 1`] = `
className="$root content placeholder toolbar container custom"
classNameDisabled=""
contentClassName="coral coral-rte-content RTE-content"
- contentClassNameDisabled=""
+ contentClassNameDisabled="RTE-disabled"
contentContainerClassName="RTE-container coral coral-rte-container"
contentContainerClassNameDisabled=""
features={Array []}
diff --git a/src/core/client/stream/tabs/Comments/RemainingCharacters/RemainingCharacters.tsx b/src/core/client/stream/tabs/Comments/RemainingCharacters/RemainingCharacters.tsx
index 0c08e6790..e4a9a0d05 100644
--- a/src/core/client/stream/tabs/Comments/RemainingCharacters/RemainingCharacters.tsx
+++ b/src/core/client/stream/tabs/Comments/RemainingCharacters/RemainingCharacters.tsx
@@ -2,7 +2,7 @@ import { Localized } from "@fluent/react/compat";
import cn from "classnames";
import React, { FunctionComponent } from "react";
-import { Flex, Icon, Typography } from "coral-ui/components";
+import { Flex, Icon, Typography } from "coral-ui/components/v2";
interface Props {
className?: string;
diff --git a/src/core/client/stream/tabs/Comments/ReplyList/ReplyList.css b/src/core/client/stream/tabs/Comments/ReplyList/ReplyList.css
index 421602deb..96b87133e 100644
--- a/src/core/client/stream/tabs/Comments/ReplyList/ReplyList.css
+++ b/src/core/client/stream/tabs/Comments/ReplyList/ReplyList.css
@@ -3,5 +3,5 @@
}
.root {
- padding-bottom: var(--v2-spacing-1);
+ padding-bottom: var(--spacing-1);
}
diff --git a/src/core/client/stream/tabs/Comments/ReplyList/ReplyList.tsx b/src/core/client/stream/tabs/Comments/ReplyList/ReplyList.tsx
index 190f14600..662f35f07 100644
--- a/src/core/client/stream/tabs/Comments/ReplyList/ReplyList.tsx
+++ b/src/core/client/stream/tabs/Comments/ReplyList/ReplyList.tsx
@@ -5,7 +5,8 @@ import React, { FunctionComponent } from "react";
import FadeInTransition from "coral-framework/components/FadeInTransition";
import { PropTypesOf } from "coral-framework/types";
import CLASSES from "coral-stream/classes";
-import { Button, HorizontalGutter } from "coral-ui/components";
+import { HorizontalGutter } from "coral-ui/components/v2";
+import { Button } from "coral-ui/components/v3";
import CommentContainer from "../Comment";
import CollapsableComment from "../Comment/CollapsableComment";
@@ -103,6 +104,7 @@ const ReplyList: FunctionComponent = (props) => {
onClick={props.onShowAll}
disabled={props.disableShowAll}
variant="outlined"
+ color="secondary"
fullWidth
>
Show All Replies
@@ -118,6 +120,7 @@ const ReplyList: FunctionComponent = (props) => {
onClick={props.onViewNew}
className={CLASSES.replyList.showMoreReplies}
variant="outlined"
+ color="secondary"
fullWidth
>
Show More Replies
diff --git a/src/core/client/stream/tabs/Comments/ReplyList/__snapshots__/ReplyList.spec.tsx.snap b/src/core/client/stream/tabs/Comments/ReplyList/__snapshots__/ReplyList.spec.tsx.snap
index 5fe0adf74..afa64fc2a 100644
--- a/src/core/client/stream/tabs/Comments/ReplyList/__snapshots__/ReplyList.spec.tsx.snap
+++ b/src/core/client/stream/tabs/Comments/ReplyList/__snapshots__/ReplyList.spec.tsx.snap
@@ -112,6 +112,7 @@ exports[`when there is more disables load more button 1`] = `
-
- thumb_up
-
+
+ thumb_up
+
+
-
- thumb_up
-
+
+ thumb_up
+
+
-
-
- remove
-
-
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -410,23 +398,6 @@ exports[`renders permalink view 1`] = `
-
-
- remove
-
-
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -686,23 +662,6 @@ exports[`renders permalink view 1`] = `
-
-
- remove
-
-
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -1098,10 +1062,8 @@ exports[`renders permalink view 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -1385,10 +1354,8 @@ exports[`renders permalink view 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
diff --git a/src/core/client/stream/test/comments/permalink/__snapshots__/permalinkViewLoadMoreParents.spec.tsx.snap b/src/core/client/stream/test/comments/permalink/__snapshots__/permalinkViewLoadMoreParents.spec.tsx.snap
index 24dd717df..00ff1e775 100644
--- a/src/core/client/stream/test/comments/permalink/__snapshots__/permalinkViewLoadMoreParents.spec.tsx.snap
+++ b/src/core/client/stream/test/comments/permalink/__snapshots__/permalinkViewLoadMoreParents.spec.tsx.snap
@@ -45,23 +45,6 @@ exports[`renders conversation thread 1`] = `
-
-
- remove
-
-
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -362,23 +350,6 @@ exports[`renders conversation thread 1`] = `
-
-
- remove
-
-
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -659,23 +635,6 @@ exports[`shows more of this conversation 1`] = `
-
-
- remove
-
-
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -938,23 +902,6 @@ exports[`shows more of this conversation 1`] = `
-
-
- remove
-
-
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -1220,23 +1172,6 @@ exports[`shows more of this conversation 1`] = `
-
-
- remove
-
-
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
diff --git a/src/core/client/stream/test/comments/stream/__snapshots__/editComment.spec.tsx.snap b/src/core/client/stream/test/comments/stream/__snapshots__/editComment.spec.tsx.snap
index 788564b52..97910116c 100644
--- a/src/core/client/stream/test/comments/stream/__snapshots__/editComment.spec.tsx.snap
+++ b/src/core/client/stream/test/comments/stream/__snapshots__/editComment.spec.tsx.snap
@@ -160,10 +160,8 @@ exports[`cancel edit 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -755,7 +760,7 @@ exports[`edit a comment: optimistic response 1`] = `
>
@@ -1045,10 +1050,8 @@ exports[`edit a comment: render comment with edit button 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -1336,10 +1346,8 @@ exports[`edit a comment: server response 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -1618,10 +1633,8 @@ exports[`shows expiry message: edit form closed 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -1811,7 +1831,7 @@ exports[`shows expiry message: edit time expired 1`] = `
>
diff --git a/src/core/client/stream/test/comments/stream/__snapshots__/loadMore.spec.tsx.snap b/src/core/client/stream/test/comments/stream/__snapshots__/loadMore.spec.tsx.snap
index eb54a001b..59a267d3a 100644
--- a/src/core/client/stream/test/comments/stream/__snapshots__/loadMore.spec.tsx.snap
+++ b/src/core/client/stream/test/comments/stream/__snapshots__/loadMore.spec.tsx.snap
@@ -144,10 +144,8 @@ exports[`renders comment stream with load more button 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -404,10 +409,8 @@ exports[`renders comment stream with load more button 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -530,9 +540,7 @@ exports[`renders comment stream with load more button 1`] = `
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
diff --git a/src/core/client/stream/test/comments/stream/__snapshots__/postLocalReply.spec.tsx.snap b/src/core/client/stream/test/comments/stream/__snapshots__/postLocalReply.spec.tsx.snap
index 6d687c340..a14498767 100644
--- a/src/core/client/stream/test/comments/stream/__snapshots__/postLocalReply.spec.tsx.snap
+++ b/src/core/client/stream/test/comments/stream/__snapshots__/postLocalReply.spec.tsx.snap
@@ -161,10 +161,8 @@ exports[`post a reply: open reply form 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -667,10 +672,8 @@ exports[`post a reply: optimistic response 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -914,10 +923,8 @@ exports[`renders comment stream 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -1206,10 +1220,8 @@ exports[`renders comment stream 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -1498,10 +1517,8 @@ exports[`renders comment stream 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -1790,10 +1814,8 @@ exports[`renders comment stream 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
diff --git a/src/core/client/stream/test/comments/stream/__snapshots__/postReply.spec.tsx.snap b/src/core/client/stream/test/comments/stream/__snapshots__/postReply.spec.tsx.snap
index 6236ddfa3..edb0cd080 100644
--- a/src/core/client/stream/test/comments/stream/__snapshots__/postReply.spec.tsx.snap
+++ b/src/core/client/stream/test/comments/stream/__snapshots__/postReply.spec.tsx.snap
@@ -134,10 +134,8 @@ exports[`post a reply: open reply form 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -623,10 +628,8 @@ exports[`post a reply: optimistic response 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
diff --git a/src/core/client/stream/test/comments/stream/__snapshots__/reaction.spec.tsx.snap b/src/core/client/stream/test/comments/stream/__snapshots__/reaction.spec.tsx.snap
index dc52c709a..ef8668974 100644
--- a/src/core/client/stream/test/comments/stream/__snapshots__/reaction.spec.tsx.snap
+++ b/src/core/client/stream/test/comments/stream/__snapshots__/reaction.spec.tsx.snap
@@ -3,10 +3,8 @@
exports[`create and remove reaction: Respected 1`] = `
-
- thumb_up
-
- 1
+
+ thumb_up
+
+
+ 1
+
`;
@@ -33,10 +35,8 @@ exports[`create and remove reaction: Respected 1`] = `
exports[`create and remove reaction: Unrespected 1`] = `
-
- thumb_up
-
+
+ thumb_up
+
+
`;
diff --git a/src/core/client/stream/test/comments/stream/__snapshots__/renderCommunityGuidelines.spec.tsx.snap b/src/core/client/stream/test/comments/stream/__snapshots__/renderCommunityGuidelines.spec.tsx.snap
index f42820868..bf1ce4af6 100644
--- a/src/core/client/stream/test/comments/stream/__snapshots__/renderCommunityGuidelines.spec.tsx.snap
+++ b/src/core/client/stream/test/comments/stream/__snapshots__/renderCommunityGuidelines.spec.tsx.snap
@@ -163,9 +163,8 @@ exports[`renders comment stream with community guidelines 1`] = `
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -690,10 +694,8 @@ exports[`renders comment stream with community guidelines 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
diff --git a/src/core/client/stream/test/comments/stream/__snapshots__/renderMessageBox.spec.tsx.snap b/src/core/client/stream/test/comments/stream/__snapshots__/renderMessageBox.spec.tsx.snap
index 33c4a9e5b..a87862bc4 100644
--- a/src/core/client/stream/test/comments/stream/__snapshots__/renderMessageBox.spec.tsx.snap
+++ b/src/core/client/stream/test/comments/stream/__snapshots__/renderMessageBox.spec.tsx.snap
@@ -763,9 +763,8 @@ exports[`renders message box when not logged in 1`] = `
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -462,10 +467,8 @@ exports[`renders reply list 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -749,10 +759,8 @@ exports[`renders reply list 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -1039,10 +1054,8 @@ exports[`renders reply list 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
diff --git a/src/core/client/stream/test/comments/stream/__snapshots__/renderStream.spec.tsx.snap b/src/core/client/stream/test/comments/stream/__snapshots__/renderStream.spec.tsx.snap
index 49ad6d5c6..346c8ffa3 100644
--- a/src/core/client/stream/test/comments/stream/__snapshots__/renderStream.spec.tsx.snap
+++ b/src/core/client/stream/test/comments/stream/__snapshots__/renderStream.spec.tsx.snap
@@ -201,9 +201,8 @@ exports[`renders comment stream 1`] = `
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -734,10 +738,8 @@ exports[`renders comment stream 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
diff --git a/src/core/client/stream/test/comments/stream/__snapshots__/reportComment.spec.tsx.snap b/src/core/client/stream/test/comments/stream/__snapshots__/reportComment.spec.tsx.snap
index be9e40114..9109e1dd5 100644
--- a/src/core/client/stream/test/comments/stream/__snapshots__/reportComment.spec.tsx.snap
+++ b/src/core/client/stream/test/comments/stream/__snapshots__/reportComment.spec.tsx.snap
@@ -168,8 +168,9 @@ exports[`render popup 1`] = `
>
- Max. 500 Characters
+
+ Max. 500 Characters
+
@@ -386,8 +388,9 @@ exports[`render popup expanded 1`] = `
>
- Max. 500 Characters
+
+ Max. 500 Characters
+
@@ -570,10 +574,8 @@ exports[`report comment as offensive 1`] = `
>
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
-
- thumb_up
-
+
+ thumb_up
+
+
-
- share
-
+
+ share
+
+
@@ -275,9 +280,7 @@ exports[`renders comment stream 1`] = `
>
- }
- />
-
-
diff --git a/src/core/client/ui/components/Button/__snapshots__/Button.spec.tsx.snap b/src/core/client/ui/components/Button/__snapshots__/Button.spec.tsx.snap
deleted file mode 100644
index 8bf299c6b..000000000
--- a/src/core/client/ui/components/Button/__snapshots__/Button.spec.tsx.snap
+++ /dev/null
@@ -1,51 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`forwards ref 1`] = `
-
- Push me
-
-`;
-
-exports[`renders a regular sized, primary colored ghost button with fullWidth 1`] = `
-
- Push me
-
-`;
-
-exports[`renders active state 1`] = `
-
- Push me
-
-`;
-
-exports[`renders correctly 1`] = `
-
- Push me
-
-`;
diff --git a/src/core/client/ui/components/Button/__snapshots__/ButtonIcon.spec.tsx.snap b/src/core/client/ui/components/Button/__snapshots__/ButtonIcon.spec.tsx.snap
deleted file mode 100644
index f22026d07..000000000
--- a/src/core/client/ui/components/Button/__snapshots__/ButtonIcon.spec.tsx.snap
+++ /dev/null
@@ -1,19 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`forwards ref 1`] = `
-
- Push me
-
-`;
-
-exports[`renders correctly 1`] = `
-
- Push me
-
-`;
diff --git a/src/core/client/ui/components/Button/index.ts b/src/core/client/ui/components/Button/index.ts
deleted file mode 100644
index e17fab004..000000000
--- a/src/core/client/ui/components/Button/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default, default as Button, ButtonProps } from "./Button";
-export { default as ButtonIcon, ButtonIconProps } from "./ButtonIcon";
diff --git a/src/core/client/ui/components/CallOut/CallOut.css b/src/core/client/ui/components/CallOut/CallOut.css
deleted file mode 100644
index bde9c25c4..000000000
--- a/src/core/client/ui/components/CallOut/CallOut.css
+++ /dev/null
@@ -1,49 +0,0 @@
-.root {
- composes: bodyCopy from "~coral-ui/shared/typography.css";
- position: relative;
- display: inline-flex;
- justify-content: center;
- align-items: center;
- padding: var(--spacing-4);
- box-sizing: border-box;
- border-width: 1px;
- border-style: solid;
- word-break: break-word;
-}
-
-.borderless {
- border-style: none;
-}
-
-.colorRegular {
- background-color: var(--palette-grey-lightest);
- border-color: var(--palette-grey-light);
- color: var(--palette-text-primary);
-}
-
-.colorPrimary {
- background-color: var(--palette-primary-lightest);
- border-color: var(--palette-primary-light);
- color: var(--palette-text-primary);
-}
-
-.colorError {
- background-color: var(--palette-error-lightest);
- border-color: var(--palette-error-light);
- color: var(--palette-text-primary);
-}
-
-.colorSuccess {
- background-color: var(--palette-success-lightest);
- border-color: var(--palette-success-light);
- color: var(--palette-text-primary);
-}
-
-.fullWidth {
- display: flex;
- width: 100%;
-}
-
-.inner {
- width: 100%;
-}
diff --git a/src/core/client/ui/components/CallOut/CallOut.spec.tsx b/src/core/client/ui/components/CallOut/CallOut.spec.tsx
deleted file mode 100644
index e958b1d76..000000000
--- a/src/core/client/ui/components/CallOut/CallOut.spec.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import CallOut from "./CallOut";
-
-it("renders correctly", () => {
- const props: PropTypesOf
= {
- className: "custom",
- color: "error",
- children: "Hello World",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/CallOut/CallOut.tsx b/src/core/client/ui/components/CallOut/CallOut.tsx
deleted file mode 100644
index 075d368eb..000000000
--- a/src/core/client/ui/components/CallOut/CallOut.tsx
+++ /dev/null
@@ -1,73 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, ReactNode } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./CallOut.css";
-
-export interface CallOutProps {
- /**
- * The content of the component.
- */
- children: ReactNode;
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- /**
- * Color of the CallOut
- */
- color?: "regular" | "primary" | "error" | "success";
- /*
- * If set renders a full width CallOut
- */
- fullWidth?: boolean;
-
- /*
- * If set removes border
- */
- borderless?: boolean;
-}
-
-const CallOut: FunctionComponent = (props) => {
- const {
- borderless,
- className,
- classes,
- color,
- fullWidth,
- children,
- ...rest
- } = props;
-
- const rootClassName = cn(
- classes.root,
- {
- [classes.colorRegular]: color === "regular",
- [classes.colorError]: color === "error",
- [classes.colorPrimary]: color === "primary",
- [classes.colorSuccess]: color === "success",
- [classes.borderless]: borderless,
- [classes.fullWidth]: fullWidth,
- },
- className
- );
-
- return (
-
- );
-};
-
-CallOut.defaultProps = {
- color: "regular",
- fullWidth: false,
-} as Partial;
-
-const enhanced = withStyles(styles)(CallOut);
-export default enhanced;
diff --git a/src/core/client/ui/components/CallOut/README.mdx b/src/core/client/ui/components/CallOut/README.mdx
deleted file mode 100644
index 2b9b6265b..000000000
--- a/src/core/client/ui/components/CallOut/README.mdx
+++ /dev/null
@@ -1,23 +0,0 @@
----
-name: CallOut
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import CallOut from './CallOut'
-import HorizontalGutter from '../HorizontalGutter'
-
-# CallOut
-
-## Basic Use
-
-
- This is a component for a callout. Any text that you are wanting to draw attention to such as community guidelines, announcements, etc. can be placed in something like a callout box. The color of the callout box can be customized according your own needs.
- This is a component for a callout. Any text that you are wanting to draw attention to such as community guidelines, announcements, etc. can be placed in something like a callout box. The color of the callout box can be customized according your own needs.
- This is a component for a callout. Any text that you are wanting to draw attention to such as community guidelines, announcements, etc. can be placed in something like a callout box. The color of the callout box can be customized according your own needs.
- The email address or password you entered is incorrect. Try again
- The email address or password you entered is incorrect. Try again
-
-
-
-
diff --git a/src/core/client/ui/components/CallOut/__snapshots__/CallOut.spec.tsx.snap b/src/core/client/ui/components/CallOut/__snapshots__/CallOut.spec.tsx.snap
deleted file mode 100644
index 056cdb13a..000000000
--- a/src/core/client/ui/components/CallOut/__snapshots__/CallOut.spec.tsx.snap
+++ /dev/null
@@ -1,13 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-`;
diff --git a/src/core/client/ui/components/CallOut/index.ts b/src/core/client/ui/components/CallOut/index.ts
deleted file mode 100644
index 189466420..000000000
--- a/src/core/client/ui/components/CallOut/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./CallOut";
diff --git a/src/core/client/ui/components/Card/Card.css b/src/core/client/ui/components/Card/Card.css
deleted file mode 100644
index 1d8d78776..000000000
--- a/src/core/client/ui/components/Card/Card.css
+++ /dev/null
@@ -1,18 +0,0 @@
-.root {
- position: relative;
- padding: calc(2 * var(--mini-unit));
- box-sizing: border-box;
- border: 1px solid rgba(0, 0, 0, 0.25);
- box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25);
- border-radius: var(--round-corners);
- background-color: var(--palette-common-white);
- /*
- Fallback begin
-
- Unfortunately Firefox / IE does not support
- `word-break: break-word` yet.
- */
- word-break: break-all;
- /* Fallback end */
- word-break: break-word;
-}
diff --git a/src/core/client/ui/components/Card/Card.spec.tsx b/src/core/client/ui/components/Card/Card.spec.tsx
deleted file mode 100644
index 030ab9675..000000000
--- a/src/core/client/ui/components/Card/Card.spec.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import Card from "./Card";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- children: "Hello World",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Card/Card.tsx b/src/core/client/ui/components/Card/Card.tsx
deleted file mode 100644
index cd41c9d6d..000000000
--- a/src/core/client/ui/components/Card/Card.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, ReactNode, Ref } from "react";
-
-import { withForwardRef, withStyles } from "coral-ui/hocs";
-
-import styles from "./Card.css";
-
-export interface CardProps extends React.HTMLAttributes {
- /**
- * The content of the component.
- */
- children: ReactNode;
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
-
- tabIndex?: number;
- forwardRef?: Ref;
-}
-
-const Card: FunctionComponent = (props) => {
- const { className, classes, children, forwardRef, ...rest } = props;
-
- const rootClassName = cn(classes.root, className);
-
- return (
-
- {children}
-
- );
-};
-
-const enhanced = withForwardRef(withStyles(styles)(Card));
-export default enhanced;
diff --git a/src/core/client/ui/components/Card/CloseButton.css b/src/core/client/ui/components/Card/CloseButton.css
deleted file mode 100644
index f38be18dc..000000000
--- a/src/core/client/ui/components/Card/CloseButton.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.root {
- min-height: 0px;
- padding: calc(0.5 * var(--mini-unit));
- margin-left: calc(2 * var(--mini-unit));
- float: right;
- position: relative;
- top: -5px;
- right: -5px;
-}
-
-.icon {
- display: block;
-}
\ No newline at end of file
diff --git a/src/core/client/ui/components/Card/CloseButton.tsx b/src/core/client/ui/components/Card/CloseButton.tsx
deleted file mode 100644
index 11738e6a8..000000000
--- a/src/core/client/ui/components/Card/CloseButton.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { FunctionComponent, Ref } from "react";
-
-import { withForwardRef, withStyles } from "coral-ui/hocs";
-import { PropTypesOf } from "coral-ui/types";
-
-import BaseButton from "../BaseButton";
-import Icon from "../Icon";
-
-import styles from "./CloseButton.css";
-
-export interface CloseButtonProps
- extends Omit, "ref"> {
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles & PropTypesOf["classes"];
-
- /** Internal: Forwarded Ref */
- forwardRef?: Ref;
-}
-
-const CloseButton: FunctionComponent = (props) => {
- const {
- classes: { icon: iconClassName, ...restClasses },
- forwardRef,
- ...rest
- } = props;
- return (
-
-
- close
-
-
- );
-};
-
-const enhanced = withForwardRef(withStyles(styles)(CloseButton));
-export default enhanced;
diff --git a/src/core/client/ui/components/Card/README.mdx b/src/core/client/ui/components/Card/README.mdx
deleted file mode 100644
index 0e2b94553..000000000
--- a/src/core/client/ui/components/Card/README.mdx
+++ /dev/null
@@ -1,37 +0,0 @@
----
-name: Card
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-
-import Card from "./Card";
-import CloseButton from "./CloseButton";
-import HorizontalGutter from "../HorizontalGutter";
-
-# Card
-
-## Basic Use
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
- tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
- veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
- commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
- velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
- cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
- est laborum.
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
- incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
- nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
- eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
- in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
diff --git a/src/core/client/ui/components/Card/__snapshots__/Card.spec.tsx.snap b/src/core/client/ui/components/Card/__snapshots__/Card.spec.tsx.snap
deleted file mode 100644
index ab86ffe73..000000000
--- a/src/core/client/ui/components/Card/__snapshots__/Card.spec.tsx.snap
+++ /dev/null
@@ -1,9 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- Hello World
-
-`;
diff --git a/src/core/client/ui/components/Card/index.ts b/src/core/client/ui/components/Card/index.ts
deleted file mode 100644
index 68d2a3f46..000000000
--- a/src/core/client/ui/components/Card/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default } from "./Card";
-export { default as CardCloseButton } from "./CloseButton";
diff --git a/src/core/client/ui/components/Check/CheckIcon.css b/src/core/client/ui/components/Check/CheckIcon.css
deleted file mode 100644
index 878265611..000000000
--- a/src/core/client/ui/components/Check/CheckIcon.css
+++ /dev/null
@@ -1,2 +0,0 @@
-.base {
-}
diff --git a/src/core/client/ui/components/Check/CheckIcon.tsx b/src/core/client/ui/components/Check/CheckIcon.tsx
deleted file mode 100644
index df843671d..000000000
--- a/src/core/client/ui/components/Check/CheckIcon.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-import variables from "coral-ui/theme/variables";
-
-import styles from "./CheckIcon.css";
-
-interface Props {
- className?: string;
- classes: typeof styles;
-}
-
-const CheckIcon: FunctionComponent = ({
- className,
- classes,
- ...rest
-}) => (
-
-
-
-);
-
-export default withStyles(styles)(CheckIcon);
diff --git a/src/core/client/ui/components/Check/index.ts b/src/core/client/ui/components/Check/index.ts
deleted file mode 100644
index 6654aafec..000000000
--- a/src/core/client/ui/components/Check/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default as CheckIcon } from "./CheckIcon";
diff --git a/src/core/client/ui/components/CheckBox/CheckBox.css b/src/core/client/ui/components/CheckBox/CheckBox.css
deleted file mode 100644
index 4a989c25f..000000000
--- a/src/core/client/ui/components/CheckBox/CheckBox.css
+++ /dev/null
@@ -1,84 +0,0 @@
-.root {
-}
-
-.input {
- cursor: pointer;
- position: absolute; /* take it out of document flow */
- opacity: 0; /* hide it */
-}
-
-.label {
- composes: bodyCopy from "~coral-ui/shared/typography.css";
- position: relative;
- display: inline-block;
- cursor: pointer;
- user-select: none;
- padding-left: 25px;
-}
-
-.labelSpan {
- padding-bottom: 1px;
-}
-
-.labelLight {
- color: var(--palette-text-light);
-}
-
-/* Box. */
-.input + .label:before {
- content: "";
- position: absolute;
- left: 0px;
- top: 4px;
- display: inline-block;
- width: 14px;
- height: 14px;
- background: var(--palette-common-white);
- border: 1px solid var(--palette-text-primary);
- box-sizing: border-box;
-}
-
-/* Box focus */
-.label.focus:before {
- @mixin outline;
-}
-
-/* Box checked */
-.input:checked + .label:before {
- background: var(--palette-primary-main);
- border: 1px solid var(--palette-primary-main);
-}
-
-/* Disabled state label. */
-.input:disabled + .label {
- cursor: auto;
- opacity: 0.6;
-}
-
-/* Disabled box. */
-.input:disabled + .label:before {
- box-shadow: none;
- border: 1px solid var(--palette-grey-main);
- background: var(--palette-grey-lightest);
-}
-
-/* Checkmark. Could be replaced with an image */
-.input:checked + .label:after {
- content: "";
- position: absolute;
- left: 2px;
- top: 10px;
- color: var(--palette-text-light);
- background: currentColor;
- width: 2px;
- height: 2px;
- box-shadow: 2px 0 0 currentColor, 4px 0 0 currentColor,
- 4px -2px 0 currentColor, 4px -4px 0 currentColor, 4px -6px 0 currentColor,
- 4px -8px 0 currentColor;
- transform: rotate(45deg);
- box-sizing: border-box;
-}
-
-.input:checked:disabled + .label:after {
- color: var(--palette-text-primary);
-}
diff --git a/src/core/client/ui/components/CheckBox/CheckBox.spec.tsx b/src/core/client/ui/components/CheckBox/CheckBox.spec.tsx
deleted file mode 100644
index 00c6a5562..000000000
--- a/src/core/client/ui/components/CheckBox/CheckBox.spec.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import CheckBox from "./CheckBox";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- id: "checkboxID",
- checked: true,
- children: "Yes I agree",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/CheckBox/CheckBox.tsx b/src/core/client/ui/components/CheckBox/CheckBox.tsx
deleted file mode 100644
index 63e82d29f..000000000
--- a/src/core/client/ui/components/CheckBox/CheckBox.tsx
+++ /dev/null
@@ -1,90 +0,0 @@
-import cn from "classnames";
-import React, { ChangeEvent, Component, EventHandler, FocusEvent } from "react";
-import { v4 as uuid } from "uuid";
-
-import { withKeyboardFocus, withStyles } from "coral-ui/hocs";
-
-import styles from "./CheckBox.css";
-
-export interface CheckBoxProps {
- id?: string;
- /**
- * checked or not.
- */
- checked?: boolean;
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- /**
- * Mark as readonly
- */
- readOnly?: boolean;
- /**
- * Name
- */
- name?: string;
- /**
- * onChange
- */
- onChange?: EventHandler>;
-
- disabled?: boolean;
- children: React.ReactNode;
- /**
- * Display a light text.
- */
- light?: boolean;
-
- // These handlers are passed down by the `withKeyboardFocus` HOC.
- onFocus: EventHandler>;
- onBlur: EventHandler>;
- keyboardFocus: boolean;
-}
-
-class CheckBox extends Component {
- public state = {
- randomID: uuid(),
- };
- public render() {
- const {
- className,
- classes,
- id,
- light,
- children,
- keyboardFocus,
- ...rest
- } = this.props;
-
- const rootClassName = cn(classes.root, className);
- const finalID = id || this.state.randomID;
-
- return (
-
-
-
- {children}
-
-
- );
- }
-}
-
-const enhanced = withStyles(styles)(withKeyboardFocus(CheckBox));
-export default enhanced;
diff --git a/src/core/client/ui/components/CheckBox/README.mdx b/src/core/client/ui/components/CheckBox/README.mdx
deleted file mode 100644
index 62a16c444..000000000
--- a/src/core/client/ui/components/CheckBox/README.mdx
+++ /dev/null
@@ -1,19 +0,0 @@
----
-name: CheckBox
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import CheckBox from './CheckBox.tsx'
-import HorizontalGutter from '../HorizontalGutter'
-
-# CheckBox
-
-## Basic Use
-
-
- Yes I agree
- No I don't agree
- I don't know
-
-
diff --git a/src/core/client/ui/components/CheckBox/__snapshots__/CheckBox.spec.tsx.snap b/src/core/client/ui/components/CheckBox/__snapshots__/CheckBox.spec.tsx.snap
deleted file mode 100644
index 11ce87d61..000000000
--- a/src/core/client/ui/components/CheckBox/__snapshots__/CheckBox.spec.tsx.snap
+++ /dev/null
@@ -1,26 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
-
-
- Yes I agree
-
-
-
-`;
diff --git a/src/core/client/ui/components/CheckBox/index.ts b/src/core/client/ui/components/CheckBox/index.ts
deleted file mode 100644
index 151b40bd5..000000000
--- a/src/core/client/ui/components/CheckBox/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from "./CheckBox";
-export { default } from "./CheckBox";
diff --git a/src/core/client/ui/components/ClickOutside/ClickOutside.spec.tsx b/src/core/client/ui/components/ClickOutside/ClickOutside.spec.tsx
deleted file mode 100644
index 54d4bb201..000000000
--- a/src/core/client/ui/components/ClickOutside/ClickOutside.spec.tsx
+++ /dev/null
@@ -1,122 +0,0 @@
-import { mount } from "enzyme";
-import React from "react";
-import simulant from "simulant";
-import sinon from "sinon";
-
-import UIContext from "../UIContext";
-import {
- ClickFarAwayCallback,
- ClickFarAwayRegister,
- ClickOutside,
- default as ClickOutsideWithContext,
-} from "./ClickOutside";
-
-let container: HTMLElement;
-
-beforeAll(() => {
- container = document.createElement("div");
- document.body.appendChild(container);
-});
-
-afterAll(() => {
- document.body.removeChild(container);
-});
-
-it("should render correctly", () => {
- const noop = () => null;
- const wrapper = mount(
-
- Hello World!
-
- );
- expect(wrapper.html()).toMatchSnapshot();
- wrapper.unmount();
-});
-
-it("should detect click outside", () => {
- const onClickOutside = sinon.spy();
- const wrapper = mount(
-
- Hello World!
- ,
- {
- attachTo: container,
- }
- );
- simulant.fire(container, "click");
-
- expect(onClickOutside.calledOnce).toEqual(true);
- wrapper.unmount();
-});
-
-it("should ignore click inside", () => {
- const onClickOutside = sinon.spy();
- const wrapper = mount(
-
- Push Me
- ,
- {
- attachTo: container,
- }
- );
-
- const target = document.getElementById("click-outside-test-button")!;
- simulant.fire(target, "click");
-
- expect(onClickOutside.calledOnce).toEqual(false);
- wrapper.unmount();
-});
-
-it("should detect click far away", () => {
- let emitFarAwayClick: ClickFarAwayCallback = Function;
- const unlisten = sinon.spy();
- const registerClickFarAway: ClickFarAwayRegister = (cb) => {
- emitFarAwayClick = cb;
- return unlisten;
- };
- const onClickOutside = sinon.spy();
- const wrapper = mount(
-
- Push Me
- ,
- {
- attachTo: container,
- }
- );
-
- expect(onClickOutside.calledOnce).toEqual(false);
- emitFarAwayClick();
- expect(onClickOutside.calledOnce).toEqual(true);
- expect(unlisten.calledOnce).toEqual(false);
- wrapper.unmount();
- expect(unlisten.calledOnce).toEqual(true);
-});
-
-it("should get registerClickFarAway from context", () => {
- const registerClickFarAway: ClickFarAwayRegister = sinon.spy();
- const onClickOutside = sinon.spy();
- const context: any = {
- registerClickFarAway,
- };
- const wrapper = mount(
-
-
- Push Me
-
- ,
- {
- attachTo: container,
- }
- );
-
- expect(wrapper.find(ClickOutside).prop("registerClickFarAway")).toEqual(
- registerClickFarAway
- );
- wrapper.unmount();
-});
diff --git a/src/core/client/ui/components/ClickOutside/ClickOutside.tsx b/src/core/client/ui/components/ClickOutside/ClickOutside.tsx
deleted file mode 100644
index f9f5d5323..000000000
--- a/src/core/client/ui/components/ClickOutside/ClickOutside.tsx
+++ /dev/null
@@ -1,80 +0,0 @@
-import React, { FunctionComponent } from "react";
-import { findDOMNode } from "react-dom";
-
-import UIContext from "../UIContext";
-
-export type ClickFarAwayCallback = () => void;
-export type ClickFarAwayUnlistenCallback = () => void;
-
-export type ClickFarAwayRegister = (
- callback: ClickFarAwayCallback
-) => ClickFarAwayUnlistenCallback;
-
-export interface ClickOutsideProps {
- onClickOutside: (e?: MouseEvent) => void;
-
- /**
- * A way to listen for clicks that are e.g. outside of the
- * current frame for `ClickOutside`
- */
- registerClickFarAway?: ClickFarAwayRegister;
-
- children: React.ReactNode;
-}
-
-export class ClickOutside extends React.Component {
- public domNode: Element | null = null;
- private unlisten?: ClickFarAwayUnlistenCallback;
-
- public handleClick = (e: MouseEvent) => {
- const { onClickOutside } = this.props;
- if (!e || !this.domNode!.contains(e.target as HTMLInputElement)) {
- // eslint-disable-next-line no-unused-expressions
- onClickOutside && onClickOutside(e);
- }
- };
-
- public handleClickFarAway = () => {
- const { onClickOutside } = this.props;
- // eslint-disable-next-line no-unused-expressions
- onClickOutside && onClickOutside();
- };
-
- public componentDidMount() {
- // TODO: find another solution to `findDOMNode`.
- // eslint-disable-next-line react/no-find-dom-node
- this.domNode = findDOMNode(this) as Element;
- document.addEventListener("click", this.handleClick, true);
-
- // Listen to far away clicks.
- if (this.props.registerClickFarAway) {
- this.unlisten = this.props.registerClickFarAway(this.handleClickFarAway);
- }
- }
-
- public componentWillUnmount() {
- document.removeEventListener("click", this.handleClick, true);
-
- // Unlisten to far away clicks.
- if (this.unlisten) {
- this.unlisten();
- this.unlisten = undefined;
- }
- }
-
- public render() {
- return this.props.children;
- }
-}
-
-const ClickOutsideWithContext: FunctionComponent = (
- props
-) => (
-
- {({ registerClickFarAway }) => (
-
- )}
-
-);
-
-export default ClickOutsideWithContext;
diff --git a/src/core/client/ui/components/ClickOutside/README.mdx b/src/core/client/ui/components/ClickOutside/README.mdx
deleted file mode 100644
index 91017b65b..000000000
--- a/src/core/client/ui/components/ClickOutside/README.mdx
+++ /dev/null
@@ -1,30 +0,0 @@
----
-name: ClickOutside
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import ClickOutside from './ClickOutside'
-import Button from '../Button/Button'
-
-# ClickOutside
-
-A Component to handle click events outside the children components.
-
-## Basic usage
-Wrap a Component with `` and pass a function to `onClickOutside`. This function will trigger when the user
-clicks outside the component.
-
-### Test
-Click the blue background. It should trigger an alert. Nothing should happen if you click the button.
-
-
-
- {
- if (e.srcElement.id === "outside") {
- alert('You clicked outside!');
- }}}>
- Push Me
-
-
-
diff --git a/src/core/client/ui/components/ClickOutside/__snapshots__/ClickOutside.spec.tsx.snap b/src/core/client/ui/components/ClickOutside/__snapshots__/ClickOutside.spec.tsx.snap
deleted file mode 100644
index 883a02a51..000000000
--- a/src/core/client/ui/components/ClickOutside/__snapshots__/ClickOutside.spec.tsx.snap
+++ /dev/null
@@ -1,3 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`should render correctly 1`] = `"Hello World! "`;
diff --git a/src/core/client/ui/components/ClickOutside/index.ts b/src/core/client/ui/components/ClickOutside/index.ts
deleted file mode 100644
index 91803ea08..000000000
--- a/src/core/client/ui/components/ClickOutside/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default, ClickFarAwayRegister } from "./ClickOutside";
diff --git a/src/core/client/ui/components/Counter/Counter.css b/src/core/client/ui/components/Counter/Counter.css
deleted file mode 100644
index 4a43a1d86..000000000
--- a/src/core/client/ui/components/Counter/Counter.css
+++ /dev/null
@@ -1,44 +0,0 @@
-.root {
- font-size: calc(14rem / var(--rem-base));
- font-weight: var(--font-weight-medium);
- font-family: var(--font-family-sans-serif);
- line-height: 1;
- letter-spacing: calc(0.2em / 14);
- border-radius: var(--round-corners);
- padding: 2px 3px 3px 3px;
- color: inherit;
-}
-
-.sizeSmall {
- font-size: calc(12rem / var(--rem-base));
- padding: 2px 3px;
- line-height: 1;
-}
-
-.text {
- color: var(--palette-text-light);
-}
-
-.colorPrimary {
- background-color: var(--palette-primary-main);
-}
-
-.colorGrey {
- background-color: var(--palette-grey-lightest);
- box-shadow: inset 0px 0px 0px 1px var(--palette-grey-dark);
- & .text {
- color: var(--palette-grey-dark);
- }
-}
-
-.colorDark {
- background-color: var(--palette-grey-dark);
-}
-
-.colorError {
- background-color: var(--palette-error-darkest);
-}
-
-.colorInherit {
- background-color: currentColor;
-}
diff --git a/src/core/client/ui/components/Counter/Counter.spec.tsx b/src/core/client/ui/components/Counter/Counter.spec.tsx
deleted file mode 100644
index a1747e753..000000000
--- a/src/core/client/ui/components/Counter/Counter.spec.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import React from "react";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import Counter from "./Counter";
-
-it("renders correctly", () => {
- const renderer = createRenderer();
- renderer.render(20 );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Counter/Counter.tsx b/src/core/client/ui/components/Counter/Counter.tsx
deleted file mode 100644
index 38e3a6295..000000000
--- a/src/core/client/ui/components/Counter/Counter.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./Counter.css";
-
-interface Props {
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- /**
- * The color of the component. It supports those theme colors that make sense for this component.
- */
- color?: "inherit" | "dark" | "grey" | "primary" | "error";
-
- size?: "sm" | "md";
-}
-
-const Counter: FunctionComponent = ({
- classes,
- color,
- className,
- children,
- size,
- ...rest
-}) => {
- const rootClassName = cn(
- classes.root,
- {
- [classes.colorPrimary]: color === "primary",
- [classes.colorDark]: color === "dark",
- [classes.colorGrey]: color === "grey",
- [classes.colorInherit]: color === "inherit",
- [classes.colorError]: color === "error",
- [classes.sizeSmall]: size === "sm",
- },
- className
- );
- return (
-
- {children}
-
- );
-};
-
-Counter.defaultProps = {
- color: "inherit",
-};
-
-const enhanced = withStyles(styles)(Counter);
-export default enhanced;
diff --git a/src/core/client/ui/components/Counter/README.mdx b/src/core/client/ui/components/Counter/README.mdx
deleted file mode 100644
index 2658f959f..000000000
--- a/src/core/client/ui/components/Counter/README.mdx
+++ /dev/null
@@ -1,34 +0,0 @@
----
-name: Counter
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-
-import Flex from "../Flex";
-import Counter from "./Counter";
-
-# Counter
-
-## Basic usage
-
-
-
- Comments 23
-
-
-
-
-
- 23
-
- 15
-
-
- 10
-
-
- 20
-
-
-
diff --git a/src/core/client/ui/components/Counter/__snapshots__/Counter.spec.tsx.snap b/src/core/client/ui/components/Counter/__snapshots__/Counter.spec.tsx.snap
deleted file mode 100644
index 427bba4cf..000000000
--- a/src/core/client/ui/components/Counter/__snapshots__/Counter.spec.tsx.snap
+++ /dev/null
@@ -1,21 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- 20
-
-`;
diff --git a/src/core/client/ui/components/Counter/index.ts b/src/core/client/ui/components/Counter/index.ts
deleted file mode 100644
index e09713ba4..000000000
--- a/src/core/client/ui/components/Counter/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./Counter";
diff --git a/src/core/client/ui/components/Delay/Delay.spec.tsx b/src/core/client/ui/components/Delay/Delay.spec.tsx
deleted file mode 100644
index 668882f5d..000000000
--- a/src/core/client/ui/components/Delay/Delay.spec.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import Delay from "./Delay";
-
-it("renders correctly", () => {
- jest.useFakeTimers();
- try {
- const props: PropTypesOf = {
- children: "custom",
- ms: 3000,
- };
- const renderer = TestRenderer.create(Hello );
- expect(renderer.toJSON()).toMatchSnapshot();
- jest.advanceTimersByTime(3000);
- expect(renderer.toJSON()).toMatchSnapshot();
- } finally {
- jest.useRealTimers();
- }
-});
diff --git a/src/core/client/ui/components/Delay/Delay.tsx b/src/core/client/ui/components/Delay/Delay.tsx
deleted file mode 100644
index 0210a106c..000000000
--- a/src/core/client/ui/components/Delay/Delay.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import React, { Component } from "react";
-
-interface Props {
- ms?: number;
- children: React.ReactNode;
-}
-
-interface State {
- render: boolean;
-}
-
-export class Delay extends Component {
- public static defaultProps: Partial = {
- ms: 500,
- };
- private timeout: any;
- public state = {
- render: false,
- };
- constructor(props: Props) {
- super(props);
- this.timeout = setTimeout(() => {
- this.setState({ render: true });
- }, props.ms);
- }
- public componentWillUnmount() {
- clearTimeout(this.timeout);
- }
- public render() {
- if (!this.state.render) {
- return null;
- }
- return <>{this.props.children}>;
- }
-}
-
-export default Delay;
diff --git a/src/core/client/ui/components/Delay/README.mdx b/src/core/client/ui/components/Delay/README.mdx
deleted file mode 100644
index c1a370f0a..000000000
--- a/src/core/client/ui/components/Delay/README.mdx
+++ /dev/null
@@ -1,22 +0,0 @@
----
-name: Delay
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-import Delay from "./Delay.tsx";
-import HorizontalGutter from "../HorizontalGutter";
-import Spinner from "../Spinner";
-
-# Delay
-
-## Basic Use
-
-
-
- Spinner will show up in 3 seconds
-
-
-
-
-
diff --git a/src/core/client/ui/components/Delay/__snapshots__/Delay.spec.tsx.snap b/src/core/client/ui/components/Delay/__snapshots__/Delay.spec.tsx.snap
deleted file mode 100644
index 840f2a190..000000000
--- a/src/core/client/ui/components/Delay/__snapshots__/Delay.spec.tsx.snap
+++ /dev/null
@@ -1,5 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `null`;
-
-exports[`renders correctly 2`] = `"Hello"`;
diff --git a/src/core/client/ui/components/Delay/index.ts b/src/core/client/ui/components/Delay/index.ts
deleted file mode 100644
index a478b6813..000000000
--- a/src/core/client/ui/components/Delay/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./Delay";
diff --git a/src/core/client/ui/components/Dropdown/Button.css b/src/core/client/ui/components/Dropdown/Button.css
deleted file mode 100644
index 6dcc99823..000000000
--- a/src/core/client/ui/components/Dropdown/Button.css
+++ /dev/null
@@ -1,53 +0,0 @@
-.root {
- composes: menuItem from "~coral-ui/shared/typography.css";
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: var(--v2-spacing-2);
- width: 100%;
- text-align: left;
- line-height: 1;
-}
-
-.anchor {
- color: var(--palette-primary-main);
- text-decoration: underline;
- &:visited {
- color: var(--palette-primary-main);
- }
-}
-
-.root:disabled {
- opacity: 0.6;
-}
-
-.root:not(:disabled):active {
- background-color: var(--palette-primary-lightest);
-}
-
-.mouseHover {
- background-color: var(--palette-primary-lightest);
-}
-
-.iconBefore {
- display: flex;
- justify-content: baseline;
- align-items: center;
- color: var(--palette-grey-main);
- margin-right: var(--v2-spacing-2);
-}
-.iconAfter {
- display: flex;
- align-items: center;
- justify-content: baseline;
- margin-left: var(--v2-spacing-2);
- text-decoration: unset;
-}
-.iconOpenInNew {
- padding-top: 1px;
- color: var(--palette-primary-main);
-}
-
-.blankAdornment {
- padding-right: var(--v2-spacing-6);
-}
diff --git a/src/core/client/ui/components/Dropdown/Button.spec.tsx b/src/core/client/ui/components/Dropdown/Button.spec.tsx
deleted file mode 100644
index e25560b72..000000000
--- a/src/core/client/ui/components/Dropdown/Button.spec.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import { noop } from "lodash";
-import React from "react";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import { PropTypesOf } from "coral-framework/types";
-
-import Button from "./Button";
-
-it("renders anchor button", () => {
- const props: PropTypesOf = {
- href: "/moderate",
- children: "link",
- onClick: noop,
- className: "custom",
- target: "_blank",
- };
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
-
-it("renders button", () => {
- const props: PropTypesOf = {
- children: "link",
- onClick: noop,
- className: "custom",
- blankAdornment: true,
- };
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Dropdown/Button.tsx b/src/core/client/ui/components/Dropdown/Button.tsx
deleted file mode 100644
index 8dc3d4226..000000000
--- a/src/core/client/ui/components/Dropdown/Button.tsx
+++ /dev/null
@@ -1,77 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import { Flex } from "../";
-import BaseButton, { BaseButtonProps } from "../BaseButton";
-import Icon from "../Icon";
-
-import styles from "./Button.css";
-
-interface Props extends Omit {
- children: React.ReactNode;
- icon?: React.ReactNode;
- href?: string;
- className?: string;
- onClick?: React.EventHandler;
- classes: typeof styles;
- /**
- * adornment if set is rendered at the end of the button.
- */
- adornment?: React.ReactNode;
- /**
- * blankAdornment if true will leave some blank space after the text, so
- * that it looks nice, if mixed with other buttons which have an external link
- * icon as adornment.
- */
- blankAdornment?: boolean;
-}
-
-const Button: FunctionComponent = ({
- blankAdornment,
- className,
- href,
- onClick,
- children,
- classes,
- icon,
- disabled,
- adornment,
- ...rest
-}) => {
- return (
-
-
- {icon && {icon}
}
-
- {children}
-
-
- {adornment && {adornment}
}
- {!adornment && rest.target === "_blank" && (
-
- open_in_new
-
- )}
-
- );
-};
-
-export default withStyles(styles)(Button);
diff --git a/src/core/client/ui/components/Dropdown/Divider.css b/src/core/client/ui/components/Dropdown/Divider.css
deleted file mode 100644
index 99c93d7a6..000000000
--- a/src/core/client/ui/components/Dropdown/Divider.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.root {
- border: 0;
- border-bottom: 1px solid var(--palette-divider);
- margin: 0;
-}
diff --git a/src/core/client/ui/components/Dropdown/Divider.spec.tsx b/src/core/client/ui/components/Dropdown/Divider.spec.tsx
deleted file mode 100644
index 0489e8451..000000000
--- a/src/core/client/ui/components/Dropdown/Divider.spec.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import React from "react";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import Divider from "./Divider";
-
-it("renders correctly", () => {
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Dropdown/Divider.tsx b/src/core/client/ui/components/Dropdown/Divider.tsx
deleted file mode 100644
index ba0fc2c91..000000000
--- a/src/core/client/ui/components/Dropdown/Divider.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./Divider.css";
-
-interface Props {
- className?: string;
- classes: typeof styles;
-}
-
-const Divider: FunctionComponent = ({ className, classes, ...rest }) => (
-
-);
-
-export default withStyles(styles)(Divider);
diff --git a/src/core/client/ui/components/Dropdown/Dropdown.css b/src/core/client/ui/components/Dropdown/Dropdown.css
deleted file mode 100644
index 660ced0b0..000000000
--- a/src/core/client/ui/components/Dropdown/Dropdown.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.root {
- padding: calc(0.5 * var(--mini-unit)) 0;
-}
diff --git a/src/core/client/ui/components/Dropdown/Dropdown.spec.tsx b/src/core/client/ui/components/Dropdown/Dropdown.spec.tsx
deleted file mode 100644
index 2c70af334..000000000
--- a/src/core/client/ui/components/Dropdown/Dropdown.spec.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import React from "react";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import { PropTypesOf } from "coral-framework/types";
-
-import Button from "./Button";
-import Divider from "./Divider";
-import Dropdown from "./Dropdown";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- children: (
- <>
- Shortcuts
-
- Report Bug
-
-
- Sign Out
- >
- ),
- className: "custom",
- };
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Dropdown/Dropdown.tsx b/src/core/client/ui/components/Dropdown/Dropdown.tsx
deleted file mode 100644
index c3da8b50b..000000000
--- a/src/core/client/ui/components/Dropdown/Dropdown.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./Dropdown.css";
-
-interface Props {
- children?: React.ReactNode;
- className?: string;
- classes: typeof styles;
-}
-
-const Dropdown: FunctionComponent = ({
- className,
- children,
- classes,
- ...rest
-}) => {
- return (
-
- {children}
-
- );
-};
-
-export default withStyles(styles)(Dropdown);
diff --git a/src/core/client/ui/components/Dropdown/README.mdx b/src/core/client/ui/components/Dropdown/README.mdx
deleted file mode 100644
index a9b663046..000000000
--- a/src/core/client/ui/components/Dropdown/README.mdx
+++ /dev/null
@@ -1,58 +0,0 @@
----
-name: Dropdown
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-
-import {
- Dropdown,
- Divider as DropdownDivider,
- Button as DropdownButton,
-} from "./";
-import { Button, ButtonIcon } from "../Button";
-import ClickOutside from "../ClickOutside";
-import Popover from "../Popover";
-
-# Dropdown
-
-## Basic usage
-
-
-
-
diff --git a/src/core/client/ui/components/Dropdown/__snapshots__/Button.spec.tsx.snap b/src/core/client/ui/components/Dropdown/__snapshots__/Button.spec.tsx.snap
deleted file mode 100644
index 6c34fec47..000000000
--- a/src/core/client/ui/components/Dropdown/__snapshots__/Button.spec.tsx.snap
+++ /dev/null
@@ -1,44 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders anchor button 1`] = `
-
- link
-
-`;
-
-exports[`renders button 1`] = `
-
- link
-
-`;
diff --git a/src/core/client/ui/components/Dropdown/__snapshots__/Divider.spec.tsx.snap b/src/core/client/ui/components/Dropdown/__snapshots__/Divider.spec.tsx.snap
deleted file mode 100644
index 722ea5f94..000000000
--- a/src/core/client/ui/components/Dropdown/__snapshots__/Divider.spec.tsx.snap
+++ /dev/null
@@ -1,11 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-`;
diff --git a/src/core/client/ui/components/Dropdown/__snapshots__/Dropdown.spec.tsx.snap b/src/core/client/ui/components/Dropdown/__snapshots__/Dropdown.spec.tsx.snap
deleted file mode 100644
index 9c171d0f0..000000000
--- a/src/core/client/ui/components/Dropdown/__snapshots__/Dropdown.spec.tsx.snap
+++ /dev/null
@@ -1,32 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
-
- Shortcuts
-
-
- Report Bug
-
-
-
- Sign Out
-
-
-
-`;
diff --git a/src/core/client/ui/components/Dropdown/index.ts b/src/core/client/ui/components/Dropdown/index.ts
deleted file mode 100644
index ff2882546..000000000
--- a/src/core/client/ui/components/Dropdown/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export { default as Dropdown } from "./Dropdown";
-export { default as Button } from "./Button";
-export { default as Divider } from "./Divider";
diff --git a/src/core/client/ui/components/FieldSet/FieldSet.css b/src/core/client/ui/components/FieldSet/FieldSet.css
deleted file mode 100644
index 1b81616a4..000000000
--- a/src/core/client/ui/components/FieldSet/FieldSet.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.root {
- border: 0;
- padding: 0;
-}
diff --git a/src/core/client/ui/components/FieldSet/FieldSet.spec.tsx b/src/core/client/ui/components/FieldSet/FieldSet.spec.tsx
deleted file mode 100644
index 559840299..000000000
--- a/src/core/client/ui/components/FieldSet/FieldSet.spec.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-framework/types";
-
-import FieldSet from "./FieldSet";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- children: "content",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/FieldSet/FieldSet.tsx b/src/core/client/ui/components/FieldSet/FieldSet.tsx
deleted file mode 100644
index c0db95e91..000000000
--- a/src/core/client/ui/components/FieldSet/FieldSet.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import cn from "classnames";
-import React, { AllHTMLAttributes, FunctionComponent, Ref } from "react";
-
-import { withForwardRef, withStyles } from "coral-ui/hocs";
-import { PropTypesOf } from "coral-ui/types";
-
-import styles from "./FieldSet.css";
-
-interface InnerProps extends AllHTMLAttributes {
- /**
- * This prop can be used to add custom classnames.
- * It is handled by the `withStyles `HOC.
- */
- classes: typeof styles;
- /** Internal: Forwarded Ref */
- forwardRef?: Ref;
-}
-
-const FieldSet: FunctionComponent = (props) => {
- const { className, classes, forwardRef: ref, ...rest } = props;
- const rootClassName = cn(classes.root, className);
- return ;
-};
-const enhanced = withForwardRef(withStyles(styles)(FieldSet));
-export type FieldSetProps = PropTypesOf;
-export default enhanced;
diff --git a/src/core/client/ui/components/FieldSet/README.mdx b/src/core/client/ui/components/FieldSet/README.mdx
deleted file mode 100644
index bc9c6a353..000000000
--- a/src/core/client/ui/components/FieldSet/README.mdx
+++ /dev/null
@@ -1,10 +0,0 @@
----
-name: FieldSet
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-
-# FieldSet
-
-Simple `fieldset` with removed styling for accessibility purposes.
diff --git a/src/core/client/ui/components/FieldSet/__snapshots__/FieldSet.spec.tsx.snap b/src/core/client/ui/components/FieldSet/__snapshots__/FieldSet.spec.tsx.snap
deleted file mode 100644
index e8dda0396..000000000
--- a/src/core/client/ui/components/FieldSet/__snapshots__/FieldSet.spec.tsx.snap
+++ /dev/null
@@ -1,9 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- content
-
-`;
diff --git a/src/core/client/ui/components/FieldSet/index.ts b/src/core/client/ui/components/FieldSet/index.ts
deleted file mode 100644
index e9ef62e50..000000000
--- a/src/core/client/ui/components/FieldSet/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./FieldSet";
diff --git a/src/core/client/ui/components/Flex/Flex.css b/src/core/client/ui/components/Flex/Flex.css
deleted file mode 100644
index 1e2ce97fc..000000000
--- a/src/core/client/ui/components/Flex/Flex.css
+++ /dev/null
@@ -1,574 +0,0 @@
-.root {
-}
-
-.flex {
- display: flex;
-}
-
-.spacing-1 {
- & > * {
- margin: 0 var(--spacing-1) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 var(--spacing-1) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 var(--spacing-1) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: var(--spacing-1) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.spacing-2 {
- & > * {
- margin: 0 var(--spacing-2) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 var(--spacing-2) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 var(--spacing-2) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: var(--spacing-2) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.spacing-3 {
- & > * {
- margin: 0 var(--spacing-3) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 var(--spacing-3) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 var(--spacing-3) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: var(--spacing-3) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.spacing-4 {
- & > * {
- margin: 0 var(--spacing-4) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 var(--spacing-4) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 var(--spacing-4) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: var(--spacing-4) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.spacing-5 {
- & > * {
- margin: 0 var(--spacing-5) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 var(--spacing-5) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 var(--spacing-5) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: var(--spacing-5) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.spacing-6 {
- & > * {
- margin: 0 var(--spacing-6) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 var(--spacing-6) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 var(--spacing-6) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: var(--spacing-6) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.spacing-7 {
- & > * {
- margin: 0 var(--spacing-7) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 var(--spacing-7) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 var(--spacing-7) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: var(--spacing-7) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.spacing-8 {
- & > * {
- margin: 0 var(--spacing-8) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 var(--spacing-8) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 var(--spacing-8) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: var(--spacing-8) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.spacing-9 {
- & > * {
- margin: 0 var(--spacing-9) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 var(--spacing-9) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 var(--spacing-9) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: var(--spacing-9) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.halfItemGutter {
- & > * {
- margin: 0 calc(0.5 * var(--mini-unit)) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 calc(0.5 * var(--mini-unit)) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 calc(0.5 * var(--mini-unit)) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: calc(0.5 * var(--mini-unit)) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.doubleItemGutter {
- & > * {
- margin: 0 calc(2 * var(--mini-unit)) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 calc(2 * var(--mini-unit)) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 calc(2 * var(--mini-unit)) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: calc(2 * var(--mini-unit)) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.itemGutter {
- & > * {
- margin: 0 var(--mini-unit) 0 0 !important;
- }
- &.directionRowReverse {
- & > * {
- margin: 0 0 0 var(--mini-unit) !important;
- }
- }
- &.directionColumn {
- & > * {
- margin: 0 0 var(--mini-unit) 0 !important;
- }
- }
- &.directionColumnReverse {
- & > * {
- margin: var(--mini-unit) 0 0 0 !important;
- }
- }
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.wrap {
- flex-wrap: wrap;
-}
-
-.wrapReverse {
- flex-wrap: wrap-reverse;
-}
-
-.wrap,
-.wrapReverse {
- &:not(.directionColumn).itemGutter {
- &:not(:empty) {
- margin-top: calc(-1 * var(--mini-unit)) !important;
- }
- & > * {
- margin-top: var(--mini-unit) !important;
- }
- }
- &.directionColumn.itemGutter {
- &:not(:empty) {
- margin-left: calc(-1 * var(--mini-unit)) !important;
- }
- &.itemGutter > * {
- margin-left: var(--mini-unit) !important;
- }
- }
-
- &:not(.directionColumn).halfItemGutter {
- &:not(:empty) {
- margin-top: calc(-0.5 * var(--mini-unit)) !important;
- }
- & > * {
- margin-top: calc(0.5 * var(--mini-unit)) !important;
- }
- }
- &.directionColumn.halfItemGutter {
- &:not(:empty) {
- margin-left: calc(-0.5 * var(--mini-unit)) !important;
- }
- &.halfItemGutter > * {
- margin-left: calc(0.5 * var(--mini-unit)) !important;
- }
- }
-
- &:not(.directionColumn).doubleItemGutter {
- &:not(:empty) {
- margin-top: calc(-2 * var(--mini-unit)) !important;
- }
- & > * {
- margin-top: calc(2 * var(--mini-unit)) !important;
- }
- }
- &.directionColumn.doubleItemGutter {
- &:not(:empty) {
- margin-left: calc(-2 * var(--mini-unit)) !important;
- }
- &.doubleItemGutter > * {
- margin-left: calc(2 * var(--mini-unit)) !important;
- }
- }
-
- &:not(.directionColumn).tripleItemGutter {
- &:not(:empty) {
- margin-top: calc(-3 * var(--mini-unit)) !important;
- }
- & > * {
- margin-top: calc(3 * var(--mini-unit)) !important;
- }
- }
- &.directionColumn.tripleItemGutter {
- &:not(:empty) {
- margin-left: calc(-3 * var(--mini-unit)) !important;
- }
- &.tripleItemGutter > * {
- margin-left: calc(3 * var(--mini-unit)) !important;
- }
- }
-
- &:not(.directionColumn).spacing-1 {
- &:not(:empty) {
- margin-top: calc(-1 * var(--spacing-1)) !important;
- }
- & > * {
- margin-top: var(--spacing-1) !important;
- }
- }
- &.directionColumn.spacing-1 {
- &:not(:empty) {
- margin-left: calc(-1 * var(--spacing-1)) !important;
- }
- &.itemGutter > * {
- margin-left: var(--spacing-1) !important;
- }
- }
-
- &:not(.directionColumn).spacing-2 {
- &:not(:empty) {
- margin-top: calc(-1 * var(--spacing-2)) !important;
- }
- & > * {
- margin-top: var(--spacing-2) !important;
- }
- }
- &.directionColumn.spacing-2 {
- &:not(:empty) {
- margin-left: calc(-1 * var(--spacing-2)) !important;
- }
- &.itemGutter > * {
- margin-left: var(--spacing-2) !important;
- }
- }
-
- &:not(.directionColumn).spacing-3 {
- &:not(:empty) {
- margin-top: calc(-1 * var(--spacing-3)) !important;
- }
- & > * {
- margin-top: var(--spacing-3) !important;
- }
- }
- &.directionColumn.spacing-3 {
- &:not(:empty) {
- margin-left: calc(-1 * var(--spacing-3)) !important;
- }
- &.itemGutter > * {
- margin-left: var(--spacing-3) !important;
- }
- }
-
- &:not(.directionColumn).spacing-4 {
- &:not(:empty) {
- margin-top: calc(-1 * var(--spacing-4)) !important;
- }
- & > * {
- margin-top: var(--spacing-4) !important;
- }
- }
- &.directionColumn.spacing-4 {
- &:not(:empty) {
- margin-left: calc(-1 * var(--spacing-4)) !important;
- }
- &.itemGutter > * {
- margin-left: var(--spacing-4) !important;
- }
- }
-
- &:not(.directionColumn).spacing-5 {
- &:not(:empty) {
- margin-top: calc(-1 * var(--spacing-5)) !important;
- }
- & > * {
- margin-top: var(--spacing-5) !important;
- }
- }
- &.directionColumn.spacing-5 {
- &:not(:empty) {
- margin-left: calc(-1 * var(--spacing-5)) !important;
- }
- &.itemGutter > * {
- margin-left: var(--spacing-5) !important;
- }
- }
-
- &:not(.directionColumn).spacing-6 {
- &:not(:empty) {
- margin-top: calc(-1 * var(--spacing-6)) !important;
- }
- & > * {
- margin-top: var(--spacing-6) !important;
- }
- }
- &.directionColumn.spacing-6 {
- &:not(:empty) {
- margin-left: calc(-1 * var(--spacing-6)) !important;
- }
- &.itemGutter > * {
- margin-left: var(--spacing-6) !important;
- }
- }
-
- &:not(.directionColumn).spacing-7 {
- &:not(:empty) {
- margin-top: calc(-1 * var(--spacing-7)) !important;
- }
- & > * {
- margin-top: var(--spacing-7) !important;
- }
- }
- &.directionColumn.spacing-7 {
- &:not(:empty) {
- margin-left: calc(-1 * var(--spacing-7)) !important;
- }
- &.itemGutter > * {
- margin-left: var(--spacing-7) !important;
- }
- }
-
- &:not(.directionColumn).spacing-8 {
- &:not(:empty) {
- margin-top: calc(-1 * var(--spacing-8)) !important;
- }
- & > * {
- margin-top: var(--spacing-8) !important;
- }
- }
- &.directionColumn.spacing-8 {
- &:not(:empty) {
- margin-left: calc(-1 * var(--spacing-8)) !important;
- }
- &.itemGutter > * {
- margin-left: var(--spacing-8) !important;
- }
- }
-
- &:not(.directionColumn).spacing-9 {
- &:not(:empty) {
- margin-top: calc(-1 * var(--spacing-9)) !important;
- }
- & > * {
- margin-top: var(--spacing-9) !important;
- }
- }
- &.directionColumn.spacing-9 {
- &:not(:empty) {
- margin-left: calc(-1 * var(--spacing-9)) !important;
- }
- &.itemGutter > * {
- margin-left: var(--spacing-9) !important;
- }
- }
-}
-
-.justifyFlexStart {
- justify-content: flex-start;
-}
-.justifyFlexEnd {
- justify-content: flex-end;
-}
-.justifyCenter {
- justify-content: center;
-}
-.justifySpaceBetween {
- justify-content: space-between;
-}
-.justifySpaceAround {
- justify-content: space-around;
-}
-.justifySpaceEvenly {
- justify-content: space-evenly;
-}
-
-.alignFlexStart {
- align-items: flex-start;
-}
-.alignFlexEnd {
- align-items: flex-end;
-}
-.alignCenter {
- align-items: center;
-}
-.alignBaseline {
- align-items: baseline;
-}
-.alignStretch {
- align-items: stretch;
-}
-
-.directionRow {
- flex-direction: row;
-}
-.directionColumn {
- flex-direction: column;
-}
-.directionRowReverse {
- flex-direction: row-reverse;
-}
-.directionColumnReverse {
- flex-direction: column-reverse;
-}
diff --git a/src/core/client/ui/components/Flex/Flex.spec.tsx b/src/core/client/ui/components/Flex/Flex.spec.tsx
deleted file mode 100644
index e1e6299d1..000000000
--- a/src/core/client/ui/components/Flex/Flex.spec.tsx
+++ /dev/null
@@ -1,68 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import Flex from "./Flex";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- justifyContent: "center",
- alignItems: "center",
- direction: "row",
- };
- const renderer = TestRenderer.create(
-
- Hello World
-
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("renders with wrap", () => {
- const props: PropTypesOf = {
- wrap: true,
- };
- const renderer = TestRenderer.create(
-
- Hello World
-
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("renders with wrap reverse", () => {
- const props: PropTypesOf = {
- wrap: "reverse",
- };
- const renderer = TestRenderer.create(
-
- Hello World
-
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("renders with item gutter", () => {
- const props: PropTypesOf = {
- itemGutter: true,
- };
- const renderer = TestRenderer.create(
-
- Hello World
-
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("renders with half item gutter", () => {
- const props: PropTypesOf = {
- itemGutter: "half",
- };
- const renderer = TestRenderer.create(
-
- Hello World
-
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Flex/Flex.tsx b/src/core/client/ui/components/Flex/Flex.tsx
deleted file mode 100644
index 86ad461e1..000000000
--- a/src/core/client/ui/components/Flex/Flex.tsx
+++ /dev/null
@@ -1,119 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, Ref } from "react";
-
-import { pascalCase } from "coral-common/utils";
-import { withForwardRef, withStyles } from "coral-ui/hocs";
-import { Spacing } from "coral-ui/theme/variables";
-import { PropTypesOf } from "coral-ui/types";
-
-/** Needs to be loaded after styles, because Box styles have priority */
-import Box from "../Box";
-
-import styles from "./Flex.css";
-
-interface Props extends Omit, "ref"> {
- /**
- * This prop can be used to add custom classnames.
- * It is handled by the `withStyles `HOC.
- */
- classes: typeof styles;
- id?: string;
- role?: string;
- justifyContent?:
- | "flex-start"
- | "flex-end"
- | "center"
- | "space-around"
- | "space-between"
- | "space-evenly";
- alignItems?: "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
- direction?: "row" | "column" | "row-reverse" | "column-reverse";
- /** @deprecated use `spacing` instead */
- itemGutter?: boolean | "half" | "double" | "triple";
- /** Adds a gutter between items. Uses predefined sizes from design tokens */
- spacing?: Spacing;
- className?: string;
- wrap?: boolean | "reverse";
-
- /** Internal: Forwarded Ref */
- forwardRef?: Ref;
-}
-
-const Flex: FunctionComponent = (props) => {
- const {
- classes,
- className,
- justifyContent,
- alignItems,
- direction,
- itemGutter,
- wrap,
- forwardRef,
- children,
- spacing,
- ...rest
- } = props;
-
- const classObject: Record = {
- [classes.itemGutter]: itemGutter === true,
- [classes.halfItemGutter]: itemGutter === "half",
- [classes.doubleItemGutter]: itemGutter === "double",
- [classes.tripleItemGutter]: itemGutter === "triple",
- [classes.wrap]: wrap === true,
- [classes.wrapReverse]: wrap === "reverse",
- };
-
- if (justifyContent) {
- classObject[
- (classes as any)[`justify${pascalCase(justifyContent)}`]
- ] = true;
- }
-
- if (alignItems) {
- classObject[(classes as any)[`align${pascalCase(alignItems)}`]] = true;
- }
-
- if (direction) {
- classObject[(classes as any)[`direction${pascalCase(direction)}`]] = true;
- }
-
- const rootClassNames: string = cn(classes.root, className);
- const flexClassNames: string = cn(
- classes.flex,
- classObject,
- (itemGutter || spacing) && "gutter",
- spacing && (classes as any)[`spacing-${spacing}`]
- );
-
- // text nodes can't be modified with css, so replace them with spans.
- // Readd spaces at the beginning or end of text nodes because
- // flex removes it.
- const content = React.Children.map(children, (child) => {
- if (typeof child === "string") {
- return {child.replace(/^ +| +$/g, "\xa0")} ;
- }
- return child;
- });
-
- if (wrap && itemGutter) {
- // The first div is required to support nested `Flex` components with itemGutters.
- return (
-
- {content}
-
- );
- }
- return (
-
- {content}
-
- );
-};
-
-const enhanced = withForwardRef(withStyles(styles)(Flex));
-export default enhanced;
-export type FlexProps = PropTypesOf;
diff --git a/src/core/client/ui/components/Flex/README.mdx b/src/core/client/ui/components/Flex/README.mdx
deleted file mode 100644
index 3ca921a03..000000000
--- a/src/core/client/ui/components/Flex/README.mdx
+++ /dev/null
@@ -1,60 +0,0 @@
----
-name: Flex
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-import Flex from "./Flex";
-import HorizontalGutter from "../HorizontalGutter";
-import Button from "../Button";
-
-# Flex
-
-`Flex` is a wrapper around `flexbox`.
-
-## Justify content
-
-
- I'm centered
-
-
-## Align items
-
-
-
- Push Me
-
- Push Me
-
-
- Push Me
-
-
-
-
-## Direction
-
-
-
- Push Me
- Push Me
- Push Me
-
-
-
-## Item Gutter
-
-
-
-
- Push Me
- Push Me
- Push Me
-
-
- Push Me
- Push Me
- Push Me
-
-
-
diff --git a/src/core/client/ui/components/Flex/__snapshots__/Flex.spec.tsx.snap b/src/core/client/ui/components/Flex/__snapshots__/Flex.spec.tsx.snap
deleted file mode 100644
index 5f915908a..000000000
--- a/src/core/client/ui/components/Flex/__snapshots__/Flex.spec.tsx.snap
+++ /dev/null
@@ -1,51 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-`;
-
-exports[`renders with half item gutter 1`] = `
-
-`;
-
-exports[`renders with item gutter 1`] = `
-
-`;
-
-exports[`renders with wrap 1`] = `
-
-`;
-
-exports[`renders with wrap reverse 1`] = `
-
-`;
diff --git a/src/core/client/ui/components/Flex/index.ts b/src/core/client/ui/components/Flex/index.ts
deleted file mode 100644
index 434836f6d..000000000
--- a/src/core/client/ui/components/Flex/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default, FlexProps } from "./Flex";
diff --git a/src/core/client/ui/components/FormField/FormField.css b/src/core/client/ui/components/FormField/FormField.css
deleted file mode 100644
index c3a2af639..000000000
--- a/src/core/client/ui/components/FormField/FormField.css
+++ /dev/null
@@ -1,2 +0,0 @@
-.root {
-}
diff --git a/src/core/client/ui/components/FormField/FormField.spec.tsx b/src/core/client/ui/components/FormField/FormField.spec.tsx
deleted file mode 100644
index d5f264a47..000000000
--- a/src/core/client/ui/components/FormField/FormField.spec.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { InputDescription, InputLabel, TextField } from "../../components";
-import FormField from "../FormField";
-
-it("renders correctly", () => {
- const renderer = TestRenderer.create(
- Form Components should go here
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("works with multiple form components", () => {
- const renderer = TestRenderer.create(
-
- Username
-
- An identifier displayed on your comments. You may use “_” and “.”
-
-
-
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/FormField/FormField.tsx b/src/core/client/ui/components/FormField/FormField.tsx
deleted file mode 100644
index dc3e9c431..000000000
--- a/src/core/client/ui/components/FormField/FormField.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, ReactNode } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-import { PropTypesOf } from "coral-ui/types";
-
-import HorizontalGutter from "../HorizontalGutter";
-
-import styles from "./FormField.css";
-
-interface Props extends Omit, "ref"> {
- children: ReactNode;
- classes: typeof styles;
- id?: string;
- className?: string;
-}
-
-const FormField: FunctionComponent = (props) => {
- const { classes, className, children, ...rest } = props;
-
- return (
-
- {children}
-
- );
-};
-
-const enhanced = withStyles(styles)(FormField);
-export default enhanced;
diff --git a/src/core/client/ui/components/FormField/README.mdx b/src/core/client/ui/components/FormField/README.mdx
deleted file mode 100644
index ead5633a3..000000000
--- a/src/core/client/ui/components/FormField/README.mdx
+++ /dev/null
@@ -1,22 +0,0 @@
----
-name: FormField
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import { InputLabel, ValidationMessage, TextField, InputDescription, FormField } from '../'
-
-# FormField
-
-`FormField` is to be used with Form Components: `InputLabel`, `InputDescription`, `TextField`, `ValidationMessage`, etc.
-FormField manages the gutters between inner elements. It's a form field wrapper of the `Flex` Component.
-
-## Justify content
-
-
- Username
- A unique identifier displayed on your comments. You may use “_” and “.”
-
- Invalid characters. Try again.
-
-
diff --git a/src/core/client/ui/components/FormField/__snapshots__/FormField.spec.tsx.snap b/src/core/client/ui/components/FormField/__snapshots__/FormField.spec.tsx.snap
deleted file mode 100644
index 10a2d0a73..000000000
--- a/src/core/client/ui/components/FormField/__snapshots__/FormField.spec.tsx.snap
+++ /dev/null
@@ -1,35 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- Form Components should go here
-
-`;
-
-exports[`works with multiple form components 1`] = `
-
-
- Username
-
-
- An identifier displayed on your comments. You may use “_” and “.”
-
-
-
-
-
-`;
diff --git a/src/core/client/ui/components/FormField/index.ts b/src/core/client/ui/components/FormField/index.ts
deleted file mode 100644
index e2d6f74d4..000000000
--- a/src/core/client/ui/components/FormField/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./FormField";
diff --git a/src/core/client/ui/components/HorizontalGutter/HorizontalGutter.css b/src/core/client/ui/components/HorizontalGutter/HorizontalGutter.css
deleted file mode 100644
index f5d44939f..000000000
--- a/src/core/client/ui/components/HorizontalGutter/HorizontalGutter.css
+++ /dev/null
@@ -1,85 +0,0 @@
-.root {
- display: block;
- border: 0;
- padding: 0;
-
- & > *:last-child {
- margin: 0 !important;
- }
-}
-
-.half {
- & > * {
- margin: 0 0 calc(0.5 * var(--mini-unit)) 0 !important;
- }
-}
-.full {
- & > * {
- margin: 0 0 var(--mini-unit) 0 !important;
- }
-}
-.oneAndAHalf {
- & > * {
- margin: 0 0 calc(1.5 * var(--mini-unit)) 0 !important;
- }
-}
-.double {
- & > * {
- margin: 0 0 calc(2 * var(--mini-unit)) 0 !important;
- }
-}
-.triple {
- & > * {
- margin: 0 0 calc(3 * var(--mini-unit)) 0 !important;
- }
-}
-.spacing-1 {
- & > * {
- margin: 0 0 var(--spacing-1) 0 !important;
- }
-}
-.spacing-2 {
- & > * {
- margin: 0 0 var(--spacing-2) 0 !important;
- }
-}
-.spacing-3 {
- & > * {
- margin: 0 0 var(--spacing-3) 0 !important;
- }
-}
-.spacing-1 {
- & > * {
- margin: 0 0 var(--spacing-1) 0 !important;
- }
-}
-.spacing-4 {
- & > * {
- margin: 0 0 var(--spacing-4) 0 !important;
- }
-}
-.spacing-5 {
- & > * {
- margin: 0 0 var(--spacing-5) 0 !important;
- }
-}
-.spacing-6 {
- & > * {
- margin: 0 0 var(--spacing-6) 0 !important;
- }
-}
-.spacing-7 {
- & > * {
- margin: 0 0 var(--spacing-7) 0 !important;
- }
-}
-.spacing-8 {
- & > * {
- margin: 0 0 var(--spacing-8) 0 !important;
- }
-}
-.spacing-9 {
- & > * {
- margin: 0 0 var(--spacing-9) 0 !important;
- }
-}
diff --git a/src/core/client/ui/components/HorizontalGutter/HorizontalGutter.spec.tsx b/src/core/client/ui/components/HorizontalGutter/HorizontalGutter.spec.tsx
deleted file mode 100644
index 470baa72d..000000000
--- a/src/core/client/ui/components/HorizontalGutter/HorizontalGutter.spec.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import HorizontalGutter from "./HorizontalGutter";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("renders double size", () => {
- const props: PropTypesOf = {
- size: "double",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/HorizontalGutter/HorizontalGutter.tsx b/src/core/client/ui/components/HorizontalGutter/HorizontalGutter.tsx
deleted file mode 100644
index 22f864ae4..000000000
--- a/src/core/client/ui/components/HorizontalGutter/HorizontalGutter.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, Ref } from "react";
-
-import { withForwardRef, withStyles } from "coral-ui/hocs";
-import { Spacing } from "coral-ui/theme/variables";
-import { PropTypesOf } from "coral-ui/types";
-
-/** Needs to be loaded after styles, because Box styles have priority */
-import Box from "../Box";
-
-import styles from "./HorizontalGutter.css";
-
-interface Props extends Omit, "ref"> {
- /**
- * This prop can be used to add custom classnames.
- * It is handled by the `withStyles `HOC.
- */
- classes: typeof styles;
-
- /** @deprecated use `spacing` instead */
- size?: "half" | "full" | "double" | "triple" | "oneAndAHalf";
-
- /** Choose gutter size, uses predefined sizes from design tokens */
- spacing?: Spacing;
-
- /** The name of the HorizontalGutter to render */
- children?: React.ReactNode;
-
- /** Internal: Forwarded Ref */
- forwardRef?: Ref;
-
- /**
- * The container used for the root node.
- * Either a string to use a DOM element, a component, or an element.
- * By default, it maps the variant to a good default headline component.
- */
- container?: React.ReactElement | React.ComponentType | string;
-}
-
-const HorizontalGutter: FunctionComponent = (props) => {
- const {
- classes,
- className,
- size,
- forwardRef,
- container,
- spacing,
- ...rest
- } = props;
- const rootClassName = cn(
- classes.root,
- className,
- spacing ? (classes as any)[`spacing-${spacing}`] : classes[size!]
- );
-
- const innerProps = {
- className: rootClassName,
- ref: forwardRef,
- container,
- ...rest,
- };
- return ;
-};
-
-HorizontalGutter.defaultProps = {
- size: "full",
- container: "div",
-} as Partial;
-
-const enhanced = withForwardRef(withStyles(styles)(HorizontalGutter));
-export type HorizontalGutterProps = PropTypesOf;
-export default enhanced;
diff --git a/src/core/client/ui/components/HorizontalGutter/README.mdx b/src/core/client/ui/components/HorizontalGutter/README.mdx
deleted file mode 100644
index 0f925bb3d..000000000
--- a/src/core/client/ui/components/HorizontalGutter/README.mdx
+++ /dev/null
@@ -1,36 +0,0 @@
----
-name: HorizontalGutter
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-import HorizontalGutter from "./HorizontalGutter";
-import Button from "../Button";
-
-# Spinner
-
-## Usage
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/core/client/ui/components/HorizontalGutter/__snapshots__/HorizontalGutter.spec.tsx.snap b/src/core/client/ui/components/HorizontalGutter/__snapshots__/HorizontalGutter.spec.tsx.snap
deleted file mode 100644
index af7883930..000000000
--- a/src/core/client/ui/components/HorizontalGutter/__snapshots__/HorizontalGutter.spec.tsx.snap
+++ /dev/null
@@ -1,13 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-`;
-
-exports[`renders double size 1`] = `
-
-`;
diff --git a/src/core/client/ui/components/HorizontalGutter/index.ts b/src/core/client/ui/components/HorizontalGutter/index.ts
deleted file mode 100644
index 74ebbbd3c..000000000
--- a/src/core/client/ui/components/HorizontalGutter/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default, HorizontalGutterProps } from "./HorizontalGutter";
diff --git a/src/core/client/ui/components/Icon/Icon.css b/src/core/client/ui/components/Icon/Icon.css
deleted file mode 100644
index 6fe4b6ae6..000000000
--- a/src/core/client/ui/components/Icon/Icon.css
+++ /dev/null
@@ -1,60 +0,0 @@
-.root {
- composes: icon from "~coral-ui/shared/icon.css";
- font-family: "Material Icons";
- speak: none;
- font-style: normal;
- font-weight: normal;
- font-variant: normal;
- text-transform: none;
- line-height: 1;
- overflow: hidden;
- vertical-align: middle;
- display: inline-block;
- letter-spacing: 0;
- word-break: initial;
-
- /* Enable Ligatures */
- font-feature-settings: "liga";
- -ms-font-feature-settings: "liga" 1;
- font-variant-ligatures: "discretionary-ligatures";
-
- /* Support for Safari and Chrome. */
- text-rendering: optimizeLegibility;
-
- /* Better Font Rendering */
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-.xs {
- font-size: 10px;
- width: 10px;
-}
-
-.sm {
- font-size: 14px;
- width: 14px;
-}
-.md {
- font-size: 18px;
- width: 18px;
-}
-.lg {
- font-size: 24px;
- width: 24px;
-}
-.xl {
- font-size: 36px;
- width: 36px;
-}
-
-.colorPrimary {
- color: var(--palette-primary-main);
-}
-.colorError {
- color: var(--palette-error-main);
-}
-
-.colorSuccess {
- color: var(--palette-success-main);
-}
diff --git a/src/core/client/ui/components/Icon/Icon.spec.tsx b/src/core/client/ui/components/Icon/Icon.spec.tsx
deleted file mode 100644
index b4175a5b2..000000000
--- a/src/core/client/ui/components/Icon/Icon.spec.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-framework/types";
-
-import Icon from "./Icon";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- children: "face",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("renders correctly with specified size", () => {
- const props: PropTypesOf = {
- size: "lg",
- children: "bookmark",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Icon/Icon.tsx b/src/core/client/ui/components/Icon/Icon.tsx
deleted file mode 100644
index 43bc87f6b..000000000
--- a/src/core/client/ui/components/Icon/Icon.tsx
+++ /dev/null
@@ -1,60 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, HTMLAttributes, Ref } from "react";
-
-import { withForwardRef, withStyles } from "coral-ui/hocs";
-import { PropTypesOf } from "coral-ui/types";
-
-import styles from "./Icon.css";
-
-interface Props extends HTMLAttributes {
- /**
- * This prop can be used to add custom classnames.
- * It is handled by the `withStyles `HOC.
- */
- classes: typeof styles;
-
- size?: "xs" | "sm" | "md" | "lg" | "xl";
-
- /**
- * The color of the component. It supports those theme colors that make sense for this component.
- */
- color?: "inherit" | "primary" | "error" | "success";
-
- /** The name of the icon to render */
- children: string;
-
- /** Internal: Forwarded Ref */
- forwardRef?: Ref;
-}
-
-const Icon: FunctionComponent = (props) => {
- const { classes, className, size, color, forwardRef, ...rest } = props;
-
- const rootClassName = cn(
- classes.root,
- classes[size!],
- {
- [classes.colorPrimary]: color === "primary",
- [classes.colorError]: color === "error",
- [classes.colorSuccess]: color === "success",
- },
- className
- );
- return (
-
- );
-};
-
-Icon.defaultProps = {
- size: "sm",
- color: "inherit",
-} as Partial;
-
-const enhanced = withForwardRef(withStyles(styles)(Icon));
-export type IconProps = PropTypesOf;
-export default enhanced;
diff --git a/src/core/client/ui/components/Icon/README.mdx b/src/core/client/ui/components/Icon/README.mdx
deleted file mode 100644
index 3c3b15a8e..000000000
--- a/src/core/client/ui/components/Icon/README.mdx
+++ /dev/null
@@ -1,21 +0,0 @@
----
-name: Icon
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import Icon from './Icon'
-
-# Icon
-
-Renders an icon.
-
-Checkout available icons https://material.io/tools/icons/
-
-## Basic usage
-
- face
- face
- face
- face
-
diff --git a/src/core/client/ui/components/Icon/__snapshots__/Icon.spec.tsx.snap b/src/core/client/ui/components/Icon/__snapshots__/Icon.spec.tsx.snap
deleted file mode 100644
index a56052568..000000000
--- a/src/core/client/ui/components/Icon/__snapshots__/Icon.spec.tsx.snap
+++ /dev/null
@@ -1,19 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- face
-
-`;
-
-exports[`renders correctly with specified size 1`] = `
-
- bookmark
-
-`;
diff --git a/src/core/client/ui/components/Icon/index.ts b/src/core/client/ui/components/Icon/index.ts
deleted file mode 100644
index d3ba5da55..000000000
--- a/src/core/client/ui/components/Icon/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default, IconProps } from "./Icon";
diff --git a/src/core/client/ui/components/InputDescription/InputDescription.css b/src/core/client/ui/components/InputDescription/InputDescription.css
deleted file mode 100644
index c3a2af639..000000000
--- a/src/core/client/ui/components/InputDescription/InputDescription.css
+++ /dev/null
@@ -1,2 +0,0 @@
-.root {
-}
diff --git a/src/core/client/ui/components/InputDescription/__snapshots__/InputDescription.spec.tsx.snap b/src/core/client/ui/components/InputDescription/__snapshots__/InputDescription.spec.tsx.snap
deleted file mode 100644
index 7a1864c6a..000000000
--- a/src/core/client/ui/components/InputDescription/__snapshots__/InputDescription.spec.tsx.snap
+++ /dev/null
@@ -1,9 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- Form Components should go here
-
-`;
diff --git a/src/core/client/ui/components/InputLabel/InputLabel.css b/src/core/client/ui/components/InputLabel/InputLabel.css
deleted file mode 100644
index d84a7f655..000000000
--- a/src/core/client/ui/components/InputLabel/InputLabel.css
+++ /dev/null
@@ -1,4 +0,0 @@
-.root {
- display: block;
- padding-bottom: var(--spacing-1)
-}
diff --git a/src/core/client/ui/components/InputLabel/InputLabel.spec.tsx b/src/core/client/ui/components/InputLabel/InputLabel.spec.tsx
deleted file mode 100644
index 91a59b38e..000000000
--- a/src/core/client/ui/components/InputLabel/InputLabel.spec.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import InputLabel from "./InputLabel";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- };
- const renderer = TestRenderer.create(
- Hello
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/InputLabel/InputLabel.tsx b/src/core/client/ui/components/InputLabel/InputLabel.tsx
deleted file mode 100644
index e1810d04d..000000000
--- a/src/core/client/ui/components/InputLabel/InputLabel.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, ReactNode } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-import { PropTypesOf } from "coral-ui/types";
-
-import Typography from "../Typography";
-
-import styles from "./InputLabel.css";
-
-export interface InputLabelProps
- extends Omit, "ref"> {
- id?: string;
- htmlFor?: string;
- /**
- * The content of the component.
- */
- children?: ReactNode;
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
-}
-
-const InputLabelProps: FunctionComponent = (props) => {
- const { className, children, classes, ...rest } = props;
-
- const rootClassName = cn(classes.root, className);
-
- return (
-
- {children}
-
- );
-};
-
-const enhanced = withStyles(styles)(InputLabelProps);
-export default enhanced;
diff --git a/src/core/client/ui/components/InputLabel/README.mdx b/src/core/client/ui/components/InputLabel/README.mdx
deleted file mode 100644
index cef12992d..000000000
--- a/src/core/client/ui/components/InputLabel/README.mdx
+++ /dev/null
@@ -1,19 +0,0 @@
----
-name: InputLabel
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import InputLabel from './InputLabel.tsx'
-import HorizontalGutter from '../HorizontalGutter'
-
-# InputLabel
-
-## Basic Use
-
-
- Well... Hello there.
-
-
-
-
diff --git a/src/core/client/ui/components/InputLabel/__snapshots__/InputLabel.spec.tsx.snap b/src/core/client/ui/components/InputLabel/__snapshots__/InputLabel.spec.tsx.snap
deleted file mode 100644
index c619963ce..000000000
--- a/src/core/client/ui/components/InputLabel/__snapshots__/InputLabel.spec.tsx.snap
+++ /dev/null
@@ -1,9 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- Hello
-
-`;
diff --git a/src/core/client/ui/components/InputLabel/index.ts b/src/core/client/ui/components/InputLabel/index.ts
deleted file mode 100644
index b5002b7c0..000000000
--- a/src/core/client/ui/components/InputLabel/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./InputLabel";
diff --git a/src/core/client/ui/components/Marker/Count.css b/src/core/client/ui/components/Marker/Count.css
deleted file mode 100644
index aec911bf2..000000000
--- a/src/core/client/ui/components/Marker/Count.css
+++ /dev/null
@@ -1,10 +0,0 @@
-.root {
- composes: markerText from "~coral-ui/shared/typography.css";
- border-left: 1px solid currentColor;
- margin-left: calc(0.5 * var(--mini-unit));
- margin-right: calc(-0.25 * var(--mini-unit));
- padding-top: 2px;
- padding-bottom: 2px;
- padding-left: calc(0.5 * var(--mini-unit));
- white-space: nowrap;
-}
diff --git a/src/core/client/ui/components/Marker/Count.spec.tsx b/src/core/client/ui/components/Marker/Count.spec.tsx
deleted file mode 100644
index 7b81152f5..000000000
--- a/src/core/client/ui/components/Marker/Count.spec.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import Count from "./Count";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- children: "30",
- };
- const renderer = TestRenderer.create(Hello );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Marker/Count.tsx b/src/core/client/ui/components/Marker/Count.tsx
deleted file mode 100644
index 3cc8fad73..000000000
--- a/src/core/client/ui/components/Marker/Count.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./Count.css";
-
-interface Props {
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- children: React.ReactNode;
-}
-
-const Count: FunctionComponent = (props) => {
- const { className, children, classes, ...rest } = props;
- const rootClassName = cn(classes.root, className);
-
- return (
-
- {children}
-
- );
-};
-
-const enhanced = withStyles(styles)(Count);
-export default enhanced;
diff --git a/src/core/client/ui/components/Marker/Marker.css b/src/core/client/ui/components/Marker/Marker.css
deleted file mode 100644
index 1468a83b4..000000000
--- a/src/core/client/ui/components/Marker/Marker.css
+++ /dev/null
@@ -1,38 +0,0 @@
-.root {
- composes: markerText from "~coral-ui/shared/typography.css";
-
- color: var(--palette-error-main);
- border: 1px solid currentColor;
- border-radius: 20px;
- padding: 1px var(--mini-unit);
- white-space: nowrap;
-}
-
-.colorPrimary {
- color: var(--palette-primary-darkest);
-}
-
-.colorGrey {
- color: var(--palette-grey-darkest);
-}
-
-.colorError {
- color: var(--palette-error-darkest);
-}
-
-.variantRegular {
-}
-
-.variantFilled {
- &.colorPrimary {
- background-color: var(--palette-primary-lightest);
- }
-
- &.colorGrey {
- background-color: var(--palette-grey-lightest);
- }
-
- &.colorError {
- background-color: var(--palette-error-lightest);
- }
-}
diff --git a/src/core/client/ui/components/Marker/Marker.spec.tsx b/src/core/client/ui/components/Marker/Marker.spec.tsx
deleted file mode 100644
index b1cdcb91d..000000000
--- a/src/core/client/ui/components/Marker/Marker.spec.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import Marker from "./Marker";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- color: "error",
- variant: "filled",
- children: "Spam",
- };
- const renderer = TestRenderer.create(Hello );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Marker/Marker.tsx b/src/core/client/ui/components/Marker/Marker.tsx
deleted file mode 100644
index 5c4a9f843..000000000
--- a/src/core/client/ui/components/Marker/Marker.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./Marker.css";
-
-interface Props {
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- children: React.ReactNode;
- /**
- * The color of the component. It supports those theme colors that make sense for this component.
- */
- color?: "grey" | "primary" | "error";
-
- variant?: "regular" | "filled";
-}
-
-const Marker: FunctionComponent = (props) => {
- const { className, children, classes, color, variant, ...rest } = props;
-
- const rootClassName = cn(classes.root, className, {
- [classes.colorPrimary]: color === "primary",
- [classes.colorGrey]: color === "grey",
- [classes.colorError]: color === "error",
- [classes.variantRegular]: variant === "regular",
- [classes.variantFilled]: variant === "filled",
- });
-
- return (
-
- {children}
-
- );
-};
-
-Marker.defaultProps = {
- color: "grey",
- variant: "regular",
-};
-
-const enhanced = withStyles(styles)(Marker);
-export default enhanced;
diff --git a/src/core/client/ui/components/Marker/README.mdx b/src/core/client/ui/components/Marker/README.mdx
deleted file mode 100644
index ef4450593..000000000
--- a/src/core/client/ui/components/Marker/README.mdx
+++ /dev/null
@@ -1,43 +0,0 @@
----
-name: Marker
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-import Marker from "./Marker";
-import Count from "./Count";
-import HorizontalGutter from "../HorizontalGutter";
-import Flex from "../Flex";
-
-# Marker
-
-## Basic Use
-
-
-
-
- Toxic
- Karma
- Spam
- Banned Word
-
- With a count 1
-
-
-
- Premod
- Link
-
-
-
- Spam 2
-
-
- Suspect Word
-
-
- Offensive 1
-
-
-
-
diff --git a/src/core/client/ui/components/Marker/__snapshots__/Count.spec.tsx.snap b/src/core/client/ui/components/Marker/__snapshots__/Count.spec.tsx.snap
deleted file mode 100644
index a0dfbda82..000000000
--- a/src/core/client/ui/components/Marker/__snapshots__/Count.spec.tsx.snap
+++ /dev/null
@@ -1,9 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- Hello
-
-`;
diff --git a/src/core/client/ui/components/Marker/__snapshots__/Marker.spec.tsx.snap b/src/core/client/ui/components/Marker/__snapshots__/Marker.spec.tsx.snap
deleted file mode 100644
index c885b116a..000000000
--- a/src/core/client/ui/components/Marker/__snapshots__/Marker.spec.tsx.snap
+++ /dev/null
@@ -1,9 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- Hello
-
-`;
diff --git a/src/core/client/ui/components/Marker/index.ts b/src/core/client/ui/components/Marker/index.ts
deleted file mode 100644
index 2622c15bd..000000000
--- a/src/core/client/ui/components/Marker/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default, default as Marker } from "./Marker";
-export { default as Count } from "./Count";
diff --git a/src/core/client/ui/components/MatchMedia/MatchMedia.spec.tsx b/src/core/client/ui/components/MatchMedia/MatchMedia.spec.tsx
deleted file mode 100644
index 469d8b606..000000000
--- a/src/core/client/ui/components/MatchMedia/MatchMedia.spec.tsx
+++ /dev/null
@@ -1,60 +0,0 @@
-import { mount } from "enzyme";
-import React from "react";
-import { MediaQueryMatchers } from "react-responsive";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import UIContext from "../UIContext";
-import { default as MatchMediaWithContext, MatchMedia } from "./MatchMedia";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- lteWidth: "xs",
- gteWidth: "sm",
- component: "div",
- screen: true,
- children: Hello World
,
- };
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
-
-it("renders less than and great than correctly", () => {
- const props: PropTypesOf = {
- ltWidth: "xs",
- gtWidth: "sm",
- children: Hello World
,
- };
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
-
-it("map new speech prop to older aural prop", () => {
- const props: PropTypesOf = {
- speech: true,
- children: Hello World
,
- };
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
-
-it("should get mediaQueryValues from context", () => {
- const mediaQueryValues: Partial = {
- width: 100,
- };
- const context: any = {
- mediaQueryValues,
- };
- const wrapper = mount(
-
-
- Hello World
-
-
- );
- expect(wrapper.find(MatchMedia).prop("values")).toEqual(mediaQueryValues);
-});
diff --git a/src/core/client/ui/components/MatchMedia/MatchMedia.tsx b/src/core/client/ui/components/MatchMedia/MatchMedia.tsx
deleted file mode 100644
index cf3ecadf6..000000000
--- a/src/core/client/ui/components/MatchMedia/MatchMedia.tsx
+++ /dev/null
@@ -1,75 +0,0 @@
-import React, { FunctionComponent, ReactNode } from "react";
-import Responsive, { MediaQueryMatchers } from "react-responsive";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import theme from "../../theme/variables";
-import UIContext from "../UIContext";
-
-type Breakpoints = keyof typeof theme.breakpoints;
-
-interface Props {
- /** greater than or equal width. */
- gteWidth?: Breakpoints;
-
- /** greater than width. */
- gtWidth?: Breakpoints;
-
- /** less than equals width. */
- lteWidth?: Breakpoints;
-
- /** less than equals width. */
- ltWidth?: Breakpoints;
- children: ReactNode | ((matches: boolean) => React.ReactNode);
- className?: string;
- component?:
- | string
- | React.SFC
- | React.ClassType
- | React.ComponentClass;
- all?: boolean;
- print?: boolean;
- screen?: boolean;
- speech?: boolean;
- values?: Partial;
-}
-
-export const MatchMedia: FunctionComponent = (props) => {
- const {
- speech,
- gteWidth,
- gtWidth,
- lteWidth,
- ltWidth,
- values,
- ...rest
- } = props;
- const mapped = {
- // TODO: Temporarily map newer speech to older aural type until
- // react-responsive supports the speech prop.
- aural: speech,
- minWidth: gtWidth
- ? theme.breakpoints[gtWidth] + 1
- : gteWidth
- ? theme.breakpoints[gteWidth]
- : undefined,
- maxWidth: ltWidth
- ? theme.breakpoints[ltWidth] - 1
- : lteWidth
- ? theme.breakpoints[lteWidth]
- : undefined,
- device: values,
- };
- return ;
-};
-
-const MatchMediaWithContext: FunctionComponent = (props) => (
-
- {({ mediaQueryValues }) => (
-
- )}
-
-);
-
-export default MatchMediaWithContext;
-export type MatchMediaProps = PropTypesOf;
diff --git a/src/core/client/ui/components/MatchMedia/README.mdx b/src/core/client/ui/components/MatchMedia/README.mdx
deleted file mode 100644
index 13f0e6175..000000000
--- a/src/core/client/ui/components/MatchMedia/README.mdx
+++ /dev/null
@@ -1,40 +0,0 @@
----
-name: MatchMedia
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import MatchMedia from './MatchMedia'
-
-# MatchMedia
-
-`MatchMedia` uses media queries to provide responsive rendering.
-
-## Basic usage
-
-
- I'm a very small screen
-
-
- I'm a small screen
-
-
- I'm a medium screen
-
-
- I'm a large screen
-
-
- I'm a very large screen
-
-
- I'm a super large screen
-
-
-
-## Using render props
-
-
- {matches => {matches ? "I'm big" : "I'm small"} }
-
-
diff --git a/src/core/client/ui/components/MatchMedia/__snapshots__/MatchMedia.spec.tsx.snap b/src/core/client/ui/components/MatchMedia/__snapshots__/MatchMedia.spec.tsx.snap
deleted file mode 100644
index b2139264e..000000000
--- a/src/core/client/ui/components/MatchMedia/__snapshots__/MatchMedia.spec.tsx.snap
+++ /dev/null
@@ -1,35 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`map new speech prop to older aural prop 1`] = `
-
-
- Hello World
-
-
-`;
-
-exports[`renders correctly 1`] = `
-
-
- Hello World
-
-
-`;
-
-exports[`renders less than and great than correctly 1`] = `
-
-
- Hello World
-
-
-`;
diff --git a/src/core/client/ui/components/MatchMedia/index.ts b/src/core/client/ui/components/MatchMedia/index.ts
deleted file mode 100644
index 66da09460..000000000
--- a/src/core/client/ui/components/MatchMedia/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default, MatchMediaProps } from "./MatchMedia";
diff --git a/src/core/client/ui/components/Message/Message.css b/src/core/client/ui/components/Message/Message.css
deleted file mode 100644
index c6da9ef06..000000000
--- a/src/core/client/ui/components/Message/Message.css
+++ /dev/null
@@ -1,46 +0,0 @@
-.root {
- composes: alertMessage from "~coral-ui/shared/typography.css";
- position: relative;
- display: inline-flex;
- justify-content: flex-start;
- align-items: center;
- padding: calc(0.5 * var(--mini-unit)) var(--mini-unit);
- box-sizing: border-box;
- border-radius: var(--round-corners);
- border-width: 1px;
- border-style: solid;
- border-left-width: calc(0.5 * var(--mini-unit));
-}
-
-.colorGrey {
- background-color: var(--palette-common-white);
- border-color: var(--palette-grey-main);
- color: var(--palette-grey-main);
-}
-
-.colorDark {
- background-color: var(--palette-text-primary);
- border-width: 0px;
- color: var(--palette-text-light);
-}
-
-.colorError {
- background-color: var(--palette-error-light);
- border-color: var(--palette-error-darkest);
- border-width: 0px;
- border-left-width: calc(0.5 * var(--mini-unit));
- color: var(--palette-text-light);
-}
-
-.colorPrimary {
- background-color: var(--palette-primary-light);
- border-color: var(--palette-primary-darkest);
- border-width: 0px;
- border-left-width: calc(0.5 * var(--mini-unit));
- color: var(--palette-text-light);
-}
-
-.fullWidth {
- display: flex;
- width: 100%;
-}
diff --git a/src/core/client/ui/components/Message/Message.spec.tsx b/src/core/client/ui/components/Message/Message.spec.tsx
deleted file mode 100644
index 2e02522b6..000000000
--- a/src/core/client/ui/components/Message/Message.spec.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import Message from "./Message";
-import MessageIcon from "./MessageIcon";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- children: "Hello World",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("renders icon", () => {
- const renderer = TestRenderer.create(
-
- alert Alert Message
-
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Message/Message.tsx b/src/core/client/ui/components/Message/Message.tsx
deleted file mode 100644
index 58e735d12..000000000
--- a/src/core/client/ui/components/Message/Message.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, ReactNode } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./Message.css";
-
-export interface MessageProps {
- /**
- * The content of the component.
- */
- children: ReactNode;
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- /*
- * If set renders a full width message
- */
- fullWidth?: boolean;
- /*
- * Name of color, "grey" stays by default - common gray one
- */
- color?: "error" | "grey" | "primary" | "dark";
-}
-
-const Message: FunctionComponent = (props) => {
- const { className, classes, fullWidth, children, color, ...rest } = props;
-
- const rootClassName = cn(
- classes.root,
- {
- [classes.colorGrey]: color === "grey",
- [classes.colorError]: color === "error",
- [classes.colorPrimary]: color === "primary",
- [classes.colorDark]: color === "dark",
- [classes.fullWidth]: fullWidth,
- },
- className
- );
-
- return (
-
- {children}
-
- );
-};
-
-Message.defaultProps = {
- color: "grey",
- fullWidth: false,
-};
-
-const enhanced = withStyles(styles)(Message);
-export default enhanced;
diff --git a/src/core/client/ui/components/Message/MessageIcon.css b/src/core/client/ui/components/Message/MessageIcon.css
deleted file mode 100644
index a6ebb20be..000000000
--- a/src/core/client/ui/components/Message/MessageIcon.css
+++ /dev/null
@@ -1,8 +0,0 @@
-.root {
- align-self: flex-start;
- margin-top: 1px;
- flex-shrink: 0;
- &:first-child {
- margin-right: calc(0.5 * var(--mini-unit));
- }
-}
diff --git a/src/core/client/ui/components/Message/MessageIcon.tsx b/src/core/client/ui/components/Message/MessageIcon.tsx
deleted file mode 100644
index 533bf040b..000000000
--- a/src/core/client/ui/components/Message/MessageIcon.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, HTMLAttributes, Ref } from "react";
-
-import Icon, { IconProps } from "coral-ui/components/Icon";
-import { withForwardRef, withStyles } from "coral-ui/hocs";
-
-import styles from "./MessageIcon.css";
-
-interface Props extends Omit, "color"> {
- /**
- * This prop can be used to add custom classnames.
- * It is handled by the `withStyles `HOC.
- */
- classes: typeof styles & IconProps["classes"];
-
- size?: IconProps["size"];
-
- /** The name of the icon to render */
- children: string;
-
- /** Internal: Forwarded Ref */
- forwardRef?: Ref;
-}
-
-export const MessageIcon: FunctionComponent = (props) => {
- const { classes, className, forwardRef, ...rest } = props;
- const rootClassName = cn(classes.root, className);
- return ;
-};
-
-MessageIcon.defaultProps = {
- size: "sm",
-};
-
-const enhanced = withForwardRef(withStyles(styles)(MessageIcon));
-export default enhanced;
diff --git a/src/core/client/ui/components/Message/README.mdx b/src/core/client/ui/components/Message/README.mdx
deleted file mode 100644
index 7690b85f9..000000000
--- a/src/core/client/ui/components/Message/README.mdx
+++ /dev/null
@@ -1,38 +0,0 @@
----
-name: Message
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-import Message from "./Message";
-import MessageIcon from "./MessageIcon";
-import HorizontalGutter from "../HorizontalGutter";
-
-# Message
-
-## Basic Use
-
-
-
- This is a message
-
- Contrary to popular belief, Lorem Ipsum is not simply random text.
-
-
- Contrary to popular belief, Lorem Ipsum is not simply random text.
-
-
- Contrary to popular belief, Lorem Ipsum is not simply random text.
-
-
-
-
-## Usage with icon
-
-
-
-
- alarm Edit: 1 min 23 secs Remaining
-
-
-
diff --git a/src/core/client/ui/components/Message/__snapshots__/Message.spec.tsx.snap b/src/core/client/ui/components/Message/__snapshots__/Message.spec.tsx.snap
deleted file mode 100644
index 2a977f72b..000000000
--- a/src/core/client/ui/components/Message/__snapshots__/Message.spec.tsx.snap
+++ /dev/null
@@ -1,23 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- Hello World
-
-`;
-
-exports[`renders icon 1`] = `
-
-
- alert
-
- Alert Message
-
-`;
diff --git a/src/core/client/ui/components/Message/index.ts b/src/core/client/ui/components/Message/index.ts
deleted file mode 100644
index 84f6b9009..000000000
--- a/src/core/client/ui/components/Message/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default, default as Message } from "./Message";
-export { default as MessageIcon } from "./MessageIcon";
diff --git a/src/core/client/ui/components/Modal/Modal.css b/src/core/client/ui/components/Modal/Modal.css
deleted file mode 100644
index c2e74ec19..000000000
--- a/src/core/client/ui/components/Modal/Modal.css
+++ /dev/null
@@ -1,31 +0,0 @@
-.root {
- position: fixed;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- z-index: var(--zindex-modal);
-}
-
-.scroll {
- position: relative;
- overflow-y: auto;
- width: 100%;
- height: 100%;
-}
-
-.alignContainer1 {
- display: table;
- margin: 0 auto;
- height: 100%;
-}
-
-.alignContainer2 {
- display: table-cell;
- vertical-align: middle;
-}
-
-.wrapper {
- pointer-events: all;
-}
diff --git a/src/core/client/ui/components/Modal/Modal.mdx.css b/src/core/client/ui/components/Modal/Modal.mdx.css
deleted file mode 100644
index 9b2098d45..000000000
--- a/src/core/client/ui/components/Modal/Modal.mdx.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.card {
- max-width: 500px;
-}
diff --git a/src/core/client/ui/components/Modal/Modal.spec.tsx b/src/core/client/ui/components/Modal/Modal.spec.tsx
deleted file mode 100644
index d86e168ed..000000000
--- a/src/core/client/ui/components/Modal/Modal.spec.tsx
+++ /dev/null
@@ -1,92 +0,0 @@
-import { noop } from "lodash";
-import React from "react";
-import TestRenderer, { ReactTestRenderer } from "react-test-renderer";
-import sinon from "sinon";
-
-import { act } from "coral-framework/testHelpers";
-
-import Modal from "./Modal";
-
-const createNodeMock = () => ({
- focus: noop,
-});
-
-it("renders correctly", () => {
- expect(document.body.lastChild).toBeNull();
- let testRenderer: ReactTestRenderer;
- act(() => {
- testRenderer = TestRenderer.create(
-
- Test
- ,
- { createNodeMock }
- );
- });
- expect(testRenderer!.toJSON()).toBeNull();
- expect(document.body.lastChild).toBeNull();
- act(() => {
- testRenderer.update(
-
- Test
-
- );
- });
- expect(testRenderer!.toJSON()).toMatchSnapshot();
- expect(document.body.lastElementChild!.getAttribute("data-portal")).toBe(
- "modal"
- );
- act(() => {
- testRenderer.unmount();
- });
- expect(document.body.lastChild).toBeNull();
-});
-
-it("relays backdrop click events", () => {
- const event = {};
- const onBackdropClick = sinon.stub();
- const onClose = sinon.stub();
- expect(document.body.lastChild).toBeNull();
- let testRenderer: ReactTestRenderer;
- act(() => {
- testRenderer = TestRenderer.create(
-
- Test
- ,
- { createNodeMock }
- );
- });
- testRenderer!.root
- .findByProps({ "data-testid": "backdrop" })
- .props.onClick(event);
- act(() => {
- testRenderer.unmount();
- });
- expect(onBackdropClick.called).toBe(true);
- expect(onClose.calledWith(event, "backdropClick")).toBe(true);
-});
-
-it("relays esc events", () => {
- const escEvent = { keyCode: 27 };
- const otherEvent = { keyCode: 100 };
- const onEscapeKeyDown = sinon.stub();
- const onClose = sinon.stub();
- expect(document.body.lastChild).toBeNull();
- let testRenderer: ReactTestRenderer;
- act(() => {
- testRenderer = TestRenderer.create(
-
- Test
- ,
- { createNodeMock }
- );
- });
- const el = testRenderer!.root.find((i) => i.props.onKeyDown);
- el.props.onKeyDown(escEvent);
- el.props.onKeyDown(otherEvent);
- act(() => {
- testRenderer.unmount();
- });
- expect(onEscapeKeyDown.called).toBe(true);
- expect(onClose.calledWith(escEvent, "escapeKeyDown")).toBe(true);
- expect(onClose.calledWith(otherEvent, "escapeKeyDown")).toBe(false);
-});
diff --git a/src/core/client/ui/components/Modal/Modal.tsx b/src/core/client/ui/components/Modal/Modal.tsx
deleted file mode 100644
index e6d4bb9c8..000000000
--- a/src/core/client/ui/components/Modal/Modal.tsx
+++ /dev/null
@@ -1,140 +0,0 @@
-import cn from "classnames";
-import React, {
- FunctionComponent,
- useCallback,
- useEffect,
- useState,
-} from "react";
-import ReactDOM from "react-dom";
-
-import { withStyles } from "coral-ui/hocs";
-import { PropTypesOf } from "coral-ui/types";
-
-import Backdrop from "../Backdrop";
-import NoScroll from "../NoScroll";
-import TrapFocus from "../TrapFocus";
-
-import styles from "./Modal.css";
-
-function appendDivNode() {
- const div = document.createElement("div");
- document.body.appendChild(div);
- div.setAttribute("data-portal", "modal");
- return div;
-}
-
-/**
- * useDOMNode is a React hook that returns a DOM node
- * to be used as a portal for the modal.
- *
- * @param open whether the modal is open or not.
- */
-function useDOMNode(open: boolean) {
- const [modalDOMNode, setModalDOMNode] = useState(null);
- useEffect(() => {
- if (open) {
- const node = appendDivNode();
- setModalDOMNode(node);
- return () => {
- node.parentElement!.removeChild(node);
- setModalDOMNode(null);
- };
- }
- return;
- }, [open]);
- return modalDOMNode;
-}
-
-interface Props {
- onClose?: (
- event: React.KeyboardEvent | React.MouseEvent,
- reason: "backdropClick" | "escapeKeyDown"
- ) => void;
- onBackdropClick?: React.EventHandler;
- onEscapeKeyDown?: React.EventHandler;
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- open?: boolean;
- children?: PropTypesOf["children"];
-}
-
-const Modal: FunctionComponent = ({
- classes,
- open,
- onClose,
- className,
- onBackdropClick,
- onEscapeKeyDown,
- children,
- ...rest
-}) => {
- const rootClassName = cn(classes.root, className);
-
- const modalDOMNode = useDOMNode(Boolean(open));
- const handleEscapeKeyDown = useCallback(
- (e: React.KeyboardEvent) => {
- if (e.keyCode === 27) {
- if (onEscapeKeyDown) {
- onEscapeKeyDown(e);
- }
- if (onClose) {
- onClose(e, "escapeKeyDown");
- }
- }
- },
- [onEscapeKeyDown, onClose]
- );
- const handleBackdropClick = useCallback(
- (e: React.MouseEvent) => {
- if (onBackdropClick) {
- onBackdropClick(e);
- }
- if (onClose) {
- onClose(e, "backdropClick");
- }
- },
- [onBackdropClick, onClose]
- );
- const handleWrapperClick = useCallback((e: React.MouseEvent) => {
- e.stopPropagation();
- }, []);
-
- if (open && modalDOMNode) {
- return ReactDOM.createPortal(
- ,
- modalDOMNode
- );
- }
- return null;
-};
-
-const enhanced = withStyles(styles)(Modal);
-export default enhanced;
diff --git a/src/core/client/ui/components/Modal/README.mdx b/src/core/client/ui/components/Modal/README.mdx
deleted file mode 100644
index cd4f57f31..000000000
--- a/src/core/client/ui/components/Modal/README.mdx
+++ /dev/null
@@ -1,66 +0,0 @@
----
-name: Modal
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-import { useState, useCallback } from "react";
-
-import Button from "../Button";
-import Card, { CardCloseButton } from "../Card";
-import Typography from "../Typography";
-import Flex from "../Flex";
-import HorizontalGutter from "../HorizontalGutter";
-import Modal from "./Modal";
-
-import styles from "./Modal.mdx.css";
-
-# Modal
-
-## Basic usage
-
-
- {() => {
- const [open, setOpen] = useState(false);
- const show = useCallback(() => setOpen(true));
- const hide = useCallback(() => setOpen(false));
- return (
- <>
-
- Show Modal
-
-
- {({ firstFocusableRef, lastFocusableRef }) => (
-
-
-
-
-
- Are you sure you want to ban ButFirstCoffee ?
-
-
- Once banned, this user will no longer be able to comment,
- use reactions, or report comments.
-
-
-
-
- Cancel
-
-
- Ban User
-
-
-
-
- )}
-
- >
- );
- }}
-
diff --git a/src/core/client/ui/components/Modal/__snapshots__/Modal.spec.tsx.snap b/src/core/client/ui/components/Modal/__snapshots__/Modal.spec.tsx.snap
deleted file mode 100644
index a8ac4e4be..000000000
--- a/src/core/client/ui/components/Modal/__snapshots__/Modal.spec.tsx.snap
+++ /dev/null
@@ -1,49 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-`;
diff --git a/src/core/client/ui/components/Modal/index.ts b/src/core/client/ui/components/Modal/index.ts
deleted file mode 100644
index 09b91f72b..000000000
--- a/src/core/client/ui/components/Modal/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./Modal";
diff --git a/src/core/client/ui/components/NoScroll/NoScroll.css b/src/core/client/ui/components/NoScroll/NoScroll.css
deleted file mode 100644
index 7546b152d..000000000
--- a/src/core/client/ui/components/NoScroll/NoScroll.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.noScroll {
- overflow: hidden;
-}
diff --git a/src/core/client/ui/components/NoScroll/NoScroll.spec.tsx b/src/core/client/ui/components/NoScroll/NoScroll.spec.tsx
deleted file mode 100644
index c0a35a2f5..000000000
--- a/src/core/client/ui/components/NoScroll/NoScroll.spec.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import React from "react";
-import TestRenderer, { ReactTestRenderer } from "react-test-renderer";
-
-import { act } from "coral-framework/testHelpers";
-
-import NoScroll from "./NoScroll";
-
-it("renders correctly", () => {
- expect(document.body.className).toBe("");
- let testRenderer: ReactTestRenderer;
- act(() => {
- testRenderer = TestRenderer.create( );
- });
- expect(document.body.className).toBe("NoScroll-noScroll");
- act(() => {
- testRenderer.update( );
- });
- expect(document.body.className).toBe("");
-});
-
-it("renders correctly with multiple instances", () => {
- expect(document.body.className).toBe("");
- let testRenderer: ReactTestRenderer;
- act(() => {
- testRenderer = TestRenderer.create(
- <>
-
-
-
- >
- );
- });
- expect(document.body.className).toBe("NoScroll-noScroll");
- act(() => {
- testRenderer.update(
- <>
-
-
-
- >
- );
- });
- expect(document.body.className).toBe("NoScroll-noScroll");
- act(() => {
- testRenderer.update(
- <>
-
-
-
- >
- );
- });
- expect(document.body.className).toBe("");
-});
diff --git a/src/core/client/ui/components/NoScroll/NoScroll.tsx b/src/core/client/ui/components/NoScroll/NoScroll.tsx
deleted file mode 100644
index 2c6f7ced5..000000000
--- a/src/core/client/ui/components/NoScroll/NoScroll.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import { FunctionComponent, useEffect } from "react";
-
-import styles from "./NoScroll.css";
-
-interface Props {
- /** If set to true, will disable scrolling on `` */
- active?: boolean;
-}
-
-/** Counter of current instances */
-let instances = 0;
-
-const NoScroll: FunctionComponent = ({ active }) => {
- useEffect(() => {
- if (active) {
- if (instances++ === 0) {
- // Add className.
- document.body.className = document.body.className
- .split(/\s+/)
- .filter((s) => s)
- .concat(styles.noScroll)
- .join(" ");
- }
-
- // Cleanup hook.
- return () => {
- if (--instances === 0) {
- // Remove className.
- document.body.className = document.body.className
- .split(/\s+/)
- .filter((s) => s && s !== styles.noScroll)
- .join(" ");
- }
- };
- }
- return;
- }, [active]);
- return null;
-};
-
-export default NoScroll;
diff --git a/src/core/client/ui/components/NoScroll/README.mdx b/src/core/client/ui/components/NoScroll/README.mdx
deleted file mode 100644
index c4e5cb9dc..000000000
--- a/src/core/client/ui/components/NoScroll/README.mdx
+++ /dev/null
@@ -1,35 +0,0 @@
----
-name: NoScroll
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-import { useState } from "react";
-
-import Button from "../Button";
-import NoScroll from "./NoScroll";
-
-# NoScroll
-
-Disables scrolling of ``.
-
-## Basic usage
-
-
- {() => {
- const [value, setValue] = useState(false);
- return (
-
-
- setValue(!value)}
- >
- Disable Scrolling
-
-
- );
- }}
-
diff --git a/src/core/client/ui/components/NoScroll/index.ts b/src/core/client/ui/components/NoScroll/index.ts
deleted file mode 100644
index 71333faa8..000000000
--- a/src/core/client/ui/components/NoScroll/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./NoScroll";
diff --git a/src/core/client/ui/components/PasswordField/PasswordField.css b/src/core/client/ui/components/PasswordField/PasswordField.css
deleted file mode 100644
index 3bdff0643..000000000
--- a/src/core/client/ui/components/PasswordField/PasswordField.css
+++ /dev/null
@@ -1,62 +0,0 @@
-.root {
- width: calc(29 * var(--mini-unit));
- height: 36px;
- line-height: 36px;
- box-sizing: border-box;
-}
-
-.colorRegular {
- background-color: var(--palette-common-white);
- color: var(--palette-common-black);
- border: 1px solid var(--palette-grey-light);
-}
-
-.colorError {
- background-color: var(--palette-common-white);
- border-color: var(--palette-error-main);
- border: 2px solid var(--palette-error-darkest);
-}
-
-.fullWidth {
- width: 100%;
-}
-
-.wrapper {
- position: relative;
- display: inline-flex;
- align-items: center;
- width: 100%;
- height: 100%;
- box-sizing: border-box;
-}
-
-.icon {
- position: absolute;
- display: inline-block;
- right: 0px;
- padding: 4px calc(1 * var(--mini-unit));
- cursor: pointer;
- line-height: 0;
-}
-
-/* ie11 specific css */
-_:-ms-lang(x), .icon { top: 8px; }
-
-.input {
- composes: inputText placeholderPseudo from "~coral-ui/shared/typography.css";
- display: block;
- padding: calc(0.5 * var(--mini-unit)) calc(3 * var(--mini-unit))
- calc(0.5 * var(--mini-unit)) calc(0.5 * var(--mini-unit));
- border-radius: var(--round-corners);
- width: 100%;
- height: 100%;
- box-sizing: border-box;
-
- &:read-only {
- background-color: var(--palette-grey-lightest);
- }
- &:disabled {
- color: var(--palette-text-secondary);
- background-color: var(--palette-grey-lightest);
- }
-}
diff --git a/src/core/client/ui/components/PasswordField/PasswordField.spec.tsx b/src/core/client/ui/components/PasswordField/PasswordField.spec.tsx
deleted file mode 100644
index a5e4618f5..000000000
--- a/src/core/client/ui/components/PasswordField/PasswordField.spec.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import PasswordField from "./PasswordField";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- defaultValue: "Hello World",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-
- renderer.root.findByProps({ role: "button" }).props.onClick();
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/PasswordField/PasswordField.tsx b/src/core/client/ui/components/PasswordField/PasswordField.tsx
deleted file mode 100644
index fab01a2b6..000000000
--- a/src/core/client/ui/components/PasswordField/PasswordField.tsx
+++ /dev/null
@@ -1,162 +0,0 @@
-import cn from "classnames";
-import React, {
- AllHTMLAttributes,
- ChangeEvent,
- Component,
- EventHandler,
- KeyboardEvent,
-} from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import Icon from "../Icon";
-
-import styles from "./PasswordField.css";
-
-export interface PasswordFieldProps {
- id?: string;
- /**
- * The content value of the component.
- */
- defaultValue?: string;
- /**
- * The content value of the component.
- */
- value?: string;
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- /**
- * Color of the PasswordField
- */
- color?: "regular" | "error";
- /*
- * If set renders a full width button
- */
- fullWidth?: boolean;
- /**
- * Placeholder
- */
- placeholder?: string;
- /**
- * Mark as readonly
- */
- readOnly?: boolean;
- /**
- * Name
- */
- name?: string;
- /**
- * onChange
- */
- onChange?: EventHandler>;
-
- disabled?: boolean;
-
- autoComplete?: AllHTMLAttributes["autoComplete"];
- autoCorrect?: AllHTMLAttributes["autoCorrect"];
- autoCapitalize?: AllHTMLAttributes["autoCapitalize"];
- spellCheck?: AllHTMLAttributes["spellCheck"];
-
- showPasswordTitle?: string;
- hidePasswordTitle?: string;
-}
-
-interface State {
- reveal: boolean;
-}
-
-class PasswordField extends Component {
- public static defaultProps: Partial = {
- color: "regular",
- placeholder: "",
- showPasswordTitle: "Hide password",
- hidePasswordTitle: "Show password",
- autoCapitalize: "off",
- autoCorrect: "off",
- autoComplete: "off",
- spellCheck: false,
- };
-
- public state = {
- reveal: false,
- };
-
- private handleVisibilityKeyUp = (e: KeyboardEvent) => {
- // Number 13 is the "Enter" key on the keyboard
- if (e.keyCode === 13) {
- this.toggleVisibility();
- }
- };
-
- private toggleVisibility = () => {
- this.setState((state) => ({
- reveal: !state.reveal,
- }));
- };
-
- public render() {
- const {
- className,
- classes,
- color,
- fullWidth,
- value,
- placeholder,
- hidePasswordTitle,
- showPasswordTitle,
- ...rest
- } = this.props;
-
- const rootClassName = cn(
- {
- [classes.fullWidth]: fullWidth,
- },
- classes.root,
- className
- );
-
- const inputClassName = cn(
- {
- [classes.colorRegular]: color === "regular",
- [classes.colorError]: color === "error",
- [classes.fullWidth]: fullWidth,
- },
- classes.input
- );
-
- const reveal = this.state.reveal;
-
- return (
-
-
-
-
- {reveal ? "visibility_off" : "visibility"}
-
-
-
- );
- }
-}
-
-const enhanced = withStyles(styles)(PasswordField);
-export default enhanced;
diff --git a/src/core/client/ui/components/PasswordField/README.mdx b/src/core/client/ui/components/PasswordField/README.mdx
deleted file mode 100644
index e2fab5091..000000000
--- a/src/core/client/ui/components/PasswordField/README.mdx
+++ /dev/null
@@ -1,25 +0,0 @@
----
-name: PasswordField
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-import PasswordField from "./PasswordField.tsx";
-import HorizontalGutter from "../HorizontalGutter";
-
-# PasswordField
-
-## Basic Use
-
-
-
-
-
-
-
-
-
diff --git a/src/core/client/ui/components/PasswordField/__snapshots__/PasswordField.spec.tsx.snap b/src/core/client/ui/components/PasswordField/__snapshots__/PasswordField.spec.tsx.snap
deleted file mode 100644
index 0a900db11..000000000
--- a/src/core/client/ui/components/PasswordField/__snapshots__/PasswordField.spec.tsx.snap
+++ /dev/null
@@ -1,73 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-`;
-
-exports[`renders correctly 2`] = `
-
-
-
-
-
- visibility_off
-
-
-
-
-`;
diff --git a/src/core/client/ui/components/PasswordField/index.ts b/src/core/client/ui/components/PasswordField/index.ts
deleted file mode 100644
index 7cb96a599..000000000
--- a/src/core/client/ui/components/PasswordField/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from "./PasswordField";
-export { default } from "./PasswordField";
diff --git a/src/core/client/ui/components/Popover/Arrow.css b/src/core/client/ui/components/Popover/Arrow.css
deleted file mode 100644
index 98874f818..000000000
--- a/src/core/client/ui/components/Popover/Arrow.css
+++ /dev/null
@@ -1,142 +0,0 @@
-.root {
- position: absolute;
- width: 20px;
- height: 20px;
-
- &[data-placement*="bottom"] {
- top: 0;
- left: 0;
- margin-top: -6px;
- width: 20px;
- height: 6px;
- filter: drop-shadow(0px -2px 1px rgba(0, 0, 0, 0.1));
- &::before {
- border-width: 0 10px 6px 10px;
- border-color: transparent transparent var(--palette-grey-lighter)
- transparent;
- }
- &::after {
- margin-top: -5px;
- border-width: 0 10px 6px 10px;
- border-color: transparent transparent var(--palette-common-white)
- transparent;
- }
- &.colorDark {
- &::before {
- border-color: transparent transparent var(--palette-grey-dark)
- transparent;
- }
- &::after {
- border-color: transparent transparent var(--palette-grey-dark)
- transparent;
- }
- }
- }
-
- &[data-placement*="top"] {
- bottom: 0;
- left: 0;
- margin-bottom: -6px;
- width: 20px;
- height: 6px;
- filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.1));
- &::before {
- border-width: 6px 10px 0 10px;
- border-color: var(--palette-grey-lighter) transparent transparent
- transparent;
- }
- &::after {
- margin-top: -7px;
- border-width: 6px 10px 0 10px;
- border-color: var(--palette-common-white) transparent transparent
- transparent;
- }
- &.colorDark {
- &::before {
- border-color: var(--palette-grey-dark) transparent transparent
- transparent;
- }
- &::after {
- border-color: var(--palette-grey-dark) transparent transparent
- transparent;
- }
- }
- }
-
- &[data-placement*="right"] {
- left: 0;
- height: 20px;
- width: 6px;
- margin-left: -6px;
- filter: drop-shadow(-1px 0px 1px rgba(0, 0, 0, 0.1));
- &::before {
- border-width: 10px 6px 10px 0;
- border-color: transparent var(--palette-grey-lighter) transparent
- transparent;
- }
- &::after {
- margin-top: -20px;
- margin-right: -1px;
- border-width: 10px 6px 10px 0;
- border-color: transparent var(--palette-common-white) transparent
- transparent;
- }
- &.colorDark {
- &::before {
- border-color: transparent var(--palette-grey-dark) transparent
- transparent;
- }
- &::after {
- border-color: transparent var(--palette-grey-dark) transparent
- transparent;
- }
- }
- }
-
- &[data-placement*="left"] {
- right: 0;
- height: 20px;
- width: 6px;
- margin-right: -6px;
- filter: drop-shadow(1px 0px 1px rgba(0, 0, 0, 0.1));
- &::before {
- border-width: 10px 0 10px 6px;
- border-color: transparent transparent transparent
- var(--palette-grey-lighter);
- }
- &::after {
- margin-top: -20px;
- margin-left: -1px;
- border-width: 10px 0 10px 6px;
- border-color: transparent transparent transparent
- var(--palette-common-white);
- }
- &.colorDark {
- &::before {
- border-color: transparent transparent transparent
- var(--palette-grey-dark);
- }
- &::after {
- border-color: transparent transparent transparent
- var(--palette-grey-dark);
- }
- }
- }
-
- &::before {
- content: "";
- margin: auto;
- display: block;
- width: 0;
- height: 0;
- border-style: solid;
- }
- &::after {
- content: "";
- margin: auto;
- display: block;
- width: 0;
- height: 0;
- border-style: solid;
- }
-}
diff --git a/src/core/client/ui/components/Popover/Arrow.tsx b/src/core/client/ui/components/Popover/Arrow.tsx
deleted file mode 100644
index c31ec484b..000000000
--- a/src/core/client/ui/components/Popover/Arrow.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import cn from "classnames";
-import React from "react";
-
-import styles from "./Arrow.css";
-
-interface Props extends React.HTMLAttributes {
- dark?: boolean;
-}
-
-const Arrow = React.forwardRef(function Arrow(
- { className, dark, ...rest },
- ref
-) {
- return (
-
- );
-});
-
-export default Arrow;
diff --git a/src/core/client/ui/components/Popover/Popover.css b/src/core/client/ui/components/Popover/Popover.css
deleted file mode 100644
index 2d9d4f5a6..000000000
--- a/src/core/client/ui/components/Popover/Popover.css
+++ /dev/null
@@ -1,30 +0,0 @@
-.root {
-}
-
-.popover {
- background: var(--palette-common-white);
- border: 1px solid var(--palette-grey-lighter);
- box-sizing: border-box;
- box-shadow: var(--elevation-main);
- border-radius: var(--round-corners);
- z-index: var(--zindex-popover);
- margin: 2px;
-}
-
-.colorDark {
- background: var(--palette-grey-dark);
- border-color: var(--palette-grey-dark);
-}
-
-.top {
- margin: calc(0.5 * var(--mini-unit)) 0;
-}
-.left {
- margin: 0 calc(0.5 * var(--mini-unit));
-}
-.right {
- margin: 0 calc(0.5 * var(--mini-unit));
-}
-.bottom {
- margin: calc(0.5 * var(--mini-unit)) 0;
-}
diff --git a/src/core/client/ui/components/Popover/Popover.tsx b/src/core/client/ui/components/Popover/Popover.tsx
deleted file mode 100644
index 33fb54a81..000000000
--- a/src/core/client/ui/components/Popover/Popover.tsx
+++ /dev/null
@@ -1,202 +0,0 @@
-import cn from "classnames";
-import React from "react";
-import { Manager, Popper, Reference } from "react-popper";
-
-import { oncePerFrame } from "coral-common/utils";
-import { withStyles } from "coral-ui/hocs";
-import { PropTypesOf } from "coral-ui/types";
-
-import AriaInfo from "../AriaInfo";
-import Arrow from "./Arrow";
-
-import styles from "./Popover.css";
-
-type Placement =
- | "top-start"
- | "top"
- | "top-end"
- | "right-start"
- | "right"
- | "right-end"
- | "bottom-end"
- | "bottom"
- | "bottom-start"
- | "left-end"
- | "left"
- | "left-start";
-
-interface BodyRenderProps {
- /** toggles visibility, if event is provided, the event will stop propagating. */
- toggleVisibility: (event?: React.SyntheticEvent | Event) => void;
- visible: boolean;
- scheduleUpdate: () => void;
-}
-
-interface ChildrenRenderProps {
- /** toggles visibility, if event is provided, the event will stop propagating. */
- toggleVisibility: (event?: React.SyntheticEvent | Event) => void;
- ref?: React.Ref;
- visible: boolean;
-}
-
-interface PopoverProps {
- body: (props: BodyRenderProps) => React.ReactNode | React.ReactElement;
- children: (props: ChildrenRenderProps) => React.ReactNode;
- description?: string;
- id: string;
- className?: string;
- placement?: Placement;
- visible?: boolean;
- classes: typeof styles;
- modifiers?: PropTypesOf["modifiers"];
- eventsEnabled?: PropTypesOf["eventsEnabled"];
- positionFixed?: PropTypesOf["positionFixed"];
- dark?: boolean;
-}
-
-interface State {
- visible: boolean;
-}
-
-class Popover extends React.Component {
- public static defaultProps: Partial = {
- placement: "top",
- };
- public state: State = {
- visible: false,
- };
-
- private toggleVisibility = (() => {
- let fn = (event?: React.SyntheticEvent | Event) => {
- this.setState((state: State) => ({
- visible: !state.visible,
- }));
- };
- if (process.env.NODE_ENV !== "test") {
- /**
- * Only run this once per frame in the browser, otherwise
- * we might get into a situation where this is called twice
- * by different event handlers cancelling each other out.
- *
- * We don't wan this behavior when running in a simulated browser
- * environment with simulated events.
- */
- fn = oncePerFrame(fn);
- }
- return fn;
- })();
-
- private close = () => {
- this.setState((state: State) => ({
- visible: false,
- }));
- };
-
- private handleEsc = (e: KeyboardEvent) => {
- if (e.key === "Escape") {
- e.preventDefault();
- this.close();
- }
- };
-
- public componentDidMount() {
- document.addEventListener("keydown", this.handleEsc, true);
- }
-
- public componentWillUnmount() {
- document.removeEventListener("keydown", this.handleEsc, true);
- }
-
- public render() {
- const {
- id,
- body,
- children,
- description,
- className,
- placement,
- classes,
- visible: controlledVisible,
- positionFixed,
- modifiers,
- eventsEnabled,
- dark,
- ...rest
- } = this.props;
-
- const visible =
- controlledVisible !== undefined ? controlledVisible : this.state.visible;
- const includeArrow =
- !modifiers || !modifiers.arrow || modifiers.arrow.enabled;
- const popoverClassName = cn(classes.popover, {
- [classes.top]: placement!.startsWith("top"),
- [classes.left]: placement!.startsWith("left"),
- [classes.right]: placement!.startsWith("right"),
- [classes.bottom]: placement!.startsWith("bottom"),
- });
-
- return (
-
-
-
- {(props) =>
- children({
- ref: props.ref,
- toggleVisibility: this.toggleVisibility,
- visible,
- })
- }
-
-
- {(props) => (
-
- {description && (
-
{description}
- )}
- {visible && (
-
- {includeArrow && (
-
- )}
- {typeof body === "function"
- ? body({
- scheduleUpdate: props.scheduleUpdate,
- toggleVisibility: this.toggleVisibility,
- visible,
- })
- : body}
-
- )}
-
- )}
-
-
-
- );
- }
-}
-
-const enhanced = withStyles(styles)(Popover);
-
-export default enhanced;
diff --git a/src/core/client/ui/components/Popover/README.mdx b/src/core/client/ui/components/Popover/README.mdx
deleted file mode 100644
index 983f58a94..000000000
--- a/src/core/client/ui/components/Popover/README.mdx
+++ /dev/null
@@ -1,88 +0,0 @@
----
-name: Popover
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-import Popover from "./Popover";
-import Button from "../Button";
-import Flex from "../Flex";
-import Typography from "../Typography";
-import ButtonIcon from "../Button/ButtonIcon";
-import BaseButton from "../BaseButton";
-import ClickOutside from "../ClickOutside";
-import Icon from "../Icon";
-
-# Popover
-
-`Popover` renders a popover dialog attached to another `Element`.
-
-## Basic usage
-
-
- This is the body }
- >
- {({ toggleVisibility, ref }) => (
-
- Click me!
-
- )}
-
-
-
-#### Example with `placement=top`
-
-
- (
-
- This is the body
-
- close
-
-
- )}
- >
- {({ toggleVisibility, ref }) => (
-
- Click me!
-
- )}
-
-
-
-## Tooltip
-
-
- (
-
-
- I am a Tooltip
-
-
- )}
- dark
- >
- {({ toggleVisibility, ref }) => (
-
- info
-
- )}
-
-
diff --git a/src/core/client/ui/components/Popover/index.ts b/src/core/client/ui/components/Popover/index.ts
deleted file mode 100644
index 04072ed30..000000000
--- a/src/core/client/ui/components/Popover/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./Popover";
diff --git a/src/core/client/ui/components/RadioButton/README.mdx b/src/core/client/ui/components/RadioButton/README.mdx
deleted file mode 100644
index 8812ffda5..000000000
--- a/src/core/client/ui/components/RadioButton/README.mdx
+++ /dev/null
@@ -1,20 +0,0 @@
----
-name: RadioButton
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import RadioButton from './RadioButton.tsx'
-import HorizontalGutter from '../HorizontalGutter'
-
-# RadioButton
-
-## Basic Use
-
-
- Yes I agree
- I don't agree
- Disabled
- Disabled + Checked
-
-
diff --git a/src/core/client/ui/components/RadioButton/RadioButton.css b/src/core/client/ui/components/RadioButton/RadioButton.css
deleted file mode 100644
index 129394840..000000000
--- a/src/core/client/ui/components/RadioButton/RadioButton.css
+++ /dev/null
@@ -1,76 +0,0 @@
-.root {
-}
-
-.input {
- cursor: pointer;
- position: absolute; /* take it out of document flow */
- opacity: 0; /* hide it */
-}
-
-.label {
- composes: bodyCopy from "~coral-ui/shared/typography.css";
- display: inline-flex;
- position: relative;
- cursor: pointer;
- user-select: none;
-}
-
-.labelLight {
- color: var(--palette-text-light);
-}
-
-/* Box. */
-.input + .label:before {
- content: "";
- margin-right: 10px;
- display: inline-block;
- width: 14px;
- height: 14px;
- background: var(--palette-common-white);
- border: 1px solid var(--palette-text-primary);
- border-radius: 50%;
- box-sizing: border-box;
- margin-top: 5px;
- flex-shrink: 0;
-}
-
-/* Box focus */
-.label.focus:before {
- @mixin outline;
-}
-
-/* Box checked */
-.input:checked + .label:before {
- border: 1px solid var(--palette-text-primary);
- background: var(--palette-common-white);
-}
-
-/* Disabled state label. */
-.input:disabled + .label {
- cursor: auto;
- opacity: 0.6;
-}
-
-/* Disabled box. */
-.input:disabled + .label:before {
- box-shadow: none;
- border: 1px solid var(--palette-grey-main);
- background: var(--palette-grey-lightest);
-}
-
-/* Checkmark. Could be replaced with an image */
-.input:checked + .label:after {
- content: "";
- background: var(--palette-text-primary);
- border-radius: 50%;
- position: absolute;
- left: 3px;
- top: 8px;
- width: 8px;
- height: 8px;
- box-sizing: border-box;
-}
-
-.input:checked:disabled + .label:after {
- background: var(--palette-text-primary);
-}
diff --git a/src/core/client/ui/components/RadioButton/RadioButton.spec.tsx b/src/core/client/ui/components/RadioButton/RadioButton.spec.tsx
deleted file mode 100644
index 30958d6a7..000000000
--- a/src/core/client/ui/components/RadioButton/RadioButton.spec.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import RadioButton from "./RadioButton";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- id: "radioID",
- name: "key",
- value: "true",
- children: "Yes I agree",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/RadioButton/RadioButton.tsx b/src/core/client/ui/components/RadioButton/RadioButton.tsx
deleted file mode 100644
index d7c1f4f0e..000000000
--- a/src/core/client/ui/components/RadioButton/RadioButton.tsx
+++ /dev/null
@@ -1,89 +0,0 @@
-import cn from "classnames";
-import React, { ChangeEvent, Component, EventHandler, FocusEvent } from "react";
-import { v4 as uuid } from "uuid";
-
-import { Flex } from "coral-ui/components";
-import { withKeyboardFocus, withStyles } from "coral-ui/hocs";
-
-import styles from "./RadioButton.css";
-
-export interface RadioButtonProps {
- id?: string;
- /**
- * The content value of the component.
- */
- value?: string;
-
- checked?: boolean;
-
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- /**
- * Mark as readonly
- */
- readOnly?: boolean;
- /**
- * Name
- */
- name?: string;
- /**
- * onChange
- */
- onChange?: EventHandler>;
-
- disabled?: boolean;
- children: React.ReactNode;
- /**
- * Display a light text.
- */
- light?: boolean;
-
- // These handlers are passed down by the `withKeyboardFocus` HOC.
- onFocus: EventHandler>;
- onBlur: EventHandler>;
- keyboardFocus: boolean;
-}
-
-class RadioButton extends Component {
- public state = {
- randomID: uuid(),
- };
- public render() {
- const {
- className,
- classes,
- id,
- light,
- children,
- keyboardFocus,
- ...rest
- } = this.props;
-
- const rootClassName = cn(classes.root, className);
- const finalID = id || this.state.randomID;
-
- return (
-
-
-
- {children}
-
-
- );
- }
-}
-
-const enhanced = withStyles(styles)(withKeyboardFocus(RadioButton));
-export default enhanced;
diff --git a/src/core/client/ui/components/RadioButton/__snapshots__/RadioButton.spec.tsx.snap b/src/core/client/ui/components/RadioButton/__snapshots__/RadioButton.spec.tsx.snap
deleted file mode 100644
index f8dad0dcc..000000000
--- a/src/core/client/ui/components/RadioButton/__snapshots__/RadioButton.spec.tsx.snap
+++ /dev/null
@@ -1,23 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
-
- Yes I agree
-
-
-`;
diff --git a/src/core/client/ui/components/RadioButton/index.ts b/src/core/client/ui/components/RadioButton/index.ts
deleted file mode 100644
index ed12488fa..000000000
--- a/src/core/client/ui/components/RadioButton/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from "./RadioButton";
-export { default } from "./RadioButton";
diff --git a/src/core/client/ui/components/RelativeTime/README.mdx b/src/core/client/ui/components/RelativeTime/README.mdx
deleted file mode 100644
index fe90c99aa..000000000
--- a/src/core/client/ui/components/RelativeTime/README.mdx
+++ /dev/null
@@ -1,17 +0,0 @@
----
-name: RelativeTime
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import RelativeTime from './RelativeTime'
-
-# RelativeTime
-
-Renders relative time until given `date`.
-
-## Basic usage
-
- "".concat(value, " ", unit, " ", suffix)} />
-
diff --git a/src/core/client/ui/components/RelativeTime/RelativeTime.css b/src/core/client/ui/components/RelativeTime/RelativeTime.css
deleted file mode 100644
index c3a2af639..000000000
--- a/src/core/client/ui/components/RelativeTime/RelativeTime.css
+++ /dev/null
@@ -1,2 +0,0 @@
-.root {
-}
diff --git a/src/core/client/ui/components/RelativeTime/RelativeTime.spec.tsx b/src/core/client/ui/components/RelativeTime/RelativeTime.spec.tsx
deleted file mode 100644
index fe56898d3..000000000
--- a/src/core/client/ui/components/RelativeTime/RelativeTime.spec.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import React from "react";
-import { create } from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import UIContext from "../UIContext";
-import RelativeTime from "./RelativeTime";
-
-it("uses default formatter", () => {
- const props = {
- date: "2018-12-17T03:24:00.000Z",
- };
- const tree = create( ).toJSON();
-
- expect(tree).toMatchSnapshot();
-});
-
-it("uses formatter from context", () => {
- const context: any = {
- timeagoFormatter: () => "My Context Formatter",
- };
- const props: PropTypesOf = {
- date: "2018-12-17T03:24:00.000Z",
- };
- const tree = create(
-
-
-
- ).toJSON();
-
- expect(tree).toMatchSnapshot();
-});
-
-it("uses formatter from props", () => {
- const props = {
- date: "2018-12-17T03:24:00.000Z",
- formatter: () => "My Props Formatter",
- };
- const tree = create( ).toJSON();
-
- expect(tree).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/RelativeTime/RelativeTime.tsx b/src/core/client/ui/components/RelativeTime/RelativeTime.tsx
deleted file mode 100644
index 3560e1b61..000000000
--- a/src/core/client/ui/components/RelativeTime/RelativeTime.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import cn from "classnames";
-import React, { Ref } from "react";
-import TimeAgo, { Formatter } from "react-timeago";
-
-import { UIContext } from "coral-ui/components";
-import { withForwardRef, withStyles } from "coral-ui/hocs";
-import { PropTypesOf } from "coral-ui/types";
-
-import styles from "./RelativeTime.css";
-
-interface Props {
- date: string;
- live?: boolean;
- classes: typeof styles;
- className?: string;
- formatter?: Formatter;
-
- /** Internal: Forwarded Ref */
- forwardRef?: Ref;
-}
-
-const defaultFormatter: Formatter = (value, unit, suffix, timestamp: string) =>
- new Date(timestamp).toISOString();
-
-const RelativeTime: React.FunctionComponent = (props) => {
- const { date, classes, live, className, formatter } = props;
- return (
-
- {({ timeagoFormatter }) => (
-
- )}
-
- );
-};
-
-const enhanced = withForwardRef(withStyles(styles)(RelativeTime));
-export type RelativeTimeProps = PropTypesOf;
-export default enhanced;
diff --git a/src/core/client/ui/components/RelativeTime/__snapshots__/RelativeTime.spec.tsx.snap b/src/core/client/ui/components/RelativeTime/__snapshots__/RelativeTime.spec.tsx.snap
deleted file mode 100644
index 4c76ba168..000000000
--- a/src/core/client/ui/components/RelativeTime/__snapshots__/RelativeTime.spec.tsx.snap
+++ /dev/null
@@ -1,31 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`uses default formatter 1`] = `
-
- 2018-12-17T03:24:00.000Z
-
-`;
-
-exports[`uses formatter from context 1`] = `
-
- My Context Formatter
-
-`;
-
-exports[`uses formatter from props 1`] = `
-
- My Props Formatter
-
-`;
diff --git a/src/core/client/ui/components/RelativeTime/index.ts b/src/core/client/ui/components/RelativeTime/index.ts
deleted file mode 100644
index 90bd4c0ca..000000000
--- a/src/core/client/ui/components/RelativeTime/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default, RelativeTimeProps } from "./RelativeTime";
diff --git a/src/core/client/ui/components/SelectField/OptGroup.spec.tsx b/src/core/client/ui/components/SelectField/OptGroup.spec.tsx
deleted file mode 100644
index 2bf24d7db..000000000
--- a/src/core/client/ui/components/SelectField/OptGroup.spec.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import OptGroup from "./OptGroup";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- label: "mamals",
- children: ,
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/SelectField/OptGroup.tsx b/src/core/client/ui/components/SelectField/OptGroup.tsx
deleted file mode 100644
index 7cdb0c138..000000000
--- a/src/core/client/ui/components/SelectField/OptGroup.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import React, { FunctionComponent } from "react";
-
-export interface OptGroupProps {
- label: string;
- children?: React.ReactNode;
-}
-
-const OptionGroup: FunctionComponent = (props) => {
- return ;
-};
-
-export default OptionGroup;
diff --git a/src/core/client/ui/components/SelectField/Option.spec.tsx b/src/core/client/ui/components/SelectField/Option.spec.tsx
deleted file mode 100644
index 9cedda3cf..000000000
--- a/src/core/client/ui/components/SelectField/Option.spec.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import Option from "./Option";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- disabled: false,
- hidden: false,
- value: "apple",
- children: "Apple",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/SelectField/Option.tsx b/src/core/client/ui/components/SelectField/Option.tsx
deleted file mode 100644
index 105e8f0d4..000000000
--- a/src/core/client/ui/components/SelectField/Option.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import React, { FunctionComponent } from "react";
-
-export interface OptionProps {
- value?: string;
- disabled?: boolean;
- hidden?: boolean;
- children?: React.ReactNode;
-}
-
-const Option: FunctionComponent = (props) => {
- return ;
-};
-
-export default Option;
diff --git a/src/core/client/ui/components/SelectField/README.mdx b/src/core/client/ui/components/SelectField/README.mdx
deleted file mode 100644
index 55aeb43b3..000000000
--- a/src/core/client/ui/components/SelectField/README.mdx
+++ /dev/null
@@ -1,55 +0,0 @@
----
-name: SelectField
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import { useState } from "react";
-
-import SelectField from './SelectField.tsx'
-import Option from './Option.tsx'
-import OptGroup from './OptGroup.tsx'
-import HorizontalGutter from '../HorizontalGutter'
-
-# SelectField
-
-## Basic Use
-
- {() => {
- const [value, setValue] = useState("blue");
- return (
- setValue(e.target.value)}>
- Red Pill
- Blue Pill
-
- );
- }}
-
-
-## Groups
-
- {() => {
- const [value, setValue] = useState("dog");
- return (
- setValue(e.target.value)}>
-
- Dog
- Cat
-
-
- Salmon
- Tuna
-
-
- );
- }}
-
-
-
-## Disabled
-
-
- Red Pill
- Blue Pill
-
-
diff --git a/src/core/client/ui/components/SelectField/SelectField.css b/src/core/client/ui/components/SelectField/SelectField.css
deleted file mode 100644
index dedd6d5b2..000000000
--- a/src/core/client/ui/components/SelectField/SelectField.css
+++ /dev/null
@@ -1,64 +0,0 @@
-.root {
- position: relative;
- display: inline-block;
-}
-
-.afterWrapper {
- position: absolute;
- display: inline-flex;
- justify-content: center;
- align-items: center;
- right: calc(0.5 * var(--mini-unit));
- height: 100%;
- user-select: none;
- pointer-events: none;
-}
-
-.keyboardFocus:focus {
- @mixin outline;
-}
-
-.select {
- composes: menuItem from "~coral-ui/shared/typography.css";
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
- outline: none;
- color: var(--palette-text-primary);
- width: 100%;
- font-family: system-ui !important;
-
- &::-moz-focus-inner {
- border: 0;
- }
-
- &:-moz-focusring {
- color: transparent;
- text-shadow: 0 0 0 #000;
- }
-
- &:disabled {
- background-color: var(--palette-grey-lightest);
- border-color: var(--palette-text-secondary);
- color: var(--palette-text-secondary);
- }
-
- border: 1px solid var(--palette-grey-light);
- border-radius: var(--round-corners);
- background-color: var(--palette-common-white);
-
- padding: calc(0.5 * var(--mini-unit)) calc(2 * var(--mini-unit))
- calc(0.5 * var(--mini-unit)) var(--mini-unit);
-
- &::-ms-expand {
- display: none;
- }
-}
-
-.fullWidth {
- width: 100%;
-}
-
-.afterWrapperDisabled {
- color: var(--palette-text-secondary);
-}
diff --git a/src/core/client/ui/components/SelectField/SelectField.spec.tsx b/src/core/client/ui/components/SelectField/SelectField.spec.tsx
deleted file mode 100644
index c06a6f750..000000000
--- a/src/core/client/ui/components/SelectField/SelectField.spec.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import { noop } from "lodash";
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import SelectField from "./SelectField";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- id: "selectID",
- autofocus: true,
- name: "selectName",
- value: "pie",
- className: "customClassName",
- fullWidth: true,
- onChange: noop,
- disabled: true,
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/SelectField/SelectField.tsx b/src/core/client/ui/components/SelectField/SelectField.tsx
deleted file mode 100644
index 1511bf24c..000000000
--- a/src/core/client/ui/components/SelectField/SelectField.tsx
+++ /dev/null
@@ -1,93 +0,0 @@
-import cn from "classnames";
-import React, {
- ChangeEvent,
- EventHandler,
- FocusEvent,
- FunctionComponent,
- MouseEvent,
-} from "react";
-
-import { withKeyboardFocus, withStyles } from "coral-ui/hocs";
-
-import Icon from "../Icon";
-
-import styles from "./SelectField.css";
-
-export interface SelectFieldProps {
- /**
- * Value that has been selected.
- */
- value?: string;
-
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
-
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
-
- /*
- * If set renders a full width button
- */
- fullWidth?: boolean;
-
- id?: string;
- autofocus?: boolean;
- name?: string;
- onChange?: EventHandler>;
- onClick?: EventHandler;
- disabled?: boolean;
-
- // These handlers are passed down by the `withKeyboardFocus` HOC.
- onFocus: EventHandler>;
- onBlur: EventHandler>;
- keyboardFocus: boolean;
-
- afterWrapper?: React.ReactElement;
-}
-
-const SelectField: FunctionComponent = (props) => {
- const {
- className,
- classes,
- fullWidth,
- keyboardFocus,
- children,
- disabled,
- afterWrapper,
- ...rest
- } = props;
-
- const rootClassName = cn(classes.root, className, {
- [classes.fullWidth]: fullWidth,
- });
-
- const selectClassName = cn(classes.select, {
- [classes.keyboardFocus]: keyboardFocus,
- });
-
- const afterWrapperClassName = cn(classes.afterWrapper, {
- [classes.afterWrapperDisabled]: disabled,
- });
-
- return (
-
-
- {children}
-
-
- {afterWrapper}
-
-
- );
-};
-
-SelectField.defaultProps = {
- afterWrapper: expand_more ,
-};
-
-const enhanced = withStyles(styles)(withKeyboardFocus(SelectField));
-export default enhanced;
diff --git a/src/core/client/ui/components/SelectField/__snapshots__/OptGroup.spec.tsx.snap b/src/core/client/ui/components/SelectField/__snapshots__/OptGroup.spec.tsx.snap
deleted file mode 100644
index 122f55640..000000000
--- a/src/core/client/ui/components/SelectField/__snapshots__/OptGroup.spec.tsx.snap
+++ /dev/null
@@ -1,9 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
-
-`;
diff --git a/src/core/client/ui/components/SelectField/__snapshots__/Option.spec.tsx.snap b/src/core/client/ui/components/SelectField/__snapshots__/Option.spec.tsx.snap
deleted file mode 100644
index ccf4e9b7f..000000000
--- a/src/core/client/ui/components/SelectField/__snapshots__/Option.spec.tsx.snap
+++ /dev/null
@@ -1,11 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- Apple
-
-`;
diff --git a/src/core/client/ui/components/SelectField/__snapshots__/SelectField.spec.tsx.snap b/src/core/client/ui/components/SelectField/__snapshots__/SelectField.spec.tsx.snap
deleted file mode 100644
index 480265bdb..000000000
--- a/src/core/client/ui/components/SelectField/__snapshots__/SelectField.spec.tsx.snap
+++ /dev/null
@@ -1,30 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
-
-
- expand_more
-
-
-
-`;
diff --git a/src/core/client/ui/components/SelectField/index.ts b/src/core/client/ui/components/SelectField/index.ts
deleted file mode 100644
index f2f8e347f..000000000
--- a/src/core/client/ui/components/SelectField/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export { default, default as SelectField } from "./SelectField";
-export { default as Option } from "./Option";
-export { default as OptGroup } from "./OptGroup";
diff --git a/src/core/client/ui/components/Spinner/README.mdx b/src/core/client/ui/components/Spinner/README.mdx
deleted file mode 100644
index 3f51f980a..000000000
--- a/src/core/client/ui/components/Spinner/README.mdx
+++ /dev/null
@@ -1,15 +0,0 @@
----
-name: Spinner
-menu: UI Kit v1
----
-
-import { Playground } from "docz"
-import Spinner from "./Spinner"
-
-# Spinner
-
-## Basic usage
-
-
-
-
diff --git a/src/core/client/ui/components/Spinner/Spinner.css b/src/core/client/ui/components/Spinner/Spinner.css
deleted file mode 100644
index 4115e48a1..000000000
--- a/src/core/client/ui/components/Spinner/Spinner.css
+++ /dev/null
@@ -1,63 +0,0 @@
-.spinner {
- animation: rotator 1.4s linear infinite;
-}
-
-@keyframes rotator {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(270deg);
- }
-}
-
-.path {
- stroke: var(--palette-primary-main);
- stroke-dasharray: 187;
- stroke-dashoffset: 0;
- transform-origin: center;
- animation: dash 1.4s ease-in-out infinite, colors 5.6s ease-in-out infinite;
-}
-
-@keyframes colors {
- 0% {
- stroke: var(--palette-primary-main);
- }
- 100% {
- stroke: var(--palette-primary-light);
- }
-}
-
-@keyframes dash {
- 0% {
- stroke-dashoffset: 187;
- }
- 50% {
- stroke-dashoffset: 46.75;
- transform: rotate(135deg);
- }
- 100% {
- stroke-dashoffset: 187;
- transform: rotate(450deg);
- }
-}
-
-@keyframes fullRotator {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
-}
-
-/* Hack for IE and Edge as they don't support css animations on SVG elements. */
-_:-ms-lang(x),
-.path {
- stroke-dasharray: 160;
-}
-
-_:-ms-lang(x),
-.spinner {
- animation: fullRotator 1.4s linear infinite;
-}
diff --git a/src/core/client/ui/components/Spinner/Spinner.spec.tsx b/src/core/client/ui/components/Spinner/Spinner.spec.tsx
deleted file mode 100644
index 05521bf86..000000000
--- a/src/core/client/ui/components/Spinner/Spinner.spec.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import Spinner from "../Spinner";
-
-it("renders correctly", () => {
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Spinner/Spinner.tsx b/src/core/client/ui/components/Spinner/Spinner.tsx
deleted file mode 100644
index 121044969..000000000
--- a/src/core/client/ui/components/Spinner/Spinner.tsx
+++ /dev/null
@@ -1,68 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./Spinner.css";
-
-type Size = "xs" | "sm" | "md";
-
-export interface SpinnerProps {
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
-
- size?: Size;
-}
-
-function calculateSize(size: Size): number {
- switch (size) {
- case "xs":
- return 15;
- case "sm":
- return 30;
- case "md":
- return 40;
- default:
- throw new Error(`Unknown ${size}`);
- }
-}
-
-const Spinner: FunctionComponent = (props) => {
- const { className, classes } = props;
-
- const rootClassName = cn(classes.spinner, className);
- const s = calculateSize(props.size!);
-
- return (
-
-
-
- );
-};
-
-Spinner.defaultProps = {
- size: "md",
-};
-
-const enhanced = withStyles(styles)(Spinner);
-export default enhanced;
diff --git a/src/core/client/ui/components/Spinner/__snapshots__/Spinner.spec.tsx.snap b/src/core/client/ui/components/Spinner/__snapshots__/Spinner.spec.tsx.snap
deleted file mode 100644
index cd6f511b5..000000000
--- a/src/core/client/ui/components/Spinner/__snapshots__/Spinner.spec.tsx.snap
+++ /dev/null
@@ -1,21 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
-
-`;
diff --git a/src/core/client/ui/components/Spinner/index.ts b/src/core/client/ui/components/Spinner/index.ts
deleted file mode 100644
index 66d1096a0..000000000
--- a/src/core/client/ui/components/Spinner/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./Spinner";
diff --git a/src/core/client/ui/components/Steps/Circle.css b/src/core/client/ui/components/Steps/Circle.css
deleted file mode 100644
index 35fe24162..000000000
--- a/src/core/client/ui/components/Steps/Circle.css
+++ /dev/null
@@ -1,23 +0,0 @@
-.root {
- display: inline-block;
- width: 20px;
- height: 20px;
- background-color: var(--palette-common-white);
- border: 2px solid var(--palette-grey-light);
- box-sizing: border-box;
- border-radius: 100%;
- z-index: 1;
-}
-
-.active,
-.completed {
- background-color: var(--palette-success-main);
- border-color: var(--palette-success-main);
-}
-
-.icon {
- color: var(--palette-text-light);
- font-weight: bold;
- margin-top: -4px;
- margin-left: 1px;
-}
diff --git a/src/core/client/ui/components/Steps/Circle.tsx b/src/core/client/ui/components/Steps/Circle.tsx
deleted file mode 100644
index 9f41f8c78..000000000
--- a/src/core/client/ui/components/Steps/Circle.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import Icon from "../Icon";
-
-import styles from "./Circle.css";
-
-interface CircleProps {
- active?: boolean;
- completed?: boolean;
-}
-
-const Circle: FunctionComponent = ({ active, completed }) => {
- const rootClassName = cn(styles.root, {
- [styles.active]: active,
- [styles.completed]: completed,
- });
- return (
-
- {completed && done }
-
- );
-};
-
-export default Circle;
diff --git a/src/core/client/ui/components/Steps/Line.css b/src/core/client/ui/components/Steps/Line.css
deleted file mode 100644
index 70af335b8..000000000
--- a/src/core/client/ui/components/Steps/Line.css
+++ /dev/null
@@ -1,12 +0,0 @@
-.root {
- display: inline-block;
- width: 200px;
- height: 0px;
- border: 1px solid var(--palette-grey-light);
- box-sizing: border-box;
- z-index: 1;
-}
-
-.completed {
- border-color: var(--palette-success-main);
-}
diff --git a/src/core/client/ui/components/Steps/Line.tsx b/src/core/client/ui/components/Steps/Line.tsx
deleted file mode 100644
index 6748419e1..000000000
--- a/src/core/client/ui/components/Steps/Line.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import styles from "./Line.css";
-
-interface LineProps {
- completed?: boolean;
- className?: string;
-}
-
-const Line: FunctionComponent = ({ completed, className }) => {
- const rootClassName = cn(
- styles.root,
- {
- [styles.completed]: completed,
- },
- className
- );
- return ;
-};
-
-export default Line;
diff --git a/src/core/client/ui/components/Steps/README.mdx b/src/core/client/ui/components/Steps/README.mdx
deleted file mode 100644
index 0f6856df6..000000000
--- a/src/core/client/ui/components/Steps/README.mdx
+++ /dev/null
@@ -1,19 +0,0 @@
----
-name: Steps
-menu: UI Kit v1
----
-
-# Steps
-
-### Examples
-
-import { Playground } from 'docz'
-import { Flex, Step, StepBar } from './index'
-
-
-
- Create Admin Account
- Add Organization Details
- Add Permitted Domains
-
-
diff --git a/src/core/client/ui/components/Steps/Step.css b/src/core/client/ui/components/Steps/Step.css
deleted file mode 100644
index c1fe8663d..000000000
--- a/src/core/client/ui/components/Steps/Step.css
+++ /dev/null
@@ -1,11 +0,0 @@
-.root {
- position: relative;
-}
-
-.text {
- position: absolute;
- top: 26px;
- transform: translateX(-50%);
- left: 8%;
- white-space: nowrap;
-}
diff --git a/src/core/client/ui/components/Steps/Step.tsx b/src/core/client/ui/components/Steps/Step.tsx
deleted file mode 100644
index 1bf44c495..000000000
--- a/src/core/client/ui/components/Steps/Step.tsx
+++ /dev/null
@@ -1,49 +0,0 @@
-import React, { Component, ReactNode, ReactText } from "react";
-
-import Flex from "../Flex";
-import Typography from "../Typography";
-import Circle from "./Circle";
-import Line from "./Line";
-
-import styles from "./Step.css";
-
-interface StepProps {
- children?: ReactText | ReactNode;
- active?: boolean;
- completed?: boolean;
- last?: boolean;
- hidden?: boolean;
- classes?: {
- line?: string;
- };
-}
-
-class Step extends Component {
- public render() {
- const { children, completed, active, last, hidden, classes } = this.props;
- if (hidden) {
- return null;
- }
- return (
-
-
-
- {!last && (
-
- )}
-
- {children}
-
- );
- }
-}
-
-export default Step;
diff --git a/src/core/client/ui/components/Steps/StepBar.css b/src/core/client/ui/components/Steps/StepBar.css
deleted file mode 100644
index 536b516c7..000000000
--- a/src/core/client/ui/components/Steps/StepBar.css
+++ /dev/null
@@ -1,6 +0,0 @@
-.root {
- width: 100%;
- position: relative;
- display: block;
- padding: calc(2 * var(--mini-unit)) 0;
-}
diff --git a/src/core/client/ui/components/Steps/StepBar.tsx b/src/core/client/ui/components/Steps/StepBar.tsx
deleted file mode 100644
index 023913bec..000000000
--- a/src/core/client/ui/components/Steps/StepBar.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import cn from "classnames";
-import React, { Component, ReactNode } from "react";
-
-import Flex from "../Flex";
-
-import styles from "./StepBar.css";
-
-interface StepBarProps {
- children: ReactNode;
- currentStep: number;
- className?: string;
-}
-
-class StepBar extends Component {
- public render() {
- const { children, currentStep } = this.props;
- const steps = React.Children.toArray(children);
- const stepsToRender = steps
- .filter((child: React.ReactElement) => !child.props.hidden)
- .map((child: React.ReactElement, index: number, arr) =>
- React.cloneElement(child, {
- last: arr.length - 1 === index,
- active: currentStep === index,
- completed: currentStep > index,
- })
- );
-
- return (
-
-
- {stepsToRender}
-
-
- );
- }
-}
-
-export default StepBar;
diff --git a/src/core/client/ui/components/Steps/index.ts b/src/core/client/ui/components/Steps/index.ts
deleted file mode 100644
index 98a8b1891..000000000
--- a/src/core/client/ui/components/Steps/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default as StepBar } from "./StepBar";
-export { default as Step } from "./Step";
diff --git a/src/core/client/ui/components/SubBar/Navigation.css b/src/core/client/ui/components/SubBar/Navigation.css
deleted file mode 100644
index 2f1eb37ab..000000000
--- a/src/core/client/ui/components/SubBar/Navigation.css
+++ /dev/null
@@ -1,21 +0,0 @@
-.root {
- height: 100%;
- border-bottom: 1px solid var(--palette-divider);
- padding: 0 calc(1.5 * var(--mini-unit));
-}
-
-.ul {
- list-style: none;
- padding: 0;
- display: flex;
- height: 100%;
- margin: 0;
- align-items: flex-end;
-
- & > * {
- margin: 0 calc(3 * var(--mini-unit)) 0 0;
- }
- & > *:last-child {
- margin: 0;
- }
-}
diff --git a/src/core/client/ui/components/SubBar/Navigation.spec.tsx b/src/core/client/ui/components/SubBar/Navigation.spec.tsx
deleted file mode 100644
index 1a3953b98..000000000
--- a/src/core/client/ui/components/SubBar/Navigation.spec.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from "react";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import { PropTypesOf } from "coral-framework/types";
-
-import Navigation from "./Navigation";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- children: "children",
- };
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/SubBar/Navigation.tsx b/src/core/client/ui/components/SubBar/Navigation.tsx
deleted file mode 100644
index 8a19567b4..000000000
--- a/src/core/client/ui/components/SubBar/Navigation.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./Navigation.css";
-
-interface Props {
- className?: string;
- classes: typeof styles;
- children?: React.ReactNode;
-}
-
-const Navigation: FunctionComponent = ({
- children,
- className,
- classes,
-}) => (
-
-
-
-);
-
-export default withStyles(styles)(Navigation);
diff --git a/src/core/client/ui/components/SubBar/NavigationItem.css b/src/core/client/ui/components/SubBar/NavigationItem.css
deleted file mode 100644
index 4404d797b..000000000
--- a/src/core/client/ui/components/SubBar/NavigationItem.css
+++ /dev/null
@@ -1,30 +0,0 @@
-.root {
- height: 100%;
-}
-
-.anchor {
- composes: adminTabItem from "~coral-ui/shared/typography.css";
- color: var(--palette-grey-dark);
- height: 100%;
- display: inline-flex;
- align-items: center;
- text-transform: uppercase;
- text-decoration: none;
- box-sizing: border-box;
- border-bottom: 3px solid transparent;
- &:hover {
- cursor: pointer;
- }
- & > * {
- margin: 0 calc(0.5 * var(--mini-unit)) 0 0;
- }
- & > *:last-child {
- margin: 0;
- }
-}
-
-.active {
- composes: adminTabItemActive from "~coral-ui/shared/typography.css";
- border-bottom: 3px solid var(--palette-primary-main);
- color: var(--palette-primary-main);
-}
diff --git a/src/core/client/ui/components/SubBar/NavigationItem.spec.tsx b/src/core/client/ui/components/SubBar/NavigationItem.spec.tsx
deleted file mode 100644
index 1f7e58c22..000000000
--- a/src/core/client/ui/components/SubBar/NavigationItem.spec.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import { noop } from "lodash";
-import React from "react";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import { PropTypesOf } from "coral-framework/types";
-
-import NavigationItem from "./NavigationItem";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- href: "/moderate",
- children: "link",
- onClick: noop,
- active: true,
- className: "custom",
- };
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/SubBar/NavigationItem.tsx b/src/core/client/ui/components/SubBar/NavigationItem.tsx
deleted file mode 100644
index 3f0d3ab06..000000000
--- a/src/core/client/ui/components/SubBar/NavigationItem.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./NavigationItem.css";
-
-interface Props {
- children: React.ReactNode;
- href?: string;
- className?: string;
- active?: boolean;
- onClick?: React.EventHandler;
- classes: typeof styles;
-}
-
-const NavigationItem: FunctionComponent = ({
- children,
- href,
- className,
- active,
- onClick,
- classes,
- ...rest
-}) => {
- return (
-
-
- {children}
-
-
- );
-};
-
-export default withStyles(styles)(NavigationItem);
diff --git a/src/core/client/ui/components/SubBar/README.mdx b/src/core/client/ui/components/SubBar/README.mdx
deleted file mode 100644
index f74761ade..000000000
--- a/src/core/client/ui/components/SubBar/README.mdx
+++ /dev/null
@@ -1,40 +0,0 @@
----
-name: SubBar
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-
-import { SubBar, Navigation, NavigationItem, Divider } from "./";
-import Icon from "../Icon";
-import Counter from "../Counter";
-
-# SubBar
-
-## Basic usage
-
-
-
-
-
- flag
- Reported
- 20
-
-
- access_time
- Pending
- 100
-
-
- forum
- Unmoderated
- 2.3k
-
-
- cancel
- Rejected
-
-
-
-
diff --git a/src/core/client/ui/components/SubBar/SubBar.css b/src/core/client/ui/components/SubBar/SubBar.css
deleted file mode 100644
index 98b5742ef..000000000
--- a/src/core/client/ui/components/SubBar/SubBar.css
+++ /dev/null
@@ -1,19 +0,0 @@
-.root {
- background-color: var(--palette-common-white);
- height: calc(6 * var(--mini-unit));
-}
-
-.container {
- max-width: 1280px;
- margin: 0 auto;
- height: 100%;
- box-sizing: border-box;
- position: relative;
-}
-
-.gutterBegin {
- padding-left: calc(2 * var(--mini-unit));
-}
-.gutterEnd {
- padding-right: calc(2 * var(--mini-unit));
-}
diff --git a/src/core/client/ui/components/SubBar/SubBar.spec.tsx b/src/core/client/ui/components/SubBar/SubBar.spec.tsx
deleted file mode 100644
index f5f348648..000000000
--- a/src/core/client/ui/components/SubBar/SubBar.spec.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import React from "react";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import { PropTypesOf } from "coral-framework/types";
-
-import SubBar from "./SubBar";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- children: "child",
- gutterBegin: true,
- gutterEnd: true,
- className: "custom",
- };
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/SubBar/SubBar.tsx b/src/core/client/ui/components/SubBar/SubBar.tsx
deleted file mode 100644
index 6576cac8b..000000000
--- a/src/core/client/ui/components/SubBar/SubBar.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, HTMLAttributes } from "react";
-
-import { Flex } from "coral-ui/components";
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./SubBar.css";
-
-interface Props extends HTMLAttributes {
- children?: React.ReactNode;
- className?: string;
- gutterBegin?: boolean;
- gutterEnd?: boolean;
- classes: typeof styles;
-}
-
-const SubBar: FunctionComponent = ({
- gutterBegin,
- gutterEnd,
- className,
- children,
- classes,
- ...rest
-}) => {
- return (
-
-
- {children}
-
-
- );
-};
-
-export default withStyles(styles)(SubBar);
diff --git a/src/core/client/ui/components/SubBar/__snapshots__/Navigation.spec.tsx.snap b/src/core/client/ui/components/SubBar/__snapshots__/Navigation.spec.tsx.snap
deleted file mode 100644
index 54f9bae45..000000000
--- a/src/core/client/ui/components/SubBar/__snapshots__/Navigation.spec.tsx.snap
+++ /dev/null
@@ -1,14 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- children
-
-`;
diff --git a/src/core/client/ui/components/SubBar/__snapshots__/NavigationItem.spec.tsx.snap b/src/core/client/ui/components/SubBar/__snapshots__/NavigationItem.spec.tsx.snap
deleted file mode 100644
index 7ad60ce3d..000000000
--- a/src/core/client/ui/components/SubBar/__snapshots__/NavigationItem.spec.tsx.snap
+++ /dev/null
@@ -1,19 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- link
-
-`;
diff --git a/src/core/client/ui/components/SubBar/__snapshots__/SubBar.spec.tsx.snap b/src/core/client/ui/components/SubBar/__snapshots__/SubBar.spec.tsx.snap
deleted file mode 100644
index 22bc584a3..000000000
--- a/src/core/client/ui/components/SubBar/__snapshots__/SubBar.spec.tsx.snap
+++ /dev/null
@@ -1,19 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- child
-
-`;
diff --git a/src/core/client/ui/components/SubBar/index.ts b/src/core/client/ui/components/SubBar/index.ts
deleted file mode 100644
index 7f912c793..000000000
--- a/src/core/client/ui/components/SubBar/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export { default as SubBar } from "./SubBar";
-export { default as Navigation } from "./Navigation";
-export { default as NavigationItem } from "./NavigationItem";
diff --git a/src/core/client/ui/components/Table/README.mdx b/src/core/client/ui/components/Table/README.mdx
deleted file mode 100644
index a712bba40..000000000
--- a/src/core/client/ui/components/Table/README.mdx
+++ /dev/null
@@ -1,36 +0,0 @@
----
-name: Table
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-
-import { Table, TableBody, TableHead, TableRow, TableCell } from "./";
-
-# Table
-
-## Basic usage
-
-
-
-
-
- Username
- Email Address
- Member Since
-
-
-
-
- ButFirstCoffee
- coffee@mail.com
- 01/27/2019
-
-
- SneaksOnSneaks
- hisairness@mail.com
- 04/27/2019
-
-
-
-
diff --git a/src/core/client/ui/components/Table/Table.css b/src/core/client/ui/components/Table/Table.css
deleted file mode 100644
index 60ab1c748..000000000
--- a/src/core/client/ui/components/Table/Table.css
+++ /dev/null
@@ -1,8 +0,0 @@
-.root {
- border-collapse: collapse;
- box-sizing: border-box;
-}
-
-.fullWidth {
- width: 100%;
-}
diff --git a/src/core/client/ui/components/Table/Table.spec.tsx b/src/core/client/ui/components/Table/Table.spec.tsx
deleted file mode 100644
index d1e96d01d..000000000
--- a/src/core/client/ui/components/Table/Table.spec.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import React from "react";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import { Table, TableBody, TableCell, TableHead, TableRow } from "./";
-
-it("renders correctly", () => {
- const renderer = createRenderer();
- renderer.render(
-
-
-
- Username
- Email Address
- Member Since
-
-
-
-
- ButFirstCoffee
- coffee@mail.com
- 01/27/2019
-
-
- SneaksOnSneaks
- hisairness@mail.com
- 04/27/2019
-
-
-
- );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Table/Table.tsx b/src/core/client/ui/components/Table/Table.tsx
deleted file mode 100644
index 16ba68cf9..000000000
--- a/src/core/client/ui/components/Table/Table.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./Table.css";
-
-interface Props extends React.HTMLAttributes {
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
-
- fullWidth?: boolean;
-}
-
-const Table: FunctionComponent = ({
- classes,
- className,
- fullWidth,
- children,
- ...rest
-}) => {
- const rootClassName = cn(classes.root, className, {
- [classes.fullWidth]: fullWidth,
- });
- return (
-
- );
-};
-
-const enhanced = withStyles(styles)(Table);
-export default enhanced;
diff --git a/src/core/client/ui/components/Table/TableBody.css b/src/core/client/ui/components/Table/TableBody.css
deleted file mode 100644
index c3a2af639..000000000
--- a/src/core/client/ui/components/Table/TableBody.css
+++ /dev/null
@@ -1,2 +0,0 @@
-.root {
-}
diff --git a/src/core/client/ui/components/Table/TableBody.tsx b/src/core/client/ui/components/Table/TableBody.tsx
deleted file mode 100644
index eec6528b8..000000000
--- a/src/core/client/ui/components/Table/TableBody.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./TableBody.css";
-
-interface Props extends React.HTMLAttributes {
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
-}
-
-const TableBody: FunctionComponent = ({
- classes,
- className,
- children,
- ...rest
-}) => {
- const rootClassName = cn(classes.root, className);
- return (
-
- {children}
-
- );
-};
-
-const enhanced = withStyles(styles)(TableBody);
-export default enhanced;
diff --git a/src/core/client/ui/components/Table/TableCell.css b/src/core/client/ui/components/Table/TableCell.css
deleted file mode 100644
index 20de7e6b4..000000000
--- a/src/core/client/ui/components/Table/TableCell.css
+++ /dev/null
@@ -1,23 +0,0 @@
-.root {
- /* acts like min-width in a cell */
- height: calc(4.5 * var(--mini-unit));
- text-align: left;
- padding: var(--mini-unit) calc(1.5 * var(--mini-unit));
- box-sizing: border-box;
-}
-
-.header {
- composes: tableHeading from "~coral-ui/shared/typography.css";
-}
-
-.body {
- composes: tableData from "~coral-ui/shared/typography.css";
-}
-
-.alignCenter {
- text-align: center;
-}
-
-.alignEnd {
- text-align: right;
-}
diff --git a/src/core/client/ui/components/Table/TableCell.tsx b/src/core/client/ui/components/Table/TableCell.tsx
deleted file mode 100644
index 84519465f..000000000
--- a/src/core/client/ui/components/Table/TableCell.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, useContext } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import { TableHeadContext } from "./TableHead";
-
-import styles from "./TableCell.css";
-
-interface Props
- extends Omit, "align"> {
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
-
- align?: "begin" | "center" | "end";
-}
-
-const TableCell: FunctionComponent = ({
- align,
- classes,
- className,
- children,
- ...rest
-}) => {
- const inTableHead = useContext(TableHeadContext);
- const rootClassName = cn(classes.root, className, {
- [classes.header]: inTableHead,
- [classes.body]: !inTableHead,
- [classes.alignCenter]: align === "center",
- [classes.alignEnd]: align === "end",
- });
- const Component = inTableHead ? "th" : "td";
- return (
-
- {children}
-
- );
-};
-
-const enhanced = withStyles(styles)(TableCell);
-export default enhanced;
diff --git a/src/core/client/ui/components/Table/TableHead.css b/src/core/client/ui/components/Table/TableHead.css
deleted file mode 100644
index e5a3097c6..000000000
--- a/src/core/client/ui/components/Table/TableHead.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.root {
- background: var(--palette-grey-lightest);
- border: 1px solid var(--palette-grey-lighter);
- box-sizing: border-box;
-}
diff --git a/src/core/client/ui/components/Table/TableHead.tsx b/src/core/client/ui/components/Table/TableHead.tsx
deleted file mode 100644
index 84bf7eb1b..000000000
--- a/src/core/client/ui/components/Table/TableHead.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./TableHead.css";
-
-export const TableHeadContext = React.createContext(false);
-
-interface Props extends React.HTMLAttributes {
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
-}
-
-const TableHead: FunctionComponent = ({
- classes,
- className,
- children,
- ...rest
-}) => {
- const rootClassName = cn(classes.root, className);
- return (
-
-
- {children}
-
-
- );
-};
-
-const enhanced = withStyles(styles)(TableHead);
-export default enhanced;
diff --git a/src/core/client/ui/components/Table/TableRow.css b/src/core/client/ui/components/Table/TableRow.css
deleted file mode 100644
index aab1194cf..000000000
--- a/src/core/client/ui/components/Table/TableRow.css
+++ /dev/null
@@ -1,15 +0,0 @@
-.root {
- box-sizing: border-box;
-}
-
-.body:nth-child(even) {
- background-color: var(--palette-grey-lightest);
-}
-
-.body:first-child:hover {
- border-top: 1px solid var(--palette-primary-main);
-}
-.body:hover {
- background-color: var(--palette-primary-lightest);
- box-shadow: inset 0px 0px 0px 1px var(--palette-primary-main);
-}
diff --git a/src/core/client/ui/components/Table/TableRow.tsx b/src/core/client/ui/components/Table/TableRow.tsx
deleted file mode 100644
index 861589fc9..000000000
--- a/src/core/client/ui/components/Table/TableRow.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent, useContext } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import { TableHeadContext } from "./TableHead";
-
-import styles from "./TableRow.css";
-
-interface Props extends React.HTMLAttributes {
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
-}
-
-const TableRow: FunctionComponent = ({
- classes,
- className,
- children,
- ...rest
-}) => {
- const inTableHead = useContext(TableHeadContext);
- const rootClassName = cn(classes.root, className, {
- [classes.body]: !inTableHead,
- });
- return (
-
- {children}
-
- );
-};
-
-const enhanced = withStyles(styles)(TableRow);
-export default enhanced;
diff --git a/src/core/client/ui/components/Table/__snapshots__/Table.spec.tsx.snap b/src/core/client/ui/components/Table/__snapshots__/Table.spec.tsx.snap
deleted file mode 100644
index cc7452766..000000000
--- a/src/core/client/ui/components/Table/__snapshots__/Table.spec.tsx.snap
+++ /dev/null
@@ -1,51 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
-
-
- Username
-
-
- Email Address
-
-
- Member Since
-
-
-
-
-
-
- ButFirstCoffee
-
-
- coffee@mail.com
-
-
- 01/27/2019
-
-
-
-
- SneaksOnSneaks
-
-
- hisairness@mail.com
-
-
- 04/27/2019
-
-
-
-
-`;
diff --git a/src/core/client/ui/components/Table/index.ts b/src/core/client/ui/components/Table/index.ts
deleted file mode 100644
index 627b960e7..000000000
--- a/src/core/client/ui/components/Table/index.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export { default as Table } from "./Table";
-export { default as TableBody } from "./TableBody";
-export { default as TableHead } from "./TableHead";
-export { default as TableRow } from "./TableRow";
-export { default as TableCell } from "./TableCell";
diff --git a/src/core/client/ui/components/Tabs/README.mdx b/src/core/client/ui/components/Tabs/README.mdx
deleted file mode 100644
index 8724be90c..000000000
--- a/src/core/client/ui/components/Tabs/README.mdx
+++ /dev/null
@@ -1,85 +0,0 @@
----
-name: Tabs
-menu: UI Kit v1
----
-
-# Tabs
-
-### Examples
-
-import { Playground } from "docz";
-import { useState } from "react";
-
-import { Flex, TabBar, Tab, TabContent, TabPane } from "./index";
-
-## Primary Tabs
-
-
- {() => {
- const [activeID, setActiveID] = useState("two");
- return (
-
- setActiveID(id)}
- >
- One
- Two
- Three
-
-
- Hola One
- Hola Two
- Hola Three
-
-
- );
- }}
-
-
-## Secondary Tabs
-
-
- {() => {
- const [activeID, setActiveID] = useState("two");
- return (
-
- setActiveID(id)}
- >
- One
- Two
- Three
-
-
- Hola One
- Hola Two
- Hola Three
-
-
- );
- }}
- (
-
- props.setActiveID(id)}
- >
- One
- Two
- Three
-
-
- Hola One
- Hola Two
- Hola Three
-
-
- )}
- />
-
diff --git a/src/core/client/ui/components/Tabs/Tab.css b/src/core/client/ui/components/Tabs/Tab.css
deleted file mode 100644
index edb984c8a..000000000
--- a/src/core/client/ui/components/Tabs/Tab.css
+++ /dev/null
@@ -1,59 +0,0 @@
-.root {
- display: inline-block;
- list-style: none;
- margin-right: -1px;
- margin-bottom: -1px;
-}
-
-.button {
- height: 100%;
- box-sizing: border-box;
- border-bottom: 0;
- list-style: none;
- padding: var(--mini-unit);
- font-weight: var(--font-weight-regular);
- font-family: var(--font-family-serif);
-
- &:hover {
- cursor: pointer;
- }
-}
-
-.root:first-child .primary {
- border-top-left-radius: var(--round-corners);
-}
-
-.root:last-child .primary {
- border-top-right-radius: var(--round-corners);
-}
-
-.primary {
- position: relative;
- background: var(--palette-grey-lightest);
- color: var(--palette-grey-main);
- border: 1px solid var(--palette-grey-lighter);
- padding: calc(0.5 * var(--mini-unit)) calc(var(--mini-unit) * 2);
- &.active {
- background-color: var(--palette-common-white);
- color: var(--palette-common-black);
- border-bottom: 0;
- border-top-width: calc(0.5 * var(--mini-unit));
- border-top-color: var(--palette-primary-main);
- border-radius: 0;
- z-index: 10;
- }
-}
-
-.secondary {
- font-family: var(--font-family-sans-serif);
- color: var(--palette-grey-dark);
- padding: calc(0.5 * var(--mini-unit)) calc(var(--mini-unit) * 2)
- calc(0.5 * var(--mini-unit) + 3px) calc(var(--mini-unit) * 2);
-
- &.active {
- color: var(--palette-text-primary);
- font-weight: var(--font-weight-medium);
- border-bottom: 3px solid var(--palette-primary-main);
- padding: calc(0.5 * var(--mini-unit)) calc(var(--mini-unit) * 2);
- }
-}
diff --git a/src/core/client/ui/components/Tabs/Tab.spec.tsx b/src/core/client/ui/components/Tabs/Tab.spec.tsx
deleted file mode 100644
index b2ad3ccc3..000000000
--- a/src/core/client/ui/components/Tabs/Tab.spec.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import Tab from "./Tab";
-
-it("renders correctly", () => {
- const renderer = TestRenderer.create(Three );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Tabs/Tab.tsx b/src/core/client/ui/components/Tabs/Tab.tsx
deleted file mode 100644
index ec63ce04a..000000000
--- a/src/core/client/ui/components/Tabs/Tab.tsx
+++ /dev/null
@@ -1,79 +0,0 @@
-import cn from "classnames";
-import React from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import BaseButton from "../BaseButton";
-
-import styles from "./Tab.css";
-
-export interface TabProps {
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- /**
- * The id/name of the tab
- */
- tabID: string;
- /**
- * Active status
- */
- active?: boolean;
- /**
- * Style variant
- */
- variant?: "primary" | "secondary";
- /**
- * Action taken on tab click
- */
- onTabClick?: (tabID: string) => void;
-}
-
-class Tab extends React.Component {
- public handleTabClick = () => {
- if (this.props.onTabClick) {
- this.props.onTabClick(this.props.tabID);
- }
- };
-
- public render() {
- const { className, classes, children, tabID, active, variant } = this.props;
-
- const buttonClassName = cn(
- classes.button,
- {
- [classes.primary]: variant === "primary",
- [classes.secondary]: variant === "secondary",
- [classes.active]: active,
- },
- className
- );
-
- return (
-
-
- {children}
-
-
- );
- }
-}
-
-const enhanced = withStyles(styles)(Tab);
-export default enhanced;
diff --git a/src/core/client/ui/components/Tabs/TabBar.css b/src/core/client/ui/components/Tabs/TabBar.css
deleted file mode 100644
index fc7f90bb7..000000000
--- a/src/core/client/ui/components/Tabs/TabBar.css
+++ /dev/null
@@ -1,14 +0,0 @@
-.root {
- display: flex;
- padding: 0;
- margin: 0;
- align-items: flex-end;
-}
-
-.primary {
- border-bottom: 1px solid var(--palette-grey-lighter);
-}
-
-.secondary {
- border-bottom: 1px solid var(--palette-divider);
-}
diff --git a/src/core/client/ui/components/Tabs/TabBar.spec.tsx b/src/core/client/ui/components/Tabs/TabBar.spec.tsx
deleted file mode 100644
index f0d3422aa..000000000
--- a/src/core/client/ui/components/Tabs/TabBar.spec.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import Tab from "./Tab";
-import TabBar from "./TabBar";
-
-it("renders correctly", () => {
- const renderer = TestRenderer.create(
-
- One
- Two
- Three
-
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("sets initial tab as active", () => {
- const renderer = TestRenderer.create(
-
- One
- Two
- Three
-
- );
-
- const testInstance = renderer.root;
- expect(testInstance.findByType(TabBar).props.activeTab).toBe("one");
- const tabs = testInstance.findAllByType(Tab);
- expect(tabs.length).toBe(3);
- expect(tabs[0].props.active).toBe(true);
- expect(tabs[1].props.active).toBe(false);
- expect(tabs[2].props.active).toBe(false);
-});
diff --git a/src/core/client/ui/components/Tabs/TabBar.tsx b/src/core/client/ui/components/Tabs/TabBar.tsx
deleted file mode 100644
index de39d00c5..000000000
--- a/src/core/client/ui/components/Tabs/TabBar.tsx
+++ /dev/null
@@ -1,82 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./TabBar.css";
-
-export interface TabBarProps {
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- /**
- * Style variant
- */
- variant?: "primary" | "secondary";
- /**
- * Active tab id/name
- */
- activeTab?: string;
- /**
- * Default active tab id/name
- */
- defaultActiveTab?: string;
- /**
- * Action taken on tab click
- */
- onTabClick?: (tabID: string) => void;
-}
-
-const TabBar: FunctionComponent = (props) => {
- const {
- className,
- classes,
- children,
- onTabClick,
- activeTab,
- variant,
- defaultActiveTab,
- } = props;
-
- const rootClassName = cn(
- classes.root,
- [
- {
- [classes.primary]: variant === "primary",
- [classes.secondary]: variant === "secondary",
- },
- ],
- className
- );
-
- const tabs = React.Children.toArray(children).map(
- (child: React.ReactElement, index: number) =>
- React.cloneElement(child, {
- tabID: child.props.tabID ? child.props.tabID : index,
- active:
- defaultActiveTab && !activeTab
- ? child.props.tabID === defaultActiveTab
- : child.props.tabID === activeTab,
- variant,
- onTabClick,
- })
- );
-
- return (
-
- );
-};
-
-TabBar.defaultProps = {
- variant: "primary",
-};
-
-const enhanced = withStyles(styles)(TabBar);
-export default enhanced;
diff --git a/src/core/client/ui/components/Tabs/TabContent.spec.tsx b/src/core/client/ui/components/Tabs/TabContent.spec.tsx
deleted file mode 100644
index 050c82bde..000000000
--- a/src/core/client/ui/components/Tabs/TabContent.spec.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import TabContent from "./TabContent";
-import TabPane from "./TabPane";
-
-it("renders correctly", () => {
- const renderer = TestRenderer.create(
-
- Hola One
- Hola Two
- Hola Three
-
- );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("sets initial tab as active, renders only one", () => {
- const renderer = TestRenderer.create(
-
- Hola One
- Hola Two
- Hola Three
-
- );
-
- const testInstance = renderer.root;
- expect(testInstance.findByType(TabContent).props.activeTab).toBe("one");
- const panes = testInstance.findAllByType(TabPane);
- expect(panes.length).toBe(1);
-});
diff --git a/src/core/client/ui/components/Tabs/TabContent.tsx b/src/core/client/ui/components/Tabs/TabContent.tsx
deleted file mode 100644
index 223720870..000000000
--- a/src/core/client/ui/components/Tabs/TabContent.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-export interface TabContentProps {
- /**
- * Active tab id/name
- */
- activeTab?: string;
- /**
- * classNames
- */
- className?: string;
-}
-
-const TabContent: FunctionComponent = (props) => {
- const { children, activeTab, className } = props;
- return (
- <>
- {React.Children.toArray(children)
- .filter(
- (child: React.ReactElement) => child.props.tabID === activeTab
- )
- .map((child: React.ReactElement, i) =>
- React.cloneElement(child, {
- tabID: child.props.tabID ? child.props.tabID : i,
- className: cn(className, child.props.className),
- })
- )}
- >
- );
-};
-
-export default TabContent;
diff --git a/src/core/client/ui/components/Tabs/TabPane.spec.tsx b/src/core/client/ui/components/Tabs/TabPane.spec.tsx
deleted file mode 100644
index 746fc4802..000000000
--- a/src/core/client/ui/components/Tabs/TabPane.spec.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import TabPane from "./TabPane";
-
-it("renders correctly", () => {
- const renderer = TestRenderer.create(Three );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Tabs/TabPane.tsx b/src/core/client/ui/components/Tabs/TabPane.tsx
deleted file mode 100644
index 9dd3c6575..000000000
--- a/src/core/client/ui/components/Tabs/TabPane.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import React, { FunctionComponent } from "react";
-
-export interface TabBarProps {
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Name of the tab
- */
- tabID: string;
-}
-
-const TabPane: FunctionComponent = (props) => {
- const { className, children, tabID, ...rest } = props;
- return (
-
- );
-};
-
-export default TabPane;
diff --git a/src/core/client/ui/components/Tabs/__snapshots__/Tab.spec.tsx.snap b/src/core/client/ui/components/Tabs/__snapshots__/Tab.spec.tsx.snap
deleted file mode 100644
index 44c943182..000000000
--- a/src/core/client/ui/components/Tabs/__snapshots__/Tab.spec.tsx.snap
+++ /dev/null
@@ -1,24 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
- Three
-
-
-`;
diff --git a/src/core/client/ui/components/Tabs/__snapshots__/TabBar.spec.tsx.snap b/src/core/client/ui/components/Tabs/__snapshots__/TabBar.spec.tsx.snap
deleted file mode 100644
index 06a3d4ece..000000000
--- a/src/core/client/ui/components/Tabs/__snapshots__/TabBar.spec.tsx.snap
+++ /dev/null
@@ -1,72 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
-
- One
-
-
-
-
- Two
-
-
-
-
- Three
-
-
-
-`;
diff --git a/src/core/client/ui/components/Tabs/__snapshots__/TabContent.spec.tsx.snap b/src/core/client/ui/components/Tabs/__snapshots__/TabContent.spec.tsx.snap
deleted file mode 100644
index 0069bd989..000000000
--- a/src/core/client/ui/components/Tabs/__snapshots__/TabContent.spec.tsx.snap
+++ /dev/null
@@ -1,12 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-`;
diff --git a/src/core/client/ui/components/Tabs/__snapshots__/TabPane.spec.tsx.snap b/src/core/client/ui/components/Tabs/__snapshots__/TabPane.spec.tsx.snap
deleted file mode 100644
index ad884add2..000000000
--- a/src/core/client/ui/components/Tabs/__snapshots__/TabPane.spec.tsx.snap
+++ /dev/null
@@ -1,11 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-`;
diff --git a/src/core/client/ui/components/Tabs/index.ts b/src/core/client/ui/components/Tabs/index.ts
deleted file mode 100644
index f8818e9ea..000000000
--- a/src/core/client/ui/components/Tabs/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export { default as TabBar } from "./TabBar";
-export { default as Tab } from "./Tab";
-export { default as TabPane } from "./TabPane";
-export { default as TabContent } from "./TabContent";
diff --git a/src/core/client/ui/components/Tag/README.mdx b/src/core/client/ui/components/Tag/README.mdx
deleted file mode 100644
index 2f3b09896..000000000
--- a/src/core/client/ui/components/Tag/README.mdx
+++ /dev/null
@@ -1,35 +0,0 @@
----
-name: Tag
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-import Tag from "./Tag";
-import HorizontalGutter from "../HorizontalGutter";
-import Flex from "../Flex";
-
-# Tag
-
-## Basic Use
-
-
-
- Staff
- Featured
- Rejected
-
-
-
-## Pill variant
-
-
-
- Staff
-
- Featured
-
-
- Rejected
-
-
-
diff --git a/src/core/client/ui/components/Tag/Tag.css b/src/core/client/ui/components/Tag/Tag.css
deleted file mode 100644
index 5e7f47f52..000000000
--- a/src/core/client/ui/components/Tag/Tag.css
+++ /dev/null
@@ -1,50 +0,0 @@
-.root {
- composes: tagText from "~coral-ui/shared/typography.css";
- color: var(--palette-text-light);
- line-height: 1;
- padding: var(--spacing-1);
- white-space: nowrap;
- border-radius: 2px;
- display: inline-block;
-}
-
-.colorPrimary {
- background-color: var(--palette-primary-dark);
-}
-
-.colorGrey {
- background-color: var(--palette-grey-dark);
-}
-
-.colorError {
- background-color: var(--palette-error-dark);
-}
-
-.colorDarkest {
- background-color: var(--palette-primary-darkest);
-}
-
-.variantPill {
- border-radius: 20px;
- padding: 2px 6px;
- font-weight: var(--font-weight-sans-medium);
- &.colorGrey {
- border: 1px solid var(--palette-grey-dark);
- background-color: var(--palette-grey-lightest);
- color: var(--palette-grey-dark);
- }
- &.colorPrimary {
- border: 1px solid var(--palette-primary-dark);
- background-color: var(--palette-primary-lightest);
- color: var(--palette-primary-dark);
- }
- &.colorError {
- border: 1px solid var(--palette-error-dark);
- background-color: var(--palette-error-lightest);
- color: var(--palette-error-dark);
- }
-}
-
-.uppercase {
- text-transform: uppercase;
-}
diff --git a/src/core/client/ui/components/Tag/Tag.spec.tsx b/src/core/client/ui/components/Tag/Tag.spec.tsx
deleted file mode 100644
index 9505ec34b..000000000
--- a/src/core/client/ui/components/Tag/Tag.spec.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import Tag from "./Tag";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- children: "Spam",
- };
- const renderer = TestRenderer.create(Staff );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Tag/Tag.tsx b/src/core/client/ui/components/Tag/Tag.tsx
deleted file mode 100644
index 074519135..000000000
--- a/src/core/client/ui/components/Tag/Tag.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./Tag.css";
-
-interface Props {
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- children: React.ReactNode;
- color?: "grey" | "primary" | "error" | "dark";
-
- variant?: "regular" | "pill";
-}
-
-const Tag: FunctionComponent = (props) => {
- const { className, children, classes, variant, color, ...rest } = props;
-
- const rootClassName = cn(classes.root, className, {
- [classes.variantPill]: variant === "pill",
- [classes.colorPrimary]: color === "primary",
- [classes.colorError]: color === "error",
- [classes.colorGrey]: color === "grey",
- [classes.colorDarkest]: color === "dark",
- [classes.uppercase]: variant !== "pill",
- });
-
- return (
-
- {children}
-
- );
-};
-
-Tag.defaultProps = {
- color: "grey",
- variant: "regular",
-};
-
-const enhanced = withStyles(styles)(Tag);
-export default enhanced;
diff --git a/src/core/client/ui/components/Tag/__snapshots__/Tag.spec.tsx.snap b/src/core/client/ui/components/Tag/__snapshots__/Tag.spec.tsx.snap
deleted file mode 100644
index e28a88335..000000000
--- a/src/core/client/ui/components/Tag/__snapshots__/Tag.spec.tsx.snap
+++ /dev/null
@@ -1,9 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- Staff
-
-`;
diff --git a/src/core/client/ui/components/Tag/index.ts b/src/core/client/ui/components/Tag/index.ts
deleted file mode 100644
index 5fa3b2fcd..000000000
--- a/src/core/client/ui/components/Tag/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default, default as Tag } from "./Tag";
diff --git a/src/core/client/ui/components/TextField/README.mdx b/src/core/client/ui/components/TextField/README.mdx
deleted file mode 100644
index 427f7345e..000000000
--- a/src/core/client/ui/components/TextField/README.mdx
+++ /dev/null
@@ -1,43 +0,0 @@
----
-name: TextField
-menu: UI Kit v1
----
-
-import { Playground } from "docz";
-
-import TextField from "./TextField";
-import Button from "../Button";
-import Icon from "../Icon";
-import Flex from "../Flex";
-import HorizontalGutter from "../HorizontalGutter";
-
-# TextField
-
-## Basic Use
-
-
-
-
-
- search
-
- }
- />
-
-
-
-
- Seconds}
- />
-
-
diff --git a/src/core/client/ui/components/TextField/TextField.css b/src/core/client/ui/components/TextField/TextField.css
deleted file mode 100644
index dee506685..000000000
--- a/src/core/client/ui/components/TextField/TextField.css
+++ /dev/null
@@ -1,68 +0,0 @@
-.root {
- display: flex;
- width: calc(29 * var(--mini-unit));
- align-items: center;
- height: 36px;
-}
-
-.input {
- composes: inputText placeholderPseudo from "~coral-ui/shared/typography.css";
- position: relative;
- display: block;
- padding: calc(0.5 * var(--mini-unit));
- box-sizing: border-box;
- border-radius: var(--round-corners);
- width: 100%;
- align-self: stretch;
- margin-top: 0;
- margin-bottom: 0;
-
- &:read-only {
- background-color: var(--palette-grey-lightest);
- }
- &:disabled {
- color: var(--palette-text-secondary);
- background-color: var(--palette-grey-lightest);
- }
- &:focus {
- box-shadow: 0 0 3px rgba(81, 125, 207, 1);
- border: 1px solid rgba(81, 125, 207, 1);
- }
-}
-
-.adornment {
- margin-left: calc(0.5 * var(--mini-unit));
-}
-
-.colorRegular {
- background-color: var(--palette-common-white);
- color: var(--palette-common-black);
- border: 1px solid var(--palette-grey-light);
-}
-
-.colorError {
- background-color: var(--palette-common-white);
- border-color: var(--palette-error-main);
- border: 2px solid var(--palette-error-darkest);
-}
-
-.fullWidth {
- width: 100%;
-}
-
-.textAlignCenter {
- text-align: center;
-}
-
-.seamlessAdornment {
- border-right: 0;
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
-
- & + .adornment {
- height: 100%;
- margin: 0;
- display: flex;
- align-items: stretch;
- }
-}
diff --git a/src/core/client/ui/components/TextField/TextField.spec.tsx b/src/core/client/ui/components/TextField/TextField.spec.tsx
deleted file mode 100644
index 9c0be1f70..000000000
--- a/src/core/client/ui/components/TextField/TextField.spec.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import TextField from "./TextField";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- defaultValue: "Hello World",
- adornment: "Unit",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/TextField/TextField.tsx b/src/core/client/ui/components/TextField/TextField.tsx
deleted file mode 100644
index ac6fa7b76..000000000
--- a/src/core/client/ui/components/TextField/TextField.tsx
+++ /dev/null
@@ -1,132 +0,0 @@
-import cn from "classnames";
-import React, {
- AllHTMLAttributes,
- ChangeEvent,
- EventHandler,
- FunctionComponent,
-} from "react";
-
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./TextField.css";
-
-export interface TextFieldProps {
- id?: string;
- /**
- * The content value of the component.
- */
- defaultValue?: string;
- /**
- * The content value of the component.
- */
- value?: string;
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
- /**
- * Color of the TextField
- */
- color?: "regular" | "error";
- /*
- * If set renders a full width button
- */
- fullWidth?: boolean;
- /**
- * Placeholder
- */
- placeholder?: string;
- /**
- * Mark as readonly
- */
- readOnly?: boolean;
- /**
- * Name
- */
- name?: string;
- /**
- * type: Here we only allow text type values
- */
- type?:
- | "email"
- | "number"
- | "password"
- | "search"
- | "tel"
- | "text"
- | "url"
- | string;
- /**
- * onChange
- */
- onChange?: EventHandler>;
- onKeyPress?: React.EventHandler;
- onKeyDown?: React.EventHandler;
-
- disabled?: boolean;
-
- autoComplete?: AllHTMLAttributes["autoComplete"];
- autoCorrect?: AllHTMLAttributes["autoCorrect"];
- autoCapitalize?: AllHTMLAttributes["autoCapitalize"];
- spellCheck?: AllHTMLAttributes["spellCheck"];
-
- textAlignCenter?: boolean;
- adornment?: React.ReactNode;
-
- variant?: "regular" | "seamlessAdornment";
-}
-
-const TextField: FunctionComponent = (props) => {
- const {
- className,
- classes,
- color,
- fullWidth,
- value,
- placeholder,
- adornment,
- textAlignCenter,
- variant,
- ...rest
- } = props;
-
- const rootClassName = cn(
- classes.root,
- {
- [classes.fullWidth]: fullWidth,
- },
- className
- );
-
- const inputClassName = cn(classes.input, {
- [classes.colorRegular]: color === "regular",
- [classes.colorError]: color === "error",
- [classes.textAlignCenter]: textAlignCenter,
- [classes.seamlessAdornment]: variant === "seamlessAdornment",
- });
-
- return (
-
-
- {adornment &&
{adornment}
}
-
- );
-};
-
-TextField.defaultProps = {
- color: "regular",
- placeholder: "",
- type: "text",
-} as Partial;
-
-const enhanced = withStyles(styles)(TextField);
-export default enhanced;
diff --git a/src/core/client/ui/components/TextField/__snapshots__/TextField.spec.tsx.snap b/src/core/client/ui/components/TextField/__snapshots__/TextField.spec.tsx.snap
deleted file mode 100644
index 13359b792..000000000
--- a/src/core/client/ui/components/TextField/__snapshots__/TextField.spec.tsx.snap
+++ /dev/null
@@ -1,19 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-`;
diff --git a/src/core/client/ui/components/TextField/index.ts b/src/core/client/ui/components/TextField/index.ts
deleted file mode 100644
index e38acd4ea..000000000
--- a/src/core/client/ui/components/TextField/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from "./TextField";
-export { default } from "./TextField";
diff --git a/src/core/client/ui/components/TextLink/README.mdx b/src/core/client/ui/components/TextLink/README.mdx
deleted file mode 100644
index 09c4796c4..000000000
--- a/src/core/client/ui/components/TextLink/README.mdx
+++ /dev/null
@@ -1,19 +0,0 @@
----
-name: TextLink
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import TextLink from './TextLink.tsx'
-import HorizontalGutter from '../HorizontalGutter'
-
-# TextLink
-
-## Basic Use
-
-
- Well... Hello there.
-
-
-
-
diff --git a/src/core/client/ui/components/TextLink/TextLink.css b/src/core/client/ui/components/TextLink/TextLink.css
deleted file mode 100644
index f3e13f030..000000000
--- a/src/core/client/ui/components/TextLink/TextLink.css
+++ /dev/null
@@ -1,10 +0,0 @@
-.root {
- color: var(--palette-primary-main);
- text-decoration: underline;
-}
-
-.icon {
- padding-left: calc(0.5 * var(--mini-unit));
- padding-bottom: 2px;
- text-decoration: none;
-}
diff --git a/src/core/client/ui/components/TextLink/TextLink.spec.tsx b/src/core/client/ui/components/TextLink/TextLink.spec.tsx
deleted file mode 100644
index 47e8dd97c..000000000
--- a/src/core/client/ui/components/TextLink/TextLink.spec.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import TextLink from "./TextLink";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- };
- const renderer = TestRenderer.create(Hello );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/TextLink/TextLink.tsx b/src/core/client/ui/components/TextLink/TextLink.tsx
deleted file mode 100644
index 3d9a1e1ac..000000000
--- a/src/core/client/ui/components/TextLink/TextLink.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import cn from "classnames";
-import React, { AnchorHTMLAttributes, StatelessComponent } from "react";
-
-import { Icon } from "coral-ui/components";
-import { withStyles } from "coral-ui/hocs";
-
-import styles from "./TextLink.css";
-
-interface Props extends AnchorHTMLAttributes {
- /**
- * Override or extend the styles applied to the component.
- */
- classes: typeof styles;
-}
-
-const TextLinkProps: StatelessComponent = (props) => {
- const { className, children, classes, target, ...rest } = props;
-
- const rootClassName = cn(classes.root, className);
-
- return (
-
- {children}
- {target === "_blank" && (
-
- open_in_new
-
- )}
-
- );
-};
-
-const enhanced = withStyles(styles)(TextLinkProps);
-export default enhanced;
diff --git a/src/core/client/ui/components/TextLink/__snapshots__/TextLink.spec.tsx.snap b/src/core/client/ui/components/TextLink/__snapshots__/TextLink.spec.tsx.snap
deleted file mode 100644
index f0947cfb7..000000000
--- a/src/core/client/ui/components/TextLink/__snapshots__/TextLink.spec.tsx.snap
+++ /dev/null
@@ -1,10 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
- Hello
-
-`;
diff --git a/src/core/client/ui/components/TextLink/index.ts b/src/core/client/ui/components/TextLink/index.ts
deleted file mode 100644
index 423f16141..000000000
--- a/src/core/client/ui/components/TextLink/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./TextLink";
diff --git a/src/core/client/ui/components/TileSelector/TileOption.css b/src/core/client/ui/components/TileSelector/TileOption.css
deleted file mode 100644
index b42cb8f0e..000000000
--- a/src/core/client/ui/components/TileSelector/TileOption.css
+++ /dev/null
@@ -1,27 +0,0 @@
-.input {
- cursor: pointer;
- position: absolute; /* take it out of document flow */
- opacity: 0; /* hide it */
-}
-
-.label {
- composes: bodyCopy from "~coral-ui/shared/typography.css";
- display: inline-flex;
- align-items: center;
- position: relative;
- cursor: pointer;
- user-select: none;
- border: 1px solid var(--palette-grey-dark);
- border-radius: var(--round-corners);
- color: var(--palette-grey-dark);
- padding: calc(0.5 * var(--mini-unit));
- line-height: 1;
- box-sizing: border-box;
- height: 100%;
-}
-
-.checked {
- border: 1px solid var(--palette-text-primary);
- background: var(--palette-text-primary);
- color: var(--palette-text-light);
-}
diff --git a/src/core/client/ui/components/Timestamp/Timestamp.css b/src/core/client/ui/components/Timestamp/Timestamp.css
deleted file mode 100644
index 6ab19bf45..000000000
--- a/src/core/client/ui/components/Timestamp/Timestamp.css
+++ /dev/null
@@ -1,7 +0,0 @@
-.root {
- cursor: default;
-}
-
-.text {
- composes: timestamp from "~coral-ui/shared/typography.css";
-}
diff --git a/src/core/client/ui/components/Timestamp/Timestamp.spec.tsx b/src/core/client/ui/components/Timestamp/Timestamp.spec.tsx
deleted file mode 100644
index a17e264dd..000000000
--- a/src/core/client/ui/components/Timestamp/Timestamp.spec.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from "react";
-import { createRenderer } from "react-test-renderer/shallow";
-
-import { PropTypesOf } from "coral-framework/types";
-
-import Timestamp from "./Timestamp";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- children: "1995-12-17T03:24:00.000Z",
- };
- const renderer = createRenderer();
- renderer.render( );
- expect(renderer.getRenderOutput()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/Timestamp/Timestamp.tsx b/src/core/client/ui/components/Timestamp/Timestamp.tsx
deleted file mode 100644
index 92c0b969d..000000000
--- a/src/core/client/ui/components/Timestamp/Timestamp.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import cn from "classnames";
-import React, {
- EventHandler,
- FunctionComponent,
- MouseEvent,
- useCallback,
- useState,
-} from "react";
-
-import { AbsoluteTime, BaseButton, RelativeTime } from "coral-ui/components";
-
-import styles from "./Timestamp.css";
-
-export interface TimestampProps {
- className?: string;
- children: string;
- toggleAbsolute?: boolean;
- onToggleAbsolute?: (absolute: boolean) => void;
- onClick?: EventHandler;
-}
-
-const Timestamp: FunctionComponent = (props) => {
- const [showAbsolute, setShowAbsolute] = useState(false);
- const handleOnClick = useCallback(
- (event: MouseEvent) => {
- if (props.toggleAbsolute) {
- if (props.onToggleAbsolute) {
- props.onToggleAbsolute(!showAbsolute);
- }
- setShowAbsolute(!showAbsolute);
- }
- if (props.onClick) {
- return props.onClick(event);
- }
- },
- [showAbsolute, setShowAbsolute, props.onClick]
- );
- return (
-
- {showAbsolute ? (
-
- ) : (
-
- )}
-
- );
-};
-
-Timestamp.defaultProps = {
- toggleAbsolute: true,
-};
-
-export default Timestamp;
diff --git a/src/core/client/ui/components/Timestamp/__snapshots__/Timestamp.spec.tsx.snap b/src/core/client/ui/components/Timestamp/__snapshots__/Timestamp.spec.tsx.snap
deleted file mode 100644
index d317c931b..000000000
--- a/src/core/client/ui/components/Timestamp/__snapshots__/Timestamp.spec.tsx.snap
+++ /dev/null
@@ -1,13 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
-
-`;
diff --git a/src/core/client/ui/components/Timestamp/index.ts b/src/core/client/ui/components/Timestamp/index.ts
deleted file mode 100644
index 02586ccf3..000000000
--- a/src/core/client/ui/components/Timestamp/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./Timestamp";
diff --git a/src/core/client/ui/components/ToggleShow/README.mdx b/src/core/client/ui/components/ToggleShow/README.mdx
deleted file mode 100644
index 2a3bd02d5..000000000
--- a/src/core/client/ui/components/ToggleShow/README.mdx
+++ /dev/null
@@ -1,26 +0,0 @@
----
-name: ToggleShow
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import ToggleShow from './ToggleShow'
-import Button from '../Button'
-import HorizontalGutter from '../HorizontalGutter'
-
-# ToggleShow
-A render props component to manage visible state.
-
-## Basic usage
-
-
- {({ toggleShow, show }) => (
-
- {show && Hello World!
}
-
- Toggle Show
-
-
- )}
-
-
diff --git a/src/core/client/ui/components/ToggleShow/ToggleShow.spec.tsx b/src/core/client/ui/components/ToggleShow/ToggleShow.spec.tsx
deleted file mode 100644
index bdeb29df6..000000000
--- a/src/core/client/ui/components/ToggleShow/ToggleShow.spec.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import React from "react";
-import { create } from "react-test-renderer";
-
-import ToggleShow from "./ToggleShow";
-
-it("renders correctly", () => {
- const tree = create(
-
- {({ toggleShow, show }) => (
-
- {show &&
SHOW ME
}
-
Click me and I disappear
-
- )}
-
- ).toJSON();
-
- expect(tree).toMatchSnapshot();
-});
-
-it("should hide the div", () => {
- const renderer = create(
-
- {({ toggleShow, show }) => (
-
- {show &&
SHOW ME
}
-
Click me and I disappear
-
- )}
-
- );
-
- renderer.root.findByType("button").props.onClick();
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/ToggleShow/ToggleShow.tsx b/src/core/client/ui/components/ToggleShow/ToggleShow.tsx
deleted file mode 100644
index a319d28ab..000000000
--- a/src/core/client/ui/components/ToggleShow/ToggleShow.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { ReactNode } from "react";
-
-interface State {
- show: boolean;
-}
-
-interface Props {
- children: (props: RenderProps) => ReactNode;
-}
-
-interface RenderProps {
- toggleShow: () => void;
- show: boolean;
-}
-
-class ToggleShow extends React.Component {
- public state = {
- show: true,
- };
-
- public toggleShow = () => {
- this.setState((state) => ({ show: !state.show }));
- };
-
- public render() {
- return this.props.children({
- toggleShow: this.toggleShow,
- show: this.state.show,
- });
- }
-}
-
-export default ToggleShow;
diff --git a/src/core/client/ui/components/ToggleShow/__snapshots__/ToggleShow.spec.tsx.snap b/src/core/client/ui/components/ToggleShow/__snapshots__/ToggleShow.spec.tsx.snap
deleted file mode 100644
index b4754816e..000000000
--- a/src/core/client/ui/components/ToggleShow/__snapshots__/ToggleShow.spec.tsx.snap
+++ /dev/null
@@ -1,24 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
- SHOW ME
-
-
- Click me and I disappear
-
-
-`;
-
-exports[`should hide the div 1`] = `
-
-
- Click me and I disappear
-
-
-`;
diff --git a/src/core/client/ui/components/Tooltip/Tooltip.css b/src/core/client/ui/components/Tooltip/Tooltip.css
deleted file mode 100644
index b48b12e0e..000000000
--- a/src/core/client/ui/components/Tooltip/Tooltip.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.root {
- align-items: center;
- display: flex;
-}
-
-.tooltip {
- width: max-content;
- max-width: 220px;
-}
-
-.title {
- line-height: 1;
-}
diff --git a/src/core/client/ui/components/Tooltip/Tooltip.tsx b/src/core/client/ui/components/Tooltip/Tooltip.tsx
deleted file mode 100644
index 69c1dbe40..000000000
--- a/src/core/client/ui/components/Tooltip/Tooltip.tsx
+++ /dev/null
@@ -1,62 +0,0 @@
-import cn from "classnames";
-import React, { FunctionComponent } from "react";
-
-import { Box, ClickOutside, Popover, Typography } from "coral-ui/components";
-import { PropTypesOf } from "coral-ui/types";
-
-import styles from "./Tooltip.css";
-
-interface Props {
- id: string;
- className?: string;
- title: React.ReactNode;
- body: React.ReactNode;
- button: PropTypesOf["children"];
-}
-
-export const Tooltip: FunctionComponent = ({
- id,
- className,
- title,
- body,
- button,
-}) => {
- return (
- (
-
- {
- // Don't propagate click events when clicking inside of popover to
- // avoid accidentally activating other components.
- evt.stopPropagation();
- }}
- >
-
- {title}
-
-
-
- {body}
-
-
-
- )}
- placement={"bottom"}
- dark
- >
- {(props) => button(props)}
-
- );
-};
-
-export default Tooltip;
diff --git a/src/core/client/ui/components/Tooltip/TooltipButton.css b/src/core/client/ui/components/Tooltip/TooltipButton.css
deleted file mode 100644
index e2777894c..000000000
--- a/src/core/client/ui/components/Tooltip/TooltipButton.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.button {
- line-height: 0;
- color: var(--palette-grey-dark);
- padding: 6px;
-}
diff --git a/src/core/client/ui/components/Tooltip/TooltipButton.tsx b/src/core/client/ui/components/Tooltip/TooltipButton.tsx
deleted file mode 100644
index 965049d2b..000000000
--- a/src/core/client/ui/components/Tooltip/TooltipButton.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import cn from "classnames";
-import React, { ButtonHTMLAttributes, FunctionComponent, Ref } from "react";
-
-import { BaseButton, Icon } from "coral-ui/components";
-import { withForwardRef } from "coral-ui/hocs";
-import { PropTypesOf } from "coral-ui/types";
-
-import styles from "./TooltipButton.css";
-
-interface Props extends ButtonHTMLAttributes {
- active?: boolean;
- className?: string;
- toggleVisibility: () => void;
-
- /** Internal: Forwarded Ref */
- forwardRef?: Ref;
- "aria-label": string;
-}
-
-const TooltipButton: FunctionComponent = ({
- active,
- className,
- toggleVisibility,
- forwardRef,
- "aria-label": ariaLabel,
-}) => (
- {
- evt.stopPropagation();
- toggleVisibility();
- }}
- aria-label={ariaLabel}
- ref={forwardRef}
- >
- info
-
-);
-
-const enhanced = withForwardRef(TooltipButton);
-export type TooltipButtonProps = PropTypesOf;
-export default enhanced;
diff --git a/src/core/client/ui/components/Tooltip/index.ts b/src/core/client/ui/components/Tooltip/index.ts
deleted file mode 100644
index cb15bc14c..000000000
--- a/src/core/client/ui/components/Tooltip/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default, default as Tooltip } from "./Tooltip";
-export { default as TooltipButton } from "./TooltipButton";
diff --git a/src/core/client/ui/components/TrapFocus/README.mdx b/src/core/client/ui/components/TrapFocus/README.mdx
deleted file mode 100644
index 46df2907a..000000000
--- a/src/core/client/ui/components/TrapFocus/README.mdx
+++ /dev/null
@@ -1,27 +0,0 @@
----
-name: TrapFocus
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import TrapFocus from './TrapFocus'
-import Button from '../Button'
-
-# TrapFocus
-
-Traps focus inside component when using keyboard navigation for accessibility purposes.
-
-## Basic usage
-
-
-
-
- {({firstFocusableRef, lastFocusableRef}) =>
-
- Cancel
- Send
-
- }
-
-
-
diff --git a/src/core/client/ui/components/TrapFocus/TrapFocus.spec.tsx b/src/core/client/ui/components/TrapFocus/TrapFocus.spec.tsx
deleted file mode 100644
index c8c137c38..000000000
--- a/src/core/client/ui/components/TrapFocus/TrapFocus.spec.tsx
+++ /dev/null
@@ -1,94 +0,0 @@
-/* eslint-disable react/display-name */
-import { noop } from "lodash";
-import React from "react";
-import { create } from "react-test-renderer";
-import sinon from "sinon";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import TrapFocus from "./TrapFocus";
-
-const FakeFocusable: any = class FakeFocusable extends React.Component {
- public focus = sinon.spy();
- public render() {
- return null;
- }
-};
-
-const createNodeMock = () => ({
- focus: noop,
-});
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- children: (
- <>
- child1
- child2
- >
- ),
- };
- const renderer = create( , { createNodeMock });
- expect(renderer.toJSON()).toMatchSnapshot();
-});
-
-it("autofocus", () => {
- const autoFocus = sinon.stub();
- create( , {
- createNodeMock: (el) => ({
- focus: el.props.tabIndex === -1 ? autoFocus : noop,
- }),
- });
- expect(autoFocus.called).toBe(true);
-});
-
-it("return focus to last active element", () => {
- expect(document.activeElement).toBe(document.body);
- const bodyMock = sinon.mock(document.body);
- const testRenderer = create( , { createNodeMock });
- bodyMock.expects("focus");
- testRenderer.unmount();
- bodyMock.verify();
-});
-
-it("Change focus to `lastFocusable` when focus reaches beginning", () => {
- const props: PropTypesOf = {
- children: ({ firstFocusableRef, lastFocusableRef }) => (
- <>
-
- child1
- child2
-
- >
- ),
- };
- const renderer = create( , { createNodeMock });
- renderer.root.findAllByProps({ tabIndex: 0 })[0].props.onFocus();
- expect(
- renderer.root.findAllByType(FakeFocusable)[0].instance.focus.called
- ).toBe(false);
- expect(
- renderer.root.findAllByType(FakeFocusable)[1].instance.focus.called
- ).toBe(true);
-});
-
-it("Change focus to `firstFocusable` when focus reaches end", () => {
- const props: PropTypesOf = {
- children: ({ firstFocusableRef, lastFocusableRef }) => (
- <>
-
- child1
- child2
-
- >
- ),
- };
- const renderer = create( , { createNodeMock });
- renderer.root.findAllByProps({ tabIndex: 0 })[1].props.onFocus();
- expect(
- renderer.root.findAllByType(FakeFocusable)[0].instance.focus.called
- ).toBe(true);
- expect(
- renderer.root.findAllByType(FakeFocusable)[1].instance.focus.called
- ).toBe(false);
-});
diff --git a/src/core/client/ui/components/TrapFocus/TrapFocus.tsx b/src/core/client/ui/components/TrapFocus/TrapFocus.tsx
deleted file mode 100644
index e26142826..000000000
--- a/src/core/client/ui/components/TrapFocus/TrapFocus.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-/* eslint-disable jsx-a11y/no-noninteractive-tabindex */
-import React, { RefObject } from "react";
-
-interface RenderProps {
- firstFocusableRef: RefObject;
- lastFocusableRef: RefObject;
-}
-
-type RenderPropsCallback = (props: RenderProps) => React.ReactNode;
-
-export interface TrapFocusProps {
- children?: React.ReactNode | RenderPropsCallback;
-}
-
-function isRenderProp(
- children: TrapFocusProps["children"]
-): children is RenderPropsCallback {
- return typeof children === "function";
-}
-
-export default class TrapFocus extends React.Component {
- private fallbackRef = React.createRef();
- private firstFocusableRef = React.createRef();
- private lastFocusableRef = React.createRef();
- private previousActiveElement: any | null;
-
- // Trap keyboard focus inside the dropdown until a value has been chosen.
- private focusBegin = () =>
- (this.firstFocusableRef.current || this.fallbackRef.current).focus();
- private focusEnd = () =>
- (this.lastFocusableRef.current || this.fallbackRef.current).focus();
-
- public componentDidMount() {
- this.previousActiveElement = document.activeElement;
- this.fallbackRef.current.focus();
- }
-
- public componentWillUnmount() {
- if (this.previousActiveElement && this.previousActiveElement.focus) {
- this.previousActiveElement.focus();
- }
- }
-
- public render() {
- return (
- <>
-
-
- {isRenderProp(this.props.children)
- ? this.props.children({
- firstFocusableRef: this.firstFocusableRef,
- lastFocusableRef: this.lastFocusableRef,
- })
- : this.props.children}
-
- >
- );
- }
-}
diff --git a/src/core/client/ui/components/TrapFocus/__snapshots__/TrapFocus.spec.tsx.snap b/src/core/client/ui/components/TrapFocus/__snapshots__/TrapFocus.spec.tsx.snap
deleted file mode 100644
index 3888ed381..000000000
--- a/src/core/client/ui/components/TrapFocus/__snapshots__/TrapFocus.spec.tsx.snap
+++ /dev/null
@@ -1,23 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-Array [
-
,
-
,
-
- child1
- ,
-
- child2
- ,
-
,
-]
-`;
diff --git a/src/core/client/ui/components/TrapFocus/index.ts b/src/core/client/ui/components/TrapFocus/index.ts
deleted file mode 100644
index 2bb55f23d..000000000
--- a/src/core/client/ui/components/TrapFocus/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default, TrapFocusProps } from "./TrapFocus";
diff --git a/src/core/client/ui/components/Typography/Typography.css b/src/core/client/ui/components/Typography/Typography.css
deleted file mode 100644
index d246d9f46..000000000
--- a/src/core/client/ui/components/Typography/Typography.css
+++ /dev/null
@@ -1,153 +0,0 @@
-.root {
- margin: 0;
- padding: 0;
-}
-
-.heading1 {
- composes: heading1 from "~coral-ui/shared/typography.css";
-}
-
-.heading2 {
- composes: heading2 from "~coral-ui/shared/typography.css";
-}
-
-.heading3 {
- composes: heading3 from "~coral-ui/shared/typography.css";
-}
-
-.heading4 {
- composes: heading4 from "~coral-ui/shared/typography.css";
-}
-
-.heading5 {
- composes: heading5 from "~coral-ui/shared/typography.css";
-}
-
-.header1 {
- composes: header1 from "~coral-ui/shared/typography.css";
-}
-
-.header2 {
- composes: header2 from "~coral-ui/shared/typography.css";
-}
-
-.header3 {
- composes: header3 from "~coral-ui/shared/typography.css";
-}
-
-.header4 {
- composes: header4 from "~coral-ui/shared/typography.css";
-}
-
-.header5 {
- composes: header5 from "~coral-ui/shared/typography.css";
-}
-
-.bodyCopy {
- composes: bodyCopy from "~coral-ui/shared/typography.css";
-}
-
-.bodyCopyBold {
- composes: bodyCopy from "~coral-ui/shared/typography.css";
- font-weight: var(--font-weight-medium);
-}
-
-.bodyShort {
- composes: bodyShort from "~coral-ui/shared/typography.css";
-}
-
-.fieldDescription {
- composes: fieldDescription from "~coral-ui/shared/typography.css";
-}
-
-.button {
- composes: button from "~coral-ui/shared/typography.css";
-}
-
-.buttonLarge {
- composes: buttonLarge from "~coral-ui/shared/typography.css";
-}
-
-.detail {
- composes: detail from "~coral-ui/shared/typography.css";
-}
-
-.timestamp {
- composes: timestamp from "~coral-ui/shared/typography.css";
-}
-
-.alignLeft {
- text-align: left;
-}
-
-.alignCenter {
- text-align: center;
-}
-
-.alignRight {
- text-align: right;
-}
-
-.alignJustify {
- text-align: justify;
-}
-
-.noWrap {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.gutterBottom {
- margin-bottom: 0.35em;
-}
-
-.paragraph {
- margin-bottom: var(--mini-unit);
-}
-
-.colorPrimary {
- color: var(--palette-primary-main);
-}
-
-.colorTextPrimary {
- color: var(--palette-text-primary);
-}
-
-.colorTextSecondary {
- color: var(--palette-text-secondary);
-}
-
-.colorTextDark {
- color: var(--palette-text-dark);
-}
-
-.colorTextLight {
- color: var(--palette-text-light);
-}
-
-.colorError {
- color: var(--palette-error-main);
-}
-
-.colorErrorDark {
- color: var(--palette-error-dark);
-}
-
-.colorWarning {
- color: var(--palette-warning-main);
-}
-
-.colorSuccess {
- color: var(--palette-success-darkest);
-}
-
-.inputLabel {
- composes: inputLabel from "~coral-ui/shared/typography.css";
-}
-
-/* V2 Typography */
-
-.bodyCommentV2 {
- composes: bodyCommentV2 from "~coral-ui/shared/typography.css";
-}
diff --git a/src/core/client/ui/components/UIContext/UIContext.ts b/src/core/client/ui/components/UIContext/UIContext.ts
deleted file mode 100644
index 71faeeaa1..000000000
--- a/src/core/client/ui/components/UIContext/UIContext.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from "react";
-import { MediaQueryMatchers } from "react-responsive";
-import { Formatter } from "react-timeago";
-
-import { ClickFarAwayRegister } from "../ClickOutside";
-
-export interface UIContextProps {
- /** Allows to integrate translated strings into `RelativeTime` Component */
- timeagoFormatter?: Formatter | null;
- /** Allows testing `MatchMedia` by setting media query values */
- mediaQueryValues?: Partial;
- /**
- * A way to listen for clicks that are e.g. outside of the
- * current frame for `ClickOutside`
- */
- registerClickFarAway?: ClickFarAwayRegister;
-
- locales?: string[];
-}
-
-const UIContext = React.createContext({} as any);
-
-export const useUIContext = () => React.useContext(UIContext);
-
-export default UIContext;
diff --git a/src/core/client/ui/components/UIContext/index.ts b/src/core/client/ui/components/UIContext/index.ts
deleted file mode 100644
index 22c2050ab..000000000
--- a/src/core/client/ui/components/UIContext/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default, UIContextProps, useUIContext } from "./UIContext";
diff --git a/src/core/client/ui/components/ValidationMessage/README.mdx b/src/core/client/ui/components/ValidationMessage/README.mdx
deleted file mode 100644
index 446694122..000000000
--- a/src/core/client/ui/components/ValidationMessage/README.mdx
+++ /dev/null
@@ -1,20 +0,0 @@
----
-name: ValidationMessage
-menu: UI Kit v1
----
-
-import { Playground } from 'docz'
-import ValidationMessage from './ValidationMessage'
-import HorizontalGutter from '../HorizontalGutter'
-
-# ValidationMessage
-
-## Basic Use
-
-
- Invalid characters. Try again
- Account with this email address already exists. Try another email.
-
-
-
-
diff --git a/src/core/client/ui/components/ValidationMessage/ValidationMessage.spec.tsx b/src/core/client/ui/components/ValidationMessage/ValidationMessage.spec.tsx
deleted file mode 100644
index aa212591c..000000000
--- a/src/core/client/ui/components/ValidationMessage/ValidationMessage.spec.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from "react";
-import TestRenderer from "react-test-renderer";
-
-import { PropTypesOf } from "coral-ui/types";
-
-import ValidationMessage from "./ValidationMessage";
-
-it("renders correctly", () => {
- const props: PropTypesOf = {
- className: "custom",
- children: "Hello World",
- };
- const renderer = TestRenderer.create( );
- expect(renderer.toJSON()).toMatchSnapshot();
-});
diff --git a/src/core/client/ui/components/ValidationMessage/ValidationMessage.tsx b/src/core/client/ui/components/ValidationMessage/ValidationMessage.tsx
deleted file mode 100644
index 70cc894d1..000000000
--- a/src/core/client/ui/components/ValidationMessage/ValidationMessage.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import React, { FunctionComponent, ReactNode } from "react";
-
-import Message from "../Message";
-import MessageIcon from "../Message/MessageIcon";
-
-export interface ValidationMessageProps {
- /**
- * The content of the component.
- */
- children: ReactNode;
- /**
- * Convenient prop to override the root styling.
- */
- className?: string;
- /**
- * If set renders a full width message
- */
- fullWidth?: boolean;
-}
-
-const ValidationMessage: FunctionComponent = (
- props
-) => {
- const { className, fullWidth, children, ...rest } = props;
-
- return (
-
- warning
- {children}
-
- );
-};
-
-ValidationMessage.defaultProps = {
- fullWidth: false,
-};
-
-export default ValidationMessage;
diff --git a/src/core/client/ui/components/ValidationMessage/__snapshots__/ValidationMessage.spec.tsx.snap b/src/core/client/ui/components/ValidationMessage/__snapshots__/ValidationMessage.spec.tsx.snap
deleted file mode 100644
index 664fcfcc8..000000000
--- a/src/core/client/ui/components/ValidationMessage/__snapshots__/ValidationMessage.spec.tsx.snap
+++ /dev/null
@@ -1,15 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders correctly 1`] = `
-
-
- warning
-
- Hello World
-
-`;
diff --git a/src/core/client/ui/components/ValidationMessage/index.ts b/src/core/client/ui/components/ValidationMessage/index.ts
deleted file mode 100644
index 6fb76fcbc..000000000
--- a/src/core/client/ui/components/ValidationMessage/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default, ValidationMessageProps } from "./ValidationMessage";
diff --git a/src/core/client/ui/components/index.ts b/src/core/client/ui/components/index.ts
deleted file mode 100644
index 09345e163..000000000
--- a/src/core/client/ui/components/index.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-export { default as AbsoluteTime } from "./AbsoluteTime";
-export { default as BaseButton } from "./BaseButton";
-export { default as Button } from "./Button";
-export { default as Backdrop } from "./Backdrop";
-export { default as ButtonIcon } from "./Button/ButtonIcon";
-export { default as Typography } from "./Typography";
-export { default as Popover } from "./Popover";
-export { default as RelativeTime } from "./RelativeTime";
-export {
- default as UIContext,
- UIContextProps,
- useUIContext,
-} from "./UIContext";
-export { default as Flex } from "./Flex";
-export { default as MatchMedia } from "./MatchMedia";
-export { default as TrapFocus } from "./TrapFocus";
-export { default as ValidationMessage } from "./ValidationMessage";
-export { default as InputLabel } from "./InputLabel";
-export { default as TextField } from "./TextField";
-export { default as CallOut } from "./CallOut";
-export { default as ClickOutside } from "./ClickOutside";
-export { default as Popup } from "./Popup";
-export { default as FormField } from "./FormField";
-export { default as InputDescription } from "./InputDescription";
-export { default as Spinner } from "./Spinner";
-export { default as FieldSet } from "./FieldSet";
-export { default as HorizontalGutter } from "./HorizontalGutter";
-export { default as Icon } from "./Icon";
-export { default as AriaInfo } from "./AriaInfo";
-export { default as Message, MessageIcon } from "./Message";
-export { Tab, TabBar, TabContent, TabPane } from "./Tabs";
-export { StepBar, Step } from "./Steps";
-export { SelectField, Option, OptGroup } from "./SelectField";
-export { default as TextLink } from "./TextLink";
-export { default as Timestamp } from "./Timestamp";
-export { default as CheckBox } from "./CheckBox";
-export { default as RadioButton } from "./RadioButton";
-export { default as Delay } from "./Delay";
-export { default as Box } from "./Box";
-export { default as Tooltip, TooltipButton } from "./Tooltip";
-export {
- AppBar,
- Begin as AppBarBegin,
- End as AppBarEnd,
- Divider as AppBarDivider,
- Navigation as AppBarNavigation,
- NavigationItem as AppBarNavigationItem,
-} from "./AppBar";
-export { CheckIcon } from "./Check";
-export {
- SubBar,
- Navigation as SubBarNavigation,
- NavigationItem as SubBarNavigationItem,
-} from "./SubBar";
-export { BrandName, BrandMark, LogoHorizontal } from "./Brand";
-export { default as Counter } from "./Counter";
-export { Marker, Count as MarkerCount } from "./Marker";
-export { default as Card, CardCloseButton } from "./Card";
-export { default as PasswordField } from "./PasswordField";
-export { TileSelector, Option as TileOption } from "./TileSelector";
-export {
- Dropdown,
- Divider as DropdownDivider,
- Button as DropdownButton,
-} from "./Dropdown";
-export { Table, TableBody, TableHead, TableRow, TableCell } from "./Table";
-export { default as Tag } from "./Tag";
-export { default as Modal } from "./Modal";
diff --git a/src/core/client/ui/components/v2/AppBar/AppBar.css b/src/core/client/ui/components/v2/AppBar/AppBar.css
index 300b9e089..a01949f04 100644
--- a/src/core/client/ui/components/v2/AppBar/AppBar.css
+++ b/src/core/client/ui/components/v2/AppBar/AppBar.css
@@ -1,8 +1,8 @@
-$mainNavBackgroundDefaultColor: var(--v2-colors-pure-white);
+$mainNavBackgroundDefaultColor: $colors-pure-white;
.root {
background-color: $mainNavBackgroundDefaultColor;
- border-bottom: 1px solid var(--v2-palette-divider);
+ border-bottom: 1px solid var(--palette-divider);
}
.container {
diff --git a/src/core/client/ui/components/v2/AppBar/AppBar.tsx b/src/core/client/ui/components/v2/AppBar/AppBar.tsx
index 2fa21fbc1..7fae8705b 100644
--- a/src/core/client/ui/components/v2/AppBar/AppBar.tsx
+++ b/src/core/client/ui/components/v2/AppBar/AppBar.tsx
@@ -1,7 +1,7 @@
import cn from "classnames";
import React, { FunctionComponent } from "react";
-import { Flex } from "coral-ui/components";
+import { Flex } from "coral-ui/components/v2";
import { withStyles } from "coral-ui/hocs";
import styles from "./AppBar.css";
diff --git a/src/core/client/ui/components/v2/AppBar/Begin.tsx b/src/core/client/ui/components/v2/AppBar/Begin.tsx
index 9f66f2dfc..3f00c1eca 100644
--- a/src/core/client/ui/components/v2/AppBar/Begin.tsx
+++ b/src/core/client/ui/components/v2/AppBar/Begin.tsx
@@ -1,7 +1,7 @@
import cn from "classnames";
import React, { FunctionComponent } from "react";
-import { Flex } from "coral-ui/components";
+import { Flex } from "coral-ui/components/v2";
import { withStyles } from "coral-ui/hocs";
import { PropTypesOf } from "coral-ui/types";
diff --git a/src/core/client/ui/components/v2/AppBar/Divider.css b/src/core/client/ui/components/v2/AppBar/Divider.css
index e65a81acf..07df553f4 100644
--- a/src/core/client/ui/components/v2/AppBar/Divider.css
+++ b/src/core/client/ui/components/v2/AppBar/Divider.css
@@ -1,4 +1,4 @@
-$mainNavDividerColor: var(--v2-colors-grey-400);
+$mainNavDividerColor: var(--palette-grey-400);
.root {
height: 32px;
diff --git a/src/core/client/ui/components/v2/AppBar/End.tsx b/src/core/client/ui/components/v2/AppBar/End.tsx
index 828019543..e7069375d 100644
--- a/src/core/client/ui/components/v2/AppBar/End.tsx
+++ b/src/core/client/ui/components/v2/AppBar/End.tsx
@@ -1,7 +1,7 @@
import cn from "classnames";
import React, { FunctionComponent } from "react";
-import { Flex } from "coral-ui/components";
+import { Flex } from "coral-ui/components/v2";
import { withStyles } from "coral-ui/hocs";
import { PropTypesOf } from "coral-ui/types";
diff --git a/src/core/client/ui/components/v2/AppBar/NavigationItem.css b/src/core/client/ui/components/v2/AppBar/NavigationItem.css
index c517e483c..ca79336a1 100644
--- a/src/core/client/ui/components/v2/AppBar/NavigationItem.css
+++ b/src/core/client/ui/components/v2/AppBar/NavigationItem.css
@@ -1,17 +1,17 @@
-$main-nav-text: var(--v2-colors-mono-100);
-$main-nav-background: var(--v2-colors-pure-white);
-$main-nav-hover-background: var(--v2-colors-coral-200);
-$main-nav-active-background: var(--v2-colors-coral-500);
-$main-nav-active-text: var(--v2-colors-pure-white);
-$main-nav-hover-text: var(--v2-colors-mono-500);
+$main-nav-text: var(--palette-text-100);
+$main-nav-background: $colors-pure-white;
+$main-nav-hover-background: $colors-coral-200;
+$main-nav-active-background: $colors-coral-500;
+$main-nav-active-text: $colors-pure-white;
+$main-nav-hover-text: var(--palette-text-500);
.root {
}
.anchor {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-3);
text-transform: uppercase;
color: $main-nav-text;
@@ -29,9 +29,9 @@ $main-nav-hover-text: var(--v2-colors-mono-500);
}
.active {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-3);
text-transform: uppercase;
background-color: $main-nav-active-background;
diff --git a/src/core/client/ui/components/v2/AppNotification/AppNotification.css b/src/core/client/ui/components/v2/AppNotification/AppNotification.css
index 3da3fe913..808132a24 100644
--- a/src/core/client/ui/components/v2/AppNotification/AppNotification.css
+++ b/src/core/client/ui/components/v2/AppNotification/AppNotification.css
@@ -1,8 +1,8 @@
.root {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- line-height: var(--v2-line-height-min);
- padding: var(--v2-spacing-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ line-height: var(--line-height-min);
+ padding: var(--spacing-2);
}
.inner {
@@ -11,5 +11,5 @@
}
.success {
- background-color: var(--v2-colors-green-300);
+ background-color: var(--palette-success-300);
}
diff --git a/src/core/client/ui/components/v2/Box/Box.css b/src/core/client/ui/components/v2/Box/Box.css
index 647068f01..6fb665fbe 100644
--- a/src/core/client/ui/components/v2/Box/Box.css
+++ b/src/core/client/ui/components/v2/Box/Box.css
@@ -4,237 +4,237 @@
/* Margin */
.ml-1 {
- margin-left: var(--v2-spacing-1) !important;
+ margin-left: var(--spacing-1) !important;
}
.mr-1 {
- margin-right: var(--v2-spacing-1) !important;
+ margin-right: var(--spacing-1) !important;
}
.mt-1 {
- margin-top: var(--v2-spacing-1) !important;
+ margin-top: var(--spacing-1) !important;
}
.mb-1 {
- margin-bottom: var(--v2-spacing-1) !important;
+ margin-bottom: var(--spacing-1) !important;
}
.ml-2 {
- margin-left: var(--v2-spacing-2) !important;
+ margin-left: var(--spacing-2) !important;
}
.mr-2 {
- margin-right: var(--v2-spacing-2) !important;
+ margin-right: var(--spacing-2) !important;
}
.mt-2 {
- margin-top: var(--v2-spacing-2) !important;
+ margin-top: var(--spacing-2) !important;
}
.mb-2 {
- margin-bottom: var(--v2-spacing-2) !important;
+ margin-bottom: var(--spacing-2) !important;
}
.ml-3 {
- margin-left: var(--v2-spacing-3) !important;
+ margin-left: var(--spacing-3) !important;
}
.mr-3 {
- margin-right: var(--v2-spacing-3) !important;
+ margin-right: var(--spacing-3) !important;
}
.mt-3 {
- margin-top: var(--v2-spacing-3) !important;
+ margin-top: var(--spacing-3) !important;
}
.mb-3 {
- margin-bottom: var(--v2-spacing-3) !important;
+ margin-bottom: var(--spacing-3) !important;
}
.ml-4 {
- margin-left: var(--v2-spacing-4) !important;
+ margin-left: var(--spacing-4) !important;
}
.mr-4 {
- margin-right: var(--v2-spacing-4) !important;
+ margin-right: var(--spacing-4) !important;
}
.mt-4 {
- margin-top: var(--v2-spacing-4) !important;
+ margin-top: var(--spacing-4) !important;
}
.mb-4 {
- margin-bottom: var(--v2-spacing-4) !important;
+ margin-bottom: var(--spacing-4) !important;
}
.ml-5 {
- margin-left: var(--v2-spacing-5) !important;
+ margin-left: var(--spacing-5) !important;
}
.mr-5 {
- margin-right: var(--v2-spacing-5) !important;
+ margin-right: var(--spacing-5) !important;
}
.mt-5 {
- margin-top: var(--v2-spacing-5) !important;
+ margin-top: var(--spacing-5) !important;
}
.mb-5 {
- margin-bottom: var(--v2-spacing-5) !important;
+ margin-bottom: var(--spacing-5) !important;
}
.ml-6 {
- margin-left: var(--v2-spacing-6) !important;
+ margin-left: var(--spacing-6) !important;
}
.mr-6 {
- margin-right: var(--v2-spacing-6) !important;
+ margin-right: var(--spacing-6) !important;
}
.mt-6 {
- margin-top: var(--v2-spacing-6) !important;
+ margin-top: var(--spacing-6) !important;
}
.mb-6 {
- margin-bottom: var(--v2-spacing-6) !important;
+ margin-bottom: var(--spacing-6) !important;
}
.ml-7 {
- margin-left: var(--v2-spacing-7) !important;
+ margin-left: var(--spacing-7) !important;
}
.mr-7 {
- margin-right: var(--v2-spacing-7) !important;
+ margin-right: var(--spacing-7) !important;
}
.mt-7 {
- margin-top: var(--v2-spacing-7) !important;
+ margin-top: var(--spacing-7) !important;
}
.mb-7 {
- margin-bottom: var(--v2-spacing-7) !important;
+ margin-bottom: var(--spacing-7) !important;
}
.ml-8 {
- margin-left: var(--v2-spacing-8) !important;
+ margin-left: var(--spacing-8) !important;
}
.mr-8 {
- margin-right: var(--v2-spacing-8) !important;
+ margin-right: var(--spacing-8) !important;
}
.mt-8 {
- margin-top: var(--v2-spacing-8) !important;
+ margin-top: var(--spacing-8) !important;
}
.mb-8 {
- margin-bottom: var(--v2-spacing-8) !important;
+ margin-bottom: var(--spacing-8) !important;
}
.ml-9 {
- margin-left: var(--v2-spacing-9) !important;
+ margin-left: var(--spacing-9) !important;
}
.mr-9 {
- margin-right: var(--v2-spacing-9) !important;
+ margin-right: var(--spacing-9) !important;
}
.mt-9 {
- margin-top: var(--v2-spacing-9) !important;
+ margin-top: var(--spacing-9) !important;
}
.mb-9 {
- margin-bottom: var(--v2-spacing-9) !important;
+ margin-bottom: var(--spacing-9) !important;
}
/* Padding */
.pl-1 {
- padding-left: var(--v2-spacing-1) !important;
+ padding-left: var(--spacing-1) !important;
}
.pr-1 {
- padding-right: var(--v2-spacing-1) !important;
+ padding-right: var(--spacing-1) !important;
}
.pt-1 {
- padding-top: var(--v2-spacing-1) !important;
+ padding-top: var(--spacing-1) !important;
}
.pb-1 {
- padding-bottom: var(--v2-spacing-1) !important;
+ padding-bottom: var(--spacing-1) !important;
}
.pl-2 {
- padding-left: var(--v2-spacing-2) !important;
+ padding-left: var(--spacing-2) !important;
}
.pr-2 {
- padding-right: var(--v2-spacing-2) !important;
+ padding-right: var(--spacing-2) !important;
}
.pt-2 {
- padding-top: var(--v2-spacing-2) !important;
+ padding-top: var(--spacing-2) !important;
}
.pb-2 {
- padding-bottom: var(--v2-spacing-2) !important;
+ padding-bottom: var(--spacing-2) !important;
}
.pl-3 {
- padding-left: var(--v2-spacing-3) !important;
+ padding-left: var(--spacing-3) !important;
}
.pr-3 {
- padding-right: var(--v2-spacing-3) !important;
+ padding-right: var(--spacing-3) !important;
}
.pt-3 {
- padding-top: var(--v2-spacing-3) !important;
+ padding-top: var(--spacing-3) !important;
}
.pb-3 {
- padding-bottom: var(--v2-spacing-3) !important;
+ padding-bottom: var(--spacing-3) !important;
}
.pl-4 {
- padding-left: var(--v2-spacing-4) !important;
+ padding-left: var(--spacing-4) !important;
}
.pr-4 {
- padding-right: var(--v2-spacing-4) !important;
+ padding-right: var(--spacing-4) !important;
}
.pt-4 {
- padding-top: var(--v2-spacing-4) !important;
+ padding-top: var(--spacing-4) !important;
}
.pb-4 {
- padding-bottom: var(--v2-spacing-4) !important;
+ padding-bottom: var(--spacing-4) !important;
}
.pl-5 {
- padding-left: var(--v2-spacing-5) !important;
+ padding-left: var(--spacing-5) !important;
}
.pr-5 {
- padding-right: var(--v2-spacing-5) !important;
+ padding-right: var(--spacing-5) !important;
}
.pt-5 {
- padding-top: var(--v2-spacing-5) !important;
+ padding-top: var(--spacing-5) !important;
}
.pb-5 {
- padding-bottom: var(--v2-spacing-5) !important;
+ padding-bottom: var(--spacing-5) !important;
}
.pl-6 {
- padding-left: var(--v2-spacing-6) !important;
+ padding-left: var(--spacing-6) !important;
}
.pr-6 {
- padding-right: var(--v2-spacing-6) !important;
+ padding-right: var(--spacing-6) !important;
}
.pt-6 {
- padding-top: var(--v2-spacing-6) !important;
+ padding-top: var(--spacing-6) !important;
}
.pb-6 {
- padding-bottom: var(--v2-spacing-6) !important;
+ padding-bottom: var(--spacing-6) !important;
}
.pl-7 {
- padding-left: var(--v2-spacing-7) !important;
+ padding-left: var(--spacing-7) !important;
}
.pr-7 {
- padding-right: var(--v2-spacing-7) !important;
+ padding-right: var(--spacing-7) !important;
}
.pt-7 {
- padding-top: var(--v2-spacing-7) !important;
+ padding-top: var(--spacing-7) !important;
}
.pb-7 {
- padding-bottom: var(--v2-spacing-7) !important;
+ padding-bottom: var(--spacing-7) !important;
}
.pl-8 {
- padding-left: var(--v2-spacing-8) !important;
+ padding-left: var(--spacing-8) !important;
}
.pr-8 {
- padding-right: var(--v2-spacing-8) !important;
+ padding-right: var(--spacing-8) !important;
}
.pt-8 {
- padding-top: var(--v2-spacing-8) !important;
+ padding-top: var(--spacing-8) !important;
}
.pb-8 {
- padding-bottom: var(--v2-spacing-8) !important;
+ padding-bottom: var(--spacing-8) !important;
}
.pl-9 {
- padding-left: var(--v2-spacing-9) !important;
+ padding-left: var(--spacing-9) !important;
}
.pr-9 {
- padding-right: var(--v2-spacing-9) !important;
+ padding-right: var(--spacing-9) !important;
}
.pt-9 {
- padding-top: var(--v2-spacing-9) !important;
+ padding-top: var(--spacing-9) !important;
}
.pb-9 {
- padding-bottom: var(--v2-spacing-9) !important;
+ padding-bottom: var(--spacing-9) !important;
}
diff --git a/src/core/client/ui/components/v2/Box/Box.tsx b/src/core/client/ui/components/v2/Box/Box.tsx
index 35e5c29f2..0adc408d8 100644
--- a/src/core/client/ui/components/v2/Box/Box.tsx
+++ b/src/core/client/ui/components/v2/Box/Box.tsx
@@ -7,7 +7,7 @@ import React, {
} from "react";
import { withForwardRef, withStyles } from "coral-ui/hocs";
-import { Spacing } from "coral-ui/theme/variables";
+import { Spacing } from "coral-ui/theme/sharedVariables";
import styles from "./Box.css";
diff --git a/src/core/client/ui/components/v2/Brand/BrandName.css b/src/core/client/ui/components/v2/Brand/BrandName.css
index ae2712900..17865046a 100644
--- a/src/core/client/ui/components/v2/Brand/BrandName.css
+++ b/src/core/client/ui/components/v2/Brand/BrandName.css
@@ -2,9 +2,9 @@
margin: 0;
- font-weight: var(--v2-font-weight-secondary-bold);
- font-family: var(--v2-font-family-secondary);
- color: var(--v2-colors-coral-500);
+ font-weight: var(--font-weight-secondary-bold);
+ font-family: var(--font-family-secondary);
+ color: $colors-coral-500;
font-size: 1.15rem;
line-height: 1.15rem;
diff --git a/src/core/client/ui/components/v2/Button/Button.css b/src/core/client/ui/components/v2/Button/Button.css
index 884f8876e..5d80d2ec4 100644
--- a/src/core/client/ui/components/v2/Button/Button.css
+++ b/src/core/client/ui/components/v2/Button/Button.css
@@ -1,126 +1,126 @@
/* Design tokens */
/* flat button */
-$button-flat-regular-foreground: var(--v2-colors-teal-600);
-$button-flat-mono-foreground: var(--v2-colors-grey-500);
-$button-flat-alert-foreground: var(--v2-colors-red-500);
-$button-flat-alt-foreground: var(--v2-colors-green-500);
-$button-flat-dark-foreground: var(--v2-colors-blue-500);
+$button-flat-regular-foreground: $colors-teal-600;
+$button-flat-mono-foreground: var(--palette-grey-500);
+$button-flat-alert-foreground: var(--palette-error-500);
+$button-flat-alt-foreground: var(--palette-success-500);
+$button-flat-dark-foreground: $colors-teal-900;
-$button-flat-background: var(--v2-colors-pure-white);
+$button-flat-background: inherit;
-$button-flat-regular-background-hover: var(--v2-colors-teal-100);
-$button-flat-mono-background-hover: var(--v2-colors-grey-200);
-$button-flat-alert-background-hover: var(--v2-colors-red-100);
-$button-flat-alt-background-hover: var(--v2-colors-green-100);
-$button-flat-dark-background-hover: var(--v2-colors-blue-100);
+$button-flat-regular-background-hover: $colors-teal-100;
+$button-flat-mono-background-hover: var(--palette-grey-200);
+$button-flat-alert-background-hover: var(--palette-error-100);
+$button-flat-alt-background-hover: var(--palette-success-100);
+$button-flat-dark-background-hover: $colors-teal-100;
-$button-flat-regular-background-active: var(--v2-colors-teal-200);
-$button-flat-mono-background-active: var(--v2-colors-grey-300);
-$button-flat-alert-background-active: var(--v2-colors-red-200);
-$button-flat-alt-background-active: var(--v2-colors-green-200);
-$button-flat-dark-background-active: var(--v2-colors-blue-200);
+$button-flat-regular-background-active: $colors-teal-200;
+$button-flat-mono-background-active: var(--palette-grey-300);
+$button-flat-alert-background-active: var(--palette-error-200);
+$button-flat-alt-background-active: var(--palette-success-200);
+$button-flat-dark-background-active: $colors-teal-200;
-$button-flat-foreground-disabled: var(--v2-colors-grey-400);
+$button-flat-foreground-disabled: var(--palette-grey-400);
/* regular button */
-$button-regular-foreground: var(--v2-colors-pure-white);
+$button-regular-foreground: var(--palette-text-000);
-$button-regular-regular-background: var(--v2-colors-teal-600);
-$button-regular-mono-background: var(--v2-colors-grey-500);
-$button-regular-alert-background: var(--v2-colors-red-500);
-$button-regular-alt-background: var(--v2-colors-green-500);
-$button-regular-dark-background: var(--v2-colors-blue-500);
-$button-regular-stream-background: var(--v2-colors-stream-blue-500);
+$button-regular-regular-background: $colors-teal-600;
+$button-regular-mono-background: var(--palette-grey-500);
+$button-regular-alert-background: var(--palette-error-500);
+$button-regular-alt-background: var(--palette-success-500);
+$button-regular-dark-background: $colors-teal-900;
+$button-regular-stream-background: var(--palette-primary-500);
-$button-regular-regular-background-hover: var(--v2-colors-teal-700);
-$button-regular-mono-background-hover: var(--v2-colors-grey-600);
-$button-regular-alert-background-hover: var(--v2-colors-red-600);
-$button-regular-alt-background-hover: var(--v2-colors-green-600);
-$button-regular-dark-background-hover: var(--v2-colors-blue-600);
-$button-regular-stream-background-hover: var(--v2-colors-stream-blue-600);
+$button-regular-regular-background-hover: $colors-teal-700;
+$button-regular-mono-background-hover: var(--palette-grey-600);
+$button-regular-alert-background-hover: var(--palette-error-600);
+$button-regular-alt-background-hover: var(--palette-success-600);
+$button-regular-dark-background-hover: $colors-teal-800;
+$button-regular-stream-background-hover: var(--palette-primary-600);
-$button-regular-regular-background-active: var(--v2-colors-teal-800);
-$button-regular-mono-background-active: var(--v2-colors-grey-700);
-$button-regular-alert-background-active: var(--v2-colors-red-700);
-$button-regular-alt-background-active: var(--v2-colors-green-700);
-$button-regular-dark-background-active: var(--v2-colors-blue-700);
-$button-regular-stream-background-active: var(--v2-colors-stream-blue-700);
+$button-regular-regular-background-active: $colors-teal-800;
+$button-regular-mono-background-active: var(--palette-grey-700);
+$button-regular-alert-background-active: var(--palette-error-700);
+$button-regular-alt-background-active: var(--palette-success-700);
+$button-regular-dark-background-active: $colors-teal-700;
+$button-regular-stream-background-active: var(--palette-primary-700);
-$button-regular-background-disabled: var(--v2-colors-grey-300);
-$button-regular-stream-background-disabled: var(--v2-colors-stream-blue-200);
+$button-regular-background-disabled: var(--palette-grey-300);
+$button-regular-stream-background-disabled: var(--palette-primary-200);
/* outline button */
-$button-outline-background: var(--v2-colors-pure-white);
-$button-outline-background-disabled: var(--v2-colors-grey-300);
-$button-outline-foreground-disabled: var(--v2-colors-pure-white);
-$button-outline-foreground-hover: var(--v2-colors-pure-white);
-$button-outline-foreground-active: var(--v2-colors-pure-white);
+$button-outline-background: inherit;
+$button-outline-background-disabled: var(--palette-grey-300);
+$button-outline-foreground-disabled: var(--palette-text-000);
+$button-outline-foreground-hover: var(--palette-text-000);
+$button-outline-foreground-active: var(--palette-text-000);
-$button-outline-regular-foreground: var(--v2-colors-teal-600);
-$button-outline-mono-foreground: var(--v2-colors-grey-500);
-$button-outline-alert-foreground: var(--v2-colors-red-500);
-$button-outline-alt-foreground: var(--v2-colors-green-500);
-$button-outline-dark-foreground: var(--v2-colors-blue-500);
-$button-outline-stream-foreground: var(--v2-colors-stream-blue-500);
+$button-outline-regular-foreground: $colors-teal-600;
+$button-outline-mono-foreground: var(--palette-grey-500);
+$button-outline-alert-foreground: var(--palette-error-500);
+$button-outline-alt-foreground: var(--palette-success-500);
+$button-outline-dark-foreground: $colors-teal-900;
+$button-outline-stream-foreground: var(--palette-primary-500);
-$button-outline-regular-border: var(--v2-colors-teal-600);
-$button-outline-mono-border: var(--v2-colors-grey-500);
-$button-outline-alert-border: var(--v2-colors-red-500);
-$button-outline-alt-border: var(--v2-colors-green-500);
-$button-outline-dark-border: var(--v2-colors-blue-500);
-$button-outline-stream-border: var(--v2-colors-stream-blue-500);
+$button-outline-regular-border: $colors-teal-600;
+$button-outline-mono-border: var(--palette-grey-500);
+$button-outline-alert-border: var(--palette-error-500);
+$button-outline-alt-border: var(--palette-success-500);
+$button-outline-dark-border: $colors-teal-900;
+$button-outline-stream-border: var(--palette-primary-500);
-$button-outline-regular-background-hover: var(--v2-colors-teal-600);
-$button-outline-mono-background-hover: var(--v2-colors-grey-500);
-$button-outline-alert-background-hover: var(--v2-colors-red-500);
-$button-outline-alt-background-hover: var(--v2-colors-green-500);
-$button-outline-dark-background-hover: var(--v2-colors-blue-500);
-$button-outline-stream-background-hover: var(--v2-colors-stream-blue-500);
+$button-outline-regular-background-hover: $colors-teal-600;
+$button-outline-mono-background-hover: var(--palette-grey-500);
+$button-outline-alert-background-hover: var(--palette-error-500);
+$button-outline-alt-background-hover: var(--palette-success-500);
+$button-outline-dark-background-hover: $colors-teal-900;
+$button-outline-stream-background-hover: var(--palette-primary-500);
-$button-outline-regular-background-active: var(--v2-colors-teal-800);
-$button-outline-mono-background-active: var(--v2-colors-grey-700);
-$button-outline-alert-background-active: var(--v2-colors-red-700);
-$button-outline-alt-background-active: var(--v2-colors-green-700);
-$button-outline-dark-background-active: var(--v2-colors-blue-700);
-$button-outline-stream-background-active: var(--v2-colors-stream-blue-500);
+$button-outline-regular-background-active: $colors-teal-800;
+$button-outline-mono-background-active: var(--palette-grey-700);
+$button-outline-alert-background-active: var(--palette-error-700);
+$button-outline-alt-background-active: var(--palette-success-700);
+$button-outline-dark-background-active: $colors-teal-700;
+$button-outline-stream-background-active: var(--palette-primary-500);
-$button-outline-regular-border-active: var(--v2-colors-teal-800);
-$button-outline-mono-border-active: var(--v2-colors-grey-700);
-$button-outline-alert-border-active: var(--v2-colors-red-700);
-$button-outline-alt-border-active: var(--v2-colors-green-700);
-$button-outline-dark-border-active: var(--v2-colors-blue-700);
-$button-outline-stream-border-active: var(--v2-colors-stream-blue-500);
+$button-outline-regular-border-active: $colors-teal-800;
+$button-outline-mono-border-active: var(--palette-grey-700);
+$button-outline-alert-border-active: var(--palette-error-700);
+$button-outline-alt-border-active: var(--palette-success-700);
+$button-outline-dark-border-active: $colors-teal-700;
+$button-outline-stream-border-active: var(--palette-primary-500);
/* text button */
$button-text-background: transparent;
-$button-text-foreground-disabled: var(--v2-colors-pure-white);
+$button-text-foreground-disabled: var(--palette-text-000);
-$button-text-regular-foreground: var(--v2-colors-teal-600);
-$button-text-mono-foreground: var(--v2-colors-grey-500);
-$button-text-alert-foreground: var(--v2-colors-red-500);
-$button-text-alt-foreground: var(--v2-colors-green-500);
-$button-text-dark-foreground: var(--v2-colors-blue-500);
-$button-text-stream-foreground: var(--v2-colors-stream-blue-500);
+$button-text-regular-foreground: $colors-teal-600;
+$button-text-mono-foreground: var(--palette-grey-500);
+$button-text-alert-foreground: var(--palette-error-500);
+$button-text-alt-foreground: var(--palette-success-500);
+$button-text-dark-foreground: $colors-teal-900;
+$button-text-stream-foreground: var(--palette-primary-500);
-$button-text-regular-foreground-hover: var(--v2-colors-teal-700);
-$button-text-mono-foreground-hover: var(--v2-colors-grey-600);
-$button-text-alert-foreground-hover: var(--v2-colors-red-600);
-$button-text-alt-foreground-hover: var(--v2-colors-green-600);
-$button-text-dark-foreground-hover: var(--v2-colors-blue-600);
-$button-text-stream-foreground-hover: var(--v2-colors-stream-blue-700);
+$button-text-regular-foreground-hover: $colors-teal-700;
+$button-text-mono-foreground-hover: var(--palette-grey-600);
+$button-text-alert-foreground-hover: var(--palette-error-600);
+$button-text-alt-foreground-hover: var(--palette-success-600);
+$button-text-dark-foreground-hover: $colors-teal-800;
+$button-text-stream-foreground-hover: var(--palette-primary-700);
-$button-text-regular-foreground-active: var(--v2-colors-teal-800);
-$button-text-mono-foreground-active: var(--v2-colors-grey-700);
-$button-text-alert-foreground-active: var(--v2-colors-red-700);
-$button-text-alt-foreground-active: var(--v2-colors-green-700);
-$button-text-dark-foreground-active: var(--v2-colors-blue-700);
-$button-text-stream-foreground-active: var(--v2-colors-stream-blue-700);
+$button-text-regular-foreground-active: $colors-teal-800;
+$button-text-mono-foreground-active: var(--palette-grey-700);
+$button-text-alert-foreground-active: var(--palette-error-700);
+$button-text-alt-foreground-active: var(--palette-success-700);
+$button-text-dark-foreground-active: $colors-teal-700;
+$button-text-stream-foreground-active: var(--palette-primary-700);
/* Class Definitions */
.root {
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
background-color: transparent;
position: relative;
display: inline-flex;
@@ -131,12 +131,12 @@ $button-text-stream-foreground-active: var(--v2-colors-stream-blue-700);
transition: 0.2s ease-out background-color;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ line-height: var(--line-height-3);
& > * {
- margin: 0 var(--v2-spacing-1) 0 0;
+ margin: 0 var(--spacing-1) 0 0;
/* convince safari */
align-self: center;
}
@@ -145,11 +145,11 @@ $button-text-stream-foreground-active: var(--v2-colors-stream-blue-700);
}
&.iconLeft i {
- padding-right: var(--v2-spacing-1);
+ padding-right: var(--spacing-1);
}
&.iconRight i {
- padding-left: var(--v2-spacing-1);
+ padding-left: var(--spacing-1);
}
}
@@ -180,37 +180,37 @@ $button-text-stream-foreground-active: var(--v2-colors-stream-blue-700);
}
.sizeSmall {
- font-size: var(--v2-font-size-1);
+ font-size: var(--font-size-1);
&:not(.variantText) {
- padding: var(--v2-spacing-1) var(--v2-spacing-2);
+ padding: var(--spacing-1) var(--spacing-2);
&.iconLeft,
&.iconRight {
- padding-left: var(--v2-spacing-2);
- padding-right: var(--v2-spacing-2);
+ padding-left: var(--spacing-2);
+ padding-right: var(--spacing-2);
}
}
}
.sizeRegular {
- font-size: var(--v2-font-size-1);
+ font-size: var(--font-size-1);
&:not(.variantText) {
- padding: var(--v2-spacing-2) var(--v2-spacing-3);
+ padding: var(--spacing-2) var(--spacing-3);
&.iconLeft,
&.iconRight {
- padding-left: var(--v2-spacing-2);
- padding-right: var(--v2-spacing-2);
+ padding-left: var(--spacing-2);
+ padding-right: var(--spacing-2);
}
}
}
.sizeLarge {
- font-size: var(--v2-font-size-2);
+ font-size: var(--font-size-2);
&:not(.variantText) {
- padding: var(--v2-spacing-3) var(--v2-spacing-5);
+ padding: var(--spacing-3) var(--spacing-5);
&.iconLeft,
&.iconRight {
- padding-left: var(--v2-spacing-4);
- padding-right: var(--v2-spacing-4);
+ padding-left: var(--spacing-4);
+ padding-right: var(--spacing-4);
}
}
}
@@ -640,8 +640,8 @@ $button-text-stream-foreground-active: var(--v2-colors-stream-blue-700);
}
.variantTextUnderlined {
- font-weight: var(--v2-font-weight-primary-bold);
- font-family: var(--v2-font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ font-family: var(--font-family-primary);
text-decoration: underline;
&.colorRegular {
diff --git a/src/core/client/ui/components/v2/CallOut/CallOut.css b/src/core/client/ui/components/v2/CallOut/CallOut.css
index aadab72e5..2460aa8ce 100644
--- a/src/core/client/ui/components/v2/CallOut/CallOut.css
+++ b/src/core/client/ui/components/v2/CallOut/CallOut.css
@@ -1,16 +1,16 @@
-$callout-regular-bg: var(--v2-colors-grey-100);
-$callout-regular-text: var(--v2-colors-mono-500);
-$callout-regular-border: var(--v2-colors-grey-300);
+$callout-regular-bg: var(--palette-grey-100);
+$callout-regular-text: var(--palette-text-500);
+$callout-regular-border: var(--palette-grey-300);
.root {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
position: relative;
display: inline-flex;
justify-content: center;
align-items: center;
- padding: var(--v2-spacing-4);
+ padding: var(--spacing-4);
box-sizing: border-box;
border-width: 1px;
border-style: solid;
@@ -28,21 +28,21 @@ $callout-regular-border: var(--v2-colors-grey-300);
}
.colorPrimary {
- background-color: var(--palette-primary-lightest);
- border-color: var(--palette-primary-light);
- color: var(--palette-text-primary);
+ background-color: $colors-teal-100;
+ border-color: $colors-teal-300;
+ color: var(--palette-text-500);
}
.colorError {
- background-color: var(--palette-error-lightest);
- border-color: var(--palette-error-light);
- color: var(--palette-text-primary);
+ background-color: var(--palette-error-100);
+ border-color: var(--palette-error-300);
+ color: var(--palette-text-500);
}
.colorSuccess {
- background-color: var(--palette-success-lightest);
- border-color: var(--palette-success-light);
- color: var(--palette-text-primary);
+ background-color: var(--palette-success-100);
+ border-color: var(--palette-success-300);
+ color: var(--palette-text-500);
}
.fullWidth {
diff --git a/src/core/client/ui/components/v2/Card/Card.css b/src/core/client/ui/components/v2/Card/Card.css
index c19d02bed..1ff8acad4 100644
--- a/src/core/client/ui/components/v2/Card/Card.css
+++ b/src/core/client/ui/components/v2/Card/Card.css
@@ -1,11 +1,11 @@
.root {
position: relative;
- padding: var(--v2-spacing-4);
+ padding: var(--spacing-4);
box-sizing: border-box;
border: 1px solid rgba(0, 0, 0, 0.25);
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25);
border-radius: var(--round-corners);
- background-color: var(--palette-common-white);
+ background-color: $colors-pure-white;
/*
Fallback begin
diff --git a/src/core/client/ui/components/v2/CheckBox/CheckBox.css b/src/core/client/ui/components/v2/CheckBox/CheckBox.css
index b20ddde87..2dee87d8c 100644
--- a/src/core/client/ui/components/v2/CheckBox/CheckBox.css
+++ b/src/core/client/ui/components/v2/CheckBox/CheckBox.css
@@ -12,12 +12,12 @@
display: inline-block;
cursor: pointer;
user-select: none;
- padding-left: calc(var(--v2-spacing-3) + 14px);
- color: var(--v2-palette-input-label);
- font-size: var(--v2-font-size-3);
- font-weight: var(--v2-font-weight-primary-regular);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
+ padding-left: calc(var(--spacing-3) + 14px);
+ color: var(--palette-text-500);
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
}
.labelSpan {
@@ -25,7 +25,7 @@
}
.labelLight {
- color: var(--palette-text-light);
+ color: var(--palette-text-000);
}
/* Box. */
@@ -38,8 +38,8 @@
display: inline-block;
width: 14px;
height: 14px;
- background: var(--v2-palette-input-background);
- border: 1px solid var(--v2-palette-input-label);
+ background: var(--palette-background-input);
+ border: 1px solid var(--palette-text-500);
border-radius: 2px;
box-sizing: border-box;
}
@@ -52,17 +52,17 @@
/* Box checked */
input:checked.default + .label:before {
- background: var(--v2-palette-primary-main);
- border: 1px solid var(--v2-palette-primary-main);
+ background: $colors-teal-700;
+ border: 1px solid $colors-teal-700;
}
.input:checked.streamBlue + .label:before {
- background: var(--v2-colors-stream-blue-500);
- border: 1px solid var(--v2-colors-stream-blue-500);
+ background: var(--palette-primary-500);
+ border: 1px solid var(--palette-primary-500);
}
input:checked + .label {
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
}
/* Disabled state label. */
@@ -74,8 +74,8 @@ input:checked + .label {
/* Disabled box. */
.input:disabled + .label:before {
box-shadow: none;
- border: 1px solid var(--v2-palette-input-disabled-foreground);
- background: var(--v2-palette-input-disabled-background);
+ border: 1px solid var(--palette-text-input-disabled);
+ background: var(--palette-background-input-disabled);
}
/* Checkmark. Could be replaced with an image */
@@ -86,7 +86,7 @@ input:checked + .label {
top: 50%;
margin-top: -1px;
transform: translateY(-50%);
- color: var(--v2-palette-input-background);
+ color: var(--palette-background-input);
background: currentColor;
width: 2px;
height: 2px;
@@ -98,5 +98,5 @@ input:checked + .label {
}
.input:checked:disabled + .label:after {
- color: var(--v2-palette-input-disabled-foreground);
+ color: var(--palette-text-input-disabled);
}
diff --git a/src/core/client/ui/components/v2/CheckIcon/CheckIcon.css b/src/core/client/ui/components/v2/CheckIcon/CheckIcon.css
new file mode 100644
index 000000000..bb9d21a19
--- /dev/null
+++ b/src/core/client/ui/components/v2/CheckIcon/CheckIcon.css
@@ -0,0 +1,5 @@
+.base {
+ & path {
+ fill: var(--palette-success-500)
+ }
+}
diff --git a/src/core/client/ui/components/v2/CheckIcon/CheckIcon.tsx b/src/core/client/ui/components/v2/CheckIcon/CheckIcon.tsx
new file mode 100644
index 000000000..f4ba2a936
--- /dev/null
+++ b/src/core/client/ui/components/v2/CheckIcon/CheckIcon.tsx
@@ -0,0 +1,31 @@
+import cn from "classnames";
+import React, { FunctionComponent } from "react";
+
+import { withStyles } from "coral-ui/hocs";
+
+import styles from "./CheckIcon.css";
+
+interface Props {
+ className?: string;
+ classes: typeof styles;
+}
+
+const CheckIcon: FunctionComponent = ({
+ className,
+ classes,
+ ...rest
+}) => (
+
+
+
+);
+
+export default withStyles(styles)(CheckIcon);
diff --git a/src/core/client/ui/components/Check/README.mdx b/src/core/client/ui/components/v2/CheckIcon/README.mdx
similarity index 100%
rename from src/core/client/ui/components/Check/README.mdx
rename to src/core/client/ui/components/v2/CheckIcon/README.mdx
diff --git a/src/core/client/ui/components/v2/CheckIcon/index.ts b/src/core/client/ui/components/v2/CheckIcon/index.ts
new file mode 100644
index 000000000..75b53e2f3
--- /dev/null
+++ b/src/core/client/ui/components/v2/CheckIcon/index.ts
@@ -0,0 +1 @@
+export { default } from "./CheckIcon";
diff --git a/src/core/client/ui/components/v2/Counter/Counter.css b/src/core/client/ui/components/v2/Counter/Counter.css
index 5a21500c8..379ddfa0d 100644
--- a/src/core/client/ui/components/v2/Counter/Counter.css
+++ b/src/core/client/ui/components/v2/Counter/Counter.css
@@ -1,13 +1,13 @@
-$counterBadgeForegroundColor: var(--v2-colors-pure-white);
-$counterBadgeBackgroundDefaultColor: var(--v2-colors-grey-500);
-$counterBadgeBackgroundEmphasisColor: var(--v2-colors-grey-500);
-$counterBadgeBackgroundAlertColor: var(--v2-colors-grey-500);
+$counterBadgeForegroundColor: var(--palette-text-000);
+$counterBadgeBackgroundDefaultColor: var(--palette-grey-500);
+$counterBadgeBackgroundEmphasisColor: var(--palette-grey-500);
+$counterBadgeBackgroundAlertColor: var(--palette-grey-500);
.root {
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-primary-bold);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
letter-spacing: calc(0.2em / 14);
border-radius: var(--round-corners);
padding: 1px 3px 1px 3px;
@@ -15,9 +15,9 @@ $counterBadgeBackgroundAlertColor: var(--v2-colors-grey-500);
}
.sizeSmall {
- font-size: var(--v2-font-size-1);
+ font-size: var(--font-size-1);
padding: 2px 3px;
- line-height: var(--v2-line-height-reset);
+ line-height: var(--line-height-3);
}
.text {
@@ -29,23 +29,23 @@ $counterBadgeBackgroundAlertColor: var(--v2-colors-grey-500);
}
.colorPrimary {
- background-color: var(--palette-primary-main);
+ background-color: $colors-teal-700;
}
.colorGrey {
- background-color: var(--palette-grey-lightest);
- box-shadow: inset 0px 0px 0px 1px var(--palette-grey-dark);
+ background-color: var(--palette-grey-200);
+ box-shadow: inset 0px 0px 0px 1px var(--palette-grey-600);
& .text {
- color: var(--palette-grey-dark);
+ color: var(--palette-grey-600);
}
}
.colorDark {
- background-color: var(--palette-grey-dark);
+ background-color: var(--palette-grey-600);
}
.colorError {
- background-color: var(--palette-error-darkest);
+ background-color: var(--palette-error-700);
}
.colorEmphasis {
diff --git a/src/core/client/ui/components/v2/Divider/Divider.css b/src/core/client/ui/components/v2/Divider/Divider.css
index 8599c35a4..b17373e3c 100644
--- a/src/core/client/ui/components/v2/Divider/Divider.css
+++ b/src/core/client/ui/components/v2/Divider/Divider.css
@@ -1,4 +1,4 @@
-$divider-border-color: var(--v2-colors-grey-300);
+$divider-border-color: var(--palette-grey-300);
.root {
border-top: 0;
@@ -7,17 +7,17 @@ $divider-border-color: var(--v2-colors-grey-300);
}
.spacing1 {
- margin: var(--v2-spacing-1) 0;
+ margin: var(--spacing-1) 0;
}
.spacing2 {
- margin: var(--v2-spacing-2) 0;
+ margin: var(--spacing-2) 0;
}
.spacing3 {
- margin: var(--v2-spacing-3) 0;
+ margin: var(--spacing-3) 0;
}
.spacing4 {
- margin: var(--v2-spacing-4) 0;
+ margin: var(--spacing-4) 0;
}
diff --git a/src/core/client/ui/components/v2/Dropdown/Button.css b/src/core/client/ui/components/v2/Dropdown/Button.css
index f3b974265..b8a8650a2 100644
--- a/src/core/client/ui/components/v2/Dropdown/Button.css
+++ b/src/core/client/ui/components/v2/Dropdown/Button.css
@@ -1,21 +1,21 @@
.root {
- font-size: var(--v2-font-size-3);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
display: flex;
justify-content: space-between;
align-items: center;
- padding: var(--v2-spacing-2);
+ padding: var(--spacing-2);
width: 100%;
text-align: left;
line-height: 1;
}
.anchor {
- color: var(--v2-palette-primary-main);
+ color: $colors-teal-700;
text-decoration: underline;
&:visited {
- color: var(--v2-palette-primary-main);
+ color: $colors-teal-700;
}
}
@@ -24,32 +24,32 @@
}
.root:not(:disabled):active {
- background-color: var(--v2-palette-primary-lightest);
+ background-color: $colors-teal-100;
}
.mouseHover {
- background-color: var(--v2-palette-primary-lightest);
+ background-color: $colors-teal-100;
}
.iconBefore {
display: flex;
justify-content: baseline;
align-items: center;
- color: var(--v2-palette-grey-main);
- margin-right: var(--v2-spacing-2);
+ color: var(--palette-grey-500);
+ margin-right: var(--spacing-2);
}
.iconAfter {
display: flex;
align-items: center;
justify-content: baseline;
- margin-left: var(--v2-spacing-2);
+ margin-left: var(--spacing-2);
text-decoration: unset;
}
.iconOpenInNew {
padding-top: 1px;
- color: var(--v2-palette-primary-main);
+ color: $colors-teal-700;
}
.blankAdornment {
- padding-right: var(--v2-spacing-6);
+ padding-right: var(--spacing-6);
}
diff --git a/src/core/client/ui/components/v2/Dropdown/Divider.css b/src/core/client/ui/components/v2/Dropdown/Divider.css
index 9e8bfecd3..80c966407 100644
--- a/src/core/client/ui/components/v2/Dropdown/Divider.css
+++ b/src/core/client/ui/components/v2/Dropdown/Divider.css
@@ -1,4 +1,4 @@
-$dropdownDividerBorderColor: var(--v2-colors-grey-300);
+$dropdownDividerBorderColor: var(--palette-grey-300);
.root {
border: 0;
diff --git a/src/core/client/ui/components/v2/DurationField/DurationField.css b/src/core/client/ui/components/v2/DurationField/DurationField.css
index d88b02a39..230324787 100644
--- a/src/core/client/ui/components/v2/DurationField/DurationField.css
+++ b/src/core/client/ui/components/v2/DurationField/DurationField.css
@@ -8,8 +8,8 @@
}
.unit {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
- font-size: var(--v2-font-size-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
line-height: 36px;
}
diff --git a/src/core/client/ui/components/v2/DurationField/DurationField.tsx b/src/core/client/ui/components/v2/DurationField/DurationField.tsx
index 07457d12d..e778b4245 100644
--- a/src/core/client/ui/components/v2/DurationField/DurationField.tsx
+++ b/src/core/client/ui/components/v2/DurationField/DurationField.tsx
@@ -9,7 +9,7 @@ import React, {
} from "react";
import TIME from "coral-common/time";
-import { Flex } from "coral-ui/components";
+import { Flex } from "coral-ui/components/v2";
import { Option, SelectField } from "../SelectField";
import TextField, { TextFieldProps } from "../TextField";
diff --git a/src/core/client/ui/components/v2/Flex/Flex.css b/src/core/client/ui/components/v2/Flex/Flex.css
index bebac3e69..1e2ce97fc 100644
--- a/src/core/client/ui/components/v2/Flex/Flex.css
+++ b/src/core/client/ui/components/v2/Flex/Flex.css
@@ -7,21 +7,21 @@
.spacing-1 {
& > * {
- margin: 0 var(--v2-spacing-1) 0 0 !important;
+ margin: 0 var(--spacing-1) 0 0 !important;
}
&.directionRowReverse {
& > * {
- margin: 0 0 0 var(--v2-spacing-1) !important;
+ margin: 0 0 0 var(--spacing-1) !important;
}
}
&.directionColumn {
& > * {
- margin: 0 0 var(--v2-spacing-1) 0 !important;
+ margin: 0 0 var(--spacing-1) 0 !important;
}
}
&.directionColumnReverse {
& > * {
- margin: var(--v2-spacing-1) 0 0 0 !important;
+ margin: var(--spacing-1) 0 0 0 !important;
}
}
& > *:last-child {
@@ -31,21 +31,21 @@
.spacing-2 {
& > * {
- margin: 0 var(--v2-spacing-2) 0 0 !important;
+ margin: 0 var(--spacing-2) 0 0 !important;
}
&.directionRowReverse {
& > * {
- margin: 0 0 0 var(--v2-spacing-2) !important;
+ margin: 0 0 0 var(--spacing-2) !important;
}
}
&.directionColumn {
& > * {
- margin: 0 0 var(--v2-spacing-2) 0 !important;
+ margin: 0 0 var(--spacing-2) 0 !important;
}
}
&.directionColumnReverse {
& > * {
- margin: var(--v2-spacing-2) 0 0 0 !important;
+ margin: var(--spacing-2) 0 0 0 !important;
}
}
& > *:last-child {
@@ -55,21 +55,21 @@
.spacing-3 {
& > * {
- margin: 0 var(--v2-spacing-3) 0 0 !important;
+ margin: 0 var(--spacing-3) 0 0 !important;
}
&.directionRowReverse {
& > * {
- margin: 0 0 0 var(--v2-spacing-3) !important;
+ margin: 0 0 0 var(--spacing-3) !important;
}
}
&.directionColumn {
& > * {
- margin: 0 0 var(--v2-spacing-3) 0 !important;
+ margin: 0 0 var(--spacing-3) 0 !important;
}
}
&.directionColumnReverse {
& > * {
- margin: var(--v2-spacing-3) 0 0 0 !important;
+ margin: var(--spacing-3) 0 0 0 !important;
}
}
& > *:last-child {
@@ -79,21 +79,21 @@
.spacing-4 {
& > * {
- margin: 0 var(--v2-spacing-4) 0 0 !important;
+ margin: 0 var(--spacing-4) 0 0 !important;
}
&.directionRowReverse {
& > * {
- margin: 0 0 0 var(--v2-spacing-4) !important;
+ margin: 0 0 0 var(--spacing-4) !important;
}
}
&.directionColumn {
& > * {
- margin: 0 0 var(--v2-spacing-4) 0 !important;
+ margin: 0 0 var(--spacing-4) 0 !important;
}
}
&.directionColumnReverse {
& > * {
- margin: var(--v2-spacing-4) 0 0 0 !important;
+ margin: var(--spacing-4) 0 0 0 !important;
}
}
& > *:last-child {
@@ -103,21 +103,21 @@
.spacing-5 {
& > * {
- margin: 0 var(--v2-spacing-5) 0 0 !important;
+ margin: 0 var(--spacing-5) 0 0 !important;
}
&.directionRowReverse {
& > * {
- margin: 0 0 0 var(--v2-spacing-5) !important;
+ margin: 0 0 0 var(--spacing-5) !important;
}
}
&.directionColumn {
& > * {
- margin: 0 0 var(--v2-spacing-5) 0 !important;
+ margin: 0 0 var(--spacing-5) 0 !important;
}
}
&.directionColumnReverse {
& > * {
- margin: var(--v2-spacing-5) 0 0 0 !important;
+ margin: var(--spacing-5) 0 0 0 !important;
}
}
& > *:last-child {
@@ -127,21 +127,21 @@
.spacing-6 {
& > * {
- margin: 0 var(--v2-spacing-6) 0 0 !important;
+ margin: 0 var(--spacing-6) 0 0 !important;
}
&.directionRowReverse {
& > * {
- margin: 0 0 0 var(--v2-spacing-6) !important;
+ margin: 0 0 0 var(--spacing-6) !important;
}
}
&.directionColumn {
& > * {
- margin: 0 0 var(--v2-spacing-6) 0 !important;
+ margin: 0 0 var(--spacing-6) 0 !important;
}
}
&.directionColumnReverse {
& > * {
- margin: var(--v2-spacing-6) 0 0 0 !important;
+ margin: var(--spacing-6) 0 0 0 !important;
}
}
& > *:last-child {
@@ -151,21 +151,21 @@
.spacing-7 {
& > * {
- margin: 0 var(--v2-spacing-7) 0 0 !important;
+ margin: 0 var(--spacing-7) 0 0 !important;
}
&.directionRowReverse {
& > * {
- margin: 0 0 0 var(--v2-spacing-7) !important;
+ margin: 0 0 0 var(--spacing-7) !important;
}
}
&.directionColumn {
& > * {
- margin: 0 0 var(--v2-spacing-7) 0 !important;
+ margin: 0 0 var(--spacing-7) 0 !important;
}
}
&.directionColumnReverse {
& > * {
- margin: var(--v2-spacing-7) 0 0 0 !important;
+ margin: var(--spacing-7) 0 0 0 !important;
}
}
& > *:last-child {
@@ -175,21 +175,21 @@
.spacing-8 {
& > * {
- margin: 0 var(--v2-spacing-8) 0 0 !important;
+ margin: 0 var(--spacing-8) 0 0 !important;
}
&.directionRowReverse {
& > * {
- margin: 0 0 0 var(--v2-spacing-8) !important;
+ margin: 0 0 0 var(--spacing-8) !important;
}
}
&.directionColumn {
& > * {
- margin: 0 0 var(--v2-spacing-8) 0 !important;
+ margin: 0 0 var(--spacing-8) 0 !important;
}
}
&.directionColumnReverse {
& > * {
- margin: var(--v2-spacing-8) 0 0 0 !important;
+ margin: var(--spacing-8) 0 0 0 !important;
}
}
& > *:last-child {
@@ -199,21 +199,21 @@
.spacing-9 {
& > * {
- margin: 0 var(--v2-spacing-9) 0 0 !important;
+ margin: 0 var(--spacing-9) 0 0 !important;
}
&.directionRowReverse {
& > * {
- margin: 0 0 0 var(--v2-spacing-9) !important;
+ margin: 0 0 0 var(--spacing-9) !important;
}
}
&.directionColumn {
& > * {
- margin: 0 0 var(--v2-spacing-9) 0 !important;
+ margin: 0 0 var(--spacing-9) 0 !important;
}
}
&.directionColumnReverse {
& > * {
- margin: var(--v2-spacing-9) 0 0 0 !important;
+ margin: var(--spacing-9) 0 0 0 !important;
}
}
& > *:last-child {
@@ -373,154 +373,154 @@
&:not(.directionColumn).spacing-1 {
&:not(:empty) {
- margin-top: calc(-1 * var(--v2-spacing-1)) !important;
+ margin-top: calc(-1 * var(--spacing-1)) !important;
}
& > * {
- margin-top: var(--v2-spacing-1) !important;
+ margin-top: var(--spacing-1) !important;
}
}
&.directionColumn.spacing-1 {
&:not(:empty) {
- margin-left: calc(-1 * var(--v2-spacing-1)) !important;
+ margin-left: calc(-1 * var(--spacing-1)) !important;
}
&.itemGutter > * {
- margin-left: var(--v2-spacing-1) !important;
+ margin-left: var(--spacing-1) !important;
}
}
&:not(.directionColumn).spacing-2 {
&:not(:empty) {
- margin-top: calc(-1 * var(--v2-spacing-2)) !important;
+ margin-top: calc(-1 * var(--spacing-2)) !important;
}
& > * {
- margin-top: var(--v2-spacing-2) !important;
+ margin-top: var(--spacing-2) !important;
}
}
&.directionColumn.spacing-2 {
&:not(:empty) {
- margin-left: calc(-1 * var(--v2-spacing-2)) !important;
+ margin-left: calc(-1 * var(--spacing-2)) !important;
}
&.itemGutter > * {
- margin-left: var(--v2-spacing-2) !important;
+ margin-left: var(--spacing-2) !important;
}
}
&:not(.directionColumn).spacing-3 {
&:not(:empty) {
- margin-top: calc(-1 * var(--v2-spacing-3)) !important;
+ margin-top: calc(-1 * var(--spacing-3)) !important;
}
& > * {
- margin-top: var(--v2-spacing-3) !important;
+ margin-top: var(--spacing-3) !important;
}
}
&.directionColumn.spacing-3 {
&:not(:empty) {
- margin-left: calc(-1 * var(--v2-spacing-3)) !important;
+ margin-left: calc(-1 * var(--spacing-3)) !important;
}
&.itemGutter > * {
- margin-left: var(--v2-spacing-3) !important;
+ margin-left: var(--spacing-3) !important;
}
}
&:not(.directionColumn).spacing-4 {
&:not(:empty) {
- margin-top: calc(-1 * var(--v2-spacing-4)) !important;
+ margin-top: calc(-1 * var(--spacing-4)) !important;
}
& > * {
- margin-top: var(--v2-spacing-4) !important;
+ margin-top: var(--spacing-4) !important;
}
}
&.directionColumn.spacing-4 {
&:not(:empty) {
- margin-left: calc(-1 * var(--v2-spacing-4)) !important;
+ margin-left: calc(-1 * var(--spacing-4)) !important;
}
&.itemGutter > * {
- margin-left: var(--v2-spacing-4) !important;
+ margin-left: var(--spacing-4) !important;
}
}
&:not(.directionColumn).spacing-5 {
&:not(:empty) {
- margin-top: calc(-1 * var(--v2-spacing-5)) !important;
+ margin-top: calc(-1 * var(--spacing-5)) !important;
}
& > * {
- margin-top: var(--v2-spacing-5) !important;
+ margin-top: var(--spacing-5) !important;
}
}
&.directionColumn.spacing-5 {
&:not(:empty) {
- margin-left: calc(-1 * var(--v2-spacing-5)) !important;
+ margin-left: calc(-1 * var(--spacing-5)) !important;
}
&.itemGutter > * {
- margin-left: var(--v2-spacing-5) !important;
+ margin-left: var(--spacing-5) !important;
}
}
&:not(.directionColumn).spacing-6 {
&:not(:empty) {
- margin-top: calc(-1 * var(--v2-spacing-6)) !important;
+ margin-top: calc(-1 * var(--spacing-6)) !important;
}
& > * {
- margin-top: var(--v2-spacing-6) !important;
+ margin-top: var(--spacing-6) !important;
}
}
&.directionColumn.spacing-6 {
&:not(:empty) {
- margin-left: calc(-1 * var(--v2-spacing-6)) !important;
+ margin-left: calc(-1 * var(--spacing-6)) !important;
}
&.itemGutter > * {
- margin-left: var(--v2-spacing-6) !important;
+ margin-left: var(--spacing-6) !important;
}
}
&:not(.directionColumn).spacing-7 {
&:not(:empty) {
- margin-top: calc(-1 * var(--v2-spacing-7)) !important;
+ margin-top: calc(-1 * var(--spacing-7)) !important;
}
& > * {
- margin-top: var(--v2-spacing-7) !important;
+ margin-top: var(--spacing-7) !important;
}
}
&.directionColumn.spacing-7 {
&:not(:empty) {
- margin-left: calc(-1 * var(--v2-spacing-7)) !important;
+ margin-left: calc(-1 * var(--spacing-7)) !important;
}
&.itemGutter > * {
- margin-left: var(--v2-spacing-7) !important;
+ margin-left: var(--spacing-7) !important;
}
}
&:not(.directionColumn).spacing-8 {
&:not(:empty) {
- margin-top: calc(-1 * var(--v2-spacing-8)) !important;
+ margin-top: calc(-1 * var(--spacing-8)) !important;
}
& > * {
- margin-top: var(--v2-spacing-8) !important;
+ margin-top: var(--spacing-8) !important;
}
}
&.directionColumn.spacing-8 {
&:not(:empty) {
- margin-left: calc(-1 * var(--v2-spacing-8)) !important;
+ margin-left: calc(-1 * var(--spacing-8)) !important;
}
&.itemGutter > * {
- margin-left: var(--v2-spacing-8) !important;
+ margin-left: var(--spacing-8) !important;
}
}
&:not(.directionColumn).spacing-9 {
&:not(:empty) {
- margin-top: calc(-1 * var(--v2-spacing-9)) !important;
+ margin-top: calc(-1 * var(--spacing-9)) !important;
}
& > * {
- margin-top: var(--v2-spacing-9) !important;
+ margin-top: var(--spacing-9) !important;
}
}
&.directionColumn.spacing-9 {
&:not(:empty) {
- margin-left: calc(-1 * var(--v2-spacing-9)) !important;
+ margin-left: calc(-1 * var(--spacing-9)) !important;
}
&.itemGutter > * {
- margin-left: var(--v2-spacing-9) !important;
+ margin-left: var(--spacing-9) !important;
}
}
}
diff --git a/src/core/client/ui/components/v2/Flex/Flex.tsx b/src/core/client/ui/components/v2/Flex/Flex.tsx
index 86ad461e1..153e0e971 100644
--- a/src/core/client/ui/components/v2/Flex/Flex.tsx
+++ b/src/core/client/ui/components/v2/Flex/Flex.tsx
@@ -3,7 +3,7 @@ import React, { FunctionComponent, Ref } from "react";
import { pascalCase } from "coral-common/utils";
import { withForwardRef, withStyles } from "coral-ui/hocs";
-import { Spacing } from "coral-ui/theme/variables";
+import { Spacing } from "coral-ui/theme/sharedVariables";
import { PropTypesOf } from "coral-ui/types";
/** Needs to be loaded after styles, because Box styles have priority */
diff --git a/src/core/client/ui/components/v2/FormField/FormField.tsx b/src/core/client/ui/components/v2/FormField/FormField.tsx
index 7e8189738..bb3320275 100644
--- a/src/core/client/ui/components/v2/FormField/FormField.tsx
+++ b/src/core/client/ui/components/v2/FormField/FormField.tsx
@@ -1,11 +1,10 @@
import cn from "classnames";
import React, { FunctionComponent, ReactNode } from "react";
+import { HorizontalGutter } from "coral-ui/components/v2";
import { withStyles } from "coral-ui/hocs";
import { PropTypesOf } from "coral-ui/types";
-import HorizontalGutter from "coral-ui/components/HorizontalGutter";
-
import styles from "./FormField.css";
interface Props extends Omit, "ref"> {
diff --git a/src/core/client/ui/components/v2/FormFieldDescription/FormFieldDescription.css b/src/core/client/ui/components/v2/FormFieldDescription/FormFieldDescription.css
index 36f24ac54..89ef65dbc 100644
--- a/src/core/client/ui/components/v2/FormFieldDescription/FormFieldDescription.css
+++ b/src/core/client/ui/components/v2/FormFieldDescription/FormFieldDescription.css
@@ -1,9 +1,9 @@
-$configureDescriptionColor: var(--v2-colors-mono-500);
+$configureDescriptionColor: var(--palette-text-500);
.root {
color: $configureDescriptionColor;
- line-height: var(--v2-line-height-body-short);
- font-size: var(--v2-font-size-3);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
+ line-height: var(--line-height-field-description);
+ font-size: var(--font-size-3);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
}
diff --git a/src/core/client/ui/components/v2/FormFieldFooter/FormFieldFooter.css b/src/core/client/ui/components/v2/FormFieldFooter/FormFieldFooter.css
index 93dd77c89..c16fdfe6c 100644
--- a/src/core/client/ui/components/v2/FormFieldFooter/FormFieldFooter.css
+++ b/src/core/client/ui/components/v2/FormFieldFooter/FormFieldFooter.css
@@ -1,7 +1,7 @@
.root {
- color: var(--v2-colors-mono-100);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-reset);
- font-weight: var(--v2-font-weight-primary-regular);
- font-family: var(--v2-font-family-primary);
+ color: var(--palette-text-100);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
}
diff --git a/src/core/client/ui/components/v2/FormFieldFooter/FormFieldFooter.tsx b/src/core/client/ui/components/v2/FormFieldFooter/FormFieldFooter.tsx
index d41d29b5b..a3e834af1 100644
--- a/src/core/client/ui/components/v2/FormFieldFooter/FormFieldFooter.tsx
+++ b/src/core/client/ui/components/v2/FormFieldFooter/FormFieldFooter.tsx
@@ -1,11 +1,10 @@
import cn from "classnames";
import React, { FunctionComponent, ReactNode } from "react";
+import { HorizontalGutter } from "coral-ui/components/v2";
import { withStyles } from "coral-ui/hocs";
import { PropTypesOf } from "coral-ui/types";
-import HorizontalGutter from "coral-ui/components/HorizontalGutter";
-
import styles from "./FormFieldFooter.css";
interface Props extends Omit, "ref"> {
diff --git a/src/core/client/ui/components/v2/FormFieldHeader/FormFieldHeader.tsx b/src/core/client/ui/components/v2/FormFieldHeader/FormFieldHeader.tsx
index a0efd4858..57f0d4738 100644
--- a/src/core/client/ui/components/v2/FormFieldHeader/FormFieldHeader.tsx
+++ b/src/core/client/ui/components/v2/FormFieldHeader/FormFieldHeader.tsx
@@ -1,11 +1,10 @@
import cn from "classnames";
import React, { FunctionComponent, ReactNode } from "react";
+import { HorizontalGutter } from "coral-ui/components/v2";
import { withStyles } from "coral-ui/hocs";
import { PropTypesOf } from "coral-ui/types";
-import HorizontalGutter from "coral-ui/components/HorizontalGutter";
-
import styles from "./FormFieldHeader.css";
interface Props extends Omit, "ref"> {
diff --git a/src/core/client/ui/components/v2/HelperText/HelperText.css b/src/core/client/ui/components/v2/HelperText/HelperText.css
index 0dd1ce851..d77967b50 100644
--- a/src/core/client/ui/components/v2/HelperText/HelperText.css
+++ b/src/core/client/ui/components/v2/HelperText/HelperText.css
@@ -1,7 +1,7 @@
.root {
- color: var(--v2-palette-input-helper);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-body-short);
+ color: var(--palette-text-100);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-4);
}
diff --git a/src/core/client/ui/components/v2/HorizontalGutter/HorizontalGutter.tsx b/src/core/client/ui/components/v2/HorizontalGutter/HorizontalGutter.tsx
index 22f864ae4..75db8c742 100644
--- a/src/core/client/ui/components/v2/HorizontalGutter/HorizontalGutter.tsx
+++ b/src/core/client/ui/components/v2/HorizontalGutter/HorizontalGutter.tsx
@@ -2,7 +2,7 @@ import cn from "classnames";
import React, { FunctionComponent, Ref } from "react";
import { withForwardRef, withStyles } from "coral-ui/hocs";
-import { Spacing } from "coral-ui/theme/variables";
+import { Spacing } from "coral-ui/theme/sharedVariables";
import { PropTypesOf } from "coral-ui/types";
/** Needs to be loaded after styles, because Box styles have priority */
diff --git a/src/core/client/ui/components/v2/HorizontalRule/HorizontalRule.css b/src/core/client/ui/components/v2/HorizontalRule/HorizontalRule.css
index 30d0d4e86..fa183879e 100644
--- a/src/core/client/ui/components/v2/HorizontalRule/HorizontalRule.css
+++ b/src/core/client/ui/components/v2/HorizontalRule/HorizontalRule.css
@@ -1,5 +1,5 @@
.root {
border: 0;
- border-bottom: 1px solid var(--v2-colors-grey-300);
+ border-bottom: 1px solid var(--palette-grey-300);
padding-top: 1px;
}
diff --git a/src/core/client/ui/components/v2/Icon/Icon.css b/src/core/client/ui/components/v2/Icon/Icon.css
index fe3eca5c7..fe8cb51fc 100644
--- a/src/core/client/ui/components/v2/Icon/Icon.css
+++ b/src/core/client/ui/components/v2/Icon/Icon.css
@@ -26,38 +26,38 @@
}
.xs {
- font-size: 10px;
- width: 10px;
+ font-size: var(--font-size-icon-xs);
+ width: var(--font-size-icon-xs);
}
.sm {
- font-size: 14px;
- width: 14px;
+ font-size: var(--font-size-icon-sm);
+ width: var(--font-size-icon-sm);
}
.md {
- font-size: 18px;
- width: 18px;
+ font-size: var(--font-size-icon-md);
+ width: var(--font-size-icon-md);
}
.lg {
- font-size: 24px;
- width: 24px;
+ font-size: var(--font-size-icon-lg);
+ width: var(--font-size-icon-lg);
}
.xl {
- font-size: 36px;
- width: 36px;
+ font-size: var(--font-size-icon-xl);
+ width: var(--font-size-icon-xl);
}
.colorPrimary {
- color: var(--v2-colors-teal-700);
+ color: $colors-teal-700;
}
.colorError {
- color: var(--v2-colors-red-500);
+ color: var(--palette-error-500);
}
.colorSuccess {
- color: var(--v2-colors-green-500);
+ color: var(--palette-success-500);
}
.colorStream {
- color: var(--v2-colors-stream-blue-500);
+ color: var(--palette-primary-500);
}
diff --git a/src/core/client/ui/components/v2/InputDescription/InputDescription.css b/src/core/client/ui/components/v2/InputDescription/InputDescription.css
new file mode 100644
index 000000000..6a2e80d9f
--- /dev/null
+++ b/src/core/client/ui/components/v2/InputDescription/InputDescription.css
@@ -0,0 +1,8 @@
+.root {
+ color: var(--palette-text-100);
+
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+}
diff --git a/src/core/client/ui/components/InputDescription/InputDescription.spec.tsx b/src/core/client/ui/components/v2/InputDescription/InputDescription.spec.tsx
similarity index 100%
rename from src/core/client/ui/components/InputDescription/InputDescription.spec.tsx
rename to src/core/client/ui/components/v2/InputDescription/InputDescription.spec.tsx
diff --git a/src/core/client/ui/components/InputDescription/InputDescription.tsx b/src/core/client/ui/components/v2/InputDescription/InputDescription.tsx
similarity index 70%
rename from src/core/client/ui/components/InputDescription/InputDescription.tsx
rename to src/core/client/ui/components/v2/InputDescription/InputDescription.tsx
index 699369921..5d1f28d6f 100644
--- a/src/core/client/ui/components/InputDescription/InputDescription.tsx
+++ b/src/core/client/ui/components/v2/InputDescription/InputDescription.tsx
@@ -1,8 +1,12 @@
+import cn from "classnames";
import React, { FunctionComponent, ReactNode } from "react";
-import { Typography } from "coral-ui/components";
import { PropTypesOf } from "coral-ui/types";
+import Typography from "../Typography";
+
+import styles from "./InputDescription.css";
+
interface InputDescriptionProps {
children: ReactNode;
id?: string;
@@ -13,14 +17,9 @@ interface InputDescriptionProps {
const InputDescription: FunctionComponent = (props) => {
const { className, children, ...rest } = props;
return (
-
+
{children}
-
+
);
};
diff --git a/src/core/client/ui/components/InputDescription/README.mdx b/src/core/client/ui/components/v2/InputDescription/README.mdx
similarity index 100%
rename from src/core/client/ui/components/InputDescription/README.mdx
rename to src/core/client/ui/components/v2/InputDescription/README.mdx
diff --git a/src/core/client/ui/components/AriaInfo/__snapshots__/AriaInfo.spec.tsx.snap b/src/core/client/ui/components/v2/InputDescription/__snapshots__/InputDescription.spec.tsx.snap
similarity index 58%
rename from src/core/client/ui/components/AriaInfo/__snapshots__/AriaInfo.spec.tsx.snap
rename to src/core/client/ui/components/v2/InputDescription/__snapshots__/InputDescription.spec.tsx.snap
index 688492e16..5204c261e 100644
--- a/src/core/client/ui/components/AriaInfo/__snapshots__/AriaInfo.spec.tsx.snap
+++ b/src/core/client/ui/components/v2/InputDescription/__snapshots__/InputDescription.spec.tsx.snap
@@ -2,8 +2,8 @@
exports[`renders correctly 1`] = `
- This text is only for screen readers
+ Form Components should go here
`;
diff --git a/src/core/client/ui/components/InputDescription/index.ts b/src/core/client/ui/components/v2/InputDescription/index.ts
similarity index 100%
rename from src/core/client/ui/components/InputDescription/index.ts
rename to src/core/client/ui/components/v2/InputDescription/index.ts
diff --git a/src/core/client/ui/components/v2/InputLabel/InputLabel.css b/src/core/client/ui/components/v2/InputLabel/InputLabel.css
index e1bc5768e..f652e43f7 100644
--- a/src/core/client/ui/components/v2/InputLabel/InputLabel.css
+++ b/src/core/client/ui/components/v2/InputLabel/InputLabel.css
@@ -1,9 +1,9 @@
.root {
display: block;
- font-size: var(--v2-font-size-2);
- font-weight: var(--v2-font-weight-primary-bold);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
- color: var(--v2-colors-mono-500);
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-500);
}
diff --git a/src/core/client/ui/components/v2/Label/Label.css b/src/core/client/ui/components/v2/Label/Label.css
index 100976323..f387400e0 100644
--- a/src/core/client/ui/components/v2/Label/Label.css
+++ b/src/core/client/ui/components/v2/Label/Label.css
@@ -1,9 +1,9 @@
.root {
- color: var(--v2-palette-input-label);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-reset);
- font-weight: var(--v2-font-weight-primary-bold);
- font-family: var(--v2-font-family-primary);
+ color: var(--palette-text-500);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
+ font-weight: var(--font-weight-primary-bold);
+ font-family: var(--font-family-primary);
padding-left: 0;
display: block;
}
diff --git a/src/core/client/ui/components/v2/ListGroup/ListGroup.css b/src/core/client/ui/components/v2/ListGroup/ListGroup.css
index c868d5411..c6231d74b 100644
--- a/src/core/client/ui/components/v2/ListGroup/ListGroup.css
+++ b/src/core/client/ui/components/v2/ListGroup/ListGroup.css
@@ -1,5 +1,5 @@
.root {
- border: 1px solid var(--v2-colors-grey-300);
+ border: 1px solid var(--palette-grey-300);
border-radius: var(--round-corners);
overflow-y: auto;
}
diff --git a/src/core/client/ui/components/v2/ListGroup/ListGroupRow.css b/src/core/client/ui/components/v2/ListGroup/ListGroupRow.css
index f8e8901de..2cdf7a9db 100644
--- a/src/core/client/ui/components/v2/ListGroup/ListGroupRow.css
+++ b/src/core/client/ui/components/v2/ListGroup/ListGroupRow.css
@@ -1,6 +1,6 @@
.root {
- border-bottom: 1px solid var(--v2-colors-grey-200);
- padding: var(--v2-spacing-2);
+ border-bottom: 1px solid var(--palette-grey-200);
+ padding: var(--spacing-2);
&:last-child {
border-bottom: none;
diff --git a/src/core/client/ui/components/v2/Marker/Count.css b/src/core/client/ui/components/v2/Marker/Count.css
index 86f07c13f..ba78d0626 100644
--- a/src/core/client/ui/components/v2/Marker/Count.css
+++ b/src/core/client/ui/components/v2/Marker/Count.css
@@ -1,6 +1,6 @@
.root {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
font-size: 0.8125rem;
letter-spacing: calc(-0.35em / 13);
diff --git a/src/core/client/ui/components/v2/Marker/Marker.css b/src/core/client/ui/components/v2/Marker/Marker.css
index d88db08e0..42b973165 100644
--- a/src/core/client/ui/components/v2/Marker/Marker.css
+++ b/src/core/client/ui/components/v2/Marker/Marker.css
@@ -1,9 +1,9 @@
-$markerReportedColor: var(--v2-colors-red-500);
-$markerPendingColor: var(--v2-colors-teal-700);
+$markerReportedColor: var(--palette-error-500);
+$markerPendingColor: $colors-teal-700;
.root {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
font-size: 0.8125rem;
letter-spacing: calc(-0.35em / 13);
@@ -26,7 +26,7 @@ $markerPendingColor: var(--v2-colors-teal-700);
}
.variantFilled {
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
&.colorReported {
background-color: $markerReportedColor;
border-color: $markerReportedColor;
diff --git a/src/core/client/ui/components/v2/MatchMedia/MatchMedia.tsx b/src/core/client/ui/components/v2/MatchMedia/MatchMedia.tsx
index 425f42e66..5d34dc46c 100644
--- a/src/core/client/ui/components/v2/MatchMedia/MatchMedia.tsx
+++ b/src/core/client/ui/components/v2/MatchMedia/MatchMedia.tsx
@@ -2,10 +2,10 @@ import React, { FunctionComponent, ReactNode } from "react";
import Responsive, { MediaQueryMatchers } from "react-responsive";
import { UIContext } from "coral-ui/components/v2";
-import theme from "coral-ui/theme/variables2";
+import breakpoints from "coral-ui/theme/breakpoints";
import { PropTypesOf } from "coral-ui/types";
-type Breakpoints = keyof typeof theme.breakpoints;
+type Breakpoints = keyof typeof breakpoints;
interface Props {
/** greater than or equal width. */
@@ -40,14 +40,14 @@ export const MatchMedia: FunctionComponent = (props) => {
// react-responsive supports the speech prop.
aural: speech,
minWidth: gtWidth
- ? theme.breakpoints[gtWidth] + 1
+ ? breakpoints[gtWidth] + 1
: gteWidth
- ? theme.breakpoints[gteWidth]
+ ? breakpoints[gteWidth]
: undefined,
maxWidth: ltWidth
- ? theme.breakpoints[ltWidth] - 1
+ ? breakpoints[ltWidth] - 1
: lteWidth
- ? theme.breakpoints[lteWidth]
+ ? breakpoints[lteWidth]
: undefined,
};
return ;
diff --git a/src/core/client/ui/components/v2/Message/Message.css b/src/core/client/ui/components/v2/Message/Message.css
index 1a9bfef75..d72dccffd 100644
--- a/src/core/client/ui/components/v2/Message/Message.css
+++ b/src/core/client/ui/components/v2/Message/Message.css
@@ -1,30 +1,30 @@
-$messageErrorBackgroundColor: var(--v2-colors-red-500);
-$messageErrorForegroundColor: var(--v2-colors-pure-white);
+$messageErrorBackgroundColor: var(--palette-error-500);
+$messageErrorForegroundColor: var(--palette-text-000);
.root {
position: relative;
display: inline-flex;
justify-content: flex-start;
align-items: center;
- padding: var(--v2-spacing-1) var(--v2-spacing-2);
+ padding: var(--spacing-1) var(--spacing-2);
box-sizing: border-box;
border-radius: var(--round-corners);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-title);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
}
.colorGrey {
- background-color: var(--palette-common-white);
- border-color: var(--palette-grey-main);
- color: var(--palette-grey-main);
+ background-color: inherit;
+ border-color: var(--palette-grey-500);
+ color: var(--palette-grey-500);
}
.colorDark {
- background-color: var(--palette-text-primary);
+ background-color: var(--palette-text-500);
border-width: 0px;
- color: var(--palette-text-light);
+ color: var(--palette-text-000);
}
.colorError {
@@ -33,11 +33,11 @@ $messageErrorForegroundColor: var(--v2-colors-pure-white);
}
.colorPrimary {
- background-color: var(--palette-primary-light);
- border-color: var(--palette-primary-darkest);
+ background-color: $colors-teal-300;
+ border-color: $colors-teal-900;
border-width: 0px;
border-left-width: calc(0.5 * var(--mini-unit));
- color: var(--palette-text-light);
+ color: var(--palette-text-000);
}
.fullWidth {
diff --git a/src/core/client/ui/components/v2/Message/MessageIcon.tsx b/src/core/client/ui/components/v2/Message/MessageIcon.tsx
index 533bf040b..8bbccd7be 100644
--- a/src/core/client/ui/components/v2/Message/MessageIcon.tsx
+++ b/src/core/client/ui/components/v2/Message/MessageIcon.tsx
@@ -1,9 +1,10 @@
import cn from "classnames";
import React, { FunctionComponent, HTMLAttributes, Ref } from "react";
-import Icon, { IconProps } from "coral-ui/components/Icon";
import { withForwardRef, withStyles } from "coral-ui/hocs";
+import Icon, { IconProps } from "../Icon";
+
import styles from "./MessageIcon.css";
interface Props extends Omit, "color"> {
diff --git a/src/core/client/ui/components/v2/Modal/Modal.css b/src/core/client/ui/components/v2/Modal/Modal.css
index 92b04ca37..1c67b8304 100644
--- a/src/core/client/ui/components/v2/Modal/Modal.css
+++ b/src/core/client/ui/components/v2/Modal/Modal.css
@@ -5,7 +5,7 @@
width: 100%;
height: 100%;
box-sizing: border-box;
- z-index: var(--zindex-modal);
+ z-index: $zindex-modal;
}
.scroll {
diff --git a/src/core/client/ui/components/v2/Modal/ModalHeader.css b/src/core/client/ui/components/v2/Modal/ModalHeader.css
index a3b445dc1..3589c3bf4 100644
--- a/src/core/client/ui/components/v2/Modal/ModalHeader.css
+++ b/src/core/client/ui/components/v2/Modal/ModalHeader.css
@@ -1,6 +1,6 @@
-$modal-header-background: var(--v2-colors-white-500);
+$modal-header-background: $colors-white-500;
.root {
background-color: $modal-header-background;
- padding: var(--v2-spacing-4);
+ padding: var(--spacing-4);
}
diff --git a/src/core/client/ui/components/v2/PasswordField/PasswordField.css b/src/core/client/ui/components/v2/PasswordField/PasswordField.css
index 707be40cd..9aad2892f 100644
--- a/src/core/client/ui/components/v2/PasswordField/PasswordField.css
+++ b/src/core/client/ui/components/v2/PasswordField/PasswordField.css
@@ -5,27 +5,59 @@
box-sizing: border-box;
}
+
+.input {
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
+ display: block;
+ padding: var(--spacing-2);
+ border-radius: var(--round-corners);
+ width: 100%;
+ height: 100%;
+ box-sizing: border-box;
+
+ &:read-only {
+ background-color: var(--palette-background-input-disabled);
+ }
+ &:disabled {
+ background-color: var(--palette-background-input-disabled);
+ border-color: var(--palette-text-input-disabled);
+ }
+ &:focus {
+ outline: none;
+ }
+ &::placeholder {
+ color: var(--palette-text-placeholder);
+ }
+}
+
.colorRegular {
- background-color: var(--v2-palette-input-background);
- color: var(--v2-palette-input-value);
- border: 1px solid var(--v2-palette-input-border);
+ background-color: var(--palette-background-input);
+ color: var(--palette-text-500);
+ border: 1px solid var(--palette-grey-500);
+ &:focus {
+ border: 1px solid $colors-teal-500;
+ box-shadow: inset 0px 0px 0px 1px $colors-teal-500;
+ }
}
.colorStreamBlue {
- background-color: var(--v2-palette-input-background);
- color: var(--v2-palette-input-value);
- border: 1px solid var(--v2-palette-input-border);
+ background-color: var(--palette-background-input);
+ color: var(--palette-text-500);
+ border: 1px solid var(--palette-grey-500);
&:focus {
- border: 1px solid var(--v2-colors-stream-blue-500);
- box-shadow: inset 0px 0px 0px 1px var(--v2-colors-stream-blue-500);
+ border: 1px solid var(--palette-primary-500);
+ box-shadow: inset 0px 0px 0px 1px var(--palette-primary-500);
}
}
.colorError {
- background-color: var(--v2-palette-input-background);
- border-color: var(--v2-colors-red-500);
- border: 2px solid var(--v2-colors-red-500);
+ background-color: var(--palette-background-input);
+ border-color: var(--palette-error-500);
+ border: 2px solid var(--palette-error-500);
}
.fullWidth {
@@ -52,32 +84,3 @@
/* ie11 specific css */
_:-ms-lang(x), .icon { top: 8px; }
-
-.input {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-reset);
- display: block;
- padding: var(--v2-spacing-2);
- border-radius: var(--round-corners);
- width: 100%;
- height: 100%;
- box-sizing: border-box;
-
- &:read-only {
- background-color: var(--v2-palette-input-disabled-background);
- }
- &:disabled {
- background-color: var(--v2-palette-input-disabled-background);
- border-color: var(--v2-palette-input-disabled-foreground);
- }
- &:focus {
- outline: none;
- border: 1px solid var(--v2-palette-input-focused-border);
- box-shadow: inset 0px 0px 0px 1px var(--v2-palette-input-focused-border);
- }
- &::placeholder {
- color: var(--v2-palette-input-placeholder);
- }
-}
diff --git a/src/core/client/ui/components/v2/PasswordField/PasswordField.tsx b/src/core/client/ui/components/v2/PasswordField/PasswordField.tsx
index 83fb28ef8..215b3f1fa 100644
--- a/src/core/client/ui/components/v2/PasswordField/PasswordField.tsx
+++ b/src/core/client/ui/components/v2/PasswordField/PasswordField.tsx
@@ -7,10 +7,9 @@ import React, {
KeyboardEvent,
} from "react";
+import Icon from "coral-ui/components/v2/Icon";
import { withStyles } from "coral-ui/hocs";
-import Icon from "coral-ui/components/Icon";
-
import styles from "./PasswordField.css";
export interface PasswordFieldProps {
diff --git a/src/core/client/ui/components/v2/Popover/Arrow.css b/src/core/client/ui/components/v2/Popover/Arrow.css
index e1a56a025..8a515e3bd 100644
--- a/src/core/client/ui/components/v2/Popover/Arrow.css
+++ b/src/core/client/ui/components/v2/Popover/Arrow.css
@@ -1,7 +1,7 @@
-$popoverBorderColor: var(--v2-colors-grey-400);
-$popoverBackgroundColor: var(--v2-colors-pure-white);
-$popoverDarkBackgroundColor: var(--v2-colors-grey-500);
-$popoverDarkBorderColor: var(--v2-colors-grey-500);
+$popoverBorderColor: var(--palette-grey-400);
+$popoverBackgroundColor: var(--palette-background-popover);
+$popoverDarkBackgroundColor: var(--palette-background-tooltip);
+$popoverDarkBorderColor: var(--palette-background-tooltip);
.root {
position: absolute;
diff --git a/src/core/client/ui/components/v2/Popover/Popover.css b/src/core/client/ui/components/v2/Popover/Popover.css
index a440c53f0..be8c9b172 100644
--- a/src/core/client/ui/components/v2/Popover/Popover.css
+++ b/src/core/client/ui/components/v2/Popover/Popover.css
@@ -1,7 +1,7 @@
-$popoverBorderColor: var(--v2-colors-grey-400);
-$popoverBackgroundColor: var(--v2-colors-pure-white);
-$popoverDarkBackgroundColor: var(--v2-colors-grey-500);
-$popoverDarkBorderColor: var(--v2-colors-grey-500);
+$popoverBorderColor: var(--palette-grey-400);
+$popoverBackgroundColor: var(--palette-background-popover);
+$popoverDarkBackgroundColor: var(--palette-background-tooltip);
+$popoverDarkBorderColor: var(--palette-background-tooltip);
.root {
}
@@ -10,9 +10,9 @@ $popoverDarkBorderColor: var(--v2-colors-grey-500);
background: $popoverBackgroundColor;
border: 1px solid $popoverBorderColor;
box-sizing: border-box;
- box-shadow: var(--elevation-main);
+ box-shadow: var(--shadow-popover);
border-radius: var(--round-corners);
- z-index: var(--zindex-popover);
+ z-index: $zindex-popover;
margin: 2px;
}
diff --git a/src/core/client/ui/components/v2/Popover/Popover.tsx b/src/core/client/ui/components/v2/Popover/Popover.tsx
index 6f3c014a8..bb782c750 100644
--- a/src/core/client/ui/components/v2/Popover/Popover.tsx
+++ b/src/core/client/ui/components/v2/Popover/Popover.tsx
@@ -3,12 +3,12 @@ import React from "react";
import { Manager, Popper, Reference } from "react-popper";
import { oncePerFrame } from "coral-common/utils";
+import { AriaInfo } from "coral-ui/components/v2";
import { withStyles } from "coral-ui/hocs";
import { PropTypesOf } from "coral-ui/types";
-import { AriaInfo } from "coral-ui/components";
-
import Arrow from "./Arrow";
+
import styles from "./Popover.css";
type Placement =
diff --git a/src/core/client/ui/components/Popup/Popup.ts b/src/core/client/ui/components/v2/Popup/Popup.ts
similarity index 100%
rename from src/core/client/ui/components/Popup/Popup.ts
rename to src/core/client/ui/components/v2/Popup/Popup.ts
diff --git a/src/core/client/ui/components/Popup/README.mdx b/src/core/client/ui/components/v2/Popup/README.mdx
similarity index 100%
rename from src/core/client/ui/components/Popup/README.mdx
rename to src/core/client/ui/components/v2/Popup/README.mdx
diff --git a/src/core/client/ui/components/Popup/index.ts b/src/core/client/ui/components/v2/Popup/index.ts
similarity index 100%
rename from src/core/client/ui/components/Popup/index.ts
rename to src/core/client/ui/components/v2/Popup/index.ts
diff --git a/src/core/client/ui/components/v2/RadioButton/RadioButton.css b/src/core/client/ui/components/v2/RadioButton/RadioButton.css
index 53769cde6..8ce189e54 100644
--- a/src/core/client/ui/components/v2/RadioButton/RadioButton.css
+++ b/src/core/client/ui/components/v2/RadioButton/RadioButton.css
@@ -12,20 +12,20 @@
position: relative;
cursor: pointer;
user-select: none;
- color: var(--v2-palette-input-label);
- font-size: var(--v2-font-size-3);
- font-weight: var(--v2-font-weight-primary-regular);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-body-short);
+ color: var(--palette-text-500);
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-field-description);
align-items: center;
}
.labelChecked {
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-weight: var(--font-weight-primary-semi-bold);
}
.labelLight {
- color: var(--palette-text-light);
+ color: var(--palette-text-000);
}
/* Box. */
@@ -35,8 +35,8 @@
display: inline-block;
width: 14px;
height: 14px;
- background: var(--v2-palette-input-background);
- border: 1px solid var(--v2-palette-input-label);
+ background: var(--palette-background-input);
+ border: 1px solid var(--palette-text-500);
border-radius: 50%;
box-sizing: border-box;
flex-shrink: 0;
@@ -49,8 +49,8 @@
/* Box checked */
.input:checked + .label:before {
- border: 1px solid var(--v2-palette-input-label);
- background: var(--v2-palette-input-background);
+ border: 1px solid var(--palette-text-500);
+ background: var(--palette-background-input);
}
/* Disabled state label. */
@@ -62,14 +62,14 @@
/* Disabled box. */
.input:disabled + .label:before {
box-shadow: none;
- border: 1px solid var(--v2-palette-input-disabled-foreground);
- background: var(--v2-palette-input-disabled-background);
+ border: 1px solid var(--palette-text-input-disabled);
+ background: var(--palette-background-input-disabled);
}
/* Checkmark. Could be replaced with an image */
.input:checked + .label:after {
content: "";
- background: var(--v2-palette-input-label);
+ background: var(--palette-text-500);
border-radius: 50%;
position: absolute;
left: 3px;
@@ -79,5 +79,5 @@
}
.input:checked:disabled + .label:after {
- background: var(--v2-palette-input-disabled-background);
+ background: var(--palette-background-input-disabled);
}
diff --git a/src/core/client/ui/components/v2/RadioButton/RadioButton.tsx b/src/core/client/ui/components/v2/RadioButton/RadioButton.tsx
index e75bc3633..6508dfc93 100644
--- a/src/core/client/ui/components/v2/RadioButton/RadioButton.tsx
+++ b/src/core/client/ui/components/v2/RadioButton/RadioButton.tsx
@@ -2,7 +2,7 @@ import cn from "classnames";
import React, { ChangeEvent, Component, EventHandler, FocusEvent } from "react";
import { v4 as uuid } from "uuid";
-import { Flex } from "coral-ui/components";
+import { Flex } from "coral-ui/components/v2";
import { withKeyboardFocus, withStyles } from "coral-ui/hocs";
import styles from "./RadioButton.css";
diff --git a/src/core/client/ui/components/v2/SelectField/OptGroup.spec.tsx b/src/core/client/ui/components/v2/SelectField/OptGroup.spec.tsx
index e2f3ace37..2bf24d7db 100644
--- a/src/core/client/ui/components/v2/SelectField/OptGroup.spec.tsx
+++ b/src/core/client/ui/components/v2/SelectField/OptGroup.spec.tsx
@@ -2,6 +2,7 @@ import React from "react";
import TestRenderer from "react-test-renderer";
import { PropTypesOf } from "coral-ui/types";
+
import OptGroup from "./OptGroup";
it("renders correctly", () => {
diff --git a/src/core/client/ui/components/v2/SelectField/Option.spec.tsx b/src/core/client/ui/components/v2/SelectField/Option.spec.tsx
index 7b010ebf7..9cedda3cf 100644
--- a/src/core/client/ui/components/v2/SelectField/Option.spec.tsx
+++ b/src/core/client/ui/components/v2/SelectField/Option.spec.tsx
@@ -2,6 +2,7 @@ import React from "react";
import TestRenderer from "react-test-renderer";
import { PropTypesOf } from "coral-ui/types";
+
import Option from "./Option";
it("renders correctly", () => {
diff --git a/src/core/client/ui/components/v2/SelectField/SelectField.css b/src/core/client/ui/components/v2/SelectField/SelectField.css
index ef73d3fc0..d36bb0ada 100644
--- a/src/core/client/ui/components/v2/SelectField/SelectField.css
+++ b/src/core/client/ui/components/v2/SelectField/SelectField.css
@@ -8,26 +8,26 @@
display: inline-flex;
justify-content: center;
align-items: center;
- right: var(--v2-spacing-2);
+ right: var(--spacing-2);
height: 100%;
user-select: none;
pointer-events: none;
}
.keyboardFocus:focus {
- outline: 1px solid var(--v2-palette-input-focused-border);
- border: 1px solid var(--v2-palette-input-focused-border);
+ outline: 1px solid $colors-teal-500;
+ border: 1px solid $colors-teal-500;
}
.selectFont {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
}
.selectColor {
- color: var(--v2-palette-input-value);
+ color: var(--palette-text-500);
}
.select {
@@ -48,14 +48,15 @@
}
&:disabled {
- background-color: var(--v2-palette-input-disabled-background);
+ background-color: var(--palette-background-input-disabled);
+ color: var(--palette-text-input-disabled);
}
border-radius: var(--round-corners);
- background-color: var(--v2-palette-input-background);
- border: 1px solid var(--v2-palette-input-border);
- padding: calc(var(--v2-spacing-2) - 2px) var(--v2-spacing-6)
- calc(var(--v2-spacing-2) - 2px) var(--v2-spacing-2);
+ background-color: var(--palette-background-input);
+ border: 1px solid var(--palette-grey-500);
+ padding: calc(var(--spacing-2) - 2px) var(--spacing-6)
+ calc(var(--spacing-2) - 2px) var(--spacing-2);
&::-ms-expand {
display: none;
@@ -67,5 +68,5 @@
}
.afterWrapperDisabled {
- color: var(--v2-palette-input-value);
+ color: var(--palette-text-500);
}
diff --git a/src/core/client/ui/components/v2/SelectField/SelectField.spec.tsx b/src/core/client/ui/components/v2/SelectField/SelectField.spec.tsx
index 4f72525b8..c06a6f750 100644
--- a/src/core/client/ui/components/v2/SelectField/SelectField.spec.tsx
+++ b/src/core/client/ui/components/v2/SelectField/SelectField.spec.tsx
@@ -3,6 +3,7 @@ import React from "react";
import TestRenderer from "react-test-renderer";
import { PropTypesOf } from "coral-ui/types";
+
import SelectField from "./SelectField";
it("renders correctly", () => {
diff --git a/src/core/client/ui/components/v2/SelectField/SelectField.tsx b/src/core/client/ui/components/v2/SelectField/SelectField.tsx
index 32ddc5d3a..ee227a006 100644
--- a/src/core/client/ui/components/v2/SelectField/SelectField.tsx
+++ b/src/core/client/ui/components/v2/SelectField/SelectField.tsx
@@ -1,8 +1,12 @@
import cn from "classnames";
-import React, { ChangeEvent, EventHandler, FocusEvent } from "react";
-import { FunctionComponent } from "react";
+import React, {
+ ChangeEvent,
+ EventHandler,
+ FocusEvent,
+ FunctionComponent,
+} from "react";
-import Icon from "coral-ui/components/Icon";
+import Icon from "coral-ui/components/v2/Icon";
import { withKeyboardFocus, withStyles } from "coral-ui/hocs";
import styles from "./SelectField.css";
diff --git a/src/core/client/ui/components/v2/Spinner/Spinner.css b/src/core/client/ui/components/v2/Spinner/Spinner.css
index 6a2739702..1f56a3a41 100644
--- a/src/core/client/ui/components/v2/Spinner/Spinner.css
+++ b/src/core/client/ui/components/v2/Spinner/Spinner.css
@@ -12,7 +12,7 @@
}
.path {
- stroke: var(--v2-palette-primary-main);
+ stroke: var(--palette-primary-700);
stroke-dasharray: 187;
stroke-dashoffset: 0;
transform-origin: center;
@@ -21,10 +21,10 @@
@keyframes colors {
0% {
- stroke: var(--v2-palette-primary-main);
+ stroke: var(--palette-primary-700);
}
100% {
- stroke: var(--v2-palette-primary-light);
+ stroke: var(--palette-primary-300);
}
}
diff --git a/src/core/client/ui/components/v2/Steps/Circle.css b/src/core/client/ui/components/v2/Steps/Circle.css
index f991f5678..aaea9557d 100644
--- a/src/core/client/ui/components/v2/Steps/Circle.css
+++ b/src/core/client/ui/components/v2/Steps/Circle.css
@@ -2,8 +2,8 @@
display: inline-block;
width: 20px;
height: 20px;
- background-color: var(--v2-colors-pure-white);
- border: 2px solid var(--v2-colors-grey-400);
+ background-color: inherit;
+ border: 2px solid var(--palette-grey-400);
box-sizing: border-box;
border-radius: 100%;
z-index: 1;
@@ -11,12 +11,12 @@
.active,
.completed {
- background-color: var(--v2-colors-green-400);
- border-color: var(--v2-colors-green-400);
+ background-color: var(--palette-success-400);
+ border-color: var(--palette-success-400);
}
.icon {
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
font-weight: bold;
margin-top: -8px;
margin-left: 1px;
diff --git a/src/core/client/ui/components/v2/Steps/Line.css b/src/core/client/ui/components/v2/Steps/Line.css
index 9e3c4b2e3..6d8262a60 100644
--- a/src/core/client/ui/components/v2/Steps/Line.css
+++ b/src/core/client/ui/components/v2/Steps/Line.css
@@ -2,11 +2,11 @@
display: inline-block;
width: 200px;
height: 0px;
- border: 1px solid var(--v2-colors-grey-400);
+ border: 1px solid var(--palette-grey-400);
box-sizing: border-box;
z-index: 1;
}
.completed {
- border-color: var(--v2-colors-green-400);
+ border-color: var(--palette-success-400);
}
diff --git a/src/core/client/ui/components/v2/Steps/Step.css b/src/core/client/ui/components/v2/Steps/Step.css
index 799f950e2..002784686 100644
--- a/src/core/client/ui/components/v2/Steps/Step.css
+++ b/src/core/client/ui/components/v2/Steps/Step.css
@@ -3,12 +3,12 @@
}
.text {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-5);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-5);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
position: absolute;
top: 26px;
diff --git a/src/core/client/ui/components/v2/SubBar/NavigationItem.css b/src/core/client/ui/components/v2/SubBar/NavigationItem.css
index da37e281f..ca03874ae 100644
--- a/src/core/client/ui/components/v2/SubBar/NavigationItem.css
+++ b/src/core/client/ui/components/v2/SubBar/NavigationItem.css
@@ -1,13 +1,13 @@
-$navigation-item-selected: var(--v2-colors-teal-600);
-$navigation-item-default: var(--v2-colors-mono-100);
+$navigation-item-selected: $colors-teal-600;
+$navigation-item-default: var(--palette-text-100);
.root {
height: 100%;
}
.anchor {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
font-size: var(--font-size-2);
text-transform: uppercase;
color: $navigation-item-default;
@@ -16,7 +16,7 @@ $navigation-item-default: var(--v2-colors-mono-100);
align-items: center;
text-decoration: none;
box-sizing: border-box;
- padding: var(--v2-spacing-3) 0;
+ padding: var(--spacing-3) 0;
border-bottom: 3px solid transparent;
&:hover {
cursor: pointer;
@@ -30,7 +30,7 @@ $navigation-item-default: var(--v2-colors-mono-100);
}
.active {
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
border-bottom: 3px solid $navigation-item-selected;
color: $navigation-item-selected;
}
diff --git a/src/core/client/ui/components/v2/SubBar/SubBar.css b/src/core/client/ui/components/v2/SubBar/SubBar.css
index 012b6db98..0d7112e1b 100644
--- a/src/core/client/ui/components/v2/SubBar/SubBar.css
+++ b/src/core/client/ui/components/v2/SubBar/SubBar.css
@@ -1,5 +1,5 @@
-$sub-bar-background: var(--v2-colors-pure-white);
-$sub-bar-border: var(--v2-colors-grey-300);
+$sub-bar-background: inherit;
+$sub-bar-border: var(--palette-grey-300);
.root {
background-color: $sub-bar-background;
diff --git a/src/core/client/ui/components/v2/SubBar/SubBar.tsx b/src/core/client/ui/components/v2/SubBar/SubBar.tsx
index 6576cac8b..7e9a50d29 100644
--- a/src/core/client/ui/components/v2/SubBar/SubBar.tsx
+++ b/src/core/client/ui/components/v2/SubBar/SubBar.tsx
@@ -1,7 +1,7 @@
import cn from "classnames";
import React, { FunctionComponent, HTMLAttributes } from "react";
-import { Flex } from "coral-ui/components";
+import { Flex } from "coral-ui/components/v2";
import { withStyles } from "coral-ui/hocs";
import styles from "./SubBar.css";
diff --git a/src/core/client/ui/components/v2/Table/Table.spec.tsx b/src/core/client/ui/components/v2/Table/Table.spec.tsx
index 3f3c7dae7..d1e96d01d 100644
--- a/src/core/client/ui/components/v2/Table/Table.spec.tsx
+++ b/src/core/client/ui/components/v2/Table/Table.spec.tsx
@@ -1,7 +1,7 @@
import React from "react";
import { createRenderer } from "react-test-renderer/shallow";
-import { Table, TableBody, TableCell, TableHead, TableRow } from ".";
+import { Table, TableBody, TableCell, TableHead, TableRow } from "./";
it("renders correctly", () => {
const renderer = createRenderer();
diff --git a/src/core/client/ui/components/v2/Table/TableCell.css b/src/core/client/ui/components/v2/Table/TableCell.css
index ede14d04d..2492f7b47 100644
--- a/src/core/client/ui/components/v2/Table/TableCell.css
+++ b/src/core/client/ui/components/v2/Table/TableCell.css
@@ -1,5 +1,5 @@
-$tableBodyTextColor: var(--v2-colors-mono-500);
-$tableHeaderTextColor: var(--v2-colors-mono-500);
+$tableBodyTextColor: var(--palette-text-500);
+$tableHeaderTextColor: var(--palette-text-500);
.root {
/* acts like min-width in a cell */
@@ -10,19 +10,19 @@ $tableHeaderTextColor: var(--v2-colors-mono-500);
}
.header {
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-reset);
- font-weight: var(--v2-font-weight-primary-bold);
- font-size: var(--v2-font-size-2);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ font-weight: var(--font-weight-primary-bold);
+ font-size: var(--font-size-2);
color: $tableHeaderTextColor;
- padding: var(--v2-spacing-3);
+ padding: var(--spacing-3);
}
.body {
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-title);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
color: $tableBodyTextColor;
}
diff --git a/src/core/client/ui/components/v2/Table/TableHead.css b/src/core/client/ui/components/v2/Table/TableHead.css
index 7cc07fc6f..8f21f0d91 100644
--- a/src/core/client/ui/components/v2/Table/TableHead.css
+++ b/src/core/client/ui/components/v2/Table/TableHead.css
@@ -1,4 +1,4 @@
-$tableHeaderBackgroundColor: var(--v2-colors-grey-200);
+$tableHeaderBackgroundColor: var(--palette-grey-200);
.root {
background: $tableHeaderBackgroundColor;
diff --git a/src/core/client/ui/components/v2/Table/TableRow.css b/src/core/client/ui/components/v2/Table/TableRow.css
index 7c0f282b7..9d8c9af39 100644
--- a/src/core/client/ui/components/v2/Table/TableRow.css
+++ b/src/core/client/ui/components/v2/Table/TableRow.css
@@ -1,5 +1,5 @@
-$tableHighlightColor: var(--v2-colors-grey-100);
-$tableHoverColor: var(--v2-colors-teal-100);
+$tableHighlightColor: var(--palette-grey-100);
+$tableHoverColor: $colors-teal-100;
.root {
box-sizing: border-box;
diff --git a/src/core/client/ui/components/v2/Tabs/Tab.css b/src/core/client/ui/components/v2/Tabs/Tab.css
index 79d0e043a..295be8456 100644
--- a/src/core/client/ui/components/v2/Tabs/Tab.css
+++ b/src/core/client/ui/components/v2/Tabs/Tab.css
@@ -1,8 +1,8 @@
-$tab-selected: var(--v2-colors-teal-600);
-$tab-default: var(--v2-colors-mono-100);
+$tab-selected: $colors-teal-600;
+$tab-default: var(--palette-text-100);
-$tab-stream-selected: var(--v2-colors-stream-blue-500);
-$tab-stream-default: var(--v2-colors-mono-500);
+$tab-stream-selected: var(--palette-primary-500);
+$tab-stream-default: var(--palette-text-500);
.root {
display: inline-block;
@@ -20,76 +20,76 @@ $tab-stream-default: var(--v2-colors-mono-500);
}
.root:first-child .primary {
- border-top-left-radius: var(--v2-round-corners);
+ border-top-left-radius: var(--round-corners);
}
.root:last-child .primary {
- border-top-right-radius: var(--v2-round-corners);
+ border-top-right-radius: var(--round-corners);
}
.default {
- margin-right: var(--v2-spacing-3);
+ margin-right: var(--spacing-3);
margin-bottom: -1px;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
color: $tab-default;
- padding-bottom: calc(var(--v2-spacing-1) + 2px);
+ padding-bottom: calc(var(--spacing-1) + 2px);
&.active {
color: $tab-selected;
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
border-bottom: 2px solid $tab-selected;
- padding-bottom: var(--v2-spacing-1);
+ padding-bottom: var(--spacing-1);
}
}
.primary {
position: relative;
- background: var(--palette-grey-lightest);
- color: var(--palette-grey-main);
- border: 1px solid var(--palette-grey-lighter);
+ background: var(--palette-grey-200);
+ color: var(--palette-grey-500);
+ border: 1px solid var(--palette-grey-300);
padding: calc(0.5 * var(--mini-unit)) calc(var(--mini-unit) * 2);
&.active {
background-color: var(--palette-common-white);
- color: var(--palette-common-black);
+ color: var(--palette-text-900);
border-bottom: 0;
border-top-width: calc(0.5 * var(--mini-unit));
- border-top-color: var(--palette-primary-main);
+ border-top-color: $colors-teal-700;
border-radius: 0;
z-index: 10;
}
}
.secondary {
- margin-right: var(--v2-spacing-3);
+ margin-right: var(--spacing-3);
margin-bottom: -1px;
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
color: $tab-default;
- padding-bottom: var(--v2-spacing-2);
+ padding-bottom: var(--spacing-2);
&.active {
color: $tab-selected;
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
border-bottom: 3px solid $tab-selected;
- padding-bottom: calc(var(--v2-spacing-2) - 3px);
+ padding-bottom: calc(var(--spacing-2) - 3px);
}
}
.streamSecondary {
- margin-right: var(--v2-spacing-3);
+ margin-right: var(--spacing-3);
margin-bottom: -1px;
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
color: $tab-stream-default;
- padding-bottom: var(--v2-spacing-2);
+ padding-bottom: var(--spacing-2);
&.active {
color: $tab-stream-selected;
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
border-bottom: 3px solid $tab-stream-selected;
- padding-bottom: calc(var(--v2-spacing-2) - 3px);
+ padding-bottom: calc(var(--spacing-2) - 3px);
}
}
@@ -99,34 +99,34 @@ $tab-stream-default: var(--v2-colors-mono-500);
margin-right: 0px;
margin-bottom: -1px;
- padding-top: var(--v2-spacing-3);
- padding-bottom: var(--v2-spacing-3);
- padding-left: var(--v2-spacing-6);
- padding-right: var(--v2-spacing-6);
+ padding-top: var(--spacing-3);
+ padding-bottom: var(--spacing-3);
+ padding-left: var(--spacing-6);
+ padding-right: var(--spacing-6);
- background: var(--v2-colors-grey-100);
- border: 1px solid var(--v2-colors-grey-300);
+ background: var(--palette-grey-100);
+ border: 1px solid var(--palette-grey-300);
border-bottom-width: 0px;
- font-family: var(--v2-font-family-secondary);
+ font-family: var(--font-family-secondary);
font-style: normal;
- font-weight: var(--v2-font-weight-secondary-regular);
- font-size: var(--v2-font-size-4);
- line-height: var(--v2-line-height-5);
+ font-weight: var(--font-weight-secondary-regular);
+ font-size: var(--font-size-4);
+ line-height: var(--line-height-5);
- color: var(--v2-colors-mono-500);
+ color: var(--palette-text-500);
&.active {
z-index: 10;
- background-color: var(--v2-colors-pure-white);
+ background-color: var(--palette-background-body);
border-bottom: 0;
border-radius: 0;
- color: var(--v2-colors-stream-blue-500);
- font-weight: var(--v2-font-weight-secondary-bold);
+ color: var(--palette-primary-500);
+ font-weight: var(--font-weight-secondary-bold);
- border-top: 1px solid var(--v2-colors-stream-blue-500);
+ border-top: 1px solid var(--palette-primary-500);
overflow: visible;
}
@@ -140,8 +140,8 @@ $tab-stream-default: var(--v2-colors-mono-500);
width: calc(100% + 2px);
height: 4px;
- background-color: var(--v2-colors-stream-blue-500);
- color: var(--v2-colors-stream-blue-500);
+ background-color: var(--palette-primary-500);
+ color: var(--palette-primary-500);
content: "active";
overflow: hidden;
}
diff --git a/src/core/client/ui/components/v2/Tabs/TabBar.css b/src/core/client/ui/components/v2/Tabs/TabBar.css
index cd7dfd24b..e786a7bb3 100644
--- a/src/core/client/ui/components/v2/Tabs/TabBar.css
+++ b/src/core/client/ui/components/v2/Tabs/TabBar.css
@@ -1,6 +1,6 @@
-$moderateCardTabDefaultColor: var(--v2-colors-grey-100);
-$moderateCardTabPrimaryColor: var(--v2-colors-grey-300);
-$moderateCardTabSecondaryColor: var(--v2-palette-divider);
+$moderateCardTabDefaultColor: var(--palette-grey-100);
+$moderateCardTabPrimaryColor: var(--palette-grey-300);
+$moderateCardTabSecondaryColor: var(--palette-divider);
.root {
display: flex;
diff --git a/src/core/client/ui/components/v2/Tag/Tag.css b/src/core/client/ui/components/v2/Tag/Tag.css
index d8eafbba2..023ea6a99 100644
--- a/src/core/client/ui/components/v2/Tag/Tag.css
+++ b/src/core/client/ui/components/v2/Tag/Tag.css
@@ -1,21 +1,21 @@
-$tag-color-primary: var(--v2-palette-primary-main);
-$tag-color-primary-light: var(--v2-palette-primary-lightest);
-$tag-color-grey: var(--v2-palette-grey-main);
-$tag-color-grey-light: var(--v2-palette-grey-light);
-$tag-color-error: var(--v2-palette-error-main);
-$tag-color-error-light: var(--v2-palette-error-lightest);
-$tag-color-dark: var(--v2-palette-primary-darkest);
-$tag-color-dark-light: var(--v2-palette-primary-lightest);
-$tag-text-color: var(--v2-palette-text-light);
-$tag-pill-bg: var(--v2-colors-pure-white);
+$tag-color-primary: $colors-teal-700;
+$tag-color-primary-light: $colors-teal-100;
+$tag-color-grey: var(--palette-grey-500);
+$tag-color-grey-light: var(--palette-grey-100);
+$tag-color-error: var(--palette-error-500);
+$tag-color-error-light: var(--palette-error-100);
+$tag-color-dark: $colors-teal-900;
+$tag-color-dark-light: $colors-teal-100;
+$tag-text-color: var(--palette-text-000);
+$tag-pill-bg: inherit;
.root {
- font-size: var(--v2-font-size-2);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-size: var(--font-size-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-semi-bold);
color: $tag-text-color;
- line-height: var(--v2-line-height-reset);
- padding: var(--v2-spacing-1);
+ line-height: var(--line-height-3);
+ padding: var(--spacing-1);
white-space: nowrap;
border-radius: 2px;
display: inline-block;
@@ -38,7 +38,7 @@ $tag-pill-bg: var(--v2-colors-pure-white);
}
.colorStreamBlue {
- background-color: var(--v2-colors-stream-blue-500);
+ background-color: var(--palette-primary-500);
}
.variantPill {
@@ -62,8 +62,8 @@ $tag-pill-bg: var(--v2-colors-pure-white);
color: $tag-color-dark;
}
&.colorStreamBlue {
- border: 1px solid var(--v2-colors-stream-blue-500);
- color: var(--v2-colors-stream-blue-500);
+ border: 1px solid var(--palette-primary-500);
+ color: var(--palette-primary-500);
}
}
diff --git a/src/core/client/ui/components/v2/TextField/TextField.css b/src/core/client/ui/components/v2/TextField/TextField.css
index 79f1f03a0..51125dcf0 100644
--- a/src/core/client/ui/components/v2/TextField/TextField.css
+++ b/src/core/client/ui/components/v2/TextField/TextField.css
@@ -1,14 +1,14 @@
-$input-value: var(--v2-colors-mono-500);
-$input-border: var(--v2-colors-grey-500);
-$input-background: var(--v2-colors-pure-white);
-$input-placeholder: var(--v2-colors-mono-100);
-$input-regular-focused-border: var(--v2-colors-teal-500);
-$input-streamBlue-focused-border: var(--v2-colors-stream-blue-500);
-$input-disabled-background: var(--v2-colors-white-500);
-$input-disabled-value: var(--v2-colors-grey-400);
-$input-disabled-border: var(--v2-colors-grey-400);
-$input-error-border: var(--v2-colors-red-500);
-$input-dark-focused-border: var(--v2-colors-blue-500);
+$input-value: var(--palette-text-500);
+$input-border: var(--palette-grey-500);
+$input-background: var(--palette-background-input);
+$input-placeholder: var(--palette-text-placeholder);
+$input-regular-focused-border: $colors-teal-500;
+$input-streamBlue-focused-border: var(--palette-primary-500);
+$input-disabled-background: var(--palette-background-input-disabled);
+$input-disabled-value: var(--palette-text-input-disabled);
+$input-disabled-border: var(--palette-grey-400);
+$input-error-border: var(--palette-error-500);
+$input-dark-focused-border: $colors-teal-900;
.root {
display: flex;
@@ -18,16 +18,16 @@ $input-dark-focused-border: var(--v2-colors-blue-500);
}
.input {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
position: relative;
display: block;
- padding: var(--v2-spacing-2);
+ padding: var(--spacing-2);
box-sizing: border-box;
background-color: $input-background;
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
border-style: solid;
width: 100%;
align-self: stretch;
@@ -50,12 +50,12 @@ $input-dark-focused-border: var(--v2-colors-blue-500);
}
.adornment {
- margin-left: var(--v2-spacing-2);
+ margin-left: var(--spacing-2);
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
}
.colorRegular {
diff --git a/src/core/client/ui/components/v2/TextField/TextField.tsx b/src/core/client/ui/components/v2/TextField/TextField.tsx
index aba3f63f4..422d13282 100644
--- a/src/core/client/ui/components/v2/TextField/TextField.tsx
+++ b/src/core/client/ui/components/v2/TextField/TextField.tsx
@@ -107,6 +107,7 @@ const TextField: FunctionComponent = (props) => {
[classes.colorRegular]: color === "regular",
[classes.colorError]: color === "error",
[classes.colorDark]: color === "dark",
+ [classes.colorStreamBlue]: color === "streamBlue",
[classes.textAlignCenter]: textAlignCenter,
[classes.seamlessAdornment]: variant === "seamlessAdornment",
});
diff --git a/src/core/client/ui/components/v2/TextFieldAdornment/TextFieldAdornment.css b/src/core/client/ui/components/v2/TextFieldAdornment/TextFieldAdornment.css
index 5284935ba..46bb62af8 100644
--- a/src/core/client/ui/components/v2/TextFieldAdornment/TextFieldAdornment.css
+++ b/src/core/client/ui/components/v2/TextFieldAdornment/TextFieldAdornment.css
@@ -1,7 +1,7 @@
.root {
- color: var(--v2-palette-input-label);
- font-size: var(--v2-font-size-3);
- font-weight: var(--v2-font-weight-primary-regular);
- font-family: var(--v2-font-family-primary);
- line-height: var(--v2-line-height-title);
+ color: var(--palette-text-500);
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
}
diff --git a/src/core/client/ui/components/v2/TextLink/TextLink.css b/src/core/client/ui/components/v2/TextLink/TextLink.css
index 9a074c8d5..309844ce3 100644
--- a/src/core/client/ui/components/v2/TextLink/TextLink.css
+++ b/src/core/client/ui/components/v2/TextLink/TextLink.css
@@ -1,5 +1,5 @@
.root {
- color: var(--v2-palette-primary-main);
+ color: $colors-teal-700;
text-decoration: underline;
}
diff --git a/src/core/client/ui/components/v2/TextLink/TextLink.tsx b/src/core/client/ui/components/v2/TextLink/TextLink.tsx
index 1237592c9..386b14c13 100644
--- a/src/core/client/ui/components/v2/TextLink/TextLink.tsx
+++ b/src/core/client/ui/components/v2/TextLink/TextLink.tsx
@@ -1,7 +1,7 @@
import cn from "classnames";
-import { Icon } from "coral-ui/components";
import React, { AnchorHTMLAttributes, StatelessComponent } from "react";
+import { Icon } from "coral-ui/components/v2";
import { withStyles } from "coral-ui/hocs";
import styles from "./TextLink.css";
diff --git a/src/core/client/ui/components/v2/Textarea/Textarea.css b/src/core/client/ui/components/v2/Textarea/Textarea.css
index 6f67fec30..cce4e5fbe 100644
--- a/src/core/client/ui/components/v2/Textarea/Textarea.css
+++ b/src/core/client/ui/components/v2/Textarea/Textarea.css
@@ -1,25 +1,26 @@
.root {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-body-short);
- padding: var(--v2-spacing-2);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-field-description);
+ padding: var(--spacing-2);
box-sizing: border-box;
border-radius: var(--round-corners);
- color: var(--v2-palette-input-value);
- background-color: var(--v2-palette-input-background);
- border: 1px solid var(--v2-palette-input-border);
+ color: var(--palette-text-500);
+ background-color: var(--palette-background-input);
+ border: 1px solid var(--palette-grey-500);
&:read-only {
- background-color: var(--v2-palette-input-disabled-background);
+ background-color: var(--palette-background-input-disabled);
}
&:disabled {
- background-color: var(--v2-palette-input-disabled-background);
- border-color: var(--v2-palette-input-disabled-foreground);
+ background-color: var(--palette-background-input-disabled);
+ border-color: var(--palette-text-input-disabled);
+ color: var(--palette-text-input-disabled);
}
&:focus {
outline: none;
- border: 1px solid var(--v2-palette-input-focused-border);
- box-shadow: inset 0px 0px 0px 1px var(--v2-palette-input-focused-border);
+ border: 1px solid $colors-teal-500;
+ box-shadow: inset 0px 0px 0px 1px $colors-teal-500;
}
}
diff --git a/src/core/client/ui/components/TileSelector/README.mdx b/src/core/client/ui/components/v2/TileSelector/README.mdx
similarity index 98%
rename from src/core/client/ui/components/TileSelector/README.mdx
rename to src/core/client/ui/components/v2/TileSelector/README.mdx
index 3c570b038..d83d56d83 100644
--- a/src/core/client/ui/components/TileSelector/README.mdx
+++ b/src/core/client/ui/components/v2/TileSelector/README.mdx
@@ -1,6 +1,6 @@
---
name: TileSelector
-menu: UI Kit v1
+menu: UI Kit v2
---
import { Playground } from "docz";
diff --git a/src/core/client/ui/components/v2/TileSelector/TileOption.css b/src/core/client/ui/components/v2/TileSelector/TileOption.css
new file mode 100644
index 000000000..a8b485185
--- /dev/null
+++ b/src/core/client/ui/components/v2/TileSelector/TileOption.css
@@ -0,0 +1,31 @@
+.input {
+ cursor: pointer;
+ position: absolute; /* take it out of document flow */
+ opacity: 0; /* hide it */
+}
+
+.label {
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-5);
+
+ display: inline-flex;
+ align-items: center;
+ position: relative;
+ cursor: pointer;
+ user-select: none;
+ border: 1px solid var(--palette-grey-300);
+ border-radius: var(--round-corners);
+ color: var(--palette-text-500);
+ padding: var(--spacing-1);
+ line-height: var(--line-height-3);
+ box-sizing: border-box;
+ height: 100%;
+}
+
+.checked {
+ border: 1px solid var(--palette-grey-700);
+ background: var(--palette-grey-700);
+ color: var(--palette-text-000);
+}
diff --git a/src/core/client/ui/components/TileSelector/TileOption.tsx b/src/core/client/ui/components/v2/TileSelector/TileOption.tsx
similarity index 100%
rename from src/core/client/ui/components/TileSelector/TileOption.tsx
rename to src/core/client/ui/components/v2/TileSelector/TileOption.tsx
diff --git a/src/core/client/ui/components/TileSelector/TileSelector.css b/src/core/client/ui/components/v2/TileSelector/TileSelector.css
similarity index 100%
rename from src/core/client/ui/components/TileSelector/TileSelector.css
rename to src/core/client/ui/components/v2/TileSelector/TileSelector.css
diff --git a/src/core/client/ui/components/TileSelector/TileSelector.tsx b/src/core/client/ui/components/v2/TileSelector/TileSelector.tsx
similarity index 96%
rename from src/core/client/ui/components/TileSelector/TileSelector.tsx
rename to src/core/client/ui/components/v2/TileSelector/TileSelector.tsx
index f46056390..5cd47ef24 100644
--- a/src/core/client/ui/components/TileSelector/TileSelector.tsx
+++ b/src/core/client/ui/components/v2/TileSelector/TileSelector.tsx
@@ -1,7 +1,7 @@
import cn from "classnames";
import React, { FunctionComponent, ReactElement, useCallback } from "react";
-import { Flex } from "coral-ui/components";
+import { Flex } from "coral-ui/components/v2";
import styles from "./TileSelector.css";
diff --git a/src/core/client/ui/components/TileSelector/index.ts b/src/core/client/ui/components/v2/TileSelector/index.ts
similarity index 100%
rename from src/core/client/ui/components/TileSelector/index.ts
rename to src/core/client/ui/components/v2/TileSelector/index.ts
diff --git a/src/core/client/ui/components/v2/Timestamp/Timestamp.css b/src/core/client/ui/components/v2/Timestamp/Timestamp.css
index 2375b394e..7a7863955 100644
--- a/src/core/client/ui/components/v2/Timestamp/Timestamp.css
+++ b/src/core/client/ui/components/v2/Timestamp/Timestamp.css
@@ -1,4 +1,4 @@
-$timestampColor: var(--v2-colors-mono-100);
+$timestampColor: var(--palette-text-100);
.root {
cursor: default;
@@ -6,8 +6,8 @@ $timestampColor: var(--v2-colors-mono-100);
.text {
color: $timestampColor;
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-reset);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
}
diff --git a/src/core/client/ui/components/v2/Tooltip/Tooltip.css b/src/core/client/ui/components/v2/Tooltip/Tooltip.css
index a29ee6e9a..6ff72d3e7 100644
--- a/src/core/client/ui/components/v2/Tooltip/Tooltip.css
+++ b/src/core/client/ui/components/v2/Tooltip/Tooltip.css
@@ -1,4 +1,4 @@
-$tooltip-contents: var(--v2-colors-pure-white);
+$tooltip-contents: var(--palette-text-000);
.root {
align-items: center;
@@ -11,19 +11,19 @@ $tooltip-contents: var(--v2-colors-pure-white);
}
.title {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-bold);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-bold);
color: $tooltip-contents;
- line-height: var(--v2-line-height-body-short);
- margin: 0 0 var(--v2-spacing-1) 0;
- font-size: var(--v2-font-size-2);
+ line-height: var(--line-height-4);
+ margin: 0 0 var(--spacing-1) 0;
+ font-size: var(--font-size-2);
}
.contents {
- font-family: var(--v2-font-family-primary);
- font-weight: var(--v2-font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ font-weight: var(--font-weight-primary-regular);
color: $tooltip-contents;
- line-height: var(--v2-line-height-body-short);
+ line-height: var(--line-height-4);
margin: 0;
- font-size: var(--v2-font-size-2);
+ font-size: var(--font-size-2);
}
diff --git a/src/core/client/ui/components/v2/Tooltip/Tooltip.tsx b/src/core/client/ui/components/v2/Tooltip/Tooltip.tsx
index 2e73445d6..1f7a37a0e 100644
--- a/src/core/client/ui/components/v2/Tooltip/Tooltip.tsx
+++ b/src/core/client/ui/components/v2/Tooltip/Tooltip.tsx
@@ -1,8 +1,7 @@
import cn from "classnames";
import React, { FunctionComponent } from "react";
-import { Box, ClickOutside } from "coral-ui/components";
-import { Popover } from "coral-ui/components/v2";
+import { Box, ClickOutside, Popover } from "coral-ui/components/v2";
import { PropTypesOf } from "coral-ui/types";
import styles from "./Tooltip.css";
diff --git a/src/core/client/ui/components/v2/Tooltip/TooltipButton.css b/src/core/client/ui/components/v2/Tooltip/TooltipButton.css
index ba72cfef2..75dfcd06d 100644
--- a/src/core/client/ui/components/v2/Tooltip/TooltipButton.css
+++ b/src/core/client/ui/components/v2/Tooltip/TooltipButton.css
@@ -1,4 +1,4 @@
-$tooltip-button: var(--v2-colors-mono-500);
+$tooltip-button: var(--palette-text-500);
.button {
line-height: 0;
diff --git a/src/core/client/ui/components/v2/Tooltip/TooltipButton.tsx b/src/core/client/ui/components/v2/Tooltip/TooltipButton.tsx
index 658188e0d..8964b1ff4 100644
--- a/src/core/client/ui/components/v2/Tooltip/TooltipButton.tsx
+++ b/src/core/client/ui/components/v2/Tooltip/TooltipButton.tsx
@@ -2,11 +2,10 @@ import cn from "classnames";
import React, { ButtonHTMLAttributes, FunctionComponent, Ref } from "react";
import { BaseButton, Icon } from "coral-ui/components/v2";
+import { IconColor } from "coral-ui/components/v2/Icon/Icon";
import { withForwardRef } from "coral-ui/hocs";
import { PropTypesOf } from "coral-ui/types";
-import { IconColor } from "coral-ui/components/v2/Icon/Icon";
-
import styles from "./TooltipButton.css";
interface Props extends ButtonHTMLAttributes {
diff --git a/src/core/client/ui/components/Typography/README.mdx b/src/core/client/ui/components/v2/Typography/README.mdx
similarity index 99%
rename from src/core/client/ui/components/Typography/README.mdx
rename to src/core/client/ui/components/v2/Typography/README.mdx
index 2436c1a4d..118783e74 100644
--- a/src/core/client/ui/components/Typography/README.mdx
+++ b/src/core/client/ui/components/v2/Typography/README.mdx
@@ -1,6 +1,6 @@
---
name: Typography
-menu: UI Kit v1
+menu: UI Kit v2
---
import { Playground } from "docz";
diff --git a/src/core/client/ui/components/v2/Typography/Typography.css b/src/core/client/ui/components/v2/Typography/Typography.css
new file mode 100644
index 000000000..d49ea4687
--- /dev/null
+++ b/src/core/client/ui/components/v2/Typography/Typography.css
@@ -0,0 +1,232 @@
+.root {
+ margin: 0;
+ padding: 0;
+}
+
+.heading1 {
+ font-size: var(--font-size-6);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-6);
+ color: var(--palette-text-500);
+}
+
+.heading2 {
+ font-size: var(--font-size-5);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-5);
+ color: var(--palette-text-500);
+}
+
+.heading3 {
+ font-size: var(--font-size-4);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
+}
+
+.heading4 {
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-500);
+}
+
+.heading5 {
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-2);
+ color: var(--palette-text-500);
+}
+
+.header1 {
+ font-size: var(--font-size-6);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-6);
+ color: var(--palette-text-500);
+}
+
+.header2 {
+ font-size: var(--font-size-5);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-5);
+ color: var(--palette-text-500);
+}
+
+.header3 {
+ font-size: var(--font-size-4);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
+}
+
+.header4 {
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-500);
+}
+
+.header5 {
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-2);
+ color: var(--palette-text-500);
+}
+
+.bodyCopy {
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
+}
+
+.bodyCopyBold {
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
+}
+
+.bodyShort {
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
+}
+
+.fieldDescription {
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-100);
+}
+
+.button {
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
+}
+
+.buttonLarge {
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-5);
+ color: var(--palette-text-500);
+}
+
+.detail {
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-500);
+}
+
+.timestamp {
+ font-size: var(--font-size-2);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-4);
+ color: var(--palette-text-100);
+}
+
+.alignLeft {
+ text-align: left;
+}
+
+.alignCenter {
+ text-align: center;
+}
+
+.alignRight {
+ text-align: right;
+}
+
+.alignJustify {
+ text-align: justify;
+}
+
+.noWrap {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.gutterBottom {
+ margin-bottom: 0.35em;
+}
+
+.paragraph {
+ margin-bottom: var(--mini-unit);
+}
+
+.colorPrimary {
+ color: $colors-teal-700;
+}
+
+.colorTextPrimary {
+ color: var(--palette-text-500);
+}
+
+.colorTextSecondary {
+ color: var(--palette-text-100);
+}
+
+.colorTextDark {
+ color: var(--palette-text-900);
+}
+
+.colorTextLight {
+ color: var(--palette-text-000);
+}
+
+.colorError {
+ color: var(--palette-error-500);
+}
+
+.colorErrorDark {
+ color: var(--palette-error-600);
+}
+
+.colorWarning {
+ color: "#DC8400";
+}
+
+.colorSuccess {
+ color: var(--palette-success-500);
+}
+
+.inputLabel {
+ font-size: var(--font-size-4);
+ font-weight: var(--font-weight-primary-semi-bold);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-3);
+ color: var(--palette-text-500);
+}
+
+/* V2 Typography */
+
+.bodyCommentV2 {
+ font-size: var(--font-size-3);
+ font-weight: var(--font-weight-primary-regular);
+ font-family: var(--font-family-primary);
+ line-height: var(--line-height-comment-body);
+ color: var(--palette-text-500);
+}
diff --git a/src/core/client/ui/components/Typography/Typography.spec.tsx b/src/core/client/ui/components/v2/Typography/Typography.spec.tsx
similarity index 100%
rename from src/core/client/ui/components/Typography/Typography.spec.tsx
rename to src/core/client/ui/components/v2/Typography/Typography.spec.tsx
diff --git a/src/core/client/ui/components/Typography/Typography.tsx b/src/core/client/ui/components/v2/Typography/Typography.tsx
similarity index 99%
rename from src/core/client/ui/components/Typography/Typography.tsx
rename to src/core/client/ui/components/v2/Typography/Typography.tsx
index d3fd67958..ad4e9f794 100644
--- a/src/core/client/ui/components/Typography/Typography.tsx
+++ b/src/core/client/ui/components/v2/Typography/Typography.tsx
@@ -1,12 +1,11 @@
import cn from "classnames";
import React, { FunctionComponent, ReactNode } from "react";
+/** Needs to be loaded after styles, because Box styles have priority */
+import { Box } from "coral-ui/components/v2";
import { withForwardRef, withStyles } from "coral-ui/hocs";
import { PropTypesOf } from "coral-ui/types";
-/** Needs to be loaded after styles, because Box styles have priority */
-import Box from "../Box";
-
/* In this case the Box styles have higher priority! */
import styles from "./Typography.css";
diff --git a/src/core/client/ui/components/Typography/__snapshots__/Typography.spec.tsx.snap b/src/core/client/ui/components/v2/Typography/__snapshots__/Typography.spec.tsx.snap
similarity index 100%
rename from src/core/client/ui/components/Typography/__snapshots__/Typography.spec.tsx.snap
rename to src/core/client/ui/components/v2/Typography/__snapshots__/Typography.spec.tsx.snap
diff --git a/src/core/client/ui/components/Typography/index.ts b/src/core/client/ui/components/v2/Typography/index.ts
similarity index 100%
rename from src/core/client/ui/components/Typography/index.ts
rename to src/core/client/ui/components/v2/Typography/index.ts
diff --git a/src/core/client/ui/components/v2/index.ts b/src/core/client/ui/components/v2/index.ts
index 6e1d8b88c..8083a543f 100644
--- a/src/core/client/ui/components/v2/index.ts
+++ b/src/core/client/ui/components/v2/index.ts
@@ -15,6 +15,7 @@ export {
UIContextProps,
useUIContext,
} from "./UIContext";
+export { BrandName, BrandMark, LogoHorizontal } from "./Brand";
export { default as ClickOutside } from "./ClickOutside";
export { default as Box } from "./Box";
export { default as Button } from "./Button";
@@ -71,8 +72,12 @@ export {
default as ValidationMessage,
ValidationMessageProps,
} from "./ValidationMessage";
-export { BrandName, BrandMark, LogoHorizontal } from "./Brand";
export { default as InputLabel } from "./InputLabel";
export { default as AppNotification } from "./AppNotification";
export { default as HorizontalRule } from "./HorizontalRule";
export { StepBar, Step } from "./Steps";
+export { default as CheckIcon } from "./CheckIcon";
+export { default as InputDescription } from "./InputDescription";
+export { default as Popup } from "./Popup";
+export { default as Typography } from "./Typography";
+export { TileSelector, Option as TileOption } from "./TileSelector";
diff --git a/src/core/client/ui/components/v3/Button/Button.css b/src/core/client/ui/components/v3/Button/Button.css
index 61715e8e4..b71205dc2 100644
--- a/src/core/client/ui/components/v3/Button/Button.css
+++ b/src/core/client/ui/components/v3/Button/Button.css
@@ -1,5 +1,5 @@
.base {
- border-radius: var(--v2-round-corners);
+ border-radius: var(--round-corners);
}
.upperCase {
@@ -7,55 +7,55 @@
}
.fontFamilyPrimary {
- font-family: var(--v2-font-family-primary);
+ font-family: var(--font-family-primary);
}
.fontFamilySecondary{
- font-family: var(--v2-font-family-secondary);
+ font-family: var(--font-family-secondary);
}
.fontWeightPrimaryBold {
- font-weight: var(--v2-font-weight-primary-bold);
+ font-weight: var(--font-weight-primary-bold);
}
.fontWeightPrimarySemiBold {
- font-weight: var(--v2-font-weight-primary-semi-bold);
+ font-weight: var(--font-weight-primary-semi-bold);
}
.fontWeightPrimaryRegular {
- font-weight: var(--v2-font-weight-primary-regular);
+ font-weight: var(--font-weight-primary-regular);
}
.fontWeightSecondaryBold {
- font-weight: var(--v2-font-weight-secondary-bold);
+ font-weight: var(--font-weight-secondary-bold);
}
.fontWeightSecondarySemiBold {
- font-weight: var(--v2-font-weight-secondary-bold);
+ font-weight: var(--font-weight-secondary-bold);
}
.fontWeightSecondaryRegular {
- font-weight: var(--v2-font-weight-secondary-regular);
+ font-weight: var(--font-weight-secondary-regular);
}
.fontSizeExtraSmall {
- font-size: var(--v2-font-size-1);
- line-height: var(--v2-line-height-3);
+ font-size: var(--font-size-1);
+ line-height: var(--line-height-3);
}
.fontSizeSmall {
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
}
.fontSizeMedium {
- font-size: var(--v2-font-size-2);
- line-height: var(--v2-line-height-3);
+ font-size: var(--font-size-2);
+ line-height: var(--line-height-3);
}
.fontSizeLarge {
- font-size: var(--v2-font-size-3);
- line-height: var(--v2-line-height-3);
+ font-size: var(--font-size-3);
+ line-height: var(--line-height-3);
}
.textAlignLeft {
@@ -71,31 +71,31 @@
}
.paddingSizeExtraSmall {
- padding-left: var(--v2-spacing-2);
- padding-right: var(--v2-spacing-2);
- padding-top: var(--v2-spacing-1);
- padding-bottom: var(--v2-spacing-1);
+ padding-left: var(--spacing-2);
+ padding-right: var(--spacing-2);
+ padding-top: var(--spacing-1);
+ padding-bottom: var(--spacing-1);
}
.paddingSizeSmall {
- padding-left: var(--v2-spacing-3);
- padding-right: var(--v2-spacing-3);
- padding-top: var(--v2-spacing-2);
- padding-bottom: var(--v2-spacing-2);
+ padding-left: var(--spacing-3);
+ padding-right: var(--spacing-3);
+ padding-top: var(--spacing-2);
+ padding-bottom: var(--spacing-2);
}
.paddingSizeMedium {
- padding-left: var(--v2-spacing-4);
- padding-right: var(--v2-spacing-4);
- padding-top: var(--v2-spacing-3);
- padding-bottom: var(--v2-spacing-3);
+ padding-left: var(--spacing-4);
+ padding-right: var(--spacing-4);
+ padding-top: var(--spacing-3);
+ padding-bottom: var(--spacing-3);
}
.paddingSizeLarge {
- padding-left: var(--v2-spacing-5);
- padding-right: var(--v2-spacing-5);
- padding-top: var(--v2-spacing-4);
- padding-bottom: var(--v2-spacing-4);
+ padding-left: var(--spacing-5);
+ padding-right: var(--spacing-5);
+ padding-top: var(--spacing-4);
+ padding-bottom: var(--spacing-4);
}
.filled {
@@ -103,98 +103,98 @@
border-width: 1px;
&.colorPrimary {
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
&:not(.disabled),
&:not(:disabled) {
- background-color: var(--v2-colors-stream-blue-500);
- border-color: var(--v2-colors-stream-blue-500);
+ background-color: var(--palette-primary-500);
+ border-color: var(--palette-primary-500);
}
&:hover, &.mouseHover {
- background-color: var(--v2-colors-stream-blue-600);
- border-color: var(--v2-colors-stream-blue-600);
+ background-color: var(--palette-primary-600);
+ border-color: var(--palette-primary-600);
}
&:active, &.active {
- background-color: var(--v2-colors-stream-blue-700);
- border-color: var(--v2-colors-stream-blue-700);
+ background-color: var(--palette-primary-700);
+ border-color: var(--palette-primary-700);
}
&.disabled {
- color: var(--v2-colors-grey-400);
- background-color: var(--v2-colors-grey-200);
- border-color: var(--v2-colors-grey-200);
+ color: var(--palette-grey-400);
+ background-color: var(--palette-grey-200);
+ border-color: var(--palette-grey-200);
}
}
&.colorSecondary {
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
&:not(.disabled),
&:not(:disabled) {
- background-color: var(--v2-colors-grey-500);
- border-color: var(--v2-colors-grey-500);
+ background-color: var(--palette-grey-500);
+ border-color: var(--palette-grey-500);
}
&:hover, &.mouseHover {
- background-color: var(--v2-colors-grey-600);
- border-color: var(--v2-colors-grey-600);
+ background-color: var(--palette-grey-600);
+ border-color: var(--palette-grey-600);
}
&:active, &.active {
- background-color: var(--v2-colors-grey-700);
- border-color: var(--v2-colors-grey-700);
+ background-color: var(--palette-grey-700);
+ border-color: var(--palette-grey-700);
}
&.disabled {
- color: var(--v2-colors-grey-400);
- background-color: var(--v2-colors-grey-200);
- border-color: var(--v2-colors-grey-200);
+ color: var(--palette-grey-400);
+ background-color: var(--palette-grey-200);
+ border-color: var(--palette-grey-200);
}
}
&.colorNegative {
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
&:not(.disabled),
&:not(:disabled) {
- background-color: var(--v2-colors-red-500);
- border-color: var(--v2-colors-red-500);
+ background-color: var(--palette-error-500);
+ border-color: var(--palette-error-500);
}
&:hover, &.mouseHover {
- background-color: var(--v2-colors-red-600);
- border-color: var(--v2-colors-red-600);
+ background-color: var(--palette-error-600);
+ border-color: var(--palette-error-600);
}
&:active, &.active {
- background-color: var(--v2-colors-red-700);
- border-color: var(--v2-colors-red-700);
+ background-color: var(--palette-error-700);
+ border-color: var(--palette-error-700);
}
&.disabled {
- color: var(--v2-colors-grey-400);
- background-color: var(--v2-colors-grey-200);
- border-color: var(--v2-colors-grey-200);
+ color: var(--palette-grey-400);
+ background-color: var(--palette-grey-200);
+ border-color: var(--palette-grey-200);
}
}
&.colorPositive {
- color: var(--v2-colors-pure-white);
+ color: var(--palette-text-000);
&:not(.disabled),
&:not(:disabled) {
- background-color: var(--v2-colors-green-500);
- border-color: var(--v2-colors-green-500);
+ background-color: var(--palette-success-500);
+ border-color: var(--palette-success-500);
}
&:hover, &.mouseHover {
- background-color: var(--v2-colors-green-600);
- border-color: var(--v2-colors-green-600);
+ background-color: var(--palette-success-600);
+ border-color: var(--palette-success-600);
}
&:active, &.active {
- background-color: var(--v2-colors-green-700);
- border-color: var(--v2-colors-green-700);
+ background-color: var(--palette-success-700);
+ border-color: var(--palette-success-700);
}
&.disabled {
- color: var(--v2-colors-grey-400);
- background-color: var(--v2-colors-grey-200);
- border-color: var(--v2-colors-grey-200);
+ color: var(--palette-grey-400);
+ background-color: var(--palette-grey-200);
+ border-color: var(--palette-grey-200);
}
}
}
@@ -206,25 +206,25 @@
&:not(.disabled),
&:not(:disabled) {
- background-color: var(--v2-colors-pure-white);
- border-color: var(--v2-colors-stream-blue-500);
- color: var(--v2-colors-stream-blue-500);
+ background-color: inherit;
+ border-color: var(--palette-primary-500);
+ color: var(--palette-primary-500);
}
&:hover, &.mouseHover {
- background-color: var(--v2-colors-stream-blue-500);
- border-color: var(--v2-colors-stream-blue-500);
- color: var(--v2-colors-pure-white);
+ background-color: var(--palette-primary-500);
+ border-color: var(--palette-primary-500);
+ color: var(--palette-text-000);
}
&:active, &.active {
- background-color: var(--v2-colors-stream-blue-600);
- border-color: var(--v2-colors-stream-blue-600);
- color: var(--v2-colors-pure-white);
+ background-color: var(--palette-primary-600);
+ border-color: var(--palette-primary-600);
+ color: var(--palette-text-000);
}
&.disabled {
- background-color: var(--v2-colors-pure-white);
- border-color: var(--v2-colors-grey-400);
- color: var(--v2-colors-grey-400);
+ background-color: inherit;
+ border-color: var(--palette-grey-400);
+ color: var(--palette-grey-400);
}
}
@@ -234,25 +234,25 @@
&:not(.disabled),
&:not(:disabled) {
- background-color: var(--v2-colors-pure-white);
- border-color: var(--v2-colors-grey-500);
- color: var(--v2-colors-grey-500);
+ background-color: inherit;
+ border-color: var(--palette-grey-500);
+ color: var(--palette-grey-500);
}
&:hover, &.mouseHover {
- background-color: var(--v2-colors-grey-500);
- border-color: var(--v2-colors-grey-500);
- color: var(--v2-colors-pure-white);
+ background-color: var(--palette-grey-500);
+ border-color: var(--palette-grey-500);
+ color: var(--palette-text-000);
}
&:active, &.active {
- background-color: var(--v2-colors-grey-600);
- border-color: var(--v2-colors-grey-600);
- color: var(--v2-colors-pure-white);
+ background-color: var(--palette-grey-600);
+ border-color: var(--palette-grey-600);
+ color: var(--palette-text-000);
}
&.disabled {
- background-color: var(--v2-colors-pure-white);
- border-color: var(--v2-colors-grey-400);
- color: var(--v2-colors-grey-400);
+ background-color: inherit;
+ border-color: var(--palette-grey-400);
+ color: var(--palette-grey-400);
}
}
@@ -262,25 +262,25 @@
&:not(.disabled),
&:not(:disabled) {
- background-color: var(--v2-colors-pure-white);
- border-color: var(--v2-colors-red-500);
- color: var(--v2-colors-red-500);
+ background-color: inherit;
+ border-color: var(--palette-error-500);
+ color: var(--palette-error-500);
}
&:hover, &.mouseHover {
- background-color: var(--v2-colors-red-500);
- border-color: var(--v2-colors-red-500);
- color: var(--v2-colors-pure-white);
+ background-color: var(--palette-error-500);
+ border-color: var(--palette-error-500);
+ color: var(--palette-text-000);
}
&:active, &.active {
- background-color: var(--v2-colors-red-600);
- border-color: var(--v2-colors-red-600);
- color: var(--v2-colors-pure-white);
+ background-color: var(--palette-error-600);
+ border-color: var(--palette-error-600);
+ color: var(--palette-text-000);
}
&.disabled {
- background-color: var(--v2-colors-pure-white);
- border-color: var(--v2-colors-grey-400);
- color: var(--v2-colors-grey-400);
+ background-color: inherit;
+ border-color: var(--palette-grey-400);
+ color: var(--palette-grey-400);
}
}
@@ -290,25 +290,25 @@
&:not(.disabled),
&:not(:disabled) {
- background-color: var(--v2-colors-pure-white);
- border-color: var(--v2-colors-green-500);
- color: var(--v2-colors-green-500);
+ background-color: inherit;
+ border-color: var(--palette-success-500);
+ color: var(--palette-success-500);
}
&:hover, &.mouseHover {
- background-color: var(--v2-colors-green-500);
- border-color: var(--v2-colors-green-500);
- color: var(--v2-colors-pure-white);
+ background-color: var(--palette-success-500);
+ border-color: var(--palette-success-500);
+ color: var(--palette-text-000);
}
&:active, &.active {
- background-color: var(--v2-colors-green-600);
- border-color: var(--v2-colors-green-600);
- color: var(--v2-colors-pure-white);
+ background-color: var(--palette-success-600);
+ border-color: var(--palette-success-600);
+ color: var(--palette-text-000);
}
&.disabled {
- background-color: var(--v2-colors-pure-white);
- border-color: var(--v2-colors-grey-400);
- color: var(--v2-colors-grey-400);
+ background-color: inherit;
+ border-color: var(--palette-grey-400);
+ color: var(--palette-grey-400);
}
}
}
@@ -319,68 +319,68 @@
&.colorPrimary {
&:not(.disabled),
&:not(:disabled) {
- color: var(--v2-colors-stream-blue-500);
+ color: var(--palette-primary-500);
}
&:hover, &.mouseHover {
- color: var(--v2-colors-stream-blue-600);
+ color: var(--palette-primary-600);
}
&:active, &.active {
- color: var(--v2-colors-stream-blue-700);
+ color: var(--palette-primary-700);
}
&.disabled {
- color: var(--v2-colors-grey-400);
+ color: var(--palette-grey-400);
}
}
&.colorSecondary {
&:not(.disabled),
&:not(:disabled) {
- color: var(--v2-colors-grey-500);
+ color: var(--palette-grey-500);
}
&:hover, &.mouseHover {
- color: var(--v2-colors-grey-600);
+ color: var(--palette-grey-600);
}
&:active, &.active {
- color: var(--v2-colors-grey-700);
+ color: var(--palette-grey-700);
}
&.disabled {
- color: var(--v2-colors-grey-400);
+ color: var(--palette-grey-400);
}
}
&.colorNegative {
&:not(.disabled),
&:not(:disabled) {
- color: var(--v2-colors-red-500);
+ color: var(--palette-error-500);
}
&:hover, &.mouseHover {
- color: var(--v2-colors-red-600);
+ color: var(--palette-error-600);
}
&:active, &.active {
- color: var(--v2-colors-red-700);
+ color: var(--palette-error-700);
}
&.disabled {
- color: var(--v2-colors-grey-400);
+ color: var(--palette-grey-400);
}
}
&.colorPositive{
&:not(.disabled),
&:not(:disabled) {
- color: var(--v2-colors-green-500);
+ color: var(--palette-success-500);
}
&:hover, &.mouseHover {
- color: var(--v2-colors-green-600);
+ color: var(--palette-success-600);
}
&:active, &.active {
- color: var(--v2-colors-green-700);
+ color: var(--palette-success-700);
}
&.disabled {
- color: var(--v2-colors-grey-400);
+ color: var(--palette-grey-400);
}
}
}
diff --git a/src/core/client/ui/components/v3/Button/Button.tsx b/src/core/client/ui/components/v3/Button/Button.tsx
index 20c171d93..ea691cf88 100644
--- a/src/core/client/ui/components/v3/Button/Button.tsx
+++ b/src/core/client/ui/components/v3/Button/Button.tsx
@@ -1,10 +1,10 @@
import cn from "classnames";
import { pick } from "lodash";
-import React from "react";
+import React, { Ref } from "react";
import { BaseButton } from "coral-ui/components/v2";
import { BaseButtonProps } from "coral-ui/components/v2/BaseButton";
-import { withStyles } from "coral-ui/hocs";
+import { withForwardRef, withStyles } from "coral-ui/hocs";
import styles from "./Button.css";
@@ -25,10 +25,14 @@ interface Props extends Omit {
color?: "primary" | "secondary" | "positive" | "negative" | "none";
variant?: "filled" | "outlined" | "flat" | "none";
+ active?: boolean;
upperCase?: boolean;
underline?: boolean;
disabled?: boolean;
fullWidth?: boolean;
+
+ /** Internal: Forwarded Ref */
+ forwardRef?: Ref;
}
export class Button extends React.Component