@pushwoosh/dumb-components 1.1.210 → 1.1.211
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.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
2
|
import type { RadioCardProps } from './types';
|
|
3
3
|
/**
|
|
4
|
-
* Selectable card with a title, description and a radio indicator — a richer
|
|
4
|
+
* Selectable card with a title, optional description and a radio indicator — a richer
|
|
5
5
|
* alternative to {@link Radio} for choosing one option among cards.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
package/RadioCard/RadioCard.js
CHANGED
|
@@ -4,7 +4,7 @@ import { H4, Paragraph } from '@pushwoosh/kit-typography';
|
|
|
4
4
|
import { Radio } from '../Radio';
|
|
5
5
|
import { RootBox } from './styled';
|
|
6
6
|
/**
|
|
7
|
-
* Selectable card with a title, description and a radio indicator — a richer
|
|
7
|
+
* Selectable card with a title, optional description and a radio indicator — a richer
|
|
8
8
|
* alternative to {@link Radio} for choosing one option among cards.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
@@ -32,7 +32,7 @@ export function RadioCard(props) {
|
|
|
32
32
|
}), _jsx(Radio, {
|
|
33
33
|
isChecked: isActive
|
|
34
34
|
})]
|
|
35
|
-
}), _jsx(Paragraph, {
|
|
35
|
+
}), description && _jsx(Paragraph, {
|
|
36
36
|
children: description
|
|
37
37
|
})]
|
|
38
38
|
}), children]
|
package/RadioCard/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface RadioCardProps {
|
|
|
4
4
|
/** Card heading. */
|
|
5
5
|
title: string;
|
|
6
6
|
/** Supporting text under the title. */
|
|
7
|
-
description
|
|
7
|
+
description?: string;
|
|
8
8
|
/** CSS width of the card (default `"262px"`). */
|
|
9
9
|
width?: string | number;
|
|
10
10
|
/** Whether this card is the selected one (drives the radio + active styling). */
|