@availity/mui-tabs 1.2.2 → 2.0.0
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 +23 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/package.json +11 -10
- package/src/lib/Tab.tsx +1 -1
- package/src/lib/TabContext.tsx +1 -1
- package/src/lib/TabList.tsx +1 -1
- package/src/lib/TabPanel.tsx +1 -1
- package/src/lib/Tabs.tsx +1 -1
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.0](https://github.com/Availity/element/compare/@availity/mui-tabs@1.2.3...@availity/mui-tabs@2.0.0) (2025-11-17)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-divider` updated to version `1.2.3`
|
|
10
|
+
* `mui-icon` updated to version `1.2.3`
|
|
11
|
+
|
|
12
|
+
### ⚠ BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* @mui/material upgraded to v7
|
|
15
|
+
* @mui/x-* upgraded to v8
|
|
16
|
+
* react upgraded to v19
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
|
|
21
|
+
|
|
22
|
+
## [1.2.3](https://github.com/Availity/element/compare/@availity/mui-tabs@1.2.2...@availity/mui-tabs@1.2.3) (2025-10-30)
|
|
23
|
+
|
|
24
|
+
### Dependency Updates
|
|
25
|
+
|
|
26
|
+
* `mui-divider` updated to version `1.2.2`
|
|
27
|
+
* `mui-icon` updated to version `1.2.2`
|
|
5
28
|
## [1.2.2](https://github.com/Availity/element/compare/@availity/mui-tabs@1.2.1...@availity/mui-tabs@1.2.2) (2025-04-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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-tabs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Availity MUI Tabs Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,22 +40,23 @@
|
|
|
40
40
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@mui/lab": "
|
|
43
|
+
"@mui/lab": "7.0.1-beta.18"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@availity/mui-divider": "^
|
|
47
|
-
"@availity/mui-icon": "^
|
|
48
|
-
"@mui/material": "^
|
|
49
|
-
"react": "
|
|
50
|
-
"react-dom": "
|
|
46
|
+
"@availity/mui-divider": "^2.0.0",
|
|
47
|
+
"@availity/mui-icon": "^2.0.0",
|
|
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": "^
|
|
56
|
-
"react": ">=
|
|
55
|
+
"@mui/material": "^7.0.0",
|
|
56
|
+
"react": ">=17.0.0"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
|
-
}
|
|
60
|
+
},
|
|
61
|
+
"sideEffects": false
|
|
61
62
|
}
|
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
|
};
|
package/src/lib/TabContext.tsx
CHANGED
|
@@ -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
|
};
|
package/src/lib/TabList.tsx
CHANGED
|
@@ -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}/>
|
package/src/lib/TabPanel.tsx
CHANGED
|
@@ -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
|
};
|
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 (
|