@etsoo/materialui 1.5.25 → 1.5.27

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.
@@ -20,11 +20,7 @@ export interface TabBoxPanel extends Omit<TabProps, "value" | "children"> {
20
20
  /**
21
21
  * Tabs with box props
22
22
  */
23
- export interface TabBoxPros extends BoxProps {
24
- /**
25
- * Container props
26
- */
27
- container?: Omit<TabsProps, "value">;
23
+ export interface TabBoxProps extends Omit<TabsProps, "value"> {
28
24
  /**
29
25
  * Default selected index
30
26
  */
@@ -55,5 +51,5 @@ export interface TabBoxPros extends BoxProps {
55
51
  * @param props Props
56
52
  * @returns Component
57
53
  */
58
- export declare function TabBox(props: TabBoxPros): import("react/jsx-runtime").JSX.Element;
54
+ export declare function TabBox(props: TabBoxProps): import("react/jsx-runtime").JSX.Element;
59
55
  export {};
package/lib/cjs/TabBox.js CHANGED
@@ -20,8 +20,7 @@ function isActionTab(children) {
20
20
  */
21
21
  function TabBox(props) {
22
22
  // Destruct
23
- const { index, inputName, root, container = {}, defaultIndex = 0, tabProps, tabs } = props;
24
- const { onChange, ...rest } = container;
23
+ const { index, inputName, root, defaultIndex = 0, onChange, tabProps, tabs, ...rest } = props;
25
24
  // State
26
25
  const [value, setValue] = react_1.default.useState(defaultIndex);
27
26
  react_1.default.useEffect(() => {
@@ -20,11 +20,7 @@ export interface TabBoxPanel extends Omit<TabProps, "value" | "children"> {
20
20
  /**
21
21
  * Tabs with box props
22
22
  */
23
- export interface TabBoxPros extends BoxProps {
24
- /**
25
- * Container props
26
- */
27
- container?: Omit<TabsProps, "value">;
23
+ export interface TabBoxProps extends Omit<TabsProps, "value"> {
28
24
  /**
29
25
  * Default selected index
30
26
  */
@@ -55,5 +51,5 @@ export interface TabBoxPros extends BoxProps {
55
51
  * @param props Props
56
52
  * @returns Component
57
53
  */
58
- export declare function TabBox(props: TabBoxPros): import("react/jsx-runtime").JSX.Element;
54
+ export declare function TabBox(props: TabBoxProps): import("react/jsx-runtime").JSX.Element;
59
55
  export {};
package/lib/mjs/TabBox.js CHANGED
@@ -14,8 +14,7 @@ function isActionTab(children) {
14
14
  */
15
15
  export function TabBox(props) {
16
16
  // Destruct
17
- const { index, inputName, root, container = {}, defaultIndex = 0, tabProps, tabs } = props;
18
- const { onChange, ...rest } = container;
17
+ const { index, inputName, root, defaultIndex = 0, onChange, tabProps, tabs, ...rest } = props;
19
18
  // State
20
19
  const [value, setValue] = React.useState(defaultIndex);
21
20
  React.useEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.5.25",
3
+ "version": "1.5.27",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -82,7 +82,7 @@
82
82
  "@types/react-input-mask": "^3.0.6",
83
83
  "@types/react-window": "^1.8.8",
84
84
  "@vitejs/plugin-react": "^4.3.4",
85
- "jsdom": "^26.0.0",
85
+ "jsdom": "^26.1.0",
86
86
  "typescript": "^5.8.3",
87
87
  "vitest": "^3.1.1"
88
88
  }
package/src/TabBox.tsx CHANGED
@@ -35,12 +35,7 @@ export interface TabBoxPanel extends Omit<TabProps, "value" | "children"> {
35
35
  /**
36
36
  * Tabs with box props
37
37
  */
38
- export interface TabBoxPros extends BoxProps {
39
- /**
40
- * Container props
41
- */
42
- container?: Omit<TabsProps, "value">;
43
-
38
+ export interface TabBoxProps extends Omit<TabsProps, "value"> {
44
39
  /**
45
40
  * Default selected index
46
41
  */
@@ -77,18 +72,18 @@ export interface TabBoxPros extends BoxProps {
77
72
  * @param props Props
78
73
  * @returns Component
79
74
  */
80
- export function TabBox(props: TabBoxPros) {
75
+ export function TabBox(props: TabBoxProps) {
81
76
  // Destruct
82
77
  const {
83
78
  index,
84
79
  inputName,
85
80
  root,
86
- container = {},
87
81
  defaultIndex = 0,
82
+ onChange,
88
83
  tabProps,
89
- tabs
84
+ tabs,
85
+ ...rest
90
86
  } = props;
91
- const { onChange, ...rest } = container;
92
87
 
93
88
  // State
94
89
  const [value, setValue] = React.useState(defaultIndex);