@availity/mui-tabs 0.1.8 → 0.1.9

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,11 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.9](https://github.com/Availity/element/compare/@availity/mui-tabs@0.1.8...@availity/mui-tabs@0.1.9) (2024-04-19)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-divider` updated to version `0.1.8`
5
10
  ## [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
11
 
7
12
  ### Dependency Updates
@@ -0,0 +1,30 @@
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';
6
+
7
+ type TabProps = Omit<TabProps$1, 'centerRipple' | 'disableFocusRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'icon' | 'iconPosition' | 'TouchRippleProps'>;
8
+ declare const Tab: (props: TabProps) => JSX.Element;
9
+
10
+ interface TabContextProps extends TabContextProps$1 {
11
+ children?: React.ReactNode;
12
+ }
13
+ declare const TabContext: ({ children, ...rest }: TabContextProps) => JSX.Element;
14
+
15
+ interface TabListProps extends Omit<TabListProps$1, 'centered' | 'centerRipple' | 'focusRipple' | 'orientation' | 'TouchRippleProps' | 'touchRippleRef'> {
16
+ children?: React.ReactNode;
17
+ }
18
+ declare const TabList: ({ children, ...rest }: TabListProps) => JSX.Element;
19
+
20
+ interface TabPanelProps extends TabPanelProps$1 {
21
+ children?: React.ReactNode;
22
+ }
23
+ declare const TabPanel: ({ children, ...rest }: TabPanelProps) => JSX.Element;
24
+
25
+ interface TabsProps extends Omit<TabsProps$1, 'centered' | 'centerRipple' | 'focusRipple' | 'orientation' | 'TouchRippleProps' | 'touchRippleRef'> {
26
+ children?: React.ReactNode;
27
+ }
28
+ declare const Tabs: ({ children, ...rest }: TabsProps) => JSX.Element;
29
+
30
+ export { Tab, TabContext, type TabContextProps, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps };
package/dist/index.d.ts CHANGED
@@ -27,4 +27,4 @@ interface TabsProps extends Omit<TabsProps$1, 'centered' | 'centerRipple' | 'foc
27
27
  }
28
28
  declare const Tabs: ({ children, ...rest }: TabsProps) => JSX.Element;
29
29
 
30
- export { Tab, TabContext, TabContextProps, TabList, TabListProps, TabPanel, TabPanelProps, TabProps, Tabs, TabsProps };
30
+ export { Tab, TabContext, type TabContextProps, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps };
package/dist/index.js CHANGED
@@ -1,10 +1,39 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
9
  var __getProtoOf = Object.getPrototypeOf;
7
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
8
37
  var __export = (target, all) => {
9
38
  for (var name in all)
10
39
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -18,6 +47,10 @@ var __copyProps = (to, from, except, desc) => {
18
47
  return to;
19
48
  };
20
49
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
54
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
55
  mod
23
56
  ));
@@ -38,56 +71,39 @@ module.exports = __toCommonJS(src_exports);
38
71
  var import_Tab = __toESM(require("@mui/material/Tab"));
39
72
  var import_jsx_runtime = require("react/jsx-runtime");
40
73
  var Tab = (props) => {
41
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Tab.default, {
42
- ...props,
43
- disableRipple: true,
44
- disableFocusRipple: true,
45
- disableTouchRipple: true
46
- });
74
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Tab.default, __spreadProps(__spreadValues({}, props), { disableRipple: true, disableFocusRipple: true, disableTouchRipple: true }));
47
75
  };
48
76
 
49
77
  // src/lib/TabContext.tsx
50
78
  var import_TabContext = __toESM(require("@mui/lab/TabContext"));
51
- var import_jsx_runtime = require("react/jsx-runtime");
52
- var TabContext = ({ children, ...rest }) => {
53
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TabContext.default, {
54
- ...rest,
55
- children
56
- });
79
+ var import_jsx_runtime2 = require("react/jsx-runtime");
80
+ var TabContext = (_a) => {
81
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
82
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_TabContext.default, __spreadProps(__spreadValues({}, rest), { children }));
57
83
  };
58
84
 
59
85
  // src/lib/TabList.tsx
60
86
  var import_TabList = __toESM(require("@mui/lab/TabList"));
61
- var import_jsx_runtime = require("react/jsx-runtime");
62
- var TabList = ({ children, ...rest }) => {
63
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TabList.default, {
64
- ...rest,
65
- orientation: "horizontal",
66
- centered: false,
67
- children
68
- });
87
+ var import_jsx_runtime3 = require("react/jsx-runtime");
88
+ var TabList = (_a) => {
89
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
90
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_TabList.default, __spreadProps(__spreadValues({}, rest), { orientation: "horizontal", centered: false, children }));
69
91
  };
70
92
 
71
93
  // src/lib/TabPanel.tsx
72
94
  var import_TabPanel = __toESM(require("@mui/lab/TabPanel"));
73
- var import_jsx_runtime = require("react/jsx-runtime");
74
- var TabPanel = ({ children, ...rest }) => {
75
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TabPanel.default, {
76
- ...rest,
77
- children
78
- });
95
+ var import_jsx_runtime4 = require("react/jsx-runtime");
96
+ var TabPanel = (_a) => {
97
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
98
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_TabPanel.default, __spreadProps(__spreadValues({}, rest), { children }));
79
99
  };
80
100
 
81
101
  // src/lib/Tabs.tsx
82
102
  var import_Tabs = __toESM(require("@mui/material/Tabs"));
83
- var import_jsx_runtime = require("react/jsx-runtime");
84
- var Tabs = ({ children, ...rest }) => {
85
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Tabs.default, {
86
- ...rest,
87
- orientation: "horizontal",
88
- centered: false,
89
- children
90
- });
103
+ var import_jsx_runtime5 = require("react/jsx-runtime");
104
+ var Tabs = (_a) => {
105
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
106
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_Tabs.default, __spreadProps(__spreadValues({}, rest), { orientation: "horizontal", centered: false, children }));
91
107
  };
92
108
  // Annotate the CommonJS export names for ESM import in node:
93
109
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -1,57 +1,72 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+
1
33
  // src/lib/Tab.tsx
2
34
  import { default as MuiTab } from "@mui/material/Tab";
3
35
  import { jsx } from "react/jsx-runtime";
4
36
  var Tab = (props) => {
5
- return /* @__PURE__ */ jsx(MuiTab, {
6
- ...props,
7
- disableRipple: true,
8
- disableFocusRipple: true,
9
- disableTouchRipple: true
10
- });
37
+ return /* @__PURE__ */ jsx(MuiTab, __spreadProps(__spreadValues({}, props), { disableRipple: true, disableFocusRipple: true, disableTouchRipple: true }));
11
38
  };
12
39
 
13
40
  // src/lib/TabContext.tsx
14
41
  import { default as MuiTabContext } from "@mui/lab/TabContext";
15
42
  import { jsx as jsx2 } from "react/jsx-runtime";
16
- var TabContext = ({ children, ...rest }) => {
17
- return /* @__PURE__ */ jsx2(MuiTabContext, {
18
- ...rest,
19
- children
20
- });
43
+ var TabContext = (_a) => {
44
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
45
+ return /* @__PURE__ */ jsx2(MuiTabContext, __spreadProps(__spreadValues({}, rest), { children }));
21
46
  };
22
47
 
23
48
  // src/lib/TabList.tsx
24
49
  import { default as MuiTabList } from "@mui/lab/TabList";
25
50
  import { jsx as jsx3 } from "react/jsx-runtime";
26
- var TabList = ({ children, ...rest }) => {
27
- return /* @__PURE__ */ jsx3(MuiTabList, {
28
- ...rest,
29
- orientation: "horizontal",
30
- centered: false,
31
- children
32
- });
51
+ var TabList = (_a) => {
52
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
53
+ return /* @__PURE__ */ jsx3(MuiTabList, __spreadProps(__spreadValues({}, rest), { orientation: "horizontal", centered: false, children }));
33
54
  };
34
55
 
35
56
  // src/lib/TabPanel.tsx
36
57
  import { default as MuiTabPanel } from "@mui/lab/TabPanel";
37
58
  import { jsx as jsx4 } from "react/jsx-runtime";
38
- var TabPanel = ({ children, ...rest }) => {
39
- return /* @__PURE__ */ jsx4(MuiTabPanel, {
40
- ...rest,
41
- children
42
- });
59
+ var TabPanel = (_a) => {
60
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
61
+ return /* @__PURE__ */ jsx4(MuiTabPanel, __spreadProps(__spreadValues({}, rest), { children }));
43
62
  };
44
63
 
45
64
  // src/lib/Tabs.tsx
46
65
  import { default as MuiTabs } from "@mui/material/Tabs";
47
66
  import { jsx as jsx5 } from "react/jsx-runtime";
48
- var Tabs = ({ children, ...rest }) => {
49
- return /* @__PURE__ */ jsx5(MuiTabs, {
50
- ...rest,
51
- orientation: "horizontal",
52
- centered: false,
53
- children
54
- });
67
+ var Tabs = (_a) => {
68
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
69
+ return /* @__PURE__ */ jsx5(MuiTabs, __spreadProps(__spreadValues({}, rest), { orientation: "horizontal", centered: false, children }));
55
70
  };
56
71
  export {
57
72
  Tab,
package/jest.config.js CHANGED
@@ -4,4 +4,14 @@ module.exports = {
4
4
  ...global,
5
5
  displayName: 'tabs',
6
6
  coverageDirectory: '../../coverage/tabs',
7
+ /* TODO: Update to latest Jest snapshotFormat
8
+ * By default Nx has kept the older style of Jest Snapshot formats
9
+ * to prevent breaking of any existing tests with snapshots.
10
+ * It's recommend you update to the latest format.
11
+ * You can do this by removing snapshotFormat property
12
+ * and running tests with --update-snapshot flag.
13
+ * Example: From within the project directory, run "nx test --update-snapshot"
14
+ * More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
15
+ */
16
+ snapshotFormat: { escapeString: true, printBasicPrototype: true },
7
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-tabs",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Availity MUI Tabs Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -35,12 +35,12 @@
35
35
  "@mui/lab": "^5.0.0-alpha.147"
36
36
  },
37
37
  "devDependencies": {
38
- "@availity/mui-divider": "^0.3.6",
39
- "@mui/material": "^5.14.12",
38
+ "@availity/mui-divider": "^0.3.7",
39
+ "@mui/material": "^5.15.15",
40
40
  "react": "18.2.0",
41
41
  "react-dom": "18.2.0",
42
- "tsup": "^5.12.7",
43
- "typescript": "^4.6.4"
42
+ "tsup": "^8.0.2",
43
+ "typescript": "^5.4.5"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@mui/material": "^5.11.9",
package/project.json CHANGED
@@ -6,10 +6,9 @@
6
6
  "tags": [],
7
7
  "targets": {
8
8
  "lint": {
9
- "executor": "@nrwl/linter:eslint",
9
+ "executor": "@nx/eslint:lint",
10
10
  "options": {
11
11
  "eslintConfig": ".eslintrc.json",
12
- "lintFilePatterns": ["packages/tabs/**/*.{js,ts}"],
13
12
  "silent": false,
14
13
  "fix": false,
15
14
  "cache": true,
@@ -22,20 +21,20 @@
22
21
  }
23
22
  },
24
23
  "test": {
25
- "executor": "@nrwl/jest:jest",
26
- "outputs": ["coverage/tabs"],
24
+ "executor": "@nx/jest:jest",
25
+ "outputs": ["{workspaceRoot}/coverage/tabs"],
27
26
  "options": {
28
- "jestConfig": "packages/tabs/jest.config.js",
29
- "passWithNoTests": true
27
+ "jestConfig": "packages/tabs/jest.config.js"
30
28
  }
31
29
  },
32
30
  "version": {
33
31
  "executor": "@jscutlery/semver:version",
34
32
  "options": {
35
33
  "preset": "conventional",
36
- "commitMessageFormat": "chore(${projectName}): release version ${version} [skip ci]",
37
- "tagPrefix": "@availity/${projectName}@",
38
- "trackDeps": true
34
+ "commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
35
+ "tagPrefix": "@availity/{projectName}@",
36
+ "trackDeps": true,
37
+ "skipCommitTypes": ["docs"]
39
38
  }
40
39
  }
41
40
  }