@etsoo/materialui 1.5.25 → 1.5.26

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 TabBoxPros extends Omit<TabsProps, "value"> {
28
24
  /**
29
25
  * Default selected index
30
26
  */
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 TabBoxPros extends Omit<TabsProps, "value"> {
28
24
  /**
29
25
  * Default selected index
30
26
  */
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.26",
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 TabBoxPros extends Omit<TabsProps, "value"> {
44
39
  /**
45
40
  * Default selected index
46
41
  */
@@ -83,12 +78,12 @@ export function TabBox(props: TabBoxPros) {
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);