@availity/mui-tabs 1.2.3 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [2.0.1](https://github.com/Availity/element/compare/@availity/mui-tabs@2.0.0...@availity/mui-tabs@2.0.1) (2025-12-03)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-divider` updated to version `2.0.0`
10
+ * `mui-icon` updated to version `2.0.0`
11
+ ## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-tabs@1.2.3...@availity/mui-tabs@2.0.0) (2025-11-17)
12
+
13
+ ### Dependency Updates
14
+
15
+ * `mui-divider` updated to version `1.2.3`
16
+ * `mui-icon` updated to version `1.2.3`
17
+
18
+ ### ⚠ BREAKING CHANGES
19
+
20
+ * @mui/material upgraded to v7
21
+ * @mui/x-* upgraded to v8
22
+ * react upgraded to v19
23
+
24
+ ### Features
25
+
26
+ * upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
27
+
5
28
  ## [1.2.3](https://github.com/Availity/element/compare/@availity/mui-tabs@1.2.2...@availity/mui-tabs@1.2.3) (2025-10-30)
6
29
 
7
30
  ### Dependency Updates
package/dist/index.d.mts CHANGED
@@ -5,25 +5,25 @@ import { TabsProps as TabsProps$1 } from '@mui/material/Tabs';
5
5
  import { TabPanelProps as TabPanelProps$1 } from '@mui/lab/TabPanel';
6
6
 
7
7
  type TabProps = Omit<TabProps$1, 'centerRipple' | 'disableFocusRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'touchRippleRef' | 'TouchRippleProps'>;
8
- declare const Tab: (props: TabProps) => JSX.Element;
8
+ declare const Tab: (props: TabProps) => React.JSX.Element;
9
9
 
10
10
  interface TabContextProps extends TabContextProps$1 {
11
11
  children?: React.ReactNode;
12
12
  }
13
- declare const TabContext: ({ children, ...rest }: TabContextProps) => JSX.Element;
13
+ declare const TabContext: ({ children, ...rest }: TabContextProps) => React.JSX.Element;
14
14
 
15
15
  interface TabsProps extends Omit<TabsProps$1, 'centered' | 'centerRipple' | 'focusRipple' | 'orientation' | 'TouchRippleProps' | 'touchRippleRef'> {
16
16
  /** The hierarchy level of the tabs, i.e. `primary` for top level tabs, `secondary` for inner tabs. */
17
17
  level?: "primary" | "secondary";
18
18
  }
19
- declare const Tabs: ({ level, ...rest }: TabsProps) => JSX.Element;
19
+ declare const Tabs: ({ level, ...rest }: TabsProps) => React.JSX.Element;
20
20
 
21
21
  type TabListProps = Omit<TabListProps$1, 'centered' | 'centerRipple' | 'focusRipple' | 'orientation' | 'TouchRippleProps' | 'touchRippleRef'> & Pick<TabsProps, 'level'>;
22
- declare const TabList: ({ level, ...rest }: TabListProps) => JSX.Element;
22
+ declare const TabList: ({ level, ...rest }: TabListProps) => React.JSX.Element;
23
23
 
24
24
  interface TabPanelProps extends TabPanelProps$1 {
25
25
  children?: React.ReactNode;
26
26
  }
27
- declare const TabPanel: ({ children, ...rest }: TabPanelProps) => JSX.Element;
27
+ declare const TabPanel: ({ children, ...rest }: TabPanelProps) => React.JSX.Element;
28
28
 
29
29
  export { Tab, TabContext, type TabContextProps, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps };
package/dist/index.d.ts CHANGED
@@ -5,25 +5,25 @@ import { TabsProps as TabsProps$1 } from '@mui/material/Tabs';
5
5
  import { TabPanelProps as TabPanelProps$1 } from '@mui/lab/TabPanel';
6
6
 
7
7
  type TabProps = Omit<TabProps$1, 'centerRipple' | 'disableFocusRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'touchRippleRef' | 'TouchRippleProps'>;
8
- declare const Tab: (props: TabProps) => JSX.Element;
8
+ declare const Tab: (props: TabProps) => React.JSX.Element;
9
9
 
10
10
  interface TabContextProps extends TabContextProps$1 {
11
11
  children?: React.ReactNode;
12
12
  }
13
- declare const TabContext: ({ children, ...rest }: TabContextProps) => JSX.Element;
13
+ declare const TabContext: ({ children, ...rest }: TabContextProps) => React.JSX.Element;
14
14
 
15
15
  interface TabsProps extends Omit<TabsProps$1, 'centered' | 'centerRipple' | 'focusRipple' | 'orientation' | 'TouchRippleProps' | 'touchRippleRef'> {
16
16
  /** The hierarchy level of the tabs, i.e. `primary` for top level tabs, `secondary` for inner tabs. */
17
17
  level?: "primary" | "secondary";
18
18
  }
19
- declare const Tabs: ({ level, ...rest }: TabsProps) => JSX.Element;
19
+ declare const Tabs: ({ level, ...rest }: TabsProps) => React.JSX.Element;
20
20
 
21
21
  type TabListProps = Omit<TabListProps$1, 'centered' | 'centerRipple' | 'focusRipple' | 'orientation' | 'TouchRippleProps' | 'touchRippleRef'> & Pick<TabsProps, 'level'>;
22
- declare const TabList: ({ level, ...rest }: TabListProps) => JSX.Element;
22
+ declare const TabList: ({ level, ...rest }: TabListProps) => React.JSX.Element;
23
23
 
24
24
  interface TabPanelProps extends TabPanelProps$1 {
25
25
  children?: React.ReactNode;
26
26
  }
27
- declare const TabPanel: ({ children, ...rest }: TabPanelProps) => JSX.Element;
27
+ declare const TabPanel: ({ children, ...rest }: TabPanelProps) => React.JSX.Element;
28
28
 
29
29
  export { Tab, TabContext, type TabContextProps, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps };
package/introduction.mdx CHANGED
@@ -1,5 +1,4 @@
1
- import { Markdown } from '@storybook/blocks';
2
- import { Meta } from '@storybook/addon-docs';
1
+ import { Markdown, Meta } from '@storybook/addon-docs/blocks';
3
2
  import ReadMe from './README.md?raw';
4
3
  import CHANGELOG from './CHANGELOG.md?raw';
5
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-tabs",
3
- "version": "1.2.3",
3
+ "version": "2.0.1",
4
4
  "description": "Availity MUI Tabs Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -40,20 +40,20 @@
40
40
  "publish:canary": "yarn npm publish --access public --tag canary"
41
41
  },
42
42
  "dependencies": {
43
- "@mui/lab": "6.0.0-beta.12"
43
+ "@mui/lab": "7.0.1-beta.18"
44
44
  },
45
45
  "devDependencies": {
46
- "@availity/mui-divider": "^1.0.3",
47
- "@availity/mui-icon": "^1.1.1",
48
- "@mui/material": "^6.4.5",
49
- "react": "18.2.0",
50
- "react-dom": "18.2.0",
46
+ "@availity/mui-divider": "^2.0.1",
47
+ "@availity/mui-icon": "^2.0.1",
48
+ "@mui/material": "^7.3.4",
49
+ "react": "19.2.0",
50
+ "react-dom": "19.2.0",
51
51
  "tsup": "^8.4.0",
52
52
  "typescript": "^5.4.5"
53
53
  },
54
54
  "peerDependencies": {
55
- "@mui/material": "^6.4.5",
56
- "react": ">=16.3.0"
55
+ "@mui/material": "^7.0.0",
56
+ "react": ">=17.0.0"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"
@@ -1,7 +1,7 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
3
  import { useState } from 'react';
4
- import type { Meta, StoryObj } from '@storybook/react';
4
+ import type { Meta, StoryObj } from '@storybook/react-vite';
5
5
  import Box from '@mui/material/Box';
6
6
  import Typography from '@mui/material/Typography';
7
7
  import { Tabs } from './Tabs';
package/src/lib/Tab.tsx CHANGED
@@ -11,6 +11,6 @@ export type TabProps = Omit<
11
11
  | 'TouchRippleProps'
12
12
  >;
13
13
 
14
- export const Tab = (props: TabProps): JSX.Element => {
14
+ export const Tab = (props: TabProps): React.JSX.Element => {
15
15
  return <MuiTab {...props} disableRipple disableFocusRipple disableTouchRipple />;
16
16
  };
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-function */
2
2
  // Each exported component in the package should have its own stories file
3
3
 
4
- import type { Meta, StoryObj } from '@storybook/react';
4
+ import type { Meta, StoryObj } from '@storybook/react-vite';
5
5
  import { TabContext, TabContextProps } from './TabContext';
6
6
  import { Divider } from '@availity/mui-divider';
7
7
  import { TabList } from './TabList';
@@ -4,6 +4,6 @@ export interface TabContextProps extends MuiTabContextProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
6
 
7
- export const TabContext = ({ children, ...rest }: TabContextProps): JSX.Element => {
7
+ export const TabContext = ({ children, ...rest }: TabContextProps): React.JSX.Element => {
8
8
  return <MuiTabContext {...rest}>{children}</MuiTabContext>;
9
9
  };
@@ -1,7 +1,7 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
3
  import { useState } from 'react';
4
- import type { Meta, StoryObj } from '@storybook/react';
4
+ import type { Meta, StoryObj } from '@storybook/react-vite';
5
5
  import { LinkIcon, UserIcon } from '@availity/mui-icon';
6
6
  import { TabList, TabListProps } from './TabList';
7
7
  import { Tab } from './Tab';
@@ -19,7 +19,7 @@ const SecondaryTabs = styled(MuiTabList, {
19
19
  overridesResolver: (props, styles) => styles.avSecondary,
20
20
  })<{ ownerState: MuiTabListProps }>(secondaryTabStyling);
21
21
 
22
- export const TabList = ({ level = 'primary', ...rest }: TabListProps): JSX.Element => {
22
+ export const TabList = ({ level = 'primary', ...rest }: TabListProps): React.JSX.Element => {
23
23
  const LevelledTabs = level === 'primary' ? PrimaryTabs : SecondaryTabs;
24
24
  return (
25
25
  <LevelledTabs {...rest} orientation="horizontal" centered={false}/>
@@ -1,6 +1,6 @@
1
1
  // Each exported component in the package should have its own stories file
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { TabContext } from './TabContext';
5
5
  import { Divider } from '@availity/mui-divider';
6
6
  import { TabList } from './TabList';
@@ -4,6 +4,6 @@ export interface TabPanelProps extends MuiTabPanelProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
6
 
7
- export const TabPanel = ({ children, ...rest }: TabPanelProps): JSX.Element => {
7
+ export const TabPanel = ({ children, ...rest }: TabPanelProps): React.JSX.Element => {
8
8
  return <MuiTabPanel {...rest}>{children}</MuiTabPanel>;
9
9
  };
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-function */
2
2
  // Each exported component in the package should have its own stories file
3
3
 
4
- import type { Meta, StoryObj } from '@storybook/react';
4
+ import type { Meta, StoryObj } from '@storybook/react-vite';
5
5
  import Box from '@mui/material/Box';
6
6
  import Typography from '@mui/material/Typography';
7
7
  import { LinkIcon, UserIcon } from '@availity/mui-icon';
package/src/lib/Tabs.tsx CHANGED
@@ -49,7 +49,7 @@ const SecondaryTabs = styled(MuiTabs, {
49
49
  overridesResolver: (props, styles) => styles.avSecondary,
50
50
  })<{ ownerState: MuiTabsProps }>(secondaryTabStyling);
51
51
 
52
- export const Tabs = ({level = "primary", ...rest}: TabsProps): JSX.Element => {
52
+ export const Tabs = ({level = "primary", ...rest}: TabsProps): React.JSX.Element => {
53
53
  const LevelledTabs = level === 'primary' ? PrimaryTabs : SecondaryTabs;
54
54
 
55
55
  return (