@availity/mui-tabs 1.2.0 → 1.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/CHANGELOG.md +11 -0
- package/package.json +4 -4
- package/src/lib/Tabs.stories.tsx +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [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
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-icon` updated to version `1.2.1`
|
|
10
|
+
## [1.2.1](https://github.com/Availity/element/compare/@availity/mui-tabs@1.2.0...@availity/mui-tabs@1.2.1) (2025-04-11)
|
|
11
|
+
|
|
12
|
+
### Dependency Updates
|
|
13
|
+
|
|
14
|
+
* `mui-divider` updated to version `1.2.0`
|
|
15
|
+
* `mui-icon` updated to version `1.2.0`
|
|
5
16
|
## [1.2.0](https://github.com/Availity/element/compare/@availity/mui-tabs@1.1.0...@availity/mui-tabs@1.2.0) (2025-03-24)
|
|
6
17
|
|
|
7
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-tabs",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Availity MUI Tabs Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"@mui/lab": "6.0.0-beta.12"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@availity/mui-divider": "^1.0.
|
|
47
|
-
"@availity/mui-icon": "^1.0
|
|
46
|
+
"@availity/mui-divider": "^1.0.2",
|
|
47
|
+
"@availity/mui-icon": "^1.1.0",
|
|
48
48
|
"@mui/material": "^6.4.5",
|
|
49
49
|
"react": "18.2.0",
|
|
50
50
|
"react-dom": "18.2.0",
|
|
51
|
-
"tsup": "^8.
|
|
51
|
+
"tsup": "^8.4.0",
|
|
52
52
|
"typescript": "^5.4.5"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
package/src/lib/Tabs.stories.tsx
CHANGED
|
@@ -5,7 +5,6 @@ import type { Meta, StoryObj } from '@storybook/react';
|
|
|
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';
|
|
8
|
-
import { Tooltip } from '@availity/mui-tooltip';
|
|
9
8
|
import { Tabs, TabsProps } from './Tabs';
|
|
10
9
|
import { Tab } from './Tab';
|
|
11
10
|
import { useState } from 'react';
|
|
@@ -158,24 +157,3 @@ export const _WithIcons: StoryObj<typeof Tabs> = {
|
|
|
158
157
|
);
|
|
159
158
|
},
|
|
160
159
|
};
|
|
161
|
-
|
|
162
|
-
export const _IconOnly: StoryObj<typeof Tabs> = {
|
|
163
|
-
render: () => {
|
|
164
|
-
const [value, setValue] = useState(0);
|
|
165
|
-
|
|
166
|
-
const handleChange = (event: React.SyntheticEvent, newValue: number) => {
|
|
167
|
-
setValue(newValue);
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
return (
|
|
171
|
-
<>
|
|
172
|
-
<Tabs value={value} onChange={handleChange}>
|
|
173
|
-
<Tab label={<Tooltip title="Links"><LinkIcon/></Tooltip>} {...a11yProps(0)} />
|
|
174
|
-
<Tooltip title="My Account"><Tab label={<UserIcon/>} {...a11yProps(1)} /></Tooltip>
|
|
175
|
-
</Tabs>
|
|
176
|
-
<CustomTabPanel value={value} index={0} />
|
|
177
|
-
<CustomTabPanel value={value} index={1} />
|
|
178
|
-
</>
|
|
179
|
-
);
|
|
180
|
-
},
|
|
181
|
-
};
|