@bitrise/bitkit 12.2.0 → 12.2.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "12.2.0",
4
+ "version": "12.2.2",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -40,7 +40,7 @@ const getTabIndexFromSearchParams = (tabIds: string[], tabIndex?: number) => {
40
40
  * An accessible tabs component that provides keyboard interactions and ARIA attributes described in the WAI-ARIA Tabs Design Pattern.
41
41
  */
42
42
  const Tabs = forwardRef<TabsProps, 'div'>((props, ref) => {
43
- const { defaultTab = '', onChange, tabId, withHistory, ...rest } = props;
43
+ const { defaultTab = '', onChange, tabId, variant = 'line', withHistory, ...rest } = props;
44
44
  const { replace } = useHistory();
45
45
 
46
46
  const tabIds = getTabIds(props);
@@ -85,7 +85,7 @@ const Tabs = forwardRef<TabsProps, 'div'>((props, ref) => {
85
85
  }
86
86
  }, [tabId]);
87
87
 
88
- return <ChakraTabs {...rest} ref={ref} onChange={onTabChange} index={actualIndex} />;
88
+ return <ChakraTabs {...rest} variant={variant} ref={ref} onChange={onTabChange} index={actualIndex} />;
89
89
  });
90
90
 
91
91
  export default Tabs;
package/src/index.ts CHANGED
@@ -239,3 +239,6 @@ export { default as ProgressSpinner } from './Components/ProgressSpinner/Progres
239
239
 
240
240
  export type { SearchInputProps } from './Components/SearchInput/SearchInput';
241
241
  export { default as SearchInput } from './Components/SearchInput/SearchInput';
242
+
243
+ export type { CloseButtonProps } from './Components/CloseButton/CloseButton';
244
+ export { default as CloseButton } from './Components/CloseButton/CloseButton';