@konturio/ui-kit
Advanced tools
Comparing version 3.0.0-alpha.55 to 3.0.0-alpha.56
{ | ||
"name": "@konturio/ui-kit", | ||
"version": "3.0.0-alpha.55", | ||
"version": "3.0.0-alpha.56", | ||
"repository": { | ||
@@ -32,3 +32,3 @@ "type": "git", | ||
}, | ||
"gitHead": "3a39398843ffbfdab94e60a473a21a7e65c6a43a" | ||
"gitHead": "1cc1f81cec5f6466a2acea19f8b9b7a60068888a" | ||
} |
@@ -7,2 +7,5 @@ import { ForwardRefComponent } from '../../../utils/component-helpers/polymorphic'; | ||
index?: number; | ||
classes?: { | ||
selected?: string; | ||
}; | ||
} | ||
@@ -9,0 +12,0 @@ export declare const Tab: ForwardRefComponent<"button", TabProps>; |
@@ -24,3 +24,3 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
export const Tab = forwardRef((_a, forwardedRef) => { | ||
var { children, as: Comp = 'button', index: indexProp, disabled, onBlur, onFocus, className } = _a, props = __rest(_a, ["children", "as", "index", "disabled", "onBlur", "onFocus", "className"]); | ||
var { children, as: Comp = 'button', index: indexProp, disabled, onBlur, onFocus, className, classes } = _a, props = __rest(_a, ["children", "as", "index", "disabled", "onBlur", "onFocus", "className", "classes"]); | ||
const { id: tabsId, onSelectTab, orientation, selectedIndex, setFocusedIndex } = useTabsCtx('Tab'); | ||
@@ -42,3 +42,3 @@ const ownRef = useRef(null); | ||
} | ||
const dynamicClasses = cn(className, style.tab, { | ||
const dynamicClasses = cn(className, style.tab, isSelected && (classes === null || classes === void 0 ? void 0 : classes.selected), { | ||
[style.horizontal]: orientation === TABS_ORIENTATION_HORIZONTAL, | ||
@@ -45,0 +45,0 @@ [style.vertical]: orientation === TABS_ORIENTATION_VERTICAL, |
Sorry, the diff of this file is not supported yet
391723
6956