@lunit/oui 2.2.22 → 2.2.24

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.
@@ -10,6 +10,7 @@ export const AnalysisBarOuter = styled(Box, {
10
10
  width: '100%',
11
11
  gap: '4px',
12
12
  opacity: isDimmed ? 0.4 : 1,
13
+ marginTop: '10px',
13
14
  }));
14
15
  export const AnalysisBarSegmentContainer = styled(Box)(() => ({
15
16
  display: 'flex',
@@ -1,10 +1,4 @@
1
1
  import { Box, styled } from '@mui/material';
2
- const getPadding = (size) => {
3
- if (size === 'large-bold') {
4
- return '14px 0';
5
- }
6
- return '2px';
7
- };
8
2
  export const ToggleControlOuter = styled(Box, { shouldForwardProp: (prop) => prop !== 'hasBar' })(({ hasBar }) => ({
9
3
  display: 'flex',
10
4
  flexDirection: 'column',
@@ -20,7 +14,7 @@ export const ToggleControlContainer = styled(Box, {
20
14
  width: '100%',
21
15
  display: 'flex',
22
16
  justifyContent: 'space-between',
23
- padding: getPadding(size),
17
+ padding: '2px',
24
18
  alignItems: 'center',
25
19
  };
26
20
  });
@@ -12,7 +12,7 @@ const ToggleControlGroup = ({ componentType = 'toggleGroup', size = 'medium', ti
12
12
  if (!childToggles.length)
13
13
  throw new Error("The 'childToggles' prop must contain at least one child toggle.");
14
14
  return (_jsxs(ToggleControlGroupContainer, { children: [_jsx(ToggleControl, { isParent: true, componentType: "toggle", bar: bar, disabled: disabled, size: size, title: title, tooltip: tooltip, checked: checked, isDimmed: isDimmed, onChange: onChange }), childToggles?.map((child, index) => {
15
- return (_jsx(ToggleControl, { componentType: "toggle", title: child.title, size: child.size, tooltip: child.tooltip, symbol: child.symbol, color: child.color, isDimmed: child.isDimmed || isDimmed, checked: child.checked, disabled: child.disabled, onChange: (event) => {
15
+ return (_jsx(ToggleControl, { componentType: "toggle", title: child.title, size: child.size, tooltip: child.tooltip, symbol: child.symbol, color: child.color, isDimmed: child.isDimmed || isDimmed || !checked, checked: child.checked, disabled: child.disabled || !checked, onChange: (event) => {
16
16
  child.onChange(event);
17
17
  }, bar: child.bar }, uuidV4()));
18
18
  })] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunit/oui",
3
- "version": "2.2.22",
3
+ "version": "2.2.24",
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)"