-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from knovator/updates/design-system
Updates/Design-System
- Loading branch information
Showing
36 changed files
with
365 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
export const TEXTS = { | ||
DROPZONE: { | ||
TITLE: 'Drag file here or Click to select file', | ||
SUBTITLE: '.csv, .xlx, .xlsx files are supported', | ||
TITLE: 'Drop your file here or ', | ||
BROWSE: 'Browse', | ||
SUBTITLE: 'Select any .csv, .xlx or .xlsx file', | ||
FILE_SELECTION: 'File selected successfully', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
apps/widget/src/design-system/InvalidWarning/InvalidWarning.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Tooltip } from '@mantine/core'; | ||
import { colors } from '../../config/colors.config'; | ||
|
||
interface InvalidWarningProps { | ||
label: string; | ||
} | ||
export function InvalidWarning(props: InvalidWarningProps) { | ||
const { label } = props; | ||
|
||
return ( | ||
<Tooltip label={label} withArrow> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="-2 -2 24 24" | ||
width="20" | ||
fill="currentColor" | ||
style={{ verticalAlign: 'middle', float: 'right', cursor: 'pointer', color: colors.red }} | ||
> | ||
{/* eslint-disable-next-line max-len */} | ||
<path d="M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-13a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0V6a1 1 0 0 1 1-1zm0 10a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"></path> | ||
</svg> | ||
</Tooltip> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './InvalidWarning'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,5 @@ Simple.args = { | |
centered: true, | ||
opened: true, | ||
overflow: 'inside', | ||
padding: 'sm', | ||
children: 'Content', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<string, any> => { | ||
return { | ||
header: getHeaderStyles(theme), | ||
modal: getModalStyles(theme), | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,4 @@ export const Simple = Template.bind({}); | |
Simple.args = { | ||
total: 10, | ||
page: 1, | ||
limit: 10, | ||
totalRecords: 100, | ||
}; |
Oops, something went wrong.