dce-reactkit 4.2.1 → 4.2.3

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.
@@ -9,6 +9,7 @@ type Props = {
9
9
  topRightChildren?: React.ReactNode;
10
10
  noBottomMargin?: boolean;
11
11
  noBottomPadding?: boolean;
12
+ minTitleWidth?: string;
12
13
  };
13
14
  declare const TabBox: React.FC<Props>;
14
15
  export default TabBox;
package/dist/index.d.ts CHANGED
@@ -232,6 +232,7 @@ type Props$k = {
232
232
  topRightChildren?: React$1.ReactNode;
233
233
  noBottomMargin?: boolean;
234
234
  noBottomPadding?: boolean;
235
+ minTitleWidth?: string;
235
236
  };
236
237
  declare const TabBox: React$1.FC<Props$k>;
237
238
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "4.2.1",
3
+ "version": "4.2.3",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -104,7 +104,7 @@ const ErrorBox: React.FC<Props> = (props) => {
104
104
  />
105
105
  {title}
106
106
  </h4>
107
- <div>
107
+ <div className="text-break">
108
108
  {errorText}
109
109
  {errorCodeBox}
110
110
  </div>
@@ -21,6 +21,8 @@ type Props = {
21
21
  noBottomMargin?: boolean,
22
22
  // If true, don't add padding to bottom of tab box
23
23
  noBottomPadding?: boolean,
24
+ // Minimum width of the tab part of the box that contains the title (css units)
25
+ minTitleWidth?: string,
24
26
  };
25
27
 
26
28
  /*------------------------------------------------------------------------*/
@@ -121,6 +123,7 @@ const TabBox: React.FC<Props> = (props) => {
121
123
  topRightChildren,
122
124
  noBottomPadding,
123
125
  noBottomMargin,
126
+ minTitleWidth,
124
127
  } = props;
125
128
 
126
129
  /*------------------------------------------------------------------------*/
@@ -134,7 +137,10 @@ const TabBox: React.FC<Props> = (props) => {
134
137
 
135
138
  {/* Title Row with Left and Right sections */}
136
139
  <div className="TabBox-title-container">
137
- <div className="TabBox-title">
140
+ <div
141
+ className="TabBox-title"
142
+ style={{ minWidth: minTitleWidth }}
143
+ >
138
144
  {title}
139
145
  </div>
140
146
  {topRightChildren && (