@lunit/oui 2.3.7 → 2.3.9

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.
@@ -0,0 +1,3 @@
1
+ import type { SVGProps } from 'react';
2
+ declare const SvgIcCopyCoordinatesUrloutlined20Px: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default SvgIcCopyCoordinatesUrloutlined20Px;
@@ -0,0 +1,3 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const SvgIcCopyCoordinatesUrloutlined20Px = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M3 5C2.44772 5 2 5.44772 2 6V17C2 17.5523 2.44772 18 3 18H14C14.5523 18 15 17.5523 15 17H16C16 18.1046 15.1046 19 14 19H3C1.89543 19 1 18.1046 1 17V6C1 4.89543 1.89543 4 3 4V5ZM17 1C18.1046 1 19 1.89543 19 3V14C19 15.1046 18.1046 16 17 16H6C4.89543 16 4 15.1046 4 14V3C4 1.89543 4.89543 1 6 1H17ZM6 2C5.44772 2 5 2.44772 5 3V14C5 14.5523 5.44772 15 6 15H17C17.5523 15 18 14.5523 18 14V3C18 2.44772 17.5523 2 17 2H6ZM8.88086 8.06055C9.06857 7.87301 9.37285 7.87299 9.56055 8.06055C9.74813 8.24824 9.74809 8.55252 9.56055 8.74023L8.46582 9.83594C7.81199 10.4899 7.8101 11.4722 8.36914 12.0312C8.92794 12.5899 9.90957 12.5884 10.5635 11.9355L11.6543 10.8369C11.8413 10.6485 12.1455 10.6471 12.334 10.834C12.5221 11.0209 12.5236 11.3252 12.3369 11.5137L11.2451 12.6143L11.2441 12.6152C10.2581 13.6007 8.66576 13.6871 7.68945 12.7109C6.71315 11.7346 6.79961 10.1424 7.78516 9.15625L8.88086 8.06055ZM12.8506 6.87012C13.0383 6.68238 13.3425 6.68238 13.5303 6.87012C13.7179 7.05786 13.718 7.36211 13.5303 7.5498L10.5527 10.5273C10.365 10.7146 10.0607 10.7148 9.87305 10.5273C9.68545 10.3397 9.68573 10.0354 9.87305 9.84766L12.8506 6.87012ZM12.1465 4.79492C13.1367 3.80469 14.7347 3.70746 15.7139 4.68652C16.6929 5.6657 16.5957 7.26367 15.6055 8.25391L14.5234 9.33594C14.3357 9.52351 14.0315 9.52352 13.8438 9.33594C13.6561 9.14824 13.6561 8.844 13.8438 8.65625L14.9258 7.57422C15.5896 6.91042 15.5905 5.9227 15.0342 5.36621C14.4777 4.80985 13.49 4.81081 12.8262 5.47461L11.7441 6.55762C11.5565 6.74483 11.2521 6.74486 11.0645 6.55762C10.8768 6.36992 10.8768 6.0647 11.0645 5.87695L12.1465 4.79492Z", clipRule: "evenodd" }) }));
3
+ export default SvgIcCopyCoordinatesUrloutlined20Px;
@@ -2,6 +2,7 @@ export { default as IcBellNotiOutlined20Px } from './ic-bell-noti-outlined-20px'
2
2
  export { default as IcCloseLargeOutlined20Px } from './ic-close-large-outlined-20px';
3
3
  export { default as IcCloseSmallOutlined20Px } from './ic-close-small-outlined-20px';
4
4
  export { default as IcCopyCoordinatesOutlined20Px } from './ic-copy-coordinates-outlined-20px';
5
+ export { default as IcCopyCoordinatesUrlOutlined20Px } from './ic-copy-coordinates-url-outlined-20px';
5
6
  export { default as IcDownloadPdfOutlined20Px } from './ic-download-pdf-outlined-20px';
6
7
  export { default as IcEllipseOutlined20Px } from './ic-ellipse-outlined-20px';
7
8
  export { default as IcFilterNotiOutlined20Px } from './ic-filter-noti-outlined-20px';
@@ -2,6 +2,7 @@ export { default as IcBellNotiOutlined20Px } from './ic-bell-noti-outlined-20px'
2
2
  export { default as IcCloseLargeOutlined20Px } from './ic-close-large-outlined-20px';
3
3
  export { default as IcCloseSmallOutlined20Px } from './ic-close-small-outlined-20px';
4
4
  export { default as IcCopyCoordinatesOutlined20Px } from './ic-copy-coordinates-outlined-20px';
5
+ export { default as IcCopyCoordinatesUrlOutlined20Px } from './ic-copy-coordinates-url-outlined-20px';
5
6
  export { default as IcDownloadPdfOutlined20Px } from './ic-download-pdf-outlined-20px';
6
7
  export { default as IcEllipseOutlined20Px } from './ic-ellipse-outlined-20px';
7
8
  export { default as IcFilterNotiOutlined20Px } from './ic-filter-noti-outlined-20px';
@@ -2,10 +2,20 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { CloseSmall, HideSmall, ShowSmall } from '../../../icons';
3
3
  import { ButtonWrapper } from '../TextInput.styled';
4
4
  function ClearButton({ onClick }) {
5
- return (_jsx(ButtonWrapper, { onClick: onClick, children: _jsx(CloseSmall, { fontSize: "small" }) }));
5
+ return (_jsx(ButtonWrapper, { onClick: onClick, onKeyDown: (event) => {
6
+ if (event.key === 'Enter') {
7
+ event.preventDefault();
8
+ event.stopPropagation();
9
+ }
10
+ }, children: _jsx(CloseSmall, { fontSize: "small" }) }));
6
11
  }
7
12
  function ShowHidePasswordButton({ onClick, isHidden, }) {
8
- return (_jsx(ButtonWrapper, { onClick: onClick, children: isHidden ? _jsx(HideSmall, {}) : _jsx(ShowSmall, {}) }));
13
+ return (_jsx(ButtonWrapper, { onClick: onClick, onKeyDown: (event) => {
14
+ if (event.key === 'Enter') {
15
+ event.preventDefault();
16
+ event.stopPropagation();
17
+ }
18
+ }, children: isHidden ? _jsx(HideSmall, {}) : _jsx(ShowSmall, {}) }));
9
19
  }
10
20
  function FileInputWrapperButton({ children, onClick, width, }) {
11
21
  return (_jsx("button", { onClick: onClick, style: {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Grow, Typography, Box } from '@mui/material';
3
- import { ArrowDown, Close, Success, Warning16, RefreshLeft } from '../../icons';
3
+ import { Close, Success, Warning16, RefreshLeft, ArrowUp } from '../../icons';
4
4
  import { useState, Fragment, useMemo } from 'react';
5
5
  import { Divider } from '../Divider';
6
6
  import { Button } from '../Button';
@@ -82,7 +82,7 @@ const UploadManager = ({ title, subTitle, files, onClose, onCancel, onRetry, })
82
82
  position: 'absolute',
83
83
  bottom: '20px',
84
84
  right: '20px',
85
- }, children: _jsxs(StyledPaper, { elevation: 1, children: [_jsxs(StyledToolbar, { children: [_jsx(Typography, { variant: "h9", children: title }), _jsx(Typography, { variant: "body1", sx: { marginLeft: '8px' }, children: subTitle }), _jsxs(StyledToolbarButtonContainer, { children: [_jsx(Tooltip, { title: expanded ? 'Minimize' : 'Maximize', children: _jsx(Box, { children: _jsx(Button, { onClick: handleExpandClick, variant: "ghost", color: "secondary", icon: _jsx(ArrowDown, { style: { color: theme.palette.neutralGrey[40] } }), size: "small", sx: {
85
+ }, children: _jsxs(StyledPaper, { elevation: 1, children: [_jsxs(StyledToolbar, { children: [_jsx(Typography, { variant: "h9", children: title }), _jsx(Typography, { variant: "body1", sx: { marginLeft: '8px' }, children: subTitle }), _jsxs(StyledToolbarButtonContainer, { children: [_jsx(Tooltip, { title: expanded ? 'Minimize' : 'Maximize', children: _jsx(Box, { children: _jsx(Button, { onClick: handleExpandClick, variant: "ghost", color: "secondary", icon: _jsx(ArrowUp, { style: { color: theme.palette.neutralGrey[40] } }), size: "small", sx: {
86
86
  transform: expanded ? 'rotate(0deg)' : 'rotate(180deg)',
87
87
  } }) }) }), _jsx(Tooltip, { title: "Close", children: _jsx(Box, { children: _jsx(Button, { onClick: onClose, variant: "ghost", color: "secondary", icon: _jsx(Close, { style: { color: theme.palette.neutralGrey[40] } }), size: "small" }) }) })] })] }), expanded && _jsx(Divider, { orientation: "horizontal" }), _jsx(StyledCollapse, { in: expanded, timeout: "auto", unmountOnExit: true, children: files.map((download, index) => (_jsxs(Fragment, { children: [_jsx(UploadFile, { file: download, onCancel: onCancel, onRetry: onRetry }), index !== files.length - 1 && _jsx(Divider, { orientation: "horizontal" })] }, download.id))) })] }) }));
88
88
  };
@@ -0,0 +1,12 @@
1
+ import { SvgIconProps } from '@mui/material/SvgIcon';
2
+ declare const variants: readonly ["outlined"];
3
+ type Variant = (typeof variants)[number];
4
+ type IconProps = SvgIconProps & {
5
+ variant?: Variant;
6
+ };
7
+ declare const CopyCoordinatesUrl: {
8
+ ({ variant, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element | null;
9
+ displayName: string;
10
+ variants: readonly ["outlined"];
11
+ };
12
+ export default CopyCoordinatesUrl;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import SvgIcon from '@mui/material/SvgIcon';
3
+ import { IcCopyCoordinatesUrlOutlined20Px as outlined } from '../../assets';
4
+ const variants = ['outlined'];
5
+ const CopyCoordinatesUrl = ({ variant = 'outlined', ...rest }) => {
6
+ if (variant === 'outlined') {
7
+ return (_jsx(SvgIcon, { ...rest, component: outlined, inheritViewBox: true }));
8
+ }
9
+ return null;
10
+ };
11
+ CopyCoordinatesUrl.displayName = 'CopyCoordinatesUrl';
12
+ CopyCoordinatesUrl.variants = variants;
13
+ export default CopyCoordinatesUrl;
@@ -15,6 +15,7 @@ export { default as RefreshRight } from './RefreshRight';
15
15
  export { default as ShowLarge } from './ShowLarge';
16
16
  export { default as ShowSmall } from './ShowSmall';
17
17
  export { default as CopyCoordinates } from './CopyCoordinates';
18
+ export { default as CopyCoordinatesUrl } from './CopyCoordinatesUrl';
18
19
  export { Analyze } from '@lunit/design-system-icons';
19
20
  export { Annotation } from '@lunit/design-system-icons';
20
21
  export { Apps } from '@lunit/design-system-icons';
@@ -15,6 +15,7 @@ export { default as RefreshRight } from './RefreshRight';
15
15
  export { default as ShowLarge } from './ShowLarge';
16
16
  export { default as ShowSmall } from './ShowSmall';
17
17
  export { default as CopyCoordinates } from './CopyCoordinates';
18
+ export { default as CopyCoordinatesUrl } from './CopyCoordinatesUrl';
18
19
  export { Analyze } from '@lunit/design-system-icons';
19
20
  export { Annotation } from '@lunit/design-system-icons';
20
21
  export { Apps } from '@lunit/design-system-icons';
@@ -15,7 +15,7 @@ const Segments = ({ segments, adjustForOnePercent }) => {
15
15
  if (segment.color === 'jet') {
16
16
  return _jsx(HeatmapGraphSVG, { width: `${segment.width}%` });
17
17
  }
18
- return (_jsx(GraphSegment, { color: segment.color, hasAdjustedOnePercentSegment: adjustForOnePercent, isOnePercentSegment: segment.width <= 1, combinedWidth: combinedWidth, width: segment.width, isNextSegment: i === 1 }, i));
18
+ return (_jsx(GraphSegment, { color: segment.color, hasAdjustedOnePercentSegment: adjustForOnePercent, isOnePercentSegment: segment.width > 0 && segment.width <= 1, combinedWidth: combinedWidth, width: segment.width, isNextSegment: i === 1 }, i));
19
19
  }) }));
20
20
  };
21
21
  const AnalysisBar = ({ componentType = 'analysisBar', expressionValue, caption, expressionLevels = [], expressionLabels = [], segments, isDimmed = false, }) => {
@@ -23,7 +23,7 @@ const AnalysisBar = ({ componentType = 'analysisBar', expressionValue, caption,
23
23
  throw new Error("The 'componentType' prop is required.");
24
24
  if (!expressionLevels.length)
25
25
  throw new Error("The 'expressionLevels' prop must contain at least one item.");
26
- const hasAdjustedOnePercentSegment = segments?.[0].width <= 1;
26
+ const hasAdjustedOnePercentSegment = segments?.[0]?.width > 0 && segments?.[0]?.width <= 1;
27
27
  return (_jsxs(AnalysisBarOuter, { className: "analysis-bar", isDimmed: isDimmed, children: [_jsxs(AnalysisBarSegmentContainer, { children: [expressionValue && (_jsx(GraphScoreIndicator, { adjustForOnePercent: hasAdjustedOnePercentSegment, value: expressionValue, isJet: segments?.[0].color === 'jet' })), _jsx(Segments, { segments: segments, adjustForOnePercent: hasAdjustedOnePercentSegment })] }), (expressionLevels.length > 0 || caption) && (_jsxs(AxisLabels, { children: [expressionLevels.length > 0 &&
28
28
  expressionLevels.map((val, i) => {
29
29
  const adjustedForOnePercent = +val <= 1 && +val > 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunit/oui",
3
- "version": "2.3.7",
3
+ "version": "2.3.9",
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)"