property-practice-ui 0.4.2 → 0.5.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # property-practice-ui
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6759e58: Add generic boolean support to radio group
8
+
3
9
  ## 0.4.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "property-practice-ui",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "type": "module",
@@ -3,7 +3,7 @@ import { Label, RadioItem } from '../../atoms';
3
3
  import { spaces } from '../../tokens/spaces';
4
4
  import { Option } from '../../types';
5
5
 
6
- type RadioGroupProps<T extends string | number> = {
6
+ type RadioGroupProps<T extends string | number | boolean> = {
7
7
  label?: string;
8
8
  options: readonly Option<T>[];
9
9
  value: T;
@@ -25,7 +25,7 @@ const LabelContainer = styled.div`
25
25
  padding-left: ${spaces[1]};
26
26
  `;
27
27
 
28
- export const RadioGroup = <T extends string | number>({
28
+ export const RadioGroup = <T extends string | number | boolean>({
29
29
  label,
30
30
  options,
31
31
  value,