@pushwoosh/dumb-components 1.1.103 → 1.1.104
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.
- package/RadioCard/RadioCard.js +2 -0
- package/RadioCard/styled.d.ts +1 -0
- package/RadioCard/styled.js +4 -2
- package/RadioCard/types.d.ts +1 -0
- package/package.json +1 -1
package/RadioCard/RadioCard.js
CHANGED
|
@@ -7,11 +7,13 @@ export function RadioCard(props) {
|
|
|
7
7
|
const {
|
|
8
8
|
title,
|
|
9
9
|
description,
|
|
10
|
+
width = '262px',
|
|
10
11
|
isActive,
|
|
11
12
|
onClick,
|
|
12
13
|
children
|
|
13
14
|
} = props;
|
|
14
15
|
return React.createElement(RootBox, {
|
|
16
|
+
"$width": width,
|
|
15
17
|
isActive: isActive,
|
|
16
18
|
onClick: onClick
|
|
17
19
|
}, React.createElement(Vertical, null, React.createElement(Horizontal, {
|
package/RadioCard/styled.d.ts
CHANGED
package/RadioCard/styled.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { Color, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
3
|
-
import { Vertical } from '@pushwoosh/kit-helpers';
|
|
3
|
+
import { Vertical, toCssValue } from '@pushwoosh/kit-helpers';
|
|
4
4
|
export const RootBox = styled(Vertical).attrs({
|
|
5
5
|
$padding: 16,
|
|
6
6
|
$alignItems: 'start',
|
|
@@ -10,6 +10,8 @@ export const RootBox = styled(Vertical).attrs({
|
|
|
10
10
|
}).withConfig({
|
|
11
11
|
displayName: "RootBox",
|
|
12
12
|
componentId: "sc-tkztr1-0"
|
|
13
|
-
})(["width:
|
|
13
|
+
})(["width:", ";height:100%;box-sizing:border-box;outline:", ";cursor:pointer;&:hover{background:", ";}"], ({
|
|
14
|
+
$width
|
|
15
|
+
}) => toCssValue($width), ({
|
|
14
16
|
isActive
|
|
15
17
|
}) => isActive ? `2px solid ${Color.PRIMARY}` : `1px solid ${Color.DIVIDER}`, Color.ROW_HOVER);
|
package/RadioCard/types.d.ts
CHANGED