dce-reactkit 3.7.27 → 3.7.28

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.
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import Variant from '../types/Variant';
7
7
  type Props = {
8
- text: string;
8
+ text: React.ReactNode;
9
9
  onChanged: (checked: boolean) => void;
10
10
  ariaLabel: string;
11
11
  title?: string;
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import Variant from '../types/Variant';
7
7
  type Props = {
8
- text: string;
8
+ text: React.ReactNode;
9
9
  onChanged: (checked: boolean) => void;
10
10
  ariaLabel: string;
11
11
  title?: string;
package/dist/index.d.ts CHANGED
@@ -223,7 +223,7 @@ declare const RadioButton: React$1.FC<Props$h>;
223
223
  */
224
224
 
225
225
  type Props$g = {
226
- text: string;
226
+ text: React$1.ReactNode;
227
227
  onChanged: (checked: boolean) => void;
228
228
  ariaLabel: string;
229
229
  title?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.7.27",
3
+ "version": "3.7.28",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -23,7 +23,7 @@ import { isDarkModeOn } from '../client/initClient';
23
23
 
24
24
  type Props = {
25
25
  // Text of the button
26
- text: string,
26
+ text: React.ReactNode,
27
27
  // Handler for when this item is toggled
28
28
  onChanged: (checked: boolean) => void,
29
29
  // Aria label