@pushwoosh/dumb-components 1.1.49 → 1.1.51
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.
|
@@ -3,7 +3,7 @@ import { Color, UnitSize } from '@pushwoosh/kit-constants';
|
|
|
3
3
|
export const DropdownMenuItemStyled = styled.button.withConfig({
|
|
4
4
|
displayName: "DropdownMenuItemStyled",
|
|
5
5
|
componentId: "sc-1wmyvxp-0"
|
|
6
|
-
})(["appearance:none;display:flex;align-items:center;white-space:nowrap;padding:0 12px;min-height:", ";border:none;color:", ";background:none;cursor:pointer;&:hover{background:", ";color:", ";}&:disabled{color:", ";cursor:not-allowed;}"], UnitSize.FIELD_HEIGHT, ({
|
|
6
|
+
})(["appearance:none;display:flex;align-items:center;white-space:nowrap;padding:0 12px;min-height:", ";border:none;overflow:hidden;color:", ";background:none;cursor:pointer;&:hover{background:", ";color:", ";}&:disabled{color:", ";cursor:not-allowed;}"], UnitSize.FIELD_HEIGHT, ({
|
|
7
7
|
$active,
|
|
8
8
|
$danger
|
|
9
9
|
}) => {
|
|
@@ -5,9 +5,12 @@ import { Text } from '@pushwoosh/kit-typography';
|
|
|
5
5
|
import { DropdownMenuSectionRoot } from './styles';
|
|
6
6
|
export const DropdownMenuSection = ({
|
|
7
7
|
title,
|
|
8
|
+
bgColor,
|
|
8
9
|
children
|
|
9
10
|
}) => {
|
|
10
|
-
return React.createElement(DropdownMenuSectionRoot,
|
|
11
|
+
return React.createElement(DropdownMenuSectionRoot, {
|
|
12
|
+
"$bgColor": bgColor
|
|
13
|
+
}, title && React.createElement(Horizontal, {
|
|
11
14
|
"$padding": "8px 12px"
|
|
12
15
|
}, React.createElement(Text, {
|
|
13
16
|
"$variant": "h5",
|