From 31bad12b36c75ef56617ad284d724e0a38722ca0 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Wed, 2 Nov 2022 10:53:52 +0530 Subject: [PATCH 01/10] feat: Updated Modal and Stepper styles to meet the design needs --- .../src/design-system/Modal/Modal.stories.tsx | 1 - .../src/design-system/Modal/Modal.style.ts | 19 +++++++++++++++++++ apps/widget/src/design-system/Modal/Modal.tsx | 19 +++++++------------ .../design-system/Stepper/Stepper.styles.ts | 2 ++ .../src/design-system/Stepper/Stepper.tsx | 6 +++--- 5 files changed, 31 insertions(+), 16 deletions(-) create mode 100644 apps/widget/src/design-system/Modal/Modal.style.ts diff --git a/apps/widget/src/design-system/Modal/Modal.stories.tsx b/apps/widget/src/design-system/Modal/Modal.stories.tsx index 325f2521d..16928e2c0 100644 --- a/apps/widget/src/design-system/Modal/Modal.stories.tsx +++ b/apps/widget/src/design-system/Modal/Modal.stories.tsx @@ -32,6 +32,5 @@ Simple.args = { centered: true, opened: true, overflow: 'inside', - padding: 'sm', children: 'Content', }; diff --git a/apps/widget/src/design-system/Modal/Modal.style.ts b/apps/widget/src/design-system/Modal/Modal.style.ts new file mode 100644 index 000000000..ad4200d5c --- /dev/null +++ b/apps/widget/src/design-system/Modal/Modal.style.ts @@ -0,0 +1,19 @@ +/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */ +import { createStyles, MantineTheme } from '@mantine/core'; +import { colors } from '../../config/colors.config'; + +export const getHeaderStyles = (theme: MantineTheme): React.CSSProperties => ({ + marginBottom: theme.spacing.xs, + marginRight: 0, +}); + +export const getModalStyles = (theme: MantineTheme): React.CSSProperties => ({ + padding: '100px', +}); + +export default createStyles((theme: MantineTheme, params, getRef): Record => { + return { + header: getHeaderStyles(theme), + modal: getModalStyles(theme), + }; +}); diff --git a/apps/widget/src/design-system/Modal/Modal.tsx b/apps/widget/src/design-system/Modal/Modal.tsx index 5dd8c7dc2..462d07c9a 100644 --- a/apps/widget/src/design-system/Modal/Modal.tsx +++ b/apps/widget/src/design-system/Modal/Modal.tsx @@ -1,5 +1,6 @@ import { PropsWithChildren } from 'react'; import { Modal as MantineModal } from '@mantine/core'; +import useStyles from './Modal.style'; interface IModalProps extends JSX.ElementChildrenAttribute { title?: string; @@ -8,20 +9,11 @@ interface IModalProps extends JSX.ElementChildrenAttribute { onClose: () => void; overflow?: 'inside' | 'outside'; size?: 'sm' | 'md' | 'lg' | '100%' | number; - padding?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number; } export function Modal(props: PropsWithChildren) { - const { - children, - onClose, - opened, - size = '100%', - padding = 'sm', - overflow = 'inside', - title, - centered = true, - } = props; + const { children, onClose, opened, size = '100%', overflow = 'inside', title, centered = true } = props; + const { classes } = useStyles(); return ( ) { centered={centered} overflow={overflow} title={title} - padding={padding} + classNames={{ + header: classes.header, + modal: classes.modal, + }} > {children} diff --git a/apps/widget/src/design-system/Stepper/Stepper.styles.ts b/apps/widget/src/design-system/Stepper/Stepper.styles.ts index 82358242e..983b3564a 100644 --- a/apps/widget/src/design-system/Stepper/Stepper.styles.ts +++ b/apps/widget/src/design-system/Stepper/Stepper.styles.ts @@ -1,4 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */ +import { colors } from '../../config/colors.config'; import { createStyles, MantineTheme } from '@mantine/core'; import { IStepperProps } from './Stepper'; @@ -7,6 +8,7 @@ export const getSeparatorStyles = (theme: MantineTheme) => ({ flex: 0, marginLeft: 10, marginRight: 10, + color: colors.lightGray, }); export default createStyles((theme: MantineTheme, params: IStepperProps, getRef) => { diff --git a/apps/widget/src/design-system/Stepper/Stepper.tsx b/apps/widget/src/design-system/Stepper/Stepper.tsx index 0b7bd9996..d7a35b889 100644 --- a/apps/widget/src/design-system/Stepper/Stepper.tsx +++ b/apps/widget/src/design-system/Stepper/Stepper.tsx @@ -1,4 +1,4 @@ -import { Stepper as MantineStepper, DefaultMantineColor, MantineSize } from '@mantine/core'; +import { Stepper as MantineStepper, DefaultMantineColor } from '@mantine/core'; import useStyles from './Stepper.styles'; interface IStep { @@ -9,11 +9,11 @@ interface IStep { export interface IStepperProps { active: number; steps: IStep[]; - size: MantineSize; + size?: 'xs' | 'sm' | 'md'; } export function Stepper(props: IStepperProps) { - const { active, steps, size } = props; + const { active, steps, size = 'md' } = props; const { classes } = useStyles(props); const getColor = (index: number): DefaultMantineColor => { From c18bf68ac0207994072398c8e391929e0e45a633 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Wed, 2 Nov 2022 11:26:32 +0530 Subject: [PATCH 02/10] feat: Added Select component --- .../design-system/Select/Select.stories.tsx | 16 ++++++++ .../src/design-system/Select/Select.styles.ts | 19 ++++++++++ .../src/design-system/Select/Select.tsx | 37 +++++++++++++++++++ apps/widget/src/design-system/Select/index.ts | 1 + 4 files changed, 73 insertions(+) create mode 100644 apps/widget/src/design-system/Select/Select.stories.tsx create mode 100644 apps/widget/src/design-system/Select/Select.styles.ts create mode 100644 apps/widget/src/design-system/Select/Select.tsx create mode 100644 apps/widget/src/design-system/Select/index.ts diff --git a/apps/widget/src/design-system/Select/Select.stories.tsx b/apps/widget/src/design-system/Select/Select.stories.tsx new file mode 100644 index 000000000..dc71189ed --- /dev/null +++ b/apps/widget/src/design-system/Select/Select.stories.tsx @@ -0,0 +1,16 @@ +import { ComponentStory, ComponentMeta } from '@storybook/react'; +import { Select } from './Select'; + +export default { + title: 'Select', + component: Select, +} as ComponentMeta; + +const Template: ComponentStory = (args) => Date: Wed, 2 Nov 2022 16:07:07 +0530 Subject: [PATCH 06/10] feat: Updated Dropzone and File components to meed design needs: --- .../src/design-system/Dropzone/Dropzone.stories.tsx | 11 ++++++++++- apps/widget/src/design-system/File/File.style.ts | 1 + apps/widget/src/design-system/File/File.tsx | 7 ++++--- apps/widget/src/icons/file.icon.tsx | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/apps/widget/src/design-system/Dropzone/Dropzone.stories.tsx b/apps/widget/src/design-system/Dropzone/Dropzone.stories.tsx index 0aed7f57d..9a4d643a3 100644 --- a/apps/widget/src/design-system/Dropzone/Dropzone.stories.tsx +++ b/apps/widget/src/design-system/Dropzone/Dropzone.stories.tsx @@ -23,4 +23,13 @@ export default { const Template: ComponentStory = (args) => ; -export const Simple = Template.bind({}); +export const Default = Template.bind({}); + +export const WithFile = Template.bind({}); +WithFile.args = { + title: 'Select a file', + file: { + name: 'Document.tsx', + size: 1200, + } as unknown as File, +}; diff --git a/apps/widget/src/design-system/File/File.style.ts b/apps/widget/src/design-system/File/File.style.ts index 747969fce..5896ccfe3 100644 --- a/apps/widget/src/design-system/File/File.style.ts +++ b/apps/widget/src/design-system/File/File.style.ts @@ -16,6 +16,7 @@ export const getContainerStyles = (theme: MantineTheme): React.CSSProperties => export const getFileIconStyles = (theme: MantineTheme): React.CSSProperties => ({ color: colors.darkDeem, height: '20px', + width: '20px', }); export const getCrossIconStyles = (theme: MantineTheme): React.CSSProperties => ({ diff --git a/apps/widget/src/design-system/File/File.tsx b/apps/widget/src/design-system/File/File.tsx index 4a7321cf1..992082f38 100644 --- a/apps/widget/src/design-system/File/File.tsx +++ b/apps/widget/src/design-system/File/File.tsx @@ -1,6 +1,7 @@ import { FileIcon, CrossIcon } from '../../icons'; import { Group, Text } from '@mantine/core'; import useStyles from './File.style'; +import { colors } from '../../config/colors.config'; interface IFile { name: string; @@ -21,13 +22,13 @@ export function File(props: IFile) { return ( - - + + {name} - + {size} diff --git a/apps/widget/src/icons/file.icon.tsx b/apps/widget/src/icons/file.icon.tsx index 8d55e76a4..cb9827fe1 100644 --- a/apps/widget/src/icons/file.icon.tsx +++ b/apps/widget/src/icons/file.icon.tsx @@ -11,7 +11,7 @@ export function FileIcon(props: IIcon) { className={props.className} > From 2257314a4378af2fe73c96d84da10628b8f2356f Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Thu, 3 Nov 2022 11:54:12 +0530 Subject: [PATCH 07/10] feat: Removed total data showing from Pagination --- .../design-system/Pagination/Pagination.stories.tsx | 2 -- .../src/design-system/Pagination/Pagination.tsx | 12 +++--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/apps/widget/src/design-system/Pagination/Pagination.stories.tsx b/apps/widget/src/design-system/Pagination/Pagination.stories.tsx index e85ca0c85..4aa75f0ec 100644 --- a/apps/widget/src/design-system/Pagination/Pagination.stories.tsx +++ b/apps/widget/src/design-system/Pagination/Pagination.stories.tsx @@ -17,6 +17,4 @@ export const Simple = Template.bind({}); Simple.args = { total: 10, page: 1, - limit: 10, - totalRecords: 100, }; diff --git a/apps/widget/src/design-system/Pagination/Pagination.tsx b/apps/widget/src/design-system/Pagination/Pagination.tsx index e2e69e71d..673271779 100644 --- a/apps/widget/src/design-system/Pagination/Pagination.tsx +++ b/apps/widget/src/design-system/Pagination/Pagination.tsx @@ -1,23 +1,17 @@ -import { Pagination as MantinePagination, Group, Text } from '@mantine/core'; +import { Pagination as MantinePagination, Group } from '@mantine/core'; interface IPaginationProps { page?: number; total: number; - limit: number; - totalRecords: number; size?: 'sm' | 'md'; onChange?: (page: number) => void; } export function Pagination(props: IPaginationProps) { - const { total, page = 1, limit, totalRecords, size = 'md', onChange } = props; + const { total, page = 1, size = 'md', onChange } = props; return ( - - - {Math.max(0, Math.min((page - 1) * limit, totalRecords))}-{Math.max(0, Math.min(page * limit, totalRecords))} of{' '} - {totalRecords} - + ); From 7945516515c338ebcff0c5e8c1c420a0bdce1856 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Thu, 3 Nov 2022 11:58:35 +0530 Subject: [PATCH 08/10] feat: Added warning to Table --- apps/widget/src/config/colors.config.ts | 1 + .../InvalidWarning/InvalidWarning.tsx | 23 +++++++++++ .../src/design-system/InvalidWarning/index.ts | 1 + .../src/design-system/Table/Table.stories.tsx | 11 ++++-- .../src/design-system/Table/Table.style.ts | 9 ++++- apps/widget/src/design-system/Table/Table.tsx | 38 ++++++++++++++----- apps/widget/src/icons/download.icon.tsx | 20 ++++++++++ apps/widget/src/icons/index.ts | 1 + apps/widget/src/types/icon.types.ts | 1 + apps/widget/src/util/helpers.ts | 12 ++++++ 10 files changed, 102 insertions(+), 15 deletions(-) create mode 100644 apps/widget/src/design-system/InvalidWarning/InvalidWarning.tsx create mode 100644 apps/widget/src/design-system/InvalidWarning/index.ts create mode 100644 apps/widget/src/icons/download.icon.tsx create mode 100644 apps/widget/src/util/helpers.ts diff --git a/apps/widget/src/config/colors.config.ts b/apps/widget/src/config/colors.config.ts index 0a1bce250..662bcf8db 100644 --- a/apps/widget/src/config/colors.config.ts +++ b/apps/widget/src/config/colors.config.ts @@ -6,5 +6,6 @@ export const colors = { lightGray: '#F8F8F8', black: '#000000', danger: '#AB3022', + lightDanger: '#FDEBEB', light: '#F2F9FE', }; diff --git a/apps/widget/src/design-system/InvalidWarning/InvalidWarning.tsx b/apps/widget/src/design-system/InvalidWarning/InvalidWarning.tsx new file mode 100644 index 000000000..115deac61 --- /dev/null +++ b/apps/widget/src/design-system/InvalidWarning/InvalidWarning.tsx @@ -0,0 +1,23 @@ +import { Tooltip } from '@mantine/core'; + +interface InvalidWarningProps { + label: string; +} +export function InvalidWarning(props: InvalidWarningProps) { + const { label } = props; + + return ( + + + {/* eslint-disable-next-line max-len */} + + + + ); +} diff --git a/apps/widget/src/design-system/InvalidWarning/index.ts b/apps/widget/src/design-system/InvalidWarning/index.ts new file mode 100644 index 000000000..516a46128 --- /dev/null +++ b/apps/widget/src/design-system/InvalidWarning/index.ts @@ -0,0 +1 @@ +export * from './InvalidWarning'; diff --git a/apps/widget/src/design-system/Table/Table.stories.tsx b/apps/widget/src/design-system/Table/Table.stories.tsx index b461b4e38..025e2cdeb 100644 --- a/apps/widget/src/design-system/Table/Table.stories.tsx +++ b/apps/widget/src/design-system/Table/Table.stories.tsx @@ -28,12 +28,15 @@ Empty.args = { data: [], }; -export const CustomCellRender = Template.bind({}); -CustomCellRender.args = { +export const WithError = Template.bind({}); +WithError.args = { headings: [ - { title: 'First Name', key: 'firstName', Cell: (item) => {item.firstName} }, + { title: 'First Name', key: 'firstName' }, { title: 'Last Name', key: 'lastName' }, { title: 'Surname', key: 'surname' }, ], - data: [{ firstName: 'John', lastName: 'Baber', surname: 'Doe' }], + data: [ + { firstName: 'John', lastName: 'Baber', surname: 'Doe', error: '`firstName` should be unique' }, + { firstName: 'John', lastName: 'Baber', surname: 'Doe', error: '`lastName` should be unique' }, + ], }; diff --git a/apps/widget/src/design-system/Table/Table.style.ts b/apps/widget/src/design-system/Table/Table.style.ts index cd1a232ef..9c1c6ed83 100644 --- a/apps/widget/src/design-system/Table/Table.style.ts +++ b/apps/widget/src/design-system/Table/Table.style.ts @@ -2,15 +2,22 @@ import { createStyles, MantineTheme } from '@mantine/core'; import { colors } from '../../config/colors.config'; -export const getTableStyles = (theme: MantineTheme) => ({}); +export const getTableStyles = (theme: MantineTheme) => ({ + textAlign: 'center', +}); export const getHeadingStyles = (theme: MantineTheme): React.CSSProperties => ({ backgroundColor: colors.lightGray, }); +export const getInvalidColumnStyles = (theme: MantineTheme): React.CSSProperties => ({ + backgroundColor: colors.lightDanger, +}); + export default createStyles((theme: MantineTheme, params, getRef): Record => { return { table: getTableStyles(theme), heading: getHeadingStyles(theme), + invalidColumn: getInvalidColumnStyles(theme), }; }); diff --git a/apps/widget/src/design-system/Table/Table.tsx b/apps/widget/src/design-system/Table/Table.tsx index ac0bfae2e..76a330caf 100644 --- a/apps/widget/src/design-system/Table/Table.tsx +++ b/apps/widget/src/design-system/Table/Table.tsx @@ -1,16 +1,18 @@ import { Table as MantineTable } from '@mantine/core'; import useStyles from './Table.style'; +import { getErrorObject } from '../../util/helpers'; +import { InvalidWarning } from '../InvalidWarning'; interface IHeadingItem { title: string; key: string; - Cell?: (item: Record) => any; + width?: number | string; } interface ITableProps { emptyDataText?: string; headings?: IHeadingItem[]; - data?: Record[]; + data?: Record[]; } export function Table(props: ITableProps) { @@ -27,7 +29,9 @@ export function Table(props: ITableProps) { {headings.map((heading: IHeadingItem, index: number) => ( - {heading.title} + + {heading.title} + ))} @@ -35,6 +39,7 @@ export function Table(props: ITableProps) { }; const TBody = () => { + let errorObject: Record; if (isHeadingsEmpty) return ; if (isDataEmpty) @@ -48,13 +53,26 @@ export function Table(props: ITableProps) { return ( - {data.map((item: Record, i: number) => ( - - {headings.map((heading: IHeadingItem, fieldIndex: number) => ( - {typeof heading.Cell === 'function' ? heading.Cell(item) : item[heading.key]} - ))} - - ))} + {data.map((item: Record, i: number) => { + errorObject = getErrorObject(item.error); + + return ( + + {headings.map((heading: IHeadingItem, fieldIndex: number) => + errorObject[heading.key] ? ( + // if error exist for column + + {item[heading.key]} + + + ) : ( + // normal column + {item[heading.key]} + ) + )} + + ); + })} ); }; diff --git a/apps/widget/src/icons/download.icon.tsx b/apps/widget/src/icons/download.icon.tsx new file mode 100644 index 000000000..1e7bacfc5 --- /dev/null +++ b/apps/widget/src/icons/download.icon.tsx @@ -0,0 +1,20 @@ +import { IIcon } from '@types'; + +export function Download(props: IIcon) { + return ( + + + + + ); +} diff --git a/apps/widget/src/icons/index.ts b/apps/widget/src/icons/index.ts index 8f0ddbd89..7994e6965 100644 --- a/apps/widget/src/icons/index.ts +++ b/apps/widget/src/icons/index.ts @@ -3,3 +3,4 @@ export * from './check.icon'; export * from './cross.icon'; export * from './chevron-down.icon'; export * from './green-check.icon'; +export * from './download.icon'; diff --git a/apps/widget/src/types/icon.types.ts b/apps/widget/src/types/icon.types.ts index 45c894759..049cb9515 100644 --- a/apps/widget/src/types/icon.types.ts +++ b/apps/widget/src/types/icon.types.ts @@ -1,4 +1,5 @@ export interface IIcon { + fill?: string; styles?: React.CSSProperties; className?: string; onClick?: (e: any) => void; diff --git a/apps/widget/src/util/helpers.ts b/apps/widget/src/util/helpers.ts new file mode 100644 index 000000000..ca9a1529b --- /dev/null +++ b/apps/widget/src/util/helpers.ts @@ -0,0 +1,12 @@ +export function getErrorObject(error: string): Record { + if (!error) return {}; + const errorStrs = error.split(`, `); + let fieldName: string; + + return errorStrs.reduce((acc: Record, val: string) => { + [, fieldName] = val.split(/`/); + acc[fieldName] = val; + + return acc; + }, {}); +} From 286438208ad7dce5915e6e7260fc94f5606d6ec2 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Thu, 3 Nov 2022 13:51:31 +0530 Subject: [PATCH 09/10] feat: Added Warning icon and updated config --- apps/widget/src/config/colors.config.ts | 1 + apps/widget/src/config/theme.config.ts | 4 ---- .../InvalidWarning/InvalidWarning.tsx | 3 ++- apps/widget/src/icons/index.ts | 1 + apps/widget/src/icons/warning.icon.tsx | 19 +++++++++++++++++++ 5 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 apps/widget/src/icons/warning.icon.tsx diff --git a/apps/widget/src/config/colors.config.ts b/apps/widget/src/config/colors.config.ts index 662bcf8db..f76bac101 100644 --- a/apps/widget/src/config/colors.config.ts +++ b/apps/widget/src/config/colors.config.ts @@ -5,6 +5,7 @@ export const colors = { lightDeem: '#CCCCCC', lightGray: '#F8F8F8', black: '#000000', + red: '#E40000', danger: '#AB3022', lightDanger: '#FDEBEB', light: '#F2F9FE', diff --git a/apps/widget/src/config/theme.config.ts b/apps/widget/src/config/theme.config.ts index 7445fe7f2..3afeeaf25 100644 --- a/apps/widget/src/config/theme.config.ts +++ b/apps/widget/src/config/theme.config.ts @@ -6,9 +6,5 @@ export const mantineConfig: MantineThemeOverride = { fontFamily: "'Lato', sans serif", headings: { fontFamily: "'Lato', sans serif", - sizes: { - h1: { fontSize: 26 }, - h2: { fontSize: 20 }, - }, }, }; diff --git a/apps/widget/src/design-system/InvalidWarning/InvalidWarning.tsx b/apps/widget/src/design-system/InvalidWarning/InvalidWarning.tsx index 115deac61..483e24fe2 100644 --- a/apps/widget/src/design-system/InvalidWarning/InvalidWarning.tsx +++ b/apps/widget/src/design-system/InvalidWarning/InvalidWarning.tsx @@ -1,4 +1,5 @@ import { Tooltip } from '@mantine/core'; +import { colors } from '../../config/colors.config'; interface InvalidWarningProps { label: string; @@ -13,7 +14,7 @@ export function InvalidWarning(props: InvalidWarningProps) { viewBox="-2 -2 24 24" width="20" fill="currentColor" - style={{ verticalAlign: 'middle', float: 'right', cursor: 'pointer', color: '#e40000' }} + style={{ verticalAlign: 'middle', float: 'right', cursor: 'pointer', color: colors.red }} > {/* eslint-disable-next-line max-len */} diff --git a/apps/widget/src/icons/index.ts b/apps/widget/src/icons/index.ts index 7994e6965..5a6ed639e 100644 --- a/apps/widget/src/icons/index.ts +++ b/apps/widget/src/icons/index.ts @@ -4,3 +4,4 @@ export * from './cross.icon'; export * from './chevron-down.icon'; export * from './green-check.icon'; export * from './download.icon'; +export * from './warning.icon'; diff --git a/apps/widget/src/icons/warning.icon.tsx b/apps/widget/src/icons/warning.icon.tsx new file mode 100644 index 000000000..455193b6b --- /dev/null +++ b/apps/widget/src/icons/warning.icon.tsx @@ -0,0 +1,19 @@ +import { IIcon } from '@types'; + +export function Warning(props: IIcon) { + const { className, styles, fill } = props; + + return ( + + {/* eslint-disable-next-line max-len */} + + + ); +} From eaa750d8c2a91b5b7e152f72cf8ac5ff6c77a75d Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Thu, 3 Nov 2022 14:41:14 +0530 Subject: [PATCH 10/10] feat: Added left-icon to Button and added Download icon --- apps/widget/src/design-system/Button/Button.tsx | 15 ++++++++++++--- apps/widget/src/icons/download.icon.tsx | 11 ++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/apps/widget/src/design-system/Button/Button.tsx b/apps/widget/src/design-system/Button/Button.tsx index 0350160a9..a9ac94ccf 100644 --- a/apps/widget/src/design-system/Button/Button.tsx +++ b/apps/widget/src/design-system/Button/Button.tsx @@ -1,4 +1,4 @@ -import { PropsWithChildren } from 'react'; +import { PropsWithChildren, ReactNode } from 'react'; import { Button as MantineButton, MantineSize } from '@mantine/core'; interface IButtonProps { @@ -8,13 +8,22 @@ interface IButtonProps { onClick?: () => void; size?: MantineSize; color?: 'blue' | 'red'; + leftIcon?: ReactNode; } export function Button(props: PropsWithChildren) { - const { variant, disabled, children, loading, onClick, size = 'md', color } = props; + const { variant, disabled, children, loading, onClick, size = 'md', color, leftIcon } = props; return ( - + {children} ); diff --git a/apps/widget/src/icons/download.icon.tsx b/apps/widget/src/icons/download.icon.tsx index 1e7bacfc5..0b5ee11e8 100644 --- a/apps/widget/src/icons/download.icon.tsx +++ b/apps/widget/src/icons/download.icon.tsx @@ -4,17 +4,14 @@ export function Download(props: IIcon) { return ( - - + {/* eslint-disable-next-line max-len */} + ); }