Refactor/modal component tests 1332 (#1392)

* feat: Add separate constants in theme for modal sizes and paddings

* feat: Implement dynamic sizing and padding for Modal

* feat: use dynamic modal feature for csv import

* fix: Remove redundant props from spreadsheet-import

* fix: use theme.spacing() instead

* fix: place types to Modal.tsx, convert ternary to switch-case, give default value

* fix: give px to modal sizes

* enhance: add color style to modal

* feat: add modal to storybook
This commit is contained in:
Mustajab Ikram
2023-09-08 02:04:32 +05:30
committed by GitHub
parent a902b7c6fe
commit bd2e4307d2
5 changed files with 77 additions and 26 deletions

View File

@ -0,0 +1,7 @@
export const modal = {
size: {
sm: '300px',
md: '400px',
lg: '53%',
},
};

View File

@ -7,6 +7,7 @@ import { boxShadowDark, boxShadowLight } from './boxShadow';
import { color, grayScale } from './colors';
import { fontDark, fontLight } from './font';
import { icon } from './icon';
import { modal } from './modal';
import { tagDark, tagLight } from './tag';
import { text } from './text';
@ -14,6 +15,7 @@ const common = {
color: color,
grayScale: grayScale,
icon: icon,
modal: modal,
text: text,
blur: blur,
animation: animation,