@pushwoosh/dumb-components 1.1.103 → 1.1.105
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/Select/index.d.ts +1 -1
- package/Select/index.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- 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
package/Select/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { components } from 'react-select';
|
|
2
1
|
export { Select, SelectAsync, CreatableSelect } from './Select';
|
|
3
2
|
export { CLASS_NAME_PREFIX } from './constants';
|
|
4
3
|
export type { SelectBase, MultiSelectOptions } from './types';
|
|
4
|
+
export { components as SelectComponents } from 'react-select';
|
package/Select/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { components } from 'react-select';
|
|
2
1
|
export { Select, SelectAsync, CreatableSelect } from './Select';
|
|
3
|
-
export { CLASS_NAME_PREFIX } from './constants';
|
|
2
|
+
export { CLASS_NAME_PREFIX } from './constants';
|
|
3
|
+
export { components as SelectComponents } from 'react-select';
|
package/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { RadioCard } from './RadioCard';
|
|
|
20
20
|
export { ReCaptcha, useRecaptcha, asyncScriptLoad } from './ReCaptcha';
|
|
21
21
|
export { Spinner } from './Spinner';
|
|
22
22
|
export { SortButton, type SortButtonParams } from './SortButton';
|
|
23
|
-
export { Select, SelectAsync, CreatableSelect, CLASS_NAME_PREFIX, type SelectBase, type MultiSelectOptions, } from './Select';
|
|
23
|
+
export { Select, SelectAsync, CreatableSelect, SelectComponents, CLASS_NAME_PREFIX, type SelectBase, type MultiSelectOptions, } from './Select';
|
|
24
24
|
export { Switch } from './Switch';
|
|
25
25
|
export { TextSkeleton, RectangularSkeleton, CircularSkeleton } from './Skeleton';
|
|
26
26
|
export { Tooltip, type TooltipPosition, TooltipTrigger } from './Tooltip';
|
package/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { RadioCard } from './RadioCard';
|
|
|
20
20
|
export { ReCaptcha, useRecaptcha, asyncScriptLoad } from './ReCaptcha';
|
|
21
21
|
export { Spinner } from './Spinner';
|
|
22
22
|
export { SortButton } from './SortButton';
|
|
23
|
-
export { Select, SelectAsync, CreatableSelect, CLASS_NAME_PREFIX } from './Select';
|
|
23
|
+
export { Select, SelectAsync, CreatableSelect, SelectComponents, CLASS_NAME_PREFIX } from './Select';
|
|
24
24
|
export { Switch } from './Switch';
|
|
25
25
|
export { TextSkeleton, RectangularSkeleton, CircularSkeleton } from './Skeleton';
|
|
26
26
|
export { Tooltip, TooltipTrigger } from './Tooltip';
|