@lunit/oui 2.2.17 → 2.2.18
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.
|
@@ -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: 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: child.checked, disabled: child.disabled, onChange: (event) => {
|
|
16
16
|
child.onChange(event);
|
|
17
17
|
}, bar: child.bar }, uuidV4()));
|
|
18
18
|
})] }));
|
|
@@ -12,16 +12,14 @@ export const PresentationTypography = (props) => {
|
|
|
12
12
|
if (size === 'small-bold') {
|
|
13
13
|
return (_jsx(Typography, { variant: "body8", ...rest, sx: { fontWeight: 'bold', color: isDimmed ? theme.palette.neutralGrey[40] : 'inherit' } }));
|
|
14
14
|
}
|
|
15
|
-
if (size === 'medium') {
|
|
16
|
-
return (_jsx(Typography, { variant: "body5", ...rest, sx: { color: isDimmed ? theme.palette.neutralGrey[40] : 'inherit' } }));
|
|
17
|
-
}
|
|
18
15
|
if (size === 'medium-bold') {
|
|
19
16
|
return (_jsx(Typography, { variant: "body_b1", ...rest, sx: { color: isDimmed ? theme.palette.neutralGrey[40] : 'inherit' } }));
|
|
20
17
|
}
|
|
21
18
|
if (size === 'large-bold') {
|
|
22
19
|
return (_jsx(Typography, { variant: "h9", ...rest, sx: { color: isDimmed ? theme.palette.neutralGrey[40] : 'inherit' } }));
|
|
23
20
|
}
|
|
24
|
-
|
|
21
|
+
// Fallback to medium size
|
|
22
|
+
return (_jsx(Typography, { variant: "body5", ...rest, sx: { color: isDimmed ? theme.palette.neutralGrey[40] : 'inherit' } }));
|
|
25
23
|
};
|
|
26
24
|
export const PresentationSymbolIcon = ({ symbol, color = 'black', isDimmed = false, }) => {
|
|
27
25
|
if (symbol === 'circle') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunit/oui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.18",
|
|
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)"
|