dce-reactkit 4.2.2 → 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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/TabBox.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/TabBox.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/TabBox.tsx +7 -1
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -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
|
|
140
|
+
<div
|
|
141
|
+
className="TabBox-title"
|
|
142
|
+
style={{ minWidth: minTitleWidth }}
|
|
143
|
+
>
|
|
138
144
|
{title}
|
|
139
145
|
</div>
|
|
140
146
|
{topRightChildren && (
|