@lunit/oui 2.4.9 → 2.4.11
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/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 +18 -7
- package/dist/presentations/AnalysisBar/AnalysisBar.styled.d.ts +11 -17
- package/dist/presentations/AnalysisBar/AnalysisBar.styled.js +1 -1
- package/dist/presentations/AnalysisBar/AnalysisBar.utils.d.ts +13 -0
- package/dist/presentations/AnalysisBar/AnalysisBar.utils.js +41 -0
- 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 +95 -79
|
@@ -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
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
declare const BaseAccordion:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
defaultExpanded?: boolean | undefined;
|
|
6
|
-
disabled?: boolean | undefined;
|
|
7
|
-
disableGutters?: boolean | undefined;
|
|
8
|
-
expanded?: boolean | undefined;
|
|
9
|
-
onChange?: ((event: import("react").SyntheticEvent<Element, Event>, expanded: boolean) => void) | undefined;
|
|
10
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
11
|
-
TransitionComponent?: import("react").JSXElementConstructor<import("@mui/material/transitions").TransitionProps & {
|
|
12
|
-
children?: import("react").ReactElement<any, any> | undefined;
|
|
13
|
-
}> | undefined;
|
|
14
|
-
TransitionProps?: import("@mui/material/transitions").TransitionProps | undefined;
|
|
15
|
-
} & Omit<import("@mui/material").PaperOwnProps, "classes" | "onChange"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
-
}, "disabled" | "expanded" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "onChange" | "elevation" | "TransitionComponent" | "disableGutters" | "defaultExpanded" | "TransitionProps"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
18
|
-
declare const BaseAccordionSummary: import("@emotion/styled").StyledComponent<import("@mui/material").AccordionSummaryOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
20
|
-
}, "disabled" | "style" | "classes" | "className" | "children" | "sx" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
21
|
-
declare const BaseAccordionDetails: import("@emotion/styled").StyledComponent<import("@mui/material").AccordionDetailsProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
declare const BaseAccordion: ComponentType<any>;
|
|
3
|
+
declare const BaseAccordionSummary: ComponentType<any>;
|
|
4
|
+
declare const BaseAccordionDetails: ComponentType<any>;
|
|
22
5
|
export { BaseAccordion, BaseAccordionDetails, BaseAccordionSummary };
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { findIndex as _findIndex } from 'lodash';
|
|
3
2
|
import { Box } from '@mui/material';
|
|
4
3
|
import { AnalysisBarSegmentContainer, AnalysisBarOuter, AxisLabels, GraphAxisLabel, GraphScoreIndicator, GraphSegment, } from './AnalysisBar.styled';
|
|
5
|
-
import { parseStringValToNumber } from './AnalysisBar.utils';
|
|
4
|
+
import { parseStringValToNumber, normalizeSegmentWidths } from './AnalysisBar.utils';
|
|
6
5
|
import HeatmapGraphSVG from './HeatmapGraphIcon/HeatmapGraphSVG';
|
|
7
6
|
const Segments = ({ segments, isCutoff }) => {
|
|
8
7
|
if (!segments) {
|
|
9
8
|
return null;
|
|
10
9
|
}
|
|
11
10
|
const validSegments = segments.filter((segment) => segment.width > 0);
|
|
12
|
-
const
|
|
13
|
-
|
|
11
|
+
const onePercentIndex = segments.findIndex((segment) => segment.width > 0 && segment.width <= 1);
|
|
12
|
+
let combinedWidth = 0;
|
|
13
|
+
let nextSegmentIndex = -1;
|
|
14
|
+
if (onePercentIndex >= 0) {
|
|
15
|
+
let i = onePercentIndex;
|
|
16
|
+
while (i < segments.length && segments[i].width > 0 && segments[i].width <= 1) {
|
|
17
|
+
combinedWidth += segments[i].width;
|
|
18
|
+
i++;
|
|
19
|
+
}
|
|
20
|
+
if (i < segments.length) {
|
|
21
|
+
combinedWidth += segments[i].width;
|
|
22
|
+
nextSegmentIndex = i;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
14
25
|
if (segments?.length === 1 && segments[0].color === 'jet') {
|
|
15
26
|
return (_jsx(Box, { sx: { width: '100%', height: '14px', transform: 'scaleY(0.8)' }, children: _jsx(HeatmapGraphSVG, {}) }));
|
|
16
27
|
}
|
|
@@ -18,7 +29,7 @@ const Segments = ({ segments, isCutoff }) => {
|
|
|
18
29
|
if (segment.color === 'jet') {
|
|
19
30
|
return _jsx(HeatmapGraphSVG, { width: `${segment.width}%` });
|
|
20
31
|
}
|
|
21
|
-
return (_jsx(GraphSegment, { color: segment.color, width: segment.width, isFirstSegment: i === 0, isLastSegment: i ===
|
|
32
|
+
return (_jsx(GraphSegment, { color: segment.color, width: segment.width, isFirstSegment: i === 0, isLastSegment: i === validSegments.length - 1, isCutoff: isCutoff, combinedWidth: combinedWidth, isNextSegment: nextSegmentIndex >= 0 && i === nextSegmentIndex, isOnePercentSegment: segment.width <= 1 }, i));
|
|
22
33
|
}) }));
|
|
23
34
|
};
|
|
24
35
|
const AnalysisBar = ({ componentType = 'analysisBar', isCutoff = false, expressionValue, caption, expressionLevels = [], expressionLabels = [], segments, isDimmed = false, }) => {
|
|
@@ -26,8 +37,8 @@ const AnalysisBar = ({ componentType = 'analysisBar', isCutoff = false, expressi
|
|
|
26
37
|
throw new Error("The 'componentType' prop is required.");
|
|
27
38
|
if (!expressionLevels.length)
|
|
28
39
|
throw new Error("The 'expressionLevels' prop must contain at least one item.");
|
|
29
|
-
const
|
|
30
|
-
return (_jsxs(AnalysisBarOuter, { className: "analysis-bar", isDimmed: isDimmed, children: [_jsxs(AnalysisBarSegmentContainer, { children: [expressionValue && (_jsx(GraphScoreIndicator, { value: expressionValue, isCutoff: isCutoff, isJet:
|
|
40
|
+
const normalizedSegments = normalizeSegmentWidths(segments, isCutoff);
|
|
41
|
+
return (_jsxs(AnalysisBarOuter, { className: "analysis-bar", isDimmed: isDimmed, children: [_jsxs(AnalysisBarSegmentContainer, { children: [expressionValue && (_jsx(GraphScoreIndicator, { value: expressionValue, isCutoff: isCutoff, isJet: normalizedSegments?.[0]?.color === 'jet' })), _jsx(Segments, { segments: normalizedSegments, isCutoff: isCutoff })] }), (expressionLevels.length > 0 || caption) && (_jsxs(AxisLabels, { children: [expressionLevels.length > 0 &&
|
|
31
42
|
expressionLevels.map((val, i) => {
|
|
32
43
|
return (_jsx(GraphAxisLabel, { label: expressionLabels[i] || val, isCutoff: isCutoff, leftPos: parseStringValToNumber(val) }, i));
|
|
33
44
|
}), caption && (_jsx(GraphAxisLabel, { label: caption, isCutoff: isCutoff, leftPos: 50 }))] }))] }));
|
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const AnalysisBarOuter:
|
|
3
|
-
|
|
4
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
5
|
-
isDimmed: boolean;
|
|
6
|
-
}, {}, {}>;
|
|
7
|
-
export declare const AnalysisBarSegmentContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
1
|
+
import { type PropsWithChildren, ComponentType } from 'react';
|
|
2
|
+
export declare const AnalysisBarOuter: ComponentType<any>;
|
|
3
|
+
export declare const AnalysisBarSegmentContainer: ComponentType<any>;
|
|
10
4
|
export declare const GraphScoreIndicator: ({ value, isCutoff, isJet, }: {
|
|
11
5
|
value: string;
|
|
12
|
-
isCutoff?: boolean
|
|
13
|
-
isJet?: boolean
|
|
6
|
+
isCutoff?: boolean;
|
|
7
|
+
isJet?: boolean;
|
|
14
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
9
|
export declare const GraphAxisLabel: ({ label, leftPos, isCutoff, }: {
|
|
16
10
|
label: string;
|
|
17
11
|
leftPos: number;
|
|
18
|
-
isCutoff?: boolean
|
|
19
|
-
}) =>
|
|
20
|
-
export declare const AxisLabels: ({ children }: {
|
|
12
|
+
isCutoff?: boolean;
|
|
13
|
+
}) => JSX.Element;
|
|
14
|
+
export declare const AxisLabels: ({ children, }: {
|
|
21
15
|
percent?: boolean;
|
|
22
|
-
} & PropsWithChildren) =>
|
|
16
|
+
} & PropsWithChildren) => JSX.Element;
|
|
23
17
|
export declare const AnalysisBarCaption: ({ label }: {
|
|
24
18
|
label: string;
|
|
25
|
-
}) =>
|
|
19
|
+
}) => JSX.Element;
|
|
26
20
|
interface GraphSegmentProps {
|
|
27
21
|
color: string | undefined;
|
|
28
22
|
width: number;
|
|
@@ -33,5 +27,5 @@ interface GraphSegmentProps {
|
|
|
33
27
|
isFirstSegment: boolean;
|
|
34
28
|
isLastSegment: boolean;
|
|
35
29
|
}
|
|
36
|
-
export declare const GraphSegment:
|
|
30
|
+
export declare const GraphSegment: ComponentType<GraphSegmentProps>;
|
|
37
31
|
export {};
|
|
@@ -79,7 +79,7 @@ export const GraphAxisLabel = ({ label, leftPos, isCutoff, }) => {
|
|
|
79
79
|
transform: 'translateX(-50%)',
|
|
80
80
|
}, className: "analysis-bar-axis-label", children: _jsx(Typography, { variant: "small_body_m5", sx: { textAlign: 'center' }, children: label }) }));
|
|
81
81
|
};
|
|
82
|
-
export const AxisLabels = ({ children }) => {
|
|
82
|
+
export const AxisLabels = ({ children, }) => {
|
|
83
83
|
return (_jsx(Box, { sx: {
|
|
84
84
|
position: 'relative',
|
|
85
85
|
display: 'flex',
|
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
export declare function parseStringValToNumber(val: string): number;
|
|
2
2
|
export declare function clampNumericalPercentage(value: number): number;
|
|
3
3
|
export declare function clampBarLabelPosition(value: number): number;
|
|
4
|
+
/**
|
|
5
|
+
* @description normalizeSegmentWidths is a function that normalizes the width of the segments in the analysis bar.
|
|
6
|
+
* @param segments - The segments to normalize.
|
|
7
|
+
* @param isCutoff - Whether the analysis bar is a cutoff.
|
|
8
|
+
* @returns The normalized segments.
|
|
9
|
+
*/
|
|
10
|
+
export declare function normalizeSegmentWidths(segments: {
|
|
11
|
+
color: 'jet' | string;
|
|
12
|
+
width: number;
|
|
13
|
+
}[], isCutoff?: boolean): {
|
|
14
|
+
color: 'jet' | string;
|
|
15
|
+
width: number;
|
|
16
|
+
}[];
|