@lunit/oui 2.4.10 → 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.
Files changed (96) hide show
  1. package/dist/components/Alert/Alert.styled.d.ts +1 -1
  2. package/dist/components/Alert/Alert.utils.d.ts +3 -3
  3. package/dist/components/BaseTextField/BaseTextField.styled.d.ts +10 -57
  4. package/dist/components/Button/Button.types.d.ts +0 -1
  5. package/dist/components/Button/styleds/BaseButton.styled.d.ts +4 -858
  6. package/dist/components/Button/styleds/ContainedButton.styled.d.ts +6 -891
  7. package/dist/components/Button/styleds/GhostButton.styled.d.ts +6 -885
  8. package/dist/components/Button/styleds/OutlinedButton.styled.d.ts +6 -892
  9. package/dist/components/Card/Card.styled.d.ts +2 -1
  10. package/dist/components/Card/Card.styled.js +1 -1
  11. package/dist/components/Checkbox/Checkbox.styled.d.ts +6 -10
  12. package/dist/components/Checkbox/Checkbox.utils.js +18 -12
  13. package/dist/components/Chip/Chip.js +0 -1
  14. package/dist/components/Chip/Chip.styled.d.ts +2 -4
  15. package/dist/components/Chip/Chip.utils.js +0 -1
  16. package/dist/components/DataTable/DataTable.styled.d.ts +2 -2
  17. package/dist/components/DatePicker/DatePicker.js +0 -3
  18. package/dist/components/DatePicker/DatePicker.styled.d.ts +2 -2
  19. package/dist/components/Dialog/Dialog.js +1 -3
  20. package/dist/components/Dialog/Dialog.styled.d.ts +7 -23
  21. package/dist/components/Dialog/Dialog.types.d.ts +0 -1
  22. package/dist/components/Divider/Divider.styled.d.ts +2 -4
  23. package/dist/components/Divider/Divider.styled.js +1 -1
  24. package/dist/components/Dropdown/Dropdown.styled.d.ts +4 -7
  25. package/dist/components/Dropdown/Dropdown.styled.js +1 -1
  26. package/dist/components/Dropdown/Dropdown.types.d.ts +0 -1
  27. package/dist/components/Dropdown/DropdownItem.styled.d.ts +2 -5
  28. package/dist/components/Dropdown/DropdownItem.types.d.ts +0 -1
  29. package/dist/components/Dropdown/DropdownSubtitle.styled.d.ts +2 -4
  30. package/dist/components/Dropdown/IconDropdown.styled.d.ts +3 -5
  31. package/dist/components/Dropdown/IconDropdown.styled.js +1 -0
  32. package/dist/components/Dropdown/IconDropdown.types.d.ts +0 -1
  33. package/dist/components/EllipsisTypography/EllipsisTypography.styled.d.ts +2 -4
  34. package/dist/components/FileDnDZone/FileDnDZone.styled.d.ts +5 -13
  35. package/dist/components/List/List.styled.d.ts +3 -8
  36. package/dist/components/List/List.types.d.ts +0 -1
  37. package/dist/components/List/ListItem.js +1 -3
  38. package/dist/components/List/ListItem.styled.d.ts +10 -34
  39. package/dist/components/List/ListItem.styled.js +1 -1
  40. package/dist/components/List/ListItem.types.d.ts +0 -1
  41. package/dist/components/List/ListItemCaption.styled.d.ts +2 -4
  42. package/dist/components/LoadingIndicator/LoadingIndicator.styled.d.ts +5 -13
  43. package/dist/components/Menu/Menu.styled.d.ts +3 -6
  44. package/dist/components/Menu/Menu.types.d.ts +0 -1
  45. package/dist/components/Menu/MenuItem.styled.d.ts +5 -7
  46. package/dist/components/Menu/MenuItem.types.d.ts +0 -1
  47. package/dist/components/NoMatchContainer/NoMatchContainer.d.ts +2 -0
  48. package/dist/components/NoMatchContainer/NoMatchContainer.js +19 -0
  49. package/dist/components/NoMatchContainer/index.d.ts +2 -0
  50. package/dist/components/NoMatchContainer/index.js +2 -0
  51. package/dist/components/Pagination/Pagination.styled.d.ts +6 -12
  52. package/dist/components/Pagination/Pagination.types.d.ts +0 -1
  53. package/dist/components/ProductLabel/ProductLabel.styled.d.ts +10 -22
  54. package/dist/components/ProductLabel/ProductLabel.types.d.ts +0 -1
  55. package/dist/components/Progress/CircularProgress.styled.d.ts +2 -1
  56. package/dist/components/Progress/LinearProgress.styled.d.ts +2 -1
  57. package/dist/components/Radio/Radio.styled.d.ts +5 -7
  58. package/dist/components/Radio/RadioGroup.styled.d.ts +2 -1
  59. package/dist/components/ResizeObserver/ResizeObserverContext.js +0 -2
  60. package/dist/components/Stepper/Stepper.styled.d.ts +5 -11
  61. package/dist/components/TabbedPanel/TabbedPanel.styled.d.ts +4 -9
  62. package/dist/components/TabbedPanel/TabbedPanel.types.d.ts +0 -1
  63. package/dist/components/TextField/TextArea.styled.d.ts +2 -3
  64. package/dist/components/TextField/TextArea.styled.js +0 -1
  65. package/dist/components/TextField/TextArea.types.d.ts +0 -1
  66. package/dist/components/TextField/TextInput.styled.d.ts +6 -10
  67. package/dist/components/TextField/TextInput.styled.js +0 -2
  68. package/dist/components/TextField/TextInput.types.d.ts +0 -1
  69. package/dist/components/Toggle/Toggle.styled.d.ts +4 -7
  70. package/dist/components/Toggle/Toggle.styled.js +1 -1
  71. package/dist/components/Toggle/Toggle.types.d.ts +0 -1
  72. package/dist/components/Tooltip/Tooltip.styled.d.ts +2 -1
  73. package/dist/components/UploadManager/UploadManager.styled.d.ts +6 -12
  74. package/dist/components/index.d.ts +1 -0
  75. package/dist/components/index.js +1 -0
  76. package/dist/foundations/palette.d.ts +0 -1
  77. package/dist/foundations/typography.d.ts +0 -1
  78. package/dist/index.d.ts +1 -0
  79. package/dist/index.js +1 -0
  80. package/dist/presentations/Accordion/Accordion.styled.d.ts +4 -21
  81. package/dist/presentations/Accordion/Accordion.types.d.ts +0 -1
  82. package/dist/presentations/AnalysisBar/AnalysisBar.js +15 -4
  83. package/dist/presentations/AnalysisBar/AnalysisBar.styled.d.ts +11 -17
  84. package/dist/presentations/AnalysisBar/AnalysisBar.styled.js +1 -1
  85. package/dist/presentations/Histogram/Histogram.styled.d.ts +11 -26
  86. package/dist/presentations/ModelType/ModelType.styled.d.ts +2 -4
  87. package/dist/presentations/Preview/Preview.styled.d.ts +2 -4
  88. package/dist/presentations/Statistic/Statistic.styled.d.ts +4 -8
  89. package/dist/presentations/Threshold/Threshold.styled.d.ts +3 -7
  90. package/dist/presentations/ToggleControl/ToggleControl.styled.d.ts +3 -15
  91. package/dist/presentations/ToggleControl/ToggleControl.styled.js +3 -1
  92. package/dist/presentations/ToggleControl/ToggleControl.types.d.ts +0 -1
  93. package/dist/presentations/ToggleControlGroup/ToggleControlGroup.styled.d.ts +2 -4
  94. package/dist/presentations/ToggleControlGroup/ToggleControlGroup.types.d.ts +0 -1
  95. package/dist/systems/drawer.d.ts +0 -1
  96. 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;
@@ -0,0 +1,2 @@
1
+ import NoMatchContainer from './NoMatchContainer';
2
+ export { NoMatchContainer };
@@ -0,0 +1,2 @@
1
+ import NoMatchContainer from './NoMatchContainer';
2
+ export { NoMatchContainer };
@@ -1,23 +1,17 @@
1
- /// <reference types="react" />
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: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
- export declare const SelectButton: 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"> & {
15
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
16
- }, "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>, {}, {}>;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface PaginationProps {
3
2
  page?: number;
4
3
  perPage: number;
@@ -1,22 +1,10 @@
1
- /// <reference types="react" />
2
- export declare const ProductName: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
4
- }, "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>, {}, {}>;
5
- export declare const LabelRow: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
- export declare const LabelColumn: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { SxProps } from '@mui/system';
3
2
  export interface ProductLabelProps {
4
3
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ import { ComponentType } from 'react';
1
2
  import type { CircularProgressProps } from './CircularProgress.types';
2
- declare const BaseCircularProgress: import("@emotion/styled").StyledComponent<import("@mui/material").CircularProgressProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CircularProgressProps, {}, {}>;
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: import("@emotion/styled").StyledComponent<import("@mui/material").LinearProgressProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & LinearProgressProps, {}, {}>;
3
+ declare const BaseLinearProgress: ComponentType<LinearProgressProps>;
3
4
  export default BaseLinearProgress;
@@ -1,7 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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>, {}, {}>;
5
- export declare const StyledRadio: import("@emotion/styled").StyledComponent<import("@mui/material").RadioProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
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
- export declare const StyledRadioGroup: import("@emotion/styled").StyledComponent<import("@mui/material").RadioGroupProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
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
- /// <reference types="react" />
1
+ import { ComponentType } from 'react';
2
2
  import type { StepperTypographyProps } from './Stepper.types';
3
- export declare const StepperContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
- export declare const ChipContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
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
- /// <reference types="react" />
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: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
6
- }, "style" | "classes" | "className" | "children" | "sx" | "variant" | "aria-label" | "aria-labelledby" | "onChange" | "value" | "slotProps" | "slots" | "action" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseTabsProps, {}, {}>;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { TabPanelProps } from '@mui/lab/TabPanel';
3
2
  import type { TabProps, TabsProps } from '@mui/material';
4
3
  type TabSize = 'small' | 'medium';
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { Theme } from '@mui/material';
1
+ import { ComponentType } from 'react';
3
2
  import type { RootTextAreaProps } from './TextArea.types';
4
- declare const BaseTextArea: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & RootTextAreaProps, import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, {}>;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { BoxProps, SxProps } from '@mui/material';
3
2
  import type { HelperMsgProps, RootTextFieldProps } from '../BaseTextField/BaseTextField.types';
4
3
  interface RootTextAreaProps extends Omit<RootTextFieldProps, 'BoxProps'> {
@@ -1,12 +1,8 @@
1
- /// <reference types="react" />
2
- import { Theme } from '@mui/material';
1
+ import { ComponentType } from 'react';
3
2
  import { InputMsg } from '../BaseTextField/BaseTextField.styled';
4
- import type { RootTextInputProps } from './TextInput.types';
5
- declare const BaseTextInput: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & RootTextInputProps, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
6
- declare const FileInputLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & RootTextInputProps, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
7
- declare const LeftIconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
- declare const RightIconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
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
- /// <reference types="react" />
2
- import { ToggleProps } from './Toggle.types';
3
- export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { BoxProps, Color, SwitchProps as MuiSwitchProps } from '@mui/material';
3
2
  export interface ToggleProps extends Omit<BoxProps<'span'>, 'onChange' | 'onChangeCapture'> {
4
3
  value?: MuiSwitchProps['value'];
@@ -1,3 +1,4 @@
1
+ import { ComponentType } from 'react';
1
2
  import type { TooltipProps } from './Tooltip.types';
2
- declare const BaseTooltip: import("@emotion/styled").StyledComponent<TooltipProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
3
+ declare const BaseTooltip: ComponentType<TooltipProps>;
3
4
  export default BaseTooltip;
@@ -1,13 +1,7 @@
1
- /// <reference types="react" />
2
- declare const StyledPaper: import("@emotion/styled").StyledComponent<import("@mui/material").PaperOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, "style" | "square" | "classes" | "className" | "children" | "sx" | "variant" | "elevation"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- declare const StyledToolbar: import("@emotion/styled").StyledComponent<import("@mui/material").ToolbarOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
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, };
@@ -23,3 +23,4 @@ export * from './TextField';
23
23
  export * from './Toggle';
24
24
  export * from './Tooltip';
25
25
  export * from './UploadManager';
26
+ export * from './NoMatchContainer';
@@ -23,3 +23,4 @@ export * from './TextField';
23
23
  export * from './Toggle';
24
24
  export * from './Tooltip';
25
25
  export * from './UploadManager';
26
+ export * from './NoMatchContainer';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PaletteOptions } from '@mui/material';
3
2
  type PaletteOptionItem<T extends PropertyKey> = Record<T, React.CSSProperties['color']>;
4
3
  type LunitTealKey = '5' | '10' | '20' | '30' | '40' | '50' | '60' | '70' | '80' | '90';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TypographyOptions } from '@mui/material/styles/createTypography';
3
2
  export interface LunitTypographyVariants {
4
3
  h7: React.CSSProperties;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import theme from './theme';
2
2
  export { theme };
3
+ export * from './foundations';
3
4
  export * from './components';
4
5
  export * from './presentations';
5
6
  export * from './icons';
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import theme from './theme';
2
2
  export { theme };
3
+ export * from './foundations';
3
4
  export * from './components';
4
5
  export * from './presentations';
5
6
  export * from './icons';
@@ -1,22 +1,5 @@
1
- /// <reference types="react" />
2
- declare const BaseAccordion: import("@emotion/styled").StyledComponent<{
3
- children: NonNullable<import("react").ReactNode>;
4
- classes?: Partial<import("@mui/material").AccordionClasses> | undefined;
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { AccordionDetailsProps, AccordionSummaryProps, AccordionProps as MuiAccordionProps } from '@mui/material';
3
2
  import { PresentationElementSize } from '../presentations.types';
4
3
  import { FreeTextProps } from '../FreeText';
@@ -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 combinedWidth = segments.reduce((sum, segment) => sum + segment.width, 0);
13
- const onePercentSegmentIndex = _findIndex(segments, (segment) => segment.width > 0 && segment.width <= 1);
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: onePercentSegmentIndex >= 0 && i === onePercentSegmentIndex + 1, isOnePercentSegment: segment.width <= 1 }, 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, }) => {
@@ -1,28 +1,22 @@
1
- import React, { type PropsWithChildren } from 'react';
2
- export declare const AnalysisBarOuter: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
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 | undefined;
13
- isJet?: boolean | undefined;
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 | undefined;
19
- }) => import("react/jsx-runtime").JSX.Element;
20
- export declare const AxisLabels: ({ children }: {
12
+ isCutoff?: boolean;
13
+ }) => JSX.Element;
14
+ export declare const AxisLabels: ({ children, }: {
21
15
  percent?: boolean;
22
- } & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
16
+ } & PropsWithChildren) => JSX.Element;
23
17
  export declare const AnalysisBarCaption: ({ label }: {
24
18
  label: string;
25
- }) => import("react/jsx-runtime").JSX.Element;
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: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & GraphSegmentProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
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',