@lunit/oui 1.0.1 → 1.1.0-alpha.1
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/README.md +3 -0
- package/dist/components/EllipsisTypography/EllipsisTypography.js +62 -0
- package/dist/components/EllipsisTypography/EllipsisTypography.styled.js +16 -0
- package/dist/components/EllipsisTypography/EllipsisTypography.types.js +2 -0
- package/dist/components/EllipsisTypography/index.js +3 -0
- package/dist/components/MuiCssBaseline.js +16 -0
- package/dist/components/ResizeObserver/ResizeObserverContext.js +56 -0
- package/dist/components/ResizeObserver/index.js +3 -0
- package/dist/components/index.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/EllipsisTypography/EllipsisTypography.d.ts +3 -0
- package/dist/types/components/EllipsisTypography/EllipsisTypography.styled.d.ts +6 -0
- package/dist/types/components/EllipsisTypography/EllipsisTypography.types.d.ts +9 -0
- package/dist/types/components/EllipsisTypography/index.d.ts +4 -0
- package/dist/types/components/ResizeObserver/ResizeObserverContext.d.ts +9 -0
- package/dist/types/components/ResizeObserver/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +14 -7
- package/.git-ftp-include +0 -1
- 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/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/Pagination/Pagination.styled.tsx +0 -71
- package/src/components/Pagination/Pagination.tsx +0 -182
- package/src/components/Pagination/Pagination.types.ts +0 -39
- package/src/components/Pagination/index.ts +0 -2
- 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 -4
- package/src/foundations/palette.ts +0 -418
- package/src/foundations/spacing.ts +0 -5
- package/src/foundations/styles.ts +0 -9
- package/src/foundations/typography.ts +0 -492
- package/src/icons/BellNoti/index.tsx +0 -28
- package/src/icons/CloseLarge/index.tsx +0 -28
- package/src/icons/CloseSmall/index.tsx +0 -28
- package/src/icons/DownloadPdf/index.tsx +0 -28
- package/src/icons/Ellipse/index.tsx +0 -28
- package/src/icons/FilterNoti/index.tsx +0 -28
- package/src/icons/HideLarge/index.tsx +0 -28
- package/src/icons/HideSmall/index.tsx +0 -28
- package/src/icons/InformationLarge/index.tsx +0 -28
- package/src/icons/InformationSmall/index.tsx +0 -28
- package/src/icons/Manufacturer/index.tsx +0 -28
- package/src/icons/Rectangle/index.tsx +0 -28
- package/src/icons/RefreshLeft/index.tsx +0 -28
- package/src/icons/RefreshRight/index.tsx +0 -28
- package/src/icons/ShowLarge/index.tsx +0 -28
- package/src/icons/ShowSmall/index.tsx +0 -28
- package/src/icons/index.ts +0 -180
- 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,40 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ExtendButtonBase,
|
|
3
|
-
ExtendButtonBaseTypeMap,
|
|
4
|
-
ListItemProps as MuiListItemProps,
|
|
5
|
-
ListItemButtonProps as MuiListItemButtonProps,
|
|
6
|
-
} from '@mui/material';
|
|
7
|
-
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
8
|
-
import type { ListSize } from '../List/List.types';
|
|
9
|
-
|
|
10
|
-
type ListItemRootBasePropsKey = 'className' | 'classes' | 'style' | 'sx';
|
|
11
|
-
|
|
12
|
-
export interface ListItemBaseProps
|
|
13
|
-
extends Omit<MuiListItemButtonProps, ListItemRootBasePropsKey>,
|
|
14
|
-
Pick<MuiListItemProps, ListItemRootBasePropsKey> {
|
|
15
|
-
label?: React.ReactNode | string;
|
|
16
|
-
startElement?: React.ReactNode;
|
|
17
|
-
endElement?: React.ReactNode;
|
|
18
|
-
rootProps?: MuiListItemProps;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type ListItemTypeMap<
|
|
22
|
-
P = {},
|
|
23
|
-
D extends React.ElementType = 'span',
|
|
24
|
-
> = ExtendButtonBaseTypeMap<{
|
|
25
|
-
props: P & ListItemBaseProps;
|
|
26
|
-
defaultComponent: D;
|
|
27
|
-
}>;
|
|
28
|
-
|
|
29
|
-
/** @see ListItemButton {@link @mui/material/ListItemButton} */
|
|
30
|
-
export type ListItemComponent = ExtendButtonBase<ListItemTypeMap>;
|
|
31
|
-
|
|
32
|
-
export type ListItemProps<
|
|
33
|
-
D extends React.ElementType = ListItemTypeMap['defaultComponent'],
|
|
34
|
-
P = {},
|
|
35
|
-
> = OverrideProps<ListItemTypeMap<P, D>, D>;
|
|
36
|
-
|
|
37
|
-
export interface StyledListItemButtonProps extends MuiListItemButtonProps {
|
|
38
|
-
component?: React.ElementType;
|
|
39
|
-
size: ListSize;
|
|
40
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import { StyledListItemCaption } from './ListItemCaption.styled';
|
|
4
|
-
import { ListItemCaptionProps } from './ListItemCaption.types';
|
|
5
|
-
|
|
6
|
-
export const ListItemCaptionClassName = 'ListItemCaption';
|
|
7
|
-
|
|
8
|
-
const ListItemCaption = (props: ListItemCaptionProps) => {
|
|
9
|
-
const { className, ...otherProps } = props;
|
|
10
|
-
return (
|
|
11
|
-
<StyledListItemCaption
|
|
12
|
-
{...otherProps}
|
|
13
|
-
className={clsx(ListItemCaptionClassName, className)}
|
|
14
|
-
/>
|
|
15
|
-
);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default ListItemCaption;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as List } from './List';
|
|
2
|
-
export type { ListProps } from './List.types';
|
|
3
|
-
|
|
4
|
-
export { default as ListItem } from './ListItem';
|
|
5
|
-
export type { ListItemProps } from './ListItem.types';
|
|
6
|
-
|
|
7
|
-
export { default as ListItemCaption } from './ListItemCaption';
|
|
8
|
-
export type { ListItemCaptionProps } from './ListItemCaption.types';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Box, styled, Typography } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
export const LoadingOverlay = styled(Box)({
|
|
4
|
-
position: 'fixed',
|
|
5
|
-
top: 0,
|
|
6
|
-
left: 0,
|
|
7
|
-
right: 0,
|
|
8
|
-
bottom: 0,
|
|
9
|
-
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
10
|
-
zIndex: 99999,
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export const LoadingIndicatorBox = styled(Box)(({ theme }) => ({
|
|
14
|
-
display: 'flex',
|
|
15
|
-
flexDirection: 'column',
|
|
16
|
-
justifyContent: 'center',
|
|
17
|
-
alignItems: 'center',
|
|
18
|
-
position: 'absolute',
|
|
19
|
-
top: '50%',
|
|
20
|
-
left: '50%',
|
|
21
|
-
transform: 'translate(-50%, -50%)',
|
|
22
|
-
width: '440px',
|
|
23
|
-
height: '360px',
|
|
24
|
-
padding: `${theme.spacing(13)} ${theme.spacing(4)}`,
|
|
25
|
-
borderRadius: '12px',
|
|
26
|
-
backgroundColor: theme.palette.neutralGrey[85],
|
|
27
|
-
color: theme.palette.neutralGrey[0],
|
|
28
|
-
boxSizing: 'border-box',
|
|
29
|
-
}));
|
|
30
|
-
|
|
31
|
-
export const LoadingMessage = styled(Typography)(({ theme }) => ({
|
|
32
|
-
...theme.typography.h8,
|
|
33
|
-
marginTop: theme.spacing(12),
|
|
34
|
-
marginBottom: theme.spacing(5),
|
|
35
|
-
}));
|
|
36
|
-
|
|
37
|
-
export const LoadingDetails = styled(Typography)(({ theme }) => ({
|
|
38
|
-
...theme.typography.body1,
|
|
39
|
-
textAlign: 'center',
|
|
40
|
-
}));
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
-
import { Player } from '@lottiefiles/react-lottie-player';
|
|
4
|
-
import {
|
|
5
|
-
LoadingOverlay,
|
|
6
|
-
LoadingIndicatorBox,
|
|
7
|
-
LoadingMessage,
|
|
8
|
-
LoadingDetails,
|
|
9
|
-
} from './LoadingIndicator.styled';
|
|
10
|
-
import type { LoadingIndicatorProps } from './LoadingIndicator.types';
|
|
11
|
-
|
|
12
|
-
const DotLoadingAnimation = require('./assets/DotLoadingAnimation.json');
|
|
13
|
-
const DnaLoadingAnimation = require('./assets/DnaLoadingAnimation.json');
|
|
14
|
-
|
|
15
|
-
const LoadingIndicator = ({
|
|
16
|
-
message,
|
|
17
|
-
details,
|
|
18
|
-
loadingAnimation = 'dot',
|
|
19
|
-
}: LoadingIndicatorProps) => {
|
|
20
|
-
return (
|
|
21
|
-
<LoadingOverlay>
|
|
22
|
-
<LoadingIndicatorBox>
|
|
23
|
-
<Player
|
|
24
|
-
autoplay
|
|
25
|
-
loop
|
|
26
|
-
src={loadingAnimation === 'dot' ? DotLoadingAnimation : DnaLoadingAnimation}
|
|
27
|
-
style={{ height: '112px', width: '140px' }}
|
|
28
|
-
/>
|
|
29
|
-
<LoadingMessage>{message}</LoadingMessage>
|
|
30
|
-
<LoadingDetails>
|
|
31
|
-
{details || (
|
|
32
|
-
<>
|
|
33
|
-
Please wait.
|
|
34
|
-
<br />
|
|
35
|
-
It may take a few minutes.
|
|
36
|
-
</>
|
|
37
|
-
)}
|
|
38
|
-
</LoadingDetails>
|
|
39
|
-
</LoadingIndicatorBox>
|
|
40
|
-
</LoadingOverlay>
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export default LoadingIndicator;
|