@pushwoosh/dumb-components 1.1.102 → 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.
@@ -1,4 +1,8 @@
1
+ /** @deprecated Use CalendarDropdown or CalendarSuperForm from Calendar instead */
1
2
  export { DatePicker } from './components/DatePicker';
3
+ /** @deprecated Use CalendarDropdown or CalendarSuperForm from Calendar instead */
2
4
  export { DatePickerField } from './components/DatePickerField';
5
+ /** @deprecated Use CalendarDropdown or CalendarSuperForm from Calendar instead */
3
6
  export { DateTimePicker } from './components/DateTimePicker';
7
+ /** @deprecated Use CalendarDropdown or CalendarSuperForm from Calendar instead */
4
8
  export { DateTimePickerField } from './components/DateTimePickerField';
@@ -1,4 +1,8 @@
1
+ /** @deprecated Use CalendarDropdown or CalendarSuperForm from Calendar instead */
1
2
  export { DatePicker } from './components/DatePicker';
3
+ /** @deprecated Use CalendarDropdown or CalendarSuperForm from Calendar instead */
2
4
  export { DatePickerField } from './components/DatePickerField';
5
+ /** @deprecated Use CalendarDropdown or CalendarSuperForm from Calendar instead */
3
6
  export { DateTimePicker } from './components/DateTimePicker';
7
+ /** @deprecated Use CalendarDropdown or CalendarSuperForm from Calendar instead */
4
8
  export { DateTimePickerField } from './components/DateTimePickerField';
@@ -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,3 +1,4 @@
1
+ export { components } from 'react-select';
1
2
  export { Select, SelectAsync, CreatableSelect } from './Select';
2
3
  export { CLASS_NAME_PREFIX } from './constants';
3
4
  export type { SelectBase, MultiSelectOptions } from './types';
package/Select/index.js CHANGED
@@ -1,2 +1,3 @@
1
+ export { components } from 'react-select';
1
2
  export { Select, SelectAsync, CreatableSelect } from './Select';
2
3
  export { CLASS_NAME_PREFIX } from './constants';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.102",
3
+ "version": "1.1.104",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",