@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.
@@ -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, {
@@ -62,4 +62,5 @@ export declare const RootBox: import("styled-components").StyledComponent<"div",
62
62
  $gap: number;
63
63
  } & {
64
64
  isActive?: boolean;
65
+ $width: string | number;
65
66
  }, "$gridAutoFlow" | "$alignItems" | "$bgColor" | "$borderRadius" | "$gap" | "$padding">;
@@ -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:262px;height:100%;box-sizing:border-box;outline:", ";cursor:pointer;&:hover{background:", ";}"], ({
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);
@@ -2,6 +2,7 @@ import type { ReactNode } from 'react';
2
2
  export interface RadioCardProps {
3
3
  title: string;
4
4
  description: string;
5
+ width?: string | number;
5
6
  isActive?: boolean;
6
7
  children?: ReactNode;
7
8
  onClick: () => void;
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.103",
3
+ "version": "1.1.105",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",