From d3f0e77c862fb9a62f6c484bf8ba1cbcee784167 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 16 Aug 2022 20:11:59 -0400 Subject: [PATCH] fix(striker-ui): split text variants --- .../components/ProvisionServerDialog.tsx | 29 ++++++++++--------- .../components/Text/DataGridCellText.tsx | 16 ---------- striker-ui/components/Text/InlineMonoText.tsx | 28 ++++++++++++++++++ striker-ui/components/Text/MonoText.tsx | 18 ++++++++++++ striker-ui/components/Text/Monospace.tsx | 20 ------------- striker-ui/components/Text/SmallText.tsx | 13 +++++++++ striker-ui/components/Text/index.tsx | 8 +++-- 7 files changed, 80 insertions(+), 52 deletions(-) delete mode 100644 striker-ui/components/Text/DataGridCellText.tsx create mode 100644 striker-ui/components/Text/InlineMonoText.tsx create mode 100644 striker-ui/components/Text/MonoText.tsx delete mode 100644 striker-ui/components/Text/Monospace.tsx create mode 100644 striker-ui/components/Text/SmallText.tsx diff --git a/striker-ui/components/ProvisionServerDialog.tsx b/striker-ui/components/ProvisionServerDialog.tsx index 0eeaff6b..2e250653 100644 --- a/striker-ui/components/ProvisionServerDialog.tsx +++ b/striker-ui/components/ProvisionServerDialog.tsx @@ -36,7 +36,7 @@ import { InputTestBatches, TestInputFunction, } from '../types/TestInputFunction'; -import { BodyText, HeaderText, Monospace } from './Text'; +import { BodyText, HeaderText, InlineMonoText } from './Text'; type InputMessage = Partial>; @@ -1355,9 +1355,11 @@ const ProvisionServerDialog = ({ - Server will be created on - anvil node pair{' '} - {' '} + Server will be + created on anvil node pair{' '} + {' '} with the following properties: @@ -1367,12 +1369,12 @@ const ProvisionServerDialog = ({ - core(s) + core(s) - core(s) available + core(s) available @@ -1381,11 +1383,11 @@ const ProvisionServerDialog = ({ - + - {' '} + {' '} available @@ -1409,18 +1411,19 @@ const ProvisionServerDialog = ({ > - Virtual disk + Virtual disk - on{' '} + on{' '} {vdStorageGroupName} - available + {' '} + available @@ -1431,7 +1434,7 @@ const ProvisionServerDialog = ({ - @@ -1442,7 +1445,7 @@ const ProvisionServerDialog = ({ {fileUUIDMapToData[inputDriverISOFileUUID] ? ( - ) : ( diff --git a/striker-ui/components/Text/DataGridCellText.tsx b/striker-ui/components/Text/DataGridCellText.tsx deleted file mode 100644 index 8d1725fe..00000000 --- a/striker-ui/components/Text/DataGridCellText.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { FC } from 'react'; - -import BodyText, { BodyTextProps } from './BodyText'; - -const DataGridCellText: FC = ({ - ...dataGridCellTextRestProps -}) => ( - -); - -export default DataGridCellText; diff --git a/striker-ui/components/Text/InlineMonoText.tsx b/striker-ui/components/Text/InlineMonoText.tsx new file mode 100644 index 00000000..2032152f --- /dev/null +++ b/striker-ui/components/Text/InlineMonoText.tsx @@ -0,0 +1,28 @@ +import { FC } from 'react'; + +import { BodyTextProps } from './BodyText'; +import SmallText from './SmallText'; + +type InlineMonoTextProps = BodyTextProps; + +const InlineMonoText: FC = ({ + sx, + ...bodyTextRestProps +}) => ( + +); + +export type { InlineMonoTextProps }; + +export default InlineMonoText; diff --git a/striker-ui/components/Text/MonoText.tsx b/striker-ui/components/Text/MonoText.tsx new file mode 100644 index 00000000..2c409219 --- /dev/null +++ b/striker-ui/components/Text/MonoText.tsx @@ -0,0 +1,18 @@ +import { FC } from 'react'; + +import { BodyTextProps } from './BodyText'; +import SmallText from './SmallText'; + +type MonoTextProps = BodyTextProps; + +const MonoText: FC = ({ sx, ...bodyTextRestProps }) => ( + +); + +export type { MonoTextProps }; + +export default MonoText; diff --git a/striker-ui/components/Text/Monospace.tsx b/striker-ui/components/Text/Monospace.tsx deleted file mode 100644 index 633b8318..00000000 --- a/striker-ui/components/Text/Monospace.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { FC } from 'react'; - -import BodyText, { BodyTextProps } from './BodyText'; - -const Monospace: FC = ({ sx, ...bodyTextRestProps }) => ( - -); - -export default Monospace; diff --git a/striker-ui/components/Text/SmallText.tsx b/striker-ui/components/Text/SmallText.tsx new file mode 100644 index 00000000..9fdc7bb1 --- /dev/null +++ b/striker-ui/components/Text/SmallText.tsx @@ -0,0 +1,13 @@ +import { FC } from 'react'; + +import BodyText, { BodyTextProps } from './BodyText'; + +type SmallTextProps = BodyTextProps; + +const SmallText: FC = ({ ...bodyTextRestProps }) => ( + +); + +export type { SmallTextProps }; + +export default SmallText; diff --git a/striker-ui/components/Text/index.tsx b/striker-ui/components/Text/index.tsx index 34a3bb5f..13f0260b 100644 --- a/striker-ui/components/Text/index.tsx +++ b/striker-ui/components/Text/index.tsx @@ -1,7 +1,9 @@ import BodyText, { BodyTextProps } from './BodyText'; -import DataGridCellText from './DataGridCellText'; import HeaderText from './HeaderText'; -import Monospace from './Monospace'; +import InlineMonoText from './InlineMonoText'; +import MonoText from './MonoText'; +import SmallText from './SmallText'; export type { BodyTextProps }; -export { BodyText, DataGridCellText, HeaderText, Monospace }; + +export { BodyText, HeaderText, InlineMonoText, MonoText, SmallText };