@availity/mui-tabs 0.1.7 → 0.1.8

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,16 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.8](https://github.com/Availity/element/compare/@availity/mui-tabs@0.1.7...@availity/mui-tabs@0.1.8) (2024-04-04)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-divider` updated to version `0.3.6`
10
+
11
+ ### Performance Improvements
12
+
13
+ * **mui-tabs:** use path imports for material deps ([708de9f](https://github.com/Availity/element/commit/708de9f03b089bb3e4a4d4a5c66ab63a3304e399))
14
+
5
15
  ## [0.1.7](https://github.com/Availity/element/compare/@availity/mui-tabs@0.1.6...@availity/mui-tabs@0.1.7) (2024-02-20)
6
16
 
7
17
  ### Dependency Updates
package/dist/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
- import { TabProps as TabProps$1, TabsProps as TabsProps$1 } from '@mui/material';
2
- import { TabContextProps as TabContextProps$1, TabListProps as TabListProps$1, TabPanelProps as TabPanelProps$1 } from '@mui/lab';
1
+ import { TabProps as TabProps$1 } from '@mui/material/Tab';
2
+ import { TabContextProps as TabContextProps$1 } from '@mui/lab/TabContext';
3
+ import { TabListProps as TabListProps$1 } from '@mui/lab/TabList';
4
+ import { TabPanelProps as TabPanelProps$1 } from '@mui/lab/TabPanel';
5
+ import { TabsProps as TabsProps$1 } from '@mui/material/Tabs';
3
6
 
4
7
  type TabProps = Omit<TabProps$1, 'centerRipple' | 'disableFocusRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'icon' | 'iconPosition' | 'TouchRippleProps'>;
5
8
  declare const Tab: (props: TabProps) => JSX.Element;
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
18
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
25
 
20
26
  // src/index.ts
@@ -29,10 +35,10 @@ __export(src_exports, {
29
35
  module.exports = __toCommonJS(src_exports);
30
36
 
31
37
  // src/lib/Tab.tsx
32
- var import_material = require("@mui/material");
38
+ var import_Tab = __toESM(require("@mui/material/Tab"));
33
39
  var import_jsx_runtime = require("react/jsx-runtime");
34
40
  var Tab = (props) => {
35
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Tab, {
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Tab.default, {
36
42
  ...props,
37
43
  disableRipple: true,
38
44
  disableFocusRipple: true,
@@ -41,20 +47,20 @@ var Tab = (props) => {
41
47
  };
42
48
 
43
49
  // src/lib/TabContext.tsx
44
- var import_lab = require("@mui/lab");
50
+ var import_TabContext = __toESM(require("@mui/lab/TabContext"));
45
51
  var import_jsx_runtime = require("react/jsx-runtime");
46
52
  var TabContext = ({ children, ...rest }) => {
47
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lab.TabContext, {
53
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TabContext.default, {
48
54
  ...rest,
49
55
  children
50
56
  });
51
57
  };
52
58
 
53
59
  // src/lib/TabList.tsx
54
- var import_lab2 = require("@mui/lab");
60
+ var import_TabList = __toESM(require("@mui/lab/TabList"));
55
61
  var import_jsx_runtime = require("react/jsx-runtime");
56
62
  var TabList = ({ children, ...rest }) => {
57
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lab2.TabList, {
63
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TabList.default, {
58
64
  ...rest,
59
65
  orientation: "horizontal",
60
66
  centered: false,
@@ -63,20 +69,20 @@ var TabList = ({ children, ...rest }) => {
63
69
  };
64
70
 
65
71
  // src/lib/TabPanel.tsx
66
- var import_lab3 = require("@mui/lab");
72
+ var import_TabPanel = __toESM(require("@mui/lab/TabPanel"));
67
73
  var import_jsx_runtime = require("react/jsx-runtime");
68
74
  var TabPanel = ({ children, ...rest }) => {
69
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lab3.TabPanel, {
75
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TabPanel.default, {
70
76
  ...rest,
71
77
  children
72
78
  });
73
79
  };
74
80
 
75
81
  // src/lib/Tabs.tsx
76
- var import_material2 = require("@mui/material");
82
+ var import_Tabs = __toESM(require("@mui/material/Tabs"));
77
83
  var import_jsx_runtime = require("react/jsx-runtime");
78
84
  var Tabs = ({ children, ...rest }) => {
79
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material2.Tabs, {
85
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Tabs.default, {
80
86
  ...rest,
81
87
  orientation: "horizontal",
82
88
  centered: false,
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/lib/Tab.tsx
2
- import { Tab as MuiTab } from "@mui/material";
2
+ import { default as MuiTab } from "@mui/material/Tab";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  var Tab = (props) => {
5
5
  return /* @__PURE__ */ jsx(MuiTab, {
@@ -11,7 +11,7 @@ var Tab = (props) => {
11
11
  };
12
12
 
13
13
  // src/lib/TabContext.tsx
14
- import { TabContext as MuiTabContext } from "@mui/lab";
14
+ import { default as MuiTabContext } from "@mui/lab/TabContext";
15
15
  import { jsx as jsx2 } from "react/jsx-runtime";
16
16
  var TabContext = ({ children, ...rest }) => {
17
17
  return /* @__PURE__ */ jsx2(MuiTabContext, {
@@ -21,7 +21,7 @@ var TabContext = ({ children, ...rest }) => {
21
21
  };
22
22
 
23
23
  // src/lib/TabList.tsx
24
- import { TabList as MuiTabList } from "@mui/lab";
24
+ import { default as MuiTabList } from "@mui/lab/TabList";
25
25
  import { jsx as jsx3 } from "react/jsx-runtime";
26
26
  var TabList = ({ children, ...rest }) => {
27
27
  return /* @__PURE__ */ jsx3(MuiTabList, {
@@ -33,7 +33,7 @@ var TabList = ({ children, ...rest }) => {
33
33
  };
34
34
 
35
35
  // src/lib/TabPanel.tsx
36
- import { TabPanel as MuiTabPanel } from "@mui/lab";
36
+ import { default as MuiTabPanel } from "@mui/lab/TabPanel";
37
37
  import { jsx as jsx4 } from "react/jsx-runtime";
38
38
  var TabPanel = ({ children, ...rest }) => {
39
39
  return /* @__PURE__ */ jsx4(MuiTabPanel, {
@@ -43,7 +43,7 @@ var TabPanel = ({ children, ...rest }) => {
43
43
  };
44
44
 
45
45
  // src/lib/Tabs.tsx
46
- import { Tabs as MuiTabs } from "@mui/material";
46
+ import { default as MuiTabs } from "@mui/material/Tabs";
47
47
  import { jsx as jsx5 } from "react/jsx-runtime";
48
48
  var Tabs = ({ children, ...rest }) => {
49
49
  return /* @__PURE__ */ jsx5(MuiTabs, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-tabs",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Availity MUI Tabs Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -35,7 +35,7 @@
35
35
  "@mui/lab": "^5.0.0-alpha.147"
36
36
  },
37
37
  "devDependencies": {
38
- "@availity/mui-divider": "^0.3.5",
38
+ "@availity/mui-divider": "^0.3.6",
39
39
  "@mui/material": "^5.14.12",
40
40
  "react": "18.2.0",
41
41
  "react-dom": "18.2.0",
@@ -2,7 +2,8 @@
2
2
 
3
3
  import { useState } from 'react';
4
4
  import type { Meta, StoryObj } from '@storybook/react';
5
- import { Box, Typography } from '@mui/material';
5
+ import Box from '@mui/material/Box';
6
+ import Typography from '@mui/material/Typography';
6
7
  import { Tabs } from './Tabs';
7
8
  import { Tab, TabProps } from './Tab';
8
9
 
package/src/lib/Tab.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import { Tab as MuiTab, TabProps as MuiTabProps } from '@mui/material';
1
+ import { default as MuiTab, TabProps as MuiTabProps } from '@mui/material/Tab';
2
2
 
3
3
  export type TabProps = Omit<
4
4
  MuiTabProps,
@@ -1,4 +1,4 @@
1
- import { TabContext as MuiTabContext, TabContextProps as MuiTabContextProps } from '@mui/lab';
1
+ import { default as MuiTabContext, TabContextProps as MuiTabContextProps } from '@mui/lab/TabContext';
2
2
 
3
3
  export interface TabContextProps extends MuiTabContextProps {
4
4
  children?: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { TabList as MuiTabList, TabListProps as MuiTabListProps } from '@mui/lab';
1
+ import { default as MuiTabList, TabListProps as MuiTabListProps } from '@mui/lab/TabList';
2
2
 
3
3
  export interface TabListProps
4
4
  extends Omit<
@@ -1,4 +1,4 @@
1
- import { TabPanel as MuiTabPanel, TabPanelProps as MuiTabPanelProps } from '@mui/lab';
1
+ import { default as MuiTabPanel, TabPanelProps as MuiTabPanelProps } from '@mui/lab/TabPanel';
2
2
 
3
3
  export interface TabPanelProps extends MuiTabPanelProps {
4
4
  children?: React.ReactNode;
@@ -2,7 +2,8 @@
2
2
 
3
3
  import { useState } from 'react';
4
4
  import type { Meta, StoryObj } from '@storybook/react';
5
- import { Box, Typography } from '@mui/material';
5
+ import Box from '@mui/material/Box';
6
+ import Typography from '@mui/material/Typography';
6
7
  import { Tabs, TabsProps } from './Tabs';
7
8
  import { Tab } from './Tab';
8
9
 
package/src/lib/Tabs.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import { Tabs as MuiTabs, TabsProps as MuiTabsProps } from '@mui/material';
1
+ import { default as MuiTabs, TabsProps as MuiTabsProps } from '@mui/material/Tabs';
2
2
 
3
3
  export interface TabsProps
4
4
  extends Omit<