dce-reactkit 3.7.22 → 3.7.24

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
  onSelected: () => 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
  onSelected: () => void;
10
10
  ariaLabel: string;
11
11
  title?: string;
package/dist/index.d.ts CHANGED
@@ -204,7 +204,7 @@ declare const TabBox: React$1.FC<Props$i>;
204
204
  */
205
205
 
206
206
  type Props$h = {
207
- text: string;
207
+ text: React$1.ReactNode;
208
208
  onSelected: () => void;
209
209
  ariaLabel: string;
210
210
  title?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.7.22",
3
+ "version": "3.7.24",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -21,7 +21,7 @@ import { isDarkModeOn } from '../client/initClient';
21
21
 
22
22
  type Props = {
23
23
  // Text of the button
24
- text: string,
24
+ text: React.ReactNode,
25
25
  // Handler for when this item is selected (not called if already selected)
26
26
  onSelected: () => void,
27
27
  // Aria label