@7shifts/sous-chef 4.6.0 → 4.6.1

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.
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ value: string;
5
+ disabled?: boolean;
6
+ suffix?: React.ReactNode;
7
+ testId?: string;
8
+ };
9
+ declare const Tab: ({ children, value, disabled, suffix, testId }: Props) => React.JSX.Element;
10
+ export default Tab;
@@ -0,0 +1 @@
1
+ export { default } from './Tab';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ 'aria-label'?: string;
5
+ };
6
+ declare const TabList: ({ children, "aria-label": ariaLabel }: Props) => React.JSX.Element;
7
+ export default TabList;
@@ -0,0 +1 @@
1
+ export { default } from './TabList';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ value: string;
5
+ forceMount?: boolean;
6
+ testId?: string;
7
+ };
8
+ declare const TabPanel: ({ children, value, forceMount, testId }: Props) => React.JSX.Element | null;
9
+ export default TabPanel;
@@ -0,0 +1 @@
1
+ export { default } from './TabPanel';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ value?: string;
5
+ defaultValue?: string;
6
+ onValueChange?: (value: string) => void;
7
+ };
8
+ declare const Tabs: ({ children, value, defaultValue, onValueChange }: Props) => React.JSX.Element;
9
+ export default Tabs;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export type TabsContextType = {
3
+ selectedValue: string;
4
+ onValueChange: (value: string) => void;
5
+ tabsId: string;
6
+ };
7
+ export declare const useTabsContext: () => TabsContextType;
8
+ type ProviderProps = {
9
+ children: React.ReactNode;
10
+ value?: string;
11
+ defaultValue?: string;
12
+ onValueChange?: (value: string) => void;
13
+ };
14
+ export declare function TabsContextProvider({ children, value, defaultValue, onValueChange }: ProviderProps): React.JSX.Element;
15
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './Tabs';
@@ -5,4 +5,8 @@ import PrimaryNavItem from './PrimaryNavItem';
5
5
  import PrimaryNavSubItem from './PrimaryNavSubItem';
6
6
  import PrimaryNavDivider from './PrimaryNavDivider';
7
7
  import PrimaryNavFooter from './PrimaryNavFooter';
8
- export { Breadcrumbs, BreadcrumbItem, PrimaryNav, PrimaryNavItem, PrimaryNavSubItem, PrimaryNavDivider, PrimaryNavFooter };
8
+ import Tabs from './Tabs';
9
+ import TabList from './TabList';
10
+ import Tab from './Tab';
11
+ import TabPanel from './TabPanel';
12
+ export { Breadcrumbs, BreadcrumbItem, PrimaryNav, PrimaryNavItem, PrimaryNavSubItem, PrimaryNavDivider, PrimaryNavFooter, Tabs, TabList, Tab, TabPanel };
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  import { Placement, TooltipTheme } from './types';
3
3
  type Props = {
4
4
  /**
5
+ * **DEPRECATED** use the default black theme instead (no need to specify it explicitly). The white theme will be removed in future releases.
6
+ *
5
7
  * @deprecated use the default black theme instead (no need to specify it explicitly). The white theme will be removed in future releases.
6
8
  */
7
9
  theme?: TooltipTheme;
@@ -1,6 +1,8 @@
1
+ import React from 'react';
1
2
  type Config = {
2
3
  component: React.ReactElement['type'];
3
4
  displayName: string;
4
5
  };
5
6
  export declare const checkIsComponent: (element: React.ReactElement, config: Config) => boolean;
7
+ export declare const updateIconSize: (child: React.ReactElement) => React.ReactElement | null;
6
8
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",