Skip to content

Commit 0762402

Browse files
Added new colors to the core theme and fixed Modal export (#60)
* added new colors to the core theme...fixed Modal export * updated patch version no Signed-off-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>
1 parent 64cd358 commit 0762402

File tree

8 files changed

+63
-7
lines changed

8 files changed

+63
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kubera-ui",
33
"license": "Apache-2.0",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"private": false,
66
"description": "Component Library for Kubera products",
77
"author": "MayaData, Inc.",

src/core/Button/ButtonFilled/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { fade, makeStyles, Theme } from '@material-ui/core';
33
const useStyles = makeStyles((theme: Theme) => ({
44
// Global
55
root: {
6+
height: 'fit-content',
67
padding: theme.spacing(1.5, 2),
78
textTransform: 'none',
89
background: theme.palette.primary.main,

src/core/Button/ButtonOutlined/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { fade, makeStyles, Theme } from '@material-ui/core';
33
const useStyles = makeStyles((theme: Theme) => ({
44
// Global
55
root: {
6+
height: 'fit-content',
67
padding: theme.spacing(1.5, 2),
78
textTransform: 'none',
89
background: 'transparent',

src/core/Modal/Modal.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { storiesOf } from '@storybook/react';
22
import React from 'react';
33
import { ThemedBackground } from '../../utils/storybook';
4-
import Modal from './Modal';
4+
import { Modal } from './Modal';
55

66
storiesOf('Modal/Base Modal', module)
77
// Kubera Chaos

src/core/Modal/Modal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Modal as MuiModal, Button } from '@material-ui/core';
2-
import { ModalBaseProps } from './base';
1+
import { Button, Modal as MuiModal } from '@material-ui/core';
32
import React from 'react';
3+
import { ModalBaseProps } from './base';
44
import useStyles from './styles';
55

66
interface ModalProps extends ModalBaseProps {
@@ -40,4 +40,4 @@ const Modal: React.FC<ModalProps> = ({
4040
);
4141
};
4242

43-
export default Modal;
43+
export { Modal };

src/core/Modal/__tests__/Modal.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { render } from '@testing-library/react';
22
import React from 'react';
33
import { KuberaThemeProvider } from '../../../theme';
4-
import Modal from '../Modal';
4+
import { Modal } from '../Modal';
55

66
describe('Modal Component', () => {
77
it('Renders', () => {

src/theme/base.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,33 @@ declare module '@material-ui/core/styles/createMuiTheme' {
55
export interface Theme {
66
kuberaCoreCards: {
77
kuberaChaos: {
8+
background: {
9+
default: string;
10+
paper: string;
11+
};
12+
button: {
13+
unconfigured: string;
14+
configured: string;
15+
};
816
card: string;
17+
highlight: string;
918
license: {
1019
selection: string;
1120
header: string;
1221
body: string;
1322
};
1423
};
1524
kuberaPropel: {
25+
background: {
26+
default: string;
27+
paper: string;
28+
};
29+
button: {
30+
unconfigured: string;
31+
configured: string;
32+
};
1633
card: string;
34+
highlight: string;
1735
license: {
1836
selection: string;
1937
header: string;
@@ -26,15 +44,33 @@ declare module '@material-ui/core/styles/createMuiTheme' {
2644
export interface ThemeOptions {
2745
kuberaCoreCards?: {
2846
kuberaChaos?: {
47+
background: {
48+
default: string;
49+
paper: string;
50+
};
51+
button: {
52+
unconfigured: string;
53+
configured: string;
54+
};
2955
card: string;
56+
highlight: string;
3057
license: {
3158
selection: string;
3259
header: string;
3360
body: string;
3461
};
3562
};
3663
kuberaPropel?: {
64+
background: {
65+
default: string;
66+
paper: string;
67+
};
68+
button: {
69+
unconfigured: string;
70+
configured: string;
71+
};
3772
card: string;
73+
highlight: string;
3874
license: {
3975
selection: string;
4076
header: string;

src/theme/kubera-core.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,33 @@ const kuberaCoreTheme = createTheme({
8686

8787
kuberaCoreCards: {
8888
kuberaChaos: {
89-
card: 'linear-gradient(255.08deg, #0D654B 7.37%, #0B4F3A 100%)',
89+
background: {
90+
default: 'linear-gradient(268.56deg, #443F93 1.65%, #292A5B 61.02%)',
91+
paper: 'linear-gradient(255.08deg, #0F7B5B 7.37%, #0E5B44 100%)',
92+
},
93+
button: {
94+
unconfigured: '#52F99540',
95+
configured: '#2BCB69',
96+
},
97+
card: 'linear-gradient(255.08deg, #0F7B5B 7.37%, #0E5B44 100%)',
98+
highlight: '#52FF95',
9099
license: {
91100
selection: '#0000004D',
92101
header: 'linear-gradient(255.08deg, #0E694E 7.37%, #094533 100%)',
93102
body: 'linear-gradient(255.08deg, #074633 7.37%, #04281E 100%)',
94103
},
95104
},
96105
kuberaPropel: {
106+
background: {
107+
default: 'linear-gradient(265.69deg, #108461 1.43%, #0C262E 64.44%)',
108+
paper: 'linear-gradient(249.11deg, #5759A5 25.9%, #505193 94.35%)',
109+
},
110+
button: {
111+
unconfigured: '#EAD74240',
112+
configured: '#BDAC74',
113+
},
97114
card: 'linear-gradient(63.18deg, #2C354D 5.01%, #323E5B 102.43%)',
115+
highlight: '#EAD7A2',
98116
license: {
99117
selection: '#0000004D',
100118
header: 'linear-gradient(63.18deg, #262F44 5.01%, #323E5B 102.43%)',

0 commit comments

Comments
 (0)