@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
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,5 +1,4 @@
|
|
|
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
4
|
import { parseStringValToNumber, normalizeSegmentWidths } from './AnalysisBar.utils';
|
|
@@ -9,8 +8,20 @@ const Segments = ({ segments, isCutoff }) => {
|
|
|
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 === validSegments.length - 1, isCutoff: isCutoff, combinedWidth: combinedWidth, isNextSegment:
|
|
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, }) => {
|
|
@@ -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,26 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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 HistogramChartContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
15
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
17
|
-
export declare const HistogramDescription: 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 TabButton: 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"> & {
|
|
21
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
22
|
-
}, "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> & {
|
|
23
|
-
component?: import("react").ElementType<any> | undefined;
|
|
24
|
-
} & {
|
|
25
|
-
active?: boolean | undefined;
|
|
26
|
-
}, {}, {}>;
|
|
1
|
+
import { ButtonProps } from '@mui/material';
|
|
2
|
+
import { ComponentType } from 'react';
|
|
3
|
+
export declare const HistogramContainer: ComponentType<any>;
|
|
4
|
+
export declare const HistogramTitle: ComponentType<any>;
|
|
5
|
+
export declare const HistogramNoData: ComponentType<any>;
|
|
6
|
+
export declare const HistogramTabsContainer: ComponentType<any>;
|
|
7
|
+
export declare const HistogramChartContainer: ComponentType<any>;
|
|
8
|
+
export declare const HistogramDescription: ComponentType<any>;
|
|
9
|
+
export declare const TabButton: ComponentType<ButtonProps & {
|
|
10
|
+
active?: boolean;
|
|
11
|
+
}>;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Container:
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const Container: ComponentType<any>;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Container:
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const Container: ComponentType<any>;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const Container:
|
|
3
|
-
|
|
4
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
-
export declare const HorizontalStatisticContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const Container: ComponentType<any>;
|
|
3
|
+
export declare const HorizontalStatisticContainer: ComponentType<any>;
|
|
8
4
|
export declare const VerticalStatisticContainer: ({ title, metrics, }: {
|
|
9
5
|
title: string;
|
|
10
6
|
metrics: string;
|
|
11
|
-
}) =>
|
|
7
|
+
}) => JSX.Element;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
2
|
import { BaseSliderProps } from './Threshold.types';
|
|
3
|
-
export declare const Container:
|
|
4
|
-
|
|
5
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
|
-
export declare const BaseSlider: import("@emotion/styled").StyledComponent<import("@mui/material").SliderOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
7
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
8
|
-
}, "components" | "color" | "disabled" | "scale" | "size" | "style" | "classes" | "className" | "sx" | "track" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "name" | "value" | "componentsProps" | "slotProps" | "slots" | "max" | "orientation" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "marks" | "min" | "onChangeCommitted" | "step" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & BaseSliderProps, {}, {}>;
|
|
3
|
+
export declare const Container: ComponentType<any>;
|
|
4
|
+
export declare const BaseSlider: ComponentType<BaseSliderProps>;
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
size?: PresentationElementSize;
|
|
5
|
-
isGrouped?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const ToggleControlOuter: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
10
|
-
hasBar: boolean;
|
|
11
|
-
}, {}, {}>;
|
|
12
|
-
export declare const ToggleControlContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ToggleControlContainerProps, {}, {}>;
|
|
15
|
-
export {};
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const ToggleControlOuter: ComponentType<any>;
|
|
3
|
+
export declare const ToggleControlContainer: ComponentType<any>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Box, styled } from '@mui/material';
|
|
2
|
-
export const ToggleControlOuter = styled(Box, {
|
|
2
|
+
export const ToggleControlOuter = styled(Box, {
|
|
3
|
+
shouldForwardProp: (prop) => prop !== 'hasBar',
|
|
4
|
+
})(({ hasBar }) => ({
|
|
3
5
|
display: 'flex',
|
|
4
6
|
flexDirection: 'column',
|
|
5
7
|
alignItems: 'flex-start',
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ToggleControlGroupContainer:
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const ToggleControlGroupContainer: ComponentType<any>;
|
package/dist/systems/drawer.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,90 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunit/oui",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.12",
|
|
4
4
|
"validate-branch-name": {
|
|
5
5
|
"pattern": "^(main|develop)|(feature|fix|release|hotfix|qe)/.+$",
|
|
6
6
|
"errorMsg": "The branch name is not correct. Please check the pattern. (ex. feature/add-something)"
|
|
7
7
|
},
|
|
8
|
-
"
|
|
9
|
-
"@babel/core": "^7.16.0",
|
|
10
|
-
"@date-io/date-fns": "^2.17.0",
|
|
8
|
+
"peerDependencies": {
|
|
11
9
|
"@emotion/react": "^11.11.1",
|
|
12
10
|
"@emotion/styled": "^11.11.0",
|
|
13
|
-
"@lunit/design-system-icons": "^2.1.0",
|
|
14
|
-
"@lunit/design-system-logo": "1.1.1",
|
|
15
11
|
"@mui/icons-material": "^5.15.2",
|
|
16
12
|
"@mui/lab": "^5.0.0-alpha.158",
|
|
17
13
|
"@mui/material": "^5.15.2",
|
|
18
|
-
"@mui/styles": "^5.15.2",
|
|
19
14
|
"@mui/system": "^5.15.2",
|
|
20
15
|
"@mui/x-data-grid": "^6.18.6",
|
|
21
16
|
"@mui/x-date-pickers": "^6.18.6",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@types/react": "^18.2.45",
|
|
30
|
-
"@types/react-dom": "^18.2.18",
|
|
17
|
+
"react": "^18.2.0",
|
|
18
|
+
"react-dom": "^18.2.0"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@date-io/date-fns": "^2.17.0",
|
|
22
|
+
"@lunit/design-system-icons": "^2.1.0",
|
|
23
|
+
"@lunit/design-system-logo": "1.1.1",
|
|
31
24
|
"@uppy/core": "^3.8.0",
|
|
32
|
-
"babel-jest": "^27.4.2",
|
|
33
|
-
"babel-loader": "^8.2.3",
|
|
34
|
-
"babel-plugin-named-asset-import": "^0.3.8",
|
|
35
|
-
"babel-preset-react-app": "^10.0.1",
|
|
36
|
-
"bfj": "^7.0.2",
|
|
37
|
-
"browserslist": "^4.18.1",
|
|
38
|
-
"camelcase": "^6.2.1",
|
|
39
|
-
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
40
25
|
"clsx": "^2.0.0",
|
|
41
|
-
"css-loader": "^6.5.1",
|
|
42
|
-
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
43
26
|
"date-fns": "2.30.0",
|
|
44
|
-
"dotenv": "^10.0.0",
|
|
45
|
-
"dotenv-expand": "^5.1.0",
|
|
46
|
-
"eslint": "^8.3.0",
|
|
47
|
-
"eslint-config-react-app": "^7.0.1",
|
|
48
|
-
"eslint-webpack-plugin": "^3.1.1",
|
|
49
|
-
"file-loader": "^6.2.0",
|
|
50
|
-
"fs-extra": "^10.0.0",
|
|
51
|
-
"html-webpack-plugin": "^5.5.0",
|
|
52
|
-
"identity-obj-proxy": "^3.0.0",
|
|
53
|
-
"jest": "^27.4.3",
|
|
54
|
-
"jest-resolve": "^27.4.2",
|
|
55
|
-
"jest-watch-typeahead": "^1.0.0",
|
|
56
27
|
"lodash": "^4.17.21",
|
|
57
|
-
"
|
|
58
|
-
"postcss": "^8.4.4",
|
|
59
|
-
"postcss-flexbugs-fixes": "^5.0.2",
|
|
60
|
-
"postcss-loader": "^6.2.1",
|
|
61
|
-
"postcss-normalize": "^10.0.1",
|
|
62
|
-
"postcss-preset-env": "^7.0.1",
|
|
63
|
-
"prompts": "^2.4.2",
|
|
64
|
-
"react": "^18.2.0",
|
|
65
|
-
"react-app-polyfill": "^3.0.0",
|
|
66
|
-
"react-dev-utils": "^12.0.1",
|
|
67
|
-
"react-dom": "^18.2.0",
|
|
68
|
-
"react-refresh": "^0.11.0",
|
|
69
|
-
"resolve": "^1.20.0",
|
|
70
|
-
"resolve-url-loader": "^4.0.0",
|
|
71
|
-
"sass-loader": "^12.3.0",
|
|
72
|
-
"semver": "^7.3.5",
|
|
73
|
-
"source-map-loader": "^3.0.0",
|
|
74
|
-
"style-loader": "^3.3.1",
|
|
75
|
-
"styled-components": "^6.1.1",
|
|
76
|
-
"tailwindcss": "^3.0.2",
|
|
77
|
-
"terser-webpack-plugin": "^5.2.5",
|
|
28
|
+
"react-router-dom": "^7.9.6",
|
|
78
29
|
"tinycolor2": "^1.6.0",
|
|
79
|
-
"
|
|
30
|
+
"uuid": "^11.1.0",
|
|
80
31
|
"victory": "^37.3.6",
|
|
81
|
-
"web-vitals": "^2.1.4"
|
|
82
|
-
"webpack": "^5.64.4",
|
|
83
|
-
"webpack-dev-server": "^4.6.0",
|
|
84
|
-
"webpack-manifest-plugin": "^4.0.2",
|
|
85
|
-
"workbox-webpack-plugin": "^6.4.1"
|
|
32
|
+
"web-vitals": "^2.1.4"
|
|
86
33
|
},
|
|
87
34
|
"scripts": {
|
|
35
|
+
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
|
|
88
36
|
"build": "npm run build:transpile",
|
|
89
37
|
"build:transpile": "tsc -p tsconfig.build.json",
|
|
90
38
|
"build:cjs": "NODE_ENV=production webpack -c config/cjs.config.js",
|
|
@@ -168,44 +116,113 @@
|
|
|
168
116
|
]
|
|
169
117
|
},
|
|
170
118
|
"devDependencies": {
|
|
119
|
+
"@babel/core": "^7.16.0",
|
|
171
120
|
"@commitlint/cli": "^18.4.3",
|
|
172
121
|
"@commitlint/config-conventional": "^18.4.3",
|
|
122
|
+
"@emotion/react": "11.11.1",
|
|
123
|
+
"@emotion/styled": "11.11.0",
|
|
173
124
|
"@lottiefiles/react-lottie-player": "^3.5.3",
|
|
174
125
|
"@lunit/eslint-config": "^0.5.0",
|
|
175
|
-
"@
|
|
176
|
-
"@
|
|
177
|
-
"@
|
|
178
|
-
"@
|
|
126
|
+
"@mui/icons-material": "5.15.2",
|
|
127
|
+
"@mui/lab": "5.0.0-alpha.158",
|
|
128
|
+
"@mui/material": "5.15.2",
|
|
129
|
+
"@mui/system": "5.15.2",
|
|
130
|
+
"@mui/x-data-grid": "6.18.6",
|
|
131
|
+
"@mui/x-date-pickers": "6.18.6",
|
|
132
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
133
|
+
"@storybook/addon-actions": "^7.6.17",
|
|
134
|
+
"@storybook/addon-essentials": "^7.6.17",
|
|
135
|
+
"@storybook/addon-interactions": "^7.6.17",
|
|
136
|
+
"@storybook/addon-links": "^7.6.17",
|
|
179
137
|
"@storybook/addon-onboarding": "^1.0.10",
|
|
180
|
-
"@storybook/blocks": "^7.6.
|
|
181
|
-
"@storybook/manager-api": "^7.6.
|
|
182
|
-
"@storybook/react": "^7.6.
|
|
183
|
-
"@storybook/react-vite": "^7.6.
|
|
184
|
-
"@storybook/react-webpack5": "^7.6.
|
|
185
|
-
"@storybook/test": "^7.6.
|
|
186
|
-
"@storybook/theming": "^7.6.
|
|
138
|
+
"@storybook/blocks": "^7.6.17",
|
|
139
|
+
"@storybook/manager-api": "^7.6.17",
|
|
140
|
+
"@storybook/react": "^7.6.17",
|
|
141
|
+
"@storybook/react-vite": "^7.6.17",
|
|
142
|
+
"@storybook/react-webpack5": "^7.6.17",
|
|
143
|
+
"@storybook/test": "^7.6.17",
|
|
144
|
+
"@storybook/theming": "^7.6.17",
|
|
145
|
+
"@svgr/webpack": "^8.1.0",
|
|
146
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
147
|
+
"@testing-library/react": "^13.4.0",
|
|
148
|
+
"@testing-library/user-event": "^13.5.0",
|
|
187
149
|
"@tsconfig/recommended": "^1.0.3",
|
|
150
|
+
"@types/jest": "^27.5.2",
|
|
151
|
+
"@types/node": "^16.18.68",
|
|
152
|
+
"@types/react": "^18.2.45",
|
|
153
|
+
"@types/react-dom": "^18.2.18",
|
|
188
154
|
"@types/tinycolor2": "^1.4.6",
|
|
189
155
|
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
|
190
156
|
"@typescript-eslint/parser": "^8.24.0",
|
|
157
|
+
"babel-jest": "^27.4.2",
|
|
158
|
+
"babel-loader": "^8.2.3",
|
|
159
|
+
"babel-plugin-named-asset-import": "^0.3.8",
|
|
160
|
+
"babel-preset-react-app": "^10.0.1",
|
|
161
|
+
"bfj": "^7.0.2",
|
|
162
|
+
"browserslist": "^4.18.1",
|
|
163
|
+
"camelcase": "^6.2.1",
|
|
164
|
+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
165
|
+
"css-loader": "^6.5.1",
|
|
166
|
+
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
167
|
+
"dotenv": "^10.0.0",
|
|
168
|
+
"dotenv-expand": "^5.1.0",
|
|
169
|
+
"eslint": "^8.3.0",
|
|
191
170
|
"eslint-config-prettier": "^9.1.0",
|
|
171
|
+
"eslint-config-react-app": "^7.0.1",
|
|
192
172
|
"eslint-plugin-prettier": "^5.1.0",
|
|
193
173
|
"eslint-plugin-storybook": "^0.6.15",
|
|
174
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
175
|
+
"file-loader": "^6.2.0",
|
|
176
|
+
"fs-extra": "^10.0.0",
|
|
177
|
+
"html-webpack-plugin": "^5.5.0",
|
|
194
178
|
"husky": "^8.0.0",
|
|
179
|
+
"identity-obj-proxy": "^3.0.0",
|
|
180
|
+
"jest": "^27.4.3",
|
|
181
|
+
"jest-resolve": "^27.4.2",
|
|
182
|
+
"jest-watch-typeahead": "^1.0.0",
|
|
195
183
|
"lint-staged": "^15.2.0",
|
|
184
|
+
"mini-css-extract-plugin": "^2.4.5",
|
|
185
|
+
"postcss": "^8.4.4",
|
|
186
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
187
|
+
"postcss-loader": "^6.2.1",
|
|
188
|
+
"postcss-normalize": "^10.0.1",
|
|
189
|
+
"postcss-preset-env": "^7.0.1",
|
|
196
190
|
"prettier": "^3.1.1",
|
|
197
|
-
"
|
|
191
|
+
"prompts": "^2.4.2",
|
|
192
|
+
"react": "18.2.0",
|
|
193
|
+
"react-app-polyfill": "^3.0.0",
|
|
194
|
+
"react-dev-utils": "^12.0.1",
|
|
195
|
+
"react-dom": "18.2.0",
|
|
196
|
+
"react-refresh": "^0.11.0",
|
|
197
|
+
"resolve": "^1.20.0",
|
|
198
|
+
"resolve-url-loader": "^4.0.0",
|
|
199
|
+
"sass-loader": "^12.3.0",
|
|
200
|
+
"semver": "^7.3.5",
|
|
201
|
+
"source-map-loader": "^3.0.0",
|
|
202
|
+
"storybook": "^7.6.17",
|
|
203
|
+
"style-loader": "^3.3.1",
|
|
204
|
+
"styled-components": "^6.1.1",
|
|
205
|
+
"tailwindcss": "^3.0.2",
|
|
206
|
+
"terser-webpack-plugin": "^5.2.5",
|
|
198
207
|
"ts-loader": "^9.5.1",
|
|
208
|
+
"typescript": "^5.9.3",
|
|
199
209
|
"typescript-eslint": "^8.18.1",
|
|
200
|
-
"
|
|
210
|
+
"webpack": "^5.64.4",
|
|
201
211
|
"webpack-cli": "^5.1.4",
|
|
202
|
-
"webpack-
|
|
212
|
+
"webpack-dev-server": "^4.6.0",
|
|
213
|
+
"webpack-manifest-plugin": "^4.0.2",
|
|
214
|
+
"webpack-node-externals": "^3.0.0",
|
|
215
|
+
"workbox-webpack-plugin": "^6.4.1"
|
|
203
216
|
},
|
|
204
217
|
"description": "Lunit Oncology UI components",
|
|
205
218
|
"main": "dist/index.js",
|
|
206
219
|
"module": "dist/index.js",
|
|
207
220
|
"types": "dist/types/index.d.ts",
|
|
208
221
|
"sideEffects": false,
|
|
222
|
+
"files": [
|
|
223
|
+
"dist",
|
|
224
|
+
"README.md"
|
|
225
|
+
],
|
|
209
226
|
"exports": {
|
|
210
227
|
".": {
|
|
211
228
|
"import": "./dist/index.js",
|