@jetbrains/ring-ui 7.0.106 → 7.0.107

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.
@@ -11,6 +11,7 @@ export interface TabsProps extends Omit<CollapsibleTabsProps, 'onSelect' | 'chil
11
11
  onLastVisibleIndexChange?: ((index: number) => void) | null | undefined;
12
12
  className?: string | null | undefined;
13
13
  tabContainerClassName?: string | null | undefined;
14
+ titleContainerClassName?: string | null | undefined;
14
15
  autoCollapse?: boolean | null | undefined;
15
16
  'data-test'?: string | null | undefined;
16
17
  }
@@ -33,14 +33,14 @@ class Tabs extends PureComponent {
33
33
  return (<TabLink title={title} isSelected={isSelected} key={key} href={href} className={titleClasses} disabled={disabled} onPlainLeftClick={onSelect ? this.handleSelect(key) : undefined} {...titleProps}/>);
34
34
  }
35
35
  render() {
36
- const { className, tabContainerClassName, children, selected, autoCollapse, 'data-test': dataTest, onSelect, ...restProps } = this.props;
36
+ const { className, tabContainerClassName, titleContainerClassName, children, selected, autoCollapse, 'data-test': dataTest, onSelect, ...restProps } = this.props;
37
37
  const classes = classNames(styles.tabs, className);
38
38
  const childrenArray = React.Children.toArray(children).filter(Boolean);
39
39
  const { selectedItem, selectedKey } = this.getSelectedItem();
40
40
  return (<div className={classes} data-test={dataTests('ring-dumb-tabs', dataTest)}>
41
41
  {autoCollapse === true ? (<CollapsibleTabs {...restProps} onSelect={onSelect ? this.handleSelect : undefined} selected={selectedKey}>
42
42
  {childrenArray}
43
- </CollapsibleTabs>) : (<div className={styles.titles}>
43
+ </CollapsibleTabs>) : (<div className={classNames(styles.titles, titleContainerClassName)}>
44
44
  {childrenArray.map((tab, index) => this.getTabTitle(selectedKey, tab, index))}
45
45
  </div>)}
46
46
  <div className={classNames(tabContainerClassName)}>{selectedItem}</div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "7.0.106",
3
+ "version": "7.0.107",
4
4
  "description": "JetBrains UI library",
5
5
  "author": {
6
6
  "name": "JetBrains"