@lunit/oui 1.0.0-alpha.9 → 1.0.1-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/Alert.utils.js +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Chip/Chip.utils.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/DropdownItem.js +1 -1
- package/dist/components/Dropdown/IconDropdown.js +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListItem.styled.js +1 -1
- package/dist/components/Pagination/Pagination.js +65 -0
- package/dist/components/Pagination/Pagination.styled.js +64 -0
- package/dist/components/Pagination/Pagination.types.js +2 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/ProductLabel/ProductLabel.js +1 -1
- package/dist/components/TextField/components/Buttons.js +1 -1
- package/dist/components/UploadManager/UploadManager.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/foundations/index.js +1 -0
- package/dist/foundations/palette.js +4 -0
- package/dist/foundations/styles.js +7 -0
- package/dist/types/components/Pagination/Pagination.d.ts +3 -0
- package/dist/types/components/Pagination/Pagination.styled.d.ts +24 -0
- package/dist/types/components/Pagination/Pagination.types.d.ts +35 -0
- package/dist/types/components/Pagination/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/foundations/index.d.ts +1 -0
- package/dist/types/foundations/palette.d.ts +8 -1
- package/dist/types/foundations/styles.d.ts +2 -0
- package/package.json +7 -11
- package/.git-ftp-include +0 -1
- package/dist/components/Icons/BellNoti/index.js +0 -14
- package/dist/components/Icons/CloseLarge/index.js +0 -14
- package/dist/components/Icons/CloseSmall/index.js +0 -14
- package/dist/components/Icons/DownloadPdf/index.js +0 -14
- package/dist/components/Icons/Ellipse/index.js +0 -14
- package/dist/components/Icons/FilterNoti/index.js +0 -14
- package/dist/components/Icons/HideLarge/index.js +0 -14
- package/dist/components/Icons/HideSmall/index.js +0 -14
- package/dist/components/Icons/InformationLarge/index.js +0 -14
- package/dist/components/Icons/InformationSmall/index.js +0 -14
- package/dist/components/Icons/Manufacturer/index.js +0 -14
- package/dist/components/Icons/Rectangle/index.js +0 -14
- package/dist/components/Icons/RefreshLeft/index.js +0 -14
- package/dist/components/Icons/RefreshRight/index.js +0 -14
- package/dist/components/Icons/ShowLarge/index.js +0 -14
- package/dist/components/Icons/ShowSmall/index.js +0 -14
- package/dist/components/Icons/index.js +0 -180
- package/dist/types/components/Icons/BellNoti/index.d.ts +0 -12
- package/dist/types/components/Icons/CloseLarge/index.d.ts +0 -12
- package/dist/types/components/Icons/CloseSmall/index.d.ts +0 -12
- package/dist/types/components/Icons/DownloadPdf/index.d.ts +0 -12
- package/dist/types/components/Icons/Ellipse/index.d.ts +0 -12
- package/dist/types/components/Icons/FilterNoti/index.d.ts +0 -12
- package/dist/types/components/Icons/HideLarge/index.d.ts +0 -12
- package/dist/types/components/Icons/HideSmall/index.d.ts +0 -12
- package/dist/types/components/Icons/InformationLarge/index.d.ts +0 -12
- package/dist/types/components/Icons/InformationSmall/index.d.ts +0 -12
- package/dist/types/components/Icons/Manufacturer/index.d.ts +0 -12
- package/dist/types/components/Icons/Rectangle/index.d.ts +0 -12
- package/dist/types/components/Icons/RefreshLeft/index.d.ts +0 -12
- package/dist/types/components/Icons/RefreshRight/index.d.ts +0 -12
- package/dist/types/components/Icons/ShowLarge/index.d.ts +0 -12
- package/dist/types/components/Icons/ShowSmall/index.d.ts +0 -12
- package/dist/types/components/Icons/index.d.ts +0 -179
- package/src/assets/ic-bell-noti-outlined-20px.tsx +0 -21
- package/src/assets/ic-close-large-outlined-20px.tsx +0 -17
- package/src/assets/ic-close-small-outlined-20px.tsx +0 -17
- package/src/assets/ic-download-pdf-outlined-20px.tsx +0 -18
- package/src/assets/ic-ellipse-outlined-20px.tsx +0 -17
- package/src/assets/ic-filter-noti-outlined-20px.tsx +0 -21
- package/src/assets/ic-hide-large-outlined-20px.tsx +0 -13
- package/src/assets/ic-hide-small-outlined-20px.tsx +0 -17
- package/src/assets/ic-information-large-outlined-20px.tsx +0 -17
- package/src/assets/ic-information-small-outlined-20px.tsx +0 -17
- package/src/assets/ic-manufacturer-outlined-20px.tsx +0 -19
- package/src/assets/ic-rectangle-outlined-20px.tsx +0 -17
- package/src/assets/ic-refresh-left-outlined-20px.tsx +0 -17
- package/src/assets/ic-refresh-right-outlined-20px.tsx +0 -13
- package/src/assets/ic-show-large-outlined-20px.tsx +0 -17
- package/src/assets/ic-show-small-outlined-20px.tsx +0 -17
- package/src/assets/ic_bell_noti=outlined_20px.svg +0 -5
- package/src/assets/ic_close_large=outlined_20px.svg +0 -4
- package/src/assets/ic_close_small=outlined_20px.svg +0 -4
- package/src/assets/ic_download_pdf=outlined_20px.svg +0 -7
- package/src/assets/ic_ellipse=outlined_20px.svg +0 -4
- package/src/assets/ic_filter_noti=outlined_20px.svg +0 -5
- package/src/assets/ic_hide_large=outlined_20px.svg +0 -4
- package/src/assets/ic_hide_small=outlined_20px.svg +0 -4
- package/src/assets/ic_information_large=outlined_20px.svg +0 -4
- package/src/assets/ic_information_small=outlined_20px.svg +0 -4
- package/src/assets/ic_manufacturer=outlined_20px.svg +0 -3
- package/src/assets/ic_rectangle=outlined_20px.svg +0 -4
- package/src/assets/ic_refresh_left=outlined_20px.svg +0 -4
- package/src/assets/ic_refresh_right=outlined_20px.svg +0 -4
- package/src/assets/ic_show_large=outlined_20px.svg +0 -4
- package/src/assets/ic_show_small=outlined_20px.svg +0 -4
- package/src/assets/index.ts +0 -16
- package/src/components/Alert/Alert.styled.ts +0 -44
- package/src/components/Alert/Alert.tsx +0 -39
- package/src/components/Alert/Alert.types.ts +0 -5
- package/src/components/Alert/Alert.utils.tsx +0 -43
- package/src/components/Alert/index.ts +0 -5
- package/src/components/BaseTextField/BaseTextField.styled.ts +0 -110
- package/src/components/BaseTextField/BaseTextField.types.ts +0 -25
- package/src/components/BaseTextField/BaseTextField.utils.ts +0 -10
- package/src/components/Button/BaseButton.tsx +0 -19
- package/src/components/Button/Button.tsx +0 -117
- package/src/components/Button/Button.types.ts +0 -36
- package/src/components/Button/Button.utils.ts +0 -13
- package/src/components/Button/index.ts +0 -6
- package/src/components/Button/styleds/BaseButton.styled.ts +0 -57
- package/src/components/Button/styleds/ContainedButton.styled.ts +0 -123
- package/src/components/Button/styleds/GhostButton.styled.ts +0 -139
- package/src/components/Button/styleds/IconButton.styled.ts +0 -25
- package/src/components/Button/styleds/OutlinedButton.styled.ts +0 -144
- package/src/components/Card/Card.styled.tsx +0 -18
- package/src/components/Card/Card.tsx +0 -18
- package/src/components/Card/Card.types.ts +0 -10
- package/src/components/Card/index.ts +0 -5
- package/src/components/Checkbox/Checkbox.styled.tsx +0 -27
- package/src/components/Checkbox/Checkbox.tsx +0 -64
- package/src/components/Checkbox/Checkbox.types.ts +0 -16
- package/src/components/Checkbox/Checkbox.utils.tsx +0 -42
- package/src/components/Checkbox/index.ts +0 -5
- package/src/components/Chip/Chip.styled.ts +0 -120
- package/src/components/Chip/Chip.tsx +0 -33
- package/src/components/Chip/Chip.types.ts +0 -18
- package/src/components/Chip/Chip.utils.tsx +0 -50
- package/src/components/Chip/index.ts +0 -4
- package/src/components/DataTable/DataTable.styled.ts +0 -66
- package/src/components/DataTable/DataTable.tsx +0 -29
- package/src/components/DataTable/index.ts +0 -1
- package/src/components/DatePicker/DatePicker.styled.ts +0 -19
- package/src/components/DatePicker/DatePicker.tsx +0 -194
- package/src/components/DatePicker/DatePicker.types.ts +0 -8
- package/src/components/DatePicker/index.ts +0 -4
- package/src/components/Dialog/Dialog.styled.ts +0 -87
- package/src/components/Dialog/Dialog.tsx +0 -111
- package/src/components/Dialog/Dialog.types.ts +0 -19
- package/src/components/Dialog/index.ts +0 -5
- package/src/components/Divider/Divider.styled.ts +0 -24
- package/src/components/Divider/Divider.tsx +0 -13
- package/src/components/Divider/Divider.types.ts +0 -7
- package/src/components/Divider/index.ts +0 -5
- package/src/components/Dropdown/Dropdown.styled.tsx +0 -127
- package/src/components/Dropdown/Dropdown.tsx +0 -116
- package/src/components/Dropdown/Dropdown.types.ts +0 -31
- package/src/components/Dropdown/Dropdown.utils.ts +0 -13
- package/src/components/Dropdown/DropdownItem.styled.tsx +0 -66
- package/src/components/Dropdown/DropdownItem.tsx +0 -45
- package/src/components/Dropdown/DropdownItem.types.ts +0 -14
- package/src/components/Dropdown/DropdownItem.utils.ts +0 -14
- package/src/components/Dropdown/DropdownSubtitle.styled.ts +0 -13
- package/src/components/Dropdown/DropdownSubtitle.tsx +0 -9
- package/src/components/Dropdown/DropdownSubtitle.types.ts +0 -6
- package/src/components/Dropdown/IconDropdown.styled.tsx +0 -82
- package/src/components/Dropdown/IconDropdown.tsx +0 -56
- package/src/components/Dropdown/IconDropdown.types.ts +0 -22
- package/src/components/Dropdown/index.ts +0 -22
- package/src/components/FileDnDZone/FileDnDZone.styled.ts +0 -43
- package/src/components/FileDnDZone/FileDnDZone.tsx +0 -81
- package/src/components/FileDnDZone/FileDnDZone.types.ts +0 -14
- package/src/components/FileDnDZone/FileDnDZone.utils.ts +0 -3
- package/src/components/FileDnDZone/index.ts +0 -5
- package/src/components/Icons/BellNoti/index.tsx +0 -22
- package/src/components/Icons/CloseLarge/index.tsx +0 -22
- package/src/components/Icons/CloseSmall/index.tsx +0 -22
- package/src/components/Icons/DownloadPdf/index.tsx +0 -22
- package/src/components/Icons/Ellipse/index.tsx +0 -22
- package/src/components/Icons/FilterNoti/index.tsx +0 -22
- package/src/components/Icons/HideLarge/index.tsx +0 -22
- package/src/components/Icons/HideSmall/index.tsx +0 -22
- package/src/components/Icons/InformationLarge/index.tsx +0 -22
- package/src/components/Icons/InformationSmall/index.tsx +0 -22
- package/src/components/Icons/Manufacturer/index.tsx +0 -22
- package/src/components/Icons/Rectangle/index.tsx +0 -22
- package/src/components/Icons/RefreshLeft/index.tsx +0 -22
- package/src/components/Icons/RefreshRight/index.tsx +0 -22
- package/src/components/Icons/ShowLarge/index.tsx +0 -22
- package/src/components/Icons/ShowSmall/index.tsx +0 -22
- package/src/components/Icons/index.ts +0 -180
- package/src/components/List/List.styled.ts +0 -31
- package/src/components/List/List.tsx +0 -71
- package/src/components/List/List.types.ts +0 -24
- package/src/components/List/List.utils.ts +0 -14
- package/src/components/List/ListItem.styled.tsx +0 -61
- package/src/components/List/ListItem.tsx +0 -66
- package/src/components/List/ListItem.types.ts +0 -40
- package/src/components/List/ListItemCaption.styled.tsx +0 -7
- package/src/components/List/ListItemCaption.tsx +0 -18
- package/src/components/List/ListItemCaption.types.ts +0 -2
- package/src/components/List/index.ts +0 -8
- package/src/components/LoadingIndicator/LoadingIndicator.styled.tsx +0 -40
- package/src/components/LoadingIndicator/LoadingIndicator.tsx +0 -44
- package/src/components/LoadingIndicator/LoadingIndicator.types.ts +0 -7
- package/src/components/LoadingIndicator/assets/DnaLoadingAnimation.json +0 -769
- package/src/components/LoadingIndicator/assets/DotLoadingAnimation.json +0 -426
- package/src/components/LoadingIndicator/index.ts +0 -5
- package/src/components/Menu/Menu.styled.tsx +0 -42
- package/src/components/Menu/Menu.tsx +0 -28
- package/src/components/Menu/Menu.types.ts +0 -18
- package/src/components/Menu/MenuItem.styled.ts +0 -62
- package/src/components/Menu/MenuItem.tsx +0 -45
- package/src/components/Menu/MenuItem.types.ts +0 -14
- package/src/components/Menu/index.ts +0 -5
- package/src/components/MuiCssBaseline.ts +0 -78
- package/src/components/MuiInputBase.ts +0 -25
- package/src/components/MuiOutlinedInput.ts +0 -57
- package/src/components/MuiTextField.ts +0 -17
- package/src/components/ProductLabel/ProductLabel.styled.ts +0 -61
- package/src/components/ProductLabel/ProductLabel.tsx +0 -57
- package/src/components/ProductLabel/ProductLabel.types.ts +0 -10
- package/src/components/ProductLabel/index.ts +0 -5
- package/src/components/Progress/CircularProgress.styled.ts +0 -10
- package/src/components/Progress/CircularProgress.tsx +0 -15
- package/src/components/Progress/CircularProgress.types.ts +0 -6
- package/src/components/Progress/LinearProgress.styled.ts +0 -15
- package/src/components/Progress/LinearProgress.tsx +0 -16
- package/src/components/Progress/LinearProgress.types.ts +0 -7
- package/src/components/Progress/index.ts +0 -4
- package/src/components/Radio/Radio.styled.ts +0 -35
- package/src/components/Radio/Radio.tsx +0 -60
- package/src/components/Radio/Radio.types.ts +0 -15
- package/src/components/Radio/RadioGroup.styled.ts +0 -6
- package/src/components/Radio/RadioGroup.tsx +0 -23
- package/src/components/Radio/RadioGroup.types.ts +0 -10
- package/src/components/Radio/index.ts +0 -7
- package/src/components/Stepper/Stepper.styled.ts +0 -38
- package/src/components/Stepper/Stepper.tsx +0 -24
- package/src/components/Stepper/Stepper.types.ts +0 -13
- package/src/components/Stepper/index.ts +0 -5
- package/src/components/TabbedPanel/TabbedPanel.styled.ts +0 -129
- package/src/components/TabbedPanel/TabbedPanel.tsx +0 -70
- package/src/components/TabbedPanel/TabbedPanel.types.ts +0 -36
- package/src/components/TabbedPanel/TabbedPanel.utils.ts +0 -21
- package/src/components/TabbedPanel/index.ts +0 -5
- package/src/components/TextField/TextArea.styled.tsx +0 -36
- package/src/components/TextField/TextArea.tsx +0 -35
- package/src/components/TextField/TextArea.types.ts +0 -28
- package/src/components/TextField/TextInput.styled.tsx +0 -115
- package/src/components/TextField/TextInput.tsx +0 -27
- package/src/components/TextField/TextInput.types.ts +0 -46
- package/src/components/TextField/TextInput.utils.ts +0 -7
- package/src/components/TextField/components/Buttons.tsx +0 -26
- package/src/components/TextField/components/NormalTextInput.tsx +0 -95
- package/src/components/TextField/components/PasswordInput.tsx +0 -92
- package/src/components/TextField/index.ts +0 -7
- package/src/components/Tooltip/Tooltip.styled.tsx +0 -36
- package/src/components/Tooltip/Tooltip.tsx +0 -58
- package/src/components/Tooltip/Tooltip.types.ts +0 -24
- package/src/components/Tooltip/Tooltip.utils.ts +0 -46
- package/src/components/Tooltip/index.ts +0 -5
- package/src/components/UploadManager/UploadManager.styled.ts +0 -49
- package/src/components/UploadManager/UploadManager.tsx +0 -271
- package/src/components/UploadManager/UploadManager.types.ts +0 -16
- package/src/components/UploadManager/index.ts +0 -5
- package/src/components/index.ts +0 -23
- package/src/foundations/index.ts +0 -3
- package/src/foundations/palette.ts +0 -407
- package/src/foundations/spacing.ts +0 -5
- package/src/foundations/typography.ts +0 -492
- package/src/index.ts +0 -4
- package/src/react-app-env.d.ts +0 -71
- package/src/reportWebVitals.ts +0 -15
- package/src/setupTests.ts +0 -5
- package/src/systems/drawer.ts +0 -27
- package/src/systems/index.ts +0 -7
- package/src/theme.ts +0 -22
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ComponentsOverrides, Theme } from '@mui/material';
|
|
2
|
-
import {
|
|
3
|
-
SMALL_SCROLLBAR_WIDTH,
|
|
4
|
-
SCROLLBAR_WIDTH,
|
|
5
|
-
DRAWER_WIDTH_OPEN,
|
|
6
|
-
DRAWER_WIDTH_CLOSE,
|
|
7
|
-
} from '../systems';
|
|
8
|
-
import { palette, typography } from '../foundations';
|
|
9
|
-
|
|
10
|
-
const html = {
|
|
11
|
-
fontSize: '14px',
|
|
12
|
-
boxSizing: 'border-box',
|
|
13
|
-
fontFamily: `Pretendard, sans-serif`,
|
|
14
|
-
fontFeatureSettings: `'tnum', 'ss01', 'ss02', 'ss08'`,
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const styleOverrides: ComponentsOverrides<Theme>['MuiCssBaseline'] = {
|
|
18
|
-
html,
|
|
19
|
-
|
|
20
|
-
'*::-webkit-scrollbar-track': {
|
|
21
|
-
backgroundColor: 'transparent',
|
|
22
|
-
},
|
|
23
|
-
'*::-webkit-scrollbar-corner': {
|
|
24
|
-
backgroundColor: 'transparent',
|
|
25
|
-
},
|
|
26
|
-
'*::-webkit-scrollbar': {
|
|
27
|
-
// + 4 for padding
|
|
28
|
-
width: SCROLLBAR_WIDTH + 4,
|
|
29
|
-
height: SCROLLBAR_WIDTH + 4,
|
|
30
|
-
},
|
|
31
|
-
'.small-scrollbar::-webkit-scrollbar, .small-scrollbar *::-webkit-scrollbar': {
|
|
32
|
-
// + 4 for padding
|
|
33
|
-
width: SMALL_SCROLLBAR_WIDTH + 4,
|
|
34
|
-
height: SMALL_SCROLLBAR_WIDTH + 4,
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
'*::-webkit-scrollbar-thumb': {
|
|
38
|
-
backgroundColor: palette.neutralGrey?.[65],
|
|
39
|
-
borderRadius: 6,
|
|
40
|
-
border: '2px transparent solid',
|
|
41
|
-
backgroundClip: 'padding-box',
|
|
42
|
-
},
|
|
43
|
-
'*::-webkit-scrollbar-thumb:hover': {
|
|
44
|
-
backgroundColor: palette.neutralGrey?.[60],
|
|
45
|
-
},
|
|
46
|
-
'*::-webkit-scrollbar-thumb:active': {
|
|
47
|
-
backgroundColor: palette.neutralGrey?.[40],
|
|
48
|
-
},
|
|
49
|
-
'.Mui-disabled::-webkit-scrollbar-thumb:hover, .Mui-disabled *::-webkit-scrollbar-thumb:hover': {
|
|
50
|
-
backgroundColor: palette.neutralGrey?.[65],
|
|
51
|
-
},
|
|
52
|
-
'.Mui-disabled::-webkit-scrollbar-thumb:active, .Mui-disabled *::-webkit-scrollbar-thumb:active':
|
|
53
|
-
{
|
|
54
|
-
backgroundColor: palette.neutralGrey?.[65],
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
'svg.MuiCircularProgress-svg *': {
|
|
58
|
-
fill: 'none',
|
|
59
|
-
},
|
|
60
|
-
'svg *.stroke-inherit': {
|
|
61
|
-
fill: 'none',
|
|
62
|
-
stroke: 'currentColor',
|
|
63
|
-
},
|
|
64
|
-
'.snackbarVariantError': {
|
|
65
|
-
background: 'rgba(238, 81, 64, 0.18)',
|
|
66
|
-
border: '1px solid #EE5140',
|
|
67
|
-
...typography.body5,
|
|
68
|
-
},
|
|
69
|
-
'#page-root.drawer-open ~ .SnackbarContainer-left': {
|
|
70
|
-
left: `${DRAWER_WIDTH_OPEN + 20}px !important`,
|
|
71
|
-
},
|
|
72
|
-
'#page-root.drawer-close ~ .SnackbarContainer-left': {
|
|
73
|
-
left: `${DRAWER_WIDTH_CLOSE + 20}px !important`,
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
export default {
|
|
77
|
-
styleOverrides,
|
|
78
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ComponentsOverrides } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
const styleOverrides: ComponentsOverrides['MuiInputBase'] = {
|
|
4
|
-
root: {
|
|
5
|
-
'&': {
|
|
6
|
-
padding: 0,
|
|
7
|
-
},
|
|
8
|
-
},
|
|
9
|
-
input: {
|
|
10
|
-
height: '36px',
|
|
11
|
-
},
|
|
12
|
-
inputAdornedStart: {
|
|
13
|
-
'html &': {
|
|
14
|
-
paddingLeft: 0,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
inputAdornedEnd: {
|
|
18
|
-
'html &': {
|
|
19
|
-
paddingRight: 0,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
export default {
|
|
24
|
-
styleOverrides,
|
|
25
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ComponentsOverrides } from '@mui/material/styles';
|
|
2
|
-
import { palette, typography } from '../foundations';
|
|
3
|
-
|
|
4
|
-
const styleOverrides: ComponentsOverrides['MuiOutlinedInput'] = {
|
|
5
|
-
root: {
|
|
6
|
-
borderRadius: 8,
|
|
7
|
-
backgroundColor: palette.neutralGrey[75],
|
|
8
|
-
color: palette.neutralGrey[45],
|
|
9
|
-
'&.MuiInputBase-adornedStart': {
|
|
10
|
-
paddingLeft: '16px',
|
|
11
|
-
},
|
|
12
|
-
'&.MuiInputBase-adornedEnd': {
|
|
13
|
-
paddingRight: '16px',
|
|
14
|
-
},
|
|
15
|
-
'&.Mui-disabled': {
|
|
16
|
-
backgroundColor: 'transparent',
|
|
17
|
-
borderWidth: '1px',
|
|
18
|
-
borderColor: palette.neutralGrey[45],
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
notchedOutline: {
|
|
22
|
-
border: '1px solid transparent',
|
|
23
|
-
borderRadius: 8,
|
|
24
|
-
padding: 0,
|
|
25
|
-
'html .MuiOutlinedInput-root:hover &': {
|
|
26
|
-
borderColor: palette.neutralGrey[45],
|
|
27
|
-
},
|
|
28
|
-
'html .MuiOutlinedInput-root.Mui-focused &': {
|
|
29
|
-
borderWidth: '1px',
|
|
30
|
-
borderColor: palette.lunitTeal[10],
|
|
31
|
-
},
|
|
32
|
-
'html .MuiOutlinedInput-root.Mui-disabled &': {
|
|
33
|
-
border: 'none',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
input: {
|
|
37
|
-
...typography.body5,
|
|
38
|
-
color: palette.neutralGrey[5],
|
|
39
|
-
padding: '8px 16px',
|
|
40
|
-
boxSizing: 'border-box',
|
|
41
|
-
'&::placeholder': {
|
|
42
|
-
color: palette.neutralGrey[45],
|
|
43
|
-
},
|
|
44
|
-
'&:-webkit-autofill': {
|
|
45
|
-
boxShadow: `0 0 0 100px ${palette.neutralGrey[75]}`,
|
|
46
|
-
WebkitTextFillColor: palette.neutralGrey[5],
|
|
47
|
-
},
|
|
48
|
-
'&.Mui-disabled': {
|
|
49
|
-
backgroundColor: 'inherit',
|
|
50
|
-
borderRadius: '8px',
|
|
51
|
-
WebkitTextFillColor: palette.neutralGrey[45],
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
export default {
|
|
56
|
-
styleOverrides,
|
|
57
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ComponentsOverrides, ComponentsProps } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
const styleOverrides: ComponentsOverrides['MuiTextField'] = {
|
|
4
|
-
root: {
|
|
5
|
-
width: '100%',
|
|
6
|
-
input: {
|
|
7
|
-
textOverflow: 'ellipsis',
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
const defaultProps: ComponentsProps['MuiTextField'] = {
|
|
12
|
-
variant: 'standard',
|
|
13
|
-
};
|
|
14
|
-
export default {
|
|
15
|
-
styleOverrides,
|
|
16
|
-
defaultProps,
|
|
17
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { styled, Typography, Box, Dialog, DialogContent } from '@mui/material';
|
|
2
|
-
import { Button } from '../Button';
|
|
3
|
-
|
|
4
|
-
export const ProductName = styled(Typography)(({ theme }) => ({
|
|
5
|
-
...theme.typography.body_b1,
|
|
6
|
-
marginBottom: '12px',
|
|
7
|
-
}));
|
|
8
|
-
|
|
9
|
-
export const LabelRow = styled(Box)({
|
|
10
|
-
display: 'flex',
|
|
11
|
-
flexDirection: 'row',
|
|
12
|
-
marginBottom: 12,
|
|
13
|
-
alignItems: 'flex-start',
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export const LabelColumn = styled(Box)({ flex: 0 });
|
|
17
|
-
|
|
18
|
-
export const LabelValue = styled(Box)({
|
|
19
|
-
flex: 1,
|
|
20
|
-
marginLeft: 16,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
export const FramedText = styled(Typography)({
|
|
24
|
-
border: '1px solid #000',
|
|
25
|
-
padding: 2,
|
|
26
|
-
fontSize: 12,
|
|
27
|
-
lineHeight: '16px',
|
|
28
|
-
fontWeight: 700,
|
|
29
|
-
wordBreak: 'normal',
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export const LabelSubBox = styled(Box)({
|
|
33
|
-
marginLeft: '11.5px',
|
|
34
|
-
marginBottom: '4px',
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
export const LabelContainer = styled(Dialog)({
|
|
38
|
-
'& .MuiPaper-root': {
|
|
39
|
-
width: 540,
|
|
40
|
-
backgroundColor: '#fff',
|
|
41
|
-
border: '2px solid #000',
|
|
42
|
-
borderRadius: '8px',
|
|
43
|
-
padding: 0,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
export const LabelContent = styled(DialogContent)(({ theme }) => ({
|
|
48
|
-
padding: '30px',
|
|
49
|
-
color: theme.palette.neutralGrey[90],
|
|
50
|
-
}));
|
|
51
|
-
|
|
52
|
-
export const LabelCloseButton = styled(Button)({
|
|
53
|
-
position: 'absolute',
|
|
54
|
-
right: '30px',
|
|
55
|
-
top: '30px',
|
|
56
|
-
padding: 0,
|
|
57
|
-
color: '#4E4E50',
|
|
58
|
-
'&:hover': {
|
|
59
|
-
backgroundColor: 'transparent',
|
|
60
|
-
},
|
|
61
|
-
});
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Box, Typography } from '@mui/material';
|
|
4
|
-
|
|
5
|
-
import { LabelContainer, LabelContent, LabelCloseButton } from './ProductLabel.styled';
|
|
6
|
-
import { ProductLabelProps } from './ProductLabel.types';
|
|
7
|
-
import { Divider } from '../Divider';
|
|
8
|
-
import { Close } from '../Icons';
|
|
9
|
-
import { LunitScope } from '@lunit/design-system-logo';
|
|
10
|
-
|
|
11
|
-
function ProductLabel({ open, onClose, children, footerStart, footerEnd }: ProductLabelProps) {
|
|
12
|
-
const handleClose = () => {
|
|
13
|
-
if (onClose) {
|
|
14
|
-
onClose();
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<LabelContainer
|
|
20
|
-
open={open}
|
|
21
|
-
maxWidth={false}
|
|
22
|
-
onClose={handleClose}
|
|
23
|
-
aria-labelledby="label-dialog-title"
|
|
24
|
-
>
|
|
25
|
-
<LabelCloseButton
|
|
26
|
-
variant="ghost"
|
|
27
|
-
icon={<Close />}
|
|
28
|
-
onClick={handleClose}
|
|
29
|
-
/>
|
|
30
|
-
<LabelContent>
|
|
31
|
-
<div>
|
|
32
|
-
<LunitScope style={{ width: '170px' }} />
|
|
33
|
-
</div>
|
|
34
|
-
<Typography variant="body5">
|
|
35
|
-
Software Algorithm Device To Assist Users In Digital Pathology
|
|
36
|
-
</Typography>
|
|
37
|
-
<Divider
|
|
38
|
-
orientation="horizontal"
|
|
39
|
-
sx={{ margin: '15px 0' }}
|
|
40
|
-
/>
|
|
41
|
-
{children}
|
|
42
|
-
<Divider
|
|
43
|
-
orientation="horizontal"
|
|
44
|
-
sx={{ margin: '8px 0' }}
|
|
45
|
-
/>
|
|
46
|
-
{(footerStart || footerEnd) && (
|
|
47
|
-
<Box sx={{ display: 'flex', justifyContent: 'space-between' }}>
|
|
48
|
-
{footerStart ? footerStart : <div />}
|
|
49
|
-
{footerEnd}
|
|
50
|
-
</Box>
|
|
51
|
-
)}
|
|
52
|
-
</LabelContent>
|
|
53
|
-
</LabelContainer>
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export default ProductLabel;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CircularProgress as MuiCircularProgress, styled } from '@mui/material';
|
|
2
|
-
import type { CircularProgressProps } from './CircularProgress.types';
|
|
3
|
-
|
|
4
|
-
const BaseCircularProgress = styled(MuiCircularProgress, {
|
|
5
|
-
shouldForwardProp: (prop) => prop !== 'circleColor',
|
|
6
|
-
})<CircularProgressProps>(({ theme, circleColor }) => ({
|
|
7
|
-
color: circleColor || theme.palette.lunitTeal[40],
|
|
8
|
-
}));
|
|
9
|
-
|
|
10
|
-
export default BaseCircularProgress;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import BaseCircularProgress from './CircularProgress.styled';
|
|
3
|
-
import type { CircularProgressProps } from './CircularProgress.types';
|
|
4
|
-
|
|
5
|
-
function CircularProgress({ progress, size = 36, ...otherProps }: CircularProgressProps) {
|
|
6
|
-
return (
|
|
7
|
-
<BaseCircularProgress
|
|
8
|
-
size={size}
|
|
9
|
-
value={progress}
|
|
10
|
-
{...otherProps}
|
|
11
|
-
/>
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default CircularProgress;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LinearProgress as MuiLinearProgress, linearProgressClasses, styled } from '@mui/material';
|
|
2
|
-
import type { LinearProgressProps } from './LinearProgress.types';
|
|
3
|
-
|
|
4
|
-
const BaseLinearProgress = styled(MuiLinearProgress, {
|
|
5
|
-
shouldForwardProp: (prop) => prop !== 'barColor',
|
|
6
|
-
})<LinearProgressProps>(({ theme, height, barColor }) => ({
|
|
7
|
-
width: '100%',
|
|
8
|
-
height,
|
|
9
|
-
backgroundColor: 'transparent',
|
|
10
|
-
[`& .${linearProgressClasses.barColorPrimary}`]: {
|
|
11
|
-
backgroundColor: barColor || theme.palette.lunitTeal[40],
|
|
12
|
-
},
|
|
13
|
-
}));
|
|
14
|
-
|
|
15
|
-
export default BaseLinearProgress;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import BaseLinearProgress from './LinearProgress.styled';
|
|
3
|
-
import type { LinearProgressProps } from './LinearProgress.types';
|
|
4
|
-
|
|
5
|
-
function LinearProgress({ barColor, progress, height = 4, ...otherProps }: LinearProgressProps) {
|
|
6
|
-
return (
|
|
7
|
-
<BaseLinearProgress
|
|
8
|
-
value={progress}
|
|
9
|
-
height={height}
|
|
10
|
-
barColor={barColor}
|
|
11
|
-
{...otherProps}
|
|
12
|
-
/>
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default LinearProgress;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { styled, Box, Radio } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
export const Container = styled(Box)(({ theme }) => ({
|
|
4
|
-
display: 'inline-flex',
|
|
5
|
-
gap: theme.spacing(2),
|
|
6
|
-
}));
|
|
7
|
-
|
|
8
|
-
export const StyledRadio = styled(Radio)(({ theme }) => ({
|
|
9
|
-
width: '22px',
|
|
10
|
-
height: '22px',
|
|
11
|
-
padding: 0,
|
|
12
|
-
borderRadius: '50%',
|
|
13
|
-
'&.Mui-disabled, &.Mui-disabled + .MuiTypography-root': {
|
|
14
|
-
opacity: 0.4,
|
|
15
|
-
},
|
|
16
|
-
'&.Mui-focusVisible > div': {
|
|
17
|
-
boxShadow: `0 0 0 1px ${theme.palette.lunitTeal[10]}`,
|
|
18
|
-
},
|
|
19
|
-
}));
|
|
20
|
-
|
|
21
|
-
export const UncheckedIcon = styled('div')(({ theme }) => ({
|
|
22
|
-
width: '18px',
|
|
23
|
-
height: '18px',
|
|
24
|
-
border: `1.5px solid ${theme.palette.neutralGrey[45]}`,
|
|
25
|
-
borderRadius: '50%',
|
|
26
|
-
boxSizing: 'border-box',
|
|
27
|
-
}));
|
|
28
|
-
|
|
29
|
-
export const CheckedIcon = styled('div')(({ theme }) => ({
|
|
30
|
-
width: '18px',
|
|
31
|
-
height: '18px',
|
|
32
|
-
border: `4px solid ${theme.palette.lunitTeal[40]}`,
|
|
33
|
-
borderRadius: '50%',
|
|
34
|
-
boxSizing: 'border-box',
|
|
35
|
-
}));
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Typography } from '@mui/material';
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import React, { forwardRef } from 'react';
|
|
4
|
-
import { Container, StyledRadio, UncheckedIcon, CheckedIcon } from './Radio.styled';
|
|
5
|
-
import type { RadioProps } from './Radio.types';
|
|
6
|
-
|
|
7
|
-
const Radio = forwardRef<HTMLSpanElement, RadioProps>(
|
|
8
|
-
(
|
|
9
|
-
{
|
|
10
|
-
value,
|
|
11
|
-
name,
|
|
12
|
-
checked,
|
|
13
|
-
defaultChecked,
|
|
14
|
-
disabled,
|
|
15
|
-
required,
|
|
16
|
-
onChange,
|
|
17
|
-
onChangeCapture,
|
|
18
|
-
inputProps,
|
|
19
|
-
inputRef,
|
|
20
|
-
label,
|
|
21
|
-
...rootProps
|
|
22
|
-
}: RadioProps,
|
|
23
|
-
ref,
|
|
24
|
-
) => {
|
|
25
|
-
return (
|
|
26
|
-
<Container
|
|
27
|
-
{...rootProps}
|
|
28
|
-
className={clsx('radio', rootProps.className)}
|
|
29
|
-
component={label != null ? 'label' : 'span'}
|
|
30
|
-
ref={ref}
|
|
31
|
-
>
|
|
32
|
-
<StyledRadio
|
|
33
|
-
disableRipple
|
|
34
|
-
icon={<UncheckedIcon />}
|
|
35
|
-
checkedIcon={<CheckedIcon />}
|
|
36
|
-
value={value}
|
|
37
|
-
name={name}
|
|
38
|
-
checked={checked}
|
|
39
|
-
defaultChecked={defaultChecked}
|
|
40
|
-
disabled={disabled}
|
|
41
|
-
required={required}
|
|
42
|
-
onChange={onChange}
|
|
43
|
-
onChangeCapture={onChangeCapture}
|
|
44
|
-
inputProps={inputProps}
|
|
45
|
-
inputRef={inputRef}
|
|
46
|
-
/>
|
|
47
|
-
{label && (
|
|
48
|
-
<Typography
|
|
49
|
-
variant="body_m1"
|
|
50
|
-
sx={{ display: 'flex', alignItems: 'center' }}
|
|
51
|
-
>
|
|
52
|
-
{label}
|
|
53
|
-
</Typography>
|
|
54
|
-
)}
|
|
55
|
-
</Container>
|
|
56
|
-
);
|
|
57
|
-
},
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
export default Radio;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { BoxProps, RadioProps as MuiRadioProps } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
export interface RadioProps extends Omit<BoxProps<'span'>, 'onChange' | 'onChangeCapture'> {
|
|
4
|
-
value?: MuiRadioProps['value'];
|
|
5
|
-
name?: MuiRadioProps['name'];
|
|
6
|
-
checked?: MuiRadioProps['checked'];
|
|
7
|
-
defaultChecked?: MuiRadioProps['defaultChecked'];
|
|
8
|
-
disabled?: MuiRadioProps['disabled'];
|
|
9
|
-
required?: MuiRadioProps['required'];
|
|
10
|
-
onChange?: MuiRadioProps['onChange'];
|
|
11
|
-
onChangeCapture?: MuiRadioProps['onChangeCapture'];
|
|
12
|
-
label?: string;
|
|
13
|
-
inputProps?: MuiRadioProps['inputProps'];
|
|
14
|
-
inputRef?: MuiRadioProps['inputRef'];
|
|
15
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
import { StyledRadioGroup } from './RadioGroup.styled';
|
|
3
|
-
import type { RadioGroupProps } from './RadioGroup.types';
|
|
4
|
-
|
|
5
|
-
const RadioGroup = forwardRef<HTMLDivElement, RadioGroupProps>(
|
|
6
|
-
({ defaultValue, name, row, children, onChange, value, ...props }: RadioGroupProps, ref) => {
|
|
7
|
-
return (
|
|
8
|
-
<StyledRadioGroup
|
|
9
|
-
{...props}
|
|
10
|
-
defaultValue={defaultValue}
|
|
11
|
-
name={name}
|
|
12
|
-
onChange={onChange}
|
|
13
|
-
value={value}
|
|
14
|
-
row={row}
|
|
15
|
-
ref={ref}
|
|
16
|
-
>
|
|
17
|
-
{children}
|
|
18
|
-
</StyledRadioGroup>
|
|
19
|
-
);
|
|
20
|
-
},
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
export default RadioGroup;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { FormGroupProps, RadioGroupProps as MuiRadioGroupProps } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
export interface RadioGroupProps extends MuiRadioGroupProps {
|
|
4
|
-
children?: FormGroupProps['children'];
|
|
5
|
-
defaultValue?: MuiRadioGroupProps['defaultValue'];
|
|
6
|
-
name?: MuiRadioGroupProps['name'];
|
|
7
|
-
onChange?: MuiRadioGroupProps['onChange'];
|
|
8
|
-
value?: MuiRadioGroupProps['value'];
|
|
9
|
-
row?: FormGroupProps['row'];
|
|
10
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Box, Typography, styled } from '@mui/material';
|
|
2
|
-
import { Chip } from '../Chip';
|
|
3
|
-
import theme from '../../theme';
|
|
4
|
-
import type { StepperTypographyProps } from './Stepper.types';
|
|
5
|
-
|
|
6
|
-
export const StepperContainer = styled(Box)({
|
|
7
|
-
display: 'flex',
|
|
8
|
-
flexDirection: 'column',
|
|
9
|
-
height: '64px',
|
|
10
|
-
});
|
|
11
|
-
export const ChipContainer = styled(Box)({
|
|
12
|
-
display: 'inline-block',
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export const StepperChip = styled(Chip, {
|
|
16
|
-
shouldForwardProp: (prop) => prop !== 'disabled',
|
|
17
|
-
})(({ disabled }) => ({
|
|
18
|
-
backgroundColor: `${
|
|
19
|
-
!disabled ? theme.palette.lunitTeal[40] : theme.palette.neutralGrey[70]
|
|
20
|
-
} !important`,
|
|
21
|
-
color: `${!disabled ? theme.palette.lunitTeal[90] : theme.palette.neutralGrey[95]} !important`,
|
|
22
|
-
marginBottom: '4px',
|
|
23
|
-
'.MuiChip-label ': {
|
|
24
|
-
fontWeight: 400,
|
|
25
|
-
fontSize: '14px',
|
|
26
|
-
lineHeight: '24px',
|
|
27
|
-
},
|
|
28
|
-
}));
|
|
29
|
-
|
|
30
|
-
export const StepperTypography = styled(Typography, {
|
|
31
|
-
shouldForwardProp: (prop) => prop !== 'disabled',
|
|
32
|
-
})<StepperTypographyProps>(({ disabled }) => ({
|
|
33
|
-
color: !disabled ? 'white' : theme.palette.neutralGrey[70],
|
|
34
|
-
overflow: 'hidden',
|
|
35
|
-
textOverflow: 'ellipsis',
|
|
36
|
-
whiteSpace: 'nowrap',
|
|
37
|
-
cursor: 'default',
|
|
38
|
-
}));
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChipContainer, StepperChip, StepperContainer, StepperTypography } from './Stepper.styled';
|
|
3
|
-
import type { StepperProps } from './Stepper.types';
|
|
4
|
-
|
|
5
|
-
const Stepper = ({ step, title, disabled = false, sx }: StepperProps) => {
|
|
6
|
-
return (
|
|
7
|
-
<StepperContainer sx={sx}>
|
|
8
|
-
<ChipContainer>
|
|
9
|
-
<StepperChip
|
|
10
|
-
label={`STEP ${step}`}
|
|
11
|
-
disabled={disabled}
|
|
12
|
-
/>
|
|
13
|
-
</ChipContainer>
|
|
14
|
-
<StepperTypography
|
|
15
|
-
variant="h7"
|
|
16
|
-
disabled={disabled}
|
|
17
|
-
>
|
|
18
|
-
{title}
|
|
19
|
-
</StepperTypography>
|
|
20
|
-
</StepperContainer>
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default Stepper;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TypographyProps } from '@mui/material';
|
|
2
|
-
import type { SxProps } from '@mui/system';
|
|
3
|
-
|
|
4
|
-
export interface StepperProps {
|
|
5
|
-
step: number;
|
|
6
|
-
title: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
sx?: SxProps;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface StepperTypographyProps extends TypographyProps {
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
}
|