@lunit/oui 2.4.10 → 2.4.12
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.styled.d.ts +1 -1
- package/dist/components/Alert/Alert.utils.d.ts +3 -3
- package/dist/components/BaseTextField/BaseTextField.styled.d.ts +10 -57
- package/dist/components/Button/Button.types.d.ts +0 -1
- package/dist/components/Button/styleds/BaseButton.styled.d.ts +4 -858
- package/dist/components/Button/styleds/ContainedButton.styled.d.ts +6 -891
- package/dist/components/Button/styleds/GhostButton.styled.d.ts +6 -885
- package/dist/components/Button/styleds/OutlinedButton.styled.d.ts +6 -892
- package/dist/components/Card/Card.styled.d.ts +2 -1
- package/dist/components/Card/Card.styled.js +1 -1
- package/dist/components/Checkbox/Checkbox.styled.d.ts +6 -10
- package/dist/components/Checkbox/Checkbox.utils.js +18 -12
- package/dist/components/Chip/Chip.js +0 -1
- package/dist/components/Chip/Chip.styled.d.ts +2 -4
- package/dist/components/Chip/Chip.utils.js +0 -1
- package/dist/components/DataTable/DataTable.styled.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.js +0 -3
- package/dist/components/DatePicker/DatePicker.styled.d.ts +2 -2
- package/dist/components/Dialog/Dialog.js +1 -3
- package/dist/components/Dialog/Dialog.styled.d.ts +7 -23
- package/dist/components/Dialog/Dialog.types.d.ts +0 -1
- package/dist/components/Divider/Divider.styled.d.ts +2 -4
- package/dist/components/Divider/Divider.styled.js +1 -1
- package/dist/components/Dropdown/Dropdown.styled.d.ts +4 -7
- package/dist/components/Dropdown/Dropdown.styled.js +1 -1
- package/dist/components/Dropdown/Dropdown.types.d.ts +0 -1
- package/dist/components/Dropdown/DropdownItem.styled.d.ts +2 -5
- package/dist/components/Dropdown/DropdownItem.types.d.ts +0 -1
- package/dist/components/Dropdown/DropdownSubtitle.styled.d.ts +2 -4
- package/dist/components/Dropdown/IconDropdown.styled.d.ts +3 -5
- package/dist/components/Dropdown/IconDropdown.styled.js +1 -0
- package/dist/components/Dropdown/IconDropdown.types.d.ts +0 -1
- package/dist/components/EllipsisTypography/EllipsisTypography.styled.d.ts +2 -4
- package/dist/components/FileDnDZone/FileDnDZone.styled.d.ts +5 -13
- package/dist/components/List/List.styled.d.ts +3 -8
- package/dist/components/List/List.types.d.ts +0 -1
- package/dist/components/List/ListItem.js +1 -3
- package/dist/components/List/ListItem.styled.d.ts +10 -34
- package/dist/components/List/ListItem.styled.js +1 -1
- package/dist/components/List/ListItem.types.d.ts +0 -1
- package/dist/components/List/ListItemCaption.styled.d.ts +2 -4
- package/dist/components/LoadingIndicator/LoadingIndicator.styled.d.ts +5 -13
- package/dist/components/Menu/Menu.styled.d.ts +3 -6
- package/dist/components/Menu/Menu.types.d.ts +0 -1
- package/dist/components/Menu/MenuItem.styled.d.ts +5 -7
- package/dist/components/Menu/MenuItem.types.d.ts +0 -1
- package/dist/components/Navigation/Navigation.d.ts +3 -0
- package/dist/components/Navigation/Navigation.js +6 -0
- package/dist/components/Navigation/Navigation.types.d.ts +2 -0
- package/dist/components/Navigation/Navigation.types.js +1 -0
- package/dist/components/Navigation/NavigationGroup.d.ts +3 -0
- package/dist/components/Navigation/NavigationGroup.js +22 -0
- package/dist/components/Navigation/NavigationGroup.styled.d.ts +6 -0
- package/dist/components/Navigation/NavigationGroup.styled.js +25 -0
- package/dist/components/Navigation/NavigationGroup.types.d.ts +18 -0
- package/dist/components/Navigation/NavigationGroup.types.js +1 -0
- package/dist/components/Navigation/NavigationItem.d.ts +3 -0
- package/dist/components/Navigation/NavigationItem.js +8 -0
- package/dist/components/Navigation/NavigationItem.styled.d.ts +3 -0
- package/dist/components/Navigation/NavigationItem.styled.js +24 -0
- package/dist/components/Navigation/NavigationItem.types.d.ts +14 -0
- package/dist/components/Navigation/NavigationItem.types.js +1 -0
- package/dist/components/Navigation/NavigationItemCaption.d.ts +3 -0
- package/dist/components/Navigation/NavigationItemCaption.js +6 -0
- package/dist/components/Navigation/NavigationItemCaption.types.d.ts +3 -0
- package/dist/components/Navigation/NavigationItemCaption.types.js +1 -0
- package/dist/components/Navigation/index.d.ts +8 -0
- package/dist/components/Navigation/index.js +4 -0
- package/dist/components/NoMatchContainer/NoMatchContainer.d.ts +2 -0
- package/dist/components/NoMatchContainer/NoMatchContainer.js +19 -0
- package/dist/components/NoMatchContainer/index.d.ts +2 -0
- package/dist/components/NoMatchContainer/index.js +2 -0
- package/dist/components/Pagination/Pagination.styled.d.ts +6 -12
- package/dist/components/Pagination/Pagination.types.d.ts +0 -1
- package/dist/components/ProductLabel/ProductLabel.styled.d.ts +10 -22
- package/dist/components/ProductLabel/ProductLabel.types.d.ts +0 -1
- package/dist/components/Progress/CircularProgress.styled.d.ts +2 -1
- package/dist/components/Progress/LinearProgress.styled.d.ts +2 -1
- package/dist/components/Radio/Radio.styled.d.ts +5 -7
- package/dist/components/Radio/RadioGroup.styled.d.ts +2 -1
- package/dist/components/ResizeObserver/ResizeObserverContext.js +0 -2
- package/dist/components/Stepper/Stepper.styled.d.ts +5 -11
- package/dist/components/TabbedPanel/TabbedPanel.styled.d.ts +4 -9
- package/dist/components/TabbedPanel/TabbedPanel.types.d.ts +0 -1
- package/dist/components/TextField/TextArea.styled.d.ts +2 -3
- package/dist/components/TextField/TextArea.styled.js +0 -1
- package/dist/components/TextField/TextArea.types.d.ts +0 -1
- package/dist/components/TextField/TextInput.styled.d.ts +6 -10
- package/dist/components/TextField/TextInput.styled.js +0 -2
- package/dist/components/TextField/TextInput.types.d.ts +0 -1
- package/dist/components/Toggle/Toggle.styled.d.ts +4 -7
- package/dist/components/Toggle/Toggle.styled.js +1 -1
- package/dist/components/Toggle/Toggle.types.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.styled.d.ts +2 -1
- package/dist/components/UploadManager/UploadManager.styled.d.ts +6 -12
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/foundations/palette.d.ts +0 -1
- package/dist/foundations/typography.d.ts +0 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/presentations/Accordion/Accordion.styled.d.ts +4 -21
- package/dist/presentations/Accordion/Accordion.types.d.ts +0 -1
- package/dist/presentations/AnalysisBar/AnalysisBar.js +15 -4
- package/dist/presentations/AnalysisBar/AnalysisBar.styled.d.ts +11 -17
- package/dist/presentations/AnalysisBar/AnalysisBar.styled.js +1 -1
- package/dist/presentations/Histogram/Histogram.styled.d.ts +11 -26
- package/dist/presentations/ModelType/ModelType.styled.d.ts +2 -4
- package/dist/presentations/Preview/Preview.styled.d.ts +2 -4
- package/dist/presentations/Statistic/Statistic.styled.d.ts +4 -8
- package/dist/presentations/Threshold/Threshold.styled.d.ts +3 -7
- package/dist/presentations/ToggleControl/ToggleControl.styled.d.ts +3 -15
- package/dist/presentations/ToggleControl/ToggleControl.styled.js +3 -1
- package/dist/presentations/ToggleControl/ToggleControl.types.d.ts +0 -1
- package/dist/presentations/ToggleControlGroup/ToggleControlGroup.styled.d.ts +2 -4
- package/dist/presentations/ToggleControlGroup/ToggleControlGroup.types.d.ts +0 -1
- package/dist/systems/drawer.d.ts +0 -1
- package/package.json +96 -79
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Collapse } from '@mui/material';
|
|
3
|
+
import { ArrowDown } from '../../icons';
|
|
4
|
+
import { NavLink } from 'react-router-dom';
|
|
5
|
+
import { StyledNavigationGroup, StyledNavigationGroupButton, StyledNavigationGroupArrowButton, StyledNavigationGroupText, StyledNavigationGroupSlot, EmptyIcon, } from './NavigationGroup.styled';
|
|
6
|
+
const buttonSize = 'small';
|
|
7
|
+
const NavigationGroup = (({ children,
|
|
8
|
+
// Root props
|
|
9
|
+
rootProps, className, classes, style, sx,
|
|
10
|
+
// Button props
|
|
11
|
+
label, icon = _jsx(EmptyIcon, {}), selected, open = false, onOpen, onClose, onClick, openOnClick = true, hideArrow = false, ...props }) => {
|
|
12
|
+
const onGroupClick = (event) => {
|
|
13
|
+
onClick?.(event);
|
|
14
|
+
if (openOnClick && !open) {
|
|
15
|
+
onOpen?.(event);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
return (_jsxs(_Fragment, { children: [_jsxs(StyledNavigationGroup, { ...rootProps, disablePadding: true, className: className, classes: classes, style: style, sx: sx, children: [_jsxs(StyledNavigationGroupButton, { ...props, disableRipple: true, component: props.component ?? NavLink, size: buttonSize, selected: selected, onClick: onGroupClick, children: [icon && _jsx(StyledNavigationGroupSlot, { children: icon }), _jsx(StyledNavigationGroupText, { primary: label })] }), !hideArrow && (_jsx(StyledNavigationGroupArrowButton, { disableRipple: true, size: buttonSize, selected: selected, tabIndex: -1, onClick: open ? onClose : onOpen, children: _jsx(StyledNavigationGroupSlot, { children: _jsx(ArrowDown, { style: {
|
|
19
|
+
transform: open ? 'rotate(180deg)' : 'rotate(0deg)',
|
|
20
|
+
} }) }) }))] }), _jsx(Collapse, { in: open, timeout: "auto", unmountOnExit: true, children: children })] }));
|
|
21
|
+
});
|
|
22
|
+
export default NavigationGroup;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { EmptyIcon } from '../List/ListItem.styled';
|
|
2
|
+
export declare const StyledNavigationGroup: import("@emotion/styled").StyledComponent<any, {}, {}>;
|
|
3
|
+
export declare const StyledNavigationGroupButton: import("@emotion/styled").StyledComponent<import("../List/ListItem.types").StyledListItemButtonProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
+
export declare const StyledNavigationGroupArrowButton: import("@emotion/styled").StyledComponent<import("../List/ListItem.types").StyledListItemButtonProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledNavigationGroupText: import("@emotion/styled").StyledComponent<any, {}, {}>;
|
|
6
|
+
export declare const StyledNavigationGroupSlot: import("react").ComponentType<any>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { styled } from '@mui/material';
|
|
2
|
+
import { StyledListItem, StyledListItemButton, StyledListItemStartSlot, StyledListItemText, } from '../List/ListItem.styled';
|
|
3
|
+
export { EmptyIcon } from '../List/ListItem.styled';
|
|
4
|
+
export const StyledNavigationGroup = styled(StyledListItem)({
|
|
5
|
+
width: '100%',
|
|
6
|
+
});
|
|
7
|
+
export const StyledNavigationGroupButton = styled(StyledListItemButton)(({ theme }) => ({
|
|
8
|
+
paddingTop: '8px',
|
|
9
|
+
paddingBottom: '8px',
|
|
10
|
+
'&.Mui-selected': {
|
|
11
|
+
color: theme.palette.lunitTeal[40],
|
|
12
|
+
},
|
|
13
|
+
}));
|
|
14
|
+
export const StyledNavigationGroupArrowButton = styled(StyledNavigationGroupButton)({
|
|
15
|
+
flex: '0 0 auto',
|
|
16
|
+
width: '36px',
|
|
17
|
+
});
|
|
18
|
+
export const StyledNavigationGroupText = styled(StyledListItemText)({
|
|
19
|
+
wordBreak: 'break-all',
|
|
20
|
+
display: '-webkit-box',
|
|
21
|
+
WebkitBoxOrient: 'vertical',
|
|
22
|
+
WebkitLineClamp: 1,
|
|
23
|
+
overflow: 'hidden',
|
|
24
|
+
});
|
|
25
|
+
export const StyledNavigationGroupSlot = StyledListItemStartSlot;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Link } from 'react-router-dom';
|
|
2
|
+
import type { OverridableComponent, OverrideProps } from '@mui/material/OverridableComponent';
|
|
3
|
+
import type { NavigationItemBaseProps } from './NavigationItem.types';
|
|
4
|
+
export interface NavigationGroupBaseProps extends Omit<NavigationItemBaseProps, 'caption'> {
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
onOpen?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
8
|
+
onClose?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
9
|
+
openOnClick?: boolean;
|
|
10
|
+
hideArrow?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface NavigationGroupTypeMap<P = object, D extends React.ElementType = typeof Link> {
|
|
13
|
+
props: P & NavigationGroupBaseProps;
|
|
14
|
+
defaultComponent: D;
|
|
15
|
+
}
|
|
16
|
+
/** @see ListItemButton {@link ListItem.types.ts} */
|
|
17
|
+
export type NavigationGroupComponent = OverridableComponent<NavigationGroupTypeMap>;
|
|
18
|
+
export type NavigationGroupProps<D extends React.ElementType = NavigationGroupTypeMap['defaultComponent'], P = object> = OverrideProps<NavigationGroupTypeMap<P, D>, D>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { NavLink } from 'react-router-dom';
|
|
3
|
+
import NavigationItemCaption from './NavigationItemCaption';
|
|
4
|
+
import { EmptyIcon, StyledNavigationItem } from './NavigationItem.styled';
|
|
5
|
+
const NavigationItem = (({ icon = _jsx(EmptyIcon, {}), caption, ...props }) => {
|
|
6
|
+
return (_jsx(StyledNavigationItem, { ...props, component: props.component ?? NavLink, startElement: icon, endElement: _jsx(NavigationItemCaption, { children: caption }) }));
|
|
7
|
+
});
|
|
8
|
+
export default NavigationItem;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { styled, listItemButtonClasses, listItemTextClasses } from '@mui/material';
|
|
2
|
+
import { ListItem } from '../List';
|
|
3
|
+
import { ListItemCaptionClassName } from '../List/ListItemCaption';
|
|
4
|
+
export { EmptyIcon } from '../List/ListItem.styled';
|
|
5
|
+
export const StyledNavigationItem = styled(ListItem)(({ theme }) => ({
|
|
6
|
+
width: '100%',
|
|
7
|
+
[`& > .${listItemButtonClasses.root}`]: {
|
|
8
|
+
paddingTop: '8px',
|
|
9
|
+
paddingBottom: '8px',
|
|
10
|
+
},
|
|
11
|
+
[`& > .${listItemButtonClasses.root} .${listItemTextClasses.root}`]: {
|
|
12
|
+
wordBreak: 'break-all',
|
|
13
|
+
display: '-webkit-box',
|
|
14
|
+
WebkitBoxOrient: 'vertical',
|
|
15
|
+
WebkitLineClamp: 1,
|
|
16
|
+
overflow: 'hidden',
|
|
17
|
+
},
|
|
18
|
+
[`& > .${listItemButtonClasses.root}.Mui-selected`]: {
|
|
19
|
+
color: theme.palette.lunitTeal[40],
|
|
20
|
+
[`.${ListItemCaptionClassName}`]: {
|
|
21
|
+
color: theme.palette.lunitTeal[10],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NavLink } from 'react-router-dom';
|
|
2
|
+
import type { OverridableComponent, OverrideProps } from '@mui/material/OverridableComponent';
|
|
3
|
+
import type { ListItemProps } from '../List';
|
|
4
|
+
export interface NavigationItemBaseProps extends Omit<ListItemProps, 'startElement' | 'endElement'> {
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
caption?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface NavigationItemTypeMap<P = object, D extends React.ElementType = typeof NavLink> {
|
|
9
|
+
props: P & NavigationItemBaseProps;
|
|
10
|
+
defaultComponent: D;
|
|
11
|
+
}
|
|
12
|
+
/** @see ListItemButton {@link ListItem.types.ts} */
|
|
13
|
+
export type NavigationItemComponent = OverridableComponent<NavigationItemTypeMap>;
|
|
14
|
+
export type NavigationItemProps<D extends React.ElementType = NavigationItemTypeMap['defaultComponent'], P = object> = OverrideProps<NavigationItemTypeMap<P, D>, D>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as Navigation } from './Navigation';
|
|
2
|
+
export type { NavigationProps } from './Navigation.types';
|
|
3
|
+
export { default as NavigationGroup } from './NavigationGroup';
|
|
4
|
+
export type { NavigationGroupProps } from './NavigationGroup.types';
|
|
5
|
+
export { default as NavigationItem } from './NavigationItem';
|
|
6
|
+
export type { NavigationItemProps } from './NavigationItem.types';
|
|
7
|
+
export { default as NavigationItemCaption } from './NavigationItemCaption';
|
|
8
|
+
export type { NavigationItemCaptionProps } from './NavigationItemCaption.types';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Typography } from '@mui/material';
|
|
3
|
+
const NoMatchContainer = () => {
|
|
4
|
+
return (_jsx(Box, { "data-testid": "NoMatchContainer", sx: {
|
|
5
|
+
display: 'flex',
|
|
6
|
+
flexDirection: 'row',
|
|
7
|
+
width: '100%',
|
|
8
|
+
height: '100%',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
}, children: _jsxs(Box, { sx: {
|
|
11
|
+
display: 'flex',
|
|
12
|
+
flexDirection: 'column',
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
}, children: [_jsx(Typography, { variant: "h7", color: "neutralGrey.25", sx: {
|
|
15
|
+
mt: '100px',
|
|
16
|
+
mb: '16px',
|
|
17
|
+
}, children: "Nothing matches your search" }), _jsx(Typography, { variant: "h9", color: "neutralGrey.25", children: "Please try again!" })] }) }));
|
|
18
|
+
};
|
|
19
|
+
export default NoMatchContainer;
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
2
|
export declare const DEFAULT_PAGE_SIZE = 100;
|
|
3
3
|
export declare const PAGE_SIZE_LIST: number[];
|
|
4
|
-
export declare const PaginationBox:
|
|
5
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
+
export declare const PaginationBox: ComponentType<any>;
|
|
7
5
|
export declare const PaperProps: {
|
|
8
6
|
style: {
|
|
9
7
|
maxHeight: number;
|
|
10
8
|
width: number;
|
|
11
9
|
};
|
|
12
10
|
};
|
|
13
|
-
export declare const SidePageBox:
|
|
14
|
-
export declare const SelectButton:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export declare const ArrowButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
18
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
19
|
-
}, "color" | "disabled" | "size" | "style" | "fullWidth" | "classes" | "className" | "children" | "sx" | "variant" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "href" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
20
|
-
export declare const PaginationContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const SidePageBox: ComponentType<any>;
|
|
12
|
+
export declare const SelectButton: ComponentType<any>;
|
|
13
|
+
export declare const ArrowButton: ComponentType<any>;
|
|
14
|
+
export declare const PaginationContainer: ComponentType<any>;
|
|
21
15
|
export declare const divider: {
|
|
22
16
|
readonly borderWidth: "0";
|
|
23
17
|
readonly margin: "0 12px";
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ProductName:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const LabelValue: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
14
|
-
export declare const FramedText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
15
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
16
|
-
}, "width" | "zIndex" | "typography" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "textTransform" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "visibility" | "whiteSpace" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "style" | "classes" | "className" | "children" | "sx" | "variant" | "p" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
17
|
-
export declare const LabelSubBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
18
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
20
|
-
export declare const LabelContainer: import("@emotion/styled").StyledComponent<import("@mui/material").DialogProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
21
|
-
export declare const LabelContent: import("@emotion/styled").StyledComponent<import("@mui/material").DialogContentProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
22
|
-
export declare const LabelCloseButton: import("@emotion/styled").StyledComponent<import("../Button/Button.types").ButtonProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const ProductName: ComponentType<any>;
|
|
3
|
+
export declare const LabelRow: ComponentType<any>;
|
|
4
|
+
export declare const LabelColumn: ComponentType<any>;
|
|
5
|
+
export declare const LabelValue: ComponentType<any>;
|
|
6
|
+
export declare const FramedText: ComponentType<any>;
|
|
7
|
+
export declare const LabelSubBox: ComponentType<any>;
|
|
8
|
+
export declare const LabelContainer: ComponentType<any>;
|
|
9
|
+
export declare const LabelContent: ComponentType<any>;
|
|
10
|
+
export declare const LabelCloseButton: ComponentType<any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
1
2
|
import type { CircularProgressProps } from './CircularProgress.types';
|
|
2
|
-
declare const BaseCircularProgress:
|
|
3
|
+
declare const BaseCircularProgress: ComponentType<CircularProgressProps>;
|
|
3
4
|
export default BaseCircularProgress;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
1
2
|
import type { LinearProgressProps } from './LinearProgress.types';
|
|
2
|
-
declare const BaseLinearProgress:
|
|
3
|
+
declare const BaseLinearProgress: ComponentType<LinearProgressProps>;
|
|
3
4
|
export default BaseLinearProgress;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Container:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const UncheckedIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
-
export declare const CheckedIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const Container: ComponentType<any>;
|
|
3
|
+
export declare const StyledRadio: ComponentType<any>;
|
|
4
|
+
export declare const UncheckedIcon: ComponentType<any>;
|
|
5
|
+
export declare const CheckedIcon: ComponentType<any>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const StyledRadioGroup: ComponentType<any>;
|
|
@@ -4,7 +4,6 @@ import { v4 as uuidV4 } from 'uuid';
|
|
|
4
4
|
import { cloneDeep as _cloneDeep, throttle as _throttle } from 'lodash';
|
|
5
5
|
const ResizeObserverContext = createContext({});
|
|
6
6
|
const { Provider } = ResizeObserverContext;
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
7
|
const ResizeObserverProvider = ({ children }) => {
|
|
9
8
|
const observerRef = useRef(null);
|
|
10
9
|
const handlersRef = useRef({});
|
|
@@ -12,7 +11,6 @@ const ResizeObserverProvider = ({ children }) => {
|
|
|
12
11
|
let current = _cloneDeep(observerRef.current);
|
|
13
12
|
if (current === null) {
|
|
14
13
|
current = new ResizeObserver(_throttle((entries) => {
|
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
14
|
entries.forEach((entry) => {
|
|
17
15
|
const resizeHandlers = handlersRef.current;
|
|
18
16
|
const observerKey = entry.target.attributes.getNamedItem('data-resizeobkey');
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
2
|
import type { StepperTypographyProps } from './Stepper.types';
|
|
3
|
-
export declare const StepperContainer:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
9
|
-
export declare const StepperChip: import("@emotion/styled").StyledComponent<import("../Chip").ChipProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
10
|
-
export declare const StepperTypography: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
11
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
12
|
-
}, "width" | "zIndex" | "typography" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "textTransform" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "visibility" | "whiteSpace" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "style" | "classes" | "className" | "children" | "sx" | "variant" | "p" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & StepperTypographyProps, {}, {}>;
|
|
3
|
+
export declare const StepperContainer: ComponentType<any>;
|
|
4
|
+
export declare const ChipContainer: ComponentType<any>;
|
|
5
|
+
export declare const StepperChip: ComponentType<any>;
|
|
6
|
+
export declare const StepperTypography: ComponentType<StepperTypographyProps>;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Theme } from '@mui/material';
|
|
1
|
+
import { ComponentType } from 'react';
|
|
3
2
|
import type { BaseTabProps, BaseTabsProps } from './TabbedPanel.types';
|
|
4
|
-
declare const BaseTabMenu:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const BaseTab: import("@emotion/styled").StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
-
}, "disabled" | "style" | "icon" | "classes" | "className" | "children" | "sx" | "label" | "tabIndex" | "value" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "iconPosition" | "wrapped"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseTabProps, {}, {}>;
|
|
10
|
-
declare const BaseTabPanel: import("@emotion/styled").StyledComponent<import("@mui/lab/TabPanel/TabPanel").TabPanelProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
3
|
+
declare const BaseTabMenu: ComponentType<BaseTabsProps>;
|
|
4
|
+
declare const BaseTab: ComponentType<BaseTabProps>;
|
|
5
|
+
declare const BaseTabPanel: ComponentType<any>;
|
|
11
6
|
export { BaseTabMenu, BaseTab, BaseTabPanel };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Theme } from '@mui/material';
|
|
1
|
+
import { ComponentType } from 'react';
|
|
3
2
|
import type { RootTextAreaProps } from './TextArea.types';
|
|
4
|
-
declare const BaseTextArea:
|
|
3
|
+
declare const BaseTextArea: ComponentType<RootTextAreaProps>;
|
|
5
4
|
export default BaseTextArea;
|
|
@@ -17,7 +17,6 @@ const baseTextAreaStyle = (theme, height) => {
|
|
|
17
17
|
const BaseTextArea = styled('textarea', {
|
|
18
18
|
shouldForwardProp: (prop) => !['error', 'width', 'height'].includes(prop.toString()),
|
|
19
19
|
})(({ theme, height, error }) => {
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
20
|
let resultStyle = baseTextAreaStyle(theme, height);
|
|
22
21
|
if (error) {
|
|
23
22
|
resultStyle = {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { Theme } from '@mui/material';
|
|
1
|
+
import { ComponentType } from 'react';
|
|
3
2
|
import { InputMsg } from '../BaseTextField/BaseTextField.styled';
|
|
4
|
-
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
7
|
-
declare const
|
|
8
|
-
declare const
|
|
9
|
-
error?: string | undefined;
|
|
10
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
-
declare const ButtonWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
3
|
+
declare const BaseTextInput: ComponentType<any>;
|
|
4
|
+
declare const FileInputLabel: ComponentType<any>;
|
|
5
|
+
declare const LeftIconContainer: ComponentType<any>;
|
|
6
|
+
declare const RightIconContainer: ComponentType<any>;
|
|
7
|
+
declare const ButtonWrapper: ComponentType<any>;
|
|
12
8
|
export { BaseTextInput, FileInputLabel, InputMsg, LeftIconContainer, RightIconContainer, ButtonWrapper, };
|
|
@@ -24,7 +24,6 @@ const BaseTextInput = styled('input', {
|
|
|
24
24
|
'sx',
|
|
25
25
|
].includes(prop.toString()),
|
|
26
26
|
})(({ theme, large, error, leftIcon, width, type }) => {
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
27
|
let resultStyle = {
|
|
29
28
|
...baseTextInputStyle(theme),
|
|
30
29
|
width:
|
|
@@ -63,7 +62,6 @@ const FileInputLabel = styled('label', {
|
|
|
63
62
|
'sx',
|
|
64
63
|
].includes(prop.toString()),
|
|
65
64
|
})(({ theme, large, error, leftIcon, width, disabled, readOnly }) => {
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
67
65
|
let resultStyle = {
|
|
68
66
|
...baseTextInputStyle(theme),
|
|
69
67
|
width:
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { BoxProps, InputProps as MuiInputProps } from '@mui/material';
|
|
3
2
|
import type { RootTextFieldProps, HelperMsgProps } from '../BaseTextField/BaseTextField.types';
|
|
4
3
|
interface RootTextInputProps extends RootTextFieldProps, Omit<MuiInputProps, 'size' | 'error' | 'ref' | 'value' | 'defaultValue' | 'onChange'> {
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
|
-
export declare const StyledToggle: import("@emotion/styled").StyledComponent<import("@mui/material").SwitchProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ToggleProps, {}, {}>;
|
|
7
|
-
export declare const StyledIndeterminateToggle: import("@emotion/styled").StyledComponent<import("@mui/material").SwitchProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ToggleProps, {}, {}>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const Container: ComponentType<any>;
|
|
3
|
+
export declare const StyledToggle: ComponentType<any>;
|
|
4
|
+
export declare const StyledIndeterminateToggle: ComponentType<any>;
|
|
@@ -47,7 +47,7 @@ export const StyledToggle = styled(Switch, {
|
|
|
47
47
|
},
|
|
48
48
|
'& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': {
|
|
49
49
|
opacity: 1,
|
|
50
|
-
backgroundColor: toggleColor || theme.palette.lunitTeal[40],
|
|
50
|
+
backgroundColor: (toggleColor || theme.palette.lunitTeal[40]),
|
|
51
51
|
},
|
|
52
52
|
'& .MuiSwitch-switchBase.Mui-disabled + .MuiSwitch-track': {
|
|
53
53
|
opacity: 1,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
1
2
|
import type { TooltipProps } from './Tooltip.types';
|
|
2
|
-
declare const BaseTooltip:
|
|
3
|
+
declare const BaseTooltip: ComponentType<TooltipProps>;
|
|
3
4
|
export default BaseTooltip;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
declare const StyledPaper:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const
|
|
6
|
-
|
|
7
|
-
}, "style" | "classes" | "className" | "children" | "sx" | "variant" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
|
-
declare const StyledToolbarButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ToolbarOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, "style" | "classes" | "className" | "children" | "sx" | "variant" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
|
-
declare const StyledCollapse: import("@emotion/styled").StyledComponent<import("@mui/material").CollapseProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
12
|
-
declare const StyledUploadFile: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
declare const StyledPaper: ComponentType<any>;
|
|
3
|
+
declare const StyledToolbar: ComponentType<any>;
|
|
4
|
+
declare const StyledToolbarButtonContainer: ComponentType<any>;
|
|
5
|
+
declare const StyledCollapse: ComponentType<any>;
|
|
6
|
+
declare const StyledUploadFile: ComponentType<any>;
|
|
13
7
|
export { StyledPaper, StyledToolbar, StyledToolbarButtonContainer, StyledCollapse, StyledUploadFile, };
|
package/dist/components/index.js
CHANGED