diff --git a/apps/meteor/client/views/admin/cloud/components/RegisterWorkspaceCards.tsx b/apps/meteor/client/views/admin/cloud/components/RegisterWorkspaceCards.tsx
index 80198f6c4b4f..c3cd878ad081 100644
--- a/apps/meteor/client/views/admin/cloud/components/RegisterWorkspaceCards.tsx
+++ b/apps/meteor/client/views/admin/cloud/components/RegisterWorkspaceCards.tsx
@@ -1,5 +1,5 @@
import { Grid } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardTitle } from '@rocket.chat/ui-client';
import React from 'react';
import useFeatureBullets from '../hooks/useFeatureBullets';
@@ -12,8 +12,8 @@ const RegisterWorkspaceCards = () => {
{bulletFeatures.map((card) => (
- {card.title}
- {card.description}
+ {card.title}
+ {card.description}
))}
diff --git a/apps/meteor/client/views/admin/info/DeploymentCard.tsx b/apps/meteor/client/views/admin/info/DeploymentCard.tsx
index 1bf5accb489f..f1f3dde6aec0 100644
--- a/apps/meteor/client/views/admin/info/DeploymentCard.tsx
+++ b/apps/meteor/client/views/admin/info/DeploymentCard.tsx
@@ -2,7 +2,7 @@ import type { IServerInfo, IStats, Serialized } from '@rocket.chat/core-typings'
import { ButtonGroup, Button } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import type { IInstance } from '@rocket.chat/rest-typings';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardCol, CardTitle, CardColSection, CardColTitle, CardFooter } from '@rocket.chat/ui-client';
import { useSetModal, useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React, { memo } from 'react';
@@ -31,57 +31,57 @@ const DeploymentCard = ({ info, statistics, instances }: DeploymentCardProps): R
return (
- {t('Deployment')}
-
-
-
- {t('Version')}
+ {t('Deployment')}
+
+
+
+ {t('Version')}
{statistics.version}
-
-
- {t('Deployment_ID')}
+
+
+ {t('Deployment_ID')}
{statistics.uniqueId}
-
+
{appsEngineVersion && (
-
- {t('Apps_Engine_Version')}
+
+ {t('Apps_Engine_Version')}
{appsEngineVersion}
-
+
)}
-
- {t('Node_version')}
+
+ {t('Node_version')}
{statistics.process.nodeVersion}
-
-
- {t('DB_Migration')}
+
+
+ {t('DB_Migration')}
{`${statistics.migration.version} (${formatDateAndTime(statistics.migration.lockedAt)})`}
-
-
- {t('MongoDB')}
+
+
+ {t('MongoDB')}
{`${statistics.mongoVersion} / ${statistics.mongoStorageEngine} ${
!statistics.msEnabled ? `(oplog ${statistics.oplogEnabled ? t('Enabled') : t('Disabled')})` : ''
}`}
-
-
- {t('Commit_details')}
+
+
+ {t('Commit_details')}
{t('github_HEAD')}: ({commit.hash ? commit.hash.slice(0, 9) : ''})
{t('Branch')}: {commit.branch}
-
-
- {t('PID')}
+
+
+ {t('PID')}
{statistics.process.pid}
-
-
-
+
+
+
{!!instances.length && (
-
+
{t('Instances')}
-
+
)}
);
diff --git a/apps/meteor/client/views/admin/info/LicenseCard.tsx b/apps/meteor/client/views/admin/info/LicenseCard.tsx
index 8865ed990a4a..bccbddaa6db7 100644
--- a/apps/meteor/client/views/admin/info/LicenseCard.tsx
+++ b/apps/meteor/client/views/admin/info/LicenseCard.tsx
@@ -1,6 +1,6 @@
import { ButtonGroup, Button, Skeleton } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardCol, CardTitle, CardColSection, CardColTitle, CardFooter } from '@rocket.chat/ui-client';
import { useSetModal, useSetting, useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
@@ -43,14 +43,14 @@ const LicenseCard = (): ReactElement => {
return (
- {t('License')}
-
-
-
+ {t('License')}
+
+
+
-
-
- {t('Features')}
+
+
+ {t('Features')}
{isLoading ? (
<>
@@ -67,10 +67,10 @@ const LicenseCard = (): ReactElement => {
>
)}
-
-
-
-
+
+
+
+
{isAirGapped ? (
@@ -80,7 +80,7 @@ const LicenseCard = (): ReactElement => {
{t('Cloud_connectivity')}
)}
-
+
);
};
diff --git a/apps/meteor/client/views/admin/info/UsageCard.tsx b/apps/meteor/client/views/admin/info/UsageCard.tsx
index 793789c30a03..7a3b2123e5f2 100644
--- a/apps/meteor/client/views/admin/info/UsageCard.tsx
+++ b/apps/meteor/client/views/admin/info/UsageCard.tsx
@@ -1,7 +1,17 @@
import type { IStats } from '@rocket.chat/core-typings';
import { ButtonGroup, Button } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
-import { TextSeparator, Card } from '@rocket.chat/ui-client';
+import {
+ Card,
+ CardBody,
+ CardCol,
+ CardTitle,
+ CardColSection,
+ CardColTitle,
+ CardFooter,
+ TextSeparator,
+ CardIcon,
+} from '@rocket.chat/ui-client';
import { useRoute, useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React, { memo } from 'react';
@@ -29,15 +39,15 @@ const UsageCard = ({ statistics, vertical }: UsageCardProps): ReactElement => {
return (
- {t('Usage')}
-
-
-
- {t('Users')}
+ {t('Usage')}
+
+
+
+ {t('Users')}
- {t('Total')}
+ {t('Total')}
>
}
value={statistics.totalUsers}
@@ -45,9 +55,9 @@ const UsageCard = ({ statistics, vertical }: UsageCardProps): ReactElement => {
-
+
- {' '}
+ {' '}
{t('Online')}
>
}
@@ -56,9 +66,9 @@ const UsageCard = ({ statistics, vertical }: UsageCardProps): ReactElement => {
-
+
- {' '}
+ {' '}
{t('Busy')}
>
}
@@ -67,9 +77,9 @@ const UsageCard = ({ statistics, vertical }: UsageCardProps): ReactElement => {
-
+
- {' '}
+ {' '}
{t('Away')}
>
}
@@ -78,34 +88,34 @@ const UsageCard = ({ statistics, vertical }: UsageCardProps): ReactElement => {
-
+
- {' '}
+ {' '}
{t('Offline')}
>
}
value={statistics.offlineUsers}
/>
-
-
- {t('Types_and_Distribution')}
+
+
+ {t('Types_and_Distribution')}
-
-
- {t('Uploads')}
+
+
+ {t('Uploads')}
-
-
- {t('Total_rooms')}
+
+
+ {t('Total_rooms')}
- {t('Stats_Total_Rooms')}
+ {t('Stats_Total_Rooms')}
>
}
value={statistics.totalRooms}
@@ -113,7 +123,7 @@ const UsageCard = ({ statistics, vertical }: UsageCardProps): ReactElement => {
- {t('Stats_Total_Channels')}
+ {t('Stats_Total_Channels')}
>
}
value={statistics.totalChannels}
@@ -121,7 +131,7 @@ const UsageCard = ({ statistics, vertical }: UsageCardProps): ReactElement => {
- {t('Stats_Total_Private_Groups')}
+ {t('Stats_Total_Private_Groups')}
>
}
value={statistics.totalPrivateGroups}
@@ -129,7 +139,7 @@ const UsageCard = ({ statistics, vertical }: UsageCardProps): ReactElement => {
- {t('Stats_Total_Direct_Messages')}
+ {t('Stats_Total_Direct_Messages')}
>
}
value={statistics.totalDirect}
@@ -137,7 +147,7 @@ const UsageCard = ({ statistics, vertical }: UsageCardProps): ReactElement => {
- {t('Total_Discussions')}
+ {t('Total_Discussions')}
>
}
value={statistics.totalDiscussions}
@@ -145,30 +155,30 @@ const UsageCard = ({ statistics, vertical }: UsageCardProps): ReactElement => {
- {t('Stats_Total_Livechat_Rooms')}
+ {t('Stats_Total_Livechat_Rooms')}
>
}
value={statistics.totalLivechat}
/>
-
-
- {t('Total_messages')}
+
+
+ {t('Total_messages')}
-
-
-
-
+
+
+
+
{t('See_on_Engagement_Dashboard')}
-
+
);
};
diff --git a/apps/meteor/client/views/admin/settings/SettingsGroupCard.tsx b/apps/meteor/client/views/admin/settings/SettingsGroupCard.tsx
index 8bf75c3753d5..26331379a9fd 100644
--- a/apps/meteor/client/views/admin/settings/SettingsGroupCard.tsx
+++ b/apps/meteor/client/views/admin/settings/SettingsGroupCard.tsx
@@ -1,7 +1,7 @@
import type { ISetting } from '@rocket.chat/core-typings';
import { css } from '@rocket.chat/css-in-js';
import { Button, Box } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardTitle, CardFooter } from '@rocket.chat/ui-client';
import type { TranslationKey } from '@rocket.chat/ui-contexts';
import { useRouter, useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
@@ -28,13 +28,13 @@ const SettingsGroupCard = ({ id, title, description }: SettingsGroupCardProps):
return (
- {t(title)}
-
+ {t(title)}
+
{description && t.has(description) && }
-
-
+
+
{t('Open')}
-
+
);
};
diff --git a/apps/meteor/client/views/home/cards/AddUsersCard.tsx b/apps/meteor/client/views/home/cards/AddUsersCard.tsx
index fe36c6e6f165..551552a182d4 100644
--- a/apps/meteor/client/views/home/cards/AddUsersCard.tsx
+++ b/apps/meteor/client/views/home/cards/AddUsersCard.tsx
@@ -1,5 +1,5 @@
import { Button } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardFooter, CardFooterWrapper, CardTitle } from '@rocket.chat/ui-client';
import { useTranslation, useRoute } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
@@ -14,15 +14,15 @@ const AddUsersCard = (): ReactElement => {
return (
- {t('Add_users')}
- {t('Invite_and_add_members_to_this_workspace_to_start_communicating')}
-
-
+ {t('Add_users')}
+ {t('Invite_and_add_members_to_this_workspace_to_start_communicating')}
+
+
{t('Add_users')}
-
-
+
+
);
};
diff --git a/apps/meteor/client/views/home/cards/CreateChannelsCard.tsx b/apps/meteor/client/views/home/cards/CreateChannelsCard.tsx
index f5421bd821e4..9e84a8ff373d 100644
--- a/apps/meteor/client/views/home/cards/CreateChannelsCard.tsx
+++ b/apps/meteor/client/views/home/cards/CreateChannelsCard.tsx
@@ -1,5 +1,5 @@
import { Button } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardFooter, CardFooterWrapper, CardTitle } from '@rocket.chat/ui-client';
import { useTranslation, useSetModal } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
@@ -14,13 +14,13 @@ const CreateChannelsCard = (): ReactElement => {
return (
- {t('Create_channels')}
- {t('Create_a_public_channel_that_new_workspace_members_can_join')}
-
-
+ {t('Create_channels')}
+ {t('Create_a_public_channel_that_new_workspace_members_can_join')}
+
+
{t('Create_channel')}
-
-
+
+
);
};
diff --git a/apps/meteor/client/views/home/cards/CustomContentCard.tsx b/apps/meteor/client/views/home/cards/CustomContentCard.tsx
index 118fa659e640..0f5c40ad87f9 100644
--- a/apps/meteor/client/views/home/cards/CustomContentCard.tsx
+++ b/apps/meteor/client/views/home/cards/CustomContentCard.tsx
@@ -1,5 +1,5 @@
import { Box, Button, Icon, Tag } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardFooter, CardFooterWrapper } from '@rocket.chat/ui-client';
import { useRole, useSettingSetValue, useSetting, useToastMessageDispatch, useTranslation, useRoute } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
@@ -63,8 +63,8 @@ const CustomContentCard = (): ReactElement | null => {
{isCustomContentBodyEmpty ? t('Homepage_Custom_Content_Default_Message') : }
-
-
+
+
settingsRoute.push({ group: 'Layout' })} title={t('Layout_Home_Page_Content')}>
{t('Customize_Content')}
@@ -86,8 +86,8 @@ const CustomContentCard = (): ReactElement | null => {
>
{!isCustomContentOnly ? t('Show_Only_This_Content') : t('Show_default_content')}
-
-
+
+
);
}
diff --git a/apps/meteor/client/views/home/cards/DesktopAppsCard.tsx b/apps/meteor/client/views/home/cards/DesktopAppsCard.tsx
index b53d6603ccac..5a3c7834b3b4 100644
--- a/apps/meteor/client/views/home/cards/DesktopAppsCard.tsx
+++ b/apps/meteor/client/views/home/cards/DesktopAppsCard.tsx
@@ -1,5 +1,5 @@
import { Button } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardFooter, CardFooterWrapper, CardTitle } from '@rocket.chat/ui-client';
import { useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
@@ -16,15 +16,15 @@ const DesktopAppsCard = (): ReactElement => {
return (
- {t('Desktop_apps')}
- {t('Install_rocket_chat_on_your_preferred_desktop_platform')}
-
-
+ {t('Desktop_apps')}
+ {t('Install_rocket_chat_on_your_preferred_desktop_platform')}
+
+
handleOpenLink(WINDOWS_APP_URL)}>{t('Platform_Windows')}
handleOpenLink(LINUX_APP_URL)}>{t('Platform_Linux')}
handleOpenLink(MAC_APP_URL)}>{t('Platform_Mac')}
-
-
+
+
);
};
diff --git a/apps/meteor/client/views/home/cards/DocumentationCard.tsx b/apps/meteor/client/views/home/cards/DocumentationCard.tsx
index c833f7425a7b..2ae8c0618093 100644
--- a/apps/meteor/client/views/home/cards/DocumentationCard.tsx
+++ b/apps/meteor/client/views/home/cards/DocumentationCard.tsx
@@ -1,5 +1,5 @@
import { Button } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardFooter, CardFooterWrapper, CardTitle } from '@rocket.chat/ui-client';
import { useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
@@ -14,13 +14,13 @@ const DocumentationCard = (): ReactElement => {
return (
- {t('Documentation')}
- {t('Learn_how_to_unlock_the_myriad_possibilities_of_rocket_chat')}
-
-
+ {t('Documentation')}
+ {t('Learn_how_to_unlock_the_myriad_possibilities_of_rocket_chat')}
+
+
handleOpenLink(DOCS_URL)}>{t('See_documentation')}
-
-
+
+
);
};
diff --git a/apps/meteor/client/views/home/cards/JoinRoomsCard.tsx b/apps/meteor/client/views/home/cards/JoinRoomsCard.tsx
index 1a105ea8d58f..c4bfcc36d7e7 100644
--- a/apps/meteor/client/views/home/cards/JoinRoomsCard.tsx
+++ b/apps/meteor/client/views/home/cards/JoinRoomsCard.tsx
@@ -1,5 +1,5 @@
import { Button } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardFooter, CardFooterWrapper, CardTitle } from '@rocket.chat/ui-client';
import { useTranslation, useRouter } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
@@ -14,13 +14,13 @@ const JoinRoomsCard = (): ReactElement => {
return (
- {t('Join_rooms')}
- {t('Discover_public_channels_and_teams_in_the_workspace_directory')}
-
-
+ {t('Join_rooms')}
+ {t('Discover_public_channels_and_teams_in_the_workspace_directory')}
+
+
{t('Open_directory')}
-
-
+
+
);
};
diff --git a/apps/meteor/client/views/home/cards/MobileAppsCard.tsx b/apps/meteor/client/views/home/cards/MobileAppsCard.tsx
index e04097185f42..5527e8d3e0f5 100644
--- a/apps/meteor/client/views/home/cards/MobileAppsCard.tsx
+++ b/apps/meteor/client/views/home/cards/MobileAppsCard.tsx
@@ -1,5 +1,5 @@
import { Button } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardTitle, CardBody, CardFooterWrapper, CardFooter } from '@rocket.chat/ui-client';
import { useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
@@ -15,14 +15,14 @@ const MobileAppsCard = (): ReactElement => {
return (
- {t('Mobile_apps')}
- {t('Take_rocket_chat_with_you_with_mobile_applications')}
-
-
+ {t('Mobile_apps')}
+ {t('Take_rocket_chat_with_you_with_mobile_applications')}
+
+
handleOpenLink(GOOGLE_PLAY_URL)}>{t('Google_Play')}
handleOpenLink(APP_STORE_URL)}>{t('App_Store')}
-
-
+
+
);
};
diff --git a/apps/meteor/ee/client/omnichannel/reports/components/ReportCard.tsx b/apps/meteor/ee/client/omnichannel/reports/components/ReportCard.tsx
index 92a4d8d44199..d885242f7722 100644
--- a/apps/meteor/ee/client/omnichannel/reports/components/ReportCard.tsx
+++ b/apps/meteor/ee/client/omnichannel/reports/components/ReportCard.tsx
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { Box, Skeleton, States, StatesIcon, StatesSubtitle, StatesTitle } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardCol, CardTitle } from '@rocket.chat/ui-client';
import { useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactNode, ComponentProps, ReactElement } from 'react';
import React from 'react';
@@ -61,7 +61,7 @@ export const ReportCard = ({
data-qa={id}
aria-busy={isLoading}
>
-
+
@@ -76,9 +76,9 @@ export const ReportCard = ({
-
-
-
+
+
+
{isLoading && LoadingSkeleton}
@@ -94,8 +94,8 @@ export const ReportCard = ({
{!isLoading && isDataFound && children}
-
-
+
+
);
};
diff --git a/apps/meteor/ee/client/views/admin/engagementDashboard/EngagementDashboardCard.tsx b/apps/meteor/ee/client/views/admin/engagementDashboard/EngagementDashboardCard.tsx
index 7c4965bce5d0..0fe32a90d825 100644
--- a/apps/meteor/ee/client/views/admin/engagementDashboard/EngagementDashboardCard.tsx
+++ b/apps/meteor/ee/client/views/admin/engagementDashboard/EngagementDashboardCard.tsx
@@ -1,5 +1,5 @@
import { Box } from '@rocket.chat/fuselage';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardCol, CardTitle } from '@rocket.chat/ui-client';
import type { ReactElement, ReactNode } from 'react';
import React from 'react';
@@ -13,14 +13,14 @@ type EngagementDashboardCardProps = {
const EngagementDashboardCard = ({ children, title = undefined }: EngagementDashboardCardProps): ReactElement => (
- {title && {title} }
-
-
+ {title && {title} }
+
+
{children}
-
-
+
+
);
diff --git a/apps/meteor/ee/client/views/admin/info/SeatsCard.tsx b/apps/meteor/ee/client/views/admin/info/SeatsCard.tsx
index ddcfe312122f..b595dd9c1fae 100644
--- a/apps/meteor/ee/client/views/admin/info/SeatsCard.tsx
+++ b/apps/meteor/ee/client/views/admin/info/SeatsCard.tsx
@@ -1,6 +1,6 @@
import { Box, Button, ButtonGroup, Skeleton } from '@rocket.chat/fuselage';
import colors from '@rocket.chat/fuselage-tokens/colors';
-import { Card } from '@rocket.chat/ui-client';
+import { Card, CardBody, CardCol, CardFooter, CardTitle } from '@rocket.chat/ui-client';
import { useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
@@ -27,9 +27,9 @@ const SeatsCard = ({ seatsCap }: SeatsCardProps): ReactElement => {
return (
- {t('Seats_usage')}
-
-
+ {t('Seats_usage')}
+
+
{!seatsCap ? (
@@ -43,15 +43,15 @@ const SeatsCard = ({ seatsCap }: SeatsCardProps): ReactElement => {
/>
)}
-
-
-
+
+
+
handleExternalLink(requestSeatsLink)}>
{t('Request_seats')}
-
+
);
};
diff --git a/apps/meteor/package.json b/apps/meteor/package.json
index 562908ff67a9..2e288c8dbd30 100644
--- a/apps/meteor/package.json
+++ b/apps/meteor/package.json
@@ -469,4 +469,4 @@
"installConfig": {
"hoistingLimits": "workspaces"
}
-}
\ No newline at end of file
+}
diff --git a/packages/ui-client/src/components/Card/Card.stories.tsx b/packages/ui-client/src/components/Card/Card.stories.tsx
index 4697443e9259..56a2220219ed 100644
--- a/packages/ui-client/src/components/Card/Card.stories.tsx
+++ b/packages/ui-client/src/components/Card/Card.stories.tsx
@@ -1,7 +1,7 @@
import { Box, Button, ButtonGroup } from '@rocket.chat/fuselage';
import type { ComponentMeta, ComponentStory } from '@storybook/react';
-import Card from '.';
+import { Card, CardBody, CardCol, CardColSection, CardColTitle, CardDivider, CardFooter, CardIcon, CardTitle } from '.';
import TextSeparator from '../TextSeparator';
import { UserStatus } from '../UserStatus';
@@ -9,13 +9,13 @@ export default {
title: 'Components/Card',
component: Card,
subcomponents: {
- 'Card.Title': Card.Title,
- 'Card.Body': Card.Body,
- 'Card.Col': Card.Col,
- 'Card.Col.Section': Card.Col.Section,
- 'Card.Col.Title': Card.Col.Title,
- 'Card.Footer': Card.Footer,
- 'Card.Divider': Card.Divider,
+ CardTitle,
+ CardBody,
+ CardCol,
+ CardColSection,
+ CardColTitle,
+ CardFooter,
+ CardDivider,
},
parameters: {
layout: 'centered',
@@ -25,14 +25,14 @@ export default {
export const Example: ComponentStory = () => (
- Usage
-
-
- Users
+ Usage
+
+
+ Users
- Total
+ Total
>
}
value={123}
@@ -40,9 +40,9 @@ export const Example: ComponentStory = () => (
-
+
- {' '}
+ {' '}
Online
>
}
@@ -51,9 +51,9 @@ export const Example: ComponentStory = () => (
-
+
- {' '}
+ {' '}
Busy
>
}
@@ -62,9 +62,9 @@ export const Example: ComponentStory = () => (
-
+
- {' '}
+ {' '}
Away
>
}
@@ -73,111 +73,111 @@ export const Example: ComponentStory = () => (
-
+
- {' '}
+ {' '}
Offline
>
}
value={123}
/>
-
-
- Types and Distribution
+
+
+ Types and Distribution
-
-
- Uploads
+
+
+ Uploads
-
-
+
+
);
export const Single: ComponentStory = () => (
- A card
-
-
+ A card
+
+
- A Section
+ A Section
A bunch of stuff
A bunch of stuff
A bunch of stuff
A bunch of stuff
- Another Section
+ Another Section
A bunch of stuff
A bunch of stuff
A bunch of stuff
A bunch of stuff
-
-
-
+
+
+
I'm a button in a footer
-
+
);
export const Double: ComponentStory = () => (
- A card
-
-
+ A card
+
+
- A Section
+ A Section
A bunch of stuff
A bunch of stuff
A bunch of stuff
A bunch of stuff
- Another Section
+ Another Section
A bunch of stuff
A bunch of stuff
A bunch of stuff
A bunch of stuff
-
-
-
+
+
+
- A Section
+ A Section
- A bunch of stuff
+ A bunch of stuff
- A bunch of stuff
+ A bunch of stuff
- A bunch of stuff
+ A bunch of stuff
- A bunch of stuff
+ A bunch of stuff
- Another Section
+ Another Section
A bunch of stuff
A bunch of stuff
A bunch of stuff
A bunch of stuff
-
-
-
+
+
+
I'm a button in a footer
-
+
);
diff --git a/packages/ui-client/src/components/Card/index.ts b/packages/ui-client/src/components/Card/index.ts
index ade5391e61d6..76df65e5a809 100644
--- a/packages/ui-client/src/components/Card/index.ts
+++ b/packages/ui-client/src/components/Card/index.ts
@@ -1,30 +1,10 @@
-import Card from './Card';
-import CardBody from './CardBody';
-import CardCol from './CardCol';
-import CardColSection from './CardColSection';
-import CardColTitle from './CardColTitle';
-import CardDivider from './CardDivider';
-import CardFooter from './CardFooter';
-import CardFooterWrapper from './CardFooterWrapper';
-import CardIcon from './CardIcon';
-import CardTitle from './CardTitle';
-
-export const DOUBLE_COLUMN_CARD_WIDTH = 552;
-
-/**
- * @deprecated Avoid default usage, use named imports instead
- */
-export default Object.assign(Card, {
- Title: CardTitle,
- Body: CardBody,
- Col: Object.assign(CardCol, {
- Title: CardColTitle,
- Section: CardColSection,
- }),
- Footer: CardFooter,
- FooterWrapper: CardFooterWrapper,
- Divider: CardDivider,
- Icon: CardIcon,
-});
-
-export { Card, CardBody, CardCol, CardColSection, CardColTitle, CardDivider, CardFooter, CardFooterWrapper, CardIcon, CardTitle };
+export { default as Card } from './Card';
+export { default as CardBody } from './CardBody';
+export { default as CardCol } from './CardCol';
+export { default as CardColSection } from './CardColSection';
+export { default as CardColTitle } from './CardColTitle';
+export { default as CardDivider } from './CardDivider';
+export { default as CardFooter } from './CardFooter';
+export { default as CardFooterWrapper } from './CardFooterWrapper';
+export { default as CardIcon } from './CardIcon';
+export { default as CardTitle } from './CardTitle';
diff --git a/packages/ui-client/src/components/index.ts b/packages/ui-client/src/components/index.ts
index 6448f37b3e68..3de4bf411a5e 100644
--- a/packages/ui-client/src/components/index.ts
+++ b/packages/ui-client/src/components/index.ts
@@ -7,7 +7,7 @@ export * from '../hooks/useValidatePassword';
export { default as TextSeparator } from './TextSeparator';
export * from './TooltipComponent';
export * as UserStatus from './UserStatus';
-export { default as Card } from './Card';
+export * from './Card';
export * from './Header';
export * from './MultiSelectCustom/MultiSelectCustom';
export * from './FeaturePreview/FeaturePreview';