dce-reactkit 3.7.21 → 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;
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.21",
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",
@@ -433,6 +433,17 @@ const Modal: React.FC<ModalProps> = (props) => {
433
433
  className={`modal-dialog modal-${size} ${animationClass} modal-dialog-scrollable modal-dialog-centered`}
434
434
  style={{
435
435
  zIndex: baseZIndex + 2,
436
+ // Override sizes for even larger for XL
437
+ width: (
438
+ size === ModalSize.ExtraLarge
439
+ ? 'calc(100vw - 3rem)'
440
+ : undefined
441
+ ),
442
+ maxWidth: (
443
+ size === ModalSize.ExtraLarge
444
+ ? '80rem'
445
+ : undefined
446
+ ),
436
447
  }}
437
448
  >
438
449
  <div
@@ -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